diff --git a/wxLua/.gitignore b/wxLua/.gitignore new file mode 100644 index 00000000..e81eb0c9 --- /dev/null +++ b/wxLua/.gitignore @@ -0,0 +1,102 @@ +*.o + +/modules/lua-5.1/install/ +/modules/lua-5.1/src/liblua.a +/modules/lua-5.1/src/lua +/modules/lua-5.1/src/luac + +/modules/lua-5.2/install/ +/modules/lua-5.2/src/liblua.a +/modules/lua-5.2/src/lua +/modules/lua-5.2/src/luac + +/bindings/wxwidgets/wxadv_datatypes.lua +/include/wxbind/wxadv_bind.h +/modules/wxbind/src/wxadv_bind.cpp + +/bindings/wxwidgets/wxaui_datatypes.lua +/include/wxbind/wxaui_bind.h +/modules/wxbind/src/wxaui_bind.cpp + +/bindings/wxwidgets/wxbase_bind.flag +/bindings/wxwidgets/wxbase_datatypes.lua +/include/wxbind/wxbase_bind.h +/modules/wxbind/src/wxbase_base.cpp +/modules/wxbind/src/wxbase_bind.cpp +/modules/wxbind/src/wxbase_config.cpp +/modules/wxbind/src/wxbase_data.cpp +/modules/wxbind/src/wxbase_datetime.cpp +/modules/wxbind/src/wxbase_file.cpp + +/bindings/wxwidgets/wxcore_bind.flag +/bindings/wxwidgets/wxcore_datatypes.lua +/include/wxbind/wxcore_bind.h +/modules/wxbind/src/wxcore_appframe.cpp +/modules/wxbind/src/wxcore_bind.cpp +/modules/wxbind/src/wxcore_clipdrag.cpp +/modules/wxbind/src/wxcore_controls.cpp +/modules/wxbind/src/wxcore_core.cpp +/modules/wxbind/src/wxcore_defsutils.cpp +/modules/wxbind/src/wxcore_dialogs.cpp +/modules/wxbind/src/wxcore_event.cpp +/modules/wxbind/src/wxcore_gdi.cpp +/modules/wxbind/src/wxcore_geometry.cpp +/modules/wxbind/src/wxcore_graphics.cpp +/modules/wxbind/src/wxcore_help.cpp +/modules/wxbind/src/wxcore_image.cpp +/modules/wxbind/src/wxcore_mdi.cpp +/modules/wxbind/src/wxcore_menutool.cpp +/modules/wxbind/src/wxcore_picker.cpp +/modules/wxbind/src/wxcore_print.cpp +/modules/wxbind/src/wxcore_sizer.cpp +/modules/wxbind/src/wxcore_windows.cpp + +/bindings/wxwidgets/wxgl_datatypes.lua +/include/wxbind/wxgl_bind.h +/modules/wxbind/src/wxgl_bind.cpp + +/bindings/wxwidgets/wxhtml_datatypes.lua +/include/wxbind/wxhtml_bind.h +/modules/wxbind/src/wxhtml_bind.cpp + +/bindings/wxwidgets/wxmedia_datatypes.lua +/include/wxbind/wxmedia_bind.h +/modules/wxbind/src/wxmedia_bind.cpp + +/bindings/wxwidgets/wxnet_datatypes.lua +/include/wxbind/wxnet_bind.h +/modules/wxbind/src/wxnet_bind.cpp + +/bindings/wxwidgets/wxpropgrid_datatypes.lua +/include/wxbind/wxpropgrid_bind.h +/modules/wxbind/src/wxpropgrid_bind.cpp + +/bindings/wxwidgets/wxrichtext_datatypes.lua +/include/wxbind/wxrichtext_bind.h +/modules/wxbind/src/wxrichtext_bind.cpp + +/bindings/wxwidgets/wxstc_datatypes.lua +/include/wxbind/wxstc_bind.h +/modules/wxbind/src/wxstc_bind.cpp + +/bindings/wxwidgets/wxwebview_datatypes.lua +/include/wxbind/wxwebview_bind.h +/modules/wxbind/src/wxwebview_bind.cpp + +/bindings/wxwidgets/wxxml_datatypes.lua +/include/wxbind/wxxml_bind.h +/modules/wxbind/src/wxxml_bind.cpp + +/bindings/wxwidgets/wxxrc_datatypes.lua +/include/wxbind/wxxrc_bind.h +/modules/wxbind/src/wxxrc_bind.cpp + +/bindings/wxwidgets/wx_datatypes.lua + +/bindings/wxlua/wxlua_datatypes.lua +/include/wxlua/wxlua_bind.h +/modules/wxlua/wxlua_bind.cpp + +/bindings/wxlua_debugger/wxluadebugger_datatypes.lua +/modules/wxlua/debugger/wxluadebugger_bind.cpp +/modules/wxlua/debugger/wxluadebugger_bind.h diff --git a/wxLua/CMakeLists.txt b/wxLua/CMakeLists.txt index 4a112610..0f716a6d 100644 --- a/wxLua/CMakeLists.txt +++ b/wxLua/CMakeLists.txt @@ -63,15 +63,14 @@ include( "${wxWidgets_USE_FILE}" ) # Setup the location of the customizable wxluasetup.h file # --------------------------------------------------------------------------- -if (NOT DEFINED wxLuaBind_WXLUASETUP_DIR) - set(wxLuaBind_WXLUASETUP_DIR "${wxLua_ROOT_DIR}/modules/wxbind/setup") -endif() +if (DEFINED wxLuaBind_WXLUASETUP_DIR) set(wxLuaBind_WXLUASETUP_DIR ${wxLuaBind_WXLUASETUP_DIR} CACHE PATH "Path to wxLua's wxWidgets binding wxluasetup.h setup file." FORCE) if (NOT EXISTS "${wxLuaBind_WXLUASETUP_DIR}") MESSAGE(FATAL_ERROR "wxLuaBind_WXLUASETUP_DIR points to a non-existant path: '${wxLuaBind_WXLUASETUP_DIR}', the default is '${wxLua_ROOT_DIR}/modules/wxbind/setup'.") endif() +endif() # --------------------------------------------------------------------------- # Setup what wxWidgets libraries wxLua will make bindings for and link to. @@ -373,7 +372,375 @@ ADD_DOXYGEN( wxLua_doxygen SETUP_wxLua() # all libraries are built with these settings +function (wxLua_Binding_TARGETS) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxlua/wxlua_bind.h + ${wxLua_ROOT_DIR}/bindings/wxlua/wxlua_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxlua/wxlua_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxlua/wxlua_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxlua/override.hpp + ${wxLua_ROOT_DIR}/bindings/wxlua/wxlua.i + + COMMAND lua "-erulesFilename=\"wxlua/wxlua_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/modules/wxlua/debugger/wxluadebugger_bind.h + ${wxLua_ROOT_DIR}/bindings/wxlua_debugger/wxluadebugger_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxlua/debugger/wxluadebugger_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxlua_debugger/wxluadebugger_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxlua_debugger/override.hpp + ${wxLua_ROOT_DIR}/bindings/wxlua_debugger/wxluadebugger.i + + COMMAND lua "-erulesFilename=\"wxlua_debugger/wxluadebugger_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_datatypes.lua + ${wxLua_ROOT_DIR}/include/wxbind/wxbase_bind.h + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxbase_base.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxbase_bind.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxbase_config.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxbase_data.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxbase_datetime.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxbase_file.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_rules.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_base.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_config.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_data.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_datetime.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_file.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_override.hpp + + COMMAND lua "-erulesFilename=\"wxwidgets/wxbase_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/include/wxbind/wxcore_bind.h + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_appframe.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_bind.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_clipdrag.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_controls.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_core.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_defsutils.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_dialogs.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_event.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_gdi.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_geometry.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_graphics.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_help.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_image.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_mdi.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_menutool.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_picker.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_print.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_sizer.cpp + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxcore_windows.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_rules.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_appframe.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_clipdrag.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_controls.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_core.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_defsutils.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_dialogs.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_event.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_gdi.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_geometry.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_graphics.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_help.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_image.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_mdi.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_menutool.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_picker.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_print.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_sizer.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_windows.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxcore_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxadv_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxadv_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_adv.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_dataview.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_dvrenderers.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_grid.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + + COMMAND lua "-erulesFilename=\"wxwidgets/wxadv_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxaui_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxaui_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxaui_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxaui_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxaui_aui.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxaui_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + + COMMAND lua "-erulesFilename=\"wxwidgets/wxaui_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxgl_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxgl_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxgl_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxgl_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxgl_gl.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxgl_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxhtml_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxhtml_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxhtml_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxhtml_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxhtml_html.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxhtml_override.hpp + + COMMAND lua "-erulesFilename=\"wxwidgets/wxhtml_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxmedia_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxmedia_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxmedia_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxmedia_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxnet_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxmedia_media.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxmedia_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxnet_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxnet_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxnet_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxnet_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxnet_net.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxnet_override.hpp + + COMMAND lua "-erulesFilename=\"wxwidgets/wxnet_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxpropgrid_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxpropgrid_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxpropgrid_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxpropgrid_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxpropgrid_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxpropgrid_propgrid.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxpropgrid_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxrichtext_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxrichtext_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_print.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_richtext.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_style.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_symboldlg.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_xml.i + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxml_datatypes.lua + + COMMAND lua "-erulesFilename=\"wxwidgets/wxrichtext_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxstc_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxstc_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxstc_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxstc_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxstc_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxstc_stc.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxstc_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxwebview_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxwebview_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxwebview_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxwebview_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxwebview_webview.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxwebview_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxxml_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxml_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxxml_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxml_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxml_override.hpp + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxml_xml.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxxml_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + ${wxLua_ROOT_DIR}/include/wxbind/wxxrc_bind.h + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxrc_datatypes.lua + ${wxLua_ROOT_DIR}/modules/wxbind/src/wxxrc_bind.cpp + + DEPENDS + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxrc_rules.lua + + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua + ${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxrc_xrc.i + + COMMAND lua "-erulesFilename=\"wxwidgets/wxxrc_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +add_custom_command( + OUTPUT + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wx_datatypes.lua" + + DEPENDS + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxdatatypes_rules.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxadv_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxaui_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxbase_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxcore_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxgl_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxhtml_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxmedia_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxnet_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxpropgrid_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxrichtext_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxstc_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxwebview_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxml_datatypes.lua" + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wxxrc_datatypes.lua" + + COMMAND lua "-erulesFilename=\"wxwidgets/wxdatatypes_rules.lua\"" genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/bindings/" + VERBATIM +) + +endfunction() + +if (DEFINED wxLuaBind_WXLUASETUP_DIR) include_directories(${wxLuaBind_WXLUASETUP_DIR}) +endif() + +include_directories("${wxLua_ROOT_DIR}/include") if (NOT TARGET wxLuaLib) add_subdirectory( modules/ ) @@ -470,21 +837,25 @@ if (wxLua_LUA_LIBRARY_USE_BUILTIN) endif(wxLua_LUA_LIBRARY_USE_BUILTIN) install(FILES - ${wxLua_ROOT_DIR}/modules/wxlua/atomic.h - ${wxLua_ROOT_DIR}/modules/wxlua/sharedptr.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlbind.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlcallb.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlconsole.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxldefs.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxllua.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlobject.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlstate.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlua.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlua_bind.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlversion.h - ${wxLua_ROOT_DIR}/modules/wxbind/setup/wxluasetup.h + ${wxLua_ROOT_DIR}/include/wxlua/atomic.h + ${wxLua_ROOT_DIR}/include/wxlua/sharedptr.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlbind.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlcallb.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlconsole.h + ${wxLua_ROOT_DIR}/include/wxlua/wxldefs.h + ${wxLua_ROOT_DIR}/include/wxlua/wxllua.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlobject.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlstate.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlua.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlua_bind.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlversion.h + ${wxLua_ROOT_DIR}/include/wxlua/wxluasetup-defaults.h DESTINATION "include/wxlua") +install(FILES + ${wxLua_ROOT_DIR}/include/wxlua/wxluasetup.h + DESTINATION "include") + install(FILES ${wxLua_ROOT_DIR}/modules/wxlua/debug/wxldebug.h ${wxLua_ROOT_DIR}/modules/wxlua/debug/wxlstack.h diff --git a/wxLua/Makefile b/wxLua/Makefile new file mode 100644 index 00000000..01b526cc --- /dev/null +++ b/wxLua/Makefile @@ -0,0 +1,487 @@ +#---------------------------------------------------------------------------- +# Purpose: wxLua library Makefile +# Author: Daniel Collins +# Created: 19/09/2025 +# Copyright: (c) 2025 Daniel Collins +# Licence: wxWidgets licence +#---------------------------------------------------------------------------- + +# Define this variable when this Makefile is included as part of another to +# prefix all the paths for building parts of wxLua within another project. +# +# NOTE: The trailing slash is REQUIRED! Also, the path should not contain any +# spaces (keep it relative to your project) or things will break. +# +# WXLUA_ROOT := foo/ + +# Wrapper around the $(shell) function that aborts the build if the command +# exits with a nonzero status. +shell-or-die = $\ + $(eval sod_out := $$(shell $(1); echo $$$$?))$\ + $(if $(filter 0,$(lastword $(sod_out))),$\ + $(wordlist 1, $(shell echo $$(($(words $(sod_out)) - 1))), $(sod_out)),$\ + $(error $(1) exited with status $(lastword $(sod_out)))) + +# Takes a list of space-separated package names and returns the first which is +# defined in the pkg-config database, or errors if none are. +pkg-select = $\ + $(eval found_pkg := $$(firstword $$(foreach pkg,$(1), $$(shell pkg-config --exists $$(pkg) && echo $$(pkg))))) $\ + $(if $(found_pkg),$(found_pkg),$(error Could not found any of the following packages using pkg-config: $(1))) + +WXLUA_ROOT_ABS := $(if $(WXLUA_ROOT),$(call shell-or-die,cd "$(WXLUA_ROOT)" && pwd),$(call shell-or-die,pwd)) + +WXLUA_ALL_BINDINGS := \ + wxadv \ + wxaui \ + wxgl \ + wxhtml \ + wxmedia \ + wxnet \ + wxpropgrid \ + wxrichtext \ + wxstc \ + wxwebview \ + wxxml \ + wxxrc + +WXLUA_ENABLE_BINDINGS ?= $(WXLUA_ALL_BINDINGS) + +ifneq ($(filter-out $(WXLUA_ALL_BINDINGS),$(WXLUA_ENABLE_BINDINGS)),) +_ := $(error Unknown binding(s) specified in WXLUA_ENABLE_BINDINGS: $(filter-out $(WXLUA_ALL_BINDINGS),$(WXLUA_ENABLE_BINDINGS))) +endif + +WX_CONFIG ?= wx-config +WX_USE_LIBS ?= propgrid webview gl xrc xml net media richtext aui stc html adv core base + +WX_CXXFLAGS ?= $(call shell-or-die,$(WX_CONFIG) --cxxflags $(WX_USE_LIBS)) +WX_LIBS ?= $(call shell-or-die,$(WX_CONFIG) --libs $(WX_USE_LIBS)) + +BUILD_LUA ?= 5.1 + +ifeq ($(filter-out 0,$(BUILD_LUA)),) + # BUILD_LUA is 0 or empty - use the system Lua. + LUA_PKG ?= $(call pkg-select,lua5.4 lua5.3 lua5.2 lua5.1 lua) + LUA_CFLAGS ?= $(call shell-or-die,pkg-config $(LUA_PKG) --cflags) + LUA_LIBS ?= $(call shell-or-die,pkg-config $(LUA_PKG) --libs) + + LUA ?= lua +else + # BUILD_LUA is the version of Lua to build. + LUA_PREREQ := $(WXLUA_ROOT)modules/lua-$(BUILD_LUA)/install/lib/liblua.a + LUA_CFLAGS := -I$(WXLUA_ROOT)modules/lua-$(BUILD_LUA)/install/include/ + LUA_LIBS := $(WXLUA_ROOT)modules/lua-$(BUILD_LUA)/install/lib/liblua.a -ldl + + ifeq ($(BUILD_LUA),5.2) + LUA_CFLAGS += -DLUA_COMPAT_MODULE + endif + + LUA := $(WXLUA_ROOT_ABS)/modules/lua-$(BUILD_LUA)/install/bin/lua +endif + +WXLUA_DIR := $(WXLUA_ROOT)modules/wxlua + +WXLUA_LIB := $(WXLUA_ROOT)lib/wxlua.a +WXLUA_OBJS := \ + $(WXLUA_DIR)/bit.o \ + $(WXLUA_DIR)/lbitlib.o \ + $(WXLUA_DIR)/wxlbind.o \ + $(WXLUA_DIR)/wxlcallb.o \ + $(WXLUA_DIR)/wxlconsole.o \ + $(WXLUA_DIR)/wxllua.o \ + $(WXLUA_DIR)/wxlobject.o \ + $(WXLUA_DIR)/wxlstate.o \ + $(WXLUA_DIR)/wxlua_bind.o + +WXLUA_DEBUG_LIB := $(WXLUA_ROOT)lib/wxlua-debug.a +WXLUA_DEBUG_OBJS := \ + $(WXLUA_DIR)/debug/wxldebug.o \ + $(WXLUA_DIR)/debug/wxlstack.o + +WXLUA_DEBUGGER_LIB := $(WXLUA_ROOT)lib/wxlua-debugger.a +WXLUA_DEBUGGER_OBJS := \ + $(WXLUA_DIR)/debugger/wxldserv.o \ + $(WXLUA_DIR)/debugger/wxldtarg.o \ + $(WXLUA_DIR)/debugger/wxlsock.o \ + $(WXLUA_DIR)/debugger/wxluadebugger_bind.o + +WXBIND_DIR := $(WXLUA_ROOT)modules/wxbind + +WXBIND_LIB := $(WXLUA_ROOT)lib/wxbind.a + +WXBIND_BASE_OBJS := \ + $(WXBIND_DIR)/src/wxbase_base.o \ + $(WXBIND_DIR)/src/wxbase_bind.o \ + $(WXBIND_DIR)/src/wxbase_config.o \ + $(WXBIND_DIR)/src/wxbase_data.o \ + $(WXBIND_DIR)/src/wxbase_datetime.o \ + $(WXBIND_DIR)/src/wxbase_file.o + +WXBIND_CORE_OBJS := \ + $(WXBIND_DIR)/src/wxcore_appframe.o \ + $(WXBIND_DIR)/src/wxcore_bind.o \ + $(WXBIND_DIR)/src/wxcore_clipdrag.o \ + $(WXBIND_DIR)/src/wxcore_controls.o \ + $(WXBIND_DIR)/src/wxcore_core.o \ + $(WXBIND_DIR)/src/wxcore_defsutils.o \ + $(WXBIND_DIR)/src/wxcore_dialogs.o \ + $(WXBIND_DIR)/src/wxcore_event.o \ + $(WXBIND_DIR)/src/wxcore_gdi.o \ + $(WXBIND_DIR)/src/wxcore_geometry.o \ + $(WXBIND_DIR)/src/wxcore_graphics.o \ + $(WXBIND_DIR)/src/wxcore_help.o \ + $(WXBIND_DIR)/src/wxcore_image.o \ + $(WXBIND_DIR)/src/wxcore_mdi.o \ + $(WXBIND_DIR)/src/wxcore_menutool.o \ + $(WXBIND_DIR)/src/wxcore_picker.o \ + $(WXBIND_DIR)/src/wxcore_print.o \ + $(WXBIND_DIR)/src/wxcore_sizer.o \ + $(WXBIND_DIR)/src/wxcore_windows.o \ + $(WXBIND_DIR)/src/wxcore_wxlcore.o + +WXBIND_OBJS := \ + $(WXBIND_BASE_OBJS) \ + $(WXBIND_CORE_OBJS) \ + $(foreach x,$(WXLUA_ENABLE_BINDINGS),$(WXBIND_DIR)/src/$(x)_bind.o) \ + $(if $(filter wxadv,$(WXLUA_ENABLE_BINDINGS)),$(WXBIND_DIR)/src/wxadv_wxladv.o) \ + $(if $(filter wxhtml,$(WXLUA_ENABLE_BINDINGS)),$(WXBIND_DIR)/src/wxhtml_wxlhtml.o) + +WXBIND_ALL_OBJS := \ + $(WXBIND_BASE_OBJS) \ + $(WXBIND_CORE_OBJS) \ + $(foreach x,$(WXLUA_ALL_BINDINGS),$(WXBIND_DIR)/src/$(x)_bind.o) \ + $(WXBIND_DIR)/src/wxadv_wxladv.o \ + $(WXBIND_DIR)/src/wxadv_wxlhtml.o + +ifeq ($(OS),Windows_NT) + LUAMODULE := $(WXLUA_ROOT)lib/lua/wx.dll + WX_LIBS += -lws2_32 +else + LUAMODULE := $(WXLUA_ROOT)lib/lua/wx.so +endif + +LUAMODULE_OBJS := \ + $(WXLUA_ROOT)modules/luamodule/luamodule.o + +.PHONY: wxlua-all +wxlua-all: $(WXLUA_LIB) $(WXLUA_DEBUG_LIB) $(WXLUA_DEBUGGER_LIB) $(WXBIND_LIB) $(LUAMODULE) + +ifeq ($(WXLUA_ROOT),) +.PHONY: clean +clean: wxlua-clean +endif + +.PHONY: wxlua-clean +wxlua-clean: + rm -f $(WXLUA_LIB) $(WXLUA_OBJS) + rm -f $(WXLUA_DEBUG_LIB) $(WXLUA_DEBUG_OBJS) + rm -f $(WXLUA_DEBUGGER_LIB) $(WXLUA_DEBUGGER_OBJS) + rm -f $(WXBIND_LIB) $(WXBIND_ALL_OBJS) + rm -f $(LUAMODULE) $(LUAMODULE_OBJS) + + rm -f $(WXBASE_BINDING_TARGETS) $(WXBASE_BINDING_FLAG_FILE) + rm -f $(WXCORE_BINDING_TARGETS) $(WXCORE_BINDING_FLAG_FILE) + rm -f $(foreach x,$(WXLUA_ALL_BINDINGS),$(WXLUA_ROOT)bindings/wxwidgets/$(x)_datatypes.lua) + rm -f $(foreach x,$(WXLUA_ALL_BINDINGS),$(WXLUA_ROOT)include/wxbind/$(x)_bind.h) + rm -f $(foreach x,$(WXLUA_ALL_BINDINGS),$(WXLUA_ROOT)modules/wxbind/src/$(x)_bind.cpp) + rm -f $(WXLUA_ROOT)bindings/wxwidgets/wx_datatypes.lua + + rm -f $(WXLUA_ROOT)include/wxlua/wxlua_bind.h $(WXLUA_ROOT)bindings/wxlua/wxlua_datatypes.lua $(WXLUA_ROOT)modules/wxlua/wxlua_bind.cpp + rm -f $(WXLUA_ROOT)modules/wxlua/debugger/wxluadebugger_bind.h $(WXLUA_ROOT)bindings/wxlua_debugger/wxluadebugger_datatypes.lua $(WXLUA_ROOT)modules/wxlua/debugger/wxluadebugger_bind.cpp + + if [ -d $(WXLUA_ROOT)modules/lua-5.1/ ]; then $(MAKE) -C $(WXLUA_ROOT)modules/lua-5.1/ clean; fi + rm -rf $(WXLUA_ROOT)modules/lua-5.1/install/ + + if [ -d $(WXLUA_ROOT)modules/lua-5.2/ ]; then $(MAKE) -C $(WXLUA_ROOT)modules/lua-5.2/ clean; fi + rm -rf $(WXLUA_ROOT)modules/lua-5.2/install/ + +$(WXLUA_LIB): $(WXLUA_OBJS) + @mkdir -p $(dir $@) + ar rcs $@ $(WXLUA_OBJS) + +$(WXLUA_DEBUG_LIB): $(WXLUA_DEBUG_OBJS) + @mkdir -p $(dir $@) + ar rcs $@ $(WXLUA_DEBUG_OBJS) + +$(WXLUA_DEBUGGER_LIB): $(WXLUA_DEBUGGER_OBJS) + @mkdir -p $(dir $@) + ar rcs $@ $(WXLUA_DEBUGGER_OBJS) + +$(WXBIND_LIB): $(WXBIND_OBJS) + @mkdir -p $(dir $@) + ar rcs $@ $(WXBIND_OBJS) + +$(LUAMODULE): $(LUAMODULE_OBJS) $(WXLUA_LIB) $(WXLUA_DEBUGGER_LIB) $(WXLUA_DEBUG_LIB) $(WXBIND_LIB) + @mkdir -p $(dir $@) + $(CXX) -o $@ -shared -fPIC $(CXXFLAGS) $(LUAMODULE_OBJS) $(WXLUA_LIB) $(WXLUA_DEBUGGER_LIB) $(WXLUA_DEBUG_LIB) $(WXBIND_LIB) $(LUA_LIBS) $(WX_LIBS) + +$(WXLUA_ROOT)modules/lua-5.1/install/lib/liblua.a: + # Lua's Makefile work with >1 concurrency. + $(MAKE) -j1 -C $(WXLUA_ROOT)modules/lua-5.1/ linux install INSTALL_TOP="$(WXLUA_ROOT_ABS)/modules/lua-5.1/install/" + +$(WXLUA_ROOT)modules/lua-5.2/install/lib/liblua.a: + # Lua's Makefile work with >1 concurrency. + $(MAKE) -j1 -C $(WXLUA_ROOT)modules/lua-5.2/ CFLAGS="-DLUA_COMPAT_MODULE -DLUA_USE_LINUX -fPIC" linux local + touch $@ + +# wxWidgets library bindings + +# The wxbase bindings produce multiple source files from a single command, this +# would ideally be handled as a Grouped Target, but those weren't introduced +# until GNU Make 4.3, which I'm not happy depending on yet so we go for the old +# faithful all-the-outputs-depend-on-a-dummy-target-which-actually-makes-them +# approach. If any of the targets are missing, then we flag that dummy as a +# phony target to ensure it gets run to build the missing file(s). + +WXBASE_BINDING_TARGETS := \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_datatypes.lua \ + $(WXLUA_ROOT)include/wxbind/wxbase_bind.h \ + $(WXLUA_ROOT)modules/wxbind/src/wxbase_base.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxbase_bind.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxbase_config.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxbase_data.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxbase_datetime.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxbase_file.cpp + +WXBASE_BINDING_DEPENDENCIES := \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_rules.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_base.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_config.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_data.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_datetime.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_file.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_override.hpp + +WXBASE_BINDING_FLAG_FILE := \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_bind.flag + +ifneq ($(strip $(strip $(foreach x,$(WXBASE_BINDING_TARGETS),$(if $(wildcard $(x)),,$(x))))),) +.PHONY: $(WXBASE_BINDING_FLAG_FILE) +endif + +$(WXBASE_BINDING_TARGETS): $(WXBASE_BINDING_FLAG_FILE) + +$(WXBASE_BINDING_FLAG_FILE): $(WXBASE_BINDING_DEPENDENCIES) $(LUA_PREREQ) + cd $(WXLUA_ROOT)bindings/ && $(LUA) -e"rulesFilename=\"wxwidgets/wxbase_rules.lua\"" genwxbind.lua + touch $@ + +# The wxcore bindings produce multiple source files from a single command, this +# would ideally be handled as a Grouped Target, but those weren't introduced +# until GNU Make 4.3, which I'm not happy depending on yet so we go for the old +# faithful all-the-outputs-depend-on-a-dummy-target-which-actually-makes-them +# approach. If any of the targets are missing, then we flag that dummy as a +# phony target to ensure it gets run to build the missing file(s). + +WXCORE_BINDING_TARGETS := \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)include/wxbind/wxcore_bind.h \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_appframe.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_bind.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_clipdrag.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_controls.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_core.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_defsutils.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_dialogs.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_event.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_gdi.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_geometry.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_graphics.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_help.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_image.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_mdi.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_menutool.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_picker.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_print.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_sizer.cpp \ + $(WXLUA_ROOT)modules/wxbind/src/wxcore_windows.cpp + +WXCORE_BINDING_DEPDENDENCIES := \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_rules.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_appframe.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_clipdrag.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_controls.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_core.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_defsutils.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_dialogs.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_event.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_gdi.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_geometry.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_graphics.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_help.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_image.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_mdi.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_menutool.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_picker.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_print.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_sizer.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_windows.i + +WXCORE_BINDING_FLAG_FILE := \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_bind.flag + +ifneq ($(strip $(strip $(foreach x,$(WXCORE_BINDING_TARGETS),$(if $(wildcard $(x)),,$(x))))),) +.PHONY: $(WXCORE_BINDING_FLAG_FILE) +endif + +$(WXCORE_BINDING_TARGETS): $(WXCORE_BINDING_FLAG_FILE) + +$(WXCORE_BINDING_FLAG_FILE): $(WXCORE_BINDING_DEPDENDENCIES) $(LUA_PREREQ) + cd $(WXLUA_ROOT)bindings/ && $(LUA) -e"rulesFilename=\"wxwidgets/wxcore_rules.lua\"" genwxbind.lua + touch $@ + +# The "basic" wxWidgets bindings all follow the same pattern and have a +# consistent set of outputs which can be encompassed by a pattern rule. + +WXLUA_ENABLE_BINDINGS ?= \ + wxadv \ + wxaui \ + wxgl \ + wxhtml \ + wxmedia \ + wxnet \ + wxpropgrid \ + wxrichtext \ + wxstc \ + wxwebview \ + wxxml \ + wxxrc + +$(WXLUA_ROOT)include/wxbind/%_bind.h $(WXLUA_ROOT)bindings/wxwidgets/%_datatypes.lua $(WXLUA_ROOT)modules/wxbind/src/%_bind.cpp: $(WXLUA_ROOT)bindings/wxwidgets/%_rules.lua $(LUA_PREREQ) + cd $(WXLUA_ROOT)bindings/ && $(LUA) -e"rulesFilename=\"wxwidgets/$*_rules.lua\"" genwxbind.lua + +# Merged data types from wxWidgets library bindings for use by other bindings +$(WXLUA_ROOT)bindings/wxwidgets/wx_datatypes.lua: $(WXLUA_ROOT)bindings/wxwidgets/wxbase_datatypes.lua $(foreach x,$(WXLUA_ENABLE_BINDINGS),$(WXLUA_ROOT)bindings/wxwidgets/$(x)_datatypes.lua) $(LUA_PREREQ) + cd $(WXLUA_ROOT)bindings/ && $(LUA) -e"rulesFilename=\"wxwidgets/wxdatatypes_rules.lua\"" genwxbind.lua + touch $@ + +# Individual library/application bindings. +# These are pattern rules despite being for single targets so that we can +# indicate they produce multiple outputs. + +$(WXLUA_ROOT)include/wxlua/%_bind.h $(WXLUA_ROOT)bindings/wxlua/%_datatypes.lua $(WXLUA_ROOT)modules/wxlua/%_bind.cpp: $(WXLUA_ROOT)bindings/wxlua/wxlua_rules.lua $(LUA_PREREQ) + cd $(WXLUA_ROOT)bindings/ && $(LUA) -e"rulesFilename=\"wxlua/$*_rules.lua\"" genwxbind.lua + +$(WXLUA_ROOT)modules/wxlua/debugger/%_bind.h $(WXLUA_ROOT)bindings/wxlua_debugger/%_datatypes.lua $(WXLUA_ROOT)modules/wxlua/debugger/%_bind.cpp: $(WXLUA_ROOT)bindings/wxlua_debugger/%_rules.lua $(LUA_PREREQ) + cd $(WXLUA_ROOT)bindings/ && $(LUA) -e"rulesFilename=\"wxlua_debugger/$*_rules.lua\"" genwxbind.lua + +# Bindings which must be built before anything in wxLua is compiled +WXLUA_BIND_HEADERS = \ + $(WXBASE_BINDING_TARGETS) \ + $(WXCORE_BINDING_TARGETS) \ + $(foreach x,$(WXLUA_ENABLE_BINDINGS),$(WXLUA_ROOT)include/wxbind/$(x)_bind.h) \ + $(WXLUA_ROOT)include/wxlua/wxlua_bind.h + +$(WXLUA_ROOT)%.o: $(WXLUA_ROOT)%.c $(LUA_PREREQ) $(WXLUA_BIND_HEADERS) + $(CC) -I$(WXLUA_ROOT)include/ $(LUA_CFLAGS) $(CFLAGS) -fPIC -c -o $@ $< + +$(WXLUA_ROOT)%.o: $(WXLUA_ROOT)%.cpp $(LUA_PREREQ) $(WXLUA_BIND_HEADERS) + $(CXX) -I$(WXLUA_ROOT)include/ $(LUA_CFLAGS) $(WX_CXXFLAGS) $(CXXFLAGS) -fPIC -c -o $@ $< + +# Additional dependencies of the various bindings. +# TODO: Update genwxbind.lua to output Makefile fragments with all the +# dependencies and include those so we only need an explicit dependency on the +# rules file instead. + +$(WXLUA_ROOT)include/wxbind/wxadv_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxadv_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxadv_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxadv_adv.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxadv_dataview.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxadv_dvrenderers.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxadv_grid.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxadv_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua + +$(WXLUA_ROOT)include/wxbind/wxaui_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxaui_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxaui_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxaui_aui.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxaui_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua + +$(WXLUA_ROOT)include/wxbind/wxgl_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxgl_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxgl_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxgl_gl.i + +$(WXLUA_ROOT)include/wxbind/wxhtml_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxhtml_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxhtml_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxhtml_html.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxhtml_override.hpp + +$(WXLUA_ROOT)include/wxbind/wxmedia_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxmedia_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxmedia_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxnet_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxmedia_media.i + +$(WXLUA_ROOT)include/wxbind/wxnet_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxnet_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxnet_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxnet_net.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxnet_override.hpp + +$(WXLUA_ROOT)include/wxbind/wxpropgrid_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxpropgrid_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxpropgrid_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxpropgrid_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxpropgrid_propgrid.i + +$(WXLUA_ROOT)include/wxbind/wxrichtext_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxrichtext_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_print.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_richtext.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_style.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_symboldlg.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxrichtext_xml.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wxxml_datatypes.lua + +$(WXLUA_ROOT)include/wxbind/wxstc_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxstc_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxstc_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxstc_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxstc_stc.i + +$(WXLUA_ROOT)include/wxbind/wxwebview_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxwebview_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxwebview_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxwebview_webview.i + +$(WXLUA_ROOT)include/wxbind/wxxml_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxxml_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxxml_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxxml_override.hpp \ + $(WXLUA_ROOT)bindings/wxwidgets/wxxml_xml.i + +$(WXLUA_ROOT)include/wxbind/wxxrc_bind.h \ +$(WXLUA_ROOT)bindings/wxwidgets/wxxrc_datatypes.lua \ +$(WXLUA_ROOT)modules/wxbind/src/wxxrc_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxwidgets/wxxrc_xrc.i + +$(WXLUA_ROOT)include/wxlua/wxlua_bind.h \ +$(WXLUA_ROOT)bindings/wxlua/wxlua_datatypes.lua \ +$(WXLUA_ROOT)modules/wxlua/wxlua_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxbase_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxlua/override.hpp \ + $(WXLUA_ROOT)bindings/wxlua/wxlua.i + +$(WXLUA_ROOT)modules/wxlua/debugger/wxluadebugger_bind.h \ +$(WXLUA_ROOT)bindings/wxlua_debugger/wxluadebugger_datatypes.lua \ +$(WXLUA_ROOT)modules/wxlua/debugger/wxluadebugger_bind.cpp: \ + $(WXLUA_ROOT)bindings/wxwidgets/wxcore_datatypes.lua \ + $(WXLUA_ROOT)bindings/wxlua_debugger/override.hpp \ + $(WXLUA_ROOT)bindings/wxlua_debugger/wxluadebugger.i diff --git a/wxLua/Makefile.wx-config b/wxLua/Makefile.wx-config deleted file mode 100644 index 6bcbfda2..00000000 --- a/wxLua/Makefile.wx-config +++ /dev/null @@ -1,70 +0,0 @@ -# Makefile to build the library and apps using the 'wx-config' script -# to get the proper build settings for wxWidgets, e.g. wx-config --cxxflags -# You can override the location of the 'wx-config' script by running -# $make WXCONFIG=/home/user/path/to/wxWidgets/.../wx-config - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include build/Makefile_wx-config.in - -#---------------------------------------------------------------------------- - -# Always try to build all targets, let the other Makefiles do dep checking -.PHONY: all clean lua wxlua wxlua_debug wxlua_debugger wxbind luamodule wxlua_app wxluacan_app wxluafreeze_app wxluaedit_app - -#---------------------------------------------------------------------------- -# Build everything - -all: lua wxlua wxlua_debug wxlua_debugger wxbind wxlua_app wxluacan_app wxluafreeze_app wxluaedit_app luamodule - -#---------------------------------------------------------------------------- -# Make the libs - -lua: - @(cd modules/lua-5.1/src && $(MAKE) $(LUA_PLAT)) - -wxlua: - @(cd modules/wxlua && $(MAKE)) - -wxlua_debug: - @(cd modules/wxlua/debug && $(MAKE)) - -wxlua_debugger: - @(cd modules/wxlua/debugger && $(MAKE)) - -wxbind: - @(cd modules/wxbind/src && $(MAKE)) - -luamodule: - @(cd modules/luamodule && $(MAKE)) - -#---------------------------------------------------------------------------- -# Make the apps - -wxlua_app: - @(cd apps/wxlua && $(MAKE)) - -wxluacan_app: - @(cd apps/wxluacan && $(MAKE)) - -wxluafreeze_app: - @(cd apps/wxluafreeze && $(MAKE)) - -wxluaedit_app: - @(cd apps/wxluaedit && $(MAKE)) - -#---------------------------------------------------------------------------- - -clean: - @(cd modules/lua-5.1/src && $(MAKE) clean) - @(cd modules/wxlua && $(MAKE) clean) - @(cd modules/wxlua/debug && $(MAKE) clean) - @(cd modules/wxlua/debugger && $(MAKE) clean) - @(cd modules/wxbind/src && $(MAKE) clean) - @(cd modules/luamodule && $(MAKE) clean) - @(cd apps/wxlua && $(MAKE) clean) - @(cd apps/wxluacan && $(MAKE) clean) - @(cd apps/wxluafreeze && $(MAKE) clean) - @(cd apps/wxluaedit && $(MAKE) clean) - diff --git a/wxLua/apps/CMakeLists.txt b/wxLua/apps/CMakeLists.txt index 45d1310d..69680aaa 100644 --- a/wxLua/apps/CMakeLists.txt +++ b/wxLua/apps/CMakeLists.txt @@ -59,9 +59,27 @@ endfunction (wxLua_Apps_wxLua_TARGETS) function (wxLua_Apps_wxLuaCan_TARGETS) +add_custom_command( + OUTPUT + "${wxLua_ROOT_DIR}/apps/wxluacan/wxluacan_bind.cpp" + "${wxLua_ROOT_DIR}/apps/wxluacan/wxluacan_bind.h" + "${wxLua_ROOT_DIR}/apps/wxluacan/wxluacan_datatypes.lua" + + DEPENDS + "${wxLua_ROOT_DIR}/apps/wxluacan/wxluacan_rules.lua" + "${wxLua_ROOT_DIR}/apps/wxluacan/wxluacan.i" + + "${wxLua_ROOT_DIR}/bindings/wxwidgets/wx_datatypes.lua" + + COMMAND lua "-erulesFilename=\"wxluacan_rules.lua\"" ../../bindings/genwxbind.lua + WORKING_DIRECTORY "${wxLua_ROOT_DIR}/apps/wxluacan" + VERBATIM +) + ADD_EXECUTABLE_FULL( wxLuaCan WIN32 MACOSX_BUNDLE HEADERS "${wxLua_ROOT_DIR}/apps/wxluacan/*.h" + "${wxLua_ROOT_DIR}/apps/wxluacan/wxluacan_bind.h" SOURCES "${wxLua_ROOT_DIR}/apps/wxluacan/*.cpp" "${wxLua_ROOT_DIR}/apps/wxluacan/cansim.rc" diff --git a/wxLua/apps/wxlua/.gitignore b/wxLua/apps/wxlua/.gitignore new file mode 100644 index 00000000..c787acbd --- /dev/null +++ b/wxLua/apps/wxlua/.gitignore @@ -0,0 +1,2 @@ +/wxlua +/wxlua.exe diff --git a/wxLua/apps/wxlua/Makefile b/wxLua/apps/wxlua/Makefile index be04567a..e0e84065 100644 --- a/wxLua/apps/wxlua/Makefile +++ b/wxLua/apps/wxlua/Makefile @@ -1,51 +1,50 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2004 -# Updated: -# Copyright: (c) 2002. J Winwood -# -# Makefile for wxLua standalone sample using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -PROGRAM = wxLua - -HEADERS = -SOURCES = wxlua.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -#APPEXTRALIBS := -l$(WXSTC_LIB) $(APPEXTRALIBS) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(wxLuaALL_TARGETS) $(PROGRAM) - -$(PROGRAM): $(OBJECTS) - $(CXX) -o $@ $(OBJECTS) $(LDLIBS) $(APPEXTRALIBS) - -editor: - $(LUA) $(WXLUA_DIR)/util/bin2c/bin2c.lua -t -lf -n editor_wx_lua -o editor.h $(WXLUA_DIR)/samples/editor.wx.lua - -clean: - rm -f $(OBJECTS) $(DEPFILES) $(PROGRAM) core - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) +#---------------------------------------------------------------------------- +# Purpose: wxLua application Makefile +# Author: Daniel Collins +# Created: 21/09/2025 +# Copyright: (c) 2025 Daniel Collins +# Licence: wxWidgets licence +#---------------------------------------------------------------------------- + +# This compiles a stand-alone application (wxLua) and demonstrates how to make +# use of the wxLua library Makefile from another project. + +ifeq ($(OS),Windows_NT) + APP := wxlua.exe +else + APP := wxlua +endif + +OBJS := \ + wxlua.o + +.PHONY: all +all: $(APP) + +# Define WXLUA_ROOT so the library Makefile file knows where the sources are. +WXLUA_ROOT := ../../ +include ../../Makefile + +# Depend on wxlua-clean to run the library clean target too. +clean: wxlua-clean + rm -f $(OBJS) + rm -f $(APP) + +# We take advantage of the library Makefile to provide us compiler flags for +# building against Lua and wxWidgets. If we were compiling wxLua as a part of a +# larger application we could instead handle that ourselves and ensure the flag +# variables are set prior to including the library Makefile for it to use ours +# instead. + +$(APP): $(OBJS) $(WXLUA_LIB) $(WXLUA_DEBUGGER_LIB) $(WXLUA_DEBUG_LIB) $(WXBIND_LIB) + $(CXX) $(CXXFLAGS) -o $@ $^ $(LUA_LIBS) $(WX_LIBS) + +# We add $(WXLUA_BIND_HEADERS) as a prerequisite here to ensure all of wxLua's +# bindings are built before our sources. This is a bit of a crude sledgehammer +# solution to the issue of build ordering, but unless you're making frequent +# changes to wxLua within the scope of a large application its probably not +# worth the extra effort of tracking which of your sources depend on which of +# wxLua's bindings. + +%.o: %.cpp $(WXLUA_BIND_HEADERS) + $(CXX) $(CXXFLAGS) $(LUA_CFLAGS) $(WX_CXXFLAGS) -I$(WXLUA_ROOT)/include/ -c -o $@ $< diff --git a/wxLua/apps/wxlua/wxlua.cpp b/wxLua/apps/wxlua/wxlua.cpp index 1c1fc51e..c0d1de05 100644 --- a/wxLua/apps/wxlua/wxlua.cpp +++ b/wxLua/apps/wxlua/wxlua.cpp @@ -26,12 +26,12 @@ #include #include -#include "wxlua/wxlua.h" -#include "wxlua/debugger/wxldserv.h" +#include +#include "../../modules/wxlua/debugger/wxldserv.h" #include "wxlua.h" #include "editor.h" -#include "art/wxlualogo.xpm" +#include "../../art/wxlualogo.xpm" extern "C" { @@ -49,7 +49,7 @@ extern "C" // better chance of determining what libs are available. // Note : Make sure you link to the binding libraries. -#include "wxbind/include/wxbinddefs.h" +#include WXLUA_DECLARE_BIND_ALL // --------------------------------------------------------------------------- diff --git a/wxLua/apps/wxlua/wxlua.h b/wxLua/apps/wxlua/wxlua.h index aae74c7d..ff51f7f5 100644 --- a/wxLua/apps/wxlua/wxlua.h +++ b/wxLua/apps/wxlua/wxlua.h @@ -13,9 +13,9 @@ #include -#include "wxlua/debugger/wxldtarg.h" -#include "wxlua/wxlstate.h" -#include "wxlua/wxlconsole.h" +#include "../../modules/wxlua/debugger/wxldtarg.h" +#include +#include // ---------------------------------------------------------------------------- // wxLuaStandaloneApp diff --git a/wxLua/apps/wxluacan/.gitignore b/wxLua/apps/wxluacan/.gitignore new file mode 100644 index 00000000..37773f3c --- /dev/null +++ b/wxLua/apps/wxluacan/.gitignore @@ -0,0 +1,7 @@ +/wxluacan +/wxluacan.exe + +/wxluacan_bind.flag +/wxluacan_bind.cpp +/wxluacan_bind.h +/wxluacan_datatypes.lua diff --git a/wxLua/apps/wxluacan/CMakeLists.txt b/wxLua/apps/wxluacan/CMakeLists.txt index 7307aefc..b6b9fb94 100644 --- a/wxLua/apps/wxluacan/CMakeLists.txt +++ b/wxLua/apps/wxluacan/CMakeLists.txt @@ -1,3 +1,4 @@ project( wxLua_Apps_wxLuaCan ) +wxLua_Binding_TARGETS() wxLua_Apps_wxLuaCan_TARGETS() diff --git a/wxLua/apps/wxluacan/Makefile b/wxLua/apps/wxluacan/Makefile index 918b1f60..271513a8 100644 --- a/wxLua/apps/wxluacan/Makefile +++ b/wxLua/apps/wxluacan/Makefile @@ -1,51 +1,87 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2004 -# Updated: -# Copyright: (c) 2002. J Winwood -# -# Makefile for wxLuaCan app using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -PROGRAM = wxLuaCan - -HEADERS = -SOURCES = cancom.cpp canlua.cpp cansim.cpp wxluacan_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -#APPEXTRALIBS := - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(wxLuaALL_TARGETS) $(PROGRAM) - -$(PROGRAM): $(OBJECTS) $(LUA_LIBS) - $(CXX) -o $@ $(OBJECTS) $(LDLIBS) $(APPEXTRALIBS) - -genwxbind: - $(LUA) -e"rulesFilename=\"wxluacan_rules.lua\"" $(WXLUA_DIR)/bindings/genwxbind.lua - -clean: - rm -f $(OBJECTS) $(DEPFILES) $(PROGRAM) core - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) +#---------------------------------------------------------------------------- +# Purpose: wxLuaCan application Makefile +# Author: Daniel Collins +# Created: 21/09/2025 +# Copyright: (c) 2025 Daniel Collins +# Licence: wxWidgets licence +#---------------------------------------------------------------------------- + +# This compiles a stand-alone sample application (wxLuaCan) which has its own +# custom wxLua bindings and demonstrates how to make use of the wxLua library +# Makefile from another project. + +ifeq ($(OS),Windows_NT) + WXLUACAN_APP := wxluacan.exe +else + WXLUACAN_APP := wxluacan +endif + +WXLUACAN_OBJS := \ + cancom.o \ + canlua.o \ + cansim.o \ + wxluacan_bind.o + +.PHONY: all +all: $(WXLUACAN_APP) + +# Define WXLUA_ROOT so the library Makefile file knows where the sources are. +WXLUA_ROOT := ../../ +include ../../Makefile + +clean: wxlua-clean + rm -f $(WXLUACAN_BINDING_OUTPUTS) + rm -f $(WXLUACAN_OBJS) + rm -f $(WXLUACAN_APP) + +# We take advantage of the library Makefile to provide us compiler flags for +# building against Lua and wxWidgets. If we were compiling wxLua as a part of a +# larger application we could instead handle that ourselves and ensure the flag +# variables are set prior to including the library Makefile for it to use ours +# instead. + +$(WXLUACAN_APP): $(WXLUACAN_OBJS) $(WXLUA_LIB) $(WXBIND_LIB) + $(CXX) $(CXXFLAGS) -o $@ $(WXLUACAN_OBJS) $(WXLUA_LIB) $(WXBIND_LIB) $(LUA_LIBS) $(WX_LIBS) + +# We add $(WXLUA_BIND_HEADERS) as a prerequisite here to ensure all of wxLua's +# bindings are built before our sources. This is a bit of a crude sledgehammer +# solution to the issue of build ordering, but unless you're making frequent +# changes to wxLua within the scope of a large application its probably not +# worth the extra effort of tracking which of your sources depend on which of +# wxLua's bindings. + +%.o: %.cpp $(WXLUA_BIND_HEADERS) + $(CXX) $(CXXFLAGS) $(LUA_CFLAGS) $(WX_CXXFLAGS) -I$(WXLUA_ROOT)/include/ -c -o $@ $< + +# Ensure canlua.cpp isn't compiled until our bindings are built. +canlua.o: wxluacan_bind.h + +# genwxbind.lua produces multiple files from a single command, this would +# ideally be handled as a Grouped Target, but those weren't introduced until +# GNU Make 4.3, so for the time being we have the old faithful hack of each +# of the output files depending on a dummy intermediate target which actually +# produces all of the outputs. + +WXLUACAN_BINDING_FLAG_FILE := wxluacan_bind.flag + +WXLUACAN_BINDING_INPUTS := \ + wxluacan_rules.lua \ + wxluacan.i \ + $(WXLUA_ROOT)bindings/wxwidgets/wx_datatypes.lua + +WXLUACAN_BINDING_OUTPUTS := \ + wxluacan_bind.cpp \ + wxluacan_bind.h \ + wxluacan_datatypes.lua + +# If any of the binding outputs are missing, we mark the intermediate as a +# phony target to force it to be re-run and produce any missing outputs. +ifneq ($(strip $(foreach x,$(WXLUACAN_BINDING_OUTPUTS),$(if $(wildcard $(x)),,$(x)))),) +.PHONY: $(WXLUACAN_BINDING_FLAG_FILE) +endif + +$(WXLUACAN_BINDING_FLAG_FILE): $(WXLUACAN_BINDING_INPUTS) + $(LUA) -e"rulesFilename=\"wxluacan_rules.lua\"" ../../bindings/genwxbind.lua + touch $@ + +$(WXLUACAN_BINDING_OUTPUTS): $(WXLUACAN_BINDING_FLAG_FILE) diff --git a/wxLua/apps/wxluacan/cansim.cpp b/wxLua/apps/wxluacan/cansim.cpp index 13f1c59c..4949a65d 100644 --- a/wxLua/apps/wxluacan/cansim.cpp +++ b/wxLua/apps/wxluacan/cansim.cpp @@ -21,7 +21,7 @@ // Include icon header #if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) - #include "art/wxlualogo.xpm" + #include "../../art/wxlualogo.xpm" #endif #if !wxCHECK_VERSION(2,9,2) @@ -37,7 +37,7 @@ // better chance of determining what libs are available. // Note : Make sure you link to the binding libraries. -#include "wxbind/include/wxbinddefs.h" +#include WXLUA_DECLARE_BIND_STD extern wxLuaBinding* wxLuaBinding_wxluacan_init(); diff --git a/wxLua/apps/wxluacan/wxluacan_bind.cpp b/wxLua/apps/wxluacan/wxluacan_bind.cpp deleted file mode 100644 index 1df56302..00000000 --- a/wxLua/apps/wxluacan/wxluacan_bind.cpp +++ /dev/null @@ -1,802 +0,0 @@ -// --------------------------------------------------------------------------- -// ./wxluacan.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxluacan_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - -// --------------------------------------------------------------------------- -// Bind class wxlCanObj -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlCanObj' -int wxluatype_wxlCanObj = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_AddObject[] = { &wxluatype_wxlCanObj, &wxluatype_wxlCanObj, NULL }; -static int LUACALL wxLua_wxlCanObj_AddObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_AddObject[1] = {{ wxLua_wxlCanObj_AddObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxlCanObj_AddObject }}; -// void AddObject( wxlCanObj *canobj ); -static int LUACALL wxLua_wxlCanObj_AddObject(lua_State *L) -{ - // wxlCanObj canobj - wxlCanObj * canobj = (wxlCanObj *)wxluaT_getuserdatatype(L, 2, wxluatype_wxlCanObj); - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call AddObject - self->AddObject(canobj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_GetX[] = { &wxluatype_wxlCanObj, NULL }; -static int LUACALL wxLua_wxlCanObj_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_GetX[1] = {{ wxLua_wxlCanObj_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxlCanObj_GetX }}; -// double GetX( ); -static int LUACALL wxLua_wxlCanObj_GetX(lua_State *L) -{ - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call GetX - double returns = (self->GetX()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_GetY[] = { &wxluatype_wxlCanObj, NULL }; -static int LUACALL wxLua_wxlCanObj_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_GetY[1] = {{ wxLua_wxlCanObj_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxlCanObj_GetY }}; -// double GetY( ); -static int LUACALL wxLua_wxlCanObj_GetY(lua_State *L) -{ - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call GetY - double returns = (self->GetY()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_SetBrush[] = { &wxluatype_wxlCanObj, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxlCanObj_SetBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_SetBrush[1] = {{ wxLua_wxlCanObj_SetBrush, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxlCanObj_SetBrush }}; -// void SetBrush( const wxBrush& brush ); -static int LUACALL wxLua_wxlCanObj_SetBrush(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call SetBrush - self->SetBrush(*brush); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_SetPen[] = { &wxluatype_wxlCanObj, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxlCanObj_SetPen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_SetPen[1] = {{ wxLua_wxlCanObj_SetPen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxlCanObj_SetPen }}; -// void SetPen( const wxPen& pen ); -static int LUACALL wxLua_wxlCanObj_SetPen(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call SetPen - self->SetPen(*pen); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_SetPending[] = { &wxluatype_wxlCanObj, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxlCanObj_SetPending(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_SetPending[1] = {{ wxLua_wxlCanObj_SetPending, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxlCanObj_SetPending }}; -// void SetPending( bool pending = true ); -static int LUACALL wxLua_wxlCanObj_SetPending(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool pending = true - bool pending = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call SetPending - self->SetPending(pending); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_SetPos[] = { &wxluatype_wxlCanObj, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxlCanObj_SetPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_SetPos[1] = {{ wxLua_wxlCanObj_SetPos, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxlCanObj_SetPos }}; -// void SetPos( double x, double y ); -static int LUACALL wxLua_wxlCanObj_SetPos(lua_State *L) -{ - // double y - double y = (double)wxlua_getnumbertype(L, 3); - // double x - double x = (double)wxlua_getnumbertype(L, 2); - // get this - wxlCanObj * self = (wxlCanObj *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObj); - // call SetPos - self->SetPos(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObj_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxlCanObj_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObj_constructor[1] = {{ wxLua_wxlCanObj_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxlCanObj_constructor }}; -// wxlCanObj( double x = 0, double y = 0 ); -static int LUACALL wxLua_wxlCanObj_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double y = 0 - double y = (argCount >= 2 ? (double)wxlua_getnumbertype(L, 2) : 0); - // double x = 0 - double x = (argCount >= 1 ? (double)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxlCanObj* returns = new wxlCanObj(x, y); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObj); - - return 1; -} - - - -void wxLua_wxlCanObj_delete_function(void** p) -{ - wxlCanObj* o = (wxlCanObj*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlCanObj_methods[] = { - { "AddObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_AddObject, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_GetY, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_SetBrush, 1, NULL }, - { "SetPen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_SetPen, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetPending", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_SetPending, 1, NULL }, - { "SetPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObj_SetPos, 1, NULL }, - { "wxlCanObj", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlCanObj_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxlCanObj_methodCount = sizeof(wxlCanObj_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxlCanObjRect -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlCanObjRect' -int wxluatype_wxlCanObjRect = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObjRect_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxlCanObjRect_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObjRect_constructor[1] = {{ wxLua_wxlCanObjRect_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxlCanObjRect_constructor }}; -// wxlCanObjRect( double x, double y, double w, double h ); -static int LUACALL wxLua_wxlCanObjRect_constructor(lua_State *L) -{ - // double h - double h = (double)wxlua_getnumbertype(L, 4); - // double w - double w = (double)wxlua_getnumbertype(L, 3); - // double y - double y = (double)wxlua_getnumbertype(L, 2); - // double x - double x = (double)wxlua_getnumbertype(L, 1); - // call constructor - wxlCanObjRect* returns = new wxlCanObjRect(x, y, w, h); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjRect); - - return 1; -} - - - -void wxLua_wxlCanObjRect_delete_function(void** p) -{ - wxlCanObjRect* o = (wxlCanObjRect*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlCanObjRect_methods[] = { - { "wxlCanObjRect", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlCanObjRect_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxlCanObjRect_methodCount = sizeof(wxlCanObjRect_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxlCanObjCircle -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlCanObjCircle' -int wxluatype_wxlCanObjCircle = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObjCircle_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxlCanObjCircle_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObjCircle_constructor[1] = {{ wxLua_wxlCanObjCircle_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxlCanObjCircle_constructor }}; -// wxlCanObjCircle( double x, double y, double r ); -static int LUACALL wxLua_wxlCanObjCircle_constructor(lua_State *L) -{ - // double r - double r = (double)wxlua_getnumbertype(L, 3); - // double y - double y = (double)wxlua_getnumbertype(L, 2); - // double x - double x = (double)wxlua_getnumbertype(L, 1); - // call constructor - wxlCanObjCircle* returns = new wxlCanObjCircle(x, y, r); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjCircle); - - return 1; -} - - - -void wxLua_wxlCanObjCircle_delete_function(void** p) -{ - wxlCanObjCircle* o = (wxlCanObjCircle*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlCanObjCircle_methods[] = { - { "wxlCanObjCircle", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlCanObjCircle_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxlCanObjCircle_methodCount = sizeof(wxlCanObjCircle_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxlCanObjScript -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlCanObjScript' -int wxluatype_wxlCanObjScript = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObjScript_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxlCanObjScript_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObjScript_constructor[1] = {{ wxLua_wxlCanObjScript_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxlCanObjScript_constructor }}; -// wxlCanObjScript( double x, double y, const wxString& name ); -static int LUACALL wxLua_wxlCanObjScript_constructor(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // double y - double y = (double)wxlua_getnumbertype(L, 2); - // double x - double x = (double)wxlua_getnumbertype(L, 1); - // call constructor - wxlCanObjScript* returns = new wxlCanObjScript(x, y, name); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjScript); - - return 1; -} - - - -void wxLua_wxlCanObjScript_delete_function(void** p) -{ - wxlCanObjScript* o = (wxlCanObjScript*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlCanObjScript_methods[] = { - { "wxlCanObjScript", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlCanObjScript_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxlCanObjScript_methodCount = sizeof(wxlCanObjScript_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxlCanObjAddScript -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlCanObjAddScript' -int wxluatype_wxlCanObjAddScript = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObjAddScript_SetScript[] = { &wxluatype_wxlCanObjAddScript, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxlCanObjAddScript_SetScript(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObjAddScript_SetScript[1] = {{ wxLua_wxlCanObjAddScript_SetScript, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxlCanObjAddScript_SetScript }}; -// void SetScript( const wxString& script ); -static int LUACALL wxLua_wxlCanObjAddScript_SetScript(lua_State *L) -{ - // const wxString script - const wxString script = wxlua_getwxStringtype(L, 2); - // get this - wxlCanObjAddScript * self = (wxlCanObjAddScript *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCanObjAddScript); - // call SetScript - self->SetScript(script); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCanObjAddScript_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxlCanObjAddScript_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCanObjAddScript_constructor[1] = {{ wxLua_wxlCanObjAddScript_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxlCanObjAddScript_constructor }}; -// wxlCanObjAddScript( double x, double y, const wxString& script ); -static int LUACALL wxLua_wxlCanObjAddScript_constructor(lua_State *L) -{ - // const wxString script - const wxString script = wxlua_getwxStringtype(L, 3); - // double y - double y = (double)wxlua_getnumbertype(L, 2); - // double x - double x = (double)wxlua_getnumbertype(L, 1); - // call constructor - wxlCanObjAddScript* returns = new wxlCanObjAddScript(x, y, script); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCanObjAddScript); - - return 1; -} - - - -void wxLua_wxlCanObjAddScript_delete_function(void** p) -{ - wxlCanObjAddScript* o = (wxlCanObjAddScript*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlCanObjAddScript_methods[] = { - { "SetScript", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCanObjAddScript_SetScript, 1, NULL }, - { "wxlCanObjAddScript", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlCanObjAddScript_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxlCanObjAddScript_methodCount = sizeof(wxlCanObjAddScript_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxlCan -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlCan' -int wxluatype_wxlCan = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCan_AddObject[] = { &wxluatype_wxlCan, &wxluatype_wxlCanObj, NULL }; -static int LUACALL wxLua_wxlCan_AddObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCan_AddObject[1] = {{ wxLua_wxlCan_AddObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxlCan_AddObject }}; -// void AddObject( wxlCanObj *canobj ); -static int LUACALL wxLua_wxlCan_AddObject(lua_State *L) -{ - // wxlCanObj canobj - wxlCanObj * canobj = (wxlCanObj *)wxluaT_getuserdatatype(L, 2, wxluatype_wxlCanObj); - // get this - wxlCan * self = (wxlCan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCan); - // call AddObject - self->AddObject(canobj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCan_GetCmdh[] = { &wxluatype_wxlCan, NULL }; -static int LUACALL wxLua_wxlCan_GetCmdh(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCan_GetCmdh[1] = {{ wxLua_wxlCan_GetCmdh, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxlCan_GetCmdh }}; -// wxlLuaCanCmd* GetCmdh( ); -static int LUACALL wxLua_wxlCan_GetCmdh(lua_State *L) -{ - // get this - wxlCan * self = (wxlCan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCan); - // call GetCmdh - wxlLuaCanCmd* returns = (wxlLuaCanCmd*)self->GetCmdh(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlLuaCanCmd); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCan_GetYaxis[] = { &wxluatype_wxlCan, NULL }; -static int LUACALL wxLua_wxlCan_GetYaxis(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCan_GetYaxis[1] = {{ wxLua_wxlCan_GetYaxis, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxlCan_GetYaxis }}; -// bool GetYaxis( ); -static int LUACALL wxLua_wxlCan_GetYaxis(lua_State *L) -{ - // get this - wxlCan * self = (wxlCan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCan); - // call GetYaxis - bool returns = (self->GetYaxis()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxlCan_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxlCan_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlCan_constructor[1] = {{ wxLua_wxlCan_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxlCan_constructor }}; -// wxlCan( wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize ); -static int LUACALL wxLua_wxlCan_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxlCan* returns = new wxlCan(parent, id, *pos, *size); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCan); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - - - -void wxLua_wxlCan_delete_function(void** p) -{ - wxlCan* o = (wxlCan*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlCan_methods[] = { - { "AddObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCan_AddObject, 1, NULL }, - { "GetCmdh", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCan_GetCmdh, 1, NULL }, - { "GetYaxis", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlCan_GetYaxis, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxlCan", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlCan_constructor, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { 0, 0, 0, 0 }, -}; - -int wxlCan_methodCount = sizeof(wxlCan_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxlLuaCanCmd -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxlLuaCanCmd' -int wxluatype_wxlLuaCanCmd = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlLuaCanCmd_MoveObject[] = { &wxluatype_wxlLuaCanCmd, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxlLuaCanCmd_MoveObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlLuaCanCmd_MoveObject[1] = {{ wxLua_wxlLuaCanCmd_MoveObject, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxlLuaCanCmd_MoveObject }}; -// void MoveObject( int index, double x, double y ); -static int LUACALL wxLua_wxlLuaCanCmd_MoveObject(lua_State *L) -{ - // double y - double y = (double)wxlua_getnumbertype(L, 4); - // double x - double x = (double)wxlua_getnumbertype(L, 3); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxlLuaCanCmd * self = (wxlLuaCanCmd *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlLuaCanCmd); - // call MoveObject - self->MoveObject(index, x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxlLuaCanCmd_constructor[] = { &wxluatype_wxlCan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxlLuaCanCmd_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxlLuaCanCmd_constructor[1] = {{ wxLua_wxlLuaCanCmd_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxlLuaCanCmd_constructor }}; -// wxlLuaCanCmd( wxlCan* canvas, int maxCommands = -1 ); -static int LUACALL wxLua_wxlLuaCanCmd_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int maxCommands = -1 - int maxCommands = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // wxlCan canvas - wxlCan * canvas = (wxlCan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxlCan); - // call constructor - wxlLuaCanCmd* returns = new wxlLuaCanCmd(canvas, maxCommands); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlLuaCanCmd); - - return 1; -} - - - -void wxLua_wxlLuaCanCmd_delete_function(void** p) -{ - wxlLuaCanCmd* o = (wxlLuaCanCmd*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxlLuaCanCmd_methods[] = { - { "MoveObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxlLuaCanCmd_MoveObject, 1, NULL }, - { "wxlLuaCanCmd", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxlLuaCanCmd_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxlLuaCanCmd_methodCount = sizeof(wxlLuaCanCmd_methods)/sizeof(wxLuaBindMethod) - 1; - - - - -// --------------------------------------------------------------------------- -// ./wxluacan_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxluacan() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxluacan(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxluacan() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxluacan(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxluacan() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxluacan(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxluacan() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxluacan(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxluacan() is called to register global functions -// --------------------------------------------------------------------------- - -// wxlCan* GetCan( ); -static int LUACALL wxLua_function_GetCan(lua_State *L) -{ - // call GetCan - wxlCan* returns = (wxlCan*)GetCan(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlCan); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetCan[1] = {{ wxLua_function_GetCan, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxlLuaCanCmd* GetCmdhMain( ); -static int LUACALL wxLua_function_GetCmdhMain(lua_State *L) -{ - // call GetCmdhMain - wxlLuaCanCmd* returns = (wxlLuaCanCmd*)GetCmdhMain(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxlLuaCanCmd); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetCmdhMain[1] = {{ wxLua_function_GetCmdhMain, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxluacan() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxluacan(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - { "GetCan", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetCan, 1, NULL }, - { "GetCmdhMain", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetCmdhMain, 1, NULL }, - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxluacan() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxCommandProcessor = "wxCommandProcessor"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxScrolledWindow = "wxScrolledWindow"; -static const char* wxluaclassname_wxlCan = "wxlCan"; -static const char* wxluaclassname_wxlCanObj = "wxlCanObj"; -static const char* wxluaclassname_wxlCanObjAddScript = "wxlCanObjAddScript"; -static const char* wxluaclassname_wxlCanObjCircle = "wxlCanObjCircle"; -static const char* wxluaclassname_wxlCanObjRect = "wxlCanObjRect"; -static const char* wxluaclassname_wxlCanObjScript = "wxlCanObjScript"; -static const char* wxluaclassname_wxlLuaCanCmd = "wxlLuaCanCmd"; - -static const char* wxluabaseclassnames_wxlCan[] = { wxluaclassname_wxScrolledWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlCan[] = { NULL }; -static const char* wxluabaseclassnames_wxlCanObj[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlCanObj[] = { NULL }; -static const char* wxluabaseclassnames_wxlCanObjAddScript[] = { wxluaclassname_wxlCanObj, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlCanObjAddScript[] = { NULL }; -static const char* wxluabaseclassnames_wxlCanObjCircle[] = { wxluaclassname_wxlCanObj, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlCanObjCircle[] = { NULL }; -static const char* wxluabaseclassnames_wxlCanObjRect[] = { wxluaclassname_wxlCanObj, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlCanObjRect[] = { NULL }; -static const char* wxluabaseclassnames_wxlCanObjScript[] = { wxluaclassname_wxlCanObj, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlCanObjScript[] = { NULL }; -static const char* wxluabaseclassnames_wxlLuaCanCmd[] = { wxluaclassname_wxCommandProcessor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxlLuaCanCmd[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern wxLuaBindMethod wxlCan_methods[]; -extern int wxlCan_methodCount; -static wxLuaArgType wxluabaseclass_wxluatypes_wxlCan[] = { &wxluatype_wxScrollHelper, NULL }; -static wxIntPtr wxluabaseclass_vtable_offsets_wxlCan[] = { wxIntPtr(((wxIntPtr)(wxScrollHelper*)(wxlCan*)&wxluatype_TNONE) - ((wxIntPtr)(wxlCan*)&wxluatype_TNONE)) }; -extern void wxLua_wxlCan_delete_function(void** p); -extern wxLuaBindMethod wxlCanObj_methods[]; -extern int wxlCanObj_methodCount; -extern void wxLua_wxlCanObj_delete_function(void** p); -extern wxLuaBindMethod wxlCanObjAddScript_methods[]; -extern int wxlCanObjAddScript_methodCount; -extern void wxLua_wxlCanObjAddScript_delete_function(void** p); -extern wxLuaBindMethod wxlCanObjCircle_methods[]; -extern int wxlCanObjCircle_methodCount; -extern void wxLua_wxlCanObjCircle_delete_function(void** p); -extern wxLuaBindMethod wxlCanObjRect_methods[]; -extern int wxlCanObjRect_methodCount; -extern void wxLua_wxlCanObjRect_delete_function(void** p); -extern wxLuaBindMethod wxlCanObjScript_methods[]; -extern int wxlCanObjScript_methodCount; -extern void wxLua_wxlCanObjScript_delete_function(void** p); -extern wxLuaBindMethod wxlLuaCanCmd_methods[]; -extern int wxlLuaCanCmd_methodCount; -extern void wxLua_wxlLuaCanCmd_delete_function(void** p); - - - - -wxLuaBindClass* wxLuaGetClassList_wxluacan(size_t &count) -{ - static wxLuaBindClass classList[] = - { - { wxluaclassname_wxlCan, wxlCan_methods, wxlCan_methodCount, CLASSINFO(wxlCan), &wxluatype_wxlCan, wxluabaseclassnames_wxlCan, wxluabaseclassbinds_wxlCan, wxluabaseclass_wxluatypes_wxlCan, wxluabaseclass_vtable_offsets_wxlCan, NULL, 0, &wxLua_wxlCan_delete_function, }, - { wxluaclassname_wxlCanObj, wxlCanObj_methods, wxlCanObj_methodCount, CLASSINFO(wxlCanObj), &wxluatype_wxlCanObj, wxluabaseclassnames_wxlCanObj, wxluabaseclassbinds_wxlCanObj, NULL, NULL, NULL, 0, &wxLua_wxlCanObj_delete_function, }, - { wxluaclassname_wxlCanObjAddScript, wxlCanObjAddScript_methods, wxlCanObjAddScript_methodCount, CLASSINFO(wxlCanObjAddScript), &wxluatype_wxlCanObjAddScript, wxluabaseclassnames_wxlCanObjAddScript, wxluabaseclassbinds_wxlCanObjAddScript, NULL, NULL, NULL, 0, &wxLua_wxlCanObjAddScript_delete_function, }, - { wxluaclassname_wxlCanObjCircle, wxlCanObjCircle_methods, wxlCanObjCircle_methodCount, CLASSINFO(wxlCanObjCircle), &wxluatype_wxlCanObjCircle, wxluabaseclassnames_wxlCanObjCircle, wxluabaseclassbinds_wxlCanObjCircle, NULL, NULL, NULL, 0, &wxLua_wxlCanObjCircle_delete_function, }, - { wxluaclassname_wxlCanObjRect, wxlCanObjRect_methods, wxlCanObjRect_methodCount, CLASSINFO(wxlCanObjRect), &wxluatype_wxlCanObjRect, wxluabaseclassnames_wxlCanObjRect, wxluabaseclassbinds_wxlCanObjRect, NULL, NULL, NULL, 0, &wxLua_wxlCanObjRect_delete_function, }, - { wxluaclassname_wxlCanObjScript, wxlCanObjScript_methods, wxlCanObjScript_methodCount, CLASSINFO(wxlCanObjScript), &wxluatype_wxlCanObjScript, wxluabaseclassnames_wxlCanObjScript, wxluabaseclassbinds_wxlCanObjScript, NULL, NULL, NULL, 0, &wxLua_wxlCanObjScript_delete_function, }, - { wxluaclassname_wxlLuaCanCmd, wxlLuaCanCmd_methods, wxlLuaCanCmd_methodCount, CLASSINFO(wxlLuaCanCmd), &wxluatype_wxlLuaCanCmd, wxluabaseclassnames_wxlLuaCanCmd, wxluabaseclassbinds_wxlLuaCanCmd, NULL, NULL, NULL, 0, &wxLua_wxlLuaCanCmd_delete_function, }, - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxluacan() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxluacan, wxLuaBinding) - -wxLuaBinding_wxluacan::wxLuaBinding_wxluacan() : wxLuaBinding() -{ - m_bindingName = wxT("wxluacan"); - m_nameSpace = wxT("wxluacan"); - m_classArray = wxLuaGetClassList_wxluacan(m_classCount); - m_numberArray = wxLuaGetDefineList_wxluacan(m_numberCount); - m_stringArray = wxLuaGetStringList_wxluacan(m_stringCount); - m_eventArray = wxLuaGetEventList_wxluacan(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxluacan(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxluacan(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxluacan_init() -{ - static wxLuaBinding_wxluacan m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/apps/wxluacan/wxluacan_bind.h b/wxLua/apps/wxluacan/wxluacan_bind.h deleted file mode 100644 index 2473fad5..00000000 --- a/wxLua/apps/wxluacan/wxluacan_bind.h +++ /dev/null @@ -1,64 +0,0 @@ -// --------------------------------------------------------------------------- -// wxluacan.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxluacan_H__ -#define __HOOK_WXLUA_wxluacan_H__ - -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXLUA_NO_DLLIMPEXP wxLuaBinding_wxluacan : public wxLuaBinding -{ -public: - wxLuaBinding_wxluacan(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxluacan) -}; - - -// initialize wxLuaBinding_wxluacan for all wxLuaStates -extern WXLUA_NO_DLLIMPEXP wxLuaBinding* wxLuaBinding_wxluacan_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#include "cancom.h" -#include "canlua.h" -#include "cansim.h" -#include "wx/gdicmn.h" - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlCan; -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlCanObj; -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlCanObjAddScript; -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlCanObjCircle; -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlCanObjRect; -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlCanObjScript; -extern WXLUA_NO_DLLIMPEXP_DATA(int) wxluatype_wxlLuaCanCmd; - - - -#endif // __HOOK_WXLUA_wxluacan_H__ - diff --git a/wxLua/apps/wxluacan/wxluacan_rules.lua b/wxLua/apps/wxluacan/wxluacan_rules.lua index c0a5e462..34982bd3 100644 --- a/wxLua/apps/wxluacan/wxluacan_rules.lua +++ b/wxLua/apps/wxluacan/wxluacan_rules.lua @@ -70,7 +70,7 @@ hook_cpp_binding_post_includes = "" -- ---------------------------------------------------------------------------- -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file -hook_cpp_binding_header_includes = "#include \"wxbind/include/wxcore_bind.h\"\n" +hook_cpp_binding_header_includes = "#include \n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/apps/wxluaedit/.gitignore b/wxLua/apps/wxluaedit/.gitignore new file mode 100644 index 00000000..38385154 --- /dev/null +++ b/wxLua/apps/wxluaedit/.gitignore @@ -0,0 +1,2 @@ +/wxluaedit +/wxluaedit.exe diff --git a/wxLua/apps/wxluaedit/Makefile b/wxLua/apps/wxluaedit/Makefile index f20eca2f..98befedf 100644 --- a/wxLua/apps/wxluaedit/Makefile +++ b/wxLua/apps/wxluaedit/Makefile @@ -1,48 +1,51 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2004 -# Updated: -# Copyright: (c) 2002. J Winwood -# -# Makefile for wxLuaEditor app using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -PROGRAM = wxLuaEditor - -HEADERS = -SOURCES = wxluaedit.cpp wxledit.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -APPEXTRALIBS := -L$(WXSTEDIT_DIR)/lib -l$(WXSTEDIT_LIB) $(APPEXTRALIBS) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(wxLuaALL_TARGETS) $(PROGRAM) - -$(PROGRAM): wxStEdit $(OBJECTS) - $(CXX) -o $@ $(OBJECTS) $(LDLIBS) $(APPEXTRALIBS) - -clean: - rm -f $(OBJECTS) $(DEPFILES) $(PROGRAM) core - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) +#---------------------------------------------------------------------------- +# Purpose: wxLuaEdit application Makefile +# Author: Daniel Collins +# Created: 21/09/2025 +# Copyright: (c) 2025 Daniel Collins +# Licence: wxWidgets licence +#---------------------------------------------------------------------------- + +# This compiles a stand-alone application (wxLuaEdit) and demonstrates how to +# make use of the wxLua library Makefile from another project. + +ifeq ($(OS),Windows_NT) + APP := wxluaedit.exe +else + APP := wxluaedit +endif + +OBJS := \ + wxledit.o \ + wxluaedit.o + +.PHONY: all +all: $(APP) + +# Define WXLUA_ROOT so the library Makefile file knows where the sources are. +WXLUA_ROOT := ../../ +include ../../Makefile + +# Depend on wxlua-clean to run the library clean target too. +clean: wxlua-clean + rm -f $(OBJS) + rm -f $(APP) + +# We take advantage of the library Makefile to provide us compiler flags for +# building against Lua and wxWidgets. If we were compiling wxLua as a part of a +# larger application we could instead handle that ourselves and ensure the flag +# variables are set prior to including the library Makefile for it to use ours +# instead. + +$(APP): $(OBJS) $(WXLUA_LIB) $(WXBIND_LIB) + $(CXX) $(CXXFLAGS) -o $@ $^ $(LUA_LIBS) $(WX_LIBS) + +# We add $(WXLUA_BIND_HEADERS) as a prerequisite here to ensure all of wxLua's +# bindings are built before our sources. This is a bit of a crude sledgehammer +# solution to the issue of build ordering, but unless you're making frequent +# changes to wxLua within the scope of a large application its probably not +# worth the extra effort of tracking which of your sources depend on which of +# wxLua's bindings. + +%.o: %.cpp $(WXLUA_BIND_HEADERS) + $(CXX) $(CXXFLAGS) $(LUA_CFLAGS) $(WX_CXXFLAGS) -I$(WXLUA_ROOT)/include/ -c -o $@ $< diff --git a/wxLua/apps/wxluaedit/wxledit.h b/wxLua/apps/wxluaedit/wxledit.h index 7ea42426..269de3df 100644 --- a/wxLua/apps/wxluaedit/wxledit.h +++ b/wxLua/apps/wxluaedit/wxledit.h @@ -11,7 +11,7 @@ #ifndef _WX_LUAEDITOR_H_ #define _WX_LUAEDITOR_H_ -#include "wxlua/wxlstate.h" +#include class WXDLLIMPEXP_FWD_CORE wxMenu; class WXDLLIMPEXP_FWD_CORE wxKeyEvent; diff --git a/wxLua/apps/wxluafreeze/.gitignore b/wxLua/apps/wxluafreeze/.gitignore new file mode 100644 index 00000000..1e140f4a --- /dev/null +++ b/wxLua/apps/wxluafreeze/.gitignore @@ -0,0 +1,2 @@ +/wxluafreeze +/wxluafreeze.exe diff --git a/wxLua/apps/wxluafreeze/Makefile b/wxLua/apps/wxluafreeze/Makefile index 172e2801..754a75e2 100644 --- a/wxLua/apps/wxluafreeze/Makefile +++ b/wxLua/apps/wxluafreeze/Makefile @@ -1,48 +1,50 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2004 -# Updated: -# Copyright: (c) 2002. J Winwood -# -# Makefile for wxLuaFreeze sample using gmake - -PROGRAM = wxLuaFreeze - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = wxluafreeze.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -#APPEXTRALIBS := $(APPEXTRALIBS) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(wxLuaALL_TARGETS) $(PROGRAM) - -$(PROGRAM): $(OBJECTS) - $(CXX) -o $@ $(OBJECTS) $(LDLIBS) $(APPEXTRALIBS) - -clean: - rm -f $(OBJECTS) $(DEPFILES) $(PROGRAM) core - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) +#---------------------------------------------------------------------------- +# Purpose: wxLuaFreeze application Makefile +# Author: Daniel Collins +# Created: 21/09/2025 +# Copyright: (c) 2025 Daniel Collins +# Licence: wxWidgets licence +#---------------------------------------------------------------------------- + +# This compiles a stand-alone application (wxLuaFreeze) and demonstrates how to +# make use of the wxLua library Makefile from another project. + +ifeq ($(OS),Windows_NT) + APP := wxluafreeze.exe +else + APP := wxluafreeze +endif + +OBJS := \ + wxluafreeze.o + +.PHONY: all +all: $(APP) + +# Define WXLUA_ROOT so the library Makefile file knows where the sources are. +WXLUA_ROOT := ../../ +include ../../Makefile + +# Depend on wxlua-clean to run the library clean target too. +clean: wxlua-clean + rm -f $(OBJS) + rm -f $(APP) + +# We take advantage of the library Makefile to provide us compiler flags for +# building against Lua and wxWidgets. If we were compiling wxLua as a part of a +# larger application we could instead handle that ourselves and ensure the flag +# variables are set prior to including the library Makefile for it to use ours +# instead. + +$(APP): $(OBJS) $(WXLUA_LIB) $(WXLUA_DEBUGGER_LIB) $(WXLUA_DEBUG_LIB) $(WXBIND_LIB) + $(CXX) $(CXXFLAGS) -o $@ $^ $(LUA_LIBS) $(WX_LIBS) + +# We add $(WXLUA_BIND_HEADERS) as a prerequisite here to ensure all of wxLua's +# bindings are built before our sources. This is a bit of a crude sledgehammer +# solution to the issue of build ordering, but unless you're making frequent +# changes to wxLua within the scope of a large application its probably not +# worth the extra effort of tracking which of your sources depend on which of +# wxLua's bindings. + +%.o: %.cpp $(WXLUA_BIND_HEADERS) + $(CXX) $(CXXFLAGS) $(LUA_CFLAGS) $(WX_CXXFLAGS) -I$(WXLUA_ROOT)/include/ -c -o $@ $< diff --git a/wxLua/apps/wxluafreeze/wxluafreeze.cpp b/wxLua/apps/wxluafreeze/wxluafreeze.cpp index c293823c..27042f9a 100644 --- a/wxLua/apps/wxluafreeze/wxluafreeze.cpp +++ b/wxLua/apps/wxluafreeze/wxluafreeze.cpp @@ -45,7 +45,7 @@ wxFileName wxFindAppFullName(const wxString& argv0, const wxString& cwd, const w // better chance of determining what libs are available. // Note : Make sure you link to the binding libraries. -#include "wxbind/include/wxbinddefs.h" +#include WXLUA_DECLARE_BIND_ALL // unique identifier to return for missing script diff --git a/wxLua/bindings/Makefile b/wxLua/bindings/Makefile deleted file mode 100644 index 25d17850..00000000 --- a/wxLua/bindings/Makefile +++ /dev/null @@ -1,120 +0,0 @@ -# Make all the bindings in Linux or in Cygwin. - -# The root wxLua directory. -WXLUA_DIR = ../ - -#---------------------------------------------------------------------------- - -# If we're using cygwin, the lua executable maybe elsewhere, try some common places. -# Note some other variables cygwin sets don't seem to be exported. -ifeq (Cygwin, $(findstring Cygwin, $(XTERM_VERSION))) - LUA=$(WXLUA_DIR)/bin/vc_lib/lua.exe -else - LUA=$(WXLUA_DIR)/bin/lua -endif - -LUA_ABS = $(realpath $(LUA)) - -#---------------------------------------------------------------------------- - -ALL_BINDINGS = wxbase wxcore wxadv wxaui wxgl wxhtml wxnet wxmedia wxstc wxxml wxxrc wxpropgrid wxrichtext wxwebview wxlua wxlua_debugger wxluacan wxdatatypes - -# Always try to build all targets, let the other Makefiles do dep checking -.PHONY: all clean genidocs $(ALL_BINDINGS) - -# These have to be in order of their dependencies -all: $(ALL_BINDINGS) - -#---------------------------------------------------------------------------- -# wxWidgets bindings - -wxadv: wxcore - @echo Building wxAdv - @($(LUA) -e"rulesFilename=\"wxwidgets/wxadv_rules.lua\"" genwxbind.lua) - -wxaui: wxcore - @echo Building wxAui - @($(LUA) -e"rulesFilename=\"wxwidgets/wxaui_rules.lua\"" genwxbind.lua) - -wxbase: - @echo Building wxBase - @($(LUA) -e"rulesFilename=\"wxwidgets/wxbase_rules.lua\"" genwxbind.lua) - -wxcore: wxbase - @echo Building wxCore - @($(LUA) -e"rulesFilename=\"wxwidgets/wxcore_rules.lua\"" genwxbind.lua) - -wxgl: wxcore - @echo Building wxGL - @($(LUA) -e"rulesFilename=\"wxwidgets/wxgl_rules.lua\"" genwxbind.lua) - -wxhtml: wxcore - @echo Building wxHtml - @($(LUA) -e"rulesFilename=\"wxwidgets/wxhtml_rules.lua\"" genwxbind.lua) - -wxmedia: wxcore wxnet - @echo Building wxMedia - @($(LUA) -e"rulesFilename=\"wxwidgets/wxmedia_rules.lua\"" genwxbind.lua) - -wxnet: wxcore - @echo Building wxNet - @($(LUA) -e"rulesFilename=\"wxwidgets/wxnet_rules.lua\"" genwxbind.lua) - -wxpropgrid: wxcore - @echo Building wxPropertyGrid - @($(LUA) -e"rulesFilename=\"wxwidgets/wxpropgrid_rules.lua\"" genwxbind.lua) - -wxrichtext: wxcore - @echo Building wxRichText - @($(LUA) -e"rulesFilename=\"wxwidgets/wxrichtext_rules.lua\"" genwxbind.lua) - -wxstc: wxcore - @echo Building wxStc - @($(LUA) -e"rulesFilename=\"wxwidgets/wxstc_rules.lua\"" genwxbind.lua) - -wxwebview: wxcore - @echo Building wxWebView - @($(LUA) -e"rulesFilename=\"wxwidgets/wxwebview_rules.lua\"" genwxbind.lua) - -wxxml: wxbase - @echo Building wxXml - @($(LUA) -e"rulesFilename=\"wxwidgets/wxxml_rules.lua\"" genwxbind.lua) - -wxxrc: wxcore - @echo Building wxXrc - @($(LUA) -e"rulesFilename=\"wxwidgets/wxxrc_rules.lua\"" genwxbind.lua) - -# --------------------------------------------------------------------------- -# wxLua bindings - -wxlua: wxbase - @echo Building wxLua - @($(LUA) -e"rulesFilename=\"wxlua/wxlua_rules.lua\"" genwxbind.lua) - -wxlua_debugger: wxcore - @echo Building wxLuaDebugger - @($(LUA) -e"rulesFilename=\"wxlua_debugger/wxluadebugger_rules.lua\"" genwxbind.lua) - -# --------------------------------------------------------------------------- - -wxluacan: wxdatatypes - @echo Building wxLuaCan - @(cd $(WXLUA_DIR)/apps/wxluacan && $(MAKE) LUA=$(LUA_ABS) genwxbind) - -# --------------------------------------------------------------------------- -# Generate the datatypes file that declares all the known data types. - -wxdatatypes: wxadv wxaui wxbase wxcore wxgl wxhtml wxmedia wxnet wxrichtext wxstc wxxml wxxrc - @echo Building wx DataTypes - @($(LUA) -e"rulesFilename=\"wxwidgets/wxdatatypes_rules.lua\"" genwxbind.lua) - -# --------------------------------------------------------------------------- -# make the wxluaref.htm documentation - -genidocs: - @($(LUA) -e"rulesFilename=\"genidocs_rules.lua\"" genidocs.lua) - -# --------------------------------------------------------------------------- -# do nothing to clean - -clean: diff --git a/wxLua/bindings/genwxbind.lua b/wxLua/bindings/genwxbind.lua index e9db1c3d..774f5ee4 100644 --- a/wxLua/bindings/genwxbind.lua +++ b/wxLua/bindings/genwxbind.lua @@ -1541,6 +1541,46 @@ function GetCPPHeaderFileName(filename) return output_cpp_header_filepath.."/"..name[1]..".h" end +function GetCPPHeaderIncludePath(cpp_filename, h_filename) + -- First, we split the relative .cpp and .h paths into an array of filename components. + local cpp_split = SplitString(cpp_filename, { "/", "\\" }) + local h_split = SplitString(h_filename, { "/", "\\" }) + + -- Then, we remove any common leading components, leaving us the components from the directory + -- where they diverge. + while #cpp_split > 0 and #h_split > 0 and cpp_split[1] == h_split[1] + do + table.remove(cpp_split, 1) + table.remove(h_split, 1) + end + + -- Then, we add ../ to the base of our computed path enough times to get from the .cpp file to + -- the common ancestor. + local h_rel_path = "" + for i = 1, (#cpp_split - 1) + do + h_rel_path = h_rel_path .. "../" + end + + -- And finally, we add the remaining components from h_split to reach the header. + for i = 1, #h_split + do + h_rel_path = h_rel_path .. h_split[i] + + if i < #h_split + then + h_rel_path = h_rel_path .. "/" + end + end + + return h_rel_path +end + +function GetFileBaseName(filename) + local splitpath = SplitString(filename, { "/", "\\" }) + return splitpath[#splitpath] +end + -- --------------------------------------------------------------------------- -- Load an interface file creating a table {FileName, LineNumber, Tags, Line} -- --------------------------------------------------------------------------- @@ -1661,7 +1701,7 @@ function WriteWrapperFiles(interfaceList) if output_single_cpp_binding_file then monolithicFileData[#monolithicFileData+1] = "\n\n" else - local written = WriteTableToFile(interface.CPPFileName, fileData, false) + local written = WriteTableToFile(interface.CPPFileName, fileData, true) if written then updated_files = updated_files + 1 end @@ -1669,7 +1709,7 @@ function WriteWrapperFiles(interfaceList) end local fileData = GenerateHookHeaderFileTable() - local written = WriteTableToFile(GetCPPHeaderFileName(hook_cpp_header_filename), fileData, false) + local written = WriteTableToFile(GetCPPHeaderFileName(hook_cpp_header_filename), fileData, true) if written then updated_files = updated_files + 1 end @@ -1686,7 +1726,7 @@ function WriteWrapperFiles(interfaceList) fileData = GenerateHookObjectFileTable(fileData) fileData = GenerateHookCFunctionFileTable(fileData) fileData = GenerateHookClassFileTable(fileData) - written = WriteTableToFile(GetCPPFileName(hook_cpp_binding_filename), fileData, false) + written = WriteTableToFile(GetCPPFileName(hook_cpp_binding_filename), fileData, true) if written then updated_files = updated_files + 1 end @@ -4763,8 +4803,8 @@ function GenerateHookHeaderFileTable() table.insert(fileData, (hook_cpp_binding_header_includes or "").."\n") - table.insert(fileData, "#include \"wxlua/wxlstate.h\"\n") - table.insert(fileData, "#include \"wxlua/wxlbind.h\"\n\n") + table.insert(fileData, "#include \n") + table.insert(fileData, "#include \n\n") table.insert(fileData, "// ---------------------------------------------------------------------------\n") table.insert(fileData, "// Check if the version of binding generator used to create this is older than\n") @@ -4892,8 +4932,8 @@ function GenerateHookCppFileHeader(fileData, fileName, add_includes) table.insert(fileData, " #include \"wx/wx.h\"\n") table.insert(fileData, "#endif\n") table.insert(fileData, "\n") - table.insert(fileData, "#include \"wxlua/wxlstate.h\"\n") - table.insert(fileData, "#include \""..hook_cpp_header_filename.."\"\n") + table.insert(fileData, "#include \n") + table.insert(fileData, "#include \"" .. GetCPPHeaderIncludePath(GetCPPFileName(hook_cpp_binding_filename), GetCPPHeaderFileName(hook_cpp_header_filename)) .. "\"\n") table.insert(fileData, hook_cpp_binding_post_includes or "") table.insert(fileData, "\n") @@ -5570,7 +5610,7 @@ function SerializeDataTypes(filename) table.insert(fileData, " preprocConditionTable[k] = v\n") table.insert(fileData, " end\n") - WriteTableToFile(filename, fileData, false) + WriteTableToFile(filename, fileData, true) end -- http://www2.dcs.elf.stuba.sk/TeamProject/2003/team05/produkt/player/utils/serialize/serialize.lua diff --git a/wxLua/bindings/wxlua/Makefile b/wxLua/bindings/wxlua/Makefile deleted file mode 100644 index 486ad56d..00000000 --- a/wxLua/bindings/wxlua/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002. J Winwood - -WXLUA_DIR = ../.. - -all: genwxbind - -genwxbind: - @(cd $(WXLUA_DIR)/bindings && ../bin/lua -e"rulesFilename=\"wxlua/wxlua_rules.lua\"" genwxbind.lua) - -# do nothing to clean -clean: diff --git a/wxLua/bindings/wxlua/wxlua.i b/wxLua/bindings/wxlua/wxlua.i index 911c3b36..e8cb8d45 100644 --- a/wxLua/bindings/wxlua/wxlua.i +++ b/wxLua/bindings/wxlua/wxlua.i @@ -231,7 +231,7 @@ struct wxLuaBindCFunc // --------------------------------------------------------------------------- // wxLuaState -#include "wxlua/wxlstate.h" +#include "wxlstate.h" class %delete wxLuaState : public wxObject { diff --git a/wxLua/bindings/wxlua/wxlua_rules.lua b/wxLua/bindings/wxlua/wxlua_rules.lua index 5477ae0c..47bfc73d 100644 --- a/wxLua/bindings/wxlua/wxlua_rules.lua +++ b/wxLua/bindings/wxlua/wxlua_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxlua" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxlua" +output_cpp_header_filepath = wxlua_dir.."include/wxlua" output_cpp_filepath = wxlua_dir.."modules/wxlua" -- ============================================================================ diff --git a/wxLua/bindings/wxlua_debugger/Makefile b/wxLua/bindings/wxlua_debugger/Makefile deleted file mode 100644 index 1360b3d4..00000000 --- a/wxLua/bindings/wxlua_debugger/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002. J Winwood - -WXLUA_DIR = ../.. - -all: genwxbind - -genwxbind: - @(cd $(WXLUA_DIR)/bindings && ../bin/lua -e"rulesFilename=\"wxlua_debugger/wxluadebugger_rules.lua\"" genwxbind.lua) - -# do nothing to clean -clean: diff --git a/wxLua/bindings/wxlua_debugger/wxluadebugger.i b/wxLua/bindings/wxlua_debugger/wxluadebugger.i index 9ca9d7fa..d7dd5378 100644 --- a/wxLua/bindings/wxlua_debugger/wxluadebugger.i +++ b/wxLua/bindings/wxlua_debugger/wxluadebugger.i @@ -23,7 +23,7 @@ void LuaStackDialog( ); // --------------------------------------------------------------------------- // wxLuaDebugServer -#include "wxlua/debugger/wxldserv.h" +#include "wxldserv.h" class %delete wxLuaDebuggerServer : public wxEvtHandler { diff --git a/wxLua/bindings/wxlua_debugger/wxluadebugger_rules.lua b/wxLua/bindings/wxlua_debugger/wxluadebugger_rules.lua index 7796e640..fa704647 100644 --- a/wxLua/bindings/wxlua_debugger/wxluadebugger_rules.lua +++ b/wxLua/bindings/wxlua_debugger/wxluadebugger_rules.lua @@ -76,8 +76,8 @@ hook_cpp_binding_post_includes = "" -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = "#include \"wx/defs.h\"\n".. - "#include \"wxlua/debugger/wxluadebuggerdefs.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxluadebuggerdefs.h\"\n".. + "#include \n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wx_datatypes.lua b/wxLua/bindings/wxwidgets/wx_datatypes.lua deleted file mode 100644 index cab272c1..00000000 --- a/wxLua/bindings/wxwidgets/wx_datatypes.lua +++ /dev/null @@ -1,7553 +0,0 @@ --- --------------------------------------------------------------------------- --- ../bindings/wxwidgets/wx_datatypes.lua was generated by genwxbind.lua --- --- Any changes made to this file will be lost when the file is regenerated --- --------------------------------------------------------------------------- - - --- --------------------------------------------------------------------------- --- typedefTable --- --------------------------------------------------------------------------- -wx_typedefTable = -{ - WXHANDLE = "void *", - ["wxDateTime::wxDateTime_t"] = "unsigned short", - wxDouble = "double", - wxInt32 = "int", - wxLogLevel = "unsigned long", - wxNotebookPage = "wxWindow", - wxPreviewWindow = "wxScrolledWindow", - wxTextAttrDimensionFlags = "unsigned short", - wxTextCoord = "long", - wxTextPos = "long", - wxTraceMask = "unsigned long", - wxTreeItemIdValue = "double", -} - - --- --------------------------------------------------------------------------- --- dataTypes --- --------------------------------------------------------------------------- -wx_dataTypeTable = -{ - BOOL = { - IsNumber = true, - Name = "BOOL", - ValueType = "number", - }, - IntArray_FromLuaTable = { - IsNumber = true, - Name = "IntArray_FromLuaTable", - ValueType = "special", - }, - LuaFunction = { - IsNumber = true, - Name = "LuaFunction", - ValueType = "special", - }, - LuaTable = { - IsNumber = true, - Name = "LuaTable", - ValueType = "special", - }, - Propagation_state = { - IsNumber = true, - Name = "Propagation_state", - ValueType = "enum", - }, - WXTYPE = { - IsNumber = true, - Name = "WXTYPE", - ValueType = "number", - }, - any = { - IsNumber = true, - Name = "any", - ValueType = "special", - }, - bool = { - IsNumber = true, - Name = "bool", - ValueType = "number", - }, - char = { - IsNumber = true, - Name = "char", - ValueType = "number", - }, - double = { - IsNumber = true, - Name = "double", - ValueType = "number", - }, - float = { - IsNumber = true, - Name = "float", - ValueType = "number", - }, - int = { - IsNumber = true, - Name = "int", - ValueType = "number", - }, - long = { - IsNumber = true, - Name = "long", - ValueType = "number", - }, - lua_State = { - IsNumber = false, - Name = "lua_State", - ValueType = "number", - }, - short = { - IsNumber = true, - Name = "short", - ValueType = "number", - }, - size_t = { - IsNumber = true, - Name = "size_t", - ValueType = "number", - }, - time_t = { - IsNumber = true, - Name = "time_t", - ValueType = "number", - }, - uchar = { - IsNumber = true, - Name = "uchar", - ValueType = "number", - }, - uint = { - IsNumber = true, - Name = "uint", - ValueType = "number", - }, - ulong = { - IsNumber = true, - Name = "ulong", - ValueType = "number", - }, - ["unsigned char"] = { - IsNumber = true, - Name = "unsigned char", - ValueType = "number", - }, - ["unsigned int"] = { - IsNumber = true, - Name = "unsigned int", - ValueType = "number", - }, - ["unsigned long"] = { - IsNumber = true, - Name = "unsigned long", - ValueType = "number", - }, - ["unsigned short"] = { - IsNumber = true, - Name = "unsigned short", - ValueType = "number", - }, - ushort = { - IsNumber = true, - Name = "ushort", - ValueType = "number", - }, - void = { - IsNumber = true, - Name = "void", - ValueType = "number", - }, - voidptr_long = { - IsNumber = true, - Name = "voidptr_long", - ValueType = "special", - }, - wchar_t = { - IsNumber = true, - Name = "wchar_t", - ValueType = "number", - }, - wxANIHandler = { - BaseClasses = { - [1] = "wxCURHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR)", - IsNumber = false, - Name = "wxANIHandler", - ValueType = "class", - }, - wxAboutDialogInfo = { - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog", - IsNumber = false, - Name = "wxAboutDialogInfo", - ValueType = "class", - }, - wxAcceleratorEntry = { - Condition = "wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL", - IsNumber = false, - Name = "wxAcceleratorEntry", - ValueType = "class", - }, - wxAcceleratorTable = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL", - IsNumber = false, - Name = "wxAcceleratorTable", - ValueType = "class", - }, - wxActivateEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxActivateEvent", - ValueType = "class", - }, - wxAffineMatrix2D = { - Condition = "(wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)", - IsNumber = false, - Name = "wxAffineMatrix2D", - ValueType = "class", - }, - wxAlignment = { - IsNumber = true, - Name = "wxAlignment", - ValueType = "enum", - }, - wxAnimation = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL", - IsNumber = false, - Name = "wxAnimation", - ValueType = "class", - }, - wxAnimationCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL", - IsNumber = false, - Name = "wxAnimationCtrl", - ValueType = "class", - }, - wxAnimationType = { - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL", - IsNumber = true, - Name = "wxAnimationType", - ValueType = "enum", - }, - wxAntialiasMode = { - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = true, - Name = "wxAntialiasMode", - ValueType = "enum", - }, - wxAnyButton = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxButton && wxUSE_BUTTON", - IsNumber = false, - Name = "wxAnyButton", - ValueType = "class", - }, - wxApp = { - BaseClasses = { - [1] = "wxAppConsole", - }, - Condition = "wxLUA_USE_wxApp", - IsNumber = false, - Name = "wxApp", - ValueType = "class", - }, - wxAppConsole = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxApp", - IsNumber = false, - Name = "wxAppConsole", - ValueType = "class", - }, - wxArchitecture = { - IsNumber = true, - Name = "wxArchitecture", - ValueType = "enum", - }, - wxArchiveFSHandler = { - BaseClasses = { - [1] = "wxFileSystemHandler", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxArchiveFSHandler", - ValueType = "class", - }, - wxArrayDouble = { - Condition = "wxLUA_USE_wxArrayDouble", - IsNumber = false, - Name = "wxArrayDouble", - ValueType = "class", - }, - wxArrayInt = { - Condition = "wxLUA_USE_wxArrayInt", - IsNumber = false, - Name = "wxArrayInt", - ValueType = "class", - }, - wxArrayString = { - Condition = "wxLUA_USE_wxArrayString", - IsNumber = false, - Name = "wxArrayString", - ValueType = "class", - }, - wxArrayVideoModes = { - Condition = "wxLUA_USE_wxDisplay && wxUSE_DISPLAY", - IsNumber = false, - Name = "wxArrayVideoModes", - ValueType = "class", - }, - wxArtProvider = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxArtProvider", - IsNumber = false, - Name = "wxArtProvider", - ValueType = "class", - }, - wxAuiButtonId = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiButtonId", - ValueType = "enum", - }, - wxAuiDefaultDockArt = { - BaseClasses = { - [1] = "wxAuiDockArt", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiDefaultDockArt", - ValueType = "class", - }, - wxAuiDefaultTabArt = { - BaseClasses = { - [1] = "wxAuiTabArt", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiDefaultTabArt", - ValueType = "class", - }, - wxAuiDefaultToolBarArt = { - BaseClasses = { - [1] = "wxAuiToolBarArt", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiDefaultToolBarArt", - ValueType = "class", - }, - wxAuiDockArt = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiDockArt", - ValueType = "class", - }, - wxAuiDockInfo = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiDockInfo", - ValueType = "class", - }, - wxAuiDockUIPart = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiDockUIPart", - ValueType = "class", - }, - ["wxAuiDockUIPart::dummy"] = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiDockUIPart::dummy", - ValueType = "enum", - }, - wxAuiFloatingFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiFloatingFrame", - ValueType = "class", - }, - wxAuiGenericTabArt = { - BaseClasses = { - [1] = "wxAuiTabArt", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiGenericTabArt", - ValueType = "class", - }, - wxAuiMDIChildFrame = { - BaseClasses = { - [1] = "wxPanel", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiMDIChildFrame", - ValueType = "class", - }, - wxAuiMDIClientWindow = { - BaseClasses = { - [1] = "wxAuiNotebook", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiMDIClientWindow", - ValueType = "class", - }, - wxAuiMDIParentFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiMDIParentFrame", - ValueType = "class", - }, - wxAuiManager = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiManager", - ValueType = "class", - }, - wxAuiManagerDock = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiManagerDock", - ValueType = "enum", - }, - wxAuiManagerEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiManagerEvent", - ValueType = "class", - }, - wxAuiManagerOption = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiManagerOption", - ValueType = "enum", - }, - wxAuiNotebook = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiNotebook", - ValueType = "class", - }, - wxAuiNotebookEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiNotebookEvent", - ValueType = "class", - }, - wxAuiNotebookOption = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiNotebookOption", - ValueType = "enum", - }, - wxAuiNotebookPage = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiNotebookPage", - ValueType = "class", - }, - wxAuiNotebookPageArray = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiNotebookPageArray", - ValueType = "class", - }, - wxAuiPaneButton = { - Condition = "(!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)", - IsNumber = false, - Name = "wxAuiPaneButton", - ValueType = "class", - }, - wxAuiPaneButtonState = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiPaneButtonState", - ValueType = "enum", - }, - wxAuiPaneDockArtGradients = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiPaneDockArtGradients", - ValueType = "enum", - }, - wxAuiPaneDockArtSetting = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiPaneDockArtSetting", - ValueType = "enum", - }, - wxAuiPaneInfo = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiPaneInfo", - ValueType = "class", - }, - ["wxAuiPaneInfo::wxAuiPaneState"] = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiPaneInfo::wxAuiPaneState", - ValueType = "enum", - }, - wxAuiPaneInfoArray = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiPaneInfoArray", - ValueType = "class", - }, - wxAuiPaneInsertLevel = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiPaneInsertLevel", - ValueType = "enum", - }, - wxAuiSimpleTabArt = { - BaseClasses = { - [1] = "wxAuiTabArt", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiSimpleTabArt", - ValueType = "class", - }, - wxAuiTabArt = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiTabArt", - ValueType = "class", - }, - wxAuiTabContainerButton = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiTabContainerButton", - ValueType = "class", - }, - wxAuiTabCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiTabCtrl", - ValueType = "class", - }, - wxAuiToolBar = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiToolBar", - ValueType = "class", - }, - wxAuiToolBarArt = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiToolBarArt", - ValueType = "class", - }, - wxAuiToolBarArtSetting = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiToolBarArtSetting", - ValueType = "enum", - }, - wxAuiToolBarEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiToolBarEvent", - ValueType = "class", - }, - wxAuiToolBarItem = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiToolBarItem", - ValueType = "class", - }, - wxAuiToolBarItemArray = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = false, - Name = "wxAuiToolBarItemArray", - ValueType = "class", - }, - wxAuiToolBarStyle = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiToolBarStyle", - ValueType = "enum", - }, - wxAuiToolBarToolTextOrientation = { - Condition = "wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI", - IsNumber = true, - Name = "wxAuiToolBarToolTextOrientation", - ValueType = "enum", - }, - wxAutoBufferedPaintDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)", - IsNumber = false, - Name = "wxAutoBufferedPaintDC", - ValueType = "class", - }, - wxBMPHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxBMPHandler", - ValueType = "class", - }, - wxBackgroundStyle = { - IsNumber = true, - Name = "wxBackgroundStyle", - ValueType = "enum", - }, - wxBatteryState = { - Condition = "wxCHECK_VERSION(2,8,0)", - IsNumber = true, - Name = "wxBatteryState", - ValueType = "enum", - }, - wxBestHelpController = { - BaseClasses = { - [1] = "wxHelpControllerBase", - }, - Condition = "(defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)", - IsNumber = false, - Name = "wxBestHelpController", - ValueType = "class", - }, - wxBitmap = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxBitmap", - IsNumber = false, - Name = "wxBitmap", - ValueType = "class", - }, - wxBitmapButton = { - BaseClasses = { - [1] = "wxAnyButton", - }, - Condition = "(wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)", - IsNumber = false, - Name = "wxBitmapButton", - ValueType = "class", - }, - wxBitmapComboBox = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX", - IsNumber = false, - Name = "wxBitmapComboBox", - ValueType = "class", - }, - wxBitmapDataObject = { - BaseClasses = { - [1] = "wxDataObjectSimple", - }, - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxBitmapDataObject", - ValueType = "class", - }, - wxBitmapToggleButton = { - BaseClasses = { - [1] = "wxToggleButton", - }, - Condition = "wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN", - IsNumber = false, - Name = "wxBitmapToggleButton", - ValueType = "class", - }, - wxBitmapType = { - IsNumber = true, - Name = "wxBitmapType", - ValueType = "enum", - }, - wxBitness = { - Condition = "wxCHECK_VERSION(3,1,5)", - IsNumber = true, - Name = "wxBitness", - ValueType = "enum", - }, - wxBookCtrlBase = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL", - IsNumber = false, - Name = "wxBookCtrlBase", - ValueType = "class", - }, - wxBookCtrlBaseEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL", - IsNumber = false, - Name = "wxBookCtrlBaseEvent", - ValueType = "class", - }, - wxBorder = { - IsNumber = true, - Name = "wxBorder", - ValueType = "enum", - }, - wxBoxSizer = { - BaseClasses = { - [1] = "wxSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxBoxSizer", - ValueType = "class", - }, - wxBrush = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = false, - Name = "wxBrush", - ValueType = "class", - }, - wxBrushList = { - Condition = "(wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)", - IsNumber = false, - Name = "wxBrushList", - ValueType = "class", - }, - wxBrushStyle = { - Condition = "(wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)", - IsNumber = true, - Name = "wxBrushStyle", - ValueType = "enum", - }, - wxBufferedDC = { - BaseClasses = { - [1] = "wxMemoryDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxBufferedDC", - ValueType = "class", - }, - wxBufferedPaintDC = { - BaseClasses = { - [1] = "wxBufferedDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxBufferedPaintDC", - ValueType = "class", - }, - wxBusyCursor = { - Condition = "wxLUA_USE_wxBusyCursor", - IsNumber = false, - Name = "wxBusyCursor", - ValueType = "class", - }, - wxBusyInfo = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO", - IsNumber = false, - Name = "wxBusyInfo", - ValueType = "class", - }, - wxButton = { - BaseClasses = { - [1] = "wxAnyButton", - }, - Condition = "wxLUA_USE_wxButton && wxUSE_BUTTON", - IsNumber = false, - Name = "wxButton", - ValueType = "class", - }, - wxByte = { - IsNumber = true, - Name = "wxByte", - ValueType = "number", - }, - wxCURHandler = { - BaseClasses = { - [1] = "wxICOHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR)", - IsNumber = false, - Name = "wxCURHandler", - ValueType = "class", - }, - wxCalculateLayoutEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = false, - Name = "wxCalculateLayoutEvent", - ValueType = "class", - }, - wxCalendarCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL", - IsNumber = false, - Name = "wxCalendarCtrl", - ValueType = "class", - }, - wxCalendarDateAttr = { - Condition = "wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL", - IsNumber = false, - Name = "wxCalendarDateAttr", - ValueType = "class", - }, - wxCalendarDateBorder = { - Condition = "wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL", - IsNumber = true, - Name = "wxCalendarDateBorder", - ValueType = "enum", - }, - wxCalendarEvent = { - BaseClasses = { - [1] = "wxDateEvent", - }, - Condition = "wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL", - IsNumber = false, - Name = "wxCalendarEvent", - ValueType = "class", - }, - wxCalendarHitTestResult = { - Condition = "wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL", - IsNumber = true, - Name = "wxCalendarHitTestResult", - ValueType = "enum", - }, - wxCaret = { - Condition = "wxLUA_USE_wxCaret && wxUSE_CARET", - IsNumber = false, - Name = "wxCaret", - ValueType = "class", - }, - wxCaretSuspend = { - Condition = "wxLUA_USE_wxCaret && wxUSE_CARET", - IsNumber = false, - Name = "wxCaretSuspend", - ValueType = "class", - }, - wxChar = { - IsNumber = true, - Name = "wxChar", - ValueType = "number", - }, - wxCharBuffer = { - IsNumber = true, - Name = "wxCharBuffer", - ValueType = "special", - }, - wxCheckBox = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX", - IsNumber = false, - Name = "wxCheckBox", - ValueType = "class", - }, - wxCheckBoxState = { - Condition = "wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX", - IsNumber = true, - Name = "wxCheckBoxState", - ValueType = "enum", - }, - wxCheckListBox = { - BaseClasses = { - [1] = "wxListBox", - }, - Condition = "(wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)", - IsNumber = false, - Name = "wxCheckListBox", - ValueType = "class", - }, - wxChildFocusEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxChildFocusEvent", - ValueType = "class", - }, - wxChoice = { - BaseClasses = { - [1] = "wxControlWithItems", - }, - Condition = "wxLUA_USE_wxChoice && wxUSE_CHOICE", - IsNumber = false, - Name = "wxChoice", - ValueType = "class", - }, - wxChoicebook = { - BaseClasses = { - [1] = "wxBookCtrlBase", - }, - Condition = "wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK", - IsNumber = false, - Name = "wxChoicebook", - ValueType = "class", - }, - wxChoicebookEvent = { - BaseClasses = { - [1] = "wxBookCtrlBaseEvent", - }, - Condition = "wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK", - IsNumber = false, - Name = "wxChoicebookEvent", - ValueType = "class", - }, - wxClassInfo = { - Condition = "wxLUA_USE_wxClassInfo", - IsNumber = false, - Name = "wxClassInfo", - ValueType = "class", - }, - wxClientDC = { - BaseClasses = { - [1] = "wxWindowDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxClientDC", - ValueType = "class", - }, - wxClientData = { - IsNumber = false, - Name = "wxClientData", - ValueType = "class", - }, - wxClientDataContainer = { - IsNumber = false, - Name = "wxClientDataContainer", - ValueType = "class", - }, - wxClipboard = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD", - IsNumber = false, - Name = "wxClipboard", - ValueType = "class", - }, - wxClipboardLocker = { - Condition = "wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD", - IsNumber = false, - Name = "wxClipboardLocker", - ValueType = "class", - }, - wxClipboardTextEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)", - IsNumber = false, - Name = "wxClipboardTextEvent", - ValueType = "class", - }, - wxCloseEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxCloseEvent", - ValueType = "class", - }, - wxCollapsiblePane = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE", - IsNumber = false, - Name = "wxCollapsiblePane", - ValueType = "class", - }, - wxCollapsiblePaneEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE", - IsNumber = false, - Name = "wxCollapsiblePaneEvent", - ValueType = "class", - }, - wxColour = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = false, - Name = "wxColour", - ValueType = "class", - }, - wxColourData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG", - IsNumber = false, - Name = "wxColourData", - ValueType = "class", - }, - wxColourDatabase = { - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = false, - Name = "wxColourDatabase", - ValueType = "class", - }, - wxColourDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG", - IsNumber = false, - Name = "wxColourDialog", - ValueType = "class", - }, - wxColourPickerCtrl = { - BaseClasses = { - [1] = "wxPickerBase", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)", - IsNumber = false, - Name = "wxColourPickerCtrl", - ValueType = "class", - }, - wxColourPickerEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)", - IsNumber = false, - Name = "wxColourPickerEvent", - ValueType = "class", - }, - wxComboBox = { - BaseClasses = { - [1] = "wxControl", - [2] = "wxItemContainer", - }, - Condition = "wxLUA_USE_wxComboBox && wxUSE_COMBOBOX", - IsNumber = false, - Name = "wxComboBox", - ValueType = "class", - }, - wxComboCtrl = { - BaseClasses = { - [1] = "wxControl", - [2] = "wxTextEntry", - }, - Condition = "wxUSE_COMBOCTRL", - IsNumber = false, - Name = "wxComboCtrl", - ValueType = "class", - }, - wxComboCtrlFeatures = { - Condition = "wxUSE_COMBOCTRL", - IsNumber = false, - Name = "wxComboCtrlFeatures", - ValueType = "struct", - }, - wxComboPopup = { - Condition = "wxUSE_COMBOCTRL", - IsNumber = false, - Name = "wxComboPopup", - ValueType = "class", - }, - wxCommand = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxCommandProcessor", - IsNumber = false, - Name = "wxCommand", - ValueType = "class", - }, - wxCommandEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxCommandEvent", - ValueType = "class", - }, - wxCommandProcessor = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxCommandProcessor", - IsNumber = false, - Name = "wxCommandProcessor", - ValueType = "class", - }, - wxCompositionMode = { - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = true, - Name = "wxCompositionMode", - ValueType = "enum", - }, - wxConfig = { - BaseClasses = { - [1] = "wxConfigBase", - }, - Condition = "wxLUA_USE_wxConfig && wxUSE_CONFIG", - IsNumber = false, - Name = "wxConfig", - ValueType = "class", - }, - wxConfigBase = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxConfig && wxUSE_CONFIG", - IsNumber = false, - Name = "wxConfigBase", - ValueType = "class", - }, - ["wxConfigBase::EntryType"] = { - Condition = "wxLUA_USE_wxConfig && wxUSE_CONFIG", - IsNumber = true, - Name = "wxConfigBase::EntryType", - ValueType = "enum", - }, - wxConfigPathChanger = { - Condition = "wxLUA_USE_wxConfig && wxUSE_CONFIG", - IsNumber = false, - Name = "wxConfigPathChanger", - ValueType = "class", - }, - wxContextHelp = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = false, - Name = "wxContextHelp", - ValueType = "class", - }, - wxContextHelpButton = { - BaseClasses = { - [1] = "wxBitmapButton", - }, - Condition = "(wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP)", - IsNumber = false, - Name = "wxContextHelpButton", - ValueType = "class", - }, - wxContextMenuEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxContextMenuEvent", - ValueType = "class", - }, - wxControl = { - BaseClasses = { - [1] = "wxWindow", - }, - IsNumber = false, - Name = "wxControl", - ValueType = "class", - }, - wxControlWithItems = { - BaseClasses = { - [1] = "wxControl", - [2] = "wxItemContainer", - }, - IsNumber = false, - Name = "wxControlWithItems", - ValueType = "class", - }, - wxCoord = { - IsNumber = true, - Name = "wxCoord", - ValueType = "number", - }, - wxCriticalSection = { - Condition = "wxLUA_USE_wxCriticalSection && wxUSE_THREADS", - IsNumber = false, - Name = "wxCriticalSection", - ValueType = "class", - }, - wxCriticalSectionLocker = { - Condition = "wxLUA_USE_wxCriticalSectionLocker", - IsNumber = false, - Name = "wxCriticalSectionLocker", - ValueType = "class", - }, - wxCursor = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxCursor", - IsNumber = false, - Name = "wxCursor", - ValueType = "class", - }, - wxDC = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxDC", - ValueType = "class", - }, - wxDCClipper = { - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxDCClipper", - ValueType = "class", - }, - wxDLFlags = { - IsNumber = true, - Name = "wxDLFlags", - ValueType = "enum", - }, - wxDPIChangedEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxCHECK_VERSION(3,1,3)", - IsNumber = false, - Name = "wxDPIChangedEvent", - ValueType = "class", - }, - wxDataFormat = { - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxDataFormat", - ValueType = "class", - }, - wxDataFormatId = { - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = true, - Name = "wxDataFormatId", - ValueType = "enum", - }, - wxDataInputStream = { - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxDataInputStream", - ValueType = "class", - }, - wxDataObject = { - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxDataObject", - ValueType = "class", - }, - ["wxDataObject::Direction"] = { - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = true, - Name = "wxDataObject::Direction", - ValueType = "enum", - }, - wxDataObjectComposite = { - BaseClasses = { - [1] = "wxDataObject", - }, - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxDataObjectComposite", - ValueType = "class", - }, - wxDataObjectSimple = { - BaseClasses = { - [1] = "wxDataObject", - }, - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxDataObjectSimple", - ValueType = "class", - }, - wxDataOutputStream = { - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxDataOutputStream", - ValueType = "class", - }, - wxDataViewBitmapRenderer = { - BaseClasses = { - [1] = "wxDataViewRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewBitmapRenderer", - ValueType = "class", - }, - wxDataViewCellMode = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = true, - Name = "wxDataViewCellMode", - ValueType = "enum", - }, - wxDataViewCellRenderState = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = true, - Name = "wxDataViewCellRenderState", - ValueType = "enum", - }, - wxDataViewCheckIconText = { - BaseClasses = { - [1] = "wxDataViewIconText", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewCheckIconText", - ValueType = "class", - }, - wxDataViewChoiceByIndexRenderer = { - BaseClasses = { - [1] = "wxDataViewChoiceRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewChoiceByIndexRenderer", - ValueType = "class", - }, - wxDataViewChoiceRenderer = { - BaseClasses = { - [1] = "wxDataViewRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewChoiceRenderer", - ValueType = "class", - }, - wxDataViewColumn = { - BaseClasses = { - [1] = "wxDataViewColumnBase", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewColumn", - ValueType = "class", - }, - wxDataViewColumnBase = { - BaseClasses = { - [1] = "wxSettableHeaderColumn", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewColumnBase", - ValueType = "class", - }, - wxDataViewColumnFlags = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = true, - Name = "wxDataViewColumnFlags", - ValueType = "enum", - }, - wxDataViewCtrl = { - BaseClasses = { - [1] = "wxDataViewCtrlBase", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewCtrl", - ValueType = "class", - }, - wxDataViewCtrlBase = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewCtrlBase", - ValueType = "class", - }, - wxDataViewCustomRendererBase = { - BaseClasses = { - [1] = "wxDataViewRendererBase", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewCustomRendererBase", - ValueType = "class", - }, - wxDataViewEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewEvent", - ValueType = "class", - }, - wxDataViewIconText = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewIconText", - ValueType = "class", - }, - wxDataViewIconTextRenderer = { - BaseClasses = { - [1] = "wxDataViewTextRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewIconTextRenderer", - ValueType = "class", - }, - wxDataViewIndexListModel = { - BaseClasses = { - [1] = "wxDataViewListModel", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewIndexListModel", - ValueType = "class", - }, - wxDataViewItem = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewItem", - ValueType = "class", - }, - wxDataViewItemArray = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewItemArray", - ValueType = "class", - }, - wxDataViewItemAttr = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewItemAttr", - ValueType = "class", - }, - wxDataViewListCtrl = { - BaseClasses = { - [1] = "wxDataViewCtrl", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewListCtrl", - ValueType = "class", - }, - wxDataViewListModel = { - BaseClasses = { - [1] = "wxDataViewModel", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewListModel", - ValueType = "class", - }, - wxDataViewListStore = { - BaseClasses = { - [1] = "wxDataViewIndexListModel", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewListStore", - ValueType = "class", - }, - wxDataViewListStoreLine = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewListStoreLine", - ValueType = "class", - }, - wxDataViewModel = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewModel", - ValueType = "class", - }, - wxDataViewModelNotifier = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewModelNotifier", - ValueType = "class", - }, - wxDataViewProgressRenderer = { - BaseClasses = { - [1] = "wxDataViewRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewProgressRenderer", - ValueType = "class", - }, - wxDataViewRenderer = { - BaseClasses = { - [1] = "wxDataViewCustomRendererBase", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewRenderer", - ValueType = "class", - }, - wxDataViewRendererBase = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewRendererBase", - ValueType = "class", - }, - wxDataViewSpinRenderer = { - BaseClasses = { - [1] = "wxDataViewRenderer", - }, - Condition = "(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL)", - IsNumber = false, - Name = "wxDataViewSpinRenderer", - ValueType = "class", - }, - wxDataViewTextRenderer = { - BaseClasses = { - [1] = "wxDataViewRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewTextRenderer", - ValueType = "class", - }, - wxDataViewToggleRenderer = { - BaseClasses = { - [1] = "wxDataViewRenderer", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewToggleRenderer", - ValueType = "class", - }, - wxDataViewTreeStore = { - BaseClasses = { - [1] = "wxDataViewModel", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewTreeStore", - ValueType = "class", - }, - wxDataViewTreeStoreContainerNode = { - BaseClasses = { - [1] = "wxDataViewTreeStoreNode", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewTreeStoreContainerNode", - ValueType = "class", - }, - wxDataViewTreeStoreNode = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewTreeStoreNode", - ValueType = "class", - }, - wxDataViewValueAdjuster = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxDataViewValueAdjuster", - ValueType = "class", - }, - wxDateEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL", - IsNumber = false, - Name = "wxDateEvent", - ValueType = "class", - }, - wxDatePickerCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)", - IsNumber = false, - Name = "wxDatePickerCtrl", - ValueType = "class", - }, - wxDateSpan = { - Condition = "wxLUA_USE_wxDateSpan && wxUSE_DATETIME", - IsNumber = false, - Name = "wxDateSpan", - ValueType = "class", - }, - wxDateTime = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = false, - Name = "wxDateTime", - ValueType = "class", - }, - ["wxDateTime::Calendar"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::Calendar", - ValueType = "enum", - }, - ["wxDateTime::Country"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::Country", - ValueType = "enum", - }, - ["wxDateTime::Month"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::Month", - ValueType = "enum", - }, - ["wxDateTime::NameFlags"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::NameFlags", - ValueType = "enum", - }, - ["wxDateTime::TZ"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::TZ", - ValueType = "enum", - }, - ["wxDateTime::TimeZone"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = false, - Name = "wxDateTime::TimeZone", - ValueType = "class", - }, - ["wxDateTime::WeekDay"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::WeekDay", - ValueType = "enum", - }, - ["wxDateTime::WeekFlags"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::WeekFlags", - ValueType = "enum", - }, - ["wxDateTime::Year"] = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = true, - Name = "wxDateTime::Year", - ValueType = "enum", - }, - ["wxDateTime::wxDateTime_t"] = { - IsNumber = true, - Name = "wxDateTime::wxDateTime_t", - ValueType = "number", - }, - wxDateTimeArray = { - Condition = "wxLUA_USE_wxDateTime && wxUSE_DATETIME", - IsNumber = false, - Name = "wxDateTimeArray", - ValueType = "class", - }, - wxDateTimeHolidayAuthority = { - Condition = "wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME", - IsNumber = false, - Name = "wxDateTimeHolidayAuthority", - ValueType = "class", - }, - wxDateTimeWorkDays = { - BaseClasses = { - [1] = "wxDateTimeHolidayAuthority", - }, - Condition = "wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME", - IsNumber = false, - Name = "wxDateTimeWorkDays", - ValueType = "class", - }, - wxDialog = { - BaseClasses = { - [1] = "wxTopLevelWindow", - }, - Condition = "wxLUA_USE_wxDialog", - IsNumber = false, - Name = "wxDialog", - ValueType = "class", - }, - wxDir = { - Condition = "wxLUA_USE_wxDir", - IsNumber = false, - Name = "wxDir", - ValueType = "class", - }, - wxDirDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxLUA_USE_wxDirDialog && wxUSE_DIRDLG", - IsNumber = false, - Name = "wxDirDialog", - ValueType = "class", - }, - wxDirPickerCtrl = { - BaseClasses = { - [1] = "wxFileDirPickerCtrlBase", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))", - IsNumber = false, - Name = "wxDirPickerCtrl", - ValueType = "class", - }, - wxDirTraverseResult = { - Condition = "(wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir)", - IsNumber = true, - Name = "wxDirTraverseResult", - ValueType = "enum", - }, - wxDirection = { - IsNumber = true, - Name = "wxDirection", - ValueType = "enum", - }, - wxDisplay = { - Condition = "wxLUA_USE_wxDisplay && wxUSE_DISPLAY", - IsNumber = false, - Name = "wxDisplay", - ValueType = "class", - }, - wxDisplayChangedEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxDisplayChangedEvent", - ValueType = "class", - }, - wxDocChildFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocChildFrame", - ValueType = "class", - }, - wxDocMDIChildFrame = { - BaseClasses = { - [1] = "wxMDIChildFrame", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocMDIChildFrame", - ValueType = "class", - }, - wxDocMDIParentFrame = { - BaseClasses = { - [1] = "wxMDIParentFrame", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocMDIParentFrame", - ValueType = "class", - }, - wxDocManager = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocManager", - ValueType = "class", - }, - wxDocParentFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocParentFrame", - ValueType = "class", - }, - wxDocTemplate = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocTemplate", - ValueType = "class", - }, - wxDocument = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxDocument", - ValueType = "class", - }, - wxDouble = { - IsNumber = true, - Name = "wxDouble", - ValueType = "number", - }, - wxDragResult = { - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = true, - Name = "wxDragResult", - ValueType = "enum", - }, - wxDropFilesEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxDropFilesEvent", - ValueType = "class", - }, - wxDropSource = { - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxDropSource", - ValueType = "class", - }, - wxDropTarget = { - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxDropTarget", - ValueType = "class", - }, - wxDuplexMode = { - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = true, - Name = "wxDuplexMode", - ValueType = "enum", - }, - wxDynamicLibrary = { - IsNumber = false, - Name = "wxDynamicLibrary", - ValueType = "class", - }, - wxDynamicLibraryCategory = { - IsNumber = true, - Name = "wxDynamicLibraryCategory", - ValueType = "enum", - }, - wxDynamicLibraryDetails = { - IsNumber = false, - Name = "wxDynamicLibraryDetails", - ValueType = "class", - }, - wxDynamicLibraryDetailsArray = { - IsNumber = false, - Name = "wxDynamicLibraryDetailsArray", - ValueType = "class", - }, - wxEOL = { - Condition = "wxUSE_STREAMS", - IsNumber = true, - Name = "wxEOL", - ValueType = "enum", - }, - wxEdge = { - Condition = "(wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)", - IsNumber = true, - Name = "wxEdge", - ValueType = "enum", - }, - wxEffects = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)", - IsNumber = false, - Name = "wxEffects", - ValueType = "class", - }, - wxEndianness = { - IsNumber = true, - Name = "wxEndianness", - ValueType = "enum", - }, - wxEraseEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxEraseEvent", - ValueType = "class", - }, - wxEvent = { - BaseClasses = { - [1] = "wxObject", - }, - IsNumber = false, - Name = "wxEvent", - ValueType = "class", - }, - wxEventCategory = { - Condition = "wxCHECK_VERSION(3,0,0)", - IsNumber = true, - Name = "wxEventCategory", - ValueType = "enum", - }, - wxEventFilter = { - IsNumber = false, - Name = "wxEventFilter", - ValueType = "class", - }, - wxEventLoopBase = { - IsNumber = false, - Name = "wxEventLoopBase", - ValueType = "class", - }, - wxEventType = { - IsNumber = true, - Name = "wxEventType", - ValueType = "number", - }, - wxEvtHandler = { - BaseClasses = { - [1] = "wxObject", - }, - IsNumber = false, - Name = "wxEvtHandler", - ValueType = "class", - }, - wxExtHelpController = { - BaseClasses = { - [1] = "wxHelpControllerBase", - }, - Condition = "(!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)", - IsNumber = false, - Name = "wxExtHelpController", - ValueType = "class", - }, - wxFSFile = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxFSFile", - ValueType = "class", - }, - wxFSWPathType = { - Condition = "wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)", - IsNumber = true, - Name = "wxFSWPathType", - ValueType = "enum", - }, - wxFSWWarningType = { - Condition = "(wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))", - IsNumber = true, - Name = "wxFSWWarningType", - ValueType = "enum", - }, - wxFTP = { - BaseClasses = { - [1] = "wxProtocol", - }, - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)", - IsNumber = false, - Name = "wxFTP", - ValueType = "class", - }, - ["wxFTP::TransferMode"] = { - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)", - IsNumber = true, - Name = "wxFTP::TransferMode", - ValueType = "enum", - }, - wxFile = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = false, - Name = "wxFile", - ValueType = "class", - }, - ["wxFile::OpenMode"] = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = true, - Name = "wxFile::OpenMode", - ValueType = "enum", - }, - ["wxFile::dummy"] = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = true, - Name = "wxFile::dummy", - ValueType = "enum", - }, - wxFileConfig = { - BaseClasses = { - [1] = "wxConfigBase", - }, - Condition = "wxLUA_USE_wxConfig && wxUSE_CONFIG", - IsNumber = false, - Name = "wxFileConfig", - ValueType = "class", - }, - wxFileDataObject = { - BaseClasses = { - [1] = "wxDataObjectSimple", - }, - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxFileDataObject", - ValueType = "class", - }, - wxFileDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxLUA_USE_wxFileDialog && wxUSE_FILEDLG", - IsNumber = false, - Name = "wxFileDialog", - ValueType = "class", - }, - wxFileDirPickerCtrlBase = { - BaseClasses = { - [1] = "wxPickerBase", - }, - Condition = "((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)", - IsNumber = false, - Name = "wxFileDirPickerCtrlBase", - ValueType = "class", - }, - wxFileDirPickerEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)", - IsNumber = false, - Name = "wxFileDirPickerEvent", - ValueType = "class", - }, - wxFileDropTarget = { - BaseClasses = { - [1] = "wxDropTarget", - }, - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxFileDropTarget", - ValueType = "class", - }, - wxFileHistory = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxFileHistory", - ValueType = "class", - }, - wxFileInputStream = { - BaseClasses = { - [1] = "wxInputStream", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxFileInputStream", - ValueType = "class", - }, - wxFileKind = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = true, - Name = "wxFileKind", - ValueType = "enum", - }, - wxFileName = { - Condition = "wxLUA_USE_wxFileName", - IsNumber = false, - Name = "wxFileName", - ValueType = "class", - }, - wxFileOffset = { - IsNumber = true, - Name = "wxFileOffset", - ValueType = "number", - }, - wxFileOutputStream = { - BaseClasses = { - [1] = "wxOutputStream", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxFileOutputStream", - ValueType = "class", - }, - wxFilePickerCtrl = { - BaseClasses = { - [1] = "wxFileDirPickerCtrlBase", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))", - IsNumber = false, - Name = "wxFilePickerCtrl", - ValueType = "class", - }, - wxFileSystem = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxFileSystem", - ValueType = "class", - }, - wxFileSystemHandler = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxFileSystemHandler", - ValueType = "class", - }, - wxFileSystemWatcher = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)", - IsNumber = false, - Name = "wxFileSystemWatcher", - ValueType = "class", - }, - wxFileSystemWatcherEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)", - IsNumber = false, - Name = "wxFileSystemWatcherEvent", - ValueType = "class", - }, - wxFileTranslationsLoader = { - BaseClasses = { - [1] = "wxTranslationsLoader", - }, - Condition = "(wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)", - IsNumber = false, - Name = "wxFileTranslationsLoader", - ValueType = "class", - }, - wxFileType = { - IsNumber = false, - Name = "wxFileType", - ValueType = "class", - }, - ["wxFileType::MessageParameters"] = { - IsNumber = false, - Name = "wxFileType::MessageParameters", - ValueType = "class", - }, - wxFileTypeInfo = { - IsNumber = false, - Name = "wxFileTypeInfo", - ValueType = "class", - }, - wxFilterFSHandler = { - BaseClasses = { - [1] = "wxFileSystemHandler", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxFilterFSHandler", - ValueType = "class", - }, - wxFindDialogEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog", - IsNumber = false, - Name = "wxFindDialogEvent", - ValueType = "class", - }, - wxFindReplaceData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog", - IsNumber = false, - Name = "wxFindReplaceData", - ValueType = "class", - }, - wxFindReplaceDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog", - IsNumber = false, - Name = "wxFindReplaceDialog", - ValueType = "class", - }, - wxFindReplaceDialogStyles = { - Condition = "wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog", - IsNumber = true, - Name = "wxFindReplaceDialogStyles", - ValueType = "enum", - }, - wxFindReplaceFlags = { - Condition = "wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog", - IsNumber = true, - Name = "wxFindReplaceFlags", - ValueType = "enum", - }, - wxFlexGridSizer = { - BaseClasses = { - [1] = "wxGridSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxFlexGridSizer", - ValueType = "class", - }, - wxFlexSizerGrowMode = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = true, - Name = "wxFlexSizerGrowMode", - ValueType = "enum", - }, - wxFloat32 = { - IsNumber = true, - Name = "wxFloat32", - ValueType = "number", - }, - wxFloat64 = { - IsNumber = true, - Name = "wxFloat64", - ValueType = "number", - }, - wxFloodFillStyle = { - Condition = "wxLUA_USE_wxDC", - IsNumber = true, - Name = "wxFloodFillStyle", - ValueType = "enum", - }, - wxFocusEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxFocusEvent", - ValueType = "class", - }, - wxFont = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxFont", - IsNumber = false, - Name = "wxFont", - ValueType = "class", - }, - wxFontData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxUSE_FONTDLG && wxLUA_USE_wxFontDialog", - IsNumber = false, - Name = "wxFontData", - ValueType = "class", - }, - wxFontDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_FONTDLG && wxLUA_USE_wxFontDialog", - IsNumber = false, - Name = "wxFontDialog", - ValueType = "class", - }, - wxFontEncoding = { - Condition = "wxUSE_INTL", - IsNumber = true, - Name = "wxFontEncoding", - ValueType = "enum", - }, - wxFontEnumerator = { - Condition = "wxLUA_USE_wxFontEnumerator", - IsNumber = false, - Name = "wxFontEnumerator", - ValueType = "class", - }, - wxFontFamily = { - Condition = "wxLUA_USE_wxFont", - IsNumber = true, - Name = "wxFontFamily", - ValueType = "enum", - }, - wxFontInfo = { - Condition = "wxLUA_USE_wxFont", - IsNumber = false, - Name = "wxFontInfo", - ValueType = "class", - }, - wxFontList = { - Condition = "wxLUA_USE_wxFontList", - IsNumber = false, - Name = "wxFontList", - ValueType = "class", - }, - wxFontMapper = { - Condition = "wxLUA_USE_wxFontMapper", - IsNumber = false, - Name = "wxFontMapper", - ValueType = "class", - }, - wxFontPickerCtrl = { - BaseClasses = { - [1] = "wxPickerBase", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)", - IsNumber = false, - Name = "wxFontPickerCtrl", - ValueType = "class", - }, - wxFontPickerEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)", - IsNumber = false, - Name = "wxFontPickerEvent", - ValueType = "class", - }, - wxFontStyle = { - Condition = "wxLUA_USE_wxFont", - IsNumber = true, - Name = "wxFontStyle", - ValueType = "enum", - }, - wxFontSymbolicSize = { - Condition = "(wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont)", - IsNumber = true, - Name = "wxFontSymbolicSize", - ValueType = "enum", - }, - wxFontWeight = { - Condition = "wxLUA_USE_wxFont", - IsNumber = true, - Name = "wxFontWeight", - ValueType = "enum", - }, - wxFrame = { - BaseClasses = { - [1] = "wxTopLevelWindow", - }, - Condition = "wxLUA_USE_wxFrame", - IsNumber = false, - Name = "wxFrame", - ValueType = "class", - }, - wxGBPosition = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxGBPosition", - ValueType = "class", - }, - wxGBSizerItem = { - BaseClasses = { - [1] = "wxSizerItem", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxGBSizerItem", - ValueType = "class", - }, - wxGBSpan = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxGBSpan", - ValueType = "class", - }, - wxGCDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGCDC", - ValueType = "class", - }, - wxGDIObject = { - BaseClasses = { - [1] = "wxObject", - }, - IsNumber = false, - Name = "wxGDIObject", - ValueType = "class", - }, - wxGIFHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF)", - IsNumber = false, - Name = "wxGIFHandler", - ValueType = "class", - }, - wxGLAttribsBase = { - Condition = "(wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)", - IsNumber = false, - Name = "wxGLAttribsBase", - ValueType = "class", - }, - wxGLAttributes = { - BaseClasses = { - [1] = "wxGLAttribsBase", - }, - Condition = "(wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)", - IsNumber = false, - Name = "wxGLAttributes", - ValueType = "class", - }, - wxGLCanvas = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS", - IsNumber = false, - Name = "wxGLCanvas", - ValueType = "class", - }, - wxGLContext = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS", - IsNumber = false, - Name = "wxGLContext", - ValueType = "class", - }, - wxGLContextAttrs = { - BaseClasses = { - [1] = "wxGLAttribsBase", - }, - Condition = "(wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)", - IsNumber = false, - Name = "wxGLContextAttrs", - ValueType = "class", - }, - wxGauge = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxGauge && wxUSE_GAUGE", - IsNumber = false, - Name = "wxGauge", - ValueType = "class", - }, - wxGenericDirCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG", - IsNumber = false, - Name = "wxGenericDirCtrl", - ValueType = "class", - }, - wxGenericValidator = { - BaseClasses = { - [1] = "wxValidator", - }, - Condition = "(wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)", - IsNumber = false, - Name = "wxGenericValidator", - ValueType = "class", - }, - wxGradientType = { - Condition = "(wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)", - IsNumber = true, - Name = "wxGradientType", - ValueType = "enum", - }, - wxGraphicsBitmap = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsBitmap", - ValueType = "class", - }, - wxGraphicsBrush = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsBrush", - ValueType = "class", - }, - wxGraphicsContext = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsContext", - ValueType = "class", - }, - wxGraphicsFont = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsFont", - ValueType = "class", - }, - wxGraphicsGradientStop = { - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsGradientStop", - ValueType = "class", - }, - wxGraphicsGradientStops = { - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsGradientStops", - ValueType = "class", - }, - wxGraphicsMatrix = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsMatrix", - ValueType = "class", - }, - wxGraphicsObject = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsObject", - ValueType = "class", - }, - wxGraphicsPath = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsPath", - ValueType = "class", - }, - wxGraphicsPen = { - BaseClasses = { - [1] = "wxGraphicsObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsPen", - ValueType = "class", - }, - wxGraphicsPenInfo = { - Condition = "(wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)", - IsNumber = false, - Name = "wxGraphicsPenInfo", - ValueType = "class", - }, - wxGraphicsRenderer = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = false, - Name = "wxGraphicsRenderer", - ValueType = "class", - }, - wxGrid = { - BaseClasses = { - [1] = "wxScrolledWindow", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGrid", - ValueType = "class", - }, - ["wxGrid::wxGridSelectionModes"] = { - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = true, - Name = "wxGrid::wxGridSelectionModes", - ValueType = "enum", - }, - wxGridBagSizer = { - BaseClasses = { - [1] = "wxFlexGridSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxGridBagSizer", - ValueType = "class", - }, - wxGridCellAttr = { - BaseClasses = { - [1] = "wxClientDataContainer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellAttr", - ValueType = "class", - }, - ["wxGridCellAttr::wxAttrKind"] = { - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = true, - Name = "wxGridCellAttr::wxAttrKind", - ValueType = "enum", - }, - wxGridCellAttrProvider = { - BaseClasses = { - [1] = "wxClientDataContainer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellAttrProvider", - ValueType = "class", - }, - wxGridCellAutoWrapStringEditor = { - BaseClasses = { - [1] = "wxGridCellTextEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellAutoWrapStringEditor", - ValueType = "class", - }, - wxGridCellAutoWrapStringRenderer = { - BaseClasses = { - [1] = "wxGridCellStringRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellAutoWrapStringRenderer", - ValueType = "class", - }, - wxGridCellBoolEditor = { - BaseClasses = { - [1] = "wxGridCellEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellBoolEditor", - ValueType = "class", - }, - wxGridCellBoolRenderer = { - BaseClasses = { - [1] = "wxGridCellRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellBoolRenderer", - ValueType = "class", - }, - wxGridCellChoiceEditor = { - BaseClasses = { - [1] = "wxGridCellEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellChoiceEditor", - ValueType = "class", - }, - wxGridCellCoords = { - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellCoords", - ValueType = "class", - }, - wxGridCellCoordsArray = { - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellCoordsArray", - ValueType = "class", - }, - wxGridCellDateTimeRenderer = { - BaseClasses = { - [1] = "wxGridCellStringRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellDateTimeRenderer", - ValueType = "class", - }, - wxGridCellEditor = { - BaseClasses = { - [1] = "wxGridCellWorker", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellEditor", - ValueType = "class", - }, - wxGridCellEnumEditor = { - BaseClasses = { - [1] = "wxGridCellChoiceEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellEnumEditor", - ValueType = "class", - }, - wxGridCellEnumRenderer = { - BaseClasses = { - [1] = "wxGridCellStringRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellEnumRenderer", - ValueType = "class", - }, - wxGridCellFloatEditor = { - BaseClasses = { - [1] = "wxGridCellTextEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellFloatEditor", - ValueType = "class", - }, - wxGridCellFloatRenderer = { - BaseClasses = { - [1] = "wxGridCellStringRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellFloatRenderer", - ValueType = "class", - }, - wxGridCellNumberEditor = { - BaseClasses = { - [1] = "wxGridCellTextEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellNumberEditor", - ValueType = "class", - }, - wxGridCellNumberRenderer = { - BaseClasses = { - [1] = "wxGridCellStringRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellNumberRenderer", - ValueType = "class", - }, - wxGridCellRenderer = { - BaseClasses = { - [1] = "wxGridCellWorker", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellRenderer", - ValueType = "class", - }, - wxGridCellStringRenderer = { - BaseClasses = { - [1] = "wxGridCellRenderer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellStringRenderer", - ValueType = "class", - }, - wxGridCellTextEditor = { - BaseClasses = { - [1] = "wxGridCellEditor", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellTextEditor", - ValueType = "class", - }, - wxGridCellWorker = { - BaseClasses = { - [1] = "wxClientDataContainer", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridCellWorker", - ValueType = "class", - }, - wxGridEditorCreatedEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridEditorCreatedEvent", - ValueType = "class", - }, - wxGridEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridEvent", - ValueType = "class", - }, - wxGridRangeSelectEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridRangeSelectEvent", - ValueType = "class", - }, - wxGridSizeEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridSizeEvent", - ValueType = "class", - }, - wxGridSizer = { - BaseClasses = { - [1] = "wxSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxGridSizer", - ValueType = "class", - }, - wxGridStringTable = { - BaseClasses = { - [1] = "wxGridTableBase", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridStringTable", - ValueType = "class", - }, - wxGridTableBase = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridTableBase", - ValueType = "class", - }, - wxGridTableMessage = { - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxGridTableMessage", - ValueType = "class", - }, - wxGridTableRequest = { - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = true, - Name = "wxGridTableRequest", - ValueType = "enum", - }, - wxHTTP = { - BaseClasses = { - [1] = "wxProtocol", - }, - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP)", - IsNumber = false, - Name = "wxHTTP", - ValueType = "class", - }, - wxHeaderButtonParams = { - Condition = "wxLUA_USE_wxRenderer", - IsNumber = false, - Name = "wxHeaderButtonParams", - ValueType = "struct", - }, - wxHeaderColumn = { - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxHeaderColumn", - ValueType = "class", - }, - wxHeaderCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "(wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)", - IsNumber = false, - Name = "wxHeaderCtrl", - ValueType = "class", - }, - wxHeaderCtrlEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "(wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)", - IsNumber = false, - Name = "wxHeaderCtrlEvent", - ValueType = "class", - }, - wxHeaderCtrlSimple = { - BaseClasses = { - [1] = "wxHeaderCtrl", - }, - Condition = "(wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)", - IsNumber = false, - Name = "wxHeaderCtrlSimple", - ValueType = "class", - }, - wxHeaderSortIconType = { - Condition = "wxLUA_USE_wxRenderer", - IsNumber = true, - Name = "wxHeaderSortIconType", - ValueType = "enum", - }, - wxHelpController = { - BaseClasses = { - [1] = "wxHelpControllerBase", - }, - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = false, - Name = "wxHelpController", - ValueType = "class", - }, - wxHelpControllerBase = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = false, - Name = "wxHelpControllerBase", - ValueType = "class", - }, - wxHelpControllerHelpProvider = { - BaseClasses = { - [1] = "wxSimpleHelpProvider", - }, - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = false, - Name = "wxHelpControllerHelpProvider", - ValueType = "class", - }, - wxHelpEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxHelpEvent", - ValueType = "class", - }, - ["wxHelpEvent::Origin"] = { - Condition = "wxCHECK_VERSION(2,8,0)", - IsNumber = true, - Name = "wxHelpEvent::Origin", - ValueType = "enum", - }, - wxHelpProvider = { - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = false, - Name = "wxHelpProvider", - ValueType = "class", - }, - wxHelpSearchMode = { - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = true, - Name = "wxHelpSearchMode", - ValueType = "enum", - }, - wxHitTest = { - Condition = "wxCHECK_VERSION(3,0,0)", - IsNumber = true, - Name = "wxHitTest", - ValueType = "enum", - }, - wxHtmlCell = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlCell", - ValueType = "class", - }, - wxHtmlCellEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlCellEvent", - ValueType = "class", - }, - wxHtmlColourCell = { - BaseClasses = { - [1] = "wxHtmlCell", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlColourCell", - ValueType = "class", - }, - wxHtmlContainerCell = { - BaseClasses = { - [1] = "wxHtmlCell", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlContainerCell", - ValueType = "class", - }, - wxHtmlDCRenderer = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlDCRenderer", - ValueType = "class", - }, - wxHtmlEasyPrinting = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlEasyPrinting", - ValueType = "class", - }, - wxHtmlFontCell = { - BaseClasses = { - [1] = "wxHtmlCell", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlFontCell", - ValueType = "class", - }, - wxHtmlHelpController = { - BaseClasses = { - [1] = "wxHelpControllerBase", - }, - Condition = "(wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)", - IsNumber = false, - Name = "wxHtmlHelpController", - ValueType = "class", - }, - wxHtmlHelpData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)", - IsNumber = false, - Name = "wxHtmlHelpData", - ValueType = "class", - }, - wxHtmlLinkEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlLinkEvent", - ValueType = "class", - }, - wxHtmlLinkInfo = { - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlLinkInfo", - ValueType = "class", - }, - wxHtmlListBox = { - IsNumber = false, - Name = "wxHtmlListBox", - ValueType = "class", - }, - wxHtmlParser = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlParser", - ValueType = "class", - }, - wxHtmlPrintout = { - BaseClasses = { - [1] = "wxPrintout", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlPrintout", - ValueType = "class", - }, - wxHtmlRenderingInfo = { - Condition = "(wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlRenderingInfo", - ValueType = "class", - }, - wxHtmlRenderingState = { - Condition = "(wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlRenderingState", - ValueType = "class", - }, - wxHtmlRenderingStyle = { - Condition = "(wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlRenderingStyle", - ValueType = "class", - }, - wxHtmlSelection = { - Condition = "(wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlSelection", - ValueType = "class", - }, - wxHtmlSelectionState = { - Condition = "(wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = true, - Name = "wxHtmlSelectionState", - ValueType = "enum", - }, - wxHtmlTag = { - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlTag", - ValueType = "class", - }, - wxHtmlWidgetCell = { - BaseClasses = { - [1] = "wxHtmlCell", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlWidgetCell", - ValueType = "class", - }, - wxHtmlWinParser = { - BaseClasses = { - [1] = "wxHtmlParser", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlWinParser", - ValueType = "class", - }, - wxHtmlWindow = { - BaseClasses = { - [1] = "wxScrolledWindow", - }, - Condition = "wxLUA_USE_wxHTML && wxUSE_HTML", - IsNumber = false, - Name = "wxHtmlWindow", - ValueType = "class", - }, - wxHtmlWindowInterface = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxHtmlWindowInterface", - ValueType = "class", - }, - ["wxHtmlWindowInterface::HTMLCursor"] = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = true, - Name = "wxHtmlWindowInterface::HTMLCursor", - ValueType = "enum", - }, - wxHyperlinkCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl", - IsNumber = false, - Name = "wxHyperlinkCtrl", - ValueType = "class", - }, - wxHyperlinkEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl", - IsNumber = false, - Name = "wxHyperlinkEvent", - ValueType = "class", - }, - wxICOHandler = { - BaseClasses = { - [1] = "wxBMPHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR)", - IsNumber = false, - Name = "wxICOHandler", - ValueType = "class", - }, - wxIFFHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF)", - IsNumber = false, - Name = "wxIFFHandler", - ValueType = "class", - }, - wxIPV4address = { - BaseClasses = { - [1] = "wxIPaddress", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxIPV4address", - ValueType = "class", - }, - wxIPaddress = { - BaseClasses = { - [1] = "wxSockAddress", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxIPaddress", - ValueType = "class", - }, - wxIcon = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxIcon", - IsNumber = false, - Name = "wxIcon", - ValueType = "class", - }, - wxIconBundle = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxIcon", - IsNumber = false, - Name = "wxIconBundle", - ValueType = "class", - }, - wxIconLocation = { - IsNumber = false, - Name = "wxIconLocation", - ValueType = "class", - }, - wxIconizeEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxIconizeEvent", - ValueType = "class", - }, - wxIdleEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxIdleEvent", - ValueType = "class", - }, - wxIdleMode = { - IsNumber = true, - Name = "wxIdleMode", - ValueType = "enum", - }, - wxImage = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxImage", - ValueType = "class", - }, - wxImageHandler = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxImageHandler", - ValueType = "class", - }, - wxImageHistogram = { - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxImageHistogram", - ValueType = "class", - }, - ["wxImageHistogram::iterator"] = { - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxImageHistogram::iterator", - ValueType = "class", - }, - wxImageHistogramEntry = { - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxImageHistogramEntry", - ValueType = "class", - }, - wxImageList = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxImageList", - IsNumber = false, - Name = "wxImageList", - ValueType = "class", - }, - wxImageResizeQuality = { - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = true, - Name = "wxImageResizeQuality", - ValueType = "enum", - }, - wxIndividualLayoutConstraint = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxIndividualLayoutConstraint", - ValueType = "class", - }, - wxInfoBar = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1)", - IsNumber = false, - Name = "wxInfoBar", - ValueType = "class", - }, - wxInitDialogEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxInitDialogEvent", - ValueType = "class", - }, - wxInputStream = { - BaseClasses = { - [1] = "wxStreamBase", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxInputStream", - ValueType = "class", - }, - wxInt16 = { - IsNumber = true, - Name = "wxInt16", - ValueType = "number", - }, - wxInt32 = { - IsNumber = true, - Name = "wxInt32", - ValueType = "number", - }, - wxInt64 = { - IsNumber = true, - Name = "wxInt64", - ValueType = "number", - }, - wxInt8 = { - IsNumber = true, - Name = "wxInt8", - ValueType = "number", - }, - wxIntPtr = { - IsNumber = true, - Name = "wxIntPtr", - ValueType = "number", - }, - wxInternetFSHandler = { - BaseClasses = { - [1] = "wxFileSystemHandler", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxInternetFSHandler", - ValueType = "class", - }, - wxInterpolationQuality = { - Condition = "wxUSE_GRAPHICS_CONTEXT", - IsNumber = true, - Name = "wxInterpolationQuality", - ValueType = "enum", - }, - wxItemContainer = { - BaseClasses = { - [1] = "wxItemContainerImmutable", - }, - Condition = "(wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS", - IsNumber = false, - Name = "wxItemContainer", - ValueType = "class", - }, - wxItemContainerImmutable = { - Condition = "(wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS", - IsNumber = false, - Name = "wxItemContainerImmutable", - ValueType = "class", - }, - wxItemKind = { - Condition = "wxLUA_USE_wxMenu && wxUSE_MENUS", - IsNumber = true, - Name = "wxItemKind", - ValueType = "enum", - }, - wxJPEGHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG)", - IsNumber = false, - Name = "wxJPEGHandler", - ValueType = "class", - }, - wxJoystick = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxJoystick && wxUSE_JOYSTICK", - IsNumber = false, - Name = "wxJoystick", - ValueType = "class", - }, - wxJoystickEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxJoystick && wxUSE_JOYSTICK", - IsNumber = false, - Name = "wxJoystickEvent", - ValueType = "class", - }, - wxKeyCode = { - IsNumber = true, - Name = "wxKeyCode", - ValueType = "enum", - }, - wxKeyEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxKeyEvent", - ValueType = "class", - }, - wxKeyModifier = { - IsNumber = true, - Name = "wxKeyModifier", - ValueType = "enum", - }, - wxKeyType = { - Condition = "wxLUA_USE_wxList && !wxUSE_STL", - IsNumber = true, - Name = "wxKeyType", - ValueType = "enum", - }, - wxKeyboardState = { - IsNumber = false, - Name = "wxKeyboardState", - ValueType = "class", - }, - wxKillError = { - Condition = "wxLUA_USE_wxProcess", - IsNumber = true, - Name = "wxKillError", - ValueType = "enum", - }, - wxKillFlags = { - Condition = "wxLUA_USE_wxProcess", - IsNumber = true, - Name = "wxKillFlags", - ValueType = "enum", - }, - wxLanguage = { - Condition = "wxUSE_INTL", - IsNumber = true, - Name = "wxLanguage", - ValueType = "enum", - }, - wxLanguageInfo = { - Condition = "wxUSE_INTL", - IsNumber = false, - Name = "wxLanguageInfo", - ValueType = "struct", - }, - wxLayoutAlgorithm = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = false, - Name = "wxLayoutAlgorithm", - ValueType = "class", - }, - wxLayoutAlignment = { - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = true, - Name = "wxLayoutAlignment", - ValueType = "enum", - }, - wxLayoutConstraints = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxLayoutConstraints", - ValueType = "class", - }, - wxLayoutDirection = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)", - IsNumber = true, - Name = "wxLayoutDirection", - ValueType = "enum", - }, - wxLayoutOrientation = { - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = true, - Name = "wxLayoutOrientation", - ValueType = "enum", - }, - wxList = { - Condition = "wxLUA_USE_wxList && !wxUSE_STL", - IsNumber = false, - Name = "wxList", - ValueType = "class", - }, - wxListBox = { - BaseClasses = { - [1] = "wxControlWithItems", - }, - Condition = "wxLUA_USE_wxListBox && wxUSE_LISTBOX", - IsNumber = false, - Name = "wxListBox", - ValueType = "class", - }, - wxListColumnFormat = { - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = true, - Name = "wxListColumnFormat", - ValueType = "enum", - }, - wxListCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = false, - Name = "wxListCtrl", - ValueType = "class", - }, - wxListEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = false, - Name = "wxListEvent", - ValueType = "class", - }, - wxListItem = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = false, - Name = "wxListItem", - ValueType = "class", - }, - wxListItemAttr = { - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = false, - Name = "wxListItemAttr", - ValueType = "class", - }, - wxListView = { - BaseClasses = { - [1] = "wxListCtrl", - }, - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = false, - Name = "wxListView", - ValueType = "class", - }, - wxListbook = { - BaseClasses = { - [1] = "wxBookCtrlBase", - }, - Condition = "wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK", - IsNumber = false, - Name = "wxListbook", - ValueType = "class", - }, - wxListbookEvent = { - BaseClasses = { - [1] = "wxBookCtrlBaseEvent", - }, - Condition = "wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK", - IsNumber = false, - Name = "wxListbookEvent", - ValueType = "class", - }, - wxLocalFSHandler = { - BaseClasses = { - [1] = "wxFileSystemHandler", - }, - Condition = "(wxUSE_FILESYSTEM) && (wxUSE_STREAMS)", - IsNumber = false, - Name = "wxLocalFSHandler", - ValueType = "class", - }, - wxLocale = { - Condition = "wxUSE_INTL", - IsNumber = false, - Name = "wxLocale", - ValueType = "class", - }, - wxLocaleCategory = { - Condition = "wxUSE_INTL", - IsNumber = true, - Name = "wxLocaleCategory", - ValueType = "enum", - }, - wxLocaleInfo = { - Condition = "wxUSE_INTL", - IsNumber = true, - Name = "wxLocaleInfo", - ValueType = "enum", - }, - wxLocaleInitFlags = { - Condition = "wxUSE_INTL", - IsNumber = true, - Name = "wxLocaleInitFlags", - ValueType = "enum", - }, - wxLog = { - Condition = "wxLUA_USE_wxLog && wxUSE_LOG", - IsNumber = false, - Name = "wxLog", - ValueType = "class", - }, - wxLogBuffer = { - BaseClasses = { - [1] = "wxLog", - }, - Condition = "wxLUA_USE_wxLog && wxUSE_LOG", - IsNumber = false, - Name = "wxLogBuffer", - ValueType = "class", - }, - wxLogChain = { - BaseClasses = { - [1] = "wxLog", - }, - Condition = "wxLUA_USE_wxLog && wxUSE_LOG", - IsNumber = false, - Name = "wxLogChain", - ValueType = "class", - }, - wxLogGui = { - BaseClasses = { - [1] = "wxLog", - }, - Condition = "(wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI)", - IsNumber = false, - Name = "wxLogGui", - ValueType = "class", - }, - wxLogLevel = { - IsNumber = true, - Name = "wxLogLevel", - ValueType = "number", - }, - wxLogNull = { - Condition = "wxLUA_USE_wxLog && wxUSE_LOG", - IsNumber = false, - Name = "wxLogNull", - ValueType = "class", - }, - wxLogPassThrough = { - BaseClasses = { - [1] = "wxLogChain", - }, - Condition = "wxLUA_USE_wxLog && wxUSE_LOG", - IsNumber = false, - Name = "wxLogPassThrough", - ValueType = "class", - }, - wxLogTextCtrl = { - BaseClasses = { - [1] = "wxLog", - }, - Condition = "(wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)", - IsNumber = false, - Name = "wxLogTextCtrl", - ValueType = "class", - }, - wxLogWindow = { - BaseClasses = { - [1] = "wxLogPassThrough", - }, - Condition = "(wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW)", - IsNumber = false, - Name = "wxLogWindow", - ValueType = "class", - }, - wxLongLong = { - Condition = "wxUSE_LONGLONG", - IsNumber = false, - Name = "wxLongLong", - ValueType = "class", - }, - wxLuaArtProvider = { - BaseClasses = { - [1] = "wxArtProvider", - }, - Condition = "wxLUA_USE_wxArtProvider", - IsNumber = false, - Name = "wxLuaArtProvider", - ValueType = "class", - }, - wxLuaDataObjectSimple = { - BaseClasses = { - [1] = "wxDataObjectSimple", - }, - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxLuaDataObjectSimple", - ValueType = "class", - }, - wxLuaFileDropTarget = { - BaseClasses = { - [1] = "wxFileDropTarget", - }, - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxLuaFileDropTarget", - ValueType = "class", - }, - wxLuaGridTableBase = { - BaseClasses = { - [1] = "wxGridTableBase", - }, - Condition = "wxLUA_USE_wxGrid && wxUSE_GRID", - IsNumber = false, - Name = "wxLuaGridTableBase", - ValueType = "class", - }, - wxLuaHtmlWinTagEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "(wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)", - IsNumber = false, - Name = "wxLuaHtmlWinTagEvent", - ValueType = "class", - }, - wxLuaHtmlWindow = { - BaseClasses = { - [1] = "wxHtmlWindow", - }, - Condition = "(wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)", - IsNumber = false, - Name = "wxLuaHtmlWindow", - ValueType = "class", - }, - wxLuaListCtrl = { - BaseClasses = { - [1] = "wxListCtrl", - }, - Condition = "wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL", - IsNumber = false, - Name = "wxLuaListCtrl", - ValueType = "class", - }, - wxLuaObject = { - IsNumber = false, - Name = "wxLuaObject", - ValueType = "class", - }, - wxLuaPrintout = { - BaseClasses = { - [1] = "wxPrintout", - }, - Condition = "(wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = false, - Name = "wxLuaPrintout", - ValueType = "class", - }, - wxLuaProcess = { - BaseClasses = { - [1] = "wxProcess", - }, - Condition = "wxLUA_USE_wxProcess", - IsNumber = false, - Name = "wxLuaProcess", - ValueType = "class", - }, - wxLuaTextDropTarget = { - BaseClasses = { - [1] = "wxTextDropTarget", - }, - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxLuaTextDropTarget", - ValueType = "class", - }, - wxLuaTreeItemData = { - BaseClasses = { - [1] = "wxTreeItemData", - }, - Condition = "wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL", - IsNumber = false, - Name = "wxLuaTreeItemData", - ValueType = "class", - }, - wxLuaURLDropTarget = { - BaseClasses = { - [1] = "wxDropTarget", - }, - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxLuaURLDropTarget", - ValueType = "class", - }, - wxMDIChildFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxMDIChildFrame", - ValueType = "class", - }, - wxMDIClientWindow = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxMDIClientWindow", - ValueType = "class", - }, - wxMDIParentFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxMDIParentFrame", - ValueType = "class", - }, - wxMappingMode = { - Condition = "wxLUA_USE_wxDC", - IsNumber = true, - Name = "wxMappingMode", - ValueType = "enum", - }, - wxMask = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxMask", - IsNumber = false, - Name = "wxMask", - ValueType = "class", - }, - wxMatrix2D = { - Condition = "(wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)", - IsNumber = false, - Name = "wxMatrix2D", - ValueType = "struct", - }, - wxMaximizeEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxMaximizeEvent", - ValueType = "class", - }, - wxMediaCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL", - IsNumber = false, - Name = "wxMediaCtrl", - ValueType = "class", - }, - wxMediaCtrlPlayerControls = { - Condition = "wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL", - IsNumber = true, - Name = "wxMediaCtrlPlayerControls", - ValueType = "enum", - }, - wxMediaEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL", - IsNumber = false, - Name = "wxMediaEvent", - ValueType = "class", - }, - wxMediaState = { - Condition = "wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL", - IsNumber = true, - Name = "wxMediaState", - ValueType = "enum", - }, - wxMemoryBuffer = { - Condition = "wxLUA_USE_wxMemoryBuffer", - IsNumber = false, - Name = "wxMemoryBuffer", - ValueType = "class", - }, - wxMemoryConfig = { - BaseClasses = { - [1] = "wxFileConfig", - }, - Condition = "wxLUA_USE_wxConfig && wxUSE_CONFIG", - IsNumber = false, - Name = "wxMemoryConfig", - ValueType = "class", - }, - wxMemoryDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxMemoryDC", - ValueType = "class", - }, - wxMemoryFSHandler = { - BaseClasses = { - [1] = "wxFileSystemHandler", - }, - Condition = "wxUSE_STREAMS && wxUSE_FILESYSTEM", - IsNumber = false, - Name = "wxMemoryFSHandler", - ValueType = "class", - }, - wxMemoryInputStream = { - BaseClasses = { - [1] = "wxInputStream", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxMemoryInputStream", - ValueType = "class", - }, - wxMemoryOutputStream = { - BaseClasses = { - [1] = "wxOutputStream", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxMemoryOutputStream", - ValueType = "class", - }, - wxMemorySize = { - IsNumber = true, - Name = "wxMemorySize", - ValueType = "number", - }, - wxMenu = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxMenu && wxUSE_MENUS", - IsNumber = false, - Name = "wxMenu", - ValueType = "class", - }, - wxMenuBar = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxMenu && wxUSE_MENUS", - IsNumber = false, - Name = "wxMenuBar", - ValueType = "class", - }, - wxMenuEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxMenu && wxUSE_MENUS", - IsNumber = false, - Name = "wxMenuEvent", - ValueType = "class", - }, - wxMenuItem = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxMenu && wxUSE_MENUS", - IsNumber = false, - Name = "wxMenuItem", - ValueType = "class", - }, - wxMenuItemList = { - BaseClasses = { - [1] = "wxList", - }, - Condition = "wxLUA_USE_wxMenu && wxUSE_MENUS", - IsNumber = false, - Name = "wxMenuItemList", - ValueType = "class", - }, - wxMessageDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG", - IsNumber = false, - Name = "wxMessageDialog", - ValueType = "class", - }, - wxMetafile = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))", - IsNumber = false, - Name = "wxMetafile", - ValueType = "class", - }, - wxMetafileDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))", - IsNumber = false, - Name = "wxMetafileDC", - ValueType = "class", - }, - wxMimeTypesManager = { - IsNumber = false, - Name = "wxMimeTypesManager", - ValueType = "class", - }, - wxMiniFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "(wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)", - IsNumber = false, - Name = "wxMiniFrame", - ValueType = "class", - }, - wxMirrorDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxMirrorDC", - ValueType = "class", - }, - wxMouseCaptureChangedEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxMouseCaptureChangedEvent", - ValueType = "class", - }, - wxMouseCaptureLostEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxCHECK_VERSION(2,8,0)", - IsNumber = false, - Name = "wxMouseCaptureLostEvent", - ValueType = "class", - }, - wxMouseEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxMouseEvent", - ValueType = "class", - }, - wxMouseState = { - BaseClasses = { - [1] = "wxKeyboardState", - }, - Condition = "wxCHECK_VERSION(2,8,0)", - IsNumber = false, - Name = "wxMouseState", - ValueType = "class", - }, - wxMouseWheelAxis = { - Condition = "wxCHECK_VERSION(2,9,4)", - IsNumber = true, - Name = "wxMouseWheelAxis", - ValueType = "enum", - }, - wxMoveEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxMoveEvent", - ValueType = "class", - }, - wxMsgCatalog = { - Condition = "(wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)", - IsNumber = false, - Name = "wxMsgCatalog", - ValueType = "class", - }, - wxMultiChoiceDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog", - IsNumber = false, - Name = "wxMultiChoiceDialog", - ValueType = "class", - }, - wxNativeFontInfo = { - Condition = "wxLUA_USE_wxFont", - IsNumber = false, - Name = "wxNativeFontInfo", - ValueType = "class", - }, - wxNavigationKeyEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxNavigationKeyEvent", - ValueType = "class", - }, - ["wxNavigationKeyEvent::dummy"] = { - IsNumber = true, - Name = "wxNavigationKeyEvent::dummy", - ValueType = "enum", - }, - wxNode = { - Condition = "wxLUA_USE_wxList && !wxUSE_STL", - IsNumber = false, - Name = "wxNode", - ValueType = "class", - }, - wxNonOwnedWindow = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxFrame || wxLUA_USE_wxDialog", - IsNumber = false, - Name = "wxNonOwnedWindow", - ValueType = "class", - }, - wxNotebook = { - BaseClasses = { - [1] = "wxBookCtrlBase", - }, - Condition = "wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK", - IsNumber = false, - Name = "wxNotebook", - ValueType = "class", - }, - wxNotebookEvent = { - BaseClasses = { - [1] = "wxBookCtrlBaseEvent", - }, - Condition = "wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK", - IsNumber = false, - Name = "wxNotebookEvent", - ValueType = "class", - }, - wxNotebookPage = { - IsNumber = false, - Name = "wxNotebookPage", - ValueType = "class", - }, - wxNotebookSizer = { - BaseClasses = { - [1] = "wxSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0)))", - IsNumber = false, - Name = "wxNotebookSizer", - ValueType = "class", - }, - wxNotifyEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxNotifyEvent", - ValueType = "class", - }, - wxNumberEntryDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog", - IsNumber = false, - Name = "wxNumberEntryDialog", - ValueType = "class", - }, - wxObject = { - Condition = "wxLUA_USE_wxObject", - IsNumber = false, - Name = "wxObject", - ValueType = "class", - }, - wxObjectRefData = { - Condition = "wxLUA_USE_wxObject", - IsNumber = false, - Name = "wxObjectRefData", - ValueType = "class", - }, - wxOperatingSystemId = { - IsNumber = true, - Name = "wxOperatingSystemId", - ValueType = "enum", - }, - wxOrientation = { - IsNumber = true, - Name = "wxOrientation", - ValueType = "enum", - }, - wxOutCode = { - Condition = "wxLUA_USE_Geometry && wxUSE_GEOMETRY", - IsNumber = true, - Name = "wxOutCode", - ValueType = "enum", - }, - wxOutputStream = { - BaseClasses = { - [1] = "wxStreamBase", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxOutputStream", - ValueType = "class", - }, - wxPCXHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX)", - IsNumber = false, - Name = "wxPCXHandler", - ValueType = "class", - }, - wxPNGHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG)", - IsNumber = false, - Name = "wxPNGHandler", - ValueType = "class", - }, - wxPNMHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM)", - IsNumber = false, - Name = "wxPNMHandler", - ValueType = "class", - }, - wxPageSetupDialog = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPageSetupDialog", - ValueType = "class", - }, - wxPageSetupDialogData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPageSetupDialogData", - ValueType = "class", - }, - wxPaintDC = { - BaseClasses = { - [1] = "wxWindowDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxPaintDC", - ValueType = "class", - }, - wxPaintEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxPaintEvent", - ValueType = "class", - }, - wxPalette = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxPalette && wxUSE_PALETTE", - IsNumber = false, - Name = "wxPalette", - ValueType = "class", - }, - wxPaletteChangedEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxPaletteChangedEvent", - ValueType = "class", - }, - wxPanel = { - BaseClasses = { - [1] = "wxWindow", - }, - IsNumber = false, - Name = "wxPanel", - ValueType = "class", - }, - wxPaperSize = { - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = true, - Name = "wxPaperSize", - ValueType = "enum", - }, - wxPasswordEntryDialog = { - BaseClasses = { - [1] = "wxTextEntryDialog", - }, - Condition = "wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog", - IsNumber = false, - Name = "wxPasswordEntryDialog", - ValueType = "class", - }, - wxPathFormat = { - Condition = "wxLUA_USE_wxFileName", - IsNumber = true, - Name = "wxPathFormat", - ValueType = "enum", - }, - wxPathList = { - BaseClasses = { - [1] = "wxArrayString", - }, - IsNumber = false, - Name = "wxPathList", - ValueType = "class", - }, - wxPathNormalize = { - Condition = "wxLUA_USE_wxFileName", - IsNumber = true, - Name = "wxPathNormalize", - ValueType = "enum", - }, - wxPen = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = false, - Name = "wxPen", - ValueType = "class", - }, - wxPenCap = { - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = true, - Name = "wxPenCap", - ValueType = "enum", - }, - wxPenInfo = { - Condition = "(wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)", - IsNumber = false, - Name = "wxPenInfo", - ValueType = "class", - }, - wxPenJoin = { - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = true, - Name = "wxPenJoin", - ValueType = "enum", - }, - wxPenList = { - Condition = "(wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)", - IsNumber = false, - Name = "wxPenList", - ValueType = "class", - }, - wxPenStyle = { - Condition = "wxLUA_USE_wxColourPenBrush", - IsNumber = true, - Name = "wxPenStyle", - ValueType = "enum", - }, - wxPickerBase = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker", - IsNumber = false, - Name = "wxPickerBase", - ValueType = "class", - }, - wxPlatformInfo = { - IsNumber = false, - Name = "wxPlatformInfo", - ValueType = "class", - }, - wxPluginCategory = { - IsNumber = true, - Name = "wxPluginCategory", - ValueType = "enum", - }, - wxPoint = { - Condition = "wxLUA_USE_wxPointSizeRect", - IsNumber = false, - Name = "wxPoint", - ValueType = "class", - }, - wxPoint2DDouble = { - Condition = "wxLUA_USE_Geometry && wxUSE_GEOMETRY", - IsNumber = false, - Name = "wxPoint2DDouble", - ValueType = "class", - }, - wxPoint2DDoubleArray_FromLuaTable = { - IsNumber = true, - Name = "wxPoint2DDoubleArray_FromLuaTable", - ValueType = "special", - }, - wxPoint2DInt = { - Condition = "wxLUA_USE_Geometry && wxUSE_GEOMETRY", - IsNumber = false, - Name = "wxPoint2DInt", - ValueType = "class", - }, - wxPointArray_FromLuaTable = { - IsNumber = true, - Name = "wxPointArray_FromLuaTable", - ValueType = "special", - }, - wxPolygonFillMode = { - Condition = "wxLUA_USE_wxDC", - IsNumber = true, - Name = "wxPolygonFillMode", - ValueType = "enum", - }, - wxPopupTransientWindow = { - BaseClasses = { - [1] = "wxPopupWindow", - }, - Condition = "wxLUA_USE_wxPopupTransientWindow", - IsNumber = false, - Name = "wxPopupTransientWindow", - ValueType = "class", - }, - wxPopupWindow = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxPopupWindow", - IsNumber = false, - Name = "wxPopupWindow", - ValueType = "class", - }, - wxPortId = { - IsNumber = true, - Name = "wxPortId", - ValueType = "enum", - }, - wxPosition = { - Condition = "wxLUA_USE_Geometry && wxUSE_GEOMETRY", - IsNumber = false, - Name = "wxPosition", - ValueType = "class", - }, - wxPosixPermissions = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = true, - Name = "wxPosixPermissions", - ValueType = "enum", - }, - wxPostScriptDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "(wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)", - IsNumber = false, - Name = "wxPostScriptDC", - ValueType = "class", - }, - wxPowerEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "(defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0))", - IsNumber = false, - Name = "wxPowerEvent", - ValueType = "class", - }, - wxPowerType = { - Condition = "wxCHECK_VERSION(2,8,0)", - IsNumber = true, - Name = "wxPowerType", - ValueType = "enum", - }, - wxPreviewCanvas = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPreviewCanvas", - ValueType = "class", - }, - wxPreviewControlBar = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPreviewControlBar", - ValueType = "class", - }, - wxPreviewFrame = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "(wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = false, - Name = "wxPreviewFrame", - ValueType = "class", - }, - wxPrintBin = { - Condition = "(wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = true, - Name = "wxPrintBin", - ValueType = "enum", - }, - wxPrintData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPrintData", - ValueType = "class", - }, - wxPrintDialog = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPrintDialog", - ValueType = "class", - }, - wxPrintDialogData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPrintDialogData", - ValueType = "class", - }, - wxPrintMode = { - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = true, - Name = "wxPrintMode", - ValueType = "enum", - }, - wxPrintOrientation = { - Condition = "(wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = true, - Name = "wxPrintOrientation", - ValueType = "enum", - }, - wxPrintPreview = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = false, - Name = "wxPrintPreview", - ValueType = "class", - }, - wxPrintQuality = { - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = true, - Name = "wxPrintQuality", - ValueType = "enum", - }, - wxPrinter = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = false, - Name = "wxPrinter", - ValueType = "class", - }, - wxPrinterDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "(defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = false, - Name = "wxPrinterDC", - ValueType = "class", - }, - wxPrinterError = { - Condition = "(wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)", - IsNumber = true, - Name = "wxPrinterError", - ValueType = "enum", - }, - wxPrintout = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE", - IsNumber = false, - Name = "wxPrintout", - ValueType = "class", - }, - wxProcess = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxProcess", - IsNumber = false, - Name = "wxProcess", - ValueType = "class", - }, - wxProcessEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxProcessEvent", - ValueType = "class", - }, - wxProgressDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog", - IsNumber = false, - Name = "wxProgressDialog", - ValueType = "class", - }, - wxPropagateOnce = { - IsNumber = false, - Name = "wxPropagateOnce", - ValueType = "class", - }, - wxPropagationDisabler = { - IsNumber = false, - Name = "wxPropagationDisabler", - ValueType = "class", - }, - wxProtocol = { - BaseClasses = { - [1] = "wxSocketClient", - }, - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)", - IsNumber = false, - Name = "wxProtocol", - ValueType = "class", - }, - wxProtocolError = { - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)", - IsNumber = true, - Name = "wxProtocolError", - ValueType = "enum", - }, - wxQuantize = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxQuantize", - ValueType = "class", - }, - wxQueryLayoutInfoEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = false, - Name = "wxQueryLayoutInfoEvent", - ValueType = "class", - }, - wxQueryNewPaletteEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxQueryNewPaletteEvent", - ValueType = "class", - }, - wxRadioBox = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX", - IsNumber = false, - Name = "wxRadioBox", - ValueType = "class", - }, - wxRadioButton = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN", - IsNumber = false, - Name = "wxRadioButton", - ValueType = "class", - }, - wxRasterOperationMode = { - Condition = "wxLUA_USE_wxDC", - IsNumber = true, - Name = "wxRasterOperationMode", - ValueType = "enum", - }, - wxRealPoint = { - Condition = "wxLUA_USE_wxPointSizeRect", - IsNumber = false, - Name = "wxRealPoint", - ValueType = "class", - }, - wxRect = { - Condition = "wxLUA_USE_wxPointSizeRect", - IsNumber = false, - Name = "wxRect", - ValueType = "class", - }, - wxRect2DDouble = { - Condition = "wxLUA_USE_Geometry && wxUSE_GEOMETRY", - IsNumber = false, - Name = "wxRect2DDouble", - ValueType = "class", - }, - wxRect2DInt = { - Condition = "wxLUA_USE_Geometry && wxUSE_GEOMETRY", - IsNumber = false, - Name = "wxRect2DInt", - ValueType = "class", - }, - wxRegEx = { - Condition = "wxLUA_USE_wxRegEx && wxUSE_REGEX", - IsNumber = false, - Name = "wxRegEx", - ValueType = "class", - }, - wxRegion = { - BaseClasses = { - [1] = "wxGDIObject", - }, - Condition = "wxLUA_USE_wxRegion", - IsNumber = false, - Name = "wxRegion", - ValueType = "class", - }, - wxRegionContain = { - Condition = "wxLUA_USE_wxRegion", - IsNumber = true, - Name = "wxRegionContain", - ValueType = "enum", - }, - wxRegionIterator = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRegion", - IsNumber = false, - Name = "wxRegionIterator", - ValueType = "class", - }, - wxRegionOp = { - Condition = "(defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)", - IsNumber = true, - Name = "wxRegionOp", - ValueType = "enum", - }, - wxRelationship = { - Condition = "(wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)", - IsNumber = true, - Name = "wxRelationship", - ValueType = "enum", - }, - wxRendererNative = { - Condition = "wxLUA_USE_wxRenderer", - IsNumber = false, - Name = "wxRendererNative", - ValueType = "class", - }, - wxRendererVersion = { - Condition = "wxLUA_USE_wxRenderer", - IsNumber = false, - Name = "wxRendererVersion", - ValueType = "struct", - }, - ["wxRendererVersion::dummy"] = { - Condition = "wxLUA_USE_wxRenderer", - IsNumber = true, - Name = "wxRendererVersion::dummy", - ValueType = "enum", - }, - wxResourceTranslationsLoader = { - BaseClasses = { - [1] = "wxTranslationsLoader", - }, - Condition = "(defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)", - IsNumber = false, - Name = "wxResourceTranslationsLoader", - ValueType = "class", - }, - wxRichTextAction = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextAction", - ValueType = "class", - }, - wxRichTextAttr = { - BaseClasses = { - [1] = "wxTextAttr", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextAttr", - ValueType = "class", - }, - wxRichTextAttrArray = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextAttrArray", - ValueType = "class", - }, - wxRichTextBox = { - BaseClasses = { - [1] = "wxRichTextParagraphLayoutBox", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextBox", - ValueType = "class", - }, - wxRichTextBoxStyleDefinition = { - BaseClasses = { - [1] = "wxRichTextStyleDefinition", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextBoxStyleDefinition", - ValueType = "class", - }, - wxRichTextBuffer = { - BaseClasses = { - [1] = "wxRichTextParagraphLayoutBox", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextBuffer", - ValueType = "class", - }, - wxRichTextBufferDataObject = { - BaseClasses = { - [1] = "wxDataObjectSimple", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)", - IsNumber = false, - Name = "wxRichTextBufferDataObject", - ValueType = "class", - }, - wxRichTextCell = { - BaseClasses = { - [1] = "wxRichTextBox", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextCell", - ValueType = "class", - }, - wxRichTextCharacterStyleDefinition = { - BaseClasses = { - [1] = "wxRichTextStyleDefinition", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextCharacterStyleDefinition", - ValueType = "class", - }, - wxRichTextCommand = { - BaseClasses = { - [1] = "wxCommand", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextCommand", - ValueType = "class", - }, - wxRichTextCommandId = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxRichTextCommandId", - ValueType = "enum", - }, - wxRichTextCompositeObject = { - BaseClasses = { - [1] = "wxRichTextObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextCompositeObject", - ValueType = "class", - }, - wxRichTextContextMenuPropertiesInfo = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextContextMenuPropertiesInfo", - ValueType = "class", - }, - wxRichTextCtrl = { - BaseClasses = { - [1] = "wxControl", - [2] = "wxTextCtrlIface", - [3] = "wxScrollHelper", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextCtrl", - ValueType = "class", - }, - wxRichTextCtrlSelectionState = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxRichTextCtrlSelectionState", - ValueType = "enum", - }, - wxRichTextDrawingContext = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextDrawingContext", - ValueType = "class", - }, - wxRichTextDrawingHandler = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextDrawingHandler", - ValueType = "class", - }, - wxRichTextDropSource = { - BaseClasses = { - [1] = "wxDropSource", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)", - IsNumber = false, - Name = "wxRichTextDropSource", - ValueType = "class", - }, - wxRichTextDropTarget = { - BaseClasses = { - [1] = "wxDropTarget", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)", - IsNumber = false, - Name = "wxRichTextDropTarget", - ValueType = "class", - }, - wxRichTextEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)", - IsNumber = false, - Name = "wxRichTextEvent", - ValueType = "class", - }, - wxRichTextField = { - BaseClasses = { - [1] = "wxRichTextParagraphLayoutBox", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextField", - ValueType = "class", - }, - wxRichTextFieldType = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextFieldType", - ValueType = "class", - }, - wxRichTextFieldTypeHashMap = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextFieldTypeHashMap", - ValueType = "class", - }, - ["wxRichTextFieldTypeHashMap::iterator"] = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextFieldTypeHashMap::iterator", - ValueType = "class", - }, - wxRichTextFieldTypeStandard = { - BaseClasses = { - [1] = "wxRichTextFieldType", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextFieldTypeStandard", - ValueType = "class", - }, - ["wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_COMPOSITE"] = { - IsNumber = true, - Name = "wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_COMPOSITE", - ValueType = "enum", - }, - wxRichTextFileHandler = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextFileHandler", - ValueType = "class", - }, - wxRichTextFileType = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxRichTextFileType", - ValueType = "enum", - }, - wxRichTextFontTable = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextFontTable", - ValueType = "class", - }, - wxRichTextFormattingDialog = { - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)", - IsNumber = false, - Name = "wxRichTextFormattingDialog", - ValueType = "class", - }, - ["wxRichTextFormattingDialog::Option_AllowPixelFontSize"] = { - IsNumber = true, - Name = "wxRichTextFormattingDialog::Option_AllowPixelFontSize", - ValueType = "enum", - }, - wxRichTextFormattingDialogFactory = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)", - IsNumber = false, - Name = "wxRichTextFormattingDialogFactory", - ValueType = "class", - }, - wxRichTextHTMLHandler = { - BaseClasses = { - [1] = "wxRichTextFileHandler", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)", - IsNumber = false, - Name = "wxRichTextHTMLHandler", - ValueType = "class", - }, - wxRichTextHeaderFooterData = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextHeaderFooterData", - ValueType = "class", - }, - wxRichTextHitTestFlags = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxRichTextHitTestFlags", - ValueType = "enum", - }, - wxRichTextImage = { - BaseClasses = { - [1] = "wxRichTextObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextImage", - ValueType = "class", - }, - wxRichTextImageBlock = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextImageBlock", - ValueType = "class", - }, - wxRichTextLine = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextLine", - ValueType = "class", - }, - wxRichTextLineList = { - BaseClasses = { - [1] = "wxList", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)", - IsNumber = false, - Name = "wxRichTextLineList", - ValueType = "class", - }, - wxRichTextListStyleDefinition = { - BaseClasses = { - [1] = "wxRichTextParagraphStyleDefinition", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextListStyleDefinition", - ValueType = "class", - }, - wxRichTextObject = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextObject", - ValueType = "class", - }, - wxRichTextObjectAddress = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextObjectAddress", - ValueType = "class", - }, - wxRichTextObjectList = { - BaseClasses = { - [1] = "wxList", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextObjectList", - ValueType = "class", - }, - wxRichTextObjectPropertiesDialog = { - BaseClasses = { - [1] = "wxRichTextFormattingDialog", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)", - IsNumber = false, - Name = "wxRichTextObjectPropertiesDialog", - ValueType = "class", - }, - wxRichTextObjectPtrArray = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextObjectPtrArray", - ValueType = "class", - }, - wxRichTextObjectPtrArrayArray = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextObjectPtrArrayArray", - ValueType = "class", - }, - wxRichTextOddEvenPage = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxRichTextOddEvenPage", - ValueType = "enum", - }, - wxRichTextPageLocation = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxRichTextPageLocation", - ValueType = "enum", - }, - wxRichTextParagraph = { - BaseClasses = { - [1] = "wxRichTextCompositeObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextParagraph", - ValueType = "class", - }, - wxRichTextParagraphLayoutBox = { - BaseClasses = { - [1] = "wxRichTextCompositeObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextParagraphLayoutBox", - ValueType = "class", - }, - wxRichTextParagraphStyleDefinition = { - BaseClasses = { - [1] = "wxRichTextStyleDefinition", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextParagraphStyleDefinition", - ValueType = "class", - }, - wxRichTextPlainText = { - BaseClasses = { - [1] = "wxRichTextObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextPlainText", - ValueType = "class", - }, - wxRichTextPlainTextHandler = { - BaseClasses = { - [1] = "wxRichTextFileHandler", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextPlainTextHandler", - ValueType = "class", - }, - wxRichTextPrinting = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextPrinting", - ValueType = "class", - }, - wxRichTextPrintout = { - BaseClasses = { - [1] = "wxPrintout", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextPrintout", - ValueType = "class", - }, - wxRichTextProperties = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextProperties", - ValueType = "class", - }, - wxRichTextRange = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextRange", - ValueType = "class", - }, - wxRichTextRangeArray = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextRangeArray", - ValueType = "class", - }, - wxRichTextRectArray = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextRectArray", - ValueType = "class", - }, - wxRichTextRenderer = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextRenderer", - ValueType = "class", - }, - wxRichTextSelection = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextSelection", - ValueType = "class", - }, - wxRichTextStdRenderer = { - BaseClasses = { - [1] = "wxRichTextRenderer", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextStdRenderer", - ValueType = "class", - }, - wxRichTextStyleComboCtrl = { - BaseClasses = { - [1] = "wxComboCtrl", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)", - IsNumber = false, - Name = "wxRichTextStyleComboCtrl", - ValueType = "class", - }, - wxRichTextStyleDefinition = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextStyleDefinition", - ValueType = "class", - }, - wxRichTextStyleListBox = { - BaseClasses = { - [1] = "wxHtmlListBox", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)", - IsNumber = false, - Name = "wxRichTextStyleListBox", - ValueType = "class", - }, - ["wxRichTextStyleListBox::wxRichTextStyleType"] = { - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)", - IsNumber = true, - Name = "wxRichTextStyleListBox::wxRichTextStyleType", - ValueType = "enum", - }, - wxRichTextStyleListCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)", - IsNumber = false, - Name = "wxRichTextStyleListCtrl", - ValueType = "class", - }, - wxRichTextStyleOrganiserDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextStyleOrganiserDialog", - ValueType = "class", - }, - wxRichTextStyleSheet = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextStyleSheet", - ValueType = "class", - }, - wxRichTextTable = { - BaseClasses = { - [1] = "wxRichTextBox", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextTable", - ValueType = "class", - }, - wxRichTextTableBlock = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextTableBlock", - ValueType = "class", - }, - wxRichTextVariantArray = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxRichTextVariantArray", - ValueType = "class", - }, - wxRichTextXMLHandler = { - BaseClasses = { - [1] = "wxRichTextFileHandler", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)", - IsNumber = false, - Name = "wxRichTextXMLHandler", - ValueType = "class", - }, - wxRichTextXMLHelper = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)", - IsNumber = false, - Name = "wxRichTextXMLHelper", - ValueType = "class", - }, - wxSashDragStatus = { - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = true, - Name = "wxSashDragStatus", - ValueType = "enum", - }, - wxSashEdgePosition = { - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = true, - Name = "wxSashEdgePosition", - ValueType = "enum", - }, - wxSashEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = false, - Name = "wxSashEvent", - ValueType = "class", - }, - wxSashLayoutWindow = { - BaseClasses = { - [1] = "wxSashWindow", - }, - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = false, - Name = "wxSashLayoutWindow", - ValueType = "class", - }, - wxSashWindow = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxSashWindow && wxUSE_SASH", - IsNumber = false, - Name = "wxSashWindow", - ValueType = "class", - }, - wxScreenDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxScreenDC", - ValueType = "class", - }, - wxScrollBar = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR", - IsNumber = false, - Name = "wxScrollBar", - ValueType = "class", - }, - wxScrollEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxScrollEvent", - ValueType = "class", - }, - wxScrollHelper = { - Condition = "wxLUA_USE_wxScrolledWindow", - IsNumber = false, - Name = "wxScrollHelper", - ValueType = "class", - }, - wxScrollWinEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxScrollWinEvent", - ValueType = "class", - }, - wxScrollbarVisibility = { - Condition = "(wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)", - IsNumber = true, - Name = "wxScrollbarVisibility", - ValueType = "enum", - }, - wxScrolledWindow = { - BaseClasses = { - [1] = "wxPanel", - [2] = "wxScrollHelper", - }, - Condition = "wxLUA_USE_wxScrolledWindow", - IsNumber = false, - Name = "wxScrolledWindow", - ValueType = "class", - }, - wxSearchCtrl = { - BaseClasses = { - [1] = "wxTextCtrl", - }, - Condition = "wxUSE_SEARCHCTRL", - IsNumber = false, - Name = "wxSearchCtrl", - ValueType = "class", - }, - wxSeekMode = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = true, - Name = "wxSeekMode", - ValueType = "enum", - }, - wxSetCursorEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxSetCursorEvent", - ValueType = "class", - }, - wxSettableHeaderColumn = { - BaseClasses = { - [1] = "wxHeaderColumn", - }, - Condition = "wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl", - IsNumber = false, - Name = "wxSettableHeaderColumn", - ValueType = "class", - }, - wxShowEffect = { - Condition = "wxCHECK_VERSION(2,9,1)", - IsNumber = true, - Name = "wxShowEffect", - ValueType = "enum", - }, - wxShowEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxShowEvent", - ValueType = "class", - }, - wxShutdownFlags = { - IsNumber = true, - Name = "wxShutdownFlags", - ValueType = "enum", - }, - wxSignal = { - Condition = "wxLUA_USE_wxProcess", - IsNumber = true, - Name = "wxSignal", - ValueType = "enum", - }, - wxSimpleHelpProvider = { - BaseClasses = { - [1] = "wxHelpProvider", - }, - Condition = "wxLUA_USE_wxHelpController && wxUSE_HELP", - IsNumber = false, - Name = "wxSimpleHelpProvider", - ValueType = "class", - }, - wxSimpleHtmlListBox = { - BaseClasses = { - [1] = "wxPanel", - [2] = "wxHtmlWindowInterface", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)", - IsNumber = false, - Name = "wxSimpleHtmlListBox", - ValueType = "class", - }, - wxSingleChoiceDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog", - IsNumber = false, - Name = "wxSingleChoiceDialog", - ValueType = "class", - }, - wxSingleInstanceChecker = { - Condition = "wxUSE_SNGLINST_CHECKER", - IsNumber = false, - Name = "wxSingleInstanceChecker", - ValueType = "class", - }, - wxSize = { - Condition = "wxLUA_USE_wxPointSizeRect", - IsNumber = false, - Name = "wxSize", - ValueType = "class", - }, - wxSizeConvention = { - Condition = "(wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)", - IsNumber = true, - Name = "wxSizeConvention", - ValueType = "enum", - }, - wxSizeEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxSizeEvent", - ValueType = "class", - }, - wxSizer = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxSizer", - ValueType = "class", - }, - wxSizerFlags = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxSizerFlags", - ValueType = "class", - }, - wxSizerItem = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxSizerItem", - ValueType = "class", - }, - wxSizerItemList = { - BaseClasses = { - [1] = "wxList", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxSizerItemList", - ValueType = "class", - }, - wxSlider = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxSlider && wxUSE_SLIDER", - IsNumber = false, - Name = "wxSlider", - ValueType = "class", - }, - wxSockAddress = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxSockAddress", - ValueType = "class", - }, - wxSocketBase = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxSocketBase", - ValueType = "class", - }, - wxSocketClient = { - BaseClasses = { - [1] = "wxSocketBase", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxSocketClient", - ValueType = "class", - }, - wxSocketError = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxSocketError", - ValueType = "enum", - }, - wxSocketEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxSocketEvent", - ValueType = "class", - }, - wxSocketEventFlags = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxSocketEventFlags", - ValueType = "enum", - }, - wxSocketFlags = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxSocketFlags", - ValueType = "enum", - }, - wxSocketNotify = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxSocketNotify", - ValueType = "enum", - }, - wxSocketServer = { - BaseClasses = { - [1] = "wxSocketBase", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxSocketServer", - ValueType = "class", - }, - wxSocketType = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxSocketType", - ValueType = "enum", - }, - wxSortedArrayString = { - BaseClasses = { - [1] = "wxArrayString", - }, - Condition = "wxLUA_USE_wxArrayString", - IsNumber = false, - Name = "wxSortedArrayString", - ValueType = "class", - }, - wxSound = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)", - IsNumber = false, - Name = "wxSound", - ValueType = "class", - }, - wxSpinButton = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxSpinButton && wxUSE_SPINBTN", - IsNumber = false, - Name = "wxSpinButton", - ValueType = "class", - }, - wxSpinCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL", - IsNumber = false, - Name = "wxSpinCtrl", - ValueType = "class", - }, - wxSpinCtrlDouble = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL", - IsNumber = false, - Name = "wxSpinCtrlDouble", - ValueType = "class", - }, - wxSpinDoubleEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL", - IsNumber = false, - Name = "wxSpinDoubleEvent", - ValueType = "class", - }, - wxSpinEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxSpinButton && wxUSE_SPINBTN", - IsNumber = false, - Name = "wxSpinEvent", - ValueType = "class", - }, - wxSplashScreen = { - BaseClasses = { - [1] = "wxFrame", - }, - Condition = "wxLUA_USE_wxSplashScreen", - IsNumber = false, - Name = "wxSplashScreen", - ValueType = "class", - }, - wxSplashScreenWindow = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxSplashScreen", - IsNumber = false, - Name = "wxSplashScreenWindow", - ValueType = "class", - }, - wxSplitterEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxSplitterWindow", - IsNumber = false, - Name = "wxSplitterEvent", - ValueType = "class", - }, - wxSplitterRenderParams = { - Condition = "wxLUA_USE_wxRenderer", - IsNumber = false, - Name = "wxSplitterRenderParams", - ValueType = "struct", - }, - wxSplitterWindow = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxSplitterWindow", - IsNumber = false, - Name = "wxSplitterWindow", - ValueType = "class", - }, - wxStandardPaths = { - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths", - IsNumber = false, - Name = "wxStandardPaths", - ValueType = "class", - }, - ["wxStandardPaths::ConfigFileConv"] = { - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1))", - IsNumber = true, - Name = "wxStandardPaths::ConfigFileConv", - ValueType = "enum", - }, - ["wxStandardPaths::Dir"] = { - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0))", - IsNumber = true, - Name = "wxStandardPaths::Dir", - ValueType = "enum", - }, - ["wxStandardPaths::FileLayout"] = { - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1))", - IsNumber = true, - Name = "wxStandardPaths::FileLayout", - ValueType = "enum", - }, - ["wxStandardPaths::ResourceCat"] = { - Condition = "wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths", - IsNumber = true, - Name = "wxStandardPaths::ResourceCat", - ValueType = "enum", - }, - wxStaticBitmap = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP", - IsNumber = false, - Name = "wxStaticBitmap", - ValueType = "class", - }, - wxStaticBox = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxStaticBox && wxUSE_STATBOX", - IsNumber = false, - Name = "wxStaticBox", - ValueType = "class", - }, - wxStaticBoxSizer = { - BaseClasses = { - [1] = "wxBoxSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)", - IsNumber = false, - Name = "wxStaticBoxSizer", - ValueType = "class", - }, - wxStaticLine = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxStaticLine && wxUSE_STATLINE", - IsNumber = false, - Name = "wxStaticLine", - ValueType = "class", - }, - wxStaticText = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxStaticText && wxUSE_STATTEXT", - IsNumber = false, - Name = "wxStaticText", - ValueType = "class", - }, - wxStatusBar = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR", - IsNumber = false, - Name = "wxStatusBar", - ValueType = "class", - }, - wxStatusBarPane = { - Condition = "wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR", - IsNumber = false, - Name = "wxStatusBarPane", - ValueType = "class", - }, - wxStdDialogButtonSizer = { - BaseClasses = { - [1] = "wxBoxSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)", - IsNumber = false, - Name = "wxStdDialogButtonSizer", - ValueType = "class", - }, - wxStockCursor = { - Condition = "wxLUA_USE_wxCursor", - IsNumber = true, - Name = "wxStockCursor", - ValueType = "enum", - }, - wxStockGDI = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)", - IsNumber = false, - Name = "wxStockGDI", - ValueType = "class", - }, - ["wxStockGDI::Item"] = { - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)", - IsNumber = true, - Name = "wxStockGDI::Item", - ValueType = "enum", - }, - wxStopWatch = { - Condition = "wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH", - IsNumber = false, - Name = "wxStopWatch", - ValueType = "class", - }, - wxStreamBase = { - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxStreamBase", - ValueType = "class", - }, - wxStreamError = { - Condition = "wxUSE_STREAMS", - IsNumber = true, - Name = "wxStreamError", - ValueType = "enum", - }, - wxStretch = { - IsNumber = true, - Name = "wxStretch", - ValueType = "enum", - }, - wxString = { - IsNumber = true, - Name = "wxString", - ValueType = "special", - }, - ["wxString::const_iterator"] = { - Condition = "wxCHECK_VERSION(2,9,0)", - IsNumber = false, - Name = "wxString::const_iterator", - ValueType = "class", - }, - ["wxString::iterator"] = { - Condition = "wxCHECK_VERSION(2,9,0)", - IsNumber = false, - Name = "wxString::iterator", - ValueType = "class", - }, - wxStringClientData = { - BaseClasses = { - [1] = "wxClientData", - }, - IsNumber = false, - Name = "wxStringClientData", - ValueType = "class", - }, - wxStringInputStream = { - BaseClasses = { - [1] = "wxInputStream", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxStringInputStream", - ValueType = "class", - }, - wxStringOutputStream = { - BaseClasses = { - [1] = "wxOutputStream", - }, - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxStringOutputStream", - ValueType = "class", - }, - wxStringTokenizer = { - BaseClasses = { - [1] = "wxObject", - }, - IsNumber = false, - Name = "wxStringTokenizer", - ValueType = "class", - }, - wxStringTokenizerMode = { - IsNumber = true, - Name = "wxStringTokenizerMode", - ValueType = "enum", - }, - wxStyledTextCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - IsNumber = false, - Name = "wxStyledTextCtrl", - ValueType = "class", - }, - wxStyledTextEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxStyledTextEvent", - ValueType = "class", - }, - wxSymbolListCtrl = { - BaseClasses = { - [1] = "wxVScrolledWindow", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxSymbolListCtrl", - ValueType = "class", - }, - wxSymbolPickerDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxSymbolPickerDialog", - ValueType = "class", - }, - wxSysColourChangedEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxSysColourChangedEvent", - ValueType = "class", - }, - wxSystemAppearance = { - Condition = "(wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings)", - IsNumber = false, - Name = "wxSystemAppearance", - ValueType = "class", - }, - wxSystemColour = { - Condition = "wxLUA_USE_wxSystemSettings", - IsNumber = true, - Name = "wxSystemColour", - ValueType = "enum", - }, - wxSystemFeature = { - Condition = "wxLUA_USE_wxSystemSettings", - IsNumber = true, - Name = "wxSystemFeature", - ValueType = "enum", - }, - wxSystemFont = { - Condition = "wxLUA_USE_wxSystemSettings", - IsNumber = true, - Name = "wxSystemFont", - ValueType = "enum", - }, - wxSystemMetric = { - Condition = "wxLUA_USE_wxSystemSettings", - IsNumber = true, - Name = "wxSystemMetric", - ValueType = "enum", - }, - wxSystemOptions = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxSystemOptions", - IsNumber = false, - Name = "wxSystemOptions", - ValueType = "class", - }, - wxSystemScreenType = { - Condition = "wxLUA_USE_wxSystemSettings", - IsNumber = true, - Name = "wxSystemScreenType", - ValueType = "enum", - }, - wxSystemSettings = { - Condition = "wxLUA_USE_wxSystemSettings", - IsNumber = false, - Name = "wxSystemSettings", - ValueType = "class", - }, - wxTGAHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE)", - IsNumber = false, - Name = "wxTGAHandler", - ValueType = "class", - }, - wxTIFFHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "(wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF)", - IsNumber = false, - Name = "wxTIFFHandler", - ValueType = "class", - }, - wxTabCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG", - IsNumber = false, - Name = "wxTabCtrl", - ValueType = "class", - }, - wxTabEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG", - IsNumber = false, - Name = "wxTabEvent", - ValueType = "class", - }, - wxTaskBarIcon = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )", - IsNumber = false, - Name = "wxTaskBarIcon", - ValueType = "class", - }, - wxTaskBarIconEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )", - IsNumber = false, - Name = "wxTaskBarIconEvent", - ValueType = "class", - }, - wxTempFile = { - Condition = "wxLUA_USE_wxFile && wxUSE_FILE", - IsNumber = false, - Name = "wxTempFile", - ValueType = "class", - }, - wxTextAreaBase = { - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = false, - Name = "wxTextAreaBase", - ValueType = "class", - }, - wxTextAttr = { - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = false, - Name = "wxTextAttr", - ValueType = "class", - }, - wxTextAttrAlignment = { - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = true, - Name = "wxTextAttrAlignment", - ValueType = "enum", - }, - wxTextAttrBorder = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextAttrBorder", - ValueType = "class", - }, - wxTextAttrBorderFlags = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextAttrBorderFlags", - ValueType = "enum", - }, - wxTextAttrBorderStyle = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextAttrBorderStyle", - ValueType = "enum", - }, - wxTextAttrBorderWidth = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextAttrBorderWidth", - ValueType = "enum", - }, - wxTextAttrBorders = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextAttrBorders", - ValueType = "class", - }, - wxTextAttrBulletStyle = { - Condition = "(wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)", - IsNumber = true, - Name = "wxTextAttrBulletStyle", - ValueType = "enum", - }, - wxTextAttrDimension = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextAttrDimension", - ValueType = "class", - }, - wxTextAttrDimensionConverter = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextAttrDimensionConverter", - ValueType = "class", - }, - wxTextAttrDimensionFlags = { - IsNumber = true, - Name = "wxTextAttrDimensionFlags", - ValueType = "number", - }, - wxTextAttrDimensions = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextAttrDimensions", - ValueType = "class", - }, - wxTextAttrEffects = { - Condition = "(wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)", - IsNumber = true, - Name = "wxTextAttrEffects", - ValueType = "enum", - }, - wxTextAttrLineSpacing = { - Condition = "(wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)", - IsNumber = true, - Name = "wxTextAttrLineSpacing", - ValueType = "enum", - }, - wxTextAttrSize = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextAttrSize", - ValueType = "class", - }, - wxTextAttrUnits = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextAttrUnits", - ValueType = "enum", - }, - wxTextAttrValueFlags = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextAttrValueFlags", - ValueType = "enum", - }, - wxTextBoxAttr = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = false, - Name = "wxTextBoxAttr", - ValueType = "class", - }, - wxTextBoxAttrClearStyle = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextBoxAttrClearStyle", - ValueType = "enum", - }, - wxTextBoxAttrCollapseMode = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextBoxAttrCollapseMode", - ValueType = "enum", - }, - wxTextBoxAttrFlags = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextBoxAttrFlags", - ValueType = "enum", - }, - wxTextBoxAttrFloatStyle = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextBoxAttrFloatStyle", - ValueType = "enum", - }, - wxTextBoxAttrPosition = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextBoxAttrPosition", - ValueType = "enum", - }, - wxTextBoxAttrVerticalAlignment = { - Condition = "wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT", - IsNumber = true, - Name = "wxTextBoxAttrVerticalAlignment", - ValueType = "enum", - }, - wxTextCoord = { - IsNumber = true, - Name = "wxTextCoord", - ValueType = "number", - }, - wxTextCtrl = { - BaseClasses = { - [1] = "wxControl", - [2] = "wxTextEntry", - [3] = "wxTextAreaBase", - }, - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = false, - Name = "wxTextCtrl", - ValueType = "class", - }, - wxTextCtrlHitTestResult = { - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = true, - Name = "wxTextCtrlHitTestResult", - ValueType = "enum", - }, - wxTextCtrlIface = { - BaseClasses = { - [1] = "wxTextAreaBase", - [2] = "wxTextEntry", - }, - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = false, - Name = "wxTextCtrlIface", - ValueType = "class", - }, - wxTextDataObject = { - BaseClasses = { - [1] = "wxDataObjectSimple", - }, - Condition = "wxLUA_USE_wxDataObject && wxUSE_DATAOBJ", - IsNumber = false, - Name = "wxTextDataObject", - ValueType = "class", - }, - wxTextDropTarget = { - BaseClasses = { - [1] = "wxDropTarget", - }, - Condition = "wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP", - IsNumber = false, - Name = "wxTextDropTarget", - ValueType = "class", - }, - wxTextEntry = { - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = false, - Name = "wxTextEntry", - ValueType = "class", - }, - wxTextEntryDialog = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog", - IsNumber = false, - Name = "wxTextEntryDialog", - ValueType = "class", - }, - wxTextFileType = { - Condition = "(wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML)", - IsNumber = true, - Name = "wxTextFileType", - ValueType = "enum", - }, - wxTextInputStream = { - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxTextInputStream", - ValueType = "class", - }, - wxTextOutputStream = { - Condition = "wxUSE_STREAMS", - IsNumber = false, - Name = "wxTextOutputStream", - ValueType = "class", - }, - wxTextPos = { - IsNumber = true, - Name = "wxTextPos", - ValueType = "number", - }, - wxTextUrlEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - Condition = "wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL", - IsNumber = false, - Name = "wxTextUrlEvent", - ValueType = "class", - }, - wxTextValidator = { - BaseClasses = { - [1] = "wxValidator", - }, - Condition = "(wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)", - IsNumber = false, - Name = "wxTextValidator", - ValueType = "class", - }, - wxTimePickerCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))", - IsNumber = false, - Name = "wxTimePickerCtrl", - ValueType = "class", - }, - wxTimeSpan = { - Condition = "wxLUA_USE_wxTimeSpan && wxUSE_DATETIME", - IsNumber = false, - Name = "wxTimeSpan", - ValueType = "class", - }, - wxTimer = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxTimer && wxUSE_TIMER", - IsNumber = false, - Name = "wxTimer", - ValueType = "class", - }, - wxTimerEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - Condition = "wxLUA_USE_wxTimer && wxUSE_TIMER", - IsNumber = false, - Name = "wxTimerEvent", - ValueType = "class", - }, - wxToggleButton = { - BaseClasses = { - [1] = "wxAnyButton", - }, - Condition = "wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN", - IsNumber = false, - Name = "wxToggleButton", - ValueType = "class", - }, - wxToolBar = { - BaseClasses = { - [1] = "wxToolBarBase", - }, - Condition = "wxLUA_USE_wxToolbar", - IsNumber = false, - Name = "wxToolBar", - ValueType = "class", - }, - wxToolBarBase = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxToolbar", - IsNumber = false, - Name = "wxToolBarBase", - ValueType = "class", - }, - wxToolBarSimple = { - BaseClasses = { - [1] = "wxToolBarBase", - }, - Condition = "(!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)", - IsNumber = false, - Name = "wxToolBarSimple", - ValueType = "class", - }, - wxToolBarToolBase = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxToolbar", - IsNumber = false, - Name = "wxToolBarToolBase", - ValueType = "class", - }, - wxToolBarToolStyle = { - Condition = "wxLUA_USE_wxToolbar", - IsNumber = true, - Name = "wxToolBarToolStyle", - ValueType = "enum", - }, - wxToolTip = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS", - IsNumber = false, - Name = "wxToolTip", - ValueType = "class", - }, - wxToolbook = { - BaseClasses = { - [1] = "wxBookCtrlBase", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook", - IsNumber = false, - Name = "wxToolbook", - ValueType = "class", - }, - wxToolbookEvent = { - BaseClasses = { - [1] = "wxBookCtrlBaseEvent", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook", - IsNumber = false, - Name = "wxToolbookEvent", - ValueType = "class", - }, - wxTopLevelWindow = { - BaseClasses = { - [1] = "wxNonOwnedWindow", - }, - Condition = "wxLUA_USE_wxFrame || wxLUA_USE_wxDialog", - IsNumber = false, - Name = "wxTopLevelWindow", - ValueType = "class", - }, - wxTraceMask = { - IsNumber = true, - Name = "wxTraceMask", - ValueType = "number", - }, - wxTranslations = { - Condition = "(wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)", - IsNumber = false, - Name = "wxTranslations", - ValueType = "class", - }, - wxTranslationsLoader = { - Condition = "(wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)", - IsNumber = false, - Name = "wxTranslationsLoader", - ValueType = "class", - }, - wxTreeCtrl = { - BaseClasses = { - [1] = "wxControl", - }, - Condition = "wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL", - IsNumber = false, - Name = "wxTreeCtrl", - ValueType = "class", - }, - wxTreeEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL", - IsNumber = false, - Name = "wxTreeEvent", - ValueType = "class", - }, - wxTreeItemData = { - BaseClasses = { - [1] = "wxClientData", - }, - Condition = "wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL", - IsNumber = false, - Name = "wxTreeItemData", - ValueType = "class", - }, - wxTreeItemIcon = { - Condition = "wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL", - IsNumber = true, - Name = "wxTreeItemIcon", - ValueType = "enum", - }, - wxTreeItemId = { - Condition = "wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL", - IsNumber = false, - Name = "wxTreeItemId", - ValueType = "class", - }, - wxTreeItemIdValue = { - IsNumber = true, - Name = "wxTreeItemIdValue", - ValueType = "number", - }, - wxTreeListCtrl = { - BaseClasses = { - [1] = "wxWindow", - }, - Condition = "wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)", - IsNumber = false, - Name = "wxTreeListCtrl", - ValueType = "class", - }, - wxTreeListEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)", - IsNumber = false, - Name = "wxTreeListEvent", - ValueType = "class", - }, - wxTreeListItem = { - Condition = "wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)", - IsNumber = false, - Name = "wxTreeListItem", - ValueType = "class", - }, - wxTreebook = { - BaseClasses = { - [1] = "wxBookCtrlBase", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook", - IsNumber = false, - Name = "wxTreebook", - ValueType = "class", - }, - wxTreebookEvent = { - BaseClasses = { - [1] = "wxBookCtrlBaseEvent", - }, - Condition = "wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook", - IsNumber = false, - Name = "wxTreebookEvent", - ValueType = "class", - }, - wxUIntPtr = { - IsNumber = true, - Name = "wxUIntPtr", - ValueType = "number", - }, - wxULongLong = { - Condition = "wxUSE_LONGLONG", - IsNumber = false, - Name = "wxULongLong", - ValueType = "class", - }, - wxURI = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = false, - Name = "wxURI", - ValueType = "class", - }, - wxURIFieldType = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxURIFieldType", - ValueType = "enum", - }, - wxURIFlags = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxURIFlags", - ValueType = "enum", - }, - wxURIHostType = { - Condition = "wxLUA_USE_wxSocket && wxUSE_SOCKETS", - IsNumber = true, - Name = "wxURIHostType", - ValueType = "enum", - }, - wxURL = { - BaseClasses = { - [1] = "wxURI", - }, - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)", - IsNumber = false, - Name = "wxURL", - ValueType = "class", - }, - wxURLDataObject = { - BaseClasses = { - [1] = "wxTextDataObject", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)", - IsNumber = false, - Name = "wxURLDataObject", - ValueType = "class", - }, - wxURLError = { - Condition = "(wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)", - IsNumber = true, - Name = "wxURLError", - ValueType = "enum", - }, - wxUint16 = { - IsNumber = true, - Name = "wxUint16", - ValueType = "number", - }, - wxUint32 = { - IsNumber = true, - Name = "wxUint32", - ValueType = "number", - }, - wxUint64 = { - IsNumber = true, - Name = "wxUint64", - ValueType = "number", - }, - wxUint8 = { - IsNumber = true, - Name = "wxUint8", - ValueType = "number", - }, - wxUniChar = { - IsNumber = true, - Name = "wxUniChar", - ValueType = "number", - }, - wxUpdateUI = { - IsNumber = true, - Name = "wxUpdateUI", - ValueType = "enum", - }, - wxUpdateUIEvent = { - BaseClasses = { - [1] = "wxCommandEvent", - }, - IsNumber = false, - Name = "wxUpdateUIEvent", - ValueType = "class", - }, - wxUpdateUIMode = { - IsNumber = true, - Name = "wxUpdateUIMode", - ValueType = "enum", - }, - wxVScrolledWindow = { - IsNumber = false, - Name = "wxVScrolledWindow", - ValueType = "class", - }, - wxValidator = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_wxValidator && wxUSE_VALIDATORS", - IsNumber = false, - Name = "wxValidator", - ValueType = "class", - }, - wxVariant = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxUSE_VARIANT", - IsNumber = false, - Name = "wxVariant", - ValueType = "class", - }, - wxVariantData = { - BaseClasses = { - [1] = "wxObjectRefData", - }, - Condition = "wxUSE_VARIANT", - IsNumber = false, - Name = "wxVariantData", - ValueType = "class", - }, - wxVariantList = { - BaseClasses = { - [1] = "wxList", - }, - Condition = "wxUSE_VARIANT", - IsNumber = false, - Name = "wxVariantList", - ValueType = "class", - }, - wxVersionInfo = { - Condition = "wxCHECK_VERSION(2,9,2)", - IsNumber = false, - Name = "wxVersionInfo", - ValueType = "class", - }, - wxVideoMode = { - Condition = "wxLUA_USE_wxDisplay && wxUSE_DISPLAY", - IsNumber = false, - Name = "wxVideoMode", - ValueType = "class", - }, - wxView = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - Condition = "wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE", - IsNumber = false, - Name = "wxView", - ValueType = "class", - }, - wxVisualAttributes = { - IsNumber = false, - Name = "wxVisualAttributes", - ValueType = "class", - }, - wxWave = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "(defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)", - IsNumber = false, - Name = "wxWave", - ValueType = "class", - }, - wxWinHelpController = { - BaseClasses = { - [1] = "wxHelpControllerBase", - }, - Condition = "(defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)", - IsNumber = false, - Name = "wxWinHelpController", - ValueType = "class", - }, - wxWindow = { - BaseClasses = { - [1] = "wxEvtHandler", - }, - IsNumber = false, - Name = "wxWindow", - ValueType = "class", - }, - wxWindowCreateEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxWindowCreateEvent", - ValueType = "class", - }, - wxWindowDC = { - BaseClasses = { - [1] = "wxDC", - }, - Condition = "wxLUA_USE_wxDC", - IsNumber = false, - Name = "wxWindowDC", - ValueType = "class", - }, - wxWindowDestroyEvent = { - BaseClasses = { - [1] = "wxEvent", - }, - IsNumber = false, - Name = "wxWindowDestroyEvent", - ValueType = "class", - }, - wxWindowDisabler = { - IsNumber = false, - Name = "wxWindowDisabler", - ValueType = "class", - }, - wxWindowID = { - IsNumber = true, - Name = "wxWindowID", - ValueType = "number", - }, - wxWindowList = { - BaseClasses = { - [1] = "wxList", - }, - Condition = "wxLUA_USE_wxWindowList && !wxUSE_STL", - IsNumber = false, - Name = "wxWindowList", - ValueType = "class", - }, - wxWindowUpdateLocker = { - IsNumber = false, - Name = "wxWindowUpdateLocker", - ValueType = "class", - }, - wxWindowVariant = { - IsNumber = true, - Name = "wxWindowVariant", - ValueType = "enum", - }, - wxWizard = { - BaseClasses = { - [1] = "wxDialog", - }, - Condition = "wxUSE_WIZARDDLG && wxLUA_USE_wxWizard", - IsNumber = false, - Name = "wxWizard", - ValueType = "class", - }, - wxWizardEvent = { - BaseClasses = { - [1] = "wxNotifyEvent", - }, - Condition = "wxUSE_WIZARDDLG && wxLUA_USE_wxWizard", - IsNumber = false, - Name = "wxWizardEvent", - ValueType = "class", - }, - wxWizardPage = { - BaseClasses = { - [1] = "wxPanel", - }, - Condition = "wxUSE_WIZARDDLG && wxLUA_USE_wxWizard", - IsNumber = false, - Name = "wxWizardPage", - ValueType = "class", - }, - wxWizardPageSimple = { - BaseClasses = { - [1] = "wxWizardPage", - }, - Condition = "wxUSE_WIZARDDLG && wxLUA_USE_wxWizard", - IsNumber = false, - Name = "wxWizardPageSimple", - ValueType = "class", - }, - wxWord = { - IsNumber = true, - Name = "wxWord", - ValueType = "number", - }, - wxWrapSizer = { - BaseClasses = { - [1] = "wxBoxSizer", - }, - Condition = "(wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer)", - IsNumber = false, - Name = "wxWrapSizer", - ValueType = "class", - }, - wxXPMHandler = { - BaseClasses = { - [1] = "wxImageHandler", - }, - Condition = "wxLUA_USE_wxImage && wxUSE_IMAGE", - IsNumber = false, - Name = "wxXPMHandler", - ValueType = "class", - }, - wxXmlAttribute = { - Condition = "wxLUA_USE_wxXML && wxUSE_XML", - IsNumber = false, - Name = "wxXmlAttribute", - ValueType = "class", - }, - wxXmlDoctype = { - Condition = "(wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML)", - IsNumber = false, - Name = "wxXmlDoctype", - ValueType = "class", - }, - wxXmlDocument = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxXML && wxUSE_XML", - IsNumber = false, - Name = "wxXmlDocument", - ValueType = "class", - }, - wxXmlNode = { - Condition = "wxLUA_USE_wxXML && wxUSE_XML", - IsNumber = false, - Name = "wxXmlNode", - ValueType = "class", - }, - wxXmlNodeType = { - Condition = "wxLUA_USE_wxXML && wxUSE_XML", - IsNumber = true, - Name = "wxXmlNodeType", - ValueType = "enum", - }, - wxXmlProperty = { - Condition = "(!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)", - IsNumber = false, - Name = "wxXmlProperty", - ValueType = "class", - }, - wxXmlResource = { - BaseClasses = { - [1] = "wxObject", - }, - Condition = "wxLUA_USE_wxXRC && wxUSE_XRC", - IsNumber = false, - Name = "wxXmlResource", - ValueType = "class", - }, - wxXmlResourceFlags = { - Condition = "wxLUA_USE_wxXRC && wxUSE_XRC", - IsNumber = true, - Name = "wxXmlResourceFlags", - ValueType = "enum", - }, -} - - --- --------------------------------------------------------------------------- --- preprocConditionTable --- --------------------------------------------------------------------------- -wx_preprocConditionTable = -{ - ["%__WIN16__"] = "defined(__WIN16__)", - ["%__WIN32__"] = "defined(__WIN32__)", - ["%__WIN95__"] = "defined(__WIN95__)", - ["%__WINDOWS__"] = "defined(__WINDOWS__)", - ["%__WXBASE__"] = "defined(__WXBASE__)", - ["%__WXCOCOA__"] = "defined(__WXCOCOA__)", - ["%__WXGTK12__"] = "defined(__WXGTK12__)", - ["%__WXGTK20__"] = "defined(__WXGTK20__)", - ["%__WXGTK__"] = "defined(__WXGTK__)", - ["%__WXMAC_CARBON__"] = "defined(__WXMAC_CARBON__)", - ["%__WXMAC_CLASSIC__"] = "defined(__WXMAC_CLASSIC__)", - ["%__WXMAC_OSX__"] = "defined(__WXMAC_OSX__)", - ["%__WXMAC__"] = "defined(__WXMAC__)", - ["%__WXMGL__"] = "defined(__WXMGL__)", - ["%__WXMOTIF20__"] = "defined(__WXMOTIF20__)", - ["%__WXMOTIF__"] = "defined(__WXMOTIF__)", - ["%__WXMSW__"] = "defined(__WXMSW__)", - ["%__WXOS2__"] = "defined(__WXOS2__)", - ["%__WXOSX__"] = "defined(__WXOSX__)", - ["%__WXPALMOS__"] = "defined(__WXPALMOS__)", - ["%__WXPM__"] = "defined(__WXPM__)", - ["%__WXSTUBS__"] = "defined(__WXSTUBS__)", - ["%__WXUNIVERSAL__"] = "defined(__WXUNIVERSAL__)", - ["%__WXWINCE__"] = "defined(__WXWINCE__)", - ["%__WXWINE__"] = "defined(__WXWINE__)", - ["%__WXX11__"] = "defined(__WXX11__)", - ["%__WXXT__"] = "defined(__WXXT__)", - ["%__X__"] = "defined(__X__)", - ["%cocoa"] = "defined(__WXCOCOA__)", - ["%gtk"] = "defined(__WXGTK__)", - ["%mac"] = "defined(__WXMAC__)", - ["%mgl"] = "defined(__WXMGL__)", - ["%motif"] = "defined(__WXMOTIF__)", - ["%msw"] = "defined(__WXMSW__)", - ["%os2"] = "defined(__WXPM__)", - ["%palm"] = "defined(__WXPALMOS__)", - ["%univ"] = "defined(__WXUNIVERSAL__)", - ["%win"] = "defined(__WXMSW__)", - ["%wince"] = "defined(__WXWINCE__)", - ["%wxHAS_NATIVE_RENDERER"] = "defined(wxHAS_NATIVE_RENDERER)", - ["%wxchkver_2_4"] = "wxCHECK_VERSION(2,4,0)", - ["%wxchkver_2_6"] = "wxCHECK_VERSION(2,6,0)", - ["%wxchkver_2_6_4"] = "wxCHECK_VERSION(2,6,4)", - ["%wxchkver_2_8"] = "wxCHECK_VERSION(2,8,0)", - ["%wxchkver_2_8_0"] = "wxCHECK_VERSION(2,8,0)", - ["%wxchkver_2_8_1"] = "wxCHECK_VERSION(2,8,1)", - ["%wxchkver_2_8_12"] = "wxCHECK_VERSION(2,8,12)", - ["%wxchkver_2_8_4"] = "wxCHECK_VERSION(2,8,4)", - ["%wxchkver_2_8_5"] = "wxCHECK_VERSION(2,8,5)", - ["%wxchkver_2_8_6"] = "wxCHECK_VERSION(2,8,6)", - ["%wxchkver_2_8_8"] = "wxCHECK_VERSION(2,8,8)", - ["%wxchkver_2_9"] = "wxCHECK_VERSION(2,9,0)", - ["%wxchkver_2_9_0"] = "wxCHECK_VERSION(2,9,0)", - ["%wxchkver_2_9_1"] = "wxCHECK_VERSION(2,9,1)", - ["%wxchkver_2_9_2"] = "wxCHECK_VERSION(2,9,2)", - ["%wxchkver_2_9_3"] = "wxCHECK_VERSION(2,9,3)", - ["%wxchkver_2_9_4"] = "wxCHECK_VERSION(2,9,4)", - ["%wxchkver_2_9_5"] = "wxCHECK_VERSION(2,9,5)", - ["%wxchkver_3_0"] = "wxCHECK_VERSION(3,0,0)", - ["%wxchkver_3_0_0"] = "wxCHECK_VERSION(3,0,0)", - ["%wxchkver_3_0_1"] = "wxCHECK_VERSION(3,0,1)", - ["%wxchkver_3_1"] = "wxCHECK_VERSION(3,1,0)", - ["%wxchkver_3_1_0"] = "wxCHECK_VERSION(3,1,0)", - ["%wxchkver_3_1_1"] = "wxCHECK_VERSION(3,1,1)", - ["%wxchkver_3_1_2"] = "wxCHECK_VERSION(3,1,2)", - ["%wxchkver_3_1_3"] = "wxCHECK_VERSION(3,1,3)", - ["%wxchkver_3_1_4"] = "wxCHECK_VERSION(3,1,4)", - ["%wxchkver_3_1_5"] = "wxCHECK_VERSION(3,1,5)", - ["%wxchkver_3_1_6"] = "wxCHECK_VERSION(3,1,6)", - ["%wxchkver_3_2_2"] = "wxCHECK_VERSION(3,2,2)", - ["%wxcompat_2_4"] = "(defined(WXWIN_COMPATIBILITY_2_4) && WXWIN_COMPATIBILITY_2_4)", - ["%wxcompat_2_6"] = "(defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)", - ["%wxcompat_2_8"] = "(defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)", - ["%wxcompat_3_0"] = "(defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)", - ["%x11"] = "defined(__WXX11__)", - WXWIN_COMPATIBILITY_2 = "(defined(WXWIN_COMPATIBILITY_2) && WXWIN_COMPATIBILITY_2)", - WXWIN_COMPATIBILITY_2_2 = "(defined(WXWIN_COMPATIBILITY_2_2) && WXWIN_COMPATIBILITY_2_2)", - WXWIN_COMPATIBILITY_2_4 = "(defined(WXWIN_COMPATIBILITY_2_4) && WXWIN_COMPATIBILITY_2_4)", - WXWIN_COMPATIBILITY_2_6 = "(defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)", - WXWIN_COMPATIBILITY_2_8 = "(defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)", - wxHAS_POWER_EVENTS = "defined(wxHAS_POWER_EVENTS)", - wxLUA_USE_FL = "wxLUA_USE_FL", - wxLUA_USE_Geometry = "wxLUA_USE_Geometry", - wxLUA_USE_MDI = "wxLUA_USE_MDI", - wxLUA_USE_wxAUI = "wxLUA_USE_wxAUI", - wxLUA_USE_wxAboutDialog = "wxLUA_USE_wxAboutDialog", - wxLUA_USE_wxAcceleratorTable = "wxLUA_USE_wxAcceleratorTable", - wxLUA_USE_wxAnimation = "wxLUA_USE_wxAnimation", - wxLUA_USE_wxApp = "wxLUA_USE_wxApp", - wxLUA_USE_wxArrayDouble = "wxLUA_USE_wxArrayDouble", - wxLUA_USE_wxArrayInt = "wxLUA_USE_wxArrayInt", - wxLUA_USE_wxArrayString = "wxLUA_USE_wxArrayString", - wxLUA_USE_wxArtProvider = "wxLUA_USE_wxArtProvider", - wxLUA_USE_wxBitmap = "wxLUA_USE_wxBitmap", - wxLUA_USE_wxBitmapButton = "wxLUA_USE_wxBitmapButton", - wxLUA_USE_wxBitmapComboBox = "wxLUA_USE_wxBitmapComboBox", - wxLUA_USE_wxBrushList = "wxLUA_USE_wxBrushList", - wxLUA_USE_wxBusyCursor = "wxLUA_USE_wxBusyCursor", - wxLUA_USE_wxBusyInfo = "wxLUA_USE_wxBusyInfo", - wxLUA_USE_wxButton = "wxLUA_USE_wxButton", - wxLUA_USE_wxCalendarCtrl = "wxLUA_USE_wxCalendarCtrl", - wxLUA_USE_wxCaret = "wxLUA_USE_wxCaret", - wxLUA_USE_wxCheckBox = "wxLUA_USE_wxCheckBox", - wxLUA_USE_wxCheckListBox = "wxLUA_USE_wxCheckListBox", - wxLUA_USE_wxChoice = "wxLUA_USE_wxChoice", - wxLUA_USE_wxClassInfo = "wxLUA_USE_wxClassInfo", - wxLUA_USE_wxClipboard = "wxLUA_USE_wxClipboard", - wxLUA_USE_wxCollapsiblePane = "wxLUA_USE_wxCollapsiblePane", - wxLUA_USE_wxColourDialog = "wxLUA_USE_wxColourDialog", - wxLUA_USE_wxColourPenBrush = "wxLUA_USE_wxColourPenBrush", - wxLUA_USE_wxColourPickerCtrl = "wxLUA_USE_wxColourPickerCtrl", - wxLUA_USE_wxComboBox = "wxLUA_USE_wxComboBox", - wxLUA_USE_wxCommandProcessor = "wxLUA_USE_wxCommandProcessor", - wxLUA_USE_wxConfig = "wxLUA_USE_wxConfig", - wxLUA_USE_wxCriticalSection = "wxLUA_USE_wxCriticalSection", - wxLUA_USE_wxCriticalSectionLocker = "wxLUA_USE_wxCriticalSectionLocker", - wxLUA_USE_wxCursor = "wxLUA_USE_wxCursor", - wxLUA_USE_wxDC = "wxLUA_USE_wxDC", - wxLUA_USE_wxDataObject = "wxLUA_USE_wxDataObject", - wxLUA_USE_wxDataViewCtrl = "wxLUA_USE_wxDataViewCtrl", - wxLUA_USE_wxDatePickerCtrl = "wxLUA_USE_wxDatePickerCtrl", - wxLUA_USE_wxDateSpan = "wxLUA_USE_wxDateSpan", - wxLUA_USE_wxDateTime = "wxLUA_USE_wxDateTime", - wxLUA_USE_wxDateTimeHolidayAuthority = "wxLUA_USE_wxDateTimeHolidayAuthority", - wxLUA_USE_wxDialog = "wxLUA_USE_wxDialog", - wxLUA_USE_wxDir = "wxLUA_USE_wxDir", - wxLUA_USE_wxDirDialog = "wxLUA_USE_wxDirDialog", - wxLUA_USE_wxDirPickerCtrl = "wxLUA_USE_wxDirPickerCtrl", - wxLUA_USE_wxDisplay = "wxLUA_USE_wxDisplay", - wxLUA_USE_wxDragDrop = "wxLUA_USE_wxDragDrop", - wxLUA_USE_wxDynamicLibrary = "wxLUA_USE_wxDynamicLibrary", - wxLUA_USE_wxFile = "wxLUA_USE_wxFile", - wxLUA_USE_wxFileDialog = "wxLUA_USE_wxFileDialog", - wxLUA_USE_wxFileHistory = "wxLUA_USE_wxFileHistory", - wxLUA_USE_wxFileName = "wxLUA_USE_wxFileName", - wxLUA_USE_wxFilePickerCtrl = "wxLUA_USE_wxFilePickerCtrl", - wxLUA_USE_wxFindReplaceDialog = "wxLUA_USE_wxFindReplaceDialog", - wxLUA_USE_wxFont = "wxLUA_USE_wxFont", - wxLUA_USE_wxFontDialog = "wxLUA_USE_wxFontDialog", - wxLUA_USE_wxFontEnumerator = "wxLUA_USE_wxFontEnumerator", - wxLUA_USE_wxFontList = "wxLUA_USE_wxFontList", - wxLUA_USE_wxFontMapper = "wxLUA_USE_wxFontMapper", - wxLUA_USE_wxFontPickerCtrl = "wxLUA_USE_wxFontPickerCtrl", - wxLUA_USE_wxFrame = "wxLUA_USE_wxFrame", - wxLUA_USE_wxGLCanvas = "wxLUA_USE_wxGLCanvas", - wxLUA_USE_wxGauge = "wxLUA_USE_wxGauge", - wxLUA_USE_wxGenericDirCtrl = "wxLUA_USE_wxGenericDirCtrl", - wxLUA_USE_wxGenericValidator = "wxLUA_USE_wxGenericValidator", - wxLUA_USE_wxGrid = "wxLUA_USE_wxGrid", - wxLUA_USE_wxHTML = "wxLUA_USE_wxHTML", - wxLUA_USE_wxHashTable = "wxLUA_USE_wxHashTable", - wxLUA_USE_wxHelpController = "wxLUA_USE_wxHelpController", - wxLUA_USE_wxHtmlHelpController = "wxLUA_USE_wxHtmlHelpController", - wxLUA_USE_wxHyperlinkCtrl = "wxLUA_USE_wxHyperlinkCtrl", - wxLUA_USE_wxID_XXX = "wxLUA_USE_wxID_XXX", - wxLUA_USE_wxIcon = "wxLUA_USE_wxIcon", - wxLUA_USE_wxImage = "wxLUA_USE_wxImage", - wxLUA_USE_wxImageList = "wxLUA_USE_wxImageList", - wxLUA_USE_wxJoystick = "wxLUA_USE_wxJoystick", - wxLUA_USE_wxLayoutConstraints = "wxLUA_USE_wxLayoutConstraints", - wxLUA_USE_wxList = "wxLUA_USE_wxList", - wxLUA_USE_wxListBox = "wxLUA_USE_wxListBox", - wxLUA_USE_wxListCtrl = "wxLUA_USE_wxListCtrl", - wxLUA_USE_wxLog = "wxLUA_USE_wxLog", - wxLUA_USE_wxLogWindow = "wxLUA_USE_wxLogWindow", - wxLUA_USE_wxLuaHtmlWindow = "wxLUA_USE_wxLuaHtmlWindow", - wxLUA_USE_wxLuaPrintout = "wxLUA_USE_wxLuaPrintout", - wxLUA_USE_wxMask = "wxLUA_USE_wxMask", - wxLUA_USE_wxMediaCtrl = "wxLUA_USE_wxMediaCtrl", - wxLUA_USE_wxMenu = "wxLUA_USE_wxMenu", - wxLUA_USE_wxMessageDialog = "wxLUA_USE_wxMessageDialog", - wxLUA_USE_wxMetafile = "wxLUA_USE_wxMetafile", - wxLUA_USE_wxMiniFrame = "wxLUA_USE_wxMiniFrame", - wxLUA_USE_wxMultiChoiceDialog = "wxLUA_USE_wxMultiChoiceDialog", - wxLUA_USE_wxNotebook = "wxLUA_USE_wxNotebook", - wxLUA_USE_wxObject = "wxLUA_USE_wxObject", - wxLUA_USE_wxPalette = "wxLUA_USE_wxPalette", - wxLUA_USE_wxPenList = "wxLUA_USE_wxPenList", - wxLUA_USE_wxPicker = "wxLUA_USE_wxPicker", - wxLUA_USE_wxPointSizeRect = "wxLUA_USE_wxPointSizeRect", - wxLUA_USE_wxPopupTransientWindow = "wxLUA_USE_wxPopupTransientWindow", - wxLUA_USE_wxPopupWindow = "wxLUA_USE_wxPopupWindow", - wxLUA_USE_wxPrint = "wxLUA_USE_wxPrint", - wxLUA_USE_wxProcess = "wxLUA_USE_wxProcess", - wxLUA_USE_wxProgressDialog = "wxLUA_USE_wxProgressDialog", - wxLUA_USE_wxRadioBox = "wxLUA_USE_wxRadioBox", - wxLUA_USE_wxRadioButton = "wxLUA_USE_wxRadioButton", - wxLUA_USE_wxRegEx = "wxLUA_USE_wxRegEx", - wxLUA_USE_wxRegion = "wxLUA_USE_wxRegion", - wxLUA_USE_wxRenderer = "wxLUA_USE_wxRenderer", - wxLUA_USE_wxRichText = "wxLUA_USE_wxRichText", - wxLUA_USE_wxSashWindow = "wxLUA_USE_wxSashWindow", - wxLUA_USE_wxScrollBar = "wxLUA_USE_wxScrollBar", - wxLUA_USE_wxScrolledWindow = "wxLUA_USE_wxScrolledWindow", - wxLUA_USE_wxSingleChoiceDialog = "wxLUA_USE_wxSingleChoiceDialog", - wxLUA_USE_wxSizer = "wxLUA_USE_wxSizer", - wxLUA_USE_wxSlider = "wxLUA_USE_wxSlider", - wxLUA_USE_wxSocket = "wxLUA_USE_wxSocket", - wxLUA_USE_wxSpinButton = "wxLUA_USE_wxSpinButton", - wxLUA_USE_wxSpinCtrl = "wxLUA_USE_wxSpinCtrl", - wxLUA_USE_wxSpinCtrlDouble = "wxLUA_USE_wxSpinCtrlDouble", - wxLUA_USE_wxSplashScreen = "wxLUA_USE_wxSplashScreen", - wxLUA_USE_wxSplitterWindow = "wxLUA_USE_wxSplitterWindow", - wxLUA_USE_wxStandardPaths = "wxLUA_USE_wxStandardPaths", - wxLUA_USE_wxStaticBitmap = "wxLUA_USE_wxStaticBitmap", - wxLUA_USE_wxStaticBox = "wxLUA_USE_wxStaticBox", - wxLUA_USE_wxStaticLine = "wxLUA_USE_wxStaticLine", - wxLUA_USE_wxStaticText = "wxLUA_USE_wxStaticText", - wxLUA_USE_wxStatusBar = "wxLUA_USE_wxStatusBar", - wxLUA_USE_wxStopWatch = "wxLUA_USE_wxStopWatch", - wxLUA_USE_wxStringList = "wxLUA_USE_wxStringList", - wxLUA_USE_wxSystemOptions = "wxLUA_USE_wxSystemOptions", - wxLUA_USE_wxSystemSettings = "wxLUA_USE_wxSystemSettings", - wxLUA_USE_wxTabCtrl = "wxLUA_USE_wxTabCtrl", - wxLUA_USE_wxTaskBarIcon = "wxLUA_USE_wxTaskBarIcon", - wxLUA_USE_wxTextCtrl = "wxLUA_USE_wxTextCtrl", - wxLUA_USE_wxTextEntryDialog = "wxLUA_USE_wxTextEntryDialog", - wxLUA_USE_wxTextValidator = "wxLUA_USE_wxTextValidator", - wxLUA_USE_wxTimePickerCtrl = "wxLUA_USE_wxTimePickerCtrl", - wxLUA_USE_wxTimeSpan = "wxLUA_USE_wxTimeSpan", - wxLUA_USE_wxTimer = "wxLUA_USE_wxTimer", - wxLUA_USE_wxToggleButton = "wxLUA_USE_wxToggleButton", - wxLUA_USE_wxToolbar = "wxLUA_USE_wxToolbar", - wxLUA_USE_wxToolbook = "wxLUA_USE_wxToolbook", - wxLUA_USE_wxTooltip = "wxLUA_USE_wxTooltip", - wxLUA_USE_wxTranslations = "wxLUA_USE_wxTranslations", - wxLUA_USE_wxTreeCtrl = "wxLUA_USE_wxTreeCtrl", - wxLUA_USE_wxTreeListCtrl = "wxLUA_USE_wxTreeListCtrl", - wxLUA_USE_wxTreebook = "wxLUA_USE_wxTreebook", - wxLUA_USE_wxValidator = "wxLUA_USE_wxValidator", - wxLUA_USE_wxWave = "wxLUA_USE_wxWave", - wxLUA_USE_wxWindowList = "wxLUA_USE_wxWindowList", - wxLUA_USE_wxWizard = "wxLUA_USE_wxWizard", - wxLUA_USE_wxXML = "wxLUA_USE_wxXML", - wxLUA_USE_wxXRC = "wxLUA_USE_wxXRC", - wxUSE_ABOUTDLG = "wxUSE_ABOUTDLG", - wxUSE_ACCEL = "wxUSE_ACCEL", - wxUSE_ACCESSIBILITY = "wxUSE_ACCESSIBILITY", - wxUSE_AFM_FOR_POSTSCRIPT = "wxUSE_AFM_FOR_POSTSCRIPT", - wxUSE_ANIMATIONCTRL = "wxUSE_ANIMATIONCTRL", - wxUSE_APPLE_IEEE = "wxUSE_APPLE_IEEE", - wxUSE_AUI = "wxUSE_AUI", - wxUSE_BITMAPCOMBOBOX = "wxUSE_BITMAPCOMBOBOX", - wxUSE_BMPBUTTON = "wxUSE_BMPBUTTON", - wxUSE_BOOKCTRL = "wxUSE_BOOKCTRL", - wxUSE_BUILTIN_IODBC = "wxUSE_BUILTIN_IODBC", - wxUSE_BUSYINFO = "wxUSE_BUSYINFO", - wxUSE_BUTTON = "wxUSE_BUTTON", - wxUSE_CALENDARCTRL = "wxUSE_CALENDARCTRL", - wxUSE_CARET = "wxUSE_CARET", - wxUSE_CHECKBOX = "wxUSE_CHECKBOX", - wxUSE_CHECKLISTBOX = "wxUSE_CHECKLISTBOX", - wxUSE_CHOICE = "wxUSE_CHOICE", - wxUSE_CHOICEBOOK = "wxUSE_CHOICEBOOK", - wxUSE_CHOICEDLG = "wxUSE_CHOICEDLG", - wxUSE_CLIPBOARD = "wxUSE_CLIPBOARD", - wxUSE_CMDLINE_PARSER = "wxUSE_CMDLINE_PARSER", - wxUSE_COLLPANE = "wxUSE_COLLPANE", - wxUSE_COLOURDLG = "wxUSE_COLOURDLG", - wxUSE_COLOURPICKERCTRL = "wxUSE_COLOURPICKERCTRL", - wxUSE_COMBOBOX = "wxUSE_COMBOBOX", - wxUSE_CONFIG = "wxUSE_CONFIG", - wxUSE_CONSTRAINTS = "wxUSE_CONSTRAINTS", - wxUSE_CONTROLS = "wxUSE_CONTROLS", - wxUSE_DATAOBJ = "wxUSE_DATAOBJ", - wxUSE_DATAVIEWCTRL = "wxUSE_DATAVIEWCTRL", - wxUSE_DATEPICKCTRL = "wxUSE_DATEPICKCTRL", - wxUSE_DATETIME = "wxUSE_DATETIME", - wxUSE_DEBUG_CONTEXT = "wxUSE_DEBUG_CONTEXT", - wxUSE_DEBUG_NEW_ALWAYS = "wxUSE_DEBUG_NEW_ALWAYS", - wxUSE_DIALUP_MANAGER = "wxUSE_DIALUP_MANAGER", - wxUSE_DIRDLG = "wxUSE_DIRDLG", - wxUSE_DIRPICKERCTRL = "wxUSE_DIRPICKERCTRL", - wxUSE_DISPLAY = "wxUSE_DISPLAY", - wxUSE_DOC_VIEW_ARCHITECTURE = "wxUSE_DOC_VIEW_ARCHITECTURE", - wxUSE_DRAGIMAGE = "wxUSE_DRAGIMAGE", - wxUSE_DRAG_AND_DROP = "wxUSE_DRAG_AND_DROP", - wxUSE_DYNAMIC_CLASSES = "wxUSE_DYNAMIC_CLASSES", - wxUSE_DYNAMIC_LOADER = "wxUSE_DYNAMIC_LOADER", - wxUSE_DYNLIB_CLASS = "wxUSE_DYNLIB_CLASS", - wxUSE_ENH_METAFILE = "wxUSE_ENH_METAFILE", - wxUSE_EXCEPTIONS = "wxUSE_EXCEPTIONS", - wxUSE_EXPERIMENTAL_PRINTF = "wxUSE_EXPERIMENTAL_PRINTF", - wxUSE_FFILE = "wxUSE_FFILE", - wxUSE_FILE = "wxUSE_FILE", - wxUSE_FILEDLG = "wxUSE_FILEDLG", - wxUSE_FILEPICKERCTRL = "wxUSE_FILEPICKERCTRL", - wxUSE_FILESYSTEM = "wxUSE_FILESYSTEM", - wxUSE_FINDREPLDLG = "wxUSE_FINDREPLDLG", - wxUSE_FONTDLG = "wxUSE_FONTDLG", - wxUSE_FONTMAP = "wxUSE_FONTMAP", - wxUSE_FONTPICKERCTRL = "wxUSE_FONTPICKERCTRL", - wxUSE_FREETYPE = "wxUSE_FREETYPE", - wxUSE_FSVOLUME = "wxUSE_FSVOLUME", - wxUSE_FS_INET = "wxUSE_FS_INET", - wxUSE_FS_ZIP = "wxUSE_FS_ZIP", - wxUSE_GAUGE = "wxUSE_GAUGE", - wxUSE_GEOMETRY = "wxUSE_GEOMETRY", - wxUSE_GIF = "wxUSE_GIF", - wxUSE_GLCANVAS = "wxUSE_GLCANVAS", - wxUSE_GLOBAL_MEMORY_OPERATORS = "wxUSE_GLOBAL_MEMORY_OPERATORS", - wxUSE_GRID = "wxUSE_GRID", - wxUSE_GUI = "wxUSE_GUI", - wxUSE_HELP = "wxUSE_HELP", - wxUSE_HOTKEY = "wxUSE_HOTKEY", - wxUSE_HTML = "wxUSE_HTML", - wxUSE_HYPERLINKCTRL = "wxUSE_HYPERLINKCTRL", - wxUSE_ICO_CUR = "wxUSE_ICO_CUR", - wxUSE_IFF = "wxUSE_IFF", - wxUSE_IMAGE = "wxUSE_IMAGE", - wxUSE_IMAGLIST = "wxUSE_IMAGLIST", - wxUSE_INTL = "wxUSE_INTL", - wxUSE_IOSTREAMH = "wxUSE_IOSTREAMH", - wxUSE_IPC = "wxUSE_IPC", - wxUSE_JOYSTICK = "wxUSE_JOYSTICK", - wxUSE_LIBJPEG = "wxUSE_LIBJPEG", - wxUSE_LIBMSPACK = "wxUSE_LIBMSPACK", - wxUSE_LIBPNG = "wxUSE_LIBPNG", - wxUSE_LIBSDL = "wxUSE_LIBSDL", - wxUSE_LIBTIFF = "wxUSE_LIBTIFF", - wxUSE_LISTBOOK = "wxUSE_LISTBOOK", - wxUSE_LISTBOX = "wxUSE_LISTBOX", - wxUSE_LISTCTRL = "wxUSE_LISTCTRL", - wxUSE_LOG = "wxUSE_LOG", - wxUSE_LOGGUI = "wxUSE_LOGGUI", - wxUSE_LOGWINDOW = "wxUSE_LOGWINDOW", - wxUSE_LOG_DIALOG = "wxUSE_LOG_DIALOG", - wxUSE_LONGLONG = "wxUSE_LONGLONG", - wxUSE_MDI = "wxUSE_MDI", - wxUSE_MDI_ARCHITECTURE = "wxUSE_MDI_ARCHITECTURE", - wxUSE_MEDIACTRL = "wxUSE_MEDIACTRL", - wxUSE_MEMORY_TRACING = "wxUSE_MEMORY_TRACING", - wxUSE_MENUS = "wxUSE_MENUS", - wxUSE_METAFILE = "wxUSE_METAFILE", - wxUSE_MIMETYPE = "wxUSE_MIMETYPE", - wxUSE_MINIFRAME = "wxUSE_MINIFRAME", - wxUSE_MOUSEWHEEL = "wxUSE_MOUSEWHEEL", - wxUSE_MSGDLG = "wxUSE_MSGDLG", - wxUSE_MS_HTML_HELP = "wxUSE_MS_HTML_HELP", - wxUSE_NANOX = "wxUSE_NANOX", - wxUSE_NATIVE_STATUSBAR = "wxUSE_NATIVE_STATUSBAR", - wxUSE_NEW_GRID = "wxUSE_NEW_GRID", - wxUSE_NOGUI = "wxUSE_NOGUI", - wxUSE_NORMALIZED_PS_FONTS = "wxUSE_NORMALIZED_PS_FONTS", - wxUSE_NOTEBOOK = "wxUSE_NOTEBOOK", - wxUSE_NUMBERDLG = "wxUSE_NUMBERDLG", - wxUSE_ODBC = "wxUSE_ODBC", - wxUSE_OLE = "wxUSE_OLE", - wxUSE_ON_FATAL_EXCEPTION = "wxUSE_ON_FATAL_EXCEPTION", - wxUSE_OPENGL = "wxUSE_OPENGL", - wxUSE_OWNER_DRAWN = "wxUSE_OWNER_DRAWN", - wxUSE_PALETTE = "wxUSE_PALETTE", - wxUSE_PCX = "wxUSE_PCX", - wxUSE_PLUGINS = "wxUSE_PLUGINS", - wxUSE_PNM = "wxUSE_PNM", - wxUSE_POPUPWIN = "wxUSE_POPUPWIN", - wxUSE_POSTSCRIPT = "wxUSE_POSTSCRIPT", - wxUSE_PRINTING_ARCHITECTURE = "wxUSE_PRINTING_ARCHITECTURE", - wxUSE_PRIVATE_FONTS = "wxUSE_PRIVATE_FONTS", - wxUSE_PROGRESSDLG = "wxUSE_PROGRESSDLG", - wxUSE_PROLOGIO = "wxUSE_PROLOGIO", - wxUSE_PROPSHEET = "wxUSE_PROPSHEET", - wxUSE_PROTOCOL = "wxUSE_PROTOCOL", - wxUSE_PROTOCOL_FILE = "wxUSE_PROTOCOL_FILE", - wxUSE_PROTOCOL_FTP = "wxUSE_PROTOCOL_FTP", - wxUSE_PROTOCOL_HTTP = "wxUSE_PROTOCOL_HTTP", - wxUSE_RADIOBOX = "wxUSE_RADIOBOX", - wxUSE_RADIOBTN = "wxUSE_RADIOBTN", - wxUSE_REGEX = "wxUSE_REGEX", - wxUSE_RESOURCES = "wxUSE_RESOURCES", - wxUSE_RICHEDIT = "wxUSE_RICHEDIT", - wxUSE_RICHTEXT = "wxUSE_RICHTEXT", - wxUSE_SASH = "wxUSE_SASH", - wxUSE_SCROLLBAR = "wxUSE_SCROLLBAR", - wxUSE_SLIDER = "wxUSE_SLIDER", - wxUSE_SNGLINST_CHECKER = "wxUSE_SNGLINST_CHECKER", - wxUSE_SOCKETS = "wxUSE_SOCKETS", - wxUSE_SOUND = "wxUSE_SOUND", - wxUSE_SPINBTN = "wxUSE_SPINBTN", - wxUSE_SPINCTRL = "wxUSE_SPINCTRL", - wxUSE_SPLASH = "wxUSE_SPLASH", - wxUSE_SPLINES = "wxUSE_SPLINES", - wxUSE_SPLITTER = "wxUSE_SPLITTER", - wxUSE_STARTUP_TIPS = "wxUSE_STARTUP_TIPS", - wxUSE_STATBMP = "wxUSE_STATBMP", - wxUSE_STATBOX = "wxUSE_STATBOX", - wxUSE_STATLINE = "wxUSE_STATLINE", - wxUSE_STATTEXT = "wxUSE_STATTEXT", - wxUSE_STATUSBAR = "wxUSE_STATUSBAR", - wxUSE_STD_IOSTREAM = "wxUSE_STD_IOSTREAM", - wxUSE_STL = "wxUSE_STL", - wxUSE_STOPWATCH = "wxUSE_STOPWATCH", - wxUSE_STREAMS = "wxUSE_STREAMS", - wxUSE_SYSTEM_OPTIONS = "wxUSE_SYSTEM_OPTIONS", - wxUSE_TABDIALOG = "wxUSE_TABDIALOG", - wxUSE_TAB_DIALOG = "wxUSE_TAB_DIALOG", - wxUSE_TEXTBUFFER = "wxUSE_TEXTBUFFER", - wxUSE_TEXTCTRL = "wxUSE_TEXTCTRL", - wxUSE_TEXTDLG = "wxUSE_TEXTDLG", - wxUSE_TEXTFILE = "wxUSE_TEXTFILE", - wxUSE_TGA = "wxUSE_TGA", - wxUSE_THREADS = "wxUSE_THREADS", - wxUSE_TIMEDATE = "wxUSE_TIMEDATE", - wxUSE_TIMEPICKCTRL = "wxUSE_TIMEPICKCTRL", - wxUSE_TIMER = "wxUSE_TIMER", - wxUSE_TIPWINDOW = "wxUSE_TIPWINDOW", - wxUSE_TOGGLEBTN = "wxUSE_TOGGLEBTN", - wxUSE_TOOLBAR = "wxUSE_TOOLBAR", - wxUSE_TOOLBAR_NATIVE = "wxUSE_TOOLBAR_NATIVE", - wxUSE_TOOLBOOK = "wxUSE_TOOLBOOK", - wxUSE_TOOLTIPS = "wxUSE_TOOLTIPS", - wxUSE_TREEBOOK = "wxUSE_TREEBOOK", - wxUSE_TREECTRL = "wxUSE_TREECTRL", - wxUSE_TREELAYOUT = "wxUSE_TREELAYOUT", - wxUSE_TREELISTCTRL = "wxUSE_TREELISTCTRL", - wxUSE_UNICODE = "wxUSE_UNICODE", - wxUSE_UNICODE_MSLU = "wxUSE_UNICODE_MSLU", - wxUSE_UNIX = "wxUSE_UNIX", - wxUSE_URL = "wxUSE_URL", - wxUSE_UXTHEME = "wxUSE_UXTHEME", - wxUSE_UXTHEME_AUTO = "wxUSE_UXTHEME_AUTO", - wxUSE_VALIDATORS = "wxUSE_VALIDATORS", - wxUSE_WAVE = "wxUSE_WAVE", - wxUSE_WCHAR_T = "wxUSE_WCHAR_T", - wxUSE_WCSRTOMBS = "wxUSE_WCSRTOMBS", - wxUSE_WIZARDDLG = "wxUSE_WIZARDDLG", - wxUSE_WXHTML_HELP = "wxUSE_WXHTML_HELP", - wxUSE_WX_RESOURCES = "wxUSE_WX_RESOURCES", - wxUSE_XML = "wxUSE_XML", - wxUSE_XPM = "wxUSE_XPM", - wxUSE_XPM_IN_MSW = "wxUSE_XPM_IN_MSW", - wxUSE_XRC = "wxUSE_XRC", - wxUSE_X_RESOURCES = "wxUSE_X_RESOURCES", - wxUSE_ZIPSTREAM = "wxUSE_ZIPSTREAM", - wxUSE_ZLIB = "wxUSE_ZLIB", -} - - --- --------------------------------------------------------------------------- --- Cache the dataTypes --- --------------------------------------------------------------------------- - for k, v in pairs(wx_typedefTable) do - typedefTable[k] = v - end - for k, v in pairs(wx_dataTypeTable) do - dataTypeTable[k] = v - end - for k, v in pairs(wx_preprocConditionTable) do - preprocConditionTable[k] = v - end diff --git a/wxLua/bindings/wxwidgets/wxadv_grid.i b/wxLua/bindings/wxwidgets/wxadv_grid.i index f723e097..568a0556 100644 --- a/wxLua/bindings/wxwidgets/wxadv_grid.i +++ b/wxLua/bindings/wxwidgets/wxadv_grid.i @@ -365,7 +365,7 @@ class wxGridTableBase : public wxObject //, public wxClientDataContainer // --------------------------------------------------------------------------- // wxLuaGridTableBase -#include "wxbind/include/wxadv_wxladv.h" +#include "wxadv_wxladv.h" class %delete wxLuaGridTableBase : public wxGridTableBase { diff --git a/wxLua/bindings/wxwidgets/wxadv_rules.lua b/wxLua/bindings/wxwidgets/wxadv_rules.lua index 9d18c011..63a71a88 100644 --- a/wxLua/bindings/wxwidgets/wxadv_rules.lua +++ b/wxLua/bindings/wxwidgets/wxadv_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxadv" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -33,7 +33,7 @@ output_cpp_impexpdatasymbol = "WXDLLIMPEXP_DATA_BINDWXADV" -- Set the name of the header file that will have the #includes from the -- bindings in it. This will be used as #include "hook_cpp_header_filename" in -- the C++ wrapper files, so it must include the proper #include path. -hook_cpp_header_filename = "wxbind/include/"..hook_cpp_namespace.."_bind.h" +hook_cpp_header_filename = "XXXwxbind/include/"..hook_cpp_namespace.."_bind.h" -- ---------------------------------------------------------------------------- -- Set the name of the main binding file that will have the glue code for the @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxaui_rules.lua b/wxLua/bindings/wxwidgets/wxaui_rules.lua index 2eff5143..da9c483a 100644 --- a/wxLua/bindings/wxwidgets/wxaui_rules.lua +++ b/wxLua/bindings/wxwidgets/wxaui_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxaui" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxbase_rules.lua b/wxLua/bindings/wxwidgets/wxbase_rules.lua index 6eeeb973..c015b0e3 100644 --- a/wxLua/bindings/wxwidgets/wxbase_rules.lua +++ b/wxLua/bindings/wxwidgets/wxbase_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxbase" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -79,7 +79,7 @@ hook_cpp_binding_post_includes = -- hook_cpp_header_filename. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = [[ -#include "wxbind/include/wxbinddefs.h" +#include "wxbinddefs.h" #include "wxluasetup.h" // ---------------------------------------------------------------------------- diff --git a/wxLua/bindings/wxwidgets/wxcore_controls.i b/wxLua/bindings/wxwidgets/wxcore_controls.i index 0cd0f563..cecd417a 100644 --- a/wxLua/bindings/wxwidgets/wxcore_controls.i +++ b/wxLua/bindings/wxwidgets/wxcore_controls.i @@ -1941,7 +1941,7 @@ class %delete wxTreeItemData : public wxClientData // No %delete since the wxTreeCtrl will delete it when set as the data for an item. // Only create a wxLuaTreeItemData if you're going to attach it to a wxTreeCtrl item to avoid memory leaks. -#include "wxbind/include/wxcore_wxlcore.h" +#include "wxcore_wxlcore.h" class %delete wxLuaTreeItemData : public wxTreeItemData { diff --git a/wxLua/bindings/wxwidgets/wxcore_print.i b/wxLua/bindings/wxwidgets/wxcore_print.i index f30b3c47..8cf49c9f 100644 --- a/wxLua/bindings/wxwidgets/wxcore_print.i +++ b/wxLua/bindings/wxwidgets/wxcore_print.i @@ -59,7 +59,7 @@ class wxPrintout : public wxObject #if wxLUA_USE_wxLuaPrintout #include "wxlua/wxlua_bind.h" // for wxLuaObject tag -#include "wxbind/include/wxcore_wxlcore.h" +#include "wxcore_wxlcore.h" class %delete wxLuaPrintout : public wxPrintout { diff --git a/wxLua/bindings/wxwidgets/wxcore_rules.lua b/wxLua/bindings/wxwidgets/wxcore_rules.lua index 539e4bf5..36a8b05e 100644 --- a/wxLua/bindings/wxwidgets/wxcore_rules.lua +++ b/wxLua/bindings/wxwidgets/wxcore_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxcore" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -82,9 +82,9 @@ hook_cpp_binding_post_includes = -- hook_cpp_header_filename. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxbase_bind.h\"\n" + "#include \"wxbase_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxgl_rules.lua b/wxLua/bindings/wxwidgets/wxgl_rules.lua index ccc5f73c..5e6c027c 100644 --- a/wxLua/bindings/wxwidgets/wxgl_rules.lua +++ b/wxLua/bindings/wxwidgets/wxgl_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxgl" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxhtml_html.i b/wxLua/bindings/wxwidgets/wxhtml_html.i index 6fa015d4..21a25ba1 100644 --- a/wxLua/bindings/wxwidgets/wxhtml_html.i +++ b/wxLua/bindings/wxwidgets/wxhtml_html.i @@ -350,7 +350,7 @@ class wxHtmlWindow : public wxScrolledWindow #if wxLUA_USE_wxLuaHtmlWindow -#include "wxbind/include/wxhtml_wxlhtml.h" +#include "wxhtml_wxlhtml.h" class wxLuaHtmlWindow : public wxHtmlWindow { diff --git a/wxLua/bindings/wxwidgets/wxhtml_rules.lua b/wxLua/bindings/wxwidgets/wxhtml_rules.lua index dcad91e7..d6ee8eaf 100644 --- a/wxLua/bindings/wxwidgets/wxhtml_rules.lua +++ b/wxLua/bindings/wxwidgets/wxhtml_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxhtml" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxmedia_rules.lua b/wxLua/bindings/wxwidgets/wxmedia_rules.lua index 62c17297..121c70b7 100644 --- a/wxLua/bindings/wxwidgets/wxmedia_rules.lua +++ b/wxLua/bindings/wxwidgets/wxmedia_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxmedia" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,10 +75,10 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n".. - "#include \"wxbind/include/wxnet_bind.h\"\n" + "#include \"wxcore_bind.h\"\n".. + "#include \"wxnet_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxnet_rules.lua b/wxLua/bindings/wxwidgets/wxnet_rules.lua index 3ce0131b..78b0d6d0 100644 --- a/wxLua/bindings/wxwidgets/wxnet_rules.lua +++ b/wxLua/bindings/wxwidgets/wxnet_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxnet" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxpropgrid_rules.lua b/wxLua/bindings/wxwidgets/wxpropgrid_rules.lua index 0faf7925..28d798ad 100644 --- a/wxLua/bindings/wxwidgets/wxpropgrid_rules.lua +++ b/wxLua/bindings/wxwidgets/wxpropgrid_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxpropgrid" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n".. + "#include \"wxcore_bind.h\"\n".. "#include \"wx/propgrid/property.h\"\n" -- ---------------------------------------------------------------------------- diff --git a/wxLua/bindings/wxwidgets/wxrichtext_rules.lua b/wxLua/bindings/wxwidgets/wxrichtext_rules.lua index 7092ab0c..d4dbcabf 100644 --- a/wxLua/bindings/wxwidgets/wxrichtext_rules.lua +++ b/wxLua/bindings/wxwidgets/wxrichtext_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxrichtext" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -88,10 +88,10 @@ hook_cpp_binding_post_includes = "#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3, -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n".. - "#include \"wxbind/include/wxxml_bind.h\"\n" + "#include \"wxcore_bind.h\"\n".. + "#include \"wxxml_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxstc_rules.lua b/wxLua/bindings/wxwidgets/wxstc_rules.lua index 7c7e7f0c..22287534 100644 --- a/wxLua/bindings/wxwidgets/wxstc_rules.lua +++ b/wxLua/bindings/wxwidgets/wxstc_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxstc" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxwebview_rules.lua b/wxLua/bindings/wxwidgets/wxwebview_rules.lua index dbcc0e21..152ffcbb 100644 --- a/wxLua/bindings/wxwidgets/wxwebview_rules.lua +++ b/wxLua/bindings/wxwidgets/wxwebview_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxwebview" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n".. + "#include \"wxcore_bind.h\"\n".. "#if !defined(wxUSE_WEBVIEW)\n".. " #define wxUSE_WEBVIEW 0\n".. "#endif\n" diff --git a/wxLua/bindings/wxwidgets/wxxml_rules.lua b/wxLua/bindings/wxwidgets/wxxml_rules.lua index 6867bee3..50bd1631 100644 --- a/wxLua/bindings/wxwidgets/wxxml_rules.lua +++ b/wxLua/bindings/wxwidgets/wxxml_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxxml" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxbase_bind.h\"\n" + "#include \"wxbase_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/bindings/wxwidgets/wxxrc_rules.lua b/wxLua/bindings/wxwidgets/wxxrc_rules.lua index 59c5f7c2..9f5598ca 100644 --- a/wxLua/bindings/wxwidgets/wxxrc_rules.lua +++ b/wxLua/bindings/wxwidgets/wxxrc_rules.lua @@ -19,7 +19,7 @@ hook_cpp_namespace = "wxxrc" -- ============================================================================ -- Set the directory to output the bindings to, both C++ header and source files -output_cpp_header_filepath = wxlua_dir.."modules/wxbind/include" +output_cpp_header_filepath = wxlua_dir.."include/wxbind" output_cpp_filepath = wxlua_dir.."modules/wxbind/src" -- ============================================================================ @@ -75,9 +75,9 @@ hook_cpp_binding_post_includes = "" -- Add additional include information or C++ code for the binding header file. -- This code will be place directly after any #includes at the top of the file hook_cpp_binding_header_includes = - "#include \"wxbind/include/wxbinddefs.h\"\n".. + "#include \"wxbinddefs.h\"\n".. "#include \"wxluasetup.h\"\n".. - "#include \"wxbind/include/wxcore_bind.h\"\n" + "#include \"wxcore_bind.h\"\n" -- ---------------------------------------------------------------------------- -- Set any #includes or other C++ code to be placed verbatim at the top of diff --git a/wxLua/build/Makefile_wx-config.in b/wxLua/build/Makefile_wx-config.in deleted file mode 100644 index 86351c31..00000000 --- a/wxLua/build/Makefile_wx-config.in +++ /dev/null @@ -1,180 +0,0 @@ -# File: Makefile_wx-config.in -# Author: John Labenski -# Created: 2002 -# Updated: -# Copyright: (c) 2002 John Labenski. All rights reserved. -# -# Base Makefile for wxLua using wx-config to get settings - -# ---------------------------------------------------------------------------- -# Your Makefile MUST define this correctly - -#WXLUA_DIR = ../../.. - -WXLUA_DIR_ABS := $(realpath $(WXLUA_DIR)) - -# --- wxLua parameters ------------------------------------------------------- - -WXLUA_LIBVERSION_CURRENT = 2 -WXLUA_LIBVERSION_REVISION = 8 -WXLUA_LIBVERSION_AGE = 12 - -# We can use the wxWidgets lib dir to put our libs into (it must be writeable) -#WXLUA_LIBDIR = $(WXLIB_DIR) -# Put the libs into the wxLua/lib directory -WXLUA_LIBDIR = $(WXLUA_DIR_ABS)/lib/ -WXLUA_TARGET_LIBDIR = $(WXLUA_LIBDIR) - -# Path to the "wxluasetup.h" file that specifies what to include in the bindings -WXLUA_WXLUASETUP_DIR = $(WXLUA_DIR)/modules/wxbind/setup - -# ---------------------------------------------------------------------------- -# Path to the lua executable -LUA = $(WXLUA_DIR)/bin/lua - -# If we're using cygwin, lua might be somewhere else, try some common places -# note some other variables cygwin sets don't seem to be exported -ifeq (Cygwin, $(findstring Cygwin, $(XTERM_VERSION))) - LUA=$(WXLUA_DIR)/bin/vc_lib/lua.exe -else - LUA=$(WXLUA_DIR)/bin/lua -endif - -# Lua PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris - -LUA_PLAT=linux - -ifeq (Apple, $(findstring Apple, $(shell gcc --version))) - LUA_PLAT=macosx -endif - - -# --- wxWidgets parameters from wx-config ------------------------------------ - -WXLIBS_NAMES = stc,gl,media,aui,xrc,qa,html,adv,core,xml,net,base - -# Only call these shell functions once, we chain Makefiles together that all -# include this Makefile and it slows the build down. -# An app build that doesn't compile anything went from 6 to 1 sec after exporting these. -ifndef WXPREFIX - -export WXCONFIG := wx-config -export WXPREFIX := $(shell $(WXCONFIG) --prefix) -export WXEXECDIR := $(shell $(WXCONFIG) --exec-prefix) -export WXBASENAME := $(shell $(WXCONFIG) --basename) -export WXVERSION := $(shell $(WXCONFIG) --version) -export WXRELEASE := $(shell $(WXCONFIG) --release) -export WXCXXFLAGS := $(shell $(WXCONFIG) --cxxflags) -export WXLDLIBS := $(shell $(WXCONFIG) --libs $(WXLIBS_NAMES)) -export WXCXX := $(shell $(WXCONFIG) --cxx) - -endif - -WXLIB_DIR := $(WXEXECDIR)/lib - -WXSTC_LIB := $(WXBASENAME)_stc-$(WXRELEASE) - -# ---------------------------------------------------------------------------- -# The wxSTEditor library compiled from wxCode/components/wxstedit - -WXSTEDIT_DIR := $(WXLUA_DIR)/modules/wxstedit -WXSTEDIT_LIB := $(WXBASENAME)_stedit-$(WXRELEASE) -WXSTEDIT_LIB := $(patsubst wx_%,wxcode_%,$(WXSTEDIT_LIB)) - -# ---------------------------------------------------------------------------- - -LUA_LIBS := $(WXLUA_DIR)/lib/liblua.a -WXLUA_LIB := $(WXBASENAME)_wxlua-$(WXRELEASE) -WXLUADEBUG_LIB := $(WXBASENAME)_wxluadebug-$(WXRELEASE) -WXLUADEBUGGER_LIB := $(WXBASENAME)_wxluadebugger-$(WXRELEASE) - -WXLUABINDADV_LIB := $(WXBASENAME)_wxbindadv-$(WXRELEASE) -WXLUABINDAUI_LIB := $(WXBASENAME)_wxbindaui-$(WXRELEASE) -WXLUABINDBASE_LIB := $(WXBASENAME)_wxbindbase-$(WXRELEASE) -WXLUABINDCORE_LIB := $(WXBASENAME)_wxbindcore-$(WXRELEASE) -WXLUABINDGL_LIB := $(WXBASENAME)_wxbindgl-$(WXRELEASE) -WXLUABINDHTML_LIB := $(WXBASENAME)_wxbindhtml-$(WXRELEASE) -WXLUABINDMEDIA_LIB := $(WXBASENAME)_wxbindmedia-$(WXRELEASE) -WXLUABINDNET_LIB := $(WXBASENAME)_wxbindnet-$(WXRELEASE) -WXLUABINDRICHTEXT_LIB := $(WXBASENAME)_wxbindrichtext-$(WXRELEASE) -WXLUABINDSTC_LIB := $(WXBASENAME)_wxbindstc-$(WXRELEASE) -WXLUABINDXML_LIB := $(WXBASENAME)_wxbindxml-$(WXRELEASE) -WXLUABINDXRC_LIB := $(WXBASENAME)_wxbindxrc-$(WXRELEASE) - -WXLUA_LIB := $(patsubst wx_%,wxlua_%,$(WXLUA_LIB)) -WXLUADEBUG_LIB := $(patsubst wx_%,wxlua_%,$(WXLUADEBUG_LIB)) -WXLUADEBUGGER_LIB := $(patsubst wx_%,wxlua_%,$(WXLUADEBUGGER_LIB)) - -WXLUABIND_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABIND_LIB)) -WXLUABINDADV_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDADV_LIB)) -WXLUABINDAUI_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDAUI_LIB)) -WXLUABINDBASE_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDBASE_LIB)) -WXLUABINDCORE_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDCORE_LIB)) -WXLUABINDGL_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDGL_LIB)) -WXLUABINDHTML_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDHTML_LIB)) -WXLUABINDMEDIA_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDMEDIA_LIB)) -WXLUABINDNET_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDNET_LIB)) -WXLUABINDRICHTEXT_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDRICHTEXT_LIB)) -WXLUABINDSTC_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDSTC_LIB)) -WXLUABINDXML_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDXML_LIB)) -WXLUABINDXRC_LIB := $(patsubst wx_%,wxlua_%,$(WXLUABINDXRC_LIB)) - - -WXLUABINDALL_LIBS := -l$(WXLUABINDXRC_LIB) -l$(WXLUABINDXML_LIB) -l$(WXLUABINDSTC_LIB) -l$(WXLUABINDRICHTEXT_LIB) -l$(WXLUABINDNET_LIB) -l$(WXLUABINDMEDIA_LIB) -l$(WXLUABINDHTML_LIB) -l$(WXLUABINDGL_LIB) -l$(WXLUABINDCORE_LIB) -l$(WXLUABINDBASE_LIB) -l$(WXLUABINDAUI_LIB) -l$(WXLUABINDADV_LIB) -WXLUABINDSTD_LIBS := -l$(WXLUABINDNET_LIB) -l$(WXLUABINDCORE_LIB) -l$(WXLUABINDBASE_LIB) -l$(WXLUABINDADV_LIB) - -# ---------------------------------------------------------------------------- - -CXXFLAGS := $(WXCXXFLAGS) -MMD -g -Wall -fPIC -CFLAGS := -g -Wall -fPIC -LDLIBS := $(WXLDLIBS) -ldl -Wl,--rpath -Wl,$(WXLUA_DIR_ABS)/lib -CXX := $(WXCXX) - -RM = rm -f -AR = ar -AROPTIONS = rcu -RANLIB = ranlib -LN_S = ln -s - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIB_STATIC = $(WXLUA_TARGET_LIBDIR)/$(WXLUA_TARGET_LIBNAME).a -WXLUA_TARGET_LIB_SHARED = $(WXLUA_TARGET_LIBDIR)/$(WXLUA_TARGET_LIBNAME).so.$(WXLUA_LIBVERSION_CURRENT).$(WXLUA_LIBVERSION_REVISION).$(WXLUA_LIBVERSION_AGE) -WXLUA_TARGET_LIB_LINK1 = $(WXLUA_TARGET_LIBNAME).so.$(WXLUA_LIBVERSION_CURRENT) -WXLUA_TARGET_LIB_LINK2 = $(WXLUA_TARGET_LIBNAME).so - -# ---------------------------------------------------------------------------- - -GCC_PROFILE := #-pg -APPEXTRADEFS := $(GCC_PROFILE) -I$(WXLUA_DIR) -I$(WXLUA_DIR)/modules -I$(WXLUA_DIR)/modules/lua/include -I$(WXLUA_WXLUASETUP_DIR) -I$(WXSTEDIT_DIR)/include -I$(WXPREFIX)/contrib/include -DLUACALL= - -# This will build a shared wxLua app, dynamicly linked to .so libs -APPEXTRALIBS := $(GCC_PROFILE) -L$(WXLUA_LIBDIR) $(WXLUABINDALL_LIBS) -l$(WXLUA_LIB) -l$(WXLUADEBUG_LIB) -l$(WXLUADEBUGGER_LIB) $(LUA_LIBS) - -# This will build a static wxLua app, staticly linked to .a libs -#APPEXTRALIBS := -L$(WXLIB_DIR) $(WXLIB_DIR)/lib$(WXLUA_LIB).a $(WXLIB_DIR)/lib$(STC_LIB).a $(WXLIB_DIR)/lib$(WXXRC_LIB).a $(LUA_LIBS) - - -# for lib targets, these are extra linker args -LIBEXTRALIBS := $(GCC_PROFILE) - -# ---------------------------------------------------------------------------- -# These are targets that we can build, we have to declare them before we use them - -wxLuaALL_TARGETS = \ - Lua \ - wxLuaLib \ - wxLuaDebugLib \ - wxLuaDebuggerLib \ - wxLuaBindAdvLib \ - wxLuaBindAUILib \ - wxLuaBindBaseLib \ - wxLuaBindCoreLib \ - wxLuaBindGLLib \ - wxLuaBindHTMLLib \ - wxLuaBindMediaLib \ - wxLuaBindNetLib \ - wxLuaBindRichTextLib \ - wxLuaBindSTCLib \ - wxLuaBindXMLLib \ - wxLuaBindXRCLib diff --git a/wxLua/build/Makefile_wx-config_targets.in b/wxLua/build/Makefile_wx-config_targets.in deleted file mode 100644 index 851230ca..00000000 --- a/wxLua/build/Makefile_wx-config_targets.in +++ /dev/null @@ -1,100 +0,0 @@ -# File: Makefile_wx-config_targets.in -# Author: John Labenski -# Created: 2002 -# Updated: -# Copyright: (c) 2002 John Labenski. All rights reserved. -# -# Base Makefile for wxLua using wx-config to get settings - -# ---------------------------------------------------------------------------- -# Some targets that we may like to build - -Lua: - @(cd $(WXLUA_DIR)/modules/lua-5.1 && $(MAKE) $(LUA_PLAT)) - -wxLuaLib: - @(cd $(WXLUA_DIR)/modules/wxlua && $(MAKE)) - -wxLuaDebugLib: - @(cd $(WXLUA_DIR)/modules/wxlua/debug && $(MAKE)) - -wxLuaDebuggerLib: - @(cd $(WXLUA_DIR)/modules/wxlua/debugger && $(MAKE)) - -LuaModule: - @(cd $(WXLUA_DIR)/modules/luamodule && $(MAKE)) - -# ---------------------------------------------------------------------------- - -wxLuaBindAdvLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxadv) - -wxLuaBindAUILib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxaui) - -wxLuaBindBaseLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxbase) - -wxLuaBindCoreLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxcore) - -wxLuaBindGLLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxgl) - -wxLuaBindHTMLLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxhtml) - -wxLuaBindMediaLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxmedia) - -wxLuaBindNetLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxnet) - -wxLuaBindRichTextLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxrichtext) - -wxLuaBindSTCLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxstc) - -wxLuaBindXMLLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxxml) - -wxLuaBindXRCLib: - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile_wxxrc) - -# ---------------------------------------------------------------------------- - -wxStEdit: - @(cd $(WXSTEDIT_DIR)/src && $(MAKE)) - -# ---------------------------------------------------------------------------- -# These are the targets when building the libs - -$(WXLUA_TARGET_LIB_STATIC) : $(OBJECTS) - @$(RM) $@ - $(AR) $(AROPTIONS) $@ $(OBJECTS) - $(RANLIB) $@ - -$(WXLUA_TARGET_LIB_SHARED): $(OBJECTS) - $(CXX) -shared -o $@ $(OBJECTS) $(LIBEXTRALIBS) - cd $(WXLUA_TARGET_LIBDIR) \ - && $(RM) $(WXLUA_TARGET_LIB_LINK1) $(WXLUA_TARGET_LIB_LINK2) \ - && $(LN_S) $(WXLUA_TARGET_LIB_SHARED) $(WXLUA_TARGET_LIB_LINK1) \ - && $(LN_S) $(WXLUA_TARGET_LIB_SHARED) $(WXLUA_TARGET_LIB_LINK2) - -# ---------------------------------------------------------------------------- - -cleanlib: - rm -f core $(OBJECTS) $(DEPFILES) \ - $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) \ - $(WXLUA_TARGET_LIBDIR)/$(WXLUA_TARGET_LIB_LINK1) \ - $(WXLUA_TARGET_LIBDIR)/$(WXLUA_TARGET_LIB_LINK2) - -cleanall: - @(cd $(WXLUA_DIR)/modules/lua-5.1 && $(MAKE) clean) - @(cd $(WXLUA_DIR)/modules/wxlua && $(MAKE) clean) - @(cd $(WXLUA_DIR)/modules/wxlua/debug && $(MAKE) clean) - @(cd $(WXLUA_DIR)/modules/wxlua/debugger && $(MAKE) clean) - @(cd $(WXLUA_DIR)/modules/luamodule && $(MAKE) clean) - - @(cd $(WXLUA_DIR)/modules/wxbind/src && $(MAKE) -f Makefile cleanwxbind) diff --git a/wxLua/modules/wxbind/include/wxadv_wxladv.h b/wxLua/include/wxbind/wxadv_wxladv.h similarity index 97% rename from wxLua/modules/wxbind/include/wxadv_wxladv.h rename to wxLua/include/wxbind/wxadv_wxladv.h index 2d62a73d..585f54fa 100644 --- a/wxLua/modules/wxbind/include/wxadv_wxladv.h +++ b/wxLua/include/wxbind/wxadv_wxladv.h @@ -9,12 +9,12 @@ #ifndef WX_LUA_WXLADV_H #define WX_LUA_WXLADV_H -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" +#include +#include "wxbinddefs.h" #if wxUSE_GRID && wxLUA_USE_wxGrid -#include "wx/grid.h" +#include class WXDLLIMPEXP_BINDWXADV wxLuaGridTableBase : public wxGridTableBase { diff --git a/wxLua/modules/wxbind/include/wxbinddefs.h b/wxLua/include/wxbind/wxbinddefs.h similarity index 100% rename from wxLua/modules/wxbind/include/wxbinddefs.h rename to wxLua/include/wxbind/wxbinddefs.h diff --git a/wxLua/modules/wxbind/include/wxcore_wxlcore.h b/wxLua/include/wxbind/wxcore_wxlcore.h similarity index 99% rename from wxLua/modules/wxbind/include/wxcore_wxlcore.h rename to wxLua/include/wxbind/wxcore_wxlcore.h index 038c92ea..a30590a5 100644 --- a/wxLua/modules/wxbind/include/wxcore_wxlcore.h +++ b/wxLua/include/wxbind/wxcore_wxlcore.h @@ -9,8 +9,8 @@ #ifndef WX_LUA_WXLCORE_H #define WX_LUA_WXLCORE_H -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" +#include +#include "wxbinddefs.h" class WXDLLIMPEXP_FWD_WXLUA wxLuaObject; diff --git a/wxLua/modules/wxbind/include/wxhtml_wxlhtml.h b/wxLua/include/wxbind/wxhtml_wxlhtml.h similarity index 96% rename from wxLua/modules/wxbind/include/wxhtml_wxlhtml.h rename to wxLua/include/wxbind/wxhtml_wxlhtml.h index 9787be2b..30147ce2 100644 --- a/wxLua/modules/wxbind/include/wxhtml_wxlhtml.h +++ b/wxLua/include/wxbind/wxhtml_wxlhtml.h @@ -9,11 +9,11 @@ #ifndef WX_LUA_WXLHTML_H #define WX_LUA_WXLHTML_H -#include "wx/html/htmlwin.h" -#include "wx/html/htmlcell.h" +#include +#include -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" +#include +#include #if wxLUA_USE_wxHTML diff --git a/wxLua/modules/wxlua/atomic.h b/wxLua/include/wxlua/atomic.h similarity index 100% rename from wxLua/modules/wxlua/atomic.h rename to wxLua/include/wxlua/atomic.h diff --git a/wxLua/modules/wxlua/sharedptr.h b/wxLua/include/wxlua/sharedptr.h similarity index 99% rename from wxLua/modules/wxlua/sharedptr.h rename to wxLua/include/wxlua/sharedptr.h index 5dbf4b2c..15733347 100644 --- a/wxLua/modules/wxlua/sharedptr.h +++ b/wxLua/include/wxlua/sharedptr.h @@ -19,7 +19,7 @@ #define _WXLUA_SHAREDPTR_H_ #include -#include "wxlua/atomic.h" +#include "atomic.h" // ---------------------------------------------------------------------------- // wxLuaSharedPtr: A smart pointer with non-intrusive reference counting. diff --git a/wxLua/modules/wxlua/wxlbind.h b/wxLua/include/wxlua/wxlbind.h similarity index 99% rename from wxLua/modules/wxlua/wxlbind.h rename to wxLua/include/wxlua/wxlbind.h index e6c9dc65..e749a768 100644 --- a/wxLua/modules/wxlua/wxlbind.h +++ b/wxLua/include/wxlua/wxlbind.h @@ -10,7 +10,7 @@ #ifndef _WXLBIND_H_ #define _WXLBIND_H_ -#include "wxlua/wxldefs.h" +#include "wxldefs.h" #include diff --git a/wxLua/modules/wxlua/wxlcallb.h b/wxLua/include/wxlua/wxlcallb.h similarity index 99% rename from wxLua/modules/wxlua/wxlcallb.h rename to wxLua/include/wxlua/wxlcallb.h index eeef8f04..13d1242c 100644 --- a/wxLua/modules/wxlua/wxlcallb.h +++ b/wxLua/include/wxlua/wxlcallb.h @@ -10,8 +10,8 @@ #ifndef _WXLCALLB_H_ #define _WXLCALLB_H_ -#include "wxlua/wxldefs.h" -#include "wxlua/wxlstate.h" +#include "wxldefs.h" +#include "wxlstate.h" #if wxCHECK_VERSION(2,9,0) diff --git a/wxLua/modules/wxlua/wxlconsole.h b/wxLua/include/wxlua/wxlconsole.h similarity index 99% rename from wxLua/modules/wxlua/wxlconsole.h rename to wxLua/include/wxlua/wxlconsole.h index bc4ce0f5..041b92a1 100644 --- a/wxLua/modules/wxlua/wxlconsole.h +++ b/wxLua/include/wxlua/wxlconsole.h @@ -13,7 +13,7 @@ #include #include -#include "wxlua/wxlua.h" +#include "wxlua.h" class WXDLLIMPEXP_FWD_CORE wxSplitterWindow; class WXDLLIMPEXP_FWD_CORE wxTextCtrl; diff --git a/wxLua/modules/wxlua/wxldefs.h b/wxLua/include/wxlua/wxldefs.h similarity index 100% rename from wxLua/modules/wxlua/wxldefs.h rename to wxLua/include/wxlua/wxldefs.h diff --git a/wxLua/modules/wxlua/wxllua.h b/wxLua/include/wxlua/wxllua.h similarity index 99% rename from wxLua/modules/wxlua/wxllua.h rename to wxLua/include/wxlua/wxllua.h index c4e41867..fc9b073f 100644 --- a/wxLua/modules/wxlua/wxllua.h +++ b/wxLua/include/wxlua/wxllua.h @@ -10,10 +10,10 @@ #ifndef _WXLLUA_H_ #define _WXLLUA_H_ -#include "wxlua/wxldefs.h" -#include "wxlua/wxlbind.h" -#include "wxlua/wxlobject.h" -#include "wxlua/sharedptr.h" +#include "wxldefs.h" +#include "wxlbind.h" +#include "wxlobject.h" +#include "sharedptr.h" #if wxUSE_GEOMETRY #include diff --git a/wxLua/modules/wxlua/wxlobject.h b/wxLua/include/wxlua/wxlobject.h similarity index 99% rename from wxLua/modules/wxlua/wxlobject.h rename to wxLua/include/wxlua/wxlobject.h index 35fdbd99..e60ab47f 100644 --- a/wxLua/modules/wxlua/wxlobject.h +++ b/wxLua/include/wxlua/wxlobject.h @@ -10,7 +10,7 @@ #ifndef _WXLOBJECT_H_ #define _WXLOBJECT_H_ -#include "wxlua/wxldefs.h" +#include "wxldefs.h" #ifdef GetObject #undef GetObject // MSVC defines this diff --git a/wxLua/modules/wxlua/wxlstate.h b/wxLua/include/wxlua/wxlstate.h similarity index 99% rename from wxLua/modules/wxlua/wxlstate.h rename to wxLua/include/wxlua/wxlstate.h index eff8a514..6cc0533d 100644 --- a/wxLua/modules/wxlua/wxlstate.h +++ b/wxLua/include/wxlua/wxlstate.h @@ -10,11 +10,11 @@ #ifndef _WXLSTATE_H_ #define _WXLSTATE_H_ -#include "wxlua/wxldefs.h" -#include "wxlua/wxllua.h" -#include "wxlua/wxlbind.h" -#include "wxlua/wxlobject.h" -#include "wxlua/sharedptr.h" +#include "wxldefs.h" +#include "wxllua.h" +#include "wxlbind.h" +#include "wxlobject.h" +#include "sharedptr.h" #include #include diff --git a/wxLua/modules/wxlua/wxlua.h b/wxLua/include/wxlua/wxlua.h similarity index 89% rename from wxLua/modules/wxlua/wxlua.h rename to wxLua/include/wxlua/wxlua.h index 7c4b77b6..0173fd49 100644 --- a/wxLua/modules/wxlua/wxlua.h +++ b/wxLua/include/wxlua/wxlua.h @@ -11,8 +11,8 @@ #define WX_LUA_H -#include "wxlua/wxldefs.h" -#include "wxlua/wxlstate.h" +#include "wxldefs.h" +#include "wxlstate.h" #endif // WX_LUA_H diff --git a/wxLua/modules/wxbind/setup/wxluasetup.h b/wxLua/include/wxlua/wxluasetup-defaults.h similarity index 97% rename from wxLua/modules/wxbind/setup/wxluasetup.h rename to wxLua/include/wxlua/wxluasetup-defaults.h index 547ea0e6..dd80676f 100644 --- a/wxLua/modules/wxbind/setup/wxluasetup.h +++ b/wxLua/include/wxlua/wxluasetup-defaults.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: wxluasetup.h -// Purpose: Control what wxLua bindings for wxWidgets are built +// Purpose: Control what wxLua bindings for wxWidgets are built (DEFAULTS) // Author: John Labenski // Created: 1/10/2008 // Copyright: (c) 2008 John Labenski @@ -8,17 +8,11 @@ ///////////////////////////////////////////////////////////////////////////// -#ifndef __WXLUA_SETUP__ -#define __WXLUA_SETUP__ - +#ifndef __WXLUA_SETUP_DEFAULTS__ +#define __WXLUA_SETUP_DEFAULTS__ // Enable or disable single or small groups of classes, see bindings/*.i -// This file is separate from the wxbind includes to allow you to modify it -// or put a -Iother/path/to/wxluasetup/ to allow your own wxluasetup file -// to be included since wxLua only includes it as "#include "wxluasetup.h" -// without any path. - #ifndef wxLUA_USE_Geometry #define wxLUA_USE_Geometry 1 #endif @@ -648,4 +642,4 @@ #endif -#endif // __WXLUA_SETUP__ +#endif // __WXLUA_SETUP_DEFAULTS__ diff --git a/wxLua/modules/wxlua/wxlversion.h b/wxLua/include/wxlua/wxlversion.h similarity index 100% rename from wxLua/modules/wxlua/wxlversion.h rename to wxLua/include/wxlua/wxlversion.h diff --git a/wxLua/include/wxluasetup.h b/wxLua/include/wxluasetup.h new file mode 100644 index 00000000..6f76c2a4 --- /dev/null +++ b/wxLua/include/wxluasetup.h @@ -0,0 +1,12 @@ +///////////////////////////////////////////////////////////////////////////// +// Name: wxluasetup.h +// Purpose: Control what wxLua bindings for wxWidgets are built +// Author: John Labenski +// Created: 1/10/2008 +// Copyright: (c) 2008 John Labenski +// Licence: wxWidgets licence +///////////////////////////////////////////////////////////////////////////// + +// Enable or disable single or small groups of classes, see bindings/*.i + +#include diff --git a/wxLua/lib/readme.txt b/wxLua/lib/readme.txt deleted file mode 100644 index 0900968b..00000000 --- a/wxLua/lib/readme.txt +++ /dev/null @@ -1 +0,0 @@ -The output libraries are created here. diff --git a/wxLua/modules/CMakeLists.txt b/wxLua/modules/CMakeLists.txt index ab1c5581..cac783c9 100644 --- a/wxLua/modules/CMakeLists.txt +++ b/wxLua/modules/CMakeLists.txt @@ -307,18 +307,19 @@ endif() ADD_LIBRARY_FULL( wxLuaLib HEADERS - ${wxLua_ROOT_DIR}/modules/wxlua/atomic.h - ${wxLua_ROOT_DIR}/modules/wxlua/sharedptr.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlbind.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlcallb.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlconsole.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxldefs.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxllua.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlobject.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlstate.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlua.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlua_bind.h - ${wxLua_ROOT_DIR}/modules/wxlua/wxlversion.h + ${wxLua_ROOT_DIR}/include/wxlua/atomic.h + ${wxLua_ROOT_DIR}/include/wxlua/sharedptr.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlbind.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlcallb.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlconsole.h + ${wxLua_ROOT_DIR}/include/wxlua/wxldefs.h + ${wxLua_ROOT_DIR}/include/wxlua/wxllua.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlobject.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlstate.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlua.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlua_bind.h + ${wxLua_ROOT_DIR}/include/wxlua/wxlversion.h + ${wxLua_ROOT_DIR}/include/wxlua/wxluasetup-defaults.h SOURCES ${wxLua_ROOT_DIR}/modules/wxlua/bit.c ${wxLua_ROOT_DIR}/modules/wxlua/dummy.cpp @@ -513,7 +514,22 @@ else() # NOT wxLuaBind_SEPARATE_LIBS ADD_LIBRARY_FULL( wxLuaBindLib ALLOW_MISSING_FILES HEADERS - ${wxLua_ROOT_DIR}/modules/wxbind/include/*.h + ${wxLua_ROOT_DIR}/include/wxbind/*.h + + ${wxLua_ROOT_DIR}/include/wxbind/wxbase_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxcore_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxadv_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxaui_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxgl_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxhtml_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxmedia_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxnet_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxpropgrid_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxrichtext_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxstc_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxwebview_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxxml_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxxrc_bind.h SOURCES #${wxLua_ROOT_DIR}/modules/wxbind/src/*.cpp ${wxLuaBindLib_SOURCES} # set in root CMakeLists.txt when parsing wxLuaBind_COMPONENTS @@ -561,6 +577,25 @@ endif() ADD_LIBRARY_FULL( wxLuaModule SHARED # ALLOW_MISSING_FILES HEADERS ${wxLua_ROOT_DIR}/modules/luamodule/luamoduledefs.h + + # Not part of wxLuaModule, but this is the only way I could find to add + # a dependency to ensure the headers are generated before the sources + # in this library are compiled... apparently? + ${wxLua_ROOT_DIR}/include/wxbind/wxbase_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxcore_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxadv_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxaui_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxgl_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxhtml_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxmedia_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxnet_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxpropgrid_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxrichtext_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxstc_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxwebview_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxxml_bind.h + ${wxLua_ROOT_DIR}/include/wxbind/wxxrc_bind.h + SOURCES ${wxLua_ROOT_DIR}/modules/luamodule/luamodule.cpp ${wxLua_ROOT_DIR}/modules/luamodule/luamodule.rc diff --git a/wxLua/modules/lua-5.1/src/Makefile b/wxLua/modules/lua-5.1/src/Makefile index e5ceb4f9..e6a79760 100644 --- a/wxLua/modules/lua-5.1/src/Makefile +++ b/wxLua/modules/lua-5.1/src/Makefile @@ -22,17 +22,17 @@ MYLIBS= PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris -LUA_A= ../../../lib/liblua.a +LUA_A= liblua.a CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \ lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \ lundump.o lvm.o lzio.o LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o \ lstrlib.o loadlib.o linit.o -LUA_T= ../../../bin/lua +LUA_T= lua LUA_O= lua.o -LUAC_T= ../../../bin/luac +LUAC_T= luac LUAC_O= luac.o print.o ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O) diff --git a/wxLua/modules/luamodule/CMakeLists.txt b/wxLua/modules/luamodule/CMakeLists.txt index c2d39e6d..92235181 100644 --- a/wxLua/modules/luamodule/CMakeLists.txt +++ b/wxLua/modules/luamodule/CMakeLists.txt @@ -1,3 +1,5 @@ project( wxLua_Modules_LuaModule ) +wxLua_Binding_TARGETS() + wxLua_Modules_LuaModule_TARGETS() diff --git a/wxLua/modules/luamodule/Makefile b/wxLua/modules/luamodule/Makefile deleted file mode 100644 index 67180246..00000000 --- a/wxLua/modules/luamodule/Makefile +++ /dev/null @@ -1,41 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2004 -# Updated: -# Copyright: (c) 2002. J Winwood -# -# Makefile for wxLua standalone sample using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -#OBJECTS=luamodule.o -#DEPFILES=$(OBJECTS:.o=.d) - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(wxLuaALL_TARGETS) wx.so - -wx.so: luamodule.cpp $(OBJECTS) $(LUA_LIBS) $(wxLuaALL_TARGETS) - $(CXX) $(CXXFLAGS) $(APPEXTRADEFS) -g -O -shared -o wx.so -fPIC \ - $(LDLIBS) $(APPEXTRALIBS) \ - luamodule.cpp - -clean: - rm -f $(OBJECTS) $(DEPFILES) $(PROGRAM) core - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/luamodule/luamodule.cpp b/wxLua/modules/luamodule/luamodule.cpp index e6f82425..1ef6ffd1 100644 --- a/wxLua/modules/luamodule/luamodule.cpp +++ b/wxLua/modules/luamodule/luamodule.cpp @@ -38,7 +38,10 @@ extern "C" { // force C linkage w/o name mangling - WXDLLIMPEXP_LUAMODULE int luaopen_wx(lua_State *L); +#ifdef __WXMSW__ + __declspec(dllexport) +#endif + int luaopen_wx(lua_State *L); #ifdef __WXMSW__ BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID ); @@ -49,7 +52,7 @@ static wxLuaState s_wxlState; // This is our wxLuaState for the module // Declare the binding initialization functions as extern so we don't have to // #include the binding header for simplicity. -#include "wxbind/include/wxbinddefs.h" +#include WXLUA_DECLARE_BIND_ALL // ---------------------------------------------------------------------------- diff --git a/wxLua/modules/wxbind/CMakeLists.txt b/wxLua/modules/wxbind/CMakeLists.txt index a8b23a8a..5b00c5e6 100644 --- a/wxLua/modules/wxbind/CMakeLists.txt +++ b/wxLua/modules/wxbind/CMakeLists.txt @@ -1,3 +1,4 @@ project( wxLua_Modules_wxBind ) +wxLua_Binding_TARGETS() wxLua_Modules_wxBind_TARGETS() diff --git a/wxLua/modules/wxbind/include/wxadv_bind.h b/wxLua/modules/wxbind/include/wxadv_bind.h deleted file mode 100644 index b49e0b2a..00000000 --- a/wxLua/modules/wxbind/include/wxadv_bind.h +++ /dev/null @@ -1,252 +0,0 @@ -// --------------------------------------------------------------------------- -// wxadv.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxadv_H__ -#define __HOOK_WXLUA_wxadv_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXADV wxLuaBinding_wxadv : public wxLuaBinding -{ -public: - wxLuaBinding_wxadv(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxadv) -}; - - -// initialize wxLuaBinding_wxadv for all wxLuaStates -extern WXDLLIMPEXP_BINDWXADV wxLuaBinding* wxLuaBinding_wxadv_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - #include "wx/wave.h" -#endif // (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - -#if (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - #include "wx/sound.h" -#endif // (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - -#include "wx/dataview.h" -#include "wx/dvrenderers.h" - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - #include "wx/animate.h" -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - #include "wx/aboutdlg.h" -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - #include "wx/hyperlink.h" -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - -#if wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - #include "wx/bmpcbox.h" -#endif // wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - #include "wx/calctrl.h" - #include "wx/dateevt.h" - #include "wx/event.h" -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxLUA_USE_wxGrid && wxUSE_GRID - #include "wx/dynarray.h" - #include "wx/generic/gridctrl.h" - #include "wx/grid.h" - #include "wxbind/include/wxadv_wxladv.h" -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - #include "wx/event.h" - #include "wx/joystick.h" -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - #include "wx/laywin.h" - #include "wx/sashwin.h" -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxSplashScreen - #include "wx/splash.h" -#endif // wxLUA_USE_wxSplashScreen - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - #include "wx/taskbar.h" -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - #include "wx/wizard.h" -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxWave; -#endif // (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - -#if (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSound; -#endif // (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewSpinRenderer; -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxAnimation; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxAnimationCtrl; -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxAboutDialogInfo; -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxHyperlinkCtrl; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxHyperlinkEvent; -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewBitmapRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewCheckIconText; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewChoiceByIndexRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewChoiceRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewColumn; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewColumnBase; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewCtrl; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewCtrlBase; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewCustomRendererBase; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewIconText; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewIconTextRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewIndexListModel; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewItem; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewItemArray; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewItemAttr; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewListCtrl; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewListModel; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewListStore; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewListStoreLine; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewModel; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewModelNotifier; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewProgressRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewRendererBase; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewTextRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewToggleRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewTreeStore; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewTreeStoreContainerNode; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewTreeStoreNode; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDataViewValueAdjuster; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxHeaderColumn; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSettableHeaderColumn; -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxBitmapComboBox; -#endif // wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxCalendarCtrl; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxCalendarDateAttr; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxCalendarEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxDateEvent; -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxLUA_USE_wxGrid && wxUSE_GRID - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGrid; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellAttr; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellAttrProvider; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellAutoWrapStringEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellAutoWrapStringRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellBoolEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellBoolRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellChoiceEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellCoords; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellCoordsArray; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellDateTimeRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellEnumEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellEnumRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellFloatEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellFloatRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellNumberEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellNumberRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellStringRenderer; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellTextEditor; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridCellWorker; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridEditorCreatedEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridRangeSelectEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridSizeEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridStringTable; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridTableBase; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxGridTableMessage; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxLuaGridTableBase; -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxJoystick; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxJoystickEvent; -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxCalculateLayoutEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxLayoutAlgorithm; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxQueryLayoutInfoEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSashEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSashLayoutWindow; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSashWindow; -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxSplashScreen - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSplashScreen; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxSplashScreenWindow; -#endif // wxLUA_USE_wxSplashScreen - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxTaskBarIcon; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxTaskBarIconEvent; -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxWizard; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxWizardEvent; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxWizardPage; - extern WXDLLIMPEXP_DATA_BINDWXADV(int) wxluatype_wxWizardPageSimple; -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - - -#endif // __HOOK_WXLUA_wxadv_H__ - diff --git a/wxLua/modules/wxbind/include/wxaui_bind.h b/wxLua/modules/wxbind/include/wxaui_bind.h deleted file mode 100644 index 50a9f3a1..00000000 --- a/wxLua/modules/wxbind/include/wxaui_bind.h +++ /dev/null @@ -1,92 +0,0 @@ -// --------------------------------------------------------------------------- -// wxaui.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxaui_H__ -#define __HOOK_WXLUA_wxaui_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXAUI wxLuaBinding_wxaui : public wxLuaBinding -{ -public: - wxLuaBinding_wxaui(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxaui) -}; - - -// initialize wxLuaBinding_wxaui for all wxLuaStates -extern WXDLLIMPEXP_BINDWXAUI wxLuaBinding* wxLuaBinding_wxaui_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - #include "wx/aui/aui.h" -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiPaneButton; -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiDefaultDockArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiDefaultTabArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiDefaultToolBarArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiDockArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiDockInfo; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiDockUIPart; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiFloatingFrame; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiGenericTabArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiMDIChildFrame; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiMDIClientWindow; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiMDIParentFrame; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiManager; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiManagerEvent; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiNotebook; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiNotebookEvent; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiNotebookPage; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiNotebookPageArray; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiPaneInfo; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiPaneInfoArray; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiSimpleTabArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiTabArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiTabContainerButton; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiTabCtrl; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiToolBar; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiToolBarArt; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiToolBarEvent; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiToolBarItem; - extern WXDLLIMPEXP_DATA_BINDWXAUI(int) wxluatype_wxAuiToolBarItemArray; -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - -#endif // __HOOK_WXLUA_wxaui_H__ - diff --git a/wxLua/modules/wxbind/include/wxbase_bind.h b/wxLua/modules/wxbind/include/wxbase_bind.h deleted file mode 100644 index c38438cc..00000000 --- a/wxLua/modules/wxbind/include/wxbase_bind.h +++ /dev/null @@ -1,397 +0,0 @@ -// --------------------------------------------------------------------------- -// wxbase.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxbase_H__ -#define __HOOK_WXLUA_wxbase_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" - -// ---------------------------------------------------------------------------- -// Convert from wxWidgets wxT('') to wxT(""), a string. Copied from wx/filefn.h - -// platform independent versions -#if defined(__UNIX__) && !defined(__OS2__) - // CYGWIN also uses UNIX settings - #define wxLua_FILE_SEP_PATH wxT("/") -#elif defined(__MAC__) - #define wxLua_FILE_SEP_PATH wxT(":") -#else // Windows and OS/2 - #define wxLua_FILE_SEP_PATH wxT("\\") -#endif // Unix/Windows - -extern WXDLLIMPEXP_BINDWXBASE wxDateTime::TimeZone wxLua_wxDateTime_TimeZone_Local; - - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXBASE wxLuaBinding_wxbase : public wxLuaBinding -{ -public: - wxLuaBinding_wxbase(); - - virtual bool RegisterBinding(const wxLuaState& wxlState); - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxbase) -}; - - -// initialize wxLuaBinding_wxbase for all wxLuaStates -extern WXDLLIMPEXP_BINDWXBASE wxLuaBinding* wxLuaBinding_wxbase_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - #include "wx/fs_inet.h" -#endif // (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - #include "wx/filesys.h" - #include "wx/fs_arc.h" - #include "wx/fs_filter.h" -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -#include "sys/stat.h" -#include "wx/dynlib.h" -#include "wx/event.h" -#include "wx/filefn.h" -#include "wx/iconloc.h" -#include "wx/mimetype.h" -#include "wx/timer.h" -#include "wx/tokenzr.h" -#include "wx/unichar.h" -#include "wx/utils.h" -#include "wx/variant.h" - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - #include "wx/stdpaths.h" -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - -#if wxLUA_USE_wxArrayDouble - #include "wx/dynarray.h" -#endif // wxLUA_USE_wxArrayDouble - -#if wxLUA_USE_wxArrayInt - #include "wx/dynarray.h" -#endif // wxLUA_USE_wxArrayInt - -#if wxLUA_USE_wxArrayString - #include "wx/arrstr.h" -#endif // wxLUA_USE_wxArrayString - -#if wxLUA_USE_wxClassInfo - #include "wx/object.h" -#endif // wxLUA_USE_wxClassInfo - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - #include "wx/confbase.h" - #include "wx/config.h" - #include "wx/fileconf.h" - #include "wx/memconf.h" -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if wxLUA_USE_wxCriticalSection && wxUSE_THREADS - #include "wx/thread.h" -#endif // wxLUA_USE_wxCriticalSection && wxUSE_THREADS - -#if wxLUA_USE_wxCriticalSectionLocker - #include "wx/thread.h" -#endif // wxLUA_USE_wxCriticalSectionLocker - -#if wxLUA_USE_wxDateSpan && wxUSE_DATETIME - #include "wx/datetime.h" -#endif // wxLUA_USE_wxDateSpan && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - #include "wx/datetime.h" -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if wxLUA_USE_wxDir - #include "wx/dir.h" -#endif // wxLUA_USE_wxDir - -#if wxLUA_USE_wxFile && wxUSE_FILE - #include "wx/file.h" -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxLUA_USE_wxFileName - #include "wx/filename.h" -#endif // wxLUA_USE_wxFileName - -#if wxLUA_USE_wxList && !wxUSE_STL - #include "wx/list.h" -#endif // wxLUA_USE_wxList && !wxUSE_STL - -#if wxLUA_USE_wxLog && wxUSE_LOG - #include "wx/log.h" -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if wxLUA_USE_wxObject - #include "wx/object.h" -#endif // wxLUA_USE_wxObject - -#if wxLUA_USE_wxRegEx && wxUSE_REGEX - #include "wx/regex.h" -#endif // wxLUA_USE_wxRegEx && wxUSE_REGEX - -#if wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - #include "wx/stopwatch.h" -#endif // wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - -#if wxLUA_USE_wxSystemOptions - #include "wx/sysopt.h" -#endif // wxLUA_USE_wxSystemOptions - -#if wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - #include "wx/datetime.h" -#endif // wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - #include "wx/fswatcher.h" -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - -#if wxUSE_INTL - #include "wx/intl.h" -#endif // wxUSE_INTL - -#if wxUSE_LONGLONG - #include "wx/longlong.h" -#endif // wxUSE_LONGLONG - -#if wxUSE_SNGLINST_CHECKER - #include "wx/snglinst.h" -#endif // wxUSE_SNGLINST_CHECKER - -#if wxUSE_STREAMS - #include "wx/datstrm.h" - #include "wx/mstream.h" - #include "wx/sstream.h" - #include "wx/stream.h" - #include "wx/txtstrm.h" - #include "wx/wfstream.h" -#endif // wxUSE_STREAMS - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxResourceTranslationsLoader; -#endif // (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileTranslationsLoader; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxMsgCatalog; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxTranslations; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxTranslationsLoader; -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxInternetFSHandler; -#endif // (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxArchiveFSHandler; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFSFile; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileSystem; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileSystemHandler; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFilterFSHandler; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLocalFSHandler; -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxClientData; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxClientDataContainer; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDynamicLibrary; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDynamicLibraryDetails; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDynamicLibraryDetailsArray; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxEvent; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxEventFilter; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxEventLoopBase; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxEvtHandler; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileType; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileType_MessageParameters; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileTypeInfo; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxIconLocation; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxMimeTypesManager; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxPathList; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxPlatformInfo; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxString; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStringClientData; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStringTokenizer; -extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxUniChar; - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStandardPaths; -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - -#if wxCHECK_VERSION(2,9,0) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxString_const_iterator; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxString_iterator; -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(2,9,2) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxVersionInfo; -#endif // wxCHECK_VERSION(2,9,2) - -#if wxLUA_USE_wxArrayDouble - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxArrayDouble; -#endif // wxLUA_USE_wxArrayDouble - -#if wxLUA_USE_wxArrayInt - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxArrayInt; -#endif // wxLUA_USE_wxArrayInt - -#if wxLUA_USE_wxArrayString - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxArrayString; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxSortedArrayString; -#endif // wxLUA_USE_wxArrayString - -#if wxLUA_USE_wxClassInfo - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxClassInfo; -#endif // wxLUA_USE_wxClassInfo - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxConfig; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxConfigBase; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxConfigPathChanger; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileConfig; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxMemoryConfig; -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if wxLUA_USE_wxCriticalSection && wxUSE_THREADS - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxCriticalSection; -#endif // wxLUA_USE_wxCriticalSection && wxUSE_THREADS - -#if wxLUA_USE_wxCriticalSectionLocker - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxCriticalSectionLocker; -#endif // wxLUA_USE_wxCriticalSectionLocker - -#if wxLUA_USE_wxDateSpan && wxUSE_DATETIME - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDateSpan; -#endif // wxLUA_USE_wxDateSpan && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDateTime; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDateTime_TimeZone; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDateTimeArray; -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDateTimeHolidayAuthority; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDateTimeWorkDays; -#endif // wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - -#if wxLUA_USE_wxDir - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDir; -#endif // wxLUA_USE_wxDir - -#if wxLUA_USE_wxFile && wxUSE_FILE - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFile; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxTempFile; -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxLUA_USE_wxFileName - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileName; -#endif // wxLUA_USE_wxFileName - -#if wxLUA_USE_wxList && !wxUSE_STL - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxList; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxNode; -#endif // wxLUA_USE_wxList && !wxUSE_STL - -#if wxLUA_USE_wxLog && wxUSE_LOG - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLog; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLogBuffer; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLogChain; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLogNull; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLogPassThrough; -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if wxLUA_USE_wxMemoryBuffer - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxMemoryBuffer; -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxLUA_USE_wxObject - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxObject; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxObjectRefData; -#endif // wxLUA_USE_wxObject - -#if wxLUA_USE_wxRegEx && wxUSE_REGEX - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxRegEx; -#endif // wxLUA_USE_wxRegEx && wxUSE_REGEX - -#if wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStopWatch; -#endif // wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - -#if wxLUA_USE_wxSystemOptions - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxSystemOptions; -#endif // wxLUA_USE_wxSystemOptions - -#if wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxTimeSpan; -#endif // wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileSystemWatcher; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileSystemWatcherEvent; -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - -#if wxUSE_INTL - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLanguageInfo; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLocale; -#endif // wxUSE_INTL - -#if wxUSE_LONGLONG - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxLongLong; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxULongLong; -#endif // wxUSE_LONGLONG - -#if wxUSE_SNGLINST_CHECKER - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxSingleInstanceChecker; -#endif // wxUSE_SNGLINST_CHECKER - -#if wxUSE_STREAMS - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDataInputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxDataOutputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileInputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxFileOutputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxInputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxMemoryInputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxMemoryOutputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxOutputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStreamBase; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStringInputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxStringOutputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxTextInputStream; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxTextOutputStream; -#endif // wxUSE_STREAMS - -#if wxUSE_VARIANT - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxVariant; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxVariantData; - extern WXDLLIMPEXP_DATA_BINDWXBASE(int) wxluatype_wxVariantList; -#endif // wxUSE_VARIANT - - - -#endif // __HOOK_WXLUA_wxbase_H__ - diff --git a/wxLua/modules/wxbind/include/wxcore_bind.h b/wxLua/modules/wxbind/include/wxcore_bind.h deleted file mode 100644 index 036190f3..00000000 --- a/wxLua/modules/wxbind/include/wxcore_bind.h +++ /dev/null @@ -1,1380 +0,0 @@ -// --------------------------------------------------------------------------- -// wxcore.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxcore_H__ -#define __HOOK_WXLUA_wxcore_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxbase_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXCORE wxLuaBinding_wxcore : public wxLuaBinding -{ -public: - wxLuaBinding_wxcore(); - - virtual bool RegisterBinding(const wxLuaState& wxlState); - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxcore) -}; - - -// initialize wxLuaBinding_wxcore for all wxLuaStates -extern WXDLLIMPEXP_BINDWXCORE wxLuaBinding* wxLuaBinding_wxcore_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - #include "wx/generic/helpext.h" -#endif // (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - #include "wx/tbarsmpl.h" -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - #include "wx/filepicker.h" -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - -#if (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - #include "wx/effects.h" -#endif // (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - #include "wx/dcprint.h" -#endif // (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - #include "wx/helpwin.h" - #include "wx/msw/helpbest.h" -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxCHECK_VERSION(2,6,0)) && (wxUSE_NUMBERDLG) - #include "wx/numdlg.h" -#endif // (wxCHECK_VERSION(2,6,0)) && (wxUSE_NUMBERDLG) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - #include "wx/clrpicker.h" -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - #include "wx/datectrl.h" -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - #include "wx/fontpicker.h" -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - #include "wx/timectrl.h" -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - #include "wx/imagtga.h" -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - #include "wx/wrapsizer.h" -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - #include "wx/event.h" -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - #include "wx/gbsizer.h" -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - #include "wx/affinematrix2d.h" -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - #include "wx/bmpbuttn.h" -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - #include "wx/cshelp.h" -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - #include "wx/headerctrl.h" -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - -#if (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - #include "wx/checklst.h" -#endif // (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - -#if (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - #include "wx/ctrlsub.h" -#endif // (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - #include "wx/minifram.h" -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - -#if (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - #include "wx/valgen.h" -#endif // (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - #include "wx/layout.h" -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - #include "wxbind/include/wxcore_wxlcore.h" - #include "wxlua/wxlua_bind.h" -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - #include "wx/dcps.h" -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - -#if (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - #include "wx/valtext.h" -#endif // (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#include "wx/control.h" -#include "wx/ctrlsub.h" -#include "wx/dcgraph.h" -#include "wx/defs.h" -#include "wx/event.h" -#include "wx/graphics.h" -#include "wx/process.h" -#include "wx/utils.h" -#include "wx/wupdlock.h" - -#if wxCHECK_VERSION(2,4,0) - #include "wx/tglbtn.h" -#endif // wxCHECK_VERSION(2,4,0) - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - #include "wx/tabctrl.h" -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - -#if wxCHECK_VERSION(2,8,0) - #include "wx/event.h" - #include "wx/power.h" -#endif // wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - #include "wx/collpane.h" -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - #include "wx/pickerbase.h" -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - #include "wx/toolbook.h" -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - #include "wx/treebook.h" -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - -#if wxCHECK_VERSION(3,1,3) - #include "wx/event.h" -#endif // wxCHECK_VERSION(3,1,3) - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - #include "wx/geometry.h" - #include "wx/position.h" -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - #include "wx/cmdproc.h" - #include "wx/docmdi.h" - #include "wx/docview.h" -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - #include "wx/accel.h" -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if wxLUA_USE_wxApp - #include "wx/app.h" -#endif // wxLUA_USE_wxApp - -#if wxLUA_USE_wxArtProvider - #include "wx/artprov.h" -#endif // wxLUA_USE_wxArtProvider - -#if wxLUA_USE_wxBitmap - #include "wx/bitmap.h" -#endif // wxLUA_USE_wxBitmap - -#if wxLUA_USE_wxBusyCursor - #include "wx/utils.h" -#endif // wxLUA_USE_wxBusyCursor - -#if wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - #include "wx/busyinfo.h" -#endif // wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - #include "wx/button.h" -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if wxLUA_USE_wxCaret && wxUSE_CARET - #include "wx/caret.h" -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -#if wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - #include "wx/checkbox.h" -#endif // wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - -#if wxLUA_USE_wxChoice && wxUSE_CHOICE - #include "wx/choice.h" -#endif // wxLUA_USE_wxChoice && wxUSE_CHOICE - -#if wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - #include "wx/clipbrd.h" -#endif // wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - #include "wx/cmndata.h" - #include "wx/colordlg.h" -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - -#if wxLUA_USE_wxColourPenBrush - #include "wx/brush.h" - #include "wx/colour.h" - #include "wx/gdicmn.h" - #include "wx/pen.h" -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - #include "wx/combobox.h" -#endif // wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - -#if wxLUA_USE_wxCommandProcessor - #include "wx/cmdproc.h" -#endif // wxLUA_USE_wxCommandProcessor - -#if wxLUA_USE_wxCursor - #include "wx/cursor.h" -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxDC - #include "wx/dc.h" - #include "wx/dcbuffer.h" - #include "wx/dcclient.h" - #include "wx/dcmemory.h" - #include "wx/dcmirror.h" - #include "wx/dcscreen.h" -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - #include "wx/dataobj.h" -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxDialog - #include "wx/dialog.h" -#endif // wxLUA_USE_wxDialog - -#if wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - #include "wx/dirdlg.h" -#endif // wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - #include "wx/display.h" -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - #include "wx/dnd.h" - #include "wx/event.h" -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - #include "wx/filedlg.h" -#endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - -#if wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - #include "wx/docview.h" -#endif // wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxFont - #include "wx/font.h" - #include "wx/fontutil.h" -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxFontEnumerator - #include "wx/fontenum.h" -#endif // wxLUA_USE_wxFontEnumerator - -#if wxLUA_USE_wxFontMapper - #include "wx/fontmap.h" -#endif // wxLUA_USE_wxFontMapper - -#if wxLUA_USE_wxFrame - #include "wx/frame.h" -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - #include "wx/toplevel.h" -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - #include "wx/gauge.h" -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - #include "wx/dirctrl.h" -#endif // wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - #include "wx/cshelp.h" - #include "wx/help.h" -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if wxLUA_USE_wxIcon - #include "wx/iconbndl.h" -#endif // wxLUA_USE_wxIcon - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - #include "wx/imagbmp.h" - #include "wx/image.h" - #include "wx/imaggif.h" - #include "wx/imagiff.h" - #include "wx/imagjpeg.h" - #include "wx/imagpcx.h" - #include "wx/imagpng.h" - #include "wx/imagpnm.h" - #include "wx/imagtiff.h" - #include "wx/imagxpm.h" - #include "wx/quantize.h" -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxLUA_USE_wxImageList - #include "wx/imaglist.h" -#endif // wxLUA_USE_wxImageList - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - #include "wx/listbox.h" -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - #include "wx/listctrl.h" -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if wxLUA_USE_wxMask - #include "wx/bitmap.h" -#endif // wxLUA_USE_wxMask - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - #include "wx/event.h" - #include "wx/menu.h" - #include "wx/menuitem.h" -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - #include "wx/metafile.h" -#endif // wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - #include "wx/choicebk.h" -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - #include "wx/listbook.h" -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - #include "wx/bookctrl.h" -#endif // wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - #include "wx/notebook.h" -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - -#if wxLUA_USE_wxPalette && wxUSE_PALETTE - #include "wx/palette.h" -#endif // wxLUA_USE_wxPalette && wxUSE_PALETTE - -#if wxLUA_USE_wxPointSizeRect - #include "wx/gdicmn.h" -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxPopupTransientWindow - #include "wx/popupwin.h" -#endif // wxLUA_USE_wxPopupTransientWindow - -#if wxLUA_USE_wxPopupWindow - #include "wx/popupwin.h" -#endif // wxLUA_USE_wxPopupWindow - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - #include "wx/print.h" - #include "wx/printdlg.h" -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - #include "wx/radiobox.h" -#endif // wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - -#if wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - #include "wx/radiobut.h" -#endif // wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - -#if wxLUA_USE_wxRegion - #include "wx/region.h" -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_wxRenderer - #include "wx/renderer.h" -#endif // wxLUA_USE_wxRenderer - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - #include "wx/scrolbar.h" -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -#if wxLUA_USE_wxSlider && wxUSE_SLIDER - #include "wx/slider.h" -#endif // wxLUA_USE_wxSlider && wxUSE_SLIDER - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - #include "wx/spinbutt.h" - #include "wx/spinctrl.h" -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - #include "wx/spinctrl.h" -#endif // wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - #include "wx/spinctrl.h" -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSplitterWindow - #include "wx/splitter.h" -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - #include "wx/statbmp.h" -#endif // wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - -#if wxLUA_USE_wxStaticBox && wxUSE_STATBOX - #include "wx/statbox.h" -#endif // wxLUA_USE_wxStaticBox && wxUSE_STATBOX - -#if wxLUA_USE_wxStaticLine && wxUSE_STATLINE - #include "wx/statline.h" -#endif // wxLUA_USE_wxStaticLine && wxUSE_STATLINE - -#if wxLUA_USE_wxStaticText && wxUSE_STATTEXT - #include "wx/stattext.h" -#endif // wxLUA_USE_wxStaticText && wxUSE_STATTEXT - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - #include "wx/statusbr.h" -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - -#if wxLUA_USE_wxSystemSettings - #include "wx/settings.h" -#endif // wxLUA_USE_wxSystemSettings - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - #include "wx/textctrl.h" -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxLUA_USE_wxTimer && wxUSE_TIMER - #include "wx/timer.h" -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - #include "wx/tglbtn.h" -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - -#if wxLUA_USE_wxToolbar - #include "wx/tbarbase.h" - #include "wx/toolbar.h" -#endif // wxLUA_USE_wxToolbar - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - #include "wx/tooltip.h" -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - #include "wx/treectrl.h" - #include "wxbind/include/wxcore_wxlcore.h" -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - #include "wx/treelist.h" -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - #include "wx/validate.h" -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxUSE_COMBOCTRL - #include "wx/combo.h" -#endif // wxUSE_COMBOCTRL - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - #include "wx/fdrepdlg.h" -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - -#if wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - #include "wx/cmndata.h" - #include "wx/fontdlg.h" -#endif // wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - -#if wxUSE_GRAPHICS_CONTEXT - #include "wx/affinematrix2d.h" - #include "wx/colour.h" - #include "wx/dynarray.h" - #include "wx/font.h" - #include "wx/geometry.h" - #include "wx/image.h" - #include "wx/pen.h" - #include "wx/vector.h" -#endif // wxUSE_GRAPHICS_CONTEXT - -#if wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - #include "wx/infobar.h" -#endif // wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - -#if wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - #include "wx/progdlg.h" -#endif // wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - -#if wxUSE_SEARCHCTRL - #include "wx/srchctrl.h" -#endif // wxUSE_SEARCHCTRL - -#if wxUSE_STREAMS && wxUSE_FILESYSTEM - #include "wx/fs_mem.h" -#endif // wxUSE_STREAMS && wxUSE_FILESYSTEM - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxExtHelpController; -#endif // (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolBarSimple; -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFileDirPickerCtrlBase; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFileDirPickerEvent; -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - -#if (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxEffects; -#endif // (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrinterDC; -#endif // (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBestHelpController; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWinHelpController; -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPowerEvent; -#endif // (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxColourPickerCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxColourPickerEvent; -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDatePickerCtrl; -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDirPickerCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFilePickerCtrl; -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontPickerCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontPickerEvent; -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTimePickerCtrl; -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTGAHandler; -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWrapSizer; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxClipboardTextEvent; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStockGDI; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxAutoBufferedPaintDC; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxURLDataObject; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBoxSizer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFlexGridSizer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGBPosition; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGBSizerItem; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGBSpan; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGridBagSizer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGridSizer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSizer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSizerFlags; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSizerItem; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSizerItemList; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStdDialogButtonSizer; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNotebookSizer; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStaticBoxSizer; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxAffineMatrix2D; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMatrix2D; -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPenInfo; -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsPenInfo; -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSystemAppearance; -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBitmapButton; -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxContextHelpButton; -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBrushList; -#endif // (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHeaderCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHeaderCtrlEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHeaderCtrlSimple; -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - -#if (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCheckListBox; -#endif // (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - -#if (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxItemContainer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxItemContainerImmutable; -#endif // (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPenList; -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMiniFrame; -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - -#if (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGenericValidator; -#endif // (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGIFHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxANIHandler; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCURHandler; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxICOHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxIFFHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxJPEGHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPNGHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTIFFHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPCXHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPNMHandler; -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxIndividualLayoutConstraint; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLayoutConstraints; -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLogWindow; -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLogTextCtrl; -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLogGui; -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaPrintout; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPreviewFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrintPreview; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrinter; -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPostScriptDC; -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - -#if (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextValidator; -#endif // (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxActivateEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxChildFocusEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCloseEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCommandEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxContextMenuEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxControl; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxControlWithItems; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDisplayChangedEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxEraseEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFocusEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGDIObject; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHelpEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxIconizeEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxIdleEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxInitDialogEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxKeyEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxKeyboardState; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMaximizeEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMouseCaptureChangedEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMouseEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMoveEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNavigationKeyEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNotifyEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPaintEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPaletteChangedEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPanel; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxProcessEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPropagateOnce; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPropagationDisabler; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxQueryNewPaletteEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxScrollEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxScrollWinEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSetCursorEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxShowEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSizeEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSysColourChangedEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxUpdateUIEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxVisualAttributes; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindow; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindowCreateEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindowDestroyEvent; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindowDisabler; -extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindowUpdateLocker; - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTabCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTabEvent; -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - -#if wxCHECK_VERSION(2,8,0) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMouseCaptureLostEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMouseState; -#endif // wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCollapsiblePane; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCollapsiblePaneEvent; -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPickerBase; -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolbook; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolbookEvent; -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreebook; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreebookEvent; -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - -#if wxCHECK_VERSION(3,1,3) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDPIChangedEvent; -#endif // wxCHECK_VERSION(3,1,3) - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPoint2DDouble; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPoint2DInt; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPosition; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRect2DDouble; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRect2DInt; -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocChildFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocMDIChildFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocMDIParentFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocManager; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocParentFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocTemplate; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDocument; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMDIChildFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMDIClientWindow; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMDIParentFrame; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxView; -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxAcceleratorEntry; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxAcceleratorTable; -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if wxLUA_USE_wxApp - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxApp; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxAppConsole; -#endif // wxLUA_USE_wxApp - -#if wxLUA_USE_wxArtProvider - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxArtProvider; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaArtProvider; -#endif // wxLUA_USE_wxArtProvider - -#if wxLUA_USE_wxBitmap - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBitmap; -#endif // wxLUA_USE_wxBitmap - -#if wxLUA_USE_wxBusyCursor - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBusyCursor; -#endif // wxLUA_USE_wxBusyCursor - -#if wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBusyInfo; -#endif // wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxAnyButton; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxButton; -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if wxLUA_USE_wxCaret && wxUSE_CARET - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCaret; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCaretSuspend; -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -#if wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCheckBox; -#endif // wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - -#if wxLUA_USE_wxChoice && wxUSE_CHOICE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxChoice; -#endif // wxLUA_USE_wxChoice && wxUSE_CHOICE - -#if wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxClipboard; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxClipboardLocker; -#endif // wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxColourData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxColourDialog; -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - -#if wxLUA_USE_wxColourPenBrush - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBrush; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxColour; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxColourDatabase; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPen; -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxComboBox; -#endif // wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - -#if wxLUA_USE_wxCommandProcessor - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCommand; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCommandProcessor; -#endif // wxLUA_USE_wxCommandProcessor - -#if wxLUA_USE_wxCursor - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxCursor; -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxDC - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBufferedDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBufferedPaintDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxClientDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDCClipper; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMemoryDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMirrorDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPaintDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxScreenDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindowDC; -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBitmapDataObject; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDataFormat; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDataObject; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDataObjectComposite; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDataObjectSimple; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFileDataObject; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaDataObjectSimple; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextDataObject; -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDialog; -#endif // wxLUA_USE_wxDialog - -#if wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDirDialog; -#endif // wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxArrayVideoModes; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDisplay; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxVideoMode; -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDropFilesEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDropSource; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxDropTarget; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFileDropTarget; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaFileDropTarget; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaTextDropTarget; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaURLDropTarget; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextDropTarget; -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFileDialog; -#endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - -#if wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFileHistory; -#endif // wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxFont - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFont; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontInfo; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNativeFontInfo; -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxFontEnumerator - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontEnumerator; -#endif // wxLUA_USE_wxFontEnumerator - -#if wxLUA_USE_wxFontList - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontList; -#endif // wxLUA_USE_wxFontList - -#if wxLUA_USE_wxFontMapper - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontMapper; -#endif // wxLUA_USE_wxFontMapper - -#if wxLUA_USE_wxFrame - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFrame; -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNonOwnedWindow; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTopLevelWindow; -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGauge; -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGenericDirCtrl; -#endif // wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxContextHelp; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHelpController; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHelpControllerBase; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHelpControllerHelpProvider; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHelpProvider; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSimpleHelpProvider; -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if wxLUA_USE_wxIcon - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxIcon; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxIconBundle; -#endif // wxLUA_USE_wxIcon - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBMPHandler; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxImage; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxImageHandler; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxImageHistogram; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxImageHistogram_iterator; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxImageHistogramEntry; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxQuantize; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxXPMHandler; -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxLUA_USE_wxImageList - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxImageList; -#endif // wxLUA_USE_wxImageList - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListBox; -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListItem; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListItemAttr; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListView; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaListCtrl; -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if wxLUA_USE_wxMask - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMask; -#endif // wxLUA_USE_wxMask - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMenu; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMenuBar; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMenuEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMenuItem; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMenuItemList; -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMessageDialog; -#endif // wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - -#if wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMetafile; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMetafileDC; -#endif // wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxChoicebook; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxChoicebookEvent; -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListbook; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxListbookEvent; -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBookCtrlBase; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBookCtrlBaseEvent; -#endif // wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNotebook; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNotebookEvent; -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - -#if wxLUA_USE_wxPalette && wxUSE_PALETTE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPalette; -#endif // wxLUA_USE_wxPalette && wxUSE_PALETTE - -#if wxLUA_USE_wxPointSizeRect - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPoint; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRealPoint; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRect; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSize; -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxPopupTransientWindow - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPopupTransientWindow; -#endif // wxLUA_USE_wxPopupTransientWindow - -#if wxLUA_USE_wxPopupWindow - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPopupWindow; -#endif // wxLUA_USE_wxPopupWindow - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPageSetupDialog; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPageSetupDialogData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPreviewCanvas; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPreviewControlBar; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrintData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrintDialog; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrintDialogData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPrintout; -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxProcess - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaProcess; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxProcess; -#endif // wxLUA_USE_wxProcess - -#if wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRadioBox; -#endif // wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - -#if wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRadioButton; -#endif // wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - -#if wxLUA_USE_wxRegion - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRegion; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRegionIterator; -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_wxRenderer - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxHeaderButtonParams; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRendererNative; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxRendererVersion; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSplitterRenderParams; -#endif // wxLUA_USE_wxRenderer - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxScrollBar; -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -#if wxLUA_USE_wxScrolledWindow - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxScrollHelper; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxScrolledWindow; -#endif // wxLUA_USE_wxScrolledWindow - -#if wxLUA_USE_wxSlider && wxUSE_SLIDER - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSlider; -#endif // wxLUA_USE_wxSlider && wxUSE_SLIDER - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSpinButton; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSpinEvent; -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSpinCtrl; -#endif // wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSpinCtrlDouble; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSpinDoubleEvent; -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSplitterWindow - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSplitterEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSplitterWindow; -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStaticBitmap; -#endif // wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - -#if wxLUA_USE_wxStaticBox && wxUSE_STATBOX - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStaticBox; -#endif // wxLUA_USE_wxStaticBox && wxUSE_STATBOX - -#if wxLUA_USE_wxStaticLine && wxUSE_STATLINE - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStaticLine; -#endif // wxLUA_USE_wxStaticLine && wxUSE_STATLINE - -#if wxLUA_USE_wxStaticText && wxUSE_STATTEXT - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStaticText; -#endif // wxLUA_USE_wxStaticText && wxUSE_STATTEXT - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStatusBar; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxStatusBarPane; -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - -#if wxLUA_USE_wxSystemSettings - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSystemSettings; -#endif // wxLUA_USE_wxSystemSettings - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextAreaBase; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextAttr; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextCtrlIface; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextEntry; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextUrlEvent; -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxLUA_USE_wxTimer && wxUSE_TIMER - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTimer; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTimerEvent; -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxBitmapToggleButton; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToggleButton; -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - -#if wxLUA_USE_wxToolbar - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolBar; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolBarBase; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolBarToolBase; -#endif // wxLUA_USE_wxToolbar - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxToolTip; -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxLuaTreeItemData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeItemData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeItemId; -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeListCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeListEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTreeListItem; -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxValidator; -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxWindowList && !wxUSE_STL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxWindowList; -#endif // wxLUA_USE_wxWindowList && !wxUSE_STL - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMultiChoiceDialog; -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSingleChoiceDialog; -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - -#if wxUSE_COMBOCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxComboCtrl; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxComboCtrlFeatures; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxComboPopup; -#endif // wxUSE_COMBOCTRL - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFindDialogEvent; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFindReplaceData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFindReplaceDialog; -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - -#if wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontData; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxFontDialog; -#endif // wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - -#if wxUSE_GRAPHICS_CONTEXT - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGCDC; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsBitmap; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsBrush; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsContext; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsFont; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsGradientStop; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsGradientStops; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsMatrix; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsObject; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsPath; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsPen; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxGraphicsRenderer; -#endif // wxUSE_GRAPHICS_CONTEXT - -#if wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxInfoBar; -#endif // wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - -#if wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxNumberEntryDialog; -#endif // wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - -#if wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxProgressDialog; -#endif // wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - -#if wxUSE_SEARCHCTRL - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxSearchCtrl; -#endif // wxUSE_SEARCHCTRL - -#if wxUSE_STREAMS && wxUSE_FILESYSTEM - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxMemoryFSHandler; -#endif // wxUSE_STREAMS && wxUSE_FILESYSTEM - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxPasswordEntryDialog; - extern WXDLLIMPEXP_DATA_BINDWXCORE(int) wxluatype_wxTextEntryDialog; -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - - - -#endif // __HOOK_WXLUA_wxcore_H__ - diff --git a/wxLua/modules/wxbind/include/wxgl_bind.h b/wxLua/modules/wxbind/include/wxgl_bind.h deleted file mode 100644 index bdfeefd6..00000000 --- a/wxLua/modules/wxbind/include/wxgl_bind.h +++ /dev/null @@ -1,68 +0,0 @@ -// --------------------------------------------------------------------------- -// wxgl.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxgl_H__ -#define __HOOK_WXLUA_wxgl_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXGL wxLuaBinding_wxgl : public wxLuaBinding -{ -public: - wxLuaBinding_wxgl(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxgl) -}; - - -// initialize wxLuaBinding_wxgl for all wxLuaStates -extern WXDLLIMPEXP_BINDWXGL wxLuaBinding* wxLuaBinding_wxgl_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - #include "wx/glcanvas.h" -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - extern WXDLLIMPEXP_DATA_BINDWXGL(int) wxluatype_wxGLAttribsBase; - extern WXDLLIMPEXP_DATA_BINDWXGL(int) wxluatype_wxGLAttributes; - extern WXDLLIMPEXP_DATA_BINDWXGL(int) wxluatype_wxGLContextAttrs; -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - extern WXDLLIMPEXP_DATA_BINDWXGL(int) wxluatype_wxGLCanvas; - extern WXDLLIMPEXP_DATA_BINDWXGL(int) wxluatype_wxGLContext; -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - - - -#endif // __HOOK_WXLUA_wxgl_H__ - diff --git a/wxLua/modules/wxbind/include/wxhtml_bind.h b/wxLua/modules/wxbind/include/wxhtml_bind.h deleted file mode 100644 index f2f36553..00000000 --- a/wxLua/modules/wxbind/include/wxhtml_bind.h +++ /dev/null @@ -1,115 +0,0 @@ -// --------------------------------------------------------------------------- -// wxhtml.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxhtml_H__ -#define __HOOK_WXLUA_wxhtml_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXHTML wxLuaBinding_wxhtml : public wxLuaBinding -{ -public: - wxLuaBinding_wxhtml(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxhtml) -}; - - -// initialize wxLuaBinding_wxhtml for all wxLuaStates -extern WXDLLIMPEXP_BINDWXHTML wxLuaBinding* wxLuaBinding_wxhtml_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - #include "wx/html/htmlcell.h" - #include "wx/html/htmlwin.h" - #include "wx/htmllbox.h" -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - #include "wx/html/helpctrl.h" - #include "wx/html/helpdata.h" -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - #include "wxbind/include/wxhtml_wxlhtml.h" -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - #include "wx/html/htmlcell.h" - #include "wx/html/htmltag.h" - #include "wx/html/htmprint.h" - #include "wx/wxhtml.h" -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlCellEvent; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlColourCell; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlFontCell; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlLinkEvent; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlWindowInterface; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxSimpleHtmlListBox; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlRenderingInfo; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlRenderingState; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlRenderingStyle; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlSelection; -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlHelpController; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlHelpData; -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxLuaHtmlWinTagEvent; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxLuaHtmlWindow; -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlCell; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlContainerCell; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlDCRenderer; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlEasyPrinting; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlLinkInfo; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlParser; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlPrintout; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlTag; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlWidgetCell; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlWinParser; - extern WXDLLIMPEXP_DATA_BINDWXHTML(int) wxluatype_wxHtmlWindow; -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - - -#endif // __HOOK_WXLUA_wxhtml_H__ - diff --git a/wxLua/modules/wxbind/include/wxmedia_bind.h b/wxLua/modules/wxbind/include/wxmedia_bind.h deleted file mode 100644 index fd9e3537..00000000 --- a/wxLua/modules/wxbind/include/wxmedia_bind.h +++ /dev/null @@ -1,63 +0,0 @@ -// --------------------------------------------------------------------------- -// wxmedia.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxmedia_H__ -#define __HOOK_WXLUA_wxmedia_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" -#include "wxbind/include/wxnet_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXMEDIA wxLuaBinding_wxmedia : public wxLuaBinding -{ -public: - wxLuaBinding_wxmedia(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxmedia) -}; - - -// initialize wxLuaBinding_wxmedia for all wxLuaStates -extern WXDLLIMPEXP_BINDWXMEDIA wxLuaBinding* wxLuaBinding_wxmedia_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - #include "wx/mediactrl.h" -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - extern WXDLLIMPEXP_DATA_BINDWXMEDIA(int) wxluatype_wxMediaCtrl; - extern WXDLLIMPEXP_DATA_BINDWXMEDIA(int) wxluatype_wxMediaEvent; -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - - - -#endif // __HOOK_WXLUA_wxmedia_H__ - diff --git a/wxLua/modules/wxbind/include/wxnet_bind.h b/wxLua/modules/wxbind/include/wxnet_bind.h deleted file mode 100644 index cbc052f6..00000000 --- a/wxLua/modules/wxbind/include/wxnet_bind.h +++ /dev/null @@ -1,101 +0,0 @@ -// --------------------------------------------------------------------------- -// wxnet.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxnet_H__ -#define __HOOK_WXLUA_wxnet_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXNET wxLuaBinding_wxnet : public wxLuaBinding -{ -public: - wxLuaBinding_wxnet(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxnet) -}; - - -// initialize wxLuaBinding_wxnet for all wxLuaStates -extern WXDLLIMPEXP_BINDWXNET wxLuaBinding* wxLuaBinding_wxnet_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - #include "wx/protocol/protocol.h" -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - #include "wx/protocol/ftp.h" -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - #include "wx/protocol/http.h" -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - #include "wx/url.h" -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - #include "wx/socket.h" - #include "wx/uri.h" -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxProtocol; -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxFTP; -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxHTTP; -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxURL; -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxIPV4address; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxIPaddress; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxSockAddress; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxSocketBase; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxSocketClient; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxSocketEvent; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxSocketServer; - extern WXDLLIMPEXP_DATA_BINDWXNET(int) wxluatype_wxURI; -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - - -#endif // __HOOK_WXLUA_wxnet_H__ - diff --git a/wxLua/modules/wxbind/include/wxpropgrid_bind.h b/wxLua/modules/wxbind/include/wxpropgrid_bind.h deleted file mode 100644 index 2aaad1ec..00000000 --- a/wxLua/modules/wxbind/include/wxpropgrid_bind.h +++ /dev/null @@ -1,139 +0,0 @@ -// --------------------------------------------------------------------------- -// wxpropgrid.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxpropgrid_H__ -#define __HOOK_WXLUA_wxpropgrid_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" -#include "wx/propgrid/property.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXPROPGRID wxLuaBinding_wxpropgrid : public wxLuaBinding -{ -public: - wxLuaBinding_wxpropgrid(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxpropgrid) -}; - - -// initialize wxLuaBinding_wxpropgrid for all wxLuaStates -extern WXDLLIMPEXP_BINDWXPROPGRID wxLuaBinding* wxLuaBinding_wxpropgrid_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - #include "wx/propgrid/advprops.h" - #include "wx/propgrid/editors.h" - #include "wx/propgrid/manager.h" - #include "wx/propgrid/property.h" - #include "wx/propgrid/propgrid.h" - #include "wx/propgrid/propgriddefs.h" - #include "wx/propgrid/propgridiface.h" - #include "wx/propgrid/propgridpagestate.h" - #include "wx/propgrid/props.h" -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxArrayStringProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxDirProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxEditorDialogProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxFileProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxFloatProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxFontProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxIntProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxLongStringProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxMultiChoiceProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxNumericProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxUIntProperty; -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGCheckBoxEditor; -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGSpinCtrlEditor; -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxBoolProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxColourProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxColourPropertyValue; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxCursorProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxDateProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxEditEnumProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxEnumProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxFlagsProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxImageFileProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxNumericPropertyValidator; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGArrayEditorDialog; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGArrayStringEditorDialog; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGAttributeStorage; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGCell; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGCellData; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGCellRenderer; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGChoiceAndButtonEditor; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGChoiceEditor; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGChoiceEntry; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGChoices; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGChoicesData; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGComboBoxEditor; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGDefaultRenderer; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGEditor; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGEditorDialogAdapter; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGMultiButton; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGPaintData; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGPropArgCls; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGRootProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGTextCtrlAndButtonEditor; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGTextCtrlEditor; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGVIterator; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGVIteratorBase; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGValidationInfo; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPGWindowList; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyCategory; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGrid; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridConstIterator; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridEvent; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridHitTestResult; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridInterface; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridIteratorBase; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridManager; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridPage; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxPropertyGridPageState; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxStringProperty; - extern WXDLLIMPEXP_DATA_BINDWXPROPGRID(int) wxluatype_wxSystemColourProperty; -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - -#endif // __HOOK_WXLUA_wxpropgrid_H__ - diff --git a/wxLua/modules/wxbind/include/wxrichtext_bind.h b/wxLua/modules/wxbind/include/wxrichtext_bind.h deleted file mode 100644 index 9ffaf846..00000000 --- a/wxLua/modules/wxbind/include/wxrichtext_bind.h +++ /dev/null @@ -1,171 +0,0 @@ -// --------------------------------------------------------------------------- -// wxrichtext.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxrichtext_H__ -#define __HOOK_WXLUA_wxrichtext_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" -#include "wxbind/include/wxxml_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXRICHTEXT wxLuaBinding_wxrichtext : public wxLuaBinding -{ -public: - wxLuaBinding_wxrichtext(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxrichtext) -}; - - -// initialize wxLuaBinding_wxrichtext for all wxLuaStates -extern WXDLLIMPEXP_BINDWXRICHTEXT wxLuaBinding* wxLuaBinding_wxrichtext_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - #include "wx/richtext/richtextformatdlg.h" - #include "wx/richtext/richtexthtml.h" - #include "wx/richtext/richtextimagedlg.h" -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - #include "wx/richtext/richtextxml.h" -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - #include "wx/richtext/richtextbuffer.h" - #include "wx/richtext/richtextctrl.h" - #include "wx/richtext/richtextprint.h" - #include "wx/richtext/richtextstyledlg.h" - #include "wx/richtext/richtextstyles.h" - #include "wx/richtext/richtextsymboldlg.h" -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFormattingDialog; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFormattingDialogFactory; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextHTMLHandler; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextObjectPropertiesDialog; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextLineList; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStyleComboCtrl; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextBufferDataObject; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextDropSource; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextDropTarget; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextEvent; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStyleListBox; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStyleListCtrl; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextXMLHandler; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextXMLHelper; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextAction; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextAttr; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextAttrArray; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextBox; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextBoxStyleDefinition; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextBuffer; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextCell; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextCharacterStyleDefinition; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextCommand; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextCompositeObject; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextContextMenuPropertiesInfo; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextCtrl; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextDrawingContext; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextDrawingHandler; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextField; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFieldType; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFieldTypeHashMap; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFieldTypeHashMap_iterator; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFieldTypeStandard; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFileHandler; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextFontTable; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextHeaderFooterData; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextImage; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextImageBlock; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextLine; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextListStyleDefinition; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextObject; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextObjectAddress; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextObjectList; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextObjectPtrArray; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextObjectPtrArrayArray; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextParagraph; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextParagraphLayoutBox; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextParagraphStyleDefinition; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextPlainText; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextPlainTextHandler; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextPrinting; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextPrintout; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextProperties; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextRange; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextRangeArray; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextRectArray; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextRenderer; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextSelection; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStdRenderer; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStyleDefinition; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStyleOrganiserDialog; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextStyleSheet; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextTable; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextTableBlock; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxRichTextVariantArray; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxSymbolListCtrl; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxSymbolPickerDialog; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextAttrBorder; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextAttrBorders; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextAttrDimension; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextAttrDimensionConverter; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextAttrDimensions; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextAttrSize; - extern WXDLLIMPEXP_DATA_BINDWXRICHTEXT(int) wxluatype_wxTextBoxAttr; -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - -#endif // __HOOK_WXLUA_wxrichtext_H__ - diff --git a/wxLua/modules/wxbind/include/wxstc_bind.h b/wxLua/modules/wxbind/include/wxstc_bind.h deleted file mode 100644 index 87197b74..00000000 --- a/wxLua/modules/wxbind/include/wxstc_bind.h +++ /dev/null @@ -1,58 +0,0 @@ -// --------------------------------------------------------------------------- -// wxstc.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxstc_H__ -#define __HOOK_WXLUA_wxstc_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXSTC wxLuaBinding_wxstc : public wxLuaBinding -{ -public: - wxLuaBinding_wxstc(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxstc) -}; - - -// initialize wxLuaBinding_wxstc for all wxLuaStates -extern WXDLLIMPEXP_BINDWXSTC wxLuaBinding* wxLuaBinding_wxstc_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#include "wx/stc/stc.h" - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern WXDLLIMPEXP_DATA_BINDWXSTC(int) wxluatype_wxStyledTextCtrl; -extern WXDLLIMPEXP_DATA_BINDWXSTC(int) wxluatype_wxStyledTextEvent; - - - -#endif // __HOOK_WXLUA_wxstc_H__ - diff --git a/wxLua/modules/wxbind/include/wxwebview_bind.h b/wxLua/modules/wxbind/include/wxwebview_bind.h deleted file mode 100644 index a08b1f98..00000000 --- a/wxLua/modules/wxbind/include/wxwebview_bind.h +++ /dev/null @@ -1,72 +0,0 @@ -// --------------------------------------------------------------------------- -// wxwebview.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxwebview_H__ -#define __HOOK_WXLUA_wxwebview_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" -#if !defined(wxUSE_WEBVIEW) - #define wxUSE_WEBVIEW 0 -#endif - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXWEBVIEW wxLuaBinding_wxwebview : public wxLuaBinding -{ -public: - wxLuaBinding_wxwebview(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxwebview) -}; - - -// initialize wxLuaBinding_wxwebview for all wxLuaStates -extern WXDLLIMPEXP_BINDWXWEBVIEW wxLuaBinding* wxLuaBinding_wxwebview_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if wxUSE_WEBVIEW - #include "wx/webview.h" - #include "wx/webviewarchivehandler.h" - #include "wx/webviewfshandler.h" -#endif // wxUSE_WEBVIEW - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if wxUSE_WEBVIEW - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebView; - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebViewArchiveHandler; - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebViewEvent; - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebViewFSHandler; - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebViewFactory; - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebViewHandler; - extern WXDLLIMPEXP_DATA_BINDWXWEBVIEW(int) wxluatype_wxWebViewHistoryItem; -#endif // wxUSE_WEBVIEW - - - -#endif // __HOOK_WXLUA_wxwebview_H__ - diff --git a/wxLua/modules/wxbind/include/wxxml_bind.h b/wxLua/modules/wxbind/include/wxxml_bind.h deleted file mode 100644 index 9b4f94e7..00000000 --- a/wxLua/modules/wxbind/include/wxxml_bind.h +++ /dev/null @@ -1,71 +0,0 @@ -// --------------------------------------------------------------------------- -// wxxml.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxxml_H__ -#define __HOOK_WXLUA_wxxml_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxbase_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXXML wxLuaBinding_wxxml : public wxLuaBinding -{ -public: - wxLuaBinding_wxxml(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxxml) -}; - - -// initialize wxLuaBinding_wxxml for all wxLuaStates -extern WXDLLIMPEXP_BINDWXXML wxLuaBinding* wxLuaBinding_wxxml_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - #include "wx/xml/xml.h" -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - extern WXDLLIMPEXP_DATA_BINDWXXML(int) wxluatype_wxXmlProperty; -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - extern WXDLLIMPEXP_DATA_BINDWXXML(int) wxluatype_wxXmlDoctype; -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if wxLUA_USE_wxXML && wxUSE_XML - extern WXDLLIMPEXP_DATA_BINDWXXML(int) wxluatype_wxXmlAttribute; - extern WXDLLIMPEXP_DATA_BINDWXXML(int) wxluatype_wxXmlDocument; - extern WXDLLIMPEXP_DATA_BINDWXXML(int) wxluatype_wxXmlNode; -#endif // wxLUA_USE_wxXML && wxUSE_XML - - - -#endif // __HOOK_WXLUA_wxxml_H__ - diff --git a/wxLua/modules/wxbind/include/wxxrc_bind.h b/wxLua/modules/wxbind/include/wxxrc_bind.h deleted file mode 100644 index 16c6b118..00000000 --- a/wxLua/modules/wxbind/include/wxxrc_bind.h +++ /dev/null @@ -1,61 +0,0 @@ -// --------------------------------------------------------------------------- -// wxxrc.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxxrc_H__ -#define __HOOK_WXLUA_wxxrc_H__ - -#include "wxbind/include/wxbinddefs.h" -#include "wxluasetup.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_BINDWXXRC wxLuaBinding_wxxrc : public wxLuaBinding -{ -public: - wxLuaBinding_wxxrc(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxxrc) -}; - - -// initialize wxLuaBinding_wxxrc for all wxLuaStates -extern WXDLLIMPEXP_BINDWXXRC wxLuaBinding* wxLuaBinding_wxxrc_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxXRC && wxUSE_XRC - #include "wx/xrc/xmlres.h" -#endif // wxLUA_USE_wxXRC && wxUSE_XRC - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxXRC && wxUSE_XRC - extern WXDLLIMPEXP_DATA_BINDWXXRC(int) wxluatype_wxXmlResource; -#endif // wxLUA_USE_wxXRC && wxUSE_XRC - - - -#endif // __HOOK_WXLUA_wxxrc_H__ - diff --git a/wxLua/modules/wxbind/src/Makefile b/wxLua/modules/wxbind/src/Makefile deleted file mode 100644 index 0fefcbf5..00000000 --- a/wxLua/modules/wxbind/src/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: wxLuaBindAdvLib wxLuaBindAUILib wxLuaBindBaseLib wxLuaBindCoreLib wxLuaBindGLLib wxLuaBindHTMLLib wxLuaBindMediaLib wxLuaBindNetLib wxLuaBindSTCLib wxLuaBindXMLLib wxLuaBindXRCLib - -clean: cleanlib cleanwxbind - -cleanwxbind: - @($(MAKE) -f Makefile_wxadv clean) - @($(MAKE) -f Makefile_wxaui clean) - @($(MAKE) -f Makefile_wxbase clean) - @($(MAKE) -f Makefile_wxcore clean) - @($(MAKE) -f Makefile_wxgl clean) - @($(MAKE) -f Makefile_wxhtml clean) - @($(MAKE) -f Makefile_wxmedia clean) - @($(MAKE) -f Makefile_wxnet clean) - @($(MAKE) -f Makefile_wxrichtext clean) - @($(MAKE) -f Makefile_wxstc clean) - @($(MAKE) -f Makefile_wxxml clean) - @($(MAKE) -f Makefile_wxxrc clean) - - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxadv b/wxLua/modules/wxbind/src/Makefile_wxadv deleted file mode 100644 index 01c5d5f1..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxadv +++ /dev/null @@ -1,49 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDADV_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxadv_bind.cpp \ - wxadv_wxladv.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxaui b/wxLua/modules/wxbind/src/Makefile_wxaui deleted file mode 100644 index e7a17492..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxaui +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDAUI_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxaui_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxbase b/wxLua/modules/wxbind/src/Makefile_wxbase deleted file mode 100644 index 6988e14c..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxbase +++ /dev/null @@ -1,59 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDBASE_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxbase_base.cpp \ - wxbase_bind.cpp \ - wxbase_config.cpp \ - wxbase_data.cpp \ - wxbase_datetime.cpp \ - wxbase_file.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# A test to make a shared lib to test dependencies -test: $(OBJECTS) $(LUA_LIBS) - $(CXX) $(CXXFLAGS) $(APPEXTRADEFS) -g -O -o test -fPIC \ - `wx-config --libs base` -l$(LUA_LIBS) -l$(WXLUA_LIB) test.cpp - - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxcore b/wxLua/modules/wxbind/src/Makefile_wxcore deleted file mode 100644 index dc757ba9..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxcore +++ /dev/null @@ -1,66 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDCORE_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxcore_appframe.cpp \ - wxcore_bind.cpp \ - wxcore_clipdrag.cpp \ - wxcore_controls.cpp \ - wxcore_core.cpp \ - wxcore_defsutils.cpp \ - wxcore_dialogs.cpp \ - wxcore_event.cpp \ - wxcore_gdi.cpp \ - wxcore_geometry.cpp \ - wxcore_help.cpp \ - wxcore_image.cpp \ - wxcore_mdi.cpp \ - wxcore_menutool.cpp \ - wxcore_picker.cpp \ - wxcore_print.cpp \ - wxcore_sizer.cpp \ - wxcore_windows.cpp \ - wxcore_wxlcore.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxgl b/wxLua/modules/wxbind/src/Makefile_wxgl deleted file mode 100644 index 0030f71a..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxgl +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDGL_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxgl_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxhtml b/wxLua/modules/wxbind/src/Makefile_wxhtml deleted file mode 100644 index 862d3af6..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxhtml +++ /dev/null @@ -1,49 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDHTML_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxhtml_bind.cpp \ - wxhtml_wxlhtml.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxmedia b/wxLua/modules/wxbind/src/Makefile_wxmedia deleted file mode 100644 index b4bd05ef..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxmedia +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDMEDIA_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxmedia_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxnet b/wxLua/modules/wxbind/src/Makefile_wxnet deleted file mode 100644 index bd58a2f9..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxnet +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDNET_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxnet_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxrichtext b/wxLua/modules/wxbind/src/Makefile_wxrichtext deleted file mode 100644 index 0eb9589f..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxrichtext +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDRICHTEXT_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxrichtext_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxstc b/wxLua/modules/wxbind/src/Makefile_wxstc deleted file mode 100644 index b8303efd..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxstc +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDSTC_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxstc_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxxml b/wxLua/modules/wxbind/src/Makefile_wxxml deleted file mode 100644 index 281a1911..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxxml +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDXML_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxxml_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/Makefile_wxxrc b/wxLua/modules/wxbind/src/Makefile_wxxrc deleted file mode 100644 index a9f65743..00000000 --- a/wxLua/modules/wxbind/src/Makefile_wxxrc +++ /dev/null @@ -1,48 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLuaBinding library using gmake - -# Override this on the command line to use your own wxluasetup.h -WXLUASETUP = wxluasetup.h - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUABINDXRC_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = -SOURCES = \ - wxxrc_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -include $(WXLUASETUP) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxbind/src/wxadv_bind.cpp b/wxLua/modules/wxbind/src/wxadv_bind.cpp deleted file mode 100644 index 3fbacf9d..00000000 --- a/wxLua/modules/wxbind/src/wxadv_bind.cpp +++ /dev/null @@ -1,28265 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxadv_adv.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxadv_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog -// --------------------------------------------------------------------------- -// Bind class wxAboutDialogInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAboutDialogInfo' -int wxluatype_wxAboutDialogInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddArtist[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_AddArtist(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_AddArtist[1] = {{ wxLua_wxAboutDialogInfo_AddArtist, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddArtist }}; -// void AddArtist(const wxString& artist); -static int LUACALL wxLua_wxAboutDialogInfo_AddArtist(lua_State *L) -{ - // const wxString artist - const wxString artist = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call AddArtist - self->AddArtist(artist); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddDeveloper[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_AddDeveloper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_AddDeveloper[1] = {{ wxLua_wxAboutDialogInfo_AddDeveloper, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddDeveloper }}; -// void AddDeveloper(const wxString& developer); -static int LUACALL wxLua_wxAboutDialogInfo_AddDeveloper(lua_State *L) -{ - // const wxString developer - const wxString developer = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call AddDeveloper - self->AddDeveloper(developer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddDocWriter[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_AddDocWriter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_AddDocWriter[1] = {{ wxLua_wxAboutDialogInfo_AddDocWriter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddDocWriter }}; -// void AddDocWriter(const wxString& docwriter); -static int LUACALL wxLua_wxAboutDialogInfo_AddDocWriter(lua_State *L) -{ - // const wxString docwriter - const wxString docwriter = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call AddDocWriter - self->AddDocWriter(docwriter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddTranslator[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_AddTranslator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_AddTranslator[1] = {{ wxLua_wxAboutDialogInfo_AddTranslator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_AddTranslator }}; -// void AddTranslator(const wxString& translator); -static int LUACALL wxLua_wxAboutDialogInfo_AddTranslator(lua_State *L) -{ - // const wxString translator - const wxString translator = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call AddTranslator - self->AddTranslator(translator); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetArtists[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetArtists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetArtists[1] = {{ wxLua_wxAboutDialogInfo_GetArtists, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetArtists }}; -// wxArrayString GetArtists() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetArtists(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetArtists - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetArtists()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetCopyright[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetCopyright(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetCopyright[1] = {{ wxLua_wxAboutDialogInfo_GetCopyright, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetCopyright }}; -// wxString GetCopyright() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetCopyright(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetCopyright - wxString returns = (self->GetCopyright()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDescription[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetDescription[1] = {{ wxLua_wxAboutDialogInfo_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDescription }}; -// wxString GetDescription() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetDescription(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetDescription - wxString returns = (self->GetDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDescriptionAndCredits[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetDescriptionAndCredits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetDescriptionAndCredits[1] = {{ wxLua_wxAboutDialogInfo_GetDescriptionAndCredits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDescriptionAndCredits }}; -// wxString GetDescriptionAndCredits() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetDescriptionAndCredits(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetDescriptionAndCredits - wxString returns = (self->GetDescriptionAndCredits()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDevelopers[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetDevelopers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetDevelopers[1] = {{ wxLua_wxAboutDialogInfo_GetDevelopers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDevelopers }}; -// const wxArrayString& GetDevelopers() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetDevelopers(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetDevelopers - const wxArrayString* returns = (const wxArrayString*)&self->GetDevelopers(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDocWriters[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetDocWriters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetDocWriters[1] = {{ wxLua_wxAboutDialogInfo_GetDocWriters, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetDocWriters }}; -// wxArrayString GetDocWriters() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetDocWriters(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetDocWriters - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetDocWriters()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetIcon[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetIcon[1] = {{ wxLua_wxAboutDialogInfo_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetIcon }}; -// wxIcon GetIcon() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetIcon(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetLicence[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetLicence(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetLicence[1] = {{ wxLua_wxAboutDialogInfo_GetLicence, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetLicence }}; -// wxString GetLicence() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetLicence(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetLicence - wxString returns = (self->GetLicence()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetName[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetName[1] = {{ wxLua_wxAboutDialogInfo_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetName(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetTranslators[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetTranslators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetTranslators[1] = {{ wxLua_wxAboutDialogInfo_GetTranslators, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetTranslators }}; -// wxArrayString GetTranslators() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetTranslators(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetTranslators - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetTranslators()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetVersion[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetVersion[1] = {{ wxLua_wxAboutDialogInfo_GetVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetVersion }}; -// wxString GetVersion() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetVersion(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetVersion - wxString returns = (self->GetVersion()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetWebSiteDescription[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetWebSiteDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetWebSiteDescription[1] = {{ wxLua_wxAboutDialogInfo_GetWebSiteDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetWebSiteDescription }}; -// wxString GetWebSiteDescription() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetWebSiteDescription(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetWebSiteDescription - wxString returns = (self->GetWebSiteDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetWebSiteURL[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_GetWebSiteURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_GetWebSiteURL[1] = {{ wxLua_wxAboutDialogInfo_GetWebSiteURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_GetWebSiteURL }}; -// wxString GetWebSiteURL() const; -static int LUACALL wxLua_wxAboutDialogInfo_GetWebSiteURL(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call GetWebSiteURL - wxString returns = (self->GetWebSiteURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasArtists[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasArtists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasArtists[1] = {{ wxLua_wxAboutDialogInfo_HasArtists, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasArtists }}; -// bool HasArtists() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasArtists(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasArtists - bool returns = (self->HasArtists()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasCopyright[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasCopyright(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasCopyright[1] = {{ wxLua_wxAboutDialogInfo_HasCopyright, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasCopyright }}; -// bool HasCopyright() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasCopyright(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasCopyright - bool returns = (self->HasCopyright()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasDescription[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasDescription[1] = {{ wxLua_wxAboutDialogInfo_HasDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasDescription }}; -// bool HasDescription() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasDescription(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasDescription - bool returns = (self->HasDescription()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasDevelopers[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasDevelopers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasDevelopers[1] = {{ wxLua_wxAboutDialogInfo_HasDevelopers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasDevelopers }}; -// bool HasDevelopers() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasDevelopers(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasDevelopers - bool returns = (self->HasDevelopers()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasDocWriters[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasDocWriters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasDocWriters[1] = {{ wxLua_wxAboutDialogInfo_HasDocWriters, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasDocWriters }}; -// bool HasDocWriters() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasDocWriters(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasDocWriters - bool returns = (self->HasDocWriters()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasIcon[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasIcon[1] = {{ wxLua_wxAboutDialogInfo_HasIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasIcon }}; -// bool HasIcon() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasIcon(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasIcon - bool returns = (self->HasIcon()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasLicence[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasLicence(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasLicence[1] = {{ wxLua_wxAboutDialogInfo_HasLicence, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasLicence }}; -// bool HasLicence() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasLicence(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasLicence - bool returns = (self->HasLicence()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasTranslators[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasTranslators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasTranslators[1] = {{ wxLua_wxAboutDialogInfo_HasTranslators, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasTranslators }}; -// bool HasTranslators() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasTranslators(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasTranslators - bool returns = (self->HasTranslators()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasVersion[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasVersion[1] = {{ wxLua_wxAboutDialogInfo_HasVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasVersion }}; -// bool HasVersion() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasVersion(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasVersion - bool returns = (self->HasVersion()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasWebSite[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_HasWebSite(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_HasWebSite[1] = {{ wxLua_wxAboutDialogInfo_HasWebSite, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_HasWebSite }}; -// bool HasWebSite() const; -static int LUACALL wxLua_wxAboutDialogInfo_HasWebSite(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call HasWebSite - bool returns = (self->HasWebSite()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_IsSimple[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_IsSimple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_IsSimple[1] = {{ wxLua_wxAboutDialogInfo_IsSimple, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_IsSimple }}; -// bool IsSimple() const; -static int LUACALL wxLua_wxAboutDialogInfo_IsSimple(lua_State *L) -{ - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call IsSimple - bool returns = (self->IsSimple()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetArtists[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetArtists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetArtists[1] = {{ wxLua_wxAboutDialogInfo_SetArtists, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetArtists }}; -// void SetArtists(const wxArrayString& artists); -static int LUACALL wxLua_wxAboutDialogInfo_SetArtists(lua_State *L) -{ - // const wxArrayString artists - wxLuaSmartwxArrayString artists = wxlua_getwxArrayString(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetArtists - self->SetArtists(artists); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetCopyright[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetCopyright(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetCopyright[1] = {{ wxLua_wxAboutDialogInfo_SetCopyright, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetCopyright }}; -// void SetCopyright(const wxString& copyright); -static int LUACALL wxLua_wxAboutDialogInfo_SetCopyright(lua_State *L) -{ - // const wxString copyright - const wxString copyright = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetCopyright - self->SetCopyright(copyright); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetDescription[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetDescription[1] = {{ wxLua_wxAboutDialogInfo_SetDescription, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetDescription }}; -// void SetDescription(const wxString& desc); -static int LUACALL wxLua_wxAboutDialogInfo_SetDescription(lua_State *L) -{ - // const wxString desc - const wxString desc = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetDescription - self->SetDescription(desc); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetDevelopers[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetDevelopers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetDevelopers[1] = {{ wxLua_wxAboutDialogInfo_SetDevelopers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetDevelopers }}; -// void SetDevelopers(const wxArrayString& developers); -static int LUACALL wxLua_wxAboutDialogInfo_SetDevelopers(lua_State *L) -{ - // const wxArrayString developers - wxLuaSmartwxArrayString developers = wxlua_getwxArrayString(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetDevelopers - self->SetDevelopers(developers); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetDocWriters[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetDocWriters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetDocWriters[1] = {{ wxLua_wxAboutDialogInfo_SetDocWriters, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetDocWriters }}; -// void SetDocWriters(const wxArrayString& docwriters); -static int LUACALL wxLua_wxAboutDialogInfo_SetDocWriters(lua_State *L) -{ - // const wxArrayString docwriters - wxLuaSmartwxArrayString docwriters = wxlua_getwxArrayString(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetDocWriters - self->SetDocWriters(docwriters); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetIcon[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetIcon[1] = {{ wxLua_wxAboutDialogInfo_SetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetIcon }}; -// void SetIcon(const wxIcon& icon); -static int LUACALL wxLua_wxAboutDialogInfo_SetIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetIcon - self->SetIcon(*icon); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetLicence[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetLicence(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetLicence[1] = {{ wxLua_wxAboutDialogInfo_SetLicence, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetLicence }}; -// void SetLicence(const wxString& licence); -static int LUACALL wxLua_wxAboutDialogInfo_SetLicence(lua_State *L) -{ - // const wxString licence - const wxString licence = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetLicence - self->SetLicence(licence); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetLicense[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetLicense(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetLicense[1] = {{ wxLua_wxAboutDialogInfo_SetLicense, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetLicense }}; -// void SetLicense(const wxString& licence); -static int LUACALL wxLua_wxAboutDialogInfo_SetLicense(lua_State *L) -{ - // const wxString licence - const wxString licence = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetLicense - self->SetLicense(licence); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetName[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetName[1] = {{ wxLua_wxAboutDialogInfo_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxAboutDialogInfo_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetName - self->SetName(name); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetTranslators[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetTranslators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetTranslators[1] = {{ wxLua_wxAboutDialogInfo_SetTranslators, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetTranslators }}; -// void SetTranslators(const wxArrayString& translators); -static int LUACALL wxLua_wxAboutDialogInfo_SetTranslators(lua_State *L) -{ - // const wxArrayString translators - wxLuaSmartwxArrayString translators = wxlua_getwxArrayString(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetTranslators - self->SetTranslators(translators); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetVersion[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetVersion[1] = {{ wxLua_wxAboutDialogInfo_SetVersion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetVersion }}; -// void SetVersion(const wxString& version); -static int LUACALL wxLua_wxAboutDialogInfo_SetVersion(lua_State *L) -{ - // const wxString version - const wxString version = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetVersion - self->SetVersion(version); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetWebSite[] = { &wxluatype_wxAboutDialogInfo, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAboutDialogInfo_SetWebSite(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_SetWebSite[1] = {{ wxLua_wxAboutDialogInfo_SetWebSite, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAboutDialogInfo_SetWebSite }}; -// void SetWebSite(const wxString& url, const wxString& desc = ""); -static int LUACALL wxLua_wxAboutDialogInfo_SetWebSite(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString desc = "" - const wxString desc = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxAboutDialogInfo * self = (wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call SetWebSite - self->SetWebSite(url, desc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAboutDialogInfo_delete[] = { &wxluatype_wxAboutDialogInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAboutDialogInfo_delete }}; - -static int LUACALL wxLua_wxAboutDialogInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAboutDialogInfo_constructor[1] = {{ wxLua_wxAboutDialogInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAboutDialogInfo(); -static int LUACALL wxLua_wxAboutDialogInfo_constructor(lua_State *L) -{ - // call constructor - wxAboutDialogInfo* returns = new wxAboutDialogInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAboutDialogInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAboutDialogInfo); - - return 1; -} - - - - -void wxLua_wxAboutDialogInfo_delete_function(void** p) -{ - wxAboutDialogInfo* o = (wxAboutDialogInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAboutDialogInfo_methods[] = { - { "AddArtist", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_AddArtist, 1, NULL }, - { "AddDeveloper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_AddDeveloper, 1, NULL }, - { "AddDocWriter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_AddDocWriter, 1, NULL }, - { "AddTranslator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_AddTranslator, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - { "GetArtists", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetArtists, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - - { "GetCopyright", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetCopyright, 1, NULL }, - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetDescription, 1, NULL }, - { "GetDescriptionAndCredits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetDescriptionAndCredits, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - { "GetDevelopers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetDevelopers, 1, NULL }, - { "GetDocWriters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetDocWriters, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) - - { "GetLicence", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetLicence, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetName, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - { "GetTranslators", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetTranslators, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - - { "GetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetVersion, 1, NULL }, - { "GetWebSiteDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetWebSiteDescription, 1, NULL }, - { "GetWebSiteURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_GetWebSiteURL, 1, NULL }, - { "HasArtists", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasArtists, 1, NULL }, - { "HasCopyright", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasCopyright, 1, NULL }, - { "HasDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasDescription, 1, NULL }, - { "HasDevelopers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasDevelopers, 1, NULL }, - { "HasDocWriters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasDocWriters, 1, NULL }, - { "HasIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasIcon, 1, NULL }, - { "HasLicence", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasLicence, 1, NULL }, - { "HasTranslators", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasTranslators, 1, NULL }, - { "HasVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasVersion, 1, NULL }, - { "HasWebSite", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_HasWebSite, 1, NULL }, - { "IsSimple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_IsSimple, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - { "SetArtists", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetArtists, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - - { "SetCopyright", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetCopyright, 1, NULL }, - { "SetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetDescription, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - { "SetDevelopers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetDevelopers, 1, NULL }, - { "SetDocWriters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetDocWriters, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxIcon) - - { "SetLicence", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetLicence, 1, NULL }, - { "SetLicense", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetLicense, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetName, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - { "SetTranslators", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetTranslators, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog) && (wxLUA_USE_wxArrayString) - - { "SetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetVersion, 1, NULL }, - { "SetWebSite", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAboutDialogInfo_SetWebSite, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAboutDialogInfo_delete, 1, NULL }, - { "wxAboutDialogInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAboutDialogInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAboutDialogInfo_methodCount = sizeof(wxAboutDialogInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL -// --------------------------------------------------------------------------- -// Bind class wxAnimation -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAnimation' -int wxluatype_wxAnimation = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_GetDelay[] = { &wxluatype_wxAnimation, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnimation_GetDelay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_GetDelay[1] = {{ wxLua_wxAnimation_GetDelay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnimation_GetDelay }}; -// virtual int GetDelay(unsigned int frame) const; // can be -1 -static int LUACALL wxLua_wxAnimation_GetDelay(lua_State *L) -{ - // unsigned int frame - unsigned int frame = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call GetDelay - int returns = (self->GetDelay(frame)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_GetFrame[] = { &wxluatype_wxAnimation, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnimation_GetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_GetFrame[1] = {{ wxLua_wxAnimation_GetFrame, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnimation_GetFrame }}; -// virtual wxImage GetFrame(unsigned int frame) const; -static int LUACALL wxLua_wxAnimation_GetFrame(lua_State *L) -{ - // unsigned int frame - unsigned int frame = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call GetFrame - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->GetFrame(frame)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_GetFrameCount[] = { &wxluatype_wxAnimation, NULL }; -static int LUACALL wxLua_wxAnimation_GetFrameCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_GetFrameCount[1] = {{ wxLua_wxAnimation_GetFrameCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimation_GetFrameCount }}; -// virtual unsigned int GetFrameCount() const; -static int LUACALL wxLua_wxAnimation_GetFrameCount(lua_State *L) -{ - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call GetFrameCount - unsigned int returns = (self->GetFrameCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_GetSize[] = { &wxluatype_wxAnimation, NULL }; -static int LUACALL wxLua_wxAnimation_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_GetSize[1] = {{ wxLua_wxAnimation_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimation_GetSize }}; -// virtual wxSize GetSize() const; -static int LUACALL wxLua_wxAnimation_GetSize(lua_State *L) -{ - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_IsOk[] = { &wxluatype_wxAnimation, NULL }; -static int LUACALL wxLua_wxAnimation_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_IsOk[1] = {{ wxLua_wxAnimation_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimation_IsOk }}; -// virtual bool IsOk() const; -static int LUACALL wxLua_wxAnimation_IsOk(lua_State *L) -{ - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_Load[] = { &wxluatype_wxAnimation, &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnimation_Load(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_Load[1] = {{ wxLua_wxAnimation_Load, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnimation_Load }}; -// virtual bool Load(wxInputStream& stream, wxAnimationType type = wxANIMATION_TYPE_ANY); -static int LUACALL wxLua_wxAnimation_Load(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxAnimationType type = wxANIMATION_TYPE_ANY - wxAnimationType type = (argCount >= 3 ? (wxAnimationType)wxlua_getenumtype(L, 3) : wxANIMATION_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call Load - bool returns = (self->Load(*stream, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_LoadFile[] = { &wxluatype_wxAnimation, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnimation_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_LoadFile[1] = {{ wxLua_wxAnimation_LoadFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnimation_LoadFile }}; -// virtual bool LoadFile(const wxString& name, wxAnimationType type = wxANIMATION_TYPE_ANY); -static int LUACALL wxLua_wxAnimation_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxAnimationType type = wxANIMATION_TYPE_ANY - wxAnimationType type = (argCount >= 3 ? (wxAnimationType)wxlua_getenumtype(L, 3) : wxANIMATION_TYPE_ANY); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAnimation * self = (wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call LoadFile - bool returns = (self->LoadFile(name, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_delete[] = { &wxluatype_wxAnimation, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAnimation_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimation_constructor1[] = { &wxluatype_wxAnimation, NULL }; -static int LUACALL wxLua_wxAnimation_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_constructor1[1] = {{ wxLua_wxAnimation_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAnimation_constructor1 }}; -// wxAnimation(const wxAnimation& anim); -static int LUACALL wxLua_wxAnimation_constructor1(lua_State *L) -{ - // const wxAnimation anim - const wxAnimation * anim = (const wxAnimation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimation); - // call constructor - wxAnimation* returns = new wxAnimation(*anim); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAnimation); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAnimation); - - return 1; -} - -static int LUACALL wxLua_wxAnimation_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_constructor[1] = {{ wxLua_wxAnimation_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAnimation(); -static int LUACALL wxLua_wxAnimation_constructor(lua_State *L) -{ - // call constructor - wxAnimation* returns = new wxAnimation(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAnimation); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAnimation); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimation_constructor_overload[] = -{ - { wxLua_wxAnimation_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAnimation_constructor1 }, - { wxLua_wxAnimation_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAnimation_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAnimation_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - -void wxLua_wxAnimation_delete_function(void** p) -{ - wxAnimation* o = (wxAnimation*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAnimation_methods[] = { - { "GetDelay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_GetDelay, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "GetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_GetFrame, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetFrameCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_GetFrameCount, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_GetSize, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_IsOk, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxUSE_STREAMS) - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_Load, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxUSE_STREAMS) - - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimation_LoadFile, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAnimation_delete, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - { "wxAnimation", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAnimation_constructor_overload, s_wxluafunc_wxLua_wxAnimation_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxAnimation_methodCount = sizeof(wxAnimation_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL -// --------------------------------------------------------------------------- -// Bind class wxAnimationCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAnimationCtrl' -int wxluatype_wxAnimationCtrl = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_Create[] = { &wxluatype_wxAnimationCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxAnimation, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_Create[1] = {{ wxLua_wxAnimationCtrl_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxAnimationCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxAnimation& anim, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxAC_DEFAULT_STYLE, const wxString& name = "wxAnimationCtrl"); -static int LUACALL wxLua_wxAnimationCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxAnimationCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxAnimationCtrl"))); - // long style = wxAC_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxAC_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxAnimation anim - const wxAnimation * anim = (const wxAnimation *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAnimation); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call Create - bool returns = (self->Create(parent, id, *anim, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_GetAnimation[] = { &wxluatype_wxAnimationCtrl, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_GetAnimation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_GetAnimation[1] = {{ wxLua_wxAnimationCtrl_GetAnimation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimationCtrl_GetAnimation }}; -// wxAnimation GetAnimation() const; -static int LUACALL wxLua_wxAnimationCtrl_GetAnimation(lua_State *L) -{ - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call GetAnimation - // allocate a new object using the copy constructor - wxAnimation* returns = new wxAnimation(self->GetAnimation()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAnimation); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAnimation); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_GetInactiveBitmap[] = { &wxluatype_wxAnimationCtrl, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_GetInactiveBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_GetInactiveBitmap[1] = {{ wxLua_wxAnimationCtrl_GetInactiveBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimationCtrl_GetInactiveBitmap }}; -// wxBitmap GetInactiveBitmap() const; -static int LUACALL wxLua_wxAnimationCtrl_GetInactiveBitmap(lua_State *L) -{ - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call GetInactiveBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetInactiveBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_IsPlaying[] = { &wxluatype_wxAnimationCtrl, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_IsPlaying(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_IsPlaying[1] = {{ wxLua_wxAnimationCtrl_IsPlaying, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimationCtrl_IsPlaying }}; -// virtual bool IsPlaying() const; -static int LUACALL wxLua_wxAnimationCtrl_IsPlaying(lua_State *L) -{ - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call IsPlaying - bool returns = (self->IsPlaying()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_LoadFile1[] = { &wxluatype_wxAnimationCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_LoadFile1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile1[1] = {{ wxLua_wxAnimationCtrl_LoadFile1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnimationCtrl_LoadFile1 }}; -// bool LoadFile(const wxString& file, wxAnimationType animType = wxANIMATION_TYPE_ANY); -static int LUACALL wxLua_wxAnimationCtrl_LoadFile1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxAnimationType animType = wxANIMATION_TYPE_ANY - wxAnimationType animType = (argCount >= 3 ? (wxAnimationType)wxlua_getenumtype(L, 3) : wxANIMATION_TYPE_ANY); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call LoadFile - bool returns = (self->LoadFile(file, animType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_LoadFile[] = { &wxluatype_wxAnimationCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_LoadFile(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile[1] = {{ wxLua_wxAnimationCtrl_LoadFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnimationCtrl_LoadFile }}; -// virtual bool LoadFile(const wxString& filename, wxAnimationType type = wxANIMATION_TYPE_ANY); -static int LUACALL wxLua_wxAnimationCtrl_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxAnimationType type = wxANIMATION_TYPE_ANY - wxAnimationType type = (argCount >= 3 ? (wxAnimationType)wxlua_getenumtype(L, 3) : wxANIMATION_TYPE_ANY); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call LoadFile - bool returns = (self->LoadFile(filename, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_Play[] = { &wxluatype_wxAnimationCtrl, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_Play(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_Play[1] = {{ wxLua_wxAnimationCtrl_Play, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimationCtrl_Play }}; -// virtual bool Play(); -static int LUACALL wxLua_wxAnimationCtrl_Play(lua_State *L) -{ - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call Play - bool returns = (self->Play()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_SetAnimation[] = { &wxluatype_wxAnimationCtrl, &wxluatype_wxAnimation, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_SetAnimation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_SetAnimation[1] = {{ wxLua_wxAnimationCtrl_SetAnimation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnimationCtrl_SetAnimation }}; -// virtual void SetAnimation(const wxAnimation &anim); -static int LUACALL wxLua_wxAnimationCtrl_SetAnimation(lua_State *L) -{ - // const wxAnimation anim - const wxAnimation * anim = (const wxAnimation *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAnimation); - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call SetAnimation - self->SetAnimation(*anim); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_SetInactiveBitmap[] = { &wxluatype_wxAnimationCtrl, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_SetInactiveBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_SetInactiveBitmap[1] = {{ wxLua_wxAnimationCtrl_SetInactiveBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnimationCtrl_SetInactiveBitmap }}; -// virtual void SetInactiveBitmap(const wxBitmap &bmp); -static int LUACALL wxLua_wxAnimationCtrl_SetInactiveBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call SetInactiveBitmap - self->SetInactiveBitmap(*bmp); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_Stop[] = { &wxluatype_wxAnimationCtrl, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_Stop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_Stop[1] = {{ wxLua_wxAnimationCtrl_Stop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnimationCtrl_Stop }}; -// virtual void Stop(); -static int LUACALL wxLua_wxAnimationCtrl_Stop(lua_State *L) -{ - // get this - wxAnimationCtrl * self = (wxAnimationCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnimationCtrl); - // call Stop - self->Stop(); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnimationCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxAnimation, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAnimationCtrl_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_constructor1[1] = {{ wxLua_wxAnimationCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxAnimationCtrl_constructor1 }}; -// wxAnimationCtrl(wxWindow *parent, wxWindowID id, const wxAnimation& anim, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxAC_DEFAULT_STYLE, const wxString& name = "wxAnimationCtrl"); -static int LUACALL wxLua_wxAnimationCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxAnimationCtrl" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxAnimationCtrl"))); - // long style = wxAC_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxAC_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxAnimation anim - const wxAnimation * anim = (const wxAnimation *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAnimation); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAnimationCtrl* returns = new wxAnimationCtrl(parent, id, *anim, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAnimationCtrl); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxAnimationCtrl_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_constructor[1] = {{ wxLua_wxAnimationCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAnimationCtrl(); -static int LUACALL wxLua_wxAnimationCtrl_constructor(lua_State *L) -{ - // call constructor - wxAnimationCtrl* returns = new wxAnimationCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAnimationCtrl); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile_overload[] = -{ - { wxLua_wxAnimationCtrl_LoadFile1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnimationCtrl_LoadFile1 }, - { wxLua_wxAnimationCtrl_LoadFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnimationCtrl_LoadFile }, -}; -static int s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile_overload_count = sizeof(s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnimationCtrl_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAnimationCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxAnimationCtrl_constructor1 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAnimationCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAnimationCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAnimationCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - -void wxLua_wxAnimationCtrl_delete_function(void** p) -{ - wxAnimationCtrl* o = (wxAnimationCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAnimationCtrl_methods[] = { -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_Create, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect) - - { "GetAnimation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_GetAnimation, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) - { "GetInactiveBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_GetInactiveBitmap, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) - - { "IsPlaying", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_IsPlaying, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile_overload, s_wxluafunc_wxLua_wxAnimationCtrl_LoadFile_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - - { "Play", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_Play, 1, NULL }, - { "SetAnimation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_SetAnimation, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) - { "SetInactiveBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_SetInactiveBitmap, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxBitmap) - - { "Stop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnimationCtrl_Stop, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - { "wxAnimationCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAnimationCtrl_constructor_overload, s_wxluafunc_wxLua_wxAnimationCtrl_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxAnimationCtrl_methodCount = sizeof(wxAnimationCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - - -#if wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX -// --------------------------------------------------------------------------- -// Bind class wxBitmapComboBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBitmapComboBox' -int wxluatype_wxBitmapComboBox = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Append2[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Append2(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Append2[1] = {{ wxLua_wxBitmapComboBox_Append2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmapComboBox_Append2 }}; -// int Append(const wxString& item, const wxBitmap& bitmap, wxClientData *clientData); -static int LUACALL wxLua_wxBitmapComboBox_Append2(lua_State *L) -{ - // wxClientData clientData - wxClientData * clientData = (wxClientData *)wxluaT_getuserdatatype(L, 4, wxluatype_wxClientData); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Append - int returns = (self->Append(item, *bitmap, clientData)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Append1[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Append1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Append1[1] = {{ wxLua_wxBitmapComboBox_Append1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmapComboBox_Append1 }}; -// int Append(const wxString& item, const wxBitmap& bitmap, voidptr_long data); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxBitmapComboBox_Append1(lua_State *L) -{ - // voidptr_long data - wxUIntPtr data = (wxUIntPtr)wxlua_getnumbertype(L, 4); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Append - int returns = (self->Append(item, *bitmap, (void*)data)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Append[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Append(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Append[1] = {{ wxLua_wxBitmapComboBox_Append, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_Append }}; -// int Append(const wxString& item, const wxBitmap& bitmap = wxNullBitmap); -static int LUACALL wxLua_wxBitmapComboBox_Append(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 3 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Append - int returns = (self->Append(item, *bitmap)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Clear[] = { &wxluatype_wxBitmapComboBox, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Clear[1] = {{ wxLua_wxBitmapComboBox_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapComboBox_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxBitmapComboBox_Clear(lua_State *L) -{ - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Clear - self->Clear(); - - return 0; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Create[] = { &wxluatype_wxBitmapComboBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Create[1] = {{ wxLua_wxBitmapComboBox_Create, WXLUAMETHOD_METHOD, 4, 10, s_wxluatypeArray_wxLua_wxBitmapComboBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxBitmapComboBox"); -static int LUACALL wxLua_wxBitmapComboBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxBitmapComboBox" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxBitmapComboBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 7 ? wxlua_getwxArrayString(L, 7) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, choices, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Delete[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Delete[1] = {{ wxLua_wxBitmapComboBox_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_Delete }}; -// void Delete(unsigned int n); -static int LUACALL wxLua_wxBitmapComboBox_Delete(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Delete - self->Delete(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_FindString[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_FindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_FindString[1] = {{ wxLua_wxBitmapComboBox_FindString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_FindString }}; -// int FindString(const wxString& s, bool bCase = false) const; -static int LUACALL wxLua_wxBitmapComboBox_FindString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bCase = false - bool bCase = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call FindString - int returns = (self->FindString(s, bCase)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_GetBitmapSize[] = { &wxluatype_wxBitmapComboBox, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_GetBitmapSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_GetBitmapSize[1] = {{ wxLua_wxBitmapComboBox_GetBitmapSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapComboBox_GetBitmapSize }}; -// wxSize GetBitmapSize() const; -static int LUACALL wxLua_wxBitmapComboBox_GetBitmapSize(lua_State *L) -{ - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call GetBitmapSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBitmapSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_GetCount[] = { &wxluatype_wxBitmapComboBox, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_GetCount[1] = {{ wxLua_wxBitmapComboBox_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapComboBox_GetCount }}; -// unsigned int GetCount() const; -static int LUACALL wxLua_wxBitmapComboBox_GetCount(lua_State *L) -{ - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_GetItemBitmap[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_GetItemBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_GetItemBitmap[1] = {{ wxLua_wxBitmapComboBox_GetItemBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_GetItemBitmap }}; -// wxBitmap GetItemBitmap(unsigned int n) const; -static int LUACALL wxLua_wxBitmapComboBox_GetItemBitmap(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call GetItemBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetItemBitmap(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_GetSelection[] = { &wxluatype_wxBitmapComboBox, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_GetSelection[1] = {{ wxLua_wxBitmapComboBox_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapComboBox_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxBitmapComboBox_GetSelection(lua_State *L) -{ - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_GetString[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_GetString[1] = {{ wxLua_wxBitmapComboBox_GetString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_GetString }}; -// wxString GetString(unsigned int n) const; -static int LUACALL wxLua_wxBitmapComboBox_GetString(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call GetString - wxString returns = (self->GetString(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert2[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Insert2(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Insert2[1] = {{ wxLua_wxBitmapComboBox_Insert2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert2 }}; -// int Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos, wxClientData *clientData); -static int LUACALL wxLua_wxBitmapComboBox_Insert2(lua_State *L) -{ - // wxClientData clientData - wxClientData * clientData = (wxClientData *)wxluaT_getuserdatatype(L, 5, wxluatype_wxClientData); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 4); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Insert - int returns = (self->Insert(item, *bitmap, pos, clientData)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -#if ((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert1[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Insert1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Insert1[1] = {{ wxLua_wxBitmapComboBox_Insert1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert1 }}; -// int Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos, voidptr_long data); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxBitmapComboBox_Insert1(lua_State *L) -{ - // voidptr_long data - wxUIntPtr data = (wxUIntPtr)wxlua_getnumbertype(L, 5); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 4); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Insert - int returns = (self->Insert(item, *bitmap, pos, (void*)data)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Insert(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Insert[1] = {{ wxLua_wxBitmapComboBox_Insert, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert }}; -// int Insert(const wxString& item, const wxBitmap& bitmap, unsigned int pos); -static int LUACALL wxLua_wxBitmapComboBox_Insert(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 4); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Insert - int returns = (self->Insert(item, *bitmap, pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_Select[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_Select(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Select[1] = {{ wxLua_wxBitmapComboBox_Select, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_Select }}; -// void Select(int n); -static int LUACALL wxLua_wxBitmapComboBox_Select(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call Select - self->Select(n); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_SetItemBitmap[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TINTEGER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_SetItemBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetItemBitmap[1] = {{ wxLua_wxBitmapComboBox_SetItemBitmap, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetItemBitmap }}; -// void SetItemBitmap(unsigned int n, const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmapComboBox_SetItemBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call SetItemBitmap - self->SetItemBitmap(n, *bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_SetSelection[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetSelection[1] = {{ wxLua_wxBitmapComboBox_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetSelection }}; -// void SetSelection(int n); -static int LUACALL wxLua_wxBitmapComboBox_SetSelection(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call SetSelection - self->SetSelection(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_SetString1[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_SetString1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetString1[1] = {{ wxLua_wxBitmapComboBox_SetString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetString1 }}; -// void SetString(unsigned int n, const wxString& s); -static int LUACALL wxLua_wxBitmapComboBox_SetString1(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 3); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call SetString - self->SetString(n, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_SetString[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_SetString(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetString[1] = {{ wxLua_wxBitmapComboBox_SetString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetString }}; -// void SetString(unsigned int n, const wxString& s); -static int LUACALL wxLua_wxBitmapComboBox_SetString(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 3); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call SetString - self->SetString(n, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_SetStringSelection[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_SetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetStringSelection[1] = {{ wxLua_wxBitmapComboBox_SetStringSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetStringSelection }}; -// bool SetStringSelection(const wxString& s); -static int LUACALL wxLua_wxBitmapComboBox_SetStringSelection(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call SetStringSelection - bool returns = (self->SetStringSelection(s)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_SetValue[] = { &wxluatype_wxBitmapComboBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetValue[1] = {{ wxLua_wxBitmapComboBox_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetValue }}; -// void SetValue(const wxString& value); -static int LUACALL wxLua_wxBitmapComboBox_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxBitmapComboBox * self = (wxBitmapComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapComboBox); - // call SetValue - self->SetValue(value); - - return 0; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapComboBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapComboBox_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_constructor1[1] = {{ wxLua_wxBitmapComboBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 9, s_wxluatypeArray_wxLua_wxBitmapComboBox_constructor1 }}; -// wxBitmapComboBox(wxWindow* parent, wxWindowID id, const wxString& value, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxBitmapComboBox"); -static int LUACALL wxLua_wxBitmapComboBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxBitmapComboBox" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxBitmapComboBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 6 ? wxlua_getwxArrayString(L, 6) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxBitmapComboBox* returns = new wxBitmapComboBox(parent, id, value, *pos, *size, choices, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapComboBox); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxBitmapComboBox_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_constructor[1] = {{ wxLua_wxBitmapComboBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxBitmapComboBox(); -static int LUACALL wxLua_wxBitmapComboBox_constructor(lua_State *L) -{ - // call constructor - wxBitmapComboBox* returns = new wxBitmapComboBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapComboBox); - - return 1; -} - - - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Append_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { wxLua_wxBitmapComboBox_Append2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmapComboBox_Append2 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { wxLua_wxBitmapComboBox_Append1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmapComboBox_Append1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { wxLua_wxBitmapComboBox_Append, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_Append }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -}; -static int s_wxluafunc_wxLua_wxBitmapComboBox_Append_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmapComboBox_Append_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX))||(((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_Insert_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { wxLua_wxBitmapComboBox_Insert2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert2 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -#if ((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap) - { wxLua_wxBitmapComboBox_Insert1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert1 }, -#endif // ((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { wxLua_wxBitmapComboBox_Insert, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmapComboBox_Insert }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -}; -static int s_wxluafunc_wxLua_wxBitmapComboBox_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmapComboBox_Insert_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX))||(((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap)) - -#if (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_SetString_overload[] = -{ - { wxLua_wxBitmapComboBox_SetString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetString1 }, - { wxLua_wxBitmapComboBox_SetString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBitmapComboBox_SetString }, -}; -static int s_wxluafunc_wxLua_wxBitmapComboBox_SetString_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmapComboBox_SetString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapComboBox_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxBitmapComboBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 9, s_wxluatypeArray_wxLua_wxBitmapComboBox_constructor1 }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxBitmapComboBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxBitmapComboBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmapComboBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - -void wxLua_wxBitmapComboBox_delete_function(void** p) -{ - wxBitmapComboBox* o = (wxBitmapComboBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBitmapComboBox_methods[] = { -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_Append_overload, s_wxluafunc_wxLua_wxBitmapComboBox_Append_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_Clear, 1, NULL }, - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_Create, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_Delete, 1, NULL }, - { "FindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_FindString, 1, NULL }, - -#if (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) && (wxLUA_USE_wxPointSizeRect) - { "GetBitmapSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_GetBitmapSize, 1, NULL }, -#endif // (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) && (wxLUA_USE_wxPointSizeRect) - - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { "GetItemBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_GetItemBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_GetSelection, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_GetString, 1, NULL }, - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX))||(((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap)) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_Insert_overload, s_wxluafunc_wxLua_wxBitmapComboBox_Insert_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX))||(((!wxCHECK_VERSION(2,9,0) || wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxBitmap)) - - { "Select", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_Select, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { "SetItemBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_SetItemBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_SetSelection, 1, NULL }, - -#if (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { "SetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_SetString_overload, s_wxluafunc_wxLua_wxBitmapComboBox_SetString_overload_count, 0 }, -#endif // (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - - { "SetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_SetStringSelection, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapComboBox_SetValue, 1, NULL }, - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - { "wxBitmapComboBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBitmapComboBox_constructor_overload, s_wxluafunc_wxLua_wxBitmapComboBox_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) - - { 0, 0, 0, 0 }, -}; - -int wxBitmapComboBox_methodCount = sizeof(wxBitmapComboBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL -// --------------------------------------------------------------------------- -// Bind class wxCalendarCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCalendarCtrl' -int wxluatype_wxCalendarCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_EnableHolidayDisplay[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_EnableHolidayDisplay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_EnableHolidayDisplay[1] = {{ wxLua_wxCalendarCtrl_EnableHolidayDisplay, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_EnableHolidayDisplay }}; -// void EnableHolidayDisplay(bool display = true); -static int LUACALL wxLua_wxCalendarCtrl_EnableHolidayDisplay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool display = true - bool display = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call EnableHolidayDisplay - self->EnableHolidayDisplay(display); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_EnableMonthChange[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_EnableMonthChange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_EnableMonthChange[1] = {{ wxLua_wxCalendarCtrl_EnableMonthChange, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_EnableMonthChange }}; -// void EnableMonthChange(bool enable = true); -static int LUACALL wxLua_wxCalendarCtrl_EnableMonthChange(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call EnableMonthChange - self->EnableMonthChange(enable); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_EnableYearChange[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_EnableYearChange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_EnableYearChange[1] = {{ wxLua_wxCalendarCtrl_EnableYearChange, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_EnableYearChange }}; -// void EnableYearChange(bool enable = true); -static int LUACALL wxLua_wxCalendarCtrl_EnableYearChange(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call EnableYearChange - self->EnableYearChange(enable); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetAttr[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetAttr[1] = {{ wxLua_wxCalendarCtrl_GetAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetAttr }}; -// wxCalendarDateAttr* GetAttr(size_t day) const; -static int LUACALL wxLua_wxCalendarCtrl_GetAttr(lua_State *L) -{ - // size_t day - size_t day = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetAttr - wxCalendarDateAttr* returns = (wxCalendarDateAttr*)self->GetAttr(day); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarDateAttr); - - return 1; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetDate[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetDate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetDate[1] = {{ wxLua_wxCalendarCtrl_GetDate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetDate }}; -// wxDateTime GetDate() const; -static int LUACALL wxLua_wxCalendarCtrl_GetDate(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetDate - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetDate()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHeaderColourBg[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetHeaderColourBg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetHeaderColourBg[1] = {{ wxLua_wxCalendarCtrl_GetHeaderColourBg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHeaderColourBg }}; -// wxColour GetHeaderColourBg() const; -static int LUACALL wxLua_wxCalendarCtrl_GetHeaderColourBg(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetHeaderColourBg - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHeaderColourBg()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHeaderColourFg[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetHeaderColourFg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetHeaderColourFg[1] = {{ wxLua_wxCalendarCtrl_GetHeaderColourFg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHeaderColourFg }}; -// wxColour GetHeaderColourFg() const; -static int LUACALL wxLua_wxCalendarCtrl_GetHeaderColourFg(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetHeaderColourFg - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHeaderColourFg()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHighlightColourBg[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetHighlightColourBg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetHighlightColourBg[1] = {{ wxLua_wxCalendarCtrl_GetHighlightColourBg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHighlightColourBg }}; -// wxColour GetHighlightColourBg() const; -static int LUACALL wxLua_wxCalendarCtrl_GetHighlightColourBg(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetHighlightColourBg - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHighlightColourBg()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHighlightColourFg[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetHighlightColourFg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetHighlightColourFg[1] = {{ wxLua_wxCalendarCtrl_GetHighlightColourFg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHighlightColourFg }}; -// wxColour GetHighlightColourFg() const; -static int LUACALL wxLua_wxCalendarCtrl_GetHighlightColourFg(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetHighlightColourFg - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHighlightColourFg()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHolidayColourBg[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetHolidayColourBg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetHolidayColourBg[1] = {{ wxLua_wxCalendarCtrl_GetHolidayColourBg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHolidayColourBg }}; -// wxColour GetHolidayColourBg() const; -static int LUACALL wxLua_wxCalendarCtrl_GetHolidayColourBg(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetHolidayColourBg - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHolidayColourBg()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHolidayColourFg[] = { &wxluatype_wxCalendarCtrl, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_GetHolidayColourFg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_GetHolidayColourFg[1] = {{ wxLua_wxCalendarCtrl_GetHolidayColourFg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarCtrl_GetHolidayColourFg }}; -// wxColour GetHolidayColourFg() const; -static int LUACALL wxLua_wxCalendarCtrl_GetHolidayColourFg(lua_State *L) -{ - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call GetHolidayColourFg - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHolidayColourFg()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_HitTest[] = { &wxluatype_wxCalendarCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_HitTest[1] = {{ wxLua_wxCalendarCtrl_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_HitTest }}; -// %override wxLua_wxCalendarCtrl_HitTest -// wxCalendarHitTestResult HitTest(const wxPoint& pos) //, wxDateTime* date = NULL, wxDateTime::WeekDay* wd = NULL) -static int LUACALL wxLua_wxCalendarCtrl_HitTest(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call HitTest - wxDateTime* date = new wxDateTime(); - wxDateTime::WeekDay wd = wxDateTime::Inv_WeekDay; - - wxCalendarHitTestResult returns = self->HitTest(*pos, date, &wd); - // push the result number - lua_pushinteger(L, returns); - wxluaT_pushuserdatatype(L, date, wxluatype_wxDateTime); - lua_pushinteger(L, wd); - - return 3; -} - - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_ResetAttr[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_ResetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_ResetAttr[1] = {{ wxLua_wxCalendarCtrl_ResetAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_ResetAttr }}; -// void ResetAttr(size_t day); -static int LUACALL wxLua_wxCalendarCtrl_ResetAttr(lua_State *L) -{ - // size_t day - size_t day = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call ResetAttr - self->ResetAttr(day); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_SetAttr[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TINTEGER, &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_SetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_SetAttr[1] = {{ wxLua_wxCalendarCtrl_SetAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCalendarCtrl_SetAttr }}; -// void SetAttr(size_t day, %ungc wxCalendarDateAttr* attr); // will delete previously set attr as well -static int LUACALL wxLua_wxCalendarCtrl_SetAttr(lua_State *L) -{ - // wxCalendarDateAttr attr - wxCalendarDateAttr * attr = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxCalendarDateAttr); - // size_t day - size_t day = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, attr)) wxluaO_undeletegcobject(L, attr); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call SetAttr - self->SetAttr(day, attr); - - return 0; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_SetDate[] = { &wxluatype_wxCalendarCtrl, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_SetDate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_SetDate[1] = {{ wxLua_wxCalendarCtrl_SetDate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_SetDate }}; -// void SetDate(const wxDateTime& date); -static int LUACALL wxLua_wxCalendarCtrl_SetDate(lua_State *L) -{ - // const wxDateTime date - const wxDateTime * date = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call SetDate - self->SetDate(*date); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHeaderColours[] = { &wxluatype_wxCalendarCtrl, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_SetHeaderColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_SetHeaderColours[1] = {{ wxLua_wxCalendarCtrl_SetHeaderColours, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHeaderColours }}; -// void SetHeaderColours(const wxColour& colFg, const wxColour& colBg); -static int LUACALL wxLua_wxCalendarCtrl_SetHeaderColours(lua_State *L) -{ - // const wxColour colBg - const wxColour * colBg = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxColour colFg - const wxColour * colFg = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call SetHeaderColours - self->SetHeaderColours(*colFg, *colBg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHighlightColours[] = { &wxluatype_wxCalendarCtrl, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_SetHighlightColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_SetHighlightColours[1] = {{ wxLua_wxCalendarCtrl_SetHighlightColours, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHighlightColours }}; -// void SetHighlightColours(const wxColour& colFg, const wxColour& colBg); -static int LUACALL wxLua_wxCalendarCtrl_SetHighlightColours(lua_State *L) -{ - // const wxColour colBg - const wxColour * colBg = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxColour colFg - const wxColour * colFg = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call SetHighlightColours - self->SetHighlightColours(*colFg, *colBg); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHoliday[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_SetHoliday(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_SetHoliday[1] = {{ wxLua_wxCalendarCtrl_SetHoliday, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHoliday }}; -// void SetHoliday(size_t day); -static int LUACALL wxLua_wxCalendarCtrl_SetHoliday(lua_State *L) -{ - // size_t day - size_t day = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call SetHoliday - self->SetHoliday(day); - - return 0; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHolidayColours[] = { &wxluatype_wxCalendarCtrl, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_SetHolidayColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_SetHolidayColours[1] = {{ wxLua_wxCalendarCtrl_SetHolidayColours, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCalendarCtrl_SetHolidayColours }}; -// void SetHolidayColours(const wxColour& colFg, const wxColour& colBg); -static int LUACALL wxLua_wxCalendarCtrl_SetHolidayColours(lua_State *L) -{ - // const wxColour colBg - const wxColour * colBg = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxColour colFg - const wxColour * colFg = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxCalendarCtrl * self = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call SetHolidayColours - self->SetHolidayColours(*colFg, *colBg); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarCtrl_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxDateTime, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCalendarCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarCtrl_constructor[1] = {{ wxLua_wxCalendarCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxCalendarCtrl_constructor }}; -// wxCalendarCtrl(wxWindow* parent, wxWindowID id, const wxDateTime& date = wxDefaultDateTime, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAL_SHOW_HOLIDAYS, const wxString& name = "wxCalendarCtrl"); -static int LUACALL wxLua_wxCalendarCtrl_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCalendarCtrl" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxCalendarCtrl"))); - // long style = wxCAL_SHOW_HOLIDAYS - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxCAL_SHOW_HOLIDAYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxDateTime date = wxDefaultDateTime - const wxDateTime * date = (argCount >= 3 ? (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime) : &wxDefaultDateTime); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCalendarCtrl* returns = new wxCalendarCtrl(parent, id, *date, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxCalendarCtrl_delete_function(void** p) -{ - wxCalendarCtrl* o = (wxCalendarCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCalendarCtrl_methods[] = { - { "EnableHolidayDisplay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_EnableHolidayDisplay, 1, NULL }, - { "EnableMonthChange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_EnableMonthChange, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - { "EnableYearChange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_EnableYearChange, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - - { "GetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetAttr, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetDate, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "GetHeaderColourBg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetHeaderColourBg, 1, NULL }, - { "GetHeaderColourFg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetHeaderColourFg, 1, NULL }, - { "GetHighlightColourBg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetHighlightColourBg, 1, NULL }, - { "GetHighlightColourFg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetHighlightColourFg, 1, NULL }, - { "GetHolidayColourBg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetHolidayColourBg, 1, NULL }, - { "GetHolidayColourFg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_GetHolidayColourFg, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxPointSizeRect) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_HitTest, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxPointSizeRect) - - { "ResetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_ResetAttr, 1, NULL }, - { "SetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_SetAttr, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "SetDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_SetDate, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "SetHeaderColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_SetHeaderColours, 1, NULL }, - { "SetHighlightColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_SetHighlightColours, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - - { "SetHoliday", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_SetHoliday, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "SetHolidayColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarCtrl_SetHolidayColours, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect) - { "wxCalendarCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCalendarCtrl_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxCalendarCtrl_methodCount = sizeof(wxCalendarCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL -// --------------------------------------------------------------------------- -// Bind class wxCalendarDateAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCalendarDateAttr' -int wxluatype_wxCalendarDateAttr = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetBackgroundColour[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_GetBackgroundColour[1] = {{ wxLua_wxCalendarDateAttr_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetBackgroundColour }}; -// wxColour GetBackgroundColour(); -static int LUACALL wxLua_wxCalendarDateAttr_GetBackgroundColour(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetBorder[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_GetBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_GetBorder[1] = {{ wxLua_wxCalendarDateAttr_GetBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetBorder }}; -// wxCalendarDateBorder GetBorder(); -static int LUACALL wxLua_wxCalendarDateAttr_GetBorder(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call GetBorder - wxCalendarDateBorder returns = (self->GetBorder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetBorderColour[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_GetBorderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_GetBorderColour[1] = {{ wxLua_wxCalendarDateAttr_GetBorderColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetBorderColour }}; -// wxColour GetBorderColour() const; -static int LUACALL wxLua_wxCalendarDateAttr_GetBorderColour(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call GetBorderColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBorderColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetFont[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_GetFont[1] = {{ wxLua_wxCalendarDateAttr_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetFont }}; -// wxFont GetFont() const; -static int LUACALL wxLua_wxCalendarDateAttr_GetFont(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetTextColour[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_GetTextColour[1] = {{ wxLua_wxCalendarDateAttr_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_GetTextColour }}; -// wxColour GetTextColour() const; -static int LUACALL wxLua_wxCalendarDateAttr_GetTextColour(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call GetTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasBackgroundColour[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_HasBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_HasBackgroundColour[1] = {{ wxLua_wxCalendarDateAttr_HasBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasBackgroundColour }}; -// bool HasBackgroundColour() const; -static int LUACALL wxLua_wxCalendarDateAttr_HasBackgroundColour(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call HasBackgroundColour - bool returns = (self->HasBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasBorder[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_HasBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_HasBorder[1] = {{ wxLua_wxCalendarDateAttr_HasBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasBorder }}; -// bool HasBorder() const; -static int LUACALL wxLua_wxCalendarDateAttr_HasBorder(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call HasBorder - bool returns = (self->HasBorder()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasBorderColour[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_HasBorderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_HasBorderColour[1] = {{ wxLua_wxCalendarDateAttr_HasBorderColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasBorderColour }}; -// bool HasBorderColour() const; -static int LUACALL wxLua_wxCalendarDateAttr_HasBorderColour(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call HasBorderColour - bool returns = (self->HasBorderColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasFont[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_HasFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_HasFont[1] = {{ wxLua_wxCalendarDateAttr_HasFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasFont }}; -// bool HasFont() const; -static int LUACALL wxLua_wxCalendarDateAttr_HasFont(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call HasFont - bool returns = (self->HasFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasTextColour[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_HasTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_HasTextColour[1] = {{ wxLua_wxCalendarDateAttr_HasTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_HasTextColour }}; -// bool HasTextColour() const; -static int LUACALL wxLua_wxCalendarDateAttr_HasTextColour(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call HasTextColour - bool returns = (self->HasTextColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_IsHoliday[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_IsHoliday(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_IsHoliday[1] = {{ wxLua_wxCalendarDateAttr_IsHoliday, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_IsHoliday }}; -// bool IsHoliday() const; -static int LUACALL wxLua_wxCalendarDateAttr_IsHoliday(lua_State *L) -{ - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call IsHoliday - bool returns = (self->IsHoliday()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetBackgroundColour[] = { &wxluatype_wxCalendarDateAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_SetBackgroundColour[1] = {{ wxLua_wxCalendarDateAttr_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colBack); -static int LUACALL wxLua_wxCalendarDateAttr_SetBackgroundColour(lua_State *L) -{ - // const wxColour colBack - const wxColour * colBack = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call SetBackgroundColour - self->SetBackgroundColour(*colBack); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetBorder[] = { &wxluatype_wxCalendarDateAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_SetBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_SetBorder[1] = {{ wxLua_wxCalendarDateAttr_SetBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetBorder }}; -// void SetBorder(wxCalendarDateBorder border); -static int LUACALL wxLua_wxCalendarDateAttr_SetBorder(lua_State *L) -{ - // wxCalendarDateBorder border - wxCalendarDateBorder border = (wxCalendarDateBorder)wxlua_getenumtype(L, 2); - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call SetBorder - self->SetBorder(border); - - return 0; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetBorderColour[] = { &wxluatype_wxCalendarDateAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_SetBorderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_SetBorderColour[1] = {{ wxLua_wxCalendarDateAttr_SetBorderColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetBorderColour }}; -// void SetBorderColour(const wxColour& col); -static int LUACALL wxLua_wxCalendarDateAttr_SetBorderColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call SetBorderColour - self->SetBorderColour(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetFont[] = { &wxluatype_wxCalendarDateAttr, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_SetFont[1] = {{ wxLua_wxCalendarDateAttr_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxCalendarDateAttr_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetHoliday[] = { &wxluatype_wxCalendarDateAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_SetHoliday(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_SetHoliday[1] = {{ wxLua_wxCalendarDateAttr_SetHoliday, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetHoliday }}; -// void SetHoliday(bool holiday); -static int LUACALL wxLua_wxCalendarDateAttr_SetHoliday(lua_State *L) -{ - // bool holiday - bool holiday = wxlua_getbooleantype(L, 2); - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call SetHoliday - self->SetHoliday(holiday); - - return 0; -} - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetTextColour[] = { &wxluatype_wxCalendarDateAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_SetTextColour[1] = {{ wxLua_wxCalendarDateAttr_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_SetTextColour }}; -// void SetTextColour(const wxColour& colText); -static int LUACALL wxLua_wxCalendarDateAttr_SetTextColour(lua_State *L) -{ - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxCalendarDateAttr * self = (wxCalendarDateAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarDateAttr); - // call SetTextColour - self->SetTextColour(*colText); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_delete[] = { &wxluatype_wxCalendarDateAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCalendarDateAttr_delete }}; - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_constructor2[] = { &wxluatype_TINTEGER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_constructor2(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_constructor2[1] = {{ wxLua_wxCalendarDateAttr_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_constructor2 }}; -// wxCalendarDateAttr(wxCalendarDateBorder border, const wxColour& colBorder = wxNullColour); -static int LUACALL wxLua_wxCalendarDateAttr_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour colBorder = wxNullColour - const wxColour * colBorder = (argCount >= 2 ? (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour) : &wxNullColour); - // wxCalendarDateBorder border - wxCalendarDateBorder border = (wxCalendarDateBorder)wxlua_getenumtype(L, 1); - // call constructor - wxCalendarDateAttr* returns = new wxCalendarDateAttr(border, *colBorder); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalendarDateAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarDateAttr); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarDateAttr_constructor1[] = { &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCalendarDateAttr_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_constructor1[1] = {{ wxLua_wxCalendarDateAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxCalendarDateAttr_constructor1 }}; -// wxCalendarDateAttr(const wxColour& colText, const wxColour& colBack = wxNullColour, const wxColour& colBorder = wxNullColour, const wxFont& font = wxNullFont, wxCalendarDateBorder border = wxCAL_BORDER_NONE); -static int LUACALL wxLua_wxCalendarDateAttr_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCalendarDateBorder border = wxCAL_BORDER_NONE - wxCalendarDateBorder border = (argCount >= 5 ? (wxCalendarDateBorder)wxlua_getenumtype(L, 5) : wxCAL_BORDER_NONE); - // const wxFont font = wxNullFont - const wxFont * font = (argCount >= 4 ? (const wxFont *)wxluaT_getuserdatatype(L, 4, wxluatype_wxFont) : &wxNullFont); - // const wxColour colBorder = wxNullColour - const wxColour * colBorder = (argCount >= 3 ? (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour) : &wxNullColour); - // const wxColour colBack = wxNullColour - const wxColour * colBack = (argCount >= 2 ? (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour) : &wxNullColour); - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxCalendarDateAttr* returns = new wxCalendarDateAttr(*colText, *colBack, *colBorder, *font, border); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalendarDateAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarDateAttr); - - return 1; -} - -#endif // ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) - -static int LUACALL wxLua_wxCalendarDateAttr_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_constructor[1] = {{ wxLua_wxCalendarDateAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCalendarDateAttr(); -static int LUACALL wxLua_wxCalendarDateAttr_constructor(lua_State *L) -{ - // call constructor - wxCalendarDateAttr* returns = new wxCalendarDateAttr(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalendarDateAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarDateAttr); - - return 1; -} - - - - -#if ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush))||(((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarDateAttr_constructor_overload[] = -{ - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxCalendarDateAttr_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxCalendarDateAttr_constructor2 }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) - { wxLua_wxCalendarDateAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxCalendarDateAttr_constructor1 }, -#endif // ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) - { wxLua_wxCalendarDateAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCalendarDateAttr_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCalendarDateAttr_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush))||(((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - -void wxLua_wxCalendarDateAttr_delete_function(void** p) -{ - wxCalendarDateAttr* o = (wxCalendarDateAttr*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCalendarDateAttr_methods[] = { -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - - { "GetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_GetBorder, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "GetBorderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_GetBorderColour, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - - { "HasBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_HasBackgroundColour, 1, NULL }, - { "HasBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_HasBorder, 1, NULL }, - { "HasBorderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_HasBorderColour, 1, NULL }, - { "HasFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_HasFont, 1, NULL }, - { "HasTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_HasTextColour, 1, NULL }, - { "IsHoliday", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_IsHoliday, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - - { "SetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_SetBorder, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "SetBorderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_SetBorderColour, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxFont) - - { "SetHoliday", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_SetHoliday, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarDateAttr_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCalendarDateAttr_delete, 1, NULL }, - -#if ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush))||(((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - { "wxCalendarDateAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCalendarDateAttr_constructor_overload, s_wxluafunc_wxLua_wxCalendarDateAttr_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush))||(((wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxCalendarDateAttr_methodCount = sizeof(wxCalendarDateAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL -// --------------------------------------------------------------------------- -// Bind class wxDateEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateEvent' -int wxluatype_wxDateEvent = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateEvent_GetDate[] = { &wxluatype_wxDateEvent, NULL }; -static int LUACALL wxLua_wxDateEvent_GetDate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateEvent_GetDate[1] = {{ wxLua_wxDateEvent_GetDate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateEvent_GetDate }}; -// wxDateTime GetDate() const; -static int LUACALL wxLua_wxDateEvent_GetDate(lua_State *L) -{ - // get this - wxDateEvent * self = (wxDateEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateEvent); - // call GetDate - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetDate()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateEvent_SetDate[] = { &wxluatype_wxDateEvent, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateEvent_SetDate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateEvent_SetDate[1] = {{ wxLua_wxDateEvent_SetDate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateEvent_SetDate }}; -// void SetDate(const wxDateTime &date); -static int LUACALL wxLua_wxDateEvent_SetDate(lua_State *L) -{ - // const wxDateTime date - const wxDateTime * date = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateEvent * self = (wxDateEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateEvent); - // call SetDate - self->SetDate(*date); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateEvent_delete[] = { &wxluatype_wxDateEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDateEvent_delete }}; - - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateEvent_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateEvent_constructor[1] = {{ wxLua_wxDateEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxDateEvent_constructor }}; -// wxDateEvent(wxWindow *win, const wxDateTime& dt, wxEventType type); -static int LUACALL wxLua_wxDateEvent_constructor(lua_State *L) -{ - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 3); - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDateEvent* returns = new wxDateEvent(win, *dt, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateEvent); - - return 1; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - - -void wxLua_wxDateEvent_delete_function(void** p) -{ - wxDateEvent* o = (wxDateEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateEvent_methods[] = { -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateEvent_GetDate, 1, NULL }, - { "SetDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateEvent_SetDate, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDateEvent_delete, 1, NULL }, - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "wxDateEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateEvent_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { 0, 0, 0, 0 }, -}; - -int wxDateEvent_methodCount = sizeof(wxDateEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL -// --------------------------------------------------------------------------- -// Bind class wxCalendarEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCalendarEvent' -int wxluatype_wxCalendarEvent = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarEvent_GetWeekDay[] = { &wxluatype_wxCalendarEvent, NULL }; -static int LUACALL wxLua_wxCalendarEvent_GetWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_GetWeekDay[1] = {{ wxLua_wxCalendarEvent_GetWeekDay, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalendarEvent_GetWeekDay }}; -// wxDateTime::WeekDay GetWeekDay() const; -static int LUACALL wxLua_wxCalendarEvent_GetWeekDay(lua_State *L) -{ - // get this - wxCalendarEvent * self = (wxCalendarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarEvent); - // call GetWeekDay - wxDateTime::WeekDay returns = (self->GetWeekDay()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarEvent_SetWeekDay[] = { &wxluatype_wxCalendarEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCalendarEvent_SetWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_SetWeekDay[1] = {{ wxLua_wxCalendarEvent_SetWeekDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalendarEvent_SetWeekDay }}; -// void SetWeekDay(const wxDateTime::WeekDay wd); -static int LUACALL wxLua_wxCalendarEvent_SetWeekDay(lua_State *L) -{ - // const wxDateTime::WeekDay wd - const wxDateTime::WeekDay wd = (const wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxCalendarEvent * self = (wxCalendarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarEvent); - // call SetWeekDay - self->SetWeekDay(wd); - - return 0; -} - -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarEvent_delete[] = { &wxluatype_wxCalendarEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCalendarEvent_delete }}; - - -#if (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarEvent_constructor2[] = { &wxluatype_wxWindow, &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCalendarEvent_constructor2(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_constructor2[1] = {{ wxLua_wxCalendarEvent_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxCalendarEvent_constructor2 }}; -// %wxchkver_2_9_2 wxCalendarEvent(wxWindow *win, const wxDateTime& dt, wxEventType type); -static int LUACALL wxLua_wxCalendarEvent_constructor2(lua_State *L) -{ - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 3); - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCalendarEvent* returns = new wxCalendarEvent(win, *dt, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalendarEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarEvent); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarEvent_constructor1[] = { &wxluatype_wxCalendarCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCalendarEvent_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_constructor1[1] = {{ wxLua_wxCalendarEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxCalendarEvent_constructor1 }}; -// !%wxchkver_2_9_2 wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type); -static int LUACALL wxLua_wxCalendarEvent_constructor1(lua_State *L) -{ - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 2); - // wxCalendarCtrl cal - wxCalendarCtrl * cal = (wxCalendarCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarCtrl); - // call constructor - wxCalendarEvent* returns = new wxCalendarEvent(cal, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalendarEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarEvent); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalendarEvent_constructor[] = { &wxluatype_wxCalendarEvent, NULL }; -static int LUACALL wxLua_wxCalendarEvent_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_constructor[1] = {{ wxLua_wxCalendarEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCalendarEvent_constructor }}; -// %wxchkver_2_9_2 wxCalendarEvent(const wxCalendarEvent& event); -static int LUACALL wxLua_wxCalendarEvent_constructor(lua_State *L) -{ - // const wxCalendarEvent event - const wxCalendarEvent * event = (const wxCalendarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalendarEvent); - // call constructor - wxCalendarEvent* returns = new wxCalendarEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalendarEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalendarEvent); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - - - -#if ((((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalendarEvent_constructor_overload[] = -{ - -#if (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxCalendarEvent_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxCalendarEvent_constructor2 }, -#endif // (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - { wxLua_wxCalendarEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxCalendarEvent_constructor1 }, -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) - { wxLua_wxCalendarEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCalendarEvent_constructor }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) -}; -static int s_wxluafunc_wxLua_wxCalendarEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCalendarEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) - -void wxLua_wxCalendarEvent_delete_function(void** p) -{ - wxCalendarEvent* o = (wxCalendarEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCalendarEvent_methods[] = { -#if (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarEvent_GetWeekDay, 1, NULL }, - { "SetWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalendarEvent_SetWeekDay, 1, NULL }, -#endif // (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCalendarEvent_delete, 1, NULL }, - -#if ((((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) - { "wxCalendarEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCalendarEvent_constructor_overload, s_wxluafunc_wxLua_wxCalendarEvent_constructor_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) && (wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxCalendarEvent_methodCount = sizeof(wxCalendarEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl -// --------------------------------------------------------------------------- -// Bind class wxHyperlinkCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHyperlinkCtrl' -int wxluatype_wxHyperlinkCtrl = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_Create[] = { &wxluatype_wxHyperlinkCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_Create[1] = {{ wxLua_wxHyperlinkCtrl_Create, WXLUAMETHOD_METHOD, 5, 9, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxString& url, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHL_DEFAULT_STYLE, const wxString& name = "wxHyperlinkCtrl"); -static int LUACALL wxLua_wxHyperlinkCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxHyperlinkCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxHyperlinkCtrl"))); - // long style = wxHL_DEFAULT_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxHL_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 5); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call Create - bool returns = (self->Create(parent, id, label, url, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetHoverColour[] = { &wxluatype_wxHyperlinkCtrl, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_GetHoverColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_GetHoverColour[1] = {{ wxLua_wxHyperlinkCtrl_GetHoverColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetHoverColour }}; -// wxColour GetHoverColour() const; -static int LUACALL wxLua_wxHyperlinkCtrl_GetHoverColour(lua_State *L) -{ - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call GetHoverColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHoverColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetNormalColour[] = { &wxluatype_wxHyperlinkCtrl, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_GetNormalColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_GetNormalColour[1] = {{ wxLua_wxHyperlinkCtrl_GetNormalColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetNormalColour }}; -// wxColour GetNormalColour() const; -static int LUACALL wxLua_wxHyperlinkCtrl_GetNormalColour(lua_State *L) -{ - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call GetNormalColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetNormalColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetURL[] = { &wxluatype_wxHyperlinkCtrl, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_GetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_GetURL[1] = {{ wxLua_wxHyperlinkCtrl_GetURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetURL }}; -// wxString GetURL() const; -static int LUACALL wxLua_wxHyperlinkCtrl_GetURL(lua_State *L) -{ - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call GetURL - wxString returns = (self->GetURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetVisited[] = { &wxluatype_wxHyperlinkCtrl, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_GetVisited(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_GetVisited[1] = {{ wxLua_wxHyperlinkCtrl_GetVisited, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetVisited }}; -// bool GetVisited() const; -static int LUACALL wxLua_wxHyperlinkCtrl_GetVisited(lua_State *L) -{ - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call GetVisited - bool returns = (self->GetVisited()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetVisitedColour[] = { &wxluatype_wxHyperlinkCtrl, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_GetVisitedColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_GetVisitedColour[1] = {{ wxLua_wxHyperlinkCtrl_GetVisitedColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_GetVisitedColour }}; -// wxColour GetVisitedColour() const; -static int LUACALL wxLua_wxHyperlinkCtrl_GetVisitedColour(lua_State *L) -{ - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call GetVisitedColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetVisitedColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetHoverColour[] = { &wxluatype_wxHyperlinkCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_SetHoverColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_SetHoverColour[1] = {{ wxLua_wxHyperlinkCtrl_SetHoverColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetHoverColour }}; -// void SetHoverColour(const wxColour &colour); -static int LUACALL wxLua_wxHyperlinkCtrl_SetHoverColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call SetHoverColour - self->SetHoverColour(*colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetNormalColour[] = { &wxluatype_wxHyperlinkCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_SetNormalColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_SetNormalColour[1] = {{ wxLua_wxHyperlinkCtrl_SetNormalColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetNormalColour }}; -// void SetNormalColour(const wxColour &colour); -static int LUACALL wxLua_wxHyperlinkCtrl_SetNormalColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call SetNormalColour - self->SetNormalColour(*colour); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetURL[] = { &wxluatype_wxHyperlinkCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_SetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_SetURL[1] = {{ wxLua_wxHyperlinkCtrl_SetURL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetURL }}; -// void SetURL (const wxString &url); -static int LUACALL wxLua_wxHyperlinkCtrl_SetURL(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call SetURL - self->SetURL(url); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetVisited[] = { &wxluatype_wxHyperlinkCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_SetVisited(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_SetVisited[1] = {{ wxLua_wxHyperlinkCtrl_SetVisited, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetVisited }}; -// void SetVisited(bool visited = true); -static int LUACALL wxLua_wxHyperlinkCtrl_SetVisited(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visited = true - bool visited = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call SetVisited - self->SetVisited(visited); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetVisitedColour[] = { &wxluatype_wxHyperlinkCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_SetVisitedColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_SetVisitedColour[1] = {{ wxLua_wxHyperlinkCtrl_SetVisitedColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_SetVisitedColour }}; -// void SetVisitedColour(const wxColour &colour); -static int LUACALL wxLua_wxHyperlinkCtrl_SetVisitedColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHyperlinkCtrl * self = (wxHyperlinkCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkCtrl); - // call SetVisitedColour - self->SetVisitedColour(*colour); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHyperlinkCtrl_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor1[1] = {{ wxLua_wxHyperlinkCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_constructor1 }}; -// wxHyperlinkCtrl(wxWindow *parent, wxWindowID id, const wxString& label, const wxString& url, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHL_DEFAULT_STYLE, const wxString& name = "wxHyperlinkCtrl"); -static int LUACALL wxLua_wxHyperlinkCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxHyperlinkCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxHyperlinkCtrl"))); - // long style = wxHL_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxHL_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 4); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxHyperlinkCtrl* returns = new wxHyperlinkCtrl(parent, id, label, url, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHyperlinkCtrl); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxHyperlinkCtrl_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor[1] = {{ wxLua_wxHyperlinkCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHyperlinkCtrl(); -static int LUACALL wxLua_wxHyperlinkCtrl_constructor(lua_State *L) -{ - // call constructor - wxHyperlinkCtrl* returns = new wxHyperlinkCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHyperlinkCtrl); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHyperlinkCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatypeArray_wxLua_wxHyperlinkCtrl_constructor1 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHyperlinkCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) - -void wxLua_wxHyperlinkCtrl_delete_function(void** p) -{ - wxHyperlinkCtrl* o = (wxHyperlinkCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHyperlinkCtrl_methods[] = { -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_Create, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - { "GetHoverColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_GetHoverColour, 1, NULL }, - { "GetNormalColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_GetNormalColour, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - - { "GetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_GetURL, 1, NULL }, - { "GetVisited", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_GetVisited, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - { "GetVisitedColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_GetVisitedColour, 1, NULL }, - { "SetHoverColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_SetHoverColour, 1, NULL }, - { "SetNormalColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_SetNormalColour, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - - { "SetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_SetURL, 1, NULL }, - { "SetVisited", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_SetVisited, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - { "SetVisitedColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkCtrl_SetVisitedColour, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) - { "wxHyperlinkCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor_overload, s_wxluafunc_wxLua_wxHyperlinkCtrl_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxHyperlinkCtrl_methodCount = sizeof(wxHyperlinkCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl -// --------------------------------------------------------------------------- -// Bind class wxHyperlinkEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHyperlinkEvent' -int wxluatype_wxHyperlinkEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkEvent_GetURL[] = { &wxluatype_wxHyperlinkEvent, NULL }; -static int LUACALL wxLua_wxHyperlinkEvent_GetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkEvent_GetURL[1] = {{ wxLua_wxHyperlinkEvent_GetURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkEvent_GetURL }}; -// wxString GetURL() const; -static int LUACALL wxLua_wxHyperlinkEvent_GetURL(lua_State *L) -{ - // get this - wxHyperlinkEvent * self = (wxHyperlinkEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkEvent); - // call GetURL - wxString returns = (self->GetURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkEvent_SetURL[] = { &wxluatype_wxHyperlinkEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHyperlinkEvent_SetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkEvent_SetURL[1] = {{ wxLua_wxHyperlinkEvent_SetURL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHyperlinkEvent_SetURL }}; -// void SetURL(const wxString &url); -static int LUACALL wxLua_wxHyperlinkEvent_SetURL(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxHyperlinkEvent * self = (wxHyperlinkEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHyperlinkEvent); - // call SetURL - self->SetURL(url); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkEvent_delete[] = { &wxluatype_wxHyperlinkEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHyperlinkEvent_delete }}; - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHyperlinkEvent_constructor[] = { &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHyperlinkEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHyperlinkEvent_constructor[1] = {{ wxLua_wxHyperlinkEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxHyperlinkEvent_constructor }}; -// wxHyperlinkEvent(wxObject *generator, wxWindowID id, const wxString& url); -static int LUACALL wxLua_wxHyperlinkEvent_constructor(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxObject generator - wxObject * generator = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call constructor - wxHyperlinkEvent* returns = new wxHyperlinkEvent(generator, id, url); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHyperlinkEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHyperlinkEvent); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxObject) - - - -void wxLua_wxHyperlinkEvent_delete_function(void** p) -{ - wxHyperlinkEvent* o = (wxHyperlinkEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHyperlinkEvent_methods[] = { - { "GetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkEvent_GetURL, 1, NULL }, - { "SetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHyperlinkEvent_SetURL, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHyperlinkEvent_delete, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxObject) - { "wxHyperlinkEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHyperlinkEvent_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxHyperlinkEvent_methodCount = sizeof(wxHyperlinkEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH -// --------------------------------------------------------------------------- -// Bind class wxSashWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSashWindow' -int wxluatype_wxSashWindow = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_GetMaximumSizeX[] = { &wxluatype_wxSashWindow, NULL }; -static int LUACALL wxLua_wxSashWindow_GetMaximumSizeX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_GetMaximumSizeX[1] = {{ wxLua_wxSashWindow_GetMaximumSizeX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashWindow_GetMaximumSizeX }}; -// int GetMaximumSizeX() const; -static int LUACALL wxLua_wxSashWindow_GetMaximumSizeX(lua_State *L) -{ - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call GetMaximumSizeX - int returns = (self->GetMaximumSizeX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_GetMaximumSizeY[] = { &wxluatype_wxSashWindow, NULL }; -static int LUACALL wxLua_wxSashWindow_GetMaximumSizeY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_GetMaximumSizeY[1] = {{ wxLua_wxSashWindow_GetMaximumSizeY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashWindow_GetMaximumSizeY }}; -// int GetMaximumSizeY() const; -static int LUACALL wxLua_wxSashWindow_GetMaximumSizeY(lua_State *L) -{ - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call GetMaximumSizeY - int returns = (self->GetMaximumSizeY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_GetMinimumSizeX[] = { &wxluatype_wxSashWindow, NULL }; -static int LUACALL wxLua_wxSashWindow_GetMinimumSizeX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_GetMinimumSizeX[1] = {{ wxLua_wxSashWindow_GetMinimumSizeX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashWindow_GetMinimumSizeX }}; -// int GetMinimumSizeX() const; -static int LUACALL wxLua_wxSashWindow_GetMinimumSizeX(lua_State *L) -{ - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call GetMinimumSizeX - int returns = (self->GetMinimumSizeX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_GetMinimumSizeY[] = { &wxluatype_wxSashWindow, NULL }; -static int LUACALL wxLua_wxSashWindow_GetMinimumSizeY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_GetMinimumSizeY[1] = {{ wxLua_wxSashWindow_GetMinimumSizeY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashWindow_GetMinimumSizeY }}; -// int GetMinimumSizeY() const; -static int LUACALL wxLua_wxSashWindow_GetMinimumSizeY(lua_State *L) -{ - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call GetMinimumSizeY - int returns = (self->GetMinimumSizeY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_GetSashVisible[] = { &wxluatype_wxSashWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashWindow_GetSashVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_GetSashVisible[1] = {{ wxLua_wxSashWindow_GetSashVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashWindow_GetSashVisible }}; -// bool GetSashVisible(wxSashEdgePosition edge) const; -static int LUACALL wxLua_wxSashWindow_GetSashVisible(lua_State *L) -{ - // wxSashEdgePosition edge - wxSashEdgePosition edge = (wxSashEdgePosition)wxlua_getenumtype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call GetSashVisible - bool returns = (self->GetSashVisible(edge)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_HasBorder[] = { &wxluatype_wxSashWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashWindow_HasBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_HasBorder[1] = {{ wxLua_wxSashWindow_HasBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashWindow_HasBorder }}; -// %wxcompat_2_6 bool HasBorder(wxSashEdgePosition edge) const; -static int LUACALL wxLua_wxSashWindow_HasBorder(lua_State *L) -{ - // wxSashEdgePosition edge - wxSashEdgePosition edge = (wxSashEdgePosition)wxlua_getenumtype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call HasBorder - bool returns = (self->HasBorder(edge)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_SetMaximumSizeX[] = { &wxluatype_wxSashWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSashWindow_SetMaximumSizeX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_SetMaximumSizeX[1] = {{ wxLua_wxSashWindow_SetMaximumSizeX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashWindow_SetMaximumSizeX }}; -// void SetMaximumSizeX(int min); -static int LUACALL wxLua_wxSashWindow_SetMaximumSizeX(lua_State *L) -{ - // int min - int min = (int)wxlua_getnumbertype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call SetMaximumSizeX - self->SetMaximumSizeX(min); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_SetMaximumSizeY[] = { &wxluatype_wxSashWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSashWindow_SetMaximumSizeY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_SetMaximumSizeY[1] = {{ wxLua_wxSashWindow_SetMaximumSizeY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashWindow_SetMaximumSizeY }}; -// void SetMaximumSizeY(int min); -static int LUACALL wxLua_wxSashWindow_SetMaximumSizeY(lua_State *L) -{ - // int min - int min = (int)wxlua_getnumbertype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call SetMaximumSizeY - self->SetMaximumSizeY(min); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_SetMinimumSizeX[] = { &wxluatype_wxSashWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSashWindow_SetMinimumSizeX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_SetMinimumSizeX[1] = {{ wxLua_wxSashWindow_SetMinimumSizeX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashWindow_SetMinimumSizeX }}; -// void SetMinimumSizeX(int min); -static int LUACALL wxLua_wxSashWindow_SetMinimumSizeX(lua_State *L) -{ - // int min - int min = (int)wxlua_getnumbertype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call SetMinimumSizeX - self->SetMinimumSizeX(min); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_SetMinimumSizeY[] = { &wxluatype_wxSashWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSashWindow_SetMinimumSizeY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_SetMinimumSizeY[1] = {{ wxLua_wxSashWindow_SetMinimumSizeY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashWindow_SetMinimumSizeY }}; -// void SetMinimumSizeY(int min); -static int LUACALL wxLua_wxSashWindow_SetMinimumSizeY(lua_State *L) -{ - // int min - int min = (int)wxlua_getnumbertype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call SetMinimumSizeY - self->SetMinimumSizeY(min); - - return 0; -} - - -#if (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_SetSashBorder[] = { &wxluatype_wxSashWindow, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSashWindow_SetSashBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_SetSashBorder[1] = {{ wxLua_wxSashWindow_SetSashBorder, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSashWindow_SetSashBorder }}; -// %wxcompat_2_6 void SetSashBorder(wxSashEdgePosition edge, bool hasBorder); -static int LUACALL wxLua_wxSashWindow_SetSashBorder(lua_State *L) -{ - // bool hasBorder - bool hasBorder = wxlua_getbooleantype(L, 3); - // wxSashEdgePosition edge - wxSashEdgePosition edge = (wxSashEdgePosition)wxlua_getenumtype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call SetSashBorder - self->SetSashBorder(edge, hasBorder); - - return 0; -} - -#endif // (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_SetSashVisible[] = { &wxluatype_wxSashWindow, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSashWindow_SetSashVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_SetSashVisible[1] = {{ wxLua_wxSashWindow_SetSashVisible, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSashWindow_SetSashVisible }}; -// void SetSashVisible(wxSashEdgePosition edge, bool visible); -static int LUACALL wxLua_wxSashWindow_SetSashVisible(lua_State *L) -{ - // bool visible - bool visible = wxlua_getbooleantype(L, 3); - // wxSashEdgePosition edge - wxSashEdgePosition edge = (wxSashEdgePosition)wxlua_getenumtype(L, 2); - // get this - wxSashWindow * self = (wxSashWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashWindow); - // call SetSashVisible - self->SetSashVisible(edge, visible); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSashWindow_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_constructor1[1] = {{ wxLua_wxSashWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSashWindow_constructor1 }}; -// wxSashWindow(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSW_3D|wxCLIP_CHILDREN, const wxString& name = "wxSashWindow"); -static int LUACALL wxLua_wxSashWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSashWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxSashWindow"))); - // long style = wxSW_3D | wxCLIP_CHILDREN - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxSW_3D | wxCLIP_CHILDREN); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSashWindow* returns = new wxSashWindow(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSashWindow); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static int LUACALL wxLua_wxSashWindow_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_constructor[1] = {{ wxLua_wxSashWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSashWindow(); -static int LUACALL wxLua_wxSashWindow_constructor(lua_State *L) -{ - // call constructor - wxSashWindow* returns = new wxSashWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSashWindow); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashWindow_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { wxLua_wxSashWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSashWindow_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { wxLua_wxSashWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSashWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSashWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) - -void wxLua_wxSashWindow_delete_function(void** p) -{ - wxSashWindow* o = (wxSashWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSashWindow_methods[] = { - { "GetMaximumSizeX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_GetMaximumSizeX, 1, NULL }, - { "GetMaximumSizeY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_GetMaximumSizeY, 1, NULL }, - { "GetMinimumSizeX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_GetMinimumSizeX, 1, NULL }, - { "GetMinimumSizeY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_GetMinimumSizeY, 1, NULL }, - { "GetSashVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_GetSashVisible, 1, NULL }, - -#if (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "HasBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_HasBorder, 1, NULL }, -#endif // (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "SetMaximumSizeX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_SetMaximumSizeX, 1, NULL }, - { "SetMaximumSizeY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_SetMaximumSizeY, 1, NULL }, - { "SetMinimumSizeX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_SetMinimumSizeX, 1, NULL }, - { "SetMinimumSizeY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_SetMinimumSizeY, 1, NULL }, - -#if (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "SetSashBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_SetSashBorder, 1, NULL }, -#endif // (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "SetSashVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashWindow_SetSashVisible, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "wxSashWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSashWindow_constructor_overload, s_wxluafunc_wxLua_wxSashWindow_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { 0, 0, 0, 0 }, -}; - -int wxSashWindow_methodCount = sizeof(wxSashWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH -// --------------------------------------------------------------------------- -// Bind class wxSashLayoutWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSashLayoutWindow' -int wxluatype_wxSashLayoutWindow = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_Create[] = { &wxluatype_wxSashLayoutWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_Create[1] = {{ wxLua_wxSashLayoutWindow_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxSashLayoutWindow_Create }}; -// bool Create(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSW_3D|wxCLIP_CHILDREN, const wxString& name = "wxSashLayoutWindow"); -static int LUACALL wxLua_wxSashLayoutWindow_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSashLayoutWindow" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxSashLayoutWindow"))); - // long style = wxSW_3D | wxCLIP_CHILDREN - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxSW_3D | wxCLIP_CHILDREN); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSashLayoutWindow * self = (wxSashLayoutWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashLayoutWindow); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_GetAlignment[] = { &wxluatype_wxSashLayoutWindow, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_GetAlignment[1] = {{ wxLua_wxSashLayoutWindow_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashLayoutWindow_GetAlignment }}; -// wxLayoutAlignment GetAlignment() const; -static int LUACALL wxLua_wxSashLayoutWindow_GetAlignment(lua_State *L) -{ - // get this - wxSashLayoutWindow * self = (wxSashLayoutWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashLayoutWindow); - // call GetAlignment - wxLayoutAlignment returns = (self->GetAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_GetOrientation[] = { &wxluatype_wxSashLayoutWindow, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_GetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_GetOrientation[1] = {{ wxLua_wxSashLayoutWindow_GetOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashLayoutWindow_GetOrientation }}; -// wxLayoutOrientation GetOrientation() const; -static int LUACALL wxLua_wxSashLayoutWindow_GetOrientation(lua_State *L) -{ - // get this - wxSashLayoutWindow * self = (wxSashLayoutWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashLayoutWindow); - // call GetOrientation - wxLayoutOrientation returns = (self->GetOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_SetAlignment[] = { &wxluatype_wxSashLayoutWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_SetAlignment[1] = {{ wxLua_wxSashLayoutWindow_SetAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashLayoutWindow_SetAlignment }}; -// void SetAlignment(wxLayoutAlignment alignment); -static int LUACALL wxLua_wxSashLayoutWindow_SetAlignment(lua_State *L) -{ - // wxLayoutAlignment alignment - wxLayoutAlignment alignment = (wxLayoutAlignment)wxlua_getenumtype(L, 2); - // get this - wxSashLayoutWindow * self = (wxSashLayoutWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashLayoutWindow); - // call SetAlignment - self->SetAlignment(alignment); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_SetDefaultSize[] = { &wxluatype_wxSashLayoutWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_SetDefaultSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_SetDefaultSize[1] = {{ wxLua_wxSashLayoutWindow_SetDefaultSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashLayoutWindow_SetDefaultSize }}; -// void SetDefaultSize(const wxSize& size); -static int LUACALL wxLua_wxSashLayoutWindow_SetDefaultSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSashLayoutWindow * self = (wxSashLayoutWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashLayoutWindow); - // call SetDefaultSize - self->SetDefaultSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_SetOrientation[] = { &wxluatype_wxSashLayoutWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_SetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_SetOrientation[1] = {{ wxLua_wxSashLayoutWindow_SetOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashLayoutWindow_SetOrientation }}; -// void SetOrientation(wxLayoutOrientation orientation); -static int LUACALL wxLua_wxSashLayoutWindow_SetOrientation(lua_State *L) -{ - // wxLayoutOrientation orientation - wxLayoutOrientation orientation = (wxLayoutOrientation)wxlua_getenumtype(L, 2); - // get this - wxSashLayoutWindow * self = (wxSashLayoutWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashLayoutWindow); - // call SetOrientation - self->SetOrientation(orientation); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashLayoutWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSashLayoutWindow_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_constructor1[1] = {{ wxLua_wxSashLayoutWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSashLayoutWindow_constructor1 }}; -// wxSashLayoutWindow(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSW_3D|wxCLIP_CHILDREN, const wxString& name = "wxSashLayoutWindow"); -static int LUACALL wxLua_wxSashLayoutWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSashLayoutWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxSashLayoutWindow"))); - // long style = wxSW_3D | wxCLIP_CHILDREN - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxSW_3D | wxCLIP_CHILDREN); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSashLayoutWindow* returns = new wxSashLayoutWindow(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSashLayoutWindow); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static int LUACALL wxLua_wxSashLayoutWindow_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_constructor[1] = {{ wxLua_wxSashLayoutWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSashLayoutWindow(); -static int LUACALL wxLua_wxSashLayoutWindow_constructor(lua_State *L) -{ - // call constructor - wxSashLayoutWindow* returns = new wxSashLayoutWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSashLayoutWindow); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashLayoutWindow_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { wxLua_wxSashLayoutWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSashLayoutWindow_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { wxLua_wxSashLayoutWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSashLayoutWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSashLayoutWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) - -void wxLua_wxSashLayoutWindow_delete_function(void** p) -{ - wxSashLayoutWindow* o = (wxSashLayoutWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSashLayoutWindow_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashLayoutWindow_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashLayoutWindow_GetAlignment, 1, NULL }, - { "GetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashLayoutWindow_GetOrientation, 1, NULL }, - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashLayoutWindow_SetAlignment, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "SetDefaultSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashLayoutWindow_SetDefaultSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "SetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashLayoutWindow_SetOrientation, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "wxSashLayoutWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSashLayoutWindow_constructor_overload, s_wxluafunc_wxLua_wxSashLayoutWindow_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH))||(wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { 0, 0, 0, 0 }, -}; - -int wxSashLayoutWindow_methodCount = sizeof(wxSashLayoutWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH -// --------------------------------------------------------------------------- -// Bind class wxLayoutAlgorithm -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLayoutAlgorithm' -int wxluatype_wxLayoutAlgorithm = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLayoutAlgorithm_LayoutFrame[] = { &wxluatype_wxLayoutAlgorithm, &wxluatype_wxFrame, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxLayoutAlgorithm_LayoutFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLayoutAlgorithm_LayoutFrame[1] = {{ wxLua_wxLayoutAlgorithm_LayoutFrame, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLayoutAlgorithm_LayoutFrame }}; -// bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL) const; -static int LUACALL wxLua_wxLayoutAlgorithm_LayoutFrame(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow mainWindow = NULL - wxWindow * mainWindow = (argCount >= 3 ? (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow) : NULL); - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxLayoutAlgorithm * self = (wxLayoutAlgorithm *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLayoutAlgorithm); - // call LayoutFrame - bool returns = (self->LayoutFrame(frame, mainWindow)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLayoutAlgorithm_LayoutMDIFrame[] = { &wxluatype_wxLayoutAlgorithm, &wxluatype_wxMDIParentFrame, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxLayoutAlgorithm_LayoutMDIFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLayoutAlgorithm_LayoutMDIFrame[1] = {{ wxLua_wxLayoutAlgorithm_LayoutMDIFrame, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLayoutAlgorithm_LayoutMDIFrame }}; -// bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL); -static int LUACALL wxLua_wxLayoutAlgorithm_LayoutMDIFrame(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRect rect = NULL - wxRect * rect = (argCount >= 3 ? (wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect) : NULL); - // wxMDIParentFrame frame - wxMDIParentFrame * frame = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMDIParentFrame); - // get this - wxLayoutAlgorithm * self = (wxLayoutAlgorithm *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLayoutAlgorithm); - // call LayoutMDIFrame - bool returns = (self->LayoutMDIFrame(frame, rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLayoutAlgorithm_LayoutWindow[] = { &wxluatype_wxLayoutAlgorithm, &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxLayoutAlgorithm_LayoutWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLayoutAlgorithm_LayoutWindow[1] = {{ wxLua_wxLayoutAlgorithm_LayoutWindow, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLayoutAlgorithm_LayoutWindow }}; -// bool LayoutWindow(wxWindow* frame, wxWindow* mainWindow = NULL); -static int LUACALL wxLua_wxLayoutAlgorithm_LayoutWindow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow mainWindow = NULL - wxWindow * mainWindow = (argCount >= 3 ? (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow) : NULL); - // wxWindow frame - wxWindow * frame = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxLayoutAlgorithm * self = (wxLayoutAlgorithm *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLayoutAlgorithm); - // call LayoutWindow - bool returns = (self->LayoutWindow(frame, mainWindow)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLayoutAlgorithm_delete[] = { &wxluatype_wxLayoutAlgorithm, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLayoutAlgorithm_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLayoutAlgorithm_delete }}; - -static int LUACALL wxLua_wxLayoutAlgorithm_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLayoutAlgorithm_constructor[1] = {{ wxLua_wxLayoutAlgorithm_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLayoutAlgorithm(); -static int LUACALL wxLua_wxLayoutAlgorithm_constructor(lua_State *L) -{ - // call constructor - wxLayoutAlgorithm* returns = new wxLayoutAlgorithm(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLayoutAlgorithm); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLayoutAlgorithm); - - return 1; -} - - - - -void wxLua_wxLayoutAlgorithm_delete_function(void** p) -{ - wxLayoutAlgorithm* o = (wxLayoutAlgorithm*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLayoutAlgorithm_methods[] = { -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "LayoutFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLayoutAlgorithm_LayoutFrame, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "LayoutMDIFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLayoutAlgorithm_LayoutMDIFrame, 1, NULL }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "LayoutWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLayoutAlgorithm_LayoutWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLayoutAlgorithm_delete, 1, NULL }, - { "wxLayoutAlgorithm", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLayoutAlgorithm_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLayoutAlgorithm_methodCount = sizeof(wxLayoutAlgorithm_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH -// --------------------------------------------------------------------------- -// Bind class wxQueryLayoutInfoEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxQueryLayoutInfoEvent' -int wxluatype_wxQueryLayoutInfoEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetAlignment[] = { &wxluatype_wxQueryLayoutInfoEvent, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetAlignment[1] = {{ wxLua_wxQueryLayoutInfoEvent_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetAlignment }}; -// wxLayoutAlignment GetAlignment() const; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetAlignment(lua_State *L) -{ - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call GetAlignment - wxLayoutAlignment returns = (self->GetAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetFlags[] = { &wxluatype_wxQueryLayoutInfoEvent, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetFlags[1] = {{ wxLua_wxQueryLayoutInfoEvent_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetFlags(lua_State *L) -{ - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetOrientation[] = { &wxluatype_wxQueryLayoutInfoEvent, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetOrientation[1] = {{ wxLua_wxQueryLayoutInfoEvent_GetOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetOrientation }}; -// wxLayoutOrientation GetOrientation() const; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetOrientation(lua_State *L) -{ - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call GetOrientation - wxLayoutOrientation returns = (self->GetOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetRequestedLength[] = { &wxluatype_wxQueryLayoutInfoEvent, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetRequestedLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetRequestedLength[1] = {{ wxLua_wxQueryLayoutInfoEvent_GetRequestedLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetRequestedLength }}; -// int GetRequestedLength() const; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetRequestedLength(lua_State *L) -{ - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call GetRequestedLength - int returns = (self->GetRequestedLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetSize[] = { &wxluatype_wxQueryLayoutInfoEvent, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetSize[1] = {{ wxLua_wxQueryLayoutInfoEvent_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_GetSize }}; -// wxSize GetSize() const; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_GetSize(lua_State *L) -{ - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetAlignment[] = { &wxluatype_wxQueryLayoutInfoEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetAlignment[1] = {{ wxLua_wxQueryLayoutInfoEvent_SetAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetAlignment }}; -// void SetAlignment(wxLayoutAlignment alignment); -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetAlignment(lua_State *L) -{ - // wxLayoutAlignment alignment - wxLayoutAlignment alignment = (wxLayoutAlignment)wxlua_getenumtype(L, 2); - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call SetAlignment - self->SetAlignment(alignment); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetFlags[] = { &wxluatype_wxQueryLayoutInfoEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetFlags[1] = {{ wxLua_wxQueryLayoutInfoEvent_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetOrientation[] = { &wxluatype_wxQueryLayoutInfoEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetOrientation[1] = {{ wxLua_wxQueryLayoutInfoEvent_SetOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetOrientation }}; -// void SetOrientation(wxLayoutOrientation orientation); -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetOrientation(lua_State *L) -{ - // wxLayoutOrientation orientation - wxLayoutOrientation orientation = (wxLayoutOrientation)wxlua_getenumtype(L, 2); - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call SetOrientation - self->SetOrientation(orientation); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetRequestedLength[] = { &wxluatype_wxQueryLayoutInfoEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetRequestedLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetRequestedLength[1] = {{ wxLua_wxQueryLayoutInfoEvent_SetRequestedLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetRequestedLength }}; -// void SetRequestedLength(int length); -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetRequestedLength(lua_State *L) -{ - // int length - int length = (int)wxlua_getnumbertype(L, 2); - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call SetRequestedLength - self->SetRequestedLength(length); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetSize[] = { &wxluatype_wxQueryLayoutInfoEvent, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetSize[1] = {{ wxLua_wxQueryLayoutInfoEvent_SetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_SetSize }}; -// void SetSize(const wxSize& size); -static int LUACALL wxLua_wxQueryLayoutInfoEvent_SetSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxQueryLayoutInfoEvent * self = (wxQueryLayoutInfoEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryLayoutInfoEvent); - // call SetSize - self->SetSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_delete[] = { &wxluatype_wxQueryLayoutInfoEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxQueryLayoutInfoEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_constructor[1] = {{ wxLua_wxQueryLayoutInfoEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxQueryLayoutInfoEvent_constructor }}; -// wxQueryLayoutInfoEvent(wxWindowID id = 0); -static int LUACALL wxLua_wxQueryLayoutInfoEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID id = 0 - wxWindowID id = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxQueryLayoutInfoEvent* returns = new wxQueryLayoutInfoEvent(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxQueryLayoutInfoEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxQueryLayoutInfoEvent); - - return 1; -} - - - - -void wxLua_wxQueryLayoutInfoEvent_delete_function(void** p) -{ - wxQueryLayoutInfoEvent* o = (wxQueryLayoutInfoEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxQueryLayoutInfoEvent_methods[] = { - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetAlignment, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetFlags, 1, NULL }, - { "GetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetOrientation, 1, NULL }, - { "GetRequestedLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetRequestedLength, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_GetSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetAlignment, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetFlags, 1, NULL }, - { "SetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetOrientation, 1, NULL }, - { "SetRequestedLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetRequestedLength, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_SetSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_delete, 1, NULL }, - { "wxQueryLayoutInfoEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxQueryLayoutInfoEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxQueryLayoutInfoEvent_methodCount = sizeof(wxQueryLayoutInfoEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH -// --------------------------------------------------------------------------- -// Bind class wxCalculateLayoutEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCalculateLayoutEvent' -int wxluatype_wxCalculateLayoutEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_GetFlags[] = { &wxluatype_wxCalculateLayoutEvent, NULL }; -static int LUACALL wxLua_wxCalculateLayoutEvent_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalculateLayoutEvent_GetFlags[1] = {{ wxLua_wxCalculateLayoutEvent_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxCalculateLayoutEvent_GetFlags(lua_State *L) -{ - // get this - wxCalculateLayoutEvent * self = (wxCalculateLayoutEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalculateLayoutEvent); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_GetRect[] = { &wxluatype_wxCalculateLayoutEvent, NULL }; -static int LUACALL wxLua_wxCalculateLayoutEvent_GetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalculateLayoutEvent_GetRect[1] = {{ wxLua_wxCalculateLayoutEvent_GetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_GetRect }}; -// wxRect GetRect() const; -static int LUACALL wxLua_wxCalculateLayoutEvent_GetRect(lua_State *L) -{ - // get this - wxCalculateLayoutEvent * self = (wxCalculateLayoutEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalculateLayoutEvent); - // call GetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_SetFlags[] = { &wxluatype_wxCalculateLayoutEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCalculateLayoutEvent_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalculateLayoutEvent_SetFlags[1] = {{ wxLua_wxCalculateLayoutEvent_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxCalculateLayoutEvent_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxCalculateLayoutEvent * self = (wxCalculateLayoutEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalculateLayoutEvent); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_SetRect[] = { &wxluatype_wxCalculateLayoutEvent, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxCalculateLayoutEvent_SetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalculateLayoutEvent_SetRect[1] = {{ wxLua_wxCalculateLayoutEvent_SetRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_SetRect }}; -// void SetRect(const wxRect& rect); -static int LUACALL wxLua_wxCalculateLayoutEvent_SetRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxCalculateLayoutEvent * self = (wxCalculateLayoutEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCalculateLayoutEvent); - // call SetRect - self->SetRect(*rect); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_delete[] = { &wxluatype_wxCalculateLayoutEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalculateLayoutEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCalculateLayoutEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCalculateLayoutEvent_constructor[1] = {{ wxLua_wxCalculateLayoutEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxCalculateLayoutEvent_constructor }}; -// wxCalculateLayoutEvent(wxWindowID id = 0); -static int LUACALL wxLua_wxCalculateLayoutEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID id = 0 - wxWindowID id = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxCalculateLayoutEvent* returns = new wxCalculateLayoutEvent(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCalculateLayoutEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCalculateLayoutEvent); - - return 1; -} - - - - -void wxLua_wxCalculateLayoutEvent_delete_function(void** p) -{ - wxCalculateLayoutEvent* o = (wxCalculateLayoutEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCalculateLayoutEvent_methods[] = { - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalculateLayoutEvent_GetFlags, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "GetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalculateLayoutEvent_GetRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalculateLayoutEvent_SetFlags, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "SetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCalculateLayoutEvent_SetRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCalculateLayoutEvent_delete, 1, NULL }, - { "wxCalculateLayoutEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCalculateLayoutEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCalculateLayoutEvent_methodCount = sizeof(wxCalculateLayoutEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH -// --------------------------------------------------------------------------- -// Bind class wxSashEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSashEvent' -int wxluatype_wxSashEvent = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_GetDragRect[] = { &wxluatype_wxSashEvent, NULL }; -static int LUACALL wxLua_wxSashEvent_GetDragRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_GetDragRect[1] = {{ wxLua_wxSashEvent_GetDragRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashEvent_GetDragRect }}; -// wxRect GetDragRect(); -static int LUACALL wxLua_wxSashEvent_GetDragRect(lua_State *L) -{ - // get this - wxSashEvent * self = (wxSashEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashEvent); - // call GetDragRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetDragRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_GetDragStatus[] = { &wxluatype_wxSashEvent, NULL }; -static int LUACALL wxLua_wxSashEvent_GetDragStatus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_GetDragStatus[1] = {{ wxLua_wxSashEvent_GetDragStatus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashEvent_GetDragStatus }}; -// int GetDragStatus(); -static int LUACALL wxLua_wxSashEvent_GetDragStatus(lua_State *L) -{ - // get this - wxSashEvent * self = (wxSashEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashEvent); - // call GetDragStatus - int returns = (self->GetDragStatus()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_GetEdge[] = { &wxluatype_wxSashEvent, NULL }; -static int LUACALL wxLua_wxSashEvent_GetEdge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_GetEdge[1] = {{ wxLua_wxSashEvent_GetEdge, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSashEvent_GetEdge }}; -// int GetEdge(); -static int LUACALL wxLua_wxSashEvent_GetEdge(lua_State *L) -{ - // get this - wxSashEvent * self = (wxSashEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashEvent); - // call GetEdge - int returns = (self->GetEdge()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_SetDragRect[] = { &wxluatype_wxSashEvent, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxSashEvent_SetDragRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_SetDragRect[1] = {{ wxLua_wxSashEvent_SetDragRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashEvent_SetDragRect }}; -// void SetDragRect(const wxRect& rect); -static int LUACALL wxLua_wxSashEvent_SetDragRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxSashEvent * self = (wxSashEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashEvent); - // call SetDragRect - self->SetDragRect(*rect); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_SetDragStatus[] = { &wxluatype_wxSashEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashEvent_SetDragStatus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_SetDragStatus[1] = {{ wxLua_wxSashEvent_SetDragStatus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashEvent_SetDragStatus }}; -// void SetDragStatus(wxSashDragStatus status); -static int LUACALL wxLua_wxSashEvent_SetDragStatus(lua_State *L) -{ - // wxSashDragStatus status - wxSashDragStatus status = (wxSashDragStatus)wxlua_getenumtype(L, 2); - // get this - wxSashEvent * self = (wxSashEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashEvent); - // call SetDragStatus - self->SetDragStatus(status); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_SetEdge[] = { &wxluatype_wxSashEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashEvent_SetEdge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_SetEdge[1] = {{ wxLua_wxSashEvent_SetEdge, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSashEvent_SetEdge }}; -// void SetEdge(wxSashEdgePosition edge); -static int LUACALL wxLua_wxSashEvent_SetEdge(lua_State *L) -{ - // wxSashEdgePosition edge - wxSashEdgePosition edge = (wxSashEdgePosition)wxlua_getenumtype(L, 2); - // get this - wxSashEvent * self = (wxSashEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSashEvent); - // call SetEdge - self->SetEdge(edge); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_delete[] = { &wxluatype_wxSashEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSashEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSashEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSashEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSashEvent_constructor[1] = {{ wxLua_wxSashEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxSashEvent_constructor }}; -// wxSashEvent(int id = 0, wxSashEdgePosition edge = wxSASH_NONE); -static int LUACALL wxLua_wxSashEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSashEdgePosition edge = wxSASH_NONE - wxSashEdgePosition edge = (argCount >= 2 ? (wxSashEdgePosition)wxlua_getenumtype(L, 2) : wxSASH_NONE); - // int id = 0 - int id = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxSashEvent* returns = new wxSashEvent(id, edge); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSashEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSashEvent); - - return 1; -} - - - - -void wxLua_wxSashEvent_delete_function(void** p) -{ - wxSashEvent* o = (wxSashEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSashEvent_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "GetDragRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashEvent_GetDragRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "GetDragStatus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashEvent_GetDragStatus, 1, NULL }, - { "GetEdge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashEvent_GetEdge, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - { "SetDragRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashEvent_SetDragRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSashWindow && wxUSE_SASH) - - { "SetDragStatus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashEvent_SetDragStatus, 1, NULL }, - { "SetEdge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSashEvent_SetEdge, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSashEvent_delete, 1, NULL }, - { "wxSashEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSashEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSashEvent_methodCount = sizeof(wxSashEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - - -#if wxLUA_USE_wxSplashScreen -// --------------------------------------------------------------------------- -// Bind class wxSplashScreen -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSplashScreen' -int wxluatype_wxSplashScreen = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplashScreen_GetSplashStyle[] = { &wxluatype_wxSplashScreen, NULL }; -static int LUACALL wxLua_wxSplashScreen_GetSplashStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplashScreen_GetSplashStyle[1] = {{ wxLua_wxSplashScreen_GetSplashStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplashScreen_GetSplashStyle }}; -// long GetSplashStyle() const; -static int LUACALL wxLua_wxSplashScreen_GetSplashStyle(lua_State *L) -{ - // get this - wxSplashScreen * self = (wxSplashScreen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplashScreen); - // call GetSplashStyle - long returns = (self->GetSplashStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplashScreen_GetSplashWindow[] = { &wxluatype_wxSplashScreen, NULL }; -static int LUACALL wxLua_wxSplashScreen_GetSplashWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplashScreen_GetSplashWindow[1] = {{ wxLua_wxSplashScreen_GetSplashWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplashScreen_GetSplashWindow }}; -// wxSplashScreenWindow* GetSplashWindow() const; -static int LUACALL wxLua_wxSplashScreen_GetSplashWindow(lua_State *L) -{ - // get this - wxSplashScreen * self = (wxSplashScreen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplashScreen); - // call GetSplashWindow - wxSplashScreenWindow* returns = (wxSplashScreenWindow*)self->GetSplashWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplashScreenWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplashScreen_GetTimeout[] = { &wxluatype_wxSplashScreen, NULL }; -static int LUACALL wxLua_wxSplashScreen_GetTimeout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplashScreen_GetTimeout[1] = {{ wxLua_wxSplashScreen_GetTimeout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplashScreen_GetTimeout }}; -// int GetTimeout() const; -static int LUACALL wxLua_wxSplashScreen_GetTimeout(lua_State *L) -{ - // get this - wxSplashScreen * self = (wxSplashScreen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplashScreen); - // call GetTimeout - int returns = (self->GetTimeout()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSplashScreen) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplashScreen_constructor[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplashScreen_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplashScreen_constructor[1] = {{ wxLua_wxSplashScreen_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 8, s_wxluatypeArray_wxLua_wxSplashScreen_constructor }}; -// wxSplashScreen(const wxBitmap& bitmap, long splashStyle, int milliseconds, wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP); -static int LUACALL wxLua_wxSplashScreen_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxSIMPLE_BORDER | wxFRAME_NO_TASKBAR | wxSTAY_ON_TOP - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxSIMPLE_BORDER | wxFRAME_NO_TASKBAR | wxSTAY_ON_TOP); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 5); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // int milliseconds - int milliseconds = (int)wxlua_getnumbertype(L, 3); - // long splashStyle - long splashStyle = (long)wxlua_getnumbertype(L, 2); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxSplashScreen* returns = new wxSplashScreen(*bitmap, splashStyle, milliseconds, parent, id, *pos, *size, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplashScreen); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSplashScreen) - - - -void wxLua_wxSplashScreen_delete_function(void** p) -{ - wxSplashScreen* o = (wxSplashScreen*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSplashScreen_methods[] = { - { "GetSplashStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplashScreen_GetSplashStyle, 1, NULL }, - { "GetSplashWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplashScreen_GetSplashWindow, 1, NULL }, - { "GetTimeout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplashScreen_GetTimeout, 1, NULL }, - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSplashScreen) - { "wxSplashScreen", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSplashScreen_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxSplashScreen) - - { 0, 0, 0, 0 }, -}; - -int wxSplashScreen_methodCount = sizeof(wxSplashScreen_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSplashScreen - - -#if wxLUA_USE_wxSplashScreen -// --------------------------------------------------------------------------- -// Bind class wxSplashScreenWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSplashScreenWindow' -int wxluatype_wxSplashScreenWindow = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxSplashScreen) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplashScreenWindow_GetBitmap[] = { &wxluatype_wxSplashScreenWindow, NULL }; -static int LUACALL wxLua_wxSplashScreenWindow_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplashScreenWindow_GetBitmap[1] = {{ wxLua_wxSplashScreenWindow_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplashScreenWindow_GetBitmap }}; -// wxBitmap& GetBitmap(); -static int LUACALL wxLua_wxSplashScreenWindow_GetBitmap(lua_State *L) -{ - // get this - wxSplashScreenWindow * self = (wxSplashScreenWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplashScreenWindow); - // call GetBitmap - wxBitmap* returns = (wxBitmap*)&self->GetBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplashScreenWindow_SetBitmap[] = { &wxluatype_wxSplashScreenWindow, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxSplashScreenWindow_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplashScreenWindow_SetBitmap[1] = {{ wxLua_wxSplashScreenWindow_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplashScreenWindow_SetBitmap }}; -// void SetBitmap(const wxBitmap& bitmap); -static int LUACALL wxLua_wxSplashScreenWindow_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxSplashScreenWindow * self = (wxSplashScreenWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplashScreenWindow); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxSplashScreen) - - - -void wxLua_wxSplashScreenWindow_delete_function(void** p) -{ - wxSplashScreenWindow* o = (wxSplashScreenWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSplashScreenWindow_methods[] = { -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxSplashScreen) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplashScreenWindow_GetBitmap, 1, NULL }, - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplashScreenWindow_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxSplashScreen) - - { 0, 0, 0, 0 }, -}; - -int wxSplashScreenWindow_methodCount = sizeof(wxSplashScreenWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSplashScreen - - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard -// --------------------------------------------------------------------------- -// Bind class wxWizard -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWizard' -int wxluatype_wxWizard = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_Create[] = { &wxluatype_wxWizard, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWizard_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_Create[1] = {{ wxLua_wxWizard_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxWizard_Create }}; -// bool Create(wxWindow* parent, int id = -1, const wxString& title = "", const wxBitmap& bitmap = wxNullBitmap, const wxPoint& pos = wxDefaultPosition, long style = wxDEFAULT_DIALOG_STYLE); -static int LUACALL wxLua_wxWizard_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxDEFAULT_DIALOG_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_DIALOG_STYLE); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString title = "" - const wxString title = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int id = -1 - int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call Create - bool returns = (self->Create(parent, id, title, *bitmap, *pos, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_GetCurrentPage[] = { &wxluatype_wxWizard, NULL }; -static int LUACALL wxLua_wxWizard_GetCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_GetCurrentPage[1] = {{ wxLua_wxWizard_GetCurrentPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizard_GetCurrentPage }}; -// wxWizardPage* GetCurrentPage() const; -static int LUACALL wxLua_wxWizard_GetCurrentPage(lua_State *L) -{ - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call GetCurrentPage - wxWizardPage* returns = (wxWizardPage*)self->GetCurrentPage(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizardPage); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_GetPageAreaSizer[] = { &wxluatype_wxWizard, NULL }; -static int LUACALL wxLua_wxWizard_GetPageAreaSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_GetPageAreaSizer[1] = {{ wxLua_wxWizard_GetPageAreaSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizard_GetPageAreaSizer }}; -// virtual wxSizer* GetPageAreaSizer() const; -static int LUACALL wxLua_wxWizard_GetPageAreaSizer(lua_State *L) -{ - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call GetPageAreaSizer - wxSizer* returns = (wxSizer*)self->GetPageAreaSizer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_GetPageSize[] = { &wxluatype_wxWizard, NULL }; -static int LUACALL wxLua_wxWizard_GetPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_GetPageSize[1] = {{ wxLua_wxWizard_GetPageSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizard_GetPageSize }}; -// wxSize GetPageSize() const; -static int LUACALL wxLua_wxWizard_GetPageSize(lua_State *L) -{ - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call GetPageSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPageSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_HasNextPage[] = { &wxluatype_wxWizard, &wxluatype_wxWizardPage, NULL }; -static int LUACALL wxLua_wxWizard_HasNextPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_HasNextPage[1] = {{ wxLua_wxWizard_HasNextPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizard_HasNextPage }}; -// virtual bool HasNextPage(wxWizardPage *page); -static int LUACALL wxLua_wxWizard_HasNextPage(lua_State *L) -{ - // wxWizardPage page - wxWizardPage * page = (wxWizardPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPage); - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call HasNextPage - bool returns = (self->HasNextPage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_HasPrevPage[] = { &wxluatype_wxWizard, &wxluatype_wxWizardPage, NULL }; -static int LUACALL wxLua_wxWizard_HasPrevPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_HasPrevPage[1] = {{ wxLua_wxWizard_HasPrevPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizard_HasPrevPage }}; -// virtual bool HasPrevPage(wxWizardPage *page); -static int LUACALL wxLua_wxWizard_HasPrevPage(lua_State *L) -{ - // wxWizardPage page - wxWizardPage * page = (wxWizardPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPage); - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call HasPrevPage - bool returns = (self->HasPrevPage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_RunWizard[] = { &wxluatype_wxWizard, &wxluatype_wxWizardPage, NULL }; -static int LUACALL wxLua_wxWizard_RunWizard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_RunWizard[1] = {{ wxLua_wxWizard_RunWizard, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizard_RunWizard }}; -// bool RunWizard(wxWizardPage* firstPage); -static int LUACALL wxLua_wxWizard_RunWizard(lua_State *L) -{ - // wxWizardPage firstPage - wxWizardPage * firstPage = (wxWizardPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPage); - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call RunWizard - bool returns = (self->RunWizard(firstPage)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_SetBorder[] = { &wxluatype_wxWizard, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWizard_SetBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_SetBorder[1] = {{ wxLua_wxWizard_SetBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizard_SetBorder }}; -// void SetBorder(int border); -static int LUACALL wxLua_wxWizard_SetBorder(lua_State *L) -{ - // int border - int border = (int)wxlua_getnumbertype(L, 2); - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call SetBorder - self->SetBorder(border); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_SetPageSize[] = { &wxluatype_wxWizard, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWizard_SetPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_SetPageSize[1] = {{ wxLua_wxWizard_SetPageSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizard_SetPageSize }}; -// void SetPageSize(const wxSize& sizePage); -static int LUACALL wxLua_wxWizard_SetPageSize(lua_State *L) -{ - // const wxSize sizePage - const wxSize * sizePage = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWizard * self = (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard); - // call SetPageSize - self->SetPageSize(*sizePage); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizard_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWizard_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_constructor1[1] = {{ wxLua_wxWizard_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxWizard_constructor1 }}; -// wxWizard(wxWindow* parent, int id = -1, const wxString& title = "", const wxBitmap& bitmap = wxNullBitmap, const wxPoint& pos = wxDefaultPosition, long style = wxDEFAULT_DIALOG_STYLE); -static int LUACALL wxLua_wxWizard_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxDEFAULT_DIALOG_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_DIALOG_STYLE); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString title = "" - const wxString title = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int id = -1 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxWizard* returns = new wxWizard(parent, id, title, *bitmap, *pos, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizard); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -static int LUACALL wxLua_wxWizard_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_constructor[1] = {{ wxLua_wxWizard_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxWizard(); -static int LUACALL wxLua_wxWizard_constructor(lua_State *L) -{ - // call constructor - wxWizard* returns = new wxWizard(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizard); - - return 1; -} - - - - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard))||(wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizard_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { wxLua_wxWizard_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxWizard_constructor1 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { wxLua_wxWizard_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxWizard_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxWizard_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard))||(wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -void wxLua_wxWizard_delete_function(void** p) -{ - wxWizard* o = (wxWizard*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWizard_methods[] = { -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - { "GetCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_GetCurrentPage, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "GetPageAreaSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_GetPageAreaSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "GetPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_GetPageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - { "HasNextPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_HasNextPage, 1, NULL }, - { "HasPrevPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_HasPrevPage, 1, NULL }, - { "RunWizard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_RunWizard, 1, NULL }, - { "SetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_SetBorder, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "SetPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizard_SetPageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard))||(wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "wxWizard", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWizard_constructor_overload, s_wxluafunc_wxLua_wxWizard_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard))||(wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - { 0, 0, 0, 0 }, -}; - -int wxWizard_methodCount = sizeof(wxWizard_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard -// --------------------------------------------------------------------------- -// Bind class wxWizardPage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWizardPage' -int wxluatype_wxWizardPage = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPage_GetBitmap[] = { &wxluatype_wxWizardPage, NULL }; -static int LUACALL wxLua_wxWizardPage_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPage_GetBitmap[1] = {{ wxLua_wxWizardPage_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizardPage_GetBitmap }}; -// wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxWizardPage_GetBitmap(lua_State *L) -{ - // get this - wxWizardPage * self = (wxWizardPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardPage); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - - -void wxLua_wxWizardPage_delete_function(void** p) -{ - wxWizardPage* o = (wxWizardPage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWizardPage_methods[] = { -#if (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardPage_GetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - { 0, 0, 0, 0 }, -}; - -int wxWizardPage_methodCount = sizeof(wxWizardPage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard -// --------------------------------------------------------------------------- -// Bind class wxWizardPageSimple -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWizardPageSimple' -int wxluatype_wxWizardPageSimple = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPageSimple_Chain[] = { &wxluatype_wxWizardPageSimple, &wxluatype_wxWizardPageSimple, NULL }; -static int LUACALL wxLua_wxWizardPageSimple_Chain(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPageSimple_Chain[1] = {{ wxLua_wxWizardPageSimple_Chain, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWizardPageSimple_Chain }}; -// static void Chain(wxWizardPageSimple* first, wxWizardPageSimple* second); -static int LUACALL wxLua_wxWizardPageSimple_Chain(lua_State *L) -{ - // wxWizardPageSimple second - wxWizardPageSimple * second = (wxWizardPageSimple *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPageSimple); - // wxWizardPageSimple first - wxWizardPageSimple * first = (wxWizardPageSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardPageSimple); - // call Chain - wxWizardPageSimple::Chain(first, second); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPageSimple_GetNext[] = { &wxluatype_wxWizardPageSimple, NULL }; -static int LUACALL wxLua_wxWizardPageSimple_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPageSimple_GetNext[1] = {{ wxLua_wxWizardPageSimple_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizardPageSimple_GetNext }}; -// virtual wxWizardPage* GetNext() const; -static int LUACALL wxLua_wxWizardPageSimple_GetNext(lua_State *L) -{ - // get this - wxWizardPageSimple * self = (wxWizardPageSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardPageSimple); - // call GetNext - wxWizardPage* returns = (wxWizardPage*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizardPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPageSimple_GetPrev[] = { &wxluatype_wxWizardPageSimple, NULL }; -static int LUACALL wxLua_wxWizardPageSimple_GetPrev(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPageSimple_GetPrev[1] = {{ wxLua_wxWizardPageSimple_GetPrev, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizardPageSimple_GetPrev }}; -// virtual wxWizardPage* GetPrev() const; -static int LUACALL wxLua_wxWizardPageSimple_GetPrev(lua_State *L) -{ - // get this - wxWizardPageSimple * self = (wxWizardPageSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardPageSimple); - // call GetPrev - wxWizardPage* returns = (wxWizardPage*)self->GetPrev(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizardPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPageSimple_SetNext[] = { &wxluatype_wxWizardPageSimple, &wxluatype_wxWizardPage, NULL }; -static int LUACALL wxLua_wxWizardPageSimple_SetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPageSimple_SetNext[1] = {{ wxLua_wxWizardPageSimple_SetNext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizardPageSimple_SetNext }}; -// void SetNext(wxWizardPage* next); -static int LUACALL wxLua_wxWizardPageSimple_SetNext(lua_State *L) -{ - // wxWizardPage next - wxWizardPage * next = (wxWizardPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPage); - // get this - wxWizardPageSimple * self = (wxWizardPageSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardPageSimple); - // call SetNext - self->SetNext(next); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPageSimple_SetPrev[] = { &wxluatype_wxWizardPageSimple, &wxluatype_wxWizardPage, NULL }; -static int LUACALL wxLua_wxWizardPageSimple_SetPrev(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPageSimple_SetPrev[1] = {{ wxLua_wxWizardPageSimple_SetPrev, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWizardPageSimple_SetPrev }}; -// void SetPrev(wxWizardPage* prev); -static int LUACALL wxLua_wxWizardPageSimple_SetPrev(lua_State *L) -{ - // wxWizardPage prev - wxWizardPage * prev = (wxWizardPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPage); - // get this - wxWizardPageSimple * self = (wxWizardPageSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardPageSimple); - // call SetPrev - self->SetPrev(prev); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardPageSimple_constructor[] = { &wxluatype_wxWizard, &wxluatype_wxWizardPage, &wxluatype_wxWizardPage, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxWizardPageSimple_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardPageSimple_constructor[1] = {{ wxLua_wxWizardPageSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxWizardPageSimple_constructor }}; -// wxWizardPageSimple(wxWizard* parent = NULL, wxWizardPage* prev = NULL, wxWizardPage* next = NULL, const wxBitmap& bitmap = wxNullBitmap); -static int LUACALL wxLua_wxWizardPageSimple_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // wxWizardPage next = NULL - wxWizardPage * next = (argCount >= 3 ? (wxWizardPage *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWizardPage) : NULL); - // wxWizardPage prev = NULL - wxWizardPage * prev = (argCount >= 2 ? (wxWizardPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWizardPage) : NULL); - // wxWizard parent = NULL - wxWizard * parent = (argCount >= 1 ? (wxWizard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizard) : NULL); - // call constructor - wxWizardPageSimple* returns = new wxWizardPageSimple(parent, prev, next, *bitmap); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizardPageSimple); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - - -void wxLua_wxWizardPageSimple_delete_function(void** p) -{ - wxWizardPageSimple* o = (wxWizardPageSimple*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWizardPageSimple_methods[] = { - { "Chain", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWizardPageSimple_Chain, 1, NULL }, - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardPageSimple_GetNext, 1, NULL }, - { "GetPrev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardPageSimple_GetPrev, 1, NULL }, - { "SetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardPageSimple_SetNext, 1, NULL }, - { "SetPrev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardPageSimple_SetPrev, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - { "wxWizardPageSimple", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWizardPageSimple_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_WIZARDDLG && wxLUA_USE_wxWizard) - - { 0, 0, 0, 0 }, -}; - -int wxWizardPageSimple_methodCount = sizeof(wxWizardPageSimple_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard -// --------------------------------------------------------------------------- -// Bind class wxWizardEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWizardEvent' -int wxluatype_wxWizardEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardEvent_GetDirection[] = { &wxluatype_wxWizardEvent, NULL }; -static int LUACALL wxLua_wxWizardEvent_GetDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardEvent_GetDirection[1] = {{ wxLua_wxWizardEvent_GetDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizardEvent_GetDirection }}; -// bool GetDirection() const; -static int LUACALL wxLua_wxWizardEvent_GetDirection(lua_State *L) -{ - // get this - wxWizardEvent * self = (wxWizardEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardEvent); - // call GetDirection - bool returns = (self->GetDirection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardEvent_GetPage[] = { &wxluatype_wxWizardEvent, NULL }; -static int LUACALL wxLua_wxWizardEvent_GetPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardEvent_GetPage[1] = {{ wxLua_wxWizardEvent_GetPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWizardEvent_GetPage }}; -// wxWizardPage* GetPage() const; -static int LUACALL wxLua_wxWizardEvent_GetPage(lua_State *L) -{ - // get this - wxWizardEvent * self = (wxWizardEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWizardEvent); - // call GetPage - wxWizardPage* returns = (wxWizardPage*)self->GetPage(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizardPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardEvent_delete[] = { &wxluatype_wxWizardEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWizardEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWizardEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWizardEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWizardEvent_constructor[1] = {{ wxLua_wxWizardEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxWizardEvent_constructor }}; -// wxWizardEvent(wxEventType type = wxEVT_NULL, int id = -1, bool direction = true); -static int LUACALL wxLua_wxWizardEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool direction = true - bool direction = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int id = -1 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxWizardEvent* returns = new wxWizardEvent(type, id, direction); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWizardEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWizardEvent); - - return 1; -} - - - - -void wxLua_wxWizardEvent_delete_function(void** p) -{ - wxWizardEvent* o = (wxWizardEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWizardEvent_methods[] = { - { "GetDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardEvent_GetDirection, 1, NULL }, - { "GetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWizardEvent_GetPage, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWizardEvent_delete, 1, NULL }, - { "wxWizardEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWizardEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWizardEvent_methodCount = sizeof(wxWizardEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) -// --------------------------------------------------------------------------- -// Bind class wxTaskBarIcon -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTaskBarIcon' -int wxluatype_wxTaskBarIcon = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIcon_IsIconInstalled[] = { &wxluatype_wxTaskBarIcon, NULL }; -static int LUACALL wxLua_wxTaskBarIcon_IsIconInstalled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_IsIconInstalled[1] = {{ wxLua_wxTaskBarIcon_IsIconInstalled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTaskBarIcon_IsIconInstalled }}; -// bool IsIconInstalled(); -static int LUACALL wxLua_wxTaskBarIcon_IsIconInstalled(lua_State *L) -{ - // get this - wxTaskBarIcon * self = (wxTaskBarIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTaskBarIcon); - // call IsIconInstalled - bool returns = (self->IsIconInstalled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIcon_IsOk[] = { &wxluatype_wxTaskBarIcon, NULL }; -static int LUACALL wxLua_wxTaskBarIcon_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_IsOk[1] = {{ wxLua_wxTaskBarIcon_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTaskBarIcon_IsOk }}; -// %wxchkver_2_4 bool IsOk(); -static int LUACALL wxLua_wxTaskBarIcon_IsOk(lua_State *L) -{ - // get this - wxTaskBarIcon * self = (wxTaskBarIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTaskBarIcon); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIcon_PopupMenu[] = { &wxluatype_wxTaskBarIcon, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxTaskBarIcon_PopupMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_PopupMenu[1] = {{ wxLua_wxTaskBarIcon_PopupMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTaskBarIcon_PopupMenu }}; -// virtual bool PopupMenu(wxMenu* menu); -static int LUACALL wxLua_wxTaskBarIcon_PopupMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxTaskBarIcon * self = (wxTaskBarIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTaskBarIcon); - // call PopupMenu - bool returns = (self->PopupMenu(menu)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIcon_RemoveIcon[] = { &wxluatype_wxTaskBarIcon, NULL }; -static int LUACALL wxLua_wxTaskBarIcon_RemoveIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_RemoveIcon[1] = {{ wxLua_wxTaskBarIcon_RemoveIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTaskBarIcon_RemoveIcon }}; -// bool RemoveIcon(); -static int LUACALL wxLua_wxTaskBarIcon_RemoveIcon(lua_State *L) -{ - // get this - wxTaskBarIcon * self = (wxTaskBarIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTaskBarIcon); - // call RemoveIcon - bool returns = (self->RemoveIcon()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIcon_SetIcon[] = { &wxluatype_wxTaskBarIcon, &wxluatype_wxIcon, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTaskBarIcon_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_SetIcon[1] = {{ wxLua_wxTaskBarIcon_SetIcon, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTaskBarIcon_SetIcon }}; -// bool SetIcon(const wxIcon& icon, const wxString& tooltip); -static int LUACALL wxLua_wxTaskBarIcon_SetIcon(lua_State *L) -{ - // const wxString tooltip - const wxString tooltip = wxlua_getwxStringtype(L, 3); - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxTaskBarIcon * self = (wxTaskBarIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTaskBarIcon); - // call SetIcon - bool returns = (self->SetIcon(*icon, tooltip)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIcon_delete[] = { &wxluatype_wxTaskBarIcon, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTaskBarIcon_delete }}; - -static int LUACALL wxLua_wxTaskBarIcon_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIcon_constructor[1] = {{ wxLua_wxTaskBarIcon_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTaskBarIcon(); -static int LUACALL wxLua_wxTaskBarIcon_constructor(lua_State *L) -{ - // call constructor - wxTaskBarIcon* returns = new wxTaskBarIcon(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTaskBarIcon); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTaskBarIcon); - - return 1; -} - - - - -void wxLua_wxTaskBarIcon_delete_function(void** p) -{ - wxTaskBarIcon* o = (wxTaskBarIcon*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTaskBarIcon_methods[] = { - { "IsIconInstalled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTaskBarIcon_IsIconInstalled, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTaskBarIcon_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - { "PopupMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTaskBarIcon_PopupMenu, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - - { "RemoveIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTaskBarIcon_RemoveIcon, 1, NULL }, - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTaskBarIcon_SetIcon, 1, NULL }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON )) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTaskBarIcon_delete, 1, NULL }, - { "wxTaskBarIcon", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTaskBarIcon_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTaskBarIcon_methodCount = sizeof(wxTaskBarIcon_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) -// --------------------------------------------------------------------------- -// Bind class wxTaskBarIconEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTaskBarIconEvent' -int wxluatype_wxTaskBarIconEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIconEvent_delete[] = { &wxluatype_wxTaskBarIconEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIconEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTaskBarIconEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTaskBarIconEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxTaskBarIcon, NULL }; -static int LUACALL wxLua_wxTaskBarIconEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTaskBarIconEvent_constructor[1] = {{ wxLua_wxTaskBarIconEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxTaskBarIconEvent_constructor }}; -// wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon); -static int LUACALL wxLua_wxTaskBarIconEvent_constructor(lua_State *L) -{ - // wxTaskBarIcon tbIcon - wxTaskBarIcon * tbIcon = (wxTaskBarIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTaskBarIcon); - // wxEventType evtType - wxEventType evtType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxTaskBarIconEvent* returns = new wxTaskBarIconEvent(evtType, tbIcon); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTaskBarIconEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTaskBarIconEvent); - - return 1; -} - - - - -void wxLua_wxTaskBarIconEvent_delete_function(void** p) -{ - wxTaskBarIconEvent* o = (wxTaskBarIconEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTaskBarIconEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTaskBarIconEvent_delete, 1, NULL }, - { "wxTaskBarIconEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTaskBarIconEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTaskBarIconEvent_methodCount = sizeof(wxTaskBarIconEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK -// --------------------------------------------------------------------------- -// Bind class wxJoystick -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxJoystick' -int wxluatype_wxJoystick = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetButtonState[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetButtonState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetButtonState[1] = {{ wxLua_wxJoystick_GetButtonState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetButtonState }}; -// int GetButtonState() const; -static int LUACALL wxLua_wxJoystick_GetButtonState(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetButtonState - int returns = (self->GetButtonState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetManufacturerId[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetManufacturerId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetManufacturerId[1] = {{ wxLua_wxJoystick_GetManufacturerId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetManufacturerId }}; -// int GetManufacturerId() const; -static int LUACALL wxLua_wxJoystick_GetManufacturerId(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetManufacturerId - int returns = (self->GetManufacturerId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetMovementThreshold[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetMovementThreshold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetMovementThreshold[1] = {{ wxLua_wxJoystick_GetMovementThreshold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetMovementThreshold }}; -// int GetMovementThreshold() const; -static int LUACALL wxLua_wxJoystick_GetMovementThreshold(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetMovementThreshold - int returns = (self->GetMovementThreshold()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetNumberAxes[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetNumberAxes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetNumberAxes[1] = {{ wxLua_wxJoystick_GetNumberAxes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetNumberAxes }}; -// int GetNumberAxes() const; -static int LUACALL wxLua_wxJoystick_GetNumberAxes(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetNumberAxes - int returns = (self->GetNumberAxes()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetNumberButtons[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetNumberButtons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetNumberButtons[1] = {{ wxLua_wxJoystick_GetNumberButtons, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetNumberButtons }}; -// int GetNumberButtons() const; -static int LUACALL wxLua_wxJoystick_GetNumberButtons(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetNumberButtons - int returns = (self->GetNumberButtons()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetNumberJoysticks1[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetNumberJoysticks1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks1[1] = {{ wxLua_wxJoystick_GetNumberJoysticks1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetNumberJoysticks1 }}; -// !%wxchkver_2_8 int GetNumberJoysticks() const; -static int LUACALL wxLua_wxJoystick_GetNumberJoysticks1(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetNumberJoysticks - int returns = (self->GetNumberJoysticks()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) -static int LUACALL wxLua_wxJoystick_GetNumberJoysticks(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks[1] = {{ wxLua_wxJoystick_GetNumberJoysticks, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_2_8 static int GetNumberJoysticks() const; -static int LUACALL wxLua_wxJoystick_GetNumberJoysticks(lua_State *L) -{ - // call GetNumberJoysticks - int returns = (wxJoystick::GetNumberJoysticks()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetPOVCTSPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetPOVCTSPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetPOVCTSPosition[1] = {{ wxLua_wxJoystick_GetPOVCTSPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetPOVCTSPosition }}; -// int GetPOVCTSPosition() const; -static int LUACALL wxLua_wxJoystick_GetPOVCTSPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetPOVCTSPosition - int returns = (self->GetPOVCTSPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetPOVPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetPOVPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetPOVPosition[1] = {{ wxLua_wxJoystick_GetPOVPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetPOVPosition }}; -// int GetPOVPosition() const; -static int LUACALL wxLua_wxJoystick_GetPOVPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetPOVPosition - int returns = (self->GetPOVPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetPollingMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetPollingMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetPollingMax[1] = {{ wxLua_wxJoystick_GetPollingMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetPollingMax }}; -// int GetPollingMax() const; -static int LUACALL wxLua_wxJoystick_GetPollingMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetPollingMax - int returns = (self->GetPollingMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetPollingMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetPollingMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetPollingMin[1] = {{ wxLua_wxJoystick_GetPollingMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetPollingMin }}; -// int GetPollingMin() const; -static int LUACALL wxLua_wxJoystick_GetPollingMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetPollingMin - int returns = (self->GetPollingMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetPosition[1] = {{ wxLua_wxJoystick_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxJoystick_GetPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetProductId[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetProductId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetProductId[1] = {{ wxLua_wxJoystick_GetProductId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetProductId }}; -// int GetProductId() const; -static int LUACALL wxLua_wxJoystick_GetProductId(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetProductId - int returns = (self->GetProductId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetProductName[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetProductName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetProductName[1] = {{ wxLua_wxJoystick_GetProductName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetProductName }}; -// wxString GetProductName() const; -static int LUACALL wxLua_wxJoystick_GetProductName(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetProductName - wxString returns = (self->GetProductName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetRudderMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetRudderMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetRudderMax[1] = {{ wxLua_wxJoystick_GetRudderMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetRudderMax }}; -// int GetRudderMax() const; -static int LUACALL wxLua_wxJoystick_GetRudderMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetRudderMax - int returns = (self->GetRudderMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetRudderMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetRudderMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetRudderMin[1] = {{ wxLua_wxJoystick_GetRudderMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetRudderMin }}; -// int GetRudderMin() const; -static int LUACALL wxLua_wxJoystick_GetRudderMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetRudderMin - int returns = (self->GetRudderMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetRudderPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetRudderPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetRudderPosition[1] = {{ wxLua_wxJoystick_GetRudderPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetRudderPosition }}; -// int GetRudderPosition() const; -static int LUACALL wxLua_wxJoystick_GetRudderPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetRudderPosition - int returns = (self->GetRudderPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetUMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetUMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetUMax[1] = {{ wxLua_wxJoystick_GetUMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetUMax }}; -// int GetUMax() const; -static int LUACALL wxLua_wxJoystick_GetUMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetUMax - int returns = (self->GetUMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetUMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetUMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetUMin[1] = {{ wxLua_wxJoystick_GetUMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetUMin }}; -// int GetUMin() const; -static int LUACALL wxLua_wxJoystick_GetUMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetUMin - int returns = (self->GetUMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetUPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetUPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetUPosition[1] = {{ wxLua_wxJoystick_GetUPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetUPosition }}; -// int GetUPosition() const; -static int LUACALL wxLua_wxJoystick_GetUPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetUPosition - int returns = (self->GetUPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetVMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetVMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetVMax[1] = {{ wxLua_wxJoystick_GetVMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetVMax }}; -// int GetVMax() const; -static int LUACALL wxLua_wxJoystick_GetVMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetVMax - int returns = (self->GetVMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetVMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetVMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetVMin[1] = {{ wxLua_wxJoystick_GetVMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetVMin }}; -// int GetVMin() const; -static int LUACALL wxLua_wxJoystick_GetVMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetVMin - int returns = (self->GetVMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetVPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetVPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetVPosition[1] = {{ wxLua_wxJoystick_GetVPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetVPosition }}; -// int GetVPosition() const; -static int LUACALL wxLua_wxJoystick_GetVPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetVPosition - int returns = (self->GetVPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetXMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetXMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetXMax[1] = {{ wxLua_wxJoystick_GetXMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetXMax }}; -// int GetXMax() const; -static int LUACALL wxLua_wxJoystick_GetXMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetXMax - int returns = (self->GetXMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetXMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetXMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetXMin[1] = {{ wxLua_wxJoystick_GetXMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetXMin }}; -// int GetXMin() const; -static int LUACALL wxLua_wxJoystick_GetXMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetXMin - int returns = (self->GetXMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetYMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetYMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetYMax[1] = {{ wxLua_wxJoystick_GetYMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetYMax }}; -// int GetYMax() const; -static int LUACALL wxLua_wxJoystick_GetYMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetYMax - int returns = (self->GetYMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetYMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetYMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetYMin[1] = {{ wxLua_wxJoystick_GetYMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetYMin }}; -// int GetYMin() const; -static int LUACALL wxLua_wxJoystick_GetYMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetYMin - int returns = (self->GetYMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetZMax[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetZMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetZMax[1] = {{ wxLua_wxJoystick_GetZMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetZMax }}; -// int GetZMax() const; -static int LUACALL wxLua_wxJoystick_GetZMax(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetZMax - int returns = (self->GetZMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetZMin[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetZMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetZMin[1] = {{ wxLua_wxJoystick_GetZMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetZMin }}; -// int GetZMin() const; -static int LUACALL wxLua_wxJoystick_GetZMin(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetZMin - int returns = (self->GetZMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_GetZPosition[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_GetZPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetZPosition[1] = {{ wxLua_wxJoystick_GetZPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetZPosition }}; -// int GetZPosition() const; -static int LUACALL wxLua_wxJoystick_GetZPosition(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call GetZPosition - int returns = (self->GetZPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasPOV[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasPOV(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasPOV[1] = {{ wxLua_wxJoystick_HasPOV, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasPOV }}; -// bool HasPOV() const; -static int LUACALL wxLua_wxJoystick_HasPOV(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasPOV - bool returns = (self->HasPOV()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasPOV4Dir[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasPOV4Dir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasPOV4Dir[1] = {{ wxLua_wxJoystick_HasPOV4Dir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasPOV4Dir }}; -// bool HasPOV4Dir() const; -static int LUACALL wxLua_wxJoystick_HasPOV4Dir(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasPOV4Dir - bool returns = (self->HasPOV4Dir()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasPOVCTS[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasPOVCTS(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasPOVCTS[1] = {{ wxLua_wxJoystick_HasPOVCTS, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasPOVCTS }}; -// bool HasPOVCTS() const; -static int LUACALL wxLua_wxJoystick_HasPOVCTS(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasPOVCTS - bool returns = (self->HasPOVCTS()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasRudder[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasRudder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasRudder[1] = {{ wxLua_wxJoystick_HasRudder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasRudder }}; -// bool HasRudder() const; -static int LUACALL wxLua_wxJoystick_HasRudder(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasRudder - bool returns = (self->HasRudder()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasU[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasU(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasU[1] = {{ wxLua_wxJoystick_HasU, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasU }}; -// bool HasU() const; -static int LUACALL wxLua_wxJoystick_HasU(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasU - bool returns = (self->HasU()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasV[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasV(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasV[1] = {{ wxLua_wxJoystick_HasV, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasV }}; -// bool HasV() const; -static int LUACALL wxLua_wxJoystick_HasV(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasV - bool returns = (self->HasV()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_HasZ[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_HasZ(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_HasZ[1] = {{ wxLua_wxJoystick_HasZ, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_HasZ }}; -// bool HasZ() const; -static int LUACALL wxLua_wxJoystick_HasZ(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call HasZ - bool returns = (self->HasZ()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_IsOk[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_IsOk[1] = {{ wxLua_wxJoystick_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxJoystick_IsOk(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_ReleaseCapture[] = { &wxluatype_wxJoystick, NULL }; -static int LUACALL wxLua_wxJoystick_ReleaseCapture(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_ReleaseCapture[1] = {{ wxLua_wxJoystick_ReleaseCapture, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_ReleaseCapture }}; -// bool ReleaseCapture(); -static int LUACALL wxLua_wxJoystick_ReleaseCapture(lua_State *L) -{ - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call ReleaseCapture - bool returns = (self->ReleaseCapture()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_SetCapture[] = { &wxluatype_wxJoystick, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystick_SetCapture(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_SetCapture[1] = {{ wxLua_wxJoystick_SetCapture, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxJoystick_SetCapture }}; -// bool SetCapture(wxWindow* win, int pollingFreq = 0); -static int LUACALL wxLua_wxJoystick_SetCapture(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pollingFreq = 0 - int pollingFreq = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call SetCapture - bool returns = (self->SetCapture(win, pollingFreq)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_SetMovementThreshold[] = { &wxluatype_wxJoystick, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystick_SetMovementThreshold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_SetMovementThreshold[1] = {{ wxLua_wxJoystick_SetMovementThreshold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxJoystick_SetMovementThreshold }}; -// void SetMovementThreshold(int threshold); -static int LUACALL wxLua_wxJoystick_SetMovementThreshold(lua_State *L) -{ - // int threshold - int threshold = (int)wxlua_getnumbertype(L, 2); - // get this - wxJoystick * self = (wxJoystick *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystick); - // call SetMovementThreshold - self->SetMovementThreshold(threshold); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_delete[] = { &wxluatype_wxJoystick, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystick_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystick_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_constructor[1] = {{ wxLua_wxJoystick_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxJoystick_constructor }}; -// wxJoystick(int joystick = wxJOYSTICK1); -static int LUACALL wxLua_wxJoystick_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int joystick = wxJOYSTICK1 - int joystick = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxJOYSTICK1); - // call constructor - wxJoystick* returns = new wxJoystick(joystick); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxJoystick); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxJoystick); - - return 1; -} - - - - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks_overload[] = -{ - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) - { wxLua_wxJoystick_GetNumberJoysticks1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystick_GetNumberJoysticks1 }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) - { wxLua_wxJoystick_GetNumberJoysticks, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) -}; -static int s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks_overload_count = sizeof(s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK)) - -void wxLua_wxJoystick_delete_function(void** p) -{ - wxJoystick* o = (wxJoystick*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxJoystick_methods[] = { - { "GetButtonState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetButtonState, 1, NULL }, - { "GetManufacturerId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetManufacturerId, 1, NULL }, - { "GetMovementThreshold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetMovementThreshold, 1, NULL }, - { "GetNumberAxes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetNumberAxes, 1, NULL }, - { "GetNumberButtons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetNumberButtons, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK)) - { "GetNumberJoysticks", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks_overload, s_wxluafunc_wxLua_wxJoystick_GetNumberJoysticks_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK)) - - { "GetPOVCTSPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetPOVCTSPosition, 1, NULL }, - { "GetPOVPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetPOVPosition, 1, NULL }, - { "GetPollingMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetPollingMax, 1, NULL }, - { "GetPollingMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetPollingMin, 1, NULL }, - -#if (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) - - { "GetProductId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetProductId, 1, NULL }, - { "GetProductName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetProductName, 1, NULL }, - { "GetRudderMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetRudderMax, 1, NULL }, - { "GetRudderMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetRudderMin, 1, NULL }, - { "GetRudderPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetRudderPosition, 1, NULL }, - { "GetUMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetUMax, 1, NULL }, - { "GetUMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetUMin, 1, NULL }, - { "GetUPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetUPosition, 1, NULL }, - { "GetVMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetVMax, 1, NULL }, - { "GetVMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetVMin, 1, NULL }, - { "GetVPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetVPosition, 1, NULL }, - { "GetXMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetXMax, 1, NULL }, - { "GetXMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetXMin, 1, NULL }, - { "GetYMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetYMax, 1, NULL }, - { "GetYMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetYMin, 1, NULL }, - { "GetZMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetZMax, 1, NULL }, - { "GetZMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetZMin, 1, NULL }, - { "GetZPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_GetZPosition, 1, NULL }, - { "HasPOV", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasPOV, 1, NULL }, - { "HasPOV4Dir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasPOV4Dir, 1, NULL }, - { "HasPOVCTS", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasPOVCTS, 1, NULL }, - { "HasRudder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasRudder, 1, NULL }, - { "HasU", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasU, 1, NULL }, - { "HasV", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasV, 1, NULL }, - { "HasZ", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_HasZ, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_IsOk, 1, NULL }, - { "ReleaseCapture", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_ReleaseCapture, 1, NULL }, - { "SetCapture", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_SetCapture, 1, NULL }, - { "SetMovementThreshold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystick_SetMovementThreshold, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxJoystick_delete, 1, NULL }, - { "wxJoystick", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxJoystick_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxJoystick_methodCount = sizeof(wxJoystick_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK -// --------------------------------------------------------------------------- -// Bind class wxJoystickEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxJoystickEvent' -int wxluatype_wxJoystickEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_ButtonDown[] = { &wxluatype_wxJoystickEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystickEvent_ButtonDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_ButtonDown[1] = {{ wxLua_wxJoystickEvent_ButtonDown, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxJoystickEvent_ButtonDown }}; -// bool ButtonDown(int button = wxJOY_BUTTON_ANY) const; -static int LUACALL wxLua_wxJoystickEvent_ButtonDown(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int button = wxJOY_BUTTON_ANY - int button = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxJOY_BUTTON_ANY); - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call ButtonDown - bool returns = (self->ButtonDown(button)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_ButtonIsDown[] = { &wxluatype_wxJoystickEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystickEvent_ButtonIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_ButtonIsDown[1] = {{ wxLua_wxJoystickEvent_ButtonIsDown, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxJoystickEvent_ButtonIsDown }}; -// bool ButtonIsDown(int button = wxJOY_BUTTON_ANY) const; -static int LUACALL wxLua_wxJoystickEvent_ButtonIsDown(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int button = wxJOY_BUTTON_ANY - int button = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxJOY_BUTTON_ANY); - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call ButtonIsDown - bool returns = (self->ButtonIsDown(button)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_ButtonUp[] = { &wxluatype_wxJoystickEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystickEvent_ButtonUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_ButtonUp[1] = {{ wxLua_wxJoystickEvent_ButtonUp, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxJoystickEvent_ButtonUp }}; -// bool ButtonUp(int button = wxJOY_BUTTON_ANY) const; -static int LUACALL wxLua_wxJoystickEvent_ButtonUp(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int button = wxJOY_BUTTON_ANY - int button = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxJOY_BUTTON_ANY); - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call ButtonUp - bool returns = (self->ButtonUp(button)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_GetButtonChange[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_GetButtonChange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_GetButtonChange[1] = {{ wxLua_wxJoystickEvent_GetButtonChange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_GetButtonChange }}; -// int GetButtonChange() const; -static int LUACALL wxLua_wxJoystickEvent_GetButtonChange(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call GetButtonChange - int returns = (self->GetButtonChange()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_GetButtonState[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_GetButtonState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_GetButtonState[1] = {{ wxLua_wxJoystickEvent_GetButtonState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_GetButtonState }}; -// int GetButtonState() const; -static int LUACALL wxLua_wxJoystickEvent_GetButtonState(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call GetButtonState - int returns = (self->GetButtonState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_GetJoystick[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_GetJoystick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_GetJoystick[1] = {{ wxLua_wxJoystickEvent_GetJoystick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_GetJoystick }}; -// int GetJoystick() const; -static int LUACALL wxLua_wxJoystickEvent_GetJoystick(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call GetJoystick - int returns = (self->GetJoystick()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_GetPosition[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_GetPosition[1] = {{ wxLua_wxJoystickEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxJoystickEvent_GetPosition(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_GetZPosition[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_GetZPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_GetZPosition[1] = {{ wxLua_wxJoystickEvent_GetZPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_GetZPosition }}; -// int GetZPosition() const; -static int LUACALL wxLua_wxJoystickEvent_GetZPosition(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call GetZPosition - int returns = (self->GetZPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_IsButton[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_IsButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_IsButton[1] = {{ wxLua_wxJoystickEvent_IsButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_IsButton }}; -// bool IsButton() const; -static int LUACALL wxLua_wxJoystickEvent_IsButton(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call IsButton - bool returns = (self->IsButton()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_IsMove[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_IsMove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_IsMove[1] = {{ wxLua_wxJoystickEvent_IsMove, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_IsMove }}; -// bool IsMove() const; -static int LUACALL wxLua_wxJoystickEvent_IsMove(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call IsMove - bool returns = (self->IsMove()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_IsZMove[] = { &wxluatype_wxJoystickEvent, NULL }; -static int LUACALL wxLua_wxJoystickEvent_IsZMove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_IsZMove[1] = {{ wxLua_wxJoystickEvent_IsZMove, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_IsZMove }}; -// bool IsZMove() const; -static int LUACALL wxLua_wxJoystickEvent_IsZMove(lua_State *L) -{ - // get this - wxJoystickEvent * self = (wxJoystickEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxJoystickEvent); - // call IsZMove - bool returns = (self->IsZMove()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_delete[] = { &wxluatype_wxJoystickEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxJoystickEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJoystickEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxJoystickEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJoystickEvent_constructor[1] = {{ wxLua_wxJoystickEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxJoystickEvent_constructor }}; -// wxJoystickEvent(wxEventType eventType = wxEVT_NULL, int state = 0, int joystick = wxJOYSTICK1, int change = 0); -static int LUACALL wxLua_wxJoystickEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int change = 0 - int change = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int joystick = wxJOYSTICK1 - int joystick = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxJOYSTICK1); - // int state = 0 - int state = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxJoystickEvent* returns = new wxJoystickEvent(eventType, state, joystick, change); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxJoystickEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxJoystickEvent); - - return 1; -} - - - - -void wxLua_wxJoystickEvent_delete_function(void** p) -{ - wxJoystickEvent* o = (wxJoystickEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxJoystickEvent_methods[] = { - { "ButtonDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_ButtonDown, 1, NULL }, - { "ButtonIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_ButtonIsDown, 1, NULL }, - { "ButtonUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_ButtonUp, 1, NULL }, - { "GetButtonChange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_GetButtonChange, 1, NULL }, - { "GetButtonState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_GetButtonState, 1, NULL }, - { "GetJoystick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_GetJoystick, 1, NULL }, - -#if (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxJoystick && wxUSE_JOYSTICK) && (wxLUA_USE_wxPointSizeRect) - - { "GetZPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_GetZPosition, 1, NULL }, - { "IsButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_IsButton, 1, NULL }, - { "IsMove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_IsMove, 1, NULL }, - { "IsZMove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxJoystickEvent_IsZMove, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxJoystickEvent_delete, 1, NULL }, - { "wxJoystickEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxJoystickEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxJoystickEvent_methodCount = sizeof(wxJoystickEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - - -#if (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) -// --------------------------------------------------------------------------- -// Bind class wxSound -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSound' -int wxluatype_wxSound = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSound_Create[] = { &wxluatype_wxSound, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSound_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_Create[1] = {{ wxLua_wxSound_Create, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSound_Create }}; -// bool Create(const wxString& fileName, bool isResource = false); -static int LUACALL wxLua_wxSound_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isResource = false - bool isResource = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxSound * self = (wxSound *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSound); - // call Create - bool returns = (self->Create(fileName, isResource)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSound_IsOk[] = { &wxluatype_wxSound, NULL }; -static int LUACALL wxLua_wxSound_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_IsOk[1] = {{ wxLua_wxSound_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSound_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxSound_IsOk(lua_State *L) -{ - // get this - wxSound * self = (wxSound *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSound); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!defined(__WXMSW__)) && ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) -static int LUACALL wxLua_wxSound_IsPlaying(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_IsPlaying[1] = {{ wxLua_wxSound_IsPlaying, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// !%win static bool IsPlaying() const; -static int LUACALL wxLua_wxSound_IsPlaying(lua_State *L) -{ - // call IsPlaying - bool returns = (wxSound::IsPlaying()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!defined(__WXMSW__)) && ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSound_Play1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSound_Play1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_Play1[1] = {{ wxLua_wxSound_Play1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSound_Play1 }}; -// static bool Play(const wxString& filename, unsigned flags = wxSOUND_ASYNC); -static int LUACALL wxLua_wxSound_Play1(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call Play - bool returns = (wxSound::Play(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSound_Play[] = { &wxluatype_wxSound, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSound_Play(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_Play[1] = {{ wxLua_wxSound_Play, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSound_Play }}; -// bool Play(unsigned int flags = wxSOUND_ASYNC) const; -static int LUACALL wxLua_wxSound_Play(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int flags = wxSOUND_ASYNC - unsigned int flags = (argCount >= 2 ? (unsigned int)wxlua_getuintegertype(L, 2) : wxSOUND_ASYNC); - // get this - wxSound * self = (wxSound *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSound); - // call Play - bool returns = (self->Play(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxSound_Stop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_Stop[1] = {{ wxLua_wxSound_Stop, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void Stop(); -static int LUACALL wxLua_wxSound_Stop(lua_State *L) -{ - // call Stop - wxSound::Stop(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSound_delete[] = { &wxluatype_wxSound, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSound_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSound_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSound_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_constructor1[1] = {{ wxLua_wxSound_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxSound_constructor1 }}; -// wxSound(const wxString& fileName, bool isResource = false); -static int LUACALL wxLua_wxSound_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isResource = false - bool isResource = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 1); - // call constructor - wxSound* returns = new wxSound(fileName, isResource); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSound); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSound); - - return 1; -} - -static int LUACALL wxLua_wxSound_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_constructor[1] = {{ wxLua_wxSound_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSound(); -static int LUACALL wxLua_wxSound_constructor(lua_State *L) -{ - // call constructor - wxSound* returns = new wxSound(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSound); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSound); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_Play_overload[] = -{ - { wxLua_wxSound_Play1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSound_Play1 }, - { wxLua_wxSound_Play, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSound_Play }, -}; -static int s_wxluafunc_wxLua_wxSound_Play_overload_count = sizeof(s_wxluafunc_wxLua_wxSound_Play_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSound_constructor_overload[] = -{ - { wxLua_wxSound_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxSound_constructor1 }, - { wxLua_wxSound_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSound_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSound_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - -void wxLua_wxSound_delete_function(void** p) -{ - wxSound* o = (wxSound*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSound_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSound_Create, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSound_IsOk, 1, NULL }, - -#if (!defined(__WXMSW__)) && ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - { "IsPlaying", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSound_IsPlaying, 1, NULL }, -#endif // (!defined(__WXMSW__)) && ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - -#if ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - { "Play", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSound_Play_overload, s_wxluafunc_wxLua_wxSound_Play_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - - { "Stop", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSound_Stop, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSound_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - { "wxSound", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSound_constructor_overload, s_wxluafunc_wxLua_wxSound_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave)) - - { 0, 0, 0, 0 }, -}; - -int wxSound_methodCount = sizeof(wxSound_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - - -#if (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) -// --------------------------------------------------------------------------- -// Bind class wxWave -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWave' -int wxluatype_wxWave = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWave_Create[] = { &wxluatype_wxWave, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWave_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_Create[1] = {{ wxLua_wxWave_Create, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWave_Create }}; -// bool Create(const wxString& fileName, bool isResource = false); -static int LUACALL wxLua_wxWave_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isResource = false - bool isResource = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxWave * self = (wxWave *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWave); - // call Create - bool returns = (self->Create(fileName, isResource)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWave_IsOk[] = { &wxluatype_wxWave, NULL }; -static int LUACALL wxLua_wxWave_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_IsOk[1] = {{ wxLua_wxWave_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWave_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxWave_IsOk(lua_State *L) -{ - // get this - wxWave * self = (wxWave *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWave); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWave_Play1[] = { &wxluatype_wxWave, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWave_Play1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_Play1[1] = {{ wxLua_wxWave_Play1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWave_Play1 }}; -// %wxchkver_2_6 bool Play(unsigned int flags = wxSOUND_ASYNC) const; -static int LUACALL wxLua_wxWave_Play1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int flags = wxSOUND_ASYNC - unsigned int flags = (argCount >= 2 ? (unsigned int)wxlua_getuintegertype(L, 2) : wxSOUND_ASYNC); - // get this - wxWave * self = (wxWave *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWave); - // call Play - bool returns = (self->Play(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)) - -#if (!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWave_Play[] = { &wxluatype_wxWave, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWave_Play(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_Play[1] = {{ wxLua_wxWave_Play, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxWave_Play }}; -// !%wxchkver_2_6 bool Play(bool async = true, bool looped = false) const; -static int LUACALL wxLua_wxWave_Play(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool looped = false - bool looped = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // bool async = true - bool async = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWave * self = (wxWave *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWave); - // call Play - bool returns = (self->Play(async, looped)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWave_delete[] = { &wxluatype_wxWave, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWave_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWave_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWave_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_constructor1[1] = {{ wxLua_wxWave_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxWave_constructor1 }}; -// wxWave(const wxString& fileName, bool isResource = false); -static int LUACALL wxLua_wxWave_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isResource = false - bool isResource = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 1); - // call constructor - wxWave* returns = new wxWave(fileName, isResource); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWave); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWave); - - return 1; -} - -static int LUACALL wxLua_wxWave_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_constructor[1] = {{ wxLua_wxWave_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxWave(); -static int LUACALL wxLua_wxWave_constructor(lua_State *L) -{ - // call constructor - wxWave* returns = new wxWave(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWave); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWave); - - return 1; -} - - - - -#if (((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)))||((!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_Play_overload[] = -{ - -#if ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)) - { wxLua_wxWave_Play1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWave_Play1 }, -#endif // ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)) - -#if (!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) - { wxLua_wxWave_Play, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxWave_Play }, -#endif // (!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) -}; -static int s_wxluafunc_wxLua_wxWave_Play_overload_count = sizeof(s_wxluafunc_wxLua_wxWave_Play_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)))||((!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave))) - -#if ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWave_constructor_overload[] = -{ - { wxLua_wxWave_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxWave_constructor1 }, - { wxLua_wxWave_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxWave_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxWave_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) - -void wxLua_wxWave_delete_function(void** p) -{ - wxWave* o = (wxWave*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWave_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWave_Create, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWave_IsOk, 1, NULL }, - -#if (((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)))||((!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave))) - { "Play", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWave_Play_overload, s_wxluafunc_wxLua_wxWave_Play_overload_count, 0 }, -#endif // (((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) && (wxCHECK_VERSION(2,6,0)))||((!wxCHECK_VERSION(2,6,0)) && ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave))) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWave_delete, 1, NULL }, - -#if ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) - { "wxWave", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWave_constructor_overload, s_wxluafunc_wxLua_wxWave_constructor_overload_count, 0 }, -#endif // ((defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave)) - - { 0, 0, 0, 0 }, -}; - -int wxWave_methodCount = sizeof(wxWave_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxadv_dataview.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewItem' -int wxluatype_wxDataViewItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItem_GetID[] = { &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewItem_GetID(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_GetID[1] = {{ wxLua_wxDataViewItem_GetID, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_GetID }}; -// void* GetID() const; -static int LUACALL wxLua_wxDataViewItem_GetID(lua_State *L) -{ - // get this - wxDataViewItem * self = (wxDataViewItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItem); - // call GetID - void* returns = (void*)self->GetID(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItem_IsOk[] = { &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewItem_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_IsOk[1] = {{ wxLua_wxDataViewItem_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxDataViewItem_IsOk(lua_State *L) -{ - // get this - wxDataViewItem * self = (wxDataViewItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItem); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItem_delete[] = { &wxluatype_wxDataViewItem, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItem_constructor2[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxDataViewItem_constructor2(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_constructor2[1] = {{ wxLua_wxDataViewItem_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_constructor2 }}; -// wxDataViewItem(void *id); -static int LUACALL wxLua_wxDataViewItem_constructor2(lua_State *L) -{ - // void id - void * id = (void *)wxlua_touserdata(L, 1); - // call constructor - wxDataViewItem* returns = new wxDataViewItem(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItem_constructor1[] = { &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewItem_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_constructor1[1] = {{ wxLua_wxDataViewItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_constructor1 }}; -// wxDataViewItem(const wxDataViewItem &item); -static int LUACALL wxLua_wxDataViewItem_constructor1(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItem); - // call constructor - wxDataViewItem* returns = new wxDataViewItem(*item); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static int LUACALL wxLua_wxDataViewItem_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_constructor[1] = {{ wxLua_wxDataViewItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewItem(); -static int LUACALL wxLua_wxDataViewItem_constructor(lua_State *L) -{ - // call constructor - wxDataViewItem* returns = new wxDataViewItem(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - - - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItem_constructor_overload[] = -{ - { wxLua_wxDataViewItem_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_constructor2 }, - { wxLua_wxDataViewItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItem_constructor1 }, - { wxLua_wxDataViewItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDataViewItem_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewItem_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewItem_delete_function(void** p) -{ - wxDataViewItem* o = (wxDataViewItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewItem_methods[] = { - { "GetID", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItem_GetID, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItem_IsOk, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewItem_delete, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewItem_constructor_overload, s_wxluafunc_wxLua_wxDataViewItem_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewItem_methodCount = sizeof(wxDataViewItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewItemArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewItemArray' -int wxluatype_wxDataViewItemArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Add[] = { &wxluatype_wxDataViewItemArray, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Add[1] = {{ wxLua_wxDataViewItemArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemArray_Add }}; -// void Add(wxDataViewItem num); -static int LUACALL wxLua_wxDataViewItemArray_Add(lua_State *L) -{ - // wxDataViewItem num - wxDataViewItem num = *(wxDataViewItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Add - self->Add(num); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Alloc[] = { &wxluatype_wxDataViewItemArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Alloc[1] = {{ wxLua_wxDataViewItemArray_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemArray_Alloc }}; -// void Alloc(size_t count); -static int LUACALL wxLua_wxDataViewItemArray_Alloc(lua_State *L) -{ - // size_t count - size_t count = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Alloc - self->Alloc(count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Clear[] = { &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Clear[1] = {{ wxLua_wxDataViewItemArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxDataViewItemArray_Clear(lua_State *L) -{ - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Empty[] = { &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Empty[1] = {{ wxLua_wxDataViewItemArray_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_Empty }}; -// void Empty(); -static int LUACALL wxLua_wxDataViewItemArray_Empty(lua_State *L) -{ - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Empty - self->Empty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_GetCount[] = { &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_GetCount[1] = {{ wxLua_wxDataViewItemArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxDataViewItemArray_GetCount(lua_State *L) -{ - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Index[] = { &wxluatype_wxDataViewItemArray, &wxluatype_wxDataViewItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Index[1] = {{ wxLua_wxDataViewItemArray_Index, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataViewItemArray_Index }}; -// int Index(wxDataViewItem n, bool searchFromEnd = false); -static int LUACALL wxLua_wxDataViewItemArray_Index(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool searchFromEnd = false - bool searchFromEnd = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxDataViewItem n - wxDataViewItem n = *(wxDataViewItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Index - int returns = (self->Index(n, searchFromEnd)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Insert[] = { &wxluatype_wxDataViewItemArray, &wxluatype_wxDataViewItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Insert[1] = {{ wxLua_wxDataViewItemArray_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxDataViewItemArray_Insert }}; -// void Insert(wxDataViewItem num, int n, int copies = 1); -static int LUACALL wxLua_wxDataViewItemArray_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int copies = 1 - int copies = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int n - int n = (int)wxlua_getnumbertype(L, 3); - // wxDataViewItem num - wxDataViewItem num = *(wxDataViewItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Insert - self->Insert(num, n, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_IsEmpty[] = { &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_IsEmpty[1] = {{ wxLua_wxDataViewItemArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxDataViewItemArray_IsEmpty(lua_State *L) -{ - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Item[] = { &wxluatype_wxDataViewItemArray, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Item[1] = {{ wxLua_wxDataViewItemArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemArray_Item }}; -// wxDataViewItem Item(int n); -static int LUACALL wxLua_wxDataViewItemArray_Item(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Item - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->Item(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Remove[] = { &wxluatype_wxDataViewItemArray, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Remove[1] = {{ wxLua_wxDataViewItemArray_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemArray_Remove }}; -// void Remove(wxDataViewItem n); -static int LUACALL wxLua_wxDataViewItemArray_Remove(lua_State *L) -{ - // wxDataViewItem n - wxDataViewItem n = *(wxDataViewItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Remove - self->Remove(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_RemoveAt[] = { &wxluatype_wxDataViewItemArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_RemoveAt[1] = {{ wxLua_wxDataViewItemArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemArray_RemoveAt }}; -// void RemoveAt(size_t index); -static int LUACALL wxLua_wxDataViewItemArray_RemoveAt(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call RemoveAt - self->RemoveAt(index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_Shrink[] = { &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_Shrink[1] = {{ wxLua_wxDataViewItemArray_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxDataViewItemArray_Shrink(lua_State *L) -{ - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_delete[] = { &wxluatype_wxDataViewItemArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_op_index[] = { &wxluatype_wxDataViewItemArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_op_index[1] = {{ wxLua_wxDataViewItemArray_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemArray_op_index }}; -// wxDataViewItem operator[](size_t nIndex); -static int LUACALL wxLua_wxDataViewItemArray_op_index(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDataViewItemArray * self = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call op_index - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem((*self)[(nIndex)]); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemArray_constructor1[] = { &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewItemArray_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_constructor1[1] = {{ wxLua_wxDataViewItemArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_constructor1 }}; -// wxDataViewItemArray(const wxDataViewItemArray& array); -static int LUACALL wxLua_wxDataViewItemArray_constructor1(lua_State *L) -{ - // const wxDataViewItemArray array - const wxDataViewItemArray * array = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemArray); - // call constructor - wxDataViewItemArray* returns = new wxDataViewItemArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItemArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItemArray); - - return 1; -} - -static int LUACALL wxLua_wxDataViewItemArray_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_constructor[1] = {{ wxLua_wxDataViewItemArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewItemArray(); -static int LUACALL wxLua_wxDataViewItemArray_constructor(lua_State *L) -{ - // call constructor - wxDataViewItemArray* returns = new wxDataViewItemArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItemArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItemArray); - - return 1; -} - - - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemArray_constructor_overload[] = -{ - { wxLua_wxDataViewItemArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemArray_constructor1 }, - { wxLua_wxDataViewItemArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDataViewItemArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewItemArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewItemArray_delete_function(void** p) -{ - wxDataViewItemArray* o = (wxDataViewItemArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewItemArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Clear, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Empty, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_GetCount, 1, NULL }, - { "Index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Index, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Item, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Remove, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_Shrink, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewItemArray_delete, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemArray_op_index, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewItemArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewItemArray_constructor_overload, s_wxluafunc_wxLua_wxDataViewItemArray_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewItemArray_methodCount = sizeof(wxDataViewItemArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewModelNotifier -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewModelNotifier' -int wxluatype_wxDataViewModelNotifier = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_AfterReset[] = { &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_AfterReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_AfterReset[1] = {{ wxLua_wxDataViewModelNotifier_AfterReset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_AfterReset }}; -// virtual bool AfterReset(); -static int LUACALL wxLua_wxDataViewModelNotifier_AfterReset(lua_State *L) -{ - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call AfterReset - bool returns = (self->AfterReset()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_BeforeReset[] = { &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_BeforeReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_BeforeReset[1] = {{ wxLua_wxDataViewModelNotifier_BeforeReset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_BeforeReset }}; -// virtual bool BeforeReset(); -static int LUACALL wxLua_wxDataViewModelNotifier_BeforeReset(lua_State *L) -{ - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call BeforeReset - bool returns = (self->BeforeReset()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_Cleared[] = { &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_Cleared(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_Cleared[1] = {{ wxLua_wxDataViewModelNotifier_Cleared, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_Cleared }}; -// virtual bool Cleared() = 0; -static int LUACALL wxLua_wxDataViewModelNotifier_Cleared(lua_State *L) -{ - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call Cleared - bool returns = (self->Cleared()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_GetOwner[] = { &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_GetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_GetOwner[1] = {{ wxLua_wxDataViewModelNotifier_GetOwner, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_GetOwner }}; -// wxDataViewModel *GetOwner() const; -static int LUACALL wxLua_wxDataViewModelNotifier_GetOwner(lua_State *L) -{ - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call GetOwner - wxDataViewModel* returns = (wxDataViewModel*)self->GetOwner(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewModel); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemAdded[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemAdded[1] = {{ wxLua_wxDataViewModelNotifier_ItemAdded, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemAdded }}; -// virtual bool ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item ) = 0; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemAdded(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ItemAdded - bool returns = (self->ItemAdded(*parent, *item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemChanged[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemChanged[1] = {{ wxLua_wxDataViewModelNotifier_ItemChanged, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemChanged }}; -// virtual bool ItemChanged( const wxDataViewItem &item ) = 0; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemChanged(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ItemChanged - bool returns = (self->ItemChanged(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemDeleted[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemDeleted[1] = {{ wxLua_wxDataViewModelNotifier_ItemDeleted, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemDeleted }}; -// virtual bool ItemDeleted( const wxDataViewItem &parent, const wxDataViewItem &item ) = 0; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemDeleted(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ItemDeleted - bool returns = (self->ItemDeleted(*parent, *item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemsAdded[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemsAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemsAdded[1] = {{ wxLua_wxDataViewModelNotifier_ItemsAdded, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemsAdded }}; -// virtual bool ItemsAdded( const wxDataViewItem &parent, const wxDataViewItemArray &items ); -static int LUACALL wxLua_wxDataViewModelNotifier_ItemsAdded(lua_State *L) -{ - // const wxDataViewItemArray items - const wxDataViewItemArray * items = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItemArray); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ItemsAdded - bool returns = (self->ItemsAdded(*parent, *items)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemsChanged[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemsChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemsChanged[1] = {{ wxLua_wxDataViewModelNotifier_ItemsChanged, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemsChanged }}; -// virtual bool ItemsChanged( const wxDataViewItemArray &items ); -static int LUACALL wxLua_wxDataViewModelNotifier_ItemsChanged(lua_State *L) -{ - // const wxDataViewItemArray items - const wxDataViewItemArray * items = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemArray); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ItemsChanged - bool returns = (self->ItemsChanged(*items)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemsDeleted[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ItemsDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemsDeleted[1] = {{ wxLua_wxDataViewModelNotifier_ItemsDeleted, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ItemsDeleted }}; -// virtual bool ItemsDeleted( const wxDataViewItem &parent, const wxDataViewItemArray &items ); -static int LUACALL wxLua_wxDataViewModelNotifier_ItemsDeleted(lua_State *L) -{ - // const wxDataViewItemArray items - const wxDataViewItemArray * items = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItemArray); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ItemsDeleted - bool returns = (self->ItemsDeleted(*parent, *items)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_Resort[] = { &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_Resort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_Resort[1] = {{ wxLua_wxDataViewModelNotifier_Resort, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_Resort }}; -// virtual void Resort() = 0; -static int LUACALL wxLua_wxDataViewModelNotifier_Resort(lua_State *L) -{ - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call Resort - self->Resort(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_SetOwner[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_SetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_SetOwner[1] = {{ wxLua_wxDataViewModelNotifier_SetOwner, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_SetOwner }}; -// void SetOwner(wxDataViewModel *owner) %ungc_this; // NOTE: valid owner must be presented -static int LUACALL wxLua_wxDataViewModelNotifier_SetOwner(lua_State *L) -{ - // wxDataViewModel owner - wxDataViewModel * owner = (wxDataViewModel *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewModel); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call SetOwner - self->SetOwner(owner); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ValueChanged[] = { &wxluatype_wxDataViewModelNotifier, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewModelNotifier_ValueChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_ValueChanged[1] = {{ wxLua_wxDataViewModelNotifier_ValueChanged, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_ValueChanged }}; -// virtual bool ValueChanged( const wxDataViewItem &item, unsigned int col ) = 0; -static int LUACALL wxLua_wxDataViewModelNotifier_ValueChanged(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModelNotifier * self = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModelNotifier); - // call ValueChanged - bool returns = (self->ValueChanged(*item, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModelNotifier_delete[] = { &wxluatype_wxDataViewModelNotifier, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModelNotifier_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModelNotifier_delete }}; - - - - -void wxLua_wxDataViewModelNotifier_delete_function(void** p) -{ - wxDataViewModelNotifier* o = (wxDataViewModelNotifier*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewModelNotifier_methods[] = { - { "AfterReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_AfterReset, 1, NULL }, - { "BeforeReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_BeforeReset, 1, NULL }, - { "Cleared", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_Cleared, 1, NULL }, - { "GetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_GetOwner, 1, NULL }, - { "ItemAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemAdded, 1, NULL }, - { "ItemChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemChanged, 1, NULL }, - { "ItemDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemDeleted, 1, NULL }, - { "ItemsAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemsAdded, 1, NULL }, - { "ItemsChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemsChanged, 1, NULL }, - { "ItemsDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ItemsDeleted, 1, NULL }, - { "Resort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_Resort, 1, NULL }, - { "SetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_SetOwner, 1, NULL }, - { "ValueChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModelNotifier_ValueChanged, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewModelNotifier_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewModelNotifier_methodCount = sizeof(wxDataViewModelNotifier_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewItemAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewItemAttr' -int wxluatype_wxDataViewItemAttr = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetBackgroundColour[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_GetBackgroundColour[1] = {{ wxLua_wxDataViewItemAttr_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetBackgroundColour }}; -// const wxColour& GetBackgroundColour(); -static int LUACALL wxLua_wxDataViewItemAttr_GetBackgroundColour(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call GetBackgroundColour - const wxColour* returns = (const wxColour*)&self->GetBackgroundColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetBold[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_GetBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_GetBold[1] = {{ wxLua_wxDataViewItemAttr_GetBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetBold }}; -// bool GetBold() const; -static int LUACALL wxLua_wxDataViewItemAttr_GetBold(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call GetBold - bool returns = (self->GetBold()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetColour[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_GetColour[1] = {{ wxLua_wxDataViewItemAttr_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetColour }}; -// const wxColour& GetColour() const; -static int LUACALL wxLua_wxDataViewItemAttr_GetColour(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call GetColour - const wxColour* returns = (const wxColour*)&self->GetColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetEffectiveFont[] = { &wxluatype_wxDataViewItemAttr, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_GetEffectiveFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_GetEffectiveFont[1] = {{ wxLua_wxDataViewItemAttr_GetEffectiveFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetEffectiveFont }}; -// wxFont GetEffectiveFont(const wxFont& font) const; -static int LUACALL wxLua_wxDataViewItemAttr_GetEffectiveFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call GetEffectiveFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetEffectiveFont(*font)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetItalic[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_GetItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_GetItalic[1] = {{ wxLua_wxDataViewItemAttr_GetItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetItalic }}; -// bool GetItalic() const; -static int LUACALL wxLua_wxDataViewItemAttr_GetItalic(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call GetItalic - bool returns = (self->GetItalic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetStrikethrough[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_GetStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_GetStrikethrough[1] = {{ wxLua_wxDataViewItemAttr_GetStrikethrough, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_GetStrikethrough }}; -// bool GetStrikethrough() const; -static int LUACALL wxLua_wxDataViewItemAttr_GetStrikethrough(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call GetStrikethrough - bool returns = (self->GetStrikethrough()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_HasBackgroundColour[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_HasBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_HasBackgroundColour[1] = {{ wxLua_wxDataViewItemAttr_HasBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_HasBackgroundColour }}; -// bool HasBackgroundColour() const; -static int LUACALL wxLua_wxDataViewItemAttr_HasBackgroundColour(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call HasBackgroundColour - bool returns = (self->HasBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_HasColour[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_HasColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_HasColour[1] = {{ wxLua_wxDataViewItemAttr_HasColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_HasColour }}; -// bool HasColour() const; -static int LUACALL wxLua_wxDataViewItemAttr_HasColour(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call HasColour - bool returns = (self->HasColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_HasFont[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_HasFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_HasFont[1] = {{ wxLua_wxDataViewItemAttr_HasFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_HasFont }}; -// bool HasFont() const; -static int LUACALL wxLua_wxDataViewItemAttr_HasFont(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call HasFont - bool returns = (self->HasFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_IsDefault[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_IsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_IsDefault[1] = {{ wxLua_wxDataViewItemAttr_IsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_IsDefault }}; -// bool IsDefault() const; -static int LUACALL wxLua_wxDataViewItemAttr_IsDefault(lua_State *L) -{ - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call IsDefault - bool returns = (self->IsDefault()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetBackgroundColour[] = { &wxluatype_wxDataViewItemAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_SetBackgroundColour[1] = {{ wxLua_wxDataViewItemAttr_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colour); -static int LUACALL wxLua_wxDataViewItemAttr_SetBackgroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call SetBackgroundColour - self->SetBackgroundColour(*colour); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetBold[] = { &wxluatype_wxDataViewItemAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_SetBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_SetBold[1] = {{ wxLua_wxDataViewItemAttr_SetBold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetBold }}; -// void SetBold( bool set ); -static int LUACALL wxLua_wxDataViewItemAttr_SetBold(lua_State *L) -{ - // bool set - bool set = wxlua_getbooleantype(L, 2); - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call SetBold - self->SetBold(set); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetColour[] = { &wxluatype_wxDataViewItemAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_SetColour[1] = {{ wxLua_wxDataViewItemAttr_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetColour }}; -// void SetColour(const wxColour& colour); -static int LUACALL wxLua_wxDataViewItemAttr_SetColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetItalic[] = { &wxluatype_wxDataViewItemAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_SetItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_SetItalic[1] = {{ wxLua_wxDataViewItemAttr_SetItalic, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetItalic }}; -// void SetItalic( bool set ); -static int LUACALL wxLua_wxDataViewItemAttr_SetItalic(lua_State *L) -{ - // bool set - bool set = wxlua_getbooleantype(L, 2); - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call SetItalic - self->SetItalic(set); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetStrikethrough[] = { &wxluatype_wxDataViewItemAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewItemAttr_SetStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_SetStrikethrough[1] = {{ wxLua_wxDataViewItemAttr_SetStrikethrough, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewItemAttr_SetStrikethrough }}; -// void SetStrikethrough( bool set ); -static int LUACALL wxLua_wxDataViewItemAttr_SetStrikethrough(lua_State *L) -{ - // bool set - bool set = wxlua_getbooleantype(L, 2); - // get this - wxDataViewItemAttr * self = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewItemAttr); - // call SetStrikethrough - self->SetStrikethrough(set); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewItemAttr_delete[] = { &wxluatype_wxDataViewItemAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewItemAttr_delete }}; - -static int LUACALL wxLua_wxDataViewItemAttr_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewItemAttr_constructor[1] = {{ wxLua_wxDataViewItemAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewItemAttr(); -static int LUACALL wxLua_wxDataViewItemAttr_constructor(lua_State *L) -{ - // call constructor - wxDataViewItemAttr* returns = new wxDataViewItemAttr(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItemAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItemAttr); - - return 1; -} - - - - -void wxLua_wxDataViewItemAttr_delete_function(void** p) -{ - wxDataViewItemAttr* o = (wxDataViewItemAttr*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewItemAttr_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_GetBackgroundColour, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - - { "GetBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_GetBold, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_GetColour, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxFont) - { "GetEffectiveFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_GetEffectiveFont, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxFont) - - { "GetItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_GetItalic, 1, NULL }, - { "GetStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_GetStrikethrough, 1, NULL }, - { "HasBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_HasBackgroundColour, 1, NULL }, - { "HasColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_HasColour, 1, NULL }, - { "HasFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_HasFont, 1, NULL }, - { "IsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_IsDefault, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_SetBackgroundColour, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - - { "SetBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_SetBold, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_SetColour, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - - { "SetItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_SetItalic, 1, NULL }, - { "SetStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewItemAttr_SetStrikethrough, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewItemAttr_delete, 1, NULL }, - { "wxDataViewItemAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewItemAttr_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewItemAttr_methodCount = sizeof(wxDataViewItemAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewModel -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewModel' -int wxluatype_wxDataViewModel = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_AddNotifier[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModel_AddNotifier(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_AddNotifier[1] = {{ wxLua_wxDataViewModel_AddNotifier, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_AddNotifier }}; -// void AddNotifier( wxDataViewModelNotifier *notifier ); -static int LUACALL wxLua_wxDataViewModel_AddNotifier(lua_State *L) -{ - // wxDataViewModelNotifier notifier - wxDataViewModelNotifier * notifier = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewModelNotifier); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call AddNotifier - self->AddNotifier(notifier); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_AfterReset[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_AfterReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_AfterReset[1] = {{ wxLua_wxDataViewModel_AfterReset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_AfterReset }}; -// bool AfterReset(); -static int LUACALL wxLua_wxDataViewModel_AfterReset(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call AfterReset - bool returns = (self->AfterReset()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_BeforeReset[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_BeforeReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_BeforeReset[1] = {{ wxLua_wxDataViewModel_BeforeReset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_BeforeReset }}; -// bool BeforeReset(); -static int LUACALL wxLua_wxDataViewModel_BeforeReset(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call BeforeReset - bool returns = (self->BeforeReset()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_Cleared[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_Cleared(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_Cleared[1] = {{ wxLua_wxDataViewModel_Cleared, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_Cleared }}; -// bool Cleared(); -static int LUACALL wxLua_wxDataViewModel_Cleared(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call Cleared - bool returns = (self->Cleared()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_Compare[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewModel_Compare(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_Compare[1] = {{ wxLua_wxDataViewModel_Compare, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDataViewModel_Compare }}; -// unsigned int column, bool ascending ) const; -static int LUACALL wxLua_wxDataViewModel_Compare(lua_State *L) -{ - // bool ascending - bool ascending = wxlua_getbooleantype(L, 5); - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 4); - // const wxDataViewItem item2 - const wxDataViewItem * item2 = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem item1 - const wxDataViewItem * item1 = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call Compare - int returns = (self->Compare(*item1, *item2, column, ascending)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_DecRef[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_DecRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_DecRef[1] = {{ wxLua_wxDataViewModel_DecRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_DecRef }}; -// void DecRef(); -static int LUACALL wxLua_wxDataViewModel_DecRef(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call DecRef - self->DecRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_GetAttr[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewModel_GetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_GetAttr[1] = {{ wxLua_wxDataViewModel_GetAttr, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewModel_GetAttr }}; -// virtual bool GetAttr(const wxDataViewItem &item, unsigned int col, wxDataViewItemAttr &attr) const; -static int LUACALL wxLua_wxDataViewModel_GetAttr(lua_State *L) -{ - // wxDataViewItemAttr attr - wxDataViewItemAttr * attr = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDataViewItemAttr); - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call GetAttr - bool returns = (self->GetAttr(*item, col, *attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_GetChildren[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModel_GetChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_GetChildren[1] = {{ wxLua_wxDataViewModel_GetChildren, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_GetChildren }}; -// virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const = 0; -static int LUACALL wxLua_wxDataViewModel_GetChildren(lua_State *L) -{ - // wxDataViewItemArray children - wxDataViewItemArray * children = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItemArray); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call GetChildren - unsigned int returns = (self->GetChildren(*item, *children)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_GetColumnCount[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_GetColumnCount[1] = {{ wxLua_wxDataViewModel_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_GetColumnCount }}; -// virtual unsigned int GetColumnCount(); -static int LUACALL wxLua_wxDataViewModel_GetColumnCount(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_GetColumnType[] = { &wxluatype_wxDataViewModel, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewModel_GetColumnType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_GetColumnType[1] = {{ wxLua_wxDataViewModel_GetColumnType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_GetColumnType }}; -// virtual wxString GetColumnType( unsigned int col ) const = 0; -static int LUACALL wxLua_wxDataViewModel_GetColumnType(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call GetColumnType - wxString returns = (self->GetColumnType(col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_GetParent[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModel_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_GetParent[1] = {{ wxLua_wxDataViewModel_GetParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_GetParent }}; -// virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const = 0; -static int LUACALL wxLua_wxDataViewModel_GetParent(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call GetParent - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetParent(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_GetRefCount[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_GetRefCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_GetRefCount[1] = {{ wxLua_wxDataViewModel_GetRefCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_GetRefCount }}; -// int GetRefCount() const; -static int LUACALL wxLua_wxDataViewModel_GetRefCount(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call GetRefCount - int returns = (self->GetRefCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_HasContainerColumns[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModel_HasContainerColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_HasContainerColumns[1] = {{ wxLua_wxDataViewModel_HasContainerColumns, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_HasContainerColumns }}; -// virtual bool HasContainerColumns(const wxDataViewItem& item) const; -static int LUACALL wxLua_wxDataViewModel_HasContainerColumns(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call HasContainerColumns - bool returns = (self->HasContainerColumns(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_HasDefaultCompare[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_HasDefaultCompare(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_HasDefaultCompare[1] = {{ wxLua_wxDataViewModel_HasDefaultCompare, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_HasDefaultCompare }}; -// virtual bool HasDefaultCompare() const; -static int LUACALL wxLua_wxDataViewModel_HasDefaultCompare(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call HasDefaultCompare - bool returns = (self->HasDefaultCompare()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_HasValue[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewModel_HasValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_HasValue[1] = {{ wxLua_wxDataViewModel_HasValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_HasValue }}; -// bool HasValue(const wxDataViewItem& item, unsigned int col) const; -static int LUACALL wxLua_wxDataViewModel_HasValue(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call HasValue - bool returns = (self->HasValue(*item, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_IncRef[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_IncRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_IncRef[1] = {{ wxLua_wxDataViewModel_IncRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_IncRef }}; -// void IncRef(); -static int LUACALL wxLua_wxDataViewModel_IncRef(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call IncRef - self->IncRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_IsContainer[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModel_IsContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_IsContainer[1] = {{ wxLua_wxDataViewModel_IsContainer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_IsContainer }}; -// virtual bool IsContainer( const wxDataViewItem &item ) const = 0; -static int LUACALL wxLua_wxDataViewModel_IsContainer(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call IsContainer - bool returns = (self->IsContainer(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_IsEnabled[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewModel_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_IsEnabled[1] = {{ wxLua_wxDataViewModel_IsEnabled, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_IsEnabled }}; -// virtual bool IsEnabled(const wxDataViewItem &item, unsigned int col) const; -static int LUACALL wxLua_wxDataViewModel_IsEnabled(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call IsEnabled - bool returns = (self->IsEnabled(*item, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_IsListModel[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_IsListModel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_IsListModel[1] = {{ wxLua_wxDataViewModel_IsListModel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_IsListModel }}; -// virtual bool IsListModel() const; -static int LUACALL wxLua_wxDataViewModel_IsListModel(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call IsListModel - bool returns = (self->IsListModel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_IsVirtualListModel[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_IsVirtualListModel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_IsVirtualListModel[1] = {{ wxLua_wxDataViewModel_IsVirtualListModel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_IsVirtualListModel }}; -// virtual bool IsVirtualListModel() const; -static int LUACALL wxLua_wxDataViewModel_IsVirtualListModel(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call IsVirtualListModel - bool returns = (self->IsVirtualListModel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ItemAdded[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModel_ItemAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ItemAdded[1] = {{ wxLua_wxDataViewModel_ItemAdded, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_ItemAdded }}; -// bool ItemAdded( const wxDataViewItem &parent, const wxDataViewItem &item ); -static int LUACALL wxLua_wxDataViewModel_ItemAdded(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ItemAdded - bool returns = (self->ItemAdded(*parent, *item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ItemChanged[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModel_ItemChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ItemChanged[1] = {{ wxLua_wxDataViewModel_ItemChanged, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_ItemChanged }}; -// bool ItemChanged( const wxDataViewItem &item ); -static int LUACALL wxLua_wxDataViewModel_ItemChanged(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ItemChanged - bool returns = (self->ItemChanged(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ItemDeleted[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewModel_ItemDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ItemDeleted[1] = {{ wxLua_wxDataViewModel_ItemDeleted, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_ItemDeleted }}; -// bool ItemDeleted( const wxDataViewItem &parent, const wxDataViewItem &item ); -static int LUACALL wxLua_wxDataViewModel_ItemDeleted(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ItemDeleted - bool returns = (self->ItemDeleted(*parent, *item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ItemsAdded[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModel_ItemsAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ItemsAdded[1] = {{ wxLua_wxDataViewModel_ItemsAdded, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_ItemsAdded }}; -// bool ItemsAdded( const wxDataViewItem &parent, const wxDataViewItemArray &items ); -static int LUACALL wxLua_wxDataViewModel_ItemsAdded(lua_State *L) -{ - // const wxDataViewItemArray items - const wxDataViewItemArray * items = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItemArray); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ItemsAdded - bool returns = (self->ItemsAdded(*parent, *items)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ItemsChanged[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModel_ItemsChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ItemsChanged[1] = {{ wxLua_wxDataViewModel_ItemsChanged, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_ItemsChanged }}; -// bool ItemsChanged( const wxDataViewItemArray &items ); -static int LUACALL wxLua_wxDataViewModel_ItemsChanged(lua_State *L) -{ - // const wxDataViewItemArray items - const wxDataViewItemArray * items = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemArray); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ItemsChanged - bool returns = (self->ItemsChanged(*items)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ItemsDeleted[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewModel_ItemsDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ItemsDeleted[1] = {{ wxLua_wxDataViewModel_ItemsDeleted, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_ItemsDeleted }}; -// bool ItemsDeleted( const wxDataViewItem &parent, const wxDataViewItemArray &items ); -static int LUACALL wxLua_wxDataViewModel_ItemsDeleted(lua_State *L) -{ - // const wxDataViewItemArray items - const wxDataViewItemArray * items = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItemArray); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ItemsDeleted - bool returns = (self->ItemsDeleted(*parent, *items)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_RemoveNotifier[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewModelNotifier, NULL }; -static int LUACALL wxLua_wxDataViewModel_RemoveNotifier(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_RemoveNotifier[1] = {{ wxLua_wxDataViewModel_RemoveNotifier, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewModel_RemoveNotifier }}; -// void RemoveNotifier( wxDataViewModelNotifier *notifier ); -static int LUACALL wxLua_wxDataViewModel_RemoveNotifier(lua_State *L) -{ - // wxDataViewModelNotifier notifier - wxDataViewModelNotifier * notifier = (wxDataViewModelNotifier *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewModelNotifier); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call RemoveNotifier - self->RemoveNotifier(notifier); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_Resort[] = { &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewModel_Resort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_Resort[1] = {{ wxLua_wxDataViewModel_Resort, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_Resort }}; -// virtual void Resort(); -static int LUACALL wxLua_wxDataViewModel_Resort(lua_State *L) -{ - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call Resort - self->Resort(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_ValueChanged[] = { &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewModel_ValueChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_ValueChanged[1] = {{ wxLua_wxDataViewModel_ValueChanged, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewModel_ValueChanged }}; -// bool ValueChanged( const wxDataViewItem &item, unsigned int col ); -static int LUACALL wxLua_wxDataViewModel_ValueChanged(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewModel * self = (wxDataViewModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewModel); - // call ValueChanged - bool returns = (self->ValueChanged(*item, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewModel_delete[] = { &wxluatype_wxDataViewModel, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewModel_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewModel_delete }}; - - - - -// %override wxLua_wxDataViewModel_delete_function -// delete is private in wxDataViewModel, DecRef() it in derived classes -void wxLua_wxDataViewModel_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewModel_methods[] = { - { "AddNotifier", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_AddNotifier, 1, NULL }, - { "AfterReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_AfterReset, 1, NULL }, - { "BeforeReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_BeforeReset, 1, NULL }, - { "Cleared", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_Cleared, 1, NULL }, - { "Compare", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_Compare, 1, NULL }, - { "DecRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_DecRef, 1, NULL }, - { "GetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_GetAttr, 1, NULL }, - { "GetChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_GetChildren, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_GetColumnCount, 1, NULL }, - { "GetColumnType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_GetColumnType, 1, NULL }, - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_GetParent, 1, NULL }, - { "GetRefCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_GetRefCount, 1, NULL }, - { "HasContainerColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_HasContainerColumns, 1, NULL }, - { "HasDefaultCompare", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_HasDefaultCompare, 1, NULL }, - { "HasValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_HasValue, 1, NULL }, - { "IncRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_IncRef, 1, NULL }, - { "IsContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_IsContainer, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_IsEnabled, 1, NULL }, - { "IsListModel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_IsListModel, 1, NULL }, - { "IsVirtualListModel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_IsVirtualListModel, 1, NULL }, - { "ItemAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ItemAdded, 1, NULL }, - { "ItemChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ItemChanged, 1, NULL }, - { "ItemDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ItemDeleted, 1, NULL }, - { "ItemsAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ItemsAdded, 1, NULL }, - { "ItemsChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ItemsChanged, 1, NULL }, - { "ItemsDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ItemsDeleted, 1, NULL }, - { "RemoveNotifier", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_RemoveNotifier, 1, NULL }, - { "Resort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_Resort, 1, NULL }, - { "ValueChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewModel_ValueChanged, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewModel_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewModel_methodCount = sizeof(wxDataViewModel_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewListModel -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewListModel' -int wxluatype_wxDataViewListModel = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListModel_GetAttrByRow[] = { &wxluatype_wxDataViewListModel, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewListModel_GetAttrByRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListModel_GetAttrByRow[1] = {{ wxLua_wxDataViewListModel_GetAttrByRow, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewListModel_GetAttrByRow }}; -// virtual bool GetAttrByRow(unsigned int row, unsigned int col, wxDataViewItemAttr &attr) const; -static int LUACALL wxLua_wxDataViewListModel_GetAttrByRow(lua_State *L) -{ - // wxDataViewItemAttr attr - wxDataViewItemAttr * attr = (wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDataViewItemAttr); - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListModel * self = (wxDataViewListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListModel); - // call GetAttrByRow - bool returns = (self->GetAttrByRow(row, col, *attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListModel_GetCount[] = { &wxluatype_wxDataViewListModel, NULL }; -static int LUACALL wxLua_wxDataViewListModel_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListModel_GetCount[1] = {{ wxLua_wxDataViewListModel_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListModel_GetCount }}; -// virtual unsigned int GetCount() const = 0; -static int LUACALL wxLua_wxDataViewListModel_GetCount(lua_State *L) -{ - // get this - wxDataViewListModel * self = (wxDataViewListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListModel); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListModel_GetRow[] = { &wxluatype_wxDataViewListModel, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewListModel_GetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListModel_GetRow[1] = {{ wxLua_wxDataViewListModel_GetRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListModel_GetRow }}; -// virtual unsigned int GetRow( const wxDataViewItem &item ) const = 0; -static int LUACALL wxLua_wxDataViewListModel_GetRow(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewListModel * self = (wxDataViewListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListModel); - // call GetRow - unsigned int returns = (self->GetRow(*item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListModel_IsEnabledByRow[] = { &wxluatype_wxDataViewListModel, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListModel_IsEnabledByRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListModel_IsEnabledByRow[1] = {{ wxLua_wxDataViewListModel_IsEnabledByRow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListModel_IsEnabledByRow }}; -// virtual bool IsEnabledByRow(unsigned int row, unsigned int col) const; -static int LUACALL wxLua_wxDataViewListModel_IsEnabledByRow(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListModel * self = (wxDataViewListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListModel); - // call IsEnabledByRow - bool returns = (self->IsEnabledByRow(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListModel_delete[] = { &wxluatype_wxDataViewListModel, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListModel_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListModel_delete }}; - - - - -// %override wxLua_wxDataViewListModel_delete_function -// delete is private in wxDataViewModel, DecRef() it in derived classes -void wxLua_wxDataViewListModel_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewListModel_methods[] = { - { "GetAttrByRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListModel_GetAttrByRow, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListModel_GetCount, 1, NULL }, - { "GetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListModel_GetRow, 1, NULL }, - { "IsEnabledByRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListModel_IsEnabledByRow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewListModel_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewListModel_methodCount = sizeof(wxDataViewListModel_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewIndexListModel -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewIndexListModel' -int wxluatype_wxDataViewIndexListModel = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_GetItem[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_GetItem[1] = {{ wxLua_wxDataViewIndexListModel_GetItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_GetItem }}; -// wxDataViewItem GetItem( unsigned int row ) const; -static int LUACALL wxLua_wxDataViewIndexListModel_GetItem(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call GetItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetItem(row)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_Reset[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_Reset[1] = {{ wxLua_wxDataViewIndexListModel_Reset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_Reset }}; -// void Reset( unsigned int new_size ); -static int LUACALL wxLua_wxDataViewIndexListModel_Reset(lua_State *L) -{ - // unsigned int new_size - unsigned int new_size = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call Reset - self->Reset(new_size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowAppended[] = { &wxluatype_wxDataViewIndexListModel, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowAppended(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowAppended[1] = {{ wxLua_wxDataViewIndexListModel_RowAppended, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowAppended }}; -// void RowAppended(); -static int LUACALL wxLua_wxDataViewIndexListModel_RowAppended(lua_State *L) -{ - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowAppended - self->RowAppended(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowChanged[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowChanged[1] = {{ wxLua_wxDataViewIndexListModel_RowChanged, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowChanged }}; -// void RowChanged( unsigned int row ); -static int LUACALL wxLua_wxDataViewIndexListModel_RowChanged(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowChanged - self->RowChanged(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowDeleted[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowDeleted[1] = {{ wxLua_wxDataViewIndexListModel_RowDeleted, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowDeleted }}; -// void RowDeleted( unsigned int row ); -static int LUACALL wxLua_wxDataViewIndexListModel_RowDeleted(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowDeleted - self->RowDeleted(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowInserted[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowInserted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowInserted[1] = {{ wxLua_wxDataViewIndexListModel_RowInserted, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowInserted }}; -// void RowInserted( unsigned int before ); -static int LUACALL wxLua_wxDataViewIndexListModel_RowInserted(lua_State *L) -{ - // unsigned int before - unsigned int before = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowInserted - self->RowInserted(before); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowPrepended[] = { &wxluatype_wxDataViewIndexListModel, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowPrepended(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowPrepended[1] = {{ wxLua_wxDataViewIndexListModel_RowPrepended, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowPrepended }}; -// void RowPrepended(); -static int LUACALL wxLua_wxDataViewIndexListModel_RowPrepended(lua_State *L) -{ - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowPrepended - self->RowPrepended(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowValueChanged[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowValueChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowValueChanged[1] = {{ wxLua_wxDataViewIndexListModel_RowValueChanged, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowValueChanged }}; -// void RowValueChanged( unsigned int row, unsigned int col ); -static int LUACALL wxLua_wxDataViewIndexListModel_RowValueChanged(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowValueChanged - self->RowValueChanged(row, col); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowsDeleted[] = { &wxluatype_wxDataViewIndexListModel, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxDataViewIndexListModel_RowsDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_RowsDeleted[1] = {{ wxLua_wxDataViewIndexListModel_RowsDeleted, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_RowsDeleted }}; -// void RowsDeleted( const wxArrayInt &rows ); -static int LUACALL wxLua_wxDataViewIndexListModel_RowsDeleted(lua_State *L) -{ - // const wxArrayInt rows - wxLuaSmartwxArrayInt rows = wxlua_getwxArrayInt(L, 2); - // get this - wxDataViewIndexListModel * self = (wxDataViewIndexListModel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIndexListModel); - // call RowsDeleted - self->RowsDeleted(rows); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIndexListModel_delete[] = { &wxluatype_wxDataViewIndexListModel, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIndexListModel_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIndexListModel_delete }}; - - - - -// %override wxLua_wxDataViewIndexListModel_delete_function -// delete is private in wxDataViewModel, DecRef() it in derived classes -void wxLua_wxDataViewIndexListModel_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewIndexListModel_methods[] = { - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_GetItem, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_Reset, 1, NULL }, - { "RowAppended", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowAppended, 1, NULL }, - { "RowChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowChanged, 1, NULL }, - { "RowDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowDeleted, 1, NULL }, - { "RowInserted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowInserted, 1, NULL }, - { "RowPrepended", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowPrepended, 1, NULL }, - { "RowValueChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowValueChanged, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayInt) - { "RowsDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIndexListModel_RowsDeleted, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayInt) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewIndexListModel_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewIndexListModel_methodCount = sizeof(wxDataViewIndexListModel_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewListStoreLine -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewListStoreLine' -int wxluatype_wxDataViewListStoreLine = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStoreLine_GetData[] = { &wxluatype_wxDataViewListStoreLine, NULL }; -static int LUACALL wxLua_wxDataViewListStoreLine_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStoreLine_GetData[1] = {{ wxLua_wxDataViewListStoreLine_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListStoreLine_GetData }}; -// wxUIntPtr GetData() const; -static int LUACALL wxLua_wxDataViewListStoreLine_GetData(lua_State *L) -{ - // get this - wxDataViewListStoreLine * self = (wxDataViewListStoreLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStoreLine); - // call GetData - wxUIntPtr returns = (self->GetData()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStoreLine_SetData[] = { &wxluatype_wxDataViewListStoreLine, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListStoreLine_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStoreLine_SetData[1] = {{ wxLua_wxDataViewListStoreLine_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListStoreLine_SetData }}; -// void SetData( wxUIntPtr data ); -static int LUACALL wxLua_wxDataViewListStoreLine_SetData(lua_State *L) -{ - // wxUIntPtr data - wxUIntPtr data = (wxUIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxDataViewListStoreLine * self = (wxDataViewListStoreLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStoreLine); - // call SetData - self->SetData(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStoreLine_delete[] = { &wxluatype_wxDataViewListStoreLine, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStoreLine_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListStoreLine_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStoreLine_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListStoreLine_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStoreLine_constructor[1] = {{ wxLua_wxDataViewListStoreLine_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDataViewListStoreLine_constructor }}; -// wxDataViewListStoreLine( wxUIntPtr data = 0 ); -static int LUACALL wxLua_wxDataViewListStoreLine_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxUIntPtr data = 0 - wxUIntPtr data = (argCount >= 1 ? (wxUIntPtr)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxDataViewListStoreLine* returns = new wxDataViewListStoreLine(data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewListStoreLine); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewListStoreLine); - - return 1; -} - - - - -void wxLua_wxDataViewListStoreLine_delete_function(void** p) -{ - wxDataViewListStoreLine* o = (wxDataViewListStoreLine*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewListStoreLine_methods[] = { - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStoreLine_GetData, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStoreLine_SetData, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewListStoreLine_delete, 1, NULL }, - { "wxDataViewListStoreLine", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewListStoreLine_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewListStoreLine_methodCount = sizeof(wxDataViewListStoreLine_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewListStore -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewListStore' -int wxluatype_wxDataViewListStore = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_AppendColumn[] = { &wxluatype_wxDataViewListStore, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewListStore_AppendColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_AppendColumn[1] = {{ wxLua_wxDataViewListStore_AppendColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListStore_AppendColumn }}; -// void AppendColumn( const wxString &varianttype ); -static int LUACALL wxLua_wxDataViewListStore_AppendColumn(lua_State *L) -{ - // const wxString varianttype - const wxString varianttype = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call AppendColumn - self->AppendColumn(varianttype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_ClearColumns[] = { &wxluatype_wxDataViewListStore, NULL }; -static int LUACALL wxLua_wxDataViewListStore_ClearColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_ClearColumns[1] = {{ wxLua_wxDataViewListStore_ClearColumns, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListStore_ClearColumns }}; -// void ClearColumns(); -static int LUACALL wxLua_wxDataViewListStore_ClearColumns(lua_State *L) -{ - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call ClearColumns - self->ClearColumns(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_DeleteAllItems[] = { &wxluatype_wxDataViewListStore, NULL }; -static int LUACALL wxLua_wxDataViewListStore_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_DeleteAllItems[1] = {{ wxLua_wxDataViewListStore_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListStore_DeleteAllItems }}; -// void DeleteAllItems(); -static int LUACALL wxLua_wxDataViewListStore_DeleteAllItems(lua_State *L) -{ - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call DeleteAllItems - self->DeleteAllItems(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_DeleteItem[] = { &wxluatype_wxDataViewListStore, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListStore_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_DeleteItem[1] = {{ wxLua_wxDataViewListStore_DeleteItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListStore_DeleteItem }}; -// void DeleteItem( unsigned int pos ); -static int LUACALL wxLua_wxDataViewListStore_DeleteItem(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call DeleteItem - self->DeleteItem(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_GetItemCount[] = { &wxluatype_wxDataViewListStore, NULL }; -static int LUACALL wxLua_wxDataViewListStore_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_GetItemCount[1] = {{ wxLua_wxDataViewListStore_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListStore_GetItemCount }}; -// unsigned int GetItemCount() const; -static int LUACALL wxLua_wxDataViewListStore_GetItemCount(lua_State *L) -{ - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call GetItemCount - unsigned int returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_GetItemData[] = { &wxluatype_wxDataViewListStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewListStore_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_GetItemData[1] = {{ wxLua_wxDataViewListStore_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListStore_GetItemData }}; -// wxUIntPtr GetItemData( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewListStore_GetItemData(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call GetItemData - wxUIntPtr returns = (self->GetItemData(*item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_InsertColumn[] = { &wxluatype_wxDataViewListStore, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewListStore_InsertColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_InsertColumn[1] = {{ wxLua_wxDataViewListStore_InsertColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListStore_InsertColumn }}; -// void InsertColumn( unsigned int pos, const wxString &varianttype ); -static int LUACALL wxLua_wxDataViewListStore_InsertColumn(lua_State *L) -{ - // const wxString varianttype - const wxString varianttype = wxlua_getwxStringtype(L, 3); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call InsertColumn - self->InsertColumn(pos, varianttype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_PrependColumn[] = { &wxluatype_wxDataViewListStore, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewListStore_PrependColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_PrependColumn[1] = {{ wxLua_wxDataViewListStore_PrependColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListStore_PrependColumn }}; -// void PrependColumn( const wxString &varianttype ); -static int LUACALL wxLua_wxDataViewListStore_PrependColumn(lua_State *L) -{ - // const wxString varianttype - const wxString varianttype = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call PrependColumn - self->PrependColumn(varianttype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_SetItemData[] = { &wxluatype_wxDataViewListStore, &wxluatype_wxDataViewItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListStore_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_SetItemData[1] = {{ wxLua_wxDataViewListStore_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListStore_SetItemData }}; -// void SetItemData( const wxDataViewItem& item, wxUIntPtr data ); -static int LUACALL wxLua_wxDataViewListStore_SetItemData(lua_State *L) -{ - // wxUIntPtr data - wxUIntPtr data = (wxUIntPtr)wxlua_getnumbertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewListStore * self = (wxDataViewListStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListStore); - // call SetItemData - self->SetItemData(*item, data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListStore_delete[] = { &wxluatype_wxDataViewListStore, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListStore_delete }}; - -static int LUACALL wxLua_wxDataViewListStore_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListStore_constructor[1] = {{ wxLua_wxDataViewListStore_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewListStore(); -static int LUACALL wxLua_wxDataViewListStore_constructor(lua_State *L) -{ - // call constructor - wxDataViewListStore* returns = new wxDataViewListStore(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewListStore); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewListStore); - - return 1; -} - - - - -// %override wxLua_wxDataViewListStore_delete_function -// delete is private in wxDataViewModel, DecRef() it in derived classes -void wxLua_wxDataViewListStore_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewListStore_methods[] = { - { "AppendColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_AppendColumn, 1, NULL }, - { "ClearColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_ClearColumns, 1, NULL }, - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_DeleteAllItems, 1, NULL }, - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_DeleteItem, 1, NULL }, - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_GetItemCount, 1, NULL }, - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_GetItemData, 1, NULL }, - { "InsertColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_InsertColumn, 1, NULL }, - { "PrependColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_PrependColumn, 1, NULL }, - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListStore_SetItemData, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewListStore_delete, 1, NULL }, - { "wxDataViewListStore", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewListStore_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewListStore_methodCount = sizeof(wxDataViewListStore_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewTreeStoreNode -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewTreeStoreNode' -int wxluatype_wxDataViewTreeStoreNode = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetData[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetData[1] = {{ wxLua_wxDataViewTreeStoreNode_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetData }}; -// wxClientData *GetData() const; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetData(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call GetData - wxClientData* returns = (wxClientData*)self->GetData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetIcon1[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetIcon1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon1[1] = {{ wxLua_wxDataViewTreeStoreNode_GetIcon1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetIcon1 }}; -// %wxchkver_3_1_6 wxIcon GetIcon() const; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetIcon1(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetIcon[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetIcon(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon[1] = {{ wxLua_wxDataViewTreeStoreNode_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetIcon }}; -// !%wxchkver_3_1_6 const wxIcon &GetIcon() const; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetIcon(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call GetIcon - const wxIcon* returns = (const wxIcon*)&self->GetIcon(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetItem[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetItem[1] = {{ wxLua_wxDataViewTreeStoreNode_GetItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetItem }}; -// wxDataViewItem GetItem() const; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetItem(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call GetItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetParent[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetParent[1] = {{ wxLua_wxDataViewTreeStoreNode_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetParent }}; -// wxDataViewTreeStoreNode *GetParent(); -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetParent(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call GetParent - wxDataViewTreeStoreNode* returns = (wxDataViewTreeStoreNode*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStoreNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetText[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetText[1] = {{ wxLua_wxDataViewTreeStoreNode_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetText }}; -// wxString GetText() const; -static int LUACALL wxLua_wxDataViewTreeStoreNode_GetText(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_IsContainer[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_IsContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_IsContainer[1] = {{ wxLua_wxDataViewTreeStoreNode_IsContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_IsContainer }}; -// virtual bool IsContainer(); -static int LUACALL wxLua_wxDataViewTreeStoreNode_IsContainer(lua_State *L) -{ - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call IsContainer - bool returns = (self->IsContainer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_SetData[] = { &wxluatype_wxDataViewTreeStoreNode, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_SetData[1] = {{ wxLua_wxDataViewTreeStoreNode_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_SetData }}; -// void SetData( wxClientData *data ); -static int LUACALL wxLua_wxDataViewTreeStoreNode_SetData(lua_State *L) -{ - // wxClientData data - wxClientData * data = (wxClientData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClientData); - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call SetData - self->SetData(data); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_SetIcon[] = { &wxluatype_wxDataViewTreeStoreNode, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_SetIcon[1] = {{ wxLua_wxDataViewTreeStoreNode_SetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_SetIcon }}; -// void SetIcon( const wxIcon &icon ); -static int LUACALL wxLua_wxDataViewTreeStoreNode_SetIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call SetIcon - self->SetIcon(*icon); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_SetText[] = { &wxluatype_wxDataViewTreeStoreNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_SetText[1] = {{ wxLua_wxDataViewTreeStoreNode_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_SetText }}; -// void SetText( const wxString &text ); -static int LUACALL wxLua_wxDataViewTreeStoreNode_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewTreeStoreNode * self = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call SetText - self->SetText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_delete[] = { &wxluatype_wxDataViewTreeStoreNode, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_delete }}; - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_constructor[] = { &wxluatype_wxDataViewTreeStoreNode, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreNode_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_constructor[1] = {{ wxLua_wxDataViewTreeStoreNode_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_constructor }}; -// wxDataViewTreeStoreNode(wxDataViewTreeStoreNode *parent, const wxString &text, const wxIcon &icon = wxNullIcon, wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStoreNode_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 4 ? (wxClientData *)wxluaT_getuserdatatype(L, 4, wxluatype_wxClientData) : NULL); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 3 ? (const wxIcon *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // wxDataViewTreeStoreNode parent - wxDataViewTreeStoreNode * parent = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call constructor - wxDataViewTreeStoreNode* returns = new wxDataViewTreeStoreNode(parent, text, *icon, data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewTreeStoreNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStoreNode); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStoreNode_GetIcon1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetIcon1 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStoreNode_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreNode_GetIcon }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - -void wxLua_wxDataViewTreeStoreNode_delete_function(void** p) -{ - wxDataViewTreeStoreNode* o = (wxDataViewTreeStoreNode*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewTreeStoreNode_methods[] = { - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetData, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon_overload, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetIcon_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetItem, 1, NULL }, - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetParent, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_GetText, 1, NULL }, - { "IsContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_IsContainer, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_SetData, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_SetIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_SetText, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_delete, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "wxDataViewTreeStoreNode", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewTreeStoreNode_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewTreeStoreNode_methodCount = sizeof(wxDataViewTreeStoreNode_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewTreeStoreContainerNode -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewTreeStoreContainerNode' -int wxluatype_wxDataViewTreeStoreContainerNode = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren[] = { &wxluatype_wxDataViewTreeStoreContainerNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren }}; -// void DestroyChildren(); -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren(lua_State *L) -{ - // get this - wxDataViewTreeStoreContainerNode * self = (wxDataViewTreeStoreContainerNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreContainerNode); - // call DestroyChildren - self->DestroyChildren(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1[] = { &wxluatype_wxDataViewTreeStoreContainerNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1 }}; -// %wxchkver_3_1_6 wxIcon GetExpandedIcon() const; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1(lua_State *L) -{ - // get this - wxDataViewTreeStoreContainerNode * self = (wxDataViewTreeStoreContainerNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreContainerNode); - // call GetExpandedIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetExpandedIcon()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon[] = { &wxluatype_wxDataViewTreeStoreContainerNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon }}; -// !%wxchkver_3_1_6 const wxIcon &GetExpandedIcon() const; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon(lua_State *L) -{ - // get this - wxDataViewTreeStoreContainerNode * self = (wxDataViewTreeStoreContainerNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreContainerNode); - // call GetExpandedIcon - const wxIcon* returns = (const wxIcon*)&self->GetExpandedIcon(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_IsExpanded[] = { &wxluatype_wxDataViewTreeStoreContainerNode, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_IsExpanded[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_IsExpanded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_IsExpanded }}; -// bool IsExpanded() const; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_IsExpanded(lua_State *L) -{ - // get this - wxDataViewTreeStoreContainerNode * self = (wxDataViewTreeStoreContainerNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreContainerNode); - // call IsExpanded - bool returns = (self->IsExpanded()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_SetExpanded[] = { &wxluatype_wxDataViewTreeStoreContainerNode, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_SetExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_SetExpanded[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_SetExpanded, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_SetExpanded }}; -// void SetExpanded( bool expanded = true ); -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_SetExpanded(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool expanded = true - bool expanded = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxDataViewTreeStoreContainerNode * self = (wxDataViewTreeStoreContainerNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreContainerNode); - // call SetExpanded - self->SetExpanded(expanded); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon[] = { &wxluatype_wxDataViewTreeStoreContainerNode, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon }}; -// void SetExpandedIcon( const wxIcon &icon ); -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxDataViewTreeStoreContainerNode * self = (wxDataViewTreeStoreContainerNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreContainerNode); - // call SetExpandedIcon - self->SetExpandedIcon(*icon); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_delete[] = { &wxluatype_wxDataViewTreeStoreContainerNode, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_delete }}; - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_constructor[] = { &wxluatype_wxDataViewTreeStoreNode, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_constructor[1] = {{ wxLua_wxDataViewTreeStoreContainerNode_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 5, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_constructor }}; -// const wxIcon &icon = wxNullIcon, const wxIcon &expanded = wxNullIcon, wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStoreContainerNode_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 5 ? (wxClientData *)wxluaT_getuserdatatype(L, 5, wxluatype_wxClientData) : NULL); - // const wxIcon expanded = wxNullIcon - const wxIcon * expanded = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 3 ? (const wxIcon *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // wxDataViewTreeStoreNode parent - wxDataViewTreeStoreNode * parent = (wxDataViewTreeStoreNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStoreNode); - // call constructor - wxDataViewTreeStoreContainerNode* returns = new wxDataViewTreeStoreContainerNode(parent, text, *icon, *expanded, data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewTreeStoreContainerNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStoreContainerNode); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon1 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - -void wxLua_wxDataViewTreeStoreContainerNode_delete_function(void** p) -{ - wxDataViewTreeStoreContainerNode* o = (wxDataViewTreeStoreContainerNode*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewTreeStoreContainerNode_methods[] = { - { "DestroyChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_DestroyChildren, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - { "GetExpandedIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon_overload, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_GetExpandedIcon_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_IsExpanded, 1, NULL }, - { "SetExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_SetExpanded, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "SetExpandedIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_SetExpandedIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_delete, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "wxDataViewTreeStoreContainerNode", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewTreeStoreContainerNode_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewTreeStoreContainerNode_methodCount = sizeof(wxDataViewTreeStoreContainerNode_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewTreeStore -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewTreeStore' -int wxluatype_wxDataViewTreeStore = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_AppendContainer[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_AppendContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_AppendContainer[1] = {{ wxLua_wxDataViewTreeStore_AppendContainer, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxDataViewTreeStore_AppendContainer }}; -// wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStore_AppendContainer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 6 ? (wxClientData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxClientData) : NULL); - // const wxIcon expanded = wxNullIcon - const wxIcon * expanded = (argCount >= 5 ? (const wxIcon *)wxluaT_getuserdatatype(L, 5, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call AppendContainer - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->AppendContainer(*parent, text, *icon, *expanded, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_AppendItem[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_AppendItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_AppendItem[1] = {{ wxLua_wxDataViewTreeStore_AppendItem, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxDataViewTreeStore_AppendItem }}; -// const wxString &text, const wxIcon &icon = wxNullIcon, wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStore_AppendItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 5 ? (wxClientData *)wxluaT_getuserdatatype(L, 5, wxluatype_wxClientData) : NULL); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call AppendItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->AppendItem(*parent, text, *icon, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_DeleteAllItems[] = { &wxluatype_wxDataViewTreeStore, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_DeleteAllItems[1] = {{ wxLua_wxDataViewTreeStore_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStore_DeleteAllItems }}; -// void DeleteAllItems(); // FIXME: segfault -static int LUACALL wxLua_wxDataViewTreeStore_DeleteAllItems(lua_State *L) -{ - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call DeleteAllItems - self->DeleteAllItems(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_DeleteChildren[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_DeleteChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_DeleteChildren[1] = {{ wxLua_wxDataViewTreeStore_DeleteChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_DeleteChildren }}; -// void DeleteChildren( const wxDataViewItem& item ); -static int LUACALL wxLua_wxDataViewTreeStore_DeleteChildren(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call DeleteChildren - self->DeleteChildren(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_DeleteItem[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_DeleteItem[1] = {{ wxLua_wxDataViewTreeStore_DeleteItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_DeleteItem }}; -// void DeleteItem( const wxDataViewItem& item ); -static int LUACALL wxLua_wxDataViewTreeStore_DeleteItem(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call DeleteItem - self->DeleteItem(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_FindContainerNode[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_FindContainerNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_FindContainerNode[1] = {{ wxLua_wxDataViewTreeStore_FindContainerNode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_FindContainerNode }}; -// wxDataViewTreeStoreContainerNode *FindContainerNode( const wxDataViewItem &item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_FindContainerNode(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call FindContainerNode - wxDataViewTreeStoreContainerNode* returns = (wxDataViewTreeStoreContainerNode*)self->FindContainerNode(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStoreContainerNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_FindNode[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_FindNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_FindNode[1] = {{ wxLua_wxDataViewTreeStore_FindNode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_FindNode }}; -// wxDataViewTreeStoreNode *FindNode( const wxDataViewItem &item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_FindNode(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call FindNode - wxDataViewTreeStoreNode* returns = (wxDataViewTreeStoreNode*)self->FindNode(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStoreNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetChildCount[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetChildCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetChildCount[1] = {{ wxLua_wxDataViewTreeStore_GetChildCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetChildCount }}; -// int GetChildCount( const wxDataViewItem& parent ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetChildCount(lua_State *L) -{ - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetChildCount - int returns = (self->GetChildCount(*parent)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemData[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemData[1] = {{ wxLua_wxDataViewTreeStore_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemData }}; -// wxClientData *GetItemData( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemData(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetItemData - wxClientData* returns = (wxClientData*)self->GetItemData(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemExpandedIcon1[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemExpandedIcon1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon1[1] = {{ wxLua_wxDataViewTreeStore_GetItemExpandedIcon1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemExpandedIcon1 }}; -// %wxchkver_3_1_6 wxIcon GetItemExpandedIcon( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemExpandedIcon1(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetItemExpandedIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetItemExpandedIcon(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -#if (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemExpandedIcon[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemExpandedIcon(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon[1] = {{ wxLua_wxDataViewTreeStore_GetItemExpandedIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemExpandedIcon }}; -// !%wxchkver_3_1_6 const wxIcon &GetItemExpandedIcon( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemExpandedIcon(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetItemExpandedIcon - const wxIcon* returns = (const wxIcon*)&self->GetItemExpandedIcon(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemIcon1[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemIcon1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon1[1] = {{ wxLua_wxDataViewTreeStore_GetItemIcon1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemIcon1 }}; -// %wxchkver_3_1_6 wxIcon GetItemIcon( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemIcon1(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetItemIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetItemIcon(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -#if (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemIcon[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemIcon(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon[1] = {{ wxLua_wxDataViewTreeStore_GetItemIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemIcon }}; -// !%wxchkver_3_1_6 const wxIcon &GetItemIcon( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemIcon(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetItemIcon - const wxIcon* returns = (const wxIcon*)&self->GetItemIcon(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemText[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemText[1] = {{ wxLua_wxDataViewTreeStore_GetItemText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemText }}; -// wxString GetItemText( const wxDataViewItem& item ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetItemText(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetItemText - wxString returns = (self->GetItemText(*item)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetNthChild[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetNthChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetNthChild[1] = {{ wxLua_wxDataViewTreeStore_GetNthChild, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetNthChild }}; -// wxDataViewItem GetNthChild( const wxDataViewItem& parent, unsigned int pos ) const; -static int LUACALL wxLua_wxDataViewTreeStore_GetNthChild(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetNthChild - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetNthChild(*parent, pos)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetRoot[] = { &wxluatype_wxDataViewTreeStore, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_GetRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetRoot[1] = {{ wxLua_wxDataViewTreeStore_GetRoot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetRoot }}; -// wxDataViewTreeStoreNode *GetRoot() const; -static int LUACALL wxLua_wxDataViewTreeStore_GetRoot(lua_State *L) -{ - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call GetRoot - wxDataViewTreeStoreNode* returns = (wxDataViewTreeStoreNode*)self->GetRoot(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStoreNode); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_InsertContainer[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_InsertContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_InsertContainer[1] = {{ wxLua_wxDataViewTreeStore_InsertContainer, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxDataViewTreeStore_InsertContainer }}; -// wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStore_InsertContainer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 7 ? (wxClientData *)wxluaT_getuserdatatype(L, 7, wxluatype_wxClientData) : NULL); - // const wxIcon expanded = wxNullIcon - const wxIcon * expanded = (argCount >= 6 ? (const wxIcon *)wxluaT_getuserdatatype(L, 6, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 5 ? (const wxIcon *)wxluaT_getuserdatatype(L, 5, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // const wxDataViewItem previous - const wxDataViewItem * previous = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call InsertContainer - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->InsertContainer(*parent, *previous, text, *icon, *expanded, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_InsertItem[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_InsertItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_InsertItem[1] = {{ wxLua_wxDataViewTreeStore_InsertItem, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxDataViewTreeStore_InsertItem }}; -// const wxString &text, const wxIcon &icon = wxNullIcon, wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStore_InsertItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 6 ? (wxClientData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxClientData) : NULL); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 5 ? (const wxIcon *)wxluaT_getuserdatatype(L, 5, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // const wxDataViewItem previous - const wxDataViewItem * previous = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call InsertItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->InsertItem(*parent, *previous, text, *icon, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_PrependContainer[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_PrependContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_PrependContainer[1] = {{ wxLua_wxDataViewTreeStore_PrependContainer, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxDataViewTreeStore_PrependContainer }}; -// wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStore_PrependContainer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 6 ? (wxClientData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxClientData) : NULL); - // const wxIcon expanded = wxNullIcon - const wxIcon * expanded = (argCount >= 5 ? (const wxIcon *)wxluaT_getuserdatatype(L, 5, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call PrependContainer - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->PrependContainer(*parent, text, *icon, *expanded, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_PrependItem[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_PrependItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_PrependItem[1] = {{ wxLua_wxDataViewTreeStore_PrependItem, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxDataViewTreeStore_PrependItem }}; -// const wxString &text, const wxIcon &icon = wxNullIcon, wxClientData *data = NULL ); -static int LUACALL wxLua_wxDataViewTreeStore_PrependItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 5 ? (wxClientData *)wxluaT_getuserdatatype(L, 5, wxluatype_wxClientData) : NULL); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxDataViewItem parent - const wxDataViewItem * parent = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call PrependItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->PrependItem(*parent, text, *icon, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemData[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemData[1] = {{ wxLua_wxDataViewTreeStore_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemData }}; -// void SetItemData( const wxDataViewItem& item, wxClientData *data ); -static int LUACALL wxLua_wxDataViewTreeStore_SetItemData(lua_State *L) -{ - // wxClientData data - wxClientData * data = (wxClientData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxClientData); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call SetItemData - self->SetItemData(*item, data); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemExpandedIcon[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_SetItemExpandedIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemExpandedIcon[1] = {{ wxLua_wxDataViewTreeStore_SetItemExpandedIcon, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemExpandedIcon }}; -// void SetItemExpandedIcon( const wxDataViewItem& item, const wxIcon &icon ); -static int LUACALL wxLua_wxDataViewTreeStore_SetItemExpandedIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIcon); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call SetItemExpandedIcon - self->SetItemExpandedIcon(*item, *icon); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemIcon[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_SetItemIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemIcon[1] = {{ wxLua_wxDataViewTreeStore_SetItemIcon, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemIcon }}; -// void SetItemIcon( const wxDataViewItem& item, const wxIcon &icon ); -static int LUACALL wxLua_wxDataViewTreeStore_SetItemIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIcon); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call SetItemIcon - self->SetItemIcon(*item, *icon); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemText[] = { &wxluatype_wxDataViewTreeStore, &wxluatype_wxDataViewItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewTreeStore_SetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemText[1] = {{ wxLua_wxDataViewTreeStore_SetItemText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewTreeStore_SetItemText }}; -// void SetItemText( const wxDataViewItem& item, const wxString &text ); -static int LUACALL wxLua_wxDataViewTreeStore_SetItemText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewTreeStore * self = (wxDataViewTreeStore *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTreeStore); - // call SetItemText - self->SetItemText(*item, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTreeStore_delete[] = { &wxluatype_wxDataViewTreeStore, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewTreeStore_delete }}; - -static int LUACALL wxLua_wxDataViewTreeStore_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_constructor[1] = {{ wxLua_wxDataViewTreeStore_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewTreeStore(); -static int LUACALL wxLua_wxDataViewTreeStore_constructor(lua_State *L) -{ - // call constructor - wxDataViewTreeStore* returns = new wxDataViewTreeStore(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewTreeStore); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTreeStore); - - return 1; -} - - - - -#if ((((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon))||((((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon_overload[] = -{ - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStore_GetItemExpandedIcon1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemExpandedIcon1 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -#if (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStore_GetItemExpandedIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemExpandedIcon }, -#endif // (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon_overload[] = -{ - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStore_GetItemIcon1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemIcon1 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -#if (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewTreeStore_GetItemIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewTreeStore_GetItemIcon }, -#endif // (((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon))||((((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - -// %override wxLua_wxDataViewTreeStore_delete_function -// delete is private in wxDataViewModel, DecRef() it in derived classes -void wxLua_wxDataViewTreeStore_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewTreeStore_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "AppendContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_AppendContainer, 1, NULL }, - { "AppendItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_AppendItem, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_DeleteAllItems, 1, NULL }, - { "DeleteChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_DeleteChildren, 1, NULL }, - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_DeleteItem, 1, NULL }, - { "FindContainerNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_FindContainerNode, 1, NULL }, - { "FindNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_FindNode, 1, NULL }, - { "GetChildCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetChildCount, 1, NULL }, - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemData, 1, NULL }, - -#if ((((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon))||((((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - { "GetItemExpandedIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon_overload, s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemExpandedIcon_overload_count, 0 }, - { "GetItemIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon_overload, s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemIcon_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon))||((((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - - { "GetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetItemText, 1, NULL }, - { "GetNthChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetNthChild, 1, NULL }, - { "GetRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_GetRoot, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "InsertContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_InsertContainer, 1, NULL }, - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_InsertItem, 1, NULL }, - { "PrependContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_PrependContainer, 1, NULL }, - { "PrependItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_PrependItem, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemData, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "SetItemExpandedIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemExpandedIcon, 1, NULL }, - { "SetItemIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { "SetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTreeStore_SetItemText, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewTreeStore_delete, 1, NULL }, - { "wxDataViewTreeStore", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewTreeStore_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewTreeStore_methodCount = sizeof(wxDataViewTreeStore_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewRenderer' -int wxluatype_wxDataViewRenderer = WXLUA_TUNKNOWN; - - - -void wxLua_wxDataViewRenderer_delete_function(void** p) -{ - wxDataViewRenderer* o = (wxDataViewRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewRenderer_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxDataViewRenderer_methodCount = sizeof(wxDataViewRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxHeaderColumn -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHeaderColumn' -int wxluatype_wxHeaderColumn = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_GetAlignment[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_GetAlignment[1] = {{ wxLua_wxHeaderColumn_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_GetAlignment }}; -// virtual wxAlignment GetAlignment() const = 0; -static int LUACALL wxLua_wxHeaderColumn_GetAlignment(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call GetAlignment - wxAlignment returns = (self->GetAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_GetBitmap[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_GetBitmap[1] = {{ wxLua_wxHeaderColumn_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_GetBitmap }}; -// virtual wxBitmap GetBitmap() const = 0; -static int LUACALL wxLua_wxHeaderColumn_GetBitmap(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_GetFlags[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_GetFlags[1] = {{ wxLua_wxHeaderColumn_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_GetFlags }}; -// virtual int GetFlags() const = 0; -static int LUACALL wxLua_wxHeaderColumn_GetFlags(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_GetMinWidth[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_GetMinWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_GetMinWidth[1] = {{ wxLua_wxHeaderColumn_GetMinWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_GetMinWidth }}; -// virtual int GetMinWidth() const = 0; -static int LUACALL wxLua_wxHeaderColumn_GetMinWidth(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call GetMinWidth - int returns = (self->GetMinWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_GetTitle[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_GetTitle[1] = {{ wxLua_wxHeaderColumn_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_GetTitle }}; -// virtual wxString GetTitle() const = 0; -static int LUACALL wxLua_wxHeaderColumn_GetTitle(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_GetWidth[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_GetWidth[1] = {{ wxLua_wxHeaderColumn_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_GetWidth }}; -// virtual int GetWidth() const = 0; -static int LUACALL wxLua_wxHeaderColumn_GetWidth(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_HasFlag[] = { &wxluatype_wxHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHeaderColumn_HasFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_HasFlag[1] = {{ wxLua_wxHeaderColumn_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderColumn_HasFlag }}; -// bool HasFlag(int flag) const; -static int LUACALL wxLua_wxHeaderColumn_HasFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsHidden[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsHidden(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsHidden[1] = {{ wxLua_wxHeaderColumn_IsHidden, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsHidden }}; -// virtual bool IsHidden() const; -static int LUACALL wxLua_wxHeaderColumn_IsHidden(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsHidden - bool returns = (self->IsHidden()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsReorderable[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsReorderable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsReorderable[1] = {{ wxLua_wxHeaderColumn_IsReorderable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsReorderable }}; -// virtual bool IsReorderable() const; -static int LUACALL wxLua_wxHeaderColumn_IsReorderable(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsReorderable - bool returns = (self->IsReorderable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsResizeable[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsResizeable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsResizeable[1] = {{ wxLua_wxHeaderColumn_IsResizeable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsResizeable }}; -// virtual bool IsResizeable() const; -static int LUACALL wxLua_wxHeaderColumn_IsResizeable(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsResizeable - bool returns = (self->IsResizeable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsShown[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsShown[1] = {{ wxLua_wxHeaderColumn_IsShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsShown }}; -// bool IsShown() const; -static int LUACALL wxLua_wxHeaderColumn_IsShown(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsShown - bool returns = (self->IsShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsSortKey[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsSortKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsSortKey[1] = {{ wxLua_wxHeaderColumn_IsSortKey, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsSortKey }}; -// virtual bool IsSortKey() const; -static int LUACALL wxLua_wxHeaderColumn_IsSortKey(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsSortKey - bool returns = (self->IsSortKey()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsSortOrderAscending[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsSortOrderAscending(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsSortOrderAscending[1] = {{ wxLua_wxHeaderColumn_IsSortOrderAscending, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsSortOrderAscending }}; -// virtual bool IsSortOrderAscending() const; -static int LUACALL wxLua_wxHeaderColumn_IsSortOrderAscending(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsSortOrderAscending - bool returns = (self->IsSortOrderAscending()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_IsSortable[] = { &wxluatype_wxHeaderColumn, NULL }; -static int LUACALL wxLua_wxHeaderColumn_IsSortable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_IsSortable[1] = {{ wxLua_wxHeaderColumn_IsSortable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_IsSortable }}; -// virtual bool IsSortable() const -static int LUACALL wxLua_wxHeaderColumn_IsSortable(lua_State *L) -{ - // get this - wxHeaderColumn * self = (wxHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderColumn); - // call IsSortable - bool returns = (self->IsSortable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderColumn_delete[] = { &wxluatype_wxHeaderColumn, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderColumn_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHeaderColumn_delete }}; - - - - -void wxLua_wxHeaderColumn_delete_function(void** p) -{ - wxHeaderColumn* o = (wxHeaderColumn*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHeaderColumn_methods[] = { - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_GetAlignment, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_GetBitmap, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_GetFlags, 1, NULL }, - { "GetMinWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_GetMinWidth, 1, NULL }, - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_GetTitle, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_GetWidth, 1, NULL }, - { "HasFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_HasFlag, 1, NULL }, - { "IsHidden", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsHidden, 1, NULL }, - { "IsReorderable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsReorderable, 1, NULL }, - { "IsResizeable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsResizeable, 1, NULL }, - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsShown, 1, NULL }, - { "IsSortKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsSortKey, 1, NULL }, - { "IsSortOrderAscending", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsSortOrderAscending, 1, NULL }, - { "IsSortable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderColumn_IsSortable, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHeaderColumn_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHeaderColumn_methodCount = sizeof(wxHeaderColumn_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxSettableHeaderColumn -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSettableHeaderColumn' -int wxluatype_wxSettableHeaderColumn = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ChangeFlag[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_ChangeFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_ChangeFlag[1] = {{ wxLua_wxSettableHeaderColumn_ChangeFlag, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ChangeFlag }}; -// void ChangeFlag(int flag, bool set); -static int LUACALL wxLua_wxSettableHeaderColumn_ChangeFlag(lua_State *L) -{ - // bool set - bool set = wxlua_getbooleantype(L, 3); - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call ChangeFlag - self->ChangeFlag(flag, set); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ClearFlag[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_ClearFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_ClearFlag[1] = {{ wxLua_wxSettableHeaderColumn_ClearFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ClearFlag }}; -// void ClearFlag(int flag); -static int LUACALL wxLua_wxSettableHeaderColumn_ClearFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call ClearFlag - self->ClearFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetAlignment[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetAlignment[1] = {{ wxLua_wxSettableHeaderColumn_SetAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetAlignment }}; -// virtual void SetAlignment(wxAlignment align) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetAlignment(lua_State *L) -{ - // wxAlignment align - wxAlignment align = (wxAlignment)wxlua_getenumtype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetAlignment - self->SetAlignment(align); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetBitmap[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetBitmap[1] = {{ wxLua_wxSettableHeaderColumn_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetBitmap }}; -// virtual void SetBitmap(const wxBitmap& bitmap) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetFlag[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetFlag[1] = {{ wxLua_wxSettableHeaderColumn_SetFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetFlag }}; -// void SetFlag(int flag); -static int LUACALL wxLua_wxSettableHeaderColumn_SetFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetFlag - self->SetFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetFlags[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetFlags[1] = {{ wxLua_wxSettableHeaderColumn_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetFlags }}; -// virtual void SetFlags(int flags) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetHidden[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetHidden(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetHidden[1] = {{ wxLua_wxSettableHeaderColumn_SetHidden, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetHidden }}; -// virtual void SetHidden(bool hidden); -static int LUACALL wxLua_wxSettableHeaderColumn_SetHidden(lua_State *L) -{ - // bool hidden - bool hidden = wxlua_getbooleantype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetHidden - self->SetHidden(hidden); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetMinWidth[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetMinWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetMinWidth[1] = {{ wxLua_wxSettableHeaderColumn_SetMinWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetMinWidth }}; -// virtual void SetMinWidth(int minWidth) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetMinWidth(lua_State *L) -{ - // int minWidth - int minWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetMinWidth - self->SetMinWidth(minWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetReorderable[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetReorderable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetReorderable[1] = {{ wxLua_wxSettableHeaderColumn_SetReorderable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetReorderable }}; -// virtual void SetReorderable(bool reorderable); -static int LUACALL wxLua_wxSettableHeaderColumn_SetReorderable(lua_State *L) -{ - // bool reorderable - bool reorderable = wxlua_getbooleantype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetReorderable - self->SetReorderable(reorderable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetResizeable[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetResizeable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetResizeable[1] = {{ wxLua_wxSettableHeaderColumn_SetResizeable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetResizeable }}; -// virtual void SetResizeable(bool resizable); -static int LUACALL wxLua_wxSettableHeaderColumn_SetResizeable(lua_State *L) -{ - // bool resizable - bool resizable = wxlua_getbooleantype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetResizeable - self->SetResizeable(resizable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetSortOrder[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetSortOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetSortOrder[1] = {{ wxLua_wxSettableHeaderColumn_SetSortOrder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetSortOrder }}; -// virtual void SetSortOrder(bool ascending) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetSortOrder(lua_State *L) -{ - // bool ascending - bool ascending = wxlua_getbooleantype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetSortOrder - self->SetSortOrder(ascending); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetSortable[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetSortable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetSortable[1] = {{ wxLua_wxSettableHeaderColumn_SetSortable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetSortable }}; -// virtual void SetSortable(bool sortable); -static int LUACALL wxLua_wxSettableHeaderColumn_SetSortable(lua_State *L) -{ - // bool sortable - bool sortable = wxlua_getbooleantype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetSortable - self->SetSortable(sortable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetTitle[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetTitle[1] = {{ wxLua_wxSettableHeaderColumn_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetTitle }}; -// virtual void SetTitle(const wxString& title) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetTitle - self->SetTitle(title); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetWidth[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_SetWidth[1] = {{ wxLua_wxSettableHeaderColumn_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_SetWidth }}; -// virtual void SetWidth(int width) = 0; -static int LUACALL wxLua_wxSettableHeaderColumn_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ToggleFlag[] = { &wxluatype_wxSettableHeaderColumn, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_ToggleFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_ToggleFlag[1] = {{ wxLua_wxSettableHeaderColumn_ToggleFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ToggleFlag }}; -// void ToggleFlag(int flag); -static int LUACALL wxLua_wxSettableHeaderColumn_ToggleFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call ToggleFlag - self->ToggleFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ToggleSortOrder[] = { &wxluatype_wxSettableHeaderColumn, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_ToggleSortOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_ToggleSortOrder[1] = {{ wxLua_wxSettableHeaderColumn_ToggleSortOrder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_ToggleSortOrder }}; -// void ToggleSortOrder(); -static int LUACALL wxLua_wxSettableHeaderColumn_ToggleSortOrder(lua_State *L) -{ - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call ToggleSortOrder - self->ToggleSortOrder(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSettableHeaderColumn_UnsetAsSortKey[] = { &wxluatype_wxSettableHeaderColumn, NULL }; -static int LUACALL wxLua_wxSettableHeaderColumn_UnsetAsSortKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSettableHeaderColumn_UnsetAsSortKey[1] = {{ wxLua_wxSettableHeaderColumn_UnsetAsSortKey, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSettableHeaderColumn_UnsetAsSortKey }}; -// virtual void UnsetAsSortKey(); -static int LUACALL wxLua_wxSettableHeaderColumn_UnsetAsSortKey(lua_State *L) -{ - // get this - wxSettableHeaderColumn * self = (wxSettableHeaderColumn *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSettableHeaderColumn); - // call UnsetAsSortKey - self->UnsetAsSortKey(); - - return 0; -} - - - - -void wxLua_wxSettableHeaderColumn_delete_function(void** p) -{ - wxSettableHeaderColumn* o = (wxSettableHeaderColumn*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSettableHeaderColumn_methods[] = { - { "ChangeFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_ChangeFlag, 1, NULL }, - { "ClearFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_ClearFlag, 1, NULL }, - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetAlignment, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetBitmap, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - - { "SetFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetFlag, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetFlags, 1, NULL }, - { "SetHidden", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetHidden, 1, NULL }, - { "SetMinWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetMinWidth, 1, NULL }, - { "SetReorderable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetReorderable, 1, NULL }, - { "SetResizeable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetResizeable, 1, NULL }, - { "SetSortOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetSortOrder, 1, NULL }, - { "SetSortable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetSortable, 1, NULL }, - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetTitle, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_SetWidth, 1, NULL }, - { "ToggleFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_ToggleFlag, 1, NULL }, - { "ToggleSortOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_ToggleSortOrder, 1, NULL }, - { "UnsetAsSortKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSettableHeaderColumn_UnsetAsSortKey, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSettableHeaderColumn_methodCount = sizeof(wxSettableHeaderColumn_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewColumnBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewColumnBase' -int wxluatype_wxDataViewColumnBase = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetBitmap[] = { &wxluatype_wxDataViewColumnBase, NULL }; -static int LUACALL wxLua_wxDataViewColumnBase_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumnBase_GetBitmap[1] = {{ wxLua_wxDataViewColumnBase_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetBitmap }}; -// virtual wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxDataViewColumnBase_GetBitmap(lua_State *L) -{ - // get this - wxDataViewColumnBase * self = (wxDataViewColumnBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewColumnBase); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetModelColumn[] = { &wxluatype_wxDataViewColumnBase, NULL }; -static int LUACALL wxLua_wxDataViewColumnBase_GetModelColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumnBase_GetModelColumn[1] = {{ wxLua_wxDataViewColumnBase_GetModelColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetModelColumn }}; -// unsigned int GetModelColumn() const; -static int LUACALL wxLua_wxDataViewColumnBase_GetModelColumn(lua_State *L) -{ - // get this - wxDataViewColumnBase * self = (wxDataViewColumnBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewColumnBase); - // call GetModelColumn - unsigned int returns = (self->GetModelColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetOwner[] = { &wxluatype_wxDataViewColumnBase, NULL }; -static int LUACALL wxLua_wxDataViewColumnBase_GetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumnBase_GetOwner[1] = {{ wxLua_wxDataViewColumnBase_GetOwner, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetOwner }}; -// wxDataViewCtrl *GetOwner() const; -static int LUACALL wxLua_wxDataViewColumnBase_GetOwner(lua_State *L) -{ - // get this - wxDataViewColumnBase * self = (wxDataViewColumnBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewColumnBase); - // call GetOwner - wxDataViewCtrl* returns = (wxDataViewCtrl*)self->GetOwner(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewCtrl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetRenderer[] = { &wxluatype_wxDataViewColumnBase, NULL }; -static int LUACALL wxLua_wxDataViewColumnBase_GetRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumnBase_GetRenderer[1] = {{ wxLua_wxDataViewColumnBase_GetRenderer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewColumnBase_GetRenderer }}; -// wxDataViewRenderer* GetRenderer() const; -static int LUACALL wxLua_wxDataViewColumnBase_GetRenderer(lua_State *L) -{ - // get this - wxDataViewColumnBase * self = (wxDataViewColumnBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewColumnBase); - // call GetRenderer - wxDataViewRenderer* returns = (wxDataViewRenderer*)self->GetRenderer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewRenderer); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumnBase_SetBitmap[] = { &wxluatype_wxDataViewColumnBase, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxDataViewColumnBase_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumnBase_SetBitmap[1] = {{ wxLua_wxDataViewColumnBase_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewColumnBase_SetBitmap }}; -// virtual void SetBitmap(const wxBitmap& bitmap); -static int LUACALL wxLua_wxDataViewColumnBase_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewColumnBase * self = (wxDataViewColumnBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewColumnBase); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumnBase_SetOwner[] = { &wxluatype_wxDataViewColumnBase, &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewColumnBase_SetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumnBase_SetOwner[1] = {{ wxLua_wxDataViewColumnBase_SetOwner, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewColumnBase_SetOwner }}; -// virtual void SetOwner(wxDataViewCtrl *owner) %ungc_this; // NOTE: valid owner must be presented -static int LUACALL wxLua_wxDataViewColumnBase_SetOwner(lua_State *L) -{ - // wxDataViewCtrl owner - wxDataViewCtrl * owner = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewCtrl); - // get this - wxDataViewColumnBase * self = (wxDataViewColumnBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewColumnBase); - // call SetOwner - self->SetOwner(owner); - - return 0; -} - - - - -void wxLua_wxDataViewColumnBase_delete_function(void** p) -{ - wxDataViewColumnBase* o = (wxDataViewColumnBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewColumnBase_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewColumnBase_GetBitmap, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - - { "GetModelColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewColumnBase_GetModelColumn, 1, NULL }, - { "GetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewColumnBase_GetOwner, 1, NULL }, - { "GetRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewColumnBase_GetRenderer, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewColumnBase_SetBitmap, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - - { "SetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewColumnBase_SetOwner, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewColumnBase_methodCount = sizeof(wxDataViewColumnBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewColumn -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewColumn' -int wxluatype_wxDataViewColumn = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumn_constructor1[] = { &wxluatype_wxBitmap, &wxluatype_wxDataViewRenderer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewColumn_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumn_constructor1[1] = {{ wxLua_wxDataViewColumn_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 6, s_wxluatypeArray_wxLua_wxDataViewColumn_constructor1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewColumn_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 5 ? (wxAlignment)wxlua_getenumtype(L, 5) : wxALIGN_CENTER); - // int width = wxDVC_DEFAULT_WIDTH - int width = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDVC_DEFAULT_WIDTH); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // wxDataViewRenderer renderer - wxDataViewRenderer * renderer = (wxDataViewRenderer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewRenderer); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxDataViewColumn* returns = new wxDataViewColumn(*bitmap, renderer, model_column, width, align, flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewColumn_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxDataViewRenderer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewColumn_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumn_constructor[1] = {{ wxLua_wxDataViewColumn_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 6, s_wxluatypeArray_wxLua_wxDataViewColumn_constructor }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewColumn_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 5 ? (wxAlignment)wxlua_getenumtype(L, 5) : wxALIGN_CENTER); - // int width = wxDVC_DEFAULT_WIDTH - int width = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDVC_DEFAULT_WIDTH); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // wxDataViewRenderer renderer - wxDataViewRenderer * renderer = (wxDataViewRenderer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewRenderer); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 1); - // call constructor - wxDataViewColumn* returns = new wxDataViewColumn(title, renderer, model_column, width, align, flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewColumn_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewColumn_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 6, s_wxluatypeArray_wxLua_wxDataViewColumn_constructor1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewColumn_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 6, s_wxluatypeArray_wxLua_wxDataViewColumn_constructor }, -}; -static int s_wxluafunc_wxLua_wxDataViewColumn_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewColumn_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewColumn_delete_function(void** p) -{ - wxDataViewColumn* o = (wxDataViewColumn*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewColumn_methods[] = { -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewColumn", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewColumn_constructor_overload, s_wxluafunc_wxLua_wxDataViewColumn_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewColumn_methodCount = sizeof(wxDataViewColumn_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewCtrlBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewCtrlBase' -int wxluatype_wxDataViewCtrlBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AllowMultiColumnSort[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AllowMultiColumnSort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AllowMultiColumnSort[1] = {{ wxLua_wxDataViewCtrlBase_AllowMultiColumnSort, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AllowMultiColumnSort }}; -// virtual bool AllowMultiColumnSort(bool allow); -static int LUACALL wxLua_wxDataViewCtrlBase_AllowMultiColumnSort(lua_State *L) -{ - // bool allow - bool allow = wxlua_getbooleantype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AllowMultiColumnSort - bool returns = (self->AllowMultiColumnSort(allow)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendBitmapColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendBitmapColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn1[1] = {{ wxLua_wxDataViewCtrlBase_AppendBitmapColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendBitmapColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendBitmapColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendBitmapColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendBitmapColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendBitmapColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendBitmapColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendBitmapColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendBitmapColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendBitmapColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendBitmapColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendBitmapColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendColumn }}; -// virtual bool AppendColumn(%ungc wxDataViewColumn *col ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendColumn(lua_State *L) -{ - // wxDataViewColumn col - wxDataViewColumn * col = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - if (wxluaO_isgcobject(L, col)) wxluaO_undeletegcobject(L, col); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendColumn - bool returns = (self->AppendColumn(col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendDateColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendDateColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn1[1] = {{ wxLua_wxDataViewCtrlBase_AppendDateColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendDateColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendDateColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_ACTIVATABLE); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendDateColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendDateColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendDateColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendDateColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendDateColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendDateColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendDateColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_ACTIVATABLE); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendDateColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendDateColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendIconTextColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendIconTextColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn1[1] = {{ wxLua_wxDataViewCtrlBase_AppendIconTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendIconTextColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendIconTextColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendIconTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendIconTextColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendIconTextColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendIconTextColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendIconTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendIconTextColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendIconTextColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendIconTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendIconTextColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendProgressColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendProgressColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn1[1] = {{ wxLua_wxDataViewCtrlBase_AppendProgressColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendProgressColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendProgressColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendProgressColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendProgressColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendProgressColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendProgressColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendProgressColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendProgressColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendProgressColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendProgressColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendProgressColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendTextColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendTextColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn1[1] = {{ wxLua_wxDataViewCtrlBase_AppendTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendTextColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendTextColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendTextColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendTextColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendTextColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendTextColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendTextColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendTextColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendToggleColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendToggleColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn1[1] = {{ wxLua_wxDataViewCtrlBase_AppendToggleColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendToggleColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendToggleColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_TOGGLE_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_TOGGLE_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendToggleColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendToggleColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendToggleColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AppendToggleColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn[1] = {{ wxLua_wxDataViewCtrlBase_AppendToggleColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendToggleColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_AppendToggleColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_TOGGLE_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_TOGGLE_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AppendToggleColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendToggleColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AssociateModel[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewModel, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_AssociateModel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AssociateModel[1] = {{ wxLua_wxDataViewCtrlBase_AssociateModel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AssociateModel }}; -// virtual bool AssociateModel( wxDataViewModel *model ); -static int LUACALL wxLua_wxDataViewCtrlBase_AssociateModel(lua_State *L) -{ - // wxDataViewModel model - wxDataViewModel * model = (wxDataViewModel *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewModel); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call AssociateModel - bool returns = (self->AssociateModel(model)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ClearColumns[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_ClearColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_ClearColumns[1] = {{ wxLua_wxDataViewCtrlBase_ClearColumns, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ClearColumns }}; -// virtual bool ClearColumns() = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_ClearColumns(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call ClearColumns - bool returns = (self->ClearColumns()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Collapse[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_Collapse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_Collapse[1] = {{ wxLua_wxDataViewCtrlBase_Collapse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Collapse }}; -// virtual void Collapse( const wxDataViewItem & item ) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_Collapse(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call Collapse - self->Collapse(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_DeleteColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_DeleteColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_DeleteColumn[1] = {{ wxLua_wxDataViewCtrlBase_DeleteColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_DeleteColumn }}; -// virtual bool DeleteColumn( wxDataViewColumn *column ) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_DeleteColumn(lua_State *L) -{ - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call DeleteColumn - bool returns = (self->DeleteColumn(column)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EditItem[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_EditItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_EditItem[1] = {{ wxLua_wxDataViewCtrlBase_EditItem, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EditItem }}; -// virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_EditItem(lua_State *L) -{ - // const wxDataViewColumn column - const wxDataViewColumn * column = (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call EditItem - self->EditItem(*item, column); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EnableDragSource[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_EnableDragSource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_EnableDragSource[1] = {{ wxLua_wxDataViewCtrlBase_EnableDragSource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EnableDragSource }}; -// virtual bool EnableDragSource(const wxDataFormat& format); -static int LUACALL wxLua_wxDataViewCtrlBase_EnableDragSource(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call EnableDragSource - bool returns = (self->EnableDragSource(*format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EnableDropTarget[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_EnableDropTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_EnableDropTarget[1] = {{ wxLua_wxDataViewCtrlBase_EnableDropTarget, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EnableDropTarget }}; -// virtual bool EnableDropTarget(const wxDataFormat& format); -static int LUACALL wxLua_wxDataViewCtrlBase_EnableDropTarget(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call EnableDropTarget - bool returns = (self->EnableDropTarget(*format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EnsureVisible[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_EnsureVisible[1] = {{ wxLua_wxDataViewCtrlBase_EnsureVisible, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_EnsureVisible }}; -// virtual void EnsureVisible( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_EnsureVisible(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDataViewColumn column = NULL - const wxDataViewColumn * column = (argCount >= 3 ? (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn) : NULL); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call EnsureVisible - self->EnsureVisible(*item, column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Expand[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_Expand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_Expand[1] = {{ wxLua_wxDataViewCtrlBase_Expand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Expand }}; -// void Expand( const wxDataViewItem & item ); -static int LUACALL wxLua_wxDataViewCtrlBase_Expand(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call Expand - self->Expand(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ExpandAncestors[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_ExpandAncestors(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_ExpandAncestors[1] = {{ wxLua_wxDataViewCtrlBase_ExpandAncestors, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ExpandAncestors }}; -// void ExpandAncestors( const wxDataViewItem & item ); -static int LUACALL wxLua_wxDataViewCtrlBase_ExpandAncestors(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call ExpandAncestors - self->ExpandAncestors(*item); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,5))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ExpandChildren[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_ExpandChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_ExpandChildren[1] = {{ wxLua_wxDataViewCtrlBase_ExpandChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ExpandChildren }}; -// %wxchkver_3_1_5 void ExpandChildren( const wxDataViewItem & item ); -static int LUACALL wxLua_wxDataViewCtrlBase_ExpandChildren(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call ExpandChildren - self->ExpandChildren(*item); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,5))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes[1] = {{ wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes }}; -// static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); -static int LUACALL wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL - wxWindowVariant variant = (argCount >= 1 ? (wxWindowVariant)wxlua_getenumtype(L, 1) : wxWINDOW_VARIANT_NORMAL); - // call GetClassDefaultAttributes - // allocate a new object using the copy constructor - wxVisualAttributes* returns = new wxVisualAttributes(wxDataViewCtrlBase::GetClassDefaultAttributes(variant)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVisualAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetColumn[1] = {{ wxLua_wxDataViewCtrlBase_GetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetColumn }}; -// virtual wxDataViewColumn* GetColumn( unsigned int pos ) const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetColumn(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetColumn(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetColumnCount[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetColumnCount[1] = {{ wxLua_wxDataViewCtrlBase_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetColumnCount }}; -// virtual unsigned int GetColumnCount() const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetColumnCount(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetColumnPosition[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetColumnPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetColumnPosition[1] = {{ wxLua_wxDataViewCtrlBase_GetColumnPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetColumnPosition }}; -// virtual int GetColumnPosition(const wxDataViewColumn *column ) const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetColumnPosition(lua_State *L) -{ - // const wxDataViewColumn column - const wxDataViewColumn * column = (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetColumnPosition - int returns = (self->GetColumnPosition(column)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetCountPerPage[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetCountPerPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetCountPerPage[1] = {{ wxLua_wxDataViewCtrlBase_GetCountPerPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetCountPerPage }}; -// virtual int GetCountPerPage() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetCountPerPage(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetCountPerPage - int returns = (self->GetCountPerPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetCurrentColumn[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetCurrentColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetCurrentColumn[1] = {{ wxLua_wxDataViewCtrlBase_GetCurrentColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetCurrentColumn }}; -// virtual wxDataViewColumn *GetCurrentColumn() const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetCurrentColumn(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetCurrentColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetCurrentColumn(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetCurrentItem[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetCurrentItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetCurrentItem[1] = {{ wxLua_wxDataViewCtrlBase_GetCurrentItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetCurrentItem }}; -// wxDataViewItem GetCurrentItem() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetCurrentItem(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetCurrentItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetCurrentItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetDefaultAttributes[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetDefaultAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetDefaultAttributes[1] = {{ wxLua_wxDataViewCtrlBase_GetDefaultAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetDefaultAttributes }}; -// virtual wxVisualAttributes GetDefaultAttributes() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetDefaultAttributes(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetDefaultAttributes - // allocate a new object using the copy constructor - wxVisualAttributes* returns = new wxVisualAttributes(self->GetDefaultAttributes()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVisualAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetExpanderColumn[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetExpanderColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetExpanderColumn[1] = {{ wxLua_wxDataViewCtrlBase_GetExpanderColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetExpanderColumn }}; -// wxDataViewColumn *GetExpanderColumn() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetExpanderColumn(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetExpanderColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetExpanderColumn(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetIndent[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetIndent[1] = {{ wxLua_wxDataViewCtrlBase_GetIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetIndent }}; -// int GetIndent() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetIndent(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetIndent - int returns = (self->GetIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetItemRect[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetItemRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetItemRect[1] = {{ wxLua_wxDataViewCtrlBase_GetItemRect, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetItemRect }}; -// virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ) const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetItemRect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDataViewColumn column = NULL - const wxDataViewColumn * column = (argCount >= 3 ? (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn) : NULL); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetItemRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetItemRect(*item, column)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetModel[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetModel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetModel[1] = {{ wxLua_wxDataViewCtrlBase_GetModel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetModel }}; -// wxDataViewModel* GetModel(); -static int LUACALL wxLua_wxDataViewCtrlBase_GetModel(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetModel - wxDataViewModel* returns = (wxDataViewModel*)self->GetModel(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewModel); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSelectedItemsCount[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSelectedItemsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSelectedItemsCount[1] = {{ wxLua_wxDataViewCtrlBase_GetSelectedItemsCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSelectedItemsCount }}; -// virtual int GetSelectedItemsCount() const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSelectedItemsCount(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetSelectedItemsCount - int returns = (self->GetSelectedItemsCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSelection[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSelection[1] = {{ wxLua_wxDataViewCtrlBase_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSelection }}; -// wxDataViewItem GetSelection() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSelection(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetSelection - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetSelection()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSelections[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSelections[1] = {{ wxLua_wxDataViewCtrlBase_GetSelections, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSelections }}; -// virtual int GetSelections( wxDataViewItemArray & sel ) const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSelections(lua_State *L) -{ - // wxDataViewItemArray sel - wxDataViewItemArray * sel = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemArray); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetSelections - int returns = (self->GetSelections(*sel)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSortingColumn[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSortingColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSortingColumn[1] = {{ wxLua_wxDataViewCtrlBase_GetSortingColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetSortingColumn }}; -// virtual wxDataViewColumn *GetSortingColumn() const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_GetSortingColumn(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetSortingColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetSortingColumn(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetTopItem[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_GetTopItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_GetTopItem[1] = {{ wxLua_wxDataViewCtrlBase_GetTopItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_GetTopItem }}; -// virtual wxDataViewItem GetTopItem() const; -static int LUACALL wxLua_wxDataViewCtrlBase_GetTopItem(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call GetTopItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetTopItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_HasSelection[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_HasSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_HasSelection[1] = {{ wxLua_wxDataViewCtrlBase_HasSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_HasSelection }}; -// bool HasSelection() const; -static int LUACALL wxLua_wxDataViewCtrlBase_HasSelection(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call HasSelection - bool returns = (self->HasSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_InsertColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TINTEGER, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_InsertColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_InsertColumn[1] = {{ wxLua_wxDataViewCtrlBase_InsertColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_InsertColumn }}; -// virtual bool InsertColumn(unsigned int pos, %ungc wxDataViewColumn *col); -static int LUACALL wxLua_wxDataViewCtrlBase_InsertColumn(lua_State *L) -{ - // wxDataViewColumn col - wxDataViewColumn * col = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, col)) wxluaO_undeletegcobject(L, col); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call InsertColumn - bool returns = (self->InsertColumn(pos, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_IsExpanded[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_IsExpanded[1] = {{ wxLua_wxDataViewCtrlBase_IsExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_IsExpanded }}; -// virtual bool IsExpanded( const wxDataViewItem & item ) const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_IsExpanded(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call IsExpanded - bool returns = (self->IsExpanded(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed[1] = {{ wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed }}; -// virtual bool IsMultiColumnSortAllowed() const; -static int LUACALL wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call IsMultiColumnSortAllowed - bool returns = (self->IsMultiColumnSortAllowed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_IsSelected[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_IsSelected[1] = {{ wxLua_wxDataViewCtrlBase_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_IsSelected }}; -// virtual bool IsSelected( const wxDataViewItem & item ) const = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_IsSelected(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call IsSelected - bool returns = (self->IsSelected(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependBitmapColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependBitmapColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn1[1] = {{ wxLua_wxDataViewCtrlBase_PrependBitmapColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependBitmapColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependBitmapColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependBitmapColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependBitmapColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependBitmapColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependBitmapColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependBitmapColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependBitmapColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependBitmapColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependBitmapColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependBitmapColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependColumn }}; -// virtual bool PrependColumn(%ungc wxDataViewColumn *col ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependColumn(lua_State *L) -{ - // wxDataViewColumn col - wxDataViewColumn * col = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - if (wxluaO_isgcobject(L, col)) wxluaO_undeletegcobject(L, col); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependColumn - bool returns = (self->PrependColumn(col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependDateColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependDateColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn1[1] = {{ wxLua_wxDataViewCtrlBase_PrependDateColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependDateColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependDateColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_ACTIVATABLE); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependDateColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependDateColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependDateColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependDateColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependDateColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependDateColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependDateColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_ACTIVATABLE); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependDateColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependDateColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependIconTextColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependIconTextColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn1[1] = {{ wxLua_wxDataViewCtrlBase_PrependIconTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependIconTextColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependIconTextColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependIconTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependIconTextColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependIconTextColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependIconTextColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependIconTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependIconTextColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependIconTextColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependIconTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependIconTextColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependProgressColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependProgressColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn1[1] = {{ wxLua_wxDataViewCtrlBase_PrependProgressColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependProgressColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependProgressColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependProgressColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependProgressColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependProgressColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependProgressColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependProgressColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependProgressColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependProgressColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependProgressColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependProgressColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependTextColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependTextColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn1[1] = {{ wxLua_wxDataViewCtrlBase_PrependTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependTextColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependTextColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependTextColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependTextColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependTextColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependTextColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependTextColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_NOT - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_NOT); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependTextColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependToggleColumn1[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependToggleColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn1[1] = {{ wxLua_wxDataViewCtrlBase_PrependToggleColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependToggleColumn1 }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependToggleColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_TOGGLE_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_TOGGLE_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependToggleColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependToggleColumn(*label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependToggleColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_PrependToggleColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn[1] = {{ wxLua_wxDataViewCtrlBase_PrependToggleColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependToggleColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewCtrlBase_PrependToggleColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_CENTER - wxAlignment align = (argCount >= 6 ? (wxAlignment)wxlua_getenumtype(L, 6) : wxALIGN_CENTER); - // int width = wxDVC_TOGGLE_DEFAULT_WIDTH - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDVC_TOGGLE_DEFAULT_WIDTH); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 4 ? (wxDataViewCellMode)wxlua_getenumtype(L, 4) : wxDATAVIEW_CELL_INERT); - // unsigned int model_column - unsigned int model_column = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call PrependToggleColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->PrependToggleColumn(label, model_column, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Select[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_Select(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_Select[1] = {{ wxLua_wxDataViewCtrlBase_Select, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Select }}; -// virtual void Select( const wxDataViewItem & item ) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_Select(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call Select - self->Select(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SelectAll[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SelectAll[1] = {{ wxLua_wxDataViewCtrlBase_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SelectAll }}; -// virtual void SelectAll() = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_SelectAll(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SelectAll - self->SelectAll(); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetAlternateRowColour[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SetAlternateRowColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SetAlternateRowColour[1] = {{ wxLua_wxDataViewCtrlBase_SetAlternateRowColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetAlternateRowColour }}; -// virtual bool SetAlternateRowColour(const wxColour& colour); -static int LUACALL wxLua_wxDataViewCtrlBase_SetAlternateRowColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SetAlternateRowColour - bool returns = (self->SetAlternateRowColour(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetCurrentItem[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SetCurrentItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SetCurrentItem[1] = {{ wxLua_wxDataViewCtrlBase_SetCurrentItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetCurrentItem }}; -// void SetCurrentItem(const wxDataViewItem& item); -static int LUACALL wxLua_wxDataViewCtrlBase_SetCurrentItem(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SetCurrentItem - self->SetCurrentItem(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetExpanderColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SetExpanderColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SetExpanderColumn[1] = {{ wxLua_wxDataViewCtrlBase_SetExpanderColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetExpanderColumn }}; -// void SetExpanderColumn( wxDataViewColumn *col ); -static int LUACALL wxLua_wxDataViewCtrlBase_SetExpanderColumn(lua_State *L) -{ - // wxDataViewColumn col - wxDataViewColumn * col = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SetExpanderColumn - self->SetExpanderColumn(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetIndent[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SetIndent[1] = {{ wxLua_wxDataViewCtrlBase_SetIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetIndent }}; -// void SetIndent( int indent ); -static int LUACALL wxLua_wxDataViewCtrlBase_SetIndent(lua_State *L) -{ - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SetIndent - self->SetIndent(indent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetRowHeight[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SetRowHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SetRowHeight[1] = {{ wxLua_wxDataViewCtrlBase_SetRowHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetRowHeight }}; -// virtual bool SetRowHeight( int rowHeight ); -static int LUACALL wxLua_wxDataViewCtrlBase_SetRowHeight(lua_State *L) -{ - // int rowHeight - int rowHeight = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SetRowHeight - bool returns = (self->SetRowHeight(rowHeight)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetSelections[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_SetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_SetSelections[1] = {{ wxLua_wxDataViewCtrlBase_SetSelections, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_SetSelections }}; -// virtual void SetSelections( const wxDataViewItemArray & sel ) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_SetSelections(lua_State *L) -{ - // const wxDataViewItemArray sel - const wxDataViewItemArray * sel = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemArray); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call SetSelections - self->SetSelections(*sel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ToggleSortByColumn[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_ToggleSortByColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_ToggleSortByColumn[1] = {{ wxLua_wxDataViewCtrlBase_ToggleSortByColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_ToggleSortByColumn }}; -// virtual void ToggleSortByColumn(int column); -static int LUACALL wxLua_wxDataViewCtrlBase_ToggleSortByColumn(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call ToggleSortByColumn - self->ToggleSortByColumn(column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Unselect[] = { &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_Unselect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_Unselect[1] = {{ wxLua_wxDataViewCtrlBase_Unselect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_Unselect }}; -// virtual void Unselect( const wxDataViewItem & item ) = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_Unselect(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call Unselect - self->Unselect(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrlBase_UnselectAll[] = { &wxluatype_wxDataViewCtrlBase, NULL }; -static int LUACALL wxLua_wxDataViewCtrlBase_UnselectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_UnselectAll[1] = {{ wxLua_wxDataViewCtrlBase_UnselectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_UnselectAll }}; -// virtual void UnselectAll() = 0; -static int LUACALL wxLua_wxDataViewCtrlBase_UnselectAll(lua_State *L) -{ - // get this - wxDataViewCtrlBase * self = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrlBase); - // call UnselectAll - self->UnselectAll(); - - return 0; -} - - - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendBitmapColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendBitmapColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendBitmapColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendBitmapColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendDateColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendDateColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendDateColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendDateColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendIconTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendIconTextColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendIconTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendIconTextColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendProgressColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendProgressColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendProgressColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendProgressColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendTextColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendTextColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendToggleColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendToggleColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_AppendToggleColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_AppendToggleColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependBitmapColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependBitmapColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependBitmapColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependBitmapColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependDateColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependDateColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependDateColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependDateColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependIconTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependIconTextColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependIconTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependIconTextColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependProgressColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependProgressColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependProgressColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependProgressColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependTextColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependTextColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependTextColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependTextColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependToggleColumn1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependToggleColumn1 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap) - { wxLua_wxDataViewCtrlBase_PrependToggleColumn, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewCtrlBase_PrependToggleColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewCtrlBase_delete_function(void** p) -{ - wxDataViewCtrlBase* o = (wxDataViewCtrlBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewCtrlBase_methods[] = { - { "AllowMultiColumnSort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AllowMultiColumnSort, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "AppendBitmapColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendBitmapColumn_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "AppendColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendColumn, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "AppendDateColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendDateColumn_overload_count, 0 }, - { "AppendIconTextColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendIconTextColumn_overload_count, 0 }, - { "AppendProgressColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendProgressColumn_overload_count, 0 }, - { "AppendTextColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendTextColumn_overload_count, 0 }, - { "AppendToggleColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_AppendToggleColumn_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "AssociateModel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_AssociateModel, 1, NULL }, - { "ClearColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_ClearColumns, 1, NULL }, - { "Collapse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_Collapse, 1, NULL }, - { "DeleteColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_DeleteColumn, 1, NULL }, - { "EditItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_EditItem, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "EnableDragSource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_EnableDragSource, 1, NULL }, - { "EnableDropTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_EnableDropTarget, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_EnsureVisible, 1, NULL }, - { "Expand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_Expand, 1, NULL }, - { "ExpandAncestors", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_ExpandAncestors, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,5))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "ExpandChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_ExpandChildren, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,5))) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "GetClassDefaultAttributes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetClassDefaultAttributes, 1, NULL }, - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetColumn, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetColumnCount, 1, NULL }, - { "GetColumnPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetColumnPosition, 1, NULL }, - { "GetCountPerPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetCountPerPage, 1, NULL }, - { "GetCurrentColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetCurrentColumn, 1, NULL }, - { "GetCurrentItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetCurrentItem, 1, NULL }, - { "GetDefaultAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetDefaultAttributes, 1, NULL }, - { "GetExpanderColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetExpanderColumn, 1, NULL }, - { "GetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetIndent, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "GetItemRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetItemRect, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - - { "GetModel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetModel, 1, NULL }, - { "GetSelectedItemsCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSelectedItemsCount, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSelection, 1, NULL }, - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSelections, 1, NULL }, - { "GetSortingColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetSortingColumn, 1, NULL }, - { "GetTopItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_GetTopItem, 1, NULL }, - { "HasSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_HasSelection, 1, NULL }, - { "InsertColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_InsertColumn, 1, NULL }, - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_IsExpanded, 1, NULL }, - { "IsMultiColumnSortAllowed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_IsMultiColumnSortAllowed, 1, NULL }, - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_IsSelected, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "PrependBitmapColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependBitmapColumn_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "PrependColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependColumn, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "PrependDateColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependDateColumn_overload_count, 0 }, - { "PrependIconTextColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependIconTextColumn_overload_count, 0 }, - { "PrependProgressColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependProgressColumn_overload_count, 0 }, - { "PrependTextColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependTextColumn_overload_count, 0 }, - { "PrependToggleColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn_overload, s_wxluafunc_wxLua_wxDataViewCtrlBase_PrependToggleColumn_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "Select", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_Select, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SelectAll, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - { "SetAlternateRowColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SetAlternateRowColour, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxColourPenBrush) - - { "SetCurrentItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SetCurrentItem, 1, NULL }, - { "SetExpanderColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SetExpanderColumn, 1, NULL }, - { "SetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SetIndent, 1, NULL }, - { "SetRowHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SetRowHeight, 1, NULL }, - { "SetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_SetSelections, 1, NULL }, - { "ToggleSortByColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_ToggleSortByColumn, 1, NULL }, - { "Unselect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_Unselect, 1, NULL }, - { "UnselectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrlBase_UnselectAll, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewCtrlBase_methodCount = sizeof(wxDataViewCtrlBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewCtrl' -int wxluatype_wxDataViewCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_ClearColumns[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_ClearColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_ClearColumns[1] = {{ wxLua_wxDataViewCtrl_ClearColumns, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_ClearColumns }}; -// virtual bool ClearColumns(); -static int LUACALL wxLua_wxDataViewCtrl_ClearColumns(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call ClearColumns - bool returns = (self->ClearColumns()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_Collapse[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_Collapse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_Collapse[1] = {{ wxLua_wxDataViewCtrl_Collapse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_Collapse }}; -// virtual void Collapse( const wxDataViewItem & item ); -static int LUACALL wxLua_wxDataViewCtrl_Collapse(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call Collapse - self->Collapse(*item); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_Create[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_Create[1] = {{ wxLua_wxDataViewCtrl_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxDataViewCtrl_Create }}; -// const wxString& name = wxDataViewCtrlNameStr); -static int LUACALL wxLua_wxDataViewCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxDataViewCtrlNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxDataViewCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_DeleteColumn[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_DeleteColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_DeleteColumn[1] = {{ wxLua_wxDataViewCtrl_DeleteColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_DeleteColumn }}; -// virtual bool DeleteColumn( wxDataViewColumn *column ); -static int LUACALL wxLua_wxDataViewCtrl_DeleteColumn(lua_State *L) -{ - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call DeleteColumn - bool returns = (self->DeleteColumn(column)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_EditItem[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_EditItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_EditItem[1] = {{ wxLua_wxDataViewCtrl_EditItem, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewCtrl_EditItem }}; -// virtual void EditItem(const wxDataViewItem& item, const wxDataViewColumn *column); -static int LUACALL wxLua_wxDataViewCtrl_EditItem(lua_State *L) -{ - // const wxDataViewColumn column - const wxDataViewColumn * column = (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call EditItem - self->EditItem(*item, column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_EnsureVisible[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_EnsureVisible[1] = {{ wxLua_wxDataViewCtrl_EnsureVisible, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataViewCtrl_EnsureVisible }}; -// virtual void EnsureVisible( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ); -static int LUACALL wxLua_wxDataViewCtrl_EnsureVisible(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDataViewColumn column = NULL - const wxDataViewColumn * column = (argCount >= 3 ? (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn) : NULL); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call EnsureVisible - self->EnsureVisible(*item, column); - - return 0; -} - - -#if (((defined (wxHAS_GENERIC_DATAVIEWCTRL )) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,1))) && ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GenericGetHeader[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GenericGetHeader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GenericGetHeader[1] = {{ wxLua_wxDataViewCtrl_GenericGetHeader, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_GenericGetHeader }}; -// %wxchkver_3_1_1 wxHeaderCtrl* GenericGetHeader() const; -static int LUACALL wxLua_wxDataViewCtrl_GenericGetHeader(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GenericGetHeader - wxHeaderCtrl* returns = (wxHeaderCtrl*)self->GenericGetHeader(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHeaderCtrl); - - return 1; -} - -#endif // (((defined (wxHAS_GENERIC_DATAVIEWCTRL )) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,1))) && ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetColumn[] = { &wxluatype_wxDataViewCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetColumn[1] = {{ wxLua_wxDataViewCtrl_GetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetColumn }}; -// virtual wxDataViewColumn* GetColumn( unsigned int pos ) const; -static int LUACALL wxLua_wxDataViewCtrl_GetColumn(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetColumn(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetColumnCount[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetColumnCount[1] = {{ wxLua_wxDataViewCtrl_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetColumnCount }}; -// virtual unsigned int GetColumnCount() const; -static int LUACALL wxLua_wxDataViewCtrl_GetColumnCount(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetColumnPosition[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetColumnPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetColumnPosition[1] = {{ wxLua_wxDataViewCtrl_GetColumnPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetColumnPosition }}; -// virtual int GetColumnPosition( const wxDataViewColumn *column ); -static int LUACALL wxLua_wxDataViewCtrl_GetColumnPosition(lua_State *L) -{ - // const wxDataViewColumn column - const wxDataViewColumn * column = (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetColumnPosition - int returns = (self->GetColumnPosition(column)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetCurrentColumn[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetCurrentColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetCurrentColumn[1] = {{ wxLua_wxDataViewCtrl_GetCurrentColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetCurrentColumn }}; -// virtual wxDataViewColumn *GetCurrentColumn() const; -static int LUACALL wxLua_wxDataViewCtrl_GetCurrentColumn(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetCurrentColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetCurrentColumn(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetItemRect[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetItemRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetItemRect[1] = {{ wxLua_wxDataViewCtrl_GetItemRect, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetItemRect }}; -// virtual wxRect GetItemRect( const wxDataViewItem & item, const wxDataViewColumn *column = NULL ); -static int LUACALL wxLua_wxDataViewCtrl_GetItemRect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDataViewColumn column = NULL - const wxDataViewColumn * column = (argCount >= 3 ? (const wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn) : NULL); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetItemRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetItemRect(*item, column)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetSelectedItemsCount[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetSelectedItemsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetSelectedItemsCount[1] = {{ wxLua_wxDataViewCtrl_GetSelectedItemsCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetSelectedItemsCount }}; -// virtual int GetSelectedItemsCount() const; -static int LUACALL wxLua_wxDataViewCtrl_GetSelectedItemsCount(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetSelectedItemsCount - int returns = (self->GetSelectedItemsCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetSelections[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetSelections[1] = {{ wxLua_wxDataViewCtrl_GetSelections, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetSelections }}; -// virtual int GetSelections( wxDataViewItemArray & sel ) const; -static int LUACALL wxLua_wxDataViewCtrl_GetSelections(lua_State *L) -{ - // wxDataViewItemArray sel - wxDataViewItemArray * sel = (wxDataViewItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemArray); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetSelections - int returns = (self->GetSelections(*sel)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_GetSortingColumn[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_GetSortingColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_GetSortingColumn[1] = {{ wxLua_wxDataViewCtrl_GetSortingColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_GetSortingColumn }}; -// virtual wxDataViewColumn *GetSortingColumn() const; -static int LUACALL wxLua_wxDataViewCtrl_GetSortingColumn(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call GetSortingColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetSortingColumn(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_IsExpanded[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_IsExpanded[1] = {{ wxLua_wxDataViewCtrl_IsExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_IsExpanded }}; -// virtual bool IsExpanded( const wxDataViewItem & item ) const; -static int LUACALL wxLua_wxDataViewCtrl_IsExpanded(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call IsExpanded - bool returns = (self->IsExpanded(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_IsSelected[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_IsSelected[1] = {{ wxLua_wxDataViewCtrl_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_IsSelected }}; -// virtual bool IsSelected( const wxDataViewItem & item ) const; -static int LUACALL wxLua_wxDataViewCtrl_IsSelected(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call IsSelected - bool returns = (self->IsSelected(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_Select[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_Select(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_Select[1] = {{ wxLua_wxDataViewCtrl_Select, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_Select }}; -// virtual void Select( const wxDataViewItem & item ); -static int LUACALL wxLua_wxDataViewCtrl_Select(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call Select - self->Select(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_SelectAll[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_SelectAll[1] = {{ wxLua_wxDataViewCtrl_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_SelectAll }}; -// virtual void SelectAll(); -static int LUACALL wxLua_wxDataViewCtrl_SelectAll(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call SelectAll - self->SelectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_SetSelections[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItemArray, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_SetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_SetSelections[1] = {{ wxLua_wxDataViewCtrl_SetSelections, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_SetSelections }}; -// virtual void SetSelections( const wxDataViewItemArray & sel ); -static int LUACALL wxLua_wxDataViewCtrl_SetSelections(lua_State *L) -{ - // const wxDataViewItemArray sel - const wxDataViewItemArray * sel = (const wxDataViewItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemArray); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call SetSelections - self->SetSelections(*sel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_Unselect[] = { &wxluatype_wxDataViewCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_Unselect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_Unselect[1] = {{ wxLua_wxDataViewCtrl_Unselect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCtrl_Unselect }}; -// virtual void Unselect( const wxDataViewItem & item ); -static int LUACALL wxLua_wxDataViewCtrl_Unselect(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call Unselect - self->Unselect(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_UnselectAll[] = { &wxluatype_wxDataViewCtrl, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_UnselectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_UnselectAll[1] = {{ wxLua_wxDataViewCtrl_UnselectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCtrl_UnselectAll }}; -// virtual void UnselectAll(); -static int LUACALL wxLua_wxDataViewCtrl_UnselectAll(lua_State *L) -{ - // get this - wxDataViewCtrl * self = (wxDataViewCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCtrl); - // call UnselectAll - self->UnselectAll(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCtrl_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCtrl_constructor[1] = {{ wxLua_wxDataViewCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxDataViewCtrl_constructor }}; -// const wxString& name = wxDataViewCtrlNameStr ); -static int LUACALL wxLua_wxDataViewCtrl_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxDataViewCtrlNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxDataViewCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDataViewCtrl* returns = new wxDataViewCtrl(parent, id, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewCtrl); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - - -void wxLua_wxDataViewCtrl_delete_function(void** p) -{ - wxDataViewCtrl* o = (wxDataViewCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewCtrl_methods[] = { - { "ClearColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_ClearColumns, 1, NULL }, - { "Collapse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_Collapse, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_Create, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "DeleteColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_DeleteColumn, 1, NULL }, - { "EditItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_EditItem, 1, NULL }, - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_EnsureVisible, 1, NULL }, - -#if (((defined (wxHAS_GENERIC_DATAVIEWCTRL )) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,1))) && ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - { "GenericGetHeader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GenericGetHeader, 1, NULL }, -#endif // (((defined (wxHAS_GENERIC_DATAVIEWCTRL )) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxCHECK_VERSION(3,1,1))) && ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetColumn, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetColumnCount, 1, NULL }, - { "GetColumnPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetColumnPosition, 1, NULL }, - { "GetCurrentColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetCurrentColumn, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "GetItemRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetItemRect, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - - { "GetSelectedItemsCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetSelectedItemsCount, 1, NULL }, - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetSelections, 1, NULL }, - { "GetSortingColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_GetSortingColumn, 1, NULL }, - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_IsExpanded, 1, NULL }, - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_IsSelected, 1, NULL }, - { "Select", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_Select, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_SelectAll, 1, NULL }, - { "SetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_SetSelections, 1, NULL }, - { "Unselect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_Unselect, 1, NULL }, - { "UnselectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCtrl_UnselectAll, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "wxDataViewCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewCtrl_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewCtrl_methodCount = sizeof(wxDataViewCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewListCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewListCtrl' -int wxluatype_wxDataViewListCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendColumn1[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewColumn, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn1[1] = {{ wxLua_wxDataViewListCtrl_AppendColumn1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendColumn1 }}; -// void AppendColumn( wxDataViewColumn *column, const wxString &varianttype ); -static int LUACALL wxLua_wxDataViewListCtrl_AppendColumn1(lua_State *L) -{ - // const wxString varianttype - const wxString varianttype = wxlua_getwxStringtype(L, 3); - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call AppendColumn - self->AppendColumn(column, varianttype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn[1] = {{ wxLua_wxDataViewListCtrl_AppendColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendColumn }}; -// virtual bool AppendColumn( wxDataViewColumn *column ); -static int LUACALL wxLua_wxDataViewListCtrl_AppendColumn(lua_State *L) -{ - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call AppendColumn - bool returns = (self->AppendColumn(column)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendIconTextColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendIconTextColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendIconTextColumn[1] = {{ wxLua_wxDataViewListCtrl_AppendIconTextColumn, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendIconTextColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewListCtrl_AppendIconTextColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_LEFT - wxAlignment align = (argCount >= 5 ? (wxAlignment)wxlua_getenumtype(L, 5) : wxALIGN_LEFT); - // int width = -1 - int width = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 3 ? (wxDataViewCellMode)wxlua_getenumtype(L, 3) : wxDATAVIEW_CELL_INERT); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call AppendIconTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendIconTextColumn(label, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendItem[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TTABLE, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendItem[1] = {{ wxLua_wxDataViewListCtrl_AppendItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendItem }}; -// %override wxLua_wxDataViewListCtrl_AppendItem -// void AppendItem(LuaTable wxVariantTable, wxUIntPtr data = NULL ) -int wxLua_wxDataViewListCtrl_AppendItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - - wxUIntPtr data = argCount >= 2 ? (wxUIntPtr)wxlua_getnumbertype(L, 3) : NULL; - - if (!wxlua_iswxluatype(lua_type(L, 2), WXLUA_TTABLE)) - wxlua_argerror(L, 2, wxT("a 'table'")); - - wxVector variants; - - int count = 0; - - while (1) - { - lua_rawgeti(L, 2, count+1); - int stack_type = wxluaT_type(L, -1); - - if (stack_type == *p_wxluatype_wxVariant) - { - wxVariant* variant = (wxVariant *)wxluaT_getuserdatatype(L, -1, wxluatype_wxVariant); - variants.push_back(*variant); - ++count; - lua_pop(L, 1); - } - else if (lua_isnil(L, -1)) - { - lua_pop(L, 1); - break; - } - else - { - wxlua_argerror(L, 2, wxT("a 'wxVector' or table array of wxVariant")); - break; - } - } - - wxDataViewListCtrl *self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - - self->AppendItem(variants, data); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendProgressColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendProgressColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendProgressColumn[1] = {{ wxLua_wxDataViewListCtrl_AppendProgressColumn, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendProgressColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewListCtrl_AppendProgressColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_LEFT - wxAlignment align = (argCount >= 5 ? (wxAlignment)wxlua_getenumtype(L, 5) : wxALIGN_LEFT); - // int width = -1 - int width = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 3 ? (wxDataViewCellMode)wxlua_getenumtype(L, 3) : wxDATAVIEW_CELL_INERT); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call AppendProgressColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendProgressColumn(label, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendTextColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendTextColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendTextColumn[1] = {{ wxLua_wxDataViewListCtrl_AppendTextColumn, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendTextColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewListCtrl_AppendTextColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_LEFT - wxAlignment align = (argCount >= 5 ? (wxAlignment)wxlua_getenumtype(L, 5) : wxALIGN_LEFT); - // int width = -1 - int width = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 3 ? (wxDataViewCellMode)wxlua_getenumtype(L, 3) : wxDATAVIEW_CELL_INERT); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call AppendTextColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendTextColumn(label, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendToggleColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_AppendToggleColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendToggleColumn[1] = {{ wxLua_wxDataViewListCtrl_AppendToggleColumn, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendToggleColumn }}; -// int flags = wxDATAVIEW_COL_RESIZABLE ); -static int LUACALL wxLua_wxDataViewListCtrl_AppendToggleColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDATAVIEW_COL_RESIZABLE - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDATAVIEW_COL_RESIZABLE); - // wxAlignment align = wxALIGN_LEFT - wxAlignment align = (argCount >= 5 ? (wxAlignment)wxlua_getenumtype(L, 5) : wxALIGN_LEFT); - // int width = -1 - int width = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_ACTIVATABLE - wxDataViewCellMode mode = (argCount >= 3 ? (wxDataViewCellMode)wxlua_getenumtype(L, 3) : wxDATAVIEW_CELL_ACTIVATABLE); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call AppendToggleColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->AppendToggleColumn(label, mode, width, align, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_Create[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_Create[1] = {{ wxLua_wxDataViewListCtrl_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxDataViewListCtrl_Create }}; -// const wxValidator& validator = wxDefaultValidator ); -static int LUACALL wxLua_wxDataViewListCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxDV_ROW_LINES - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDV_ROW_LINES); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_DeleteAllItems[] = { &wxluatype_wxDataViewListCtrl, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_DeleteAllItems[1] = {{ wxLua_wxDataViewListCtrl_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_DeleteAllItems }}; -// void DeleteAllItems(); -static int LUACALL wxLua_wxDataViewListCtrl_DeleteAllItems(lua_State *L) -{ - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call DeleteAllItems - self->DeleteAllItems(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_DeleteItem[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_DeleteItem[1] = {{ wxLua_wxDataViewListCtrl_DeleteItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_DeleteItem }}; -// void DeleteItem( unsigned int row ); -static int LUACALL wxLua_wxDataViewListCtrl_DeleteItem(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call DeleteItem - self->DeleteItem(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetItemCount[] = { &wxluatype_wxDataViewListCtrl, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetItemCount[1] = {{ wxLua_wxDataViewListCtrl_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetItemCount }}; -// unsigned int GetItemCount() const; -static int LUACALL wxLua_wxDataViewListCtrl_GetItemCount(lua_State *L) -{ - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetItemCount - unsigned int returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetItemData[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetItemData[1] = {{ wxLua_wxDataViewListCtrl_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetItemData }}; -// wxUIntPtr GetItemData(const wxDataViewItem& item) const; -static int LUACALL wxLua_wxDataViewListCtrl_GetItemData(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetItemData - wxUIntPtr returns = (self->GetItemData(*item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetSelectedRow[] = { &wxluatype_wxDataViewListCtrl, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetSelectedRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetSelectedRow[1] = {{ wxLua_wxDataViewListCtrl_GetSelectedRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetSelectedRow }}; -// int GetSelectedRow() const; -static int LUACALL wxLua_wxDataViewListCtrl_GetSelectedRow(lua_State *L) -{ - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetSelectedRow - int returns = (self->GetSelectedRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetStore1[] = { &wxluatype_wxDataViewListCtrl, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetStore1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore1[1] = {{ wxLua_wxDataViewListCtrl_GetStore1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetStore1 }}; -// const wxDataViewListStore *GetStore() const; -static int LUACALL wxLua_wxDataViewListCtrl_GetStore1(lua_State *L) -{ - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetStore - const wxDataViewListStore* returns = (const wxDataViewListStore*)self->GetStore(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewListStore); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetStore[] = { &wxluatype_wxDataViewListCtrl, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetStore(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore[1] = {{ wxLua_wxDataViewListCtrl_GetStore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetStore }}; -// wxDataViewListStore *GetStore(); -static int LUACALL wxLua_wxDataViewListCtrl_GetStore(lua_State *L) -{ - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetStore - wxDataViewListStore* returns = (wxDataViewListStore*)self->GetStore(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewListStore); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetTextValue[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetTextValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetTextValue[1] = {{ wxLua_wxDataViewListCtrl_GetTextValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetTextValue }}; -// wxString GetTextValue( unsigned int row, unsigned int col ) const; -static int LUACALL wxLua_wxDataViewListCtrl_GetTextValue(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetTextValue - wxString returns = (self->GetTextValue(row, col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetToggleValue[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_GetToggleValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetToggleValue[1] = {{ wxLua_wxDataViewListCtrl_GetToggleValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetToggleValue }}; -// bool GetToggleValue( unsigned int row, unsigned int col ) const; -static int LUACALL wxLua_wxDataViewListCtrl_GetToggleValue(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call GetToggleValue - bool returns = (self->GetToggleValue(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertColumn1[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, &wxluatype_wxDataViewColumn, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_InsertColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn1[1] = {{ wxLua_wxDataViewListCtrl_InsertColumn1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertColumn1 }}; -// void InsertColumn( unsigned int pos, wxDataViewColumn *column, const wxString &varianttype ); -static int LUACALL wxLua_wxDataViewListCtrl_InsertColumn1(lua_State *L) -{ - // const wxString varianttype - const wxString varianttype = wxlua_getwxStringtype(L, 4); - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call InsertColumn - self->InsertColumn(pos, column, varianttype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_InsertColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn[1] = {{ wxLua_wxDataViewListCtrl_InsertColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertColumn }}; -// virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *column ); -static int LUACALL wxLua_wxDataViewListCtrl_InsertColumn(lua_State *L) -{ - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call InsertColumn - bool returns = (self->InsertColumn(pos, column)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertItem[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, &wxluatype_TTABLE, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_InsertItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_InsertItem[1] = {{ wxLua_wxDataViewListCtrl_InsertItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertItem }}; -// %override wxLua_wxDataViewListCtrl_InsertItem -// void InsertItem(unsigned int row, LuaTable wxVariantTable, wxUIntPtr data = NULL ) -int wxLua_wxDataViewListCtrl_InsertItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - - unsigned int row = (unsigned int)lua_tonumber(L, 2); - - wxUIntPtr data = argCount >= 3 ? (wxUIntPtr)wxlua_getnumbertype(L, 4) : NULL; - - if (!wxlua_iswxluatype(lua_type(L, 3), WXLUA_TTABLE)) - wxlua_argerror(L, 3, wxT("a 'table'")); - - wxVector variants; - int count = 0; - - while (1) - { - lua_rawgeti(L, 3, count+1); - int stack_type = wxluaT_type(L, -1); - - if (stack_type == *p_wxluatype_wxVariant) - { - wxVariant* variant = (wxVariant *)wxluaT_getuserdatatype(L, -1, wxluatype_wxVariant); - variants.push_back(*variant); - ++count; - lua_pop(L, 1); - } - else if (lua_isnil(L, -1)) - { - lua_pop(L, 1); - break; - } - else - { - wxlua_argerror(L, 3, wxT("a 'wxVector' or table array of wxVariant")); - break; - } - } - - wxDataViewListCtrl *self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - - self->InsertItem(row, variants, data); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_IsRowSelected[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_IsRowSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_IsRowSelected[1] = {{ wxLua_wxDataViewListCtrl_IsRowSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_IsRowSelected }}; -// bool IsRowSelected(unsigned int row) const; -static int LUACALL wxLua_wxDataViewListCtrl_IsRowSelected(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call IsRowSelected - bool returns = (self->IsRowSelected(row)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_ItemToRow[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_ItemToRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_ItemToRow[1] = {{ wxLua_wxDataViewListCtrl_ItemToRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_ItemToRow }}; -// int ItemToRow(const wxDataViewItem &item) const; -static int LUACALL wxLua_wxDataViewListCtrl_ItemToRow(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call ItemToRow - int returns = (self->ItemToRow(*item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_PrependColumn1[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewColumn, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_PrependColumn1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn1[1] = {{ wxLua_wxDataViewListCtrl_PrependColumn1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_PrependColumn1 }}; -// void PrependColumn( wxDataViewColumn *column, const wxString &varianttype ); -static int LUACALL wxLua_wxDataViewListCtrl_PrependColumn1(lua_State *L) -{ - // const wxString varianttype - const wxString varianttype = wxlua_getwxStringtype(L, 3); - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call PrependColumn - self->PrependColumn(column, varianttype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_PrependColumn[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_PrependColumn(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn[1] = {{ wxLua_wxDataViewListCtrl_PrependColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_PrependColumn }}; -// virtual bool PrependColumn( wxDataViewColumn *column ); -static int LUACALL wxLua_wxDataViewListCtrl_PrependColumn(lua_State *L) -{ - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call PrependColumn - bool returns = (self->PrependColumn(column)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_RowToItem[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_RowToItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_RowToItem[1] = {{ wxLua_wxDataViewListCtrl_RowToItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_RowToItem }}; -// wxDataViewItem RowToItem(int row) const; -static int LUACALL wxLua_wxDataViewListCtrl_RowToItem(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call RowToItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->RowToItem(row)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_SelectRow[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_SelectRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_SelectRow[1] = {{ wxLua_wxDataViewListCtrl_SelectRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_SelectRow }}; -// void SelectRow(unsigned int row); -static int LUACALL wxLua_wxDataViewListCtrl_SelectRow(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call SelectRow - self->SelectRow(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_SetItemData[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_wxDataViewItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_SetItemData[1] = {{ wxLua_wxDataViewListCtrl_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_SetItemData }}; -// void SetItemData(const wxDataViewItem& item, wxUIntPtr data); -static int LUACALL wxLua_wxDataViewListCtrl_SetItemData(lua_State *L) -{ - // wxUIntPtr data - wxUIntPtr data = (wxUIntPtr)wxlua_getnumbertype(L, 3); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call SetItemData - self->SetItemData(*item, data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_SetTextValue[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_SetTextValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_SetTextValue[1] = {{ wxLua_wxDataViewListCtrl_SetTextValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewListCtrl_SetTextValue }}; -// void SetTextValue( const wxString &value, unsigned int row, unsigned int col ); -static int LUACALL wxLua_wxDataViewListCtrl_SetTextValue(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 4); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call SetTextValue - self->SetTextValue(value, row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_SetToggleValue[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TBOOLEAN, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_SetToggleValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_SetToggleValue[1] = {{ wxLua_wxDataViewListCtrl_SetToggleValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewListCtrl_SetToggleValue }}; -// void SetToggleValue( bool value, unsigned int row, unsigned int col ); -static int LUACALL wxLua_wxDataViewListCtrl_SetToggleValue(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 4); - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 3); - // bool value - bool value = wxlua_getbooleantype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call SetToggleValue - self->SetToggleValue(value, row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_UnselectRow[] = { &wxluatype_wxDataViewListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_UnselectRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_UnselectRow[1] = {{ wxLua_wxDataViewListCtrl_UnselectRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_UnselectRow }}; -// void UnselectRow(unsigned int row); -static int LUACALL wxLua_wxDataViewListCtrl_UnselectRow(lua_State *L) -{ - // unsigned int row - unsigned int row = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxDataViewListCtrl * self = (wxDataViewListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewListCtrl); - // call UnselectRow - self->UnselectRow(row); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewListCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxDataViewListCtrl_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_constructor1[1] = {{ wxLua_wxDataViewListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxDataViewListCtrl_constructor1 }}; -// const wxValidator& validator = wxDefaultValidator ); -static int LUACALL wxLua_wxDataViewListCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxDV_ROW_LINES - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxDV_ROW_LINES); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDataViewListCtrl* returns = new wxDataViewListCtrl(parent, id, *pos, *size, style, *validator); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewListCtrl); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxDataViewListCtrl_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_constructor[1] = {{ wxLua_wxDataViewListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewListCtrl(); -static int LUACALL wxLua_wxDataViewListCtrl_constructor(lua_State *L) -{ - // call constructor - wxDataViewListCtrl* returns = new wxDataViewListCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewListCtrl); - - return 1; -} - - - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn_overload[] = -{ - { wxLua_wxDataViewListCtrl_AppendColumn1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendColumn1 }, - { wxLua_wxDataViewListCtrl_AppendColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_AppendColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore_overload[] = -{ - { wxLua_wxDataViewListCtrl_GetStore1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetStore1 }, - { wxLua_wxDataViewListCtrl_GetStore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewListCtrl_GetStore }, -}; -static int s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn_overload[] = -{ - { wxLua_wxDataViewListCtrl_InsertColumn1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertColumn1 }, - { wxLua_wxDataViewListCtrl_InsertColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_InsertColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn_overload[] = -{ - { wxLua_wxDataViewListCtrl_PrependColumn1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewListCtrl_PrependColumn1 }, - { wxLua_wxDataViewListCtrl_PrependColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewListCtrl_PrependColumn }, -}; -static int s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewListCtrl_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxDataViewListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxDataViewListCtrl_constructor1 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxDataViewListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDataViewListCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewListCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewListCtrl_delete_function(void** p) -{ - wxDataViewListCtrl* o = (wxDataViewListCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewListCtrl_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "AppendColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn_overload, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendColumn_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "AppendIconTextColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendIconTextColumn, 1, NULL }, - { "AppendItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendItem, 1, NULL }, - { "AppendProgressColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendProgressColumn, 1, NULL }, - { "AppendTextColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendTextColumn, 1, NULL }, - { "AppendToggleColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_AppendToggleColumn, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_Create, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_DeleteAllItems, 1, NULL }, - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_DeleteItem, 1, NULL }, - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_GetItemCount, 1, NULL }, - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_GetItemData, 1, NULL }, - { "GetSelectedRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_GetSelectedRow, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "GetStore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore_overload, s_wxluafunc_wxLua_wxDataViewListCtrl_GetStore_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "GetTextValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_GetTextValue, 1, NULL }, - { "GetToggleValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_GetToggleValue, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "InsertColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn_overload, s_wxluafunc_wxLua_wxDataViewListCtrl_InsertColumn_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_InsertItem, 1, NULL }, - { "IsRowSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_IsRowSelected, 1, NULL }, - { "ItemToRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_ItemToRow, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "PrependColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn_overload, s_wxluafunc_wxLua_wxDataViewListCtrl_PrependColumn_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { "RowToItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_RowToItem, 1, NULL }, - { "SelectRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_SelectRow, 1, NULL }, - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_SetItemData, 1, NULL }, - { "SetTextValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_SetTextValue, 1, NULL }, - { "SetToggleValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_SetToggleValue, 1, NULL }, - { "UnselectRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewListCtrl_UnselectRow, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewListCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewListCtrl_constructor_overload, s_wxluafunc_wxLua_wxDataViewListCtrl_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewListCtrl_methodCount = sizeof(wxDataViewListCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewEvent' -int wxluatype_wxDataViewEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_Clone[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_Clone[1] = {{ wxLua_wxDataViewEvent_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_Clone }}; -// virtual wxEvent *Clone() const; -static int LUACALL wxLua_wxDataViewEvent_Clone(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call Clone - wxEvent* returns = (wxEvent*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetCacheFrom[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetCacheFrom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetCacheFrom[1] = {{ wxLua_wxDataViewEvent_GetCacheFrom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetCacheFrom }}; -// int GetCacheFrom() const; -static int LUACALL wxLua_wxDataViewEvent_GetCacheFrom(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetCacheFrom - int returns = (self->GetCacheFrom()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetCacheTo[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetCacheTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetCacheTo[1] = {{ wxLua_wxDataViewEvent_GetCacheTo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetCacheTo }}; -// int GetCacheTo() const; -static int LUACALL wxLua_wxDataViewEvent_GetCacheTo(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetCacheTo - int returns = (self->GetCacheTo()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetColumn[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetColumn[1] = {{ wxLua_wxDataViewEvent_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetColumn }}; -// int GetColumn() const; -static int LUACALL wxLua_wxDataViewEvent_GetColumn(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetColumn - int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataBuffer[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDataBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDataBuffer[1] = {{ wxLua_wxDataViewEvent_GetDataBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataBuffer }}; -// %override wxLua_wxDataViewEvent_GetDataBuffer -// void *GetDataBuffer() const -int wxLua_wxDataViewEvent_GetDataBuffer(lua_State *L) -{ - wxDataViewEvent *self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - lua_pushlstring(L, (const char *) self->GetDataBuffer(), self->GetDataSize()); - - return 1; -} - - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataFormat[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDataFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDataFormat[1] = {{ wxLua_wxDataViewEvent_GetDataFormat, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataFormat }}; -// wxDataFormat GetDataFormat() const; -static int LUACALL wxLua_wxDataViewEvent_GetDataFormat(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetDataFormat - // allocate a new object using the copy constructor - wxDataFormat* returns = new wxDataFormat(self->GetDataFormat()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataObject[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDataObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDataObject[1] = {{ wxLua_wxDataViewEvent_GetDataObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataObject }}; -// wxDataObject *GetDataObject() const; -static int LUACALL wxLua_wxDataViewEvent_GetDataObject(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetDataObject - wxDataObject* returns = (wxDataObject*)self->GetDataObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObject); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataSize[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDataSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDataSize[1] = {{ wxLua_wxDataViewEvent_GetDataSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataSize }}; -// size_t GetDataSize() const; -static int LUACALL wxLua_wxDataViewEvent_GetDataSize(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetDataSize - size_t returns = (self->GetDataSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataViewColumn[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDataViewColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDataViewColumn[1] = {{ wxLua_wxDataViewEvent_GetDataViewColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDataViewColumn }}; -// wxDataViewColumn *GetDataViewColumn() const; -static int LUACALL wxLua_wxDataViewEvent_GetDataViewColumn(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetDataViewColumn - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetDataViewColumn(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDragFlags[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDragFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDragFlags[1] = {{ wxLua_wxDataViewEvent_GetDragFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDragFlags }}; -// int GetDragFlags() const; -static int LUACALL wxLua_wxDataViewEvent_GetDragFlags(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetDragFlags - int returns = (self->GetDragFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetDropEffect[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetDropEffect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetDropEffect[1] = {{ wxLua_wxDataViewEvent_GetDropEffect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetDropEffect }}; -// wxDragResult GetDropEffect() const; -static int LUACALL wxLua_wxDataViewEvent_GetDropEffect(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetDropEffect - wxDragResult returns = (self->GetDropEffect()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetItem[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetItem[1] = {{ wxLua_wxDataViewEvent_GetItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetItem }}; -// wxDataViewItem GetItem() const; -static int LUACALL wxLua_wxDataViewEvent_GetItem(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetItem - // allocate a new object using the copy constructor - wxDataViewItem* returns = new wxDataViewItem(self->GetItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetModel[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetModel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetModel[1] = {{ wxLua_wxDataViewEvent_GetModel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetModel }}; -// wxDataViewModel* GetModel() const; -static int LUACALL wxLua_wxDataViewEvent_GetModel(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetModel - wxDataViewModel* returns = (wxDataViewModel*)self->GetModel(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewModel); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetPosition[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetPosition[1] = {{ wxLua_wxDataViewEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxDataViewEvent_GetPosition(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_GetProposedDropIndex[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_GetProposedDropIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_GetProposedDropIndex[1] = {{ wxLua_wxDataViewEvent_GetProposedDropIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_GetProposedDropIndex }}; -// int GetProposedDropIndex() const; -static int LUACALL wxLua_wxDataViewEvent_GetProposedDropIndex(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call GetProposedDropIndex - int returns = (self->GetProposedDropIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_IsEditCancelled[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_IsEditCancelled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_IsEditCancelled[1] = {{ wxLua_wxDataViewEvent_IsEditCancelled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_IsEditCancelled }}; -// bool IsEditCancelled() const; -static int LUACALL wxLua_wxDataViewEvent_IsEditCancelled(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call IsEditCancelled - bool returns = (self->IsEditCancelled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetCache[] = { &wxluatype_wxDataViewEvent, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetCache(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetCache[1] = {{ wxLua_wxDataViewEvent_SetCache, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewEvent_SetCache }}; -// void SetCache(int from, int to); -static int LUACALL wxLua_wxDataViewEvent_SetCache(lua_State *L) -{ - // int to - int to = (int)wxlua_getnumbertype(L, 3); - // int from - int from = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetCache - self->SetCache(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetColumn[] = { &wxluatype_wxDataViewEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetColumn[1] = {{ wxLua_wxDataViewEvent_SetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetColumn }}; -// void SetColumn( int col ); -static int LUACALL wxLua_wxDataViewEvent_SetColumn(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetColumn - self->SetColumn(col); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataBuffer[] = { &wxluatype_wxDataViewEvent, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetDataBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetDataBuffer[1] = {{ wxLua_wxDataViewEvent_SetDataBuffer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataBuffer }}; -// void SetDataBuffer( void* buf ); -static int LUACALL wxLua_wxDataViewEvent_SetDataBuffer(lua_State *L) -{ - // void buf - void * buf = (void *)wxlua_touserdata(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetDataBuffer - self->SetDataBuffer(buf); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataFormat[] = { &wxluatype_wxDataViewEvent, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetDataFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetDataFormat[1] = {{ wxLua_wxDataViewEvent_SetDataFormat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataFormat }}; -// void SetDataFormat( const wxDataFormat &format ); -static int LUACALL wxLua_wxDataViewEvent_SetDataFormat(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetDataFormat - self->SetDataFormat(*format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataObject[] = { &wxluatype_wxDataViewEvent, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetDataObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetDataObject[1] = {{ wxLua_wxDataViewEvent_SetDataObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataObject }}; -// void SetDataObject(%ungc wxDataObject *obj); -static int LUACALL wxLua_wxDataViewEvent_SetDataObject(lua_State *L) -{ - // wxDataObject obj - wxDataObject * obj = (wxDataObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObject); - if (wxluaO_isgcobject(L, obj)) wxluaO_undeletegcobject(L, obj); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetDataObject - self->SetDataObject(obj); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataSize[] = { &wxluatype_wxDataViewEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetDataSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetDataSize[1] = {{ wxLua_wxDataViewEvent_SetDataSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetDataSize }}; -// void SetDataSize( size_t size ); -static int LUACALL wxLua_wxDataViewEvent_SetDataSize(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetDataSize - self->SetDataSize(size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetDragFlags[] = { &wxluatype_wxDataViewEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetDragFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetDragFlags[1] = {{ wxLua_wxDataViewEvent_SetDragFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetDragFlags }}; -// void SetDragFlags( int flags ); -static int LUACALL wxLua_wxDataViewEvent_SetDragFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetDragFlags - self->SetDragFlags(flags); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetDropEffect[] = { &wxluatype_wxDataViewEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetDropEffect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetDropEffect[1] = {{ wxLua_wxDataViewEvent_SetDropEffect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetDropEffect }}; -// void SetDropEffect( wxDragResult effect ); -static int LUACALL wxLua_wxDataViewEvent_SetDropEffect(lua_State *L) -{ - // wxDragResult effect - wxDragResult effect = (wxDragResult)wxlua_getenumtype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetDropEffect - self->SetDropEffect(effect); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetEditCancelled[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetEditCancelled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetEditCancelled[1] = {{ wxLua_wxDataViewEvent_SetEditCancelled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_SetEditCancelled }}; -// void SetEditCancelled(); -static int LUACALL wxLua_wxDataViewEvent_SetEditCancelled(lua_State *L) -{ - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetEditCancelled - self->SetEditCancelled(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetPosition[] = { &wxluatype_wxDataViewEvent, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetPosition[1] = {{ wxLua_wxDataViewEvent_SetPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewEvent_SetPosition }}; -// void SetPosition( int x, int y ); -static int LUACALL wxLua_wxDataViewEvent_SetPosition(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetPosition - self->SetPosition(x, y); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_SetProposedDropIndex[] = { &wxluatype_wxDataViewEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewEvent_SetProposedDropIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_SetProposedDropIndex[1] = {{ wxLua_wxDataViewEvent_SetProposedDropIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewEvent_SetProposedDropIndex }}; -// void SetProposedDropIndex(int index); -static int LUACALL wxLua_wxDataViewEvent_SetProposedDropIndex(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewEvent * self = (wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call SetProposedDropIndex - self->SetProposedDropIndex(index); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_delete[] = { &wxluatype_wxDataViewEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_constructor4[] = { &wxluatype_wxDataViewEvent, NULL }; -static int LUACALL wxLua_wxDataViewEvent_constructor4(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_constructor4[1] = {{ wxLua_wxDataViewEvent_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor4 }}; -// wxDataViewEvent(const wxDataViewEvent& event); -static int LUACALL wxLua_wxDataViewEvent_constructor4(lua_State *L) -{ - // const wxDataViewEvent event - const wxDataViewEvent * event = (const wxDataViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewEvent); - // call constructor - wxDataViewEvent* returns = new wxDataViewEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_constructor3[] = { &wxluatype_TNUMBER, &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewEvent_constructor3(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_constructor3[1] = {{ wxLua_wxDataViewEvent_constructor3, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor3 }}; -// wxDataViewEvent(wxEventType evtType, wxDataViewCtrlBase* dvc, const wxDataViewItem& item); -static int LUACALL wxLua_wxDataViewEvent_constructor3(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewItem); - // wxDataViewCtrlBase dvc - wxDataViewCtrlBase * dvc = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewCtrlBase); - // wxEventType evtType - wxEventType evtType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxDataViewEvent* returns = new wxDataViewEvent(evtType, dvc, *item); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_constructor2[] = { &wxluatype_TNUMBER, &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewEvent_constructor2(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_constructor2[1] = {{ wxLua_wxDataViewEvent_constructor2, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor2 }}; -// wxDataViewEvent(wxEventType evtType, wxDataViewCtrlBase* dvc, wxDataViewColumn* column, const wxDataViewItem& item); -static int LUACALL wxLua_wxDataViewEvent_constructor2(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDataViewItem); - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // wxDataViewCtrlBase dvc - wxDataViewCtrlBase * dvc = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewCtrlBase); - // wxEventType evtType - wxEventType evtType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxDataViewEvent* returns = new wxDataViewEvent(evtType, dvc, column, *item); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_wxDataViewCtrlBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewEvent_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_constructor1[1] = {{ wxLua_wxDataViewEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor1 }}; -// wxDataViewEvent(wxEventType evtType, wxDataViewCtrlBase* dvc, wxDataViewColumn* column); -static int LUACALL wxLua_wxDataViewEvent_constructor1(lua_State *L) -{ - // wxDataViewColumn column - wxDataViewColumn * column = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewColumn); - // wxDataViewCtrlBase dvc - wxDataViewCtrlBase * dvc = (wxDataViewCtrlBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewCtrlBase); - // wxEventType evtType - wxEventType evtType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxDataViewEvent* returns = new wxDataViewEvent(evtType, dvc, column); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewEvent); - - return 1; -} - -static int LUACALL wxLua_wxDataViewEvent_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_constructor[1] = {{ wxLua_wxDataViewEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewEvent(); -static int LUACALL wxLua_wxDataViewEvent_constructor(lua_State *L) -{ - // call constructor - wxDataViewEvent* returns = new wxDataViewEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataViewEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewEvent); - - return 1; -} - - - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewEvent_constructor_overload[] = -{ - { wxLua_wxDataViewEvent_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor4 }, - { wxLua_wxDataViewEvent_constructor3, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor3 }, - { wxLua_wxDataViewEvent_constructor2, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor2 }, - { wxLua_wxDataViewEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxDataViewEvent_constructor1 }, - { wxLua_wxDataViewEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDataViewEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewEvent_delete_function(void** p) -{ - wxDataViewEvent* o = (wxDataViewEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewEvent_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_Clone, 1, NULL }, - { "GetCacheFrom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetCacheFrom, 1, NULL }, - { "GetCacheTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetCacheTo, 1, NULL }, - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetColumn, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "GetDataBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDataBuffer, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "GetDataFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDataFormat, 1, NULL }, - { "GetDataObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDataObject, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "GetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDataSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - - { "GetDataViewColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDataViewColumn, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "GetDragFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDragFlags, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "GetDropEffect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetDropEffect, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetItem, 1, NULL }, - { "GetModel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetModel, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetPosition, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "GetProposedDropIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_GetProposedDropIndex, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - - { "IsEditCancelled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_IsEditCancelled, 1, NULL }, - { "SetCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetCache, 1, NULL }, - { "SetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetColumn, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "SetDataBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetDataBuffer, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "SetDataFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetDataFormat, 1, NULL }, - { "SetDataObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetDataObject, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "SetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetDataSize, 1, NULL }, - { "SetDragFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetDragFlags, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "SetDropEffect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetDropEffect, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "SetEditCancelled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetEditCancelled, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetPosition, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - { "SetProposedDropIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewEvent_SetProposedDropIndex, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_DRAG_AND_DROP) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataViewEvent_delete, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewEvent_constructor_overload, s_wxluafunc_wxLua_wxDataViewEvent_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewEvent_methodCount = sizeof(wxDataViewEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxadv_dvrenderers.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewIconText -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewIconText' -int wxluatype_wxDataViewIconText = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconText_GetIcon1[] = { &wxluatype_wxDataViewIconText, NULL }; -static int LUACALL wxLua_wxDataViewIconText_GetIcon1(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_GetIcon1[1] = {{ wxLua_wxDataViewIconText_GetIcon1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIconText_GetIcon1 }}; -// %wxchkver_3_1_6 wxIcon GetIcon() const; -static int LUACALL wxLua_wxDataViewIconText_GetIcon1(lua_State *L) -{ - // get this - wxDataViewIconText * self = (wxDataViewIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIconText); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconText_GetIcon[] = { &wxluatype_wxDataViewIconText, NULL }; -static int LUACALL wxLua_wxDataViewIconText_GetIcon(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_GetIcon[1] = {{ wxLua_wxDataViewIconText_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIconText_GetIcon }}; -// !%wxchkver_3_1_6 const wxIcon &GetIcon() const; -static int LUACALL wxLua_wxDataViewIconText_GetIcon(lua_State *L) -{ - // get this - wxDataViewIconText * self = (wxDataViewIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIconText); - // call GetIcon - const wxIcon* returns = (const wxIcon*)&self->GetIcon(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconText_GetText[] = { &wxluatype_wxDataViewIconText, NULL }; -static int LUACALL wxLua_wxDataViewIconText_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_GetText[1] = {{ wxLua_wxDataViewIconText_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIconText_GetText }}; -// wxString GetText() const; -static int LUACALL wxLua_wxDataViewIconText_GetText(lua_State *L) -{ - // get this - wxDataViewIconText * self = (wxDataViewIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIconText); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconText_SetIcon[] = { &wxluatype_wxDataViewIconText, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDataViewIconText_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_SetIcon[1] = {{ wxLua_wxDataViewIconText_SetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIconText_SetIcon }}; -// void SetIcon( const wxIcon &icon ); -static int LUACALL wxLua_wxDataViewIconText_SetIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxDataViewIconText * self = (wxDataViewIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIconText); - // call SetIcon - self->SetIcon(*icon); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconText_SetText[] = { &wxluatype_wxDataViewIconText, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataViewIconText_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_SetText[1] = {{ wxLua_wxDataViewIconText_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewIconText_SetText }}; -// void SetText( const wxString &text ); -static int LUACALL wxLua_wxDataViewIconText_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewIconText * self = (wxDataViewIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewIconText); - // call SetText - self->SetText(text); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconText_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDataViewIconText_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_constructor[1] = {{ wxLua_wxDataViewIconText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxDataViewIconText_constructor }}; -// wxDataViewIconText(const wxString &text = wxEmptyString, const wxIcon& icon = wxNullIcon ); -static int LUACALL wxLua_wxDataViewIconText_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 2 ? (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text = wxEmptyString - const wxString text = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxDataViewIconText* returns = new wxDataViewIconText(text, *icon); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewIconText); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconText_GetIcon_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewIconText_GetIcon1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIconText_GetIcon1 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewIconText_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewIconText_GetIcon }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxDataViewIconText_GetIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewIconText_GetIcon_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - -void wxLua_wxDataViewIconText_delete_function(void** p) -{ - wxDataViewIconText* o = (wxDataViewIconText*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewIconText_methods[] = { -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIconText_GetIcon_overload, s_wxluafunc_wxLua_wxDataViewIconText_GetIcon_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxIcon))||(((!wxCHECK_VERSION(3,1,6)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl)) && (wxLUA_USE_wxIcon)) - - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIconText_GetText, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIconText_SetIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewIconText_SetText, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - { "wxDataViewIconText", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewIconText_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxIcon) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewIconText_methodCount = sizeof(wxDataViewIconText_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewCheckIconText -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewCheckIconText' -int wxluatype_wxDataViewCheckIconText = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCheckIconText_GetCheckedState[] = { &wxluatype_wxDataViewCheckIconText, NULL }; -static int LUACALL wxLua_wxDataViewCheckIconText_GetCheckedState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCheckIconText_GetCheckedState[1] = {{ wxLua_wxDataViewCheckIconText_GetCheckedState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCheckIconText_GetCheckedState }}; -// wxCheckBoxState GetCheckedState() const; -static int LUACALL wxLua_wxDataViewCheckIconText_GetCheckedState(lua_State *L) -{ - // get this - wxDataViewCheckIconText * self = (wxDataViewCheckIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCheckIconText); - // call GetCheckedState - wxCheckBoxState returns = (self->GetCheckedState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCheckIconText_SetCheckedState[] = { &wxluatype_wxDataViewCheckIconText, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewCheckIconText_SetCheckedState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCheckIconText_SetCheckedState[1] = {{ wxLua_wxDataViewCheckIconText_SetCheckedState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCheckIconText_SetCheckedState }}; -// void SetCheckedState(wxCheckBoxState state); -static int LUACALL wxLua_wxDataViewCheckIconText_SetCheckedState(lua_State *L) -{ - // wxCheckBoxState state - wxCheckBoxState state = (wxCheckBoxState)wxlua_getenumtype(L, 2); - // get this - wxDataViewCheckIconText * self = (wxDataViewCheckIconText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCheckIconText); - // call SetCheckedState - self->SetCheckedState(state); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCheckIconText_constructor1[] = { &wxluatype_TSTRING, &wxluatype_wxIcon, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewCheckIconText_constructor1(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor1[1] = {{ wxLua_wxDataViewCheckIconText_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxDataViewCheckIconText_constructor1 }}; -// wxCheckBoxState checkedState = wxCHK_UNDETERMINED); -static int LUACALL wxLua_wxDataViewCheckIconText_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCheckBoxState checkedState = wxCHK_UNDETERMINED - wxCheckBoxState checkedState = (argCount >= 3 ? (wxCheckBoxState)wxlua_getenumtype(L, 3) : wxCHK_UNDETERMINED); - // const wxIcon icon = wxNullIcon - const wxIcon * icon = (argCount >= 2 ? (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon) : &wxNullIcon); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 1); - // call constructor - wxDataViewCheckIconText* returns = new wxDataViewCheckIconText(text, *icon, checkedState); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewCheckIconText); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon) - -static int LUACALL wxLua_wxDataViewCheckIconText_constructor(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor[1] = {{ wxLua_wxDataViewCheckIconText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataViewCheckIconText() -static int LUACALL wxLua_wxDataViewCheckIconText_constructor(lua_State *L) -{ - // call constructor - wxDataViewCheckIconText* returns = new wxDataViewCheckIconText(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewCheckIconText); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewCheckIconText_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxDataViewCheckIconText_constructor1 }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon) - { wxLua_wxDataViewCheckIconText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - -void wxLua_wxDataViewCheckIconText_delete_function(void** p) -{ - wxDataViewCheckIconText* o = (wxDataViewCheckIconText*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewCheckIconText_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) - { "GetCheckedState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCheckIconText_GetCheckedState, 1, NULL }, - { "SetCheckedState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCheckIconText_SetCheckedState, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) - -#if (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewCheckIconText", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor_overload, s_wxluafunc_wxLua_wxDataViewCheckIconText_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxIcon))||(wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewCheckIconText_methodCount = sizeof(wxDataViewCheckIconText_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewValueAdjuster -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewValueAdjuster' -int wxluatype_wxDataViewValueAdjuster = WXLUA_TUNKNOWN; - - - -void wxLua_wxDataViewValueAdjuster_delete_function(void** p) -{ - wxDataViewValueAdjuster* o = (wxDataViewValueAdjuster*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewValueAdjuster_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxDataViewValueAdjuster_methodCount = sizeof(wxDataViewValueAdjuster_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewRendererBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewRendererBase' -int wxluatype_wxDataViewRendererBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_CancelEditing[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_CancelEditing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_CancelEditing[1] = {{ wxLua_wxDataViewRendererBase_CancelEditing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_CancelEditing }}; -// virtual void CancelEditing(); -static int LUACALL wxLua_wxDataViewRendererBase_CancelEditing(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call CancelEditing - self->CancelEditing(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_FinishEditing[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_FinishEditing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_FinishEditing[1] = {{ wxLua_wxDataViewRendererBase_FinishEditing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_FinishEditing }}; -// virtual bool FinishEditing(); -static int LUACALL wxLua_wxDataViewRendererBase_FinishEditing(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call FinishEditing - bool returns = (self->FinishEditing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_ACCESSIBILITY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetAccessibleDescription[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetAccessibleDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetAccessibleDescription[1] = {{ wxLua_wxDataViewRendererBase_GetAccessibleDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetAccessibleDescription }}; -// virtual wxString GetAccessibleDescription() const = 0; -static int LUACALL wxLua_wxDataViewRendererBase_GetAccessibleDescription(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetAccessibleDescription - wxString returns = (self->GetAccessibleDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_ACCESSIBILITY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetAlignment[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetAlignment[1] = {{ wxLua_wxDataViewRendererBase_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetAlignment }}; -// virtual int GetAlignment() const = 0; -static int LUACALL wxLua_wxDataViewRendererBase_GetAlignment(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetAlignment - int returns = (self->GetAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetEditorCtrl[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetEditorCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetEditorCtrl[1] = {{ wxLua_wxDataViewRendererBase_GetEditorCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetEditorCtrl }}; -// wxWindow *GetEditorCtrl() const; -static int LUACALL wxLua_wxDataViewRendererBase_GetEditorCtrl(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetEditorCtrl - wxWindow* returns = (wxWindow*)self->GetEditorCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetEffectiveAlignment[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetEffectiveAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetEffectiveAlignment[1] = {{ wxLua_wxDataViewRendererBase_GetEffectiveAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetEffectiveAlignment }}; -// int GetEffectiveAlignment() const; -static int LUACALL wxLua_wxDataViewRendererBase_GetEffectiveAlignment(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetEffectiveAlignment - int returns = (self->GetEffectiveAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown[1] = {{ wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown }}; -// int GetEffectiveAlignmentIfKnown() const; -static int LUACALL wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetEffectiveAlignmentIfKnown - int returns = (self->GetEffectiveAlignmentIfKnown()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetMode[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetMode[1] = {{ wxLua_wxDataViewRendererBase_GetMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetMode }}; -// virtual wxDataViewCellMode GetMode() const = 0; -static int LUACALL wxLua_wxDataViewRendererBase_GetMode(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetMode - wxDataViewCellMode returns = (self->GetMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetOwner[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetOwner[1] = {{ wxLua_wxDataViewRendererBase_GetOwner, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetOwner }}; -// wxDataViewColumn* GetOwner() const; -static int LUACALL wxLua_wxDataViewRendererBase_GetOwner(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetOwner - wxDataViewColumn* returns = (wxDataViewColumn*)self->GetOwner(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewColumn); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetVariantType[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_GetVariantType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_GetVariantType[1] = {{ wxLua_wxDataViewRendererBase_GetVariantType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_GetVariantType }}; -// wxString GetVariantType() const; -static int LUACALL wxLua_wxDataViewRendererBase_GetVariantType(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call GetVariantType - wxString returns = (self->GetVariantType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_HasEditorCtrl[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_HasEditorCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_HasEditorCtrl[1] = {{ wxLua_wxDataViewRendererBase_HasEditorCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_HasEditorCtrl }}; -// virtual bool HasEditorCtrl() const; -static int LUACALL wxLua_wxDataViewRendererBase_HasEditorCtrl(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call HasEditorCtrl - bool returns = (self->HasEditorCtrl()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_IsCustomRenderer[] = { &wxluatype_wxDataViewRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_IsCustomRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_IsCustomRenderer[1] = {{ wxLua_wxDataViewRendererBase_IsCustomRenderer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewRendererBase_IsCustomRenderer }}; -// virtual bool IsCustomRenderer() const; -static int LUACALL wxLua_wxDataViewRendererBase_IsCustomRenderer(lua_State *L) -{ - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call IsCustomRenderer - bool returns = (self->IsCustomRenderer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_NotifyEditingStarted[] = { &wxluatype_wxDataViewRendererBase, &wxluatype_wxDataViewItem, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_NotifyEditingStarted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_NotifyEditingStarted[1] = {{ wxLua_wxDataViewRendererBase_NotifyEditingStarted, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewRendererBase_NotifyEditingStarted }}; -// void NotifyEditingStarted(const wxDataViewItem& item); -static int LUACALL wxLua_wxDataViewRendererBase_NotifyEditingStarted(lua_State *L) -{ - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call NotifyEditingStarted - self->NotifyEditingStarted(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetAlignment[] = { &wxluatype_wxDataViewRendererBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_SetAlignment[1] = {{ wxLua_wxDataViewRendererBase_SetAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetAlignment }}; -// virtual void SetAlignment( int align ) = 0; -static int LUACALL wxLua_wxDataViewRendererBase_SetAlignment(lua_State *L) -{ - // int align - int align = (int)wxlua_getnumbertype(L, 2); - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call SetAlignment - self->SetAlignment(align); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetMode[] = { &wxluatype_wxDataViewRendererBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_SetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_SetMode[1] = {{ wxLua_wxDataViewRendererBase_SetMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetMode }}; -// virtual void SetMode( wxDataViewCellMode mode ) = 0; -static int LUACALL wxLua_wxDataViewRendererBase_SetMode(lua_State *L) -{ - // wxDataViewCellMode mode - wxDataViewCellMode mode = (wxDataViewCellMode)wxlua_getenumtype(L, 2); - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call SetMode - self->SetMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetOwner[] = { &wxluatype_wxDataViewRendererBase, &wxluatype_wxDataViewColumn, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_SetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_SetOwner[1] = {{ wxLua_wxDataViewRendererBase_SetOwner, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetOwner }}; -// void SetOwner(wxDataViewColumn *owner); -static int LUACALL wxLua_wxDataViewRendererBase_SetOwner(lua_State *L) -{ - // wxDataViewColumn owner - wxDataViewColumn * owner = (wxDataViewColumn *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewColumn); - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call SetOwner - self->SetOwner(owner); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetValueAdjuster[] = { &wxluatype_wxDataViewRendererBase, &wxluatype_wxDataViewValueAdjuster, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_SetValueAdjuster(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_SetValueAdjuster[1] = {{ wxLua_wxDataViewRendererBase_SetValueAdjuster, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewRendererBase_SetValueAdjuster }}; -// void SetValueAdjuster(wxDataViewValueAdjuster *transformer) -static int LUACALL wxLua_wxDataViewRendererBase_SetValueAdjuster(lua_State *L) -{ - // wxDataViewValueAdjuster transformer - wxDataViewValueAdjuster * transformer = (wxDataViewValueAdjuster *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewValueAdjuster); - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call SetValueAdjuster - self->SetValueAdjuster(transformer); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewRendererBase_StartEditing[] = { &wxluatype_wxDataViewRendererBase, &wxluatype_wxDataViewItem, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxDataViewRendererBase_StartEditing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewRendererBase_StartEditing[1] = {{ wxLua_wxDataViewRendererBase_StartEditing, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewRendererBase_StartEditing }}; -// virtual bool StartEditing( const wxDataViewItem &item, wxRect labelRect ); -static int LUACALL wxLua_wxDataViewRendererBase_StartEditing(lua_State *L) -{ - // wxRect labelRect - wxRect labelRect = *(wxRect*)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItem); - // get this - wxDataViewRendererBase * self = (wxDataViewRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewRendererBase); - // call StartEditing - bool returns = (self->StartEditing(*item, labelRect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxDataViewRendererBase_delete_function(void** p) -{ - wxDataViewRendererBase* o = (wxDataViewRendererBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewRendererBase_methods[] = { - { "CancelEditing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_CancelEditing, 1, NULL }, - { "FinishEditing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_FinishEditing, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_ACCESSIBILITY) - { "GetAccessibleDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetAccessibleDescription, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_ACCESSIBILITY) - - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetAlignment, 1, NULL }, - { "GetEditorCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetEditorCtrl, 1, NULL }, - { "GetEffectiveAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetEffectiveAlignment, 1, NULL }, - { "GetEffectiveAlignmentIfKnown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetEffectiveAlignmentIfKnown, 1, NULL }, - { "GetMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetMode, 1, NULL }, - { "GetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetOwner, 1, NULL }, - { "GetVariantType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_GetVariantType, 1, NULL }, - { "HasEditorCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_HasEditorCtrl, 1, NULL }, - { "IsCustomRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_IsCustomRenderer, 1, NULL }, - { "NotifyEditingStarted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_NotifyEditingStarted, 1, NULL }, - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_SetAlignment, 1, NULL }, - { "SetMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_SetMode, 1, NULL }, - { "SetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_SetOwner, 1, NULL }, - { "SetValueAdjuster", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_SetValueAdjuster, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "StartEditing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewRendererBase_StartEditing, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewRendererBase_methodCount = sizeof(wxDataViewRendererBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewCustomRendererBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewCustomRendererBase' -int wxluatype_wxDataViewCustomRendererBase = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_ActivateCell[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_wxRect, &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_ActivateCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_ActivateCell[1] = {{ wxLua_wxDataViewCustomRendererBase_ActivateCell, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_ActivateCell }}; -// virtual bool ActivateCell(const wxRect& cell, wxDataViewModel *model, const wxDataViewItem & item, unsigned int col, const wxMouseEvent* mouseEvent); -static int LUACALL wxLua_wxDataViewCustomRendererBase_ActivateCell(lua_State *L) -{ - // const wxMouseEvent mouseEvent - const wxMouseEvent * mouseEvent = (const wxMouseEvent *)wxluaT_getuserdatatype(L, 6, wxluatype_wxMouseEvent); - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 5); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDataViewItem); - // wxDataViewModel model - wxDataViewModel * model = (wxDataViewModel *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDataViewModel); - // const wxRect cell - const wxRect * cell = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call ActivateCell - bool returns = (self->ActivateCell(*cell, model, *item, col, mouseEvent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetAttr[] = { &wxluatype_wxDataViewCustomRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetAttr[1] = {{ wxLua_wxDataViewCustomRendererBase_GetAttr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetAttr }}; -// const wxDataViewItemAttr& GetAttr() const; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetAttr(lua_State *L) -{ - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call GetAttr - const wxDataViewItemAttr* returns = (const wxDataViewItemAttr*)&self->GetAttr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewItemAttr); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetDC[] = { &wxluatype_wxDataViewCustomRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetDC[1] = {{ wxLua_wxDataViewCustomRendererBase_GetDC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetDC }}; -// virtual wxDC *GetDC() = 0; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetDC(lua_State *L) -{ - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call GetDC - wxDC* returns = (wxDC*)self->GetDC(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetEnabled[] = { &wxluatype_wxDataViewCustomRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetEnabled[1] = {{ wxLua_wxDataViewCustomRendererBase_GetEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetEnabled }}; -// bool GetEnabled() const; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetEnabled(lua_State *L) -{ - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call GetEnabled - bool returns = (self->GetEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetSize[] = { &wxluatype_wxDataViewCustomRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetSize[1] = {{ wxLua_wxDataViewCustomRendererBase_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_GetSize }}; -// virtual wxSize GetSize() const = 0; -static int LUACALL wxLua_wxDataViewCustomRendererBase_GetSize(lua_State *L) -{ - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_IsCustomRenderer[] = { &wxluatype_wxDataViewCustomRendererBase, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_IsCustomRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_IsCustomRenderer[1] = {{ wxLua_wxDataViewCustomRendererBase_IsCustomRenderer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_IsCustomRenderer }}; -// virtual bool IsCustomRenderer() const; -static int LUACALL wxLua_wxDataViewCustomRendererBase_IsCustomRenderer(lua_State *L) -{ - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call IsCustomRenderer - bool returns = (self->IsCustomRenderer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_Render[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_wxRect, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_Render(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_Render[1] = {{ wxLua_wxDataViewCustomRendererBase_Render, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_Render }}; -// virtual bool Render(wxRect cell, wxDC *dc, int state) = 0; -static int LUACALL wxLua_wxDataViewCustomRendererBase_Render(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 4); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRect cell - wxRect cell = *(wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call Render - bool returns = (self->Render(cell, dc, state)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_RenderBackground[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_wxDC, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_RenderBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_RenderBackground[1] = {{ wxLua_wxDataViewCustomRendererBase_RenderBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_RenderBackground }}; -// virtual void RenderBackground(wxDC* dc, const wxRect& rect); -static int LUACALL wxLua_wxDataViewCustomRendererBase_RenderBackground(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call RenderBackground - self->RenderBackground(dc, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_RenderText[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxRect, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_RenderText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_RenderText[1] = {{ wxLua_wxDataViewCustomRendererBase_RenderText, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_RenderText }}; -// virtual void RenderText(const wxString& text, int xoffset, wxRect cell, wxDC *dc, int state); -static int LUACALL wxLua_wxDataViewCustomRendererBase_RenderText(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 6); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // wxRect cell - wxRect cell = *(wxRect*)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // int xoffset - int xoffset = (int)wxlua_getnumbertype(L, 3); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call RenderText - self->RenderText(text, xoffset, cell, dc, state); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_SetAttr[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_wxDataViewItemAttr, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_SetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_SetAttr[1] = {{ wxLua_wxDataViewCustomRendererBase_SetAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_SetAttr }}; -// virtual void SetAttr(const wxDataViewItemAttr& attr); -static int LUACALL wxLua_wxDataViewCustomRendererBase_SetAttr(lua_State *L) -{ - // const wxDataViewItemAttr attr - const wxDataViewItemAttr * attr = (const wxDataViewItemAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataViewItemAttr); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call SetAttr - self->SetAttr(*attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_SetEnabled[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_SetEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_SetEnabled[1] = {{ wxLua_wxDataViewCustomRendererBase_SetEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_SetEnabled }}; -// virtual void SetEnabled(bool enabled); -static int LUACALL wxLua_wxDataViewCustomRendererBase_SetEnabled(lua_State *L) -{ - // bool enabled - bool enabled = wxlua_getbooleantype(L, 2); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call SetEnabled - self->SetEnabled(enabled); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_StartDrag[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_wxPoint, &wxluatype_wxRect, &wxluatype_wxDataViewModel, &wxluatype_wxDataViewItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_StartDrag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_StartDrag[1] = {{ wxLua_wxDataViewCustomRendererBase_StartDrag, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_StartDrag }}; -// virtual bool StartDrag(const wxPoint& cursor, const wxRect& cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col); -static int LUACALL wxLua_wxDataViewCustomRendererBase_StartDrag(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 6); - // const wxDataViewItem item - const wxDataViewItem * item = (const wxDataViewItem *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDataViewItem); - // wxDataViewModel model - wxDataViewModel * model = (wxDataViewModel *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDataViewModel); - // const wxRect cell - const wxRect * cell = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // const wxPoint cursor - const wxPoint * cursor = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call StartDrag - bool returns = (self->StartDrag(*cursor, *cell, model, *item, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_WXCallRender[] = { &wxluatype_wxDataViewCustomRendererBase, &wxluatype_wxRect, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewCustomRendererBase_WXCallRender(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewCustomRendererBase_WXCallRender[1] = {{ wxLua_wxDataViewCustomRendererBase_WXCallRender, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDataViewCustomRendererBase_WXCallRender }}; -// void WXCallRender(wxRect rect, wxDC *dc, int state); -static int LUACALL wxLua_wxDataViewCustomRendererBase_WXCallRender(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 4); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRect rect - wxRect rect = *(wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDataViewCustomRendererBase * self = (wxDataViewCustomRendererBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewCustomRendererBase); - // call WXCallRender - self->WXCallRender(rect, dc, state); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxDataViewCustomRendererBase_delete_function(void** p) -{ - wxDataViewCustomRendererBase* o = (wxDataViewCustomRendererBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewCustomRendererBase_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "ActivateCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_ActivateCell, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - - { "GetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetAttr, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC) - { "GetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetDC, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC) - - { "GetEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetEnabled, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_GetSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - - { "IsCustomRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_IsCustomRenderer, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "Render", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_Render, 1, NULL }, - { "RenderBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_RenderBackground, 1, NULL }, - { "RenderText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_RenderText, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - - { "SetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_SetAttr, 1, NULL }, - { "SetEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_SetEnabled, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - { "StartDrag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_StartDrag, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "WXCallRender", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewCustomRendererBase_WXCallRender, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewCustomRendererBase_methodCount = sizeof(wxDataViewCustomRendererBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) -// --------------------------------------------------------------------------- -// Bind class wxDataViewSpinRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewSpinRenderer' -int wxluatype_wxDataViewSpinRenderer = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewSpinRenderer_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewSpinRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewSpinRenderer_constructor[1] = {{ wxLua_wxDataViewSpinRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxDataViewSpinRenderer_constructor }}; -// int alignment = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewSpinRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int alignment = wxDVR_DEFAULT_ALIGNMENT - int alignment = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE - wxDataViewCellMode mode = (argCount >= 3 ? (wxDataViewCellMode)wxlua_getenumtype(L, 3) : wxDATAVIEW_CELL_EDITABLE); - // int max - int max = (int)wxlua_getnumbertype(L, 2); - // int min - int min = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxDataViewSpinRenderer* returns = new wxDataViewSpinRenderer(min, max, mode, alignment); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewSpinRenderer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - - -void wxLua_wxDataViewSpinRenderer_delete_function(void** p) -{ - wxDataViewSpinRenderer* o = (wxDataViewSpinRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewSpinRenderer_methods[] = { -#if ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - { "wxDataViewSpinRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewSpinRenderer_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL)) && (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewSpinRenderer_methodCount = sizeof(wxDataViewSpinRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewTextRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewTextRenderer' -int wxluatype_wxDataViewTextRenderer = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_MARKUP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTextRenderer_EnableMarkup[] = { &wxluatype_wxDataViewTextRenderer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataViewTextRenderer_EnableMarkup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTextRenderer_EnableMarkup[1] = {{ wxLua_wxDataViewTextRenderer_EnableMarkup, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDataViewTextRenderer_EnableMarkup }}; -// void EnableMarkup(bool enable = true); -static int LUACALL wxLua_wxDataViewTextRenderer_EnableMarkup(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxDataViewTextRenderer * self = (wxDataViewTextRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewTextRenderer); - // call EnableMarkup - self->EnableMarkup(enable); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_MARKUP) - -static int LUACALL wxLua_wxDataViewTextRenderer_GetDefaultType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTextRenderer_GetDefaultType[1] = {{ wxLua_wxDataViewTextRenderer_GetDefaultType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDefaultType(); -static int LUACALL wxLua_wxDataViewTextRenderer_GetDefaultType(lua_State *L) -{ - // call GetDefaultType - wxString returns = (wxDataViewTextRenderer::GetDefaultType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewTextRenderer_constructor[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewTextRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewTextRenderer_constructor[1] = {{ wxLua_wxDataViewTextRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxDataViewTextRenderer_constructor }}; -// int align = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewTextRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int align = wxDVR_DEFAULT_ALIGNMENT - int align = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 2 ? (wxDataViewCellMode)wxlua_getenumtype(L, 2) : wxDATAVIEW_CELL_INERT); - // const wxString varianttype = "string" - const wxString varianttype = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("string"))); - // call constructor - wxDataViewTextRenderer* returns = new wxDataViewTextRenderer(varianttype, mode, align); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewTextRenderer); - - return 1; -} - - - - -void wxLua_wxDataViewTextRenderer_delete_function(void** p) -{ - wxDataViewTextRenderer* o = (wxDataViewTextRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewTextRenderer_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_MARKUP) - { "EnableMarkup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewTextRenderer_EnableMarkup, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_MARKUP) - - { "GetDefaultType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDataViewTextRenderer_GetDefaultType, 1, NULL }, - { "wxDataViewTextRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewTextRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewTextRenderer_methodCount = sizeof(wxDataViewTextRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewBitmapRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewBitmapRenderer' -int wxluatype_wxDataViewBitmapRenderer = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxDataViewBitmapRenderer_GetDefaultType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewBitmapRenderer_GetDefaultType[1] = {{ wxLua_wxDataViewBitmapRenderer_GetDefaultType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDefaultType(); -static int LUACALL wxLua_wxDataViewBitmapRenderer_GetDefaultType(lua_State *L) -{ - // call GetDefaultType - wxString returns = (wxDataViewBitmapRenderer::GetDefaultType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewBitmapRenderer_constructor[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewBitmapRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewBitmapRenderer_constructor[1] = {{ wxLua_wxDataViewBitmapRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxDataViewBitmapRenderer_constructor }}; -// int align = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewBitmapRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int align = wxDVR_DEFAULT_ALIGNMENT - int align = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 2 ? (wxDataViewCellMode)wxlua_getenumtype(L, 2) : wxDATAVIEW_CELL_INERT); - // const wxString varianttype = "wxBitmap" - const wxString varianttype = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("wxBitmap"))); - // call constructor - wxDataViewBitmapRenderer* returns = new wxDataViewBitmapRenderer(varianttype, mode, align); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewBitmapRenderer); - - return 1; -} - - - - -void wxLua_wxDataViewBitmapRenderer_delete_function(void** p) -{ - wxDataViewBitmapRenderer* o = (wxDataViewBitmapRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewBitmapRenderer_methods[] = { - { "GetDefaultType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDataViewBitmapRenderer_GetDefaultType, 1, NULL }, - { "wxDataViewBitmapRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewBitmapRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewBitmapRenderer_methodCount = sizeof(wxDataViewBitmapRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewToggleRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewToggleRenderer' -int wxluatype_wxDataViewToggleRenderer = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxDataViewToggleRenderer_GetDefaultType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewToggleRenderer_GetDefaultType[1] = {{ wxLua_wxDataViewToggleRenderer_GetDefaultType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDefaultType(); -static int LUACALL wxLua_wxDataViewToggleRenderer_GetDefaultType(lua_State *L) -{ - // call GetDefaultType - wxString returns = (wxDataViewToggleRenderer::GetDefaultType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewToggleRenderer_ShowAsRadio[] = { &wxluatype_wxDataViewToggleRenderer, NULL }; -static int LUACALL wxLua_wxDataViewToggleRenderer_ShowAsRadio(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewToggleRenderer_ShowAsRadio[1] = {{ wxLua_wxDataViewToggleRenderer_ShowAsRadio, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewToggleRenderer_ShowAsRadio }}; -// void ShowAsRadio(); -static int LUACALL wxLua_wxDataViewToggleRenderer_ShowAsRadio(lua_State *L) -{ - // get this - wxDataViewToggleRenderer * self = (wxDataViewToggleRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewToggleRenderer); - // call ShowAsRadio - self->ShowAsRadio(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewToggleRenderer_constructor[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewToggleRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewToggleRenderer_constructor[1] = {{ wxLua_wxDataViewToggleRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxDataViewToggleRenderer_constructor }}; -// int align = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewToggleRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int align = wxDVR_DEFAULT_ALIGNMENT - int align = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 2 ? (wxDataViewCellMode)wxlua_getenumtype(L, 2) : wxDATAVIEW_CELL_INERT); - // const wxString varianttype = "bool" - const wxString varianttype = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("bool"))); - // call constructor - wxDataViewToggleRenderer* returns = new wxDataViewToggleRenderer(varianttype, mode, align); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewToggleRenderer); - - return 1; -} - - - - -void wxLua_wxDataViewToggleRenderer_delete_function(void** p) -{ - wxDataViewToggleRenderer* o = (wxDataViewToggleRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewToggleRenderer_methods[] = { - { "GetDefaultType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDataViewToggleRenderer_GetDefaultType, 1, NULL }, - { "ShowAsRadio", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewToggleRenderer_ShowAsRadio, 1, NULL }, - { "wxDataViewToggleRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewToggleRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewToggleRenderer_methodCount = sizeof(wxDataViewToggleRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewProgressRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewProgressRenderer' -int wxluatype_wxDataViewProgressRenderer = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxDataViewProgressRenderer_GetDefaultType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewProgressRenderer_GetDefaultType[1] = {{ wxLua_wxDataViewProgressRenderer_GetDefaultType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDefaultType(); -static int LUACALL wxLua_wxDataViewProgressRenderer_GetDefaultType(lua_State *L) -{ - // call GetDefaultType - wxString returns = (wxDataViewProgressRenderer::GetDefaultType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewProgressRenderer_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewProgressRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewProgressRenderer_constructor[1] = {{ wxLua_wxDataViewProgressRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxDataViewProgressRenderer_constructor }}; -// int align = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewProgressRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int align = wxDVR_DEFAULT_ALIGNMENT - int align = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 3 ? (wxDataViewCellMode)wxlua_getenumtype(L, 3) : wxDATAVIEW_CELL_INERT); - // const wxString varianttype = "long" - const wxString varianttype = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("long"))); - // const wxString label = wxEmptyString - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxDataViewProgressRenderer* returns = new wxDataViewProgressRenderer(label, varianttype, mode, align); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewProgressRenderer); - - return 1; -} - - - - -void wxLua_wxDataViewProgressRenderer_delete_function(void** p) -{ - wxDataViewProgressRenderer* o = (wxDataViewProgressRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewProgressRenderer_methods[] = { - { "GetDefaultType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDataViewProgressRenderer_GetDefaultType, 1, NULL }, - { "wxDataViewProgressRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewProgressRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewProgressRenderer_methodCount = sizeof(wxDataViewProgressRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewIconTextRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewIconTextRenderer' -int wxluatype_wxDataViewIconTextRenderer = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxDataViewIconTextRenderer_GetDefaultType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconTextRenderer_GetDefaultType[1] = {{ wxLua_wxDataViewIconTextRenderer_GetDefaultType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDefaultType(); -static int LUACALL wxLua_wxDataViewIconTextRenderer_GetDefaultType(lua_State *L) -{ - // call GetDefaultType - wxString returns = (wxDataViewIconTextRenderer::GetDefaultType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewIconTextRenderer_constructor[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewIconTextRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewIconTextRenderer_constructor[1] = {{ wxLua_wxDataViewIconTextRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxDataViewIconTextRenderer_constructor }}; -// int align = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewIconTextRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int align = wxDVR_DEFAULT_ALIGNMENT - int align = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT - wxDataViewCellMode mode = (argCount >= 2 ? (wxDataViewCellMode)wxlua_getenumtype(L, 2) : wxDATAVIEW_CELL_INERT); - // const wxString varianttype = "wxDataViewIconText" - const wxString varianttype = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("wxDataViewIconText"))); - // call constructor - wxDataViewIconTextRenderer* returns = new wxDataViewIconTextRenderer(varianttype, mode, align); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewIconTextRenderer); - - return 1; -} - - - - -void wxLua_wxDataViewIconTextRenderer_delete_function(void** p) -{ - wxDataViewIconTextRenderer* o = (wxDataViewIconTextRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewIconTextRenderer_methods[] = { - { "GetDefaultType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDataViewIconTextRenderer_GetDefaultType, 1, NULL }, - { "wxDataViewIconTextRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewIconTextRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataViewIconTextRenderer_methodCount = sizeof(wxDataViewIconTextRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewChoiceRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewChoiceRenderer' -int wxluatype_wxDataViewChoiceRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewChoiceRenderer_GetChoice[] = { &wxluatype_wxDataViewChoiceRenderer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataViewChoiceRenderer_GetChoice(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewChoiceRenderer_GetChoice[1] = {{ wxLua_wxDataViewChoiceRenderer_GetChoice, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataViewChoiceRenderer_GetChoice }}; -// wxString GetChoice(size_t index) const; -static int LUACALL wxLua_wxDataViewChoiceRenderer_GetChoice(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDataViewChoiceRenderer * self = (wxDataViewChoiceRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewChoiceRenderer); - // call GetChoice - wxString returns = (self->GetChoice(index)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewChoiceRenderer_GetChoices[] = { &wxluatype_wxDataViewChoiceRenderer, NULL }; -static int LUACALL wxLua_wxDataViewChoiceRenderer_GetChoices(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewChoiceRenderer_GetChoices[1] = {{ wxLua_wxDataViewChoiceRenderer_GetChoices, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataViewChoiceRenderer_GetChoices }}; -// const wxArrayString& GetChoices() const; -static int LUACALL wxLua_wxDataViewChoiceRenderer_GetChoices(lua_State *L) -{ - // get this - wxDataViewChoiceRenderer * self = (wxDataViewChoiceRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataViewChoiceRenderer); - // call GetChoices - const wxArrayString* returns = (const wxArrayString*)&self->GetChoices(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewChoiceRenderer_constructor[] = { &wxluatype_wxArrayString, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewChoiceRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewChoiceRenderer_constructor[1] = {{ wxLua_wxDataViewChoiceRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxDataViewChoiceRenderer_constructor }}; -// int alignment = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewChoiceRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int alignment = wxDVR_DEFAULT_ALIGNMENT - int alignment = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE - wxDataViewCellMode mode = (argCount >= 2 ? (wxDataViewCellMode)wxlua_getenumtype(L, 2) : wxDATAVIEW_CELL_EDITABLE); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 1); - // call constructor - wxDataViewChoiceRenderer* returns = new wxDataViewChoiceRenderer(choices, mode, alignment); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewChoiceRenderer); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) - - - -void wxLua_wxDataViewChoiceRenderer_delete_function(void** p) -{ - wxDataViewChoiceRenderer* o = (wxDataViewChoiceRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewChoiceRenderer_methods[] = { - { "GetChoice", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewChoiceRenderer_GetChoice, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) - { "GetChoices", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataViewChoiceRenderer_GetChoices, 1, NULL }, - { "wxDataViewChoiceRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewChoiceRenderer_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewChoiceRenderer_methodCount = sizeof(wxDataViewChoiceRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl -// --------------------------------------------------------------------------- -// Bind class wxDataViewChoiceByIndexRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataViewChoiceByIndexRenderer' -int wxluatype_wxDataViewChoiceByIndexRenderer = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataViewChoiceByIndexRenderer_constructor[] = { &wxluatype_wxArrayString, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataViewChoiceByIndexRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataViewChoiceByIndexRenderer_constructor[1] = {{ wxLua_wxDataViewChoiceByIndexRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxDataViewChoiceByIndexRenderer_constructor }}; -// int alignment = wxDVR_DEFAULT_ALIGNMENT ); -static int LUACALL wxLua_wxDataViewChoiceByIndexRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int alignment = wxDVR_DEFAULT_ALIGNMENT - int alignment = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDVR_DEFAULT_ALIGNMENT); - // wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE - wxDataViewCellMode mode = (argCount >= 2 ? (wxDataViewCellMode)wxlua_getenumtype(L, 2) : wxDATAVIEW_CELL_EDITABLE); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 1); - // call constructor - wxDataViewChoiceByIndexRenderer* returns = new wxDataViewChoiceByIndexRenderer(choices, mode, alignment); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataViewChoiceByIndexRenderer); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) - - - -void wxLua_wxDataViewChoiceByIndexRenderer_delete_function(void** p) -{ - wxDataViewChoiceByIndexRenderer* o = (wxDataViewChoiceByIndexRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataViewChoiceByIndexRenderer_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) - { "wxDataViewChoiceByIndexRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataViewChoiceByIndexRenderer_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxLUA_USE_wxArrayString) - - { 0, 0, 0, 0 }, -}; - -int wxDataViewChoiceByIndexRenderer_methodCount = sizeof(wxDataViewChoiceByIndexRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxadv_grid.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellWorker -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellWorker' -int wxluatype_wxGridCellWorker = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellWorker_DecRef[] = { &wxluatype_wxGridCellWorker, NULL }; -static int LUACALL wxLua_wxGridCellWorker_DecRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellWorker_DecRef[1] = {{ wxLua_wxGridCellWorker_DecRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellWorker_DecRef }}; -// void DecRef(); -static int LUACALL wxLua_wxGridCellWorker_DecRef(lua_State *L) -{ - // get this - wxGridCellWorker * self = (wxGridCellWorker *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellWorker); - // call DecRef - self->DecRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellWorker_IncRef[] = { &wxluatype_wxGridCellWorker, NULL }; -static int LUACALL wxLua_wxGridCellWorker_IncRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellWorker_IncRef[1] = {{ wxLua_wxGridCellWorker_IncRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellWorker_IncRef }}; -// void IncRef(); -static int LUACALL wxLua_wxGridCellWorker_IncRef(lua_State *L) -{ - // get this - wxGridCellWorker * self = (wxGridCellWorker *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellWorker); - // call IncRef - self->IncRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellWorker_SetParameters[] = { &wxluatype_wxGridCellWorker, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridCellWorker_SetParameters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellWorker_SetParameters[1] = {{ wxLua_wxGridCellWorker_SetParameters, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellWorker_SetParameters }}; -// virtual void SetParameters(const wxString& params); -static int LUACALL wxLua_wxGridCellWorker_SetParameters(lua_State *L) -{ - // const wxString params - const wxString params = wxlua_getwxStringtype(L, 2); - // get this - wxGridCellWorker * self = (wxGridCellWorker *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellWorker); - // call SetParameters - self->SetParameters(params); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellWorker_delete[] = { &wxluatype_wxGridCellWorker, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellWorker_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellWorker_delete }}; - - - - -// %override wxLua_wxGridCellWorker_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellWorker_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellWorker_methods[] = { - { "DecRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellWorker_DecRef, 1, NULL }, - { "IncRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellWorker_IncRef, 1, NULL }, - { "SetParameters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellWorker_SetParameters, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellWorker_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellWorker_methodCount = sizeof(wxGridCellWorker_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellRenderer' -int wxluatype_wxGridCellRenderer = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellRenderer_GetBestSize[] = { &wxluatype_wxGridCellRenderer, &wxluatype_wxGrid, &wxluatype_wxGridCellAttr, &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellRenderer_GetBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellRenderer_GetBestSize[1] = {{ wxLua_wxGridCellRenderer_GetBestSize, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGridCellRenderer_GetBestSize }}; -// virtual wxSize GetBestSize(wxGrid& grid, wxGridCellAttr& attr, wxDC& dc, int row, int col); -static int LUACALL wxLua_wxGridCellRenderer_GetBestSize(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 6); - // int row - int row = (int)wxlua_getnumbertype(L, 5); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDC); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellAttr); - // wxGrid grid - wxGrid * grid = (wxGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGrid); - // get this - wxGridCellRenderer * self = (wxGridCellRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellRenderer); - // call GetBestSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBestSize(*grid, *attr, *dc, row, col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellRenderer_delete[] = { &wxluatype_wxGridCellRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellRenderer_delete }}; - - - - -// %override wxLua_wxGridCellRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellRenderer_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - { "GetBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellRenderer_GetBestSize, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellRenderer_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellRenderer_methodCount = sizeof(wxGridCellRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellStringRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellStringRenderer' -int wxluatype_wxGridCellStringRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellStringRenderer_delete[] = { &wxluatype_wxGridCellStringRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellStringRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellStringRenderer_delete }}; - -static int LUACALL wxLua_wxGridCellStringRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellStringRenderer_constructor[1] = {{ wxLua_wxGridCellStringRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellStringRenderer(); -static int LUACALL wxLua_wxGridCellStringRenderer_constructor(lua_State *L) -{ - // call constructor - wxGridCellStringRenderer* returns = new wxGridCellStringRenderer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellStringRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellStringRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellStringRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellStringRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellStringRenderer_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellStringRenderer_delete, 1, NULL }, - { "wxGridCellStringRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellStringRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellStringRenderer_methodCount = sizeof(wxGridCellStringRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellNumberRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellNumberRenderer' -int wxluatype_wxGridCellNumberRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellNumberRenderer_delete[] = { &wxluatype_wxGridCellNumberRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellNumberRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellNumberRenderer_delete }}; - -static int LUACALL wxLua_wxGridCellNumberRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellNumberRenderer_constructor[1] = {{ wxLua_wxGridCellNumberRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellNumberRenderer(); -static int LUACALL wxLua_wxGridCellNumberRenderer_constructor(lua_State *L) -{ - // call constructor - wxGridCellNumberRenderer* returns = new wxGridCellNumberRenderer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellNumberRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellNumberRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellNumberRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellNumberRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellNumberRenderer_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellNumberRenderer_delete, 1, NULL }, - { "wxGridCellNumberRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellNumberRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellNumberRenderer_methodCount = sizeof(wxGridCellNumberRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellFloatRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellFloatRenderer' -int wxluatype_wxGridCellFloatRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_GetPrecision[] = { &wxluatype_wxGridCellFloatRenderer, NULL }; -static int LUACALL wxLua_wxGridCellFloatRenderer_GetPrecision(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatRenderer_GetPrecision[1] = {{ wxLua_wxGridCellFloatRenderer_GetPrecision, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_GetPrecision }}; -// int GetPrecision() const; -static int LUACALL wxLua_wxGridCellFloatRenderer_GetPrecision(lua_State *L) -{ - // get this - wxGridCellFloatRenderer * self = (wxGridCellFloatRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellFloatRenderer); - // call GetPrecision - int returns = (self->GetPrecision()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_GetWidth[] = { &wxluatype_wxGridCellFloatRenderer, NULL }; -static int LUACALL wxLua_wxGridCellFloatRenderer_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatRenderer_GetWidth[1] = {{ wxLua_wxGridCellFloatRenderer_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxGridCellFloatRenderer_GetWidth(lua_State *L) -{ - // get this - wxGridCellFloatRenderer * self = (wxGridCellFloatRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellFloatRenderer); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_SetPrecision[] = { &wxluatype_wxGridCellFloatRenderer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellFloatRenderer_SetPrecision(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatRenderer_SetPrecision[1] = {{ wxLua_wxGridCellFloatRenderer_SetPrecision, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_SetPrecision }}; -// void SetPrecision(int precision); -static int LUACALL wxLua_wxGridCellFloatRenderer_SetPrecision(lua_State *L) -{ - // int precision - int precision = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellFloatRenderer * self = (wxGridCellFloatRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellFloatRenderer); - // call SetPrecision - self->SetPrecision(precision); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_SetWidth[] = { &wxluatype_wxGridCellFloatRenderer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellFloatRenderer_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatRenderer_SetWidth[1] = {{ wxLua_wxGridCellFloatRenderer_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxGridCellFloatRenderer_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellFloatRenderer * self = (wxGridCellFloatRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellFloatRenderer); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_delete[] = { &wxluatype_wxGridCellFloatRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellFloatRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatRenderer_constructor[1] = {{ wxLua_wxGridCellFloatRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridCellFloatRenderer_constructor }}; -// wxGridCellFloatRenderer(int width = -1, int precision = -1); -static int LUACALL wxLua_wxGridCellFloatRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int precision = -1 - int precision = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // int width = -1 - int width = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : -1); - // call constructor - wxGridCellFloatRenderer* returns = new wxGridCellFloatRenderer(width, precision); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellFloatRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellFloatRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellFloatRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellFloatRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellFloatRenderer_methods[] = { - { "GetPrecision", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellFloatRenderer_GetPrecision, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellFloatRenderer_GetWidth, 1, NULL }, - { "SetPrecision", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellFloatRenderer_SetPrecision, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellFloatRenderer_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellFloatRenderer_delete, 1, NULL }, - { "wxGridCellFloatRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellFloatRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellFloatRenderer_methodCount = sizeof(wxGridCellFloatRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellBoolRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellBoolRenderer' -int wxluatype_wxGridCellBoolRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellBoolRenderer_delete[] = { &wxluatype_wxGridCellBoolRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellBoolRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellBoolRenderer_delete }}; - -static int LUACALL wxLua_wxGridCellBoolRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellBoolRenderer_constructor[1] = {{ wxLua_wxGridCellBoolRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellBoolRenderer(); -static int LUACALL wxLua_wxGridCellBoolRenderer_constructor(lua_State *L) -{ - // call constructor - wxGridCellBoolRenderer* returns = new wxGridCellBoolRenderer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellBoolRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellBoolRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellBoolRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellBoolRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellBoolRenderer_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellBoolRenderer_delete, 1, NULL }, - { "wxGridCellBoolRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellBoolRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellBoolRenderer_methodCount = sizeof(wxGridCellBoolRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellDateTimeRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellDateTimeRenderer' -int wxluatype_wxGridCellDateTimeRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellDateTimeRenderer_delete[] = { &wxluatype_wxGridCellDateTimeRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellDateTimeRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellDateTimeRenderer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellDateTimeRenderer_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridCellDateTimeRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellDateTimeRenderer_constructor[1] = {{ wxLua_wxGridCellDateTimeRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridCellDateTimeRenderer_constructor }}; -// wxGridCellDateTimeRenderer(const wxString& outformat = wxDefaultDateTimeFormat, const wxString& informat = wxDefaultDateTimeFormat); -static int LUACALL wxLua_wxGridCellDateTimeRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString informat = wxDefaultDateTimeFormat - const wxString informat = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxDefaultDateTimeFormat)); - // const wxString outformat = wxDefaultDateTimeFormat - const wxString outformat = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxDefaultDateTimeFormat)); - // call constructor - wxGridCellDateTimeRenderer* returns = new wxGridCellDateTimeRenderer(outformat, informat); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellDateTimeRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellDateTimeRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellDateTimeRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellDateTimeRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellDateTimeRenderer_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellDateTimeRenderer_delete, 1, NULL }, - { "wxGridCellDateTimeRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellDateTimeRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellDateTimeRenderer_methodCount = sizeof(wxGridCellDateTimeRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellEnumRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellEnumRenderer' -int wxluatype_wxGridCellEnumRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEnumRenderer_delete[] = { &wxluatype_wxGridCellEnumRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEnumRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEnumRenderer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEnumRenderer_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridCellEnumRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEnumRenderer_constructor[1] = {{ wxLua_wxGridCellEnumRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxGridCellEnumRenderer_constructor }}; -// wxGridCellEnumRenderer(const wxString& choices = ""); -static int LUACALL wxLua_wxGridCellEnumRenderer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString choices = "" - const wxString choices = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxGridCellEnumRenderer* returns = new wxGridCellEnumRenderer(choices); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEnumRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEnumRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellEnumRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellEnumRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellEnumRenderer_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellEnumRenderer_delete, 1, NULL }, - { "wxGridCellEnumRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellEnumRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellEnumRenderer_methodCount = sizeof(wxGridCellEnumRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellAutoWrapStringRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellAutoWrapStringRenderer' -int wxluatype_wxGridCellAutoWrapStringRenderer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAutoWrapStringRenderer_delete[] = { &wxluatype_wxGridCellAutoWrapStringRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAutoWrapStringRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAutoWrapStringRenderer_delete }}; - -static int LUACALL wxLua_wxGridCellAutoWrapStringRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAutoWrapStringRenderer_constructor[1] = {{ wxLua_wxGridCellAutoWrapStringRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellAutoWrapStringRenderer(); -static int LUACALL wxLua_wxGridCellAutoWrapStringRenderer_constructor(lua_State *L) -{ - // call constructor - wxGridCellAutoWrapStringRenderer* returns = new wxGridCellAutoWrapStringRenderer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAutoWrapStringRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAutoWrapStringRenderer); - - return 1; -} - - - - -// %override wxLua_wxGridCellAutoWrapStringRenderer_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellAutoWrapStringRenderer_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellAutoWrapStringRenderer_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellAutoWrapStringRenderer_delete, 1, NULL }, - { "wxGridCellAutoWrapStringRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellAutoWrapStringRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellAutoWrapStringRenderer_methodCount = sizeof(wxGridCellAutoWrapStringRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellEditor' -int wxluatype_wxGridCellEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_BeginEdit[] = { &wxluatype_wxGridCellEditor, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGridCellEditor_BeginEdit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_BeginEdit[1] = {{ wxLua_wxGridCellEditor_BeginEdit, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellEditor_BeginEdit }}; -// virtual void BeginEdit(int row, int col, wxGrid* grid); -static int LUACALL wxLua_wxGridCellEditor_BeginEdit(lua_State *L) -{ - // wxGrid grid - wxGrid * grid = (wxGrid *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGrid); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call BeginEdit - self->BeginEdit(row, col, grid); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_Destroy[] = { &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellEditor_Destroy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_Destroy[1] = {{ wxLua_wxGridCellEditor_Destroy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_Destroy }}; -// virtual void Destroy(); -static int LUACALL wxLua_wxGridCellEditor_Destroy(lua_State *L) -{ - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call Destroy - self->Destroy(); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_EndEdit1[] = { &wxluatype_wxGridCellEditor, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGrid, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGridCellEditor_EndEdit1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_EndEdit1[1] = {{ wxLua_wxGridCellEditor_EndEdit1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGridCellEditor_EndEdit1 }}; -// %wxchkver_2_9_2 virtual bool EndEdit(int row, int col, const wxGrid *grid, const wxString& oldval, wxString *newval); -static int LUACALL wxLua_wxGridCellEditor_EndEdit1(lua_State *L) -{ - // wxString newval - wxString * newval = (wxString *)wxlua_touserdata(L, 6); - // const wxString oldval - const wxString oldval = wxlua_getwxStringtype(L, 5); - // const wxGrid grid - const wxGrid * grid = (const wxGrid *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGrid); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call EndEdit - bool returns = (self->EndEdit(row, col, grid, oldval, newval)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_EndEdit[] = { &wxluatype_wxGridCellEditor, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGridCellEditor_EndEdit(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_EndEdit[1] = {{ wxLua_wxGridCellEditor_EndEdit, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellEditor_EndEdit }}; -// !%wxchkver_2_9_2 virtual bool EndEdit(int row, int col, wxGrid* grid); -static int LUACALL wxLua_wxGridCellEditor_EndEdit(lua_State *L) -{ - // wxGrid grid - wxGrid * grid = (wxGrid *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGrid); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call EndEdit - bool returns = (self->EndEdit(row, col, grid)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_GetCellAttr[] = { &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellEditor_GetCellAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_GetCellAttr[1] = {{ wxLua_wxGridCellEditor_GetCellAttr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_GetCellAttr }}; -// wxGridCellAttr* GetCellAttr(); -static int LUACALL wxLua_wxGridCellEditor_GetCellAttr(lua_State *L) -{ - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call GetCellAttr - wxGridCellAttr* returns = (wxGridCellAttr*)self->GetCellAttr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_GetControl[] = { &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellEditor_GetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_GetControl[1] = {{ wxLua_wxGridCellEditor_GetControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_GetControl }}; -// wxControl* GetControl(); -static int LUACALL wxLua_wxGridCellEditor_GetControl(lua_State *L) -{ - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call GetControl - wxControl* returns = (wxControl*)self->GetControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_HandleReturn[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxGridCellEditor_HandleReturn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_HandleReturn[1] = {{ wxLua_wxGridCellEditor_HandleReturn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellEditor_HandleReturn }}; -// virtual void HandleReturn(wxKeyEvent& event); -static int LUACALL wxLua_wxGridCellEditor_HandleReturn(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call HandleReturn - self->HandleReturn(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_IsAcceptedKey[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxGridCellEditor_IsAcceptedKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_IsAcceptedKey[1] = {{ wxLua_wxGridCellEditor_IsAcceptedKey, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellEditor_IsAcceptedKey }}; -// virtual bool IsAcceptedKey(wxKeyEvent& event); -static int LUACALL wxLua_wxGridCellEditor_IsAcceptedKey(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call IsAcceptedKey - bool returns = (self->IsAcceptedKey(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_IsCreated[] = { &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellEditor_IsCreated(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_IsCreated[1] = {{ wxLua_wxGridCellEditor_IsCreated, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_IsCreated }}; -// bool IsCreated(); -static int LUACALL wxLua_wxGridCellEditor_IsCreated(lua_State *L) -{ - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call IsCreated - bool returns = (self->IsCreated()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_PaintBackground1[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellEditor_PaintBackground1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground1[1] = {{ wxLua_wxGridCellEditor_PaintBackground1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellEditor_PaintBackground1 }}; -// %wxchkver_2_9_5 virtual void PaintBackground(wxDC& dc, const wxRect& rectCell, const wxGridCellAttr &attr); -static int LUACALL wxLua_wxGridCellEditor_PaintBackground1(lua_State *L) -{ - // const wxGridCellAttr attr - const wxGridCellAttr * attr = (const wxGridCellAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellAttr); - // const wxRect rectCell - const wxRect * rectCell = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call PaintBackground - self->PaintBackground(*dc, *rectCell, *attr); - - return 0; -} - -#endif // ((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - -#if (((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_PaintBackground[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxRect, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellEditor_PaintBackground(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground[1] = {{ wxLua_wxGridCellEditor_PaintBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellEditor_PaintBackground }}; -// !%wxchkver_2_9_5 virtual void PaintBackground(const wxRect& rectCell, wxGridCellAttr *attr); -static int LUACALL wxLua_wxGridCellEditor_PaintBackground(lua_State *L) -{ - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellAttr); - // const wxRect rectCell - const wxRect * rectCell = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call PaintBackground - self->PaintBackground(*rectCell, attr); - - return 0; -} - -#endif // (((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_Reset[] = { &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellEditor_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_Reset[1] = {{ wxLua_wxGridCellEditor_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_Reset }}; -// virtual void Reset(); -static int LUACALL wxLua_wxGridCellEditor_Reset(lua_State *L) -{ - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_SetCellAttr[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellEditor_SetCellAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_SetCellAttr[1] = {{ wxLua_wxGridCellEditor_SetCellAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellEditor_SetCellAttr }}; -// void SetCellAttr(wxGridCellAttr* attr); -static int LUACALL wxLua_wxGridCellEditor_SetCellAttr(lua_State *L) -{ - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call SetCellAttr - self->SetCellAttr(attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_SetControl[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxControl, NULL }; -static int LUACALL wxLua_wxGridCellEditor_SetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_SetControl[1] = {{ wxLua_wxGridCellEditor_SetControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellEditor_SetControl }}; -// void SetControl(%ungc wxControl* control); -static int LUACALL wxLua_wxGridCellEditor_SetControl(lua_State *L) -{ - // wxControl control - wxControl * control = (wxControl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxControl); - if (wxluaO_isgcobject(L, control)) wxluaO_undeletegcobject(L, control); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call SetControl - self->SetControl(control); - - return 0; -} - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_SetSize[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxGridCellEditor_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_SetSize[1] = {{ wxLua_wxGridCellEditor_SetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellEditor_SetSize }}; -// virtual void SetSize(const wxRect& rect); -static int LUACALL wxLua_wxGridCellEditor_SetSize(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call SetSize - self->SetSize(*rect); - - return 0; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_Show[] = { &wxluatype_wxGridCellEditor, &wxluatype_TBOOLEAN, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellEditor_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_Show[1] = {{ wxLua_wxGridCellEditor_Show, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGridCellEditor_Show }}; -// virtual void Show(bool show, wxGridCellAttr *attr = NULL); -static int LUACALL wxLua_wxGridCellEditor_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxGridCellAttr attr = NULL - wxGridCellAttr * attr = (argCount >= 3 ? (wxGridCellAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellAttr) : NULL); - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call Show - self->Show(show, attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_StartingClick[] = { &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellEditor_StartingClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_StartingClick[1] = {{ wxLua_wxGridCellEditor_StartingClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_StartingClick }}; -// virtual void StartingClick(); -static int LUACALL wxLua_wxGridCellEditor_StartingClick(lua_State *L) -{ - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call StartingClick - self->StartingClick(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_StartingKey[] = { &wxluatype_wxGridCellEditor, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxGridCellEditor_StartingKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_StartingKey[1] = {{ wxLua_wxGridCellEditor_StartingKey, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellEditor_StartingKey }}; -// virtual void StartingKey(wxKeyEvent& event); -static int LUACALL wxLua_wxGridCellEditor_StartingKey(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxGridCellEditor * self = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellEditor); - // call StartingKey - self->StartingKey(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEditor_delete[] = { &wxluatype_wxGridCellEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEditor_delete }}; - - - - -#if (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_EndEdit_overload[] = -{ - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGridCellEditor_EndEdit1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGridCellEditor_EndEdit1 }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGridCellEditor_EndEdit, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellEditor_EndEdit }, -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -}; -static int s_wxluafunc_wxLua_wxGridCellEditor_EndEdit_overload_count = sizeof(s_wxluafunc_wxLua_wxGridCellEditor_EndEdit_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - -#if (((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect))||((((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground_overload[] = -{ - -#if ((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGridCellEditor_PaintBackground1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellEditor_PaintBackground1 }, -#endif // ((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - -#if (((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGridCellEditor_PaintBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellEditor_PaintBackground }, -#endif // (((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground_overload_count = sizeof(s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect))||((((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect)) - -// %override wxLua_wxGridCellEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellEditor_methods[] = { - { "BeginEdit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_BeginEdit, 1, NULL }, - { "Destroy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_Destroy, 1, NULL }, - -#if (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - { "EndEdit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_EndEdit_overload, s_wxluafunc_wxLua_wxGridCellEditor_EndEdit_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - - { "GetCellAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_GetCellAttr, 1, NULL }, - { "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_GetControl, 1, NULL }, - { "HandleReturn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_HandleReturn, 1, NULL }, - { "IsAcceptedKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_IsAcceptedKey, 1, NULL }, - { "IsCreated", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_IsCreated, 1, NULL }, - -#if (((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect))||((((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect)) - { "PaintBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground_overload, s_wxluafunc_wxLua_wxGridCellEditor_PaintBackground_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect))||((((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect)) - - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_Reset, 1, NULL }, - { "SetCellAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_SetCellAttr, 1, NULL }, - { "SetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_SetControl, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_SetSize, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_Show, 1, NULL }, - { "StartingClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_StartingClick, 1, NULL }, - { "StartingKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellEditor_StartingKey, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellEditor_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellEditor_methodCount = sizeof(wxGridCellEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellTextEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellTextEditor' -int wxluatype_wxGridCellTextEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellTextEditor_delete[] = { &wxluatype_wxGridCellTextEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellTextEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellTextEditor_delete }}; - -static int LUACALL wxLua_wxGridCellTextEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellTextEditor_constructor[1] = {{ wxLua_wxGridCellTextEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellTextEditor(); -static int LUACALL wxLua_wxGridCellTextEditor_constructor(lua_State *L) -{ - // call constructor - wxGridCellTextEditor* returns = new wxGridCellTextEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellTextEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellTextEditor); - - return 1; -} - - - - -// %override wxLua_wxGridCellTextEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellTextEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellTextEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellTextEditor_delete, 1, NULL }, - { "wxGridCellTextEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellTextEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellTextEditor_methodCount = sizeof(wxGridCellTextEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellNumberEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellNumberEditor' -int wxluatype_wxGridCellNumberEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellNumberEditor_delete[] = { &wxluatype_wxGridCellNumberEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellNumberEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellNumberEditor_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellNumberEditor_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellNumberEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellNumberEditor_constructor[1] = {{ wxLua_wxGridCellNumberEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridCellNumberEditor_constructor }}; -// wxGridCellNumberEditor(int min = -1, int max = -1); -static int LUACALL wxLua_wxGridCellNumberEditor_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int max = -1 - int max = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // int min = -1 - int min = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : -1); - // call constructor - wxGridCellNumberEditor* returns = new wxGridCellNumberEditor(min, max); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellNumberEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellNumberEditor); - - return 1; -} - - - - -// %override wxLua_wxGridCellNumberEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellNumberEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellNumberEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellNumberEditor_delete, 1, NULL }, - { "wxGridCellNumberEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellNumberEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellNumberEditor_methodCount = sizeof(wxGridCellNumberEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellFloatEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellFloatEditor' -int wxluatype_wxGridCellFloatEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatEditor_delete[] = { &wxluatype_wxGridCellFloatEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellFloatEditor_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellFloatEditor_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellFloatEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellFloatEditor_constructor[1] = {{ wxLua_wxGridCellFloatEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridCellFloatEditor_constructor }}; -// wxGridCellFloatEditor(int width = -1, int precision = -1); -static int LUACALL wxLua_wxGridCellFloatEditor_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int precision = -1 - int precision = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // int width = -1 - int width = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : -1); - // call constructor - wxGridCellFloatEditor* returns = new wxGridCellFloatEditor(width, precision); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellFloatEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellFloatEditor); - - return 1; -} - - - - -// %override wxLua_wxGridCellFloatEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellFloatEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellFloatEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellFloatEditor_delete, 1, NULL }, - { "wxGridCellFloatEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellFloatEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellFloatEditor_methodCount = sizeof(wxGridCellFloatEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellBoolEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellBoolEditor' -int wxluatype_wxGridCellBoolEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellBoolEditor_delete[] = { &wxluatype_wxGridCellBoolEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellBoolEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellBoolEditor_delete }}; - -static int LUACALL wxLua_wxGridCellBoolEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellBoolEditor_constructor[1] = {{ wxLua_wxGridCellBoolEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellBoolEditor(); -static int LUACALL wxLua_wxGridCellBoolEditor_constructor(lua_State *L) -{ - // call constructor - wxGridCellBoolEditor* returns = new wxGridCellBoolEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellBoolEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellBoolEditor); - - return 1; -} - - - - -// %override wxLua_wxGridCellBoolEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellBoolEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellBoolEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellBoolEditor_delete, 1, NULL }, - { "wxGridCellBoolEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellBoolEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellBoolEditor_methodCount = sizeof(wxGridCellBoolEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellChoiceEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellChoiceEditor' -int wxluatype_wxGridCellChoiceEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellChoiceEditor_delete[] = { &wxluatype_wxGridCellChoiceEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellChoiceEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellChoiceEditor_delete }}; - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellChoiceEditor_constructor[] = { &wxluatype_wxArrayString, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridCellChoiceEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellChoiceEditor_constructor[1] = {{ wxLua_wxGridCellChoiceEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxGridCellChoiceEditor_constructor }}; -// wxGridCellChoiceEditor(const wxArrayString& choices, bool allowOthers = false); -static int LUACALL wxLua_wxGridCellChoiceEditor_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool allowOthers = false - bool allowOthers = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 1); - // call constructor - wxGridCellChoiceEditor* returns = new wxGridCellChoiceEditor(choices, allowOthers); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellChoiceEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellChoiceEditor); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - - -// %override wxLua_wxGridCellChoiceEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellChoiceEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellChoiceEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellChoiceEditor_delete, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "wxGridCellChoiceEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellChoiceEditor_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { 0, 0, 0, 0 }, -}; - -int wxGridCellChoiceEditor_methodCount = sizeof(wxGridCellChoiceEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellEnumEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellEnumEditor' -int wxluatype_wxGridCellEnumEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEnumEditor_delete[] = { &wxluatype_wxGridCellEnumEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEnumEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellEnumEditor_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellEnumEditor_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridCellEnumEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellEnumEditor_constructor[1] = {{ wxLua_wxGridCellEnumEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxGridCellEnumEditor_constructor }}; -// wxGridCellEnumEditor(const wxString& choices = ""); -static int LUACALL wxLua_wxGridCellEnumEditor_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString choices = "" - const wxString choices = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxGridCellEnumEditor* returns = new wxGridCellEnumEditor(choices); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEnumEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEnumEditor); - - return 1; -} - - - - -// %override wxLua_wxGridCellEnumEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellEnumEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellEnumEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellEnumEditor_delete, 1, NULL }, - { "wxGridCellEnumEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellEnumEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellEnumEditor_methodCount = sizeof(wxGridCellEnumEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellAutoWrapStringEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellAutoWrapStringEditor' -int wxluatype_wxGridCellAutoWrapStringEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAutoWrapStringEditor_delete[] = { &wxluatype_wxGridCellAutoWrapStringEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAutoWrapStringEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAutoWrapStringEditor_delete }}; - -static int LUACALL wxLua_wxGridCellAutoWrapStringEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAutoWrapStringEditor_constructor[1] = {{ wxLua_wxGridCellAutoWrapStringEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellAutoWrapStringEditor(); -static int LUACALL wxLua_wxGridCellAutoWrapStringEditor_constructor(lua_State *L) -{ - // call constructor - wxGridCellAutoWrapStringEditor* returns = new wxGridCellAutoWrapStringEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAutoWrapStringEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAutoWrapStringEditor); - - return 1; -} - - - - -// %override wxLua_wxGridCellAutoWrapStringEditor_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellAutoWrapStringEditor_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellAutoWrapStringEditor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellAutoWrapStringEditor_delete, 1, NULL }, - { "wxGridCellAutoWrapStringEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellAutoWrapStringEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellAutoWrapStringEditor_methodCount = sizeof(wxGridCellAutoWrapStringEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellAttr' -int wxluatype_wxGridCellAttr = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_DecRef[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_DecRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_DecRef[1] = {{ wxLua_wxGridCellAttr_DecRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_DecRef }}; -// void DecRef(); -static int LUACALL wxLua_wxGridCellAttr_DecRef(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call DecRef - self->DecRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetAlignment[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetAlignment[1] = {{ wxLua_wxGridCellAttr_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetAlignment }}; -// %override wxLua_wxGridCellAttr_GetAlignment -// void GetAlignment(int *horz, int *vert) const -static int LUACALL wxLua_wxGridCellAttr_GetAlignment(lua_State *L) -{ - int horz; - int vert; - - // get this - wxGridCellAttr *self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetAlignment - self->GetAlignment(&horz, &vert); - - lua_pushinteger(L, horz); - lua_pushinteger(L, vert); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetBackgroundColour[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetBackgroundColour[1] = {{ wxLua_wxGridCellAttr_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetBackgroundColour }}; -// wxColour GetBackgroundColour() const; -static int LUACALL wxLua_wxGridCellAttr_GetBackgroundColour(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetEditor[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetEditor[1] = {{ wxLua_wxGridCellAttr_GetEditor, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellAttr_GetEditor }}; -// %gc wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const; -static int LUACALL wxLua_wxGridCellAttr_GetEditor(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 4); - // int row - int row = (int)wxlua_getnumbertype(L, 3); - // wxGrid grid - wxGrid * grid = (wxGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGrid); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetEditor - wxGridCellEditor* returns = (wxGridCellEditor*)self->GetEditor(grid, row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEditor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEditor); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetFont[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetFont[1] = {{ wxLua_wxGridCellAttr_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetFont }}; -// wxFont GetFont() const; -static int LUACALL wxLua_wxGridCellAttr_GetFont(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetKind[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetKind[1] = {{ wxLua_wxGridCellAttr_GetKind, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetKind }}; -// wxGridCellAttr::wxAttrKind GetKind(); -static int LUACALL wxLua_wxGridCellAttr_GetKind(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetKind - wxGridCellAttr::wxAttrKind returns = (self->GetKind()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetOverflow[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetOverflow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetOverflow[1] = {{ wxLua_wxGridCellAttr_GetOverflow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetOverflow }}; -// bool GetOverflow() const; -static int LUACALL wxLua_wxGridCellAttr_GetOverflow(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetOverflow - bool returns = (self->GetOverflow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetRenderer[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetRenderer[1] = {{ wxLua_wxGridCellAttr_GetRenderer, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellAttr_GetRenderer }}; -// %gc wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const; -static int LUACALL wxLua_wxGridCellAttr_GetRenderer(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 4); - // int row - int row = (int)wxlua_getnumbertype(L, 3); - // wxGrid grid - wxGrid * grid = (wxGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGrid); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetRenderer - wxGridCellRenderer* returns = (wxGridCellRenderer*)self->GetRenderer(grid, row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellRenderer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetSize[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetSize[1] = {{ wxLua_wxGridCellAttr_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetSize }}; -// %override wxLua_wxGridCellAttr_GetSize -// void GetSize(int *num_rows, int *num_cols) const -static int LUACALL wxLua_wxGridCellAttr_GetSize(lua_State *L) -{ - int num_rows; - int num_cols; - - // get this - wxGridCellAttr *self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetSize - self->GetSize(&num_rows, &num_cols); - - lua_pushinteger(L, num_rows); - lua_pushinteger(L, num_cols); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_GetTextColour[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_GetTextColour[1] = {{ wxLua_wxGridCellAttr_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_GetTextColour }}; -// wxColour GetTextColour() const; -static int LUACALL wxLua_wxGridCellAttr_GetTextColour(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call GetTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasAlignment[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasAlignment[1] = {{ wxLua_wxGridCellAttr_HasAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasAlignment }}; -// bool HasAlignment() const; -static int LUACALL wxLua_wxGridCellAttr_HasAlignment(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasAlignment - bool returns = (self->HasAlignment()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasBackgroundColour[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasBackgroundColour[1] = {{ wxLua_wxGridCellAttr_HasBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasBackgroundColour }}; -// bool HasBackgroundColour() const; -static int LUACALL wxLua_wxGridCellAttr_HasBackgroundColour(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasBackgroundColour - bool returns = (self->HasBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasEditor[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasEditor[1] = {{ wxLua_wxGridCellAttr_HasEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasEditor }}; -// bool HasEditor() const; -static int LUACALL wxLua_wxGridCellAttr_HasEditor(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasEditor - bool returns = (self->HasEditor()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasFont[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasFont[1] = {{ wxLua_wxGridCellAttr_HasFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasFont }}; -// bool HasFont() const; -static int LUACALL wxLua_wxGridCellAttr_HasFont(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasFont - bool returns = (self->HasFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasOverflowMode[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasOverflowMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasOverflowMode[1] = {{ wxLua_wxGridCellAttr_HasOverflowMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasOverflowMode }}; -// bool HasOverflowMode() const; -static int LUACALL wxLua_wxGridCellAttr_HasOverflowMode(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasOverflowMode - bool returns = (self->HasOverflowMode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasReadWriteMode[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasReadWriteMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasReadWriteMode[1] = {{ wxLua_wxGridCellAttr_HasReadWriteMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasReadWriteMode }}; -// bool HasReadWriteMode() const; -static int LUACALL wxLua_wxGridCellAttr_HasReadWriteMode(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasReadWriteMode - bool returns = (self->HasReadWriteMode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasRenderer[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasRenderer[1] = {{ wxLua_wxGridCellAttr_HasRenderer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasRenderer }}; -// bool HasRenderer() const; -static int LUACALL wxLua_wxGridCellAttr_HasRenderer(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasRenderer - bool returns = (self->HasRenderer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasSize[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasSize[1] = {{ wxLua_wxGridCellAttr_HasSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasSize }}; -// bool HasSize() const; -static int LUACALL wxLua_wxGridCellAttr_HasSize(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasSize - bool returns = (self->HasSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_HasTextColour[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_HasTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_HasTextColour[1] = {{ wxLua_wxGridCellAttr_HasTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_HasTextColour }}; -// bool HasTextColour() const; -static int LUACALL wxLua_wxGridCellAttr_HasTextColour(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call HasTextColour - bool returns = (self->HasTextColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_IncRef[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_IncRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_IncRef[1] = {{ wxLua_wxGridCellAttr_IncRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_IncRef }}; -// void IncRef(); -static int LUACALL wxLua_wxGridCellAttr_IncRef(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call IncRef - self->IncRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_IsReadOnly[] = { &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_IsReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_IsReadOnly[1] = {{ wxLua_wxGridCellAttr_IsReadOnly, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_IsReadOnly }}; -// bool IsReadOnly() const; -static int LUACALL wxLua_wxGridCellAttr_IsReadOnly(lua_State *L) -{ - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call IsReadOnly - bool returns = (self->IsReadOnly()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_MergeWith[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_MergeWith(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_MergeWith[1] = {{ wxLua_wxGridCellAttr_MergeWith, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_MergeWith }}; -// void MergeWith(wxGridCellAttr *mergefrom); -static int LUACALL wxLua_wxGridCellAttr_MergeWith(lua_State *L) -{ - // wxGridCellAttr mergefrom - wxGridCellAttr * mergefrom = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call MergeWith - self->MergeWith(mergefrom); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetAlignment[] = { &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetAlignment[1] = {{ wxLua_wxGridCellAttr_SetAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellAttr_SetAlignment }}; -// void SetAlignment(int hAlign, int vAlign); -static int LUACALL wxLua_wxGridCellAttr_SetAlignment(lua_State *L) -{ - // int vAlign - int vAlign = (int)wxlua_getnumbertype(L, 3); - // int hAlign - int hAlign = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetAlignment - self->SetAlignment(hAlign, vAlign); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetBackgroundColour[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetBackgroundColour[1] = {{ wxLua_wxGridCellAttr_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colBack); -static int LUACALL wxLua_wxGridCellAttr_SetBackgroundColour(lua_State *L) -{ - // const wxColour colBack - const wxColour * colBack = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetBackgroundColour - self->SetBackgroundColour(*colBack); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetDefAttr[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetDefAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetDefAttr[1] = {{ wxLua_wxGridCellAttr_SetDefAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetDefAttr }}; -// void SetDefAttr(wxGridCellAttr* defAttr); -static int LUACALL wxLua_wxGridCellAttr_SetDefAttr(lua_State *L) -{ - // wxGridCellAttr defAttr - wxGridCellAttr * defAttr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetDefAttr - self->SetDefAttr(defAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetEditor[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetEditor[1] = {{ wxLua_wxGridCellAttr_SetEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetEditor }}; -// void SetEditor(%IncRef wxGridCellEditor* editor); -static int LUACALL wxLua_wxGridCellAttr_SetEditor(lua_State *L) -{ - // wxGridCellEditor editor - wxGridCellEditor * editor = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellEditor); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - editor->IncRef(); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetEditor - self->SetEditor(editor); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetFont[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetFont[1] = {{ wxLua_wxGridCellAttr_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxGridCellAttr_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetKind[] = { &wxluatype_wxGridCellAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetKind[1] = {{ wxLua_wxGridCellAttr_SetKind, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetKind }}; -// void SetKind(wxGridCellAttr::wxAttrKind kind); -static int LUACALL wxLua_wxGridCellAttr_SetKind(lua_State *L) -{ - // wxGridCellAttr::wxAttrKind kind - wxGridCellAttr::wxAttrKind kind = (wxGridCellAttr::wxAttrKind)wxlua_getenumtype(L, 2); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetKind - self->SetKind(kind); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetOverflow[] = { &wxluatype_wxGridCellAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetOverflow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetOverflow[1] = {{ wxLua_wxGridCellAttr_SetOverflow, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetOverflow }}; -// void SetOverflow(bool allow = true); -static int LUACALL wxLua_wxGridCellAttr_SetOverflow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool allow = true - bool allow = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetOverflow - self->SetOverflow(allow); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetReadOnly[] = { &wxluatype_wxGridCellAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetReadOnly[1] = {{ wxLua_wxGridCellAttr_SetReadOnly, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetReadOnly }}; -// void SetReadOnly(bool isReadOnly = true); -static int LUACALL wxLua_wxGridCellAttr_SetReadOnly(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isReadOnly = true - bool isReadOnly = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetReadOnly - self->SetReadOnly(isReadOnly); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetRenderer[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxGridCellRenderer, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetRenderer[1] = {{ wxLua_wxGridCellAttr_SetRenderer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetRenderer }}; -// void SetRenderer(%IncRef wxGridCellRenderer *renderer); -static int LUACALL wxLua_wxGridCellAttr_SetRenderer(lua_State *L) -{ - // wxGridCellRenderer renderer - wxGridCellRenderer * renderer = (wxGridCellRenderer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellRenderer); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - renderer->IncRef(); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetRenderer - self->SetRenderer(renderer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetSize[] = { &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetSize[1] = {{ wxLua_wxGridCellAttr_SetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellAttr_SetSize }}; -// void SetSize(int num_rows, int num_cols); -static int LUACALL wxLua_wxGridCellAttr_SetSize(lua_State *L) -{ - // int num_cols - int num_cols = (int)wxlua_getnumbertype(L, 3); - // int num_rows - int num_rows = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetSize - self->SetSize(num_rows, num_cols); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_SetTextColour[] = { &wxluatype_wxGridCellAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGridCellAttr_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_SetTextColour[1] = {{ wxLua_wxGridCellAttr_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellAttr_SetTextColour }}; -// void SetTextColour(const wxColour& colText); -static int LUACALL wxLua_wxGridCellAttr_SetTextColour(lua_State *L) -{ - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGridCellAttr * self = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttr); - // call SetTextColour - self->SetTextColour(*colText); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_delete[] = { &wxluatype_wxGridCellAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttr_delete }}; - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttr_constructor1[] = { &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxFont, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttr_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_constructor1[1] = {{ wxLua_wxGridCellAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxGridCellAttr_constructor1 }}; -// wxGridCellAttr(const wxColour& colText, const wxColour& colBack, const wxFont& font, int hAlign, int vAlign); -static int LUACALL wxLua_wxGridCellAttr_constructor1(lua_State *L) -{ - // int vAlign - int vAlign = (int)wxlua_getnumbertype(L, 5); - // int hAlign - int hAlign = (int)wxlua_getnumbertype(L, 4); - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont); - // const wxColour colBack - const wxColour * colBack = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxGridCellAttr* returns = new wxGridCellAttr(*colText, *colBack, *font, hAlign, vAlign); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttr); - - return 1; -} - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static int LUACALL wxLua_wxGridCellAttr_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_constructor[1] = {{ wxLua_wxGridCellAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellAttr(); -static int LUACALL wxLua_wxGridCellAttr_constructor(lua_State *L) -{ - // call constructor - wxGridCellAttr* returns = new wxGridCellAttr(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttr); - - return 1; -} - - - - -#if (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(wxLUA_USE_wxGrid && wxUSE_GRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttr_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGridCellAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxGridCellAttr_constructor1 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGridCellAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGridCellAttr_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGridCellAttr_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(wxLUA_USE_wxGrid && wxUSE_GRID) - -// %override wxLua_wxGridCellAttr_delete_function -// delete is private in wxGridCellWorker, DecRef() it in derived classes -void wxLua_wxGridCellAttr_delete_function(void** p) -{ - wxLua_wxRefCounter_DecRef_delete_function(p); -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellAttr_methods[] = { - { "DecRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_DecRef, 1, NULL }, - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetEditor, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetKind, 1, NULL }, - { "GetOverflow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetOverflow, 1, NULL }, - { "GetRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetRenderer, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetSize, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "HasAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasAlignment, 1, NULL }, - { "HasBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasBackgroundColour, 1, NULL }, - { "HasEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasEditor, 1, NULL }, - { "HasFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasFont, 1, NULL }, - { "HasOverflowMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasOverflowMode, 1, NULL }, - { "HasReadWriteMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasReadWriteMode, 1, NULL }, - { "HasRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasRenderer, 1, NULL }, - { "HasSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasSize, 1, NULL }, - { "HasTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_HasTextColour, 1, NULL }, - { "IncRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_IncRef, 1, NULL }, - { "IsReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_IsReadOnly, 1, NULL }, - { "MergeWith", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_MergeWith, 1, NULL }, - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetDefAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetDefAttr, 1, NULL }, - { "SetEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetEditor, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetKind, 1, NULL }, - { "SetOverflow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetOverflow, 1, NULL }, - { "SetReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetReadOnly, 1, NULL }, - { "SetRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetRenderer, 1, NULL }, - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetSize, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttr_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellAttr_delete, 1, NULL }, - -#if (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(wxLUA_USE_wxGrid && wxUSE_GRID) - { "wxGridCellAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellAttr_constructor_overload, s_wxluafunc_wxLua_wxGridCellAttr_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||(wxLUA_USE_wxGrid && wxUSE_GRID) - - { 0, 0, 0, 0 }, -}; - -int wxGridCellAttr_methodCount = sizeof(wxGridCellAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxGridCellAttr_enums[] = { -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "Any", wxGridCellAttr::Any }, - { "Cell", wxGridCellAttr::Cell }, - { "Col", wxGridCellAttr::Col }, - { "Default", wxGridCellAttr::Default }, - { "Merged", wxGridCellAttr::Merged }, - { "Row", wxGridCellAttr::Row }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - { NULL, 0, }, -}; -int wxGridCellAttr_enumCount = sizeof(wxGridCellAttr_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellAttrProvider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellAttrProvider' -int wxluatype_wxGridCellAttrProvider = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_GetAttr[] = { &wxluatype_wxGridCellAttrProvider, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridCellAttrProvider_GetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_GetAttr[1] = {{ wxLua_wxGridCellAttrProvider_GetAttr, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_GetAttr }}; -// %gc wxGridCellAttr *GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind) const; -static int LUACALL wxLua_wxGridCellAttrProvider_GetAttr(lua_State *L) -{ - // wxGridCellAttr::wxAttrKind kind - wxGridCellAttr::wxAttrKind kind = (wxGridCellAttr::wxAttrKind)wxlua_getenumtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellAttrProvider * self = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttrProvider); - // call GetAttr - wxGridCellAttr* returns = (wxGridCellAttr*)self->GetAttr(row, col, kind); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_SetAttr[] = { &wxluatype_wxGridCellAttrProvider, &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttrProvider_SetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_SetAttr[1] = {{ wxLua_wxGridCellAttrProvider_SetAttr, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_SetAttr }}; -// void SetAttr(%IncRef wxGridCellAttr *attr, int row, int col); -static int LUACALL wxLua_wxGridCellAttrProvider_SetAttr(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 4); - // int row - int row = (int)wxlua_getnumbertype(L, 3); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGridCellAttrProvider * self = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttrProvider); - // call SetAttr - self->SetAttr(attr, row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_SetColAttr[] = { &wxluatype_wxGridCellAttrProvider, &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttrProvider_SetColAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_SetColAttr[1] = {{ wxLua_wxGridCellAttrProvider_SetColAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_SetColAttr }}; -// void SetColAttr(%IncRef wxGridCellAttr *attr, int col); -static int LUACALL wxLua_wxGridCellAttrProvider_SetColAttr(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGridCellAttrProvider * self = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttrProvider); - // call SetColAttr - self->SetColAttr(attr, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_SetRowAttr[] = { &wxluatype_wxGridCellAttrProvider, &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttrProvider_SetRowAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_SetRowAttr[1] = {{ wxLua_wxGridCellAttrProvider_SetRowAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_SetRowAttr }}; -// void SetRowAttr(%IncRef wxGridCellAttr *attr, int row); -static int LUACALL wxLua_wxGridCellAttrProvider_SetRowAttr(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 3); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGridCellAttrProvider * self = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttrProvider); - // call SetRowAttr - self->SetRowAttr(attr, row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_UpdateAttrCols[] = { &wxluatype_wxGridCellAttrProvider, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttrProvider_UpdateAttrCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_UpdateAttrCols[1] = {{ wxLua_wxGridCellAttrProvider_UpdateAttrCols, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_UpdateAttrCols }}; -// void UpdateAttrCols(size_t pos, int numCols); -static int LUACALL wxLua_wxGridCellAttrProvider_UpdateAttrCols(lua_State *L) -{ - // int numCols - int numCols = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridCellAttrProvider * self = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttrProvider); - // call UpdateAttrCols - self->UpdateAttrCols(pos, numCols); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_UpdateAttrRows[] = { &wxluatype_wxGridCellAttrProvider, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellAttrProvider_UpdateAttrRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_UpdateAttrRows[1] = {{ wxLua_wxGridCellAttrProvider_UpdateAttrRows, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_UpdateAttrRows }}; -// void UpdateAttrRows(size_t pos, int numRows); -static int LUACALL wxLua_wxGridCellAttrProvider_UpdateAttrRows(lua_State *L) -{ - // int numRows - int numRows = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridCellAttrProvider * self = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellAttrProvider); - // call UpdateAttrRows - self->UpdateAttrRows(pos, numRows); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellAttrProvider_delete[] = { &wxluatype_wxGridCellAttrProvider, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellAttrProvider_delete }}; - -static int LUACALL wxLua_wxGridCellAttrProvider_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellAttrProvider_constructor[1] = {{ wxLua_wxGridCellAttrProvider_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellAttrProvider(); -static int LUACALL wxLua_wxGridCellAttrProvider_constructor(lua_State *L) -{ - // call constructor - wxGridCellAttrProvider* returns = new wxGridCellAttrProvider(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAttrProvider); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttrProvider); - - return 1; -} - - - - -void wxLua_wxGridCellAttrProvider_delete_function(void** p) -{ - wxGridCellAttrProvider* o = (wxGridCellAttrProvider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellAttrProvider_methods[] = { - { "GetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttrProvider_GetAttr, 1, NULL }, - { "SetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttrProvider_SetAttr, 1, NULL }, - { "SetColAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttrProvider_SetColAttr, 1, NULL }, - { "SetRowAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttrProvider_SetRowAttr, 1, NULL }, - { "UpdateAttrCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttrProvider_UpdateAttrCols, 1, NULL }, - { "UpdateAttrRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellAttrProvider_UpdateAttrRows, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellAttrProvider_delete, 1, NULL }, - { "wxGridCellAttrProvider", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellAttrProvider_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellAttrProvider_methodCount = sizeof(wxGridCellAttrProvider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridTableBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridTableBase' -int wxluatype_wxGridTableBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_AppendCols[] = { &wxluatype_wxGridTableBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_AppendCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_AppendCols[1] = {{ wxLua_wxGridTableBase_AppendCols, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGridTableBase_AppendCols }}; -// virtual bool AppendCols(size_t numCols = 1); -static int LUACALL wxLua_wxGridTableBase_AppendCols(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t numCols = 1 - size_t numCols = (argCount >= 2 ? (size_t)wxlua_getuintegertype(L, 2) : 1); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call AppendCols - bool returns = (self->AppendCols(numCols)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_AppendRows[] = { &wxluatype_wxGridTableBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_AppendRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_AppendRows[1] = {{ wxLua_wxGridTableBase_AppendRows, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGridTableBase_AppendRows }}; -// virtual bool AppendRows(size_t numRows = 1); -static int LUACALL wxLua_wxGridTableBase_AppendRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t numRows = 1 - size_t numRows = (argCount >= 2 ? (size_t)wxlua_getuintegertype(L, 2) : 1); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call AppendRows - bool returns = (self->AppendRows(numRows)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_CanGetValueAs[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridTableBase_CanGetValueAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_CanGetValueAs[1] = {{ wxLua_wxGridTableBase_CanGetValueAs, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_CanGetValueAs }}; -// virtual bool CanGetValueAs(int row, int col, const wxString& typeName); -static int LUACALL wxLua_wxGridTableBase_CanGetValueAs(lua_State *L) -{ - // const wxString typeName - const wxString typeName = wxlua_getwxStringtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call CanGetValueAs - bool returns = (self->CanGetValueAs(row, col, typeName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_CanHaveAttributes[] = { &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableBase_CanHaveAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_CanHaveAttributes[1] = {{ wxLua_wxGridTableBase_CanHaveAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableBase_CanHaveAttributes }}; -// virtual bool CanHaveAttributes(); -static int LUACALL wxLua_wxGridTableBase_CanHaveAttributes(lua_State *L) -{ - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call CanHaveAttributes - bool returns = (self->CanHaveAttributes()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_CanSetValueAs[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridTableBase_CanSetValueAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_CanSetValueAs[1] = {{ wxLua_wxGridTableBase_CanSetValueAs, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_CanSetValueAs }}; -// virtual bool CanSetValueAs(int row, int col, const wxString& typeName); -static int LUACALL wxLua_wxGridTableBase_CanSetValueAs(lua_State *L) -{ - // const wxString typeName - const wxString typeName = wxlua_getwxStringtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call CanSetValueAs - bool returns = (self->CanSetValueAs(row, col, typeName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_Clear[] = { &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableBase_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_Clear[1] = {{ wxLua_wxGridTableBase_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableBase_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxGridTableBase_Clear(lua_State *L) -{ - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_DeleteCols[] = { &wxluatype_wxGridTableBase, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_DeleteCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_DeleteCols[1] = {{ wxLua_wxGridTableBase_DeleteCols, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGridTableBase_DeleteCols }}; -// virtual bool DeleteCols(size_t pos = 0, size_t numCols = 1); -static int LUACALL wxLua_wxGridTableBase_DeleteCols(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t numCols = 1 - size_t numCols = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t pos = 0 - size_t pos = (argCount >= 2 ? (size_t)wxlua_getuintegertype(L, 2) : 0); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call DeleteCols - bool returns = (self->DeleteCols(pos, numCols)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_DeleteRows[] = { &wxluatype_wxGridTableBase, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_DeleteRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_DeleteRows[1] = {{ wxLua_wxGridTableBase_DeleteRows, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGridTableBase_DeleteRows }}; -// virtual bool DeleteRows(size_t pos = 0, size_t numRows = 1); -static int LUACALL wxLua_wxGridTableBase_DeleteRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t numRows = 1 - size_t numRows = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t pos = 0 - size_t pos = (argCount >= 2 ? (size_t)wxlua_getuintegertype(L, 2) : 0); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call DeleteRows - bool returns = (self->DeleteRows(pos, numRows)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetAttr[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetAttr[1] = {{ wxLua_wxGridTableBase_GetAttr, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_GetAttr }}; -// virtual %gc wxGridCellAttr* GetAttr(int row, int col, wxGridCellAttr::wxAttrKind kind); -static int LUACALL wxLua_wxGridTableBase_GetAttr(lua_State *L) -{ - // wxGridCellAttr::wxAttrKind kind - wxGridCellAttr::wxAttrKind kind = (wxGridCellAttr::wxAttrKind)wxlua_getenumtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetAttr - wxGridCellAttr* returns = (wxGridCellAttr*)self->GetAttr(row, col, kind); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetAttrProvider[] = { &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetAttrProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetAttrProvider[1] = {{ wxLua_wxGridTableBase_GetAttrProvider, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableBase_GetAttrProvider }}; -// wxGridCellAttrProvider *GetAttrProvider() const; -static int LUACALL wxLua_wxGridTableBase_GetAttrProvider(lua_State *L) -{ - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetAttrProvider - wxGridCellAttrProvider* returns = (wxGridCellAttrProvider*)self->GetAttrProvider(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttrProvider); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetColLabelValue[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetColLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetColLabelValue[1] = {{ wxLua_wxGridTableBase_GetColLabelValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableBase_GetColLabelValue }}; -// virtual wxString GetColLabelValue(int col); -static int LUACALL wxLua_wxGridTableBase_GetColLabelValue(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetColLabelValue - wxString returns = (self->GetColLabelValue(col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetNumberCols[] = { &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetNumberCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetNumberCols[1] = {{ wxLua_wxGridTableBase_GetNumberCols, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableBase_GetNumberCols }}; -// virtual int GetNumberCols(); -static int LUACALL wxLua_wxGridTableBase_GetNumberCols(lua_State *L) -{ - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetNumberCols - int returns = (self->GetNumberCols()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetNumberRows[] = { &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetNumberRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetNumberRows[1] = {{ wxLua_wxGridTableBase_GetNumberRows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableBase_GetNumberRows }}; -// virtual int GetNumberRows(); -static int LUACALL wxLua_wxGridTableBase_GetNumberRows(lua_State *L) -{ - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetNumberRows - int returns = (self->GetNumberRows()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetRowLabelValue[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetRowLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetRowLabelValue[1] = {{ wxLua_wxGridTableBase_GetRowLabelValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableBase_GetRowLabelValue }}; -// virtual wxString GetRowLabelValue(int row); -static int LUACALL wxLua_wxGridTableBase_GetRowLabelValue(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetRowLabelValue - wxString returns = (self->GetRowLabelValue(row)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetTypeName[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetTypeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetTypeName[1] = {{ wxLua_wxGridTableBase_GetTypeName, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_GetTypeName }}; -// virtual wxString GetTypeName(int row, int col); -static int LUACALL wxLua_wxGridTableBase_GetTypeName(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetTypeName - wxString returns = (self->GetTypeName(row, col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetValue[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetValue[1] = {{ wxLua_wxGridTableBase_GetValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_GetValue }}; -// virtual wxString GetValue(int row, int col); -static int LUACALL wxLua_wxGridTableBase_GetValue(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetValue - wxString returns = (self->GetValue(row, col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetValueAsBool[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetValueAsBool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetValueAsBool[1] = {{ wxLua_wxGridTableBase_GetValueAsBool, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_GetValueAsBool }}; -// virtual bool GetValueAsBool(int row, int col); -static int LUACALL wxLua_wxGridTableBase_GetValueAsBool(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetValueAsBool - bool returns = (self->GetValueAsBool(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetValueAsDouble[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetValueAsDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetValueAsDouble[1] = {{ wxLua_wxGridTableBase_GetValueAsDouble, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_GetValueAsDouble }}; -// virtual double GetValueAsDouble(int row, int col); -static int LUACALL wxLua_wxGridTableBase_GetValueAsDouble(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetValueAsDouble - double returns = (self->GetValueAsDouble(row, col)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetValueAsLong[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetValueAsLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetValueAsLong[1] = {{ wxLua_wxGridTableBase_GetValueAsLong, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_GetValueAsLong }}; -// virtual long GetValueAsLong(int row, int col); -static int LUACALL wxLua_wxGridTableBase_GetValueAsLong(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetValueAsLong - long returns = (self->GetValueAsLong(row, col)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_GetView[] = { &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableBase_GetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_GetView[1] = {{ wxLua_wxGridTableBase_GetView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableBase_GetView }}; -// virtual wxGrid * GetView() const; -static int LUACALL wxLua_wxGridTableBase_GetView(lua_State *L) -{ - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call GetView - wxGrid* returns = (wxGrid*)self->GetView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGrid); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_InsertCols[] = { &wxluatype_wxGridTableBase, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_InsertCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_InsertCols[1] = {{ wxLua_wxGridTableBase_InsertCols, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGridTableBase_InsertCols }}; -// virtual bool InsertCols(size_t pos = 0, size_t numCols = 1); -static int LUACALL wxLua_wxGridTableBase_InsertCols(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t numCols = 1 - size_t numCols = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t pos = 0 - size_t pos = (argCount >= 2 ? (size_t)wxlua_getuintegertype(L, 2) : 0); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call InsertCols - bool returns = (self->InsertCols(pos, numCols)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_InsertRows[] = { &wxluatype_wxGridTableBase, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridTableBase_InsertRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_InsertRows[1] = {{ wxLua_wxGridTableBase_InsertRows, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGridTableBase_InsertRows }}; -// virtual bool InsertRows(size_t pos = 0, size_t numRows = 1); -static int LUACALL wxLua_wxGridTableBase_InsertRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t numRows = 1 - size_t numRows = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t pos = 0 - size_t pos = (argCount >= 2 ? (size_t)wxlua_getuintegertype(L, 2) : 0); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call InsertRows - bool returns = (self->InsertRows(pos, numRows)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_IsEmptyCell[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_IsEmptyCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_IsEmptyCell[1] = {{ wxLua_wxGridTableBase_IsEmptyCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_IsEmptyCell }}; -// virtual bool IsEmptyCell(int row, int col); -static int LUACALL wxLua_wxGridTableBase_IsEmptyCell(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call IsEmptyCell - bool returns = (self->IsEmptyCell(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetAttr[] = { &wxluatype_wxGridTableBase, &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetAttr[1] = {{ wxLua_wxGridTableBase_SetAttr, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_SetAttr }}; -// void SetAttr(%IncRef wxGridCellAttr* attr, int row, int col); -static int LUACALL wxLua_wxGridTableBase_SetAttr(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 4); - // int row - int row = (int)wxlua_getnumbertype(L, 3); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetAttr - self->SetAttr(attr, row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetAttrProvider[] = { &wxluatype_wxGridTableBase, &wxluatype_wxGridCellAttrProvider, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetAttrProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetAttrProvider[1] = {{ wxLua_wxGridTableBase_SetAttrProvider, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableBase_SetAttrProvider }}; -// void SetAttrProvider(wxGridCellAttrProvider *attrProvider); -static int LUACALL wxLua_wxGridTableBase_SetAttrProvider(lua_State *L) -{ - // wxGridCellAttrProvider attrProvider - wxGridCellAttrProvider * attrProvider = (wxGridCellAttrProvider *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttrProvider); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetAttrProvider - self->SetAttrProvider(attrProvider); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetColAttr[] = { &wxluatype_wxGridTableBase, &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetColAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetColAttr[1] = {{ wxLua_wxGridTableBase_SetColAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_SetColAttr }}; -// void SetColAttr(%IncRef wxGridCellAttr *attr, int col); -static int LUACALL wxLua_wxGridTableBase_SetColAttr(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetColAttr - self->SetColAttr(attr, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetColLabelValue[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetColLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetColLabelValue[1] = {{ wxLua_wxGridTableBase_SetColLabelValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_SetColLabelValue }}; -// virtual void SetColLabelValue(int col, const wxString& value); -static int LUACALL wxLua_wxGridTableBase_SetColLabelValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetColLabelValue - self->SetColLabelValue(col, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetRowAttr[] = { &wxluatype_wxGridTableBase, &wxluatype_wxGridCellAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetRowAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetRowAttr[1] = {{ wxLua_wxGridTableBase_SetRowAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_SetRowAttr }}; -// void SetRowAttr(%IncRef wxGridCellAttr *attr, int row); -static int LUACALL wxLua_wxGridTableBase_SetRowAttr(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 3); - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellAttr); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetRowAttr - self->SetRowAttr(attr, row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetRowLabelValue[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetRowLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetRowLabelValue[1] = {{ wxLua_wxGridTableBase_SetRowLabelValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridTableBase_SetRowLabelValue }}; -// virtual void SetRowLabelValue(int row, const wxString& value); -static int LUACALL wxLua_wxGridTableBase_SetRowLabelValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetRowLabelValue - self->SetRowLabelValue(row, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetValue[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetValue[1] = {{ wxLua_wxGridTableBase_SetValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_SetValue }}; -// virtual void SetValue(int row, int col, const wxString& value); -static int LUACALL wxLua_wxGridTableBase_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetValue - self->SetValue(row, col, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetValueAsBool[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetValueAsBool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetValueAsBool[1] = {{ wxLua_wxGridTableBase_SetValueAsBool, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_SetValueAsBool }}; -// virtual void SetValueAsBool(int row, int col, bool value); -static int LUACALL wxLua_wxGridTableBase_SetValueAsBool(lua_State *L) -{ - // bool value - bool value = wxlua_getbooleantype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetValueAsBool - self->SetValueAsBool(row, col, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetValueAsDouble[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetValueAsDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetValueAsDouble[1] = {{ wxLua_wxGridTableBase_SetValueAsDouble, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_SetValueAsDouble }}; -// virtual void SetValueAsDouble(int row, int col, double value); -static int LUACALL wxLua_wxGridTableBase_SetValueAsDouble(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetValueAsDouble - self->SetValueAsDouble(row, col, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetValueAsLong[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetValueAsLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetValueAsLong[1] = {{ wxLua_wxGridTableBase_SetValueAsLong, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGridTableBase_SetValueAsLong }}; -// virtual void SetValueAsLong(int row, int col, long value); -static int LUACALL wxLua_wxGridTableBase_SetValueAsLong(lua_State *L) -{ - // long value - long value = (long)wxlua_getnumbertype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetValueAsLong - self->SetValueAsLong(row, col, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableBase_SetView[] = { &wxluatype_wxGridTableBase, &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGridTableBase_SetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableBase_SetView[1] = {{ wxLua_wxGridTableBase_SetView, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableBase_SetView }}; -// virtual void SetView(wxGrid *grid); -static int LUACALL wxLua_wxGridTableBase_SetView(lua_State *L) -{ - // wxGrid grid - wxGrid * grid = (wxGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGrid); - // get this - wxGridTableBase * self = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call SetView - self->SetView(grid); - - return 0; -} - - - - -void wxLua_wxGridTableBase_delete_function(void** p) -{ - wxGridTableBase* o = (wxGridTableBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridTableBase_methods[] = { - { "AppendCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_AppendCols, 1, NULL }, - { "AppendRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_AppendRows, 1, NULL }, - { "CanGetValueAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_CanGetValueAs, 1, NULL }, - { "CanHaveAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_CanHaveAttributes, 1, NULL }, - { "CanSetValueAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_CanSetValueAs, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_Clear, 1, NULL }, - { "DeleteCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_DeleteCols, 1, NULL }, - { "DeleteRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_DeleteRows, 1, NULL }, - { "GetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetAttr, 1, NULL }, - { "GetAttrProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetAttrProvider, 1, NULL }, - { "GetColLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetColLabelValue, 1, NULL }, - { "GetNumberCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetNumberCols, 1, NULL }, - { "GetNumberRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetNumberRows, 1, NULL }, - { "GetRowLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetRowLabelValue, 1, NULL }, - { "GetTypeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetTypeName, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetValue, 1, NULL }, - { "GetValueAsBool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetValueAsBool, 1, NULL }, - { "GetValueAsDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetValueAsDouble, 1, NULL }, - { "GetValueAsLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetValueAsLong, 1, NULL }, - { "GetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_GetView, 1, NULL }, - { "InsertCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_InsertCols, 1, NULL }, - { "InsertRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_InsertRows, 1, NULL }, - { "IsEmptyCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_IsEmptyCell, 1, NULL }, - { "SetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetAttr, 1, NULL }, - { "SetAttrProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetAttrProvider, 1, NULL }, - { "SetColAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetColAttr, 1, NULL }, - { "SetColLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetColLabelValue, 1, NULL }, - { "SetRowAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetRowAttr, 1, NULL }, - { "SetRowLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetRowLabelValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetValue, 1, NULL }, - { "SetValueAsBool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetValueAsBool, 1, NULL }, - { "SetValueAsDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetValueAsDouble, 1, NULL }, - { "SetValueAsLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetValueAsLong, 1, NULL }, - { "SetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableBase_SetView, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridTableBase_methodCount = sizeof(wxGridTableBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxLuaGridTableBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaGridTableBase' -int wxluatype_wxLuaGridTableBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaGridTableBase_delete[] = { &wxluatype_wxLuaGridTableBase, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaGridTableBase_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaGridTableBase_delete }}; - -static int LUACALL wxLua_wxLuaGridTableBase_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaGridTableBase_constructor[1] = {{ wxLua_wxLuaGridTableBase_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxLuaGridTableBase_constructor -// wxLuaGridTableBase() -static int LUACALL wxLua_wxLuaGridTableBase_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // call constructor - wxLuaGridTableBase *returns = new wxLuaGridTableBase(wxlState); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaGridTableBase); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaGridTableBase); - - return 1; -} - - - - - -void wxLua_wxLuaGridTableBase_delete_function(void** p) -{ - wxLuaGridTableBase* o = (wxLuaGridTableBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaGridTableBase_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaGridTableBase_delete, 1, NULL }, - { "wxLuaGridTableBase", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaGridTableBase_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaGridTableBase_methodCount = sizeof(wxLuaGridTableBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridStringTable -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridStringTable' -int wxluatype_wxGridStringTable = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridStringTable_delete[] = { &wxluatype_wxGridStringTable, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridStringTable_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridStringTable_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridStringTable_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridStringTable_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridStringTable_constructor[1] = {{ wxLua_wxGridStringTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridStringTable_constructor }}; -// wxGridStringTable(int numRows=0, int numCols=0); -static int LUACALL wxLua_wxGridStringTable_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int numCols = 0 - int numCols = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int numRows = 0 - int numRows = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxGridStringTable* returns = new wxGridStringTable(numRows, numCols); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridStringTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridStringTable); - - return 1; -} - - - - -void wxLua_wxGridStringTable_delete_function(void** p) -{ - wxGridStringTable* o = (wxGridStringTable*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridStringTable_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridStringTable_delete, 1, NULL }, - { "wxGridStringTable", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridStringTable_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridStringTable_methodCount = sizeof(wxGridStringTable_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridTableMessage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridTableMessage' -int wxluatype_wxGridTableMessage = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_GetCommandInt[] = { &wxluatype_wxGridTableMessage, NULL }; -static int LUACALL wxLua_wxGridTableMessage_GetCommandInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_GetCommandInt[1] = {{ wxLua_wxGridTableMessage_GetCommandInt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableMessage_GetCommandInt }}; -// int GetCommandInt(); -static int LUACALL wxLua_wxGridTableMessage_GetCommandInt(lua_State *L) -{ - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call GetCommandInt - int returns = (self->GetCommandInt()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_GetCommandInt2[] = { &wxluatype_wxGridTableMessage, NULL }; -static int LUACALL wxLua_wxGridTableMessage_GetCommandInt2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_GetCommandInt2[1] = {{ wxLua_wxGridTableMessage_GetCommandInt2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableMessage_GetCommandInt2 }}; -// int GetCommandInt2(); -static int LUACALL wxLua_wxGridTableMessage_GetCommandInt2(lua_State *L) -{ - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call GetCommandInt2 - int returns = (self->GetCommandInt2()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_GetId[] = { &wxluatype_wxGridTableMessage, NULL }; -static int LUACALL wxLua_wxGridTableMessage_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_GetId[1] = {{ wxLua_wxGridTableMessage_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableMessage_GetId }}; -// int GetId(); -static int LUACALL wxLua_wxGridTableMessage_GetId(lua_State *L) -{ - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_GetTableObject[] = { &wxluatype_wxGridTableMessage, NULL }; -static int LUACALL wxLua_wxGridTableMessage_GetTableObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_GetTableObject[1] = {{ wxLua_wxGridTableMessage_GetTableObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridTableMessage_GetTableObject }}; -// wxGridTableBase * GetTableObject() const; -static int LUACALL wxLua_wxGridTableMessage_GetTableObject(lua_State *L) -{ - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call GetTableObject - wxGridTableBase* returns = (wxGridTableBase*)self->GetTableObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridTableBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_SetCommandInt[] = { &wxluatype_wxGridTableMessage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableMessage_SetCommandInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_SetCommandInt[1] = {{ wxLua_wxGridTableMessage_SetCommandInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableMessage_SetCommandInt }}; -// void SetCommandInt(int comInt1); -static int LUACALL wxLua_wxGridTableMessage_SetCommandInt(lua_State *L) -{ - // int comInt1 - int comInt1 = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call SetCommandInt - self->SetCommandInt(comInt1); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_SetCommandInt2[] = { &wxluatype_wxGridTableMessage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableMessage_SetCommandInt2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_SetCommandInt2[1] = {{ wxLua_wxGridTableMessage_SetCommandInt2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableMessage_SetCommandInt2 }}; -// void SetCommandInt2(int comInt2); -static int LUACALL wxLua_wxGridTableMessage_SetCommandInt2(lua_State *L) -{ - // int comInt2 - int comInt2 = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call SetCommandInt2 - self->SetCommandInt2(comInt2); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_SetId[] = { &wxluatype_wxGridTableMessage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableMessage_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_SetId[1] = {{ wxLua_wxGridTableMessage_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableMessage_SetId }}; -// void SetId(int id); -static int LUACALL wxLua_wxGridTableMessage_SetId(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call SetId - self->SetId(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_SetTableObject[] = { &wxluatype_wxGridTableMessage, &wxluatype_wxGridTableBase, NULL }; -static int LUACALL wxLua_wxGridTableMessage_SetTableObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_SetTableObject[1] = {{ wxLua_wxGridTableMessage_SetTableObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridTableMessage_SetTableObject }}; -// void SetTableObject(wxGridTableBase *table); -static int LUACALL wxLua_wxGridTableMessage_SetTableObject(lua_State *L) -{ - // wxGridTableBase table - wxGridTableBase * table = (wxGridTableBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridTableBase); - // get this - wxGridTableMessage * self = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableMessage); - // call SetTableObject - self->SetTableObject(table); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_delete[] = { &wxluatype_wxGridTableMessage, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridTableMessage_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridTableMessage_constructor[] = { &wxluatype_wxGridTableBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridTableMessage_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridTableMessage_constructor[1] = {{ wxLua_wxGridTableMessage_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxGridTableMessage_constructor }}; -// wxGridTableMessage(wxGridTableBase *table, int id, int comInt1 = -1, int comInt2 = -1); -static int LUACALL wxLua_wxGridTableMessage_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int comInt2 = -1 - int comInt2 = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int comInt1 = -1 - int comInt1 = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // wxGridTableBase table - wxGridTableBase * table = (wxGridTableBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridTableBase); - // call constructor - wxGridTableMessage* returns = new wxGridTableMessage(table, id, comInt1, comInt2); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridTableMessage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridTableMessage); - - return 1; -} - - - - -void wxLua_wxGridTableMessage_delete_function(void** p) -{ - wxGridTableMessage* o = (wxGridTableMessage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridTableMessage_methods[] = { - { "GetCommandInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_GetCommandInt, 1, NULL }, - { "GetCommandInt2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_GetCommandInt2, 1, NULL }, - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_GetId, 1, NULL }, - { "GetTableObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_GetTableObject, 1, NULL }, - { "SetCommandInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_SetCommandInt, 1, NULL }, - { "SetCommandInt2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_SetCommandInt2, 1, NULL }, - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_SetId, 1, NULL }, - { "SetTableObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridTableMessage_SetTableObject, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridTableMessage_delete, 1, NULL }, - { "wxGridTableMessage", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridTableMessage_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridTableMessage_methodCount = sizeof(wxGridTableMessage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellCoords -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellCoords' -int wxluatype_wxGridCellCoords = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_GetCol[] = { &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGridCellCoords_GetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_GetCol[1] = {{ wxLua_wxGridCellCoords_GetCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoords_GetCol }}; -// int GetCol() const; -static int LUACALL wxLua_wxGridCellCoords_GetCol(lua_State *L) -{ - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call GetCol - int returns = (self->GetCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_GetRow[] = { &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGridCellCoords_GetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_GetRow[1] = {{ wxLua_wxGridCellCoords_GetRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoords_GetRow }}; -// int GetRow() const; -static int LUACALL wxLua_wxGridCellCoords_GetRow(lua_State *L) -{ - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call GetRow - int returns = (self->GetRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_Set[] = { &wxluatype_wxGridCellCoords, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellCoords_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_Set[1] = {{ wxLua_wxGridCellCoords_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridCellCoords_Set }}; -// void Set(int row, int col); -static int LUACALL wxLua_wxGridCellCoords_Set(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call Set - self->Set(row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_SetCol[] = { &wxluatype_wxGridCellCoords, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellCoords_SetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_SetCol[1] = {{ wxLua_wxGridCellCoords_SetCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoords_SetCol }}; -// void SetCol(int n); -static int LUACALL wxLua_wxGridCellCoords_SetCol(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call SetCol - self->SetCol(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_SetRow[] = { &wxluatype_wxGridCellCoords, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellCoords_SetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_SetRow[1] = {{ wxLua_wxGridCellCoords_SetRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoords_SetRow }}; -// void SetRow(int n); -static int LUACALL wxLua_wxGridCellCoords_SetRow(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call SetRow - self->SetRow(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_delete[] = { &wxluatype_wxGridCellCoords, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoords_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_op_eq[] = { &wxluatype_wxGridCellCoords, &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGridCellCoords_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_op_eq[1] = {{ wxLua_wxGridCellCoords_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoords_op_eq }}; -// bool operator==(const wxGridCellCoords& other) const; -static int LUACALL wxLua_wxGridCellCoords_op_eq(lua_State *L) -{ - // const wxGridCellCoords other - const wxGridCellCoords * other = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellCoords); - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call op_eq - bool returns = ((*self)==(*other)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_op_not[] = { &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGridCellCoords_op_not(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_op_not[1] = {{ wxLua_wxGridCellCoords_op_not, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoords_op_not }}; -// bool operator!() const; -static int LUACALL wxLua_wxGridCellCoords_op_not(lua_State *L) -{ - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call op_not - bool returns = (!(*self)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_op_set[] = { &wxluatype_wxGridCellCoords, &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGridCellCoords_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_op_set[1] = {{ wxLua_wxGridCellCoords_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoords_op_set }}; -// wxGridCellCoords& operator=(const wxGridCellCoords& other); -static int LUACALL wxLua_wxGridCellCoords_op_set(lua_State *L) -{ - // const wxGridCellCoords other - const wxGridCellCoords * other = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellCoords); - // get this - wxGridCellCoords * self = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoords); - // call op_set - (*self)=(*other); - wxGridCellCoords* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoords); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoords_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellCoords_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoords_constructor[1] = {{ wxLua_wxGridCellCoords_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridCellCoords_constructor }}; -// wxGridCellCoords(int r = -1, int c = -1); -static int LUACALL wxLua_wxGridCellCoords_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int c = -1 - int c = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // int r = -1 - int r = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : -1); - // call constructor - wxGridCellCoords* returns = new wxGridCellCoords(r, c); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoords); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoords); - - return 1; -} - - - - -void wxLua_wxGridCellCoords_delete_function(void** p) -{ - wxGridCellCoords* o = (wxGridCellCoords*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellCoords_methods[] = { - { "GetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_GetCol, 1, NULL }, - { "GetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_GetRow, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_Set, 1, NULL }, - { "SetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_SetCol, 1, NULL }, - { "SetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_SetRow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellCoords_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_op_eq, 1, NULL }, - { "op_not", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_op_not, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoords_op_set, 1, NULL }, - { "wxGridCellCoords", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellCoords_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridCellCoords_methodCount = sizeof(wxGridCellCoords_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridCellCoordsArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridCellCoordsArray' -int wxluatype_wxGridCellCoordsArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Add[] = { &wxluatype_wxGridCellCoordsArray, &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_Add[1] = {{ wxLua_wxGridCellCoordsArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Add }}; -// void Add(const wxGridCellCoords& c); -static int LUACALL wxLua_wxGridCellCoordsArray_Add(lua_State *L) -{ - // const wxGridCellCoords c - const wxGridCellCoords * c = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellCoords); - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call Add - self->Add(*c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Alloc[] = { &wxluatype_wxGridCellCoordsArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_Alloc[1] = {{ wxLua_wxGridCellCoordsArray_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Alloc }}; -// void Alloc(size_t count); -static int LUACALL wxLua_wxGridCellCoordsArray_Alloc(lua_State *L) -{ - // size_t count - size_t count = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call Alloc - self->Alloc(count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Clear[] = { &wxluatype_wxGridCellCoordsArray, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_Clear[1] = {{ wxLua_wxGridCellCoordsArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxGridCellCoordsArray_Clear(lua_State *L) -{ - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_GetCount[] = { &wxluatype_wxGridCellCoordsArray, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_GetCount[1] = {{ wxLua_wxGridCellCoordsArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxGridCellCoordsArray_GetCount(lua_State *L) -{ - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Insert[] = { &wxluatype_wxGridCellCoordsArray, &wxluatype_wxGridCellCoords, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_Insert[1] = {{ wxLua_wxGridCellCoordsArray_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Insert }}; -// void Insert(const wxGridCellCoords& c, int n, int copies = 1); -static int LUACALL wxLua_wxGridCellCoordsArray_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int copies = 1 - int copies = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int n - int n = (int)wxlua_getnumbertype(L, 3); - // const wxGridCellCoords c - const wxGridCellCoords * c = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellCoords); - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call Insert - self->Insert(*c, n, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_IsEmpty[] = { &wxluatype_wxGridCellCoordsArray, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_IsEmpty[1] = {{ wxLua_wxGridCellCoordsArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxGridCellCoordsArray_IsEmpty(lua_State *L) -{ - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Item[] = { &wxluatype_wxGridCellCoordsArray, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_Item[1] = {{ wxLua_wxGridCellCoordsArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Item }}; -// wxGridCellCoords Item(int n); -static int LUACALL wxLua_wxGridCellCoordsArray_Item(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call Item - // allocate a new object using the copy constructor - wxGridCellCoords* returns = new wxGridCellCoords(self->Item(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoords); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoords); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_RemoveAt[] = { &wxluatype_wxGridCellCoordsArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_RemoveAt[1] = {{ wxLua_wxGridCellCoordsArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_RemoveAt }}; -// void RemoveAt(size_t index); -static int LUACALL wxLua_wxGridCellCoordsArray_RemoveAt(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call RemoveAt - self->RemoveAt(index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Shrink[] = { &wxluatype_wxGridCellCoordsArray, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_Shrink[1] = {{ wxLua_wxGridCellCoordsArray_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxGridCellCoordsArray_Shrink(lua_State *L) -{ - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_delete[] = { &wxluatype_wxGridCellCoordsArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_op_index[] = { &wxluatype_wxGridCellCoordsArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_op_index[1] = {{ wxLua_wxGridCellCoordsArray_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_op_index }}; -// wxGridCellCoords operator[](size_t nIndex); -static int LUACALL wxLua_wxGridCellCoordsArray_op_index(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridCellCoordsArray * self = (wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call op_index - // allocate a new object using the copy constructor - wxGridCellCoords* returns = new wxGridCellCoords((*self)[(nIndex)]); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoords); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoords); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridCellCoordsArray_constructor1[] = { &wxluatype_wxGridCellCoordsArray, NULL }; -static int LUACALL wxLua_wxGridCellCoordsArray_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor1[1] = {{ wxLua_wxGridCellCoordsArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_constructor1 }}; -// wxGridCellCoordsArray(const wxGridCellCoordsArray& array); -static int LUACALL wxLua_wxGridCellCoordsArray_constructor1(lua_State *L) -{ - // const wxGridCellCoordsArray array - const wxGridCellCoordsArray * array = (const wxGridCellCoordsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridCellCoordsArray); - // call constructor - wxGridCellCoordsArray* returns = new wxGridCellCoordsArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoordsArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoordsArray); - - return 1; -} - -static int LUACALL wxLua_wxGridCellCoordsArray_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor[1] = {{ wxLua_wxGridCellCoordsArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGridCellCoordsArray(); -static int LUACALL wxLua_wxGridCellCoordsArray_constructor(lua_State *L) -{ - // call constructor - wxGridCellCoordsArray* returns = new wxGridCellCoordsArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoordsArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoordsArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor_overload[] = -{ - { wxLua_wxGridCellCoordsArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGridCellCoordsArray_constructor1 }, - { wxLua_wxGridCellCoordsArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) - -void wxLua_wxGridCellCoordsArray_delete_function(void** p) -{ - wxGridCellCoordsArray* o = (wxGridCellCoordsArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridCellCoordsArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_Shrink, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridCellCoordsArray_delete, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridCellCoordsArray_op_index, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) - { "wxGridCellCoordsArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor_overload, s_wxluafunc_wxLua_wxGridCellCoordsArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) - - { 0, 0, 0, 0 }, -}; - -int wxGridCellCoordsArray_methodCount = sizeof(wxGridCellCoordsArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGrid -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGrid' -int wxluatype_wxGrid = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AppendCols[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_AppendCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AppendCols[1] = {{ wxLua_wxGrid_AppendCols, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGrid_AppendCols }}; -// bool AppendCols(int numCols = 1, bool updateLabels=true); -static int LUACALL wxLua_wxGrid_AppendCols(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool updateLabels = true - bool updateLabels = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int numCols = 1 - int numCols = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AppendCols - bool returns = (self->AppendCols(numCols, updateLabels)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AppendRows[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_AppendRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AppendRows[1] = {{ wxLua_wxGrid_AppendRows, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGrid_AppendRows }}; -// bool AppendRows(int numRows = 1, bool updateLabels=true); -static int LUACALL wxLua_wxGrid_AppendRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool updateLabels = true - bool updateLabels = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int numRows = 1 - int numRows = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AppendRows - bool returns = (self->AppendRows(numRows, updateLabels)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_AutoSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSize[1] = {{ wxLua_wxGrid_AutoSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_AutoSize }}; -// void AutoSize(); -static int LUACALL wxLua_wxGrid_AutoSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSize - self->AutoSize(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSizeColLabelSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_AutoSizeColLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSizeColLabelSize[1] = {{ wxLua_wxGrid_AutoSizeColLabelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_AutoSizeColLabelSize }}; -// void AutoSizeColLabelSize(int col); -static int LUACALL wxLua_wxGrid_AutoSizeColLabelSize(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSizeColLabelSize - self->AutoSizeColLabelSize(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSizeColumn[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_AutoSizeColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSizeColumn[1] = {{ wxLua_wxGrid_AutoSizeColumn, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGrid_AutoSizeColumn }}; -// void AutoSizeColumn(int col, bool setAsMin = true); -static int LUACALL wxLua_wxGrid_AutoSizeColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool setAsMin = true - bool setAsMin = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSizeColumn - self->AutoSizeColumn(col, setAsMin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSizeColumns[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_AutoSizeColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSizeColumns[1] = {{ wxLua_wxGrid_AutoSizeColumns, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_AutoSizeColumns }}; -// void AutoSizeColumns(bool setAsMin = true); -static int LUACALL wxLua_wxGrid_AutoSizeColumns(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool setAsMin = true - bool setAsMin = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSizeColumns - self->AutoSizeColumns(setAsMin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSizeRow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_AutoSizeRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSizeRow[1] = {{ wxLua_wxGrid_AutoSizeRow, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGrid_AutoSizeRow }}; -// void AutoSizeRow(int row, bool setAsMin = true); -static int LUACALL wxLua_wxGrid_AutoSizeRow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool setAsMin = true - bool setAsMin = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSizeRow - self->AutoSizeRow(row, setAsMin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSizeRowLabelSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_AutoSizeRowLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSizeRowLabelSize[1] = {{ wxLua_wxGrid_AutoSizeRowLabelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_AutoSizeRowLabelSize }}; -// void AutoSizeRowLabelSize(int row); -static int LUACALL wxLua_wxGrid_AutoSizeRowLabelSize(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSizeRowLabelSize - self->AutoSizeRowLabelSize(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_AutoSizeRows[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_AutoSizeRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_AutoSizeRows[1] = {{ wxLua_wxGrid_AutoSizeRows, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_AutoSizeRows }}; -// void AutoSizeRows(bool setAsMin = true); -static int LUACALL wxLua_wxGrid_AutoSizeRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool setAsMin = true - bool setAsMin = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call AutoSizeRows - self->AutoSizeRows(setAsMin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_BeginBatch[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_BeginBatch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_BeginBatch[1] = {{ wxLua_wxGrid_BeginBatch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_BeginBatch }}; -// void BeginBatch(); -static int LUACALL wxLua_wxGrid_BeginBatch(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call BeginBatch - self->BeginBatch(); - - return 0; -} - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_BlockToDeviceRect[] = { &wxluatype_wxGrid, &wxluatype_wxGridCellCoords, &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGrid_BlockToDeviceRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_BlockToDeviceRect[1] = {{ wxLua_wxGrid_BlockToDeviceRect, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_BlockToDeviceRect }}; -// wxRect BlockToDeviceRect(const wxGridCellCoords& topLeft, const wxGridCellCoords& bottomRight); -static int LUACALL wxLua_wxGrid_BlockToDeviceRect(lua_State *L) -{ - // const wxGridCellCoords bottomRight - const wxGridCellCoords * bottomRight = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellCoords); - // const wxGridCellCoords topLeft - const wxGridCellCoords * topLeft = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellCoords); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call BlockToDeviceRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->BlockToDeviceRect(*topLeft, *bottomRight)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanDragCell[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_CanDragCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragCell[1] = {{ wxLua_wxGrid_CanDragCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanDragCell }}; -// bool CanDragCell(); -static int LUACALL wxLua_wxGrid_CanDragCell(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanDragCell - bool returns = (self->CanDragCell()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanDragColSize1[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_CanDragColSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragColSize1[1] = {{ wxLua_wxGrid_CanDragColSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_CanDragColSize1 }}; -// bool CanDragColSize(int col); -static int LUACALL wxLua_wxGrid_CanDragColSize1(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanDragColSize - bool returns = (self->CanDragColSize(col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanDragColSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_CanDragColSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragColSize[1] = {{ wxLua_wxGrid_CanDragColSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanDragColSize }}; -// bool CanDragColSize(); -static int LUACALL wxLua_wxGrid_CanDragColSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanDragColSize - bool returns = (self->CanDragColSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanDragGridSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_CanDragGridSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragGridSize[1] = {{ wxLua_wxGrid_CanDragGridSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanDragGridSize }}; -// bool CanDragGridSize(); -static int LUACALL wxLua_wxGrid_CanDragGridSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanDragGridSize - bool returns = (self->CanDragGridSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanDragRowSize1[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_CanDragRowSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragRowSize1[1] = {{ wxLua_wxGrid_CanDragRowSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_CanDragRowSize1 }}; -// bool CanDragRowSize(int row); -static int LUACALL wxLua_wxGrid_CanDragRowSize1(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanDragRowSize - bool returns = (self->CanDragRowSize(row)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanDragRowSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_CanDragRowSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragRowSize[1] = {{ wxLua_wxGrid_CanDragRowSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanDragRowSize }}; -// bool CanDragRowSize(); -static int LUACALL wxLua_wxGrid_CanDragRowSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanDragRowSize - bool returns = (self->CanDragRowSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CanEnableCellControl[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_CanEnableCellControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanEnableCellControl[1] = {{ wxLua_wxGrid_CanEnableCellControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanEnableCellControl }}; -// bool CanEnableCellControl() const; -static int LUACALL wxLua_wxGrid_CanEnableCellControl(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CanEnableCellControl - bool returns = (self->CanEnableCellControl()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CellToRect[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_CellToRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CellToRect[1] = {{ wxLua_wxGrid_CellToRect, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_CellToRect }}; -// wxRect CellToRect(int row, int col); -static int LUACALL wxLua_wxGrid_CellToRect(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CellToRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->CellToRect(row, col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_ClearGrid[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_ClearGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_ClearGrid[1] = {{ wxLua_wxGrid_ClearGrid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_ClearGrid }}; -// void ClearGrid(); -static int LUACALL wxLua_wxGrid_ClearGrid(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call ClearGrid - self->ClearGrid(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_ClearSelection[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_ClearSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_ClearSelection[1] = {{ wxLua_wxGrid_ClearSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_ClearSelection }}; -// void ClearSelection(); -static int LUACALL wxLua_wxGrid_ClearSelection(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call ClearSelection - self->ClearSelection(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_CreateGrid[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGrid_CreateGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CreateGrid[1] = {{ wxLua_wxGrid_CreateGrid, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGrid_CreateGrid }}; -// bool CreateGrid(int numRows, int numCols, wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells); -static int LUACALL wxLua_wxGrid_CreateGrid(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells - wxGrid::wxGridSelectionModes selmode = (argCount >= 4 ? (wxGrid::wxGridSelectionModes)wxlua_getenumtype(L, 4) : wxGrid::wxGridSelectCells); - // int numCols - int numCols = (int)wxlua_getnumbertype(L, 3); - // int numRows - int numRows = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call CreateGrid - bool returns = (self->CreateGrid(numRows, numCols, selmode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DeleteCols[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_DeleteCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DeleteCols[1] = {{ wxLua_wxGrid_DeleteCols, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxGrid_DeleteCols }}; -// bool DeleteCols(int pos = 0, int numCols = 1, bool updateLabels=true); -static int LUACALL wxLua_wxGrid_DeleteCols(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool updateLabels = true - bool updateLabels = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int numCols = 1 - int numCols = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // int pos = 0 - int pos = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DeleteCols - bool returns = (self->DeleteCols(pos, numCols, updateLabels)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DeleteRows[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_DeleteRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DeleteRows[1] = {{ wxLua_wxGrid_DeleteRows, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxGrid_DeleteRows }}; -// bool DeleteRows(int pos = 0, int numRows = 1, bool updateLabels=true); -static int LUACALL wxLua_wxGrid_DeleteRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool updateLabels = true - bool updateLabels = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int numRows = 1 - int numRows = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // int pos = 0 - int pos = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DeleteRows - bool returns = (self->DeleteRows(pos, numRows, updateLabels)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DeselectCell[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_DeselectCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DeselectCell[1] = {{ wxLua_wxGrid_DeselectCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_DeselectCell }}; -// void DeselectCell(int row, int col); -static int LUACALL wxLua_wxGrid_DeselectCell(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DeselectCell - self->DeselectCell(row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DeselectCol[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_DeselectCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DeselectCol[1] = {{ wxLua_wxGrid_DeselectCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_DeselectCol }}; -// void DeselectCol(int col); -static int LUACALL wxLua_wxGrid_DeselectCol(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DeselectCol - self->DeselectCol(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DeselectRow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_DeselectRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DeselectRow[1] = {{ wxLua_wxGrid_DeselectRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_DeselectRow }}; -// void DeselectRow(int row); -static int LUACALL wxLua_wxGrid_DeselectRow(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DeselectRow - self->DeselectRow(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DisableCellEditControl[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_DisableCellEditControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DisableCellEditControl[1] = {{ wxLua_wxGrid_DisableCellEditControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_DisableCellEditControl }}; -// void DisableCellEditControl(); -static int LUACALL wxLua_wxGrid_DisableCellEditControl(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DisableCellEditControl - self->DisableCellEditControl(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DisableDragCell[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_DisableDragCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DisableDragCell[1] = {{ wxLua_wxGrid_DisableDragCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_DisableDragCell }}; -// void DisableDragCell(); -static int LUACALL wxLua_wxGrid_DisableDragCell(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DisableDragCell - self->DisableDragCell(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DisableDragColSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_DisableDragColSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DisableDragColSize[1] = {{ wxLua_wxGrid_DisableDragColSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_DisableDragColSize }}; -// void DisableDragColSize(); -static int LUACALL wxLua_wxGrid_DisableDragColSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DisableDragColSize - self->DisableDragColSize(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DisableDragGridSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_DisableDragGridSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DisableDragGridSize[1] = {{ wxLua_wxGrid_DisableDragGridSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_DisableDragGridSize }}; -// void DisableDragGridSize(); -static int LUACALL wxLua_wxGrid_DisableDragGridSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DisableDragGridSize - self->DisableDragGridSize(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DisableDragRowSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_DisableDragRowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DisableDragRowSize[1] = {{ wxLua_wxGrid_DisableDragRowSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_DisableDragRowSize }}; -// void DisableDragRowSize(); -static int LUACALL wxLua_wxGrid_DisableDragRowSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DisableDragRowSize - self->DisableDragRowSize(); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_DrawTextRectangle[] = { &wxluatype_wxGrid, &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_DrawTextRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_DrawTextRectangle[1] = {{ wxLua_wxGrid_DrawTextRectangle, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxGrid_DrawTextRectangle }}; -// void DrawTextRectangle(wxDC& dc, const wxString&, const wxRect&, int horizontalAlignment = wxALIGN_LEFT, int verticalAlignment = wxALIGN_TOP, int textOrientation = wxHORIZONTAL); -static int LUACALL wxLua_wxGrid_DrawTextRectangle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int textOrientation = wxHORIZONTAL - int textOrientation = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxHORIZONTAL); - // int verticalAlignment = wxALIGN_TOP - int verticalAlignment = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxALIGN_TOP); - // int horizontalAlignment = wxALIGN_LEFT - int horizontalAlignment = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxALIGN_LEFT); - // const wxRect arg3 - const wxRect * arg3 = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // const wxString arg2 - const wxString arg2 = wxlua_getwxStringtype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call DrawTextRectangle - self->DrawTextRectangle(*dc, arg2, *arg3, horizontalAlignment, verticalAlignment, textOrientation); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableCellEditControl[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableCellEditControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableCellEditControl[1] = {{ wxLua_wxGrid_EnableCellEditControl, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_EnableCellEditControl }}; -// void EnableCellEditControl(bool enable = true); -static int LUACALL wxLua_wxGrid_EnableCellEditControl(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableCellEditControl - self->EnableCellEditControl(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableDragCell[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableDragCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableDragCell[1] = {{ wxLua_wxGrid_EnableDragCell, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_EnableDragCell }}; -// void EnableDragCell(bool enable = true); -static int LUACALL wxLua_wxGrid_EnableDragCell(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableDragCell - self->EnableDragCell(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableDragColSize[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableDragColSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableDragColSize[1] = {{ wxLua_wxGrid_EnableDragColSize, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_EnableDragColSize }}; -// void EnableDragColSize(bool enable = true); -static int LUACALL wxLua_wxGrid_EnableDragColSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableDragColSize - self->EnableDragColSize(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableDragGridSize[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableDragGridSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableDragGridSize[1] = {{ wxLua_wxGrid_EnableDragGridSize, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_EnableDragGridSize }}; -// void EnableDragGridSize(bool enable = true); -static int LUACALL wxLua_wxGrid_EnableDragGridSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableDragGridSize - self->EnableDragGridSize(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableDragRowSize[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableDragRowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableDragRowSize[1] = {{ wxLua_wxGrid_EnableDragRowSize, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_EnableDragRowSize }}; -// void EnableDragRowSize(bool enable = true); -static int LUACALL wxLua_wxGrid_EnableDragRowSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableDragRowSize - self->EnableDragRowSize(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableEditing[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableEditing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableEditing[1] = {{ wxLua_wxGrid_EnableEditing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_EnableEditing }}; -// void EnableEditing(bool edit); -static int LUACALL wxLua_wxGrid_EnableEditing(lua_State *L) -{ - // bool edit - bool edit = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableEditing - self->EnableEditing(edit); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EnableGridLines[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_EnableGridLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EnableGridLines[1] = {{ wxLua_wxGrid_EnableGridLines, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGrid_EnableGridLines }}; -// void EnableGridLines(bool enable = true); -static int LUACALL wxLua_wxGrid_EnableGridLines(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EnableGridLines - self->EnableGridLines(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_EndBatch[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_EndBatch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_EndBatch[1] = {{ wxLua_wxGrid_EndBatch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_EndBatch }}; -// void EndBatch(); -static int LUACALL wxLua_wxGrid_EndBatch(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call EndBatch - self->EndBatch(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_ForceRefresh[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_ForceRefresh(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_ForceRefresh[1] = {{ wxLua_wxGrid_ForceRefresh, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_ForceRefresh }}; -// void ForceRefresh(); -static int LUACALL wxLua_wxGrid_ForceRefresh(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call ForceRefresh - self->ForceRefresh(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetBatchCount[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetBatchCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetBatchCount[1] = {{ wxLua_wxGrid_GetBatchCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetBatchCount }}; -// int GetBatchCount(); -static int LUACALL wxLua_wxGrid_GetBatchCount(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetBatchCount - int returns = (self->GetBatchCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellAlignment[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellAlignment[1] = {{ wxLua_wxGrid_GetCellAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellAlignment }}; -// %override wxLua_wxGrid_GetCellAlignment -// void GetCellAlignment( int row, int col, int *horiz, int *vert ) -static int LUACALL wxLua_wxGrid_GetCellAlignment(lua_State *L) -{ - int vert; - int horiz; - // int col - int col = (int)lua_tonumber(L, 3); - // int row - int row = (int)lua_tonumber(L, 2); - // get this - wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellAlignment - self->GetCellAlignment(row, col, &horiz, &vert); - // push results - lua_pushinteger(L, horiz); - lua_pushinteger(L, vert); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellBackgroundColour[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellBackgroundColour[1] = {{ wxLua_wxGrid_GetCellBackgroundColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellBackgroundColour }}; -// wxColour GetCellBackgroundColour(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellBackgroundColour(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCellBackgroundColour(row, col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellEditor[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellEditor[1] = {{ wxLua_wxGrid_GetCellEditor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellEditor }}; -// %gc wxGridCellEditor* GetCellEditor(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellEditor(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellEditor - wxGridCellEditor* returns = (wxGridCellEditor*)self->GetCellEditor(row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEditor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEditor); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellFont[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellFont[1] = {{ wxLua_wxGrid_GetCellFont, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellFont }}; -// wxFont GetCellFont(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellFont(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetCellFont(row, col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellHighlightColour[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetCellHighlightColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellHighlightColour[1] = {{ wxLua_wxGrid_GetCellHighlightColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetCellHighlightColour }}; -// wxColour GetCellHighlightColour(); -static int LUACALL wxLua_wxGrid_GetCellHighlightColour(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellHighlightColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCellHighlightColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellHighlightPenWidth[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetCellHighlightPenWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellHighlightPenWidth[1] = {{ wxLua_wxGrid_GetCellHighlightPenWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetCellHighlightPenWidth }}; -// int GetCellHighlightPenWidth(); -static int LUACALL wxLua_wxGrid_GetCellHighlightPenWidth(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellHighlightPenWidth - int returns = (self->GetCellHighlightPenWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellHighlightROPenWidth[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetCellHighlightROPenWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellHighlightROPenWidth[1] = {{ wxLua_wxGrid_GetCellHighlightROPenWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetCellHighlightROPenWidth }}; -// int GetCellHighlightROPenWidth(); -static int LUACALL wxLua_wxGrid_GetCellHighlightROPenWidth(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellHighlightROPenWidth - int returns = (self->GetCellHighlightROPenWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellOverflow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellOverflow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellOverflow[1] = {{ wxLua_wxGrid_GetCellOverflow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellOverflow }}; -// bool GetCellOverflow(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellOverflow(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellOverflow - bool returns = (self->GetCellOverflow(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellRenderer[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellRenderer[1] = {{ wxLua_wxGrid_GetCellRenderer, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellRenderer }}; -// %gc wxGridCellRenderer* GetCellRenderer(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellRenderer(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellRenderer - wxGridCellRenderer* returns = (wxGridCellRenderer*)self->GetCellRenderer(row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellRenderer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellSize[1] = {{ wxLua_wxGrid_GetCellSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellSize }}; -// %override wxLua_wxGrid_GetCellSize -// void GetCellSize( int row, int col, int *num_rows, int *num_cols ) -static int LUACALL wxLua_wxGrid_GetCellSize(lua_State *L) -{ - int num_rows; - int num_cols; - // int col - int col = (int)lua_tonumber(L, 3); - // int row - int row = (int)lua_tonumber(L, 2); - // get this - wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellSize - self->GetCellSize(row, col, &num_rows, &num_cols); - // push results - lua_pushinteger(L, num_rows); - lua_pushinteger(L, num_cols); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellTextColour[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellTextColour[1] = {{ wxLua_wxGrid_GetCellTextColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellTextColour }}; -// wxColour GetCellTextColour(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellTextColour(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCellTextColour(row, col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetCellValue[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetCellValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetCellValue[1] = {{ wxLua_wxGrid_GetCellValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetCellValue }}; -// wxString GetCellValue(int row, int col); -static int LUACALL wxLua_wxGrid_GetCellValue(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetCellValue - wxString returns = (self->GetCellValue(row, col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetColLabelAlignment[] = { &wxluatype_wxGrid, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGrid_GetColLabelAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetColLabelAlignment[1] = {{ wxLua_wxGrid_GetColLabelAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetColLabelAlignment }}; -// %override wxLua_wxGrid_GetColLabelAlignment -// void GetColLabelAlignment( int *horz, int *vert ) -static int LUACALL wxLua_wxGrid_GetColLabelAlignment(lua_State *L) -{ - int vert; - int horz; - // get this - wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetColLabelAlignment - self->GetColLabelAlignment(&horz, &vert); - // push results - lua_pushinteger(L, horz); - lua_pushinteger(L, vert); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetColLabelSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetColLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetColLabelSize[1] = {{ wxLua_wxGrid_GetColLabelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetColLabelSize }}; -// int GetColLabelSize(); -static int LUACALL wxLua_wxGrid_GetColLabelSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetColLabelSize - int returns = (self->GetColLabelSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetColLabelTextOrientation[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetColLabelTextOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetColLabelTextOrientation[1] = {{ wxLua_wxGrid_GetColLabelTextOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetColLabelTextOrientation }}; -// int GetColLabelTextOrientation(); -static int LUACALL wxLua_wxGrid_GetColLabelTextOrientation(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetColLabelTextOrientation - int returns = (self->GetColLabelTextOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetColLabelValue[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetColLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetColLabelValue[1] = {{ wxLua_wxGrid_GetColLabelValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_GetColLabelValue }}; -// wxString GetColLabelValue(int col); -static int LUACALL wxLua_wxGrid_GetColLabelValue(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetColLabelValue - wxString returns = (self->GetColLabelValue(col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetColMinimalAcceptableWidth[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetColMinimalAcceptableWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetColMinimalAcceptableWidth[1] = {{ wxLua_wxGrid_GetColMinimalAcceptableWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetColMinimalAcceptableWidth }}; -// int GetColMinimalAcceptableWidth() const; -static int LUACALL wxLua_wxGrid_GetColMinimalAcceptableWidth(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetColMinimalAcceptableWidth - int returns = (self->GetColMinimalAcceptableWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetColSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetColSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetColSize[1] = {{ wxLua_wxGrid_GetColSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_GetColSize }}; -// int GetColSize(int col); -static int LUACALL wxLua_wxGrid_GetColSize(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetColSize - int returns = (self->GetColSize(col)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellAlignment[] = { &wxluatype_wxGrid, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultCellAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultCellAlignment[1] = {{ wxLua_wxGrid_GetDefaultCellAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellAlignment }}; -// %override wxLua_wxGrid_GetDefaultCellAlignment -// void GetDefaultCellAlignment( int *horiz, int *vert ) -static int LUACALL wxLua_wxGrid_GetDefaultCellAlignment(lua_State *L) -{ - int vert; - int horiz; - // get this - wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultCellAlignment - self->GetDefaultCellAlignment(&horiz, &vert); - // push results - lua_pushinteger(L, horiz); - lua_pushinteger(L, vert); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellBackgroundColour[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultCellBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultCellBackgroundColour[1] = {{ wxLua_wxGrid_GetDefaultCellBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellBackgroundColour }}; -// wxColour GetDefaultCellBackgroundColour(); -static int LUACALL wxLua_wxGrid_GetDefaultCellBackgroundColour(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultCellBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetDefaultCellBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellFont[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultCellFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultCellFont[1] = {{ wxLua_wxGrid_GetDefaultCellFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellFont }}; -// wxFont GetDefaultCellFont(); -static int LUACALL wxLua_wxGrid_GetDefaultCellFont(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultCellFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetDefaultCellFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellOverflow[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultCellOverflow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultCellOverflow[1] = {{ wxLua_wxGrid_GetDefaultCellOverflow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellOverflow }}; -// bool GetDefaultCellOverflow(); -static int LUACALL wxLua_wxGrid_GetDefaultCellOverflow(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultCellOverflow - bool returns = (self->GetDefaultCellOverflow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellTextColour[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultCellTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultCellTextColour[1] = {{ wxLua_wxGrid_GetDefaultCellTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultCellTextColour }}; -// wxColour GetDefaultCellTextColour(); -static int LUACALL wxLua_wxGrid_GetDefaultCellTextColour(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultCellTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetDefaultCellTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultColLabelSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultColLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultColLabelSize[1] = {{ wxLua_wxGrid_GetDefaultColLabelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultColLabelSize }}; -// int GetDefaultColLabelSize(); -static int LUACALL wxLua_wxGrid_GetDefaultColLabelSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultColLabelSize - int returns = (self->GetDefaultColLabelSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultColSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultColSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultColSize[1] = {{ wxLua_wxGrid_GetDefaultColSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultColSize }}; -// int GetDefaultColSize(); -static int LUACALL wxLua_wxGrid_GetDefaultColSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultColSize - int returns = (self->GetDefaultColSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultEditor[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultEditor[1] = {{ wxLua_wxGrid_GetDefaultEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultEditor }}; -// %gc wxGridCellEditor* GetDefaultEditor() const; -static int LUACALL wxLua_wxGrid_GetDefaultEditor(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultEditor - wxGridCellEditor* returns = (wxGridCellEditor*)self->GetDefaultEditor(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEditor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultEditorForCell[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultEditorForCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultEditorForCell[1] = {{ wxLua_wxGrid_GetDefaultEditorForCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetDefaultEditorForCell }}; -// %gc wxGridCellEditor* GetDefaultEditorForCell(int row, int col) const; -static int LUACALL wxLua_wxGrid_GetDefaultEditorForCell(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultEditorForCell - wxGridCellEditor* returns = (wxGridCellEditor*)self->GetDefaultEditorForCell(row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEditor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultEditorForType[] = { &wxluatype_wxGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultEditorForType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultEditorForType[1] = {{ wxLua_wxGrid_GetDefaultEditorForType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_GetDefaultEditorForType }}; -// %gc wxGridCellEditor* GetDefaultEditorForType(const wxString& typeName) const; -static int LUACALL wxLua_wxGrid_GetDefaultEditorForType(lua_State *L) -{ - // const wxString typeName - const wxString typeName = wxlua_getwxStringtype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultEditorForType - wxGridCellEditor* returns = (wxGridCellEditor*)self->GetDefaultEditorForType(typeName); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellEditor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultRenderer[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultRenderer[1] = {{ wxLua_wxGrid_GetDefaultRenderer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultRenderer }}; -// %gc wxGridCellRenderer* GetDefaultRenderer() const; -static int LUACALL wxLua_wxGrid_GetDefaultRenderer(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultRenderer - wxGridCellRenderer* returns = (wxGridCellRenderer*)self->GetDefaultRenderer(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellRenderer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultRendererForCell[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultRendererForCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultRendererForCell[1] = {{ wxLua_wxGrid_GetDefaultRendererForCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetDefaultRendererForCell }}; -// %gc wxGridCellRenderer* GetDefaultRendererForCell(int row, int col) const; -static int LUACALL wxLua_wxGrid_GetDefaultRendererForCell(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultRendererForCell - wxGridCellRenderer* returns = (wxGridCellRenderer*)self->GetDefaultRendererForCell(row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellRenderer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultRendererForType[] = { &wxluatype_wxGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultRendererForType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultRendererForType[1] = {{ wxLua_wxGrid_GetDefaultRendererForType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_GetDefaultRendererForType }}; -// %gc wxGridCellRenderer* GetDefaultRendererForType(const wxString& typeName) const; -static int LUACALL wxLua_wxGrid_GetDefaultRendererForType(lua_State *L) -{ - // const wxString typeName - const wxString typeName = wxlua_getwxStringtype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultRendererForType - wxGridCellRenderer* returns = (wxGridCellRenderer*)self->GetDefaultRendererForType(typeName); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellRenderer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultRowLabelSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultRowLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultRowLabelSize[1] = {{ wxLua_wxGrid_GetDefaultRowLabelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultRowLabelSize }}; -// int GetDefaultRowLabelSize(); -static int LUACALL wxLua_wxGrid_GetDefaultRowLabelSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultRowLabelSize - int returns = (self->GetDefaultRowLabelSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetDefaultRowSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetDefaultRowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetDefaultRowSize[1] = {{ wxLua_wxGrid_GetDefaultRowSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetDefaultRowSize }}; -// int GetDefaultRowSize(); -static int LUACALL wxLua_wxGrid_GetDefaultRowSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetDefaultRowSize - int returns = (self->GetDefaultRowSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridColLabelWindow[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridColLabelWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridColLabelWindow[1] = {{ wxLua_wxGrid_GetGridColLabelWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridColLabelWindow }}; -// wxWindow* GetGridColLabelWindow(); -static int LUACALL wxLua_wxGrid_GetGridColLabelWindow(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridColLabelWindow - wxWindow* returns = (wxWindow*)self->GetGridColLabelWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridCornerLabelWindow[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridCornerLabelWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridCornerLabelWindow[1] = {{ wxLua_wxGrid_GetGridCornerLabelWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridCornerLabelWindow }}; -// wxWindow* GetGridCornerLabelWindow(); -static int LUACALL wxLua_wxGrid_GetGridCornerLabelWindow(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridCornerLabelWindow - wxWindow* returns = (wxWindow*)self->GetGridCornerLabelWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridCursorCol[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridCursorCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridCursorCol[1] = {{ wxLua_wxGrid_GetGridCursorCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridCursorCol }}; -// int GetGridCursorCol(); -static int LUACALL wxLua_wxGrid_GetGridCursorCol(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridCursorCol - int returns = (self->GetGridCursorCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridCursorRow[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridCursorRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridCursorRow[1] = {{ wxLua_wxGrid_GetGridCursorRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridCursorRow }}; -// int GetGridCursorRow(); -static int LUACALL wxLua_wxGrid_GetGridCursorRow(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridCursorRow - int returns = (self->GetGridCursorRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridLineColour[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridLineColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridLineColour[1] = {{ wxLua_wxGrid_GetGridLineColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridLineColour }}; -// wxColour GetGridLineColour(); -static int LUACALL wxLua_wxGrid_GetGridLineColour(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridLineColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetGridLineColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridRowLabelWindow[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridRowLabelWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridRowLabelWindow[1] = {{ wxLua_wxGrid_GetGridRowLabelWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridRowLabelWindow }}; -// wxWindow* GetGridRowLabelWindow(); -static int LUACALL wxLua_wxGrid_GetGridRowLabelWindow(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridRowLabelWindow - wxWindow* returns = (wxWindow*)self->GetGridRowLabelWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetGridWindow[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetGridWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetGridWindow[1] = {{ wxLua_wxGrid_GetGridWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetGridWindow }}; -// wxWindow* GetGridWindow(); -static int LUACALL wxLua_wxGrid_GetGridWindow(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetGridWindow - wxWindow* returns = (wxWindow*)self->GetGridWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetLabelBackgroundColour[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetLabelBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetLabelBackgroundColour[1] = {{ wxLua_wxGrid_GetLabelBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetLabelBackgroundColour }}; -// wxColour GetLabelBackgroundColour(); -static int LUACALL wxLua_wxGrid_GetLabelBackgroundColour(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetLabelBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetLabelBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetLabelFont[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetLabelFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetLabelFont[1] = {{ wxLua_wxGrid_GetLabelFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetLabelFont }}; -// wxFont GetLabelFont(); -static int LUACALL wxLua_wxGrid_GetLabelFont(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetLabelFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetLabelFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetLabelTextColour[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetLabelTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetLabelTextColour[1] = {{ wxLua_wxGrid_GetLabelTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetLabelTextColour }}; -// wxColour GetLabelTextColour(); -static int LUACALL wxLua_wxGrid_GetLabelTextColour(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetLabelTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetLabelTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetNumberCols[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetNumberCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetNumberCols[1] = {{ wxLua_wxGrid_GetNumberCols, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetNumberCols }}; -// int GetNumberCols(); -static int LUACALL wxLua_wxGrid_GetNumberCols(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetNumberCols - int returns = (self->GetNumberCols()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetNumberRows[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetNumberRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetNumberRows[1] = {{ wxLua_wxGrid_GetNumberRows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetNumberRows }}; -// int GetNumberRows(); -static int LUACALL wxLua_wxGrid_GetNumberRows(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetNumberRows - int returns = (self->GetNumberRows()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetOrCreateCellAttr[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetOrCreateCellAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetOrCreateCellAttr[1] = {{ wxLua_wxGrid_GetOrCreateCellAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetOrCreateCellAttr }}; -// %gc wxGridCellAttr *GetOrCreateCellAttr(int row, int col) const; -static int LUACALL wxLua_wxGrid_GetOrCreateCellAttr(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetOrCreateCellAttr - wxGridCellAttr* returns = (wxGridCellAttr*)self->GetOrCreateCellAttr(row, col); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGridCellAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetRowLabelAlignment[] = { &wxluatype_wxGrid, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGrid_GetRowLabelAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetRowLabelAlignment[1] = {{ wxLua_wxGrid_GetRowLabelAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetRowLabelAlignment }}; -// %override wxLua_wxGrid_GetRowLabelAlignment -// void GetRowLabelAlignment( int *horz, int *vert ) -static int LUACALL wxLua_wxGrid_GetRowLabelAlignment(lua_State *L) -{ - int vert; - int horz; - // get this - wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetRowLabelAlignment - self->GetRowLabelAlignment(&horz, &vert); - // push results - lua_pushinteger(L, horz); - lua_pushinteger(L, vert); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetRowLabelSize[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetRowLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetRowLabelSize[1] = {{ wxLua_wxGrid_GetRowLabelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetRowLabelSize }}; -// int GetRowLabelSize(); -static int LUACALL wxLua_wxGrid_GetRowLabelSize(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetRowLabelSize - int returns = (self->GetRowLabelSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetRowLabelValue[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetRowLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetRowLabelValue[1] = {{ wxLua_wxGrid_GetRowLabelValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_GetRowLabelValue }}; -// wxString GetRowLabelValue(int row); -static int LUACALL wxLua_wxGrid_GetRowLabelValue(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetRowLabelValue - wxString returns = (self->GetRowLabelValue(row)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetRowMinimalAcceptableHeight[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetRowMinimalAcceptableHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetRowMinimalAcceptableHeight[1] = {{ wxLua_wxGrid_GetRowMinimalAcceptableHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetRowMinimalAcceptableHeight }}; -// int GetRowMinimalAcceptableHeight() const; -static int LUACALL wxLua_wxGrid_GetRowMinimalAcceptableHeight(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetRowMinimalAcceptableHeight - int returns = (self->GetRowMinimalAcceptableHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetRowSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_GetRowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetRowSize[1] = {{ wxLua_wxGrid_GetRowSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_GetRowSize }}; -// int GetRowSize(int row); -static int LUACALL wxLua_wxGrid_GetRowSize(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetRowSize - int returns = (self->GetRowSize(row)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectedCells[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectedCells(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectedCells[1] = {{ wxLua_wxGrid_GetSelectedCells, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectedCells }}; -// wxGridCellCoordsArray GetSelectedCells() const; -static int LUACALL wxLua_wxGrid_GetSelectedCells(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectedCells - // allocate a new object using the copy constructor - wxGridCellCoordsArray* returns = new wxGridCellCoordsArray(self->GetSelectedCells()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoordsArray); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoordsArray); - - return 1; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectedCols[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectedCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectedCols[1] = {{ wxLua_wxGrid_GetSelectedCols, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectedCols }}; -// wxArrayInt GetSelectedCols() const; -static int LUACALL wxLua_wxGrid_GetSelectedCols(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectedCols - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetSelectedCols()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectedRows[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectedRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectedRows[1] = {{ wxLua_wxGrid_GetSelectedRows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectedRows }}; -// wxArrayInt GetSelectedRows() const; -static int LUACALL wxLua_wxGrid_GetSelectedRows(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectedRows - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetSelectedRows()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectionBackground[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectionBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectionBackground[1] = {{ wxLua_wxGrid_GetSelectionBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectionBackground }}; -// wxColour GetSelectionBackground() const; -static int LUACALL wxLua_wxGrid_GetSelectionBackground(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectionBackground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetSelectionBackground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectionBlockBottomRight[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectionBlockBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectionBlockBottomRight[1] = {{ wxLua_wxGrid_GetSelectionBlockBottomRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectionBlockBottomRight }}; -// wxGridCellCoordsArray GetSelectionBlockBottomRight() const; -static int LUACALL wxLua_wxGrid_GetSelectionBlockBottomRight(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectionBlockBottomRight - // allocate a new object using the copy constructor - wxGridCellCoordsArray* returns = new wxGridCellCoordsArray(self->GetSelectionBlockBottomRight()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoordsArray); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoordsArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectionBlockTopLeft[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectionBlockTopLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectionBlockTopLeft[1] = {{ wxLua_wxGrid_GetSelectionBlockTopLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectionBlockTopLeft }}; -// wxGridCellCoordsArray GetSelectionBlockTopLeft() const; -static int LUACALL wxLua_wxGrid_GetSelectionBlockTopLeft(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectionBlockTopLeft - // allocate a new object using the copy constructor - wxGridCellCoordsArray* returns = new wxGridCellCoordsArray(self->GetSelectionBlockTopLeft()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoordsArray); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoordsArray); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectionForeground[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectionForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectionForeground[1] = {{ wxLua_wxGrid_GetSelectionForeground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectionForeground }}; -// wxColour GetSelectionForeground() const; -static int LUACALL wxLua_wxGrid_GetSelectionForeground(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectionForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetSelectionForeground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetSelectionMode[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetSelectionMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetSelectionMode[1] = {{ wxLua_wxGrid_GetSelectionMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetSelectionMode }}; -// wxGrid::wxGridSelectionModes GetSelectionMode() const; -static int LUACALL wxLua_wxGrid_GetSelectionMode(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetSelectionMode - wxGrid::wxGridSelectionModes returns = (self->GetSelectionMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetTable[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GetTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetTable[1] = {{ wxLua_wxGrid_GetTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GetTable }}; -// wxGridTableBase * GetTable() const; -static int LUACALL wxLua_wxGrid_GetTable(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetTable - wxGridTableBase* returns = (wxGridTableBase*)self->GetTable(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridTableBase); - - return 1; -} - - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GetTextBoxSize[] = { &wxluatype_wxGrid, &wxluatype_wxDC, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxGrid_GetTextBoxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GetTextBoxSize[1] = {{ wxLua_wxGrid_GetTextBoxSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_GetTextBoxSize }}; -// %override wxLua_wxGrid_GetTextBoxSize -// void GetTextBoxSize(wxDC& dc, wxArrayString& lines, long * width, long * height) -static int LUACALL wxLua_wxGrid_GetTextBoxSize(lua_State *L) -{ - long height; - long width; - // wxArrayString& lines - wxArrayString *lines = (wxArrayString *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayString); - // wxDC& dc - wxDC *dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxGrid *self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GetTextBoxSize - self->GetTextBoxSize(*dc, *lines, &width, &height); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 2; -} - - -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_GridLinesEnabled[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_GridLinesEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_GridLinesEnabled[1] = {{ wxLua_wxGrid_GridLinesEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_GridLinesEnabled }}; -// bool GridLinesEnabled(); -static int LUACALL wxLua_wxGrid_GridLinesEnabled(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call GridLinesEnabled - bool returns = (self->GridLinesEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_HideCellEditControl[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_HideCellEditControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_HideCellEditControl[1] = {{ wxLua_wxGrid_HideCellEditControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_HideCellEditControl }}; -// void HideCellEditControl(); -static int LUACALL wxLua_wxGrid_HideCellEditControl(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call HideCellEditControl - self->HideCellEditControl(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_InsertCols[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_InsertCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_InsertCols[1] = {{ wxLua_wxGrid_InsertCols, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxGrid_InsertCols }}; -// bool InsertCols(int pos = 0, int numCols = 1, bool updateLabels=true); -static int LUACALL wxLua_wxGrid_InsertCols(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool updateLabels = true - bool updateLabels = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int numCols = 1 - int numCols = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // int pos = 0 - int pos = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call InsertCols - bool returns = (self->InsertCols(pos, numCols, updateLabels)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_InsertRows[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_InsertRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_InsertRows[1] = {{ wxLua_wxGrid_InsertRows, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxGrid_InsertRows }}; -// bool InsertRows(int pos = 0, int numRows = 1, bool updateLabels=true); -static int LUACALL wxLua_wxGrid_InsertRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool updateLabels = true - bool updateLabels = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int numRows = 1 - int numRows = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // int pos = 0 - int pos = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call InsertRows - bool returns = (self->InsertRows(pos, numRows, updateLabels)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsCellEditControlEnabled[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_IsCellEditControlEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsCellEditControlEnabled[1] = {{ wxLua_wxGrid_IsCellEditControlEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_IsCellEditControlEnabled }}; -// bool IsCellEditControlEnabled() const; -static int LUACALL wxLua_wxGrid_IsCellEditControlEnabled(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsCellEditControlEnabled - bool returns = (self->IsCellEditControlEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsCellEditControlShown[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_IsCellEditControlShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsCellEditControlShown[1] = {{ wxLua_wxGrid_IsCellEditControlShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_IsCellEditControlShown }}; -// bool IsCellEditControlShown() const; -static int LUACALL wxLua_wxGrid_IsCellEditControlShown(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsCellEditControlShown - bool returns = (self->IsCellEditControlShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsCurrentCellReadOnly[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_IsCurrentCellReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsCurrentCellReadOnly[1] = {{ wxLua_wxGrid_IsCurrentCellReadOnly, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_IsCurrentCellReadOnly }}; -// bool IsCurrentCellReadOnly() const; -static int LUACALL wxLua_wxGrid_IsCurrentCellReadOnly(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsCurrentCellReadOnly - bool returns = (self->IsCurrentCellReadOnly()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsEditable[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_IsEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsEditable[1] = {{ wxLua_wxGrid_IsEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_IsEditable }}; -// bool IsEditable(); -static int LUACALL wxLua_wxGrid_IsEditable(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsEditable - bool returns = (self->IsEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsInSelection[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_IsInSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsInSelection[1] = {{ wxLua_wxGrid_IsInSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_IsInSelection }}; -// bool IsInSelection(int row, int col); -static int LUACALL wxLua_wxGrid_IsInSelection(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsInSelection - bool returns = (self->IsInSelection(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsReadOnly[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_IsReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsReadOnly[1] = {{ wxLua_wxGrid_IsReadOnly, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_IsReadOnly }}; -// bool IsReadOnly(int row, int col) const; -static int LUACALL wxLua_wxGrid_IsReadOnly(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsReadOnly - bool returns = (self->IsReadOnly(row, col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsSelection[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_IsSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsSelection[1] = {{ wxLua_wxGrid_IsSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_IsSelection }}; -// bool IsSelection(); -static int LUACALL wxLua_wxGrid_IsSelection(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsSelection - bool returns = (self->IsSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_IsVisible[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_IsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_IsVisible[1] = {{ wxLua_wxGrid_IsVisible, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGrid_IsVisible }}; -// bool IsVisible(int row, int col, bool wholeCellVisible = true); -static int LUACALL wxLua_wxGrid_IsVisible(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool wholeCellVisible = true - bool wholeCellVisible = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call IsVisible - bool returns = (self->IsVisible(row, col, wholeCellVisible)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MakeCellVisible[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_MakeCellVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MakeCellVisible[1] = {{ wxLua_wxGrid_MakeCellVisible, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_MakeCellVisible }}; -// void MakeCellVisible(int row, int col); -static int LUACALL wxLua_wxGrid_MakeCellVisible(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MakeCellVisible - self->MakeCellVisible(row, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorDown[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorDown[1] = {{ wxLua_wxGrid_MoveCursorDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorDown }}; -// bool MoveCursorDown(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorDown(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorDown - bool returns = (self->MoveCursorDown(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorDownBlock[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorDownBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorDownBlock[1] = {{ wxLua_wxGrid_MoveCursorDownBlock, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorDownBlock }}; -// bool MoveCursorDownBlock(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorDownBlock(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorDownBlock - bool returns = (self->MoveCursorDownBlock(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorLeft[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorLeft[1] = {{ wxLua_wxGrid_MoveCursorLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorLeft }}; -// bool MoveCursorLeft(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorLeft(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorLeft - bool returns = (self->MoveCursorLeft(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorLeftBlock[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorLeftBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorLeftBlock[1] = {{ wxLua_wxGrid_MoveCursorLeftBlock, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorLeftBlock }}; -// bool MoveCursorLeftBlock(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorLeftBlock(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorLeftBlock - bool returns = (self->MoveCursorLeftBlock(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorRight[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorRight[1] = {{ wxLua_wxGrid_MoveCursorRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorRight }}; -// bool MoveCursorRight(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorRight(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorRight - bool returns = (self->MoveCursorRight(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorRightBlock[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorRightBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorRightBlock[1] = {{ wxLua_wxGrid_MoveCursorRightBlock, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorRightBlock }}; -// bool MoveCursorRightBlock(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorRightBlock(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorRightBlock - bool returns = (self->MoveCursorRightBlock(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorUp[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorUp[1] = {{ wxLua_wxGrid_MoveCursorUp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorUp }}; -// bool MoveCursorUp(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorUp(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorUp - bool returns = (self->MoveCursorUp(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MoveCursorUpBlock[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_MoveCursorUpBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MoveCursorUpBlock[1] = {{ wxLua_wxGrid_MoveCursorUpBlock, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_MoveCursorUpBlock }}; -// bool MoveCursorUpBlock(bool expandSelection); -static int LUACALL wxLua_wxGrid_MoveCursorUpBlock(lua_State *L) -{ - // bool expandSelection - bool expandSelection = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MoveCursorUpBlock - bool returns = (self->MoveCursorUpBlock(expandSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MovePageDown[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_MovePageDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MovePageDown[1] = {{ wxLua_wxGrid_MovePageDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_MovePageDown }}; -// bool MovePageDown(); -static int LUACALL wxLua_wxGrid_MovePageDown(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MovePageDown - bool returns = (self->MovePageDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_MovePageUp[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_MovePageUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_MovePageUp[1] = {{ wxLua_wxGrid_MovePageUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_MovePageUp }}; -// bool MovePageUp(); -static int LUACALL wxLua_wxGrid_MovePageUp(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call MovePageUp - bool returns = (self->MovePageUp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_ProcessTableMessage[] = { &wxluatype_wxGrid, &wxluatype_wxGridTableMessage, NULL }; -static int LUACALL wxLua_wxGrid_ProcessTableMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_ProcessTableMessage[1] = {{ wxLua_wxGrid_ProcessTableMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_ProcessTableMessage }}; -// bool ProcessTableMessage(wxGridTableMessage& msg); -static int LUACALL wxLua_wxGrid_ProcessTableMessage(lua_State *L) -{ - // wxGridTableMessage msg - wxGridTableMessage * msg = (wxGridTableMessage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridTableMessage); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call ProcessTableMessage - bool returns = (self->ProcessTableMessage(*msg)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_RegisterDataType[] = { &wxluatype_wxGrid, &wxluatype_TSTRING, &wxluatype_wxGridCellRenderer, &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGrid_RegisterDataType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_RegisterDataType[1] = {{ wxLua_wxGrid_RegisterDataType, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_RegisterDataType }}; -// void RegisterDataType(const wxString& typeName, %IncRef wxGridCellRenderer* renderer, %IncRef wxGridCellEditor* editor); -static int LUACALL wxLua_wxGrid_RegisterDataType(lua_State *L) -{ - // wxGridCellEditor editor - wxGridCellEditor * editor = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellEditor); - // wxGridCellRenderer renderer - wxGridCellRenderer * renderer = (wxGridCellRenderer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellRenderer); - // const wxString typeName - const wxString typeName = wxlua_getwxStringtype(L, 2); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - renderer->IncRef(); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - editor->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call RegisterDataType - self->RegisterDataType(typeName, renderer, editor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SaveEditControlValue[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_SaveEditControlValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SaveEditControlValue[1] = {{ wxLua_wxGrid_SaveEditControlValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_SaveEditControlValue }}; -// void SaveEditControlValue(); -static int LUACALL wxLua_wxGrid_SaveEditControlValue(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SaveEditControlValue - self->SaveEditControlValue(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SelectAll[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SelectAll[1] = {{ wxLua_wxGrid_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_SelectAll }}; -// void SelectAll(); -static int LUACALL wxLua_wxGrid_SelectAll(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SelectAll - self->SelectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SelectBlock[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SelectBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SelectBlock[1] = {{ wxLua_wxGrid_SelectBlock, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxGrid_SelectBlock }}; -// void SelectBlock(int topRow, int leftCol, int bottomRow, int rightCol, bool addToSelected = false); -static int LUACALL wxLua_wxGrid_SelectBlock(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool addToSelected = false - bool addToSelected = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // int rightCol - int rightCol = (int)wxlua_getnumbertype(L, 5); - // int bottomRow - int bottomRow = (int)wxlua_getnumbertype(L, 4); - // int leftCol - int leftCol = (int)wxlua_getnumbertype(L, 3); - // int topRow - int topRow = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SelectBlock - self->SelectBlock(topRow, leftCol, bottomRow, rightCol, addToSelected); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SelectCol[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SelectCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SelectCol[1] = {{ wxLua_wxGrid_SelectCol, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGrid_SelectCol }}; -// void SelectCol(int col, bool addToSelected = false); -static int LUACALL wxLua_wxGrid_SelectCol(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool addToSelected = false - bool addToSelected = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SelectCol - self->SelectCol(col, addToSelected); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SelectRow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SelectRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SelectRow[1] = {{ wxLua_wxGrid_SelectRow, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGrid_SelectRow }}; -// void SelectRow(int row, bool addToSelected = false); -static int LUACALL wxLua_wxGrid_SelectRow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool addToSelected = false - bool addToSelected = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SelectRow - self->SelectRow(row, addToSelected); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetAttr[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGrid_SetAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetAttr[1] = {{ wxLua_wxGrid_SetAttr, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetAttr }}; -// void SetAttr(int row, int col, %IncRef wxGridCellAttr *attr); -static int LUACALL wxLua_wxGrid_SetAttr(lua_State *L) -{ - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellAttr); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetAttr - self->SetAttr(row, col, attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellAlignment[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetCellAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellAlignment[1] = {{ wxLua_wxGrid_SetCellAlignment, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGrid_SetCellAlignment }}; -// void SetCellAlignment(int row, int col, int horiz, int vert); -static int LUACALL wxLua_wxGrid_SetCellAlignment(lua_State *L) -{ - // int vert - int vert = (int)wxlua_getnumbertype(L, 5); - // int horiz - int horiz = (int)wxlua_getnumbertype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellAlignment - self->SetCellAlignment(row, col, horiz, vert); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellBackgroundColour[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetCellBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellBackgroundColour[1] = {{ wxLua_wxGrid_SetCellBackgroundColour, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellBackgroundColour }}; -// void SetCellBackgroundColour(int row, int col, const wxColour& backColour); -static int LUACALL wxLua_wxGrid_SetCellBackgroundColour(lua_State *L) -{ - // const wxColour backColour - const wxColour * backColour = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellBackgroundColour - self->SetCellBackgroundColour(row, col, *backColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellEditor[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGrid_SetCellEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellEditor[1] = {{ wxLua_wxGrid_SetCellEditor, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellEditor }}; -// void SetCellEditor(int row, int col, %IncRef wxGridCellEditor *editor); -static int LUACALL wxLua_wxGrid_SetCellEditor(lua_State *L) -{ - // wxGridCellEditor editor - wxGridCellEditor * editor = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellEditor); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - editor->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellEditor - self->SetCellEditor(row, col, editor); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellFont[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxGrid_SetCellFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellFont[1] = {{ wxLua_wxGrid_SetCellFont, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellFont }}; -// void SetCellFont(int row, int col, const wxFont& cellFont); -static int LUACALL wxLua_wxGrid_SetCellFont(lua_State *L) -{ - // const wxFont cellFont - const wxFont * cellFont = (const wxFont *)wxluaT_getuserdatatype(L, 4, wxluatype_wxFont); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellFont - self->SetCellFont(row, col, *cellFont); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellHighlightColour[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetCellHighlightColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellHighlightColour[1] = {{ wxLua_wxGrid_SetCellHighlightColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetCellHighlightColour }}; -// void SetCellHighlightColour(const wxColour& highlightColour); -static int LUACALL wxLua_wxGrid_SetCellHighlightColour(lua_State *L) -{ - // const wxColour highlightColour - const wxColour * highlightColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellHighlightColour - self->SetCellHighlightColour(*highlightColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellHighlightPenWidth[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetCellHighlightPenWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellHighlightPenWidth[1] = {{ wxLua_wxGrid_SetCellHighlightPenWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetCellHighlightPenWidth }}; -// void SetCellHighlightPenWidth(int width); -static int LUACALL wxLua_wxGrid_SetCellHighlightPenWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellHighlightPenWidth - self->SetCellHighlightPenWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellHighlightROPenWidth[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetCellHighlightROPenWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellHighlightROPenWidth[1] = {{ wxLua_wxGrid_SetCellHighlightROPenWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetCellHighlightROPenWidth }}; -// void SetCellHighlightROPenWidth(int width); -static int LUACALL wxLua_wxGrid_SetCellHighlightROPenWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellHighlightROPenWidth - self->SetCellHighlightROPenWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellOverflow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SetCellOverflow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellOverflow[1] = {{ wxLua_wxGrid_SetCellOverflow, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellOverflow }}; -// void SetCellOverflow(int row, int col, bool allow); -static int LUACALL wxLua_wxGrid_SetCellOverflow(lua_State *L) -{ - // bool allow - bool allow = wxlua_getbooleantype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellOverflow - self->SetCellOverflow(row, col, allow); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellRenderer[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGridCellRenderer, NULL }; -static int LUACALL wxLua_wxGrid_SetCellRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellRenderer[1] = {{ wxLua_wxGrid_SetCellRenderer, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellRenderer }}; -// void SetCellRenderer(int row, int col, %IncRef wxGridCellRenderer *renderer); -static int LUACALL wxLua_wxGrid_SetCellRenderer(lua_State *L) -{ - // wxGridCellRenderer renderer - wxGridCellRenderer * renderer = (wxGridCellRenderer *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellRenderer); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - renderer->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellRenderer - self->SetCellRenderer(row, col, renderer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellSize[1] = {{ wxLua_wxGrid_SetCellSize, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGrid_SetCellSize }}; -// void SetCellSize(int row, int col, int num_rows, int num_cols); -static int LUACALL wxLua_wxGrid_SetCellSize(lua_State *L) -{ - // int num_cols - int num_cols = (int)wxlua_getnumbertype(L, 5); - // int num_rows - int num_rows = (int)wxlua_getnumbertype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellSize - self->SetCellSize(row, col, num_rows, num_cols); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellTextColour[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetCellTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellTextColour[1] = {{ wxLua_wxGrid_SetCellTextColour, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellTextColour }}; -// void SetCellTextColour(int row, int col, const wxColour& textColour); -static int LUACALL wxLua_wxGrid_SetCellTextColour(lua_State *L) -{ - // const wxColour textColour - const wxColour * textColour = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellTextColour - self->SetCellTextColour(row, col, *textColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetCellValue[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_SetCellValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetCellValue[1] = {{ wxLua_wxGrid_SetCellValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_SetCellValue }}; -// void SetCellValue(int row, int col, const wxString& s); -static int LUACALL wxLua_wxGrid_SetCellValue(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetCellValue - self->SetCellValue(row, col, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColAttr[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGrid_SetColAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColAttr[1] = {{ wxLua_wxGrid_SetColAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetColAttr }}; -// void SetColAttr(int col, %IncRef wxGridCellAttr *attr); -static int LUACALL wxLua_wxGrid_SetColAttr(lua_State *L) -{ - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellAttr); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColAttr - self->SetColAttr(col, attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColFormatBool[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColFormatBool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColFormatBool[1] = {{ wxLua_wxGrid_SetColFormatBool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetColFormatBool }}; -// void SetColFormatBool(int col); -static int LUACALL wxLua_wxGrid_SetColFormatBool(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColFormatBool - self->SetColFormatBool(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColFormatCustom[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_SetColFormatCustom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColFormatCustom[1] = {{ wxLua_wxGrid_SetColFormatCustom, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetColFormatCustom }}; -// void SetColFormatCustom(int col, const wxString& typeName); -static int LUACALL wxLua_wxGrid_SetColFormatCustom(lua_State *L) -{ - // const wxString typeName - const wxString typeName = wxlua_getwxStringtype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColFormatCustom - self->SetColFormatCustom(col, typeName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColFormatFloat[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColFormatFloat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColFormatFloat[1] = {{ wxLua_wxGrid_SetColFormatFloat, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxGrid_SetColFormatFloat }}; -// void SetColFormatFloat(int col, int width = -1, int precision = -1); -static int LUACALL wxLua_wxGrid_SetColFormatFloat(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int precision = -1 - int precision = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int width = -1 - int width = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColFormatFloat - self->SetColFormatFloat(col, width, precision); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColFormatNumber[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColFormatNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColFormatNumber[1] = {{ wxLua_wxGrid_SetColFormatNumber, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetColFormatNumber }}; -// void SetColFormatNumber(int col); -static int LUACALL wxLua_wxGrid_SetColFormatNumber(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColFormatNumber - self->SetColFormatNumber(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColLabelAlignment[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColLabelAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColLabelAlignment[1] = {{ wxLua_wxGrid_SetColLabelAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetColLabelAlignment }}; -// void SetColLabelAlignment(int horiz, int vert); -static int LUACALL wxLua_wxGrid_SetColLabelAlignment(lua_State *L) -{ - // int vert - int vert = (int)wxlua_getnumbertype(L, 3); - // int horiz - int horiz = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColLabelAlignment - self->SetColLabelAlignment(horiz, vert); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColLabelSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColLabelSize[1] = {{ wxLua_wxGrid_SetColLabelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetColLabelSize }}; -// void SetColLabelSize(int height); -static int LUACALL wxLua_wxGrid_SetColLabelSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColLabelSize - self->SetColLabelSize(height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColLabelValue[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_SetColLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColLabelValue[1] = {{ wxLua_wxGrid_SetColLabelValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetColLabelValue }}; -// void SetColLabelValue(int col, const wxString& value); -static int LUACALL wxLua_wxGrid_SetColLabelValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColLabelValue - self->SetColLabelValue(col, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColMinimalAcceptableWidth[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColMinimalAcceptableWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColMinimalAcceptableWidth[1] = {{ wxLua_wxGrid_SetColMinimalAcceptableWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetColMinimalAcceptableWidth }}; -// void SetColMinimalAcceptableWidth(int width); -static int LUACALL wxLua_wxGrid_SetColMinimalAcceptableWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColMinimalAcceptableWidth - self->SetColMinimalAcceptableWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColMinimalWidth[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColMinimalWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColMinimalWidth[1] = {{ wxLua_wxGrid_SetColMinimalWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetColMinimalWidth }}; -// void SetColMinimalWidth(int col, int width); -static int LUACALL wxLua_wxGrid_SetColMinimalWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColMinimalWidth - self->SetColMinimalWidth(col, width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetColSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetColSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetColSize[1] = {{ wxLua_wxGrid_SetColSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetColSize }}; -// void SetColSize(int col, int width); -static int LUACALL wxLua_wxGrid_SetColSize(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetColSize - self->SetColSize(col, width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellAlignment[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultCellAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultCellAlignment[1] = {{ wxLua_wxGrid_SetDefaultCellAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellAlignment }}; -// void SetDefaultCellAlignment(int horiz, int vert); -static int LUACALL wxLua_wxGrid_SetDefaultCellAlignment(lua_State *L) -{ - // int vert - int vert = (int)wxlua_getnumbertype(L, 3); - // int horiz - int horiz = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultCellAlignment - self->SetDefaultCellAlignment(horiz, vert); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellBackgroundColour[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultCellBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultCellBackgroundColour[1] = {{ wxLua_wxGrid_SetDefaultCellBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellBackgroundColour }}; -// void SetDefaultCellBackgroundColour(const wxColour& backColour); -static int LUACALL wxLua_wxGrid_SetDefaultCellBackgroundColour(lua_State *L) -{ - // const wxColour backColour - const wxColour * backColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultCellBackgroundColour - self->SetDefaultCellBackgroundColour(*backColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellFont[] = { &wxluatype_wxGrid, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultCellFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultCellFont[1] = {{ wxLua_wxGrid_SetDefaultCellFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellFont }}; -// void SetDefaultCellFont(const wxFont& cellFont); -static int LUACALL wxLua_wxGrid_SetDefaultCellFont(lua_State *L) -{ - // const wxFont cellFont - const wxFont * cellFont = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultCellFont - self->SetDefaultCellFont(*cellFont); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellOverflow[] = { &wxluatype_wxGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultCellOverflow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultCellOverflow[1] = {{ wxLua_wxGrid_SetDefaultCellOverflow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellOverflow }}; -// void SetDefaultCellOverflow(bool allow); -static int LUACALL wxLua_wxGrid_SetDefaultCellOverflow(lua_State *L) -{ - // bool allow - bool allow = wxlua_getbooleantype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultCellOverflow - self->SetDefaultCellOverflow(allow); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellTextColour[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultCellTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultCellTextColour[1] = {{ wxLua_wxGrid_SetDefaultCellTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetDefaultCellTextColour }}; -// void SetDefaultCellTextColour(const wxColour& textColour); -static int LUACALL wxLua_wxGrid_SetDefaultCellTextColour(lua_State *L) -{ - // const wxColour textColour - const wxColour * textColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultCellTextColour - self->SetDefaultCellTextColour(*textColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultColSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultColSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultColSize[1] = {{ wxLua_wxGrid_SetDefaultColSize, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGrid_SetDefaultColSize }}; -// void SetDefaultColSize(int width, bool resizeExistingCols = false); -static int LUACALL wxLua_wxGrid_SetDefaultColSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool resizeExistingCols = false - bool resizeExistingCols = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultColSize - self->SetDefaultColSize(width, resizeExistingCols); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultEditor[] = { &wxluatype_wxGrid, &wxluatype_wxGridCellEditor, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultEditor[1] = {{ wxLua_wxGrid_SetDefaultEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetDefaultEditor }}; -// void SetDefaultEditor(%IncRef wxGridCellEditor *editor); -static int LUACALL wxLua_wxGrid_SetDefaultEditor(lua_State *L) -{ - // wxGridCellEditor editor - wxGridCellEditor * editor = (wxGridCellEditor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellEditor); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - editor->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultEditor - self->SetDefaultEditor(editor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultRenderer[] = { &wxluatype_wxGrid, &wxluatype_wxGridCellRenderer, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultRenderer[1] = {{ wxLua_wxGrid_SetDefaultRenderer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetDefaultRenderer }}; -// void SetDefaultRenderer(%IncRef wxGridCellRenderer *renderer); -static int LUACALL wxLua_wxGrid_SetDefaultRenderer(lua_State *L) -{ - // wxGridCellRenderer renderer - wxGridCellRenderer * renderer = (wxGridCellRenderer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridCellRenderer); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - renderer->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultRenderer - self->SetDefaultRenderer(renderer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetDefaultRowSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SetDefaultRowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetDefaultRowSize[1] = {{ wxLua_wxGrid_SetDefaultRowSize, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGrid_SetDefaultRowSize }}; -// void SetDefaultRowSize(int height, bool resizeExistingRows = false); -static int LUACALL wxLua_wxGrid_SetDefaultRowSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool resizeExistingRows = false - bool resizeExistingRows = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetDefaultRowSize - self->SetDefaultRowSize(height, resizeExistingRows); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetGridCursor[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetGridCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetGridCursor[1] = {{ wxLua_wxGrid_SetGridCursor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetGridCursor }}; -// void SetGridCursor(int row, int col); -static int LUACALL wxLua_wxGrid_SetGridCursor(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetGridCursor - self->SetGridCursor(row, col); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetGridLineColour[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetGridLineColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetGridLineColour[1] = {{ wxLua_wxGrid_SetGridLineColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetGridLineColour }}; -// void SetGridLineColour(const wxColour& lineColour); -static int LUACALL wxLua_wxGrid_SetGridLineColour(lua_State *L) -{ - // const wxColour lineColour - const wxColour * lineColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetGridLineColour - self->SetGridLineColour(*lineColour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetLabelBackgroundColour[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetLabelBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetLabelBackgroundColour[1] = {{ wxLua_wxGrid_SetLabelBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetLabelBackgroundColour }}; -// void SetLabelBackgroundColour(const wxColour& backColour); -static int LUACALL wxLua_wxGrid_SetLabelBackgroundColour(lua_State *L) -{ - // const wxColour backColour - const wxColour * backColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetLabelBackgroundColour - self->SetLabelBackgroundColour(*backColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetLabelFont[] = { &wxluatype_wxGrid, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxGrid_SetLabelFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetLabelFont[1] = {{ wxLua_wxGrid_SetLabelFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetLabelFont }}; -// void SetLabelFont(const wxFont& labelFont); -static int LUACALL wxLua_wxGrid_SetLabelFont(lua_State *L) -{ - // const wxFont labelFont - const wxFont * labelFont = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetLabelFont - self->SetLabelFont(*labelFont); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetLabelTextColour[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetLabelTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetLabelTextColour[1] = {{ wxLua_wxGrid_SetLabelTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetLabelTextColour }}; -// void SetLabelTextColour(const wxColour& textColour); -static int LUACALL wxLua_wxGrid_SetLabelTextColour(lua_State *L) -{ - // const wxColour textColour - const wxColour * textColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetLabelTextColour - self->SetLabelTextColour(*textColour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetMargins[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetMargins[1] = {{ wxLua_wxGrid_SetMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetMargins }}; -// void SetMargins(int extraWidth, int extraHeight); -static int LUACALL wxLua_wxGrid_SetMargins(lua_State *L) -{ - // int extraHeight - int extraHeight = (int)wxlua_getnumbertype(L, 3); - // int extraWidth - int extraWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetMargins - self->SetMargins(extraWidth, extraHeight); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetReadOnly[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGrid_SetReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetReadOnly[1] = {{ wxLua_wxGrid_SetReadOnly, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGrid_SetReadOnly }}; -// void SetReadOnly(int row, int col, bool isReadOnly = true); -static int LUACALL wxLua_wxGrid_SetReadOnly(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isReadOnly = true - bool isReadOnly = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetReadOnly - self->SetReadOnly(row, col, isReadOnly); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowAttr[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_wxGridCellAttr, NULL }; -static int LUACALL wxLua_wxGrid_SetRowAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowAttr[1] = {{ wxLua_wxGrid_SetRowAttr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetRowAttr }}; -// void SetRowAttr(int row, %IncRef wxGridCellAttr *attr); -static int LUACALL wxLua_wxGrid_SetRowAttr(lua_State *L) -{ - // wxGridCellAttr attr - wxGridCellAttr * attr = (wxGridCellAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGridCellAttr); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // This param will have DecRef() called on it so we IncRef() it to not have to worry about the Lua gc - attr->IncRef(); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowAttr - self->SetRowAttr(row, attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowLabelAlignment[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetRowLabelAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowLabelAlignment[1] = {{ wxLua_wxGrid_SetRowLabelAlignment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetRowLabelAlignment }}; -// void SetRowLabelAlignment(int horiz, int vert); -static int LUACALL wxLua_wxGrid_SetRowLabelAlignment(lua_State *L) -{ - // int vert - int vert = (int)wxlua_getnumbertype(L, 3); - // int horiz - int horiz = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowLabelAlignment - self->SetRowLabelAlignment(horiz, vert); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowLabelSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetRowLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowLabelSize[1] = {{ wxLua_wxGrid_SetRowLabelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetRowLabelSize }}; -// void SetRowLabelSize(int width); -static int LUACALL wxLua_wxGrid_SetRowLabelSize(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowLabelSize - self->SetRowLabelSize(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowLabelValue[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_SetRowLabelValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowLabelValue[1] = {{ wxLua_wxGrid_SetRowLabelValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetRowLabelValue }}; -// void SetRowLabelValue(int row, const wxString& value); -static int LUACALL wxLua_wxGrid_SetRowLabelValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowLabelValue - self->SetRowLabelValue(row, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowMinimalAcceptableHeight[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetRowMinimalAcceptableHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowMinimalAcceptableHeight[1] = {{ wxLua_wxGrid_SetRowMinimalAcceptableHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetRowMinimalAcceptableHeight }}; -// void SetRowMinimalAcceptableHeight(int width); -static int LUACALL wxLua_wxGrid_SetRowMinimalAcceptableHeight(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowMinimalAcceptableHeight - self->SetRowMinimalAcceptableHeight(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowMinimalHeight[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetRowMinimalHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowMinimalHeight[1] = {{ wxLua_wxGrid_SetRowMinimalHeight, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetRowMinimalHeight }}; -// void SetRowMinimalHeight(int row, int width); -static int LUACALL wxLua_wxGrid_SetRowMinimalHeight(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowMinimalHeight - self->SetRowMinimalHeight(row, width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetRowSize[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_SetRowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetRowSize[1] = {{ wxLua_wxGrid_SetRowSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_SetRowSize }}; -// void SetRowSize(int row, int height); -static int LUACALL wxLua_wxGrid_SetRowSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetRowSize - self->SetRowSize(row, height); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetSelectionBackground[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetSelectionBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetSelectionBackground[1] = {{ wxLua_wxGrid_SetSelectionBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetSelectionBackground }}; -// void SetSelectionBackground(const wxColour& c); -static int LUACALL wxLua_wxGrid_SetSelectionBackground(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetSelectionBackground - self->SetSelectionBackground(*c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetSelectionForeground[] = { &wxluatype_wxGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGrid_SetSelectionForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetSelectionForeground[1] = {{ wxLua_wxGrid_SetSelectionForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetSelectionForeground }}; -// void SetSelectionForeground(const wxColour& c); -static int LUACALL wxLua_wxGrid_SetSelectionForeground(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetSelectionForeground - self->SetSelectionForeground(*c); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetSelectionMode[] = { &wxluatype_wxGrid, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGrid_SetSelectionMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetSelectionMode[1] = {{ wxLua_wxGrid_SetSelectionMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_SetSelectionMode }}; -// void SetSelectionMode(wxGrid::wxGridSelectionModes selmode); -static int LUACALL wxLua_wxGrid_SetSelectionMode(lua_State *L) -{ - // wxGrid::wxGridSelectionModes selmode - wxGrid::wxGridSelectionModes selmode = (wxGrid::wxGridSelectionModes)wxlua_getenumtype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetSelectionMode - self->SetSelectionMode(selmode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_SetTable[] = { &wxluatype_wxGrid, &wxluatype_wxGridTableBase, &wxluatype_TBOOLEAN, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGrid_SetTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_SetTable[1] = {{ wxLua_wxGrid_SetTable, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxGrid_SetTable }}; -// %override wxLua_wxGrid_SetTable -// bool SetTable(wxGridTableBase *table, bool takeOwnership = false, -// wxGrid::wxGridSelectionModes selmode = -// wxGrid::wxGridSelectCells) -static int LUACALL wxLua_wxGrid_SetTable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxGrid::wxGridSelectionModes selmode = wxGrid::wxGridSelectCells - wxGrid::wxGridSelectionModes selmode = (argCount >= 4 ? (wxGrid::wxGridSelectionModes)wxlua_getenumtype(L, 4) : wxGrid::wxGridSelectCells); - // bool takeOwnership = false - bool takeOwnership = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxGridTableBase table - wxGridTableBase * table = (wxGridTableBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridTableBase); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call SetTable - bool returns = (self->SetTable(table, takeOwnership, selmode)); - - if (returns && takeOwnership) - { - // The wxGrid is now responsible for deleting it - if (wxluaO_isgcobject(L, table)) wxluaO_undeletegcobject(L, table); - } - - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_ShowCellEditControl[] = { &wxluatype_wxGrid, NULL }; -static int LUACALL wxLua_wxGrid_ShowCellEditControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_ShowCellEditControl[1] = {{ wxLua_wxGrid_ShowCellEditControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_ShowCellEditControl }}; -// void ShowCellEditControl(); -static int LUACALL wxLua_wxGrid_ShowCellEditControl(lua_State *L) -{ - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call ShowCellEditControl - self->ShowCellEditControl(); - - return 0; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_StringToLines[] = { &wxluatype_wxGrid, &wxluatype_TSTRING, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxGrid_StringToLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_StringToLines[1] = {{ wxLua_wxGrid_StringToLines, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGrid_StringToLines }}; -// void StringToLines(const wxString& value, wxArrayString& lines); -static int LUACALL wxLua_wxGrid_StringToLines(lua_State *L) -{ - // wxArrayString lines - wxArrayString * lines = (wxArrayString *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayString); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call StringToLines - self->StringToLines(value, *lines); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_XToCol[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_XToCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_XToCol[1] = {{ wxLua_wxGrid_XToCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_XToCol }}; -// int XToCol(int x); -static int LUACALL wxLua_wxGrid_XToCol(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call XToCol - int returns = (self->XToCol(x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_XToEdgeOfCol[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_XToEdgeOfCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_XToEdgeOfCol[1] = {{ wxLua_wxGrid_XToEdgeOfCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_XToEdgeOfCol }}; -// int XToEdgeOfCol(int x); -static int LUACALL wxLua_wxGrid_XToEdgeOfCol(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call XToEdgeOfCol - int returns = (self->XToEdgeOfCol(x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_XYToCell[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGridCellCoords, NULL }; -static int LUACALL wxLua_wxGrid_XYToCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_XYToCell[1] = {{ wxLua_wxGrid_XYToCell, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGrid_XYToCell }}; -// void XYToCell(int x, int y, wxGridCellCoords& coords); -static int LUACALL wxLua_wxGrid_XYToCell(lua_State *L) -{ - // wxGridCellCoords coords - wxGridCellCoords * coords = (wxGridCellCoords *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellCoords); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call XYToCell - self->XYToCell(x, y, *coords); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_YToEdgeOfRow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_YToEdgeOfRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_YToEdgeOfRow[1] = {{ wxLua_wxGrid_YToEdgeOfRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_YToEdgeOfRow }}; -// int YToEdgeOfRow(int y); -static int LUACALL wxLua_wxGrid_YToEdgeOfRow(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call YToEdgeOfRow - int returns = (self->YToEdgeOfRow(y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_YToRow[] = { &wxluatype_wxGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGrid_YToRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_YToRow[1] = {{ wxLua_wxGrid_YToRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_YToRow }}; -// int YToRow(int y); -static int LUACALL wxLua_wxGrid_YToRow(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 2); - // get this - wxGrid * self = (wxGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGrid); - // call YToRow - int returns = (self->YToRow(y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGrid_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGrid_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_constructor[1] = {{ wxLua_wxGrid_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxGrid_constructor }}; -// wxGrid(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxWANTS_CHARS, const wxString &name = "wxGrid"); -static int LUACALL wxLua_wxGrid_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxGrid" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxGrid"))); - // long style = wxWANTS_CHARS - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxWANTS_CHARS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGrid* returns = new wxGrid(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGrid); - - return 1; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragColSize_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGrid_CanDragColSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_CanDragColSize1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGrid_CanDragColSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanDragColSize }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -}; -static int s_wxluafunc_wxLua_wxGrid_CanDragColSize_overload_count = sizeof(s_wxluafunc_wxLua_wxGrid_CanDragColSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGrid_CanDragRowSize_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGrid_CanDragRowSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGrid_CanDragRowSize1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { wxLua_wxGrid_CanDragRowSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGrid_CanDragRowSize }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) -}; -static int s_wxluafunc_wxLua_wxGrid_CanDragRowSize_overload_count = sizeof(s_wxluafunc_wxLua_wxGrid_CanDragRowSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - -void wxLua_wxGrid_delete_function(void** p) -{ - wxGrid* o = (wxGrid*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGrid_methods[] = { - { "AppendCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AppendCols, 1, NULL }, - { "AppendRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AppendRows, 1, NULL }, - { "AutoSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSize, 1, NULL }, - { "AutoSizeColLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSizeColLabelSize, 1, NULL }, - { "AutoSizeColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSizeColumn, 1, NULL }, - { "AutoSizeColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSizeColumns, 1, NULL }, - { "AutoSizeRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSizeRow, 1, NULL }, - { "AutoSizeRowLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSizeRowLabelSize, 1, NULL }, - { "AutoSizeRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_AutoSizeRows, 1, NULL }, - { "BeginBatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_BeginBatch, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - { "BlockToDeviceRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_BlockToDeviceRect, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - { "CanDragCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CanDragCell, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - { "CanDragColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CanDragColSize_overload, s_wxluafunc_wxLua_wxGrid_CanDragColSize_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - - { "CanDragGridSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CanDragGridSize, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - { "CanDragRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CanDragRowSize_overload, s_wxluafunc_wxLua_wxGrid_CanDragRowSize_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID))||((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) - - { "CanEnableCellControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CanEnableCellControl, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - { "CellToRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CellToRect, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - { "ClearGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_ClearGrid, 1, NULL }, - { "ClearSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_ClearSelection, 1, NULL }, - { "CreateGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_CreateGrid, 1, NULL }, - { "DeleteCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DeleteCols, 1, NULL }, - { "DeleteRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DeleteRows, 1, NULL }, - { "DeselectCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DeselectCell, 1, NULL }, - { "DeselectCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DeselectCol, 1, NULL }, - { "DeselectRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DeselectRow, 1, NULL }, - { "DisableCellEditControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DisableCellEditControl, 1, NULL }, - { "DisableDragCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DisableDragCell, 1, NULL }, - { "DisableDragColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DisableDragColSize, 1, NULL }, - { "DisableDragGridSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DisableDragGridSize, 1, NULL }, - { "DisableDragRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DisableDragRowSize, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - { "DrawTextRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_DrawTextRectangle, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxPointSizeRect) - - { "EnableCellEditControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableCellEditControl, 1, NULL }, - { "EnableDragCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableDragCell, 1, NULL }, - { "EnableDragColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableDragColSize, 1, NULL }, - { "EnableDragGridSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableDragGridSize, 1, NULL }, - { "EnableDragRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableDragRowSize, 1, NULL }, - { "EnableEditing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableEditing, 1, NULL }, - { "EnableGridLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EnableGridLines, 1, NULL }, - { "EndBatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_EndBatch, 1, NULL }, - { "ForceRefresh", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_ForceRefresh, 1, NULL }, - { "GetBatchCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetBatchCount, 1, NULL }, - { "GetCellAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetCellBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetCellEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellEditor, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetCellFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetCellHighlightColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellHighlightColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetCellHighlightPenWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellHighlightPenWidth, 1, NULL }, - { "GetCellHighlightROPenWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellHighlightROPenWidth, 1, NULL }, - { "GetCellOverflow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellOverflow, 1, NULL }, - { "GetCellRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellRenderer, 1, NULL }, - { "GetCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellSize, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetCellTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetCellValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetCellValue, 1, NULL }, - { "GetColLabelAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetColLabelAlignment, 1, NULL }, - { "GetColLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetColLabelSize, 1, NULL }, - { "GetColLabelTextOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetColLabelTextOrientation, 1, NULL }, - { "GetColLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetColLabelValue, 1, NULL }, - { "GetColMinimalAcceptableWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetColMinimalAcceptableWidth, 1, NULL }, - { "GetColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetColSize, 1, NULL }, - { "GetDefaultCellAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultCellAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetDefaultCellBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultCellBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetDefaultCellFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultCellFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetDefaultCellOverflow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultCellOverflow, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetDefaultCellTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultCellTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetDefaultColLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultColLabelSize, 1, NULL }, - { "GetDefaultColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultColSize, 1, NULL }, - { "GetDefaultEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultEditor, 1, NULL }, - { "GetDefaultEditorForCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultEditorForCell, 1, NULL }, - { "GetDefaultEditorForType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultEditorForType, 1, NULL }, - { "GetDefaultRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultRenderer, 1, NULL }, - { "GetDefaultRendererForCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultRendererForCell, 1, NULL }, - { "GetDefaultRendererForType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultRendererForType, 1, NULL }, - { "GetDefaultRowLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultRowLabelSize, 1, NULL }, - { "GetDefaultRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetDefaultRowSize, 1, NULL }, - { "GetGridColLabelWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridColLabelWindow, 1, NULL }, - { "GetGridCornerLabelWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridCornerLabelWindow, 1, NULL }, - { "GetGridCursorCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridCursorCol, 1, NULL }, - { "GetGridCursorRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridCursorRow, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetGridLineColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridLineColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetGridRowLabelWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridRowLabelWindow, 1, NULL }, - { "GetGridWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetGridWindow, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetLabelBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetLabelBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetLabelFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetLabelFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetLabelTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetLabelTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetNumberCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetNumberCols, 1, NULL }, - { "GetNumberRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetNumberRows, 1, NULL }, - { "GetOrCreateCellAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetOrCreateCellAttr, 1, NULL }, - { "GetRowLabelAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetRowLabelAlignment, 1, NULL }, - { "GetRowLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetRowLabelSize, 1, NULL }, - { "GetRowLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetRowLabelValue, 1, NULL }, - { "GetRowMinimalAcceptableHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetRowMinimalAcceptableHeight, 1, NULL }, - { "GetRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetRowSize, 1, NULL }, - { "GetSelectedCells", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectedCells, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetSelectedCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectedCols, 1, NULL }, - { "GetSelectedRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectedRows, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetSelectionBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectionBackground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetSelectionBlockBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectionBlockBottomRight, 1, NULL }, - { "GetSelectionBlockTopLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectionBlockTopLeft, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetSelectionForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectionForeground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GetSelectionMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetSelectionMode, 1, NULL }, - { "GetTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetTable, 1, NULL }, - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "GetTextBoxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GetTextBoxSize, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "GridLinesEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_GridLinesEnabled, 1, NULL }, - { "HideCellEditControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_HideCellEditControl, 1, NULL }, - { "InsertCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_InsertCols, 1, NULL }, - { "InsertRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_InsertRows, 1, NULL }, - { "IsCellEditControlEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsCellEditControlEnabled, 1, NULL }, - { "IsCellEditControlShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsCellEditControlShown, 1, NULL }, - { "IsCurrentCellReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsCurrentCellReadOnly, 1, NULL }, - { "IsEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsEditable, 1, NULL }, - { "IsInSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsInSelection, 1, NULL }, - { "IsReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsReadOnly, 1, NULL }, - { "IsSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsSelection, 1, NULL }, - { "IsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_IsVisible, 1, NULL }, - { "MakeCellVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MakeCellVisible, 1, NULL }, - { "MoveCursorDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorDown, 1, NULL }, - { "MoveCursorDownBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorDownBlock, 1, NULL }, - { "MoveCursorLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorLeft, 1, NULL }, - { "MoveCursorLeftBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorLeftBlock, 1, NULL }, - { "MoveCursorRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorRight, 1, NULL }, - { "MoveCursorRightBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorRightBlock, 1, NULL }, - { "MoveCursorUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorUp, 1, NULL }, - { "MoveCursorUpBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MoveCursorUpBlock, 1, NULL }, - { "MovePageDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MovePageDown, 1, NULL }, - { "MovePageUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_MovePageUp, 1, NULL }, - { "ProcessTableMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_ProcessTableMessage, 1, NULL }, - { "RegisterDataType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_RegisterDataType, 1, NULL }, - { "SaveEditControlValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SaveEditControlValue, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SelectAll, 1, NULL }, - { "SelectBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SelectBlock, 1, NULL }, - { "SelectCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SelectCol, 1, NULL }, - { "SelectRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SelectRow, 1, NULL }, - { "SetAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetAttr, 1, NULL }, - { "SetCellAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetCellBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetCellEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellEditor, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetCellFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetCellHighlightColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellHighlightColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetCellHighlightPenWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellHighlightPenWidth, 1, NULL }, - { "SetCellHighlightROPenWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellHighlightROPenWidth, 1, NULL }, - { "SetCellOverflow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellOverflow, 1, NULL }, - { "SetCellRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellRenderer, 1, NULL }, - { "SetCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellSize, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetCellTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetCellValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetCellValue, 1, NULL }, - { "SetColAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColAttr, 1, NULL }, - { "SetColFormatBool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColFormatBool, 1, NULL }, - { "SetColFormatCustom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColFormatCustom, 1, NULL }, - { "SetColFormatFloat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColFormatFloat, 1, NULL }, - { "SetColFormatNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColFormatNumber, 1, NULL }, - { "SetColLabelAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColLabelAlignment, 1, NULL }, - { "SetColLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColLabelSize, 1, NULL }, - { "SetColLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColLabelValue, 1, NULL }, - { "SetColMinimalAcceptableWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColMinimalAcceptableWidth, 1, NULL }, - { "SetColMinimalWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColMinimalWidth, 1, NULL }, - { "SetColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetColSize, 1, NULL }, - { "SetDefaultCellAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultCellAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetDefaultCellBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultCellBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetDefaultCellFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultCellFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetDefaultCellOverflow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultCellOverflow, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetDefaultCellTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultCellTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetDefaultColSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultColSize, 1, NULL }, - { "SetDefaultEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultEditor, 1, NULL }, - { "SetDefaultRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultRenderer, 1, NULL }, - { "SetDefaultRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetDefaultRowSize, 1, NULL }, - { "SetGridCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetGridCursor, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetGridLineColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetGridLineColour, 1, NULL }, - { "SetLabelBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetLabelBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetLabelFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetLabelFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetLabelTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetLabelTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetMargins, 1, NULL }, - { "SetReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetReadOnly, 1, NULL }, - { "SetRowAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowAttr, 1, NULL }, - { "SetRowLabelAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowLabelAlignment, 1, NULL }, - { "SetRowLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowLabelSize, 1, NULL }, - { "SetRowLabelValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowLabelValue, 1, NULL }, - { "SetRowMinimalAcceptableHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowMinimalAcceptableHeight, 1, NULL }, - { "SetRowMinimalHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowMinimalHeight, 1, NULL }, - { "SetRowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetRowSize, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "SetSelectionBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetSelectionBackground, 1, NULL }, - { "SetSelectionForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetSelectionForeground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "SetSelectionMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetSelectionMode, 1, NULL }, - { "SetTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_SetTable, 1, NULL }, - { "ShowCellEditControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_ShowCellEditControl, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "StringToLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_StringToLines, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxGrid && wxUSE_GRID) - - { "XToCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_XToCol, 1, NULL }, - { "XToEdgeOfCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_XToEdgeOfCol, 1, NULL }, - { "XYToCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_XYToCell, 1, NULL }, - { "YToEdgeOfRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_YToEdgeOfRow, 1, NULL }, - { "YToRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGrid_YToRow, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - { "wxGrid", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGrid_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxGrid_methodCount = sizeof(wxGrid_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxGrid_enums[] = { -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "wxGridSelectCells", wxGrid::wxGridSelectCells }, - { "wxGridSelectColumns", wxGrid::wxGridSelectColumns }, - { "wxGridSelectRows", wxGrid::wxGridSelectRows }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - { NULL, 0, }, -}; -int wxGrid_enumCount = sizeof(wxGrid_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridEvent' -int wxluatype_wxGridEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_AltDown[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_AltDown[1] = {{ wxLua_wxGridEvent_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_AltDown }}; -// bool AltDown(); -static int LUACALL wxLua_wxGridEvent_AltDown(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_ControlDown[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_ControlDown[1] = {{ wxLua_wxGridEvent_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_ControlDown }}; -// bool ControlDown(); -static int LUACALL wxLua_wxGridEvent_ControlDown(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_GetCol[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_GetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_GetCol[1] = {{ wxLua_wxGridEvent_GetCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_GetCol }}; -// virtual int GetCol(); -static int LUACALL wxLua_wxGridEvent_GetCol(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call GetCol - int returns = (self->GetCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_GetPosition[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_GetPosition[1] = {{ wxLua_wxGridEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_GetPosition }}; -// wxPoint GetPosition(); -static int LUACALL wxLua_wxGridEvent_GetPosition(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_GetRow[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_GetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_GetRow[1] = {{ wxLua_wxGridEvent_GetRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_GetRow }}; -// virtual int GetRow(); -static int LUACALL wxLua_wxGridEvent_GetRow(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call GetRow - int returns = (self->GetRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_MetaDown[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_MetaDown[1] = {{ wxLua_wxGridEvent_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_MetaDown }}; -// bool MetaDown(); -static int LUACALL wxLua_wxGridEvent_MetaDown(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_Selecting[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_Selecting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_Selecting[1] = {{ wxLua_wxGridEvent_Selecting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_Selecting }}; -// bool Selecting(); -static int LUACALL wxLua_wxGridEvent_Selecting(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call Selecting - bool returns = (self->Selecting()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_ShiftDown[] = { &wxluatype_wxGridEvent, NULL }; -static int LUACALL wxLua_wxGridEvent_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_ShiftDown[1] = {{ wxLua_wxGridEvent_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_ShiftDown }}; -// bool ShiftDown(); -static int LUACALL wxLua_wxGridEvent_ShiftDown(lua_State *L) -{ - // get this - wxGridEvent * self = (wxGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEvent); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_delete[] = { &wxluatype_wxGridEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridEvent_delete }}; - - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEvent_constructor[1] = {{ wxLua_wxGridEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 12, s_wxluatypeArray_wxLua_wxGridEvent_constructor }}; -// !%wxchkver_2_9_0 wxGridEvent(int id, wxEventType type, wxObject* obj, int row = -1, int col = -1, int x = -1, int y = -1, bool sel = true, bool control = false, bool shift = false, bool alt = false, bool meta = false); -static int LUACALL wxLua_wxGridEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool meta = false - bool meta = (argCount >= 12 ? wxlua_getbooleantype(L, 12) : false); - // bool alt = false - bool alt = (argCount >= 11 ? wxlua_getbooleantype(L, 11) : false); - // bool shift = false - bool shift = (argCount >= 10 ? wxlua_getbooleantype(L, 10) : false); - // bool control = false - bool control = (argCount >= 9 ? wxlua_getbooleantype(L, 9) : false); - // bool sel = true - bool sel = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : true); - // int y = -1 - int y = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : -1); - // int x = -1 - int x = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int col = -1 - int col = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int row = -1 - int row = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxObject obj - wxObject * obj = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 2); - // int id - int id = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxGridEvent* returns = new wxGridEvent(id, type, obj, row, col, x, y, sel, control, shift, alt, meta); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridEvent); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - - - -void wxLua_wxGridEvent_delete_function(void** p) -{ - wxGridEvent* o = (wxGridEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridEvent_methods[] = { - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_AltDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_ControlDown, 1, NULL }, - { "GetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_GetCol, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - { "GetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_GetRow, 1, NULL }, - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_MetaDown, 1, NULL }, - { "Selecting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_Selecting, 1, NULL }, - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEvent_ShiftDown, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridEvent_delete, 1, NULL }, - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - { "wxGridEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridEvent_constructor, 1, NULL }, -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxGridEvent_methodCount = sizeof(wxGridEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridSizeEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridSizeEvent' -int wxluatype_wxGridSizeEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_AltDown[] = { &wxluatype_wxGridSizeEvent, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_AltDown[1] = {{ wxLua_wxGridSizeEvent_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_AltDown }}; -// bool AltDown(); -static int LUACALL wxLua_wxGridSizeEvent_AltDown(lua_State *L) -{ - // get this - wxGridSizeEvent * self = (wxGridSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizeEvent); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_ControlDown[] = { &wxluatype_wxGridSizeEvent, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_ControlDown[1] = {{ wxLua_wxGridSizeEvent_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_ControlDown }}; -// bool ControlDown(); -static int LUACALL wxLua_wxGridSizeEvent_ControlDown(lua_State *L) -{ - // get this - wxGridSizeEvent * self = (wxGridSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizeEvent); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_GetPosition[] = { &wxluatype_wxGridSizeEvent, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_GetPosition[1] = {{ wxLua_wxGridSizeEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_GetPosition }}; -// wxPoint GetPosition(); -static int LUACALL wxLua_wxGridSizeEvent_GetPosition(lua_State *L) -{ - // get this - wxGridSizeEvent * self = (wxGridSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizeEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_GetRowOrCol[] = { &wxluatype_wxGridSizeEvent, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_GetRowOrCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_GetRowOrCol[1] = {{ wxLua_wxGridSizeEvent_GetRowOrCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_GetRowOrCol }}; -// int GetRowOrCol(); -static int LUACALL wxLua_wxGridSizeEvent_GetRowOrCol(lua_State *L) -{ - // get this - wxGridSizeEvent * self = (wxGridSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizeEvent); - // call GetRowOrCol - int returns = (self->GetRowOrCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_MetaDown[] = { &wxluatype_wxGridSizeEvent, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_MetaDown[1] = {{ wxLua_wxGridSizeEvent_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_MetaDown }}; -// bool MetaDown(); -static int LUACALL wxLua_wxGridSizeEvent_MetaDown(lua_State *L) -{ - // get this - wxGridSizeEvent * self = (wxGridSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizeEvent); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_ShiftDown[] = { &wxluatype_wxGridSizeEvent, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_ShiftDown[1] = {{ wxLua_wxGridSizeEvent_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_ShiftDown }}; -// bool ShiftDown(); -static int LUACALL wxLua_wxGridSizeEvent_ShiftDown(lua_State *L) -{ - // get this - wxGridSizeEvent * self = (wxGridSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizeEvent); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_delete[] = { &wxluatype_wxGridSizeEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridSizeEvent_delete }}; - - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizeEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridSizeEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizeEvent_constructor[1] = {{ wxLua_wxGridSizeEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 10, s_wxluatypeArray_wxLua_wxGridSizeEvent_constructor }}; -// !%wxchkver_2_9_0 wxGridSizeEvent(int id, wxEventType type, wxObject* obj, int rowOrCol = -1, int x = -1, int y = -1, bool control = false, bool shift = false, bool alt = false, bool meta = false); -static int LUACALL wxLua_wxGridSizeEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool meta = false - bool meta = (argCount >= 10 ? wxlua_getbooleantype(L, 10) : false); - // bool alt = false - bool alt = (argCount >= 9 ? wxlua_getbooleantype(L, 9) : false); - // bool shift = false - bool shift = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : false); - // bool control = false - bool control = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : false); - // int y = -1 - int y = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int x = -1 - int x = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int rowOrCol = -1 - int rowOrCol = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxObject obj - wxObject * obj = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 2); - // int id - int id = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxGridSizeEvent* returns = new wxGridSizeEvent(id, type, obj, rowOrCol, x, y, control, shift, alt, meta); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridSizeEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridSizeEvent); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - - - -void wxLua_wxGridSizeEvent_delete_function(void** p) -{ - wxGridSizeEvent* o = (wxGridSizeEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridSizeEvent_methods[] = { - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizeEvent_AltDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizeEvent_ControlDown, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizeEvent_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxPointSizeRect) - - { "GetRowOrCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizeEvent_GetRowOrCol, 1, NULL }, - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizeEvent_MetaDown, 1, NULL }, - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizeEvent_ShiftDown, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridSizeEvent_delete, 1, NULL }, - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - { "wxGridSizeEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridSizeEvent_constructor, 1, NULL }, -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxGridSizeEvent_methodCount = sizeof(wxGridSizeEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridRangeSelectEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridRangeSelectEvent' -int wxluatype_wxGridRangeSelectEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_AltDown[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_AltDown[1] = {{ wxLua_wxGridRangeSelectEvent_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_AltDown }}; -// bool AltDown(); -static int LUACALL wxLua_wxGridRangeSelectEvent_AltDown(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_ControlDown[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_ControlDown[1] = {{ wxLua_wxGridRangeSelectEvent_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_ControlDown }}; -// bool ControlDown(); -static int LUACALL wxLua_wxGridRangeSelectEvent_ControlDown(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetBottomRightCoords[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_GetBottomRightCoords(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetBottomRightCoords[1] = {{ wxLua_wxGridRangeSelectEvent_GetBottomRightCoords, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetBottomRightCoords }}; -// wxGridCellCoords GetBottomRightCoords(); -static int LUACALL wxLua_wxGridRangeSelectEvent_GetBottomRightCoords(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call GetBottomRightCoords - // allocate a new object using the copy constructor - wxGridCellCoords* returns = new wxGridCellCoords(self->GetBottomRightCoords()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoords); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoords); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetBottomRow[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_GetBottomRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetBottomRow[1] = {{ wxLua_wxGridRangeSelectEvent_GetBottomRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetBottomRow }}; -// int GetBottomRow(); -static int LUACALL wxLua_wxGridRangeSelectEvent_GetBottomRow(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call GetBottomRow - int returns = (self->GetBottomRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetLeftCol[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_GetLeftCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetLeftCol[1] = {{ wxLua_wxGridRangeSelectEvent_GetLeftCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetLeftCol }}; -// int GetLeftCol(); -static int LUACALL wxLua_wxGridRangeSelectEvent_GetLeftCol(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call GetLeftCol - int returns = (self->GetLeftCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetRightCol[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_GetRightCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetRightCol[1] = {{ wxLua_wxGridRangeSelectEvent_GetRightCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetRightCol }}; -// int GetRightCol(); -static int LUACALL wxLua_wxGridRangeSelectEvent_GetRightCol(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call GetRightCol - int returns = (self->GetRightCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetTopLeftCoords[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_GetTopLeftCoords(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetTopLeftCoords[1] = {{ wxLua_wxGridRangeSelectEvent_GetTopLeftCoords, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetTopLeftCoords }}; -// wxGridCellCoords GetTopLeftCoords(); -static int LUACALL wxLua_wxGridRangeSelectEvent_GetTopLeftCoords(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call GetTopLeftCoords - // allocate a new object using the copy constructor - wxGridCellCoords* returns = new wxGridCellCoords(self->GetTopLeftCoords()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridCellCoords); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridCellCoords); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetTopRow[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_GetTopRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetTopRow[1] = {{ wxLua_wxGridRangeSelectEvent_GetTopRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_GetTopRow }}; -// int GetTopRow(); -static int LUACALL wxLua_wxGridRangeSelectEvent_GetTopRow(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call GetTopRow - int returns = (self->GetTopRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_MetaDown[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_MetaDown[1] = {{ wxLua_wxGridRangeSelectEvent_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_MetaDown }}; -// bool MetaDown(); -static int LUACALL wxLua_wxGridRangeSelectEvent_MetaDown(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_Selecting[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_Selecting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_Selecting[1] = {{ wxLua_wxGridRangeSelectEvent_Selecting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_Selecting }}; -// bool Selecting(); -static int LUACALL wxLua_wxGridRangeSelectEvent_Selecting(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call Selecting - bool returns = (self->Selecting()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_ShiftDown[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_ShiftDown[1] = {{ wxLua_wxGridRangeSelectEvent_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_ShiftDown }}; -// bool ShiftDown(); -static int LUACALL wxLua_wxGridRangeSelectEvent_ShiftDown(lua_State *L) -{ - // get this - wxGridRangeSelectEvent * self = (wxGridRangeSelectEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridRangeSelectEvent); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_delete[] = { &wxluatype_wxGridRangeSelectEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_delete }}; - - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, &wxluatype_wxGridCellCoords, &wxluatype_wxGridCellCoords, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGridRangeSelectEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridRangeSelectEvent_constructor[1] = {{ wxLua_wxGridRangeSelectEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 10, s_wxluatypeArray_wxLua_wxGridRangeSelectEvent_constructor }}; -// !%wxchkver_2_9_0 wxGridRangeSelectEvent(int id, wxEventType type, wxObject* obj, const wxGridCellCoords& topLeft, const wxGridCellCoords& bottomRight, bool sel = true, bool control = false, bool shift = false, bool alt = false, bool meta = false); -static int LUACALL wxLua_wxGridRangeSelectEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool meta = false - bool meta = (argCount >= 10 ? wxlua_getbooleantype(L, 10) : false); - // bool alt = false - bool alt = (argCount >= 9 ? wxlua_getbooleantype(L, 9) : false); - // bool shift = false - bool shift = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : false); - // bool control = false - bool control = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : false); - // bool sel = true - bool sel = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : true); - // const wxGridCellCoords bottomRight - const wxGridCellCoords * bottomRight = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 5, wxluatype_wxGridCellCoords); - // const wxGridCellCoords topLeft - const wxGridCellCoords * topLeft = (const wxGridCellCoords *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGridCellCoords); - // wxObject obj - wxObject * obj = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 2); - // int id - int id = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxGridRangeSelectEvent* returns = new wxGridRangeSelectEvent(id, type, obj, *topLeft, *bottomRight, sel, control, shift, alt, meta); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridRangeSelectEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridRangeSelectEvent); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - - - -void wxLua_wxGridRangeSelectEvent_delete_function(void** p) -{ - wxGridRangeSelectEvent* o = (wxGridRangeSelectEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridRangeSelectEvent_methods[] = { - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_AltDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_ControlDown, 1, NULL }, - { "GetBottomRightCoords", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetBottomRightCoords, 1, NULL }, - { "GetBottomRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetBottomRow, 1, NULL }, - { "GetLeftCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetLeftCol, 1, NULL }, - { "GetRightCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetRightCol, 1, NULL }, - { "GetTopLeftCoords", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetTopLeftCoords, 1, NULL }, - { "GetTopRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_GetTopRow, 1, NULL }, - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_MetaDown, 1, NULL }, - { "Selecting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_Selecting, 1, NULL }, - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridRangeSelectEvent_ShiftDown, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridRangeSelectEvent_delete, 1, NULL }, - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - { "wxGridRangeSelectEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridRangeSelectEvent_constructor, 1, NULL }, -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxGrid && wxUSE_GRID)) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxGridRangeSelectEvent_methodCount = sizeof(wxGridRangeSelectEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - -#if wxLUA_USE_wxGrid && wxUSE_GRID -// --------------------------------------------------------------------------- -// Bind class wxGridEditorCreatedEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridEditorCreatedEvent' -int wxluatype_wxGridEditorCreatedEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_GetCol[] = { &wxluatype_wxGridEditorCreatedEvent, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_GetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_GetCol[1] = {{ wxLua_wxGridEditorCreatedEvent_GetCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_GetCol }}; -// int GetCol(); -static int LUACALL wxLua_wxGridEditorCreatedEvent_GetCol(lua_State *L) -{ - // get this - wxGridEditorCreatedEvent * self = (wxGridEditorCreatedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEditorCreatedEvent); - // call GetCol - int returns = (self->GetCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_GetControl[] = { &wxluatype_wxGridEditorCreatedEvent, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_GetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_GetControl[1] = {{ wxLua_wxGridEditorCreatedEvent_GetControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_GetControl }}; -// wxControl* GetControl(); -static int LUACALL wxLua_wxGridEditorCreatedEvent_GetControl(lua_State *L) -{ - // get this - wxGridEditorCreatedEvent * self = (wxGridEditorCreatedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEditorCreatedEvent); - // call GetControl - wxControl* returns = (wxControl*)self->GetControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_GetRow[] = { &wxluatype_wxGridEditorCreatedEvent, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_GetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_GetRow[1] = {{ wxLua_wxGridEditorCreatedEvent_GetRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_GetRow }}; -// int GetRow(); -static int LUACALL wxLua_wxGridEditorCreatedEvent_GetRow(lua_State *L) -{ - // get this - wxGridEditorCreatedEvent * self = (wxGridEditorCreatedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEditorCreatedEvent); - // call GetRow - int returns = (self->GetRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_SetCol[] = { &wxluatype_wxGridEditorCreatedEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_SetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_SetCol[1] = {{ wxLua_wxGridEditorCreatedEvent_SetCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_SetCol }}; -// void SetCol(int col); -static int LUACALL wxLua_wxGridEditorCreatedEvent_SetCol(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridEditorCreatedEvent * self = (wxGridEditorCreatedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEditorCreatedEvent); - // call SetCol - self->SetCol(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_SetControl[] = { &wxluatype_wxGridEditorCreatedEvent, &wxluatype_wxControl, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_SetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_SetControl[1] = {{ wxLua_wxGridEditorCreatedEvent_SetControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_SetControl }}; -// void SetControl(wxControl * ctrl); -static int LUACALL wxLua_wxGridEditorCreatedEvent_SetControl(lua_State *L) -{ - // wxControl ctrl - wxControl * ctrl = (wxControl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxControl); - // get this - wxGridEditorCreatedEvent * self = (wxGridEditorCreatedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEditorCreatedEvent); - // call SetControl - self->SetControl(ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_SetRow[] = { &wxluatype_wxGridEditorCreatedEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_SetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_SetRow[1] = {{ wxLua_wxGridEditorCreatedEvent_SetRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_SetRow }}; -// void SetRow(int row); -static int LUACALL wxLua_wxGridEditorCreatedEvent_SetRow(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridEditorCreatedEvent * self = (wxGridEditorCreatedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridEditorCreatedEvent); - // call SetRow - self->SetRow(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_delete[] = { &wxluatype_wxGridEditorCreatedEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_delete }}; - - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxControl, NULL }; -static int LUACALL wxLua_wxGridEditorCreatedEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridEditorCreatedEvent_constructor[1] = {{ wxLua_wxGridEditorCreatedEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxGridEditorCreatedEvent_constructor }}; -// wxGridEditorCreatedEvent(int id, wxEventType type, wxObject* obj, int row, int col, wxControl* ctrl); -static int LUACALL wxLua_wxGridEditorCreatedEvent_constructor(lua_State *L) -{ - // wxControl ctrl - wxControl * ctrl = (wxControl *)wxluaT_getuserdatatype(L, 6, wxluatype_wxControl); - // int col - int col = (int)wxlua_getnumbertype(L, 5); - // int row - int row = (int)wxlua_getnumbertype(L, 4); - // wxObject obj - wxObject * obj = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 2); - // int id - int id = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxGridEditorCreatedEvent* returns = new wxGridEditorCreatedEvent(id, type, obj, row, col, ctrl); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGridEditorCreatedEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridEditorCreatedEvent); - - return 1; -} - -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxObject) - - - -void wxLua_wxGridEditorCreatedEvent_delete_function(void** p) -{ - wxGridEditorCreatedEvent* o = (wxGridEditorCreatedEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridEditorCreatedEvent_methods[] = { - { "GetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_GetCol, 1, NULL }, - { "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_GetControl, 1, NULL }, - { "GetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_GetRow, 1, NULL }, - { "SetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_SetCol, 1, NULL }, - { "SetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_SetControl, 1, NULL }, - { "SetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_SetRow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_delete, 1, NULL }, - -#if (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxObject) - { "wxGridEditorCreatedEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridEditorCreatedEvent_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxGrid && wxUSE_GRID) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxGridEditorCreatedEvent_methodCount = sizeof(wxGridEditorCreatedEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxadv_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxadv() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxadv(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { "wxEVT_CALCULATE_LAYOUT", WXLUA_GET_wxEventType_ptr(wxEVT_CALCULATE_LAYOUT), &wxluatype_wxCalculateLayoutEvent }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - { "wxEVT_CALENDAR_DAY_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_CALENDAR_DAY_CHANGED), &wxluatype_wxCalendarEvent }, - { "wxEVT_CALENDAR_DOUBLECLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_CALENDAR_DOUBLECLICKED), &wxluatype_wxCalendarEvent }, - { "wxEVT_CALENDAR_MONTH_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_CALENDAR_MONTH_CHANGED), &wxluatype_wxCalendarEvent }, - { "wxEVT_CALENDAR_SEL_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_CALENDAR_SEL_CHANGED), &wxluatype_wxCalendarEvent }, - { "wxEVT_CALENDAR_WEEKDAY_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_CALENDAR_WEEKDAY_CLICKED), &wxluatype_wxCalendarEvent }, - { "wxEVT_CALENDAR_YEAR_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_CALENDAR_YEAR_CHANGED), &wxluatype_wxCalendarEvent }, -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - { "wxEVT_COMMAND_HYPERLINK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_HYPERLINK), &wxluatype_wxHyperlinkEvent }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - { "wxEVT_DATAVIEW_CACHE_HINT", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_CACHE_HINT), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_COLUMN_HEADER_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_COLUMN_HEADER_CLICK), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_COLUMN_REORDERED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_COLUMN_REORDERED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_COLUMN_SORTED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_COLUMN_SORTED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_ACTIVATED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_BEGIN_DRAG), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_COLLAPSED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_COLLAPSED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_COLLAPSING", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_COLLAPSING), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_CONTEXT_MENU", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_CONTEXT_MENU), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_DROP", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_DROP), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_DROP_POSSIBLE), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_EDITING_DONE", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_EDITING_DONE), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_EDITING_STARTED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_EDITING_STARTED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_EXPANDED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_EXPANDING", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_EXPANDING), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_START_EDITING", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_START_EDITING), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_ITEM_VALUE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_ITEM_VALUE_CHANGED), &wxluatype_wxDataViewEvent }, - { "wxEVT_DATAVIEW_SELECTION_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_DATAVIEW_SELECTION_CHANGED), &wxluatype_wxDataViewEvent }, -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - { "wxEVT_DATE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_DATE_CHANGED), &wxluatype_wxDateEvent }, -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "wxEVT_GRID_CELL_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_BEGIN_DRAG), &wxluatype_wxGridEvent }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "wxEVT_GRID_CELL_CHANGE", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_CHANGE), &wxluatype_wxGridEvent }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "wxEVT_GRID_CELL_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_CHANGED), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_CELL_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_CHANGING), &wxluatype_wxGridEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "wxEVT_GRID_CELL_LEFT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_LEFT_CLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_CELL_LEFT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_LEFT_DCLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_CELL_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_RIGHT_CLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_CELL_RIGHT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_CELL_RIGHT_DCLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_COL_SIZE", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_COL_SIZE), &wxluatype_wxGridSizeEvent }, - { "wxEVT_GRID_EDITOR_CREATED", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_EDITOR_CREATED), &wxluatype_wxGridEditorCreatedEvent }, - { "wxEVT_GRID_EDITOR_HIDDEN", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_EDITOR_HIDDEN), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_EDITOR_SHOWN", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_EDITOR_SHOWN), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_LABEL_LEFT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_LABEL_LEFT_CLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_LABEL_LEFT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_LABEL_LEFT_DCLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_LABEL_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_LABEL_RIGHT_CLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_LABEL_RIGHT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_LABEL_RIGHT_DCLICK), &wxluatype_wxGridEvent }, - { "wxEVT_GRID_RANGE_SELECT", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_RANGE_SELECT), &wxluatype_wxGridRangeSelectEvent }, - { "wxEVT_GRID_ROW_SIZE", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_ROW_SIZE), &wxluatype_wxGridSizeEvent }, - { "wxEVT_GRID_SELECT_CELL", WXLUA_GET_wxEventType_ptr(wxEVT_GRID_SELECT_CELL), &wxluatype_wxGridEvent }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_HYPERLINK", WXLUA_GET_wxEventType_ptr(wxEVT_HYPERLINK), &wxluatype_wxHyperlinkEvent }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl) && (wxCHECK_VERSION(3,0,0)) - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - { "wxEVT_JOY_BUTTON_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_JOY_BUTTON_DOWN), &wxluatype_wxJoystickEvent }, - { "wxEVT_JOY_BUTTON_UP", WXLUA_GET_wxEventType_ptr(wxEVT_JOY_BUTTON_UP), &wxluatype_wxJoystickEvent }, - { "wxEVT_JOY_MOVE", WXLUA_GET_wxEventType_ptr(wxEVT_JOY_MOVE), &wxluatype_wxJoystickEvent }, - { "wxEVT_JOY_ZMOVE", WXLUA_GET_wxEventType_ptr(wxEVT_JOY_ZMOVE), &wxluatype_wxJoystickEvent }, -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { "wxEVT_QUERY_LAYOUT_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_QUERY_LAYOUT_INFO), &wxluatype_wxQueryLayoutInfoEvent }, - { "wxEVT_SASH_DRAGGED", WXLUA_GET_wxEventType_ptr(wxEVT_SASH_DRAGGED), &wxluatype_wxSashEvent }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - { "wxEVT_TASKBAR_LEFT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_LEFT_DCLICK), &wxluatype_wxTaskBarIconEvent }, - { "wxEVT_TASKBAR_LEFT_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_LEFT_DOWN), &wxluatype_wxTaskBarIconEvent }, - { "wxEVT_TASKBAR_LEFT_UP", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_LEFT_UP), &wxluatype_wxTaskBarIconEvent }, - { "wxEVT_TASKBAR_MOVE", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_MOVE), &wxluatype_wxTaskBarIconEvent }, - { "wxEVT_TASKBAR_RIGHT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_RIGHT_DCLICK), &wxluatype_wxTaskBarIconEvent }, - { "wxEVT_TASKBAR_RIGHT_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_RIGHT_DOWN), &wxluatype_wxTaskBarIconEvent }, - { "wxEVT_TASKBAR_RIGHT_UP", WXLUA_GET_wxEventType_ptr(wxEVT_TASKBAR_RIGHT_UP), &wxluatype_wxTaskBarIconEvent }, -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - { "wxEVT_TIME_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_TIME_CHANGED), &wxluatype_wxDateEvent }, -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - { "wxEVT_WIZARD_CANCEL", WXLUA_GET_wxEventType_ptr(wxEVT_WIZARD_CANCEL), &wxluatype_wxWizardEvent }, - { "wxEVT_WIZARD_FINISHED", WXLUA_GET_wxEventType_ptr(wxEVT_WIZARD_FINISHED), &wxluatype_wxWizardEvent }, - { "wxEVT_WIZARD_HELP", WXLUA_GET_wxEventType_ptr(wxEVT_WIZARD_HELP), &wxluatype_wxWizardEvent }, - { "wxEVT_WIZARD_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_WIZARD_PAGE_CHANGED), &wxluatype_wxWizardEvent }, - { "wxEVT_WIZARD_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_WIZARD_PAGE_CHANGING), &wxluatype_wxWizardEvent }, -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxadv() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxadv(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "WXGRID_DEFAULT_COL_LABEL_HEIGHT", WXGRID_DEFAULT_COL_LABEL_HEIGHT }, - { "WXGRID_DEFAULT_COL_WIDTH", WXGRID_DEFAULT_COL_WIDTH }, - { "WXGRID_DEFAULT_NUMBER_COLS", WXGRID_DEFAULT_NUMBER_COLS }, - { "WXGRID_DEFAULT_NUMBER_ROWS", WXGRID_DEFAULT_NUMBER_ROWS }, - { "WXGRID_DEFAULT_ROW_HEIGHT", WXGRID_DEFAULT_ROW_HEIGHT }, - { "WXGRID_DEFAULT_ROW_LABEL_WIDTH", WXGRID_DEFAULT_ROW_LABEL_WIDTH }, - { "WXGRID_DEFAULT_SCROLLBAR_WIDTH", WXGRID_DEFAULT_SCROLLBAR_WIDTH }, - { "WXGRID_LABEL_EDGE_ZONE", WXGRID_LABEL_EDGE_ZONE }, - { "WXGRID_MIN_COL_WIDTH", WXGRID_MIN_COL_WIDTH }, - { "WXGRID_MIN_ROW_HEIGHT", WXGRID_MIN_ROW_HEIGHT }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - { "wxAC_DEFAULT_STYLE", wxAC_DEFAULT_STYLE }, - { "wxAC_NO_AUTORESIZE", wxAC_NO_AUTORESIZE }, - { "wxANIMATION_TYPE_ANI", wxANIMATION_TYPE_ANI }, - { "wxANIMATION_TYPE_ANY", wxANIMATION_TYPE_ANY }, - { "wxANIMATION_TYPE_GIF", wxANIMATION_TYPE_GIF }, - { "wxANIMATION_TYPE_INVALID", wxANIMATION_TYPE_INVALID }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - { "wxCAL_BORDER_NONE", wxCAL_BORDER_NONE }, - { "wxCAL_BORDER_ROUND", wxCAL_BORDER_ROUND }, - { "wxCAL_BORDER_SQUARE", wxCAL_BORDER_SQUARE }, - { "wxCAL_HITTEST_DAY", wxCAL_HITTEST_DAY }, - { "wxCAL_HITTEST_DECMONTH", wxCAL_HITTEST_DECMONTH }, - { "wxCAL_HITTEST_HEADER", wxCAL_HITTEST_HEADER }, - { "wxCAL_HITTEST_INCMONTH", wxCAL_HITTEST_INCMONTH }, - { "wxCAL_HITTEST_NOWHERE", wxCAL_HITTEST_NOWHERE }, - { "wxCAL_HITTEST_SURROUNDING_WEEK", wxCAL_HITTEST_SURROUNDING_WEEK }, - { "wxCAL_MONDAY_FIRST", wxCAL_MONDAY_FIRST }, - { "wxCAL_NO_MONTH_CHANGE", wxCAL_NO_MONTH_CHANGE }, - { "wxCAL_NO_YEAR_CHANGE", wxCAL_NO_YEAR_CHANGE }, - { "wxCAL_SEQUENTIAL_MONTH_SELECTION", wxCAL_SEQUENTIAL_MONTH_SELECTION }, - { "wxCAL_SHOW_HOLIDAYS", wxCAL_SHOW_HOLIDAYS }, - { "wxCAL_SHOW_SURROUNDING_WEEKS", wxCAL_SHOW_SURROUNDING_WEEKS }, - { "wxCAL_SUNDAY_FIRST", wxCAL_SUNDAY_FIRST }, -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - { "wxCOL_DEFAULT_FLAGS", wxCOL_DEFAULT_FLAGS }, - { "wxCOL_HIDDEN", wxCOL_HIDDEN }, - { "wxCOL_REORDERABLE", wxCOL_REORDERABLE }, - { "wxCOL_RESIZABLE", wxCOL_RESIZABLE }, - { "wxCOL_SORTABLE", wxCOL_SORTABLE }, - { "wxCOL_WIDTH_AUTOSIZE", wxCOL_WIDTH_AUTOSIZE }, - { "wxCOL_WIDTH_DEFAULT", wxCOL_WIDTH_DEFAULT }, - { "wxDATAVIEW_CELL_ACTIVATABLE", wxDATAVIEW_CELL_ACTIVATABLE }, - { "wxDATAVIEW_CELL_EDITABLE", wxDATAVIEW_CELL_EDITABLE }, - { "wxDATAVIEW_CELL_FOCUSED", wxDATAVIEW_CELL_FOCUSED }, - { "wxDATAVIEW_CELL_INERT", wxDATAVIEW_CELL_INERT }, - { "wxDATAVIEW_CELL_INSENSITIVE", wxDATAVIEW_CELL_INSENSITIVE }, - { "wxDATAVIEW_CELL_PRELIT", wxDATAVIEW_CELL_PRELIT }, - { "wxDATAVIEW_CELL_SELECTED", wxDATAVIEW_CELL_SELECTED }, - { "wxDATAVIEW_COL_HIDDEN", wxDATAVIEW_COL_HIDDEN }, - { "wxDATAVIEW_COL_REORDERABLE", wxDATAVIEW_COL_REORDERABLE }, - { "wxDATAVIEW_COL_RESIZABLE", wxDATAVIEW_COL_RESIZABLE }, - { "wxDATAVIEW_COL_SORTABLE", wxDATAVIEW_COL_SORTABLE }, - { "wxDVC_DEFAULT_MINWIDTH", wxDVC_DEFAULT_MINWIDTH }, - { "wxDVC_DEFAULT_RENDERER_SIZE", wxDVC_DEFAULT_RENDERER_SIZE }, - { "wxDVC_DEFAULT_WIDTH", wxDVC_DEFAULT_WIDTH }, - { "wxDVC_TOGGLE_DEFAULT_WIDTH", wxDVC_TOGGLE_DEFAULT_WIDTH }, - { "wxDVR_DEFAULT_ALIGNMENT", wxDVR_DEFAULT_ALIGNMENT }, - { "wxDV_HORIZ_RULES", wxDV_HORIZ_RULES }, - { "wxDV_MULTIPLE", wxDV_MULTIPLE }, - { "wxDV_NO_HEADER", wxDV_NO_HEADER }, - { "wxDV_ROW_LINES", wxDV_ROW_LINES }, - { "wxDV_SINGLE", wxDV_SINGLE }, - { "wxDV_VARIABLE_LINE_HEIGHT", wxDV_VARIABLE_LINE_HEIGHT }, - { "wxDV_VERT_RULES", wxDV_VERT_RULES }, -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "wxGRIDTABLE_NOTIFY_COLS_APPENDED", wxGRIDTABLE_NOTIFY_COLS_APPENDED }, - { "wxGRIDTABLE_NOTIFY_COLS_DELETED", wxGRIDTABLE_NOTIFY_COLS_DELETED }, - { "wxGRIDTABLE_NOTIFY_COLS_INSERTED", wxGRIDTABLE_NOTIFY_COLS_INSERTED }, - { "wxGRIDTABLE_NOTIFY_ROWS_APPENDED", wxGRIDTABLE_NOTIFY_ROWS_APPENDED }, - { "wxGRIDTABLE_NOTIFY_ROWS_DELETED", wxGRIDTABLE_NOTIFY_ROWS_DELETED }, - { "wxGRIDTABLE_NOTIFY_ROWS_INSERTED", wxGRIDTABLE_NOTIFY_ROWS_INSERTED }, - { "wxGRIDTABLE_REQUEST_VIEW_GET_VALUES", wxGRIDTABLE_REQUEST_VIEW_GET_VALUES }, - { "wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES", wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if (wxCHECK_VERSION(2,8,8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - { "wxGRID_AUTOSIZE", wxGRID_AUTOSIZE }, -#endif // (wxCHECK_VERSION(2,8,8)) && (wxLUA_USE_wxGrid && wxUSE_GRID) - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - { "wxHL_ALIGN_CENTRE", wxHL_ALIGN_CENTRE }, - { "wxHL_ALIGN_LEFT", wxHL_ALIGN_LEFT }, - { "wxHL_ALIGN_RIGHT", wxHL_ALIGN_RIGHT }, - { "wxHL_CONTEXTMENU", wxHL_CONTEXTMENU }, - { "wxHL_DEFAULT_STYLE", wxHL_DEFAULT_STYLE }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - { "wxJOYSTICK1", wxJOYSTICK1 }, - { "wxJOYSTICK2", wxJOYSTICK2 }, - { "wxJOY_BUTTON1", wxJOY_BUTTON1 }, - { "wxJOY_BUTTON2", wxJOY_BUTTON2 }, - { "wxJOY_BUTTON3", wxJOY_BUTTON3 }, - { "wxJOY_BUTTON4", wxJOY_BUTTON4 }, - { "wxJOY_BUTTON_ANY", wxJOY_BUTTON_ANY }, -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { "wxLAYOUT_BOTTOM", wxLAYOUT_BOTTOM }, - { "wxLAYOUT_HORIZONTAL", wxLAYOUT_HORIZONTAL }, - { "wxLAYOUT_LEFT", wxLAYOUT_LEFT }, - { "wxLAYOUT_NONE", wxLAYOUT_NONE }, - { "wxLAYOUT_RIGHT", wxLAYOUT_RIGHT }, - { "wxLAYOUT_TOP", wxLAYOUT_TOP }, - { "wxLAYOUT_VERTICAL", wxLAYOUT_VERTICAL }, - { "wxSASH_BOTTOM", wxSASH_BOTTOM }, - { "wxSASH_LEFT", wxSASH_LEFT }, - { "wxSASH_NONE", wxSASH_NONE }, - { "wxSASH_RIGHT", wxSASH_RIGHT }, - { "wxSASH_STATUS_OK", wxSASH_STATUS_OK }, - { "wxSASH_STATUS_OUT_OF_RANGE", wxSASH_STATUS_OUT_OF_RANGE }, - { "wxSASH_TOP", wxSASH_TOP }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if (wxLUA_USE_wxWave) && (wxUSE_SOUND || (defined(__WXMSW__) && wxUSE_WAVE )) - { "wxSOUND_ASYNC", wxSOUND_ASYNC }, - { "wxSOUND_LOOP", wxSOUND_LOOP }, - { "wxSOUND_SYNC", wxSOUND_SYNC }, -#endif // (wxLUA_USE_wxWave) && (wxUSE_SOUND || (defined(__WXMSW__) && wxUSE_WAVE )) - -#if wxLUA_USE_wxSplashScreen - { "wxSPLASH_CENTRE_ON_PARENT", wxSPLASH_CENTRE_ON_PARENT }, - { "wxSPLASH_CENTRE_ON_SCREEN", wxSPLASH_CENTRE_ON_SCREEN }, - { "wxSPLASH_NO_CENTRE", wxSPLASH_NO_CENTRE }, - { "wxSPLASH_NO_TIMEOUT", wxSPLASH_NO_TIMEOUT }, - { "wxSPLASH_TIMEOUT", wxSPLASH_TIMEOUT }, -#endif // wxLUA_USE_wxSplashScreen - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { "wxSW_3D", wxSW_3D }, - { "wxSW_3DBORDER", wxSW_3DBORDER }, - { "wxSW_3DSASH", wxSW_3DSASH }, - { "wxSW_BORDER", wxSW_BORDER }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - { "wxWIZARD_EX_HELPBUTTON", wxWIZARD_EX_HELPBUTTON }, -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxadv() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxadv(size_t &count) -{ - static wxLuaBindString stringList[] = - { -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "wxGRID_VALUE_BOOL", NULL, wxGRID_VALUE_BOOL }, - { "wxGRID_VALUE_CHOICE", NULL, wxGRID_VALUE_CHOICE }, - { "wxGRID_VALUE_CHOICEINT", NULL, wxGRID_VALUE_CHOICEINT }, - { "wxGRID_VALUE_DATETIME", NULL, wxGRID_VALUE_DATETIME }, - { "wxGRID_VALUE_FLOAT", NULL, wxGRID_VALUE_FLOAT }, - { "wxGRID_VALUE_LONG", NULL, wxGRID_VALUE_LONG }, - { "wxGRID_VALUE_NUMBER", NULL, wxGRID_VALUE_NUMBER }, - { "wxGRID_VALUE_STRING", NULL, wxGRID_VALUE_STRING }, - { "wxGRID_VALUE_TEXT", NULL, wxGRID_VALUE_TEXT }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxadv() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxadv(size_t &count) -{ - static wxLuaBindObject objectList[] = - { -#if wxLUA_USE_wxGrid && wxUSE_GRID - { "wxGridNoCellCoords", &wxluatype_wxGridCellCoords, &wxGridNoCellCoords, NULL }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxadv() is called to register global functions -// --------------------------------------------------------------------------- - -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxAboutBox[] = { &wxluatype_wxAboutDialogInfo, NULL }; -// void wxAboutBox(const wxAboutDialogInfo& info); -static int LUACALL wxLua_function_wxAboutBox(lua_State *L) -{ - // const wxAboutDialogInfo info - const wxAboutDialogInfo * info = (const wxAboutDialogInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAboutDialogInfo); - // call wxAboutBox - wxAboutBox(*info); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxAboutBox[1] = {{ wxLua_function_wxAboutBox, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxAboutBox }}; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxadv() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxadv(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - { "wxAboutBox", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxAboutBox, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxadv() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxAboutDialogInfo = "wxAboutDialogInfo"; -static const char* wxluaclassname_wxAnimation = "wxAnimation"; -static const char* wxluaclassname_wxAnimationCtrl = "wxAnimationCtrl"; -static const char* wxluaclassname_wxBitmapComboBox = "wxBitmapComboBox"; -static const char* wxluaclassname_wxCalculateLayoutEvent = "wxCalculateLayoutEvent"; -static const char* wxluaclassname_wxCalendarCtrl = "wxCalendarCtrl"; -static const char* wxluaclassname_wxCalendarDateAttr = "wxCalendarDateAttr"; -static const char* wxluaclassname_wxCalendarEvent = "wxCalendarEvent"; -static const char* wxluaclassname_wxClientDataContainer = "wxClientDataContainer"; -static const char* wxluaclassname_wxCommandEvent = "wxCommandEvent"; -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxDataViewBitmapRenderer = "wxDataViewBitmapRenderer"; -static const char* wxluaclassname_wxDataViewCheckIconText = "wxDataViewCheckIconText"; -static const char* wxluaclassname_wxDataViewChoiceByIndexRenderer = "wxDataViewChoiceByIndexRenderer"; -static const char* wxluaclassname_wxDataViewChoiceRenderer = "wxDataViewChoiceRenderer"; -static const char* wxluaclassname_wxDataViewColumn = "wxDataViewColumn"; -static const char* wxluaclassname_wxDataViewColumnBase = "wxDataViewColumnBase"; -static const char* wxluaclassname_wxDataViewCtrl = "wxDataViewCtrl"; -static const char* wxluaclassname_wxDataViewCtrlBase = "wxDataViewCtrlBase"; -static const char* wxluaclassname_wxDataViewCustomRendererBase = "wxDataViewCustomRendererBase"; -static const char* wxluaclassname_wxDataViewEvent = "wxDataViewEvent"; -static const char* wxluaclassname_wxDataViewIconText = "wxDataViewIconText"; -static const char* wxluaclassname_wxDataViewIconTextRenderer = "wxDataViewIconTextRenderer"; -static const char* wxluaclassname_wxDataViewIndexListModel = "wxDataViewIndexListModel"; -static const char* wxluaclassname_wxDataViewItem = "wxDataViewItem"; -static const char* wxluaclassname_wxDataViewItemArray = "wxDataViewItemArray"; -static const char* wxluaclassname_wxDataViewItemAttr = "wxDataViewItemAttr"; -static const char* wxluaclassname_wxDataViewListCtrl = "wxDataViewListCtrl"; -static const char* wxluaclassname_wxDataViewListModel = "wxDataViewListModel"; -static const char* wxluaclassname_wxDataViewListStore = "wxDataViewListStore"; -static const char* wxluaclassname_wxDataViewListStoreLine = "wxDataViewListStoreLine"; -static const char* wxluaclassname_wxDataViewModel = "wxDataViewModel"; -static const char* wxluaclassname_wxDataViewModelNotifier = "wxDataViewModelNotifier"; -static const char* wxluaclassname_wxDataViewProgressRenderer = "wxDataViewProgressRenderer"; -static const char* wxluaclassname_wxDataViewRenderer = "wxDataViewRenderer"; -static const char* wxluaclassname_wxDataViewRendererBase = "wxDataViewRendererBase"; -static const char* wxluaclassname_wxDataViewSpinRenderer = "wxDataViewSpinRenderer"; -static const char* wxluaclassname_wxDataViewTextRenderer = "wxDataViewTextRenderer"; -static const char* wxluaclassname_wxDataViewToggleRenderer = "wxDataViewToggleRenderer"; -static const char* wxluaclassname_wxDataViewTreeStore = "wxDataViewTreeStore"; -static const char* wxluaclassname_wxDataViewTreeStoreContainerNode = "wxDataViewTreeStoreContainerNode"; -static const char* wxluaclassname_wxDataViewTreeStoreNode = "wxDataViewTreeStoreNode"; -static const char* wxluaclassname_wxDataViewValueAdjuster = "wxDataViewValueAdjuster"; -static const char* wxluaclassname_wxDateEvent = "wxDateEvent"; -static const char* wxluaclassname_wxDialog = "wxDialog"; -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxEvtHandler = "wxEvtHandler"; -static const char* wxluaclassname_wxFrame = "wxFrame"; -static const char* wxluaclassname_wxGDIObject = "wxGDIObject"; -static const char* wxluaclassname_wxGrid = "wxGrid"; -static const char* wxluaclassname_wxGridCellAttr = "wxGridCellAttr"; -static const char* wxluaclassname_wxGridCellAttrProvider = "wxGridCellAttrProvider"; -static const char* wxluaclassname_wxGridCellAutoWrapStringEditor = "wxGridCellAutoWrapStringEditor"; -static const char* wxluaclassname_wxGridCellAutoWrapStringRenderer = "wxGridCellAutoWrapStringRenderer"; -static const char* wxluaclassname_wxGridCellBoolEditor = "wxGridCellBoolEditor"; -static const char* wxluaclassname_wxGridCellBoolRenderer = "wxGridCellBoolRenderer"; -static const char* wxluaclassname_wxGridCellChoiceEditor = "wxGridCellChoiceEditor"; -static const char* wxluaclassname_wxGridCellCoords = "wxGridCellCoords"; -static const char* wxluaclassname_wxGridCellCoordsArray = "wxGridCellCoordsArray"; -static const char* wxluaclassname_wxGridCellDateTimeRenderer = "wxGridCellDateTimeRenderer"; -static const char* wxluaclassname_wxGridCellEditor = "wxGridCellEditor"; -static const char* wxluaclassname_wxGridCellEnumEditor = "wxGridCellEnumEditor"; -static const char* wxluaclassname_wxGridCellEnumRenderer = "wxGridCellEnumRenderer"; -static const char* wxluaclassname_wxGridCellFloatEditor = "wxGridCellFloatEditor"; -static const char* wxluaclassname_wxGridCellFloatRenderer = "wxGridCellFloatRenderer"; -static const char* wxluaclassname_wxGridCellNumberEditor = "wxGridCellNumberEditor"; -static const char* wxluaclassname_wxGridCellNumberRenderer = "wxGridCellNumberRenderer"; -static const char* wxluaclassname_wxGridCellRenderer = "wxGridCellRenderer"; -static const char* wxluaclassname_wxGridCellStringRenderer = "wxGridCellStringRenderer"; -static const char* wxluaclassname_wxGridCellTextEditor = "wxGridCellTextEditor"; -static const char* wxluaclassname_wxGridCellWorker = "wxGridCellWorker"; -static const char* wxluaclassname_wxGridEditorCreatedEvent = "wxGridEditorCreatedEvent"; -static const char* wxluaclassname_wxGridEvent = "wxGridEvent"; -static const char* wxluaclassname_wxGridRangeSelectEvent = "wxGridRangeSelectEvent"; -static const char* wxluaclassname_wxGridSizeEvent = "wxGridSizeEvent"; -static const char* wxluaclassname_wxGridStringTable = "wxGridStringTable"; -static const char* wxluaclassname_wxGridTableBase = "wxGridTableBase"; -static const char* wxluaclassname_wxGridTableMessage = "wxGridTableMessage"; -static const char* wxluaclassname_wxHeaderColumn = "wxHeaderColumn"; -static const char* wxluaclassname_wxHyperlinkCtrl = "wxHyperlinkCtrl"; -static const char* wxluaclassname_wxHyperlinkEvent = "wxHyperlinkEvent"; -static const char* wxluaclassname_wxJoystick = "wxJoystick"; -static const char* wxluaclassname_wxJoystickEvent = "wxJoystickEvent"; -static const char* wxluaclassname_wxLayoutAlgorithm = "wxLayoutAlgorithm"; -static const char* wxluaclassname_wxLuaGridTableBase = "wxLuaGridTableBase"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxPanel = "wxPanel"; -static const char* wxluaclassname_wxQueryLayoutInfoEvent = "wxQueryLayoutInfoEvent"; -static const char* wxluaclassname_wxSashEvent = "wxSashEvent"; -static const char* wxluaclassname_wxSashLayoutWindow = "wxSashLayoutWindow"; -static const char* wxluaclassname_wxSashWindow = "wxSashWindow"; -static const char* wxluaclassname_wxScrolledWindow = "wxScrolledWindow"; -static const char* wxluaclassname_wxSettableHeaderColumn = "wxSettableHeaderColumn"; -static const char* wxluaclassname_wxSound = "wxSound"; -static const char* wxluaclassname_wxSplashScreen = "wxSplashScreen"; -static const char* wxluaclassname_wxSplashScreenWindow = "wxSplashScreenWindow"; -static const char* wxluaclassname_wxTaskBarIcon = "wxTaskBarIcon"; -static const char* wxluaclassname_wxTaskBarIconEvent = "wxTaskBarIconEvent"; -static const char* wxluaclassname_wxWave = "wxWave"; -static const char* wxluaclassname_wxWindow = "wxWindow"; -static const char* wxluaclassname_wxWizard = "wxWizard"; -static const char* wxluaclassname_wxWizardEvent = "wxWizardEvent"; -static const char* wxluaclassname_wxWizardPage = "wxWizardPage"; -static const char* wxluaclassname_wxWizardPageSimple = "wxWizardPageSimple"; - -static const char* wxluabaseclassnames_wxAnimation[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAnimation[] = { NULL }; -static const char* wxluabaseclassnames_wxAnimationCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAnimationCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxBitmapComboBox[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBitmapComboBox[] = { NULL }; -static const char* wxluabaseclassnames_wxCalculateLayoutEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCalculateLayoutEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxCalendarCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCalendarCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxCalendarEvent[] = { wxluaclassname_wxDateEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCalendarEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewBitmapRenderer[] = { wxluaclassname_wxDataViewRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewBitmapRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewCheckIconText[] = { wxluaclassname_wxDataViewIconText, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewCheckIconText[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewChoiceByIndexRenderer[] = { wxluaclassname_wxDataViewChoiceRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewChoiceByIndexRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewChoiceRenderer[] = { wxluaclassname_wxDataViewRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewChoiceRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewColumn[] = { wxluaclassname_wxDataViewColumnBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewColumn[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewColumnBase[] = { wxluaclassname_wxSettableHeaderColumn, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewColumnBase[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewCtrl[] = { wxluaclassname_wxDataViewCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewCtrlBase[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewCtrlBase[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewCustomRendererBase[] = { wxluaclassname_wxDataViewRendererBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewCustomRendererBase[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewIconText[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewIconText[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewIconTextRenderer[] = { wxluaclassname_wxDataViewTextRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewIconTextRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewIndexListModel[] = { wxluaclassname_wxDataViewListModel, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewIndexListModel[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewListCtrl[] = { wxluaclassname_wxDataViewCtrl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewListCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewListModel[] = { wxluaclassname_wxDataViewModel, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewListModel[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewListStore[] = { wxluaclassname_wxDataViewIndexListModel, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewListStore[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewProgressRenderer[] = { wxluaclassname_wxDataViewRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewProgressRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewRenderer[] = { wxluaclassname_wxDataViewCustomRendererBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewRendererBase[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewRendererBase[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewSpinRenderer[] = { wxluaclassname_wxDataViewRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewSpinRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewTextRenderer[] = { wxluaclassname_wxDataViewRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewTextRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewToggleRenderer[] = { wxluaclassname_wxDataViewRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewToggleRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewTreeStore[] = { wxluaclassname_wxDataViewModel, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewTreeStore[] = { NULL }; -static const char* wxluabaseclassnames_wxDataViewTreeStoreContainerNode[] = { wxluaclassname_wxDataViewTreeStoreNode, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataViewTreeStoreContainerNode[] = { NULL }; -static const char* wxluabaseclassnames_wxDateEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDateEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxGrid[] = { wxluaclassname_wxScrolledWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGrid[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellAttr[] = { wxluaclassname_wxClientDataContainer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellAttr[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellAttrProvider[] = { wxluaclassname_wxClientDataContainer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellAttrProvider[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellAutoWrapStringEditor[] = { wxluaclassname_wxGridCellTextEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellAutoWrapStringEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellAutoWrapStringRenderer[] = { wxluaclassname_wxGridCellStringRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellAutoWrapStringRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellBoolEditor[] = { wxluaclassname_wxGridCellEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellBoolEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellBoolRenderer[] = { wxluaclassname_wxGridCellRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellBoolRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellChoiceEditor[] = { wxluaclassname_wxGridCellEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellChoiceEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellDateTimeRenderer[] = { wxluaclassname_wxGridCellStringRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellDateTimeRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellEditor[] = { wxluaclassname_wxGridCellWorker, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellEnumEditor[] = { wxluaclassname_wxGridCellChoiceEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellEnumEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellEnumRenderer[] = { wxluaclassname_wxGridCellStringRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellEnumRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellFloatEditor[] = { wxluaclassname_wxGridCellTextEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellFloatEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellFloatRenderer[] = { wxluaclassname_wxGridCellStringRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellFloatRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellNumberEditor[] = { wxluaclassname_wxGridCellTextEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellNumberEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellNumberRenderer[] = { wxluaclassname_wxGridCellStringRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellNumberRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellRenderer[] = { wxluaclassname_wxGridCellWorker, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellStringRenderer[] = { wxluaclassname_wxGridCellRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellStringRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellTextEditor[] = { wxluaclassname_wxGridCellEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellTextEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxGridCellWorker[] = { wxluaclassname_wxClientDataContainer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridCellWorker[] = { NULL }; -static const char* wxluabaseclassnames_wxGridEditorCreatedEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridEditorCreatedEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxGridEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxGridRangeSelectEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridRangeSelectEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxGridSizeEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridSizeEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxGridStringTable[] = { wxluaclassname_wxGridTableBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridStringTable[] = { NULL }; -static const char* wxluabaseclassnames_wxGridTableBase[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridTableBase[] = { NULL }; -static const char* wxluabaseclassnames_wxHyperlinkCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHyperlinkCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxHyperlinkEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHyperlinkEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxJoystick[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxJoystick[] = { NULL }; -static const char* wxluabaseclassnames_wxJoystickEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxJoystickEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxLayoutAlgorithm[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLayoutAlgorithm[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaGridTableBase[] = { wxluaclassname_wxGridTableBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaGridTableBase[] = { NULL }; -static const char* wxluabaseclassnames_wxQueryLayoutInfoEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxQueryLayoutInfoEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSashEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSashEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSashLayoutWindow[] = { wxluaclassname_wxSashWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSashLayoutWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxSashWindow[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSashWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxSettableHeaderColumn[] = { wxluaclassname_wxHeaderColumn, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSettableHeaderColumn[] = { NULL }; -static const char* wxluabaseclassnames_wxSound[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSound[] = { NULL }; -static const char* wxluabaseclassnames_wxSplashScreen[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSplashScreen[] = { NULL }; -static const char* wxluabaseclassnames_wxSplashScreenWindow[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSplashScreenWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxTaskBarIcon[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTaskBarIcon[] = { NULL }; -static const char* wxluabaseclassnames_wxTaskBarIconEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTaskBarIconEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxWave[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWave[] = { NULL }; -static const char* wxluabaseclassnames_wxWizard[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWizard[] = { NULL }; -static const char* wxluabaseclassnames_wxWizardEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWizardEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxWizardPage[] = { wxluaclassname_wxPanel, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWizardPage[] = { NULL }; -static const char* wxluabaseclassnames_wxWizardPageSimple[] = { wxluaclassname_wxWizardPage, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWizardPageSimple[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - extern wxLuaBindMethod wxWave_methods[]; - extern int wxWave_methodCount; - extern void wxLua_wxWave_delete_function(void** p); -#endif // (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - -#if (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - extern wxLuaBindMethod wxSound_methods[]; - extern int wxSound_methodCount; - extern void wxLua_wxSound_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - extern wxLuaBindMethod wxDataViewSpinRenderer_methods[]; - extern int wxDataViewSpinRenderer_methodCount; - extern void wxLua_wxDataViewSpinRenderer_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - extern wxLuaBindMethod wxAnimation_methods[]; - extern int wxAnimation_methodCount; - extern void wxLua_wxAnimation_delete_function(void** p); - extern wxLuaBindMethod wxAnimationCtrl_methods[]; - extern int wxAnimationCtrl_methodCount; - extern void wxLua_wxAnimationCtrl_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - extern wxLuaBindMethod wxAboutDialogInfo_methods[]; - extern int wxAboutDialogInfo_methodCount; - extern void wxLua_wxAboutDialogInfo_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - extern wxLuaBindMethod wxHyperlinkCtrl_methods[]; - extern int wxHyperlinkCtrl_methodCount; - extern void wxLua_wxHyperlinkCtrl_delete_function(void** p); - extern wxLuaBindMethod wxHyperlinkEvent_methods[]; - extern int wxHyperlinkEvent_methodCount; - extern void wxLua_wxHyperlinkEvent_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - extern wxLuaBindMethod wxDataViewBitmapRenderer_methods[]; - extern int wxDataViewBitmapRenderer_methodCount; - extern void wxLua_wxDataViewBitmapRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewCheckIconText_methods[]; - extern int wxDataViewCheckIconText_methodCount; - extern void wxLua_wxDataViewCheckIconText_delete_function(void** p); - extern wxLuaBindMethod wxDataViewChoiceByIndexRenderer_methods[]; - extern int wxDataViewChoiceByIndexRenderer_methodCount; - extern void wxLua_wxDataViewChoiceByIndexRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewChoiceRenderer_methods[]; - extern int wxDataViewChoiceRenderer_methodCount; - extern void wxLua_wxDataViewChoiceRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewColumn_methods[]; - extern int wxDataViewColumn_methodCount; - extern void wxLua_wxDataViewColumn_delete_function(void** p); - extern wxLuaBindMethod wxDataViewColumnBase_methods[]; - extern int wxDataViewColumnBase_methodCount; - extern void wxLua_wxDataViewColumnBase_delete_function(void** p); - extern wxLuaBindMethod wxDataViewCtrl_methods[]; - extern int wxDataViewCtrl_methodCount; - extern void wxLua_wxDataViewCtrl_delete_function(void** p); - extern wxLuaBindMethod wxDataViewCtrlBase_methods[]; - extern int wxDataViewCtrlBase_methodCount; - extern void wxLua_wxDataViewCtrlBase_delete_function(void** p); - extern wxLuaBindMethod wxDataViewCustomRendererBase_methods[]; - extern int wxDataViewCustomRendererBase_methodCount; - extern void wxLua_wxDataViewCustomRendererBase_delete_function(void** p); - extern wxLuaBindMethod wxDataViewEvent_methods[]; - extern int wxDataViewEvent_methodCount; - extern void wxLua_wxDataViewEvent_delete_function(void** p); - extern wxLuaBindMethod wxDataViewIconText_methods[]; - extern int wxDataViewIconText_methodCount; - extern void wxLua_wxDataViewIconText_delete_function(void** p); - extern wxLuaBindMethod wxDataViewIconTextRenderer_methods[]; - extern int wxDataViewIconTextRenderer_methodCount; - extern void wxLua_wxDataViewIconTextRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewIndexListModel_methods[]; - extern int wxDataViewIndexListModel_methodCount; - extern void wxLua_wxDataViewIndexListModel_delete_function(void** p); - extern wxLuaBindMethod wxDataViewItem_methods[]; - extern int wxDataViewItem_methodCount; - extern void wxLua_wxDataViewItem_delete_function(void** p); - extern wxLuaBindMethod wxDataViewItemArray_methods[]; - extern int wxDataViewItemArray_methodCount; - extern void wxLua_wxDataViewItemArray_delete_function(void** p); - extern wxLuaBindMethod wxDataViewItemAttr_methods[]; - extern int wxDataViewItemAttr_methodCount; - extern void wxLua_wxDataViewItemAttr_delete_function(void** p); - extern wxLuaBindMethod wxDataViewListCtrl_methods[]; - extern int wxDataViewListCtrl_methodCount; - extern void wxLua_wxDataViewListCtrl_delete_function(void** p); - extern wxLuaBindMethod wxDataViewListModel_methods[]; - extern int wxDataViewListModel_methodCount; - extern void wxLua_wxDataViewListModel_delete_function(void** p); - extern wxLuaBindMethod wxDataViewListStore_methods[]; - extern int wxDataViewListStore_methodCount; - extern void wxLua_wxDataViewListStore_delete_function(void** p); - extern wxLuaBindMethod wxDataViewListStoreLine_methods[]; - extern int wxDataViewListStoreLine_methodCount; - extern void wxLua_wxDataViewListStoreLine_delete_function(void** p); - extern wxLuaBindMethod wxDataViewModel_methods[]; - extern int wxDataViewModel_methodCount; - extern void wxLua_wxDataViewModel_delete_function(void** p); - extern wxLuaBindMethod wxDataViewModelNotifier_methods[]; - extern int wxDataViewModelNotifier_methodCount; - extern void wxLua_wxDataViewModelNotifier_delete_function(void** p); - extern wxLuaBindMethod wxDataViewProgressRenderer_methods[]; - extern int wxDataViewProgressRenderer_methodCount; - extern void wxLua_wxDataViewProgressRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewRenderer_methods[]; - extern int wxDataViewRenderer_methodCount; - extern void wxLua_wxDataViewRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewRendererBase_methods[]; - extern int wxDataViewRendererBase_methodCount; - extern void wxLua_wxDataViewRendererBase_delete_function(void** p); - extern wxLuaBindMethod wxDataViewTextRenderer_methods[]; - extern int wxDataViewTextRenderer_methodCount; - extern void wxLua_wxDataViewTextRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewToggleRenderer_methods[]; - extern int wxDataViewToggleRenderer_methodCount; - extern void wxLua_wxDataViewToggleRenderer_delete_function(void** p); - extern wxLuaBindMethod wxDataViewTreeStore_methods[]; - extern int wxDataViewTreeStore_methodCount; - extern void wxLua_wxDataViewTreeStore_delete_function(void** p); - extern wxLuaBindMethod wxDataViewTreeStoreContainerNode_methods[]; - extern int wxDataViewTreeStoreContainerNode_methodCount; - extern void wxLua_wxDataViewTreeStoreContainerNode_delete_function(void** p); - extern wxLuaBindMethod wxDataViewTreeStoreNode_methods[]; - extern int wxDataViewTreeStoreNode_methodCount; - extern void wxLua_wxDataViewTreeStoreNode_delete_function(void** p); - extern wxLuaBindMethod wxDataViewValueAdjuster_methods[]; - extern int wxDataViewValueAdjuster_methodCount; - extern void wxLua_wxDataViewValueAdjuster_delete_function(void** p); - extern wxLuaBindMethod wxHeaderColumn_methods[]; - extern int wxHeaderColumn_methodCount; - extern void wxLua_wxHeaderColumn_delete_function(void** p); - extern wxLuaBindMethod wxSettableHeaderColumn_methods[]; - extern int wxSettableHeaderColumn_methodCount; - extern void wxLua_wxSettableHeaderColumn_delete_function(void** p); -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - extern wxLuaBindMethod wxBitmapComboBox_methods[]; - extern int wxBitmapComboBox_methodCount; - extern void wxLua_wxBitmapComboBox_delete_function(void** p); -#endif // wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - extern wxLuaBindMethod wxCalendarCtrl_methods[]; - extern int wxCalendarCtrl_methodCount; - extern void wxLua_wxCalendarCtrl_delete_function(void** p); - extern wxLuaBindMethod wxCalendarDateAttr_methods[]; - extern int wxCalendarDateAttr_methodCount; - extern void wxLua_wxCalendarDateAttr_delete_function(void** p); - extern wxLuaBindMethod wxCalendarEvent_methods[]; - extern int wxCalendarEvent_methodCount; - extern void wxLua_wxCalendarEvent_delete_function(void** p); - extern wxLuaBindMethod wxDateEvent_methods[]; - extern int wxDateEvent_methodCount; - extern void wxLua_wxDateEvent_delete_function(void** p); -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxLUA_USE_wxGrid && wxUSE_GRID - extern wxLuaBindMethod wxGrid_methods[]; - extern int wxGrid_methodCount; - extern wxLuaBindNumber wxGrid_enums[]; - extern int wxGrid_enumCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxGrid[] = { &wxluatype_wxScrollHelper, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxGrid[] = { wxIntPtr(((wxIntPtr)(wxScrollHelper*)(wxGrid*)&wxluatype_TNONE) - ((wxIntPtr)(wxGrid*)&wxluatype_TNONE)) }; - extern void wxLua_wxGrid_delete_function(void** p); - extern wxLuaBindMethod wxGridCellAttr_methods[]; - extern int wxGridCellAttr_methodCount; - extern wxLuaBindNumber wxGridCellAttr_enums[]; - extern int wxGridCellAttr_enumCount; - extern void wxLua_wxGridCellAttr_delete_function(void** p); - extern wxLuaBindMethod wxGridCellAttrProvider_methods[]; - extern int wxGridCellAttrProvider_methodCount; - extern void wxLua_wxGridCellAttrProvider_delete_function(void** p); - extern wxLuaBindMethod wxGridCellAutoWrapStringEditor_methods[]; - extern int wxGridCellAutoWrapStringEditor_methodCount; - extern void wxLua_wxGridCellAutoWrapStringEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellAutoWrapStringRenderer_methods[]; - extern int wxGridCellAutoWrapStringRenderer_methodCount; - extern void wxLua_wxGridCellAutoWrapStringRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellBoolEditor_methods[]; - extern int wxGridCellBoolEditor_methodCount; - extern void wxLua_wxGridCellBoolEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellBoolRenderer_methods[]; - extern int wxGridCellBoolRenderer_methodCount; - extern void wxLua_wxGridCellBoolRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellChoiceEditor_methods[]; - extern int wxGridCellChoiceEditor_methodCount; - extern void wxLua_wxGridCellChoiceEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellCoords_methods[]; - extern int wxGridCellCoords_methodCount; - extern void wxLua_wxGridCellCoords_delete_function(void** p); - extern wxLuaBindMethod wxGridCellCoordsArray_methods[]; - extern int wxGridCellCoordsArray_methodCount; - extern void wxLua_wxGridCellCoordsArray_delete_function(void** p); - extern wxLuaBindMethod wxGridCellDateTimeRenderer_methods[]; - extern int wxGridCellDateTimeRenderer_methodCount; - extern void wxLua_wxGridCellDateTimeRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellEditor_methods[]; - extern int wxGridCellEditor_methodCount; - extern void wxLua_wxGridCellEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellEnumEditor_methods[]; - extern int wxGridCellEnumEditor_methodCount; - extern void wxLua_wxGridCellEnumEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellEnumRenderer_methods[]; - extern int wxGridCellEnumRenderer_methodCount; - extern void wxLua_wxGridCellEnumRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellFloatEditor_methods[]; - extern int wxGridCellFloatEditor_methodCount; - extern void wxLua_wxGridCellFloatEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellFloatRenderer_methods[]; - extern int wxGridCellFloatRenderer_methodCount; - extern void wxLua_wxGridCellFloatRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellNumberEditor_methods[]; - extern int wxGridCellNumberEditor_methodCount; - extern void wxLua_wxGridCellNumberEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellNumberRenderer_methods[]; - extern int wxGridCellNumberRenderer_methodCount; - extern void wxLua_wxGridCellNumberRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellRenderer_methods[]; - extern int wxGridCellRenderer_methodCount; - extern void wxLua_wxGridCellRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellStringRenderer_methods[]; - extern int wxGridCellStringRenderer_methodCount; - extern void wxLua_wxGridCellStringRenderer_delete_function(void** p); - extern wxLuaBindMethod wxGridCellTextEditor_methods[]; - extern int wxGridCellTextEditor_methodCount; - extern void wxLua_wxGridCellTextEditor_delete_function(void** p); - extern wxLuaBindMethod wxGridCellWorker_methods[]; - extern int wxGridCellWorker_methodCount; - extern void wxLua_wxGridCellWorker_delete_function(void** p); - extern wxLuaBindMethod wxGridEditorCreatedEvent_methods[]; - extern int wxGridEditorCreatedEvent_methodCount; - extern void wxLua_wxGridEditorCreatedEvent_delete_function(void** p); - extern wxLuaBindMethod wxGridEvent_methods[]; - extern int wxGridEvent_methodCount; - extern void wxLua_wxGridEvent_delete_function(void** p); - extern wxLuaBindMethod wxGridRangeSelectEvent_methods[]; - extern int wxGridRangeSelectEvent_methodCount; - extern void wxLua_wxGridRangeSelectEvent_delete_function(void** p); - extern wxLuaBindMethod wxGridSizeEvent_methods[]; - extern int wxGridSizeEvent_methodCount; - extern void wxLua_wxGridSizeEvent_delete_function(void** p); - extern wxLuaBindMethod wxGridStringTable_methods[]; - extern int wxGridStringTable_methodCount; - extern void wxLua_wxGridStringTable_delete_function(void** p); - extern wxLuaBindMethod wxGridTableBase_methods[]; - extern int wxGridTableBase_methodCount; - extern void wxLua_wxGridTableBase_delete_function(void** p); - extern wxLuaBindMethod wxGridTableMessage_methods[]; - extern int wxGridTableMessage_methodCount; - extern void wxLua_wxGridTableMessage_delete_function(void** p); - extern wxLuaBindMethod wxLuaGridTableBase_methods[]; - extern int wxLuaGridTableBase_methodCount; - extern void wxLua_wxLuaGridTableBase_delete_function(void** p); -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - extern wxLuaBindMethod wxJoystick_methods[]; - extern int wxJoystick_methodCount; - extern void wxLua_wxJoystick_delete_function(void** p); - extern wxLuaBindMethod wxJoystickEvent_methods[]; - extern int wxJoystickEvent_methodCount; - extern void wxLua_wxJoystickEvent_delete_function(void** p); -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - extern wxLuaBindMethod wxCalculateLayoutEvent_methods[]; - extern int wxCalculateLayoutEvent_methodCount; - extern void wxLua_wxCalculateLayoutEvent_delete_function(void** p); - extern wxLuaBindMethod wxLayoutAlgorithm_methods[]; - extern int wxLayoutAlgorithm_methodCount; - extern void wxLua_wxLayoutAlgorithm_delete_function(void** p); - extern wxLuaBindMethod wxQueryLayoutInfoEvent_methods[]; - extern int wxQueryLayoutInfoEvent_methodCount; - extern void wxLua_wxQueryLayoutInfoEvent_delete_function(void** p); - extern wxLuaBindMethod wxSashEvent_methods[]; - extern int wxSashEvent_methodCount; - extern void wxLua_wxSashEvent_delete_function(void** p); - extern wxLuaBindMethod wxSashLayoutWindow_methods[]; - extern int wxSashLayoutWindow_methodCount; - extern void wxLua_wxSashLayoutWindow_delete_function(void** p); - extern wxLuaBindMethod wxSashWindow_methods[]; - extern int wxSashWindow_methodCount; - extern void wxLua_wxSashWindow_delete_function(void** p); -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxSplashScreen - extern wxLuaBindMethod wxSplashScreen_methods[]; - extern int wxSplashScreen_methodCount; - extern void wxLua_wxSplashScreen_delete_function(void** p); - extern wxLuaBindMethod wxSplashScreenWindow_methods[]; - extern int wxSplashScreenWindow_methodCount; - extern void wxLua_wxSplashScreenWindow_delete_function(void** p); -#endif // wxLUA_USE_wxSplashScreen - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - extern wxLuaBindMethod wxTaskBarIcon_methods[]; - extern int wxTaskBarIcon_methodCount; - extern void wxLua_wxTaskBarIcon_delete_function(void** p); - extern wxLuaBindMethod wxTaskBarIconEvent_methods[]; - extern int wxTaskBarIconEvent_methodCount; - extern void wxLua_wxTaskBarIconEvent_delete_function(void** p); -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - extern wxLuaBindMethod wxWizard_methods[]; - extern int wxWizard_methodCount; - extern void wxLua_wxWizard_delete_function(void** p); - extern wxLuaBindMethod wxWizardEvent_methods[]; - extern int wxWizardEvent_methodCount; - extern void wxLua_wxWizardEvent_delete_function(void** p); - extern wxLuaBindMethod wxWizardPage_methods[]; - extern int wxWizardPage_methodCount; - extern void wxLua_wxWizardPage_delete_function(void** p); - extern wxLuaBindMethod wxWizardPageSimple_methods[]; - extern int wxWizardPageSimple_methodCount; - extern void wxLua_wxWizardPageSimple_delete_function(void** p); -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - - - -wxLuaBindClass* wxLuaGetClassList_wxadv(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - { wxluaclassname_wxAboutDialogInfo, wxAboutDialogInfo_methods, wxAboutDialogInfo_methodCount, NULL, &wxluatype_wxAboutDialogInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAboutDialogInfo_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_ABOUTDLG && wxLUA_USE_wxAboutDialog - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - { wxluaclassname_wxAnimation, wxAnimation_methods, wxAnimation_methodCount, CLASSINFO(wxAnimation), &wxluatype_wxAnimation, wxluabaseclassnames_wxAnimation, wxluabaseclassbinds_wxAnimation, NULL, NULL, NULL, 0, &wxLua_wxAnimation_delete_function, }, - { wxluaclassname_wxAnimationCtrl, wxAnimationCtrl_methods, wxAnimationCtrl_methodCount, CLASSINFO(wxAnimationCtrl), &wxluatype_wxAnimationCtrl, wxluabaseclassnames_wxAnimationCtrl, wxluabaseclassbinds_wxAnimationCtrl, NULL, NULL, NULL, 0, &wxLua_wxAnimationCtrl_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxAnimation && wxUSE_ANIMATIONCTRL - -#if wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - { wxluaclassname_wxBitmapComboBox, wxBitmapComboBox_methods, wxBitmapComboBox_methodCount, CLASSINFO(wxBitmapComboBox), &wxluatype_wxBitmapComboBox, wxluabaseclassnames_wxBitmapComboBox, wxluabaseclassbinds_wxBitmapComboBox, NULL, NULL, NULL, 0, &wxLua_wxBitmapComboBox_delete_function, }, -#endif // wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { wxluaclassname_wxCalculateLayoutEvent, wxCalculateLayoutEvent_methods, wxCalculateLayoutEvent_methodCount, CLASSINFO(wxCalculateLayoutEvent), &wxluatype_wxCalculateLayoutEvent, wxluabaseclassnames_wxCalculateLayoutEvent, wxluabaseclassbinds_wxCalculateLayoutEvent, NULL, NULL, NULL, 0, &wxLua_wxCalculateLayoutEvent_delete_function, }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - { wxluaclassname_wxCalendarCtrl, wxCalendarCtrl_methods, wxCalendarCtrl_methodCount, CLASSINFO(wxCalendarCtrl), &wxluatype_wxCalendarCtrl, wxluabaseclassnames_wxCalendarCtrl, wxluabaseclassbinds_wxCalendarCtrl, NULL, NULL, NULL, 0, &wxLua_wxCalendarCtrl_delete_function, }, - { wxluaclassname_wxCalendarDateAttr, wxCalendarDateAttr_methods, wxCalendarDateAttr_methodCount, NULL, &wxluatype_wxCalendarDateAttr, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxCalendarDateAttr_delete_function, }, - { wxluaclassname_wxCalendarEvent, wxCalendarEvent_methods, wxCalendarEvent_methodCount, CLASSINFO(wxCalendarEvent), &wxluatype_wxCalendarEvent, wxluabaseclassnames_wxCalendarEvent, wxluabaseclassbinds_wxCalendarEvent, NULL, NULL, NULL, 0, &wxLua_wxCalendarEvent_delete_function, }, -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - { wxluaclassname_wxDataViewBitmapRenderer, wxDataViewBitmapRenderer_methods, wxDataViewBitmapRenderer_methodCount, CLASSINFO(wxDataViewBitmapRenderer), &wxluatype_wxDataViewBitmapRenderer, wxluabaseclassnames_wxDataViewBitmapRenderer, wxluabaseclassbinds_wxDataViewBitmapRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewBitmapRenderer_delete_function, }, - { wxluaclassname_wxDataViewCheckIconText, wxDataViewCheckIconText_methods, wxDataViewCheckIconText_methodCount, CLASSINFO(wxDataViewCheckIconText), &wxluatype_wxDataViewCheckIconText, wxluabaseclassnames_wxDataViewCheckIconText, wxluabaseclassbinds_wxDataViewCheckIconText, NULL, NULL, NULL, 0, &wxLua_wxDataViewCheckIconText_delete_function, }, - { wxluaclassname_wxDataViewChoiceByIndexRenderer, wxDataViewChoiceByIndexRenderer_methods, wxDataViewChoiceByIndexRenderer_methodCount, CLASSINFO(wxDataViewChoiceByIndexRenderer), &wxluatype_wxDataViewChoiceByIndexRenderer, wxluabaseclassnames_wxDataViewChoiceByIndexRenderer, wxluabaseclassbinds_wxDataViewChoiceByIndexRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewChoiceByIndexRenderer_delete_function, }, - { wxluaclassname_wxDataViewChoiceRenderer, wxDataViewChoiceRenderer_methods, wxDataViewChoiceRenderer_methodCount, CLASSINFO(wxDataViewChoiceRenderer), &wxluatype_wxDataViewChoiceRenderer, wxluabaseclassnames_wxDataViewChoiceRenderer, wxluabaseclassbinds_wxDataViewChoiceRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewChoiceRenderer_delete_function, }, - { wxluaclassname_wxDataViewColumn, wxDataViewColumn_methods, wxDataViewColumn_methodCount, NULL, &wxluatype_wxDataViewColumn, wxluabaseclassnames_wxDataViewColumn, wxluabaseclassbinds_wxDataViewColumn, NULL, NULL, NULL, 0, &wxLua_wxDataViewColumn_delete_function, }, - { wxluaclassname_wxDataViewColumnBase, wxDataViewColumnBase_methods, wxDataViewColumnBase_methodCount, NULL, &wxluatype_wxDataViewColumnBase, wxluabaseclassnames_wxDataViewColumnBase, wxluabaseclassbinds_wxDataViewColumnBase, NULL, NULL, NULL, 0, &wxLua_wxDataViewColumnBase_delete_function, }, - { wxluaclassname_wxDataViewCtrl, wxDataViewCtrl_methods, wxDataViewCtrl_methodCount, CLASSINFO(wxDataViewCtrl), &wxluatype_wxDataViewCtrl, wxluabaseclassnames_wxDataViewCtrl, wxluabaseclassbinds_wxDataViewCtrl, NULL, NULL, NULL, 0, &wxLua_wxDataViewCtrl_delete_function, }, - { wxluaclassname_wxDataViewCtrlBase, wxDataViewCtrlBase_methods, wxDataViewCtrlBase_methodCount, CLASSINFO(wxDataViewCtrlBase), &wxluatype_wxDataViewCtrlBase, wxluabaseclassnames_wxDataViewCtrlBase, wxluabaseclassbinds_wxDataViewCtrlBase, NULL, NULL, NULL, 0, &wxLua_wxDataViewCtrlBase_delete_function, }, - { wxluaclassname_wxDataViewCustomRendererBase, wxDataViewCustomRendererBase_methods, wxDataViewCustomRendererBase_methodCount, CLASSINFO(wxDataViewCustomRendererBase), &wxluatype_wxDataViewCustomRendererBase, wxluabaseclassnames_wxDataViewCustomRendererBase, wxluabaseclassbinds_wxDataViewCustomRendererBase, NULL, NULL, NULL, 0, &wxLua_wxDataViewCustomRendererBase_delete_function, }, - { wxluaclassname_wxDataViewEvent, wxDataViewEvent_methods, wxDataViewEvent_methodCount, CLASSINFO(wxDataViewEvent), &wxluatype_wxDataViewEvent, wxluabaseclassnames_wxDataViewEvent, wxluabaseclassbinds_wxDataViewEvent, NULL, NULL, NULL, 0, &wxLua_wxDataViewEvent_delete_function, }, - { wxluaclassname_wxDataViewIconText, wxDataViewIconText_methods, wxDataViewIconText_methodCount, CLASSINFO(wxDataViewIconText), &wxluatype_wxDataViewIconText, wxluabaseclassnames_wxDataViewIconText, wxluabaseclassbinds_wxDataViewIconText, NULL, NULL, NULL, 0, &wxLua_wxDataViewIconText_delete_function, }, - { wxluaclassname_wxDataViewIconTextRenderer, wxDataViewIconTextRenderer_methods, wxDataViewIconTextRenderer_methodCount, CLASSINFO(wxDataViewIconTextRenderer), &wxluatype_wxDataViewIconTextRenderer, wxluabaseclassnames_wxDataViewIconTextRenderer, wxluabaseclassbinds_wxDataViewIconTextRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewIconTextRenderer_delete_function, }, - { wxluaclassname_wxDataViewIndexListModel, wxDataViewIndexListModel_methods, wxDataViewIndexListModel_methodCount, NULL, &wxluatype_wxDataViewIndexListModel, wxluabaseclassnames_wxDataViewIndexListModel, wxluabaseclassbinds_wxDataViewIndexListModel, NULL, NULL, NULL, 0, &wxLua_wxDataViewIndexListModel_delete_function, }, - { wxluaclassname_wxDataViewItem, wxDataViewItem_methods, wxDataViewItem_methodCount, NULL, &wxluatype_wxDataViewItem, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewItem_delete_function, }, - { wxluaclassname_wxDataViewItemArray, wxDataViewItemArray_methods, wxDataViewItemArray_methodCount, NULL, &wxluatype_wxDataViewItemArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewItemArray_delete_function, }, - { wxluaclassname_wxDataViewItemAttr, wxDataViewItemAttr_methods, wxDataViewItemAttr_methodCount, NULL, &wxluatype_wxDataViewItemAttr, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewItemAttr_delete_function, }, - { wxluaclassname_wxDataViewListCtrl, wxDataViewListCtrl_methods, wxDataViewListCtrl_methodCount, CLASSINFO(wxDataViewListCtrl), &wxluatype_wxDataViewListCtrl, wxluabaseclassnames_wxDataViewListCtrl, wxluabaseclassbinds_wxDataViewListCtrl, NULL, NULL, NULL, 0, &wxLua_wxDataViewListCtrl_delete_function, }, - { wxluaclassname_wxDataViewListModel, wxDataViewListModel_methods, wxDataViewListModel_methodCount, NULL, &wxluatype_wxDataViewListModel, wxluabaseclassnames_wxDataViewListModel, wxluabaseclassbinds_wxDataViewListModel, NULL, NULL, NULL, 0, &wxLua_wxDataViewListModel_delete_function, }, - { wxluaclassname_wxDataViewListStore, wxDataViewListStore_methods, wxDataViewListStore_methodCount, NULL, &wxluatype_wxDataViewListStore, wxluabaseclassnames_wxDataViewListStore, wxluabaseclassbinds_wxDataViewListStore, NULL, NULL, NULL, 0, &wxLua_wxDataViewListStore_delete_function, }, - { wxluaclassname_wxDataViewListStoreLine, wxDataViewListStoreLine_methods, wxDataViewListStoreLine_methodCount, NULL, &wxluatype_wxDataViewListStoreLine, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewListStoreLine_delete_function, }, - { wxluaclassname_wxDataViewModel, wxDataViewModel_methods, wxDataViewModel_methodCount, NULL, &wxluatype_wxDataViewModel, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewModel_delete_function, }, - { wxluaclassname_wxDataViewModelNotifier, wxDataViewModelNotifier_methods, wxDataViewModelNotifier_methodCount, NULL, &wxluatype_wxDataViewModelNotifier, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewModelNotifier_delete_function, }, - { wxluaclassname_wxDataViewProgressRenderer, wxDataViewProgressRenderer_methods, wxDataViewProgressRenderer_methodCount, CLASSINFO(wxDataViewProgressRenderer), &wxluatype_wxDataViewProgressRenderer, wxluabaseclassnames_wxDataViewProgressRenderer, wxluabaseclassbinds_wxDataViewProgressRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewProgressRenderer_delete_function, }, - { wxluaclassname_wxDataViewRenderer, wxDataViewRenderer_methods, wxDataViewRenderer_methodCount, CLASSINFO(wxDataViewRenderer), &wxluatype_wxDataViewRenderer, wxluabaseclassnames_wxDataViewRenderer, wxluabaseclassbinds_wxDataViewRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewRenderer_delete_function, }, - { wxluaclassname_wxDataViewRendererBase, wxDataViewRendererBase_methods, wxDataViewRendererBase_methodCount, CLASSINFO(wxDataViewRendererBase), &wxluatype_wxDataViewRendererBase, wxluabaseclassnames_wxDataViewRendererBase, wxluabaseclassbinds_wxDataViewRendererBase, NULL, NULL, NULL, 0, &wxLua_wxDataViewRendererBase_delete_function, }, -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - { wxluaclassname_wxDataViewSpinRenderer, wxDataViewSpinRenderer_methods, wxDataViewSpinRenderer_methodCount, CLASSINFO(wxDataViewSpinRenderer), &wxluatype_wxDataViewSpinRenderer, wxluabaseclassnames_wxDataViewSpinRenderer, wxluabaseclassbinds_wxDataViewSpinRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewSpinRenderer_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl) && (wxUSE_SPINCTRL) - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - { wxluaclassname_wxDataViewTextRenderer, wxDataViewTextRenderer_methods, wxDataViewTextRenderer_methodCount, CLASSINFO(wxDataViewTextRenderer), &wxluatype_wxDataViewTextRenderer, wxluabaseclassnames_wxDataViewTextRenderer, wxluabaseclassbinds_wxDataViewTextRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewTextRenderer_delete_function, }, - { wxluaclassname_wxDataViewToggleRenderer, wxDataViewToggleRenderer_methods, wxDataViewToggleRenderer_methodCount, CLASSINFO(wxDataViewToggleRenderer), &wxluatype_wxDataViewToggleRenderer, wxluabaseclassnames_wxDataViewToggleRenderer, wxluabaseclassbinds_wxDataViewToggleRenderer, NULL, NULL, NULL, 0, &wxLua_wxDataViewToggleRenderer_delete_function, }, - { wxluaclassname_wxDataViewTreeStore, wxDataViewTreeStore_methods, wxDataViewTreeStore_methodCount, NULL, &wxluatype_wxDataViewTreeStore, wxluabaseclassnames_wxDataViewTreeStore, wxluabaseclassbinds_wxDataViewTreeStore, NULL, NULL, NULL, 0, &wxLua_wxDataViewTreeStore_delete_function, }, - { wxluaclassname_wxDataViewTreeStoreContainerNode, wxDataViewTreeStoreContainerNode_methods, wxDataViewTreeStoreContainerNode_methodCount, NULL, &wxluatype_wxDataViewTreeStoreContainerNode, wxluabaseclassnames_wxDataViewTreeStoreContainerNode, wxluabaseclassbinds_wxDataViewTreeStoreContainerNode, NULL, NULL, NULL, 0, &wxLua_wxDataViewTreeStoreContainerNode_delete_function, }, - { wxluaclassname_wxDataViewTreeStoreNode, wxDataViewTreeStoreNode_methods, wxDataViewTreeStoreNode_methodCount, NULL, &wxluatype_wxDataViewTreeStoreNode, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewTreeStoreNode_delete_function, }, - { wxluaclassname_wxDataViewValueAdjuster, wxDataViewValueAdjuster_methods, wxDataViewValueAdjuster_methodCount, NULL, &wxluatype_wxDataViewValueAdjuster, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataViewValueAdjuster_delete_function, }, -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - { wxluaclassname_wxDateEvent, wxDateEvent_methods, wxDateEvent_methodCount, CLASSINFO(wxDateEvent), &wxluatype_wxDateEvent, wxluabaseclassnames_wxDateEvent, wxluabaseclassbinds_wxDateEvent, NULL, NULL, NULL, 0, &wxLua_wxDateEvent_delete_function, }, -#endif // wxLUA_USE_wxCalendarCtrl && wxUSE_CALENDARCTRL - -#if wxLUA_USE_wxGrid && wxUSE_GRID - { wxluaclassname_wxGrid, wxGrid_methods, wxGrid_methodCount, CLASSINFO(wxGrid), &wxluatype_wxGrid, wxluabaseclassnames_wxGrid, wxluabaseclassbinds_wxGrid, wxluabaseclass_wxluatypes_wxGrid, wxluabaseclass_vtable_offsets_wxGrid, wxGrid_enums, wxGrid_enumCount, &wxLua_wxGrid_delete_function, }, - { wxluaclassname_wxGridCellAttr, wxGridCellAttr_methods, wxGridCellAttr_methodCount, NULL, &wxluatype_wxGridCellAttr, wxluabaseclassnames_wxGridCellAttr, wxluabaseclassbinds_wxGridCellAttr, NULL, NULL, wxGridCellAttr_enums, wxGridCellAttr_enumCount, &wxLua_wxGridCellAttr_delete_function, }, - { wxluaclassname_wxGridCellAttrProvider, wxGridCellAttrProvider_methods, wxGridCellAttrProvider_methodCount, NULL, &wxluatype_wxGridCellAttrProvider, wxluabaseclassnames_wxGridCellAttrProvider, wxluabaseclassbinds_wxGridCellAttrProvider, NULL, NULL, NULL, 0, &wxLua_wxGridCellAttrProvider_delete_function, }, - { wxluaclassname_wxGridCellAutoWrapStringEditor, wxGridCellAutoWrapStringEditor_methods, wxGridCellAutoWrapStringEditor_methodCount, NULL, &wxluatype_wxGridCellAutoWrapStringEditor, wxluabaseclassnames_wxGridCellAutoWrapStringEditor, wxluabaseclassbinds_wxGridCellAutoWrapStringEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellAutoWrapStringEditor_delete_function, }, - { wxluaclassname_wxGridCellAutoWrapStringRenderer, wxGridCellAutoWrapStringRenderer_methods, wxGridCellAutoWrapStringRenderer_methodCount, NULL, &wxluatype_wxGridCellAutoWrapStringRenderer, wxluabaseclassnames_wxGridCellAutoWrapStringRenderer, wxluabaseclassbinds_wxGridCellAutoWrapStringRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellAutoWrapStringRenderer_delete_function, }, - { wxluaclassname_wxGridCellBoolEditor, wxGridCellBoolEditor_methods, wxGridCellBoolEditor_methodCount, NULL, &wxluatype_wxGridCellBoolEditor, wxluabaseclassnames_wxGridCellBoolEditor, wxluabaseclassbinds_wxGridCellBoolEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellBoolEditor_delete_function, }, - { wxluaclassname_wxGridCellBoolRenderer, wxGridCellBoolRenderer_methods, wxGridCellBoolRenderer_methodCount, NULL, &wxluatype_wxGridCellBoolRenderer, wxluabaseclassnames_wxGridCellBoolRenderer, wxluabaseclassbinds_wxGridCellBoolRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellBoolRenderer_delete_function, }, - { wxluaclassname_wxGridCellChoiceEditor, wxGridCellChoiceEditor_methods, wxGridCellChoiceEditor_methodCount, NULL, &wxluatype_wxGridCellChoiceEditor, wxluabaseclassnames_wxGridCellChoiceEditor, wxluabaseclassbinds_wxGridCellChoiceEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellChoiceEditor_delete_function, }, - { wxluaclassname_wxGridCellCoords, wxGridCellCoords_methods, wxGridCellCoords_methodCount, NULL, &wxluatype_wxGridCellCoords, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGridCellCoords_delete_function, }, - { wxluaclassname_wxGridCellCoordsArray, wxGridCellCoordsArray_methods, wxGridCellCoordsArray_methodCount, NULL, &wxluatype_wxGridCellCoordsArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGridCellCoordsArray_delete_function, }, - { wxluaclassname_wxGridCellDateTimeRenderer, wxGridCellDateTimeRenderer_methods, wxGridCellDateTimeRenderer_methodCount, NULL, &wxluatype_wxGridCellDateTimeRenderer, wxluabaseclassnames_wxGridCellDateTimeRenderer, wxluabaseclassbinds_wxGridCellDateTimeRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellDateTimeRenderer_delete_function, }, - { wxluaclassname_wxGridCellEditor, wxGridCellEditor_methods, wxGridCellEditor_methodCount, NULL, &wxluatype_wxGridCellEditor, wxluabaseclassnames_wxGridCellEditor, wxluabaseclassbinds_wxGridCellEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellEditor_delete_function, }, - { wxluaclassname_wxGridCellEnumEditor, wxGridCellEnumEditor_methods, wxGridCellEnumEditor_methodCount, NULL, &wxluatype_wxGridCellEnumEditor, wxluabaseclassnames_wxGridCellEnumEditor, wxluabaseclassbinds_wxGridCellEnumEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellEnumEditor_delete_function, }, - { wxluaclassname_wxGridCellEnumRenderer, wxGridCellEnumRenderer_methods, wxGridCellEnumRenderer_methodCount, NULL, &wxluatype_wxGridCellEnumRenderer, wxluabaseclassnames_wxGridCellEnumRenderer, wxluabaseclassbinds_wxGridCellEnumRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellEnumRenderer_delete_function, }, - { wxluaclassname_wxGridCellFloatEditor, wxGridCellFloatEditor_methods, wxGridCellFloatEditor_methodCount, NULL, &wxluatype_wxGridCellFloatEditor, wxluabaseclassnames_wxGridCellFloatEditor, wxluabaseclassbinds_wxGridCellFloatEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellFloatEditor_delete_function, }, - { wxluaclassname_wxGridCellFloatRenderer, wxGridCellFloatRenderer_methods, wxGridCellFloatRenderer_methodCount, NULL, &wxluatype_wxGridCellFloatRenderer, wxluabaseclassnames_wxGridCellFloatRenderer, wxluabaseclassbinds_wxGridCellFloatRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellFloatRenderer_delete_function, }, - { wxluaclassname_wxGridCellNumberEditor, wxGridCellNumberEditor_methods, wxGridCellNumberEditor_methodCount, NULL, &wxluatype_wxGridCellNumberEditor, wxluabaseclassnames_wxGridCellNumberEditor, wxluabaseclassbinds_wxGridCellNumberEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellNumberEditor_delete_function, }, - { wxluaclassname_wxGridCellNumberRenderer, wxGridCellNumberRenderer_methods, wxGridCellNumberRenderer_methodCount, NULL, &wxluatype_wxGridCellNumberRenderer, wxluabaseclassnames_wxGridCellNumberRenderer, wxluabaseclassbinds_wxGridCellNumberRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellNumberRenderer_delete_function, }, - { wxluaclassname_wxGridCellRenderer, wxGridCellRenderer_methods, wxGridCellRenderer_methodCount, NULL, &wxluatype_wxGridCellRenderer, wxluabaseclassnames_wxGridCellRenderer, wxluabaseclassbinds_wxGridCellRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellRenderer_delete_function, }, - { wxluaclassname_wxGridCellStringRenderer, wxGridCellStringRenderer_methods, wxGridCellStringRenderer_methodCount, NULL, &wxluatype_wxGridCellStringRenderer, wxluabaseclassnames_wxGridCellStringRenderer, wxluabaseclassbinds_wxGridCellStringRenderer, NULL, NULL, NULL, 0, &wxLua_wxGridCellStringRenderer_delete_function, }, - { wxluaclassname_wxGridCellTextEditor, wxGridCellTextEditor_methods, wxGridCellTextEditor_methodCount, NULL, &wxluatype_wxGridCellTextEditor, wxluabaseclassnames_wxGridCellTextEditor, wxluabaseclassbinds_wxGridCellTextEditor, NULL, NULL, NULL, 0, &wxLua_wxGridCellTextEditor_delete_function, }, - { wxluaclassname_wxGridCellWorker, wxGridCellWorker_methods, wxGridCellWorker_methodCount, NULL, &wxluatype_wxGridCellWorker, wxluabaseclassnames_wxGridCellWorker, wxluabaseclassbinds_wxGridCellWorker, NULL, NULL, NULL, 0, &wxLua_wxGridCellWorker_delete_function, }, - { wxluaclassname_wxGridEditorCreatedEvent, wxGridEditorCreatedEvent_methods, wxGridEditorCreatedEvent_methodCount, CLASSINFO(wxGridEditorCreatedEvent), &wxluatype_wxGridEditorCreatedEvent, wxluabaseclassnames_wxGridEditorCreatedEvent, wxluabaseclassbinds_wxGridEditorCreatedEvent, NULL, NULL, NULL, 0, &wxLua_wxGridEditorCreatedEvent_delete_function, }, - { wxluaclassname_wxGridEvent, wxGridEvent_methods, wxGridEvent_methodCount, CLASSINFO(wxGridEvent), &wxluatype_wxGridEvent, wxluabaseclassnames_wxGridEvent, wxluabaseclassbinds_wxGridEvent, NULL, NULL, NULL, 0, &wxLua_wxGridEvent_delete_function, }, - { wxluaclassname_wxGridRangeSelectEvent, wxGridRangeSelectEvent_methods, wxGridRangeSelectEvent_methodCount, CLASSINFO(wxGridRangeSelectEvent), &wxluatype_wxGridRangeSelectEvent, wxluabaseclassnames_wxGridRangeSelectEvent, wxluabaseclassbinds_wxGridRangeSelectEvent, NULL, NULL, NULL, 0, &wxLua_wxGridRangeSelectEvent_delete_function, }, - { wxluaclassname_wxGridSizeEvent, wxGridSizeEvent_methods, wxGridSizeEvent_methodCount, CLASSINFO(wxGridSizeEvent), &wxluatype_wxGridSizeEvent, wxluabaseclassnames_wxGridSizeEvent, wxluabaseclassbinds_wxGridSizeEvent, NULL, NULL, NULL, 0, &wxLua_wxGridSizeEvent_delete_function, }, - { wxluaclassname_wxGridStringTable, wxGridStringTable_methods, wxGridStringTable_methodCount, CLASSINFO(wxGridStringTable), &wxluatype_wxGridStringTable, wxluabaseclassnames_wxGridStringTable, wxluabaseclassbinds_wxGridStringTable, NULL, NULL, NULL, 0, &wxLua_wxGridStringTable_delete_function, }, - { wxluaclassname_wxGridTableBase, wxGridTableBase_methods, wxGridTableBase_methodCount, CLASSINFO(wxGridTableBase), &wxluatype_wxGridTableBase, wxluabaseclassnames_wxGridTableBase, wxluabaseclassbinds_wxGridTableBase, NULL, NULL, NULL, 0, &wxLua_wxGridTableBase_delete_function, }, - { wxluaclassname_wxGridTableMessage, wxGridTableMessage_methods, wxGridTableMessage_methodCount, NULL, &wxluatype_wxGridTableMessage, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGridTableMessage_delete_function, }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - { wxluaclassname_wxHeaderColumn, wxHeaderColumn_methods, wxHeaderColumn_methodCount, NULL, &wxluatype_wxHeaderColumn, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHeaderColumn_delete_function, }, -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - { wxluaclassname_wxHyperlinkCtrl, wxHyperlinkCtrl_methods, wxHyperlinkCtrl_methodCount, CLASSINFO(wxHyperlinkCtrl), &wxluatype_wxHyperlinkCtrl, wxluabaseclassnames_wxHyperlinkCtrl, wxluabaseclassbinds_wxHyperlinkCtrl, NULL, NULL, NULL, 0, &wxLua_wxHyperlinkCtrl_delete_function, }, - { wxluaclassname_wxHyperlinkEvent, wxHyperlinkEvent_methods, wxHyperlinkEvent_methodCount, CLASSINFO(wxHyperlinkEvent), &wxluatype_wxHyperlinkEvent, wxluabaseclassnames_wxHyperlinkEvent, wxluabaseclassbinds_wxHyperlinkEvent, NULL, NULL, NULL, 0, &wxLua_wxHyperlinkEvent_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_HYPERLINKCTRL && wxLUA_USE_wxHyperlinkCtrl - -#if wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - { wxluaclassname_wxJoystick, wxJoystick_methods, wxJoystick_methodCount, CLASSINFO(wxJoystick), &wxluatype_wxJoystick, wxluabaseclassnames_wxJoystick, wxluabaseclassbinds_wxJoystick, NULL, NULL, NULL, 0, &wxLua_wxJoystick_delete_function, }, - { wxluaclassname_wxJoystickEvent, wxJoystickEvent_methods, wxJoystickEvent_methodCount, CLASSINFO(wxJoystickEvent), &wxluatype_wxJoystickEvent, wxluabaseclassnames_wxJoystickEvent, wxluabaseclassbinds_wxJoystickEvent, NULL, NULL, NULL, 0, &wxLua_wxJoystickEvent_delete_function, }, -#endif // wxLUA_USE_wxJoystick && wxUSE_JOYSTICK - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { wxluaclassname_wxLayoutAlgorithm, wxLayoutAlgorithm_methods, wxLayoutAlgorithm_methodCount, CLASSINFO(wxLayoutAlgorithm), &wxluatype_wxLayoutAlgorithm, wxluabaseclassnames_wxLayoutAlgorithm, wxluabaseclassbinds_wxLayoutAlgorithm, NULL, NULL, NULL, 0, &wxLua_wxLayoutAlgorithm_delete_function, }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxLUA_USE_wxGrid && wxUSE_GRID - { wxluaclassname_wxLuaGridTableBase, wxLuaGridTableBase_methods, wxLuaGridTableBase_methodCount, CLASSINFO(wxLuaGridTableBase), &wxluatype_wxLuaGridTableBase, wxluabaseclassnames_wxLuaGridTableBase, wxluabaseclassbinds_wxLuaGridTableBase, NULL, NULL, NULL, 0, &wxLua_wxLuaGridTableBase_delete_function, }, -#endif // wxLUA_USE_wxGrid && wxUSE_GRID - -#if wxLUA_USE_wxSashWindow && wxUSE_SASH - { wxluaclassname_wxQueryLayoutInfoEvent, wxQueryLayoutInfoEvent_methods, wxQueryLayoutInfoEvent_methodCount, CLASSINFO(wxQueryLayoutInfoEvent), &wxluatype_wxQueryLayoutInfoEvent, wxluabaseclassnames_wxQueryLayoutInfoEvent, wxluabaseclassbinds_wxQueryLayoutInfoEvent, NULL, NULL, NULL, 0, &wxLua_wxQueryLayoutInfoEvent_delete_function, }, - { wxluaclassname_wxSashEvent, wxSashEvent_methods, wxSashEvent_methodCount, CLASSINFO(wxSashEvent), &wxluatype_wxSashEvent, wxluabaseclassnames_wxSashEvent, wxluabaseclassbinds_wxSashEvent, NULL, NULL, NULL, 0, &wxLua_wxSashEvent_delete_function, }, - { wxluaclassname_wxSashLayoutWindow, wxSashLayoutWindow_methods, wxSashLayoutWindow_methodCount, CLASSINFO(wxSashLayoutWindow), &wxluatype_wxSashLayoutWindow, wxluabaseclassnames_wxSashLayoutWindow, wxluabaseclassbinds_wxSashLayoutWindow, NULL, NULL, NULL, 0, &wxLua_wxSashLayoutWindow_delete_function, }, - { wxluaclassname_wxSashWindow, wxSashWindow_methods, wxSashWindow_methodCount, CLASSINFO(wxSashWindow), &wxluatype_wxSashWindow, wxluabaseclassnames_wxSashWindow, wxluabaseclassbinds_wxSashWindow, NULL, NULL, NULL, 0, &wxLua_wxSashWindow_delete_function, }, -#endif // wxLUA_USE_wxSashWindow && wxUSE_SASH - -#if wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - { wxluaclassname_wxSettableHeaderColumn, wxSettableHeaderColumn_methods, wxSettableHeaderColumn_methodCount, NULL, &wxluatype_wxSettableHeaderColumn, wxluabaseclassnames_wxSettableHeaderColumn, wxluabaseclassbinds_wxSettableHeaderColumn, NULL, NULL, NULL, 0, &wxLua_wxSettableHeaderColumn_delete_function, }, -#endif // wxCHECK_VERSION(3,1,0) && wxUSE_DATAVIEWCTRL && wxLUA_USE_wxDataViewCtrl - -#if (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - { wxluaclassname_wxSound, wxSound_methods, wxSound_methodCount, CLASSINFO(wxSound), &wxluatype_wxSound, wxluabaseclassnames_wxSound, wxluabaseclassbinds_wxSound, NULL, NULL, NULL, 0, &wxLua_wxSound_delete_function, }, -#endif // (wxCHECK_VERSION(2,6,0) && wxUSE_SOUND) && (wxLUA_USE_wxWave) - -#if wxLUA_USE_wxSplashScreen - { wxluaclassname_wxSplashScreen, wxSplashScreen_methods, wxSplashScreen_methodCount, CLASSINFO(wxSplashScreen), &wxluatype_wxSplashScreen, wxluabaseclassnames_wxSplashScreen, wxluabaseclassbinds_wxSplashScreen, NULL, NULL, NULL, 0, &wxLua_wxSplashScreen_delete_function, }, - { wxluaclassname_wxSplashScreenWindow, wxSplashScreenWindow_methods, wxSplashScreenWindow_methodCount, CLASSINFO(wxSplashScreenWindow), &wxluatype_wxSplashScreenWindow, wxluabaseclassnames_wxSplashScreenWindow, wxluabaseclassbinds_wxSplashScreenWindow, NULL, NULL, NULL, 0, &wxLua_wxSplashScreenWindow_delete_function, }, -#endif // wxLUA_USE_wxSplashScreen - -#if wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - { wxluaclassname_wxTaskBarIcon, wxTaskBarIcon_methods, wxTaskBarIcon_methodCount, CLASSINFO(wxTaskBarIcon), &wxluatype_wxTaskBarIcon, wxluabaseclassnames_wxTaskBarIcon, wxluabaseclassbinds_wxTaskBarIcon, NULL, NULL, NULL, 0, &wxLua_wxTaskBarIcon_delete_function, }, - { wxluaclassname_wxTaskBarIconEvent, wxTaskBarIconEvent_methods, wxTaskBarIconEvent_methodCount, CLASSINFO(wxTaskBarIconEvent), &wxluatype_wxTaskBarIconEvent, wxluabaseclassnames_wxTaskBarIconEvent, wxluabaseclassbinds_wxTaskBarIconEvent, NULL, NULL, NULL, 0, &wxLua_wxTaskBarIconEvent_delete_function, }, -#endif // wxLUA_USE_wxTaskBarIcon && defined (wxHAS_TASK_BAR_ICON ) - -#if (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - { wxluaclassname_wxWave, wxWave_methods, wxWave_methodCount, CLASSINFO(wxWave), &wxluatype_wxWave, wxluabaseclassnames_wxWave, wxluabaseclassbinds_wxWave, NULL, NULL, NULL, 0, &wxLua_wxWave_delete_function, }, -#endif // (defined(__WXMSW__) && !wxCHECK_VERSION(2,6,0) && wxUSE_WAVE) && (wxLUA_USE_wxWave) - -#if wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - { wxluaclassname_wxWizard, wxWizard_methods, wxWizard_methodCount, CLASSINFO(wxWizard), &wxluatype_wxWizard, wxluabaseclassnames_wxWizard, wxluabaseclassbinds_wxWizard, NULL, NULL, NULL, 0, &wxLua_wxWizard_delete_function, }, - { wxluaclassname_wxWizardEvent, wxWizardEvent_methods, wxWizardEvent_methodCount, CLASSINFO(wxWizardEvent), &wxluatype_wxWizardEvent, wxluabaseclassnames_wxWizardEvent, wxluabaseclassbinds_wxWizardEvent, NULL, NULL, NULL, 0, &wxLua_wxWizardEvent_delete_function, }, - { wxluaclassname_wxWizardPage, wxWizardPage_methods, wxWizardPage_methodCount, CLASSINFO(wxWizardPage), &wxluatype_wxWizardPage, wxluabaseclassnames_wxWizardPage, wxluabaseclassbinds_wxWizardPage, NULL, NULL, NULL, 0, &wxLua_wxWizardPage_delete_function, }, - { wxluaclassname_wxWizardPageSimple, wxWizardPageSimple_methods, wxWizardPageSimple_methodCount, CLASSINFO(wxWizardPageSimple), &wxluatype_wxWizardPageSimple, wxluabaseclassnames_wxWizardPageSimple, wxluabaseclassbinds_wxWizardPageSimple, NULL, NULL, NULL, 0, &wxLua_wxWizardPageSimple_delete_function, }, -#endif // wxUSE_WIZARDDLG && wxLUA_USE_wxWizard - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxadv() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxadv, wxLuaBinding) - -wxLuaBinding_wxadv::wxLuaBinding_wxadv() : wxLuaBinding() -{ - m_bindingName = wxT("wxadv"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxadv(m_classCount); - m_numberArray = wxLuaGetDefineList_wxadv(m_numberCount); - m_stringArray = wxLuaGetStringList_wxadv(m_stringCount); - m_eventArray = wxLuaGetEventList_wxadv(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxadv(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxadv(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxadv_init() -{ - static wxLuaBinding_wxadv m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxadv_wxladv.cpp b/wxLua/modules/wxbind/src/wxadv_wxladv.cpp index 146622a5..2dc72098 100644 --- a/wxLua/modules/wxbind/src/wxadv_wxladv.cpp +++ b/wxLua/modules/wxbind/src/wxadv_wxladv.cpp @@ -7,17 +7,17 @@ // Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include #endif -#include "wxbind/include/wxadv_wxladv.h" +#include #if wxUSE_GRID && wxLUA_USE_wxGrid diff --git a/wxLua/modules/wxbind/src/wxaui_bind.cpp b/wxLua/modules/wxbind/src/wxaui_bind.cpp deleted file mode 100644 index 6114df5c..00000000 --- a/wxLua/modules/wxbind/src/wxaui_bind.cpp +++ /dev/null @@ -1,14686 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxaui_aui.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxaui_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiToolBarEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiToolBarEvent' -int wxluatype_wxAuiToolBarEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_Clone[] = { &wxluatype_wxAuiToolBarEvent, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_Clone[1] = {{ wxLua_wxAuiToolBarEvent_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_Clone }}; -// wxEvent *Clone() const; -static int LUACALL wxLua_wxAuiToolBarEvent_Clone(lua_State *L) -{ - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call Clone - wxEvent* returns = (wxEvent*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvent); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_GetClickPoint[] = { &wxluatype_wxAuiToolBarEvent, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_GetClickPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_GetClickPoint[1] = {{ wxLua_wxAuiToolBarEvent_GetClickPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_GetClickPoint }}; -// wxPoint GetClickPoint() const; -static int LUACALL wxLua_wxAuiToolBarEvent_GetClickPoint(lua_State *L) -{ - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call GetClickPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetClickPoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_GetItemRect[] = { &wxluatype_wxAuiToolBarEvent, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_GetItemRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_GetItemRect[1] = {{ wxLua_wxAuiToolBarEvent_GetItemRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_GetItemRect }}; -// wxRect GetItemRect() const; -static int LUACALL wxLua_wxAuiToolBarEvent_GetItemRect(lua_State *L) -{ - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call GetItemRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetItemRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_GetToolId[] = { &wxluatype_wxAuiToolBarEvent, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_GetToolId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_GetToolId[1] = {{ wxLua_wxAuiToolBarEvent_GetToolId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_GetToolId }}; -// int GetToolId() const; -static int LUACALL wxLua_wxAuiToolBarEvent_GetToolId(lua_State *L) -{ - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call GetToolId - int returns = (self->GetToolId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_IsDropDownClicked[] = { &wxluatype_wxAuiToolBarEvent, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_IsDropDownClicked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_IsDropDownClicked[1] = {{ wxLua_wxAuiToolBarEvent_IsDropDownClicked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_IsDropDownClicked }}; -// bool IsDropDownClicked() const; -static int LUACALL wxLua_wxAuiToolBarEvent_IsDropDownClicked(lua_State *L) -{ - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call IsDropDownClicked - bool returns = (self->IsDropDownClicked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetClickPoint[] = { &wxluatype_wxAuiToolBarEvent, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_SetClickPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_SetClickPoint[1] = {{ wxLua_wxAuiToolBarEvent_SetClickPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetClickPoint }}; -// void SetClickPoint(const wxPoint& p); -static int LUACALL wxLua_wxAuiToolBarEvent_SetClickPoint(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call SetClickPoint - self->SetClickPoint(*p); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetDropDownClicked[] = { &wxluatype_wxAuiToolBarEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_SetDropDownClicked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_SetDropDownClicked[1] = {{ wxLua_wxAuiToolBarEvent_SetDropDownClicked, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetDropDownClicked }}; -// void SetDropDownClicked(bool c); -static int LUACALL wxLua_wxAuiToolBarEvent_SetDropDownClicked(lua_State *L) -{ - // bool c - bool c = wxlua_getbooleantype(L, 2); - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call SetDropDownClicked - self->SetDropDownClicked(c); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetItemRect[] = { &wxluatype_wxAuiToolBarEvent, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_SetItemRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_SetItemRect[1] = {{ wxLua_wxAuiToolBarEvent_SetItemRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetItemRect }}; -// void SetItemRect(const wxRect& r); -static int LUACALL wxLua_wxAuiToolBarEvent_SetItemRect(lua_State *L) -{ - // const wxRect r - const wxRect * r = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call SetItemRect - self->SetItemRect(*r); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetToolId[] = { &wxluatype_wxAuiToolBarEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_SetToolId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_SetToolId[1] = {{ wxLua_wxAuiToolBarEvent_SetToolId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_SetToolId }}; -// void SetToolId(int id); -static int LUACALL wxLua_wxAuiToolBarEvent_SetToolId(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarEvent * self = (wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call SetToolId - self->SetToolId(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_constructor1[] = { &wxluatype_wxAuiToolBarEvent, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor1[1] = {{ wxLua_wxAuiToolBarEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_constructor1 }}; -// wxAuiToolBarEvent(const wxAuiToolBarEvent& c); -static int LUACALL wxLua_wxAuiToolBarEvent_constructor1(lua_State *L) -{ - // const wxAuiToolBarEvent c - const wxAuiToolBarEvent * c = (const wxAuiToolBarEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarEvent); - // call constructor - wxAuiToolBarEvent* returns = new wxAuiToolBarEvent(*c); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor[1] = {{ wxLua_wxAuiToolBarEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_constructor }}; -// wxAuiToolBarEvent(wxEventType command_type = wxEVT_NULL, int win_id = 0); -static int LUACALL wxLua_wxAuiToolBarEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int win_id = 0 - int win_id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType command_type = wxEVT_NULL - wxEventType command_type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxAuiToolBarEvent* returns = new wxAuiToolBarEvent(command_type, win_id); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarEvent); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor_overload[] = -{ - { wxLua_wxAuiToolBarEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_constructor1 }, - { wxLua_wxAuiToolBarEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxAuiToolBarEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiToolBarEvent_delete_function(void** p) -{ - wxAuiToolBarEvent* o = (wxAuiToolBarEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiToolBarEvent_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_Clone, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "GetClickPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_GetClickPoint, 1, NULL }, - { "GetItemRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_GetItemRect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetToolId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_GetToolId, 1, NULL }, - { "IsDropDownClicked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_IsDropDownClicked, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetClickPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_SetClickPoint, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "SetDropDownClicked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_SetDropDownClicked, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetItemRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_SetItemRect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "SetToolId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarEvent_SetToolId, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiToolBarEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor_overload, s_wxluafunc_wxLua_wxAuiToolBarEvent_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiToolBarEvent_methodCount = sizeof(wxAuiToolBarEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiToolBarItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiToolBarItem' -int wxluatype_wxAuiToolBarItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_Assign[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_Assign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_Assign[1] = {{ wxLua_wxAuiToolBarItem_Assign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_Assign }}; -// void Assign(const wxAuiToolBarItem& c); -static int LUACALL wxLua_wxAuiToolBarItem_Assign(lua_State *L) -{ - // const wxAuiToolBarItem c - const wxAuiToolBarItem * c = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiToolBarItem); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call Assign - self->Assign(*c); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_CanBeToggled[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_CanBeToggled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_CanBeToggled[1] = {{ wxLua_wxAuiToolBarItem_CanBeToggled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_CanBeToggled }}; -// %wxchkver_3_1_5 bool CanBeToggled() const; -static int LUACALL wxLua_wxAuiToolBarItem_CanBeToggled(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call CanBeToggled - bool returns = (self->CanBeToggled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetAlignment[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetAlignment[1] = {{ wxLua_wxAuiToolBarItem_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetAlignment }}; -// %wxchkver_3_0_0 int GetAlignment() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetAlignment(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetAlignment - int returns = (self->GetAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetBitmap1[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetBitmap1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap1[1] = {{ wxLua_wxAuiToolBarItem_GetBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetBitmap1 }}; -// %wxchkver_3_1_6 wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetBitmap1(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetBitmap[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetBitmap(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap[1] = {{ wxLua_wxAuiToolBarItem_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetBitmap }}; -// !%wxchkver_3_1_6 const wxBitmap& GetBitmap() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetBitmap(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetBitmap - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetDisabledBitmap1[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetDisabledBitmap1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap1[1] = {{ wxLua_wxAuiToolBarItem_GetDisabledBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetDisabledBitmap1 }}; -// %wxchkver_3_1_6 wxBitmap GetDisabledBitmap() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetDisabledBitmap1(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetDisabledBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetDisabledBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetDisabledBitmap[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetDisabledBitmap(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap[1] = {{ wxLua_wxAuiToolBarItem_GetDisabledBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetDisabledBitmap }}; -// !%wxchkver_3_1_6 const wxBitmap& GetDisabledBitmap() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetDisabledBitmap(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetDisabledBitmap - const wxBitmap* returns = (const wxBitmap*)&self->GetDisabledBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetHoverBitmap1[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetHoverBitmap1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap1[1] = {{ wxLua_wxAuiToolBarItem_GetHoverBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetHoverBitmap1 }}; -// %wxchkver_3_1_6 wxBitmap GetHoverBitmap() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetHoverBitmap1(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetHoverBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetHoverBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetHoverBitmap[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetHoverBitmap(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap[1] = {{ wxLua_wxAuiToolBarItem_GetHoverBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetHoverBitmap }}; -// !%wxchkver_3_1_6 const wxBitmap& GetHoverBitmap() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetHoverBitmap(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetHoverBitmap - const wxBitmap* returns = (const wxBitmap*)&self->GetHoverBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetId[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetId[1] = {{ wxLua_wxAuiToolBarItem_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetId }}; -// int GetId() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetId(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetKind[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetKind[1] = {{ wxLua_wxAuiToolBarItem_GetKind, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetKind }}; -// int GetKind() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetKind(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetKind - int returns = (self->GetKind()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetLabel[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetLabel[1] = {{ wxLua_wxAuiToolBarItem_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetLabel }}; -// const wxString& GetLabel() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetLabel(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetLongHelp[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetLongHelp[1] = {{ wxLua_wxAuiToolBarItem_GetLongHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetLongHelp }}; -// const wxString& GetLongHelp() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetLongHelp(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetLongHelp - wxString returns = (self->GetLongHelp()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetMinSize[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetMinSize[1] = {{ wxLua_wxAuiToolBarItem_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetMinSize }}; -// const wxSize& GetMinSize() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetMinSize(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetMinSize - const wxSize* returns = (const wxSize*)&self->GetMinSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetProportion[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetProportion[1] = {{ wxLua_wxAuiToolBarItem_GetProportion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetProportion }}; -// int GetProportion() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetProportion(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetProportion - int returns = (self->GetProportion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetShortHelp[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetShortHelp[1] = {{ wxLua_wxAuiToolBarItem_GetShortHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetShortHelp }}; -// const wxString& GetShortHelp() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetShortHelp(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetShortHelp - wxString returns = (self->GetShortHelp()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetSizerItem[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetSizerItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetSizerItem[1] = {{ wxLua_wxAuiToolBarItem_GetSizerItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetSizerItem }}; -// wxSizerItem* GetSizerItem() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetSizerItem(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetSizerItem - wxSizerItem* returns = (wxSizerItem*)self->GetSizerItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetSpacerPixels[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetSpacerPixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetSpacerPixels[1] = {{ wxLua_wxAuiToolBarItem_GetSpacerPixels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetSpacerPixels }}; -// int GetSpacerPixels() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetSpacerPixels(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetSpacerPixels - int returns = (self->GetSpacerPixels()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetState[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetState[1] = {{ wxLua_wxAuiToolBarItem_GetState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetState }}; -// int GetState() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetState(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetState - int returns = (self->GetState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetUserData[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetUserData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetUserData[1] = {{ wxLua_wxAuiToolBarItem_GetUserData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetUserData }}; -// long GetUserData() const; -static int LUACALL wxLua_wxAuiToolBarItem_GetUserData(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetUserData - long returns = (self->GetUserData()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetWindow[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetWindow[1] = {{ wxLua_wxAuiToolBarItem_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetWindow }}; -// wxWindow* GetWindow(); -static int LUACALL wxLua_wxAuiToolBarItem_GetWindow(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_HasDropDown[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_HasDropDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_HasDropDown[1] = {{ wxLua_wxAuiToolBarItem_HasDropDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_HasDropDown }}; -// bool HasDropDown() const; -static int LUACALL wxLua_wxAuiToolBarItem_HasDropDown(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call HasDropDown - bool returns = (self->HasDropDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_IsActive[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_IsActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_IsActive[1] = {{ wxLua_wxAuiToolBarItem_IsActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_IsActive }}; -// bool IsActive() const; -static int LUACALL wxLua_wxAuiToolBarItem_IsActive(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call IsActive - bool returns = (self->IsActive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_IsSticky[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_IsSticky(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_IsSticky[1] = {{ wxLua_wxAuiToolBarItem_IsSticky, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_IsSticky }}; -// bool IsSticky() const; -static int LUACALL wxLua_wxAuiToolBarItem_IsSticky(lua_State *L) -{ - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call IsSticky - bool returns = (self->IsSticky()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetActive[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetActive[1] = {{ wxLua_wxAuiToolBarItem_SetActive, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetActive }}; -// void SetActive(bool b); -static int LUACALL wxLua_wxAuiToolBarItem_SetActive(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetActive - self->SetActive(b); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetAlignment[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetAlignment[1] = {{ wxLua_wxAuiToolBarItem_SetAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetAlignment }}; -// %wxchkver_3_0_0 void SetAlignment(int l); -static int LUACALL wxLua_wxAuiToolBarItem_SetAlignment(lua_State *L) -{ - // int l - int l = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetAlignment - self->SetAlignment(l); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetBitmap[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetBitmap[1] = {{ wxLua_wxAuiToolBarItem_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetBitmap }}; -// void SetBitmap(const wxBitmap& bmp); -static int LUACALL wxLua_wxAuiToolBarItem_SetBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetBitmap - self->SetBitmap(*bmp); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetDisabledBitmap[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetDisabledBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetDisabledBitmap[1] = {{ wxLua_wxAuiToolBarItem_SetDisabledBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetDisabledBitmap }}; -// void SetDisabledBitmap(const wxBitmap& bmp); -static int LUACALL wxLua_wxAuiToolBarItem_SetDisabledBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetDisabledBitmap - self->SetDisabledBitmap(*bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetHasDropDown[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetHasDropDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetHasDropDown[1] = {{ wxLua_wxAuiToolBarItem_SetHasDropDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetHasDropDown }}; -// void SetHasDropDown(bool b); -static int LUACALL wxLua_wxAuiToolBarItem_SetHasDropDown(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetHasDropDown - self->SetHasDropDown(b); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetHoverBitmap[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetHoverBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetHoverBitmap[1] = {{ wxLua_wxAuiToolBarItem_SetHoverBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetHoverBitmap }}; -// void SetHoverBitmap(const wxBitmap& bmp); -static int LUACALL wxLua_wxAuiToolBarItem_SetHoverBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetHoverBitmap - self->SetHoverBitmap(*bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetId[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetId[1] = {{ wxLua_wxAuiToolBarItem_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetId }}; -// void SetId(int new_id); -static int LUACALL wxLua_wxAuiToolBarItem_SetId(lua_State *L) -{ - // int new_id - int new_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetId - self->SetId(new_id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetKind[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetKind[1] = {{ wxLua_wxAuiToolBarItem_SetKind, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetKind }}; -// void SetKind(int new_kind); -static int LUACALL wxLua_wxAuiToolBarItem_SetKind(lua_State *L) -{ - // int new_kind - int new_kind = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetKind - self->SetKind(new_kind); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetLabel[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetLabel[1] = {{ wxLua_wxAuiToolBarItem_SetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetLabel }}; -// void SetLabel(const wxString& s); -static int LUACALL wxLua_wxAuiToolBarItem_SetLabel(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetLabel - self->SetLabel(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetLongHelp[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetLongHelp[1] = {{ wxLua_wxAuiToolBarItem_SetLongHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetLongHelp }}; -// void SetLongHelp(const wxString& s); -static int LUACALL wxLua_wxAuiToolBarItem_SetLongHelp(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetLongHelp - self->SetLongHelp(s); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetMinSize[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetMinSize[1] = {{ wxLua_wxAuiToolBarItem_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetMinSize }}; -// void SetMinSize(const wxSize& s); -static int LUACALL wxLua_wxAuiToolBarItem_SetMinSize(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetMinSize - self->SetMinSize(*s); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetProportion[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetProportion[1] = {{ wxLua_wxAuiToolBarItem_SetProportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetProportion }}; -// void SetProportion(int p); -static int LUACALL wxLua_wxAuiToolBarItem_SetProportion(lua_State *L) -{ - // int p - int p = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetProportion - self->SetProportion(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetShortHelp[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetShortHelp[1] = {{ wxLua_wxAuiToolBarItem_SetShortHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetShortHelp }}; -// void SetShortHelp(const wxString& s); -static int LUACALL wxLua_wxAuiToolBarItem_SetShortHelp(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetShortHelp - self->SetShortHelp(s); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetSizerItem[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetSizerItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetSizerItem[1] = {{ wxLua_wxAuiToolBarItem_SetSizerItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetSizerItem }}; -// void SetSizerItem(wxSizerItem* s); -static int LUACALL wxLua_wxAuiToolBarItem_SetSizerItem(lua_State *L) -{ - // wxSizerItem s - wxSizerItem * s = (wxSizerItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizerItem); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetSizerItem - self->SetSizerItem(s); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetSpacerPixels[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetSpacerPixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetSpacerPixels[1] = {{ wxLua_wxAuiToolBarItem_SetSpacerPixels, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetSpacerPixels }}; -// void SetSpacerPixels(int s); -static int LUACALL wxLua_wxAuiToolBarItem_SetSpacerPixels(lua_State *L) -{ - // int s - int s = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetSpacerPixels - self->SetSpacerPixels(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetState[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetState[1] = {{ wxLua_wxAuiToolBarItem_SetState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetState }}; -// void SetState(int new_state); -static int LUACALL wxLua_wxAuiToolBarItem_SetState(lua_State *L) -{ - // int new_state - int new_state = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetState - self->SetState(new_state); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetSticky[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetSticky(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetSticky[1] = {{ wxLua_wxAuiToolBarItem_SetSticky, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetSticky }}; -// void SetSticky(bool b); -static int LUACALL wxLua_wxAuiToolBarItem_SetSticky(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetSticky - self->SetSticky(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetUserData[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetUserData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetUserData[1] = {{ wxLua_wxAuiToolBarItem_SetUserData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetUserData }}; -// void SetUserData(long l); -static int LUACALL wxLua_wxAuiToolBarItem_SetUserData(lua_State *L) -{ - // long l - long l = (long)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetUserData - self->SetUserData(l); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetWindow[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_SetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_SetWindow[1] = {{ wxLua_wxAuiToolBarItem_SetWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_SetWindow }}; -// void SetWindow(wxWindow* w); -static int LUACALL wxLua_wxAuiToolBarItem_SetWindow(lua_State *L) -{ - // wxWindow w - wxWindow * w = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call SetWindow - self->SetWindow(w); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_op_set[] = { &wxluatype_wxAuiToolBarItem, &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_op_set[1] = {{ wxLua_wxAuiToolBarItem_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItem_op_set }}; -// wxAuiToolBarItem& operator=(const wxAuiToolBarItem& c); -static int LUACALL wxLua_wxAuiToolBarItem_op_set(lua_State *L) -{ - // const wxAuiToolBarItem c - const wxAuiToolBarItem * c = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiToolBarItem); - // get this - wxAuiToolBarItem * self = (wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call op_set - (*self)=(*c); - wxAuiToolBarItem* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItem_constructor1[] = { &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItem_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_constructor1[1] = {{ wxLua_wxAuiToolBarItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_constructor1 }}; -// wxAuiToolBarItem(const wxAuiToolBarItem& c); -static int LUACALL wxLua_wxAuiToolBarItem_constructor1(lua_State *L) -{ - // const wxAuiToolBarItem c - const wxAuiToolBarItem * c = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItem); - // call constructor - wxAuiToolBarItem* returns = new wxAuiToolBarItem(*c); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - -static int LUACALL wxLua_wxAuiToolBarItem_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_constructor[1] = {{ wxLua_wxAuiToolBarItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiToolBarItem(); -static int LUACALL wxLua_wxAuiToolBarItem_constructor(lua_State *L) -{ - // call constructor - wxAuiToolBarItem* returns = new wxAuiToolBarItem(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiToolBarItem_GetBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetBitmap1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiToolBarItem_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetBitmap }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiToolBarItem_GetDisabledBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetDisabledBitmap1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiToolBarItem_GetDisabledBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetDisabledBitmap }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiToolBarItem_GetHoverBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetHoverBitmap1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiToolBarItem_GetHoverBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_GetHoverBitmap }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap)) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItem_constructor_overload[] = -{ - { wxLua_wxAuiToolBarItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItem_constructor1 }, - { wxLua_wxAuiToolBarItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiToolBarItem_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBarItem_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiToolBarItem_delete_function(void** p) -{ - wxAuiToolBarItem* o = (wxAuiToolBarItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiToolBarItem_methods[] = { - { "Assign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_Assign, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "CanBeToggled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_CanBeToggled, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetAlignment, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap)) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap_overload, s_wxluafunc_wxLua_wxAuiToolBarItem_GetBitmap_overload_count, 0 }, - { "GetDisabledBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap_overload, s_wxluafunc_wxLua_wxAuiToolBarItem_GetDisabledBitmap_overload_count, 0 }, - { "GetHoverBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap_overload, s_wxluafunc_wxLua_wxAuiToolBarItem_GetHoverBitmap_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap)) - - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetId, 1, NULL }, - { "GetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetKind, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetLabel, 1, NULL }, - { "GetLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetLongHelp, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "GetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetMinSize, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetProportion, 1, NULL }, - { "GetShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetShortHelp, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetSizerItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetSizerItem, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetSpacerPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetSpacerPixels, 1, NULL }, - { "GetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetState, 1, NULL }, - { "GetUserData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetUserData, 1, NULL }, - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_GetWindow, 1, NULL }, - { "HasDropDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_HasDropDown, 1, NULL }, - { "IsActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_IsActive, 1, NULL }, - { "IsSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_IsSticky, 1, NULL }, - { "SetActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetActive, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetAlignment, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetBitmap, 1, NULL }, - { "SetDisabledBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetDisabledBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - { "SetHasDropDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetHasDropDown, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "SetHoverBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetHoverBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetId, 1, NULL }, - { "SetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetKind, 1, NULL }, - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetLabel, 1, NULL }, - { "SetLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetLongHelp, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetMinSize, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "SetProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetProportion, 1, NULL }, - { "SetShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetShortHelp, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "SetSizerItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetSizerItem, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "SetSpacerPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetSpacerPixels, 1, NULL }, - { "SetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetState, 1, NULL }, - { "SetSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetSticky, 1, NULL }, - { "SetUserData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetUserData, 1, NULL }, - { "SetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_SetWindow, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItem_op_set, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiToolBarItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiToolBarItem_constructor_overload, s_wxluafunc_wxLua_wxAuiToolBarItem_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiToolBarItem_methodCount = sizeof(wxAuiToolBarItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiToolBarItemArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiToolBarItemArray' -int wxluatype_wxAuiToolBarItemArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Add[] = { &wxluatype_wxAuiToolBarItemArray, &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_Add[1] = {{ wxLua_wxAuiToolBarItemArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Add }}; -// void Add(const wxAuiToolBarItem& item); -static int LUACALL wxLua_wxAuiToolBarItemArray_Add(lua_State *L) -{ - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiToolBarItem); - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call Add - self->Add(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Clear[] = { &wxluatype_wxAuiToolBarItemArray, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_Clear[1] = {{ wxLua_wxAuiToolBarItemArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxAuiToolBarItemArray_Clear(lua_State *L) -{ - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_GetCount[] = { &wxluatype_wxAuiToolBarItemArray, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_GetCount[1] = {{ wxLua_wxAuiToolBarItemArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxAuiToolBarItemArray_GetCount(lua_State *L) -{ - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Insert[] = { &wxluatype_wxAuiToolBarItemArray, &wxluatype_wxAuiToolBarItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_Insert[1] = {{ wxLua_wxAuiToolBarItemArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Insert }}; -// void Insert(const wxAuiToolBarItem& item, int nIndex); -static int LUACALL wxLua_wxAuiToolBarItemArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiToolBarItem); - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call Insert - self->Insert(*item, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_IsEmpty[] = { &wxluatype_wxAuiToolBarItemArray, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_IsEmpty[1] = {{ wxLua_wxAuiToolBarItemArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxAuiToolBarItemArray_IsEmpty(lua_State *L) -{ - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Item[] = { &wxluatype_wxAuiToolBarItemArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_Item[1] = {{ wxLua_wxAuiToolBarItemArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_Item }}; -// wxAuiToolBarItem Item(size_t nIndex) const; -static int LUACALL wxLua_wxAuiToolBarItemArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call Item - // allocate a new object using the copy constructor - wxAuiToolBarItem* returns = new wxAuiToolBarItem(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiToolBarItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_RemoveAt[] = { &wxluatype_wxAuiToolBarItemArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_RemoveAt[1] = {{ wxLua_wxAuiToolBarItemArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxAuiToolBarItemArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiToolBarItemArray * self = (wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_delete[] = { &wxluatype_wxAuiToolBarItemArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_constructor1[] = { &wxluatype_wxAuiToolBarItemArray, NULL }; -static int LUACALL wxLua_wxAuiToolBarItemArray_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor1[1] = {{ wxLua_wxAuiToolBarItemArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_constructor1 }}; -// wxAuiToolBarItemArray(const wxAuiToolBarItemArray& array); -static int LUACALL wxLua_wxAuiToolBarItemArray_constructor1(lua_State *L) -{ - // const wxAuiToolBarItemArray array - const wxAuiToolBarItemArray * array = (const wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarItemArray); - // call constructor - wxAuiToolBarItemArray* returns = new wxAuiToolBarItemArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiToolBarItemArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItemArray); - - return 1; -} - -static int LUACALL wxLua_wxAuiToolBarItemArray_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor[1] = {{ wxLua_wxAuiToolBarItemArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiToolBarItemArray(); -static int LUACALL wxLua_wxAuiToolBarItemArray_constructor(lua_State *L) -{ - // call constructor - wxAuiToolBarItemArray* returns = new wxAuiToolBarItemArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiToolBarItemArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItemArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor_overload[] = -{ - { wxLua_wxAuiToolBarItemArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarItemArray_constructor1 }, - { wxLua_wxAuiToolBarItemArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiToolBarItemArray_delete_function(void** p) -{ - wxAuiToolBarItemArray* o = (wxAuiToolBarItemArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiToolBarItemArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarItemArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiToolBarItemArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiToolBarItemArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor_overload, s_wxluafunc_wxLua_wxAuiToolBarItemArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiToolBarItemArray_methodCount = sizeof(wxAuiToolBarItemArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiToolBarArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiToolBarArt' -int wxluatype_wxAuiToolBarArt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_Clone[] = { &wxluatype_wxAuiToolBarArt, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_Clone[1] = {{ wxLua_wxAuiToolBarArt_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarArt_Clone }}; -// virtual wxAuiToolBarArt* Clone(); -static int LUACALL wxLua_wxAuiToolBarArt_Clone(lua_State *L) -{ - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call Clone - wxAuiToolBarArt* returns = (wxAuiToolBarArt*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarArt); - - return 1; -} - - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawBackground[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawBackground[1] = {{ wxLua_wxAuiToolBarArt_DrawBackground, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawBackground }}; -// virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawBackground(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawBackground - self->DrawBackground(*dc, wnd, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawButton[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItem, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawButton[1] = {{ wxLua_wxAuiToolBarArt_DrawButton, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawButton }}; -// virtual void DrawButton(wxDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawButton(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiToolBarItem); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawButton - self->DrawButton(*dc, wnd, *item, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawControlLabel[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItem, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawControlLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawControlLabel[1] = {{ wxLua_wxAuiToolBarArt_DrawControlLabel, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawControlLabel }}; -// virtual void DrawControlLabel(wxDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawControlLabel(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiToolBarItem); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawControlLabel - self->DrawControlLabel(*dc, wnd, *item, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawDropDownButton[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItem, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawDropDownButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawDropDownButton[1] = {{ wxLua_wxAuiToolBarArt_DrawDropDownButton, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawDropDownButton }}; -// virtual void DrawDropDownButton(wxDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawDropDownButton(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiToolBarItem); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawDropDownButton - self->DrawDropDownButton(*dc, wnd, *item, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawGripper[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawGripper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawGripper[1] = {{ wxLua_wxAuiToolBarArt_DrawGripper, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawGripper }}; -// virtual void DrawGripper(wxDC& dc, wxWindow* wnd, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawGripper(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawGripper - self->DrawGripper(*dc, wnd, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawLabel[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItem, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawLabel[1] = {{ wxLua_wxAuiToolBarArt_DrawLabel, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawLabel }}; -// virtual void DrawLabel(wxDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawLabel(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiToolBarItem); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawLabel - self->DrawLabel(*dc, wnd, *item, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawOverflowButton[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawOverflowButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawOverflowButton[1] = {{ wxLua_wxAuiToolBarArt_DrawOverflowButton, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawOverflowButton }}; -// virtual void DrawOverflowButton(wxDC& dc, wxWindow* wnd, const wxRect& rect, int state); -static int LUACALL wxLua_wxAuiToolBarArt_DrawOverflowButton(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 5); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawOverflowButton - self->DrawOverflowButton(*dc, wnd, *rect, state); - - return 0; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawPlainBackground[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawPlainBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawPlainBackground[1] = {{ wxLua_wxAuiToolBarArt_DrawPlainBackground, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawPlainBackground }}; -// %wxchkver_3_0_0 void DrawPlainBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawPlainBackground(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawPlainBackground - self->DrawPlainBackground(*dc, wnd, *rect); - - return 0; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawSeparator[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_DrawSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_DrawSeparator[1] = {{ wxLua_wxAuiToolBarArt_DrawSeparator, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiToolBarArt_DrawSeparator }}; -// virtual void DrawSeparator(wxDC& dc, wxWindow* wnd, const wxRect& rect); -static int LUACALL wxLua_wxAuiToolBarArt_DrawSeparator(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call DrawSeparator - self->DrawSeparator(*dc, wnd, *rect); - - return 0; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetElementSize[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_GetElementSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_GetElementSize[1] = {{ wxLua_wxAuiToolBarArt_GetElementSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetElementSize }}; -// virtual int GetElementSize(int element_id); -static int LUACALL wxLua_wxAuiToolBarArt_GetElementSize(lua_State *L) -{ - // int element_id - int element_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call GetElementSize - int returns = (self->GetElementSize(element_id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetFlags[] = { &wxluatype_wxAuiToolBarArt, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_GetFlags[1] = {{ wxLua_wxAuiToolBarArt_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetFlags }}; -// %wxchkver_3_0_0 unsigned int GetFlags(); -static int LUACALL wxLua_wxAuiToolBarArt_GetFlags(lua_State *L) -{ - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call GetFlags - unsigned int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetFont[] = { &wxluatype_wxAuiToolBarArt, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_GetFont[1] = {{ wxLua_wxAuiToolBarArt_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetFont }}; -// %wxchkver_3_0_0 wxFont GetFont(); -static int LUACALL wxLua_wxAuiToolBarArt_GetFont(lua_State *L) -{ - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetLabelSize[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_GetLabelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_GetLabelSize[1] = {{ wxLua_wxAuiToolBarArt_GetLabelSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetLabelSize }}; -// virtual wxSize GetLabelSize(wxDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item); -static int LUACALL wxLua_wxAuiToolBarArt_GetLabelSize(lua_State *L) -{ - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiToolBarItem); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call GetLabelSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetLabelSize(*dc, wnd, *item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetTextOrientation[] = { &wxluatype_wxAuiToolBarArt, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_GetTextOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_GetTextOrientation[1] = {{ wxLua_wxAuiToolBarArt_GetTextOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetTextOrientation }}; -// %wxchkver_3_0_0 int GetTextOrientation(); -static int LUACALL wxLua_wxAuiToolBarArt_GetTextOrientation(lua_State *L) -{ - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call GetTextOrientation - int returns = (self->GetTextOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetToolSize[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItem, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_GetToolSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_GetToolSize[1] = {{ wxLua_wxAuiToolBarArt_GetToolSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiToolBarArt_GetToolSize }}; -// virtual wxSize GetToolSize(wxDC& dc, wxWindow* wnd, const wxAuiToolBarItem& item); -static int LUACALL wxLua_wxAuiToolBarArt_GetToolSize(lua_State *L) -{ - // const wxAuiToolBarItem item - const wxAuiToolBarItem * item = (const wxAuiToolBarItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiToolBarItem); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call GetToolSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetToolSize(*dc, wnd, *item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetElementSize[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_SetElementSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_SetElementSize[1] = {{ wxLua_wxAuiToolBarArt_SetElementSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetElementSize }}; -// virtual void SetElementSize(int element_id, int size); -static int LUACALL wxLua_wxAuiToolBarArt_SetElementSize(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 3); - // int element_id - int element_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call SetElementSize - self->SetElementSize(element_id, size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetFlags[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_SetFlags[1] = {{ wxLua_wxAuiToolBarArt_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetFlags }}; -// virtual void SetFlags(unsigned int flags); -static int LUACALL wxLua_wxAuiToolBarArt_SetFlags(lua_State *L) -{ - // unsigned int flags - unsigned int flags = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetFont[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_SetFont[1] = {{ wxLua_wxAuiToolBarArt_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetFont }}; -// virtual void SetFont(const wxFont& font); -static int LUACALL wxLua_wxAuiToolBarArt_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetTextOrientation[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_SetTextOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_SetTextOrientation[1] = {{ wxLua_wxAuiToolBarArt_SetTextOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBarArt_SetTextOrientation }}; -// virtual void SetTextOrientation(int orientation); -static int LUACALL wxLua_wxAuiToolBarArt_SetTextOrientation(lua_State *L) -{ - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call SetTextOrientation - self->SetTextOrientation(orientation); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBarArt_ShowDropDown[] = { &wxluatype_wxAuiToolBarArt, &wxluatype_wxWindow, &wxluatype_wxAuiToolBarItemArray, NULL }; -static int LUACALL wxLua_wxAuiToolBarArt_ShowDropDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBarArt_ShowDropDown[1] = {{ wxLua_wxAuiToolBarArt_ShowDropDown, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBarArt_ShowDropDown }}; -// virtual int ShowDropDown(wxWindow* wnd, const wxAuiToolBarItemArray& items); -static int LUACALL wxLua_wxAuiToolBarArt_ShowDropDown(lua_State *L) -{ - // const wxAuiToolBarItemArray items - const wxAuiToolBarItemArray * items = (const wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiToolBarItemArray); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiToolBarArt * self = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBarArt); - // call ShowDropDown - int returns = (self->ShowDropDown(wnd, *items)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - - - -void wxLua_wxAuiToolBarArt_delete_function(void** p) -{ - wxAuiToolBarArt* o = (wxAuiToolBarArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiToolBarArt_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_Clone, 1, NULL }, - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "DrawBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawBackground, 1, NULL }, - { "DrawButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawButton, 1, NULL }, - { "DrawControlLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawControlLabel, 1, NULL }, - { "DrawDropDownButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawDropDownButton, 1, NULL }, - { "DrawGripper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawGripper, 1, NULL }, - { "DrawLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawLabel, 1, NULL }, - { "DrawOverflowButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawOverflowButton, 1, NULL }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "DrawPlainBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawPlainBackground, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "DrawSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_DrawSeparator, 1, NULL }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - - { "GetElementSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_GetElementSize, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_GetFlags, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_GetFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "GetLabelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_GetLabelSize, 1, NULL }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetTextOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_GetTextOrientation, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "GetToolSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_GetToolSize, 1, NULL }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - - { "SetElementSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_SetElementSize, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_SetFlags, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - - { "SetTextOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_SetTextOrientation, 1, NULL }, - { "ShowDropDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBarArt_ShowDropDown, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiToolBarArt_methodCount = sizeof(wxAuiToolBarArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiDefaultToolBarArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiDefaultToolBarArt' -int wxluatype_wxAuiDefaultToolBarArt = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxAuiDefaultToolBarArt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDefaultToolBarArt_constructor[1] = {{ wxLua_wxAuiDefaultToolBarArt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiDefaultToolBarArt(); -static int LUACALL wxLua_wxAuiDefaultToolBarArt_constructor(lua_State *L) -{ - // call constructor - wxAuiDefaultToolBarArt* returns = new wxAuiDefaultToolBarArt(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultToolBarArt); - - return 1; -} - - - - -void wxLua_wxAuiDefaultToolBarArt_delete_function(void** p) -{ - wxAuiDefaultToolBarArt* o = (wxAuiDefaultToolBarArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiDefaultToolBarArt_methods[] = { - { "wxAuiDefaultToolBarArt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiDefaultToolBarArt_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiDefaultToolBarArt_methodCount = sizeof(wxAuiDefaultToolBarArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiToolBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiToolBar' -int wxluatype_wxAuiToolBar = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddControl[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxControl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddControl[1] = {{ wxLua_wxAuiToolBar_AddControl, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_AddControl }}; -// void AddControl(wxControl* control, const wxString& label = wxEmptyString); -static int LUACALL wxLua_wxAuiToolBar_AddControl(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString label = wxEmptyString - const wxString label = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxControl control - wxControl * control = (wxControl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxControl); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddControl - self->AddControl(control, label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddLabel[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddLabel[1] = {{ wxLua_wxAuiToolBar_AddLabel, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxAuiToolBar_AddLabel }}; -// void AddLabel(int tool_id, const wxString& label = wxEmptyString, const int width = -1); -static int LUACALL wxLua_wxAuiToolBar_AddLabel(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const int width = -1 - const int width = (argCount >= 4 ? (const int)wxlua_getnumbertype(L, 4) : -1); - // const wxString label = wxEmptyString - const wxString label = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddLabel - self->AddLabel(tool_id, label, width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddSeparator[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddSeparator[1] = {{ wxLua_wxAuiToolBar_AddSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_AddSeparator }}; -// void AddSeparator(); -static int LUACALL wxLua_wxAuiToolBar_AddSeparator(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddSeparator - self->AddSeparator(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddSpacer[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddSpacer[1] = {{ wxLua_wxAuiToolBar_AddSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_AddSpacer }}; -// void AddSpacer(int pixels); -static int LUACALL wxLua_wxAuiToolBar_AddSpacer(lua_State *L) -{ - // int pixels - int pixels = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddSpacer - self->AddSpacer(pixels); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddStretchSpacer[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddStretchSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddStretchSpacer[1] = {{ wxLua_wxAuiToolBar_AddStretchSpacer, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_AddStretchSpacer }}; -// void AddStretchSpacer(int proportion = 1); -static int LUACALL wxLua_wxAuiToolBar_AddStretchSpacer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int proportion = 1 - int proportion = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddStretchSpacer - self->AddStretchSpacer(proportion); - - return 0; -} - - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool2[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TBOOLEAN, &wxluatype_wxObject, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddTool2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddTool2[1] = {{ wxLua_wxAuiToolBar_AddTool2, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool2 }}; -// void AddTool(int tool_id, const wxBitmap& bitmap, const wxBitmap& disabled_bitmap, bool toggle = false, wxObject* client_data = NULL, const wxString& short_help_string = wxEmptyString, const wxString& long_help_string = wxEmptyString); -static int LUACALL wxLua_wxAuiToolBar_AddTool2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString long_help_string = wxEmptyString - const wxString long_help_string = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); - // const wxString short_help_string = wxEmptyString - const wxString short_help_string = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // wxObject client_data = NULL - wxObject * client_data = (argCount >= 6 ? (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject) : NULL); - // bool toggle = false - bool toggle = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxBitmap disabled_bitmap - const wxBitmap * disabled_bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddTool - self->AddTool(tool_id, *bitmap, *disabled_bitmap, toggle, client_data, short_help_string, long_help_string); - - return 0; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject) - -#if (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool1[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddTool1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddTool1[1] = {{ wxLua_wxAuiToolBar_AddTool1, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool1 }}; -// void AddTool(int tool_id, const wxString& label, const wxBitmap& bitmap, const wxBitmap& disabled_bitmap, wxItemKind kind, const wxString& short_help_string, const wxString& long_help_string, wxObject* client_data); -static int LUACALL wxLua_wxAuiToolBar_AddTool1(lua_State *L) -{ - // wxObject client_data - wxObject * client_data = (wxObject *)wxluaT_getuserdatatype(L, 9, wxluatype_wxObject); - // const wxString long_help_string - const wxString long_help_string = wxlua_getwxStringtype(L, 8); - // const wxString short_help_string - const wxString short_help_string = wxlua_getwxStringtype(L, 7); - // wxItemKind kind - wxItemKind kind = (wxItemKind)wxlua_getenumtype(L, 6); - // const wxBitmap disabled_bitmap - const wxBitmap * disabled_bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddTool - self->AddTool(tool_id, label, *bitmap, *disabled_bitmap, kind, short_help_string, long_help_string, client_data); - - return 0; -} - -#endif // (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_AddTool(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddTool[1] = {{ wxLua_wxAuiToolBar_AddTool, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool }}; -// void AddTool(int tool_id, const wxString& label, const wxBitmap& bitmap, const wxString& short_help_string = wxEmptyString, wxItemKind kind = wxITEM_NORMAL); -static int LUACALL wxLua_wxAuiToolBar_AddTool(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 6 ? (wxItemKind)wxlua_getenumtype(L, 6) : wxITEM_NORMAL); - // const wxString short_help_string = wxEmptyString - const wxString short_help_string = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call AddTool - self->AddTool(tool_id, label, *bitmap, short_help_string, kind); - - return 0; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_Clear[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_Clear[1] = {{ wxLua_wxAuiToolBar_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxAuiToolBar_Clear(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_ClearTools[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_ClearTools(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_ClearTools[1] = {{ wxLua_wxAuiToolBar_ClearTools, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_ClearTools }}; -// void ClearTools(); -static int LUACALL wxLua_wxAuiToolBar_ClearTools(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call ClearTools - self->ClearTools(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_Create[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_Create[1] = {{ wxLua_wxAuiToolBar_Create, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxAuiToolBar_Create }}; -// %wxchkver_3_0_0 bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxAUI_TB_DEFAULT_STYLE); -static int LUACALL wxLua_wxAuiToolBar_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxAUI_TB_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxAUI_TB_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_DeleteByIndex[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_DeleteByIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_DeleteByIndex[1] = {{ wxLua_wxAuiToolBar_DeleteByIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_DeleteByIndex }}; -// bool DeleteByIndex(int tool_id); -static int LUACALL wxLua_wxAuiToolBar_DeleteByIndex(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call DeleteByIndex - bool returns = (self->DeleteByIndex(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_DeleteTool[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_DeleteTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_DeleteTool[1] = {{ wxLua_wxAuiToolBar_DeleteTool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_DeleteTool }}; -// bool DeleteTool(int tool_id); -static int LUACALL wxLua_wxAuiToolBar_DeleteTool(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call DeleteTool - bool returns = (self->DeleteTool(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_DestroyTool[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_DestroyTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_DestroyTool[1] = {{ wxLua_wxAuiToolBar_DestroyTool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_DestroyTool }}; -// %wxchkver_3_1_4 bool DestroyTool(int toolId); -static int LUACALL wxLua_wxAuiToolBar_DestroyTool(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call DestroyTool - bool returns = (self->DestroyTool(toolId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_DestroyToolByIndex[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_DestroyToolByIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_DestroyToolByIndex[1] = {{ wxLua_wxAuiToolBar_DestroyToolByIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_DestroyToolByIndex }}; -// %wxchkver_3_1_4 bool DestroyToolByIndex(int idx); -static int LUACALL wxLua_wxAuiToolBar_DestroyToolByIndex(lua_State *L) -{ - // int idx - int idx = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call DestroyToolByIndex - bool returns = (self->DestroyToolByIndex(idx)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_EnableTool[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBar_EnableTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_EnableTool[1] = {{ wxLua_wxAuiToolBar_EnableTool, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_EnableTool }}; -// void EnableTool(int tool_id, bool state); -static int LUACALL wxLua_wxAuiToolBar_EnableTool(lua_State *L) -{ - // bool state - bool state = wxlua_getbooleantype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call EnableTool - self->EnableTool(tool_id, state); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_FindControl[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_FindControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_FindControl[1] = {{ wxLua_wxAuiToolBar_FindControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_FindControl }}; -// wxControl* FindControl(int window_id); -static int LUACALL wxLua_wxAuiToolBar_FindControl(lua_State *L) -{ - // int window_id - int window_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call FindControl - wxControl* returns = (wxControl*)self->FindControl(window_id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_FindTool[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_FindTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_FindTool[1] = {{ wxLua_wxAuiToolBar_FindTool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_FindTool }}; -// wxAuiToolBarItem* FindTool(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_FindTool(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call FindTool - wxAuiToolBarItem* returns = (wxAuiToolBarItem*)self->FindTool(tool_id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_FindToolByIndex[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_FindToolByIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_FindToolByIndex[1] = {{ wxLua_wxAuiToolBar_FindToolByIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_FindToolByIndex }}; -// wxAuiToolBarItem* FindToolByIndex(int idx) const; -static int LUACALL wxLua_wxAuiToolBar_FindToolByIndex(lua_State *L) -{ - // int idx - int idx = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call FindToolByIndex - wxAuiToolBarItem* returns = (wxAuiToolBarItem*)self->FindToolByIndex(idx); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_FindToolByPosition[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_FindToolByPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_FindToolByPosition[1] = {{ wxLua_wxAuiToolBar_FindToolByPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_FindToolByPosition }}; -// wxAuiToolBarItem* FindToolByPosition(wxCoord x, wxCoord y) const; -static int LUACALL wxLua_wxAuiToolBar_FindToolByPosition(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call FindToolByPosition - wxAuiToolBarItem* returns = (wxAuiToolBarItem*)self->FindToolByPosition(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetArtProvider[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetArtProvider[1] = {{ wxLua_wxAuiToolBar_GetArtProvider, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetArtProvider }}; -// wxAuiToolBarArt* GetArtProvider() const; -static int LUACALL wxLua_wxAuiToolBar_GetArtProvider(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetArtProvider - wxAuiToolBarArt* returns = (wxAuiToolBarArt*)self->GetArtProvider(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBarArt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetGripperVisible[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetGripperVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetGripperVisible[1] = {{ wxLua_wxAuiToolBar_GetGripperVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetGripperVisible }}; -// bool GetGripperVisible() const; -static int LUACALL wxLua_wxAuiToolBar_GetGripperVisible(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetGripperVisible - bool returns = (self->GetGripperVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetOverflowVisible[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetOverflowVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetOverflowVisible[1] = {{ wxLua_wxAuiToolBar_GetOverflowVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetOverflowVisible }}; -// bool GetOverflowVisible() const; -static int LUACALL wxLua_wxAuiToolBar_GetOverflowVisible(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetOverflowVisible - bool returns = (self->GetOverflowVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBarFits[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolBarFits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolBarFits[1] = {{ wxLua_wxAuiToolBar_GetToolBarFits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBarFits }}; -// bool GetToolBarFits() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolBarFits(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolBarFits - bool returns = (self->GetToolBarFits()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBitmap[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolBitmap[1] = {{ wxLua_wxAuiToolBar_GetToolBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBitmap }}; -// wxBitmap GetToolBitmap(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolBitmap(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetToolBitmap(tool_id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBitmapSize[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolBitmapSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolBitmapSize[1] = {{ wxLua_wxAuiToolBar_GetToolBitmapSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBitmapSize }}; -// wxSize GetToolBitmapSize() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolBitmapSize(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolBitmapSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetToolBitmapSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBorderPadding[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolBorderPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolBorderPadding[1] = {{ wxLua_wxAuiToolBar_GetToolBorderPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolBorderPadding }}; -// int GetToolBorderPadding() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolBorderPadding(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolBorderPadding - int returns = (self->GetToolBorderPadding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolCount[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolCount[1] = {{ wxLua_wxAuiToolBar_GetToolCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolCount }}; -// size_t GetToolCount() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolCount(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolCount - size_t returns = (self->GetToolCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolDropDown[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolDropDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolDropDown[1] = {{ wxLua_wxAuiToolBar_GetToolDropDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolDropDown }}; -// bool GetToolDropDown(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolDropDown(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolDropDown - bool returns = (self->GetToolDropDown(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolEnabled[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolEnabled[1] = {{ wxLua_wxAuiToolBar_GetToolEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolEnabled }}; -// bool GetToolEnabled(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolEnabled(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolEnabled - bool returns = (self->GetToolEnabled(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolFits[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolFits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolFits[1] = {{ wxLua_wxAuiToolBar_GetToolFits, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolFits }}; -// bool GetToolFits(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolFits(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolFits - bool returns = (self->GetToolFits(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolFitsByIndex[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolFitsByIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolFitsByIndex[1] = {{ wxLua_wxAuiToolBar_GetToolFitsByIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolFitsByIndex }}; -// bool GetToolFitsByIndex(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolFitsByIndex(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolFitsByIndex - bool returns = (self->GetToolFitsByIndex(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolIndex[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolIndex[1] = {{ wxLua_wxAuiToolBar_GetToolIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolIndex }}; -// int GetToolIndex(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolIndex(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolIndex - int returns = (self->GetToolIndex(tool_id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolLabel[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolLabel[1] = {{ wxLua_wxAuiToolBar_GetToolLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolLabel }}; -// wxString GetToolLabel(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolLabel(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolLabel - wxString returns = (self->GetToolLabel(tool_id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolLongHelp[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolLongHelp[1] = {{ wxLua_wxAuiToolBar_GetToolLongHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolLongHelp }}; -// wxString GetToolLongHelp(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolLongHelp(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolLongHelp - wxString returns = (self->GetToolLongHelp(tool_id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolPacking[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolPacking(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolPacking[1] = {{ wxLua_wxAuiToolBar_GetToolPacking, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolPacking }}; -// int GetToolPacking() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolPacking(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolPacking - int returns = (self->GetToolPacking()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolPos[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolPos[1] = {{ wxLua_wxAuiToolBar_GetToolPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolPos }}; -// int GetToolPos(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolPos(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolPos - int returns = (self->GetToolPos(tool_id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolProportion[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolProportion[1] = {{ wxLua_wxAuiToolBar_GetToolProportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolProportion }}; -// int GetToolProportion(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolProportion(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolProportion - int returns = (self->GetToolProportion(tool_id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolRect[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolRect[1] = {{ wxLua_wxAuiToolBar_GetToolRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolRect }}; -// wxRect GetToolRect(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolRect(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetToolRect(tool_id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolSeparation[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolSeparation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolSeparation[1] = {{ wxLua_wxAuiToolBar_GetToolSeparation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolSeparation }}; -// int GetToolSeparation() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolSeparation(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolSeparation - int returns = (self->GetToolSeparation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolShortHelp[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolShortHelp[1] = {{ wxLua_wxAuiToolBar_GetToolShortHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolShortHelp }}; -// wxString GetToolShortHelp(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolShortHelp(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolShortHelp - wxString returns = (self->GetToolShortHelp(tool_id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolSticky[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolSticky(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolSticky[1] = {{ wxLua_wxAuiToolBar_GetToolSticky, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolSticky }}; -// bool GetToolSticky(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolSticky(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolSticky - bool returns = (self->GetToolSticky(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolTextOrientation[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolTextOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolTextOrientation[1] = {{ wxLua_wxAuiToolBar_GetToolTextOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolTextOrientation }}; -// int GetToolTextOrientation() const; -static int LUACALL wxLua_wxAuiToolBar_GetToolTextOrientation(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolTextOrientation - int returns = (self->GetToolTextOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolToggled[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetToolToggled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetToolToggled[1] = {{ wxLua_wxAuiToolBar_GetToolToggled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_GetToolToggled }}; -// bool GetToolToggled(int tool_id) const; -static int LUACALL wxLua_wxAuiToolBar_GetToolToggled(lua_State *L) -{ - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetToolToggled - bool returns = (self->GetToolToggled(tool_id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_GetWindowStyleFlag[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_GetWindowStyleFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_GetWindowStyleFlag[1] = {{ wxLua_wxAuiToolBar_GetWindowStyleFlag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_GetWindowStyleFlag }}; -// long GetWindowStyleFlag() const; -static int LUACALL wxLua_wxAuiToolBar_GetWindowStyleFlag(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call GetWindowStyleFlag - long returns = (self->GetWindowStyleFlag()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_Realize[] = { &wxluatype_wxAuiToolBar, NULL }; -static int LUACALL wxLua_wxAuiToolBar_Realize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_Realize[1] = {{ wxLua_wxAuiToolBar_Realize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiToolBar_Realize }}; -// bool Realize(); -static int LUACALL wxLua_wxAuiToolBar_Realize(lua_State *L) -{ - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call Realize - bool returns = (self->Realize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetArtProvider[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxAuiToolBarArt, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetArtProvider[1] = {{ wxLua_wxAuiToolBar_SetArtProvider, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetArtProvider }}; -// void SetArtProvider(wxAuiToolBarArt* art); -static int LUACALL wxLua_wxAuiToolBar_SetArtProvider(lua_State *L) -{ - // wxAuiToolBarArt art - wxAuiToolBarArt * art = (wxAuiToolBarArt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiToolBarArt); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetArtProvider - self->SetArtProvider(art); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetCustomOverflowItems[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxAuiToolBarItemArray, &wxluatype_wxAuiToolBarItemArray, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetCustomOverflowItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetCustomOverflowItems[1] = {{ wxLua_wxAuiToolBar_SetCustomOverflowItems, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetCustomOverflowItems }}; -// void SetCustomOverflowItems(const wxAuiToolBarItemArray& prepend, const wxAuiToolBarItemArray& append); -static int LUACALL wxLua_wxAuiToolBar_SetCustomOverflowItems(lua_State *L) -{ - // const wxAuiToolBarItemArray append - const wxAuiToolBarItemArray * append = (const wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiToolBarItemArray); - // const wxAuiToolBarItemArray prepend - const wxAuiToolBarItemArray * prepend = (const wxAuiToolBarItemArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiToolBarItemArray); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetCustomOverflowItems - self->SetCustomOverflowItems(*prepend, *append); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetFont[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetFont[1] = {{ wxLua_wxAuiToolBar_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetFont }}; -// bool SetFont(const wxFont& font); -static int LUACALL wxLua_wxAuiToolBar_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetFont - bool returns = (self->SetFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetGripperVisible[] = { &wxluatype_wxAuiToolBar, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetGripperVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetGripperVisible[1] = {{ wxLua_wxAuiToolBar_SetGripperVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetGripperVisible }}; -// void SetGripperVisible(bool visible); -static int LUACALL wxLua_wxAuiToolBar_SetGripperVisible(lua_State *L) -{ - // bool visible - bool visible = wxlua_getbooleantype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetGripperVisible - self->SetGripperVisible(visible); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins2[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetMargins2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetMargins2[1] = {{ wxLua_wxAuiToolBar_SetMargins2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins2 }}; -// void SetMargins(int left, int right, int top, int bottom); -static int LUACALL wxLua_wxAuiToolBar_SetMargins2(lua_State *L) -{ - // int bottom - int bottom = (int)wxlua_getnumbertype(L, 5); - // int top - int top = (int)wxlua_getnumbertype(L, 4); - // int right - int right = (int)wxlua_getnumbertype(L, 3); - // int left - int left = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetMargins - self->SetMargins(left, right, top, bottom); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins1[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetMargins1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetMargins1[1] = {{ wxLua_wxAuiToolBar_SetMargins1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins1 }}; -// void SetMargins(int x, int y); -static int LUACALL wxLua_wxAuiToolBar_SetMargins1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetMargins - self->SetMargins(x, y); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetMargins(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetMargins[1] = {{ wxLua_wxAuiToolBar_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins }}; -// void SetMargins(const wxSize& size); -static int LUACALL wxLua_wxAuiToolBar_SetMargins(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetMargins - self->SetMargins(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetOverflowVisible[] = { &wxluatype_wxAuiToolBar, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetOverflowVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetOverflowVisible[1] = {{ wxLua_wxAuiToolBar_SetOverflowVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetOverflowVisible }}; -// void SetOverflowVisible(bool visible); -static int LUACALL wxLua_wxAuiToolBar_SetOverflowVisible(lua_State *L) -{ - // bool visible - bool visible = wxlua_getbooleantype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetOverflowVisible - self->SetOverflowVisible(visible); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolBitmap[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolBitmap[1] = {{ wxLua_wxAuiToolBar_SetToolBitmap, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolBitmap }}; -// void SetToolBitmap(int tool_id, const wxBitmap& bitmap); -static int LUACALL wxLua_wxAuiToolBar_SetToolBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolBitmap - self->SetToolBitmap(tool_id, *bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolBitmapSize[] = { &wxluatype_wxAuiToolBar, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolBitmapSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolBitmapSize[1] = {{ wxLua_wxAuiToolBar_SetToolBitmapSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolBitmapSize }}; -// void SetToolBitmapSize(const wxSize& size); -static int LUACALL wxLua_wxAuiToolBar_SetToolBitmapSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolBitmapSize - self->SetToolBitmapSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolBorderPadding[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolBorderPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolBorderPadding[1] = {{ wxLua_wxAuiToolBar_SetToolBorderPadding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolBorderPadding }}; -// void SetToolBorderPadding(int padding); -static int LUACALL wxLua_wxAuiToolBar_SetToolBorderPadding(lua_State *L) -{ - // int padding - int padding = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolBorderPadding - self->SetToolBorderPadding(padding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolDropDown[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolDropDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolDropDown[1] = {{ wxLua_wxAuiToolBar_SetToolDropDown, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolDropDown }}; -// void SetToolDropDown(int tool_id, bool dropdown); -static int LUACALL wxLua_wxAuiToolBar_SetToolDropDown(lua_State *L) -{ - // bool dropdown - bool dropdown = wxlua_getbooleantype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolDropDown - self->SetToolDropDown(tool_id, dropdown); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolLabel[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolLabel[1] = {{ wxLua_wxAuiToolBar_SetToolLabel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolLabel }}; -// void SetToolLabel(int tool_id, const wxString& label); -static int LUACALL wxLua_wxAuiToolBar_SetToolLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolLabel - self->SetToolLabel(tool_id, label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolLongHelp[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolLongHelp[1] = {{ wxLua_wxAuiToolBar_SetToolLongHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolLongHelp }}; -// void SetToolLongHelp(int tool_id, const wxString& help_string); -static int LUACALL wxLua_wxAuiToolBar_SetToolLongHelp(lua_State *L) -{ - // const wxString help_string - const wxString help_string = wxlua_getwxStringtype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolLongHelp - self->SetToolLongHelp(tool_id, help_string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolPacking[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolPacking(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolPacking[1] = {{ wxLua_wxAuiToolBar_SetToolPacking, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolPacking }}; -// void SetToolPacking(int packing); -static int LUACALL wxLua_wxAuiToolBar_SetToolPacking(lua_State *L) -{ - // int packing - int packing = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolPacking - self->SetToolPacking(packing); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolProportion[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolProportion[1] = {{ wxLua_wxAuiToolBar_SetToolProportion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolProportion }}; -// void SetToolProportion(int tool_id, int proportion); -static int LUACALL wxLua_wxAuiToolBar_SetToolProportion(lua_State *L) -{ - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolProportion - self->SetToolProportion(tool_id, proportion); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolSeparation[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolSeparation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolSeparation[1] = {{ wxLua_wxAuiToolBar_SetToolSeparation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolSeparation }}; -// void SetToolSeparation(int separation); -static int LUACALL wxLua_wxAuiToolBar_SetToolSeparation(lua_State *L) -{ - // int separation - int separation = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolSeparation - self->SetToolSeparation(separation); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolShortHelp[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolShortHelp[1] = {{ wxLua_wxAuiToolBar_SetToolShortHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolShortHelp }}; -// void SetToolShortHelp(int tool_id, const wxString& help_string); -static int LUACALL wxLua_wxAuiToolBar_SetToolShortHelp(lua_State *L) -{ - // const wxString help_string - const wxString help_string = wxlua_getwxStringtype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolShortHelp - self->SetToolShortHelp(tool_id, help_string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolSticky[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolSticky(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolSticky[1] = {{ wxLua_wxAuiToolBar_SetToolSticky, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolSticky }}; -// void SetToolSticky(int tool_id, bool sticky); -static int LUACALL wxLua_wxAuiToolBar_SetToolSticky(lua_State *L) -{ - // bool sticky - bool sticky = wxlua_getbooleantype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolSticky - self->SetToolSticky(tool_id, sticky); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolTextOrientation[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetToolTextOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetToolTextOrientation[1] = {{ wxLua_wxAuiToolBar_SetToolTextOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetToolTextOrientation }}; -// void SetToolTextOrientation(int orientation); -static int LUACALL wxLua_wxAuiToolBar_SetToolTextOrientation(lua_State *L) -{ - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetToolTextOrientation - self->SetToolTextOrientation(orientation); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_SetWindowStyleFlag[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_SetWindowStyleFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetWindowStyleFlag[1] = {{ wxLua_wxAuiToolBar_SetWindowStyleFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetWindowStyleFlag }}; -// void SetWindowStyleFlag(long style); -static int LUACALL wxLua_wxAuiToolBar_SetWindowStyleFlag(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call SetWindowStyleFlag - self->SetWindowStyleFlag(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_ToggleTool[] = { &wxluatype_wxAuiToolBar, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiToolBar_ToggleTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_ToggleTool[1] = {{ wxLua_wxAuiToolBar_ToggleTool, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_ToggleTool }}; -// void ToggleTool(int tool_id, bool state); -static int LUACALL wxLua_wxAuiToolBar_ToggleTool(lua_State *L) -{ - // bool state - bool state = wxlua_getbooleantype(L, 3); - // int tool_id - int tool_id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiToolBar * self = (wxAuiToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiToolBar); - // call ToggleTool - self->ToggleTool(tool_id, state); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiToolBar_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiToolBar_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_constructor1[1] = {{ wxLua_wxAuiToolBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxAuiToolBar_constructor1 }}; -// wxAuiToolBar(wxWindow* parent, wxWindowID id = -1, const wxPoint& position = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxAUI_TB_DEFAULT_STYLE); -static int LUACALL wxLua_wxAuiToolBar_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxAUI_TB_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxAUI_TB_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxDefaultPosition - const wxPoint * position = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAuiToolBar* returns = new wxAuiToolBar(parent, id, *position, *size, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static int LUACALL wxLua_wxAuiToolBar_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_constructor[1] = {{ wxLua_wxAuiToolBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxAuiToolBar(); -static int LUACALL wxLua_wxAuiToolBar_constructor(lua_State *L) -{ - // call constructor - wxAuiToolBar* returns = new wxAuiToolBar(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiToolBar); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - - -#if (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject))||((((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject))||(((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_AddTool_overload[] = -{ - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject) - { wxLua_wxAuiToolBar_AddTool2, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool2 }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject) - -#if (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject) - { wxLua_wxAuiToolBar_AddTool1, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool1 }, -#endif // (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxAuiToolBar_AddTool, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxAuiToolBar_AddTool }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -}; -static int s_wxluafunc_wxLua_wxAuiToolBar_AddTool_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBar_AddTool_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject))||((((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject))||(((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_SetMargins_overload[] = -{ - { wxLua_wxAuiToolBar_SetMargins2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins2 }, - { wxLua_wxAuiToolBar_SetMargins1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins1 }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiToolBar_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiToolBar_SetMargins }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxAuiToolBar_SetMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBar_SetMargins_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiToolBar_constructor_overload[] = -{ - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiToolBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxAuiToolBar_constructor1 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { wxLua_wxAuiToolBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -}; -static int s_wxluafunc_wxLua_wxAuiToolBar_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiToolBar_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) - -void wxLua_wxAuiToolBar_delete_function(void** p) -{ - wxAuiToolBar* o = (wxAuiToolBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiToolBar_methods[] = { - { "AddControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_AddControl, 1, NULL }, - { "AddLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_AddLabel, 1, NULL }, - { "AddSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_AddSeparator, 1, NULL }, - { "AddSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_AddSpacer, 1, NULL }, - { "AddStretchSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_AddStretchSpacer, 1, NULL }, - -#if (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject))||((((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject))||(((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - { "AddTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_AddTool_overload, s_wxluafunc_wxLua_wxAuiToolBar_AddTool_overload_count, 0 }, -#endif // (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject))||((((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject))||(((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_Clear, 1, NULL }, - { "ClearTools", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_ClearTools, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_Create, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) - - { "DeleteByIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_DeleteByIndex, 1, NULL }, - { "DeleteTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_DeleteTool, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "DestroyTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_DestroyTool, 1, NULL }, - { "DestroyToolByIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_DestroyToolByIndex, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "EnableTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_EnableTool, 1, NULL }, - { "FindControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_FindControl, 1, NULL }, - { "FindTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_FindTool, 1, NULL }, - { "FindToolByIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_FindToolByIndex, 1, NULL }, - { "FindToolByPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_FindToolByPosition, 1, NULL }, - { "GetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetArtProvider, 1, NULL }, - { "GetGripperVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetGripperVisible, 1, NULL }, - { "GetOverflowVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetOverflowVisible, 1, NULL }, - { "GetToolBarFits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolBarFits, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "GetToolBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "GetToolBitmapSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolBitmapSize, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetToolBorderPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolBorderPadding, 1, NULL }, - { "GetToolCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolCount, 1, NULL }, - { "GetToolDropDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolDropDown, 1, NULL }, - { "GetToolEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolEnabled, 1, NULL }, - { "GetToolFits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolFits, 1, NULL }, - { "GetToolFitsByIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolFitsByIndex, 1, NULL }, - { "GetToolIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolIndex, 1, NULL }, - { "GetToolLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolLabel, 1, NULL }, - { "GetToolLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolLongHelp, 1, NULL }, - { "GetToolPacking", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolPacking, 1, NULL }, - { "GetToolPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolPos, 1, NULL }, - { "GetToolProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolProportion, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "GetToolRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolRect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetToolSeparation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolSeparation, 1, NULL }, - { "GetToolShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolShortHelp, 1, NULL }, - { "GetToolSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolSticky, 1, NULL }, - { "GetToolTextOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolTextOrientation, 1, NULL }, - { "GetToolToggled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetToolToggled, 1, NULL }, - { "GetWindowStyleFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_GetWindowStyleFlag, 1, NULL }, - { "Realize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_Realize, 1, NULL }, - { "SetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetArtProvider, 1, NULL }, - { "SetCustomOverflowItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetCustomOverflowItems, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - - { "SetGripperVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetGripperVisible, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetMargins_overload, s_wxluafunc_wxLua_wxAuiToolBar_SetMargins_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - - { "SetOverflowVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetOverflowVisible, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "SetToolBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetToolBitmapSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolBitmapSize, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "SetToolBorderPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolBorderPadding, 1, NULL }, - { "SetToolDropDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolDropDown, 1, NULL }, - { "SetToolLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolLabel, 1, NULL }, - { "SetToolLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolLongHelp, 1, NULL }, - { "SetToolPacking", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolPacking, 1, NULL }, - { "SetToolProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolProportion, 1, NULL }, - { "SetToolSeparation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolSeparation, 1, NULL }, - { "SetToolShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolShortHelp, 1, NULL }, - { "SetToolSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolSticky, 1, NULL }, - { "SetToolTextOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetToolTextOrientation, 1, NULL }, - { "SetWindowStyleFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_SetWindowStyleFlag, 1, NULL }, - { "ToggleTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiToolBar_ToggleTool, 1, NULL }, - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) - { "wxAuiToolBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiToolBar_constructor_overload, s_wxluafunc_wxLua_wxAuiToolBar_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) - - { 0, 0, 0, 0 }, -}; - -int wxAuiToolBar_methodCount = sizeof(wxAuiToolBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiNotebookEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiNotebookEvent' -int wxluatype_wxAuiNotebookEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_GetDragSource[] = { &wxluatype_wxAuiNotebookEvent, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_GetDragSource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_GetDragSource[1] = {{ wxLua_wxAuiNotebookEvent_GetDragSource, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_GetDragSource }}; -// wxAuiNotebook* GetDragSource() const; -static int LUACALL wxLua_wxAuiNotebookEvent_GetDragSource(lua_State *L) -{ - // get this - wxAuiNotebookEvent * self = (wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call GetDragSource - wxAuiNotebook* returns = (wxAuiNotebook*)self->GetDragSource(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebook); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_GetOldSelection[] = { &wxluatype_wxAuiNotebookEvent, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_GetOldSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_GetOldSelection[1] = {{ wxLua_wxAuiNotebookEvent_GetOldSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_GetOldSelection }}; -// int GetOldSelection() const; -static int LUACALL wxLua_wxAuiNotebookEvent_GetOldSelection(lua_State *L) -{ - // get this - wxAuiNotebookEvent * self = (wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call GetOldSelection - int returns = (self->GetOldSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_GetSelection[] = { &wxluatype_wxAuiNotebookEvent, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_GetSelection[1] = {{ wxLua_wxAuiNotebookEvent_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxAuiNotebookEvent_GetSelection(lua_State *L) -{ - // get this - wxAuiNotebookEvent * self = (wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_SetDragSource[] = { &wxluatype_wxAuiNotebookEvent, &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_SetDragSource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_SetDragSource[1] = {{ wxLua_wxAuiNotebookEvent_SetDragSource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_SetDragSource }}; -// void SetDragSource(wxAuiNotebook* s); -static int LUACALL wxLua_wxAuiNotebookEvent_SetDragSource(lua_State *L) -{ - // wxAuiNotebook s - wxAuiNotebook * s = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiNotebook); - // get this - wxAuiNotebookEvent * self = (wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call SetDragSource - self->SetDragSource(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_SetOldSelection[] = { &wxluatype_wxAuiNotebookEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_SetOldSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_SetOldSelection[1] = {{ wxLua_wxAuiNotebookEvent_SetOldSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_SetOldSelection }}; -// void SetOldSelection(int s); -static int LUACALL wxLua_wxAuiNotebookEvent_SetOldSelection(lua_State *L) -{ - // int s - int s = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiNotebookEvent * self = (wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call SetOldSelection - self->SetOldSelection(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_SetSelection[] = { &wxluatype_wxAuiNotebookEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_SetSelection[1] = {{ wxLua_wxAuiNotebookEvent_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_SetSelection }}; -// void SetSelection(int s); -static int LUACALL wxLua_wxAuiNotebookEvent_SetSelection(lua_State *L) -{ - // int s - int s = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiNotebookEvent * self = (wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call SetSelection - self->SetSelection(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_delete[] = { &wxluatype_wxAuiNotebookEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_constructor1[] = { &wxluatype_wxAuiNotebookEvent, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor1[1] = {{ wxLua_wxAuiNotebookEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_constructor1 }}; -// wxAuiNotebookEvent(const wxAuiNotebookEvent& c); -static int LUACALL wxLua_wxAuiNotebookEvent_constructor1(lua_State *L) -{ - // const wxAuiNotebookEvent c - const wxAuiNotebookEvent * c = (const wxAuiNotebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookEvent); - // call constructor - wxAuiNotebookEvent* returns = new wxAuiNotebookEvent(*c); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebookEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor[1] = {{ wxLua_wxAuiNotebookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_constructor }}; -// wxAuiNotebookEvent(wxEventType command_type = wxEVT_NULL, int win_id = 0); -static int LUACALL wxLua_wxAuiNotebookEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int win_id = 0 - int win_id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType command_type = wxEVT_NULL - wxEventType command_type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxAuiNotebookEvent* returns = new wxAuiNotebookEvent(command_type, win_id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookEvent); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor_overload[] = -{ - { wxLua_wxAuiNotebookEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_constructor1 }, - { wxLua_wxAuiNotebookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxAuiNotebookEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiNotebookEvent_delete_function(void** p) -{ - wxAuiNotebookEvent* o = (wxAuiNotebookEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiNotebookEvent_methods[] = { - { "GetDragSource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookEvent_GetDragSource, 1, NULL }, - { "GetOldSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookEvent_GetOldSelection, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookEvent_GetSelection, 1, NULL }, - { "SetDragSource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookEvent_SetDragSource, 1, NULL }, - { "SetOldSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookEvent_SetOldSelection, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookEvent_SetSelection, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiNotebookEvent_delete, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiNotebookEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor_overload, s_wxluafunc_wxLua_wxAuiNotebookEvent_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiNotebookEvent_methodCount = sizeof(wxAuiNotebookEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiNotebookPage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiNotebookPage' -int wxluatype_wxAuiNotebookPage = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_active[] = { &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Get_active(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Get_active[1] = {{ wxLua_wxAuiNotebookPage_Get_active, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_active }}; -// bool active; // true if the page is currently active -static int LUACALL wxLua_wxAuiNotebookPage_Get_active(lua_State *L) -{ - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - // push the result flag - lua_pushboolean(L, self->active); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_bitmap[] = { &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Get_bitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Get_bitmap[1] = {{ wxLua_wxAuiNotebookPage_Get_bitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_bitmap }}; -// wxBitmap bitmap; // tab's bitmap -static int LUACALL wxLua_wxAuiNotebookPage_Get_bitmap(lua_State *L) -{ - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->bitmap, wxluatype_wxBitmap); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_caption[] = { &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Get_caption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Get_caption[1] = {{ wxLua_wxAuiNotebookPage_Get_caption, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_caption }}; -// wxString caption; // caption displayed on the tab -static int LUACALL wxLua_wxAuiNotebookPage_Get_caption(lua_State *L) -{ - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - // push the result string - wxlua_pushwxString(L, self->caption); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_rect[] = { &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Get_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Get_rect[1] = {{ wxLua_wxAuiNotebookPage_Get_rect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_rect }}; -// wxRect rect; // tab's hit rectangle -static int LUACALL wxLua_wxAuiNotebookPage_Get_rect(lua_State *L) -{ - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->rect, wxluatype_wxRect); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_window[] = { &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Get_window(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Get_window[1] = {{ wxLua_wxAuiNotebookPage_Get_window, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Get_window }}; -// wxWindow* window; // page's associated window -static int LUACALL wxLua_wxAuiNotebookPage_Get_window(lua_State *L) -{ - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - // push the result datatype - wxluaT_pushuserdatatype(L, self->window, wxluatype_wxWindow); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_active[] = { &wxluatype_wxAuiNotebookPage, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Set_active(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Set_active[1] = {{ wxLua_wxAuiNotebookPage_Set_active, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_active }}; -// bool active; // true if the page is currently active -static int LUACALL wxLua_wxAuiNotebookPage_Set_active(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - self->active = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_bitmap[] = { &wxluatype_wxAuiNotebookPage, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Set_bitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Set_bitmap[1] = {{ wxLua_wxAuiNotebookPage_Set_bitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_bitmap }}; -// wxBitmap bitmap; // tab's bitmap -static int LUACALL wxLua_wxAuiNotebookPage_Set_bitmap(lua_State *L) -{ - // get the data type value - wxBitmap* val = (wxBitmap*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - self->bitmap = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_caption[] = { &wxluatype_wxAuiNotebookPage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Set_caption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Set_caption[1] = {{ wxLua_wxAuiNotebookPage_Set_caption, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_caption }}; -// wxString caption; // caption displayed on the tab -static int LUACALL wxLua_wxAuiNotebookPage_Set_caption(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - self->caption = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_rect[] = { &wxluatype_wxAuiNotebookPage, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Set_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Set_rect[1] = {{ wxLua_wxAuiNotebookPage_Set_rect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_rect }}; -// wxRect rect; // tab's hit rectangle -static int LUACALL wxLua_wxAuiNotebookPage_Set_rect(lua_State *L) -{ - // get the data type value - wxRect* val = (wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - self->rect = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_window[] = { &wxluatype_wxAuiNotebookPage, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiNotebookPage_Set_window(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_Set_window[1] = {{ wxLua_wxAuiNotebookPage_Set_window, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPage_Set_window }}; -// wxWindow* window; // page's associated window -static int LUACALL wxLua_wxAuiNotebookPage_Set_window(lua_State *L) -{ - // get the data type value - wxWindow* val = (wxWindow*)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiNotebookPage *self = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPage); - self->window = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPage_delete[] = { &wxluatype_wxAuiNotebookPage, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPage_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPage_delete }}; - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - - - -void wxLua_wxAuiNotebookPage_delete_function(void** p) -{ - wxAuiNotebookPage* o = (wxAuiNotebookPage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiNotebookPage_methods[] = { - // %member { "Get_active", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_active, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - // %member { "Get_bitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_bitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - // %member { "Get_caption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_caption, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Get_window", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_window, 1, NULL }, - // %member { "Set_active", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_active, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - // %member { "Set_bitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_bitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - // %member { "Set_caption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_caption, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Set_window", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_window, 1, NULL }, - { "active", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_active, 1, NULL }, - { "active", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_active, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "bitmap", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_bitmap, 1, NULL }, - { "bitmap", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_bitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - { "caption", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_caption, 1, NULL }, - { "caption", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_caption, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiNotebookPage_delete, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "rect", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_rect, 1, NULL }, - { "rect", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "window", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Set_window, 1, NULL }, - { "window", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiNotebookPage_Get_window, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiNotebookPage_methodCount = sizeof(wxAuiNotebookPage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiNotebookPageArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiNotebookPageArray' -int wxluatype_wxAuiNotebookPageArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Add[] = { &wxluatype_wxAuiNotebookPageArray, &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_Add[1] = {{ wxLua_wxAuiNotebookPageArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Add }}; -// void Add(wxAuiNotebookPage* page); -static int LUACALL wxLua_wxAuiNotebookPageArray_Add(lua_State *L) -{ - // wxAuiNotebookPage page - wxAuiNotebookPage * page = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiNotebookPage); - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call Add - self->Add(page); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Clear[] = { &wxluatype_wxAuiNotebookPageArray, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_Clear[1] = {{ wxLua_wxAuiNotebookPageArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxAuiNotebookPageArray_Clear(lua_State *L) -{ - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_GetCount[] = { &wxluatype_wxAuiNotebookPageArray, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_GetCount[1] = {{ wxLua_wxAuiNotebookPageArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxAuiNotebookPageArray_GetCount(lua_State *L) -{ - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Insert[] = { &wxluatype_wxAuiNotebookPageArray, &wxluatype_wxAuiNotebookPage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_Insert[1] = {{ wxLua_wxAuiNotebookPageArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Insert }}; -// void Insert(wxAuiNotebookPage* page, int nIndex); -static int LUACALL wxLua_wxAuiNotebookPageArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // wxAuiNotebookPage page - wxAuiNotebookPage * page = (wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiNotebookPage); - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call Insert - self->Insert(page, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_IsEmpty[] = { &wxluatype_wxAuiNotebookPageArray, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_IsEmpty[1] = {{ wxLua_wxAuiNotebookPageArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxAuiNotebookPageArray_IsEmpty(lua_State *L) -{ - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Item[] = { &wxluatype_wxAuiNotebookPageArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_Item[1] = {{ wxLua_wxAuiNotebookPageArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_Item }}; -// wxAuiNotebookPage Item(size_t nIndex) const; -static int LUACALL wxLua_wxAuiNotebookPageArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call Item - // allocate a new object using the copy constructor - wxAuiNotebookPage* returns = new wxAuiNotebookPage(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookPage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_RemoveAt[] = { &wxluatype_wxAuiNotebookPageArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_RemoveAt[1] = {{ wxLua_wxAuiNotebookPageArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxAuiNotebookPageArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebookPageArray * self = (wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_delete[] = { &wxluatype_wxAuiNotebookPageArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_constructor1[] = { &wxluatype_wxAuiNotebookPageArray, NULL }; -static int LUACALL wxLua_wxAuiNotebookPageArray_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor1[1] = {{ wxLua_wxAuiNotebookPageArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_constructor1 }}; -// wxAuiNotebookPageArray(const wxAuiNotebookPageArray& array); -static int LUACALL wxLua_wxAuiNotebookPageArray_constructor1(lua_State *L) -{ - // const wxAuiNotebookPageArray array - const wxAuiNotebookPageArray * array = (const wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebookPageArray); - // call constructor - wxAuiNotebookPageArray* returns = new wxAuiNotebookPageArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookPageArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); - - return 1; -} - -static int LUACALL wxLua_wxAuiNotebookPageArray_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor[1] = {{ wxLua_wxAuiNotebookPageArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiNotebookPageArray(); -static int LUACALL wxLua_wxAuiNotebookPageArray_constructor(lua_State *L) -{ - // call constructor - wxAuiNotebookPageArray* returns = new wxAuiNotebookPageArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiNotebookPageArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor_overload[] = -{ - { wxLua_wxAuiNotebookPageArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebookPageArray_constructor1 }, - { wxLua_wxAuiNotebookPageArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiNotebookPageArray_delete_function(void** p) -{ - wxAuiNotebookPageArray* o = (wxAuiNotebookPageArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiNotebookPageArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebookPageArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiNotebookPageArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiNotebookPageArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor_overload, s_wxluafunc_wxLua_wxAuiNotebookPageArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiNotebookPageArray_methodCount = sizeof(wxAuiNotebookPageArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiTabContainerButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiTabContainerButton' -int wxluatype_wxAuiTabContainerButton = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_bitmap[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_bitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_bitmap[1] = {{ wxLua_wxAuiTabContainerButton_Get_bitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_bitmap }}; -// wxBitmap bitmap; // button's hover bitmap -static int LUACALL wxLua_wxAuiTabContainerButton_Get_bitmap(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->bitmap, wxluatype_wxBitmap); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_curState[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_curState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_curState[1] = {{ wxLua_wxAuiTabContainerButton_Get_curState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_curState }}; -// %wxchkver_2_9_3 int curState; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_curState(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->curState) == (double)(self->curState)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->curState); -} else -#endif -{ - lua_pushnumber(L, self->curState); -} - // return the number of values - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_cur_state[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_cur_state(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_cur_state[1] = {{ wxLua_wxAuiTabContainerButton_Get_cur_state, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_cur_state }}; -// !%wxchkver_2_9_3 int cur_state; // current state (normal, hover, pressed, etc.); -static int LUACALL wxLua_wxAuiTabContainerButton_Get_cur_state(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->cur_state) == (double)(self->cur_state)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->cur_state); -} else -#endif -{ - lua_pushnumber(L, self->cur_state); -} - // return the number of values - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_disBitmap[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_disBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_disBitmap[1] = {{ wxLua_wxAuiTabContainerButton_Get_disBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_disBitmap }}; -// %wxchkver_2_9_3 wxBitmap disBitmap; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_disBitmap(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->disBitmap, wxluatype_wxBitmap); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_dis_bitmap[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_dis_bitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_dis_bitmap[1] = {{ wxLua_wxAuiTabContainerButton_Get_dis_bitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_dis_bitmap }}; -// !%wxchkver_2_9_3 wxBitmap dis_bitmap; // button's disabled bitmap -static int LUACALL wxLua_wxAuiTabContainerButton_Get_dis_bitmap(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->dis_bitmap, wxluatype_wxBitmap); - // return the number of values - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_id[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_id(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_id[1] = {{ wxLua_wxAuiTabContainerButton_Get_id, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_id }}; -// int id; // button's id -static int LUACALL wxLua_wxAuiTabContainerButton_Get_id(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->id) == (double)(self->id)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->id); -} else -#endif -{ - lua_pushnumber(L, self->id); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_location[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_location(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_location[1] = {{ wxLua_wxAuiTabContainerButton_Get_location, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_location }}; -// int location; // buttons location (wxLEFT, wxRIGHT, or wxCENTER); -static int LUACALL wxLua_wxAuiTabContainerButton_Get_location(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->location) == (double)(self->location)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->location); -} else -#endif -{ - lua_pushnumber(L, self->location); -} - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_rect[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Get_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_rect[1] = {{ wxLua_wxAuiTabContainerButton_Get_rect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Get_rect }}; -// wxRect rect; // button's hit rectangle -static int LUACALL wxLua_wxAuiTabContainerButton_Get_rect(lua_State *L) -{ - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->rect, wxluatype_wxRect); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_bitmap[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_bitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_bitmap[1] = {{ wxLua_wxAuiTabContainerButton_Set_bitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_bitmap }}; -// wxBitmap bitmap; // button's hover bitmap -static int LUACALL wxLua_wxAuiTabContainerButton_Set_bitmap(lua_State *L) -{ - // get the data type value - wxBitmap* val = (wxBitmap*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->bitmap = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_curState[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_curState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_curState[1] = {{ wxLua_wxAuiTabContainerButton_Set_curState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_curState }}; -// %wxchkver_2_9_3 int curState; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_curState(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->curState = val; - // return the number of values - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_cur_state[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_cur_state(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_cur_state[1] = {{ wxLua_wxAuiTabContainerButton_Set_cur_state, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_cur_state }}; -// !%wxchkver_2_9_3 int cur_state; // current state (normal, hover, pressed, etc.); -static int LUACALL wxLua_wxAuiTabContainerButton_Set_cur_state(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->cur_state = val; - // return the number of values - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_disBitmap[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_disBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_disBitmap[1] = {{ wxLua_wxAuiTabContainerButton_Set_disBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_disBitmap }}; -// %wxchkver_2_9_3 wxBitmap disBitmap; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_disBitmap(lua_State *L) -{ - // get the data type value - wxBitmap* val = (wxBitmap*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->disBitmap = *val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_dis_bitmap[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_dis_bitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_dis_bitmap[1] = {{ wxLua_wxAuiTabContainerButton_Set_dis_bitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_dis_bitmap }}; -// !%wxchkver_2_9_3 wxBitmap dis_bitmap; // button's disabled bitmap -static int LUACALL wxLua_wxAuiTabContainerButton_Set_dis_bitmap(lua_State *L) -{ - // get the data type value - wxBitmap* val = (wxBitmap*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->dis_bitmap = *val; - // return the number of values - return 0; -} - -#endif // ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_id[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_id(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_id[1] = {{ wxLua_wxAuiTabContainerButton_Set_id, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_id }}; -// int id; // button's id -static int LUACALL wxLua_wxAuiTabContainerButton_Set_id(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->id = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_location[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_location(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_location[1] = {{ wxLua_wxAuiTabContainerButton_Set_location, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_location }}; -// int location; // buttons location (wxLEFT, wxRIGHT, or wxCENTER); -static int LUACALL wxLua_wxAuiTabContainerButton_Set_location(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->location = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_rect[] = { &wxluatype_wxAuiTabContainerButton, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiTabContainerButton_Set_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_rect[1] = {{ wxLua_wxAuiTabContainerButton_Set_rect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_Set_rect }}; -// wxRect rect; // button's hit rectangle -static int LUACALL wxLua_wxAuiTabContainerButton_Set_rect(lua_State *L) -{ - // get the data type value - wxRect* val = (wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiTabContainerButton *self = (wxAuiTabContainerButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabContainerButton); - self->rect = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#endif // (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabContainerButton_delete[] = { &wxluatype_wxAuiTabContainerButton, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabContainerButton_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabContainerButton_delete }}; - - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -#endif // ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxAuiTabContainerButton_delete_function(void** p) -{ - wxAuiTabContainerButton* o = (wxAuiTabContainerButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiTabContainerButton_methods[] = { -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - // %member { "Get_bitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_bitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Get_curState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_curState, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Get_cur_state", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_cur_state, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - // %member { "Get_disBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_disBitmap, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - // %member { "Get_dis_bitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_dis_bitmap, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - - // %member { "Get_id", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_id, 1, NULL }, - // %member { "Get_location", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_location, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - // %member { "Set_bitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_bitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Set_curState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_curState, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Set_cur_state", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_cur_state, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - // %member { "Set_disBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_disBitmap, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - // %member { "Set_dis_bitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_dis_bitmap, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - - // %member { "Set_id", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_id, 1, NULL }, - // %member { "Set_location", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_location, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "bitmap", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_bitmap, 1, NULL }, - { "bitmap", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_bitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "curState", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_curState, 1, NULL }, - { "curState", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_curState, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "cur_state", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_cur_state, 1, NULL }, - { "cur_state", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_cur_state, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiTabContainerButton_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { "disBitmap", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_disBitmap, 1, NULL }, - { "disBitmap", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_disBitmap, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { "dis_bitmap", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_dis_bitmap, 1, NULL }, - { "dis_bitmap", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_dis_bitmap, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - - { "id", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_id, 1, NULL }, - { "id", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_id, 1, NULL }, - { "location", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_location, 1, NULL }, - { "location", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_location, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "rect", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Set_rect, 1, NULL }, - { "rect", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiTabContainerButton_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxAuiTabContainerButton_methodCount = sizeof(wxAuiTabContainerButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiTabArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiTabArt' -int wxluatype_wxAuiTabArt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_Clone[] = { &wxluatype_wxAuiTabArt, NULL }; -static int LUACALL wxLua_wxAuiTabArt_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_Clone[1] = {{ wxLua_wxAuiTabArt_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabArt_Clone }}; -// %gc virtual wxAuiTabArt* Clone(); //= 0; -static int LUACALL wxLua_wxAuiTabArt_Clone(lua_State *L) -{ - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call Clone - wxAuiTabArt* returns = (wxAuiTabArt*)self->Clone(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxAuiTabArt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabArt); - - return 1; -} - - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_DrawBackground[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiTabArt_DrawBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_DrawBackground[1] = {{ wxLua_wxAuiTabArt_DrawBackground, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiTabArt_DrawBackground }}; -// virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect); //= 0; -static int LUACALL wxLua_wxAuiTabArt_DrawBackground(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call DrawBackground - self->DrawBackground(*dc, wnd, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_DrawButton[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiTabArt_DrawButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_DrawButton[1] = {{ wxLua_wxAuiTabArt_DrawButton, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxAuiTabArt_DrawButton }}; -// virtual void DrawButton(wxDC& dc, wxWindow* wnd, const wxRect& in_rect, int bitmap_id, int button_state, int orientation, wxRect* out_rect); //= 0; -static int LUACALL wxLua_wxAuiTabArt_DrawButton(lua_State *L) -{ - // wxRect out_rect - wxRect * out_rect = (wxRect *)wxluaT_getuserdatatype(L, 8, wxluatype_wxRect); - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 7); - // int button_state - int button_state = (int)wxlua_getnumbertype(L, 6); - // int bitmap_id - int bitmap_id = (int)wxlua_getnumbertype(L, 5); - // const wxRect in_rect - const wxRect * in_rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call DrawButton - self->DrawButton(*dc, wnd, *in_rect, bitmap_id, button_state, orientation, out_rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_DrawTab[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxAuiNotebookPage, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxAuiTabArt_DrawTab(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_DrawTab[1] = {{ wxLua_wxAuiTabArt_DrawTab, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxAuiTabArt_DrawTab }}; -// virtual void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& pane, const wxRect& in_rect, int close_button_state, wxRect* out_tab_rect, wxRect* out_button_rect, int* x_extent); // %add as it's missing from auibook.h -static int LUACALL wxLua_wxAuiTabArt_DrawTab(lua_State *L) -{ - // int x_extent - int * x_extent = (int *)wxlua_touserdata(L, 9); - // wxRect out_button_rect - wxRect * out_button_rect = (wxRect *)wxluaT_getuserdatatype(L, 8, wxluatype_wxRect); - // wxRect out_tab_rect - wxRect * out_tab_rect = (wxRect *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRect); - // int close_button_state - int close_button_state = (int)wxlua_getnumbertype(L, 6); - // const wxRect in_rect - const wxRect * in_rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxAuiNotebookPage pane - const wxAuiNotebookPage * pane = (const wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 4, wxluatype_wxAuiNotebookPage); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call DrawTab - self->DrawTab(*dc, wnd, *pane, *in_rect, close_button_state, out_tab_rect, out_button_rect, x_extent); - - return 0; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_GetBestTabCtrlSize[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxWindow, &wxluatype_wxAuiNotebookPageArray, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiTabArt_GetBestTabCtrlSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_GetBestTabCtrlSize[1] = {{ wxLua_wxAuiTabArt_GetBestTabCtrlSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiTabArt_GetBestTabCtrlSize }}; -// virtual int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages, const wxSize& required_bmp_size); //= 0; -static int LUACALL wxLua_wxAuiTabArt_GetBestTabCtrlSize(lua_State *L) -{ - // const wxSize required_bmp_size - const wxSize * required_bmp_size = (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // const wxAuiNotebookPageArray pages - const wxAuiNotebookPageArray * pages = (const wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiNotebookPageArray); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call GetBestTabCtrlSize - int returns = (self->GetBestTabCtrlSize(wnd, *pages, *required_bmp_size)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_GetIndentSize[] = { &wxluatype_wxAuiTabArt, NULL }; -static int LUACALL wxLua_wxAuiTabArt_GetIndentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_GetIndentSize[1] = {{ wxLua_wxAuiTabArt_GetIndentSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabArt_GetIndentSize }}; -// virtual int GetIndentSize(); //= 0; -static int LUACALL wxLua_wxAuiTabArt_GetIndentSize(lua_State *L) -{ - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call GetIndentSize - int returns = (self->GetIndentSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_GetTabSize[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxAuiTabArt_GetTabSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_GetTabSize[1] = {{ wxLua_wxAuiTabArt_GetTabSize, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxAuiTabArt_GetTabSize }}; -// virtual wxSize GetTabSize(wxDC& dc, wxWindow* wnd, const wxString& caption, const wxBitmap& bitmap, bool active, int close_button_state, int* x_extent); // %add as it's missing from auibook.h -static int LUACALL wxLua_wxAuiTabArt_GetTabSize(lua_State *L) -{ - // int x_extent - int * x_extent = (int *)wxlua_touserdata(L, 8); - // int close_button_state - int close_button_state = (int)wxlua_getnumbertype(L, 7); - // bool active - bool active = wxlua_getbooleantype(L, 6); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 4); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call GetTabSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetTabSize(*dc, wnd, caption, *bitmap, active, close_button_state, x_extent)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetActiveColour[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetActiveColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetActiveColour[1] = {{ wxLua_wxAuiTabArt_SetActiveColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabArt_SetActiveColour }}; -// %wxchkver_3_0_0 void SetActiveColour(const wxColour& colour); -static int LUACALL wxLua_wxAuiTabArt_SetActiveColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetActiveColour - self->SetActiveColour(*colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetColour[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetColour[1] = {{ wxLua_wxAuiTabArt_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabArt_SetColour }}; -// %wxchkver_3_0_0 void SetColour(const wxColour& colour); -static int LUACALL wxLua_wxAuiTabArt_SetColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetFlags[] = { &wxluatype_wxAuiTabArt, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetFlags[1] = {{ wxLua_wxAuiTabArt_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabArt_SetFlags }}; -// virtual void SetFlags(unsigned int flags); //= 0; -static int LUACALL wxLua_wxAuiTabArt_SetFlags(lua_State *L) -{ - // unsigned int flags - unsigned int flags = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetMeasuringFont[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetMeasuringFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetMeasuringFont[1] = {{ wxLua_wxAuiTabArt_SetMeasuringFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabArt_SetMeasuringFont }}; -// virtual void SetMeasuringFont(const wxFont& font); //= 0; -static int LUACALL wxLua_wxAuiTabArt_SetMeasuringFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetMeasuringFont - self->SetMeasuringFont(*font); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetNormalFont[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetNormalFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetNormalFont[1] = {{ wxLua_wxAuiTabArt_SetNormalFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabArt_SetNormalFont }}; -// virtual void SetNormalFont(const wxFont& font); //= 0; -static int LUACALL wxLua_wxAuiTabArt_SetNormalFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetNormalFont - self->SetNormalFont(*font); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetSelectedFont[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetSelectedFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetSelectedFont[1] = {{ wxLua_wxAuiTabArt_SetSelectedFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabArt_SetSelectedFont }}; -// virtual void SetSelectedFont(const wxFont& font); //= 0; -static int LUACALL wxLua_wxAuiTabArt_SetSelectedFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetSelectedFont - self->SetSelectedFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_SetSizingInfo[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxSize, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabArt_SetSizingInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_SetSizingInfo[1] = {{ wxLua_wxAuiTabArt_SetSizingInfo, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiTabArt_SetSizingInfo }}; -// virtual void SetSizingInfo(const wxSize& tab_ctrl_size, size_t tab_count); //= 0; -static int LUACALL wxLua_wxAuiTabArt_SetSizingInfo(lua_State *L) -{ - // size_t tab_count - size_t tab_count = (size_t)wxlua_getuintegertype(L, 3); - // const wxSize tab_ctrl_size - const wxSize * tab_ctrl_size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call SetSizingInfo - self->SetSizingInfo(*tab_ctrl_size, tab_count); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_ShowDropDown[] = { &wxluatype_wxAuiTabArt, &wxluatype_wxWindow, &wxluatype_wxAuiNotebookPageArray, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabArt_ShowDropDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_ShowDropDown[1] = {{ wxLua_wxAuiTabArt_ShowDropDown, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiTabArt_ShowDropDown }}; -// virtual int ShowDropDown(wxWindow* wnd, const wxAuiNotebookPageArray& items, int active_idx); // %add as it's missing from auibook.h -static int LUACALL wxLua_wxAuiTabArt_ShowDropDown(lua_State *L) -{ - // int active_idx - int active_idx = (int)wxlua_getnumbertype(L, 4); - // const wxAuiNotebookPageArray items - const wxAuiNotebookPageArray * items = (const wxAuiNotebookPageArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiNotebookPageArray); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabArt * self = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabArt); - // call ShowDropDown - int returns = (self->ShowDropDown(wnd, *items, active_idx)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabArt_delete[] = { &wxluatype_wxAuiTabArt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabArt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabArt_delete }}; - - - - -void wxLua_wxAuiTabArt_delete_function(void** p) -{ - wxAuiTabArt* o = (wxAuiTabArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiTabArt_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_Clone, 1, NULL }, - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "DrawBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_DrawBackground, 1, NULL }, - { "DrawButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_DrawButton, 1, NULL }, - { "DrawTab", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_DrawTab, 1, NULL }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "GetBestTabCtrlSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_GetBestTabCtrlSize, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetIndentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_GetIndentSize, 1, NULL }, - -#if (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "GetTabSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_GetTabSize, 1, NULL }, -#endif // (((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - { "SetActiveColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetActiveColour, 1, NULL }, - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetFlags, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetMeasuringFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetMeasuringFont, 1, NULL }, - { "SetNormalFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetNormalFont, 1, NULL }, - { "SetSelectedFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetSelectedFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetSizingInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_SetSizingInfo, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "ShowDropDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabArt_ShowDropDown, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiTabArt_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiTabArt_methodCount = sizeof(wxAuiTabArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiDefaultTabArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiDefaultTabArt' -int wxluatype_wxAuiDefaultTabArt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDefaultTabArt_delete[] = { &wxluatype_wxAuiDefaultTabArt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDefaultTabArt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiDefaultTabArt_delete }}; - -static int LUACALL wxLua_wxAuiDefaultTabArt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDefaultTabArt_constructor[1] = {{ wxLua_wxAuiDefaultTabArt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiDefaultTabArt(); -static int LUACALL wxLua_wxAuiDefaultTabArt_constructor(lua_State *L) -{ - // call constructor - wxAuiDefaultTabArt* returns = new wxAuiDefaultTabArt(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiDefaultTabArt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultTabArt); - - return 1; -} - - - - -void wxLua_wxAuiDefaultTabArt_delete_function(void** p) -{ - wxAuiDefaultTabArt* o = (wxAuiDefaultTabArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiDefaultTabArt_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiDefaultTabArt_delete, 1, NULL }, - { "wxAuiDefaultTabArt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiDefaultTabArt_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiDefaultTabArt_methodCount = sizeof(wxAuiDefaultTabArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiGenericTabArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiGenericTabArt' -int wxluatype_wxAuiGenericTabArt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiGenericTabArt_delete[] = { &wxluatype_wxAuiGenericTabArt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiGenericTabArt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiGenericTabArt_delete }}; - -static int LUACALL wxLua_wxAuiGenericTabArt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiGenericTabArt_constructor[1] = {{ wxLua_wxAuiGenericTabArt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiGenericTabArt(); -static int LUACALL wxLua_wxAuiGenericTabArt_constructor(lua_State *L) -{ - // call constructor - wxAuiGenericTabArt* returns = new wxAuiGenericTabArt(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiGenericTabArt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiGenericTabArt); - - return 1; -} - - - - -void wxLua_wxAuiGenericTabArt_delete_function(void** p) -{ - wxAuiGenericTabArt* o = (wxAuiGenericTabArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiGenericTabArt_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiGenericTabArt_delete, 1, NULL }, - { "wxAuiGenericTabArt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiGenericTabArt_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiGenericTabArt_methodCount = sizeof(wxAuiGenericTabArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiSimpleTabArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiSimpleTabArt' -int wxluatype_wxAuiSimpleTabArt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiSimpleTabArt_delete[] = { &wxluatype_wxAuiSimpleTabArt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiSimpleTabArt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiSimpleTabArt_delete }}; - -static int LUACALL wxLua_wxAuiSimpleTabArt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiSimpleTabArt_constructor[1] = {{ wxLua_wxAuiSimpleTabArt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiSimpleTabArt(); -static int LUACALL wxLua_wxAuiSimpleTabArt_constructor(lua_State *L) -{ - // call constructor - wxAuiSimpleTabArt* returns = new wxAuiSimpleTabArt(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiSimpleTabArt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiSimpleTabArt); - - return 1; -} - - - - -void wxLua_wxAuiSimpleTabArt_delete_function(void** p) -{ - wxAuiSimpleTabArt* o = (wxAuiSimpleTabArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiSimpleTabArt_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiSimpleTabArt_delete, 1, NULL }, - { "wxAuiSimpleTabArt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiSimpleTabArt_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiSimpleTabArt_methodCount = sizeof(wxAuiSimpleTabArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiTabCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiTabCtrl' -int wxluatype_wxAuiTabCtrl = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_AddButton[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_AddButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_AddButton[1] = {{ wxLua_wxAuiTabCtrl_AddButton, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxAuiTabCtrl_AddButton }}; -// void AddButton(int id, int location, const wxBitmap& normal_bitmap = wxNullBitmap, const wxBitmap& disabled_bitmap = wxNullBitmap); -static int LUACALL wxLua_wxAuiTabCtrl_AddButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap disabled_bitmap = wxNullBitmap - const wxBitmap * disabled_bitmap = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap normal_bitmap = wxNullBitmap - const wxBitmap * normal_bitmap = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // int location - int location = (int)wxlua_getnumbertype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call AddButton - self->AddButton(id, location, *normal_bitmap, *disabled_bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_AddPage[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxWindow, &wxluatype_wxAuiNotebookPage, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_AddPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_AddPage[1] = {{ wxLua_wxAuiTabCtrl_AddPage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiTabCtrl_AddPage }}; -// bool AddPage(wxWindow* page, const wxAuiNotebookPage& info); -static int LUACALL wxLua_wxAuiTabCtrl_AddPage(lua_State *L) -{ - // const wxAuiNotebookPage info - const wxAuiNotebookPage * info = (const wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiNotebookPage); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call AddPage - bool returns = (self->AddPage(page, *info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_ButtonHitTest[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_ButtonHitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_ButtonHitTest[1] = {{ wxLua_wxAuiTabCtrl_ButtonHitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiTabCtrl_ButtonHitTest }}; -// %override wxLua_wxAuiTabCtrl_ButtonHitTest -// wxAuiTabContainerButton* ButtonHitTest(int x, int y) const; -static int LUACALL wxLua_wxAuiTabCtrl_ButtonHitTest(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call ButtonHitTest - wxAuiTabContainerButton * hit; - bool returns = (self->ButtonHitTest(x, y, &hit)); - if (returns) { - wxluaT_pushuserdatatype(L, hit, wxluatype_wxAuiTabContainerButton); - return 1; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_DoShowHide[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_DoShowHide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_DoShowHide[1] = {{ wxLua_wxAuiTabCtrl_DoShowHide, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_DoShowHide }}; -// void DoShowHide(); -static int LUACALL wxLua_wxAuiTabCtrl_DoShowHide(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call DoShowHide - self->DoShowHide(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetActivePage[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetActivePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetActivePage[1] = {{ wxLua_wxAuiTabCtrl_GetActivePage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetActivePage }}; -// int GetActivePage() const; -static int LUACALL wxLua_wxAuiTabCtrl_GetActivePage(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetActivePage - int returns = (self->GetActivePage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetArtProvider[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetArtProvider[1] = {{ wxLua_wxAuiTabCtrl_GetArtProvider, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetArtProvider }}; -// wxAuiTabArt* GetArtProvider() const; -static int LUACALL wxLua_wxAuiTabCtrl_GetArtProvider(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetArtProvider - wxAuiTabArt* returns = (wxAuiTabArt*)self->GetArtProvider(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabArt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetFlags[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetFlags[1] = {{ wxLua_wxAuiTabCtrl_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetFlags }}; -// unsigned int GetFlags() const; -static int LUACALL wxLua_wxAuiTabCtrl_GetFlags(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetFlags - unsigned int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetIdxFromWindow[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetIdxFromWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetIdxFromWindow[1] = {{ wxLua_wxAuiTabCtrl_GetIdxFromWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetIdxFromWindow }}; -// int GetIdxFromWindow(wxWindow* page) const; -static int LUACALL wxLua_wxAuiTabCtrl_GetIdxFromWindow(lua_State *L) -{ - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetIdxFromWindow - int returns = (self->GetIdxFromWindow(page)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPage1[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetPage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage1[1] = {{ wxLua_wxAuiTabCtrl_GetPage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPage1 }}; -// const wxAuiNotebookPage& GetPage(size_t idx) const; -static int LUACALL wxLua_wxAuiTabCtrl_GetPage1(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetPage - const wxAuiNotebookPage* returns = (const wxAuiNotebookPage*)&self->GetPage(idx); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPage[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetPage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage[1] = {{ wxLua_wxAuiTabCtrl_GetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPage }}; -// wxAuiNotebookPage& GetPage(size_t idx); -static int LUACALL wxLua_wxAuiTabCtrl_GetPage(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetPage - wxAuiNotebookPage* returns = (wxAuiNotebookPage*)&self->GetPage(idx); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPageCount[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetPageCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetPageCount[1] = {{ wxLua_wxAuiTabCtrl_GetPageCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPageCount }}; -// size_t GetPageCount() const; -static int LUACALL wxLua_wxAuiTabCtrl_GetPageCount(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetPageCount - size_t returns = (self->GetPageCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPages[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetPages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetPages[1] = {{ wxLua_wxAuiTabCtrl_GetPages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPages }}; -// wxAuiNotebookPageArray& GetPages(); -static int LUACALL wxLua_wxAuiTabCtrl_GetPages(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetPages - wxAuiNotebookPageArray* returns = (wxAuiNotebookPageArray*)&self->GetPages(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebookPageArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetTabOffset[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetTabOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetTabOffset[1] = {{ wxLua_wxAuiTabCtrl_GetTabOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetTabOffset }}; -// size_t GetTabOffset() const; -static int LUACALL wxLua_wxAuiTabCtrl_GetTabOffset(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetTabOffset - size_t returns = (self->GetTabOffset()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetWindowFromIdx[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_GetWindowFromIdx(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetWindowFromIdx[1] = {{ wxLua_wxAuiTabCtrl_GetWindowFromIdx, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetWindowFromIdx }}; -// wxWindow* GetWindowFromIdx(size_t idx) const; -static int LUACALL wxLua_wxAuiTabCtrl_GetWindowFromIdx(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call GetWindowFromIdx - wxWindow* returns = (wxWindow*)self->GetWindowFromIdx(idx); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_InsertPage[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxWindow, &wxluatype_wxAuiNotebookPage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_InsertPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_InsertPage[1] = {{ wxLua_wxAuiTabCtrl_InsertPage, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiTabCtrl_InsertPage }}; -// bool InsertPage(wxWindow* page, const wxAuiNotebookPage& info, size_t idx); -static int LUACALL wxLua_wxAuiTabCtrl_InsertPage(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 4); - // const wxAuiNotebookPage info - const wxAuiNotebookPage * info = (const wxAuiNotebookPage *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiNotebookPage); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call InsertPage - bool returns = (self->InsertPage(page, *info, idx)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_IsDragging[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_IsDragging(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_IsDragging[1] = {{ wxLua_wxAuiTabCtrl_IsDragging, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_IsDragging }}; -// %wxchkver_2_8_5 bool IsDragging() const; -static int LUACALL wxLua_wxAuiTabCtrl_IsDragging(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call IsDragging - bool returns = (self->IsDragging()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_IsTabVisible[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxDC, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_IsTabVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_IsTabVisible[1] = {{ wxLua_wxAuiTabCtrl_IsTabVisible, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiTabCtrl_IsTabVisible }}; -// %wxchkver_2_8_6 bool IsTabVisible(int tabPage, int tabOffset, wxDC* dc, wxWindow* wnd); -static int LUACALL wxLua_wxAuiTabCtrl_IsTabVisible(lua_State *L) -{ - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 5, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDC); - // int tabOffset - int tabOffset = (int)wxlua_getnumbertype(L, 3); - // int tabPage - int tabPage = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call IsTabVisible - bool returns = (self->IsTabVisible(tabPage, tabOffset, dc, wnd)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC) - -#if (wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_MakeTabVisible[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TNUMBER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_MakeTabVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_MakeTabVisible[1] = {{ wxLua_wxAuiTabCtrl_MakeTabVisible, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiTabCtrl_MakeTabVisible }}; -// %wxchkver_2_8_6 void MakeTabVisible(int tabPage, wxWindow* win); -static int LUACALL wxLua_wxAuiTabCtrl_MakeTabVisible(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // int tabPage - int tabPage = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call MakeTabVisible - self->MakeTabVisible(tabPage, win); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_MovePage[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_MovePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_MovePage[1] = {{ wxLua_wxAuiTabCtrl_MovePage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiTabCtrl_MovePage }}; -// bool MovePage(wxWindow* page, size_t new_idx); -static int LUACALL wxLua_wxAuiTabCtrl_MovePage(lua_State *L) -{ - // size_t new_idx - size_t new_idx = (size_t)wxlua_getuintegertype(L, 3); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call MovePage - bool returns = (self->MovePage(page, new_idx)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_RemoveButton[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_RemoveButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_RemoveButton[1] = {{ wxLua_wxAuiTabCtrl_RemoveButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_RemoveButton }}; -// void RemoveButton(int id); -static int LUACALL wxLua_wxAuiTabCtrl_RemoveButton(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call RemoveButton - self->RemoveButton(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_RemovePage[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_RemovePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_RemovePage[1] = {{ wxLua_wxAuiTabCtrl_RemovePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_RemovePage }}; -// bool RemovePage(wxWindow* page); -static int LUACALL wxLua_wxAuiTabCtrl_RemovePage(lua_State *L) -{ - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call RemovePage - bool returns = (self->RemovePage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetActivePage1[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetActivePage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage1[1] = {{ wxLua_wxAuiTabCtrl_SetActivePage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetActivePage1 }}; -// bool SetActivePage(size_t page); -static int LUACALL wxLua_wxAuiTabCtrl_SetActivePage1(lua_State *L) -{ - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetActivePage - bool returns = (self->SetActivePage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetActivePage[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetActivePage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage[1] = {{ wxLua_wxAuiTabCtrl_SetActivePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetActivePage }}; -// bool SetActivePage(wxWindow* page); -static int LUACALL wxLua_wxAuiTabCtrl_SetActivePage(lua_State *L) -{ - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetActivePage - bool returns = (self->SetActivePage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetArtProvider[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxAuiTabArt, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetArtProvider[1] = {{ wxLua_wxAuiTabCtrl_SetArtProvider, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetArtProvider }}; -// void SetArtProvider(%ungc wxAuiTabArt* art); -static int LUACALL wxLua_wxAuiTabCtrl_SetArtProvider(lua_State *L) -{ - // wxAuiTabArt art - wxAuiTabArt * art = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiTabArt); - if (wxluaO_isgcobject(L, art)) wxluaO_undeletegcobject(L, art); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetArtProvider - self->SetArtProvider(art); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetFlags[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetFlags[1] = {{ wxLua_wxAuiTabCtrl_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetFlags }}; -// void SetFlags(unsigned int flags); -static int LUACALL wxLua_wxAuiTabCtrl_SetFlags(lua_State *L) -{ - // unsigned int flags - unsigned int flags = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetMeasuringFont[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetMeasuringFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetMeasuringFont[1] = {{ wxLua_wxAuiTabCtrl_SetMeasuringFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetMeasuringFont }}; -// void SetMeasuringFont(const wxFont& measuring_font); -static int LUACALL wxLua_wxAuiTabCtrl_SetMeasuringFont(lua_State *L) -{ - // const wxFont measuring_font - const wxFont * measuring_font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetMeasuringFont - self->SetMeasuringFont(*measuring_font); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetNoneActive[] = { &wxluatype_wxAuiTabCtrl, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetNoneActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetNoneActive[1] = {{ wxLua_wxAuiTabCtrl_SetNoneActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetNoneActive }}; -// void SetNoneActive(); -static int LUACALL wxLua_wxAuiTabCtrl_SetNoneActive(lua_State *L) -{ - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetNoneActive - self->SetNoneActive(); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetNormalFont[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetNormalFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetNormalFont[1] = {{ wxLua_wxAuiTabCtrl_SetNormalFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetNormalFont }}; -// void SetNormalFont(const wxFont& normal_font); -static int LUACALL wxLua_wxAuiTabCtrl_SetNormalFont(lua_State *L) -{ - // const wxFont normal_font - const wxFont * normal_font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetNormalFont - self->SetNormalFont(*normal_font); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetRect[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetRect[1] = {{ wxLua_wxAuiTabCtrl_SetRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetRect }}; -// void SetRect(const wxRect& rect); -static int LUACALL wxLua_wxAuiTabCtrl_SetRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetRect - self->SetRect(*rect); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetSelectedFont[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetSelectedFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetSelectedFont[1] = {{ wxLua_wxAuiTabCtrl_SetSelectedFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetSelectedFont }}; -// void SetSelectedFont(const wxFont& selected_font); -static int LUACALL wxLua_wxAuiTabCtrl_SetSelectedFont(lua_State *L) -{ - // const wxFont selected_font - const wxFont * selected_font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetSelectedFont - self->SetSelectedFont(*selected_font); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetTabOffset[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_SetTabOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetTabOffset[1] = {{ wxLua_wxAuiTabCtrl_SetTabOffset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetTabOffset }}; -// void SetTabOffset(size_t offset); -static int LUACALL wxLua_wxAuiTabCtrl_SetTabOffset(lua_State *L) -{ - // size_t offset - size_t offset = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call SetTabOffset - self->SetTabOffset(offset); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_TabHitTest[] = { &wxluatype_wxAuiTabCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_TabHitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_TabHitTest[1] = {{ wxLua_wxAuiTabCtrl_TabHitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiTabCtrl_TabHitTest }}; -// %override wxLua_wxAuiTabCtrl_TabHitTest -// wxWindow* TabHitTest(int x, int y) const; -static int LUACALL wxLua_wxAuiTabCtrl_TabHitTest(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiTabCtrl * self = (wxAuiTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiTabCtrl); - // call TabHitTest - wxWindow * hit; - bool returns = (self->TabHitTest(x, y, &hit)); - if (returns) { - wxluaT_pushuserdatatype(L, hit, wxluatype_wxWindow); - return 1; - } - return 0; -} - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiTabCtrl_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiTabCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_constructor[1] = {{ wxLua_wxAuiTabCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxAuiTabCtrl_constructor }}; -// wxAuiTabCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxAuiTabCtrl_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAuiTabCtrl* returns = new wxAuiTabCtrl(parent, id, *pos, *size, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage_overload[] = -{ - { wxLua_wxAuiTabCtrl_GetPage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPage1 }, - { wxLua_wxAuiTabCtrl_GetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_GetPage }, -}; -static int s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage_overload[] = -{ - { wxLua_wxAuiTabCtrl_SetActivePage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetActivePage1 }, - { wxLua_wxAuiTabCtrl_SetActivePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiTabCtrl_SetActivePage }, -}; -static int s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiTabCtrl_delete_function(void** p) -{ - wxAuiTabCtrl* o = (wxAuiTabCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiTabCtrl_methods[] = { -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "AddButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_AddButton, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - { "AddPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_AddPage, 1, NULL }, - { "ButtonHitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_ButtonHitTest, 1, NULL }, - { "DoShowHide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_DoShowHide, 1, NULL }, - { "GetActivePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetActivePage, 1, NULL }, - { "GetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetArtProvider, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetFlags, 1, NULL }, - { "GetIdxFromWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetIdxFromWindow, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage_overload, s_wxluafunc_wxLua_wxAuiTabCtrl_GetPage_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetPageCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetPageCount, 1, NULL }, - { "GetPages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetPages, 1, NULL }, - { "GetTabOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetTabOffset, 1, NULL }, - { "GetWindowFromIdx", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_GetWindowFromIdx, 1, NULL }, - { "InsertPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_InsertPage, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "IsDragging", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_IsDragging, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC) - { "IsTabVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_IsTabVisible, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxDC) - -#if (wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "MakeTabVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_MakeTabVisible, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "MovePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_MovePage, 1, NULL }, - { "RemoveButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_RemoveButton, 1, NULL }, - { "RemovePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_RemovePage, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "SetActivePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage_overload, s_wxluafunc_wxLua_wxAuiTabCtrl_SetActivePage_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "SetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetArtProvider, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetFlags, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetMeasuringFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetMeasuringFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - - { "SetNoneActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetNoneActive, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetNormalFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetNormalFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetRect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetSelectedFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetSelectedFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - - { "SetTabOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_SetTabOffset, 1, NULL }, - { "TabHitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiTabCtrl_TabHitTest, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "wxAuiTabCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiTabCtrl_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxAuiTabCtrl_methodCount = sizeof(wxAuiTabCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiNotebook -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiNotebook' -int wxluatype_wxAuiNotebook = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_AddPage1[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_AddPage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_AddPage1[1] = {{ wxLua_wxAuiNotebook_AddPage1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiNotebook_AddPage1 }}; -// %wxchkver_3_0_0 bool AddPage(wxWindow *page, const wxString &text, bool select, int imageId); -static int LUACALL wxLua_wxAuiNotebook_AddPage1(lua_State *L) -{ - // int imageId - int imageId = (int)wxlua_getnumbertype(L, 5); - // bool select - bool select = wxlua_getbooleantype(L, 4); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call AddPage - bool returns = (self->AddPage(page, text, select, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_AddPage[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiNotebook_AddPage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_AddPage[1] = {{ wxLua_wxAuiNotebook_AddPage, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxAuiNotebook_AddPage }}; -// bool AddPage(wxWindow* page, const wxString& caption, bool select = false, const wxBitmap& bitmap = wxNullBitmap); -static int LUACALL wxLua_wxAuiNotebook_AddPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // bool select = false - bool select = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 3); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call AddPage - bool returns = (self->AddPage(page, caption, select, *bitmap)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_AdvanceSelection[] = { &wxluatype_wxAuiNotebook, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiNotebook_AdvanceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_AdvanceSelection[1] = {{ wxLua_wxAuiNotebook_AdvanceSelection, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_AdvanceSelection }}; -// %wxchkver_2_8_5 void AdvanceSelection(bool forward = true); // Advances the selection, generates page selection events -static int LUACALL wxLua_wxAuiNotebook_AdvanceSelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool forward = true - bool forward = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call AdvanceSelection - self->AdvanceSelection(forward); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_AssignImageList[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxAuiNotebook_AssignImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_AssignImageList[1] = {{ wxLua_wxAuiNotebook_AssignImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_AssignImageList }}; -// %wxchkver_3_0 void AssignImageList(wxImageList *imageList); // %add as it's used by SetPageImage -static int LUACALL wxLua_wxAuiNotebook_AssignImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call AssignImageList - self->AssignImageList(imageList); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_ChangeSelection[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_ChangeSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_ChangeSelection[1] = {{ wxLua_wxAuiNotebook_ChangeSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_ChangeSelection }}; -// %wxchkver_3_0_0 int ChangeSelection(size_t n); -static int LUACALL wxLua_wxAuiNotebook_ChangeSelection(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call ChangeSelection - int returns = (self->ChangeSelection(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_Create[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_Create[1] = {{ wxLua_wxAuiNotebook_Create, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxAuiNotebook_Create }}; -// bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxAuiNotebook_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_DeleteAllPages[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_DeleteAllPages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_DeleteAllPages[1] = {{ wxLua_wxAuiNotebook_DeleteAllPages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_DeleteAllPages }}; -// %wxchkver_3_0_0 bool DeleteAllPages(); -static int LUACALL wxLua_wxAuiNotebook_DeleteAllPages(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call DeleteAllPages - bool returns = (self->DeleteAllPages()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_DeletePage[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_DeletePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_DeletePage[1] = {{ wxLua_wxAuiNotebook_DeletePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_DeletePage }}; -// bool DeletePage(size_t page); -static int LUACALL wxLua_wxAuiNotebook_DeletePage(lua_State *L) -{ - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call DeletePage - bool returns = (self->DeletePage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_FindTab[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiNotebook_FindTab(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_FindTab[1] = {{ wxLua_wxAuiNotebook_FindTab, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_FindTab }}; -// %override wxLua_wxAuiNotebook_FindTab -// wxAuiTabCtrl* FindTab(wxWindow*); -static int LUACALL wxLua_wxAuiNotebook_FindTab(lua_State *L) -{ - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call FindTab - int idx; - wxAuiTabCtrl *ctrl; - bool returns = (self->FindTab(page, &ctrl, &idx)); - if (returns) { - wxluaT_pushuserdatatype(L, ctrl, wxluatype_wxAuiTabCtrl); - lua_pushinteger(L, idx); - return 2; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetActiveTabCtrl[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetActiveTabCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetActiveTabCtrl[1] = {{ wxLua_wxAuiNotebook_GetActiveTabCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetActiveTabCtrl }}; -// %wxchkver_3_1_4 wxAuiTabCtrl* GetActiveTabCtrl(); -static int LUACALL wxLua_wxAuiNotebook_GetActiveTabCtrl(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetActiveTabCtrl - wxAuiTabCtrl* returns = (wxAuiTabCtrl*)self->GetActiveTabCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabCtrl); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetArtProvider[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetArtProvider[1] = {{ wxLua_wxAuiNotebook_GetArtProvider, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetArtProvider }}; -// wxAuiTabArt* GetArtProvider() const; -static int LUACALL wxLua_wxAuiNotebook_GetArtProvider(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetArtProvider - wxAuiTabArt* returns = (wxAuiTabArt*)self->GetArtProvider(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabArt); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetAuiManager[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetAuiManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetAuiManager[1] = {{ wxLua_wxAuiNotebook_GetAuiManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetAuiManager }}; -// %wxchkver_2_8_1 const wxAuiManager& GetAuiManager() const; // %add as it's missing from auibook.h -static int LUACALL wxLua_wxAuiNotebook_GetAuiManager(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetAuiManager - const wxAuiManager* returns = (const wxAuiManager*)&self->GetAuiManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetCurrentPage[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetCurrentPage[1] = {{ wxLua_wxAuiNotebook_GetCurrentPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetCurrentPage }}; -// wxWindow* GetCurrentPage () const; -static int LUACALL wxLua_wxAuiNotebook_GetCurrentPage(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetCurrentPage - wxWindow* returns = (wxWindow*)self->GetCurrentPage(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetHeightForPageHeight[] = { &wxluatype_wxAuiNotebook, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetHeightForPageHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetHeightForPageHeight[1] = {{ wxLua_wxAuiNotebook_GetHeightForPageHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetHeightForPageHeight }}; -// %wxchkver_2_8_5 int GetHeightForPageHeight(int pageHeight); // Gets the height of the notebook for a given page height -static int LUACALL wxLua_wxAuiNotebook_GetHeightForPageHeight(lua_State *L) -{ - // int pageHeight - int pageHeight = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetHeightForPageHeight - int returns = (self->GetHeightForPageHeight(pageHeight)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetImageList[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetImageList[1] = {{ wxLua_wxAuiNotebook_GetImageList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetImageList }}; -// %wxchkver_3_0 wxImageList* GetImageList() const; // %add as it's used by SetPageImage -static int LUACALL wxLua_wxAuiNotebook_GetImageList(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetImageList - wxImageList* returns = (wxImageList*)self->GetImageList(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPage[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPage[1] = {{ wxLua_wxAuiNotebook_GetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPage }}; -// wxWindow* GetPage(size_t page_idx) const; -static int LUACALL wxLua_wxAuiNotebook_GetPage(lua_State *L) -{ - // size_t page_idx - size_t page_idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPage - wxWindow* returns = (wxWindow*)self->GetPage(page_idx); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageBitmap[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPageBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPageBitmap[1] = {{ wxLua_wxAuiNotebook_GetPageBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageBitmap }}; -// wxBitmap GetPageBitmap(size_t page_idx) const; -static int LUACALL wxLua_wxAuiNotebook_GetPageBitmap(lua_State *L) -{ - // size_t page_idx - size_t page_idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPageBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetPageBitmap(page_idx)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageCount[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPageCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPageCount[1] = {{ wxLua_wxAuiNotebook_GetPageCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageCount }}; -// size_t GetPageCount() const; -static int LUACALL wxLua_wxAuiNotebook_GetPageCount(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPageCount - size_t returns = (self->GetPageCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageImage[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPageImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPageImage[1] = {{ wxLua_wxAuiNotebook_GetPageImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageImage }}; -// %wxchkver_3_1_1 int GetPageImage(size_t nPage) const; -static int LUACALL wxLua_wxAuiNotebook_GetPageImage(lua_State *L) -{ - // size_t nPage - size_t nPage = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPageImage - int returns = (self->GetPageImage(nPage)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageIndex[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPageIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPageIndex[1] = {{ wxLua_wxAuiNotebook_GetPageIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageIndex }}; -// int GetPageIndex(wxWindow* page_wnd) const; -static int LUACALL wxLua_wxAuiNotebook_GetPageIndex(lua_State *L) -{ - // wxWindow page_wnd - wxWindow * page_wnd = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPageIndex - int returns = (self->GetPageIndex(page_wnd)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageText[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPageText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPageText[1] = {{ wxLua_wxAuiNotebook_GetPageText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageText }}; -// wxString GetPageText(size_t page_idx) const; -static int LUACALL wxLua_wxAuiNotebook_GetPageText(lua_State *L) -{ - // size_t page_idx - size_t page_idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPageText - wxString returns = (self->GetPageText(page_idx)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageToolTip[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetPageToolTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetPageToolTip[1] = {{ wxLua_wxAuiNotebook_GetPageToolTip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetPageToolTip }}; -// %wxchkver_2_9_4 wxString GetPageToolTip(size_t pageIdx) const; -static int LUACALL wxLua_wxAuiNotebook_GetPageToolTip(lua_State *L) -{ - // size_t pageIdx - size_t pageIdx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetPageToolTip - wxString returns = (self->GetPageToolTip(pageIdx)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetSelection[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetSelection[1] = {{ wxLua_wxAuiNotebook_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxAuiNotebook_GetSelection(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetTabCtrlFromPoint[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetTabCtrlFromPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetTabCtrlFromPoint[1] = {{ wxLua_wxAuiNotebook_GetTabCtrlFromPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_GetTabCtrlFromPoint }}; -// %wxchkver_3_1_4 wxAuiTabCtrl* GetTabCtrlFromPoint(const wxPoint& pt); -static int LUACALL wxLua_wxAuiNotebook_GetTabCtrlFromPoint(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetTabCtrlFromPoint - wxAuiTabCtrl* returns = (wxAuiTabCtrl*)self->GetTabCtrlFromPoint(*pt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabCtrl); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_GetTabCtrlHeight[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_GetTabCtrlHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_GetTabCtrlHeight[1] = {{ wxLua_wxAuiNotebook_GetTabCtrlHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_GetTabCtrlHeight }}; -// %wxchkver_2_8_5 int GetTabCtrlHeight() const; // Gets the tab control height -static int LUACALL wxLua_wxAuiNotebook_GetTabCtrlHeight(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call GetTabCtrlHeight - int returns = (self->GetTabCtrlHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_InsertPage1[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_InsertPage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_InsertPage1[1] = {{ wxLua_wxAuiNotebook_InsertPage1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxAuiNotebook_InsertPage1 }}; -// %wxchkver_3_0_0 bool InsertPage(size_t index, wxWindow *page, const wxString &text, bool select=false, int imageId=-1); -static int LUACALL wxLua_wxAuiNotebook_InsertPage1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = -1 - int imageId = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // bool select = false - bool select = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call InsertPage - bool returns = (self->InsertPage(index, page, text, select, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_InsertPage[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiNotebook_InsertPage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_InsertPage[1] = {{ wxLua_wxAuiNotebook_InsertPage, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxAuiNotebook_InsertPage }}; -// bool InsertPage(size_t page_idx, wxWindow* page, const wxString& caption, bool select = false, const wxBitmap& bitmap = wxNullBitmap); -static int LUACALL wxLua_wxAuiNotebook_InsertPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 6 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 6, wxluatype_wxBitmap) : &wxNullBitmap); - // bool select = false - bool select = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 4); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t page_idx - size_t page_idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call InsertPage - bool returns = (self->InsertPage(page_idx, page, caption, select, *bitmap)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_RemovePage[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_RemovePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_RemovePage[1] = {{ wxLua_wxAuiNotebook_RemovePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_RemovePage }}; -// bool RemovePage(size_t page); -static int LUACALL wxLua_wxAuiNotebook_RemovePage(lua_State *L) -{ - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call RemovePage - bool returns = (self->RemovePage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetArtProvider[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxAuiTabArt, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetArtProvider[1] = {{ wxLua_wxAuiNotebook_SetArtProvider, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetArtProvider }}; -// void SetArtProvider(%ungc wxAuiTabArt* art); -static int LUACALL wxLua_wxAuiNotebook_SetArtProvider(lua_State *L) -{ - // wxAuiTabArt art - wxAuiTabArt * art = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiTabArt); - if (wxluaO_isgcobject(L, art)) wxluaO_undeletegcobject(L, art); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetArtProvider - self->SetArtProvider(art); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetFont[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetFont[1] = {{ wxLua_wxAuiNotebook_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetFont }}; -// %wxchkver_2_8_5 virtual bool SetFont(const wxFont& font); // Sets the tab font -static int LUACALL wxLua_wxAuiNotebook_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetFont - bool returns = (self->SetFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetImageList[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetImageList[1] = {{ wxLua_wxAuiNotebook_SetImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetImageList }}; -// %wxchkver_3_0 void SetImageList(wxImageList *imageList); // %add as it's used by SetPageImage -static int LUACALL wxLua_wxAuiNotebook_SetImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetImageList - self->SetImageList(imageList); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - -#if ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetMeasuringFont[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetMeasuringFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetMeasuringFont[1] = {{ wxLua_wxAuiNotebook_SetMeasuringFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetMeasuringFont }}; -// %wxchkver_2_8_5 void SetMeasuringFont(const wxFont& font); // Sets the measuring font -static int LUACALL wxLua_wxAuiNotebook_SetMeasuringFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetMeasuringFont - self->SetMeasuringFont(*font); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetNormalFont[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetNormalFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetNormalFont[1] = {{ wxLua_wxAuiNotebook_SetNormalFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetNormalFont }}; -// %wxchkver_2_8_5 void SetNormalFont(const wxFont& font); // Sets the normal font -static int LUACALL wxLua_wxAuiNotebook_SetNormalFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetNormalFont - self->SetNormalFont(*font); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageBitmap[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetPageBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetPageBitmap[1] = {{ wxLua_wxAuiNotebook_SetPageBitmap, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageBitmap }}; -// bool SetPageBitmap(size_t page, const wxBitmap& bitmap); -static int LUACALL wxLua_wxAuiNotebook_SetPageBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetPageBitmap - bool returns = (self->SetPageBitmap(page, *bitmap)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageImage[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetPageImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetPageImage[1] = {{ wxLua_wxAuiNotebook_SetPageImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageImage }}; -// %wxchkver_3_0_0 bool SetPageImage(size_t n, int imageId); -static int LUACALL wxLua_wxAuiNotebook_SetPageImage(lua_State *L) -{ - // int imageId - int imageId = (int)wxlua_getnumbertype(L, 3); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetPageImage - bool returns = (self->SetPageImage(n, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageText[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetPageText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetPageText[1] = {{ wxLua_wxAuiNotebook_SetPageText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageText }}; -// bool SetPageText(size_t page, const wxString& text); -static int LUACALL wxLua_wxAuiNotebook_SetPageText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetPageText - bool returns = (self->SetPageText(page, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageToolTip[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetPageToolTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetPageToolTip[1] = {{ wxLua_wxAuiNotebook_SetPageToolTip, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiNotebook_SetPageToolTip }}; -// %wxchkver_2_9_4 bool SetPageToolTip(size_t page, const wxString& text); -static int LUACALL wxLua_wxAuiNotebook_SetPageToolTip(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetPageToolTip - bool returns = (self->SetPageToolTip(page, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetSelectedFont[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetSelectedFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetSelectedFont[1] = {{ wxLua_wxAuiNotebook_SetSelectedFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetSelectedFont }}; -// %wxchkver_2_8_5 void SetSelectedFont(const wxFont& font); // Sets the selected tab font -static int LUACALL wxLua_wxAuiNotebook_SetSelectedFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetSelectedFont - self->SetSelectedFont(*font); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetSelection[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetSelection[1] = {{ wxLua_wxAuiNotebook_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetSelection }}; -// size_t SetSelection(size_t new_page); -static int LUACALL wxLua_wxAuiNotebook_SetSelection(lua_State *L) -{ - // size_t new_page - size_t new_page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetSelection - size_t returns = (self->SetSelection(new_page)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetTabCtrlHeight[] = { &wxluatype_wxAuiNotebook, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetTabCtrlHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetTabCtrlHeight[1] = {{ wxLua_wxAuiNotebook_SetTabCtrlHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetTabCtrlHeight }}; -// virtual void SetTabCtrlHeight(int height); -static int LUACALL wxLua_wxAuiNotebook_SetTabCtrlHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetTabCtrlHeight - self->SetTabCtrlHeight(height); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetUniformBitmapSize[] = { &wxluatype_wxAuiNotebook, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetUniformBitmapSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetUniformBitmapSize[1] = {{ wxLua_wxAuiNotebook_SetUniformBitmapSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetUniformBitmapSize }}; -// virtual void SetUniformBitmapSize(const wxSize& size); -static int LUACALL wxLua_wxAuiNotebook_SetUniformBitmapSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetUniformBitmapSize - self->SetUniformBitmapSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_SetWindowStyleFlag[] = { &wxluatype_wxAuiNotebook, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_SetWindowStyleFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_SetWindowStyleFlag[1] = {{ wxLua_wxAuiNotebook_SetWindowStyleFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiNotebook_SetWindowStyleFlag }}; -// void SetWindowStyleFlag(long style); // %add as it's missing from auibook.h -static int LUACALL wxLua_wxAuiNotebook_SetWindowStyleFlag(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call SetWindowStyleFlag - self->SetWindowStyleFlag(style); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_ShowWindowMenu[] = { &wxluatype_wxAuiNotebook, NULL }; -static int LUACALL wxLua_wxAuiNotebook_ShowWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_ShowWindowMenu[1] = {{ wxLua_wxAuiNotebook_ShowWindowMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiNotebook_ShowWindowMenu }}; -// %wxchkver_2_8_5 bool ShowWindowMenu(); // Shows the window menu -static int LUACALL wxLua_wxAuiNotebook_ShowWindowMenu(lua_State *L) -{ - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call ShowWindowMenu - bool returns = (self->ShowWindowMenu()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_Split[] = { &wxluatype_wxAuiNotebook, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_Split(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_Split[1] = {{ wxLua_wxAuiNotebook_Split, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiNotebook_Split }}; -// virtual void Split(size_t page, int direction); -static int LUACALL wxLua_wxAuiNotebook_Split(lua_State *L) -{ - // int direction - int direction = (int)wxlua_getnumbertype(L, 3); - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiNotebook * self = (wxAuiNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiNotebook); - // call Split - self->Split(page, direction); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiNotebook_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiNotebook_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_constructor1[1] = {{ wxLua_wxAuiNotebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxAuiNotebook_constructor1 }}; -// wxAuiNotebook(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxAUI_NB_DEFAULT_STYLE); -static int LUACALL wxLua_wxAuiNotebook_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxAUI_NB_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxAUI_NB_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAuiNotebook* returns = new wxAuiNotebook(parent, id, *pos, *size, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebook); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxAuiNotebook_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_constructor[1] = {{ wxLua_wxAuiNotebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiNotebook(); -static int LUACALL wxLua_wxAuiNotebook_constructor(lua_State *L) -{ - // call constructor - wxAuiNotebook* returns = new wxAuiNotebook(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebook); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_AddPage_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { wxLua_wxAuiNotebook_AddPage1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiNotebook_AddPage1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiNotebook_AddPage, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxAuiNotebook_AddPage }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxAuiNotebook_AddPage_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiNotebook_AddPage_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_InsertPage_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { wxLua_wxAuiNotebook_InsertPage1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxAuiNotebook_InsertPage1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { wxLua_wxAuiNotebook_InsertPage, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxAuiNotebook_InsertPage }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxAuiNotebook_InsertPage_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiNotebook_InsertPage_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiNotebook_constructor_overload[] = -{ - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiNotebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxAuiNotebook_constructor1 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiNotebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiNotebook_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiNotebook_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiNotebook_delete_function(void** p) -{ - wxAuiNotebook* o = (wxAuiNotebook*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiNotebook_methods[] = { -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) - { "AddPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_AddPage_overload, s_wxluafunc_wxLua_wxAuiNotebook_AddPage_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "AdvanceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_AdvanceSelection, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - { "AssignImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_AssignImageList, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "ChangeSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_ChangeSelection, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_Create, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "DeleteAllPages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_DeleteAllPages, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "DeletePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_DeletePage, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "FindTab", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_FindTab, 1, NULL }, - { "GetActiveTabCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetActiveTabCtrl, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetArtProvider, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetAuiManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetAuiManager, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetCurrentPage, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetHeightForPageHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetHeightForPageHeight, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - { "GetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetImageList, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - - { "GetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPage, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "GetPageBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPageBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - - { "GetPageCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPageCount, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetPageImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPageImage, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetPageIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPageIndex, 1, NULL }, - { "GetPageText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPageText, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetPageToolTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetPageToolTip, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetSelection, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) - { "GetTabCtrlFromPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetTabCtrlFromPoint, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetTabCtrlHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_GetTabCtrlHeight, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) - { "InsertPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_InsertPage_overload, s_wxluafunc_wxLua_wxAuiNotebook_InsertPage_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap)) - - { "RemovePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_RemovePage, 1, NULL }, - { "SetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetArtProvider, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - { "SetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetImageList, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxImageList) - -#if ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - { "SetMeasuringFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetMeasuringFont, 1, NULL }, - { "SetNormalFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetNormalFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - { "SetPageBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetPageBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "SetPageImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetPageImage, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "SetPageText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetPageText, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "SetPageToolTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetPageToolTip, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - { "SetSelectedFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetSelectedFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxFont) - - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetSelection, 1, NULL }, - { "SetTabCtrlHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetTabCtrlHeight, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "SetUniformBitmapSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetUniformBitmapSize, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "SetWindowStyleFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_SetWindowStyleFlag, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "ShowWindowMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_ShowWindowMenu, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "Split", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiNotebook_Split, 1, NULL }, - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiNotebook", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiNotebook_constructor_overload, s_wxluafunc_wxLua_wxAuiNotebook_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiNotebook_methodCount = sizeof(wxAuiNotebook_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiDockArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiDockArt' -int wxluatype_wxAuiDockArt = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_DrawBackground[] = { &wxluatype_wxAuiDockArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiDockArt_DrawBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_DrawBackground[1] = {{ wxLua_wxAuiDockArt_DrawBackground, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiDockArt_DrawBackground }}; -// virtual void DrawBackground(wxDC& dc, wxWindow* window, int orientation, const wxRect& rect); //= 0; -static int LUACALL wxLua_wxAuiDockArt_DrawBackground(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 4); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call DrawBackground - self->DrawBackground(*dc, window, orientation, *rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_DrawBorder[] = { &wxluatype_wxAuiDockArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiDockArt_DrawBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_DrawBorder[1] = {{ wxLua_wxAuiDockArt_DrawBorder, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiDockArt_DrawBorder }}; -// virtual void DrawBorder(wxDC& dc, wxWindow* window, const wxRect& rect, wxAuiPaneInfo& pane); //= 0; -static int LUACALL wxLua_wxAuiDockArt_DrawBorder(lua_State *L) -{ - // wxAuiPaneInfo pane - wxAuiPaneInfo * pane = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 5, wxluatype_wxAuiPaneInfo); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call DrawBorder - self->DrawBorder(*dc, window, *rect, *pane); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_DrawCaption[] = { &wxluatype_wxAuiDockArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_wxRect, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiDockArt_DrawCaption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_DrawCaption[1] = {{ wxLua_wxAuiDockArt_DrawCaption, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxAuiDockArt_DrawCaption }}; -// virtual void DrawCaption(wxDC& dc, wxWindow* window, const wxString& text, const wxRect& rect, wxAuiPaneInfo& pane); //= 0; -static int LUACALL wxLua_wxAuiDockArt_DrawCaption(lua_State *L) -{ - // wxAuiPaneInfo pane - wxAuiPaneInfo * pane = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 6, wxluatype_wxAuiPaneInfo); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call DrawCaption - self->DrawCaption(*dc, window, text, *rect, *pane); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_DrawGripper[] = { &wxluatype_wxAuiDockArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_wxRect, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiDockArt_DrawGripper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_DrawGripper[1] = {{ wxLua_wxAuiDockArt_DrawGripper, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiDockArt_DrawGripper }}; -// virtual void DrawGripper(wxDC& dc, wxWindow* window, const wxRect& rect, wxAuiPaneInfo& pane); //= 0; -static int LUACALL wxLua_wxAuiDockArt_DrawGripper(lua_State *L) -{ - // wxAuiPaneInfo pane - wxAuiPaneInfo * pane = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 5, wxluatype_wxAuiPaneInfo); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call DrawGripper - self->DrawGripper(*dc, window, *rect, *pane); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_DrawPaneButton[] = { &wxluatype_wxAuiDockArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRect, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiDockArt_DrawPaneButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_DrawPaneButton[1] = {{ wxLua_wxAuiDockArt_DrawPaneButton, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxAuiDockArt_DrawPaneButton }}; -// virtual void DrawPaneButton(wxDC& dc, wxWindow* window, int button, int button_state, const wxRect& rect, wxAuiPaneInfo& pane); //= 0; -static int LUACALL wxLua_wxAuiDockArt_DrawPaneButton(lua_State *L) -{ - // wxAuiPaneInfo pane - wxAuiPaneInfo * pane = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 7, wxluatype_wxAuiPaneInfo); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // int button_state - int button_state = (int)wxlua_getnumbertype(L, 5); - // int button - int button = (int)wxlua_getnumbertype(L, 4); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call DrawPaneButton - self->DrawPaneButton(*dc, window, button, button_state, *rect, *pane); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_DrawSash[] = { &wxluatype_wxAuiDockArt, &wxluatype_wxDC, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiDockArt_DrawSash(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_DrawSash[1] = {{ wxLua_wxAuiDockArt_DrawSash, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxAuiDockArt_DrawSash }}; -// virtual void DrawSash(wxDC& dc, wxWindow* window, int orientation, const wxRect& rect); //= 0; -static int LUACALL wxLua_wxAuiDockArt_DrawSash(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 4); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call DrawSash - self->DrawSash(*dc, window, orientation, *rect); - - return 0; -} - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_GetColor[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockArt_GetColor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_GetColor[1] = {{ wxLua_wxAuiDockArt_GetColor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockArt_GetColor }}; -// !%wxchkver_3_0_0 wxColour GetColor(int id); -static int LUACALL wxLua_wxAuiDockArt_GetColor(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call GetColor - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColor(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_GetColour[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockArt_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_GetColour[1] = {{ wxLua_wxAuiDockArt_GetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockArt_GetColour }}; -// virtual wxColour GetColour(int id); //= 0; -static int LUACALL wxLua_wxAuiDockArt_GetColour(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_GetFont[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockArt_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_GetFont[1] = {{ wxLua_wxAuiDockArt_GetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockArt_GetFont }}; -// virtual wxFont GetFont(int id); //= 0; -static int LUACALL wxLua_wxAuiDockArt_GetFont(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_GetMetric[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockArt_GetMetric(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_GetMetric[1] = {{ wxLua_wxAuiDockArt_GetMetric, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockArt_GetMetric }}; -// virtual int GetMetric(int id); //= 0; -static int LUACALL wxLua_wxAuiDockArt_GetMetric(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call GetMetric - int returns = (self->GetMetric(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_SetColor[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxAuiDockArt_SetColor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_SetColor[1] = {{ wxLua_wxAuiDockArt_SetColor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiDockArt_SetColor }}; -// !%wxchkver_3_0_0 void SetColor(int id, const wxColour& color); -static int LUACALL wxLua_wxAuiDockArt_SetColor(lua_State *L) -{ - // const wxColour color - const wxColour * color = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call SetColor - self->SetColor(id, *color); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_SetColour[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxAuiDockArt_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_SetColour[1] = {{ wxLua_wxAuiDockArt_SetColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiDockArt_SetColour }}; -// virtual void SetColour(int id, const wxColour& colour); //= 0; -static int LUACALL wxLua_wxAuiDockArt_SetColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call SetColour - self->SetColour(id, *colour); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_SetFont[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxAuiDockArt_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_SetFont[1] = {{ wxLua_wxAuiDockArt_SetFont, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiDockArt_SetFont }}; -// virtual void SetFont(int id, const wxFont& font); //= 0; -static int LUACALL wxLua_wxAuiDockArt_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call SetFont - self->SetFont(id, *font); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_SetMetric[] = { &wxluatype_wxAuiDockArt, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockArt_SetMetric(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_SetMetric[1] = {{ wxLua_wxAuiDockArt_SetMetric, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiDockArt_SetMetric }}; -// virtual void SetMetric(int id, int new_val); //= 0; -static int LUACALL wxLua_wxAuiDockArt_SetMetric(lua_State *L) -{ - // int new_val - int new_val = (int)wxlua_getnumbertype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockArt * self = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockArt); - // call SetMetric - self->SetMetric(id, new_val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockArt_delete[] = { &wxluatype_wxAuiDockArt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockArt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockArt_delete }}; - - - - -void wxLua_wxAuiDockArt_delete_function(void** p) -{ - wxAuiDockArt* o = (wxAuiDockArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiDockArt_methods[] = { -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "DrawBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_DrawBackground, 1, NULL }, - { "DrawBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_DrawBorder, 1, NULL }, - { "DrawCaption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_DrawCaption, 1, NULL }, - { "DrawGripper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_DrawGripper, 1, NULL }, - { "DrawPaneButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_DrawPaneButton, 1, NULL }, - { "DrawSash", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_DrawSash, 1, NULL }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - { "GetColor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_GetColor, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - - { "GetMetric", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_GetMetric, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - { "SetColor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_SetColor, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_SetColour, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFont) - - { "SetMetric", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockArt_SetMetric, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiDockArt_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiDockArt_methodCount = sizeof(wxAuiDockArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiDefaultDockArt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiDefaultDockArt' -int wxluatype_wxAuiDefaultDockArt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDefaultDockArt_delete[] = { &wxluatype_wxAuiDefaultDockArt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDefaultDockArt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiDefaultDockArt_delete }}; - -static int LUACALL wxLua_wxAuiDefaultDockArt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDefaultDockArt_constructor[1] = {{ wxLua_wxAuiDefaultDockArt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiDefaultDockArt(); -static int LUACALL wxLua_wxAuiDefaultDockArt_constructor(lua_State *L) -{ - // call constructor - wxAuiDefaultDockArt* returns = new wxAuiDefaultDockArt(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiDefaultDockArt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDefaultDockArt); - - return 1; -} - - - - -void wxLua_wxAuiDefaultDockArt_delete_function(void** p) -{ - wxAuiDefaultDockArt* o = (wxAuiDefaultDockArt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiDefaultDockArt_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiDefaultDockArt_delete, 1, NULL }, - { "wxAuiDefaultDockArt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiDefaultDockArt_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiDefaultDockArt_methodCount = sizeof(wxAuiDefaultDockArt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiFloatingFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiFloatingFrame' -int wxluatype_wxAuiFloatingFrame = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiFloatingFrame_GetAuiManager[] = { &wxluatype_wxAuiFloatingFrame, NULL }; -static int LUACALL wxLua_wxAuiFloatingFrame_GetAuiManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiFloatingFrame_GetAuiManager[1] = {{ wxLua_wxAuiFloatingFrame_GetAuiManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiFloatingFrame_GetAuiManager }}; -// %wxchkver_3_1_5 wxAuiManager& GetAuiManager(); -static int LUACALL wxLua_wxAuiFloatingFrame_GetAuiManager(lua_State *L) -{ - // get this - wxAuiFloatingFrame * self = (wxAuiFloatingFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiFloatingFrame); - // call GetAuiManager - wxAuiManager* returns = (wxAuiManager*)&self->GetAuiManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiFloatingFrame_GetOwnerManager[] = { &wxluatype_wxAuiFloatingFrame, NULL }; -static int LUACALL wxLua_wxAuiFloatingFrame_GetOwnerManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiFloatingFrame_GetOwnerManager[1] = {{ wxLua_wxAuiFloatingFrame_GetOwnerManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiFloatingFrame_GetOwnerManager }}; -// wxAuiManager* GetOwnerManager() const; -static int LUACALL wxLua_wxAuiFloatingFrame_GetOwnerManager(lua_State *L) -{ - // get this - wxAuiFloatingFrame * self = (wxAuiFloatingFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiFloatingFrame); - // call GetOwnerManager - wxAuiManager* returns = (wxAuiManager*)self->GetOwnerManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiFloatingFrame_SetPaneWindow[] = { &wxluatype_wxAuiFloatingFrame, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiFloatingFrame_SetPaneWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiFloatingFrame_SetPaneWindow[1] = {{ wxLua_wxAuiFloatingFrame_SetPaneWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiFloatingFrame_SetPaneWindow }}; -// void SetPaneWindow(const wxAuiPaneInfo& pane); -static int LUACALL wxLua_wxAuiFloatingFrame_SetPaneWindow(lua_State *L) -{ - // const wxAuiPaneInfo pane - const wxAuiPaneInfo * pane = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiFloatingFrame * self = (wxAuiFloatingFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiFloatingFrame); - // call SetPaneWindow - self->SetPaneWindow(*pane); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiFloatingFrame_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiFloatingFrame_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiFloatingFrame_constructor[1] = {{ wxLua_wxAuiFloatingFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 5, s_wxluatypeArray_wxLua_wxAuiFloatingFrame_constructor }}; -// wxAuiFloatingFrame(wxWindow* parent, wxAuiManager* owner_mgr, const wxAuiPaneInfo& pane, wxWindowID id = wxID_ANY, long style = wxRESIZE_BORDER|wxSYSTEM_MENU|wxCAPTION|wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT|wxCLIP_CHILDREN); -static int LUACALL wxLua_wxAuiFloatingFrame_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT | wxCLIP_CHILDREN - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxRESIZE_BORDER | wxSYSTEM_MENU | wxCAPTION | wxFRAME_NO_TASKBAR | wxFRAME_FLOAT_ON_PARENT | wxCLIP_CHILDREN); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 4 ? (wxWindowID)wxlua_getnumbertype(L, 4) : wxID_ANY); - // const wxAuiPaneInfo pane - const wxAuiPaneInfo * pane = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiPaneInfo); - // wxAuiManager owner_mgr - wxAuiManager * owner_mgr = (wxAuiManager *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiManager); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAuiFloatingFrame* returns = new wxAuiFloatingFrame(parent, owner_mgr, *pane, id, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiFloatingFrame); - - return 1; -} - - - - -void wxLua_wxAuiFloatingFrame_delete_function(void** p) -{ - wxAuiFloatingFrame* o = (wxAuiFloatingFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiFloatingFrame_methods[] = { -#if ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetAuiManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiFloatingFrame_GetAuiManager, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "GetOwnerManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiFloatingFrame_GetOwnerManager, 1, NULL }, - { "SetPaneWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiFloatingFrame_SetPaneWindow, 1, NULL }, - { "wxAuiFloatingFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiFloatingFrame_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiFloatingFrame_methodCount = sizeof(wxAuiFloatingFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiPaneInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiPaneInfo' -int wxluatype_wxAuiPaneInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_BestSize1[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_BestSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize1[1] = {{ wxLua_wxAuiPaneInfo_BestSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_BestSize1 }}; -// wxAuiPaneInfo& BestSize(int x, int y); -static int LUACALL wxLua_wxAuiPaneInfo_BestSize1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call BestSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->BestSize(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_BestSize[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_BestSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize[1] = {{ wxLua_wxAuiPaneInfo_BestSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_BestSize }}; -// wxAuiPaneInfo& BestSize(const wxSize& size); -static int LUACALL wxLua_wxAuiPaneInfo_BestSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call BestSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->BestSize(*size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Bottom[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Bottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Bottom[1] = {{ wxLua_wxAuiPaneInfo_Bottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Bottom }}; -// wxAuiPaneInfo& Bottom(); -static int LUACALL wxLua_wxAuiPaneInfo_Bottom(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Bottom - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Bottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_BottomDockable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_BottomDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_BottomDockable[1] = {{ wxLua_wxAuiPaneInfo_BottomDockable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_BottomDockable }}; -// wxAuiPaneInfo& BottomDockable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_BottomDockable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call BottomDockable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->BottomDockable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Caption[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Caption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Caption[1] = {{ wxLua_wxAuiPaneInfo_Caption, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Caption }}; -// wxAuiPaneInfo& Caption(const wxString& c); -static int LUACALL wxLua_wxAuiPaneInfo_Caption(lua_State *L) -{ - // const wxString c - const wxString c = wxlua_getwxStringtype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Caption - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Caption(c); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_CaptionVisible[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_CaptionVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_CaptionVisible[1] = {{ wxLua_wxAuiPaneInfo_CaptionVisible, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_CaptionVisible }}; -// wxAuiPaneInfo& CaptionVisible(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_CaptionVisible(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call CaptionVisible - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->CaptionVisible(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Center[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Center(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Center[1] = {{ wxLua_wxAuiPaneInfo_Center, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Center }}; -// wxAuiPaneInfo& Center(); -static int LUACALL wxLua_wxAuiPaneInfo_Center(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Center - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Center(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_CenterPane[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_CenterPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_CenterPane[1] = {{ wxLua_wxAuiPaneInfo_CenterPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_CenterPane }}; -// wxAuiPaneInfo& CenterPane(); -static int LUACALL wxLua_wxAuiPaneInfo_CenterPane(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call CenterPane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->CenterPane(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Centre[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Centre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Centre[1] = {{ wxLua_wxAuiPaneInfo_Centre, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Centre }}; -// wxAuiPaneInfo& Centre(); -static int LUACALL wxLua_wxAuiPaneInfo_Centre(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Centre - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Centre(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_CentrePane[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_CentrePane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_CentrePane[1] = {{ wxLua_wxAuiPaneInfo_CentrePane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_CentrePane }}; -// wxAuiPaneInfo& CentrePane(); -static int LUACALL wxLua_wxAuiPaneInfo_CentrePane(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call CentrePane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->CentrePane(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_CloseButton[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_CloseButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_CloseButton[1] = {{ wxLua_wxAuiPaneInfo_CloseButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_CloseButton }}; -// wxAuiPaneInfo& CloseButton(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_CloseButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call CloseButton - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->CloseButton(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_DefaultPane[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_DefaultPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_DefaultPane[1] = {{ wxLua_wxAuiPaneInfo_DefaultPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_DefaultPane }}; -// wxAuiPaneInfo& DefaultPane(); -static int LUACALL wxLua_wxAuiPaneInfo_DefaultPane(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call DefaultPane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->DefaultPane(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_DestroyOnClose[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_DestroyOnClose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_DestroyOnClose[1] = {{ wxLua_wxAuiPaneInfo_DestroyOnClose, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_DestroyOnClose }}; -// wxAuiPaneInfo& DestroyOnClose(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_DestroyOnClose(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call DestroyOnClose - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->DestroyOnClose(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Direction[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Direction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Direction[1] = {{ wxLua_wxAuiPaneInfo_Direction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Direction }}; -// wxAuiPaneInfo& Direction(int direction); -static int LUACALL wxLua_wxAuiPaneInfo_Direction(lua_State *L) -{ - // int direction - int direction = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Direction - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Direction(direction); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Dock[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Dock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Dock[1] = {{ wxLua_wxAuiPaneInfo_Dock, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Dock }}; -// wxAuiPaneInfo& Dock(); -static int LUACALL wxLua_wxAuiPaneInfo_Dock(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Dock - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Dock(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_DockFixed[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_DockFixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_DockFixed[1] = {{ wxLua_wxAuiPaneInfo_DockFixed, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_DockFixed }}; -// wxAuiPaneInfo& DockFixed(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_DockFixed(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call DockFixed - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->DockFixed(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Dockable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Dockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Dockable[1] = {{ wxLua_wxAuiPaneInfo_Dockable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Dockable }}; -// wxAuiPaneInfo& Dockable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_Dockable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Dockable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Dockable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Fixed[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Fixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Fixed[1] = {{ wxLua_wxAuiPaneInfo_Fixed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Fixed }}; -// wxAuiPaneInfo& Fixed(); -static int LUACALL wxLua_wxAuiPaneInfo_Fixed(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Fixed - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Fixed(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Float[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Float(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Float[1] = {{ wxLua_wxAuiPaneInfo_Float, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Float }}; -// wxAuiPaneInfo& Float(); -static int LUACALL wxLua_wxAuiPaneInfo_Float(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Float - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Float(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Floatable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Floatable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Floatable[1] = {{ wxLua_wxAuiPaneInfo_Floatable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Floatable }}; -// wxAuiPaneInfo& Floatable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_Floatable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Floatable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Floatable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingPosition1[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_FloatingPosition1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition1[1] = {{ wxLua_wxAuiPaneInfo_FloatingPosition1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingPosition1 }}; -// wxAuiPaneInfo& FloatingPosition(int x, int y); -static int LUACALL wxLua_wxAuiPaneInfo_FloatingPosition1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call FloatingPosition - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->FloatingPosition(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingPosition[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_FloatingPosition(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition[1] = {{ wxLua_wxAuiPaneInfo_FloatingPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingPosition }}; -// wxAuiPaneInfo& FloatingPosition(const wxPoint& pos); -static int LUACALL wxLua_wxAuiPaneInfo_FloatingPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call FloatingPosition - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->FloatingPosition(*pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingSize1[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_FloatingSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize1[1] = {{ wxLua_wxAuiPaneInfo_FloatingSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingSize1 }}; -// wxAuiPaneInfo& FloatingSize(int x, int y); -static int LUACALL wxLua_wxAuiPaneInfo_FloatingSize1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call FloatingSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->FloatingSize(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingSize[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_FloatingSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize[1] = {{ wxLua_wxAuiPaneInfo_FloatingSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingSize }}; -// wxAuiPaneInfo& FloatingSize(const wxSize& size); -static int LUACALL wxLua_wxAuiPaneInfo_FloatingSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call FloatingSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->FloatingSize(*size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_best_size[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_best_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_best_size[1] = {{ wxLua_wxAuiPaneInfo_Get_best_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_best_size }}; -// wxSize best_size; // size that the layout engine will prefer -static int LUACALL wxLua_wxAuiPaneInfo_Get_best_size(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->best_size, wxluatype_wxSize); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_caption[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_caption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_caption[1] = {{ wxLua_wxAuiPaneInfo_Get_caption, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_caption }}; -// wxString caption; // caption displayed on the window -static int LUACALL wxLua_wxAuiPaneInfo_Get_caption(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result string - wxlua_pushwxString(L, self->caption); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_direction[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_direction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_direction[1] = {{ wxLua_wxAuiPaneInfo_Get_dock_direction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_direction }}; -// int dock_direction; // dock direction (top, bottom, left, right, center); -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_direction(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_direction) == (double)(self->dock_direction)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_direction); -} else -#endif -{ - lua_pushnumber(L, self->dock_direction); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_layer[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_layer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_layer[1] = {{ wxLua_wxAuiPaneInfo_Get_dock_layer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_layer }}; -// int dock_layer; // layer number (0 = innermost layer); -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_layer(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_layer) == (double)(self->dock_layer)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_layer); -} else -#endif -{ - lua_pushnumber(L, self->dock_layer); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_pos[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_pos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_pos[1] = {{ wxLua_wxAuiPaneInfo_Get_dock_pos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_pos }}; -// int dock_pos; // position inside the row (0 = first position); -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_pos(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_pos) == (double)(self->dock_pos)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_pos); -} else -#endif -{ - lua_pushnumber(L, self->dock_pos); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_proportion[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_proportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_proportion[1] = {{ wxLua_wxAuiPaneInfo_Get_dock_proportion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_proportion }}; -// int dock_proportion; // proportion while docked -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_proportion(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_proportion) == (double)(self->dock_proportion)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_proportion); -} else -#endif -{ - lua_pushnumber(L, self->dock_proportion); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_row[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_row(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_row[1] = {{ wxLua_wxAuiPaneInfo_Get_dock_row, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_dock_row }}; -// int dock_row; // row number on the docking bar (0 = first row); -static int LUACALL wxLua_wxAuiPaneInfo_Get_dock_row(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_row) == (double)(self->dock_row)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_row); -} else -#endif -{ - lua_pushnumber(L, self->dock_row); -} - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_floating_pos[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_floating_pos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_floating_pos[1] = {{ wxLua_wxAuiPaneInfo_Get_floating_pos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_floating_pos }}; -// wxPoint floating_pos; // position while floating -static int LUACALL wxLua_wxAuiPaneInfo_Get_floating_pos(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->floating_pos, wxluatype_wxPoint); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_floating_size[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_floating_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_floating_size[1] = {{ wxLua_wxAuiPaneInfo_Get_floating_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_floating_size }}; -// wxSize floating_size; // size while floating -static int LUACALL wxLua_wxAuiPaneInfo_Get_floating_size(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->floating_size, wxluatype_wxSize); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_frame[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_frame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_frame[1] = {{ wxLua_wxAuiPaneInfo_Get_frame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_frame }}; -// wxFrame* frame; // floating frame window that holds the pane -static int LUACALL wxLua_wxAuiPaneInfo_Get_frame(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, self->frame, wxluatype_wxFrame); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_max_size[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_max_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_max_size[1] = {{ wxLua_wxAuiPaneInfo_Get_max_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_max_size }}; -// wxSize max_size; // maximum size the pane window can tolerate -static int LUACALL wxLua_wxAuiPaneInfo_Get_max_size(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->max_size, wxluatype_wxSize); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_min_size[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_min_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_min_size[1] = {{ wxLua_wxAuiPaneInfo_Get_min_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_min_size }}; -// wxSize min_size; // minimum size the pane window can tolerate -static int LUACALL wxLua_wxAuiPaneInfo_Get_min_size(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->min_size, wxluatype_wxSize); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_name[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_name(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_name[1] = {{ wxLua_wxAuiPaneInfo_Get_name, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_name }}; -// wxString name; // name of the pane -static int LUACALL wxLua_wxAuiPaneInfo_Get_name(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result string - wxlua_pushwxString(L, self->name); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_rect[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_rect[1] = {{ wxLua_wxAuiPaneInfo_Get_rect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_rect }}; -// wxRect rect; // current rectangle (populated by wxAUI); -static int LUACALL wxLua_wxAuiPaneInfo_Get_rect(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->rect, wxluatype_wxRect); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_state[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_state(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_state[1] = {{ wxLua_wxAuiPaneInfo_Get_state, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_state }}; -// unsigned int state; // a combination of wxPaneState values -static int LUACALL wxLua_wxAuiPaneInfo_Get_state(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->state) == (double)(self->state)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->state); -} else -#endif -{ - lua_pushnumber(L, self->state); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_window[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Get_window(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Get_window[1] = {{ wxLua_wxAuiPaneInfo_Get_window, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Get_window }}; -// wxWindow* window; // window that is in this pane -static int LUACALL wxLua_wxAuiPaneInfo_Get_window(lua_State *L) -{ - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, self->window, wxluatype_wxWindow); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Gripper[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Gripper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Gripper[1] = {{ wxLua_wxAuiPaneInfo_Gripper, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Gripper }}; -// wxAuiPaneInfo& Gripper(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_Gripper(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Gripper - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Gripper(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_GripperTop[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_GripperTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_GripperTop[1] = {{ wxLua_wxAuiPaneInfo_GripperTop, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_GripperTop }}; -// wxAuiPaneInfo& GripperTop(bool attop = true); -static int LUACALL wxLua_wxAuiPaneInfo_GripperTop(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool attop = true - bool attop = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call GripperTop - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->GripperTop(attop); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasBorder[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasBorder[1] = {{ wxLua_wxAuiPaneInfo_HasBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasBorder }}; -// bool HasBorder() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasBorder(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasBorder - bool returns = (self->HasBorder()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasCaption[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasCaption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasCaption[1] = {{ wxLua_wxAuiPaneInfo_HasCaption, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasCaption }}; -// bool HasCaption() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasCaption(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasCaption - bool returns = (self->HasCaption()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasCloseButton[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasCloseButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasCloseButton[1] = {{ wxLua_wxAuiPaneInfo_HasCloseButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasCloseButton }}; -// bool HasCloseButton() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasCloseButton(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasCloseButton - bool returns = (self->HasCloseButton()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasFlag[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasFlag[1] = {{ wxLua_wxAuiPaneInfo_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasFlag }}; -// bool HasFlag(unsigned int flag) const; -static int LUACALL wxLua_wxAuiPaneInfo_HasFlag(lua_State *L) -{ - // unsigned int flag - unsigned int flag = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasGripper[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasGripper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasGripper[1] = {{ wxLua_wxAuiPaneInfo_HasGripper, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasGripper }}; -// bool HasGripper() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasGripper(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasGripper - bool returns = (self->HasGripper()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasGripperTop[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasGripperTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasGripperTop[1] = {{ wxLua_wxAuiPaneInfo_HasGripperTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasGripperTop }}; -// bool HasGripperTop() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasGripperTop(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasGripperTop - bool returns = (self->HasGripperTop()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasMaximizeButton[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasMaximizeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasMaximizeButton[1] = {{ wxLua_wxAuiPaneInfo_HasMaximizeButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasMaximizeButton }}; -// bool HasMaximizeButton() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasMaximizeButton(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasMaximizeButton - bool returns = (self->HasMaximizeButton()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasMinimizeButton[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasMinimizeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasMinimizeButton[1] = {{ wxLua_wxAuiPaneInfo_HasMinimizeButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasMinimizeButton }}; -// bool HasMinimizeButton() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasMinimizeButton(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasMinimizeButton - bool returns = (self->HasMinimizeButton()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasPinButton[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_HasPinButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_HasPinButton[1] = {{ wxLua_wxAuiPaneInfo_HasPinButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_HasPinButton }}; -// bool HasPinButton() const; -static int LUACALL wxLua_wxAuiPaneInfo_HasPinButton(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call HasPinButton - bool returns = (self->HasPinButton()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Hide[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Hide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Hide[1] = {{ wxLua_wxAuiPaneInfo_Hide, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Hide }}; -// wxAuiPaneInfo& Hide(); -static int LUACALL wxLua_wxAuiPaneInfo_Hide(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Hide - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Hide(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Icon[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Icon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Icon[1] = {{ wxLua_wxAuiPaneInfo_Icon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Icon }}; -// %wxchkver_2_9_2 wxAuiPaneInfo& Icon(const wxBitmap& b); -static int LUACALL wxLua_wxAuiPaneInfo_Icon(lua_State *L) -{ - // const wxBitmap b - const wxBitmap * b = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Icon - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Icon(*b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsBottomDockable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsBottomDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsBottomDockable[1] = {{ wxLua_wxAuiPaneInfo_IsBottomDockable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsBottomDockable }}; -// bool IsBottomDockable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsBottomDockable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsBottomDockable - bool returns = (self->IsBottomDockable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsDestroyOnClose[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsDestroyOnClose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsDestroyOnClose[1] = {{ wxLua_wxAuiPaneInfo_IsDestroyOnClose, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsDestroyOnClose }}; -// bool IsDestroyOnClose() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsDestroyOnClose(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsDestroyOnClose - bool returns = (self->IsDestroyOnClose()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsDockable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsDockable[1] = {{ wxLua_wxAuiPaneInfo_IsDockable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsDockable }}; -// %wxchkver_2_9_2 bool IsDockable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsDockable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsDockable - bool returns = (self->IsDockable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsDocked[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsDocked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsDocked[1] = {{ wxLua_wxAuiPaneInfo_IsDocked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsDocked }}; -// bool IsDocked() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsDocked(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsDocked - bool returns = (self->IsDocked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsFixed[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsFixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsFixed[1] = {{ wxLua_wxAuiPaneInfo_IsFixed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsFixed }}; -// bool IsFixed() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsFixed(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsFixed - bool returns = (self->IsFixed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsFloatable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsFloatable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsFloatable[1] = {{ wxLua_wxAuiPaneInfo_IsFloatable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsFloatable }}; -// bool IsFloatable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsFloatable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsFloatable - bool returns = (self->IsFloatable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsFloating[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsFloating(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsFloating[1] = {{ wxLua_wxAuiPaneInfo_IsFloating, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsFloating }}; -// bool IsFloating() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsFloating(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsFloating - bool returns = (self->IsFloating()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsLeftDockable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsLeftDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsLeftDockable[1] = {{ wxLua_wxAuiPaneInfo_IsLeftDockable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsLeftDockable }}; -// bool IsLeftDockable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsLeftDockable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsLeftDockable - bool returns = (self->IsLeftDockable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsMaximized[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsMaximized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsMaximized[1] = {{ wxLua_wxAuiPaneInfo_IsMaximized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsMaximized }}; -// bool IsMaximized() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsMaximized(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsMaximized - bool returns = (self->IsMaximized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsMovable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsMovable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsMovable[1] = {{ wxLua_wxAuiPaneInfo_IsMovable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsMovable }}; -// bool IsMovable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsMovable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsMovable - bool returns = (self->IsMovable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsOk[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsOk[1] = {{ wxLua_wxAuiPaneInfo_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsOk(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsResizable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsResizable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsResizable[1] = {{ wxLua_wxAuiPaneInfo_IsResizable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsResizable }}; -// bool IsResizable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsResizable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsResizable - bool returns = (self->IsResizable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsRightDockable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsRightDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsRightDockable[1] = {{ wxLua_wxAuiPaneInfo_IsRightDockable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsRightDockable }}; -// bool IsRightDockable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsRightDockable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsRightDockable - bool returns = (self->IsRightDockable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsShown[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsShown[1] = {{ wxLua_wxAuiPaneInfo_IsShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsShown }}; -// bool IsShown() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsShown(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsShown - bool returns = (self->IsShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsToolbar[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsToolbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsToolbar[1] = {{ wxLua_wxAuiPaneInfo_IsToolbar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsToolbar }}; -// bool IsToolbar() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsToolbar(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsToolbar - bool returns = (self->IsToolbar()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsTopDockable[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_IsTopDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_IsTopDockable[1] = {{ wxLua_wxAuiPaneInfo_IsTopDockable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_IsTopDockable }}; -// bool IsTopDockable() const; -static int LUACALL wxLua_wxAuiPaneInfo_IsTopDockable(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call IsTopDockable - bool returns = (self->IsTopDockable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Layer[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Layer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Layer[1] = {{ wxLua_wxAuiPaneInfo_Layer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Layer }}; -// wxAuiPaneInfo& Layer(int layer); -static int LUACALL wxLua_wxAuiPaneInfo_Layer(lua_State *L) -{ - // int layer - int layer = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Layer - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Layer(layer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Left[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Left(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Left[1] = {{ wxLua_wxAuiPaneInfo_Left, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Left }}; -// wxAuiPaneInfo& Left(); -static int LUACALL wxLua_wxAuiPaneInfo_Left(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Left - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Left(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_LeftDockable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_LeftDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_LeftDockable[1] = {{ wxLua_wxAuiPaneInfo_LeftDockable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_LeftDockable }}; -// wxAuiPaneInfo& LeftDockable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_LeftDockable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call LeftDockable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->LeftDockable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaxSize1[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_MaxSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize1[1] = {{ wxLua_wxAuiPaneInfo_MaxSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaxSize1 }}; -// wxAuiPaneInfo& MaxSize(int x, int y); -static int LUACALL wxLua_wxAuiPaneInfo_MaxSize1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call MaxSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->MaxSize(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaxSize[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_MaxSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize[1] = {{ wxLua_wxAuiPaneInfo_MaxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaxSize }}; -// wxAuiPaneInfo& MaxSize(const wxSize& size); -static int LUACALL wxLua_wxAuiPaneInfo_MaxSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call MaxSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->MaxSize(*size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Maximize[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Maximize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Maximize[1] = {{ wxLua_wxAuiPaneInfo_Maximize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Maximize }}; -// wxAuiPaneInfo& Maximize(); -static int LUACALL wxLua_wxAuiPaneInfo_Maximize(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Maximize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Maximize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaximizeButton[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_MaximizeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MaximizeButton[1] = {{ wxLua_wxAuiPaneInfo_MaximizeButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaximizeButton }}; -// wxAuiPaneInfo& MaximizeButton(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_MaximizeButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call MaximizeButton - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->MaximizeButton(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinSize1[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_MinSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize1[1] = {{ wxLua_wxAuiPaneInfo_MinSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinSize1 }}; -// wxAuiPaneInfo& MinSize(int x, int y); -static int LUACALL wxLua_wxAuiPaneInfo_MinSize1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call MinSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->MinSize(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinSize[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_MinSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize[1] = {{ wxLua_wxAuiPaneInfo_MinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinSize }}; -// wxAuiPaneInfo& MinSize(const wxSize& size); -static int LUACALL wxLua_wxAuiPaneInfo_MinSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call MinSize - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->MinSize(*size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinimizeButton[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_MinimizeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MinimizeButton[1] = {{ wxLua_wxAuiPaneInfo_MinimizeButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinimizeButton }}; -// wxAuiPaneInfo& MinimizeButton(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_MinimizeButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call MinimizeButton - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->MinimizeButton(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Movable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Movable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Movable[1] = {{ wxLua_wxAuiPaneInfo_Movable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Movable }}; -// wxAuiPaneInfo& Movable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_Movable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Movable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Movable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Name[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Name(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Name[1] = {{ wxLua_wxAuiPaneInfo_Name, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Name }}; -// wxAuiPaneInfo& Name(const wxString& n); -static int LUACALL wxLua_wxAuiPaneInfo_Name(lua_State *L) -{ - // const wxString n - const wxString n = wxlua_getwxStringtype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Name - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Name(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_PaneBorder[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_PaneBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_PaneBorder[1] = {{ wxLua_wxAuiPaneInfo_PaneBorder, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_PaneBorder }}; -// wxAuiPaneInfo& PaneBorder(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_PaneBorder(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call PaneBorder - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->PaneBorder(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_PinButton[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_PinButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_PinButton[1] = {{ wxLua_wxAuiPaneInfo_PinButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_PinButton }}; -// wxAuiPaneInfo& PinButton(bool visible = true); -static int LUACALL wxLua_wxAuiPaneInfo_PinButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool visible = true - bool visible = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call PinButton - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->PinButton(visible); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Position[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Position(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Position[1] = {{ wxLua_wxAuiPaneInfo_Position, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Position }}; -// wxAuiPaneInfo& Position(int pos); -static int LUACALL wxLua_wxAuiPaneInfo_Position(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Position - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Position(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Resizable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Resizable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Resizable[1] = {{ wxLua_wxAuiPaneInfo_Resizable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Resizable }}; -// wxAuiPaneInfo& Resizable(bool resizable = true); -static int LUACALL wxLua_wxAuiPaneInfo_Resizable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool resizable = true - bool resizable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Resizable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Resizable(resizable); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Restore[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Restore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Restore[1] = {{ wxLua_wxAuiPaneInfo_Restore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Restore }}; -// wxAuiPaneInfo& Restore(); -static int LUACALL wxLua_wxAuiPaneInfo_Restore(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Restore - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Restore(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Right[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Right(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Right[1] = {{ wxLua_wxAuiPaneInfo_Right, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Right }}; -// wxAuiPaneInfo& Right(); -static int LUACALL wxLua_wxAuiPaneInfo_Right(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Right - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Right(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_RightDockable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_RightDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_RightDockable[1] = {{ wxLua_wxAuiPaneInfo_RightDockable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_RightDockable }}; -// wxAuiPaneInfo& RightDockable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_RightDockable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call RightDockable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->RightDockable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Row[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Row(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Row[1] = {{ wxLua_wxAuiPaneInfo_Row, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Row }}; -// wxAuiPaneInfo& Row(int row); -static int LUACALL wxLua_wxAuiPaneInfo_Row(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Row - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Row(row); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_SafeSet[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_SafeSet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_SafeSet[1] = {{ wxLua_wxAuiPaneInfo_SafeSet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_SafeSet }}; -// void SafeSet(wxAuiPaneInfo source); -static int LUACALL wxLua_wxAuiPaneInfo_SafeSet(lua_State *L) -{ - // wxAuiPaneInfo source - wxAuiPaneInfo source = *(wxAuiPaneInfo*)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call SafeSet - self->SafeSet(source); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_SetFlag[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_SetFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_SetFlag[1] = {{ wxLua_wxAuiPaneInfo_SetFlag, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_SetFlag }}; -// wxAuiPaneInfo& SetFlag(unsigned int flag, bool option_state); -static int LUACALL wxLua_wxAuiPaneInfo_SetFlag(lua_State *L) -{ - // bool option_state - bool option_state = wxlua_getbooleantype(L, 3); - // unsigned int flag - unsigned int flag = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call SetFlag - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->SetFlag(flag, option_state); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_best_size[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_best_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_best_size[1] = {{ wxLua_wxAuiPaneInfo_Set_best_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_best_size }}; -// wxSize best_size; // size that the layout engine will prefer -static int LUACALL wxLua_wxAuiPaneInfo_Set_best_size(lua_State *L) -{ - // get the data type value - wxSize* val = (wxSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->best_size = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_caption[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_caption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_caption[1] = {{ wxLua_wxAuiPaneInfo_Set_caption, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_caption }}; -// wxString caption; // caption displayed on the window -static int LUACALL wxLua_wxAuiPaneInfo_Set_caption(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->caption = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_direction[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_direction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_direction[1] = {{ wxLua_wxAuiPaneInfo_Set_dock_direction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_direction }}; -// int dock_direction; // dock direction (top, bottom, left, right, center); -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_direction(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->dock_direction = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_layer[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_layer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_layer[1] = {{ wxLua_wxAuiPaneInfo_Set_dock_layer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_layer }}; -// int dock_layer; // layer number (0 = innermost layer); -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_layer(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->dock_layer = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_pos[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_pos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_pos[1] = {{ wxLua_wxAuiPaneInfo_Set_dock_pos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_pos }}; -// int dock_pos; // position inside the row (0 = first position); -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_pos(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->dock_pos = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_proportion[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_proportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_proportion[1] = {{ wxLua_wxAuiPaneInfo_Set_dock_proportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_proportion }}; -// int dock_proportion; // proportion while docked -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_proportion(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->dock_proportion = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_row[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_row(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_row[1] = {{ wxLua_wxAuiPaneInfo_Set_dock_row, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_dock_row }}; -// int dock_row; // row number on the docking bar (0 = first row); -static int LUACALL wxLua_wxAuiPaneInfo_Set_dock_row(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->dock_row = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_floating_pos[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_floating_pos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_floating_pos[1] = {{ wxLua_wxAuiPaneInfo_Set_floating_pos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_floating_pos }}; -// wxPoint floating_pos; // position while floating -static int LUACALL wxLua_wxAuiPaneInfo_Set_floating_pos(lua_State *L) -{ - // get the data type value - wxPoint* val = (wxPoint*)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->floating_pos = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_floating_size[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_floating_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_floating_size[1] = {{ wxLua_wxAuiPaneInfo_Set_floating_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_floating_size }}; -// wxSize floating_size; // size while floating -static int LUACALL wxLua_wxAuiPaneInfo_Set_floating_size(lua_State *L) -{ - // get the data type value - wxSize* val = (wxSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->floating_size = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_frame[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_frame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_frame[1] = {{ wxLua_wxAuiPaneInfo_Set_frame, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_frame }}; -// wxFrame* frame; // floating frame window that holds the pane -static int LUACALL wxLua_wxAuiPaneInfo_Set_frame(lua_State *L) -{ - // get the data type value - wxFrame* val = (wxFrame*)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->frame = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_max_size[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_max_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_max_size[1] = {{ wxLua_wxAuiPaneInfo_Set_max_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_max_size }}; -// wxSize max_size; // maximum size the pane window can tolerate -static int LUACALL wxLua_wxAuiPaneInfo_Set_max_size(lua_State *L) -{ - // get the data type value - wxSize* val = (wxSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->max_size = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_min_size[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_min_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_min_size[1] = {{ wxLua_wxAuiPaneInfo_Set_min_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_min_size }}; -// wxSize min_size; // minimum size the pane window can tolerate -static int LUACALL wxLua_wxAuiPaneInfo_Set_min_size(lua_State *L) -{ - // get the data type value - wxSize* val = (wxSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->min_size = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_name[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_name(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_name[1] = {{ wxLua_wxAuiPaneInfo_Set_name, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_name }}; -// wxString name; // name of the pane -static int LUACALL wxLua_wxAuiPaneInfo_Set_name(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->name = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_rect[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_rect[1] = {{ wxLua_wxAuiPaneInfo_Set_rect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_rect }}; -// wxRect rect; // current rectangle (populated by wxAUI); -static int LUACALL wxLua_wxAuiPaneInfo_Set_rect(lua_State *L) -{ - // get the data type value - wxRect* val = (wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->rect = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_state[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_state(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_state[1] = {{ wxLua_wxAuiPaneInfo_Set_state, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_state }}; -// unsigned int state; // a combination of wxPaneState values -static int LUACALL wxLua_wxAuiPaneInfo_Set_state(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->state = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_window[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Set_window(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Set_window[1] = {{ wxLua_wxAuiPaneInfo_Set_window, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Set_window }}; -// wxWindow* window; // window that is in this pane -static int LUACALL wxLua_wxAuiPaneInfo_Set_window(lua_State *L) -{ - // get the data type value - wxWindow* val = (wxWindow*)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiPaneInfo *self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - self->window = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Show[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Show[1] = {{ wxLua_wxAuiPaneInfo_Show, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Show }}; -// wxAuiPaneInfo& Show(bool show = true); -static int LUACALL wxLua_wxAuiPaneInfo_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Show - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Show(show); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_ToolbarPane[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_ToolbarPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_ToolbarPane[1] = {{ wxLua_wxAuiPaneInfo_ToolbarPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_ToolbarPane }}; -// wxAuiPaneInfo& ToolbarPane(); -static int LUACALL wxLua_wxAuiPaneInfo_ToolbarPane(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call ToolbarPane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->ToolbarPane(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Top[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Top(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Top[1] = {{ wxLua_wxAuiPaneInfo_Top, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Top }}; -// wxAuiPaneInfo& Top(); -static int LUACALL wxLua_wxAuiPaneInfo_Top(lua_State *L) -{ - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Top - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Top(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_TopDockable[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_TopDockable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_TopDockable[1] = {{ wxLua_wxAuiPaneInfo_TopDockable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_TopDockable }}; -// wxAuiPaneInfo& TopDockable(bool b = true); -static int LUACALL wxLua_wxAuiPaneInfo_TopDockable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool b = true - bool b = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call TopDockable - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->TopDockable(b); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_Window[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_Window(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_Window[1] = {{ wxLua_wxAuiPaneInfo_Window, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_Window }}; -// wxAuiPaneInfo& Window(wxWindow* w); -static int LUACALL wxLua_wxAuiPaneInfo_Window(lua_State *L) -{ - // wxWindow w - wxWindow * w = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call Window - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->Window(w); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_delete[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_delete }}; - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_op_set[] = { &wxluatype_wxAuiPaneInfo, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_op_set[1] = {{ wxLua_wxAuiPaneInfo_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_op_set }}; -// wxAuiPaneInfo& operator=(const wxAuiPaneInfo& c); -static int LUACALL wxLua_wxAuiPaneInfo_op_set(lua_State *L) -{ - // const wxAuiPaneInfo c - const wxAuiPaneInfo * c = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiPaneInfo * self = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call op_set - (*self)=(*c); - wxAuiPaneInfo* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfo_constructor1[] = { &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfo_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_constructor1[1] = {{ wxLua_wxAuiPaneInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_constructor1 }}; -// wxAuiPaneInfo(const wxAuiPaneInfo& c); -static int LUACALL wxLua_wxAuiPaneInfo_constructor1(lua_State *L) -{ - // const wxAuiPaneInfo c - const wxAuiPaneInfo * c = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfo); - // call constructor - wxAuiPaneInfo* returns = new wxAuiPaneInfo(*c); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static int LUACALL wxLua_wxAuiPaneInfo_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_constructor[1] = {{ wxLua_wxAuiPaneInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiPaneInfo(); -static int LUACALL wxLua_wxAuiPaneInfo_constructor(lua_State *L) -{ - // call constructor - wxAuiPaneInfo* returns = new wxAuiPaneInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize_overload[] = -{ - { wxLua_wxAuiPaneInfo_BestSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_BestSize1 }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiPaneInfo_BestSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_BestSize }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition_overload[] = -{ - { wxLua_wxAuiPaneInfo_FloatingPosition1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingPosition1 }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiPaneInfo_FloatingPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingPosition }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize_overload[] = -{ - { wxLua_wxAuiPaneInfo_FloatingSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingSize1 }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiPaneInfo_FloatingSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_FloatingSize }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize_overload[] = -{ - { wxLua_wxAuiPaneInfo_MaxSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaxSize1 }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiPaneInfo_MaxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MaxSize }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize_overload[] = -{ - { wxLua_wxAuiPaneInfo_MinSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinSize1 }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiPaneInfo_MinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfo_MinSize }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfo_constructor_overload[] = -{ - { wxLua_wxAuiPaneInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfo_constructor1 }, - { wxLua_wxAuiPaneInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfo_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfo_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiPaneInfo_delete_function(void** p) -{ - wxAuiPaneInfo* o = (wxAuiPaneInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiPaneInfo_methods[] = { -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - { "BestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize_overload, s_wxluafunc_wxLua_wxAuiPaneInfo_BestSize_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - - { "Bottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Bottom, 1, NULL }, - { "BottomDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_BottomDockable, 1, NULL }, - { "Caption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Caption, 1, NULL }, - { "CaptionVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_CaptionVisible, 1, NULL }, - { "Center", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Center, 1, NULL }, - { "CenterPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_CenterPane, 1, NULL }, - { "Centre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Centre, 1, NULL }, - { "CentrePane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_CentrePane, 1, NULL }, - { "CloseButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_CloseButton, 1, NULL }, - { "DefaultPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_DefaultPane, 1, NULL }, - { "DestroyOnClose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_DestroyOnClose, 1, NULL }, - { "Direction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Direction, 1, NULL }, - { "Dock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Dock, 1, NULL }, - { "DockFixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_DockFixed, 1, NULL }, - { "Dockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Dockable, 1, NULL }, - { "Fixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Fixed, 1, NULL }, - { "Float", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Float, 1, NULL }, - { "Floatable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Floatable, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - { "FloatingPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition_overload, s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingPosition_overload_count, 0 }, - { "FloatingSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize_overload, s_wxluafunc_wxLua_wxAuiPaneInfo_FloatingSize_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_best_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_best_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Get_caption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_caption, 1, NULL }, - // %member { "Get_dock_direction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_direction, 1, NULL }, - // %member { "Get_dock_layer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_layer, 1, NULL }, - // %member { "Get_dock_pos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_pos, 1, NULL }, - // %member { "Get_dock_proportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_proportion, 1, NULL }, - // %member { "Get_dock_row", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_row, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_floating_pos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_floating_pos, 1, NULL }, - // %member { "Get_floating_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_floating_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - // %member { "Get_frame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_frame, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_max_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_max_size, 1, NULL }, - // %member { "Get_min_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_min_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Get_name", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_name, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Get_state", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_state, 1, NULL }, - // %member { "Get_window", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_window, 1, NULL }, - { "Gripper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Gripper, 1, NULL }, - { "GripperTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_GripperTop, 1, NULL }, - { "HasBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasBorder, 1, NULL }, - { "HasCaption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasCaption, 1, NULL }, - { "HasCloseButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasCloseButton, 1, NULL }, - { "HasFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasFlag, 1, NULL }, - { "HasGripper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasGripper, 1, NULL }, - { "HasGripperTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasGripperTop, 1, NULL }, - { "HasMaximizeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasMaximizeButton, 1, NULL }, - { "HasMinimizeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasMinimizeButton, 1, NULL }, - { "HasPinButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_HasPinButton, 1, NULL }, - { "Hide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Hide, 1, NULL }, - -#if (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - { "Icon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Icon, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxBitmap) - - { "IsBottomDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsBottomDockable, 1, NULL }, - { "IsDestroyOnClose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsDestroyOnClose, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "IsDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsDockable, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "IsDocked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsDocked, 1, NULL }, - { "IsFixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsFixed, 1, NULL }, - { "IsFloatable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsFloatable, 1, NULL }, - { "IsFloating", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsFloating, 1, NULL }, - { "IsLeftDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsLeftDockable, 1, NULL }, - { "IsMaximized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsMaximized, 1, NULL }, - { "IsMovable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsMovable, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsOk, 1, NULL }, - { "IsResizable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsResizable, 1, NULL }, - { "IsRightDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsRightDockable, 1, NULL }, - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsShown, 1, NULL }, - { "IsToolbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsToolbar, 1, NULL }, - { "IsTopDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_IsTopDockable, 1, NULL }, - { "Layer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Layer, 1, NULL }, - { "Left", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Left, 1, NULL }, - { "LeftDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_LeftDockable, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - { "MaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize_overload, s_wxluafunc_wxLua_wxAuiPaneInfo_MaxSize_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - - { "Maximize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Maximize, 1, NULL }, - { "MaximizeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_MaximizeButton, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - { "MinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize_overload, s_wxluafunc_wxLua_wxAuiPaneInfo_MinSize_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)||((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect)) - - { "MinimizeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_MinimizeButton, 1, NULL }, - { "Movable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Movable, 1, NULL }, - { "Name", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Name, 1, NULL }, - { "PaneBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_PaneBorder, 1, NULL }, - { "PinButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_PinButton, 1, NULL }, - { "Position", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Position, 1, NULL }, - { "Resizable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Resizable, 1, NULL }, - { "Restore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Restore, 1, NULL }, - { "Right", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Right, 1, NULL }, - { "RightDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_RightDockable, 1, NULL }, - { "Row", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Row, 1, NULL }, - { "SafeSet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_SafeSet, 1, NULL }, - { "SetFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_SetFlag, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_best_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_best_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Set_caption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_caption, 1, NULL }, - // %member { "Set_dock_direction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_direction, 1, NULL }, - // %member { "Set_dock_layer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_layer, 1, NULL }, - // %member { "Set_dock_pos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_pos, 1, NULL }, - // %member { "Set_dock_proportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_proportion, 1, NULL }, - // %member { "Set_dock_row", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_row, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_floating_pos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_floating_pos, 1, NULL }, - // %member { "Set_floating_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_floating_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - // %member { "Set_frame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_frame, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_max_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_max_size, 1, NULL }, - // %member { "Set_min_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_min_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Set_name", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_name, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Set_state", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_state, 1, NULL }, - // %member { "Set_window", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_window, 1, NULL }, - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Show, 1, NULL }, - { "ToolbarPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_ToolbarPane, 1, NULL }, - { "Top", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Top, 1, NULL }, - { "TopDockable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_TopDockable, 1, NULL }, - { "Window", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_Window, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "best_size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_best_size, 1, NULL }, - { "best_size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_best_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "caption", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_caption, 1, NULL }, - { "caption", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_caption, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiPaneInfo_delete, 1, NULL }, - { "dock_direction", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_direction, 1, NULL }, - { "dock_direction", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_direction, 1, NULL }, - { "dock_layer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_layer, 1, NULL }, - { "dock_layer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_layer, 1, NULL }, - { "dock_pos", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_pos, 1, NULL }, - { "dock_pos", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_pos, 1, NULL }, - { "dock_proportion", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_proportion, 1, NULL }, - { "dock_proportion", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_proportion, 1, NULL }, - { "dock_row", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_dock_row, 1, NULL }, - { "dock_row", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_dock_row, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "floating_pos", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_floating_pos, 1, NULL }, - { "floating_pos", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_floating_pos, 1, NULL }, - { "floating_size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_floating_size, 1, NULL }, - { "floating_size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_floating_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - { "frame", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_frame, 1, NULL }, - { "frame", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_frame, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "max_size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_max_size, 1, NULL }, - { "max_size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_max_size, 1, NULL }, - { "min_size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_min_size, 1, NULL }, - { "min_size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_min_size, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "name", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_name, 1, NULL }, - { "name", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_name, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfo_op_set, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "rect", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_rect, 1, NULL }, - { "rect", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "state", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_state, 1, NULL }, - { "state", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_state, 1, NULL }, - { "window", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Set_window, 1, NULL }, - { "window", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneInfo_Get_window, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiPaneInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiPaneInfo_constructor_overload, s_wxluafunc_wxLua_wxAuiPaneInfo_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiPaneInfo_methodCount = sizeof(wxAuiPaneInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxAuiPaneInfo_enums[] = { -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "actionPane", wxAuiPaneInfo::actionPane }, - { "buttonClose", wxAuiPaneInfo::buttonClose }, - { "buttonCustom1", wxAuiPaneInfo::buttonCustom1 }, - { "buttonCustom2", wxAuiPaneInfo::buttonCustom2 }, - { "buttonCustom3", wxAuiPaneInfo::buttonCustom3 }, - { "buttonMaximize", wxAuiPaneInfo::buttonMaximize }, - { "buttonMinimize", wxAuiPaneInfo::buttonMinimize }, - { "buttonPin", wxAuiPaneInfo::buttonPin }, - { "optionActive", wxAuiPaneInfo::optionActive }, - { "optionBottomDockable", wxAuiPaneInfo::optionBottomDockable }, - { "optionCaption", wxAuiPaneInfo::optionCaption }, - { "optionDestroyOnClose", wxAuiPaneInfo::optionDestroyOnClose }, - { "optionFloatable", wxAuiPaneInfo::optionFloatable }, - { "optionFloating", wxAuiPaneInfo::optionFloating }, - { "optionGripper", wxAuiPaneInfo::optionGripper }, - { "optionGripperTop", wxAuiPaneInfo::optionGripperTop }, - { "optionHidden", wxAuiPaneInfo::optionHidden }, - { "optionLeftDockable", wxAuiPaneInfo::optionLeftDockable }, - { "optionMaximized", wxAuiPaneInfo::optionMaximized }, - { "optionMovable", wxAuiPaneInfo::optionMovable }, - { "optionPaneBorder", wxAuiPaneInfo::optionPaneBorder }, - { "optionResizable", wxAuiPaneInfo::optionResizable }, - { "optionRightDockable", wxAuiPaneInfo::optionRightDockable }, - { "optionToolbar", wxAuiPaneInfo::optionToolbar }, - { "optionTopDockable", wxAuiPaneInfo::optionTopDockable }, - { "savedHiddenState", wxAuiPaneInfo::savedHiddenState }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - { NULL, 0, }, -}; -int wxAuiPaneInfo_enumCount = sizeof(wxAuiPaneInfo_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiPaneInfoArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiPaneInfoArray' -int wxluatype_wxAuiPaneInfoArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Add[] = { &wxluatype_wxAuiPaneInfoArray, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_Add[1] = {{ wxLua_wxAuiPaneInfoArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Add }}; -// void Add(wxAuiPaneInfo pi); -static int LUACALL wxLua_wxAuiPaneInfoArray_Add(lua_State *L) -{ - // wxAuiPaneInfo pi - wxAuiPaneInfo pi = *(wxAuiPaneInfo*)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call Add - self->Add(pi); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Clear[] = { &wxluatype_wxAuiPaneInfoArray, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_Clear[1] = {{ wxLua_wxAuiPaneInfoArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxAuiPaneInfoArray_Clear(lua_State *L) -{ - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_GetCount[] = { &wxluatype_wxAuiPaneInfoArray, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_GetCount[1] = {{ wxLua_wxAuiPaneInfoArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxAuiPaneInfoArray_GetCount(lua_State *L) -{ - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Insert[] = { &wxluatype_wxAuiPaneInfoArray, &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_Insert[1] = {{ wxLua_wxAuiPaneInfoArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Insert }}; -// void Insert(wxAuiPaneInfo pi, int nIndex); -static int LUACALL wxLua_wxAuiPaneInfoArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // wxAuiPaneInfo pi - wxAuiPaneInfo pi = *(wxAuiPaneInfo*)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call Insert - self->Insert(pi, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_IsEmpty[] = { &wxluatype_wxAuiPaneInfoArray, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_IsEmpty[1] = {{ wxLua_wxAuiPaneInfoArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxAuiPaneInfoArray_IsEmpty(lua_State *L) -{ - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Item[] = { &wxluatype_wxAuiPaneInfoArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_Item[1] = {{ wxLua_wxAuiPaneInfoArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_Item }}; -// wxAuiPaneInfo Item(size_t nIndex) const; -static int LUACALL wxLua_wxAuiPaneInfoArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call Item - // allocate a new object using the copy constructor - wxAuiPaneInfo* returns = new wxAuiPaneInfo(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_RemoveAt[] = { &wxluatype_wxAuiPaneInfoArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_RemoveAt[1] = {{ wxLua_wxAuiPaneInfoArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxAuiPaneInfoArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiPaneInfoArray * self = (wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_delete[] = { &wxluatype_wxAuiPaneInfoArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_constructor1[] = { &wxluatype_wxAuiPaneInfoArray, NULL }; -static int LUACALL wxLua_wxAuiPaneInfoArray_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor1[1] = {{ wxLua_wxAuiPaneInfoArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_constructor1 }}; -// wxAuiPaneInfoArray(const wxAuiPaneInfoArray& array); -static int LUACALL wxLua_wxAuiPaneInfoArray_constructor1(lua_State *L) -{ - // const wxAuiPaneInfoArray array - const wxAuiPaneInfoArray * array = (const wxAuiPaneInfoArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneInfoArray); - // call constructor - wxAuiPaneInfoArray* returns = new wxAuiPaneInfoArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfoArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); - - return 1; -} - -static int LUACALL wxLua_wxAuiPaneInfoArray_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor[1] = {{ wxLua_wxAuiPaneInfoArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiPaneInfoArray(); -static int LUACALL wxLua_wxAuiPaneInfoArray_constructor(lua_State *L) -{ - // call constructor - wxAuiPaneInfoArray* returns = new wxAuiPaneInfoArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiPaneInfoArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor_overload[] = -{ - { wxLua_wxAuiPaneInfoArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneInfoArray_constructor1 }, - { wxLua_wxAuiPaneInfoArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiPaneInfoArray_delete_function(void** p) -{ - wxAuiPaneInfoArray* o = (wxAuiPaneInfoArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiPaneInfoArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneInfoArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiPaneInfoArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiPaneInfoArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor_overload, s_wxluafunc_wxLua_wxAuiPaneInfoArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiPaneInfoArray_methodCount = sizeof(wxAuiPaneInfoArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiManager -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiManager' -int wxluatype_wxAuiManager = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_AddPane2[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxAuiPaneInfo, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiManager_AddPane2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_AddPane2[1] = {{ wxLua_wxAuiManager_AddPane2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiManager_AddPane2 }}; -// bool AddPane(wxWindow* window, const wxAuiPaneInfo& pane_info, const wxPoint& drop_pos); -static int LUACALL wxLua_wxAuiManager_AddPane2(lua_State *L) -{ - // const wxPoint drop_pos - const wxPoint * drop_pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // const wxAuiPaneInfo pane_info - const wxAuiPaneInfo * pane_info = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiPaneInfo); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call AddPane - bool returns = (self->AddPane(window, *pane_info, *drop_pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_AddPane1[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiManager_AddPane1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_AddPane1[1] = {{ wxLua_wxAuiManager_AddPane1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxAuiManager_AddPane1 }}; -// bool AddPane(wxWindow* window, int direction = wxLEFT, const wxString& caption = wxEmptyString); -static int LUACALL wxLua_wxAuiManager_AddPane1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString caption = wxEmptyString - const wxString caption = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int direction = wxLEFT - int direction = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxLEFT); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call AddPane - bool returns = (self->AddPane(window, direction, caption)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_AddPane[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_AddPane(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_AddPane[1] = {{ wxLua_wxAuiManager_AddPane, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_AddPane }}; -// bool AddPane(wxWindow* window, const wxAuiPaneInfo& pane_info); -static int LUACALL wxLua_wxAuiManager_AddPane(lua_State *L) -{ - // const wxAuiPaneInfo pane_info - const wxAuiPaneInfo * pane_info = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiPaneInfo); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call AddPane - bool returns = (self->AddPane(window, *pane_info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static int LUACALL wxLua_wxAuiManager_AlwaysUsesLiveResize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_AlwaysUsesLiveResize[1] = {{ wxLua_wxAuiManager_AlwaysUsesLiveResize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_1_4 static bool AlwaysUsesLiveResize(); -static int LUACALL wxLua_wxAuiManager_AlwaysUsesLiveResize(lua_State *L) -{ - // call AlwaysUsesLiveResize - bool returns = (wxAuiManager::AlwaysUsesLiveResize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_CalculateHintRect[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiManager_CalculateHintRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_CalculateHintRect[1] = {{ wxLua_wxAuiManager_CalculateHintRect, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiManager_CalculateHintRect }}; -// wxRect CalculateHintRect(wxWindow* pane_window, const wxPoint& pt, const wxPoint& offset); -static int LUACALL wxLua_wxAuiManager_CalculateHintRect(lua_State *L) -{ - // const wxPoint offset - const wxPoint * offset = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxWindow pane_window - wxWindow * pane_window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call CalculateHintRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->CalculateHintRect(pane_window, *pt, *offset)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_CanDockPanel[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_CanDockPanel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_CanDockPanel[1] = {{ wxLua_wxAuiManager_CanDockPanel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_CanDockPanel }}; -// %wxchkver_3_0_0 bool CanDockPanel(const wxAuiPaneInfo & p); -static int LUACALL wxLua_wxAuiManager_CanDockPanel(lua_State *L) -{ - // const wxAuiPaneInfo p - const wxAuiPaneInfo * p = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call CanDockPanel - bool returns = (self->CanDockPanel(*p)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_ClosePane[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_ClosePane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_ClosePane[1] = {{ wxLua_wxAuiManager_ClosePane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_ClosePane }}; -// void ClosePane(wxAuiPaneInfo& pane_info); -static int LUACALL wxLua_wxAuiManager_ClosePane(lua_State *L) -{ - // wxAuiPaneInfo pane_info - wxAuiPaneInfo * pane_info = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call ClosePane - self->ClosePane(*pane_info); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_CreateFloatingFrame[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_CreateFloatingFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_CreateFloatingFrame[1] = {{ wxLua_wxAuiManager_CreateFloatingFrame, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_CreateFloatingFrame }}; -// virtual wxAuiFloatingFrame* CreateFloatingFrame(wxWindow* parent, const wxAuiPaneInfo& p); -static int LUACALL wxLua_wxAuiManager_CreateFloatingFrame(lua_State *L) -{ - // const wxAuiPaneInfo p - const wxAuiPaneInfo * p = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiPaneInfo); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call CreateFloatingFrame - wxAuiFloatingFrame* returns = (wxAuiFloatingFrame*)self->CreateFloatingFrame(parent, *p); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiFloatingFrame); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_DetachPane[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiManager_DetachPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_DetachPane[1] = {{ wxLua_wxAuiManager_DetachPane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_DetachPane }}; -// bool DetachPane(wxWindow* window); -static int LUACALL wxLua_wxAuiManager_DetachPane(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call DetachPane - bool returns = (self->DetachPane(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_DrawHintRect[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiManager_DrawHintRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_DrawHintRect[1] = {{ wxLua_wxAuiManager_DrawHintRect, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiManager_DrawHintRect }}; -// void DrawHintRect(wxWindow* pane_window, const wxPoint& pt, const wxPoint& offset); -static int LUACALL wxLua_wxAuiManager_DrawHintRect(lua_State *L) -{ - // const wxPoint offset - const wxPoint * offset = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxWindow pane_window - wxWindow * pane_window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call DrawHintRect - self->DrawHintRect(pane_window, *pt, *offset); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetAllPanes[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_GetAllPanes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetAllPanes[1] = {{ wxLua_wxAuiManager_GetAllPanes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_GetAllPanes }}; -// wxAuiPaneInfoArray& GetAllPanes(); -static int LUACALL wxLua_wxAuiManager_GetAllPanes(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetAllPanes - wxAuiPaneInfoArray* returns = (wxAuiPaneInfoArray*)&self->GetAllPanes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfoArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetArtProvider[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_GetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetArtProvider[1] = {{ wxLua_wxAuiManager_GetArtProvider, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_GetArtProvider }}; -// wxAuiDockArt* GetArtProvider() const; -static int LUACALL wxLua_wxAuiManager_GetArtProvider(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetArtProvider - wxAuiDockArt* returns = (wxAuiDockArt*)self->GetArtProvider(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockArt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetDockSizeConstraint[] = { &wxluatype_wxAuiManager, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxAuiManager_GetDockSizeConstraint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetDockSizeConstraint[1] = {{ wxLua_wxAuiManager_GetDockSizeConstraint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_GetDockSizeConstraint }}; -// void GetDockSizeConstraint(double* width_pct, double* height_pct) const; -static int LUACALL wxLua_wxAuiManager_GetDockSizeConstraint(lua_State *L) -{ - // double height_pct - double * height_pct = (double *)wxlua_touserdata(L, 3); - // double width_pct - double * width_pct = (double *)wxlua_touserdata(L, 2); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetDockSizeConstraint - self->GetDockSizeConstraint(width_pct, height_pct); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetFlags[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetFlags[1] = {{ wxLua_wxAuiManager_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_GetFlags }}; -// unsigned int GetFlags() const; -static int LUACALL wxLua_wxAuiManager_GetFlags(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetFlags - unsigned int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetManagedWindow[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_GetManagedWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetManagedWindow[1] = {{ wxLua_wxAuiManager_GetManagedWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_GetManagedWindow }}; -// wxWindow* GetManagedWindow() const; -static int LUACALL wxLua_wxAuiManager_GetManagedWindow(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetManagedWindow - wxWindow* returns = (wxWindow*)self->GetManagedWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetManager[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiManager_GetManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetManager[1] = {{ wxLua_wxAuiManager_GetManager, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_GetManager }}; -// static wxAuiManager* GetManager(wxWindow* window); -static int LUACALL wxLua_wxAuiManager_GetManager(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetManager - wxAuiManager* returns = (wxAuiManager*)wxAuiManager::GetManager(window); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetPane1[] = { &wxluatype_wxAuiManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiManager_GetPane1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetPane1[1] = {{ wxLua_wxAuiManager_GetPane1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_GetPane1 }}; -// wxAuiPaneInfo& GetPane(const wxString& name); -static int LUACALL wxLua_wxAuiManager_GetPane1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetPane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->GetPane(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_GetPane[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiManager_GetPane(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetPane[1] = {{ wxLua_wxAuiManager_GetPane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_GetPane }}; -// wxAuiPaneInfo& GetPane(wxWindow* window); -static int LUACALL wxLua_wxAuiManager_GetPane(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call GetPane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)&self->GetPane(window); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_HasLiveResize[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_HasLiveResize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_HasLiveResize[1] = {{ wxLua_wxAuiManager_HasLiveResize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_HasLiveResize }}; -// %wxchkver_3_1_4 bool HasLiveResize() const; -static int LUACALL wxLua_wxAuiManager_HasLiveResize(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call HasLiveResize - bool returns = (self->HasLiveResize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_HideHint[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_HideHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_HideHint[1] = {{ wxLua_wxAuiManager_HideHint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_HideHint }}; -// virtual void HideHint(); -static int LUACALL wxLua_wxAuiManager_HideHint(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call HideHint - self->HideHint(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_InsertPane[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxAuiPaneInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiManager_InsertPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_InsertPane[1] = {{ wxLua_wxAuiManager_InsertPane, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxAuiManager_InsertPane }}; -// bool InsertPane(wxWindow* window, const wxAuiPaneInfo& insert_location, int insert_level = wxAUI_INSERT_PANE); -static int LUACALL wxLua_wxAuiManager_InsertPane(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int insert_level = wxAUI_INSERT_PANE - int insert_level = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxAUI_INSERT_PANE); - // const wxAuiPaneInfo insert_location - const wxAuiPaneInfo * insert_location = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiPaneInfo); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call InsertPane - bool returns = (self->InsertPane(window, *insert_location, insert_level)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_LoadPaneInfo[] = { &wxluatype_wxAuiManager, &wxluatype_TSTRING, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_LoadPaneInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_LoadPaneInfo[1] = {{ wxLua_wxAuiManager_LoadPaneInfo, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_LoadPaneInfo }}; -// void LoadPaneInfo(wxString pane_part, wxAuiPaneInfo &pane); -static int LUACALL wxLua_wxAuiManager_LoadPaneInfo(lua_State *L) -{ - // wxAuiPaneInfo pane - wxAuiPaneInfo * pane = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxAuiPaneInfo); - // wxString pane_part - wxString pane_part = wxlua_getwxStringtype(L, 2); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call LoadPaneInfo - self->LoadPaneInfo(pane_part, *pane); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_LoadPerspective[] = { &wxluatype_wxAuiManager, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiManager_LoadPerspective(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_LoadPerspective[1] = {{ wxLua_wxAuiManager_LoadPerspective, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAuiManager_LoadPerspective }}; -// bool LoadPerspective(const wxString& perspective, bool update = true); -static int LUACALL wxLua_wxAuiManager_LoadPerspective(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool update = true - bool update = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString perspective - const wxString perspective = wxlua_getwxStringtype(L, 2); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call LoadPerspective - bool returns = (self->LoadPerspective(perspective, update)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_MaximizePane[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_MaximizePane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_MaximizePane[1] = {{ wxLua_wxAuiManager_MaximizePane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_MaximizePane }}; -// void MaximizePane(wxAuiPaneInfo& pane_info); -static int LUACALL wxLua_wxAuiManager_MaximizePane(lua_State *L) -{ - // wxAuiPaneInfo pane_info - wxAuiPaneInfo * pane_info = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call MaximizePane - self->MaximizePane(*pane_info); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_OnPaneButton[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManager_OnPaneButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_OnPaneButton[1] = {{ wxLua_wxAuiManager_OnPaneButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_OnPaneButton }}; -// void OnPaneButton(wxAuiManagerEvent& evt); // %add as it's missing from framemanager.h -static int LUACALL wxLua_wxAuiManager_OnPaneButton(lua_State *L) -{ - // wxAuiManagerEvent evt - wxAuiManagerEvent * evt = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiManagerEvent); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call OnPaneButton - self->OnPaneButton(*evt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_OnRender[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManager_OnRender(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_OnRender[1] = {{ wxLua_wxAuiManager_OnRender, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_OnRender }}; -// void OnRender(wxAuiManagerEvent& evt); // %add as it's missing from framemanager.h -static int LUACALL wxLua_wxAuiManager_OnRender(lua_State *L) -{ - // wxAuiManagerEvent evt - wxAuiManagerEvent * evt = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiManagerEvent); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call OnRender - self->OnRender(*evt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_RestoreMaximizedPane[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_RestoreMaximizedPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_RestoreMaximizedPane[1] = {{ wxLua_wxAuiManager_RestoreMaximizedPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_RestoreMaximizedPane }}; -// void RestoreMaximizedPane(); -static int LUACALL wxLua_wxAuiManager_RestoreMaximizedPane(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call RestoreMaximizedPane - self->RestoreMaximizedPane(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_RestorePane[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_RestorePane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_RestorePane[1] = {{ wxLua_wxAuiManager_RestorePane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_RestorePane }}; -// void RestorePane(wxAuiPaneInfo& pane_info); -static int LUACALL wxLua_wxAuiManager_RestorePane(lua_State *L) -{ - // wxAuiPaneInfo pane_info - wxAuiPaneInfo * pane_info = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call RestorePane - self->RestorePane(*pane_info); - - return 0; -} - - -#if ((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SavePaneInfo1[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_SavePaneInfo1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo1[1] = {{ wxLua_wxAuiManager_SavePaneInfo1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SavePaneInfo1 }}; -// !%wxchkver_3_1_1 wxString SavePaneInfo(wxAuiPaneInfo& pane); -static int LUACALL wxLua_wxAuiManager_SavePaneInfo1(lua_State *L) -{ - // wxAuiPaneInfo pane - wxAuiPaneInfo * pane = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SavePaneInfo - wxString returns = (self->SavePaneInfo(*pane)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SavePaneInfo[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManager_SavePaneInfo(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo[1] = {{ wxLua_wxAuiManager_SavePaneInfo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SavePaneInfo }}; -// %wxchkver_3_1_1 wxString SavePaneInfo(const wxAuiPaneInfo& pane); -static int LUACALL wxLua_wxAuiManager_SavePaneInfo(lua_State *L) -{ - // const wxAuiPaneInfo pane - const wxAuiPaneInfo * pane = (const wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SavePaneInfo - wxString returns = (self->SavePaneInfo(*pane)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SavePerspective[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_SavePerspective(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SavePerspective[1] = {{ wxLua_wxAuiManager_SavePerspective, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_SavePerspective }}; -// wxString SavePerspective(); -static int LUACALL wxLua_wxAuiManager_SavePerspective(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SavePerspective - wxString returns = (self->SavePerspective()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SetArtProvider[] = { &wxluatype_wxAuiManager, &wxluatype_wxAuiDockArt, NULL }; -static int LUACALL wxLua_wxAuiManager_SetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SetArtProvider[1] = {{ wxLua_wxAuiManager_SetArtProvider, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SetArtProvider }}; -// void SetArtProvider(%ungc wxAuiDockArt* art_provider); -static int LUACALL wxLua_wxAuiManager_SetArtProvider(lua_State *L) -{ - // wxAuiDockArt art_provider - wxAuiDockArt * art_provider = (wxAuiDockArt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiDockArt); - if (wxluaO_isgcobject(L, art_provider)) wxluaO_undeletegcobject(L, art_provider); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SetArtProvider - self->SetArtProvider(art_provider); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SetDockSizeConstraint[] = { &wxluatype_wxAuiManager, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiManager_SetDockSizeConstraint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SetDockSizeConstraint[1] = {{ wxLua_wxAuiManager_SetDockSizeConstraint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_SetDockSizeConstraint }}; -// void SetDockSizeConstraint(double width_pct, double height_pct); -static int LUACALL wxLua_wxAuiManager_SetDockSizeConstraint(lua_State *L) -{ - // double height_pct - double height_pct = (double)wxlua_getnumbertype(L, 3); - // double width_pct - double width_pct = (double)wxlua_getnumbertype(L, 2); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SetDockSizeConstraint - self->SetDockSizeConstraint(width_pct, height_pct); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SetFlags[] = { &wxluatype_wxAuiManager, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiManager_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SetFlags[1] = {{ wxLua_wxAuiManager_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SetFlags }}; -// void SetFlags(unsigned int flags); -static int LUACALL wxLua_wxAuiManager_SetFlags(lua_State *L) -{ - // unsigned int flags - unsigned int flags = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_SetManagedWindow[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAuiManager_SetManagedWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SetManagedWindow[1] = {{ wxLua_wxAuiManager_SetManagedWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SetManagedWindow }}; -// void SetManagedWindow(wxWindow* managed_wnd); -static int LUACALL wxLua_wxAuiManager_SetManagedWindow(lua_State *L) -{ - // wxWindow managed_wnd - wxWindow * managed_wnd = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call SetManagedWindow - self->SetManagedWindow(managed_wnd); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_ShowHint[] = { &wxluatype_wxAuiManager, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiManager_ShowHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_ShowHint[1] = {{ wxLua_wxAuiManager_ShowHint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_ShowHint }}; -// virtual void ShowHint(const wxRect& rect); -static int LUACALL wxLua_wxAuiManager_ShowHint(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call ShowHint - self->ShowHint(*rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_StartPaneDrag[] = { &wxluatype_wxAuiManager, &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxAuiManager_StartPaneDrag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_StartPaneDrag[1] = {{ wxLua_wxAuiManager_StartPaneDrag, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_StartPaneDrag }}; -// void StartPaneDrag(wxWindow* pane_window, const wxPoint& offset); -static int LUACALL wxLua_wxAuiManager_StartPaneDrag(lua_State *L) -{ - // const wxPoint offset - const wxPoint * offset = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxWindow pane_window - wxWindow * pane_window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call StartPaneDrag - self->StartPaneDrag(pane_window, *offset); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_UnInit[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_UnInit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_UnInit[1] = {{ wxLua_wxAuiManager_UnInit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_UnInit }}; -// void UnInit(); -static int LUACALL wxLua_wxAuiManager_UnInit(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call UnInit - self->UnInit(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_Update[] = { &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManager_Update(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_Update[1] = {{ wxLua_wxAuiManager_Update, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_Update }}; -// void Update(); -static int LUACALL wxLua_wxAuiManager_Update(lua_State *L) -{ - // get this - wxAuiManager * self = (wxAuiManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManager); - // call Update - self->Update(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_delete[] = { &wxluatype_wxAuiManager, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiManager_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManager_constructor[] = { &wxluatype_wxWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiManager_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_constructor[1] = {{ wxLua_wxAuiManager_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxAuiManager_constructor }}; -// wxAuiManager(wxWindow* managed_wnd = NULL, unsigned int flags = wxAUI_MGR_DEFAULT); -static int LUACALL wxLua_wxAuiManager_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int flags = wxAUI_MGR_DEFAULT - unsigned int flags = (argCount >= 2 ? (unsigned int)wxlua_getuintegertype(L, 2) : wxAUI_MGR_DEFAULT); - // wxWindow managed_wnd = NULL - wxWindow * managed_wnd = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxAuiManager* returns = new wxAuiManager(managed_wnd, flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiManager); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); - - return 1; -} - - - - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_AddPane_overload[] = -{ - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiManager_AddPane2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiManager_AddPane2 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiManager_AddPane1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxAuiManager_AddPane1 }, - { wxLua_wxAuiManager_AddPane, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiManager_AddPane }, -}; -static int s_wxluafunc_wxLua_wxAuiManager_AddPane_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiManager_AddPane_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_GetPane_overload[] = -{ - { wxLua_wxAuiManager_GetPane1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_GetPane1 }, - { wxLua_wxAuiManager_GetPane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_GetPane }, -}; -static int s_wxluafunc_wxLua_wxAuiManager_GetPane_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiManager_GetPane_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { wxLua_wxAuiManager_SavePaneInfo1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SavePaneInfo1 }, -#endif // ((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { wxLua_wxAuiManager_SavePaneInfo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManager_SavePaneInfo }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -}; -static int s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) - -void wxLua_wxAuiManager_delete_function(void** p) -{ - wxAuiManager* o = (wxAuiManager*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiManager_methods[] = { -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "AddPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_AddPane_overload, s_wxluafunc_wxLua_wxAuiManager_AddPane_overload_count, 0 }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "AlwaysUsesLiveResize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxAuiManager_AlwaysUsesLiveResize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "CalculateHintRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_CalculateHintRect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "CanDockPanel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_CanDockPanel, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "ClosePane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_ClosePane, 1, NULL }, - { "CreateFloatingFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_CreateFloatingFrame, 1, NULL }, - { "DetachPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_DetachPane, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "DrawHintRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_DrawHintRect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetAllPanes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_GetAllPanes, 1, NULL }, - { "GetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_GetArtProvider, 1, NULL }, - { "GetDockSizeConstraint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_GetDockSizeConstraint, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_GetFlags, 1, NULL }, - { "GetManagedWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_GetManagedWindow, 1, NULL }, - { "GetManager", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxAuiManager_GetManager, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "GetPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_GetPane_overload, s_wxluafunc_wxLua_wxAuiManager_GetPane_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "HasLiveResize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_HasLiveResize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "HideHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_HideHint, 1, NULL }, - { "InsertPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_InsertPane, 1, NULL }, - { "LoadPaneInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_LoadPaneInfo, 1, NULL }, - { "LoadPerspective", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_LoadPerspective, 1, NULL }, - { "MaximizePane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_MaximizePane, 1, NULL }, - { "OnPaneButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_OnPaneButton, 1, NULL }, - { "OnRender", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_OnRender, 1, NULL }, - { "RestoreMaximizedPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_RestoreMaximizedPane, 1, NULL }, - { "RestorePane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_RestorePane, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) - { "SavePaneInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo_overload, s_wxluafunc_wxLua_wxAuiManager_SavePaneInfo_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI)) - - { "SavePerspective", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_SavePerspective, 1, NULL }, - { "SetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_SetArtProvider, 1, NULL }, - { "SetDockSizeConstraint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_SetDockSizeConstraint, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_SetFlags, 1, NULL }, - { "SetManagedWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_SetManagedWindow, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "ShowHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_ShowHint, 1, NULL }, - { "StartPaneDrag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_StartPaneDrag, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "UnInit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_UnInit, 1, NULL }, - { "Update", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManager_Update, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiManager_delete, 1, NULL }, - { "wxAuiManager", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiManager_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiManager_methodCount = sizeof(wxAuiManager_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiManagerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiManagerEvent' -int wxluatype_wxAuiManagerEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_CanVeto[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_CanVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_CanVeto[1] = {{ wxLua_wxAuiManagerEvent_CanVeto, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_CanVeto }}; -// bool CanVeto() const; -static int LUACALL wxLua_wxAuiManagerEvent_CanVeto(lua_State *L) -{ - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call CanVeto - bool returns = (self->CanVeto()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetButton[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_GetButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_GetButton[1] = {{ wxLua_wxAuiManagerEvent_GetButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetButton }}; -// int GetButton() const; -static int LUACALL wxLua_wxAuiManagerEvent_GetButton(lua_State *L) -{ - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call GetButton - int returns = (self->GetButton()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetDC[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_GetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_GetDC[1] = {{ wxLua_wxAuiManagerEvent_GetDC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetDC }}; -// wxDC* GetDC() const; -static int LUACALL wxLua_wxAuiManagerEvent_GetDC(lua_State *L) -{ - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call GetDC - wxDC* returns = (wxDC*)self->GetDC(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetManager[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_GetManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_GetManager[1] = {{ wxLua_wxAuiManagerEvent_GetManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetManager }}; -// wxAuiManager* GetManager() const; -static int LUACALL wxLua_wxAuiManagerEvent_GetManager(lua_State *L) -{ - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call GetManager - wxAuiManager* returns = (wxAuiManager*)self->GetManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManager); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetPane[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_GetPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_GetPane[1] = {{ wxLua_wxAuiManagerEvent_GetPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetPane }}; -// wxAuiPaneInfo* GetPane() const; -static int LUACALL wxLua_wxAuiManagerEvent_GetPane(lua_State *L) -{ - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call GetPane - wxAuiPaneInfo* returns = (wxAuiPaneInfo*)self->GetPane(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiPaneInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetVeto[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_GetVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_GetVeto[1] = {{ wxLua_wxAuiManagerEvent_GetVeto, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_GetVeto }}; -// bool GetVeto() const; -static int LUACALL wxLua_wxAuiManagerEvent_GetVeto(lua_State *L) -{ - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call GetVeto - bool returns = (self->GetVeto()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetButton[] = { &wxluatype_wxAuiManagerEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_SetButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_SetButton[1] = {{ wxLua_wxAuiManagerEvent_SetButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetButton }}; -// void SetButton(int b); -static int LUACALL wxLua_wxAuiManagerEvent_SetButton(lua_State *L) -{ - // int b - int b = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call SetButton - self->SetButton(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetCanVeto[] = { &wxluatype_wxAuiManagerEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_SetCanVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_SetCanVeto[1] = {{ wxLua_wxAuiManagerEvent_SetCanVeto, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetCanVeto }}; -// void SetCanVeto(bool can_veto); -static int LUACALL wxLua_wxAuiManagerEvent_SetCanVeto(lua_State *L) -{ - // bool can_veto - bool can_veto = wxlua_getbooleantype(L, 2); - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call SetCanVeto - self->SetCanVeto(can_veto); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetDC[] = { &wxluatype_wxAuiManagerEvent, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_SetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_SetDC[1] = {{ wxLua_wxAuiManagerEvent_SetDC, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetDC }}; -// void SetDC(wxDC* pdc); -static int LUACALL wxLua_wxAuiManagerEvent_SetDC(lua_State *L) -{ - // wxDC pdc - wxDC * pdc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call SetDC - self->SetDC(pdc); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetManager[] = { &wxluatype_wxAuiManagerEvent, &wxluatype_wxAuiManager, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_SetManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_SetManager[1] = {{ wxLua_wxAuiManagerEvent_SetManager, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetManager }}; -// void SetManager(wxAuiManager* mgr); -static int LUACALL wxLua_wxAuiManagerEvent_SetManager(lua_State *L) -{ - // wxAuiManager mgr - wxAuiManager * mgr = (wxAuiManager *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiManager); - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call SetManager - self->SetManager(mgr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetPane[] = { &wxluatype_wxAuiManagerEvent, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_SetPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_SetPane[1] = {{ wxLua_wxAuiManagerEvent_SetPane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiManagerEvent_SetPane }}; -// void SetPane(wxAuiPaneInfo* p); -static int LUACALL wxLua_wxAuiManagerEvent_SetPane(lua_State *L) -{ - // wxAuiPaneInfo p - wxAuiPaneInfo * p = (wxAuiPaneInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call SetPane - self->SetPane(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_Veto[] = { &wxluatype_wxAuiManagerEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_Veto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_Veto[1] = {{ wxLua_wxAuiManagerEvent_Veto, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiManagerEvent_Veto }}; -// void Veto(bool veto = true); -static int LUACALL wxLua_wxAuiManagerEvent_Veto(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool veto = true - bool veto = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiManagerEvent * self = (wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call Veto - self->Veto(veto); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_delete[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_constructor1[] = { &wxluatype_wxAuiManagerEvent, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_constructor1[1] = {{ wxLua_wxAuiManagerEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_constructor1 }}; -// wxAuiManagerEvent(const wxAuiManagerEvent& c); -static int LUACALL wxLua_wxAuiManagerEvent_constructor1(lua_State *L) -{ - // const wxAuiManagerEvent c - const wxAuiManagerEvent * c = (const wxAuiManagerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiManagerEvent); - // call constructor - wxAuiManagerEvent* returns = new wxAuiManagerEvent(*c); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiManagerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManagerEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiManagerEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiManagerEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_constructor[1] = {{ wxLua_wxAuiManagerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_constructor }}; -// wxAuiManagerEvent(wxEventType type=wxEVT_NULL); -static int LUACALL wxLua_wxAuiManagerEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxAuiManagerEvent* returns = new wxAuiManagerEvent(type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiManagerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiManagerEvent); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiManagerEvent_constructor_overload[] = -{ - { wxLua_wxAuiManagerEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_constructor1 }, - { wxLua_wxAuiManagerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxAuiManagerEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxAuiManagerEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiManagerEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiManagerEvent_delete_function(void** p) -{ - wxAuiManagerEvent* o = (wxAuiManagerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiManagerEvent_methods[] = { - { "CanVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_CanVeto, 1, NULL }, - { "GetButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_GetButton, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) - { "GetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_GetDC, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) - - { "GetManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_GetManager, 1, NULL }, - { "GetPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_GetPane, 1, NULL }, - { "GetVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_GetVeto, 1, NULL }, - { "SetButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_SetButton, 1, NULL }, - { "SetCanVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_SetCanVeto, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) - { "SetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_SetDC, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxDC) - - { "SetManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_SetManager, 1, NULL }, - { "SetPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_SetPane, 1, NULL }, - { "Veto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiManagerEvent_Veto, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiManagerEvent_delete, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiManagerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiManagerEvent_constructor_overload, s_wxluafunc_wxLua_wxAuiManagerEvent_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiManagerEvent_methodCount = sizeof(wxAuiManagerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiDockInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiDockInfo' -int wxluatype_wxAuiDockInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_dock_direction[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_dock_direction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_direction[1] = {{ wxLua_wxAuiDockInfo_Get_dock_direction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_dock_direction }}; -// int dock_direction; // dock direction (top, bottom, left, right, center); -static int LUACALL wxLua_wxAuiDockInfo_Get_dock_direction(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_direction) == (double)(self->dock_direction)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_direction); -} else -#endif -{ - lua_pushnumber(L, self->dock_direction); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_dock_layer[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_dock_layer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_layer[1] = {{ wxLua_wxAuiDockInfo_Get_dock_layer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_dock_layer }}; -// int dock_layer; // layer number (0 = innermost layer); -static int LUACALL wxLua_wxAuiDockInfo_Get_dock_layer(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_layer) == (double)(self->dock_layer)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_layer); -} else -#endif -{ - lua_pushnumber(L, self->dock_layer); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_dock_row[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_dock_row(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_row[1] = {{ wxLua_wxAuiDockInfo_Get_dock_row, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_dock_row }}; -// int dock_row; // row number on the docking bar (0 = first row); -static int LUACALL wxLua_wxAuiDockInfo_Get_dock_row(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->dock_row) == (double)(self->dock_row)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->dock_row); -} else -#endif -{ - lua_pushnumber(L, self->dock_row); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_fixed[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_fixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_fixed[1] = {{ wxLua_wxAuiDockInfo_Get_fixed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_fixed }}; -// bool fixed; // flag indicating that the dock operates on -static int LUACALL wxLua_wxAuiDockInfo_Get_fixed(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result flag - lua_pushboolean(L, self->fixed); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_min_size[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_min_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_min_size[1] = {{ wxLua_wxAuiDockInfo_Get_min_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_min_size }}; -// int min_size; // minimum size of a dock (0 if there is no min); -static int LUACALL wxLua_wxAuiDockInfo_Get_min_size(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->min_size) == (double)(self->min_size)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->min_size); -} else -#endif -{ - lua_pushnumber(L, self->min_size); -} - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_rect[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_rect[1] = {{ wxLua_wxAuiDockInfo_Get_rect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_rect }}; -// wxRect rect; // current rectangle -static int LUACALL wxLua_wxAuiDockInfo_Get_rect(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->rect, wxluatype_wxRect); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_reserved1[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_reserved1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_reserved1[1] = {{ wxLua_wxAuiDockInfo_Get_reserved1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_reserved1 }}; -// bool reserved1; -static int LUACALL wxLua_wxAuiDockInfo_Get_reserved1(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result flag - lua_pushboolean(L, self->reserved1); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_resizable[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_resizable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_resizable[1] = {{ wxLua_wxAuiDockInfo_Get_resizable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_resizable }}; -// bool resizable; // flag indicating whether the dock is resizable -static int LUACALL wxLua_wxAuiDockInfo_Get_resizable(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result flag - lua_pushboolean(L, self->resizable); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_size[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_size[1] = {{ wxLua_wxAuiDockInfo_Get_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_size }}; -// int size; // size of the dock -static int LUACALL wxLua_wxAuiDockInfo_Get_size(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->size) == (double)(self->size)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->size); -} else -#endif -{ - lua_pushnumber(L, self->size); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_toolbar[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Get_toolbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Get_toolbar[1] = {{ wxLua_wxAuiDockInfo_Get_toolbar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_Get_toolbar }}; -// bool toolbar; // flag indicating dock contains only toolbars -static int LUACALL wxLua_wxAuiDockInfo_Get_toolbar(lua_State *L) -{ - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // push the result flag - lua_pushboolean(L, self->toolbar); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_IsHorizontal[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_IsHorizontal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_IsHorizontal[1] = {{ wxLua_wxAuiDockInfo_IsHorizontal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_IsHorizontal }}; -// bool IsHorizontal() const; -static int LUACALL wxLua_wxAuiDockInfo_IsHorizontal(lua_State *L) -{ - // get this - wxAuiDockInfo * self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // call IsHorizontal - bool returns = (self->IsHorizontal()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_IsOk[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_IsOk[1] = {{ wxLua_wxAuiDockInfo_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxAuiDockInfo_IsOk(lua_State *L) -{ - // get this - wxAuiDockInfo * self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_IsVertical[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_IsVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_IsVertical[1] = {{ wxLua_wxAuiDockInfo_IsVertical, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_IsVertical }}; -// bool IsVertical() const; -static int LUACALL wxLua_wxAuiDockInfo_IsVertical(lua_State *L) -{ - // get this - wxAuiDockInfo * self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // call IsVertical - bool returns = (self->IsVertical()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_dock_direction[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_dock_direction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_direction[1] = {{ wxLua_wxAuiDockInfo_Set_dock_direction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_dock_direction }}; -// int dock_direction; // dock direction (top, bottom, left, right, center); -static int LUACALL wxLua_wxAuiDockInfo_Set_dock_direction(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->dock_direction = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_dock_layer[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_dock_layer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_layer[1] = {{ wxLua_wxAuiDockInfo_Set_dock_layer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_dock_layer }}; -// int dock_layer; // layer number (0 = innermost layer); -static int LUACALL wxLua_wxAuiDockInfo_Set_dock_layer(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->dock_layer = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_dock_row[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_dock_row(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_row[1] = {{ wxLua_wxAuiDockInfo_Set_dock_row, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_dock_row }}; -// int dock_row; // row number on the docking bar (0 = first row); -static int LUACALL wxLua_wxAuiDockInfo_Set_dock_row(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->dock_row = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_fixed[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_fixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_fixed[1] = {{ wxLua_wxAuiDockInfo_Set_fixed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_fixed }}; -// bool fixed; // flag indicating that the dock operates on -static int LUACALL wxLua_wxAuiDockInfo_Set_fixed(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->fixed = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_min_size[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_min_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_min_size[1] = {{ wxLua_wxAuiDockInfo_Set_min_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_min_size }}; -// int min_size; // minimum size of a dock (0 if there is no min); -static int LUACALL wxLua_wxAuiDockInfo_Set_min_size(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->min_size = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_rect[] = { &wxluatype_wxAuiDockInfo, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_rect[1] = {{ wxLua_wxAuiDockInfo_Set_rect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_rect }}; -// wxRect rect; // current rectangle -static int LUACALL wxLua_wxAuiDockInfo_Set_rect(lua_State *L) -{ - // get the data type value - wxRect* val = (wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->rect = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_reserved1[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_reserved1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_reserved1[1] = {{ wxLua_wxAuiDockInfo_Set_reserved1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_reserved1 }}; -// bool reserved1; -static int LUACALL wxLua_wxAuiDockInfo_Set_reserved1(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->reserved1 = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_resizable[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_resizable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_resizable[1] = {{ wxLua_wxAuiDockInfo_Set_resizable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_resizable }}; -// bool resizable; // flag indicating whether the dock is resizable -static int LUACALL wxLua_wxAuiDockInfo_Set_resizable(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->resizable = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_size[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_size[1] = {{ wxLua_wxAuiDockInfo_Set_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_size }}; -// int size; // size of the dock -static int LUACALL wxLua_wxAuiDockInfo_Set_size(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->size = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_toolbar[] = { &wxluatype_wxAuiDockInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_Set_toolbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_Set_toolbar[1] = {{ wxLua_wxAuiDockInfo_Set_toolbar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_Set_toolbar }}; -// bool toolbar; // flag indicating dock contains only toolbars -static int LUACALL wxLua_wxAuiDockInfo_Set_toolbar(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxAuiDockInfo *self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - self->toolbar = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_delete[] = { &wxluatype_wxAuiDockInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_op_set[] = { &wxluatype_wxAuiDockInfo, &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_op_set[1] = {{ wxLua_wxAuiDockInfo_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockInfo_op_set }}; -// wxAuiDockInfo& operator=(const wxAuiDockInfo& c); -static int LUACALL wxLua_wxAuiDockInfo_op_set(lua_State *L) -{ - // const wxAuiDockInfo c - const wxAuiDockInfo * c = (const wxAuiDockInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiDockInfo); - // get this - wxAuiDockInfo * self = (wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // call op_set - (*self)=(*c); - wxAuiDockInfo* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockInfo_constructor1[] = { &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockInfo_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_constructor1[1] = {{ wxLua_wxAuiDockInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_constructor1 }}; -// wxAuiDockInfo(const wxAuiDockInfo& c); -static int LUACALL wxLua_wxAuiDockInfo_constructor1(lua_State *L) -{ - // const wxAuiDockInfo c - const wxAuiDockInfo * c = (const wxAuiDockInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockInfo); - // call constructor - wxAuiDockInfo* returns = new wxAuiDockInfo(*c); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiDockInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); - - return 1; -} - -static int LUACALL wxLua_wxAuiDockInfo_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_constructor[1] = {{ wxLua_wxAuiDockInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiDockInfo(); -static int LUACALL wxLua_wxAuiDockInfo_constructor(lua_State *L) -{ - // call constructor - wxAuiDockInfo* returns = new wxAuiDockInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAuiDockInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiDockInfo); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockInfo_constructor_overload[] = -{ - { wxLua_wxAuiDockInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockInfo_constructor1 }, - { wxLua_wxAuiDockInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiDockInfo_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiDockInfo_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiDockInfo_delete_function(void** p) -{ - wxAuiDockInfo* o = (wxAuiDockInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiDockInfo_methods[] = { - // %member { "Get_dock_direction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_direction, 1, NULL }, - // %member { "Get_dock_layer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_layer, 1, NULL }, - // %member { "Get_dock_row", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_row, 1, NULL }, - // %member { "Get_fixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_fixed, 1, NULL }, - // %member { "Get_min_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_min_size, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Get_reserved1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_reserved1, 1, NULL }, - // %member { "Get_resizable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_resizable, 1, NULL }, - // %member { "Get_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_size, 1, NULL }, - // %member { "Get_toolbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Get_toolbar, 1, NULL }, - { "IsHorizontal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_IsHorizontal, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_IsOk, 1, NULL }, - { "IsVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_IsVertical, 1, NULL }, - // %member { "Set_dock_direction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_direction, 1, NULL }, - // %member { "Set_dock_layer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_layer, 1, NULL }, - // %member { "Set_dock_row", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_row, 1, NULL }, - // %member { "Set_fixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_fixed, 1, NULL }, - // %member { "Set_min_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_min_size, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - // %member { "Set_reserved1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_reserved1, 1, NULL }, - // %member { "Set_resizable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_resizable, 1, NULL }, - // %member { "Set_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_size, 1, NULL }, - // %member { "Set_toolbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_Set_toolbar, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiDockInfo_delete, 1, NULL }, - { "dock_direction", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_direction, 1, NULL }, - { "dock_direction", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_direction, 1, NULL }, - { "dock_layer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_layer, 1, NULL }, - { "dock_layer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_layer, 1, NULL }, - { "dock_row", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_dock_row, 1, NULL }, - { "dock_row", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_dock_row, 1, NULL }, - { "fixed", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_fixed, 1, NULL }, - { "fixed", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_fixed, 1, NULL }, - { "min_size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_min_size, 1, NULL }, - { "min_size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_min_size, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockInfo_op_set, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "rect", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_rect, 1, NULL }, - { "rect", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "reserved1", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_reserved1, 1, NULL }, - { "reserved1", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_reserved1, 1, NULL }, - { "resizable", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_resizable, 1, NULL }, - { "resizable", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_resizable, 1, NULL }, - { "size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_size, 1, NULL }, - { "size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_size, 1, NULL }, - { "toolbar", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Set_toolbar, 1, NULL }, - { "toolbar", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockInfo_Get_toolbar, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiDockInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiDockInfo_constructor_overload, s_wxluafunc_wxLua_wxAuiDockInfo_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiDockInfo_methodCount = sizeof(wxAuiDockInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiDockUIPart -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiDockUIPart' -int wxluatype_wxAuiDockUIPart = WXLUA_TUNKNOWN; - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_button[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_button(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_button[1] = {{ wxLua_wxAuiDockUIPart_Get_button, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_button }}; -// !%wxchkver_3_1_4 wxAuiPaneButton* button; // which pane button the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Get_button(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result datatype - wxluaT_pushuserdatatype(L, self->button, wxluatype_wxAuiPaneButton); - // return the number of values - return 1; -} - -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_button[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_button(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_button[1] = {{ wxLua_wxAuiDockUIPart_Get_button, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_button }}; -// %wxchkver_3_1_4 int button; // which pane button the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Get_button(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->button) == (double)(self->button)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->button); -} else -#endif -{ - lua_pushnumber(L, self->button); -} - // return the number of values - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_cont_sizer[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_cont_sizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_cont_sizer[1] = {{ wxLua_wxAuiDockUIPart_Get_cont_sizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_cont_sizer }}; -// wxSizer* cont_sizer; // the part's containing sizer -static int LUACALL wxLua_wxAuiDockUIPart_Get_cont_sizer(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result datatype - wxluaT_pushuserdatatype(L, self->cont_sizer, wxluatype_wxSizer); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_dock[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_dock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_dock[1] = {{ wxLua_wxAuiDockUIPart_Get_dock, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_dock }}; -// wxAuiDockInfo* dock; // which dock the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Get_dock(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result datatype - wxluaT_pushuserdatatype(L, self->dock, wxluatype_wxAuiDockInfo); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_orientation[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_orientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_orientation[1] = {{ wxLua_wxAuiDockUIPart_Get_orientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_orientation }}; -// int orientation; // orientation (either wxHORIZONTAL or wxVERTICAL); -static int LUACALL wxLua_wxAuiDockUIPart_Get_orientation(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->orientation) == (double)(self->orientation)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->orientation); -} else -#endif -{ - lua_pushnumber(L, self->orientation); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_pane[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_pane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_pane[1] = {{ wxLua_wxAuiDockUIPart_Get_pane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_pane }}; -// wxAuiPaneInfo* pane; // which pane the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Get_pane(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result datatype - wxluaT_pushuserdatatype(L, self->pane, wxluatype_wxAuiPaneInfo); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_rect[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_rect[1] = {{ wxLua_wxAuiDockUIPart_Get_rect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_rect }}; -// wxRect rect; // client coord rectangle of the part itself -static int LUACALL wxLua_wxAuiDockUIPart_Get_rect(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->rect, wxluatype_wxRect); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_sizer_item[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_sizer_item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_sizer_item[1] = {{ wxLua_wxAuiDockUIPart_Get_sizer_item, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_sizer_item }}; -// wxSizerItem* sizer_item; // the sizer item of the part -static int LUACALL wxLua_wxAuiDockUIPart_Get_sizer_item(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result datatype - wxluaT_pushuserdatatype(L, self->sizer_item, wxluatype_wxSizerItem); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_type[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Get_type(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Get_type[1] = {{ wxLua_wxAuiDockUIPart_Get_type, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Get_type }}; -// int type; // ui part type (see enum above); -static int LUACALL wxLua_wxAuiDockUIPart_Get_type(lua_State *L) -{ - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->type) == (double)(self->type)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->type); -} else -#endif -{ - lua_pushnumber(L, self->type); -} - // return the number of values - return 1; -} - - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_button[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_wxAuiPaneButton, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_button(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_button[1] = {{ wxLua_wxAuiDockUIPart_Set_button, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_button }}; -// !%wxchkver_3_1_4 wxAuiPaneButton* button; // which pane button the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Set_button(lua_State *L) -{ - // get the data type value - wxAuiPaneButton* val = (wxAuiPaneButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneButton); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->button = val; - // return the number of values - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_button[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_button(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_button[1] = {{ wxLua_wxAuiDockUIPart_Set_button, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_button }}; -// %wxchkver_3_1_4 int button; // which pane button the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Set_button(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->button = val; - // return the number of values - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_cont_sizer[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_cont_sizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_cont_sizer[1] = {{ wxLua_wxAuiDockUIPart_Set_cont_sizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_cont_sizer }}; -// wxSizer* cont_sizer; // the part's containing sizer -static int LUACALL wxLua_wxAuiDockUIPart_Set_cont_sizer(lua_State *L) -{ - // get the data type value - wxSizer* val = (wxSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->cont_sizer = val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_dock[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_wxAuiDockInfo, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_dock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_dock[1] = {{ wxLua_wxAuiDockUIPart_Set_dock, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_dock }}; -// wxAuiDockInfo* dock; // which dock the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Set_dock(lua_State *L) -{ - // get the data type value - wxAuiDockInfo* val = (wxAuiDockInfo*)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiDockInfo); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->dock = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_orientation[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_orientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_orientation[1] = {{ wxLua_wxAuiDockUIPart_Set_orientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_orientation }}; -// int orientation; // orientation (either wxHORIZONTAL or wxVERTICAL); -static int LUACALL wxLua_wxAuiDockUIPart_Set_orientation(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->orientation = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_pane[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_wxAuiPaneInfo, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_pane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_pane[1] = {{ wxLua_wxAuiDockUIPart_Set_pane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_pane }}; -// wxAuiPaneInfo* pane; // which pane the item is associated with -static int LUACALL wxLua_wxAuiDockUIPart_Set_pane(lua_State *L) -{ - // get the data type value - wxAuiPaneInfo* val = (wxAuiPaneInfo*)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiPaneInfo); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->pane = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_rect[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_rect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_rect[1] = {{ wxLua_wxAuiDockUIPart_Set_rect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_rect }}; -// wxRect rect; // client coord rectangle of the part itself -static int LUACALL wxLua_wxAuiDockUIPart_Set_rect(lua_State *L) -{ - // get the data type value - wxRect* val = (wxRect*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->rect = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_sizer_item[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_sizer_item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_sizer_item[1] = {{ wxLua_wxAuiDockUIPart_Set_sizer_item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_sizer_item }}; -// wxSizerItem* sizer_item; // the sizer item of the part -static int LUACALL wxLua_wxAuiDockUIPart_Set_sizer_item(lua_State *L) -{ - // get the data type value - wxSizerItem* val = (wxSizerItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizerItem); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->sizer_item = val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_type[] = { &wxluatype_wxAuiDockUIPart, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiDockUIPart_Set_type(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_Set_type[1] = {{ wxLua_wxAuiDockUIPart_Set_type, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiDockUIPart_Set_type }}; -// int type; // ui part type (see enum above); -static int LUACALL wxLua_wxAuiDockUIPart_Set_type(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiDockUIPart *self = (wxAuiDockUIPart *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiDockUIPart); - self->type = val; - // return the number of values - return 0; -} - - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiDockUIPart_delete[] = { &wxluatype_wxAuiDockUIPart, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiDockUIPart_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiDockUIPart_delete }}; - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - - - -void wxLua_wxAuiDockUIPart_delete_function(void** p) -{ - wxAuiDockUIPart* o = (wxAuiDockUIPart*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiDockUIPart_methods[] = { -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Get_button", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_button, 1, NULL }, -#elif (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Get_button", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_button, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Get_cont_sizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_cont_sizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - // %member { "Get_dock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_dock, 1, NULL }, - // %member { "Get_orientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_orientation, 1, NULL }, - // %member { "Get_pane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_pane, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Get_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Get_sizer_item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_sizer_item, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - // %member { "Get_type", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_type, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Set_button", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_button, 1, NULL }, -#elif (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Set_button", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_button, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Set_cont_sizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_cont_sizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - // %member { "Set_dock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_dock, 1, NULL }, - // %member { "Set_orientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_orientation, 1, NULL }, - // %member { "Set_pane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_pane, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - // %member { "Set_rect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - // %member { "Set_sizer_item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_sizer_item, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - // %member { "Set_type", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_type, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "button", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_button, 1, NULL }, - { "button", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_button, 1, NULL }, -#elif (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "button", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_button, 1, NULL }, -#elif (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "button", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_button, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "cont_sizer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_cont_sizer, 1, NULL }, - { "cont_sizer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_cont_sizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiDockUIPart_delete, 1, NULL }, - { "dock", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_dock, 1, NULL }, - { "dock", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_dock, 1, NULL }, - { "orientation", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_orientation, 1, NULL }, - { "orientation", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_orientation, 1, NULL }, - { "pane", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_pane, 1, NULL }, - { "pane", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_pane, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "rect", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_rect, 1, NULL }, - { "rect", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_rect, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "sizer_item", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_sizer_item, 1, NULL }, - { "sizer_item", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_sizer_item, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "type", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Set_type, 1, NULL }, - { "type", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiDockUIPart_Get_type, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiDockUIPart_methodCount = sizeof(wxAuiDockUIPart_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxAuiDockUIPart_enums[] = { -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "typeBackground", wxAuiDockUIPart::typeBackground }, - { "typeCaption", wxAuiDockUIPart::typeCaption }, - { "typeDock", wxAuiDockUIPart::typeDock }, - { "typeDockSizer", wxAuiDockUIPart::typeDockSizer }, - { "typeGripper", wxAuiDockUIPart::typeGripper }, - { "typePane", wxAuiDockUIPart::typePane }, - { "typePaneBorder", wxAuiDockUIPart::typePaneBorder }, - { "typePaneButton", wxAuiDockUIPart::typePaneButton }, - { "typePaneSizer", wxAuiDockUIPart::typePaneSizer }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - { NULL, 0, }, -}; -int wxAuiDockUIPart_enumCount = sizeof(wxAuiDockUIPart_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// --------------------------------------------------------------------------- -// Bind class wxAuiPaneButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiPaneButton' -int wxluatype_wxAuiPaneButton = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneButton_Get_button_id[] = { &wxluatype_wxAuiPaneButton, NULL }; -static int LUACALL wxLua_wxAuiPaneButton_Get_button_id(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneButton_Get_button_id[1] = {{ wxLua_wxAuiPaneButton_Get_button_id, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneButton_Get_button_id }}; -// int button_id; // id of the button (e.g. buttonClose); -static int LUACALL wxLua_wxAuiPaneButton_Get_button_id(lua_State *L) -{ - // get this - wxAuiPaneButton *self = (wxAuiPaneButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneButton); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->button_id) == (double)(self->button_id)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->button_id); -} else -#endif -{ - lua_pushnumber(L, self->button_id); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneButton_Set_button_id[] = { &wxluatype_wxAuiPaneButton, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiPaneButton_Set_button_id(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneButton_Set_button_id[1] = {{ wxLua_wxAuiPaneButton_Set_button_id, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiPaneButton_Set_button_id }}; -// int button_id; // id of the button (e.g. buttonClose); -static int LUACALL wxLua_wxAuiPaneButton_Set_button_id(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiPaneButton *self = (wxAuiPaneButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiPaneButton); - self->button_id = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiPaneButton_delete[] = { &wxluatype_wxAuiPaneButton, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiPaneButton_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAuiPaneButton_delete }}; - - - - -void wxLua_wxAuiPaneButton_delete_function(void** p) -{ - wxAuiPaneButton* o = (wxAuiPaneButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiPaneButton_methods[] = { - // %member { "Get_button_id", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneButton_Get_button_id, 1, NULL }, - // %member { "Set_button_id", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiPaneButton_Set_button_id, 1, NULL }, - { "button_id", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxAuiPaneButton_Set_button_id, 1, NULL }, - { "button_id", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxAuiPaneButton_Get_button_id, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAuiPaneButton_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAuiPaneButton_methodCount = sizeof(wxAuiPaneButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiMDIParentFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiMDIParentFrame' -int wxluatype_wxAuiMDIParentFrame = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ActivateNext[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_ActivateNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_ActivateNext[1] = {{ wxLua_wxAuiMDIParentFrame_ActivateNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ActivateNext }}; -// virtual void ActivateNext(); -static int LUACALL wxLua_wxAuiMDIParentFrame_ActivateNext(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call ActivateNext - self->ActivateNext(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ActivatePrevious[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_ActivatePrevious(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_ActivatePrevious[1] = {{ wxLua_wxAuiMDIParentFrame_ActivatePrevious, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ActivatePrevious }}; -// virtual void ActivatePrevious(); -static int LUACALL wxLua_wxAuiMDIParentFrame_ActivatePrevious(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call ActivatePrevious - self->ActivatePrevious(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ArrangeIcons[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_ArrangeIcons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_ArrangeIcons[1] = {{ wxLua_wxAuiMDIParentFrame_ArrangeIcons, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ArrangeIcons }}; -// virtual void ArrangeIcons(); //{ /* Has no effect */ } -static int LUACALL wxLua_wxAuiMDIParentFrame_ArrangeIcons(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call ArrangeIcons - self->ArrangeIcons(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_Cascade[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_Cascade(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_Cascade[1] = {{ wxLua_wxAuiMDIParentFrame_Cascade, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_Cascade }}; -// virtual void Cascade(); //{ /* Has no effect */ } -static int LUACALL wxLua_wxAuiMDIParentFrame_Cascade(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call Cascade - self->Cascade(); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_Create[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_Create[1] = {{ wxLua_wxAuiMDIParentFrame_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_Create }}; -// bool Create(wxWindow *parent, wxWindowID winid, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,const wxString& name = "wxAuiMDIParentFrame"); -static int LUACALL wxLua_wxAuiMDIParentFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxAuiMDIParentFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxAuiMDIParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call Create - bool returns = (self->Create(parent, winid, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetActiveChild[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetActiveChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetActiveChild[1] = {{ wxLua_wxAuiMDIParentFrame_GetActiveChild, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetActiveChild }}; -// wxAuiMDIChildFrame *GetActiveChild() const; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetActiveChild(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call GetActiveChild - wxAuiMDIChildFrame* returns = (wxAuiMDIChildFrame*)self->GetActiveChild(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIChildFrame); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetArtProvider[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetArtProvider[1] = {{ wxLua_wxAuiMDIParentFrame_GetArtProvider, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetArtProvider }}; -// wxAuiTabArt* GetArtProvider(); -static int LUACALL wxLua_wxAuiMDIParentFrame_GetArtProvider(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call GetArtProvider - wxAuiTabArt* returns = (wxAuiTabArt*)self->GetArtProvider(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiTabArt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetClientWindow[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetClientWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetClientWindow[1] = {{ wxLua_wxAuiMDIParentFrame_GetClientWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetClientWindow }}; -// wxAuiMDIClientWindow *GetClientWindow() const; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetClientWindow(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call GetClientWindow - wxAuiMDIClientWindow* returns = (wxAuiMDIClientWindow*)self->GetClientWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIClientWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetNotebook[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetNotebook(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetNotebook[1] = {{ wxLua_wxAuiMDIParentFrame_GetNotebook, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetNotebook }}; -// wxAuiNotebook* GetNotebook() const; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetNotebook(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call GetNotebook - wxAuiNotebook* returns = (wxAuiNotebook*)self->GetNotebook(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiNotebook); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetWindowMenu[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetWindowMenu[1] = {{ wxLua_wxAuiMDIParentFrame_GetWindowMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_GetWindowMenu }}; -// wxMenu* GetWindowMenu() const; -static int LUACALL wxLua_wxAuiMDIParentFrame_GetWindowMenu(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call GetWindowMenu - wxMenu* returns = (wxMenu*)self->GetWindowMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_OnCreateClient[] = { &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_OnCreateClient(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_OnCreateClient[1] = {{ wxLua_wxAuiMDIParentFrame_OnCreateClient, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_OnCreateClient }}; -// virtual wxAuiMDIClientWindow *OnCreateClient(); -static int LUACALL wxLua_wxAuiMDIParentFrame_OnCreateClient(lua_State *L) -{ - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call OnCreateClient - wxAuiMDIClientWindow* returns = (wxAuiMDIClientWindow*)self->OnCreateClient(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIClientWindow); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ProcessEvent[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_ProcessEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_ProcessEvent[1] = {{ wxLua_wxAuiMDIParentFrame_ProcessEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_ProcessEvent }}; -// !%wxchkver_2_9_2 virtual bool ProcessEvent(wxEvent& event); -static int LUACALL wxLua_wxAuiMDIParentFrame_ProcessEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call ProcessEvent - bool returns = (self->ProcessEvent(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetActiveChild[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_SetActiveChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetActiveChild[1] = {{ wxLua_wxAuiMDIParentFrame_SetActiveChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetActiveChild }}; -// void SetActiveChild(wxAuiMDIChildFrame* pChildFrame); -static int LUACALL wxLua_wxAuiMDIParentFrame_SetActiveChild(lua_State *L) -{ - // wxAuiMDIChildFrame pChildFrame - wxAuiMDIChildFrame * pChildFrame = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiMDIChildFrame); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call SetActiveChild - self->SetActiveChild(pChildFrame); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetArtProvider[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxAuiTabArt, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_SetArtProvider(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetArtProvider[1] = {{ wxLua_wxAuiMDIParentFrame_SetArtProvider, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetArtProvider }}; -// void SetArtProvider(%ungc wxAuiTabArt* provider); -static int LUACALL wxLua_wxAuiMDIParentFrame_SetArtProvider(lua_State *L) -{ - // wxAuiTabArt provider - wxAuiTabArt * provider = (wxAuiTabArt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiTabArt); - if (wxluaO_isgcobject(L, provider)) wxluaO_undeletegcobject(L, provider); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call SetArtProvider - self->SetArtProvider(provider); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetChildMenuBar[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_SetChildMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetChildMenuBar[1] = {{ wxLua_wxAuiMDIParentFrame_SetChildMenuBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetChildMenuBar }}; -// void SetChildMenuBar(wxAuiMDIChildFrame *pChild); -static int LUACALL wxLua_wxAuiMDIParentFrame_SetChildMenuBar(lua_State *L) -{ - // wxAuiMDIChildFrame pChild - wxAuiMDIChildFrame * pChild = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiMDIChildFrame); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call SetChildMenuBar - self->SetChildMenuBar(pChild); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetMenuBar[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_SetMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetMenuBar[1] = {{ wxLua_wxAuiMDIParentFrame_SetMenuBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetMenuBar }}; -// virtual void SetMenuBar(wxMenuBar *pMenuBar); -static int LUACALL wxLua_wxAuiMDIParentFrame_SetMenuBar(lua_State *L) -{ - // wxMenuBar pMenuBar - wxMenuBar * pMenuBar = (wxMenuBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuBar); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call SetMenuBar - self->SetMenuBar(pMenuBar); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetWindowMenu[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_SetWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetWindowMenu[1] = {{ wxLua_wxAuiMDIParentFrame_SetWindowMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_SetWindowMenu }}; -// void SetWindowMenu(wxMenu* pMenu); -static int LUACALL wxLua_wxAuiMDIParentFrame_SetWindowMenu(lua_State *L) -{ - // wxMenu pMenu - wxMenu * pMenu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call SetWindowMenu - self->SetWindowMenu(pMenu); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_Tile[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_Tile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_Tile[1] = {{ wxLua_wxAuiMDIParentFrame_Tile, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_Tile }}; -// virtual void Tile(wxOrientation orient = wxHORIZONTAL); -static int LUACALL wxLua_wxAuiMDIParentFrame_Tile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxOrientation orient = wxHORIZONTAL - wxOrientation orient = (argCount >= 2 ? (wxOrientation)wxlua_getenumtype(L, 2) : wxHORIZONTAL); - // get this - wxAuiMDIParentFrame * self = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call Tile - self->Tile(orient); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIParentFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor1[1] = {{ wxLua_wxAuiMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_constructor1 }}; -// wxAuiMDIParentFrame(wxWindow *parent, wxWindowID winid, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = "wxAuiMDIParentFrame"); -static int LUACALL wxLua_wxAuiMDIParentFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxAuiMDIParentFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxAuiMDIParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAuiMDIParentFrame* returns = new wxAuiMDIParentFrame(parent, winid, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIParentFrame); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxAuiMDIParentFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor[1] = {{ wxLua_wxAuiMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiMDIParentFrame(); -static int LUACALL wxLua_wxAuiMDIParentFrame_constructor(lua_State *L) -{ - // call constructor - wxAuiMDIParentFrame* returns = new wxAuiMDIParentFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIParentFrame); - - return 1; -} - - - - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor_overload[] = -{ - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxAuiMDIParentFrame_constructor1 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiMDIParentFrame_delete_function(void** p) -{ - wxAuiMDIParentFrame* o = (wxAuiMDIParentFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiMDIParentFrame_methods[] = { - { "ActivateNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_ActivateNext, 1, NULL }, - { "ActivatePrevious", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_ActivatePrevious, 1, NULL }, - { "ArrangeIcons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_ArrangeIcons, 1, NULL }, - { "Cascade", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_Cascade, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_Create, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - - { "GetActiveChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetActiveChild, 1, NULL }, - { "GetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetArtProvider, 1, NULL }, - { "GetClientWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetClientWindow, 1, NULL }, - { "GetNotebook", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetNotebook, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetWindowMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_GetWindowMenu, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "OnCreateClient", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_OnCreateClient, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "ProcessEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_ProcessEvent, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "SetActiveChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetActiveChild, 1, NULL }, - { "SetArtProvider", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetArtProvider, 1, NULL }, - { "SetChildMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetChildMenuBar, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetMenuBar, 1, NULL }, - { "SetWindowMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_SetWindowMenu, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Tile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIParentFrame_Tile, 1, NULL }, - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiMDIParentFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor_overload, s_wxluafunc_wxLua_wxAuiMDIParentFrame_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiMDIParentFrame_methodCount = sizeof(wxAuiMDIParentFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiMDIChildFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiMDIChildFrame' -int wxluatype_wxAuiMDIChildFrame = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Activate[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Activate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Activate[1] = {{ wxLua_wxAuiMDIChildFrame_Activate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Activate }}; -// virtual void Activate(); -static int LUACALL wxLua_wxAuiMDIChildFrame_Activate(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Activate - self->Activate(); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect[1] = {{ wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect }}; -// !%wxchkver_3_1_1 void ApplyMDIChildFrameRect(); -static int LUACALL wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call ApplyMDIChildFrameRect - self->ApplyMDIChildFrameRect(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Create[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_wxAuiMDIParentFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Create[1] = {{ wxLua_wxAuiMDIChildFrame_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Create }}; -// bool Create(wxAuiMDIParentFrame *parent, wxWindowID winid, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxAuiMDIChildFrame"); -static int LUACALL wxLua_wxAuiMDIChildFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxAuiMDIChildFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxAuiMDIChildFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxAuiMDIParentFrame parent - wxAuiMDIParentFrame * parent = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiMDIParentFrame); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Create - bool returns = (self->Create(parent, winid, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_CreateStatusBar[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_CreateStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_CreateStatusBar[1] = {{ wxLua_wxAuiMDIChildFrame_CreateStatusBar, WXLUAMETHOD_METHOD, 1, 5, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_CreateStatusBar }}; -// virtual wxStatusBar* CreateStatusBar(int number = 1, long style = 1, wxWindowID winid = 1, const wxString& name = ""); -static int LUACALL wxLua_wxAuiMDIChildFrame_CreateStatusBar(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "" - const wxString name = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // wxWindowID winid = 1 - wxWindowID winid = (argCount >= 4 ? (wxWindowID)wxlua_getnumbertype(L, 4) : 1); - // long style = 1 - long style = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 1); - // int number = 1 - int number = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call CreateStatusBar - wxStatusBar* returns = (wxStatusBar*)self->CreateStatusBar(number, style, winid, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_CreateToolBar[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_CreateToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_CreateToolBar[1] = {{ wxLua_wxAuiMDIChildFrame_CreateToolBar, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_CreateToolBar }}; -// wxToolBar* CreateToolBar(long style, wxWindowID winid, const wxString& name); -static int LUACALL wxLua_wxAuiMDIChildFrame_CreateToolBar(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 3); - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call CreateToolBar - wxToolBar* returns = (wxToolBar*)self->CreateToolBar(style, winid, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Destroy[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Destroy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Destroy[1] = {{ wxLua_wxAuiMDIChildFrame_Destroy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Destroy }}; -// virtual bool Destroy(); -static int LUACALL wxLua_wxAuiMDIChildFrame_Destroy(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Destroy - bool returns = (self->Destroy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_DoShow[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_DoShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_DoShow[1] = {{ wxLua_wxAuiMDIChildFrame_DoShow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_DoShow }}; -// !%wxchkver_3_1_1 void DoShow(bool show); -static int LUACALL wxLua_wxAuiMDIChildFrame_DoShow(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call DoShow - self->DoShow(show); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetIcon[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetIcon[1] = {{ wxLua_wxAuiMDIChildFrame_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetIcon }}; -// %override wxLua_wxAuiMDIChildFrame_GetIcon -// virtual const wxIcon& GetIcon() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetIcon(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetIcon - const wxIcon returns = self->GetIcon(); - // push the result datatype - wxluaT_pushuserdatatype(L, &returns, wxluatype_wxIcon); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetIcons[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetIcons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetIcons[1] = {{ wxLua_wxAuiMDIChildFrame_GetIcons, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetIcons }}; -// %override wxLua_wxAuiMDIChildFrame_GetIcons -// virtual const wxIconBundle& GetIcons() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetIcons(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetIcons - const wxIconBundle returns = self->GetIcons(); - // push the result datatype - wxluaT_pushuserdatatype(L, &returns, wxluatype_wxIconBundle); - - return 1; -} - - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetMDIParentFrame[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetMDIParentFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetMDIParentFrame[1] = {{ wxLua_wxAuiMDIChildFrame_GetMDIParentFrame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetMDIParentFrame }}; -// wxAuiMDIParentFrame* GetMDIParentFrame() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetMDIParentFrame(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetMDIParentFrame - wxAuiMDIParentFrame* returns = (wxAuiMDIParentFrame*)self->GetMDIParentFrame(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIParentFrame); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetMenuBar[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetMenuBar[1] = {{ wxLua_wxAuiMDIChildFrame_GetMenuBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetMenuBar }}; -// virtual wxMenuBar *GetMenuBar() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetMenuBar(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetMenuBar - wxMenuBar* returns = (wxMenuBar*)self->GetMenuBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetStatusBar[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetStatusBar[1] = {{ wxLua_wxAuiMDIChildFrame_GetStatusBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetStatusBar }}; -// virtual wxStatusBar *GetStatusBar() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetStatusBar(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetStatusBar - wxStatusBar* returns = (wxStatusBar*)self->GetStatusBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetTitle[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetTitle[1] = {{ wxLua_wxAuiMDIChildFrame_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetTitle }}; -// virtual wxString GetTitle() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetTitle(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetToolBar[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetToolBar[1] = {{ wxLua_wxAuiMDIChildFrame_GetToolBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_GetToolBar }}; -// virtual wxToolBar *GetToolBar() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_GetToolBar(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call GetToolBar - wxToolBar* returns = (wxToolBar*)self->GetToolBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Iconize[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Iconize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Iconize[1] = {{ wxLua_wxAuiMDIChildFrame_Iconize, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Iconize }}; -// %wxchkver_3_1_1 void Iconize(bool iconize = true); -static int LUACALL wxLua_wxAuiMDIChildFrame_Iconize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool iconize = true - bool iconize = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Iconize - self->Iconize(iconize); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsFullScreen[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsFullScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsFullScreen[1] = {{ wxLua_wxAuiMDIChildFrame_IsFullScreen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsFullScreen }}; -// virtual bool IsFullScreen() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsFullScreen(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call IsFullScreen - bool returns = (self->IsFullScreen()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsIconized[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsIconized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsIconized[1] = {{ wxLua_wxAuiMDIChildFrame_IsIconized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsIconized }}; -// virtual bool IsIconized() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsIconized(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call IsIconized - bool returns = (self->IsIconized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsMaximized[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsMaximized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsMaximized[1] = {{ wxLua_wxAuiMDIChildFrame_IsMaximized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsMaximized }}; -// virtual bool IsMaximized() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsMaximized(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call IsMaximized - bool returns = (self->IsMaximized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsTopLevel[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsTopLevel[1] = {{ wxLua_wxAuiMDIChildFrame_IsTopLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_IsTopLevel }}; -// virtual bool IsTopLevel() const; -static int LUACALL wxLua_wxAuiMDIChildFrame_IsTopLevel(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call IsTopLevel - bool returns = (self->IsTopLevel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Maximize[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Maximize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Maximize[1] = {{ wxLua_wxAuiMDIChildFrame_Maximize, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Maximize }}; -// %wxchkver_3_1_1 void Maximize(bool maximize = true); -static int LUACALL wxLua_wxAuiMDIChildFrame_Maximize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool maximize = true - bool maximize = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Maximize - self->Maximize(maximize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Restore[] = { &wxluatype_wxAuiMDIChildFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Restore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Restore[1] = {{ wxLua_wxAuiMDIChildFrame_Restore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Restore }}; -// %wxchkver_3_1_1 void Restore(); -static int LUACALL wxLua_wxAuiMDIChildFrame_Restore(lua_State *L) -{ - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Restore - self->Restore(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetIcon[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetIcon[1] = {{ wxLua_wxAuiMDIChildFrame_SetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetIcon }}; -// virtual void SetIcon(const wxIcon& icon); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetIcon - self->SetIcon(*icon); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetIcons[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_wxIconBundle, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetIcons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetIcons[1] = {{ wxLua_wxAuiMDIChildFrame_SetIcons, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetIcons }}; -// virtual void SetIcons(const wxIconBundle& icons); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetIcons(lua_State *L) -{ - // const wxIconBundle icons - const wxIconBundle * icons = (const wxIconBundle *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIconBundle); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetIcons - self->SetIcons(*icons); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetMDIParentFrame[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_wxAuiMDIParentFrame, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetMDIParentFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetMDIParentFrame[1] = {{ wxLua_wxAuiMDIChildFrame_SetMDIParentFrame, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetMDIParentFrame }}; -// void SetMDIParentFrame(wxAuiMDIParentFrame* parent); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetMDIParentFrame(lua_State *L) -{ - // wxAuiMDIParentFrame parent - wxAuiMDIParentFrame * parent = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiMDIParentFrame); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetMDIParentFrame - self->SetMDIParentFrame(parent); - - return 0; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetMenuBar[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetMenuBar[1] = {{ wxLua_wxAuiMDIChildFrame_SetMenuBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetMenuBar }}; -// virtual void SetMenuBar(wxMenuBar *menu_bar); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetMenuBar(lua_State *L) -{ - // wxMenuBar menu_bar - wxMenuBar * menu_bar = (wxMenuBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuBar); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetMenuBar - self->SetMenuBar(menu_bar); - - return 0; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetStatusText[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetStatusText[1] = {{ wxLua_wxAuiMDIChildFrame_SetStatusText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetStatusText }}; -// void SetStatusText(const wxString &text, int number=0); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int number = 0 - int number = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetStatusText - self->SetStatusText(text, number); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetStatusWidths[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TNUMBER, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetStatusWidths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetStatusWidths[1] = {{ wxLua_wxAuiMDIChildFrame_SetStatusWidths, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetStatusWidths }}; -// void SetStatusWidths(int n, const int widths_field[]); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetStatusWidths(lua_State *L) -{ - // const int widths_field - int count = 0; wxLuaSmartIntArray widths_field = wxlua_getintarray(L, 3, count); - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetStatusWidths - self->SetStatusWidths(n, widths_field); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetTitle[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetTitle[1] = {{ wxLua_wxAuiMDIChildFrame_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_SetTitle }}; -// virtual void SetTitle(const wxString& title); -static int LUACALL wxLua_wxAuiMDIChildFrame_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call SetTitle - self->SetTitle(title); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Show[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_Show[1] = {{ wxLua_wxAuiMDIChildFrame_Show, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_Show }}; -// %wxchkver_3_1_1 bool Show(bool show = true); -static int LUACALL wxLua_wxAuiMDIChildFrame_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call Show - bool returns = (self->Show(show)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_ShowFullScreen[] = { &wxluatype_wxAuiMDIChildFrame, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_ShowFullScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_ShowFullScreen[1] = {{ wxLua_wxAuiMDIChildFrame_ShowFullScreen, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_ShowFullScreen }}; -// bool ShowFullScreen(bool show, long style); -static int LUACALL wxLua_wxAuiMDIChildFrame_ShowFullScreen(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 3); - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxAuiMDIChildFrame * self = (wxAuiMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIChildFrame); - // call ShowFullScreen - bool returns = (self->ShowFullScreen(show, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_constructor1[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAuiMDIChildFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor1[1] = {{ wxLua_wxAuiMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_constructor1 }}; -// wxAuiMDIChildFrame(wxAuiMDIParentFrame *parent, wxWindowID winid, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxAuiMDIChildFrame"); -static int LUACALL wxLua_wxAuiMDIChildFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxAuiMDIChildFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxAuiMDIChildFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxAuiMDIParentFrame parent - wxAuiMDIParentFrame * parent = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call constructor - wxAuiMDIChildFrame* returns = new wxAuiMDIChildFrame(parent, winid, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIChildFrame); - - return 1; -} - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxAuiMDIChildFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor[1] = {{ wxLua_wxAuiMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiMDIChildFrame(); -static int LUACALL wxLua_wxAuiMDIChildFrame_constructor(lua_State *L) -{ - // call constructor - wxAuiMDIChildFrame* returns = new wxAuiMDIChildFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIChildFrame); - - return 1; -} - - - - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor_overload[] = -{ - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxAuiMDIChildFrame_constructor1 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAuiMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiMDIChildFrame_delete_function(void** p) -{ - wxAuiMDIChildFrame* o = (wxAuiMDIChildFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiMDIChildFrame_methods[] = { - { "Activate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Activate, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "ApplyMDIChildFrameRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_ApplyMDIChildFrameRect, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Create, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "CreateStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_CreateStatusBar, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) - { "CreateToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_CreateToolBar, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) - - { "Destroy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Destroy, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "DoShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_DoShow, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetIcon, 1, NULL }, - { "GetIcons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetIcons, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) - - { "GetMDIParentFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetMDIParentFrame, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetMenuBar, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetStatusBar, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetTitle, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) - { "GetToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_GetToolBar, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxToolbar) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "Iconize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Iconize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "IsFullScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsFullScreen, 1, NULL }, - { "IsIconized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsIconized, 1, NULL }, - { "IsMaximized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsMaximized, 1, NULL }, - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_IsTopLevel, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "Maximize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Maximize, 1, NULL }, - { "Restore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Restore, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetIcon, 1, NULL }, - { "SetIcons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetIcons, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxIcon) - - { "SetMDIParentFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetMDIParentFrame, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetMenuBar, 1, NULL }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetStatusText, 1, NULL }, - { "SetStatusWidths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetStatusWidths, 1, NULL }, - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_SetTitle, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_Show, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { "ShowFullScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIChildFrame_ShowFullScreen, 1, NULL }, - -#if ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiMDIChildFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor_overload, s_wxluafunc_wxLua_wxAuiMDIChildFrame_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiMDIChildFrame_methodCount = sizeof(wxAuiMDIChildFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI -// --------------------------------------------------------------------------- -// Bind class wxAuiMDIClientWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAuiMDIClientWindow' -int wxluatype_wxAuiMDIClientWindow = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_CreateClient[] = { &wxluatype_wxAuiMDIClientWindow, &wxluatype_wxAuiMDIParentFrame, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiMDIClientWindow_CreateClient(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIClientWindow_CreateClient[1] = {{ wxLua_wxAuiMDIClientWindow_CreateClient, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_CreateClient }}; -// virtual bool CreateClient(wxAuiMDIParentFrame *parent, long style = wxVSCROLL | wxHSCROLL); -static int LUACALL wxLua_wxAuiMDIClientWindow_CreateClient(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxVSCROLL | wxHSCROLL - long style = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : wxVSCROLL | wxHSCROLL); - // wxAuiMDIParentFrame parent - wxAuiMDIParentFrame * parent = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAuiMDIParentFrame); - // get this - wxAuiMDIClientWindow * self = (wxAuiMDIClientWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIClientWindow); - // call CreateClient - bool returns = (self->CreateClient(parent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_SetSelection[] = { &wxluatype_wxAuiMDIClientWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAuiMDIClientWindow_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIClientWindow_SetSelection[1] = {{ wxLua_wxAuiMDIClientWindow_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_SetSelection }}; -// virtual int SetSelection(size_t page); -static int LUACALL wxLua_wxAuiMDIClientWindow_SetSelection(lua_State *L) -{ - // size_t page - size_t page = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxAuiMDIClientWindow * self = (wxAuiMDIClientWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIClientWindow); - // call SetSelection - int returns = (self->SetSelection(page)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_constructor1[] = { &wxluatype_wxAuiMDIParentFrame, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAuiMDIClientWindow_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor1[1] = {{ wxLua_wxAuiMDIClientWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_constructor1 }}; -// wxAuiMDIClientWindow(wxAuiMDIParentFrame *parent, long style = 0); -static int LUACALL wxLua_wxAuiMDIClientWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : 0); - // wxAuiMDIParentFrame parent - wxAuiMDIParentFrame * parent = (wxAuiMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAuiMDIParentFrame); - // call constructor - wxAuiMDIClientWindow* returns = new wxAuiMDIClientWindow(parent, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIClientWindow); - - return 1; -} - -static int LUACALL wxLua_wxAuiMDIClientWindow_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor[1] = {{ wxLua_wxAuiMDIClientWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAuiMDIClientWindow(); -static int LUACALL wxLua_wxAuiMDIClientWindow_constructor(lua_State *L) -{ - // call constructor - wxAuiMDIClientWindow* returns = new wxAuiMDIClientWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAuiMDIClientWindow); - - return 1; -} - - - - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor_overload[] = -{ - { wxLua_wxAuiMDIClientWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxAuiMDIClientWindow_constructor1 }, - { wxLua_wxAuiMDIClientWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -void wxLua_wxAuiMDIClientWindow_delete_function(void** p) -{ - wxAuiMDIClientWindow* o = (wxAuiMDIClientWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAuiMDIClientWindow_methods[] = { - { "CreateClient", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIClientWindow_CreateClient, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAuiMDIClientWindow_SetSelection, 1, NULL }, - -#if (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAuiMDIClientWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor_overload, s_wxluafunc_wxLua_wxAuiMDIClientWindow_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - - { 0, 0, 0, 0 }, -}; - -int wxAuiMDIClientWindow_methodCount = sizeof(wxAuiMDIClientWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxaui_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxaui() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxaui(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxEVT_AUINOTEBOOK_ALLOW_DND", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_ALLOW_DND), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_BEGIN_DRAG), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_BG_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_BG_DCLICK), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_BUTTON", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_BUTTON), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_DRAG_DONE", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_DRAG_DONE), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_DRAG_MOTION", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_DRAG_MOTION), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_END_DRAG), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_PAGE_CHANGED), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_PAGE_CHANGING), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_PAGE_CLOSE", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_PAGE_CLOSE), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_PAGE_CLOSED", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_PAGE_CLOSED), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUINOTEBOOK_TAB_RIGHT_UP", WXLUA_GET_wxEventType_ptr(wxEVT_AUINOTEBOOK_TAB_RIGHT_UP), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_AUITOOLBAR_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_AUITOOLBAR_BEGIN_DRAG), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_AUITOOLBAR_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_AUITOOLBAR_MIDDLE_CLICK), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_AUITOOLBAR_OVERFLOW_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_AUITOOLBAR_OVERFLOW_CLICK), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_AUITOOLBAR_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_AUITOOLBAR_RIGHT_CLICK), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_AUITOOLBAR_TOOL_DROPDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_AUITOOLBAR_TOOL_DROPDOWN), &wxluatype_wxAuiToolBarEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxEVT_AUI_FIND_MANAGER", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_FIND_MANAGER), &wxluatype_wxAuiManagerEvent }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxEVT_AUI_PANE_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_PANE_ACTIVATED), &wxluatype_wxAuiManagerEvent }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxEVT_AUI_PANE_BUTTON", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_PANE_BUTTON), &wxluatype_wxAuiManagerEvent }, - { "wxEVT_AUI_PANE_CLOSE", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_PANE_CLOSE), &wxluatype_wxAuiManagerEvent }, - { "wxEVT_AUI_PANE_MAXIMIZE", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_PANE_MAXIMIZE), &wxluatype_wxAuiManagerEvent }, - { "wxEVT_AUI_PANE_RESTORE", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_PANE_RESTORE), &wxluatype_wxAuiManagerEvent }, - { "wxEVT_AUI_RENDER", WXLUA_GET_wxEventType_ptr(wxEVT_AUI_RENDER), &wxluatype_wxAuiManagerEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG), &wxluatype_wxAuiNotebookEvent }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK), &wxluatype_wxAuiNotebookEvent }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxEVT_COMMAND_AUINOTEBOOK_BUTTON", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_BUTTON), &wxluatype_wxAuiNotebookEvent }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE), &wxluatype_wxAuiNotebookEvent }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_END_DRAG), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE), &wxluatype_wxAuiNotebookEvent }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -#if (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN), &wxluatype_wxAuiNotebookEvent }, - { "wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP), &wxluatype_wxAuiNotebookEvent }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK), &wxluatype_wxAuiToolBarEvent }, - { "wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN), &wxluatype_wxAuiToolBarEvent }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxaui() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxaui(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxAUI_BUTTON_CLOSE", wxAUI_BUTTON_CLOSE }, - { "wxAUI_BUTTON_CUSTOM1", wxAUI_BUTTON_CUSTOM1 }, - { "wxAUI_BUTTON_CUSTOM2", wxAUI_BUTTON_CUSTOM2 }, - { "wxAUI_BUTTON_CUSTOM3", wxAUI_BUTTON_CUSTOM3 }, - { "wxAUI_BUTTON_DOWN", wxAUI_BUTTON_DOWN }, - { "wxAUI_BUTTON_LEFT", wxAUI_BUTTON_LEFT }, - { "wxAUI_BUTTON_MAXIMIZE_RESTORE", wxAUI_BUTTON_MAXIMIZE_RESTORE }, - { "wxAUI_BUTTON_MINIMIZE", wxAUI_BUTTON_MINIMIZE }, - { "wxAUI_BUTTON_OPTIONS", wxAUI_BUTTON_OPTIONS }, - { "wxAUI_BUTTON_PIN", wxAUI_BUTTON_PIN }, - { "wxAUI_BUTTON_RIGHT", wxAUI_BUTTON_RIGHT }, - { "wxAUI_BUTTON_STATE_CHECKED", wxAUI_BUTTON_STATE_CHECKED }, - { "wxAUI_BUTTON_STATE_DISABLED", wxAUI_BUTTON_STATE_DISABLED }, - { "wxAUI_BUTTON_STATE_HIDDEN", wxAUI_BUTTON_STATE_HIDDEN }, - { "wxAUI_BUTTON_STATE_HOVER", wxAUI_BUTTON_STATE_HOVER }, - { "wxAUI_BUTTON_STATE_NORMAL", wxAUI_BUTTON_STATE_NORMAL }, - { "wxAUI_BUTTON_STATE_PRESSED", wxAUI_BUTTON_STATE_PRESSED }, - { "wxAUI_BUTTON_UP", wxAUI_BUTTON_UP }, - { "wxAUI_BUTTON_WINDOWLIST", wxAUI_BUTTON_WINDOWLIST }, - { "wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR", wxAUI_DOCKART_ACTIVE_CAPTION_COLOUR }, - { "wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR", wxAUI_DOCKART_ACTIVE_CAPTION_GRADIENT_COLOUR }, - { "wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR", wxAUI_DOCKART_ACTIVE_CAPTION_TEXT_COLOUR }, - { "wxAUI_DOCKART_BACKGROUND_COLOUR", wxAUI_DOCKART_BACKGROUND_COLOUR }, - { "wxAUI_DOCKART_BORDER_COLOUR", wxAUI_DOCKART_BORDER_COLOUR }, - { "wxAUI_DOCKART_CAPTION_FONT", wxAUI_DOCKART_CAPTION_FONT }, - { "wxAUI_DOCKART_CAPTION_SIZE", wxAUI_DOCKART_CAPTION_SIZE }, - { "wxAUI_DOCKART_GRADIENT_TYPE", wxAUI_DOCKART_GRADIENT_TYPE }, - { "wxAUI_DOCKART_GRIPPER_COLOUR", wxAUI_DOCKART_GRIPPER_COLOUR }, - { "wxAUI_DOCKART_GRIPPER_SIZE", wxAUI_DOCKART_GRIPPER_SIZE }, - { "wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR", wxAUI_DOCKART_INACTIVE_CAPTION_COLOUR }, - { "wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR", wxAUI_DOCKART_INACTIVE_CAPTION_GRADIENT_COLOUR }, - { "wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR", wxAUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR }, - { "wxAUI_DOCKART_PANE_BORDER_SIZE", wxAUI_DOCKART_PANE_BORDER_SIZE }, - { "wxAUI_DOCKART_PANE_BUTTON_SIZE", wxAUI_DOCKART_PANE_BUTTON_SIZE }, - { "wxAUI_DOCKART_SASH_COLOUR", wxAUI_DOCKART_SASH_COLOUR }, - { "wxAUI_DOCKART_SASH_SIZE", wxAUI_DOCKART_SASH_SIZE }, - { "wxAUI_DOCK_BOTTOM", wxAUI_DOCK_BOTTOM }, - { "wxAUI_DOCK_CENTER", wxAUI_DOCK_CENTER }, - { "wxAUI_DOCK_CENTRE", wxAUI_DOCK_CENTRE }, - { "wxAUI_DOCK_LEFT", wxAUI_DOCK_LEFT }, - { "wxAUI_DOCK_NONE", wxAUI_DOCK_NONE }, - { "wxAUI_DOCK_RIGHT", wxAUI_DOCK_RIGHT }, - { "wxAUI_DOCK_TOP", wxAUI_DOCK_TOP }, - { "wxAUI_GRADIENT_HORIZONTAL", wxAUI_GRADIENT_HORIZONTAL }, - { "wxAUI_GRADIENT_NONE", wxAUI_GRADIENT_NONE }, - { "wxAUI_GRADIENT_VERTICAL", wxAUI_GRADIENT_VERTICAL }, - { "wxAUI_INSERT_DOCK", wxAUI_INSERT_DOCK }, - { "wxAUI_INSERT_PANE", wxAUI_INSERT_PANE }, - { "wxAUI_INSERT_ROW", wxAUI_INSERT_ROW }, - { "wxAUI_MGR_ALLOW_ACTIVE_PANE", wxAUI_MGR_ALLOW_ACTIVE_PANE }, - { "wxAUI_MGR_ALLOW_FLOATING", wxAUI_MGR_ALLOW_FLOATING }, - { "wxAUI_MGR_DEFAULT", wxAUI_MGR_DEFAULT }, - { "wxAUI_MGR_HINT_FADE", wxAUI_MGR_HINT_FADE }, - { "wxAUI_MGR_NO_VENETIAN_BLINDS_FADE", wxAUI_MGR_NO_VENETIAN_BLINDS_FADE }, - { "wxAUI_MGR_RECTANGLE_HINT", wxAUI_MGR_RECTANGLE_HINT }, - { "wxAUI_MGR_TRANSPARENT_DRAG", wxAUI_MGR_TRANSPARENT_DRAG }, - { "wxAUI_MGR_TRANSPARENT_HINT", wxAUI_MGR_TRANSPARENT_HINT }, - { "wxAUI_MGR_VENETIAN_BLINDS_HINT", wxAUI_MGR_VENETIAN_BLINDS_HINT }, - { "wxAUI_NB_BOTTOM", wxAUI_NB_BOTTOM }, - { "wxAUI_NB_CLOSE_BUTTON", wxAUI_NB_CLOSE_BUTTON }, - { "wxAUI_NB_CLOSE_ON_ACTIVE_TAB", wxAUI_NB_CLOSE_ON_ACTIVE_TAB }, - { "wxAUI_NB_CLOSE_ON_ALL_TABS", wxAUI_NB_CLOSE_ON_ALL_TABS }, - { "wxAUI_NB_DEFAULT_STYLE", wxAUI_NB_DEFAULT_STYLE }, - { "wxAUI_NB_LEFT", wxAUI_NB_LEFT }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -#if (wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { "wxAUI_NB_MIDDLE_CLICK_CLOSE", wxAUI_NB_MIDDLE_CLICK_CLOSE }, -#endif // (wxCHECK_VERSION(2,8,6)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxAUI_NB_RIGHT", wxAUI_NB_RIGHT }, - { "wxAUI_NB_SCROLL_BUTTONS", wxAUI_NB_SCROLL_BUTTONS }, - { "wxAUI_NB_TAB_EXTERNAL_MOVE", wxAUI_NB_TAB_EXTERNAL_MOVE }, - { "wxAUI_NB_TAB_FIXED_WIDTH", wxAUI_NB_TAB_FIXED_WIDTH }, - { "wxAUI_NB_TAB_MOVE", wxAUI_NB_TAB_MOVE }, - { "wxAUI_NB_TAB_SPLIT", wxAUI_NB_TAB_SPLIT }, - { "wxAUI_NB_TOP", wxAUI_NB_TOP }, - { "wxAUI_NB_WINDOWLIST_BUTTON", wxAUI_NB_WINDOWLIST_BUTTON }, - { "wxAUI_TBART_GRIPPER_SIZE", wxAUI_TBART_GRIPPER_SIZE }, - { "wxAUI_TBART_OVERFLOW_SIZE", wxAUI_TBART_OVERFLOW_SIZE }, - { "wxAUI_TBART_SEPARATOR_SIZE", wxAUI_TBART_SEPARATOR_SIZE }, - { "wxAUI_TBTOOL_TEXT_BOTTOM", wxAUI_TBTOOL_TEXT_BOTTOM }, - { "wxAUI_TBTOOL_TEXT_LEFT", wxAUI_TBTOOL_TEXT_LEFT }, - { "wxAUI_TBTOOL_TEXT_RIGHT", wxAUI_TBTOOL_TEXT_RIGHT }, - { "wxAUI_TBTOOL_TEXT_TOP", wxAUI_TBTOOL_TEXT_TOP }, - { "wxAUI_TB_DEFAULT_STYLE", wxAUI_TB_DEFAULT_STYLE }, - { "wxAUI_TB_GRIPPER", wxAUI_TB_GRIPPER }, - { "wxAUI_TB_HORZ_LAYOUT", wxAUI_TB_HORZ_LAYOUT }, - { "wxAUI_TB_HORZ_TEXT", wxAUI_TB_HORZ_TEXT }, - { "wxAUI_TB_NO_AUTORESIZE", wxAUI_TB_NO_AUTORESIZE }, - { "wxAUI_TB_NO_TOOLTIPS", wxAUI_TB_NO_TOOLTIPS }, - { "wxAUI_TB_OVERFLOW", wxAUI_TB_OVERFLOW }, - { "wxAUI_TB_TEXT", wxAUI_TB_TEXT }, - { "wxAUI_TB_VERTICAL", wxAUI_TB_VERTICAL }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxaui() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxaui(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxaui() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxaui(size_t &count) -{ - static wxLuaBindObject objectList[] = - { -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { "wxAuiNullDockInfo", &wxluatype_wxAuiDockInfo, &wxAuiNullDockInfo, NULL }, - { "wxAuiNullPaneInfo", &wxluatype_wxAuiPaneInfo, &wxAuiNullPaneInfo, NULL }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxaui() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxaui() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxaui(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxaui() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxAuiDefaultDockArt = "wxAuiDefaultDockArt"; -static const char* wxluaclassname_wxAuiDefaultTabArt = "wxAuiDefaultTabArt"; -static const char* wxluaclassname_wxAuiDefaultToolBarArt = "wxAuiDefaultToolBarArt"; -static const char* wxluaclassname_wxAuiDockArt = "wxAuiDockArt"; -static const char* wxluaclassname_wxAuiDockInfo = "wxAuiDockInfo"; -static const char* wxluaclassname_wxAuiDockUIPart = "wxAuiDockUIPart"; -static const char* wxluaclassname_wxAuiFloatingFrame = "wxAuiFloatingFrame"; -static const char* wxluaclassname_wxAuiGenericTabArt = "wxAuiGenericTabArt"; -static const char* wxluaclassname_wxAuiMDIChildFrame = "wxAuiMDIChildFrame"; -static const char* wxluaclassname_wxAuiMDIClientWindow = "wxAuiMDIClientWindow"; -static const char* wxluaclassname_wxAuiMDIParentFrame = "wxAuiMDIParentFrame"; -static const char* wxluaclassname_wxAuiManager = "wxAuiManager"; -static const char* wxluaclassname_wxAuiManagerEvent = "wxAuiManagerEvent"; -static const char* wxluaclassname_wxAuiNotebook = "wxAuiNotebook"; -static const char* wxluaclassname_wxAuiNotebookEvent = "wxAuiNotebookEvent"; -static const char* wxluaclassname_wxAuiNotebookPage = "wxAuiNotebookPage"; -static const char* wxluaclassname_wxAuiNotebookPageArray = "wxAuiNotebookPageArray"; -static const char* wxluaclassname_wxAuiPaneButton = "wxAuiPaneButton"; -static const char* wxluaclassname_wxAuiPaneInfo = "wxAuiPaneInfo"; -static const char* wxluaclassname_wxAuiPaneInfoArray = "wxAuiPaneInfoArray"; -static const char* wxluaclassname_wxAuiSimpleTabArt = "wxAuiSimpleTabArt"; -static const char* wxluaclassname_wxAuiTabArt = "wxAuiTabArt"; -static const char* wxluaclassname_wxAuiTabContainerButton = "wxAuiTabContainerButton"; -static const char* wxluaclassname_wxAuiTabCtrl = "wxAuiTabCtrl"; -static const char* wxluaclassname_wxAuiToolBar = "wxAuiToolBar"; -static const char* wxluaclassname_wxAuiToolBarArt = "wxAuiToolBarArt"; -static const char* wxluaclassname_wxAuiToolBarEvent = "wxAuiToolBarEvent"; -static const char* wxluaclassname_wxAuiToolBarItem = "wxAuiToolBarItem"; -static const char* wxluaclassname_wxAuiToolBarItemArray = "wxAuiToolBarItemArray"; -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxEvtHandler = "wxEvtHandler"; -static const char* wxluaclassname_wxFrame = "wxFrame"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; -static const char* wxluaclassname_wxPanel = "wxPanel"; - -static const char* wxluabaseclassnames_wxAuiDefaultDockArt[] = { wxluaclassname_wxAuiDockArt, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiDefaultDockArt[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiDefaultTabArt[] = { wxluaclassname_wxAuiTabArt, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiDefaultTabArt[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiDefaultToolBarArt[] = { wxluaclassname_wxAuiToolBarArt, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiDefaultToolBarArt[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiFloatingFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiFloatingFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiGenericTabArt[] = { wxluaclassname_wxAuiTabArt, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiGenericTabArt[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiMDIChildFrame[] = { wxluaclassname_wxPanel, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiMDIChildFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiMDIClientWindow[] = { wxluaclassname_wxAuiNotebook, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiMDIClientWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiMDIParentFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiMDIParentFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiManager[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiManager[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiManagerEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiManagerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiNotebook[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiNotebook[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiNotebookEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiNotebookEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiSimpleTabArt[] = { wxluaclassname_wxAuiTabArt, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiSimpleTabArt[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiTabCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiTabCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiToolBar[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiToolBar[] = { NULL }; -static const char* wxluabaseclassnames_wxAuiToolBarEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAuiToolBarEvent[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - extern wxLuaBindMethod wxAuiPaneButton_methods[]; - extern int wxAuiPaneButton_methodCount; - extern void wxLua_wxAuiPaneButton_delete_function(void** p); -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - extern wxLuaBindMethod wxAuiDefaultDockArt_methods[]; - extern int wxAuiDefaultDockArt_methodCount; - extern void wxLua_wxAuiDefaultDockArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiDefaultTabArt_methods[]; - extern int wxAuiDefaultTabArt_methodCount; - extern void wxLua_wxAuiDefaultTabArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiDefaultToolBarArt_methods[]; - extern int wxAuiDefaultToolBarArt_methodCount; - extern void wxLua_wxAuiDefaultToolBarArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiDockArt_methods[]; - extern int wxAuiDockArt_methodCount; - extern void wxLua_wxAuiDockArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiDockInfo_methods[]; - extern int wxAuiDockInfo_methodCount; - extern void wxLua_wxAuiDockInfo_delete_function(void** p); - extern wxLuaBindMethod wxAuiDockUIPart_methods[]; - extern int wxAuiDockUIPart_methodCount; - extern wxLuaBindNumber wxAuiDockUIPart_enums[]; - extern int wxAuiDockUIPart_enumCount; - extern void wxLua_wxAuiDockUIPart_delete_function(void** p); - extern wxLuaBindMethod wxAuiFloatingFrame_methods[]; - extern int wxAuiFloatingFrame_methodCount; - extern void wxLua_wxAuiFloatingFrame_delete_function(void** p); - extern wxLuaBindMethod wxAuiGenericTabArt_methods[]; - extern int wxAuiGenericTabArt_methodCount; - extern void wxLua_wxAuiGenericTabArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiMDIChildFrame_methods[]; - extern int wxAuiMDIChildFrame_methodCount; - extern void wxLua_wxAuiMDIChildFrame_delete_function(void** p); - extern wxLuaBindMethod wxAuiMDIClientWindow_methods[]; - extern int wxAuiMDIClientWindow_methodCount; - extern void wxLua_wxAuiMDIClientWindow_delete_function(void** p); - extern wxLuaBindMethod wxAuiMDIParentFrame_methods[]; - extern int wxAuiMDIParentFrame_methodCount; - extern void wxLua_wxAuiMDIParentFrame_delete_function(void** p); - extern wxLuaBindMethod wxAuiManager_methods[]; - extern int wxAuiManager_methodCount; - extern void wxLua_wxAuiManager_delete_function(void** p); - extern wxLuaBindMethod wxAuiManagerEvent_methods[]; - extern int wxAuiManagerEvent_methodCount; - extern void wxLua_wxAuiManagerEvent_delete_function(void** p); - extern wxLuaBindMethod wxAuiNotebook_methods[]; - extern int wxAuiNotebook_methodCount; - extern void wxLua_wxAuiNotebook_delete_function(void** p); - extern wxLuaBindMethod wxAuiNotebookEvent_methods[]; - extern int wxAuiNotebookEvent_methodCount; - extern void wxLua_wxAuiNotebookEvent_delete_function(void** p); - extern wxLuaBindMethod wxAuiNotebookPage_methods[]; - extern int wxAuiNotebookPage_methodCount; - extern void wxLua_wxAuiNotebookPage_delete_function(void** p); - extern wxLuaBindMethod wxAuiNotebookPageArray_methods[]; - extern int wxAuiNotebookPageArray_methodCount; - extern void wxLua_wxAuiNotebookPageArray_delete_function(void** p); - extern wxLuaBindMethod wxAuiPaneInfo_methods[]; - extern int wxAuiPaneInfo_methodCount; - extern wxLuaBindNumber wxAuiPaneInfo_enums[]; - extern int wxAuiPaneInfo_enumCount; - extern void wxLua_wxAuiPaneInfo_delete_function(void** p); - extern wxLuaBindMethod wxAuiPaneInfoArray_methods[]; - extern int wxAuiPaneInfoArray_methodCount; - extern void wxLua_wxAuiPaneInfoArray_delete_function(void** p); - extern wxLuaBindMethod wxAuiSimpleTabArt_methods[]; - extern int wxAuiSimpleTabArt_methodCount; - extern void wxLua_wxAuiSimpleTabArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiTabArt_methods[]; - extern int wxAuiTabArt_methodCount; - extern void wxLua_wxAuiTabArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiTabContainerButton_methods[]; - extern int wxAuiTabContainerButton_methodCount; - extern void wxLua_wxAuiTabContainerButton_delete_function(void** p); - extern wxLuaBindMethod wxAuiTabCtrl_methods[]; - extern int wxAuiTabCtrl_methodCount; - extern void wxLua_wxAuiTabCtrl_delete_function(void** p); - extern wxLuaBindMethod wxAuiToolBar_methods[]; - extern int wxAuiToolBar_methodCount; - extern void wxLua_wxAuiToolBar_delete_function(void** p); - extern wxLuaBindMethod wxAuiToolBarArt_methods[]; - extern int wxAuiToolBarArt_methodCount; - extern void wxLua_wxAuiToolBarArt_delete_function(void** p); - extern wxLuaBindMethod wxAuiToolBarEvent_methods[]; - extern int wxAuiToolBarEvent_methodCount; - extern void wxLua_wxAuiToolBarEvent_delete_function(void** p); - extern wxLuaBindMethod wxAuiToolBarItem_methods[]; - extern int wxAuiToolBarItem_methodCount; - extern void wxLua_wxAuiToolBarItem_delete_function(void** p); - extern wxLuaBindMethod wxAuiToolBarItemArray_methods[]; - extern int wxAuiToolBarItemArray_methodCount; - extern void wxLua_wxAuiToolBarItemArray_delete_function(void** p); -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - - -wxLuaBindClass* wxLuaGetClassList_wxaui(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { wxluaclassname_wxAuiDefaultDockArt, wxAuiDefaultDockArt_methods, wxAuiDefaultDockArt_methodCount, NULL, &wxluatype_wxAuiDefaultDockArt, wxluabaseclassnames_wxAuiDefaultDockArt, wxluabaseclassbinds_wxAuiDefaultDockArt, NULL, NULL, NULL, 0, &wxLua_wxAuiDefaultDockArt_delete_function, }, - { wxluaclassname_wxAuiDefaultTabArt, wxAuiDefaultTabArt_methods, wxAuiDefaultTabArt_methodCount, NULL, &wxluatype_wxAuiDefaultTabArt, wxluabaseclassnames_wxAuiDefaultTabArt, wxluabaseclassbinds_wxAuiDefaultTabArt, NULL, NULL, NULL, 0, &wxLua_wxAuiDefaultTabArt_delete_function, }, - { wxluaclassname_wxAuiDefaultToolBarArt, wxAuiDefaultToolBarArt_methods, wxAuiDefaultToolBarArt_methodCount, NULL, &wxluatype_wxAuiDefaultToolBarArt, wxluabaseclassnames_wxAuiDefaultToolBarArt, wxluabaseclassbinds_wxAuiDefaultToolBarArt, NULL, NULL, NULL, 0, &wxLua_wxAuiDefaultToolBarArt_delete_function, }, - { wxluaclassname_wxAuiDockArt, wxAuiDockArt_methods, wxAuiDockArt_methodCount, NULL, &wxluatype_wxAuiDockArt, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiDockArt_delete_function, }, - { wxluaclassname_wxAuiDockInfo, wxAuiDockInfo_methods, wxAuiDockInfo_methodCount, NULL, &wxluatype_wxAuiDockInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiDockInfo_delete_function, }, - { wxluaclassname_wxAuiDockUIPart, wxAuiDockUIPart_methods, wxAuiDockUIPart_methodCount, NULL, &wxluatype_wxAuiDockUIPart, NULL, NULL, NULL, NULL, wxAuiDockUIPart_enums, wxAuiDockUIPart_enumCount, &wxLua_wxAuiDockUIPart_delete_function, }, - { wxluaclassname_wxAuiFloatingFrame, wxAuiFloatingFrame_methods, wxAuiFloatingFrame_methodCount, CLASSINFO(wxAuiFloatingFrame), &wxluatype_wxAuiFloatingFrame, wxluabaseclassnames_wxAuiFloatingFrame, wxluabaseclassbinds_wxAuiFloatingFrame, NULL, NULL, NULL, 0, &wxLua_wxAuiFloatingFrame_delete_function, }, - { wxluaclassname_wxAuiGenericTabArt, wxAuiGenericTabArt_methods, wxAuiGenericTabArt_methodCount, NULL, &wxluatype_wxAuiGenericTabArt, wxluabaseclassnames_wxAuiGenericTabArt, wxluabaseclassbinds_wxAuiGenericTabArt, NULL, NULL, NULL, 0, &wxLua_wxAuiGenericTabArt_delete_function, }, - { wxluaclassname_wxAuiMDIChildFrame, wxAuiMDIChildFrame_methods, wxAuiMDIChildFrame_methodCount, CLASSINFO(wxAuiMDIChildFrame), &wxluatype_wxAuiMDIChildFrame, wxluabaseclassnames_wxAuiMDIChildFrame, wxluabaseclassbinds_wxAuiMDIChildFrame, NULL, NULL, NULL, 0, &wxLua_wxAuiMDIChildFrame_delete_function, }, - { wxluaclassname_wxAuiMDIClientWindow, wxAuiMDIClientWindow_methods, wxAuiMDIClientWindow_methodCount, CLASSINFO(wxAuiMDIClientWindow), &wxluatype_wxAuiMDIClientWindow, wxluabaseclassnames_wxAuiMDIClientWindow, wxluabaseclassbinds_wxAuiMDIClientWindow, NULL, NULL, NULL, 0, &wxLua_wxAuiMDIClientWindow_delete_function, }, - { wxluaclassname_wxAuiMDIParentFrame, wxAuiMDIParentFrame_methods, wxAuiMDIParentFrame_methodCount, CLASSINFO(wxAuiMDIParentFrame), &wxluatype_wxAuiMDIParentFrame, wxluabaseclassnames_wxAuiMDIParentFrame, wxluabaseclassbinds_wxAuiMDIParentFrame, NULL, NULL, NULL, 0, &wxLua_wxAuiMDIParentFrame_delete_function, }, - { wxluaclassname_wxAuiManager, wxAuiManager_methods, wxAuiManager_methodCount, CLASSINFO(wxAuiManager), &wxluatype_wxAuiManager, wxluabaseclassnames_wxAuiManager, wxluabaseclassbinds_wxAuiManager, NULL, NULL, NULL, 0, &wxLua_wxAuiManager_delete_function, }, - { wxluaclassname_wxAuiManagerEvent, wxAuiManagerEvent_methods, wxAuiManagerEvent_methodCount, CLASSINFO(wxAuiManagerEvent), &wxluatype_wxAuiManagerEvent, wxluabaseclassnames_wxAuiManagerEvent, wxluabaseclassbinds_wxAuiManagerEvent, NULL, NULL, NULL, 0, &wxLua_wxAuiManagerEvent_delete_function, }, - { wxluaclassname_wxAuiNotebook, wxAuiNotebook_methods, wxAuiNotebook_methodCount, CLASSINFO(wxAuiNotebook), &wxluatype_wxAuiNotebook, wxluabaseclassnames_wxAuiNotebook, wxluabaseclassbinds_wxAuiNotebook, NULL, NULL, NULL, 0, &wxLua_wxAuiNotebook_delete_function, }, - { wxluaclassname_wxAuiNotebookEvent, wxAuiNotebookEvent_methods, wxAuiNotebookEvent_methodCount, CLASSINFO(wxAuiNotebookEvent), &wxluatype_wxAuiNotebookEvent, wxluabaseclassnames_wxAuiNotebookEvent, wxluabaseclassbinds_wxAuiNotebookEvent, NULL, NULL, NULL, 0, &wxLua_wxAuiNotebookEvent_delete_function, }, - { wxluaclassname_wxAuiNotebookPage, wxAuiNotebookPage_methods, wxAuiNotebookPage_methodCount, NULL, &wxluatype_wxAuiNotebookPage, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiNotebookPage_delete_function, }, - { wxluaclassname_wxAuiNotebookPageArray, wxAuiNotebookPageArray_methods, wxAuiNotebookPageArray_methodCount, NULL, &wxluatype_wxAuiNotebookPageArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiNotebookPageArray_delete_function, }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - -#if (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - { wxluaclassname_wxAuiPaneButton, wxAuiPaneButton_methods, wxAuiPaneButton_methodCount, NULL, &wxluatype_wxAuiPaneButton, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiPaneButton_delete_function, }, -#endif // (!wxCHECK_VERSION(3,1,4)) && (wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI) - -#if wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - { wxluaclassname_wxAuiPaneInfo, wxAuiPaneInfo_methods, wxAuiPaneInfo_methodCount, NULL, &wxluatype_wxAuiPaneInfo, NULL, NULL, NULL, NULL, wxAuiPaneInfo_enums, wxAuiPaneInfo_enumCount, &wxLua_wxAuiPaneInfo_delete_function, }, - { wxluaclassname_wxAuiPaneInfoArray, wxAuiPaneInfoArray_methods, wxAuiPaneInfoArray_methodCount, NULL, &wxluatype_wxAuiPaneInfoArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiPaneInfoArray_delete_function, }, - { wxluaclassname_wxAuiSimpleTabArt, wxAuiSimpleTabArt_methods, wxAuiSimpleTabArt_methodCount, NULL, &wxluatype_wxAuiSimpleTabArt, wxluabaseclassnames_wxAuiSimpleTabArt, wxluabaseclassbinds_wxAuiSimpleTabArt, NULL, NULL, NULL, 0, &wxLua_wxAuiSimpleTabArt_delete_function, }, - { wxluaclassname_wxAuiTabArt, wxAuiTabArt_methods, wxAuiTabArt_methodCount, NULL, &wxluatype_wxAuiTabArt, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiTabArt_delete_function, }, - { wxluaclassname_wxAuiTabContainerButton, wxAuiTabContainerButton_methods, wxAuiTabContainerButton_methodCount, NULL, &wxluatype_wxAuiTabContainerButton, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiTabContainerButton_delete_function, }, - { wxluaclassname_wxAuiTabCtrl, wxAuiTabCtrl_methods, wxAuiTabCtrl_methodCount, CLASSINFO(wxAuiTabCtrl), &wxluatype_wxAuiTabCtrl, wxluabaseclassnames_wxAuiTabCtrl, wxluabaseclassbinds_wxAuiTabCtrl, NULL, NULL, NULL, 0, &wxLua_wxAuiTabCtrl_delete_function, }, - { wxluaclassname_wxAuiToolBar, wxAuiToolBar_methods, wxAuiToolBar_methodCount, CLASSINFO(wxAuiToolBar), &wxluatype_wxAuiToolBar, wxluabaseclassnames_wxAuiToolBar, wxluabaseclassbinds_wxAuiToolBar, NULL, NULL, NULL, 0, &wxLua_wxAuiToolBar_delete_function, }, - { wxluaclassname_wxAuiToolBarArt, wxAuiToolBarArt_methods, wxAuiToolBarArt_methodCount, NULL, &wxluatype_wxAuiToolBarArt, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiToolBarArt_delete_function, }, - { wxluaclassname_wxAuiToolBarEvent, wxAuiToolBarEvent_methods, wxAuiToolBarEvent_methodCount, CLASSINFO(wxAuiToolBarEvent), &wxluatype_wxAuiToolBarEvent, wxluabaseclassnames_wxAuiToolBarEvent, wxluabaseclassbinds_wxAuiToolBarEvent, NULL, NULL, NULL, 0, &wxLua_wxAuiToolBarEvent_delete_function, }, - { wxluaclassname_wxAuiToolBarItem, wxAuiToolBarItem_methods, wxAuiToolBarItem_methodCount, NULL, &wxluatype_wxAuiToolBarItem, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiToolBarItem_delete_function, }, - { wxluaclassname_wxAuiToolBarItemArray, wxAuiToolBarItemArray_methods, wxAuiToolBarItemArray_methodCount, NULL, &wxluatype_wxAuiToolBarItemArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAuiToolBarItemArray_delete_function, }, -#endif // wxLUA_USE_wxAUI && wxCHECK_VERSION(2,8,0) && wxUSE_AUI - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxaui() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxaui, wxLuaBinding) - -wxLuaBinding_wxaui::wxLuaBinding_wxaui() : wxLuaBinding() -{ - m_bindingName = wxT("wxaui"); - m_nameSpace = wxT("wxaui"); - m_classArray = wxLuaGetClassList_wxaui(m_classCount); - m_numberArray = wxLuaGetDefineList_wxaui(m_numberCount); - m_stringArray = wxLuaGetStringList_wxaui(m_stringCount); - m_eventArray = wxLuaGetEventList_wxaui(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxaui(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxaui(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxaui_init() -{ - static wxLuaBinding_wxaui m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxbase_base.cpp b/wxLua/modules/wxbind/src/wxbase_base.cpp deleted file mode 100644 index 5b314695..00000000 --- a/wxLua/modules/wxbind/src/wxbase_base.cpp +++ /dev/null @@ -1,6479 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxbase_base.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxbase_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxSystemOptions -// --------------------------------------------------------------------------- -// Bind class wxSystemOptions -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSystemOptions' -int wxluatype_wxSystemOptions = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemOptions_GetOption[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSystemOptions_GetOption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_GetOption[1] = {{ wxLua_wxSystemOptions_GetOption, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemOptions_GetOption }}; -// static wxString GetOption(const wxString& name) const; -static int LUACALL wxLua_wxSystemOptions_GetOption(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call GetOption - wxString returns = (wxSystemOptions::GetOption(name)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemOptions_GetOptionInt[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSystemOptions_GetOptionInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_GetOptionInt[1] = {{ wxLua_wxSystemOptions_GetOptionInt, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemOptions_GetOptionInt }}; -// static int GetOptionInt(const wxString& name) const; -static int LUACALL wxLua_wxSystemOptions_GetOptionInt(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call GetOptionInt - int returns = (wxSystemOptions::GetOptionInt(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemOptions_HasOption[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSystemOptions_HasOption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_HasOption[1] = {{ wxLua_wxSystemOptions_HasOption, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemOptions_HasOption }}; -// static bool HasOption(const wxString& name) const; -static int LUACALL wxLua_wxSystemOptions_HasOption(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call HasOption - bool returns = (wxSystemOptions::HasOption(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemOptions_IsFalse[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSystemOptions_IsFalse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_IsFalse[1] = {{ wxLua_wxSystemOptions_IsFalse, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemOptions_IsFalse }}; -// static bool IsFalse(const wxString& name) const; -static int LUACALL wxLua_wxSystemOptions_IsFalse(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call IsFalse - bool returns = (wxSystemOptions::IsFalse(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemOptions_SetOption1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemOptions_SetOption1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_SetOption1[1] = {{ wxLua_wxSystemOptions_SetOption1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxSystemOptions_SetOption1 }}; -// static void SetOption(const wxString& name, int value); -static int LUACALL wxLua_wxSystemOptions_SetOption1(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call SetOption - wxSystemOptions::SetOption(name, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemOptions_SetOption[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSystemOptions_SetOption(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_SetOption[1] = {{ wxLua_wxSystemOptions_SetOption, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxSystemOptions_SetOption }}; -// static void SetOption(const wxString& name, const wxString& value); -static int LUACALL wxLua_wxSystemOptions_SetOption(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call SetOption - wxSystemOptions::SetOption(name, value); - - return 0; -} - -#endif // (wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS) - - - -#if ((wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemOptions_SetOption_overload[] = -{ - -#if (wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS) - { wxLua_wxSystemOptions_SetOption1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxSystemOptions_SetOption1 }, -#endif // (wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS) - -#if (wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS) - { wxLua_wxSystemOptions_SetOption, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxSystemOptions_SetOption }, -#endif // (wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS) -}; -static int s_wxluafunc_wxLua_wxSystemOptions_SetOption_overload_count = sizeof(s_wxluafunc_wxLua_wxSystemOptions_SetOption_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS)) - -void wxLua_wxSystemOptions_delete_function(void** p) -{ - wxSystemOptions* o = (wxSystemOptions*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSystemOptions_methods[] = { - { "GetOption", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemOptions_GetOption, 1, NULL }, - { "GetOptionInt", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemOptions_GetOptionInt, 1, NULL }, - { "HasOption", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemOptions_HasOption, 1, NULL }, - { "IsFalse", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemOptions_IsFalse, 1, NULL }, - -#if ((wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS)) - { "SetOption", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemOptions_SetOption_overload, s_wxluafunc_wxLua_wxSystemOptions_SetOption_overload_count, 0 }, -#endif // ((wxLUA_USE_wxSystemOptions) && (wxUSE_SYSTEM_OPTIONS)) - - { 0, 0, 0, 0 }, -}; - -int wxSystemOptions_methodCount = sizeof(wxSystemOptions_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSystemOptions - -// --------------------------------------------------------------------------- -// Bind class wxPlatformInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPlatformInfo' -int wxluatype_wxPlatformInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_CheckOSVersion[] = { &wxluatype_wxPlatformInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_CheckOSVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_CheckOSVersion[1] = {{ wxLua_wxPlatformInfo_CheckOSVersion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPlatformInfo_CheckOSVersion }}; -// bool CheckOSVersion(int major, int minor) const; -static int LUACALL wxLua_wxPlatformInfo_CheckOSVersion(lua_State *L) -{ - // int minor - int minor = (int)wxlua_getnumbertype(L, 3); - // int major - int major = (int)wxlua_getnumbertype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call CheckOSVersion - bool returns = (self->CheckOSVersion(major, minor)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_CheckToolkitVersion[] = { &wxluatype_wxPlatformInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_CheckToolkitVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_CheckToolkitVersion[1] = {{ wxLua_wxPlatformInfo_CheckToolkitVersion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPlatformInfo_CheckToolkitVersion }}; -// bool CheckToolkitVersion(int major, int minor) const; -static int LUACALL wxLua_wxPlatformInfo_CheckToolkitVersion(lua_State *L) -{ - // int minor - int minor = (int)wxlua_getnumbertype(L, 3); - // int major - int major = (int)wxlua_getnumbertype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call CheckToolkitVersion - bool returns = (self->CheckToolkitVersion(major, minor)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxPlatformInfo_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_Get[1] = {{ wxLua_wxPlatformInfo_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static const wxPlatformInfo& Get(); -static int LUACALL wxLua_wxPlatformInfo_Get(lua_State *L) -{ - // call Get - const wxPlatformInfo* returns = (const wxPlatformInfo*)&wxPlatformInfo::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPlatformInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetArch[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetArch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetArch[1] = {{ wxLua_wxPlatformInfo_GetArch, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetArch }}; -// static wxArchitecture GetArch(const wxString &arch); -static int LUACALL wxLua_wxPlatformInfo_GetArch(lua_State *L) -{ - // const wxString arch - const wxString arch = wxlua_getwxStringtype(L, 1); - // call GetArch - wxArchitecture returns = (wxPlatformInfo::GetArch(arch)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if !wxCHECK_VERSION(3,1,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetArchName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetArchName1[1] = {{ wxLua_wxPlatformInfo_GetArchName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchName1 }}; -// !%wxchkver_3_1_5 wxString GetArchName() const; -static int LUACALL wxLua_wxPlatformInfo_GetArchName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetArchName - wxString returns = (self->GetArchName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchName[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetArchName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetArchName[1] = {{ wxLua_wxPlatformInfo_GetArchName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchName }}; -// !%wxchkver_3_1_5 static wxString GetArchName(wxArchitecture arch); -static int LUACALL wxLua_wxPlatformInfo_GetArchName(lua_State *L) -{ - // wxArchitecture arch - wxArchitecture arch = (wxArchitecture)wxlua_getenumtype(L, 1); - // call GetArchName - wxString returns = (wxPlatformInfo::GetArchName(arch)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(3,1,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchitecture[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetArchitecture(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetArchitecture[1] = {{ wxLua_wxPlatformInfo_GetArchitecture, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchitecture }}; -// wxArchitecture GetArchitecture() const; -static int LUACALL wxLua_wxPlatformInfo_GetArchitecture(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetArchitecture - wxArchitecture returns = (self->GetArchitecture()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetBitnessName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetBitnessName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName1[1] = {{ wxLua_wxPlatformInfo_GetBitnessName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetBitnessName1 }}; -// %wxchkver_3_1_5 wxString GetBitnessName() const; -static int LUACALL wxLua_wxPlatformInfo_GetBitnessName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetBitnessName - wxString returns = (self->GetBitnessName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetBitnessName[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetBitnessName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName[1] = {{ wxLua_wxPlatformInfo_GetBitnessName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetBitnessName }}; -// %wxchkver_3_1_5 static wxString GetBitnessName(wxBitness bitness); -static int LUACALL wxLua_wxPlatformInfo_GetBitnessName(lua_State *L) -{ - // wxBitness bitness - wxBitness bitness = (wxBitness)wxlua_getenumtype(L, 1); - // call GetBitnessName - wxString returns = (wxPlatformInfo::GetBitnessName(bitness)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndianness[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetEndianness(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness[1] = {{ wxLua_wxPlatformInfo_GetEndianness, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndianness }}; -// static wxEndianness GetEndianness(const wxString &end); -static int LUACALL wxLua_wxPlatformInfo_GetEndianness(lua_State *L) -{ - // const wxString end - const wxString end = wxlua_getwxStringtype(L, 1); - // call GetEndianness - wxEndianness returns = (wxPlatformInfo::GetEndianness(end)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndianness1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetEndianness1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness1[1] = {{ wxLua_wxPlatformInfo_GetEndianness1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndianness1 }}; -// wxEndianness GetEndianness() const; -static int LUACALL wxLua_wxPlatformInfo_GetEndianness1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetEndianness - wxEndianness returns = (self->GetEndianness()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndiannessName[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetEndiannessName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName[1] = {{ wxLua_wxPlatformInfo_GetEndiannessName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndiannessName }}; -// static wxString GetEndiannessName(wxEndianness end); -static int LUACALL wxLua_wxPlatformInfo_GetEndiannessName(lua_State *L) -{ - // wxEndianness end - wxEndianness end = (wxEndianness)wxlua_getenumtype(L, 1); - // call GetEndiannessName - wxString returns = (wxPlatformInfo::GetEndiannessName(end)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndiannessName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetEndiannessName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName1[1] = {{ wxLua_wxPlatformInfo_GetEndiannessName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndiannessName1 }}; -// wxString GetEndiannessName() const; -static int LUACALL wxLua_wxPlatformInfo_GetEndiannessName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetEndiannessName - wxString returns = (self->GetEndiannessName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOSMajorVersion[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOSMajorVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOSMajorVersion[1] = {{ wxLua_wxPlatformInfo_GetOSMajorVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOSMajorVersion }}; -// int GetOSMajorVersion() const; -static int LUACALL wxLua_wxPlatformInfo_GetOSMajorVersion(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetOSMajorVersion - int returns = (self->GetOSMajorVersion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOSMinorVersion[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOSMinorVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOSMinorVersion[1] = {{ wxLua_wxPlatformInfo_GetOSMinorVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOSMinorVersion }}; -// int GetOSMinorVersion() const; -static int LUACALL wxLua_wxPlatformInfo_GetOSMinorVersion(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetOSMinorVersion - int returns = (self->GetOSMinorVersion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemFamilyName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName[1] = {{ wxLua_wxPlatformInfo_GetOperatingSystemFamilyName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName }}; -// static wxString GetOperatingSystemFamilyName(wxOperatingSystemId os); -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemFamilyName(lua_State *L) -{ - // wxOperatingSystemId os - wxOperatingSystemId os = (wxOperatingSystemId)wxlua_getenumtype(L, 1); - // call GetOperatingSystemFamilyName - wxString returns = (wxPlatformInfo::GetOperatingSystemFamilyName(os)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1[1] = {{ wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1 }}; -// wxString GetOperatingSystemFamilyName() const; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetOperatingSystemFamilyName - wxString returns = (self->GetOperatingSystemFamilyName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemId[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemId(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId[1] = {{ wxLua_wxPlatformInfo_GetOperatingSystemId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemId }}; -// static wxOperatingSystemId GetOperatingSystemId(const wxString &name); -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemId(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call GetOperatingSystemId - wxOperatingSystemId returns = (wxPlatformInfo::GetOperatingSystemId(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemId1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemId1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId1[1] = {{ wxLua_wxPlatformInfo_GetOperatingSystemId1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemId1 }}; -// wxOperatingSystemId GetOperatingSystemId() const; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemId1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetOperatingSystemId - wxOperatingSystemId returns = (self->GetOperatingSystemId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemIdName[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemIdName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName[1] = {{ wxLua_wxPlatformInfo_GetOperatingSystemIdName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemIdName }}; -// static wxString GetOperatingSystemIdName(wxOperatingSystemId os); -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemIdName(lua_State *L) -{ - // wxOperatingSystemId os - wxOperatingSystemId os = (wxOperatingSystemId)wxlua_getenumtype(L, 1); - // call GetOperatingSystemIdName - wxString returns = (wxPlatformInfo::GetOperatingSystemIdName(os)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemIdName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemIdName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName1[1] = {{ wxLua_wxPlatformInfo_GetOperatingSystemIdName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemIdName1 }}; -// wxString GetOperatingSystemIdName() const; -static int LUACALL wxLua_wxPlatformInfo_GetOperatingSystemIdName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetOperatingSystemIdName - wxString returns = (self->GetOperatingSystemIdName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortId[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetPortId(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortId[1] = {{ wxLua_wxPlatformInfo_GetPortId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortId }}; -// static wxPortId GetPortId(const wxString &portname); -static int LUACALL wxLua_wxPlatformInfo_GetPortId(lua_State *L) -{ - // const wxString portname - const wxString portname = wxlua_getwxStringtype(L, 1); - // call GetPortId - wxPortId returns = (wxPlatformInfo::GetPortId(portname)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortId1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetPortId1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortId1[1] = {{ wxLua_wxPlatformInfo_GetPortId1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortId1 }}; -// wxPortId GetPortId() const; -static int LUACALL wxLua_wxPlatformInfo_GetPortId1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetPortId - wxPortId returns = (self->GetPortId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdName[] = { &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetPortIdName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName[1] = {{ wxLua_wxPlatformInfo_GetPortIdName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdName }}; -// static wxString GetPortIdName(wxPortId port, bool usingUniversal); -static int LUACALL wxLua_wxPlatformInfo_GetPortIdName(lua_State *L) -{ - // bool usingUniversal - bool usingUniversal = wxlua_getbooleantype(L, 2); - // wxPortId port - wxPortId port = (wxPortId)wxlua_getenumtype(L, 1); - // call GetPortIdName - wxString returns = (wxPlatformInfo::GetPortIdName(port, usingUniversal)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetPortIdName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName1[1] = {{ wxLua_wxPlatformInfo_GetPortIdName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdName1 }}; -// wxString GetPortIdName() const; -static int LUACALL wxLua_wxPlatformInfo_GetPortIdName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetPortIdName - wxString returns = (self->GetPortIdName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdShortName[] = { &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetPortIdShortName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName[1] = {{ wxLua_wxPlatformInfo_GetPortIdShortName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdShortName }}; -// static wxString GetPortIdShortName(wxPortId port, bool usingUniversal); -static int LUACALL wxLua_wxPlatformInfo_GetPortIdShortName(lua_State *L) -{ - // bool usingUniversal - bool usingUniversal = wxlua_getbooleantype(L, 2); - // wxPortId port - wxPortId port = (wxPortId)wxlua_getenumtype(L, 1); - // call GetPortIdShortName - wxString returns = (wxPlatformInfo::GetPortIdShortName(port, usingUniversal)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdShortName1[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetPortIdShortName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName1[1] = {{ wxLua_wxPlatformInfo_GetPortIdShortName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdShortName1 }}; -// wxString GetPortIdShortName() const; -static int LUACALL wxLua_wxPlatformInfo_GetPortIdShortName1(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetPortIdShortName - wxString returns = (self->GetPortIdShortName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetToolkitMajorVersion[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetToolkitMajorVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetToolkitMajorVersion[1] = {{ wxLua_wxPlatformInfo_GetToolkitMajorVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetToolkitMajorVersion }}; -// int GetToolkitMajorVersion() const; -static int LUACALL wxLua_wxPlatformInfo_GetToolkitMajorVersion(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetToolkitMajorVersion - int returns = (self->GetToolkitMajorVersion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetToolkitMicroVersion[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetToolkitMicroVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetToolkitMicroVersion[1] = {{ wxLua_wxPlatformInfo_GetToolkitMicroVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetToolkitMicroVersion }}; -// %wxchkver_3_1_1 int GetToolkitMicroVersion() const; -static int LUACALL wxLua_wxPlatformInfo_GetToolkitMicroVersion(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetToolkitMicroVersion - int returns = (self->GetToolkitMicroVersion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_GetToolkitMinorVersion[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_GetToolkitMinorVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetToolkitMinorVersion[1] = {{ wxLua_wxPlatformInfo_GetToolkitMinorVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetToolkitMinorVersion }}; -// int GetToolkitMinorVersion() const; -static int LUACALL wxLua_wxPlatformInfo_GetToolkitMinorVersion(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call GetToolkitMinorVersion - int returns = (self->GetToolkitMinorVersion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_IsOk[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_IsOk[1] = {{ wxLua_wxPlatformInfo_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxPlatformInfo_IsOk(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_IsUsingUniversalWidgets[] = { &wxluatype_wxPlatformInfo, NULL }; -static int LUACALL wxLua_wxPlatformInfo_IsUsingUniversalWidgets(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_IsUsingUniversalWidgets[1] = {{ wxLua_wxPlatformInfo_IsUsingUniversalWidgets, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_IsUsingUniversalWidgets }}; -// bool IsUsingUniversalWidgets() const; -static int LUACALL wxLua_wxPlatformInfo_IsUsingUniversalWidgets(lua_State *L) -{ - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call IsUsingUniversalWidgets - bool returns = (self->IsUsingUniversalWidgets()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_SetArchitecture[] = { &wxluatype_wxPlatformInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_SetArchitecture(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_SetArchitecture[1] = {{ wxLua_wxPlatformInfo_SetArchitecture, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_SetArchitecture }}; -// void SetArchitecture(wxArchitecture n); -static int LUACALL wxLua_wxPlatformInfo_SetArchitecture(lua_State *L) -{ - // wxArchitecture n - wxArchitecture n = (wxArchitecture)wxlua_getenumtype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call SetArchitecture - self->SetArchitecture(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_SetEndianness[] = { &wxluatype_wxPlatformInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_SetEndianness(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_SetEndianness[1] = {{ wxLua_wxPlatformInfo_SetEndianness, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_SetEndianness }}; -// void SetEndianness(wxEndianness n); -static int LUACALL wxLua_wxPlatformInfo_SetEndianness(lua_State *L) -{ - // wxEndianness n - wxEndianness n = (wxEndianness)wxlua_getenumtype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call SetEndianness - self->SetEndianness(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_SetOSVersion[] = { &wxluatype_wxPlatformInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_SetOSVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_SetOSVersion[1] = {{ wxLua_wxPlatformInfo_SetOSVersion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPlatformInfo_SetOSVersion }}; -// void SetOSVersion(int major, int minor); -static int LUACALL wxLua_wxPlatformInfo_SetOSVersion(lua_State *L) -{ - // int minor - int minor = (int)wxlua_getnumbertype(L, 3); - // int major - int major = (int)wxlua_getnumbertype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call SetOSVersion - self->SetOSVersion(major, minor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_SetOperatingSystemId[] = { &wxluatype_wxPlatformInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_SetOperatingSystemId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_SetOperatingSystemId[1] = {{ wxLua_wxPlatformInfo_SetOperatingSystemId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_SetOperatingSystemId }}; -// void SetOperatingSystemId(wxOperatingSystemId n); -static int LUACALL wxLua_wxPlatformInfo_SetOperatingSystemId(lua_State *L) -{ - // wxOperatingSystemId n - wxOperatingSystemId n = (wxOperatingSystemId)wxlua_getenumtype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call SetOperatingSystemId - self->SetOperatingSystemId(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_SetPortId[] = { &wxluatype_wxPlatformInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_SetPortId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_SetPortId[1] = {{ wxLua_wxPlatformInfo_SetPortId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_SetPortId }}; -// void SetPortId(wxPortId n); -static int LUACALL wxLua_wxPlatformInfo_SetPortId(lua_State *L) -{ - // wxPortId n - wxPortId n = (wxPortId)wxlua_getenumtype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call SetPortId - self->SetPortId(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPlatformInfo_SetToolkitVersion[] = { &wxluatype_wxPlatformInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPlatformInfo_SetToolkitVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_SetToolkitVersion[1] = {{ wxLua_wxPlatformInfo_SetToolkitVersion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPlatformInfo_SetToolkitVersion }}; -// void SetToolkitVersion(int major, int minor); -static int LUACALL wxLua_wxPlatformInfo_SetToolkitVersion(lua_State *L) -{ - // int minor - int minor = (int)wxlua_getnumbertype(L, 3); - // int major - int major = (int)wxlua_getnumbertype(L, 2); - // get this - wxPlatformInfo * self = (wxPlatformInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPlatformInfo); - // call SetToolkitVersion - self->SetToolkitVersion(major, minor); - - return 0; -} - - - -#if (!wxCHECK_VERSION(3,1,5)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetArchName_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,5) - { wxLua_wxPlatformInfo_GetArchName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchName1 }, -#endif // !wxCHECK_VERSION(3,1,5) - -#if !wxCHECK_VERSION(3,1,5) - { wxLua_wxPlatformInfo_GetArchName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetArchName }, -#endif // !wxCHECK_VERSION(3,1,5) -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetArchName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetArchName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,5)) - -#if (wxCHECK_VERSION(3,1,5)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName_overload[] = -{ - -#if wxCHECK_VERSION(3,1,5) - { wxLua_wxPlatformInfo_GetBitnessName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetBitnessName1 }, -#endif // wxCHECK_VERSION(3,1,5) - -#if wxCHECK_VERSION(3,1,5) - { wxLua_wxPlatformInfo_GetBitnessName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetBitnessName }, -#endif // wxCHECK_VERSION(3,1,5) -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,5)) - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness_overload[] = -{ - { wxLua_wxPlatformInfo_GetEndianness, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndianness }, - { wxLua_wxPlatformInfo_GetEndianness1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndianness1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName_overload[] = -{ - { wxLua_wxPlatformInfo_GetEndiannessName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndiannessName }, - { wxLua_wxPlatformInfo_GetEndiannessName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetEndiannessName1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName_overload[] = -{ - { wxLua_wxPlatformInfo_GetOperatingSystemFamilyName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName }, - { wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId_overload[] = -{ - { wxLua_wxPlatformInfo_GetOperatingSystemId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemId }, - { wxLua_wxPlatformInfo_GetOperatingSystemId1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemId1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName_overload[] = -{ - { wxLua_wxPlatformInfo_GetOperatingSystemIdName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemIdName }, - { wxLua_wxPlatformInfo_GetOperatingSystemIdName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetOperatingSystemIdName1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortId_overload[] = -{ - { wxLua_wxPlatformInfo_GetPortId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortId }, - { wxLua_wxPlatformInfo_GetPortId1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortId1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetPortId_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetPortId_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName_overload[] = -{ - { wxLua_wxPlatformInfo_GetPortIdName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdName }, - { wxLua_wxPlatformInfo_GetPortIdName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdName1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName_overload[] = -{ - { wxLua_wxPlatformInfo_GetPortIdShortName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdShortName }, - { wxLua_wxPlatformInfo_GetPortIdShortName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPlatformInfo_GetPortIdShortName1 }, -}; -static int s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName_overload_count = sizeof(s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName_overload)/sizeof(wxLuaBindCFunc); - - -void wxLua_wxPlatformInfo_delete_function(void** p) -{ - wxPlatformInfo* o = (wxPlatformInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPlatformInfo_methods[] = { - { "CheckOSVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_CheckOSVersion, 1, NULL }, - { "CheckToolkitVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_CheckToolkitVersion, 1, NULL }, - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_Get, 1, NULL }, - { "GetArch", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetArch, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,5)) - { "GetArchName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetArchName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetArchName_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,5)) - - { "GetArchitecture", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_GetArchitecture, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,5)) - { "GetBitnessName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetBitnessName_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,5)) - - { "GetEndianness", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetEndianness_overload_count, 0 }, - { "GetEndiannessName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetEndiannessName_overload_count, 0 }, - - { "GetOSMajorVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_GetOSMajorVersion, 1, NULL }, - { "GetOSMinorVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_GetOSMinorVersion, 1, NULL }, - - { "GetOperatingSystemFamilyName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemFamilyName_overload_count, 0 }, - { "GetOperatingSystemId", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemId_overload_count, 0 }, - { "GetOperatingSystemIdName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetOperatingSystemIdName_overload_count, 0 }, - { "GetPortId", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetPortId_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetPortId_overload_count, 0 }, - { "GetPortIdName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdName_overload_count, 0 }, - { "GetPortIdShortName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName_overload, s_wxluafunc_wxLua_wxPlatformInfo_GetPortIdShortName_overload_count, 0 }, - - { "GetToolkitMajorVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_GetToolkitMajorVersion, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "GetToolkitMicroVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_GetToolkitMicroVersion, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "GetToolkitMinorVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_GetToolkitMinorVersion, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_IsOk, 1, NULL }, - { "IsUsingUniversalWidgets", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_IsUsingUniversalWidgets, 1, NULL }, - { "SetArchitecture", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_SetArchitecture, 1, NULL }, - { "SetEndianness", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_SetEndianness, 1, NULL }, - { "SetOSVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_SetOSVersion, 1, NULL }, - { "SetOperatingSystemId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_SetOperatingSystemId, 1, NULL }, - { "SetPortId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_SetPortId, 1, NULL }, - { "SetToolkitVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPlatformInfo_SetToolkitVersion, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxPlatformInfo_methodCount = sizeof(wxPlatformInfo_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxUSE_SNGLINST_CHECKER -// --------------------------------------------------------------------------- -// Bind class wxSingleInstanceChecker -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSingleInstanceChecker' -int wxluatype_wxSingleInstanceChecker = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleInstanceChecker_Create[] = { &wxluatype_wxSingleInstanceChecker, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSingleInstanceChecker_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleInstanceChecker_Create[1] = {{ wxLua_wxSingleInstanceChecker_Create, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSingleInstanceChecker_Create }}; -// bool Create(const wxString& name, const wxString& path = ""); -static int LUACALL wxLua_wxSingleInstanceChecker_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString path = "" - const wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxSingleInstanceChecker * self = (wxSingleInstanceChecker *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSingleInstanceChecker); - // call Create - bool returns = (self->Create(name, path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleInstanceChecker_IsAnotherRunning[] = { &wxluatype_wxSingleInstanceChecker, NULL }; -static int LUACALL wxLua_wxSingleInstanceChecker_IsAnotherRunning(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleInstanceChecker_IsAnotherRunning[1] = {{ wxLua_wxSingleInstanceChecker_IsAnotherRunning, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSingleInstanceChecker_IsAnotherRunning }}; -// bool IsAnotherRunning() const; // is another copy of this program already running? -static int LUACALL wxLua_wxSingleInstanceChecker_IsAnotherRunning(lua_State *L) -{ - // get this - wxSingleInstanceChecker * self = (wxSingleInstanceChecker *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSingleInstanceChecker); - // call IsAnotherRunning - bool returns = (self->IsAnotherRunning()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleInstanceChecker_delete[] = { &wxluatype_wxSingleInstanceChecker, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleInstanceChecker_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSingleInstanceChecker_delete }}; - -static int LUACALL wxLua_wxSingleInstanceChecker_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleInstanceChecker_constructor[1] = {{ wxLua_wxSingleInstanceChecker_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSingleInstanceChecker(); // default ctor, use Create() after it -static int LUACALL wxLua_wxSingleInstanceChecker_constructor(lua_State *L) -{ - // call constructor - wxSingleInstanceChecker* returns = new wxSingleInstanceChecker(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSingleInstanceChecker); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSingleInstanceChecker); - - return 1; -} - - - - -void wxLua_wxSingleInstanceChecker_delete_function(void** p) -{ - wxSingleInstanceChecker* o = (wxSingleInstanceChecker*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSingleInstanceChecker_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSingleInstanceChecker_Create, 1, NULL }, - { "IsAnotherRunning", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSingleInstanceChecker_IsAnotherRunning, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSingleInstanceChecker_delete, 1, NULL }, - { "wxSingleInstanceChecker", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSingleInstanceChecker_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSingleInstanceChecker_methodCount = sizeof(wxSingleInstanceChecker_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_SNGLINST_CHECKER - - -#if wxLUA_USE_wxLog && wxUSE_LOG -// --------------------------------------------------------------------------- -// Bind class wxLog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLog' -int wxluatype_wxLog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_AddTraceMask[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLog_AddTraceMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_AddTraceMask[1] = {{ wxLua_wxLog_AddTraceMask, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_AddTraceMask }}; -// static void AddTraceMask(const wxString& str); -static int LUACALL wxLua_wxLog_AddTraceMask(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call AddTraceMask - wxLog::AddTraceMask(str); - - return 0; -} - -static int LUACALL wxLua_wxLog_ClearTraceMasks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_ClearTraceMasks[1] = {{ wxLua_wxLog_ClearTraceMasks, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void ClearTraceMasks(); -static int LUACALL wxLua_wxLog_ClearTraceMasks(lua_State *L) -{ - // call ClearTraceMasks - wxLog::ClearTraceMasks(); - - return 0; -} - -static int LUACALL wxLua_wxLog_DontCreateOnDemand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_DontCreateOnDemand[1] = {{ wxLua_wxLog_DontCreateOnDemand, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void DontCreateOnDemand(); -static int LUACALL wxLua_wxLog_DontCreateOnDemand(lua_State *L) -{ - // call DontCreateOnDemand - wxLog::DontCreateOnDemand(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_EnableLogging[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLog_EnableLogging(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_EnableLogging[1] = {{ wxLua_wxLog_EnableLogging, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxLog_EnableLogging }}; -// static bool EnableLogging(bool doIt = true); -static int LUACALL wxLua_wxLog_EnableLogging(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool doIt = true - bool doIt = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call EnableLogging - bool returns = (wxLog::EnableLogging(doIt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_Flush[] = { &wxluatype_wxLog, NULL }; -static int LUACALL wxLua_wxLog_Flush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_Flush[1] = {{ wxLua_wxLog_Flush, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLog_Flush }}; -// virtual void Flush(); -static int LUACALL wxLua_wxLog_Flush(lua_State *L) -{ - // get this - wxLog * self = (wxLog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLog); - // call Flush - self->Flush(); - - return 0; -} - -static int LUACALL wxLua_wxLog_FlushActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_FlushActive[1] = {{ wxLua_wxLog_FlushActive, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void FlushActive(); -static int LUACALL wxLua_wxLog_FlushActive(lua_State *L) -{ - // call FlushActive - wxLog::FlushActive(); - - return 0; -} - -static int LUACALL wxLua_wxLog_GetActiveTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetActiveTarget[1] = {{ wxLua_wxLog_GetActiveTarget, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxLog *GetActiveTarget(); -static int LUACALL wxLua_wxLog_GetActiveTarget(lua_State *L) -{ - // call GetActiveTarget - wxLog* returns = (wxLog*)wxLog::GetActiveTarget(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLog); - - return 1; -} - -static int LUACALL wxLua_wxLog_GetLogLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetLogLevel[1] = {{ wxLua_wxLog_GetLogLevel, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxLogLevel GetLogLevel(); -static int LUACALL wxLua_wxLog_GetLogLevel(lua_State *L) -{ - // call GetLogLevel - wxLogLevel returns = (wxLog::GetLogLevel()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) -static int LUACALL wxLua_wxLog_GetRepetitionCounting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetRepetitionCounting[1] = {{ wxLua_wxLog_GetRepetitionCounting, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_2_8 static bool GetRepetitionCounting(); -static int LUACALL wxLua_wxLog_GetRepetitionCounting(lua_State *L) -{ - // call GetRepetitionCounting - bool returns = (wxLog::GetRepetitionCounting()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) - -static int LUACALL wxLua_wxLog_GetTimestamp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetTimestamp[1] = {{ wxLua_wxLog_GetTimestamp, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetTimestamp(); -static int LUACALL wxLua_wxLog_GetTimestamp(lua_State *L) -{ - // call GetTimestamp - wxString returns = (wxLog::GetTimestamp()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) -static int LUACALL wxLua_wxLog_GetTraceMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetTraceMask[1] = {{ wxLua_wxLog_GetTraceMask, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// !%wxchkver_2_9 || %wxcompat_2_8 static wxTraceMask GetTraceMask(); -static int LUACALL wxLua_wxLog_GetTraceMask(lua_State *L) -{ - // call GetTraceMask - wxTraceMask returns = (wxLog::GetTraceMask()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxLog && wxUSE_LOG) -static int LUACALL wxLua_wxLog_GetTraceMasks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetTraceMasks[1] = {{ wxLua_wxLog_GetTraceMasks, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxArrayString GetTraceMasks(); // not const wxArrayString since we copy it anyway -static int LUACALL wxLua_wxLog_GetTraceMasks(lua_State *L) -{ - // call GetTraceMasks - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(wxLog::GetTraceMasks()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxLog && wxUSE_LOG) - -static int LUACALL wxLua_wxLog_GetVerbose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_GetVerbose[1] = {{ wxLua_wxLog_GetVerbose, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool GetVerbose(); -static int LUACALL wxLua_wxLog_GetVerbose(lua_State *L) -{ - // call GetVerbose - bool returns = (wxLog::GetVerbose()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_IsAllowedTraceMask[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLog_IsAllowedTraceMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_IsAllowedTraceMask[1] = {{ wxLua_wxLog_IsAllowedTraceMask, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_IsAllowedTraceMask }}; -// static bool IsAllowedTraceMask(const wxString& mask); -static int LUACALL wxLua_wxLog_IsAllowedTraceMask(lua_State *L) -{ - // const wxString mask - const wxString mask = wxlua_getwxStringtype(L, 1); - // call IsAllowedTraceMask - bool returns = (wxLog::IsAllowedTraceMask(mask)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxLog_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_IsEnabled[1] = {{ wxLua_wxLog_IsEnabled, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool IsEnabled(); -static int LUACALL wxLua_wxLog_IsEnabled(lua_State *L) -{ - // call IsEnabled - bool returns = (wxLog::IsEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_RemoveTraceMask[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLog_RemoveTraceMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_RemoveTraceMask[1] = {{ wxLua_wxLog_RemoveTraceMask, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_RemoveTraceMask }}; -// static void RemoveTraceMask(const wxString& str); -static int LUACALL wxLua_wxLog_RemoveTraceMask(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call RemoveTraceMask - wxLog::RemoveTraceMask(str); - - return 0; -} - -static int LUACALL wxLua_wxLog_Resume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_Resume[1] = {{ wxLua_wxLog_Resume, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void Resume(); -static int LUACALL wxLua_wxLog_Resume(lua_State *L) -{ - // call Resume - wxLog::Resume(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_SetActiveTarget[] = { &wxluatype_wxLog, NULL }; -static int LUACALL wxLua_wxLog_SetActiveTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_SetActiveTarget[1] = {{ wxLua_wxLog_SetActiveTarget, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_SetActiveTarget }}; -// static %gc wxLog *SetActiveTarget(%ungc wxLog *pLogger); -static int LUACALL wxLua_wxLog_SetActiveTarget(lua_State *L) -{ - // wxLog pLogger - wxLog * pLogger = (wxLog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLog); - if (wxluaO_isgcobject(L, pLogger)) wxluaO_undeletegcobject(L, pLogger); - // call SetActiveTarget - wxLog* returns = (wxLog*)wxLog::SetActiveTarget(pLogger); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxLog); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLog); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_SetLogLevel[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLog_SetLogLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_SetLogLevel[1] = {{ wxLua_wxLog_SetLogLevel, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_SetLogLevel }}; -// static void SetLogLevel(wxLogLevel logLevel); -static int LUACALL wxLua_wxLog_SetLogLevel(lua_State *L) -{ - // wxLogLevel logLevel - wxLogLevel logLevel = (wxLogLevel)wxlua_getnumbertype(L, 1); - // call SetLogLevel - wxLog::SetLogLevel(logLevel); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_SetRepetitionCounting[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLog_SetRepetitionCounting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_SetRepetitionCounting[1] = {{ wxLua_wxLog_SetRepetitionCounting, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxLog_SetRepetitionCounting }}; -// %wxchkver_2_8 static void SetRepetitionCounting(bool bRepetCounting = true); -static int LUACALL wxLua_wxLog_SetRepetitionCounting(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bRepetCounting = true - bool bRepetCounting = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call SetRepetitionCounting - wxLog::SetRepetitionCounting(bRepetCounting); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_SetTimestamp[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLog_SetTimestamp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_SetTimestamp[1] = {{ wxLua_wxLog_SetTimestamp, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_SetTimestamp }}; -// %override wxLua_wxLog_SetTimestamp -// static void SetTimestamp(const wxString& ts) -static int LUACALL wxLua_wxLog_SetTimestamp(lua_State *L) -{ - // docs say that using NULL will disable time stamping. The actual arg is "const wxChar* ts" - if (lua_isnoneornil(L, 1)) - { -#if wxCHECK_VERSION(2, 9, 0) - wxLog::SetTimestamp(wxEmptyString); -#else - wxLog::SetTimestamp(NULL); -#endif - } - else - { - // const wxString ts - const wxString ts = wxlua_getwxStringtype(L, 1); - // call SetTimestamp - wxLog::SetTimestamp(ts); - } - - return 0; -} - - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_SetTraceMask[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLog_SetTraceMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_SetTraceMask[1] = {{ wxLua_wxLog_SetTraceMask, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLog_SetTraceMask }}; -// !%wxchkver_2_9 || %wxcompat_2_8 static void SetTraceMask(wxTraceMask ulMask); -static int LUACALL wxLua_wxLog_SetTraceMask(lua_State *L) -{ - // wxTraceMask ulMask - wxTraceMask ulMask = (wxTraceMask)wxlua_getnumbertype(L, 1); - // call SetTraceMask - wxLog::SetTraceMask(ulMask); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_SetVerbose[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLog_SetVerbose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_SetVerbose[1] = {{ wxLua_wxLog_SetVerbose, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxLog_SetVerbose }}; -// static void SetVerbose(bool bVerbose = true); -static int LUACALL wxLua_wxLog_SetVerbose(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bVerbose = true - bool bVerbose = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call SetVerbose - wxLog::SetVerbose(bVerbose); - - return 0; -} - -static int LUACALL wxLua_wxLog_Suspend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_Suspend[1] = {{ wxLua_wxLog_Suspend, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void Suspend(); -static int LUACALL wxLua_wxLog_Suspend(lua_State *L) -{ - // call Suspend - wxLog::Suspend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLog_delete[] = { &wxluatype_wxLog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLog_delete }}; - - - - -void wxLua_wxLog_delete_function(void** p) -{ - wxLog* o = (wxLog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLog_methods[] = { - { "AddTraceMask", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_AddTraceMask, 1, NULL }, - { "ClearTraceMasks", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_ClearTraceMasks, 1, NULL }, - { "DontCreateOnDemand", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_DontCreateOnDemand, 1, NULL }, - { "EnableLogging", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_EnableLogging, 1, NULL }, - { "Flush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLog_Flush, 1, NULL }, - { "FlushActive", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_FlushActive, 1, NULL }, - { "GetActiveTarget", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetActiveTarget, 1, NULL }, - { "GetLogLevel", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetLogLevel, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "GetRepetitionCounting", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetRepetitionCounting, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) - - { "GetTimestamp", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetTimestamp, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "GetTraceMask", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetTraceMask, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "GetTraceMasks", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetTraceMasks, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxLog && wxUSE_LOG) - - { "GetVerbose", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_GetVerbose, 1, NULL }, - { "IsAllowedTraceMask", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_IsAllowedTraceMask, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_IsEnabled, 1, NULL }, - { "RemoveTraceMask", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_RemoveTraceMask, 1, NULL }, - { "Resume", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_Resume, 1, NULL }, - { "SetActiveTarget", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_SetActiveTarget, 1, NULL }, - { "SetLogLevel", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_SetLogLevel, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "SetRepetitionCounting", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_SetRepetitionCounting, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxLog && wxUSE_LOG) - - { "SetTimestamp", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_SetTimestamp, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "SetTraceMask", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_SetTraceMask, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxLog && wxUSE_LOG) - - { "SetVerbose", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_SetVerbose, 1, NULL }, - { "Suspend", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLog_Suspend, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLog_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLog_methodCount = sizeof(wxLog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - -#if wxLUA_USE_wxLog && wxUSE_LOG -// --------------------------------------------------------------------------- -// Bind class wxLogBuffer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogBuffer' -int wxluatype_wxLogBuffer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogBuffer_GetBuffer[] = { &wxluatype_wxLogBuffer, NULL }; -static int LUACALL wxLua_wxLogBuffer_GetBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogBuffer_GetBuffer[1] = {{ wxLua_wxLogBuffer_GetBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLogBuffer_GetBuffer }}; -// const wxString& GetBuffer() const; // get the string contents with all messages logged -static int LUACALL wxLua_wxLogBuffer_GetBuffer(lua_State *L) -{ - // get this - wxLogBuffer * self = (wxLogBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogBuffer); - // call GetBuffer - wxString returns = (self->GetBuffer()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogBuffer_delete[] = { &wxluatype_wxLogBuffer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogBuffer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogBuffer_delete }}; - -static int LUACALL wxLua_wxLogBuffer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogBuffer_constructor[1] = {{ wxLua_wxLogBuffer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLogBuffer(); -static int LUACALL wxLua_wxLogBuffer_constructor(lua_State *L) -{ - // call constructor - wxLogBuffer* returns = new wxLogBuffer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogBuffer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogBuffer); - - return 1; -} - - - - -void wxLua_wxLogBuffer_delete_function(void** p) -{ - wxLogBuffer* o = (wxLogBuffer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogBuffer_methods[] = { - { "GetBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogBuffer_GetBuffer, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogBuffer_delete, 1, NULL }, - { "wxLogBuffer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogBuffer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLogBuffer_methodCount = sizeof(wxLogBuffer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - -#if wxLUA_USE_wxLog && wxUSE_LOG -// --------------------------------------------------------------------------- -// Bind class wxLogChain -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogChain' -int wxluatype_wxLogChain = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogChain_GetOldLog[] = { &wxluatype_wxLogChain, NULL }; -static int LUACALL wxLua_wxLogChain_GetOldLog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogChain_GetOldLog[1] = {{ wxLua_wxLogChain_GetOldLog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLogChain_GetOldLog }}; -// wxLog *GetOldLog() const; -static int LUACALL wxLua_wxLogChain_GetOldLog(lua_State *L) -{ - // get this - wxLogChain * self = (wxLogChain *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogChain); - // call GetOldLog - wxLog* returns = (wxLog*)self->GetOldLog(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLog); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogChain_IsPassingMessages[] = { &wxluatype_wxLogChain, NULL }; -static int LUACALL wxLua_wxLogChain_IsPassingMessages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogChain_IsPassingMessages[1] = {{ wxLua_wxLogChain_IsPassingMessages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLogChain_IsPassingMessages }}; -// bool IsPassingMessages() const; -static int LUACALL wxLua_wxLogChain_IsPassingMessages(lua_State *L) -{ - // get this - wxLogChain * self = (wxLogChain *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogChain); - // call IsPassingMessages - bool returns = (self->IsPassingMessages()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogChain_PassMessages[] = { &wxluatype_wxLogChain, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLogChain_PassMessages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogChain_PassMessages[1] = {{ wxLua_wxLogChain_PassMessages, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLogChain_PassMessages }}; -// void PassMessages(bool bDoPass); -static int LUACALL wxLua_wxLogChain_PassMessages(lua_State *L) -{ - // bool bDoPass - bool bDoPass = wxlua_getbooleantype(L, 2); - // get this - wxLogChain * self = (wxLogChain *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogChain); - // call PassMessages - self->PassMessages(bDoPass); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogChain_SetLog[] = { &wxluatype_wxLogChain, &wxluatype_wxLog, NULL }; -static int LUACALL wxLua_wxLogChain_SetLog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogChain_SetLog[1] = {{ wxLua_wxLogChain_SetLog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLogChain_SetLog }}; -// void SetLog(wxLog *logger); // change the new log target -static int LUACALL wxLua_wxLogChain_SetLog(lua_State *L) -{ - // wxLog logger - wxLog * logger = (wxLog *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLog); - // get this - wxLogChain * self = (wxLogChain *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogChain); - // call SetLog - self->SetLog(logger); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogChain_delete[] = { &wxluatype_wxLogChain, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogChain_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogChain_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogChain_constructor[] = { &wxluatype_wxLog, NULL }; -static int LUACALL wxLua_wxLogChain_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogChain_constructor[1] = {{ wxLua_wxLogChain_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLogChain_constructor }}; -// wxLogChain(wxLog *logger); -static int LUACALL wxLua_wxLogChain_constructor(lua_State *L) -{ - // wxLog logger - wxLog * logger = (wxLog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLog); - // call constructor - wxLogChain* returns = new wxLogChain(logger); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogChain); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogChain); - - return 1; -} - - - - -void wxLua_wxLogChain_delete_function(void** p) -{ - wxLogChain* o = (wxLogChain*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogChain_methods[] = { - { "GetOldLog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogChain_GetOldLog, 1, NULL }, - { "IsPassingMessages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogChain_IsPassingMessages, 1, NULL }, - { "PassMessages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogChain_PassMessages, 1, NULL }, - { "SetLog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogChain_SetLog, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogChain_delete, 1, NULL }, - { "wxLogChain", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogChain_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLogChain_methodCount = sizeof(wxLogChain_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - -#if wxLUA_USE_wxLog && wxUSE_LOG -// --------------------------------------------------------------------------- -// Bind class wxLogNull -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogNull' -int wxluatype_wxLogNull = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogNull_delete[] = { &wxluatype_wxLogNull, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogNull_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogNull_delete }}; - -static int LUACALL wxLua_wxLogNull_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogNull_constructor[1] = {{ wxLua_wxLogNull_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLogNull(); -static int LUACALL wxLua_wxLogNull_constructor(lua_State *L) -{ - // call constructor - wxLogNull* returns = new wxLogNull(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogNull); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogNull); - - return 1; -} - - - - -void wxLua_wxLogNull_delete_function(void** p) -{ - wxLogNull* o = (wxLogNull*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogNull_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogNull_delete, 1, NULL }, - { "wxLogNull", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogNull_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLogNull_methodCount = sizeof(wxLogNull_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - -#if wxLUA_USE_wxLog && wxUSE_LOG -// --------------------------------------------------------------------------- -// Bind class wxLogPassThrough -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogPassThrough' -int wxluatype_wxLogPassThrough = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogPassThrough_delete[] = { &wxluatype_wxLogPassThrough, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogPassThrough_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogPassThrough_delete }}; - -static int LUACALL wxLua_wxLogPassThrough_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogPassThrough_constructor[1] = {{ wxLua_wxLogPassThrough_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLogPassThrough(); -static int LUACALL wxLua_wxLogPassThrough_constructor(lua_State *L) -{ - // call constructor - wxLogPassThrough* returns = new wxLogPassThrough(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogPassThrough); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogPassThrough); - - return 1; -} - - - - -void wxLua_wxLogPassThrough_delete_function(void** p) -{ - wxLogPassThrough* o = (wxLogPassThrough*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogPassThrough_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogPassThrough_delete, 1, NULL }, - { "wxLogPassThrough", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogPassThrough_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLogPassThrough_methodCount = sizeof(wxLogPassThrough_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -// --------------------------------------------------------------------------- -// Bind class wxDynamicLibraryDetails -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDynamicLibraryDetails' -int wxluatype_wxDynamicLibraryDetails = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_GetName[] = { &wxluatype_wxDynamicLibraryDetails, NULL }; -static int LUACALL wxLua_wxDynamicLibraryDetails_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetails_GetName[1] = {{ wxLua_wxDynamicLibraryDetails_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_GetName }}; -// wxString GetName() const; // get the (base) name -static int LUACALL wxLua_wxDynamicLibraryDetails_GetName(lua_State *L) -{ - // get this - wxDynamicLibraryDetails * self = (wxDynamicLibraryDetails *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibraryDetails); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_GetPath[] = { &wxluatype_wxDynamicLibraryDetails, NULL }; -static int LUACALL wxLua_wxDynamicLibraryDetails_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetails_GetPath[1] = {{ wxLua_wxDynamicLibraryDetails_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_GetPath }}; -// wxString GetPath() const; // get the full path of this object -static int LUACALL wxLua_wxDynamicLibraryDetails_GetPath(lua_State *L) -{ - // get this - wxDynamicLibraryDetails * self = (wxDynamicLibraryDetails *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibraryDetails); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_GetVersion[] = { &wxluatype_wxDynamicLibraryDetails, NULL }; -static int LUACALL wxLua_wxDynamicLibraryDetails_GetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetails_GetVersion[1] = {{ wxLua_wxDynamicLibraryDetails_GetVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_GetVersion }}; -// wxString GetVersion() const; // return the version of the DLL (may be empty if no version info); -static int LUACALL wxLua_wxDynamicLibraryDetails_GetVersion(lua_State *L) -{ - // get this - wxDynamicLibraryDetails * self = (wxDynamicLibraryDetails *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibraryDetails); - // call GetVersion - wxString returns = (self->GetVersion()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_delete[] = { &wxluatype_wxDynamicLibraryDetails, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetails_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibraryDetails_delete }}; - - - -void wxLua_wxDynamicLibraryDetails_delete_function(void** p) -{ - wxDynamicLibraryDetails* o = (wxDynamicLibraryDetails*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDynamicLibraryDetails_methods[] = { - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibraryDetails_GetName, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibraryDetails_GetPath, 1, NULL }, - { "GetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibraryDetails_GetVersion, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDynamicLibraryDetails_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxDynamicLibraryDetails_methodCount = sizeof(wxDynamicLibraryDetails_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxDynamicLibraryDetailsArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDynamicLibraryDetailsArray' -int wxluatype_wxDynamicLibraryDetailsArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetailsArray_GetCount[] = { &wxluatype_wxDynamicLibraryDetailsArray, NULL }; -static int LUACALL wxLua_wxDynamicLibraryDetailsArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetailsArray_GetCount[1] = {{ wxLua_wxDynamicLibraryDetailsArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibraryDetailsArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxDynamicLibraryDetailsArray_GetCount(lua_State *L) -{ - // get this - wxDynamicLibraryDetailsArray * self = (wxDynamicLibraryDetailsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibraryDetailsArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetailsArray_Item[] = { &wxluatype_wxDynamicLibraryDetailsArray, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDynamicLibraryDetailsArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetailsArray_Item[1] = {{ wxLua_wxDynamicLibraryDetailsArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDynamicLibraryDetailsArray_Item }}; -// wxDynamicLibraryDetails Item(int n); -static int LUACALL wxLua_wxDynamicLibraryDetailsArray_Item(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDynamicLibraryDetailsArray * self = (wxDynamicLibraryDetailsArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibraryDetailsArray); - // call Item - // allocate a new object using the copy constructor - wxDynamicLibraryDetails* returns = new wxDynamicLibraryDetails(self->Item(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDynamicLibraryDetails); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDynamicLibraryDetails); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibraryDetailsArray_delete[] = { &wxluatype_wxDynamicLibraryDetailsArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibraryDetailsArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibraryDetailsArray_delete }}; - - - -void wxLua_wxDynamicLibraryDetailsArray_delete_function(void** p) -{ - wxDynamicLibraryDetailsArray* o = (wxDynamicLibraryDetailsArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDynamicLibraryDetailsArray_methods[] = { - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibraryDetailsArray_GetCount, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibraryDetailsArray_Item, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDynamicLibraryDetailsArray_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxDynamicLibraryDetailsArray_methodCount = sizeof(wxDynamicLibraryDetailsArray_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxDynamicLibrary -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDynamicLibrary' -int wxluatype_wxDynamicLibrary = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_CanonicalizeName[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_CanonicalizeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_CanonicalizeName[1] = {{ wxLua_wxDynamicLibrary_CanonicalizeName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDynamicLibrary_CanonicalizeName }}; -// static wxString CanonicalizeName(const wxString& name, wxDynamicLibraryCategory cat = wxDL_LIBRARY); -static int LUACALL wxLua_wxDynamicLibrary_CanonicalizeName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDynamicLibraryCategory cat = wxDL_LIBRARY - wxDynamicLibraryCategory cat = (argCount >= 2 ? (wxDynamicLibraryCategory)wxlua_getenumtype(L, 2) : wxDL_LIBRARY); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call CanonicalizeName - wxString returns = (wxDynamicLibrary::CanonicalizeName(name, cat)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_CanonicalizePluginName[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_CanonicalizePluginName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_CanonicalizePluginName[1] = {{ wxLua_wxDynamicLibrary_CanonicalizePluginName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDynamicLibrary_CanonicalizePluginName }}; -// static wxString CanonicalizePluginName(const wxString& name, wxPluginCategory cat = wxDL_PLUGIN_GUI); -static int LUACALL wxLua_wxDynamicLibrary_CanonicalizePluginName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPluginCategory cat = wxDL_PLUGIN_GUI - wxPluginCategory cat = (argCount >= 2 ? (wxPluginCategory)wxlua_getenumtype(L, 2) : wxDL_PLUGIN_GUI); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call CanonicalizePluginName - wxString returns = (wxDynamicLibrary::CanonicalizePluginName(name, cat)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxDynamicLibrary_GetDllExt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_GetDllExt[1] = {{ wxLua_wxDynamicLibrary_GetDllExt, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDllExt(); -static int LUACALL wxLua_wxDynamicLibrary_GetDllExt(lua_State *L) -{ - // call GetDllExt - wxString returns = (wxDynamicLibrary::GetDllExt()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxDynamicLibrary_GetPluginsDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_GetPluginsDirectory[1] = {{ wxLua_wxDynamicLibrary_GetPluginsDirectory, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetPluginsDirectory(); -static int LUACALL wxLua_wxDynamicLibrary_GetPluginsDirectory(lua_State *L) -{ - // call GetPluginsDirectory - wxString returns = (wxDynamicLibrary::GetPluginsDirectory()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_HasSymbol[] = { &wxluatype_wxDynamicLibrary, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_HasSymbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_HasSymbol[1] = {{ wxLua_wxDynamicLibrary_HasSymbol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDynamicLibrary_HasSymbol }}; -// bool HasSymbol(const wxString& name) const; -static int LUACALL wxLua_wxDynamicLibrary_HasSymbol(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxDynamicLibrary * self = (wxDynamicLibrary *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibrary); - // call HasSymbol - bool returns = (self->HasSymbol(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_IsLoaded[] = { &wxluatype_wxDynamicLibrary, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_IsLoaded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_IsLoaded[1] = {{ wxLua_wxDynamicLibrary_IsLoaded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibrary_IsLoaded }}; -// bool IsLoaded() const; -static int LUACALL wxLua_wxDynamicLibrary_IsLoaded(lua_State *L) -{ - // get this - wxDynamicLibrary * self = (wxDynamicLibrary *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibrary); - // call IsLoaded - bool returns = (self->IsLoaded()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxDynamicLibrary_ListLoaded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_ListLoaded[1] = {{ wxLua_wxDynamicLibrary_ListLoaded, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDynamicLibraryDetailsArray ListLoaded(); -static int LUACALL wxLua_wxDynamicLibrary_ListLoaded(lua_State *L) -{ - // call ListLoaded - // allocate a new object using the copy constructor - wxDynamicLibraryDetailsArray* returns = new wxDynamicLibraryDetailsArray(wxDynamicLibrary::ListLoaded()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDynamicLibraryDetailsArray); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDynamicLibraryDetailsArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_Load[] = { &wxluatype_wxDynamicLibrary, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_Load(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_Load[1] = {{ wxLua_wxDynamicLibrary_Load, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDynamicLibrary_Load }}; -// bool Load(const wxString& libname, int flags = wxDL_DEFAULT); -static int LUACALL wxLua_wxDynamicLibrary_Load(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDL_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDL_DEFAULT); - // const wxString libname - const wxString libname = wxlua_getwxStringtype(L, 2); - // get this - wxDynamicLibrary * self = (wxDynamicLibrary *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibrary); - // call Load - bool returns = (self->Load(libname, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_Unload[] = { &wxluatype_wxDynamicLibrary, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_Unload(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_Unload[1] = {{ wxLua_wxDynamicLibrary_Unload, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibrary_Unload }}; -// void Unload(); -static int LUACALL wxLua_wxDynamicLibrary_Unload(lua_State *L) -{ - // get this - wxDynamicLibrary * self = (wxDynamicLibrary *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDynamicLibrary); - // call Unload - self->Unload(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_delete[] = { &wxluatype_wxDynamicLibrary, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDynamicLibrary_delete }}; - -static int LUACALL wxLua_wxDynamicLibrary_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_constructor[1] = {{ wxLua_wxDynamicLibrary_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDynamicLibrary(); -static int LUACALL wxLua_wxDynamicLibrary_constructor(lua_State *L) -{ - // call constructor - wxDynamicLibrary* returns = new wxDynamicLibrary(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDynamicLibrary); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDynamicLibrary); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDynamicLibrary_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDynamicLibrary_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_constructor1[1] = {{ wxLua_wxDynamicLibrary_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxDynamicLibrary_constructor1 }}; -// wxDynamicLibrary(const wxString& libname, int flags = wxDL_DEFAULT); -static int LUACALL wxLua_wxDynamicLibrary_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDL_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxDL_DEFAULT); - // const wxString libname - const wxString libname = wxlua_getwxStringtype(L, 1); - // call constructor - wxDynamicLibrary* returns = new wxDynamicLibrary(libname, flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDynamicLibrary); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDynamicLibrary); - - return 1; -} - - - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDynamicLibrary_constructor_overload[] = -{ - { wxLua_wxDynamicLibrary_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxDynamicLibrary_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxDynamicLibrary_constructor1 }, -}; -static int s_wxluafunc_wxLua_wxDynamicLibrary_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDynamicLibrary_constructor_overload)/sizeof(wxLuaBindCFunc); - - -void wxLua_wxDynamicLibrary_delete_function(void** p) -{ - wxDynamicLibrary* o = (wxDynamicLibrary*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDynamicLibrary_methods[] = { - { "CanonicalizeName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDynamicLibrary_CanonicalizeName, 1, NULL }, - { "CanonicalizePluginName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDynamicLibrary_CanonicalizePluginName, 1, NULL }, - { "GetDllExt", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDynamicLibrary_GetDllExt, 1, NULL }, - { "GetPluginsDirectory", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDynamicLibrary_GetPluginsDirectory, 1, NULL }, - { "HasSymbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibrary_HasSymbol, 1, NULL }, - { "IsLoaded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibrary_IsLoaded, 1, NULL }, - { "ListLoaded", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDynamicLibrary_ListLoaded, 1, NULL }, - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibrary_Load, 1, NULL }, - { "Unload", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDynamicLibrary_Unload, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDynamicLibrary_delete, 1, NULL }, - - { "wxDynamicLibrary", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDynamicLibrary_constructor_overload, s_wxluafunc_wxLua_wxDynamicLibrary_constructor_overload_count, 0 }, - - { 0, 0, 0, 0 }, -}; - -int wxDynamicLibrary_methodCount = sizeof(wxDynamicLibrary_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxCriticalSection && wxUSE_THREADS -// --------------------------------------------------------------------------- -// Bind class wxCriticalSection -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCriticalSection' -int wxluatype_wxCriticalSection = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCriticalSection_Enter[] = { &wxluatype_wxCriticalSection, NULL }; -static int LUACALL wxLua_wxCriticalSection_Enter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCriticalSection_Enter[1] = {{ wxLua_wxCriticalSection_Enter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCriticalSection_Enter }}; -// void Enter(); -static int LUACALL wxLua_wxCriticalSection_Enter(lua_State *L) -{ - // get this - wxCriticalSection * self = (wxCriticalSection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCriticalSection); - // call Enter - self->Enter(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCriticalSection_Leave[] = { &wxluatype_wxCriticalSection, NULL }; -static int LUACALL wxLua_wxCriticalSection_Leave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCriticalSection_Leave[1] = {{ wxLua_wxCriticalSection_Leave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCriticalSection_Leave }}; -// void Leave(); -static int LUACALL wxLua_wxCriticalSection_Leave(lua_State *L) -{ - // get this - wxCriticalSection * self = (wxCriticalSection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCriticalSection); - // call Leave - self->Leave(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCriticalSection_delete[] = { &wxluatype_wxCriticalSection, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCriticalSection_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCriticalSection_delete }}; - -static int LUACALL wxLua_wxCriticalSection_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCriticalSection_constructor[1] = {{ wxLua_wxCriticalSection_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCriticalSection(); -static int LUACALL wxLua_wxCriticalSection_constructor(lua_State *L) -{ - // call constructor - wxCriticalSection* returns = new wxCriticalSection(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCriticalSection); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCriticalSection); - - return 1; -} - - - - -void wxLua_wxCriticalSection_delete_function(void** p) -{ - wxCriticalSection* o = (wxCriticalSection*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCriticalSection_methods[] = { - { "Enter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCriticalSection_Enter, 1, NULL }, - { "Leave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCriticalSection_Leave, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCriticalSection_delete, 1, NULL }, - { "wxCriticalSection", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCriticalSection_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCriticalSection_methodCount = sizeof(wxCriticalSection_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCriticalSection && wxUSE_THREADS - - -#if wxLUA_USE_wxCriticalSectionLocker -// --------------------------------------------------------------------------- -// Bind class wxCriticalSectionLocker -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCriticalSectionLocker' -int wxluatype_wxCriticalSectionLocker = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCriticalSectionLocker_delete[] = { &wxluatype_wxCriticalSectionLocker, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCriticalSectionLocker_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCriticalSectionLocker_delete }}; - - -#if (wxLUA_USE_wxCriticalSection && wxUSE_THREADS) && (wxLUA_USE_wxCriticalSectionLocker) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCriticalSectionLocker_constructor[] = { &wxluatype_wxCriticalSection, NULL }; -static int LUACALL wxLua_wxCriticalSectionLocker_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCriticalSectionLocker_constructor[1] = {{ wxLua_wxCriticalSectionLocker_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCriticalSectionLocker_constructor }}; -// wxCriticalSectionLocker(wxCriticalSection& cs); -static int LUACALL wxLua_wxCriticalSectionLocker_constructor(lua_State *L) -{ - // wxCriticalSection cs - wxCriticalSection * cs = (wxCriticalSection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCriticalSection); - // call constructor - wxCriticalSectionLocker* returns = new wxCriticalSectionLocker(*cs); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCriticalSectionLocker); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCriticalSectionLocker); - - return 1; -} - -#endif // (wxLUA_USE_wxCriticalSection && wxUSE_THREADS) && (wxLUA_USE_wxCriticalSectionLocker) - - - -void wxLua_wxCriticalSectionLocker_delete_function(void** p) -{ - wxCriticalSectionLocker* o = (wxCriticalSectionLocker*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCriticalSectionLocker_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCriticalSectionLocker_delete, 1, NULL }, - -#if (wxLUA_USE_wxCriticalSection && wxUSE_THREADS) && (wxLUA_USE_wxCriticalSectionLocker) - { "wxCriticalSectionLocker", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCriticalSectionLocker_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxCriticalSection && wxUSE_THREADS) && (wxLUA_USE_wxCriticalSectionLocker) - - { 0, 0, 0, 0 }, -}; - -int wxCriticalSectionLocker_methodCount = sizeof(wxCriticalSectionLocker_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCriticalSectionLocker - - -#if wxLUA_USE_wxRegEx && wxUSE_REGEX -// --------------------------------------------------------------------------- -// Bind class wxRegEx -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRegEx' -int wxluatype_wxRegEx = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_Compile[] = { &wxluatype_wxRegEx, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegEx_Compile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_Compile[1] = {{ wxLua_wxRegEx_Compile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRegEx_Compile }}; -// bool Compile(const wxString& pattern, int flags = wxRE_DEFAULT); -static int LUACALL wxLua_wxRegEx_Compile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRE_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRE_DEFAULT); - // const wxString pattern - const wxString pattern = wxlua_getwxStringtype(L, 2); - // get this - wxRegEx * self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call Compile - bool returns = (self->Compile(pattern, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#define wxLua_wxRegEx_GetMatch1 wxLua_wxRegEx_GetMatchIndexes -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_GetMatch1[] = { &wxluatype_wxRegEx, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRegEx_GetMatch1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_GetMatch1[1] = {{ wxLua_wxRegEx_GetMatch1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRegEx_GetMatch1 }}; -// %override wxLua_wxRegEx_GetMatchIndexes -// %rename GetMatchPointer bool GetMatch(size_t* start, size_t* len, size_t index = 0) const -static int LUACALL wxLua_wxRegEx_GetMatchIndexes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t index = 0 - size_t index = (argCount >= 2 ? (size_t)wxlua_getintegertype(L, 2) : 0); - // size_t* len - size_t len = 0; - // size_t* start - size_t start = 0; - // get this - wxRegEx *self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call GetMatch - bool returns = self->GetMatch(&start, &len, index); - // push the result number - lua_pushboolean(L, returns); - // push the match start and length indexes - lua_pushinteger(L, start); - lua_pushinteger(L, len); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_GetMatch[] = { &wxluatype_wxRegEx, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRegEx_GetMatch(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_GetMatch[1] = {{ wxLua_wxRegEx_GetMatch, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRegEx_GetMatch }}; -// wxString GetMatch(const wxString& text, size_t index = 0) const; -static int LUACALL wxLua_wxRegEx_GetMatch(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t index = 0 - size_t index = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRegEx * self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call GetMatch - wxString returns = (self->GetMatch(text, index)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_GetMatchCount[] = { &wxluatype_wxRegEx, NULL }; -static int LUACALL wxLua_wxRegEx_GetMatchCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_GetMatchCount[1] = {{ wxLua_wxRegEx_GetMatchCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegEx_GetMatchCount }}; -// size_t GetMatchCount() const; -static int LUACALL wxLua_wxRegEx_GetMatchCount(lua_State *L) -{ - // get this - wxRegEx * self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call GetMatchCount - size_t returns = (self->GetMatchCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_IsValid[] = { &wxluatype_wxRegEx, NULL }; -static int LUACALL wxLua_wxRegEx_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_IsValid[1] = {{ wxLua_wxRegEx_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegEx_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxRegEx_IsValid(lua_State *L) -{ - // get this - wxRegEx * self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_Matches[] = { &wxluatype_wxRegEx, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegEx_Matches(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_Matches[1] = {{ wxLua_wxRegEx_Matches, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRegEx_Matches }}; -// bool Matches(const wxString &text, int flags = 0) const; -static int LUACALL wxLua_wxRegEx_Matches(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRegEx * self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call Matches - bool returns = (self->Matches(text, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_Replace[] = { &wxluatype_wxRegEx, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRegEx_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_Replace[1] = {{ wxLua_wxRegEx_Replace, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRegEx_Replace }}; -// %override wxLua_wxRegEx_Replace -// int Replace(wxString* text, const wxString& replacement, size_t maxMatches = 0) const -static int LUACALL wxLua_wxRegEx_Replace(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t maxMatches = 0 - size_t maxMatches = (argCount >= 4 ? (size_t)wxlua_getintegertype(L, 4) : 0); - // const wxString& replacement - wxString replacement = wxlua_getwxStringtype(L, 3); - // wxString* text - wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRegEx *self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call Replace - int returns = self->Replace(&text, replacement, maxMatches); - // push the result number - lua_pushinteger(L, returns); - // push the result text - wxlua_pushwxString(L, text); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_ReplaceAll[] = { &wxluatype_wxRegEx, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRegEx_ReplaceAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_ReplaceAll[1] = {{ wxLua_wxRegEx_ReplaceAll, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegEx_ReplaceAll }}; -// %override wxLua_wxRegEx_ReplaceAll -// int ReplaceAll(wxString* text, const wxString& replacement) const -static int LUACALL wxLua_wxRegEx_ReplaceAll(lua_State *L) -{ - // const wxString& replacement - wxString replacement = wxlua_getwxStringtype(L, 3); - // wxString* text - wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRegEx *self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call ReplaceAll - int returns = self->ReplaceAll(&text, replacement); - // push the result number - lua_pushinteger(L, returns); - // push the result text - wxlua_pushwxString(L, text); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_ReplaceFirst[] = { &wxluatype_wxRegEx, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRegEx_ReplaceFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_ReplaceFirst[1] = {{ wxLua_wxRegEx_ReplaceFirst, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegEx_ReplaceFirst }}; -// %override wxLua_wxRegEx_ReplaceFirst -// int ReplaceFirst(wxString* text, const wxString& replacement) const -static int LUACALL wxLua_wxRegEx_ReplaceFirst(lua_State *L) -{ - // const wxString& replacement - wxString replacement = wxlua_getwxStringtype(L, 3); - // wxString* text - wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRegEx *self = (wxRegEx *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegEx); - // call ReplaceFirst - int returns = self->ReplaceFirst(&text, replacement); - // push the result number - lua_pushinteger(L, returns); - // push the result text - wxlua_pushwxString(L, text); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_delete[] = { &wxluatype_wxRegEx, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRegEx_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegEx_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegEx_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_constructor1[1] = {{ wxLua_wxRegEx_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxRegEx_constructor1 }}; -// wxRegEx(const wxString& expr, int flags = wxRE_DEFAULT); -static int LUACALL wxLua_wxRegEx_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRE_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxRE_DEFAULT); - // const wxString expr - const wxString expr = wxlua_getwxStringtype(L, 1); - // call constructor - wxRegEx* returns = new wxRegEx(expr, flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegEx); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegEx); - - return 1; -} - -static int LUACALL wxLua_wxRegEx_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_constructor[1] = {{ wxLua_wxRegEx_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRegEx(); -static int LUACALL wxLua_wxRegEx_constructor(lua_State *L) -{ - // call constructor - wxRegEx* returns = new wxRegEx(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegEx); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegEx); - - return 1; -} - - - - -#if (wxLUA_USE_wxRegEx && wxUSE_REGEX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_GetMatch_overload[] = -{ - { wxLua_wxRegEx_GetMatch1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRegEx_GetMatch1 }, - { wxLua_wxRegEx_GetMatch, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRegEx_GetMatch }, -}; -static int s_wxluafunc_wxLua_wxRegEx_GetMatch_overload_count = sizeof(s_wxluafunc_wxLua_wxRegEx_GetMatch_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegEx_constructor_overload[] = -{ - { wxLua_wxRegEx_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxRegEx_constructor1 }, - { wxLua_wxRegEx_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRegEx_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRegEx_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRegEx && wxUSE_REGEX) - -void wxLua_wxRegEx_delete_function(void** p) -{ - wxRegEx* o = (wxRegEx*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRegEx_methods[] = { - { "Compile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_Compile, 1, NULL }, - -#if (wxLUA_USE_wxRegEx && wxUSE_REGEX) - { "GetMatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_GetMatch_overload, s_wxluafunc_wxLua_wxRegEx_GetMatch_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegEx && wxUSE_REGEX) - - { "GetMatchCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_GetMatchCount, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_IsValid, 1, NULL }, - { "Matches", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_Matches, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_Replace, 1, NULL }, - { "ReplaceAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_ReplaceAll, 1, NULL }, - { "ReplaceFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegEx_ReplaceFirst, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRegEx_delete, 1, NULL }, - -#if (wxLUA_USE_wxRegEx && wxUSE_REGEX) - { "wxRegEx", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRegEx_constructor_overload, s_wxluafunc_wxLua_wxRegEx_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegEx && wxUSE_REGEX) - - { 0, 0, 0, 0 }, -}; - -int wxRegEx_methodCount = sizeof(wxRegEx_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRegEx && wxUSE_REGEX - -// --------------------------------------------------------------------------- -// Bind class wxEventLoopBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEventLoopBase' -int wxluatype_wxEventLoopBase = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_Dispatch[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_Dispatch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_Dispatch[1] = {{ wxLua_wxEventLoopBase_Dispatch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_Dispatch }}; -// %wxchkver_3_0_0 bool Dispatch(); -static int LUACALL wxLua_wxEventLoopBase_Dispatch(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call Dispatch - bool returns = (self->Dispatch()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_DispatchTimeout[] = { &wxluatype_wxEventLoopBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxEventLoopBase_DispatchTimeout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_DispatchTimeout[1] = {{ wxLua_wxEventLoopBase_DispatchTimeout, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEventLoopBase_DispatchTimeout }}; -// %wxchkver_3_0_0 int DispatchTimeout(unsigned long timeout); -static int LUACALL wxLua_wxEventLoopBase_DispatchTimeout(lua_State *L) -{ - // unsigned long timeout - unsigned long timeout = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call DispatchTimeout - int returns = (self->DispatchTimeout(timeout)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_Exit[] = { &wxluatype_wxEventLoopBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEventLoopBase_Exit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_Exit[1] = {{ wxLua_wxEventLoopBase_Exit, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxEventLoopBase_Exit }}; -// %wxchkver_3_0_0 void Exit(int rc = 0); -static int LUACALL wxLua_wxEventLoopBase_Exit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int rc = 0 - int rc = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call Exit - self->Exit(rc); - - return 0; -} - -static int LUACALL wxLua_wxEventLoopBase_GetActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_GetActive[1] = {{ wxLua_wxEventLoopBase_GetActive, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 static wxEventLoopBase *GetActive(); -static int LUACALL wxLua_wxEventLoopBase_GetActive(lua_State *L) -{ - // call GetActive - wxEventLoopBase* returns = (wxEventLoopBase*)wxEventLoopBase::GetActive(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEventLoopBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_IsEventAllowedInsideYield[] = { &wxluatype_wxEventLoopBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxEventLoopBase_IsEventAllowedInsideYield(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_IsEventAllowedInsideYield[1] = {{ wxLua_wxEventLoopBase_IsEventAllowedInsideYield, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEventLoopBase_IsEventAllowedInsideYield }}; -// %wxchkver_3_0_0 bool IsEventAllowedInsideYield(wxEventCategory cat) const; -static int LUACALL wxLua_wxEventLoopBase_IsEventAllowedInsideYield(lua_State *L) -{ - // wxEventCategory cat - wxEventCategory cat = (wxEventCategory)wxlua_getenumtype(L, 2); - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call IsEventAllowedInsideYield - bool returns = (self->IsEventAllowedInsideYield(cat)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_IsMain[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_IsMain(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_IsMain[1] = {{ wxLua_wxEventLoopBase_IsMain, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_IsMain }}; -// %wxchkver_3_0_0 bool IsMain() const; -static int LUACALL wxLua_wxEventLoopBase_IsMain(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call IsMain - bool returns = (self->IsMain()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_IsOk[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_IsOk[1] = {{ wxLua_wxEventLoopBase_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxEventLoopBase_IsOk(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_IsRunning[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_IsRunning(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_IsRunning[1] = {{ wxLua_wxEventLoopBase_IsRunning, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_IsRunning }}; -// %wxchkver_3_0_0 bool IsRunning() const; -static int LUACALL wxLua_wxEventLoopBase_IsRunning(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call IsRunning - bool returns = (self->IsRunning()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_IsYielding[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_IsYielding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_IsYielding[1] = {{ wxLua_wxEventLoopBase_IsYielding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_IsYielding }}; -// %wxchkver_3_0_0 bool IsYielding() const; -static int LUACALL wxLua_wxEventLoopBase_IsYielding(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call IsYielding - bool returns = (self->IsYielding()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_Pending[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_Pending(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_Pending[1] = {{ wxLua_wxEventLoopBase_Pending, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_Pending }}; -// %wxchkver_3_0_0 bool Pending() const; -static int LUACALL wxLua_wxEventLoopBase_Pending(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call Pending - bool returns = (self->Pending()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_ProcessIdle[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_ProcessIdle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_ProcessIdle[1] = {{ wxLua_wxEventLoopBase_ProcessIdle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_ProcessIdle }}; -// %wxchkver_3_0_0 bool ProcessIdle(); -static int LUACALL wxLua_wxEventLoopBase_ProcessIdle(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call ProcessIdle - bool returns = (self->ProcessIdle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_Run[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_Run(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_Run[1] = {{ wxLua_wxEventLoopBase_Run, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_Run }}; -// %wxchkver_3_0_0 int Run(); -static int LUACALL wxLua_wxEventLoopBase_Run(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call Run - int returns = (self->Run()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_ScheduleExit[] = { &wxluatype_wxEventLoopBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEventLoopBase_ScheduleExit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_ScheduleExit[1] = {{ wxLua_wxEventLoopBase_ScheduleExit, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxEventLoopBase_ScheduleExit }}; -// %wxchkver_3_0_0 void ScheduleExit(int rc = 0); -static int LUACALL wxLua_wxEventLoopBase_ScheduleExit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int rc = 0 - int rc = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call ScheduleExit - self->ScheduleExit(rc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_SetActive[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_SetActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_SetActive[1] = {{ wxLua_wxEventLoopBase_SetActive, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_SetActive }}; -// %wxchkver_3_0_0 static void SetActive(wxEventLoopBase* loop); -static int LUACALL wxLua_wxEventLoopBase_SetActive(lua_State *L) -{ - // wxEventLoopBase loop - wxEventLoopBase * loop = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call SetActive - wxEventLoopBase::SetActive(loop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_WakeUp[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_WakeUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_WakeUp[1] = {{ wxLua_wxEventLoopBase_WakeUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_WakeUp }}; -// %wxchkver_3_0_0 void WakeUp(); -static int LUACALL wxLua_wxEventLoopBase_WakeUp(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call WakeUp - self->WakeUp(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_WakeUpIdle[] = { &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxEventLoopBase_WakeUpIdle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_WakeUpIdle[1] = {{ wxLua_wxEventLoopBase_WakeUpIdle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_WakeUpIdle }}; -// %wxchkver_3_0_0 void WakeUpIdle(); -static int LUACALL wxLua_wxEventLoopBase_WakeUpIdle(lua_State *L) -{ - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call WakeUpIdle - self->WakeUpIdle(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_Yield[] = { &wxluatype_wxEventLoopBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxEventLoopBase_Yield(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_Yield[1] = {{ wxLua_wxEventLoopBase_Yield, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxEventLoopBase_Yield }}; -// %wxchkver_3_0_0 bool Yield(bool onlyIfNeeded = false); -static int LUACALL wxLua_wxEventLoopBase_Yield(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool onlyIfNeeded = false - bool onlyIfNeeded = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call Yield - bool returns = (self->Yield(onlyIfNeeded)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_YieldFor[] = { &wxluatype_wxEventLoopBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEventLoopBase_YieldFor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_YieldFor[1] = {{ wxLua_wxEventLoopBase_YieldFor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEventLoopBase_YieldFor }}; -// %wxchkver_3_0_0 bool YieldFor(long eventsToProcess); -static int LUACALL wxLua_wxEventLoopBase_YieldFor(lua_State *L) -{ - // long eventsToProcess - long eventsToProcess = (long)wxlua_getnumbertype(L, 2); - // get this - wxEventLoopBase * self = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventLoopBase); - // call YieldFor - bool returns = (self->YieldFor(eventsToProcess)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventLoopBase_delete[] = { &wxluatype_wxEventLoopBase, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventLoopBase_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxEventLoopBase_delete }}; - - - -void wxLua_wxEventLoopBase_delete_function(void** p) -{ - wxEventLoopBase* o = (wxEventLoopBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEventLoopBase_methods[] = { -#if wxCHECK_VERSION(3,0,0) - { "Dispatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_Dispatch, 1, NULL }, - { "DispatchTimeout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_DispatchTimeout, 1, NULL }, - { "Exit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_Exit, 1, NULL }, - { "GetActive", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxEventLoopBase_GetActive, 1, NULL }, - { "IsEventAllowedInsideYield", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_IsEventAllowedInsideYield, 1, NULL }, - { "IsMain", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_IsMain, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_IsOk, 1, NULL }, - { "IsRunning", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_IsRunning, 1, NULL }, - { "IsYielding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_IsYielding, 1, NULL }, - { "Pending", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_Pending, 1, NULL }, - { "ProcessIdle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_ProcessIdle, 1, NULL }, - { "Run", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_Run, 1, NULL }, - { "ScheduleExit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_ScheduleExit, 1, NULL }, - { "SetActive", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxEventLoopBase_SetActive, 1, NULL }, - { "WakeUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_WakeUp, 1, NULL }, - { "WakeUpIdle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_WakeUpIdle, 1, NULL }, - { "Yield", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_Yield, 1, NULL }, - { "YieldFor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventLoopBase_YieldFor, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxEventLoopBase_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxEventLoopBase_methodCount = sizeof(wxEventLoopBase_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxEventFilter -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEventFilter' -int wxluatype_wxEventFilter = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEventFilter_FilterEvent[] = { &wxluatype_wxEventFilter, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEventFilter_FilterEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEventFilter_FilterEvent[1] = {{ wxLua_wxEventFilter_FilterEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEventFilter_FilterEvent }}; -// %wxchkver_3_0_0 int FilterEvent(wxEvent& event); -static int LUACALL wxLua_wxEventFilter_FilterEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxEventFilter * self = (wxEventFilter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventFilter); - // call FilterEvent - int returns = (self->FilterEvent(*event)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - - - -void wxLua_wxEventFilter_delete_function(void** p) -{ - wxEventFilter* o = (wxEventFilter*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEventFilter_methods[] = { -#if wxCHECK_VERSION(3,0,0) - { "FilterEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEventFilter_FilterEvent, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { 0, 0, 0, 0 }, -}; - -int wxEventFilter_methodCount = sizeof(wxEventFilter_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxEvtHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEvtHandler' -int wxluatype_wxEvtHandler = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_AddFilter[] = { &wxluatype_wxEventFilter, NULL }; -static int LUACALL wxLua_wxEvtHandler_AddFilter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_AddFilter[1] = {{ wxLua_wxEvtHandler_AddFilter, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_AddFilter }}; -// %wxchkver_3_0_0 static void AddFilter(wxEventFilter* filter); -static int LUACALL wxLua_wxEvtHandler_AddFilter(lua_State *L) -{ - // wxEventFilter filter - wxEventFilter * filter = (wxEventFilter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventFilter); - // call AddFilter - wxEvtHandler::AddFilter(filter); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_AddPendingEvent1[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvtHandler_AddPendingEvent1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent1[1] = {{ wxLua_wxEvtHandler_AddPendingEvent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_AddPendingEvent1 }}; -// !%wxchkver_3_0_0 void AddPendingEvent(wxEvent& event); -static int LUACALL wxLua_wxEvtHandler_AddPendingEvent1(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call AddPendingEvent - self->AddPendingEvent(*event); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_AddPendingEvent[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvtHandler_AddPendingEvent(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent[1] = {{ wxLua_wxEvtHandler_AddPendingEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_AddPendingEvent }}; -// %wxchkver_3_0_0 void AddPendingEvent(const wxEvent& event); -static int LUACALL wxLua_wxEvtHandler_AddPendingEvent(lua_State *L) -{ - // const wxEvent event - const wxEvent * event = (const wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call AddPendingEvent - self->AddPendingEvent(*event); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_CallAfter[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_CallAfter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_CallAfter[1] = {{ wxLua_wxEvtHandler_CallAfter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_CallAfter }}; -// %override wxLua_wxEvtHandler_CallAfter -class wxEvtHandlerLuaCallback : public wxEvtHandler -{ -public: - void Callback(lua_State *L, int funcref) { - int old_top = lua_gettop(L); - lua_rawgeti(L, LUA_REGISTRYINDEX, funcref); - luaL_unref(L, LUA_REGISTRYINDEX, funcref); // remove ref to function - int res = lua_pcall(L, 0, 0, 0); - if (res > 0) lua_error(L); - lua_settop(L, old_top); - } -}; - -static int LUACALL wxLua_wxEvtHandler_CallAfter(lua_State *L) -{ - if (!lua_isfunction(L, 2)) - wxlua_argerror(L, 2, wxT("a Lua function")); - - lua_pushvalue(L, 2); // push function to top of stack - int funcref = luaL_ref(L, LUA_REGISTRYINDEX); // ref function and pop it from stack - - wxEvtHandler *self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - self->CallAfter(&wxEvtHandlerLuaCallback::Callback, L, funcref); - - return 0; -} - - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_Connect[] = { &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TFUNCTION, NULL }; -static int LUACALL wxLua_wxEvtHandler_Connect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_Connect[1] = {{ wxLua_wxEvtHandler_Connect, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxEvtHandler_Connect }}; -// %override wxLua_wxEvtHandler_Connect -// void Connect(int id, int lastId, wxEventType eventType, LuaFunction func) - -#include "wxlua/wxlcallb.h" -// Connect an event to a handler. This Lua 'C' function supports -// function calls with either three or four parameters. These parameters -// are: The class (which must be derived from wxEvtHandler), -// The event type -// (Optional) The ID of the object the event is for -// A Lua function to call to handle the event. -// The Lua function gets called with a single parameter -// which is a reference to the event object -// associated with the event. -static int LUACALL wxLua_wxEvtHandler_Connect(lua_State *L) -{ - wxCHECK_MSG(wxluatype_wxEvtHandler != -1, 0, wxT("wxEvtHandler is not wrapped by wxLua")); - wxLuaState wxlState(L); - wxCHECK_MSG(wxlState.Ok(), 0, wxT("Invalid wxLuaState")); - - wxWindowID winId = wxID_ANY; - wxWindowID lastId = wxID_ANY; - wxEventType eventType = wxEVT_NULL; - - int nParams = lua_gettop(L); - - wxEvtHandler *evtHandler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - - int func_idx = 0; - int evttype_idx = 0; - - switch (nParams) - { - case 5: - { - //void Connect(int winid, int lastId, int eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL); - func_idx = 5; - evttype_idx = 4; - - if (wxlua_isintegertype(L, 3)) - lastId = (wxWindowID)lua_tonumber(L, 3); - else - { - wxlua_argerror(L, 3, wxT("an 'integer wxWindowID'")); - return 0; - } - - if (wxlua_isintegertype(L, 2)) - winId = (wxWindowID)lua_tonumber(L, 2); - else - { - wxlua_argerror(L, 2, wxT("an 'integer wxWindowID'")); - return 0; - } - - break; - } - case 4: - { - //void Connect(int winid, int eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL) - func_idx = 4; - evttype_idx = 3; - - if (wxlua_isintegertype(L, 2)) - winId = (wxWindowID)lua_tonumber(L, 2); - else - { - wxlua_argerror(L, 2, wxT("an 'integer wxWindowID'")); - return 0; - } - - break; - } - case 3: - { - //void Connect(int eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL) - func_idx = 3; - evttype_idx = 2; - break; - } - default: - { - wxlua_argerrormsg(L, wxT("Incorrect number of arguments to wxEventHandler::Connect().")); - return 0; - } - } - - if (!lua_isfunction(L, func_idx)) - { - wxlua_argerror(L, func_idx, wxT("a 'Lua function'")); - return 0; - } - - if (wxlua_isintegertype(L, evttype_idx)) - eventType = (wxEventType)lua_tonumber(L, evttype_idx); - else - { - wxlua_argerror(L, evttype_idx, wxT("an 'integer wxEventType'")); - return 0; - } - - // Create and connect the callback - wxLuaEventCallback* pCallback = new wxLuaEventCallback; - wxString errMsg(pCallback->Connect(wxlState, func_idx, winId, lastId, eventType, evtHandler)); - if (!errMsg.IsEmpty()) - { - delete pCallback; - wxlua_error(L, errMsg.c_str()); - } - - return 0; -} - - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_DeletePendingEvents[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_DeletePendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_DeletePendingEvents[1] = {{ wxLua_wxEvtHandler_DeletePendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_DeletePendingEvents }}; -// %wxchkver_3_0_0 void DeletePendingEvents(); -static int LUACALL wxLua_wxEvtHandler_DeletePendingEvents(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call DeletePendingEvents - self->DeletePendingEvents(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_Disconnect[] = { &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEvtHandler_Disconnect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_Disconnect[1] = {{ wxLua_wxEvtHandler_Disconnect, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxEvtHandler_Disconnect }}; -// %override wxLua_wxEvtHandler_Disconnect -// void Disconnect(int id, int lastId, wxEventType eventType) - -#include "wxlua/wxlcallb.h" -static int LUACALL wxLua_wxEvtHandler_Disconnect(lua_State *L) -{ - wxCHECK_MSG(wxluatype_wxEvtHandler != -1, 0, wxT("wxEvtHandler is not wrapped by wxLua")); - wxLuaState wxlState(L); - wxCHECK_MSG(wxlState.Ok(), 0, wxT("Invalid wxLuaState")); - - wxWindowID winId = wxID_ANY; - wxWindowID lastId = wxID_ANY; - wxEventType eventType = wxEVT_NULL; - - int nParams = lua_gettop(L); - - wxEvtHandler *evtHandler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - - int evttype_idx = 0; - - switch (nParams) - { - case 4: - { - //bool Disconnect(int winid, int lastId, wxEventType eventType, wxObjectEventFunction func = NULL, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL); - evttype_idx = 4; - - if (wxlua_isintegertype(L, 3)) - lastId = (wxWindowID)lua_tonumber(L, 3); - else - { - wxlua_argerror(L, 3, wxT("an 'integer wxWindowID'")); - return 0; - } - - if (wxlua_isintegertype(L, 2)) - winId = (wxWindowID)lua_tonumber(L, 2); - else - { - wxlua_argerror(L, 2, wxT("an 'integer wxWindowID'")); - return 0; - } - - break; - } - case 3: - { - //bool Disconnect(int winid = wxID_ANY, wxEventType eventType = wxEVT_NULL, wxObjectEventFunction func = NULL, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL) - evttype_idx = 3; - - if (wxlua_isintegertype(L, 2)) - winId = (wxWindowID)lua_tonumber(L, 2); - else - { - wxlua_argerror(L, 1, wxT("an 'integer wxWindowID'")); - return 0; - } - - break; - } - case 2: - { - //bool Disconnect(wxEventType eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL) - evttype_idx = 2; - - break; - } - default: - { - wxlua_argerrormsg(L, wxT("Incorrect number of arguments to wxEventHandler::Disconnect().")); - return 0; - } - } - - if (wxlua_isintegertype(L, evttype_idx)) - eventType = (wxEventType)lua_tonumber(L, evttype_idx); - else - { - wxlua_argerror(L, evttype_idx, wxT("an 'integer wxEventType'")); - return 0; - } - - // Try to disconnect from the callback, it will delete the wxLuaEventCallback. - bool returns = evtHandler->Disconnect(winId, lastId, eventType, (wxObjectEventFunction)&wxLuaEventCallback::OnAllEvents); - - lua_pushboolean(L, returns); - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_GetClientData[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_GetClientData[1] = {{ wxLua_wxEvtHandler_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_GetClientData }}; -// voidptr_long GetClientData(); // %override C++ returns (void *) You get a number here -static int LUACALL wxLua_wxEvtHandler_GetClientData(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call GetClientData - wxUIntPtr returns = (wxUIntPtr)self->GetClientData(); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_GetClientObject[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_GetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_GetClientObject[1] = {{ wxLua_wxEvtHandler_GetClientObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_GetClientObject }}; -// wxClientData* GetClientObject() const; -static int LUACALL wxLua_wxEvtHandler_GetClientObject(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call GetClientObject - wxClientData* returns = (wxClientData*)self->GetClientObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_GetEvtHandlerEnabled[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_GetEvtHandlerEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_GetEvtHandlerEnabled[1] = {{ wxLua_wxEvtHandler_GetEvtHandlerEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_GetEvtHandlerEnabled }}; -// bool GetEvtHandlerEnabled(); -static int LUACALL wxLua_wxEvtHandler_GetEvtHandlerEnabled(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call GetEvtHandlerEnabled - bool returns = (self->GetEvtHandlerEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_GetNextHandler[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_GetNextHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_GetNextHandler[1] = {{ wxLua_wxEvtHandler_GetNextHandler, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_GetNextHandler }}; -// wxEvtHandler* GetNextHandler(); -static int LUACALL wxLua_wxEvtHandler_GetNextHandler(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call GetNextHandler - wxEvtHandler* returns = (wxEvtHandler*)self->GetNextHandler(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_GetPreviousHandler[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_GetPreviousHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_GetPreviousHandler[1] = {{ wxLua_wxEvtHandler_GetPreviousHandler, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_GetPreviousHandler }}; -// wxEvtHandler* GetPreviousHandler(); -static int LUACALL wxLua_wxEvtHandler_GetPreviousHandler(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call GetPreviousHandler - wxEvtHandler* returns = (wxEvtHandler*)self->GetPreviousHandler(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_IsUnlinked[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_IsUnlinked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_IsUnlinked[1] = {{ wxLua_wxEvtHandler_IsUnlinked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_IsUnlinked }}; -// %wxchkver_3_0_0 bool IsUnlinked() const; -static int LUACALL wxLua_wxEvtHandler_IsUnlinked(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call IsUnlinked - bool returns = (self->IsUnlinked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_ProcessEvent[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvtHandler_ProcessEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_ProcessEvent[1] = {{ wxLua_wxEvtHandler_ProcessEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_ProcessEvent }}; -// virtual bool ProcessEvent(wxEvent& event); -static int LUACALL wxLua_wxEvtHandler_ProcessEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call ProcessEvent - bool returns = (self->ProcessEvent(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_ProcessEventLocally[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvtHandler_ProcessEventLocally(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_ProcessEventLocally[1] = {{ wxLua_wxEvtHandler_ProcessEventLocally, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_ProcessEventLocally }}; -// %wxchkver_3_0_0 bool ProcessEventLocally(wxEvent& event); -static int LUACALL wxLua_wxEvtHandler_ProcessEventLocally(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call ProcessEventLocally - bool returns = (self->ProcessEventLocally(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_ProcessPendingEvents[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_ProcessPendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_ProcessPendingEvents[1] = {{ wxLua_wxEvtHandler_ProcessPendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_ProcessPendingEvents }}; -// %wxchkver_3_0_0 void ProcessPendingEvents(); -static int LUACALL wxLua_wxEvtHandler_ProcessPendingEvents(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call ProcessPendingEvents - self->ProcessPendingEvents(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_QueueEvent[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvtHandler_QueueEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_QueueEvent[1] = {{ wxLua_wxEvtHandler_QueueEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_QueueEvent }}; -// %wxchkver_2_9 virtual void QueueEvent(%ungc wxEvent *event); -static int LUACALL wxLua_wxEvtHandler_QueueEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - if (wxluaO_isgcobject(L, event)) wxluaO_undeletegcobject(L, event); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call QueueEvent - self->QueueEvent(event); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_RemoveFilter[] = { &wxluatype_wxEventFilter, NULL }; -static int LUACALL wxLua_wxEvtHandler_RemoveFilter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_RemoveFilter[1] = {{ wxLua_wxEvtHandler_RemoveFilter, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_RemoveFilter }}; -// %wxchkver_3_0_0 static void RemoveFilter(wxEventFilter* filter); -static int LUACALL wxLua_wxEvtHandler_RemoveFilter(lua_State *L) -{ - // wxEventFilter filter - wxEventFilter * filter = (wxEventFilter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEventFilter); - // call RemoveFilter - wxEvtHandler::RemoveFilter(filter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_SafelyProcessEvent[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvtHandler_SafelyProcessEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_SafelyProcessEvent[1] = {{ wxLua_wxEvtHandler_SafelyProcessEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_SafelyProcessEvent }}; -// %wxchkver_3_0_0 bool SafelyProcessEvent(wxEvent& event); -static int LUACALL wxLua_wxEvtHandler_SafelyProcessEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call SafelyProcessEvent - bool returns = (self->SafelyProcessEvent(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_SetClientData[] = { &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEvtHandler_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_SetClientData[1] = {{ wxLua_wxEvtHandler_SetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_SetClientData }}; -// void SetClientData(voidptr_long number); // %override C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxEvtHandler_SetClientData(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call SetClientData - self->SetClientData((void*)number); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_SetClientObject[] = { &wxluatype_wxEvtHandler, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxEvtHandler_SetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_SetClientObject[1] = {{ wxLua_wxEvtHandler_SetClientObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_SetClientObject }}; -// void SetClientObject(wxClientData* data); -static int LUACALL wxLua_wxEvtHandler_SetClientObject(lua_State *L) -{ - // wxClientData data - wxClientData * data = (wxClientData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClientData); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call SetClientObject - self->SetClientObject(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_SetEvtHandlerEnabled[] = { &wxluatype_wxEvtHandler, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxEvtHandler_SetEvtHandlerEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_SetEvtHandlerEnabled[1] = {{ wxLua_wxEvtHandler_SetEvtHandlerEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_SetEvtHandlerEnabled }}; -// void SetEvtHandlerEnabled(bool enabled); -static int LUACALL wxLua_wxEvtHandler_SetEvtHandlerEnabled(lua_State *L) -{ - // bool enabled - bool enabled = wxlua_getbooleantype(L, 2); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call SetEvtHandlerEnabled - self->SetEvtHandlerEnabled(enabled); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_SetNextHandler[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_SetNextHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_SetNextHandler[1] = {{ wxLua_wxEvtHandler_SetNextHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_SetNextHandler }}; -// void SetNextHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxEvtHandler_SetNextHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call SetNextHandler - self->SetNextHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_SetPreviousHandler[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_SetPreviousHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_SetPreviousHandler[1] = {{ wxLua_wxEvtHandler_SetPreviousHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_SetPreviousHandler }}; -// void SetPreviousHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxEvtHandler_SetPreviousHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call SetPreviousHandler - self->SetPreviousHandler(handler); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_Unlink[] = { &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxEvtHandler_Unlink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_Unlink[1] = {{ wxLua_wxEvtHandler_Unlink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_Unlink }}; -// %wxchkver_3_0_0 void Unlink(); -static int LUACALL wxLua_wxEvtHandler_Unlink(lua_State *L) -{ - // get this - wxEvtHandler * self = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call Unlink - self->Unlink(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvtHandler_delete[] = { &wxluatype_wxEvtHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxEvtHandler_delete }}; - -static int LUACALL wxLua_wxEvtHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_constructor[1] = {{ wxLua_wxEvtHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxEvtHandler(); -static int LUACALL wxLua_wxEvtHandler_constructor(lua_State *L) -{ - // call constructor - wxEvtHandler* returns = new wxEvtHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxEvtHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - - - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxEvtHandler_AddPendingEvent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_AddPendingEvent1 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxEvtHandler_AddPendingEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvtHandler_AddPendingEvent }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent_overload_count = sizeof(s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - -void wxLua_wxEvtHandler_delete_function(void** p) -{ - wxEvtHandler* o = (wxEvtHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEvtHandler_methods[] = { -#if wxCHECK_VERSION(3,0,0) - { "AddFilter", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxEvtHandler_AddFilter, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - { "AddPendingEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent_overload, s_wxluafunc_wxLua_wxEvtHandler_AddPendingEvent_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - -#if wxCHECK_VERSION(2,9,5) - { "CallAfter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_CallAfter, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "Connect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_Connect, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "DeletePendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_DeletePendingEvents, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "Disconnect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_Disconnect, 1, NULL }, - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_GetClientData, 1, NULL }, - { "GetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_GetClientObject, 1, NULL }, - { "GetEvtHandlerEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_GetEvtHandlerEnabled, 1, NULL }, - { "GetNextHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_GetNextHandler, 1, NULL }, - { "GetPreviousHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_GetPreviousHandler, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "IsUnlinked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_IsUnlinked, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "ProcessEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_ProcessEvent, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "ProcessEventLocally", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_ProcessEventLocally, 1, NULL }, - { "ProcessPendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_ProcessPendingEvents, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(2,9,0) - { "QueueEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_QueueEvent, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(3,0,0) - { "RemoveFilter", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxEvtHandler_RemoveFilter, 1, NULL }, - { "SafelyProcessEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_SafelyProcessEvent, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_SetClientData, 1, NULL }, - { "SetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_SetClientObject, 1, NULL }, - { "SetEvtHandlerEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_SetEvtHandlerEnabled, 1, NULL }, - { "SetNextHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_SetNextHandler, 1, NULL }, - { "SetPreviousHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_SetPreviousHandler, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "Unlink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvtHandler_Unlink, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxEvtHandler_delete, 1, NULL }, - { "wxEvtHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxEvtHandler_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxEvtHandler_methodCount = sizeof(wxEvtHandler_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEvent' -int wxluatype_wxEvent = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetEventCategory[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetEventCategory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetEventCategory[1] = {{ wxLua_wxEvent_GetEventCategory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetEventCategory }}; -// %wxchkver_3_0_0 wxEventCategory GetEventCategory() const; -static int LUACALL wxLua_wxEvent_GetEventCategory(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetEventCategory - wxEventCategory returns = (self->GetEventCategory()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxObject -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetEventObject[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetEventObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetEventObject[1] = {{ wxLua_wxEvent_GetEventObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetEventObject }}; -// wxObject* GetEventObject(); -static int LUACALL wxLua_wxEvent_GetEventObject(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetEventObject - wxObject* returns = (wxObject*)self->GetEventObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // wxLUA_USE_wxObject - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetEventType[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetEventType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetEventType[1] = {{ wxLua_wxEvent_GetEventType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetEventType }}; -// wxEventType GetEventType(); -static int LUACALL wxLua_wxEvent_GetEventType(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetEventType - wxEventType returns = (self->GetEventType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetEventUserData[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetEventUserData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetEventUserData[1] = {{ wxLua_wxEvent_GetEventUserData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetEventUserData }}; -// %wxchkver_3_0_0 wxObject *GetEventUserData() const; -static int LUACALL wxLua_wxEvent_GetEventUserData(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetEventUserData - wxObject* returns = (wxObject*)self->GetEventUserData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetId[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetId[1] = {{ wxLua_wxEvent_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetId }}; -// int GetId(); -static int LUACALL wxLua_wxEvent_GetId(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetSkipped[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetSkipped(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetSkipped[1] = {{ wxLua_wxEvent_GetSkipped, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetSkipped }}; -// bool GetSkipped(); -static int LUACALL wxLua_wxEvent_GetSkipped(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetSkipped - bool returns = (self->GetSkipped()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_GetTimestamp[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_GetTimestamp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_GetTimestamp[1] = {{ wxLua_wxEvent_GetTimestamp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_GetTimestamp }}; -// long GetTimestamp(); -static int LUACALL wxLua_wxEvent_GetTimestamp(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call GetTimestamp - long returns = (self->GetTimestamp()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_IsCommandEvent[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_IsCommandEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_IsCommandEvent[1] = {{ wxLua_wxEvent_IsCommandEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_IsCommandEvent }}; -// bool IsCommandEvent() const; -static int LUACALL wxLua_wxEvent_IsCommandEvent(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call IsCommandEvent - bool returns = (self->IsCommandEvent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_ResumePropagation[] = { &wxluatype_wxEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEvent_ResumePropagation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_ResumePropagation[1] = {{ wxLua_wxEvent_ResumePropagation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvent_ResumePropagation }}; -// void ResumePropagation(int propagationLevel); -static int LUACALL wxLua_wxEvent_ResumePropagation(lua_State *L) -{ - // int propagationLevel - int propagationLevel = (int)wxlua_getnumbertype(L, 2); - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call ResumePropagation - self->ResumePropagation(propagationLevel); - - return 0; -} - - -#if wxLUA_USE_wxObject -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_SetEventObject[] = { &wxluatype_wxEvent, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxEvent_SetEventObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_SetEventObject[1] = {{ wxLua_wxEvent_SetEventObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvent_SetEventObject }}; -// void SetEventObject(wxObject* object); -static int LUACALL wxLua_wxEvent_SetEventObject(lua_State *L) -{ - // wxObject object - wxObject * object = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call SetEventObject - self->SetEventObject(object); - - return 0; -} - -#endif // wxLUA_USE_wxObject - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_SetEventType[] = { &wxluatype_wxEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEvent_SetEventType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_SetEventType[1] = {{ wxLua_wxEvent_SetEventType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvent_SetEventType }}; -// void SetEventType(wxEventType type); -static int LUACALL wxLua_wxEvent_SetEventType(lua_State *L) -{ - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 2); - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call SetEventType - self->SetEventType(type); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_SetId[] = { &wxluatype_wxEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEvent_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_SetId[1] = {{ wxLua_wxEvent_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvent_SetId }}; -// void SetId(int id); -static int LUACALL wxLua_wxEvent_SetId(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call SetId - self->SetId(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_SetTimestamp[] = { &wxluatype_wxEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEvent_SetTimestamp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_SetTimestamp[1] = {{ wxLua_wxEvent_SetTimestamp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEvent_SetTimestamp }}; -// void SetTimestamp(long timeStamp); -static int LUACALL wxLua_wxEvent_SetTimestamp(lua_State *L) -{ - // long timeStamp - long timeStamp = (long)wxlua_getnumbertype(L, 2); - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call SetTimestamp - self->SetTimestamp(timeStamp); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_ShouldPropagate[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_ShouldPropagate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_ShouldPropagate[1] = {{ wxLua_wxEvent_ShouldPropagate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_ShouldPropagate }}; -// bool ShouldPropagate() const; -static int LUACALL wxLua_wxEvent_ShouldPropagate(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call ShouldPropagate - bool returns = (self->ShouldPropagate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_Skip[] = { &wxluatype_wxEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxEvent_Skip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_Skip[1] = {{ wxLua_wxEvent_Skip, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxEvent_Skip }}; -// void Skip(bool skip = true); -static int LUACALL wxLua_wxEvent_Skip(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool skip = true - bool skip = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call Skip - self->Skip(skip); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_StopPropagation[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxEvent_StopPropagation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_StopPropagation[1] = {{ wxLua_wxEvent_StopPropagation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEvent_StopPropagation }}; -// int StopPropagation(); -static int LUACALL wxLua_wxEvent_StopPropagation(lua_State *L) -{ - // get this - wxEvent * self = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call StopPropagation - int returns = (self->StopPropagation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEvent_delete[] = { &wxluatype_wxEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxEvent_delete }}; - - - -void wxLua_wxEvent_delete_function(void** p) -{ - wxEvent* o = (wxEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEvent_methods[] = { -#if wxCHECK_VERSION(3,0,0) - { "GetEventCategory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetEventCategory, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxObject - { "GetEventObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetEventObject, 1, NULL }, -#endif // wxLUA_USE_wxObject - - { "GetEventType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetEventType, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxObject) - { "GetEventUserData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetEventUserData, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxObject) - - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetId, 1, NULL }, - { "GetSkipped", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetSkipped, 1, NULL }, - { "GetTimestamp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_GetTimestamp, 1, NULL }, - { "IsCommandEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_IsCommandEvent, 1, NULL }, - { "ResumePropagation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_ResumePropagation, 1, NULL }, - -#if wxLUA_USE_wxObject - { "SetEventObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_SetEventObject, 1, NULL }, -#endif // wxLUA_USE_wxObject - - { "SetEventType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_SetEventType, 1, NULL }, - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_SetId, 1, NULL }, - { "SetTimestamp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_SetTimestamp, 1, NULL }, - { "ShouldPropagate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_ShouldPropagate, 1, NULL }, - { "Skip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_Skip, 1, NULL }, - { "StopPropagation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEvent_StopPropagation, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxEvent_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxEvent_methodCount = sizeof(wxEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxCHECK_VERSION(2,9,2) -// --------------------------------------------------------------------------- -// Bind class wxVersionInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxVersionInfo' -int wxluatype_wxVersionInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetCopyright[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetCopyright(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetCopyright[1] = {{ wxLua_wxVersionInfo_GetCopyright, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetCopyright }}; -// const wxString& GetCopyright() const; -static int LUACALL wxLua_wxVersionInfo_GetCopyright(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetCopyright - wxString returns = (self->GetCopyright()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetDescription[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetDescription[1] = {{ wxLua_wxVersionInfo_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetDescription }}; -// const wxString& GetDescription(); -static int LUACALL wxLua_wxVersionInfo_GetDescription(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetDescription - wxString returns = (self->GetDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetMajor[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetMajor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetMajor[1] = {{ wxLua_wxVersionInfo_GetMajor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetMajor }}; -// int GetMajor() const; -static int LUACALL wxLua_wxVersionInfo_GetMajor(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetMajor - int returns = (self->GetMajor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetMicro[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetMicro(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetMicro[1] = {{ wxLua_wxVersionInfo_GetMicro, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetMicro }}; -// int GetMicro() const; -static int LUACALL wxLua_wxVersionInfo_GetMicro(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetMicro - int returns = (self->GetMicro()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetMinor[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetMinor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetMinor[1] = {{ wxLua_wxVersionInfo_GetMinor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetMinor }}; -// int GetMinor() const; -static int LUACALL wxLua_wxVersionInfo_GetMinor(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetMinor - int returns = (self->GetMinor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetName[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetName[1] = {{ wxLua_wxVersionInfo_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetName }}; -// const wxString& GetName() const; -static int LUACALL wxLua_wxVersionInfo_GetName(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_GetVersionString[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_GetVersionString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_GetVersionString[1] = {{ wxLua_wxVersionInfo_GetVersionString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_GetVersionString }}; -// wxString GetVersionString() const; -static int LUACALL wxLua_wxVersionInfo_GetVersionString(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call GetVersionString - wxString returns = (self->GetVersionString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_HasCopyright[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_HasCopyright(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_HasCopyright[1] = {{ wxLua_wxVersionInfo_HasCopyright, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_HasCopyright }}; -// bool HasCopyright() const; -static int LUACALL wxLua_wxVersionInfo_HasCopyright(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call HasCopyright - bool returns = (self->HasCopyright()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_HasDescription[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_HasDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_HasDescription[1] = {{ wxLua_wxVersionInfo_HasDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_HasDescription }}; -// bool HasDescription() const; -static int LUACALL wxLua_wxVersionInfo_HasDescription(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call HasDescription - bool returns = (self->HasDescription()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_ToString[] = { &wxluatype_wxVersionInfo, NULL }; -static int LUACALL wxLua_wxVersionInfo_ToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_ToString[1] = {{ wxLua_wxVersionInfo_ToString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVersionInfo_ToString }}; -// wxString ToString() const; -static int LUACALL wxLua_wxVersionInfo_ToString(lua_State *L) -{ - // get this - wxVersionInfo * self = (wxVersionInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVersionInfo); - // call ToString - wxString returns = (self->ToString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVersionInfo_constructor[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxVersionInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVersionInfo_constructor[1] = {{ wxLua_wxVersionInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 6, s_wxluatypeArray_wxLua_wxVersionInfo_constructor }}; -// const wxString& copyright = ""); -static int LUACALL wxLua_wxVersionInfo_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString copyright = "" - const wxString copyright = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const wxString description = "" - const wxString description = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // int micro = 0 - int micro = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int minor = 0 - int minor = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int major = 0 - int major = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString name = "" - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxVersionInfo* returns = new wxVersionInfo(name, major, minor, micro, description, copyright); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVersionInfo); - - return 1; -} - - - - -void wxLua_wxVersionInfo_delete_function(void** p) -{ - wxVersionInfo* o = (wxVersionInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxVersionInfo_methods[] = { - { "GetCopyright", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetCopyright, 1, NULL }, - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetDescription, 1, NULL }, - { "GetMajor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetMajor, 1, NULL }, - { "GetMicro", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetMicro, 1, NULL }, - { "GetMinor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetMinor, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetName, 1, NULL }, - { "GetVersionString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_GetVersionString, 1, NULL }, - { "HasCopyright", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_HasCopyright, 1, NULL }, - { "HasDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_HasDescription, 1, NULL }, - { "ToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVersionInfo_ToString, 1, NULL }, - { "wxVersionInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxVersionInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxVersionInfo_methodCount = sizeof(wxVersionInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,9,2) - - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) -// --------------------------------------------------------------------------- -// Bind class wxMsgCatalog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMsgCatalog' -int wxluatype_wxMsgCatalog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMsgCatalog_CreateFromFile[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMsgCatalog_CreateFromFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMsgCatalog_CreateFromFile[1] = {{ wxLua_wxMsgCatalog_CreateFromFile, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxMsgCatalog_CreateFromFile }}; -// const wxString& domain); -static int LUACALL wxLua_wxMsgCatalog_CreateFromFile(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call CreateFromFile - wxMsgCatalog* returns = (wxMsgCatalog*)wxMsgCatalog::CreateFromFile(filename, domain); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMsgCatalog); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMsgCatalog_GetDomain[] = { &wxluatype_wxMsgCatalog, NULL }; -static int LUACALL wxLua_wxMsgCatalog_GetDomain(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMsgCatalog_GetDomain[1] = {{ wxLua_wxMsgCatalog_GetDomain, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMsgCatalog_GetDomain }}; -// wxString GetDomain() const; -static int LUACALL wxLua_wxMsgCatalog_GetDomain(lua_State *L) -{ - // get this - wxMsgCatalog * self = (wxMsgCatalog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMsgCatalog); - // call GetDomain - wxString returns = (self->GetDomain()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMsgCatalog_GetString1[] = { &wxluatype_wxMsgCatalog, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMsgCatalog_GetString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMsgCatalog_GetString1[1] = {{ wxLua_wxMsgCatalog_GetString1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxMsgCatalog_GetString1 }}; -// %wxchkver_3_1_1 const wxString *GetString(const wxString& sz, unsigned int n = UINT_MAX, const wxString& ct = "") const; -static int LUACALL wxLua_wxMsgCatalog_GetString1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString ct = "" - const wxString ct = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // unsigned int n = UINT_MAX - unsigned int n = (argCount >= 3 ? (unsigned int)wxlua_getuintegertype(L, 3) : UINT_MAX); - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 2); - // get this - wxMsgCatalog * self = (wxMsgCatalog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMsgCatalog); - // call GetString - wxString* returns = (wxString*)self->GetString(sz, n, ct); - // push the result string - wxlua_pushwxString(L, *returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMsgCatalog_GetString[] = { &wxluatype_wxMsgCatalog, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMsgCatalog_GetString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMsgCatalog_GetString[1] = {{ wxLua_wxMsgCatalog_GetString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMsgCatalog_GetString }}; -// !%wxchkver_3_1_1 const wxString *GetString(const wxString& sz, unsigned int n = UINT_MAX) const; -static int LUACALL wxLua_wxMsgCatalog_GetString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int n = UINT_MAX - unsigned int n = (argCount >= 3 ? (unsigned int)wxlua_getuintegertype(L, 3) : UINT_MAX); - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 2); - // get this - wxMsgCatalog * self = (wxMsgCatalog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMsgCatalog); - // call GetString - wxString* returns = (wxString*)self->GetString(sz, n); - // push the result string - wxlua_pushwxString(L, *returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMsgCatalog_delete[] = { &wxluatype_wxMsgCatalog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMsgCatalog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMsgCatalog_delete }}; - - - - -#if (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMsgCatalog_GetString_overload[] = -{ - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - { wxLua_wxMsgCatalog_GetString1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxMsgCatalog_GetString1 }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - { wxLua_wxMsgCatalog_GetString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMsgCatalog_GetString }, -#endif // (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) -}; -static int s_wxluafunc_wxLua_wxMsgCatalog_GetString_overload_count = sizeof(s_wxluafunc_wxLua_wxMsgCatalog_GetString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) - -void wxLua_wxMsgCatalog_delete_function(void** p) -{ - wxMsgCatalog* o = (wxMsgCatalog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMsgCatalog_methods[] = { - { "CreateFromFile", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMsgCatalog_CreateFromFile, 1, NULL }, - { "GetDomain", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMsgCatalog_GetDomain, 1, NULL }, - -#if (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMsgCatalog_GetString_overload, s_wxluafunc_wxLua_wxMsgCatalog_GetString_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMsgCatalog_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMsgCatalog_methodCount = sizeof(wxMsgCatalog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) -// --------------------------------------------------------------------------- -// Bind class wxTranslationsLoader -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTranslationsLoader' -int wxluatype_wxTranslationsLoader = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslationsLoader_GetAvailableTranslations[] = { &wxluatype_wxTranslationsLoader, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslationsLoader_GetAvailableTranslations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslationsLoader_GetAvailableTranslations[1] = {{ wxLua_wxTranslationsLoader_GetAvailableTranslations, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslationsLoader_GetAvailableTranslations }}; -// virtual wxArrayString GetAvailableTranslations(const wxString& domain) const = 0; -static int LUACALL wxLua_wxTranslationsLoader_GetAvailableTranslations(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslationsLoader * self = (wxTranslationsLoader *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslationsLoader); - // call GetAvailableTranslations - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetAvailableTranslations(domain)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslationsLoader_LoadCatalog[] = { &wxluatype_wxTranslationsLoader, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslationsLoader_LoadCatalog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslationsLoader_LoadCatalog[1] = {{ wxLua_wxTranslationsLoader_LoadCatalog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTranslationsLoader_LoadCatalog }}; -// const wxString& lang) = 0; -static int LUACALL wxLua_wxTranslationsLoader_LoadCatalog(lua_State *L) -{ - // const wxString lang - const wxString lang = wxlua_getwxStringtype(L, 3); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslationsLoader * self = (wxTranslationsLoader *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslationsLoader); - // call LoadCatalog - wxMsgCatalog* returns = (wxMsgCatalog*)self->LoadCatalog(domain, lang); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMsgCatalog); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslationsLoader_delete[] = { &wxluatype_wxTranslationsLoader, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslationsLoader_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTranslationsLoader_delete }}; - - - - -void wxLua_wxTranslationsLoader_delete_function(void** p) -{ - wxTranslationsLoader* o = (wxTranslationsLoader*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTranslationsLoader_methods[] = { -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - { "GetAvailableTranslations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslationsLoader_GetAvailableTranslations, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - - { "LoadCatalog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslationsLoader_LoadCatalog, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTranslationsLoader_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTranslationsLoader_methodCount = sizeof(wxTranslationsLoader_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) -// --------------------------------------------------------------------------- -// Bind class wxFileTranslationsLoader -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileTranslationsLoader' -int wxluatype_wxFileTranslationsLoader = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix[1] = {{ wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix }}; -// static void AddCatalogLookupPathPrefix(const wxString& prefix); -static int LUACALL wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix(lua_State *L) -{ - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 1); - // call AddCatalogLookupPathPrefix - wxFileTranslationsLoader::AddCatalogLookupPathPrefix(prefix); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTranslationsLoader_GetAvailableTranslations[] = { &wxluatype_wxFileTranslationsLoader, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileTranslationsLoader_GetAvailableTranslations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTranslationsLoader_GetAvailableTranslations[1] = {{ wxLua_wxFileTranslationsLoader_GetAvailableTranslations, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileTranslationsLoader_GetAvailableTranslations }}; -// virtual wxArrayString GetAvailableTranslations(const wxString& domain) const; -static int LUACALL wxLua_wxFileTranslationsLoader_GetAvailableTranslations(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxFileTranslationsLoader * self = (wxFileTranslationsLoader *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTranslationsLoader); - // call GetAvailableTranslations - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetAvailableTranslations(domain)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTranslationsLoader_LoadCatalog[] = { &wxluatype_wxFileTranslationsLoader, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileTranslationsLoader_LoadCatalog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTranslationsLoader_LoadCatalog[1] = {{ wxLua_wxFileTranslationsLoader_LoadCatalog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileTranslationsLoader_LoadCatalog }}; -// virtual wxMsgCatalog *LoadCatalog(const wxString& domain, const wxString& lang); -static int LUACALL wxLua_wxFileTranslationsLoader_LoadCatalog(lua_State *L) -{ - // const wxString lang - const wxString lang = wxlua_getwxStringtype(L, 3); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxFileTranslationsLoader * self = (wxFileTranslationsLoader *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTranslationsLoader); - // call LoadCatalog - wxMsgCatalog* returns = (wxMsgCatalog*)self->LoadCatalog(domain, lang); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMsgCatalog); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTranslationsLoader_delete[] = { &wxluatype_wxFileTranslationsLoader, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTranslationsLoader_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileTranslationsLoader_delete }}; - - - - -void wxLua_wxFileTranslationsLoader_delete_function(void** p) -{ - wxFileTranslationsLoader* o = (wxFileTranslationsLoader*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileTranslationsLoader_methods[] = { - { "AddCatalogLookupPathPrefix", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileTranslationsLoader_AddCatalogLookupPathPrefix, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - { "GetAvailableTranslations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTranslationsLoader_GetAvailableTranslations, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - - { "LoadCatalog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTranslationsLoader_LoadCatalog, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileTranslationsLoader_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileTranslationsLoader_methodCount = sizeof(wxFileTranslationsLoader_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - - -#if (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) -// --------------------------------------------------------------------------- -// Bind class wxResourceTranslationsLoader -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxResourceTranslationsLoader' -int wxluatype_wxResourceTranslationsLoader = WXLUA_TUNKNOWN; - -#if ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxResourceTranslationsLoader_GetAvailableTranslations[] = { &wxluatype_wxResourceTranslationsLoader, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxResourceTranslationsLoader_GetAvailableTranslations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxResourceTranslationsLoader_GetAvailableTranslations[1] = {{ wxLua_wxResourceTranslationsLoader_GetAvailableTranslations, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxResourceTranslationsLoader_GetAvailableTranslations }}; -// virtual wxArrayString GetAvailableTranslations(const wxString& domain) const; -static int LUACALL wxLua_wxResourceTranslationsLoader_GetAvailableTranslations(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxResourceTranslationsLoader * self = (wxResourceTranslationsLoader *)wxluaT_getuserdatatype(L, 1, wxluatype_wxResourceTranslationsLoader); - // call GetAvailableTranslations - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetAvailableTranslations(domain)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - -#if ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxResourceTranslationsLoader_LoadCatalog[] = { &wxluatype_wxResourceTranslationsLoader, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxResourceTranslationsLoader_LoadCatalog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxResourceTranslationsLoader_LoadCatalog[1] = {{ wxLua_wxResourceTranslationsLoader_LoadCatalog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxResourceTranslationsLoader_LoadCatalog }}; -// virtual wxMsgCatalog *LoadCatalog(const wxString& domain, const wxString& lang); -static int LUACALL wxLua_wxResourceTranslationsLoader_LoadCatalog(lua_State *L) -{ - // const wxString lang - const wxString lang = wxlua_getwxStringtype(L, 3); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxResourceTranslationsLoader * self = (wxResourceTranslationsLoader *)wxluaT_getuserdatatype(L, 1, wxluatype_wxResourceTranslationsLoader); - // call LoadCatalog - wxMsgCatalog* returns = (wxMsgCatalog*)self->LoadCatalog(domain, lang); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMsgCatalog); - - return 1; -} - -#endif // ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxResourceTranslationsLoader_delete[] = { &wxluatype_wxResourceTranslationsLoader, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxResourceTranslationsLoader_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxResourceTranslationsLoader_delete }}; - - - - -void wxLua_wxResourceTranslationsLoader_delete_function(void** p) -{ - wxResourceTranslationsLoader* o = (wxResourceTranslationsLoader*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxResourceTranslationsLoader_methods[] = { -#if ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - { "GetAvailableTranslations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxResourceTranslationsLoader_GetAvailableTranslations, 1, NULL }, -#endif // ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - -#if ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - { "LoadCatalog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxResourceTranslationsLoader_LoadCatalog, 1, NULL }, -#endif // ((defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxResourceTranslationsLoader_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxResourceTranslationsLoader_methodCount = sizeof(wxResourceTranslationsLoader_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) -// --------------------------------------------------------------------------- -// Bind class wxTranslations -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTranslations' -int wxluatype_wxTranslations = WXLUA_TUNKNOWN; - -#if ((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_AddCatalog1[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_AddCatalog1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_AddCatalog1[1] = {{ wxLua_wxTranslations_AddCatalog1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTranslations_AddCatalog1 }}; -// const wxString& msgIdCharset); -static int LUACALL wxLua_wxTranslations_AddCatalog1(lua_State *L) -{ - // const wxString msgIdCharset - const wxString msgIdCharset = wxlua_getwxStringtype(L, 4); - // wxLanguage msgIdLanguage - wxLanguage msgIdLanguage = (wxLanguage)wxlua_getenumtype(L, 3); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call AddCatalog - bool returns = (self->AddCatalog(domain, msgIdLanguage, msgIdCharset)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_AddCatalog[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTranslations_AddCatalog(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_AddCatalog[1] = {{ wxLua_wxTranslations_AddCatalog, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_AddCatalog }}; -// wxLanguage msgIdLanguage = wxLANGUAGE_ENGLISH_US); -static int LUACALL wxLua_wxTranslations_AddCatalog(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxLanguage msgIdLanguage = wxLANGUAGE_ENGLISH_US - wxLanguage msgIdLanguage = (argCount >= 3 ? (wxLanguage)wxlua_getenumtype(L, 3) : wxLANGUAGE_ENGLISH_US); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call AddCatalog - bool returns = (self->AddCatalog(domain, msgIdLanguage)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_AddStdCatalog[] = { &wxluatype_wxTranslations, NULL }; -static int LUACALL wxLua_wxTranslations_AddStdCatalog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_AddStdCatalog[1] = {{ wxLua_wxTranslations_AddStdCatalog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTranslations_AddStdCatalog }}; -// bool AddStdCatalog(); -static int LUACALL wxLua_wxTranslations_AddStdCatalog(lua_State *L) -{ - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call AddStdCatalog - bool returns = (self->AddStdCatalog()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxTranslations_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_Get[1] = {{ wxLua_wxTranslations_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxTranslations *Get(); -static int LUACALL wxLua_wxTranslations_Get(lua_State *L) -{ - // call Get - wxTranslations* returns = (wxTranslations*)wxTranslations::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTranslations); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetAvailableTranslations[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetAvailableTranslations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetAvailableTranslations[1] = {{ wxLua_wxTranslations_GetAvailableTranslations, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_GetAvailableTranslations }}; -// wxArrayString GetAvailableTranslations(const wxString& domain) const; -static int LUACALL wxLua_wxTranslations_GetAvailableTranslations(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetAvailableTranslations - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetAvailableTranslations(domain)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetBestTranslation1[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetBestTranslation1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetBestTranslation1[1] = {{ wxLua_wxTranslations_GetBestTranslation1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_GetBestTranslation1 }}; -// const wxString& msgIdLanguage = "en"); -static int LUACALL wxLua_wxTranslations_GetBestTranslation1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString msgIdLanguage = "en" - const wxString msgIdLanguage = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("en"))); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetBestTranslation - wxString returns = (self->GetBestTranslation(domain, msgIdLanguage)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetBestTranslation[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTranslations_GetBestTranslation(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetBestTranslation[1] = {{ wxLua_wxTranslations_GetBestTranslation, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTranslations_GetBestTranslation }}; -// wxString GetBestTranslation(const wxString& domain, wxLanguage msgIdLanguage); -static int LUACALL wxLua_wxTranslations_GetBestTranslation(lua_State *L) -{ - // wxLanguage msgIdLanguage - wxLanguage msgIdLanguage = (wxLanguage)wxlua_getenumtype(L, 3); - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetBestTranslation - wxString returns = (self->GetBestTranslation(domain, msgIdLanguage)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetHeaderValue[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetHeaderValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetHeaderValue[1] = {{ wxLua_wxTranslations_GetHeaderValue, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_GetHeaderValue }}; -// const wxString& domain = "") const; -static int LUACALL wxLua_wxTranslations_GetHeaderValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = "" - const wxString domain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString header - const wxString header = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetHeaderValue - wxString returns = (self->GetHeaderValue(header, domain)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString3[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetTranslatedString3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetTranslatedString3[1] = {{ wxLua_wxTranslations_GetTranslatedString3, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString3 }}; -// const wxString& context = "") const; -static int LUACALL wxLua_wxTranslations_GetTranslatedString3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString context = "" - const wxString context = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxString domain = "" - const wxString domain = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString origString - const wxString origString = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetTranslatedString - wxString* returns = (wxString*)self->GetTranslatedString(origString, n, domain, context); - // push the result string - wxlua_pushwxString(L, *returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString2[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetTranslatedString2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetTranslatedString2[1] = {{ wxLua_wxTranslations_GetTranslatedString2, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString2 }}; -// const wxString& context = "") const; -static int LUACALL wxLua_wxTranslations_GetTranslatedString2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString context = "" - const wxString context = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString domain = "" - const wxString domain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString origString - const wxString origString = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetTranslatedString - wxString* returns = (wxString*)self->GetTranslatedString(origString, domain, context); - // push the result string - wxlua_pushwxString(L, *returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString1[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetTranslatedString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetTranslatedString1[1] = {{ wxLua_wxTranslations_GetTranslatedString1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString1 }}; -// const wxString& domain = wxEmptyString) const; -static int LUACALL wxLua_wxTranslations_GetTranslatedString1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = wxEmptyString - const wxString domain = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString origString - const wxString origString = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetTranslatedString - wxString* returns = (wxString*)self->GetTranslatedString(origString, n, domain); - // push the result string - wxlua_pushwxString(L, *returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetTranslatedString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetTranslatedString[1] = {{ wxLua_wxTranslations_GetTranslatedString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString }}; -// const wxString& domain = wxEmptyString) const; -static int LUACALL wxLua_wxTranslations_GetTranslatedString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = wxEmptyString - const wxString domain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString origString - const wxString origString = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call GetTranslatedString - wxString* returns = (wxString*)self->GetTranslatedString(origString, domain); - // push the result string - wxlua_pushwxString(L, *returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_GetUntranslatedString[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_GetUntranslatedString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetUntranslatedString[1] = {{ wxLua_wxTranslations_GetUntranslatedString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTranslations_GetUntranslatedString }}; -// static const wxString& GetUntranslatedString(const wxString& str); -static int LUACALL wxLua_wxTranslations_GetUntranslatedString(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call GetUntranslatedString - wxString returns = (wxTranslations::GetUntranslatedString(str)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_IsLoaded[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_IsLoaded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_IsLoaded[1] = {{ wxLua_wxTranslations_IsLoaded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_IsLoaded }}; -// bool IsLoaded(const wxString& domain) const; -static int LUACALL wxLua_wxTranslations_IsLoaded(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call IsLoaded - bool returns = (self->IsLoaded(domain)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_Set[] = { &wxluatype_wxTranslations, NULL }; -static int LUACALL wxLua_wxTranslations_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_Set[1] = {{ wxLua_wxTranslations_Set, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTranslations_Set }}; -// static void Set(wxTranslations *t); -static int LUACALL wxLua_wxTranslations_Set(lua_State *L) -{ - // wxTranslations t - wxTranslations * t = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call Set - wxTranslations::Set(t); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_SetLanguage1[] = { &wxluatype_wxTranslations, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTranslations_SetLanguage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_SetLanguage1[1] = {{ wxLua_wxTranslations_SetLanguage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_SetLanguage1 }}; -// void SetLanguage(const wxString& lang); -static int LUACALL wxLua_wxTranslations_SetLanguage1(lua_State *L) -{ - // const wxString lang - const wxString lang = wxlua_getwxStringtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call SetLanguage - self->SetLanguage(lang); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_SetLanguage[] = { &wxluatype_wxTranslations, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTranslations_SetLanguage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_SetLanguage[1] = {{ wxLua_wxTranslations_SetLanguage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_SetLanguage }}; -// void SetLanguage(wxLanguage lang); -static int LUACALL wxLua_wxTranslations_SetLanguage(lua_State *L) -{ - // wxLanguage lang - wxLanguage lang = (wxLanguage)wxlua_getenumtype(L, 2); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call SetLanguage - self->SetLanguage(lang); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_SetLoader[] = { &wxluatype_wxTranslations, &wxluatype_wxTranslationsLoader, NULL }; -static int LUACALL wxLua_wxTranslations_SetLoader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_SetLoader[1] = {{ wxLua_wxTranslations_SetLoader, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_SetLoader }}; -// void SetLoader(wxTranslationsLoader *loader); -static int LUACALL wxLua_wxTranslations_SetLoader(lua_State *L) -{ - // wxTranslationsLoader loader - wxTranslationsLoader * loader = (wxTranslationsLoader *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTranslationsLoader); - // get this - wxTranslations * self = (wxTranslations *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTranslations); - // call SetLoader - self->SetLoader(loader); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTranslations_delete[] = { &wxluatype_wxTranslations, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTranslations_delete }}; - -static int LUACALL wxLua_wxTranslations_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_constructor[1] = {{ wxLua_wxTranslations_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTranslations(); -static int LUACALL wxLua_wxTranslations_constructor(lua_State *L) -{ - // call constructor - wxTranslations* returns = new wxTranslations(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTranslations); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTranslations); - - return 1; -} - - - - -#if (((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_AddCatalog_overload[] = -{ - -#if ((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxTranslations_AddCatalog1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTranslations_AddCatalog1 }, -#endif // ((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxTranslations_AddCatalog, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_AddCatalog }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxTranslations_AddCatalog_overload_count = sizeof(s_wxluafunc_wxLua_wxTranslations_AddCatalog_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetBestTranslation_overload[] = -{ - { wxLua_wxTranslations_GetBestTranslation1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_GetBestTranslation1 }, - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxTranslations_GetBestTranslation, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTranslations_GetBestTranslation }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxTranslations_GetBestTranslation_overload_count = sizeof(s_wxluafunc_wxLua_wxTranslations_GetBestTranslation_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - -#if (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_GetTranslatedString_overload[] = -{ - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - { wxLua_wxTranslations_GetTranslatedString3, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString3 }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - { wxLua_wxTranslations_GetTranslatedString2, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString2 }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - { wxLua_wxTranslations_GetTranslatedString1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString1 }, -#endif // (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - -#if (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) - { wxLua_wxTranslations_GetTranslatedString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTranslations_GetTranslatedString }, -#endif // (!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) -}; -static int s_wxluafunc_wxLua_wxTranslations_GetTranslatedString_overload_count = sizeof(s_wxluafunc_wxLua_wxTranslations_GetTranslatedString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTranslations_SetLanguage_overload[] = -{ - { wxLua_wxTranslations_SetLanguage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_SetLanguage1 }, - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxTranslations_SetLanguage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTranslations_SetLanguage }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxTranslations_SetLanguage_overload_count = sizeof(s_wxluafunc_wxLua_wxTranslations_SetLanguage_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - -void wxLua_wxTranslations_delete_function(void** p) -{ - wxTranslations* o = (wxTranslations*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTranslations_methods[] = { -#if (((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - { "AddCatalog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_AddCatalog_overload, s_wxluafunc_wxLua_wxTranslations_AddCatalog_overload_count, 0 }, -#endif // (((!wxUSE_UNICODE) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - - { "AddStdCatalog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_AddStdCatalog, 1, NULL }, - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTranslations_Get, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - { "GetAvailableTranslations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_GetAvailableTranslations, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxLUA_USE_wxArrayString) - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - { "GetBestTranslation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_GetBestTranslation_overload, s_wxluafunc_wxLua_wxTranslations_GetBestTranslation_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - - { "GetHeaderValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_GetHeaderValue, 1, NULL }, - -#if (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) - { "GetTranslatedString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_GetTranslatedString_overload, s_wxluafunc_wxLua_wxTranslations_GetTranslatedString_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,1,1)))||((!wxCHECK_VERSION(3,1,1)) && ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))) - - { "GetUntranslatedString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTranslations_GetUntranslatedString, 1, NULL }, - { "IsLoaded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_IsLoaded, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTranslations_Set, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - { "SetLanguage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_SetLanguage_overload, s_wxluafunc_wxLua_wxTranslations_SetLanguage_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL))||(((wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL)) && (wxUSE_INTL)) - - { "SetLoader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTranslations_SetLoader, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTranslations_delete, 1, NULL }, - { "wxTranslations", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTranslations_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTranslations_methodCount = sizeof(wxTranslations_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - - -#if wxUSE_INTL -// --------------------------------------------------------------------------- -// Bind struct wxLanguageInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLanguageInfo' -int wxluatype_wxLanguageInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Get_CanonicalName[] = { &wxluatype_wxLanguageInfo, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Get_CanonicalName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Get_CanonicalName[1] = {{ wxLua_wxLanguageInfo_Get_CanonicalName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLanguageInfo_Get_CanonicalName }}; -// wxString CanonicalName; // Canonical name, e.g. fr_FR -static int LUACALL wxLua_wxLanguageInfo_Get_CanonicalName(lua_State *L) -{ - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - // push the result string - wxlua_pushwxString(L, self->CanonicalName); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Get_Description[] = { &wxluatype_wxLanguageInfo, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Get_Description(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Get_Description[1] = {{ wxLua_wxLanguageInfo_Get_Description, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLanguageInfo_Get_Description }}; -// wxString Description; // human-readable name of the language -static int LUACALL wxLua_wxLanguageInfo_Get_Description(lua_State *L) -{ - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - // push the result string - wxlua_pushwxString(L, self->Description); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Get_Language[] = { &wxluatype_wxLanguageInfo, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Get_Language(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Get_Language[1] = {{ wxLua_wxLanguageInfo_Get_Language, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLanguageInfo_Get_Language }}; -// int Language; // wxLanguage id -static int LUACALL wxLua_wxLanguageInfo_Get_Language(lua_State *L) -{ - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->Language) == (double)(self->Language)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->Language); -} else -#endif -{ - lua_pushnumber(L, self->Language); -} - // return the number of values - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Get_LayoutDirection[] = { &wxluatype_wxLanguageInfo, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Get_LayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Get_LayoutDirection[1] = {{ wxLua_wxLanguageInfo_Get_LayoutDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLanguageInfo_Get_LayoutDirection }}; -// %wxchkver_2_8 wxLayoutDirection LayoutDirection; -static int LUACALL wxLua_wxLanguageInfo_Get_LayoutDirection(lua_State *L) -{ - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->LayoutDirection) == (double)(self->LayoutDirection)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->LayoutDirection); -} else -#endif -{ - lua_pushnumber(L, self->LayoutDirection); -} - // return the number of values - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Set_CanonicalName[] = { &wxluatype_wxLanguageInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Set_CanonicalName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Set_CanonicalName[1] = {{ wxLua_wxLanguageInfo_Set_CanonicalName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLanguageInfo_Set_CanonicalName }}; -// wxString CanonicalName; // Canonical name, e.g. fr_FR -static int LUACALL wxLua_wxLanguageInfo_Set_CanonicalName(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - self->CanonicalName = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Set_Description[] = { &wxluatype_wxLanguageInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Set_Description(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Set_Description[1] = {{ wxLua_wxLanguageInfo_Set_Description, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLanguageInfo_Set_Description }}; -// wxString Description; // human-readable name of the language -static int LUACALL wxLua_wxLanguageInfo_Set_Description(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - self->Description = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Set_Language[] = { &wxluatype_wxLanguageInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Set_Language(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Set_Language[1] = {{ wxLua_wxLanguageInfo_Set_Language, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLanguageInfo_Set_Language }}; -// int Language; // wxLanguage id -static int LUACALL wxLua_wxLanguageInfo_Set_Language(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - self->Language = val; - // return the number of values - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_Set_LayoutDirection[] = { &wxluatype_wxLanguageInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLanguageInfo_Set_LayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_Set_LayoutDirection[1] = {{ wxLua_wxLanguageInfo_Set_LayoutDirection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLanguageInfo_Set_LayoutDirection }}; -// %wxchkver_2_8 wxLayoutDirection LayoutDirection; -static int LUACALL wxLua_wxLanguageInfo_Set_LayoutDirection(lua_State *L) -{ - // get the enum value - wxLayoutDirection val = (wxLayoutDirection)wxlua_getenumtype(L, 2); - // get this - wxLanguageInfo *self = (wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - self->LayoutDirection = val; - // return the number of values - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLanguageInfo_delete[] = { &wxluatype_wxLanguageInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLanguageInfo_delete }}; - -static int LUACALL wxLua_wxLanguageInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLanguageInfo_constructor[1] = {{ wxLua_wxLanguageInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLanguageInfo(); // you must set all the values by hand -static int LUACALL wxLua_wxLanguageInfo_constructor(lua_State *L) -{ - // call constructor - wxLanguageInfo* returns = new wxLanguageInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLanguageInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLanguageInfo); - - return 1; -} - - - - -void wxLua_wxLanguageInfo_delete_function(void** p) -{ - wxLanguageInfo* o = (wxLanguageInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLanguageInfo_methods[] = { - { "CanonicalName", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Set_CanonicalName, 1, NULL }, - { "CanonicalName", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Get_CanonicalName, 1, NULL }, - { "Description", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Set_Description, 1, NULL }, - { "Description", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Get_Description, 1, NULL }, - // %member { "Get_CanonicalName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Get_CanonicalName, 1, NULL }, - // %member { "Get_Description", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Get_Description, 1, NULL }, - // %member { "Get_Language", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Get_Language, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - // %member { "Get_LayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Get_LayoutDirection, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - - { "Language", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Set_Language, 1, NULL }, - { "Language", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Get_Language, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "LayoutDirection", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Set_LayoutDirection, 1, NULL }, - { "LayoutDirection", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxLanguageInfo_Get_LayoutDirection, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - - // %member { "Set_CanonicalName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Set_CanonicalName, 1, NULL }, - // %member { "Set_Description", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Set_Description, 1, NULL }, - // %member { "Set_Language", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Set_Language, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - // %member { "Set_LayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLanguageInfo_Set_LayoutDirection, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLanguageInfo_delete, 1, NULL }, - { "wxLanguageInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLanguageInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLanguageInfo_methodCount = sizeof(wxLanguageInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_INTL - - -#if wxUSE_INTL -// --------------------------------------------------------------------------- -// Bind class wxLocale -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLocale' -int wxluatype_wxLocale = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_AddCatalog1[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_AddCatalog1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_AddCatalog1[1] = {{ wxLua_wxLocale_AddCatalog1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLocale_AddCatalog1 }}; -// bool AddCatalog(const wxString& szDomain, wxLanguage msgIdLanguage, const wxString& msgIdCharset); -static int LUACALL wxLua_wxLocale_AddCatalog1(lua_State *L) -{ - // const wxString msgIdCharset - const wxString msgIdCharset = wxlua_getwxStringtype(L, 4); - // wxLanguage msgIdLanguage - wxLanguage msgIdLanguage = (wxLanguage)wxlua_getenumtype(L, 3); - // const wxString szDomain - const wxString szDomain = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call AddCatalog - bool returns = (self->AddCatalog(szDomain, msgIdLanguage, msgIdCharset)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_AddCatalog[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_AddCatalog(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_AddCatalog[1] = {{ wxLua_wxLocale_AddCatalog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLocale_AddCatalog }}; -// bool AddCatalog(const wxString& szDomain); -static int LUACALL wxLua_wxLocale_AddCatalog(lua_State *L) -{ - // const wxString szDomain - const wxString szDomain = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call AddCatalog - bool returns = (self->AddCatalog(szDomain)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_AddCatalogLookupPathPrefix[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_AddCatalogLookupPathPrefix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_AddCatalogLookupPathPrefix[1] = {{ wxLua_wxLocale_AddCatalogLookupPathPrefix, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocale_AddCatalogLookupPathPrefix }}; -// static void AddCatalogLookupPathPrefix(const wxString& prefix); -static int LUACALL wxLua_wxLocale_AddCatalogLookupPathPrefix(lua_State *L) -{ - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 1); - // call AddCatalogLookupPathPrefix - wxLocale::AddCatalogLookupPathPrefix(prefix); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_AddLanguage[] = { &wxluatype_wxLanguageInfo, NULL }; -static int LUACALL wxLua_wxLocale_AddLanguage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_AddLanguage[1] = {{ wxLua_wxLocale_AddLanguage, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocale_AddLanguage }}; -// static void AddLanguage(const wxLanguageInfo& info); -static int LUACALL wxLua_wxLocale_AddLanguage(lua_State *L) -{ - // const wxLanguageInfo info - const wxLanguageInfo * info = (const wxLanguageInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLanguageInfo); - // call AddLanguage - wxLocale::AddLanguage(*info); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_FindLanguageInfo[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_FindLanguageInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_FindLanguageInfo[1] = {{ wxLua_wxLocale_FindLanguageInfo, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocale_FindLanguageInfo }}; -// static const wxLanguageInfo *FindLanguageInfo(const wxString& locale); -static int LUACALL wxLua_wxLocale_FindLanguageInfo(lua_State *L) -{ - // const wxString locale - const wxString locale = wxlua_getwxStringtype(L, 1); - // call FindLanguageInfo - const wxLanguageInfo* returns = (const wxLanguageInfo*)wxLocale::FindLanguageInfo(locale); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLanguageInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetCanonicalName[] = { &wxluatype_wxLocale, NULL }; -static int LUACALL wxLua_wxLocale_GetCanonicalName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetCanonicalName[1] = {{ wxLua_wxLocale_GetCanonicalName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetCanonicalName }}; -// wxString GetCanonicalName() const; -static int LUACALL wxLua_wxLocale_GetCanonicalName(lua_State *L) -{ - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetCanonicalName - wxString returns = (self->GetCanonicalName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetHeaderValue[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_GetHeaderValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetHeaderValue[1] = {{ wxLua_wxLocale_GetHeaderValue, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLocale_GetHeaderValue }}; -// wxString GetHeaderValue(const wxString& szHeader, const wxString& szDomain = "") const; -static int LUACALL wxLua_wxLocale_GetHeaderValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString szDomain = "" - const wxString szDomain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szHeader - const wxString szHeader = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetHeaderValue - wxString returns = (self->GetHeaderValue(szHeader, szDomain)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetInfo[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLocale_GetInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetInfo[1] = {{ wxLua_wxLocale_GetInfo, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxLocale_GetInfo }}; -// static wxString GetInfo(wxLocaleInfo index, wxLocaleCategory cat); -static int LUACALL wxLua_wxLocale_GetInfo(lua_State *L) -{ - // wxLocaleCategory cat - wxLocaleCategory cat = (wxLocaleCategory)wxlua_getenumtype(L, 2); - // wxLocaleInfo index - wxLocaleInfo index = (wxLocaleInfo)wxlua_getenumtype(L, 1); - // call GetInfo - wxString returns = (wxLocale::GetInfo(index, cat)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetLanguage[] = { &wxluatype_wxLocale, NULL }; -static int LUACALL wxLua_wxLocale_GetLanguage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetLanguage[1] = {{ wxLua_wxLocale_GetLanguage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetLanguage }}; -// int GetLanguage() const; -static int LUACALL wxLua_wxLocale_GetLanguage(lua_State *L) -{ - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetLanguage - int returns = (self->GetLanguage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetLanguageInfo[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLocale_GetLanguageInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetLanguageInfo[1] = {{ wxLua_wxLocale_GetLanguageInfo, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetLanguageInfo }}; -// static const wxLanguageInfo *GetLanguageInfo(int lang); -static int LUACALL wxLua_wxLocale_GetLanguageInfo(lua_State *L) -{ - // int lang - int lang = (int)wxlua_getnumbertype(L, 1); - // call GetLanguageInfo - const wxLanguageInfo* returns = (const wxLanguageInfo*)wxLocale::GetLanguageInfo(lang); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLanguageInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetLanguageName[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLocale_GetLanguageName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetLanguageName[1] = {{ wxLua_wxLocale_GetLanguageName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetLanguageName }}; -// static wxString GetLanguageName(int lang); -static int LUACALL wxLua_wxLocale_GetLanguageName(lua_State *L) -{ - // int lang - int lang = (int)wxlua_getnumbertype(L, 1); - // call GetLanguageName - wxString returns = (wxLocale::GetLanguageName(lang)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetLocale[] = { &wxluatype_wxLocale, NULL }; -static int LUACALL wxLua_wxLocale_GetLocale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetLocale[1] = {{ wxLua_wxLocale_GetLocale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetLocale }}; -// wxString GetLocale() const; -static int LUACALL wxLua_wxLocale_GetLocale(lua_State *L) -{ - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetLocale - wxString returns = (self->GetLocale()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetName[] = { &wxluatype_wxLocale, NULL }; -static int LUACALL wxLua_wxLocale_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetName[1] = {{ wxLua_wxLocale_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetName }}; -// const wxString& GetName() const; -static int LUACALL wxLua_wxLocale_GetName(lua_State *L) -{ - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetString3[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_GetString3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetString3[1] = {{ wxLua_wxLocale_GetString3, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxLocale_GetString3 }}; -// !%wxchkver_2_9 virtual wxString GetString(const wxString& szOrigString, const wxString& szOrigString2, size_t n, const wxChar* szDomain = NULL) const; -static int LUACALL wxLua_wxLocale_GetString3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxChar szDomain = NULL - wxString szDomain = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 4); - // const wxString szOrigString2 - const wxString szOrigString2 = wxlua_getwxStringtype(L, 3); - // const wxString szOrigString - const wxString szOrigString = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetString - wxString returns = (self->GetString(szOrigString, szOrigString2, n, szDomain.IsEmpty() ? NULL : szDomain.c_str())); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetString2[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_GetString2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetString2[1] = {{ wxLua_wxLocale_GetString2, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxLocale_GetString2 }}; -// %wxchkver_2_9 virtual wxString GetString(const wxString& szOrigString, const wxString& szOrigString2, size_t n, const wxString& szDomain = "") const; -static int LUACALL wxLua_wxLocale_GetString2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString szDomain = "" - const wxString szDomain = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 4); - // const wxString szOrigString2 - const wxString szOrigString2 = wxlua_getwxStringtype(L, 3); - // const wxString szOrigString - const wxString szOrigString = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetString - wxString returns = (self->GetString(szOrigString, szOrigString2, n, szDomain)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetString1[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_GetString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetString1[1] = {{ wxLua_wxLocale_GetString1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLocale_GetString1 }}; -// !%wxchkver_2_9 virtual wxString GetString(const wxString& szOrigString, const wxChar* szDomain = NULL) const; -static int LUACALL wxLua_wxLocale_GetString1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxChar szDomain = NULL - wxString szDomain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szOrigString - const wxString szOrigString = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetString - wxString returns = (self->GetString(szOrigString, szDomain.IsEmpty() ? NULL : szDomain.c_str())); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetString[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_GetString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetString[1] = {{ wxLua_wxLocale_GetString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLocale_GetString }}; -// %wxchkver_2_9 virtual wxString GetString(const wxString& szOrigString, const wxString& szDomain = "") const; -static int LUACALL wxLua_wxLocale_GetString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString szDomain = "" - const wxString szDomain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szOrigString - const wxString szOrigString = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetString - wxString returns = (self->GetString(szOrigString, szDomain)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_GetSysName[] = { &wxluatype_wxLocale, NULL }; -static int LUACALL wxLua_wxLocale_GetSysName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetSysName[1] = {{ wxLua_wxLocale_GetSysName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLocale_GetSysName }}; -// wxString GetSysName() const; -static int LUACALL wxLua_wxLocale_GetSysName(lua_State *L) -{ - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call GetSysName - wxString returns = (self->GetSysName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxLocale_GetSystemEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetSystemEncoding[1] = {{ wxLua_wxLocale_GetSystemEncoding, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxFontEncoding GetSystemEncoding(); -static int LUACALL wxLua_wxLocale_GetSystemEncoding(lua_State *L) -{ - // call GetSystemEncoding - wxFontEncoding returns = (wxLocale::GetSystemEncoding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxLocale_GetSystemEncodingName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetSystemEncodingName[1] = {{ wxLua_wxLocale_GetSystemEncodingName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetSystemEncodingName(); -static int LUACALL wxLua_wxLocale_GetSystemEncodingName(lua_State *L) -{ - // call GetSystemEncodingName - wxString returns = (wxLocale::GetSystemEncodingName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxLocale_GetSystemLanguage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetSystemLanguage[1] = {{ wxLua_wxLocale_GetSystemLanguage, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static int GetSystemLanguage(); -static int LUACALL wxLua_wxLocale_GetSystemLanguage(lua_State *L) -{ - // call GetSystemLanguage - int returns = (wxLocale::GetSystemLanguage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_Init2[] = { &wxluatype_wxLocale, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLocale_Init2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_Init2[1] = {{ wxLua_wxLocale_Init2, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxLocale_Init2 }}; -// bool Init(int language = wxLANGUAGE_DEFAULT, int flags = wxLOCALE_LOAD_DEFAULT); -static int LUACALL wxLua_wxLocale_Init2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxLOCALE_LOAD_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxLOCALE_LOAD_DEFAULT); - // int language = wxLANGUAGE_DEFAULT - int language = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxLANGUAGE_DEFAULT); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call Init - bool returns = (self->Init(language, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_Init1[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLocale_Init1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_Init1[1] = {{ wxLua_wxLocale_Init1, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxLocale_Init1 }}; -// %wxchkver_2_8 bool Init(const wxString &szName, const wxString &szShort = "", const wxString &szLocale = "", bool bLoadDefault = true); -static int LUACALL wxLua_wxLocale_Init1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bLoadDefault = true - bool bLoadDefault = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : true); - // const wxString szLocale = "" - const wxString szLocale = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString szShort = "" - const wxString szShort = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szName - const wxString szName = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call Init - bool returns = (self->Init(szName, szShort, szLocale, bLoadDefault)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_Init[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLocale_Init(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_Init[1] = {{ wxLua_wxLocale_Init, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxLocale_Init }}; -// !%wxchkver_2_9 || %wxcompat_2_8 bool Init(const wxString &szName, const wxString &szShort = "", const wxString &szLocale = "", bool bLoadDefault = true, bool bConvertEncoding = false); -static int LUACALL wxLua_wxLocale_Init(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bConvertEncoding = false - bool bConvertEncoding = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // bool bLoadDefault = true - bool bLoadDefault = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : true); - // const wxString szLocale = "" - const wxString szLocale = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString szShort = "" - const wxString szShort = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szName - const wxString szName = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call Init - bool returns = (self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_IsAvailable[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLocale_IsAvailable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_IsAvailable[1] = {{ wxLua_wxLocale_IsAvailable, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocale_IsAvailable }}; -// %wxchkver_2_8 static bool IsAvailable(int lang); -static int LUACALL wxLua_wxLocale_IsAvailable(lua_State *L) -{ - // int lang - int lang = (int)wxlua_getnumbertype(L, 1); - // call IsAvailable - bool returns = (wxLocale::IsAvailable(lang)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_IsLoaded[] = { &wxluatype_wxLocale, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocale_IsLoaded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_IsLoaded[1] = {{ wxLua_wxLocale_IsLoaded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLocale_IsLoaded }}; -// bool IsLoaded(const wxString& szDomain) const; -static int LUACALL wxLua_wxLocale_IsLoaded(lua_State *L) -{ - // const wxString szDomain - const wxString szDomain = wxlua_getwxStringtype(L, 2); - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call IsLoaded - bool returns = (self->IsLoaded(szDomain)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_IsOk[] = { &wxluatype_wxLocale, NULL }; -static int LUACALL wxLua_wxLocale_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_IsOk[1] = {{ wxLua_wxLocale_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLocale_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxLocale_IsOk(lua_State *L) -{ - // get this - wxLocale * self = (wxLocale *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLocale); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_delete[] = { &wxluatype_wxLocale, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLocale_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_constructor3[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLocale_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_constructor3[1] = {{ wxLua_wxLocale_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxLocale_constructor3 }}; -// wxLocale(int language, int flags = wxLOCALE_LOAD_DEFAULT); -static int LUACALL wxLua_wxLocale_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxLOCALE_LOAD_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxLOCALE_LOAD_DEFAULT); - // int language - int language = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxLocale* returns = new wxLocale(language, flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLocale); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocale); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLocale_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_constructor2[1] = {{ wxLua_wxLocale_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxLocale_constructor2 }}; -// %wxchkver_2_8 wxLocale(const wxString& szName, const wxString& szShort = "", const wxString& szLocale = "", bool bLoadDefault = true); -static int LUACALL wxLua_wxLocale_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bLoadDefault = true - bool bLoadDefault = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxString szLocale = "" - const wxString szLocale = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szShort = "" - const wxString szShort = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString szName - const wxString szName = wxlua_getwxStringtype(L, 1); - // call constructor - wxLocale* returns = new wxLocale(szName, szShort, szLocale, bLoadDefault); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLocale); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocale); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocale_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLocale_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_constructor1[1] = {{ wxLua_wxLocale_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxLocale_constructor1 }}; -// !%wxchkver_2_9 || %wxcompat_2_8 wxLocale(const wxString& szName, const wxString& szShort = "", const wxString& szLocale = "", bool bLoadDefault = true, bool bConvertEncoding = false); -static int LUACALL wxLua_wxLocale_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bConvertEncoding = false - bool bConvertEncoding = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // bool bLoadDefault = true - bool bLoadDefault = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxString szLocale = "" - const wxString szLocale = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString szShort = "" - const wxString szShort = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString szName - const wxString szName = wxlua_getwxStringtype(L, 1); - // call constructor - wxLocale* returns = new wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLocale); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocale); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL) - -static int LUACALL wxLua_wxLocale_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_constructor[1] = {{ wxLua_wxLocale_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLocale(); -static int LUACALL wxLua_wxLocale_constructor(lua_State *L) -{ - // call constructor - wxLocale* returns = new wxLocale(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLocale); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocale); - - return 1; -} - - - - -#if (wxUSE_INTL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_AddCatalog_overload[] = -{ - { wxLua_wxLocale_AddCatalog1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLocale_AddCatalog1 }, - { wxLua_wxLocale_AddCatalog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLocale_AddCatalog }, -}; -static int s_wxluafunc_wxLua_wxLocale_AddCatalog_overload_count = sizeof(s_wxluafunc_wxLua_wxLocale_AddCatalog_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_INTL) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL))||((wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_GetString_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { wxLua_wxLocale_GetString3, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxLocale_GetString3 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { wxLua_wxLocale_GetString2, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxLocale_GetString2 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { wxLua_wxLocale_GetString1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLocale_GetString1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { wxLua_wxLocale_GetString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLocale_GetString }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxLocale_GetString_overload_count = sizeof(s_wxluafunc_wxLua_wxLocale_GetString_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL))||((wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL)) - -#if (wxUSE_INTL)||((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_Init_overload[] = -{ - { wxLua_wxLocale_Init2, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxLocale_Init2 }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { wxLua_wxLocale_Init1, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxLocale_Init1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL) - { wxLua_wxLocale_Init, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxLocale_Init }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxLocale_Init_overload_count = sizeof(s_wxluafunc_wxLua_wxLocale_Init_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_INTL)||((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) - -#if (wxUSE_INTL)||(((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocale_constructor_overload[] = -{ - { wxLua_wxLocale_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxLocale_constructor3 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxLocale_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxLocale_constructor2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxLocale_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxLocale_constructor1 }, -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL) - { wxLua_wxLocale_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxLocale_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxLocale_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_INTL)||(((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL)) - -void wxLua_wxLocale_delete_function(void** p) -{ - wxLocale* o = (wxLocale*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLocale_methods[] = { -#if (wxUSE_INTL) - { "AddCatalog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_AddCatalog_overload, s_wxluafunc_wxLua_wxLocale_AddCatalog_overload_count, 0 }, -#endif // (wxUSE_INTL) - - { "AddCatalogLookupPathPrefix", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_AddCatalogLookupPathPrefix, 1, NULL }, - { "AddLanguage", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_AddLanguage, 1, NULL }, - { "FindLanguageInfo", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_FindLanguageInfo, 1, NULL }, - { "GetCanonicalName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetCanonicalName, 1, NULL }, - { "GetHeaderValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetHeaderValue, 1, NULL }, - { "GetInfo", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_GetInfo, 1, NULL }, - { "GetLanguage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetLanguage, 1, NULL }, - { "GetLanguageInfo", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_GetLanguageInfo, 1, NULL }, - { "GetLanguageName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_GetLanguageName, 1, NULL }, - { "GetLocale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetLocale, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetName, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL))||((wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL)) - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetString_overload, s_wxluafunc_wxLua_wxLocale_GetString_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL))||((wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL)) - - { "GetSysName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_GetSysName, 1, NULL }, - { "GetSystemEncoding", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_GetSystemEncoding, 1, NULL }, - { "GetSystemEncodingName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_GetSystemEncodingName, 1, NULL }, - { "GetSystemLanguage", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_GetSystemLanguage, 1, NULL }, - -#if (wxUSE_INTL)||((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_Init_overload, s_wxluafunc_wxLua_wxLocale_Init_overload_count, 0 }, -#endif // (wxUSE_INTL)||((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "IsAvailable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocale_IsAvailable, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - - { "IsLoaded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_IsLoaded, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLocale_IsOk, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLocale_delete, 1, NULL }, - -#if (wxUSE_INTL)||(((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL)) - { "wxLocale", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLocale_constructor_overload, s_wxluafunc_wxLua_wxLocale_constructor_overload_count, 0 }, -#endif // (wxUSE_INTL)||(((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxUSE_INTL))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL)) && (wxUSE_INTL)) - - { 0, 0, 0, 0 }, -}; - -int wxLocale_methodCount = sizeof(wxLocale_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_INTL - diff --git a/wxLua/modules/wxbind/src/wxbase_bind.cpp b/wxLua/modules/wxbind/src/wxbase_bind.cpp deleted file mode 100644 index d9ddf252..00000000 --- a/wxLua/modules/wxbind/src/wxbase_bind.cpp +++ /dev/null @@ -1,3298 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxbase_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxbase_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif -wxDateTime::TimeZone wxLua_wxDateTime_TimeZone_Local(wxDateTime::Local); - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxbase() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxbase(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - { "wxEVT_FSWATCHER", WXLUA_GET_wxEventType_ptr(wxEVT_FSWATCHER), &wxluatype_wxFileSystemWatcherEvent }, -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxbase() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxbase(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if defined(__WIN16__) - { "__WIN16__", 1 }, -#endif // defined(__WIN16__) - -#if defined(__WIN32__) - { "__WIN32__", 1 }, -#endif // defined(__WIN32__) - -#if defined(__WIN95__) - { "__WIN95__", 1 }, -#endif // defined(__WIN95__) - -#if defined(__WINDOWS__) - { "__WINDOWS__", 1 }, -#endif // defined(__WINDOWS__) - -#if defined(__WXBASE__) - { "__WXBASE__", 1 }, -#endif // defined(__WXBASE__) - -#if defined(__WXCOCOA__) - { "__WXCOCOA__", 1 }, -#endif // defined(__WXCOCOA__) - -#if defined(__WXGTK12__) - { "__WXGTK12__", 1 }, -#endif // defined(__WXGTK12__) - -#if defined(__WXGTK20__) - { "__WXGTK20__", 1 }, -#endif // defined(__WXGTK20__) - -#if defined(__WXGTK__) - { "__WXGTK__", 1 }, -#endif // defined(__WXGTK__) - -#if defined(__WXMAC_CARBON__) - { "__WXMAC_CARBON__", 1 }, -#endif // defined(__WXMAC_CARBON__) - -#if defined(__WXMAC_CLASSIC__) - { "__WXMAC_CLASSIC__", 1 }, -#endif // defined(__WXMAC_CLASSIC__) - -#if defined(__WXMAC_OSX__) - { "__WXMAC_OSX__", 1 }, -#endif // defined(__WXMAC_OSX__) - -#if defined(__WXMAC__) - { "__WXMAC__", 1 }, -#endif // defined(__WXMAC__) - -#if defined(__WXMGL__) - { "__WXMGL__", 1 }, -#endif // defined(__WXMGL__) - -#if defined(__WXMOTIF20__) - { "__WXMOTIF20__", 1 }, -#endif // defined(__WXMOTIF20__) - -#if defined(__WXMOTIF__) - { "__WXMOTIF__", 1 }, -#endif // defined(__WXMOTIF__) - -#if defined(__WXMSW__) - { "__WXMSW__", 1 }, -#endif // defined(__WXMSW__) - -#if defined(__WXOS2__) - { "__WXOS2__", 1 }, -#endif // defined(__WXOS2__) - -#if defined(__WXOSX__) - { "__WXOSX__", 1 }, -#endif // defined(__WXOSX__) - -#if defined(__WXPALMOS__) - { "__WXPALMOS__", 1 }, -#endif // defined(__WXPALMOS__) - -#if defined(__WXPM__) - { "__WXPM__", 1 }, -#endif // defined(__WXPM__) - -#if defined(__WXSTUBS__) - { "__WXSTUBS__", 1 }, -#endif // defined(__WXSTUBS__) - -#if defined(__WXUNIVERSAL__) - { "__WXUNIVERSAL__", 1 }, -#endif // defined(__WXUNIVERSAL__) - -#if defined(__WXWINCE__) - { "__WXWINCE__", 1 }, -#endif // defined(__WXWINCE__) - -#if defined(__WXWINE__) - { "__WXWINE__", 1 }, -#endif // defined(__WXWINE__) - -#if defined(__WXX11__) - { "__WXX11__", 1 }, -#endif // defined(__WXX11__) - -#if defined(__WXXT__) - { "__WXXT__", 1 }, -#endif // defined(__WXXT__) - -#if defined(__X__) - { "__X__", 1 }, -#endif // defined(__X__) - - { "wxABI_VERSION", wxABI_VERSION }, - { "wxARCH_32", wxARCH_32 }, - { "wxARCH_64", wxARCH_64 }, - { "wxARCH_INVALID", wxARCH_INVALID }, - { "wxARCH_MAX", wxARCH_MAX }, - { "wxARE_FILENAMES_CASE_SENSITIVE", wxARE_FILENAMES_CASE_SENSITIVE }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxBEOS", wxBEOS }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(3,1,5) - { "wxBITNESS_32", wxBITNESS_32 }, - { "wxBITNESS_64", wxBITNESS_64 }, - { "wxBITNESS_INVALID", wxBITNESS_INVALID }, - { "wxBITNESS_MAX", wxBITNESS_MAX }, -#endif // wxCHECK_VERSION(3,1,5) - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - { "wxCONFIG_USE_GLOBAL_FILE", wxCONFIG_USE_GLOBAL_FILE }, - { "wxCONFIG_USE_LOCAL_FILE", wxCONFIG_USE_LOCAL_FILE }, - { "wxCONFIG_USE_NO_ESCAPE_CHARACTERS", wxCONFIG_USE_NO_ESCAPE_CHARACTERS }, - { "wxCONFIG_USE_RELATIVE_PATH", wxCONFIG_USE_RELATIVE_PATH }, -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if (wxCHECK_VERSION(2,8,1)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "wxCONFIG_USE_SUBDIR", wxCONFIG_USE_SUBDIR }, -#endif // (wxCHECK_VERSION(2,8,1)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if !wxCHECK_VERSION(2,8,0) - { "wxCOSE_X", wxCOSE_X }, - { "wxCURSES", wxCURSES }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxFileName - { "wxDIR", wxDIR }, -#endif // wxLUA_USE_wxFileName - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir) - { "wxDIR_CONTINUE", wxDIR_CONTINUE }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir) - -#if wxLUA_USE_wxDir - { "wxDIR_DEFAULT", wxDIR_DEFAULT }, - { "wxDIR_DIRS", wxDIR_DIRS }, - { "wxDIR_DOTDOT", wxDIR_DOTDOT }, - { "wxDIR_FILES", wxDIR_FILES }, - { "wxDIR_HIDDEN", wxDIR_HIDDEN }, -#endif // wxLUA_USE_wxDir - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir) - { "wxDIR_IGNORE", wxDIR_IGNORE }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxDir) - { "wxDIR_NO_FOLLOW", wxDIR_NO_FOLLOW }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxDir) - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir) - { "wxDIR_STOP", wxDIR_STOP }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxDir) - - { "wxDL_DEFAULT", wxDL_DEFAULT }, - { "wxDL_GLOBAL", wxDL_GLOBAL }, - { "wxDL_LAZY", wxDL_LAZY }, - { "wxDL_LIBRARY", wxDL_LIBRARY }, - { "wxDL_MODULE", wxDL_MODULE }, - { "wxDL_NOSHARE", wxDL_NOSHARE }, - { "wxDL_NOW", wxDL_NOW }, - { "wxDL_PLUGIN_BASE", wxDL_PLUGIN_BASE }, - { "wxDL_PLUGIN_GUI", wxDL_PLUGIN_GUI }, - { "wxDL_VERBATIM", wxDL_VERBATIM }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxDOS", wxDOS }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxENDIAN_BIG", wxENDIAN_BIG }, - { "wxENDIAN_INVALID", wxENDIAN_INVALID }, - { "wxENDIAN_LITTLE", wxENDIAN_LITTLE }, - { "wxENDIAN_MAX", wxENDIAN_MAX }, - { "wxENDIAN_PDP", wxENDIAN_PDP }, - -#if wxUSE_STREAMS - { "wxEOL_DOS", wxEOL_DOS }, - { "wxEOL_MAC", wxEOL_MAC }, - { "wxEOL_NATIVE", wxEOL_NATIVE }, - { "wxEOL_UNIX", wxEOL_UNIX }, -#endif // wxUSE_STREAMS - - { "wxEVENT_PROPAGATE_MAX", wxEVENT_PROPAGATE_MAX }, - { "wxEVENT_PROPAGATE_NONE", wxEVENT_PROPAGATE_NONE }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_CATEGORY_ALL", wxEVT_CATEGORY_ALL }, - { "wxEVT_CATEGORY_SOCKET", wxEVT_CATEGORY_SOCKET }, - { "wxEVT_CATEGORY_THREAD", wxEVT_CATEGORY_THREAD }, - { "wxEVT_CATEGORY_TIMER", wxEVT_CATEGORY_TIMER }, - { "wxEVT_CATEGORY_UI", wxEVT_CATEGORY_UI }, - { "wxEVT_CATEGORY_USER_INPUT", wxEVT_CATEGORY_USER_INPUT }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxFileName - { "wxFILE", wxFILE }, -#endif // wxLUA_USE_wxFileName - -#if wxLUA_USE_wxFile && wxUSE_FILE - { "wxFILE_KIND_DISK", wxFILE_KIND_DISK }, - { "wxFILE_KIND_PIPE", wxFILE_KIND_PIPE }, - { "wxFILE_KIND_TERMINAL", wxFILE_KIND_TERMINAL }, - { "wxFILE_KIND_UNKNOWN", wxFILE_KIND_UNKNOWN }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxUSE_INTL - { "wxFONTENCODING_ALTERNATIVE", wxFONTENCODING_ALTERNATIVE }, - { "wxFONTENCODING_BIG5", wxFONTENCODING_BIG5 }, - { "wxFONTENCODING_BULGARIAN", wxFONTENCODING_BULGARIAN }, - { "wxFONTENCODING_CP1250", wxFONTENCODING_CP1250 }, - { "wxFONTENCODING_CP1251", wxFONTENCODING_CP1251 }, - { "wxFONTENCODING_CP1252", wxFONTENCODING_CP1252 }, - { "wxFONTENCODING_CP1253", wxFONTENCODING_CP1253 }, - { "wxFONTENCODING_CP1254", wxFONTENCODING_CP1254 }, - { "wxFONTENCODING_CP1255", wxFONTENCODING_CP1255 }, - { "wxFONTENCODING_CP1256", wxFONTENCODING_CP1256 }, - { "wxFONTENCODING_CP1257", wxFONTENCODING_CP1257 }, - { "wxFONTENCODING_CP12_MAX", wxFONTENCODING_CP12_MAX }, - { "wxFONTENCODING_CP437", wxFONTENCODING_CP437 }, - { "wxFONTENCODING_CP850", wxFONTENCODING_CP850 }, - { "wxFONTENCODING_CP852", wxFONTENCODING_CP852 }, - { "wxFONTENCODING_CP855", wxFONTENCODING_CP855 }, - { "wxFONTENCODING_CP866", wxFONTENCODING_CP866 }, - { "wxFONTENCODING_CP874", wxFONTENCODING_CP874 }, - { "wxFONTENCODING_CP932", wxFONTENCODING_CP932 }, - { "wxFONTENCODING_CP936", wxFONTENCODING_CP936 }, - { "wxFONTENCODING_CP949", wxFONTENCODING_CP949 }, - { "wxFONTENCODING_CP950", wxFONTENCODING_CP950 }, - { "wxFONTENCODING_DEFAULT", wxFONTENCODING_DEFAULT }, - { "wxFONTENCODING_EUC_JP", wxFONTENCODING_EUC_JP }, - { "wxFONTENCODING_GB2312", wxFONTENCODING_GB2312 }, - { "wxFONTENCODING_ISO8859_1", wxFONTENCODING_ISO8859_1 }, - { "wxFONTENCODING_ISO8859_10", wxFONTENCODING_ISO8859_10 }, - { "wxFONTENCODING_ISO8859_11", wxFONTENCODING_ISO8859_11 }, - { "wxFONTENCODING_ISO8859_12", wxFONTENCODING_ISO8859_12 }, - { "wxFONTENCODING_ISO8859_13", wxFONTENCODING_ISO8859_13 }, - { "wxFONTENCODING_ISO8859_14", wxFONTENCODING_ISO8859_14 }, - { "wxFONTENCODING_ISO8859_15", wxFONTENCODING_ISO8859_15 }, - { "wxFONTENCODING_ISO8859_2", wxFONTENCODING_ISO8859_2 }, - { "wxFONTENCODING_ISO8859_3", wxFONTENCODING_ISO8859_3 }, - { "wxFONTENCODING_ISO8859_4", wxFONTENCODING_ISO8859_4 }, - { "wxFONTENCODING_ISO8859_5", wxFONTENCODING_ISO8859_5 }, - { "wxFONTENCODING_ISO8859_6", wxFONTENCODING_ISO8859_6 }, - { "wxFONTENCODING_ISO8859_7", wxFONTENCODING_ISO8859_7 }, - { "wxFONTENCODING_ISO8859_8", wxFONTENCODING_ISO8859_8 }, - { "wxFONTENCODING_ISO8859_9", wxFONTENCODING_ISO8859_9 }, - { "wxFONTENCODING_ISO8859_MAX", wxFONTENCODING_ISO8859_MAX }, - { "wxFONTENCODING_KOI8", wxFONTENCODING_KOI8 }, - { "wxFONTENCODING_KOI8_U", wxFONTENCODING_KOI8_U }, - { "wxFONTENCODING_MACARABIC", wxFONTENCODING_MACARABIC }, - { "wxFONTENCODING_MACARABICEXT", wxFONTENCODING_MACARABICEXT }, - { "wxFONTENCODING_MACARMENIAN", wxFONTENCODING_MACARMENIAN }, - { "wxFONTENCODING_MACBENGALI", wxFONTENCODING_MACBENGALI }, - { "wxFONTENCODING_MACBURMESE", wxFONTENCODING_MACBURMESE }, - { "wxFONTENCODING_MACCELTIC", wxFONTENCODING_MACCELTIC }, - { "wxFONTENCODING_MACCENTRALEUR", wxFONTENCODING_MACCENTRALEUR }, - { "wxFONTENCODING_MACCHINESESIMP", wxFONTENCODING_MACCHINESESIMP }, - { "wxFONTENCODING_MACCHINESETRAD", wxFONTENCODING_MACCHINESETRAD }, - { "wxFONTENCODING_MACCROATIAN", wxFONTENCODING_MACCROATIAN }, - { "wxFONTENCODING_MACCYRILLIC", wxFONTENCODING_MACCYRILLIC }, - { "wxFONTENCODING_MACDEVANAGARI", wxFONTENCODING_MACDEVANAGARI }, - { "wxFONTENCODING_MACDINGBATS", wxFONTENCODING_MACDINGBATS }, - { "wxFONTENCODING_MACETHIOPIC", wxFONTENCODING_MACETHIOPIC }, - { "wxFONTENCODING_MACGAELIC", wxFONTENCODING_MACGAELIC }, - { "wxFONTENCODING_MACGEORGIAN", wxFONTENCODING_MACGEORGIAN }, - { "wxFONTENCODING_MACGREEK", wxFONTENCODING_MACGREEK }, - { "wxFONTENCODING_MACGUJARATI", wxFONTENCODING_MACGUJARATI }, - { "wxFONTENCODING_MACGURMUKHI", wxFONTENCODING_MACGURMUKHI }, - { "wxFONTENCODING_MACHEBREW", wxFONTENCODING_MACHEBREW }, - { "wxFONTENCODING_MACICELANDIC", wxFONTENCODING_MACICELANDIC }, - { "wxFONTENCODING_MACJAPANESE", wxFONTENCODING_MACJAPANESE }, - { "wxFONTENCODING_MACKANNADA", wxFONTENCODING_MACKANNADA }, - { "wxFONTENCODING_MACKEYBOARD", wxFONTENCODING_MACKEYBOARD }, - { "wxFONTENCODING_MACKHMER", wxFONTENCODING_MACKHMER }, - { "wxFONTENCODING_MACKOREAN", wxFONTENCODING_MACKOREAN }, - { "wxFONTENCODING_MACLAOTIAN", wxFONTENCODING_MACLAOTIAN }, - { "wxFONTENCODING_MACMALAJALAM", wxFONTENCODING_MACMALAJALAM }, - { "wxFONTENCODING_MACMAX", wxFONTENCODING_MACMAX }, - { "wxFONTENCODING_MACMIN", wxFONTENCODING_MACMIN }, - { "wxFONTENCODING_MACMONGOLIAN", wxFONTENCODING_MACMONGOLIAN }, - { "wxFONTENCODING_MACORIYA", wxFONTENCODING_MACORIYA }, - { "wxFONTENCODING_MACROMAN", wxFONTENCODING_MACROMAN }, - { "wxFONTENCODING_MACROMANIAN", wxFONTENCODING_MACROMANIAN }, - { "wxFONTENCODING_MACSINHALESE", wxFONTENCODING_MACSINHALESE }, - { "wxFONTENCODING_MACSYMBOL", wxFONTENCODING_MACSYMBOL }, - { "wxFONTENCODING_MACTAMIL", wxFONTENCODING_MACTAMIL }, - { "wxFONTENCODING_MACTELUGU", wxFONTENCODING_MACTELUGU }, - { "wxFONTENCODING_MACTHAI", wxFONTENCODING_MACTHAI }, - { "wxFONTENCODING_MACTIBETAN", wxFONTENCODING_MACTIBETAN }, - { "wxFONTENCODING_MACTURKISH", wxFONTENCODING_MACTURKISH }, - { "wxFONTENCODING_MACVIATNAMESE", wxFONTENCODING_MACVIATNAMESE }, - { "wxFONTENCODING_MAX", wxFONTENCODING_MAX }, - { "wxFONTENCODING_SHIFT_JIS", wxFONTENCODING_SHIFT_JIS }, - { "wxFONTENCODING_SYSTEM", wxFONTENCODING_SYSTEM }, - { "wxFONTENCODING_UNICODE", wxFONTENCODING_UNICODE }, - { "wxFONTENCODING_UTF16", wxFONTENCODING_UTF16 }, - { "wxFONTENCODING_UTF16BE", wxFONTENCODING_UTF16BE }, - { "wxFONTENCODING_UTF16LE", wxFONTENCODING_UTF16LE }, - { "wxFONTENCODING_UTF32", wxFONTENCODING_UTF32 }, - { "wxFONTENCODING_UTF32BE", wxFONTENCODING_UTF32BE }, - { "wxFONTENCODING_UTF32LE", wxFONTENCODING_UTF32LE }, - { "wxFONTENCODING_UTF7", wxFONTENCODING_UTF7 }, - { "wxFONTENCODING_UTF8", wxFONTENCODING_UTF8 }, -#endif // wxUSE_INTL - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - { "wxFSWPath_Dir", wxFSWPath_Dir }, - { "wxFSWPath_File", wxFSWPath_File }, - { "wxFSWPath_None", wxFSWPath_None }, - { "wxFSWPath_Tree", wxFSWPath_Tree }, - { "wxFSW_EVENT_ACCESS", wxFSW_EVENT_ACCESS }, - { "wxFSW_EVENT_ALL", wxFSW_EVENT_ALL }, - { "wxFSW_EVENT_ATTRIB", wxFSW_EVENT_ATTRIB }, - { "wxFSW_EVENT_CREATE", wxFSW_EVENT_CREATE }, - { "wxFSW_EVENT_DELETE", wxFSW_EVENT_DELETE }, - { "wxFSW_EVENT_ERROR", wxFSW_EVENT_ERROR }, - { "wxFSW_EVENT_MODIFY", wxFSW_EVENT_MODIFY }, - { "wxFSW_EVENT_RENAME", wxFSW_EVENT_RENAME }, -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - -#if (defined (wxHAS_INOTIFY ) || defined (wxHAVE_FSEVENTS_FILE_NOTIFICATIONS )) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "wxFSW_EVENT_UNMOUNT", wxFSW_EVENT_UNMOUNT }, -#endif // (defined (wxHAS_INOTIFY ) || defined (wxHAVE_FSEVENTS_FILE_NOTIFICATIONS )) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - { "wxFSW_EVENT_WARNING", wxFSW_EVENT_WARNING }, -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - -#if (wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "wxFSW_WARNING_GENERAL", wxFSW_WARNING_GENERAL }, - { "wxFSW_WARNING_NONE", wxFSW_WARNING_NONE }, - { "wxFSW_WARNING_OVERFLOW", wxFSW_WARNING_OVERFLOW }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - { "wxFS_READ", wxFS_READ }, - { "wxFS_SEEKABLE", wxFS_SEEKABLE }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -#if wxLUA_USE_wxFile && wxUSE_FILE - { "wxFromCurrent", wxFromCurrent }, - { "wxFromEnd", wxFromEnd }, - { "wxFromStart", wxFromStart }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if !wxCHECK_VERSION(2,8,0) - { "wxGEOS", wxGEOS }, - { "wxGTK", wxGTK }, - { "wxGTK_BEOS", wxGTK_BEOS }, - { "wxGTK_OS2", wxGTK_OS2 }, - { "wxGTK_WIN32", wxGTK_WIN32 }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxFile && wxUSE_FILE - { "wxInvalidOffset", wxInvalidOffset }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxLUA_USE_wxList && !wxUSE_STL - { "wxKEY_INTEGER", wxKEY_INTEGER }, - { "wxKEY_NONE", wxKEY_NONE }, - { "wxKEY_STRING", wxKEY_STRING }, -#endif // wxLUA_USE_wxList && !wxUSE_STL - -#if wxUSE_INTL - { "wxLANGUAGE_ABKHAZIAN", wxLANGUAGE_ABKHAZIAN }, - { "wxLANGUAGE_AFAR", wxLANGUAGE_AFAR }, - { "wxLANGUAGE_AFRIKAANS", wxLANGUAGE_AFRIKAANS }, - { "wxLANGUAGE_ALBANIAN", wxLANGUAGE_ALBANIAN }, - { "wxLANGUAGE_AMHARIC", wxLANGUAGE_AMHARIC }, - { "wxLANGUAGE_ARABIC", wxLANGUAGE_ARABIC }, - { "wxLANGUAGE_ARABIC_ALGERIA", wxLANGUAGE_ARABIC_ALGERIA }, - { "wxLANGUAGE_ARABIC_BAHRAIN", wxLANGUAGE_ARABIC_BAHRAIN }, - { "wxLANGUAGE_ARABIC_EGYPT", wxLANGUAGE_ARABIC_EGYPT }, - { "wxLANGUAGE_ARABIC_IRAQ", wxLANGUAGE_ARABIC_IRAQ }, - { "wxLANGUAGE_ARABIC_JORDAN", wxLANGUAGE_ARABIC_JORDAN }, - { "wxLANGUAGE_ARABIC_KUWAIT", wxLANGUAGE_ARABIC_KUWAIT }, - { "wxLANGUAGE_ARABIC_LEBANON", wxLANGUAGE_ARABIC_LEBANON }, - { "wxLANGUAGE_ARABIC_LIBYA", wxLANGUAGE_ARABIC_LIBYA }, - { "wxLANGUAGE_ARABIC_MOROCCO", wxLANGUAGE_ARABIC_MOROCCO }, - { "wxLANGUAGE_ARABIC_OMAN", wxLANGUAGE_ARABIC_OMAN }, - { "wxLANGUAGE_ARABIC_QATAR", wxLANGUAGE_ARABIC_QATAR }, - { "wxLANGUAGE_ARABIC_SAUDI_ARABIA", wxLANGUAGE_ARABIC_SAUDI_ARABIA }, - { "wxLANGUAGE_ARABIC_SUDAN", wxLANGUAGE_ARABIC_SUDAN }, - { "wxLANGUAGE_ARABIC_SYRIA", wxLANGUAGE_ARABIC_SYRIA }, - { "wxLANGUAGE_ARABIC_TUNISIA", wxLANGUAGE_ARABIC_TUNISIA }, - { "wxLANGUAGE_ARABIC_UAE", wxLANGUAGE_ARABIC_UAE }, - { "wxLANGUAGE_ARABIC_YEMEN", wxLANGUAGE_ARABIC_YEMEN }, - { "wxLANGUAGE_ARMENIAN", wxLANGUAGE_ARMENIAN }, - { "wxLANGUAGE_ASSAMESE", wxLANGUAGE_ASSAMESE }, - { "wxLANGUAGE_AYMARA", wxLANGUAGE_AYMARA }, - { "wxLANGUAGE_AZERI", wxLANGUAGE_AZERI }, - { "wxLANGUAGE_AZERI_CYRILLIC", wxLANGUAGE_AZERI_CYRILLIC }, - { "wxLANGUAGE_AZERI_LATIN", wxLANGUAGE_AZERI_LATIN }, - { "wxLANGUAGE_BASHKIR", wxLANGUAGE_BASHKIR }, - { "wxLANGUAGE_BASQUE", wxLANGUAGE_BASQUE }, - { "wxLANGUAGE_BELARUSIAN", wxLANGUAGE_BELARUSIAN }, - { "wxLANGUAGE_BENGALI", wxLANGUAGE_BENGALI }, - { "wxLANGUAGE_BHUTANI", wxLANGUAGE_BHUTANI }, - { "wxLANGUAGE_BIHARI", wxLANGUAGE_BIHARI }, - { "wxLANGUAGE_BISLAMA", wxLANGUAGE_BISLAMA }, - { "wxLANGUAGE_BRETON", wxLANGUAGE_BRETON }, - { "wxLANGUAGE_BULGARIAN", wxLANGUAGE_BULGARIAN }, - { "wxLANGUAGE_BURMESE", wxLANGUAGE_BURMESE }, - { "wxLANGUAGE_CAMBODIAN", wxLANGUAGE_CAMBODIAN }, - { "wxLANGUAGE_CATALAN", wxLANGUAGE_CATALAN }, - { "wxLANGUAGE_CHINESE", wxLANGUAGE_CHINESE }, - { "wxLANGUAGE_CHINESE_HONGKONG", wxLANGUAGE_CHINESE_HONGKONG }, - { "wxLANGUAGE_CHINESE_MACAU", wxLANGUAGE_CHINESE_MACAU }, - { "wxLANGUAGE_CHINESE_SIMPLIFIED", wxLANGUAGE_CHINESE_SIMPLIFIED }, - { "wxLANGUAGE_CHINESE_SINGAPORE", wxLANGUAGE_CHINESE_SINGAPORE }, - { "wxLANGUAGE_CHINESE_TAIWAN", wxLANGUAGE_CHINESE_TAIWAN }, - { "wxLANGUAGE_CHINESE_TRADITIONAL", wxLANGUAGE_CHINESE_TRADITIONAL }, - { "wxLANGUAGE_CORSICAN", wxLANGUAGE_CORSICAN }, - { "wxLANGUAGE_CROATIAN", wxLANGUAGE_CROATIAN }, - { "wxLANGUAGE_CZECH", wxLANGUAGE_CZECH }, - { "wxLANGUAGE_DANISH", wxLANGUAGE_DANISH }, - { "wxLANGUAGE_DEFAULT", wxLANGUAGE_DEFAULT }, - { "wxLANGUAGE_DUTCH", wxLANGUAGE_DUTCH }, - { "wxLANGUAGE_DUTCH_BELGIAN", wxLANGUAGE_DUTCH_BELGIAN }, - { "wxLANGUAGE_ENGLISH", wxLANGUAGE_ENGLISH }, - { "wxLANGUAGE_ENGLISH_AUSTRALIA", wxLANGUAGE_ENGLISH_AUSTRALIA }, - { "wxLANGUAGE_ENGLISH_BELIZE", wxLANGUAGE_ENGLISH_BELIZE }, - { "wxLANGUAGE_ENGLISH_BOTSWANA", wxLANGUAGE_ENGLISH_BOTSWANA }, - { "wxLANGUAGE_ENGLISH_CANADA", wxLANGUAGE_ENGLISH_CANADA }, - { "wxLANGUAGE_ENGLISH_CARIBBEAN", wxLANGUAGE_ENGLISH_CARIBBEAN }, - { "wxLANGUAGE_ENGLISH_DENMARK", wxLANGUAGE_ENGLISH_DENMARK }, - { "wxLANGUAGE_ENGLISH_EIRE", wxLANGUAGE_ENGLISH_EIRE }, - { "wxLANGUAGE_ENGLISH_JAMAICA", wxLANGUAGE_ENGLISH_JAMAICA }, - { "wxLANGUAGE_ENGLISH_NEW_ZEALAND", wxLANGUAGE_ENGLISH_NEW_ZEALAND }, - { "wxLANGUAGE_ENGLISH_PHILIPPINES", wxLANGUAGE_ENGLISH_PHILIPPINES }, - { "wxLANGUAGE_ENGLISH_SOUTH_AFRICA", wxLANGUAGE_ENGLISH_SOUTH_AFRICA }, - { "wxLANGUAGE_ENGLISH_TRINIDAD", wxLANGUAGE_ENGLISH_TRINIDAD }, - { "wxLANGUAGE_ENGLISH_UK", wxLANGUAGE_ENGLISH_UK }, - { "wxLANGUAGE_ENGLISH_US", wxLANGUAGE_ENGLISH_US }, - { "wxLANGUAGE_ENGLISH_ZIMBABWE", wxLANGUAGE_ENGLISH_ZIMBABWE }, - { "wxLANGUAGE_ESPERANTO", wxLANGUAGE_ESPERANTO }, - { "wxLANGUAGE_ESTONIAN", wxLANGUAGE_ESTONIAN }, - { "wxLANGUAGE_FAEROESE", wxLANGUAGE_FAEROESE }, - { "wxLANGUAGE_FARSI", wxLANGUAGE_FARSI }, - { "wxLANGUAGE_FIJI", wxLANGUAGE_FIJI }, - { "wxLANGUAGE_FINNISH", wxLANGUAGE_FINNISH }, - { "wxLANGUAGE_FRENCH", wxLANGUAGE_FRENCH }, - { "wxLANGUAGE_FRENCH_BELGIAN", wxLANGUAGE_FRENCH_BELGIAN }, - { "wxLANGUAGE_FRENCH_CANADIAN", wxLANGUAGE_FRENCH_CANADIAN }, - { "wxLANGUAGE_FRENCH_LUXEMBOURG", wxLANGUAGE_FRENCH_LUXEMBOURG }, - { "wxLANGUAGE_FRENCH_MONACO", wxLANGUAGE_FRENCH_MONACO }, - { "wxLANGUAGE_FRENCH_SWISS", wxLANGUAGE_FRENCH_SWISS }, - { "wxLANGUAGE_FRISIAN", wxLANGUAGE_FRISIAN }, - { "wxLANGUAGE_GALICIAN", wxLANGUAGE_GALICIAN }, - { "wxLANGUAGE_GEORGIAN", wxLANGUAGE_GEORGIAN }, - { "wxLANGUAGE_GERMAN", wxLANGUAGE_GERMAN }, - { "wxLANGUAGE_GERMAN_AUSTRIAN", wxLANGUAGE_GERMAN_AUSTRIAN }, - { "wxLANGUAGE_GERMAN_BELGIUM", wxLANGUAGE_GERMAN_BELGIUM }, - { "wxLANGUAGE_GERMAN_LIECHTENSTEIN", wxLANGUAGE_GERMAN_LIECHTENSTEIN }, - { "wxLANGUAGE_GERMAN_LUXEMBOURG", wxLANGUAGE_GERMAN_LUXEMBOURG }, - { "wxLANGUAGE_GERMAN_SWISS", wxLANGUAGE_GERMAN_SWISS }, - { "wxLANGUAGE_GREEK", wxLANGUAGE_GREEK }, - { "wxLANGUAGE_GREENLANDIC", wxLANGUAGE_GREENLANDIC }, - { "wxLANGUAGE_GUARANI", wxLANGUAGE_GUARANI }, - { "wxLANGUAGE_GUJARATI", wxLANGUAGE_GUJARATI }, - { "wxLANGUAGE_HAUSA", wxLANGUAGE_HAUSA }, - { "wxLANGUAGE_HEBREW", wxLANGUAGE_HEBREW }, - { "wxLANGUAGE_HINDI", wxLANGUAGE_HINDI }, - { "wxLANGUAGE_HUNGARIAN", wxLANGUAGE_HUNGARIAN }, - { "wxLANGUAGE_ICELANDIC", wxLANGUAGE_ICELANDIC }, - { "wxLANGUAGE_INDONESIAN", wxLANGUAGE_INDONESIAN }, - { "wxLANGUAGE_INTERLINGUA", wxLANGUAGE_INTERLINGUA }, - { "wxLANGUAGE_INTERLINGUE", wxLANGUAGE_INTERLINGUE }, - { "wxLANGUAGE_INUKTITUT", wxLANGUAGE_INUKTITUT }, - { "wxLANGUAGE_INUPIAK", wxLANGUAGE_INUPIAK }, - { "wxLANGUAGE_IRISH", wxLANGUAGE_IRISH }, - { "wxLANGUAGE_ITALIAN", wxLANGUAGE_ITALIAN }, - { "wxLANGUAGE_ITALIAN_SWISS", wxLANGUAGE_ITALIAN_SWISS }, - { "wxLANGUAGE_JAPANESE", wxLANGUAGE_JAPANESE }, - { "wxLANGUAGE_JAVANESE", wxLANGUAGE_JAVANESE }, - { "wxLANGUAGE_KANNADA", wxLANGUAGE_KANNADA }, - { "wxLANGUAGE_KASHMIRI", wxLANGUAGE_KASHMIRI }, - { "wxLANGUAGE_KASHMIRI_INDIA", wxLANGUAGE_KASHMIRI_INDIA }, - { "wxLANGUAGE_KAZAKH", wxLANGUAGE_KAZAKH }, - { "wxLANGUAGE_KERNEWEK", wxLANGUAGE_KERNEWEK }, - { "wxLANGUAGE_KINYARWANDA", wxLANGUAGE_KINYARWANDA }, - { "wxLANGUAGE_KIRGHIZ", wxLANGUAGE_KIRGHIZ }, - { "wxLANGUAGE_KIRUNDI", wxLANGUAGE_KIRUNDI }, - { "wxLANGUAGE_KONKANI", wxLANGUAGE_KONKANI }, - { "wxLANGUAGE_KOREAN", wxLANGUAGE_KOREAN }, - { "wxLANGUAGE_KURDISH", wxLANGUAGE_KURDISH }, - { "wxLANGUAGE_LAOTHIAN", wxLANGUAGE_LAOTHIAN }, - { "wxLANGUAGE_LATIN", wxLANGUAGE_LATIN }, - { "wxLANGUAGE_LATVIAN", wxLANGUAGE_LATVIAN }, - { "wxLANGUAGE_LINGALA", wxLANGUAGE_LINGALA }, - { "wxLANGUAGE_LITHUANIAN", wxLANGUAGE_LITHUANIAN }, - { "wxLANGUAGE_MACEDONIAN", wxLANGUAGE_MACEDONIAN }, - { "wxLANGUAGE_MALAGASY", wxLANGUAGE_MALAGASY }, - { "wxLANGUAGE_MALAY", wxLANGUAGE_MALAY }, - { "wxLANGUAGE_MALAYALAM", wxLANGUAGE_MALAYALAM }, - { "wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM", wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM }, - { "wxLANGUAGE_MALAY_MALAYSIA", wxLANGUAGE_MALAY_MALAYSIA }, - { "wxLANGUAGE_MALTESE", wxLANGUAGE_MALTESE }, - { "wxLANGUAGE_MANIPURI", wxLANGUAGE_MANIPURI }, - { "wxLANGUAGE_MAORI", wxLANGUAGE_MAORI }, - { "wxLANGUAGE_MARATHI", wxLANGUAGE_MARATHI }, - { "wxLANGUAGE_MOLDAVIAN", wxLANGUAGE_MOLDAVIAN }, - { "wxLANGUAGE_MONGOLIAN", wxLANGUAGE_MONGOLIAN }, - { "wxLANGUAGE_NAURU", wxLANGUAGE_NAURU }, - { "wxLANGUAGE_NEPALI", wxLANGUAGE_NEPALI }, - { "wxLANGUAGE_NEPALI_INDIA", wxLANGUAGE_NEPALI_INDIA }, - { "wxLANGUAGE_NORWEGIAN_BOKMAL", wxLANGUAGE_NORWEGIAN_BOKMAL }, - { "wxLANGUAGE_NORWEGIAN_NYNORSK", wxLANGUAGE_NORWEGIAN_NYNORSK }, - { "wxLANGUAGE_OCCITAN", wxLANGUAGE_OCCITAN }, - { "wxLANGUAGE_ORIYA", wxLANGUAGE_ORIYA }, - { "wxLANGUAGE_OROMO", wxLANGUAGE_OROMO }, - { "wxLANGUAGE_PASHTO", wxLANGUAGE_PASHTO }, - { "wxLANGUAGE_POLISH", wxLANGUAGE_POLISH }, - { "wxLANGUAGE_PORTUGUESE", wxLANGUAGE_PORTUGUESE }, - { "wxLANGUAGE_PORTUGUESE_BRAZILIAN", wxLANGUAGE_PORTUGUESE_BRAZILIAN }, - { "wxLANGUAGE_PUNJABI", wxLANGUAGE_PUNJABI }, - { "wxLANGUAGE_QUECHUA", wxLANGUAGE_QUECHUA }, - { "wxLANGUAGE_RHAETO_ROMANCE", wxLANGUAGE_RHAETO_ROMANCE }, - { "wxLANGUAGE_ROMANIAN", wxLANGUAGE_ROMANIAN }, - { "wxLANGUAGE_RUSSIAN", wxLANGUAGE_RUSSIAN }, - { "wxLANGUAGE_RUSSIAN_UKRAINE", wxLANGUAGE_RUSSIAN_UKRAINE }, - { "wxLANGUAGE_SAMOAN", wxLANGUAGE_SAMOAN }, - { "wxLANGUAGE_SANGHO", wxLANGUAGE_SANGHO }, - { "wxLANGUAGE_SANSKRIT", wxLANGUAGE_SANSKRIT }, - { "wxLANGUAGE_SCOTS_GAELIC", wxLANGUAGE_SCOTS_GAELIC }, - { "wxLANGUAGE_SERBIAN", wxLANGUAGE_SERBIAN }, - { "wxLANGUAGE_SERBIAN_CYRILLIC", wxLANGUAGE_SERBIAN_CYRILLIC }, - { "wxLANGUAGE_SERBIAN_LATIN", wxLANGUAGE_SERBIAN_LATIN }, - { "wxLANGUAGE_SERBO_CROATIAN", wxLANGUAGE_SERBO_CROATIAN }, - { "wxLANGUAGE_SESOTHO", wxLANGUAGE_SESOTHO }, - { "wxLANGUAGE_SETSWANA", wxLANGUAGE_SETSWANA }, - { "wxLANGUAGE_SHONA", wxLANGUAGE_SHONA }, - { "wxLANGUAGE_SINDHI", wxLANGUAGE_SINDHI }, - { "wxLANGUAGE_SINHALESE", wxLANGUAGE_SINHALESE }, - { "wxLANGUAGE_SISWATI", wxLANGUAGE_SISWATI }, - { "wxLANGUAGE_SLOVAK", wxLANGUAGE_SLOVAK }, - { "wxLANGUAGE_SLOVENIAN", wxLANGUAGE_SLOVENIAN }, - { "wxLANGUAGE_SOMALI", wxLANGUAGE_SOMALI }, - { "wxLANGUAGE_SPANISH", wxLANGUAGE_SPANISH }, - { "wxLANGUAGE_SPANISH_ARGENTINA", wxLANGUAGE_SPANISH_ARGENTINA }, - { "wxLANGUAGE_SPANISH_BOLIVIA", wxLANGUAGE_SPANISH_BOLIVIA }, - { "wxLANGUAGE_SPANISH_CHILE", wxLANGUAGE_SPANISH_CHILE }, - { "wxLANGUAGE_SPANISH_COLOMBIA", wxLANGUAGE_SPANISH_COLOMBIA }, - { "wxLANGUAGE_SPANISH_COSTA_RICA", wxLANGUAGE_SPANISH_COSTA_RICA }, - { "wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC", wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC }, - { "wxLANGUAGE_SPANISH_ECUADOR", wxLANGUAGE_SPANISH_ECUADOR }, - { "wxLANGUAGE_SPANISH_EL_SALVADOR", wxLANGUAGE_SPANISH_EL_SALVADOR }, - { "wxLANGUAGE_SPANISH_GUATEMALA", wxLANGUAGE_SPANISH_GUATEMALA }, - { "wxLANGUAGE_SPANISH_HONDURAS", wxLANGUAGE_SPANISH_HONDURAS }, - { "wxLANGUAGE_SPANISH_MEXICAN", wxLANGUAGE_SPANISH_MEXICAN }, - { "wxLANGUAGE_SPANISH_MODERN", wxLANGUAGE_SPANISH_MODERN }, - { "wxLANGUAGE_SPANISH_NICARAGUA", wxLANGUAGE_SPANISH_NICARAGUA }, - { "wxLANGUAGE_SPANISH_PANAMA", wxLANGUAGE_SPANISH_PANAMA }, - { "wxLANGUAGE_SPANISH_PARAGUAY", wxLANGUAGE_SPANISH_PARAGUAY }, - { "wxLANGUAGE_SPANISH_PERU", wxLANGUAGE_SPANISH_PERU }, - { "wxLANGUAGE_SPANISH_PUERTO_RICO", wxLANGUAGE_SPANISH_PUERTO_RICO }, - { "wxLANGUAGE_SPANISH_URUGUAY", wxLANGUAGE_SPANISH_URUGUAY }, - { "wxLANGUAGE_SPANISH_US", wxLANGUAGE_SPANISH_US }, - { "wxLANGUAGE_SPANISH_VENEZUELA", wxLANGUAGE_SPANISH_VENEZUELA }, - { "wxLANGUAGE_SUNDANESE", wxLANGUAGE_SUNDANESE }, - { "wxLANGUAGE_SWAHILI", wxLANGUAGE_SWAHILI }, - { "wxLANGUAGE_SWEDISH", wxLANGUAGE_SWEDISH }, - { "wxLANGUAGE_SWEDISH_FINLAND", wxLANGUAGE_SWEDISH_FINLAND }, - { "wxLANGUAGE_TAGALOG", wxLANGUAGE_TAGALOG }, - { "wxLANGUAGE_TAJIK", wxLANGUAGE_TAJIK }, - { "wxLANGUAGE_TAMIL", wxLANGUAGE_TAMIL }, - { "wxLANGUAGE_TATAR", wxLANGUAGE_TATAR }, - { "wxLANGUAGE_TELUGU", wxLANGUAGE_TELUGU }, - { "wxLANGUAGE_THAI", wxLANGUAGE_THAI }, - { "wxLANGUAGE_TIBETAN", wxLANGUAGE_TIBETAN }, - { "wxLANGUAGE_TIGRINYA", wxLANGUAGE_TIGRINYA }, - { "wxLANGUAGE_TONGA", wxLANGUAGE_TONGA }, - { "wxLANGUAGE_TSONGA", wxLANGUAGE_TSONGA }, - { "wxLANGUAGE_TURKISH", wxLANGUAGE_TURKISH }, - { "wxLANGUAGE_TURKMEN", wxLANGUAGE_TURKMEN }, - { "wxLANGUAGE_TWI", wxLANGUAGE_TWI }, - { "wxLANGUAGE_UIGHUR", wxLANGUAGE_UIGHUR }, - { "wxLANGUAGE_UKRAINIAN", wxLANGUAGE_UKRAINIAN }, - { "wxLANGUAGE_UNKNOWN", wxLANGUAGE_UNKNOWN }, - { "wxLANGUAGE_URDU", wxLANGUAGE_URDU }, - { "wxLANGUAGE_URDU_INDIA", wxLANGUAGE_URDU_INDIA }, - { "wxLANGUAGE_URDU_PAKISTAN", wxLANGUAGE_URDU_PAKISTAN }, - { "wxLANGUAGE_USER_DEFINED", wxLANGUAGE_USER_DEFINED }, - { "wxLANGUAGE_UZBEK", wxLANGUAGE_UZBEK }, - { "wxLANGUAGE_UZBEK_CYRILLIC", wxLANGUAGE_UZBEK_CYRILLIC }, - { "wxLANGUAGE_UZBEK_LATIN", wxLANGUAGE_UZBEK_LATIN }, - { "wxLANGUAGE_VIETNAMESE", wxLANGUAGE_VIETNAMESE }, - { "wxLANGUAGE_VOLAPUK", wxLANGUAGE_VOLAPUK }, - { "wxLANGUAGE_WELSH", wxLANGUAGE_WELSH }, - { "wxLANGUAGE_WOLOF", wxLANGUAGE_WOLOF }, - { "wxLANGUAGE_XHOSA", wxLANGUAGE_XHOSA }, - { "wxLANGUAGE_YIDDISH", wxLANGUAGE_YIDDISH }, - { "wxLANGUAGE_YORUBA", wxLANGUAGE_YORUBA }, - { "wxLANGUAGE_ZHUANG", wxLANGUAGE_ZHUANG }, - { "wxLANGUAGE_ZULU", wxLANGUAGE_ZULU }, - { "wxLOCALE_CAT_DATE", wxLOCALE_CAT_DATE }, - { "wxLOCALE_CAT_MAX", wxLOCALE_CAT_MAX }, - { "wxLOCALE_CAT_MONEY", wxLOCALE_CAT_MONEY }, - { "wxLOCALE_CAT_NUMBER", wxLOCALE_CAT_NUMBER }, -#endif // wxUSE_INTL - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL) - { "wxLOCALE_CONV_ENCODING", wxLOCALE_CONV_ENCODING }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_INTL) - -#if wxUSE_INTL - { "wxLOCALE_DECIMAL_POINT", wxLOCALE_DECIMAL_POINT }, - { "wxLOCALE_DONT_LOAD_DEFAULT", wxLOCALE_DONT_LOAD_DEFAULT }, - { "wxLOCALE_LOAD_DEFAULT", wxLOCALE_LOAD_DEFAULT }, - { "wxLOCALE_THOUSANDS_SEP", wxLOCALE_THOUSANDS_SEP }, -#endif // wxUSE_INTL - -#if wxLUA_USE_wxLog && wxUSE_LOG - { "wxLOG_Debug", wxLOG_Debug }, - { "wxLOG_Error", wxLOG_Error }, - { "wxLOG_FatalError", wxLOG_FatalError }, - { "wxLOG_Info", wxLOG_Info }, - { "wxLOG_Max", wxLOG_Max }, - { "wxLOG_Message", wxLOG_Message }, - { "wxLOG_Progress", wxLOG_Progress }, - { "wxLOG_Status", wxLOG_Status }, - { "wxLOG_Trace", wxLOG_Trace }, - { "wxLOG_User", wxLOG_User }, - { "wxLOG_Warning", wxLOG_Warning }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "wxLayout_Default", wxLayout_Default }, - { "wxLayout_LeftToRight", wxLayout_LeftToRight }, - { "wxLayout_RightToLeft", wxLayout_RightToLeft }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if !wxCHECK_VERSION(2,8,0) - { "wxMAC", wxMAC }, - { "wxMAC_DARWIN", wxMAC_DARWIN }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxMAJOR_VERSION", wxMAJOR_VERSION }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxMGL_DOS", wxMGL_DOS }, - { "wxMGL_OS2", wxMGL_OS2 }, - { "wxMGL_UNIX", wxMGL_UNIX }, - { "wxMGL_WIN32", wxMGL_WIN32 }, - { "wxMGL_X", wxMGL_X }, - { "wxMICROWINDOWS", wxMICROWINDOWS }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxMINOR_VERSION", wxMINOR_VERSION }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxMOTIF_X", wxMOTIF_X }, - { "wxNEXTSTEP", wxNEXTSTEP }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxNOT_FOUND", wxNOT_FOUND }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxOS2_PM", wxOS2_PM }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxOS_DOS", wxOS_DOS }, - { "wxOS_MAC", wxOS_MAC }, - { "wxOS_MAC_OS", wxOS_MAC_OS }, - { "wxOS_MAC_OSX_DARWIN", wxOS_MAC_OSX_DARWIN }, - { "wxOS_OS2", wxOS_OS2 }, - { "wxOS_UNIX", wxOS_UNIX }, - { "wxOS_UNIX_AIX", wxOS_UNIX_AIX }, - { "wxOS_UNIX_FREEBSD", wxOS_UNIX_FREEBSD }, - { "wxOS_UNIX_HPUX", wxOS_UNIX_HPUX }, - { "wxOS_UNIX_LINUX", wxOS_UNIX_LINUX }, - { "wxOS_UNIX_NETBSD", wxOS_UNIX_NETBSD }, - { "wxOS_UNIX_OPENBSD", wxOS_UNIX_OPENBSD }, - { "wxOS_UNIX_SOLARIS", wxOS_UNIX_SOLARIS }, - { "wxOS_UNKNOWN", wxOS_UNKNOWN }, - { "wxOS_WINDOWS", wxOS_WINDOWS }, - { "wxOS_WINDOWS_9X", wxOS_WINDOWS_9X }, - { "wxOS_WINDOWS_CE", wxOS_WINDOWS_CE }, - { "wxOS_WINDOWS_MICRO", wxOS_WINDOWS_MICRO }, - { "wxOS_WINDOWS_NT", wxOS_WINDOWS_NT }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxPALMOS", wxPALMOS }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxFileName - { "wxPATH_BEOS", wxPATH_BEOS }, - { "wxPATH_DOS", wxPATH_DOS }, - { "wxPATH_GET_SEPARATOR", wxPATH_GET_SEPARATOR }, - { "wxPATH_GET_VOLUME", wxPATH_GET_VOLUME }, - { "wxPATH_MAC", wxPATH_MAC }, - { "wxPATH_MAX", wxPATH_MAX }, - { "wxPATH_MKDIR_FULL", wxPATH_MKDIR_FULL }, - { "wxPATH_NATIVE", wxPATH_NATIVE }, - { "wxPATH_NORM_ABSOLUTE", wxPATH_NORM_ABSOLUTE }, - { "wxPATH_NORM_ALL", wxPATH_NORM_ALL }, - { "wxPATH_NORM_CASE", wxPATH_NORM_CASE }, - { "wxPATH_NORM_DOTS", wxPATH_NORM_DOTS }, - { "wxPATH_NORM_ENV_VARS", wxPATH_NORM_ENV_VARS }, - { "wxPATH_NORM_LONG", wxPATH_NORM_LONG }, - { "wxPATH_NORM_SHORTCUT", wxPATH_NORM_SHORTCUT }, - { "wxPATH_NORM_TILDE", wxPATH_NORM_TILDE }, - { "wxPATH_OS2", wxPATH_OS2 }, - { "wxPATH_UNIX", wxPATH_UNIX }, - { "wxPATH_VMS", wxPATH_VMS }, - { "wxPATH_WIN", wxPATH_WIN }, -#endif // wxLUA_USE_wxFileName - -#if !wxCHECK_VERSION(2,8,0) - { "wxPENWINDOWS", wxPENWINDOWS }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxPORT_BASE", wxPORT_BASE }, - { "wxPORT_COCOA", wxPORT_COCOA }, - { "wxPORT_DFB", wxPORT_DFB }, - { "wxPORT_GTK", wxPORT_GTK }, - { "wxPORT_MAC", wxPORT_MAC }, - -#if !wxCHECK_VERSION(2,9,0) - { "wxPORT_MGL", wxPORT_MGL }, -#endif // !wxCHECK_VERSION(2,9,0) - - { "wxPORT_MOTIF", wxPORT_MOTIF }, - { "wxPORT_MSW", wxPORT_MSW }, - { "wxPORT_OS2", wxPORT_OS2 }, - -#if !wxCHECK_VERSION(2,9,0) - { "wxPORT_PALMOS", wxPORT_PALMOS }, -#endif // !wxCHECK_VERSION(2,9,0) - - { "wxPORT_PM", wxPORT_PM }, - { "wxPORT_UNKNOWN", wxPORT_UNKNOWN }, - { "wxPORT_WINCE", wxPORT_WINCE }, - { "wxPORT_X11", wxPORT_X11 }, - -#if wxLUA_USE_wxFile && wxUSE_FILE - { "wxPOSIX_GROUP_EXECUTE", wxPOSIX_GROUP_EXECUTE }, - { "wxPOSIX_GROUP_READ", wxPOSIX_GROUP_READ }, - { "wxPOSIX_GROUP_WRITE", wxPOSIX_GROUP_WRITE }, - { "wxPOSIX_OTHERS_EXECUTE", wxPOSIX_OTHERS_EXECUTE }, - { "wxPOSIX_OTHERS_READ", wxPOSIX_OTHERS_READ }, - { "wxPOSIX_OTHERS_WRITE", wxPOSIX_OTHERS_WRITE }, - { "wxPOSIX_USER_EXECUTE", wxPOSIX_USER_EXECUTE }, - { "wxPOSIX_USER_READ", wxPOSIX_USER_READ }, - { "wxPOSIX_USER_WRITE", wxPOSIX_USER_WRITE }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - - { "wxRELEASE_NUMBER", wxRELEASE_NUMBER }, - -#if wxLUA_USE_wxRegEx && wxUSE_REGEX - { "wxRE_BASIC", wxRE_BASIC }, - { "wxRE_DEFAULT", wxRE_DEFAULT }, - { "wxRE_EXTENDED", wxRE_EXTENDED }, - { "wxRE_ICASE", wxRE_ICASE }, - { "wxRE_NEWLINE", wxRE_NEWLINE }, - { "wxRE_NOSUB", wxRE_NOSUB }, - { "wxRE_NOTBOL", wxRE_NOTBOL }, - { "wxRE_NOTEOL", wxRE_NOTEOL }, -#endif // wxLUA_USE_wxRegEx && wxUSE_REGEX - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName) - { "wxSIZE_CONV_IEC", wxSIZE_CONV_IEC }, - { "wxSIZE_CONV_SI", wxSIZE_CONV_SI }, - { "wxSIZE_CONV_TRADITIONAL", wxSIZE_CONV_TRADITIONAL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName) - -#if wxUSE_STREAMS - { "wxSTREAM_EOF", wxSTREAM_EOF }, - { "wxSTREAM_NO_ERROR", wxSTREAM_NO_ERROR }, - { "wxSTREAM_READ_ERROR", wxSTREAM_READ_ERROR }, - { "wxSTREAM_WRITE_ERROR", wxSTREAM_WRITE_ERROR }, -#endif // wxUSE_STREAMS - - { "wxSUBRELEASE_NUMBER", wxSUBRELEASE_NUMBER }, - -#if wxLUA_USE_wxFile && wxUSE_FILE - { "wxS_DEFAULT", wxS_DEFAULT }, - { "wxS_DIR_DEFAULT", wxS_DIR_DEFAULT }, - { "wxS_IRGRP", wxS_IRGRP }, - { "wxS_IROTH", wxS_IROTH }, - { "wxS_IRUSR", wxS_IRUSR }, - { "wxS_IWGRP", wxS_IWGRP }, - { "wxS_IWOTH", wxS_IWOTH }, - { "wxS_IWUSR", wxS_IWUSR }, - { "wxS_IXGRP", wxS_IXGRP }, - { "wxS_IXOTH", wxS_IXOTH }, - { "wxS_IXUSR", wxS_IXUSR }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - - { "wxTOKEN_DEFAULT", wxTOKEN_DEFAULT }, - { "wxTOKEN_INVALID", wxTOKEN_INVALID }, - { "wxTOKEN_RET_DELIMS", wxTOKEN_RET_DELIMS }, - { "wxTOKEN_RET_EMPTY", wxTOKEN_RET_EMPTY }, - { "wxTOKEN_RET_EMPTY_ALL", wxTOKEN_RET_EMPTY_ALL }, - { "wxTOKEN_STRTOK", wxTOKEN_STRTOK }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxUNIX", wxUNIX }, - { "wxUNKNOWN_PLATFORM", wxUNKNOWN_PLATFORM }, - { "wxWIN32S", wxWIN32S }, - { "wxWIN386", wxWIN386 }, - { "wxWIN95", wxWIN95 }, - { "wxWINDOWS", wxWINDOWS }, - { "wxWINDOWS_CE", wxWINDOWS_CE }, - { "wxWINDOWS_NT", wxWINDOWS_NT }, - { "wxWINDOWS_OS2", wxWINDOWS_OS2 }, - { "wxWINDOWS_POCKETPC", wxWINDOWS_POCKETPC }, - { "wxWINDOWS_SMARTPHONE", wxWINDOWS_SMARTPHONE }, - { "wxX11", wxX11 }, - { "wxXVIEW_X", wxXVIEW_X }, -#endif // !wxCHECK_VERSION(2,8,0) - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxbase() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxbase(size_t &count) -{ - static wxLuaBindString stringList[] = - { - { "wxFILE_SEP_DSK", NULL, wxT(":") }, - { "wxFILE_SEP_EXT", NULL, wxT(".") }, - { "wxFILE_SEP_PATH", NULL, wxLua_FILE_SEP_PATH }, - { "wxFILE_SEP_PATH_DOS", NULL, wxT("\\") }, - { "wxFILE_SEP_PATH_MAC", NULL, wxT(":") }, - { "wxFILE_SEP_PATH_UNIX", NULL, wxT("/") }, - { "wxFILE_SEP_PATH_VMS", NULL, wxT(".") }, - { "wxPATH_SEP", NULL, wxPATH_SEP }, - { "wxPATH_SEP_DOS", NULL, wxPATH_SEP_DOS }, - { "wxPATH_SEP_MAC", NULL, wxPATH_SEP_MAC }, - { "wxPATH_SEP_UNIX", NULL, wxPATH_SEP_UNIX }, - -#if wxLUA_USE_wxLog && wxUSE_LOG - { "wxTRACE_MemAlloc", NULL, wxTRACE_MemAlloc }, - { "wxTRACE_Messages", NULL, wxTRACE_Messages }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "wxTRACE_OleCalls", NULL, wxTRACE_OleCalls }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxLog && wxUSE_LOG) - -#if wxLUA_USE_wxLog && wxUSE_LOG - { "wxTRACE_RefCount", NULL, wxTRACE_RefCount }, - { "wxTRACE_ResAlloc", NULL, wxTRACE_ResAlloc }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - { "wxVERSION_STRING", NULL, wxVERSION_STRING }, - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxbase() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxbase(size_t &count) -{ - static wxLuaBindObject objectList[] = - { -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { "wxDefaultDateTime", &wxluatype_wxDateTime, &wxDefaultDateTime, NULL }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - - { "wxTheMimeTypesManager", &wxluatype_wxMimeTypesManager, NULL, (const void **) &wxTheMimeTypesManager }, - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxbase() is called to register global functions -// --------------------------------------------------------------------------- - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxCHECK_VERSION[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// bool wxCHECK_VERSION(int major, int minor, int release); // actually a define -static int LUACALL wxLua_function_wxCHECK_VERSION(lua_State *L) -{ - // int release - int release = (int)wxlua_getnumbertype(L, 3); - // int minor - int minor = (int)wxlua_getnumbertype(L, 2); - // int major - int major = (int)wxlua_getnumbertype(L, 1); - // call wxCHECK_VERSION - bool returns = (wxCHECK_VERSION(major, minor, release)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxCHECK_VERSION[1] = {{ wxLua_function_wxCHECK_VERSION, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxCHECK_VERSION }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxCHECK_VERSION_FULL[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// bool wxCHECK_VERSION_FULL(int major, int minor, int release, int subrel); // actually a define -static int LUACALL wxLua_function_wxCHECK_VERSION_FULL(lua_State *L) -{ - // int subrel - int subrel = (int)wxlua_getnumbertype(L, 4); - // int release - int release = (int)wxlua_getnumbertype(L, 3); - // int minor - int minor = (int)wxlua_getnumbertype(L, 2); - // int major - int major = (int)wxlua_getnumbertype(L, 1); - // call wxCHECK_VERSION_FULL - bool returns = (wxCHECK_VERSION_FULL(major, minor, release, subrel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxCHECK_VERSION_FULL[1] = {{ wxLua_function_wxCHECK_VERSION_FULL, WXLUAMETHOD_CFUNCTION, 4, 4, s_wxluatypeArray_wxLua_function_wxCHECK_VERSION_FULL }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxConcatFiles[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// bool wxConcatFiles(const wxString& file1, const wxString& file2,const wxString& file3); -static int LUACALL wxLua_function_wxConcatFiles(lua_State *L) -{ - // const wxString file3 - const wxString file3 = wxlua_getwxStringtype(L, 3); - // const wxString file2 - const wxString file2 = wxlua_getwxStringtype(L, 2); - // const wxString file1 - const wxString file1 = wxlua_getwxStringtype(L, 1); - // call wxConcatFiles - bool returns = (wxConcatFiles(file1, file2, file3)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxConcatFiles[1] = {{ wxLua_function_wxConcatFiles, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxConcatFiles }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxCopyFile[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -// bool wxCopyFile(const wxString& file1, const wxString& file2, bool overwrite = true); -static int LUACALL wxLua_function_wxCopyFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool overwrite = true - bool overwrite = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString file2 - const wxString file2 = wxlua_getwxStringtype(L, 2); - // const wxString file1 - const wxString file1 = wxlua_getwxStringtype(L, 1); - // call wxCopyFile - bool returns = (wxCopyFile(file1, file2, overwrite)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxCopyFile[1] = {{ wxLua_function_wxCopyFile, WXLUAMETHOD_CFUNCTION, 2, 3, s_wxluatypeArray_wxLua_function_wxCopyFile }}; - - -#if wxLUA_USE_wxObject -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxCreateDynamicObject[] = { &wxluatype_TSTRING, NULL }; -// wxObject* wxCreateDynamicObject(const wxString& className); -static int LUACALL wxLua_function_wxCreateDynamicObject(lua_State *L) -{ - // const wxString className - const wxString className = wxlua_getwxStringtype(L, 1); - // call wxCreateDynamicObject - wxObject* returns = (wxObject*)wxCreateDynamicObject(className); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxCreateDynamicObject[1] = {{ wxLua_function_wxCreateDynamicObject, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxCreateDynamicObject }}; - -#endif // wxLUA_USE_wxObject - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxDirExists[] = { &wxluatype_TSTRING, NULL }; -// bool wxDirExists(const wxString& dirname); -static int LUACALL wxLua_function_wxDirExists(lua_State *L) -{ - // const wxString dirname - const wxString dirname = wxlua_getwxStringtype(L, 1); - // call wxDirExists - bool returns = (wxDirExists(dirname)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxDirExists[1] = {{ wxLua_function_wxDirExists, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxDirExists }}; - - -#if !wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxDos2UnixFilename[] = { &wxluatype_TSTRING, NULL }; -// %override wxLua_function_wxDos2UnixFilename -// %function wxString wxDos2UnixFilename(const wxString& s) -static int LUACALL wxLua_function_wxDos2UnixFilename(lua_State *L) -{ - wxString str = lua2wx(lua_tostring(L, 1)); - if (!str.IsEmpty()) - { - // call wxDos2UnixFilename - wxDos2UnixFilename((wxChar*)str.GetData()); - // push the result string - wxlua_pushwxString(L, str); - - return 1; - } - return 0; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxDos2UnixFilename[1] = {{ wxLua_function_wxDos2UnixFilename, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxDos2UnixFilename }}; - -#endif // !wxCHECK_VERSION(2,9,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxEndsWithPathSeparator[] = { &wxluatype_TSTRING, NULL }; -// bool wxEndsWithPathSeparator(const wxString& pszFileName); -static int LUACALL wxLua_function_wxEndsWithPathSeparator(lua_State *L) -{ - // const wxString pszFileName - const wxString pszFileName = wxlua_getwxStringtype(L, 1); - // call wxEndsWithPathSeparator - bool returns = (wxEndsWithPathSeparator(pszFileName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxEndsWithPathSeparator[1] = {{ wxLua_function_wxEndsWithPathSeparator, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxEndsWithPathSeparator }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFileExists[] = { &wxluatype_TSTRING, NULL }; -// bool wxFileExists(const wxString& filename); -static int LUACALL wxLua_function_wxFileExists(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call wxFileExists - bool returns = (wxFileExists(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFileExists[1] = {{ wxLua_function_wxFileExists, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxFileExists }}; - - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFileModificationTime[] = { &wxluatype_TSTRING, NULL }; -// wxDateTime wxFileModificationTime(const wxString& filename); -static int LUACALL wxLua_function_wxFileModificationTime(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call wxFileModificationTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxFileModificationTime(filename)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFileModificationTime[1] = {{ wxLua_function_wxFileModificationTime, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxFileModificationTime }}; - -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFileSize[] = { &wxluatype_TSTRING, NULL }; -// %override wxLua_function_wxFileSize -// %function long wxFileSize(const wxString& fileName) -static int LUACALL wxLua_function_wxFileSize(lua_State *L) -{ - wxString str = lua2wx(lua_tostring(L, 1)); - if (!str.IsEmpty()) - { - wxStructStat statstr; - wxStat(str, &statstr); - // push the result string - lua_pushinteger(L, (int)statstr.st_size); - - return 1; - } - return 0; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFileSize[1] = {{ wxLua_function_wxFileSize, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxFileSize }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindFirstFile[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -// wxString wxFindFirstFile(const wxString& spec, int flags = 0); -static int LUACALL wxLua_function_wxFindFirstFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString spec - const wxString spec = wxlua_getwxStringtype(L, 1); - // call wxFindFirstFile - wxString returns = (wxFindFirstFile(spec, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindFirstFile[1] = {{ wxLua_function_wxFindFirstFile, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxFindFirstFile }}; - -// wxString wxFindNextFile(); -static int LUACALL wxLua_function_wxFindNextFile(lua_State *L) -{ - // call wxFindNextFile - wxString returns = (wxFindNextFile()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindNextFile[1] = {{ wxLua_function_wxFindNextFile, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxString wxGetCwd(); -static int LUACALL wxLua_function_wxGetCwd(lua_State *L) -{ - // call wxGetCwd - wxString returns = (wxGetCwd()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetCwd[1] = {{ wxLua_function_wxGetCwd, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetElapsedTime[] = { &wxluatype_TBOOLEAN, NULL }; -// %wxcompat_2_6 long wxGetElapsedTime(bool resetTimer = true); // deprecated in 2.8 use wxStopWatch -static int LUACALL wxLua_function_wxGetElapsedTime(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool resetTimer = true - bool resetTimer = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call wxGetElapsedTime - long returns = (wxGetElapsedTime(resetTimer)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetElapsedTime[1] = {{ wxLua_function_wxGetElapsedTime, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxGetElapsedTime }}; - -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -// wxString wxGetEmailAddress(); -static int LUACALL wxLua_function_wxGetEmailAddress(lua_State *L) -{ - // call wxGetEmailAddress - wxString returns = (wxGetEmailAddress()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetEmailAddress[1] = {{ wxLua_function_wxGetEmailAddress, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetEnv[] = { &wxluatype_TSTRING, NULL }; -// %override wxLua_function_wxGetEnv -// %function bool wxGetEnv(const wxString& var, wxString *value) -static int LUACALL wxLua_function_wxGetEnv(lua_State *L) -{ - wxString var = wxlua_getwxStringtype(L, 1); - wxString value; - // call wxGetEnv - bool returns = wxGetEnv(var, &value); - // push the result number - lua_pushboolean(L, returns); - wxlua_pushwxString(L, value); - // return the number of parameters - return 2; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetEnv[1] = {{ wxLua_function_wxGetEnv, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxGetEnv }}; - - -#if wxUSE_LONGLONG -// wxLongLong wxGetFreeMemory(); -static int LUACALL wxLua_function_wxGetFreeMemory(lua_State *L) -{ - // call wxGetFreeMemory - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(wxGetFreeMemory()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetFreeMemory[1] = {{ wxLua_function_wxGetFreeMemory, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxUSE_LONGLONG - -// wxString wxGetFullHostName(); -static int LUACALL wxLua_function_wxGetFullHostName(lua_State *L) -{ - // call wxGetFullHostName - wxString returns = (wxGetFullHostName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetFullHostName[1] = {{ wxLua_function_wxGetFullHostName, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxString wxGetHomeDir(); -static int LUACALL wxLua_function_wxGetHomeDir(lua_State *L) -{ - // call wxGetHomeDir - wxString returns = (wxGetHomeDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetHomeDir[1] = {{ wxLua_function_wxGetHomeDir, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxString wxGetHostName(); -static int LUACALL wxLua_function_wxGetHostName(lua_State *L) -{ - // call wxGetHostName - wxString returns = (wxGetHostName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetHostName[1] = {{ wxLua_function_wxGetHostName, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// long wxGetLocalTime(); -static int LUACALL wxLua_function_wxGetLocalTime(lua_State *L) -{ - // call wxGetLocalTime - long returns = (wxGetLocalTime()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetLocalTime[1] = {{ wxLua_function_wxGetLocalTime, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if wxUSE_LONGLONG -// wxLongLong wxGetLocalTimeMillis(); -static int LUACALL wxLua_function_wxGetLocalTimeMillis(lua_State *L) -{ - // call wxGetLocalTimeMillis - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(wxGetLocalTimeMillis()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetLocalTimeMillis[1] = {{ wxLua_function_wxGetLocalTimeMillis, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxUSE_LONGLONG - -#if wxUSE_INTL -// wxLocale* wxGetLocale(); -static int LUACALL wxLua_function_wxGetLocale(lua_State *L) -{ - // call wxGetLocale - wxLocale* returns = (wxLocale*)wxGetLocale(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocale); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetLocale[1] = {{ wxLua_function_wxGetLocale, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxUSE_INTL - -// wxString wxGetOSDirectory(); -static int LUACALL wxLua_function_wxGetOSDirectory(lua_State *L) -{ - // call wxGetOSDirectory - wxString returns = (wxGetOSDirectory()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetOSDirectory[1] = {{ wxLua_function_wxGetOSDirectory, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxString wxGetOsDescription(); -static int LUACALL wxLua_function_wxGetOsDescription(lua_State *L) -{ - // call wxGetOsDescription - wxString returns = (wxGetOsDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetOsDescription[1] = {{ wxLua_function_wxGetOsDescription, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// %override wxLua_function_wxGetOsVersion -// %function int wxGetOsVersion(int *major = NULL, int *minor = NULL) -static int LUACALL wxLua_function_wxGetOsVersion(lua_State *L) -{ - // int *minor = NULL - int minor= 0; - // int *major = NULL - int major = 0; - // call wxGetOsVersion - int returns = wxGetOsVersion(&major, &minor); - // push the result numbers - lua_pushinteger(L, returns); - lua_pushinteger(L, major); - lua_pushinteger(L, minor); - // return the number of parameters - return 3; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetOsVersion[1] = {{ wxLua_function_wxGetOsVersion, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTranslation2[] = { &wxluatype_TSTRING, NULL }; -// !%wxchkver_2_8 wxString wxGetTranslation(const wxString& sz); -static int LUACALL wxLua_function_wxGetTranslation2(lua_State *L) -{ - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 1); - // call wxGetTranslation - wxString returns = (wxGetTranslation(sz)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTranslation2[1] = {{ wxLua_function_wxGetTranslation2, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxGetTranslation2 }}; - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,9,0) && wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTranslation1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// !%wxchkver_2_9 && %wxchkver_2_8 wxString wxGetTranslation(const wxString& sz, const wxChar* domain=NULL); -static int LUACALL wxLua_function_wxGetTranslation1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxChar domain = NULL - wxString domain = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 1); - // call wxGetTranslation - wxString returns = (wxGetTranslation(sz, domain.IsEmpty() ? NULL : domain.c_str())); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTranslation1[1] = {{ wxLua_function_wxGetTranslation1, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxGetTranslation1 }}; - -#endif // (!wxCHECK_VERSION(2,9,0) && wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTranslation[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// %wxchkver_2_9 wxString wxGetTranslation(const wxString& sz, const wxString& domain = ""); -static int LUACALL wxLua_function_wxGetTranslation(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = "" - const wxString domain = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 1); - // call wxGetTranslation - wxString returns = (wxGetTranslation(sz, domain)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTranslation[1] = {{ wxLua_function_wxGetTranslation, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxGetTranslation }}; - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTranslationPlural2[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -// !%wxchkver_2_8 %rename wxGetTranslationPlural wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n); -static int LUACALL wxLua_function_wxGetTranslationPlural2(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 3); - // const wxString sz2 - const wxString sz2 = wxlua_getwxStringtype(L, 2); - // const wxString sz1 - const wxString sz1 = wxlua_getwxStringtype(L, 1); - // call wxGetTranslation - wxString returns = (wxGetTranslation(sz1, sz2, n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTranslationPlural2[1] = {{ wxLua_function_wxGetTranslationPlural2, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxGetTranslationPlural2 }}; - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if (!wxCHECK_VERSION(2,9,0) && wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTranslationPlural1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -// !%wxchkver_2_9 && %wxchkver_2_8 %rename wxGetTranslationPlural wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n, const wxChar* domain=NULL); -static int LUACALL wxLua_function_wxGetTranslationPlural1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxChar domain = NULL - wxString domain = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 3); - // const wxString sz2 - const wxString sz2 = wxlua_getwxStringtype(L, 2); - // const wxString sz1 - const wxString sz1 = wxlua_getwxStringtype(L, 1); - // call wxGetTranslation - wxString returns = (wxGetTranslation(sz1, sz2, n, domain.IsEmpty() ? NULL : domain.c_str())); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTranslationPlural1[1] = {{ wxLua_function_wxGetTranslationPlural1, WXLUAMETHOD_CFUNCTION, 3, 4, s_wxluatypeArray_wxLua_function_wxGetTranslationPlural1 }}; - -#endif // (!wxCHECK_VERSION(2,9,0) && wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTranslationPlural[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -// %wxchkver_2_9 %rename wxGetTranslationPlural wxString wxGetTranslation(const wxString& sz1, const wxString& sz2, size_t n, const wxString& domain = ""); -static int LUACALL wxLua_function_wxGetTranslationPlural(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = "" - const wxString domain = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 3); - // const wxString sz2 - const wxString sz2 = wxlua_getwxStringtype(L, 2); - // const wxString sz1 - const wxString sz1 = wxlua_getwxStringtype(L, 1); - // call wxGetTranslation - wxString returns = (wxGetTranslation(sz1, sz2, n, domain)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTranslationPlural[1] = {{ wxLua_function_wxGetTranslationPlural, WXLUAMETHOD_CFUNCTION, 3, 4, s_wxluatypeArray_wxLua_function_wxGetTranslationPlural }}; - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - -// long wxGetUTCTime(); -static int LUACALL wxLua_function_wxGetUTCTime(lua_State *L) -{ - // call wxGetUTCTime - long returns = (wxGetUTCTime()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetUTCTime[1] = {{ wxLua_function_wxGetUTCTime, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetUserHome[] = { &wxluatype_TSTRING, NULL }; -// wxString wxGetUserHome(const wxString& user = ""); -static int LUACALL wxLua_function_wxGetUserHome(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString user = "" - const wxString user = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call wxGetUserHome - wxString returns = (wxGetUserHome(user)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetUserHome[1] = {{ wxLua_function_wxGetUserHome, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxGetUserHome }}; - -// wxString wxGetUserId(); -static int LUACALL wxLua_function_wxGetUserId(lua_State *L) -{ - // call wxGetUserId - wxString returns = (wxGetUserId()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetUserId[1] = {{ wxLua_function_wxGetUserId, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxString wxGetUserName(); -static int LUACALL wxLua_function_wxGetUserName(lua_State *L) -{ - // call wxGetUserName - wxString returns = (wxGetUserName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetUserName[1] = {{ wxLua_function_wxGetUserName, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if wxUSE_ON_FATAL_EXCEPTION -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxHandleFatalExceptions[] = { &wxluatype_TBOOLEAN, NULL }; -// bool wxHandleFatalExceptions(bool doIt = true); -static int LUACALL wxLua_function_wxHandleFatalExceptions(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool doIt = true - bool doIt = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call wxHandleFatalExceptions - bool returns = (wxHandleFatalExceptions(doIt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxHandleFatalExceptions[1] = {{ wxLua_function_wxHandleFatalExceptions, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxHandleFatalExceptions }}; - -#endif // wxUSE_ON_FATAL_EXCEPTION - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxIsAbsolutePath[] = { &wxluatype_TSTRING, NULL }; -// bool wxIsAbsolutePath(const wxString& filename); -static int LUACALL wxLua_function_wxIsAbsolutePath(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call wxIsAbsolutePath - bool returns = (wxIsAbsolutePath(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsAbsolutePath[1] = {{ wxLua_function_wxIsAbsolutePath, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxIsAbsolutePath }}; - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxIsExecutable[] = { &wxluatype_TSTRING, NULL }; -// %wxchkver_2_8 bool wxIsExecutable(const wxString &path); -static int LUACALL wxLua_function_wxIsExecutable(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call wxIsExecutable - bool returns = (wxIsExecutable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsExecutable[1] = {{ wxLua_function_wxIsExecutable, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxIsExecutable }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxIsReadable[] = { &wxluatype_TSTRING, NULL }; -// %wxchkver_2_8 bool wxIsReadable(const wxString &path); -static int LUACALL wxLua_function_wxIsReadable(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call wxIsReadable - bool returns = (wxIsReadable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsReadable[1] = {{ wxLua_function_wxIsReadable, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxIsReadable }}; - -#endif // wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxIsWild[] = { &wxluatype_TSTRING, NULL }; -// bool wxIsWild(const wxString& pattern); -static int LUACALL wxLua_function_wxIsWild(lua_State *L) -{ - // const wxString pattern - const wxString pattern = wxlua_getwxStringtype(L, 1); - // call wxIsWild - bool returns = (wxIsWild(pattern)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsWild[1] = {{ wxLua_function_wxIsWild, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxIsWild }}; - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxIsWritable[] = { &wxluatype_TSTRING, NULL }; -// %wxchkver_2_8 bool wxIsWritable(const wxString &path); -static int LUACALL wxLua_function_wxIsWritable(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call wxIsWritable - bool returns = (wxIsWritable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsWritable[1] = {{ wxLua_function_wxIsWritable, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxIsWritable }}; - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxLog && wxUSE_LOG -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogDebug[] = { &wxluatype_TSTRING, NULL }; -// void wxLogDebug(const wxString& message); -static int LUACALL wxLua_function_wxLogDebug(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogDebug - wxLogDebug(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogDebug[1] = {{ wxLua_function_wxLogDebug, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogDebug }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogError[] = { &wxluatype_TSTRING, NULL }; -// void wxLogError(const wxString& message); -static int LUACALL wxLua_function_wxLogError(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogError - wxLogError(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogError[1] = {{ wxLua_function_wxLogError, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogError }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogFatalError[] = { &wxluatype_TSTRING, NULL }; -// void wxLogFatalError(const wxString& message); -static int LUACALL wxLua_function_wxLogFatalError(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogFatalError - wxLogFatalError(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogFatalError[1] = {{ wxLua_function_wxLogFatalError, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogFatalError }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogMessage[] = { &wxluatype_TSTRING, NULL }; -// void wxLogMessage(const wxString& message); -static int LUACALL wxLua_function_wxLogMessage(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogMessage - wxLogMessage(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogMessage[1] = {{ wxLua_function_wxLogMessage, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogMessage }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogSysError[] = { &wxluatype_TSTRING, NULL }; -// void wxLogSysError(const wxString& message); -static int LUACALL wxLua_function_wxLogSysError(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogSysError - wxLogSysError(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogSysError[1] = {{ wxLua_function_wxLogSysError, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogSysError }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogTrace[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// void wxLogTrace(const wxString& mask, const wxString& message); -static int LUACALL wxLua_function_wxLogTrace(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // const wxString mask - const wxString mask = wxlua_getwxStringtype(L, 1); - // call wxLogTrace - wxLogTrace(mask, message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogTrace[1] = {{ wxLua_function_wxLogTrace, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxLogTrace }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogVerbose[] = { &wxluatype_TSTRING, NULL }; -// void wxLogVerbose(const wxString& message); -static int LUACALL wxLua_function_wxLogVerbose(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogVerbose - wxLogVerbose(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogVerbose[1] = {{ wxLua_function_wxLogVerbose, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogVerbose }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogWarning[] = { &wxluatype_TSTRING, NULL }; -// void wxLogWarning(const wxString& message); -static int LUACALL wxLua_function_wxLogWarning(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxLogWarning - wxLogWarning(message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogWarning[1] = {{ wxLua_function_wxLogWarning, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxLogWarning }}; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxMatchWild[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -// bool wxMatchWild(const wxString& pattern, const wxString& text, bool dot_special); -static int LUACALL wxLua_function_wxMatchWild(lua_State *L) -{ - // bool dot_special - bool dot_special = wxlua_getbooleantype(L, 3); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // const wxString pattern - const wxString pattern = wxlua_getwxStringtype(L, 1); - // call wxMatchWild - bool returns = (wxMatchWild(pattern, text, dot_special)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxMatchWild[1] = {{ wxLua_function_wxMatchWild, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxMatchWild }}; - - -#if wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxMicroSleep[] = { &wxluatype_TINTEGER, NULL }; -// %wxchkver_2_6 void wxMicroSleep(unsigned long microseconds); -static int LUACALL wxLua_function_wxMicroSleep(lua_State *L) -{ - // unsigned long microseconds - unsigned long microseconds = (unsigned long)wxlua_getuintegertype(L, 1); - // call wxMicroSleep - wxMicroSleep(microseconds); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxMicroSleep[1] = {{ wxLua_function_wxMicroSleep, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxMicroSleep }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxMilliSleep[] = { &wxluatype_TINTEGER, NULL }; -// %wxchkver_2_6 void wxMilliSleep(unsigned long milliseconds); -static int LUACALL wxLua_function_wxMilliSleep(lua_State *L) -{ - // unsigned long milliseconds - unsigned long milliseconds = (unsigned long)wxlua_getuintegertype(L, 1); - // call wxMilliSleep - wxMilliSleep(milliseconds); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxMilliSleep[1] = {{ wxLua_function_wxMilliSleep, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxMilliSleep }}; - -#endif // wxCHECK_VERSION(2,6,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxMkdir[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -// bool wxMkdir(const wxString& dir, int perm = 0777); -static int LUACALL wxLua_function_wxMkdir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int perm = 0777 - int perm = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0777); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call wxMkdir - bool returns = (wxMkdir(dir, perm)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxMkdir[1] = {{ wxLua_function_wxMkdir, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxMkdir }}; - -// wxString wxNow(); -static int LUACALL wxLua_function_wxNow(lua_State *L) -{ - // call wxNow - wxString returns = (wxNow()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxNow[1] = {{ wxLua_function_wxNow, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxPathOnly[] = { &wxluatype_TSTRING, NULL }; -// wxString wxPathOnly(const wxString& path); -static int LUACALL wxLua_function_wxPathOnly(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call wxPathOnly - wxString returns = (wxPathOnly(path)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxPathOnly[1] = {{ wxLua_function_wxPathOnly, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxPathOnly }}; - - -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRealPath[] = { &wxluatype_TSTRING, NULL }; -// !%wxchkver_2_9 || %wxcompat_2_8 wxString wxRealPath(const wxString& path); -static int LUACALL wxLua_function_wxRealPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call wxRealPath - wxString returns = (wxRealPath(path)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRealPath[1] = {{ wxLua_function_wxRealPath, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxRealPath }}; - -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRemoveFile[] = { &wxluatype_TSTRING, NULL }; -// bool wxRemoveFile(const wxString& file); -static int LUACALL wxLua_function_wxRemoveFile(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call wxRemoveFile - bool returns = (wxRemoveFile(file)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRemoveFile[1] = {{ wxLua_function_wxRemoveFile, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxRemoveFile }}; - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRenameFile1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -// %wxchkver_2_8 bool wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite = true); -static int LUACALL wxLua_function_wxRenameFile1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool overwrite = true - bool overwrite = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString file2 - const wxString file2 = wxlua_getwxStringtype(L, 2); - // const wxString file1 - const wxString file1 = wxlua_getwxStringtype(L, 1); - // call wxRenameFile - bool returns = (wxRenameFile(file1, file2, overwrite)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRenameFile1[1] = {{ wxLua_function_wxRenameFile1, WXLUAMETHOD_CFUNCTION, 2, 3, s_wxluatypeArray_wxLua_function_wxRenameFile1 }}; - -#endif // wxCHECK_VERSION(2,8,0) - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRenameFile[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// !%wxchkver_2_8 bool wxRenameFile(const wxString& file1, const wxString& file2); -static int LUACALL wxLua_function_wxRenameFile(lua_State *L) -{ - // const wxString file2 - const wxString file2 = wxlua_getwxStringtype(L, 2); - // const wxString file1 - const wxString file1 = wxlua_getwxStringtype(L, 1); - // call wxRenameFile - bool returns = (wxRenameFile(file1, file2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRenameFile[1] = {{ wxLua_function_wxRenameFile, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxRenameFile }}; - -#endif // !wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRmdir[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -// bool wxRmdir(const wxString& dir, int flags=0); -static int LUACALL wxLua_function_wxRmdir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call wxRmdir - bool returns = (wxRmdir(dir, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRmdir[1] = {{ wxLua_function_wxRmdir, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxRmdir }}; - - -#if wxLUA_USE_wxLog && wxUSE_LOG -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSafeShowMessage[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// void wxSafeShowMessage(const wxString& title, const wxString& text); -static int LUACALL wxLua_function_wxSafeShowMessage(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 1); - // call wxSafeShowMessage - wxSafeShowMessage(title, text); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSafeShowMessage[1] = {{ wxLua_function_wxSafeShowMessage, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxSafeShowMessage }}; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSetEnv[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// bool wxSetEnv(const wxString& var, const wxString& value); -static int LUACALL wxLua_function_wxSetEnv(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // const wxString var - const wxString var = wxlua_getwxStringtype(L, 1); - // call wxSetEnv - bool returns = (wxSetEnv(var, value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSetEnv[1] = {{ wxLua_function_wxSetEnv, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxSetEnv }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSetWorkingDirectory[] = { &wxluatype_TSTRING, NULL }; -// bool wxSetWorkingDirectory(const wxString& dir); -static int LUACALL wxLua_function_wxSetWorkingDirectory(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call wxSetWorkingDirectory - bool returns = (wxSetWorkingDirectory(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSetWorkingDirectory[1] = {{ wxLua_function_wxSetWorkingDirectory, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxSetWorkingDirectory }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSleep[] = { &wxluatype_TNUMBER, NULL }; -// void wxSleep(int secs); -static int LUACALL wxLua_function_wxSleep(lua_State *L) -{ - // int secs - int secs = (int)wxlua_getnumbertype(L, 1); - // call wxSleep - wxSleep(secs); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSleep[1] = {{ wxLua_function_wxSleep, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxSleep }}; - - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) -// %wxcompat_2_6 void wxStartTimer(); // deprecated in 2.8 use wxStopWatch -static int LUACALL wxLua_function_wxStartTimer(lua_State *L) -{ - // call wxStartTimer - wxStartTimer(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxStartTimer[1] = {{ wxLua_function_wxStartTimer, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxLog && wxUSE_LOG -// unsigned long wxSysErrorCode(); -static int LUACALL wxLua_function_wxSysErrorCode(lua_State *L) -{ - // call wxSysErrorCode - unsigned long returns = (wxSysErrorCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSysErrorCode[1] = {{ wxLua_function_wxSysErrorCode, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSysErrorMsg[] = { &wxluatype_TINTEGER, NULL }; -// wxString wxSysErrorMsg(unsigned long nErrCode = 0); -static int LUACALL wxLua_function_wxSysErrorMsg(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned long nErrCode = 0 - unsigned long nErrCode = (argCount >= 1 ? (unsigned long)wxlua_getuintegertype(L, 1) : 0); - // call wxSysErrorMsg - wxString returns = (wxSysErrorMsg(nErrCode)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSysErrorMsg[1] = {{ wxLua_function_wxSysErrorMsg, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxSysErrorMsg }}; - -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if !wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxUnix2DosFilename[] = { &wxluatype_TSTRING, NULL }; -// %override wxLua_function_wxUnix2DosFilename -// %function wxString wxUnix2DosFilename(const wxString& s) -static int LUACALL wxLua_function_wxUnix2DosFilename(lua_State *L) -{ - wxString str = lua2wx(lua_tostring(L, 1)); - if (!str.IsEmpty()) - { - // call wxUnix2DosFilename - wxUnix2DosFilename((wxChar*)str.GetData()); - // push the result string - wxlua_pushwxString(L, str); - - return 1; - } - return 0; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxUnix2DosFilename[1] = {{ wxLua_function_wxUnix2DosFilename, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxUnix2DosFilename }}; - -#endif // !wxCHECK_VERSION(2,9,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxUnsetEnv[] = { &wxluatype_TSTRING, NULL }; -// bool wxUnsetEnv(const wxString& var); -static int LUACALL wxLua_function_wxUnsetEnv(lua_State *L) -{ - // const wxString var - const wxString var = wxlua_getwxStringtype(L, 1); - // call wxUnsetEnv - bool returns = (wxUnsetEnv(var)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxUnsetEnv[1] = {{ wxLua_function_wxUnsetEnv, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxUnsetEnv }}; - - -#if !wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxUsleep[] = { &wxluatype_TINTEGER, NULL }; -// !%wxchkver_2_6 void wxUsleep(unsigned long milliseconds); -static int LUACALL wxLua_function_wxUsleep(lua_State *L) -{ - // unsigned long milliseconds - unsigned long milliseconds = (unsigned long)wxlua_getuintegertype(L, 1); - // call wxUsleep - wxUsleep(milliseconds); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxUsleep[1] = {{ wxLua_function_wxUsleep, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxUsleep }}; - -#endif // !wxCHECK_VERSION(2,6,0) - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxbase() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxbase(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - { "wxCHECK_VERSION", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxCHECK_VERSION, 1, NULL }, - { "wxCHECK_VERSION_FULL", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxCHECK_VERSION_FULL, 1, NULL }, - { "wxConcatFiles", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxConcatFiles, 1, NULL }, - { "wxCopyFile", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxCopyFile, 1, NULL }, - -#if wxLUA_USE_wxObject - { "wxCreateDynamicObject", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxCreateDynamicObject, 1, NULL }, -#endif // wxLUA_USE_wxObject - - { "wxDirExists", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxDirExists, 1, NULL }, - -#if !wxCHECK_VERSION(2,9,0) - { "wxDos2UnixFilename", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxDos2UnixFilename, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,0) - - { "wxEndsWithPathSeparator", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxEndsWithPathSeparator, 1, NULL }, - { "wxFileExists", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFileExists, 1, NULL }, - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { "wxFileModificationTime", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFileModificationTime, 1, NULL }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - - { "wxFileSize", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFileSize, 1, NULL }, - { "wxFindFirstFile", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindFirstFile, 1, NULL }, - { "wxFindNextFile", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindNextFile, 1, NULL }, - { "wxGetCwd", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetCwd, 1, NULL }, - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxGetElapsedTime", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetElapsedTime, 1, NULL }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - - { "wxGetEmailAddress", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetEmailAddress, 1, NULL }, - { "wxGetEnv", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetEnv, 1, NULL }, - -#if wxUSE_LONGLONG - { "wxGetFreeMemory", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetFreeMemory, 1, NULL }, -#endif // wxUSE_LONGLONG - - { "wxGetFullHostName", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetFullHostName, 1, NULL }, - { "wxGetHomeDir", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetHomeDir, 1, NULL }, - { "wxGetHostName", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetHostName, 1, NULL }, - { "wxGetLocalTime", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetLocalTime, 1, NULL }, - -#if wxUSE_LONGLONG - { "wxGetLocalTimeMillis", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetLocalTimeMillis, 1, NULL }, -#endif // wxUSE_LONGLONG - -#if wxUSE_INTL - { "wxGetLocale", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetLocale, 1, NULL }, -#endif // wxUSE_INTL - - { "wxGetOSDirectory", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetOSDirectory, 1, NULL }, - { "wxGetOsDescription", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetOsDescription, 1, NULL }, - { "wxGetOsVersion", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetOsVersion, 1, NULL }, - -#if (!wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "wxGetTranslation", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTranslation2, 1, NULL }, -#elif (!wxCHECK_VERSION(2,9,0) && wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "wxGetTranslation", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTranslation1, 1, NULL }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { "wxGetTranslation", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTranslation, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) -#if (!wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "wxGetTranslationPlural", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTranslationPlural2, 1, NULL }, -#elif (!wxCHECK_VERSION(2,9,0) && wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL) - { "wxGetTranslationPlural", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTranslationPlural1, 1, NULL }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { "wxGetTranslationPlural", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTranslationPlural, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_INTL) - { "wxGetUTCTime", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetUTCTime, 1, NULL }, - { "wxGetUserHome", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetUserHome, 1, NULL }, - { "wxGetUserId", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetUserId, 1, NULL }, - { "wxGetUserName", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetUserName, 1, NULL }, - -#if wxUSE_ON_FATAL_EXCEPTION - { "wxHandleFatalExceptions", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxHandleFatalExceptions, 1, NULL }, -#endif // wxUSE_ON_FATAL_EXCEPTION - - { "wxIsAbsolutePath", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsAbsolutePath, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "wxIsExecutable", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsExecutable, 1, NULL }, - { "wxIsReadable", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsReadable, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "wxIsWild", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsWild, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "wxIsWritable", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsWritable, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxLog && wxUSE_LOG - { "wxLogDebug", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogDebug, 1, NULL }, - { "wxLogError", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogError, 1, NULL }, - { "wxLogFatalError", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogFatalError, 1, NULL }, - { "wxLogMessage", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogMessage, 1, NULL }, - { "wxLogSysError", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogSysError, 1, NULL }, - { "wxLogTrace", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogTrace, 1, NULL }, - { "wxLogVerbose", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogVerbose, 1, NULL }, - { "wxLogWarning", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogWarning, 1, NULL }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - { "wxMatchWild", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxMatchWild, 1, NULL }, - -#if wxCHECK_VERSION(2,6,0) - { "wxMicroSleep", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxMicroSleep, 1, NULL }, - { "wxMilliSleep", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxMilliSleep, 1, NULL }, -#endif // wxCHECK_VERSION(2,6,0) - - { "wxMkdir", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxMkdir, 1, NULL }, - { "wxNow", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxNow, 1, NULL }, - { "wxPathOnly", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxPathOnly, 1, NULL }, - -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - { "wxRealPath", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRealPath, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - - { "wxRemoveFile", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRemoveFile, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "wxRenameFile", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRenameFile1, 1, NULL }, -#elif !wxCHECK_VERSION(2,8,0) - { "wxRenameFile", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRenameFile, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - { "wxRmdir", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRmdir, 1, NULL }, - -#if wxLUA_USE_wxLog && wxUSE_LOG - { "wxSafeShowMessage", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSafeShowMessage, 1, NULL }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - - { "wxSetEnv", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSetEnv, 1, NULL }, - { "wxSetWorkingDirectory", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSetWorkingDirectory, 1, NULL }, - { "wxSleep", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSleep, 1, NULL }, - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxStartTimer", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxStartTimer, 1, NULL }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxLog && wxUSE_LOG - { "wxSysErrorCode", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSysErrorCode, 1, NULL }, - { "wxSysErrorMsg", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSysErrorMsg, 1, NULL }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if !wxCHECK_VERSION(2,9,0) - { "wxUnix2DosFilename", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxUnix2DosFilename, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,0) - - { "wxUnsetEnv", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxUnsetEnv, 1, NULL }, - -#if !wxCHECK_VERSION(2,6,0) - { "wxUsleep", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxUsleep, 1, NULL }, -#endif // !wxCHECK_VERSION(2,6,0) - - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxbase() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxArchiveFSHandler = "wxArchiveFSHandler"; -static const char* wxluaclassname_wxArrayDouble = "wxArrayDouble"; -static const char* wxluaclassname_wxArrayInt = "wxArrayInt"; -static const char* wxluaclassname_wxArrayString = "wxArrayString"; -static const char* wxluaclassname_wxClassInfo = "wxClassInfo"; -static const char* wxluaclassname_wxClientData = "wxClientData"; -static const char* wxluaclassname_wxClientDataContainer = "wxClientDataContainer"; -static const char* wxluaclassname_wxConfig = "wxConfig"; -static const char* wxluaclassname_wxConfigBase = "wxConfigBase"; -static const char* wxluaclassname_wxConfigPathChanger = "wxConfigPathChanger"; -static const char* wxluaclassname_wxCriticalSection = "wxCriticalSection"; -static const char* wxluaclassname_wxCriticalSectionLocker = "wxCriticalSectionLocker"; -static const char* wxluaclassname_wxDataInputStream = "wxDataInputStream"; -static const char* wxluaclassname_wxDataOutputStream = "wxDataOutputStream"; -static const char* wxluaclassname_wxDateSpan = "wxDateSpan"; -static const char* wxluaclassname_wxDateTime = "wxDateTime"; -static const char* wxluaclassname_wxDateTimeArray = "wxDateTimeArray"; -static const char* wxluaclassname_wxDateTimeHolidayAuthority = "wxDateTimeHolidayAuthority"; -static const char* wxluaclassname_wxDateTimeWorkDays = "wxDateTimeWorkDays"; -static const char* wxluaclassname_wxDateTime_TimeZone = "wxDateTime_TimeZone"; -static const char* wxluaclassname_wxDir = "wxDir"; -static const char* wxluaclassname_wxDynamicLibrary = "wxDynamicLibrary"; -static const char* wxluaclassname_wxDynamicLibraryDetails = "wxDynamicLibraryDetails"; -static const char* wxluaclassname_wxDynamicLibraryDetailsArray = "wxDynamicLibraryDetailsArray"; -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxEventFilter = "wxEventFilter"; -static const char* wxluaclassname_wxEventLoopBase = "wxEventLoopBase"; -static const char* wxluaclassname_wxEvtHandler = "wxEvtHandler"; -static const char* wxluaclassname_wxFSFile = "wxFSFile"; -static const char* wxluaclassname_wxFile = "wxFile"; -static const char* wxluaclassname_wxFileConfig = "wxFileConfig"; -static const char* wxluaclassname_wxFileInputStream = "wxFileInputStream"; -static const char* wxluaclassname_wxFileName = "wxFileName"; -static const char* wxluaclassname_wxFileOutputStream = "wxFileOutputStream"; -static const char* wxluaclassname_wxFileSystem = "wxFileSystem"; -static const char* wxluaclassname_wxFileSystemHandler = "wxFileSystemHandler"; -static const char* wxluaclassname_wxFileSystemWatcher = "wxFileSystemWatcher"; -static const char* wxluaclassname_wxFileSystemWatcherEvent = "wxFileSystemWatcherEvent"; -static const char* wxluaclassname_wxFileTranslationsLoader = "wxFileTranslationsLoader"; -static const char* wxluaclassname_wxFileType = "wxFileType"; -static const char* wxluaclassname_wxFileTypeInfo = "wxFileTypeInfo"; -static const char* wxluaclassname_wxFileType_MessageParameters = "wxFileType_MessageParameters"; -static const char* wxluaclassname_wxFilterFSHandler = "wxFilterFSHandler"; -static const char* wxluaclassname_wxIconLocation = "wxIconLocation"; -static const char* wxluaclassname_wxInputStream = "wxInputStream"; -static const char* wxluaclassname_wxInternetFSHandler = "wxInternetFSHandler"; -static const char* wxluaclassname_wxLanguageInfo = "wxLanguageInfo"; -static const char* wxluaclassname_wxList = "wxList"; -static const char* wxluaclassname_wxLocalFSHandler = "wxLocalFSHandler"; -static const char* wxluaclassname_wxLocale = "wxLocale"; -static const char* wxluaclassname_wxLog = "wxLog"; -static const char* wxluaclassname_wxLogBuffer = "wxLogBuffer"; -static const char* wxluaclassname_wxLogChain = "wxLogChain"; -static const char* wxluaclassname_wxLogNull = "wxLogNull"; -static const char* wxluaclassname_wxLogPassThrough = "wxLogPassThrough"; -static const char* wxluaclassname_wxLongLong = "wxLongLong"; -static const char* wxluaclassname_wxMemoryBuffer = "wxMemoryBuffer"; -static const char* wxluaclassname_wxMemoryConfig = "wxMemoryConfig"; -static const char* wxluaclassname_wxMemoryInputStream = "wxMemoryInputStream"; -static const char* wxluaclassname_wxMemoryOutputStream = "wxMemoryOutputStream"; -static const char* wxluaclassname_wxMimeTypesManager = "wxMimeTypesManager"; -static const char* wxluaclassname_wxMsgCatalog = "wxMsgCatalog"; -static const char* wxluaclassname_wxNode = "wxNode"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxObjectRefData = "wxObjectRefData"; -static const char* wxluaclassname_wxOutputStream = "wxOutputStream"; -static const char* wxluaclassname_wxPathList = "wxPathList"; -static const char* wxluaclassname_wxPlatformInfo = "wxPlatformInfo"; -static const char* wxluaclassname_wxRegEx = "wxRegEx"; -static const char* wxluaclassname_wxResourceTranslationsLoader = "wxResourceTranslationsLoader"; -static const char* wxluaclassname_wxSingleInstanceChecker = "wxSingleInstanceChecker"; -static const char* wxluaclassname_wxSortedArrayString = "wxSortedArrayString"; -static const char* wxluaclassname_wxStandardPaths = "wxStandardPaths"; -static const char* wxluaclassname_wxStopWatch = "wxStopWatch"; -static const char* wxluaclassname_wxStreamBase = "wxStreamBase"; -static const char* wxluaclassname_wxString = "wxString"; -static const char* wxluaclassname_wxStringClientData = "wxStringClientData"; -static const char* wxluaclassname_wxStringInputStream = "wxStringInputStream"; -static const char* wxluaclassname_wxStringOutputStream = "wxStringOutputStream"; -static const char* wxluaclassname_wxStringTokenizer = "wxStringTokenizer"; -static const char* wxluaclassname_wxString_const_iterator = "wxString_const_iterator"; -static const char* wxluaclassname_wxString_iterator = "wxString_iterator"; -static const char* wxluaclassname_wxSystemOptions = "wxSystemOptions"; -static const char* wxluaclassname_wxTempFile = "wxTempFile"; -static const char* wxluaclassname_wxTextInputStream = "wxTextInputStream"; -static const char* wxluaclassname_wxTextOutputStream = "wxTextOutputStream"; -static const char* wxluaclassname_wxTimeSpan = "wxTimeSpan"; -static const char* wxluaclassname_wxTranslations = "wxTranslations"; -static const char* wxluaclassname_wxTranslationsLoader = "wxTranslationsLoader"; -static const char* wxluaclassname_wxULongLong = "wxULongLong"; -static const char* wxluaclassname_wxUniChar = "wxUniChar"; -static const char* wxluaclassname_wxVariant = "wxVariant"; -static const char* wxluaclassname_wxVariantData = "wxVariantData"; -static const char* wxluaclassname_wxVariantList = "wxVariantList"; -static const char* wxluaclassname_wxVersionInfo = "wxVersionInfo"; - -static const char* wxluabaseclassnames_wxArchiveFSHandler[] = { wxluaclassname_wxFileSystemHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxArchiveFSHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxConfig[] = { wxluaclassname_wxConfigBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxConfig[] = { NULL }; -static const char* wxluabaseclassnames_wxConfigBase[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxConfigBase[] = { NULL }; -static const char* wxluabaseclassnames_wxDateTimeWorkDays[] = { wxluaclassname_wxDateTimeHolidayAuthority, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDateTimeWorkDays[] = { NULL }; -static const char* wxluabaseclassnames_wxEvent[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxEvtHandler[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEvtHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxFSFile[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFSFile[] = { NULL }; -static const char* wxluabaseclassnames_wxFileConfig[] = { wxluaclassname_wxConfigBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileConfig[] = { NULL }; -static const char* wxluabaseclassnames_wxFileInputStream[] = { wxluaclassname_wxInputStream, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileInputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxFileOutputStream[] = { wxluaclassname_wxOutputStream, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileOutputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxFileSystem[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileSystem[] = { NULL }; -static const char* wxluabaseclassnames_wxFileSystemHandler[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileSystemHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxFileSystemWatcher[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileSystemWatcher[] = { NULL }; -static const char* wxluabaseclassnames_wxFileSystemWatcherEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileSystemWatcherEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxFileTranslationsLoader[] = { wxluaclassname_wxTranslationsLoader, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileTranslationsLoader[] = { NULL }; -static const char* wxluabaseclassnames_wxFilterFSHandler[] = { wxluaclassname_wxFileSystemHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFilterFSHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxInputStream[] = { wxluaclassname_wxStreamBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxInputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxInternetFSHandler[] = { wxluaclassname_wxFileSystemHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxInternetFSHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxLocalFSHandler[] = { wxluaclassname_wxFileSystemHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLocalFSHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxLogBuffer[] = { wxluaclassname_wxLog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLogBuffer[] = { NULL }; -static const char* wxluabaseclassnames_wxLogChain[] = { wxluaclassname_wxLog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLogChain[] = { NULL }; -static const char* wxluabaseclassnames_wxLogPassThrough[] = { wxluaclassname_wxLogChain, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLogPassThrough[] = { NULL }; -static const char* wxluabaseclassnames_wxMemoryConfig[] = { wxluaclassname_wxFileConfig, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMemoryConfig[] = { NULL }; -static const char* wxluabaseclassnames_wxMemoryInputStream[] = { wxluaclassname_wxInputStream, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMemoryInputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxMemoryOutputStream[] = { wxluaclassname_wxOutputStream, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMemoryOutputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxOutputStream[] = { wxluaclassname_wxStreamBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxOutputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxPathList[] = { wxluaclassname_wxArrayString, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPathList[] = { NULL }; -static const char* wxluabaseclassnames_wxResourceTranslationsLoader[] = { wxluaclassname_wxTranslationsLoader, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxResourceTranslationsLoader[] = { NULL }; -static const char* wxluabaseclassnames_wxSortedArrayString[] = { wxluaclassname_wxArrayString, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSortedArrayString[] = { NULL }; -static const char* wxluabaseclassnames_wxStringClientData[] = { wxluaclassname_wxClientData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStringClientData[] = { NULL }; -static const char* wxluabaseclassnames_wxStringInputStream[] = { wxluaclassname_wxInputStream, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStringInputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxStringOutputStream[] = { wxluaclassname_wxOutputStream, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStringOutputStream[] = { NULL }; -static const char* wxluabaseclassnames_wxStringTokenizer[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStringTokenizer[] = { NULL }; -static const char* wxluabaseclassnames_wxSystemOptions[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSystemOptions[] = { NULL }; -static const char* wxluabaseclassnames_wxVariant[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxVariant[] = { NULL }; -static const char* wxluabaseclassnames_wxVariantData[] = { wxluaclassname_wxObjectRefData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxVariantData[] = { NULL }; -static const char* wxluabaseclassnames_wxVariantList[] = { wxluaclassname_wxList, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxVariantList[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - extern wxLuaBindMethod wxResourceTranslationsLoader_methods[]; - extern int wxResourceTranslationsLoader_methodCount; - extern void wxLua_wxResourceTranslationsLoader_delete_function(void** p); -#endif // (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - extern wxLuaBindMethod wxFileTranslationsLoader_methods[]; - extern int wxFileTranslationsLoader_methodCount; - extern void wxLua_wxFileTranslationsLoader_delete_function(void** p); - extern wxLuaBindMethod wxMsgCatalog_methods[]; - extern int wxMsgCatalog_methodCount; - extern void wxLua_wxMsgCatalog_delete_function(void** p); - extern wxLuaBindMethod wxTranslations_methods[]; - extern int wxTranslations_methodCount; - extern void wxLua_wxTranslations_delete_function(void** p); - extern wxLuaBindMethod wxTranslationsLoader_methods[]; - extern int wxTranslationsLoader_methodCount; - extern void wxLua_wxTranslationsLoader_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - extern wxLuaBindMethod wxInternetFSHandler_methods[]; - extern int wxInternetFSHandler_methodCount; - extern void wxLua_wxInternetFSHandler_delete_function(void** p); -#endif // (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - extern wxLuaBindMethod wxArchiveFSHandler_methods[]; - extern int wxArchiveFSHandler_methodCount; - extern void wxLua_wxArchiveFSHandler_delete_function(void** p); - extern wxLuaBindMethod wxFSFile_methods[]; - extern int wxFSFile_methodCount; - extern void wxLua_wxFSFile_delete_function(void** p); - extern wxLuaBindMethod wxFileSystem_methods[]; - extern int wxFileSystem_methodCount; - extern void wxLua_wxFileSystem_delete_function(void** p); - extern wxLuaBindMethod wxFileSystemHandler_methods[]; - extern int wxFileSystemHandler_methodCount; - extern void wxLua_wxFileSystemHandler_delete_function(void** p); - extern wxLuaBindMethod wxFilterFSHandler_methods[]; - extern int wxFilterFSHandler_methodCount; - extern void wxLua_wxFilterFSHandler_delete_function(void** p); - extern wxLuaBindMethod wxLocalFSHandler_methods[]; - extern int wxLocalFSHandler_methodCount; - extern void wxLua_wxLocalFSHandler_delete_function(void** p); -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -extern wxLuaBindMethod wxClientData_methods[]; -extern int wxClientData_methodCount; -extern void wxLua_wxClientData_delete_function(void** p); -extern wxLuaBindMethod wxClientDataContainer_methods[]; -extern int wxClientDataContainer_methodCount; -extern void wxLua_wxClientDataContainer_delete_function(void** p); -extern wxLuaBindMethod wxDynamicLibrary_methods[]; -extern int wxDynamicLibrary_methodCount; -extern void wxLua_wxDynamicLibrary_delete_function(void** p); -extern wxLuaBindMethod wxDynamicLibraryDetails_methods[]; -extern int wxDynamicLibraryDetails_methodCount; -extern void wxLua_wxDynamicLibraryDetails_delete_function(void** p); -extern wxLuaBindMethod wxDynamicLibraryDetailsArray_methods[]; -extern int wxDynamicLibraryDetailsArray_methodCount; -extern void wxLua_wxDynamicLibraryDetailsArray_delete_function(void** p); -extern wxLuaBindMethod wxEvent_methods[]; -extern int wxEvent_methodCount; -extern void wxLua_wxEvent_delete_function(void** p); -extern wxLuaBindMethod wxEventFilter_methods[]; -extern int wxEventFilter_methodCount; -extern void wxLua_wxEventFilter_delete_function(void** p); -extern wxLuaBindMethod wxEventLoopBase_methods[]; -extern int wxEventLoopBase_methodCount; -extern void wxLua_wxEventLoopBase_delete_function(void** p); -extern wxLuaBindMethod wxEvtHandler_methods[]; -extern int wxEvtHandler_methodCount; -extern void wxLua_wxEvtHandler_delete_function(void** p); -extern wxLuaBindMethod wxFileType_methods[]; -extern int wxFileType_methodCount; -extern void wxLua_wxFileType_delete_function(void** p); -extern wxLuaBindMethod wxFileType_MessageParameters_methods[]; -extern int wxFileType_MessageParameters_methodCount; -extern void wxLua_wxFileType_MessageParameters_delete_function(void** p); -extern wxLuaBindMethod wxFileTypeInfo_methods[]; -extern int wxFileTypeInfo_methodCount; -extern void wxLua_wxFileTypeInfo_delete_function(void** p); -extern wxLuaBindMethod wxIconLocation_methods[]; -extern int wxIconLocation_methodCount; -extern void wxLua_wxIconLocation_delete_function(void** p); -extern wxLuaBindMethod wxMimeTypesManager_methods[]; -extern int wxMimeTypesManager_methodCount; -extern void wxLua_wxMimeTypesManager_delete_function(void** p); -extern wxLuaBindMethod wxPathList_methods[]; -extern int wxPathList_methodCount; -extern void wxLua_wxPathList_delete_function(void** p); -extern wxLuaBindMethod wxPlatformInfo_methods[]; -extern int wxPlatformInfo_methodCount; -extern void wxLua_wxPlatformInfo_delete_function(void** p); -extern wxLuaBindMethod wxString_methods[]; -extern int wxString_methodCount; -extern void wxLua_wxString_delete_function(void** p); -extern wxLuaBindMethod wxStringClientData_methods[]; -extern int wxStringClientData_methodCount; -extern void wxLua_wxStringClientData_delete_function(void** p); -extern wxLuaBindMethod wxStringTokenizer_methods[]; -extern int wxStringTokenizer_methodCount; -extern void wxLua_wxStringTokenizer_delete_function(void** p); -extern wxLuaBindMethod wxUniChar_methods[]; -extern int wxUniChar_methodCount; -extern void wxLua_wxUniChar_delete_function(void** p); - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - extern wxLuaBindMethod wxStandardPaths_methods[]; - extern int wxStandardPaths_methodCount; - extern wxLuaBindNumber wxStandardPaths_enums[]; - extern int wxStandardPaths_enumCount; - extern void wxLua_wxStandardPaths_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - -#if wxCHECK_VERSION(2,9,0) - extern wxLuaBindMethod wxString_const_iterator_methods[]; - extern int wxString_const_iterator_methodCount; - extern void wxLua_wxString_const_iterator_delete_function(void** p); - extern wxLuaBindMethod wxString_iterator_methods[]; - extern int wxString_iterator_methodCount; - extern void wxLua_wxString_iterator_delete_function(void** p); -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(2,9,2) - extern wxLuaBindMethod wxVersionInfo_methods[]; - extern int wxVersionInfo_methodCount; - extern void wxLua_wxVersionInfo_delete_function(void** p); -#endif // wxCHECK_VERSION(2,9,2) - -#if wxLUA_USE_wxArrayDouble - extern wxLuaBindMethod wxArrayDouble_methods[]; - extern int wxArrayDouble_methodCount; - extern void wxLua_wxArrayDouble_delete_function(void** p); -#endif // wxLUA_USE_wxArrayDouble - -#if wxLUA_USE_wxArrayInt - extern wxLuaBindMethod wxArrayInt_methods[]; - extern int wxArrayInt_methodCount; - extern void wxLua_wxArrayInt_delete_function(void** p); -#endif // wxLUA_USE_wxArrayInt - -#if wxLUA_USE_wxArrayString - extern wxLuaBindMethod wxArrayString_methods[]; - extern int wxArrayString_methodCount; - extern void wxLua_wxArrayString_delete_function(void** p); - extern wxLuaBindMethod wxSortedArrayString_methods[]; - extern int wxSortedArrayString_methodCount; - extern void wxLua_wxSortedArrayString_delete_function(void** p); -#endif // wxLUA_USE_wxArrayString - -#if wxLUA_USE_wxClassInfo - extern wxLuaBindMethod wxClassInfo_methods[]; - extern int wxClassInfo_methodCount; - extern void wxLua_wxClassInfo_delete_function(void** p); -#endif // wxLUA_USE_wxClassInfo - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - extern wxLuaBindMethod wxConfig_methods[]; - extern int wxConfig_methodCount; - extern void wxLua_wxConfig_delete_function(void** p); - extern wxLuaBindMethod wxConfigBase_methods[]; - extern int wxConfigBase_methodCount; - extern wxLuaBindNumber wxConfigBase_enums[]; - extern int wxConfigBase_enumCount; - extern void wxLua_wxConfigBase_delete_function(void** p); - extern wxLuaBindMethod wxConfigPathChanger_methods[]; - extern int wxConfigPathChanger_methodCount; - extern void wxLua_wxConfigPathChanger_delete_function(void** p); - extern wxLuaBindMethod wxFileConfig_methods[]; - extern int wxFileConfig_methodCount; - extern void wxLua_wxFileConfig_delete_function(void** p); - extern wxLuaBindMethod wxMemoryConfig_methods[]; - extern int wxMemoryConfig_methodCount; - extern void wxLua_wxMemoryConfig_delete_function(void** p); -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if wxLUA_USE_wxCriticalSection && wxUSE_THREADS - extern wxLuaBindMethod wxCriticalSection_methods[]; - extern int wxCriticalSection_methodCount; - extern void wxLua_wxCriticalSection_delete_function(void** p); -#endif // wxLUA_USE_wxCriticalSection && wxUSE_THREADS - -#if wxLUA_USE_wxCriticalSectionLocker - extern wxLuaBindMethod wxCriticalSectionLocker_methods[]; - extern int wxCriticalSectionLocker_methodCount; - extern void wxLua_wxCriticalSectionLocker_delete_function(void** p); -#endif // wxLUA_USE_wxCriticalSectionLocker - -#if wxLUA_USE_wxDateSpan && wxUSE_DATETIME - extern wxLuaBindMethod wxDateSpan_methods[]; - extern int wxDateSpan_methodCount; - extern void wxLua_wxDateSpan_delete_function(void** p); -#endif // wxLUA_USE_wxDateSpan && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - extern wxLuaBindMethod wxDateTime_methods[]; - extern int wxDateTime_methodCount; - extern wxLuaBindNumber wxDateTime_enums[]; - extern int wxDateTime_enumCount; - extern void wxLua_wxDateTime_delete_function(void** p); - extern wxLuaBindMethod wxDateTime_TimeZone_methods[]; - extern int wxDateTime_TimeZone_methodCount; - extern void wxLua_wxDateTime_TimeZone_delete_function(void** p); - extern wxLuaBindMethod wxDateTimeArray_methods[]; - extern int wxDateTimeArray_methodCount; - extern void wxLua_wxDateTimeArray_delete_function(void** p); -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - extern wxLuaBindMethod wxDateTimeHolidayAuthority_methods[]; - extern int wxDateTimeHolidayAuthority_methodCount; - extern void wxLua_wxDateTimeHolidayAuthority_delete_function(void** p); - extern wxLuaBindMethod wxDateTimeWorkDays_methods[]; - extern int wxDateTimeWorkDays_methodCount; - extern void wxLua_wxDateTimeWorkDays_delete_function(void** p); -#endif // wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - -#if wxLUA_USE_wxDir - extern wxLuaBindMethod wxDir_methods[]; - extern int wxDir_methodCount; - extern void wxLua_wxDir_delete_function(void** p); -#endif // wxLUA_USE_wxDir - -#if wxLUA_USE_wxFile && wxUSE_FILE - extern wxLuaBindMethod wxFile_methods[]; - extern int wxFile_methodCount; - extern wxLuaBindNumber wxFile_enums[]; - extern int wxFile_enumCount; - extern void wxLua_wxFile_delete_function(void** p); - extern wxLuaBindMethod wxTempFile_methods[]; - extern int wxTempFile_methodCount; - extern void wxLua_wxTempFile_delete_function(void** p); -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxLUA_USE_wxFileName - extern wxLuaBindMethod wxFileName_methods[]; - extern int wxFileName_methodCount; - extern void wxLua_wxFileName_delete_function(void** p); -#endif // wxLUA_USE_wxFileName - -#if wxLUA_USE_wxList && !wxUSE_STL - extern wxLuaBindMethod wxList_methods[]; - extern int wxList_methodCount; - extern void wxLua_wxList_delete_function(void** p); - extern wxLuaBindMethod wxNode_methods[]; - extern int wxNode_methodCount; - extern void wxLua_wxNode_delete_function(void** p); -#endif // wxLUA_USE_wxList && !wxUSE_STL - -#if wxLUA_USE_wxLog && wxUSE_LOG - extern wxLuaBindMethod wxLog_methods[]; - extern int wxLog_methodCount; - extern void wxLua_wxLog_delete_function(void** p); - extern wxLuaBindMethod wxLogBuffer_methods[]; - extern int wxLogBuffer_methodCount; - extern void wxLua_wxLogBuffer_delete_function(void** p); - extern wxLuaBindMethod wxLogChain_methods[]; - extern int wxLogChain_methodCount; - extern void wxLua_wxLogChain_delete_function(void** p); - extern wxLuaBindMethod wxLogNull_methods[]; - extern int wxLogNull_methodCount; - extern void wxLua_wxLogNull_delete_function(void** p); - extern wxLuaBindMethod wxLogPassThrough_methods[]; - extern int wxLogPassThrough_methodCount; - extern void wxLua_wxLogPassThrough_delete_function(void** p); -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if wxLUA_USE_wxMemoryBuffer - extern wxLuaBindMethod wxMemoryBuffer_methods[]; - extern int wxMemoryBuffer_methodCount; - extern void wxLua_wxMemoryBuffer_delete_function(void** p); -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxLUA_USE_wxObject - extern wxLuaBindMethod wxObject_methods[]; - extern int wxObject_methodCount; - extern void wxLua_wxObject_delete_function(void** p); - extern wxLuaBindMethod wxObjectRefData_methods[]; - extern int wxObjectRefData_methodCount; - extern void wxLua_wxObjectRefData_delete_function(void** p); -#endif // wxLUA_USE_wxObject - -#if wxLUA_USE_wxRegEx && wxUSE_REGEX - extern wxLuaBindMethod wxRegEx_methods[]; - extern int wxRegEx_methodCount; - extern void wxLua_wxRegEx_delete_function(void** p); -#endif // wxLUA_USE_wxRegEx && wxUSE_REGEX - -#if wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - extern wxLuaBindMethod wxStopWatch_methods[]; - extern int wxStopWatch_methodCount; - extern void wxLua_wxStopWatch_delete_function(void** p); -#endif // wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - -#if wxLUA_USE_wxSystemOptions - extern wxLuaBindMethod wxSystemOptions_methods[]; - extern int wxSystemOptions_methodCount; - extern void wxLua_wxSystemOptions_delete_function(void** p); -#endif // wxLUA_USE_wxSystemOptions - -#if wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - extern wxLuaBindMethod wxTimeSpan_methods[]; - extern int wxTimeSpan_methodCount; - extern void wxLua_wxTimeSpan_delete_function(void** p); -#endif // wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - extern wxLuaBindMethod wxFileSystemWatcher_methods[]; - extern int wxFileSystemWatcher_methodCount; - extern void wxLua_wxFileSystemWatcher_delete_function(void** p); - extern wxLuaBindMethod wxFileSystemWatcherEvent_methods[]; - extern int wxFileSystemWatcherEvent_methodCount; - extern void wxLua_wxFileSystemWatcherEvent_delete_function(void** p); -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - -#if wxUSE_INTL - extern wxLuaBindMethod wxLanguageInfo_methods[]; - extern int wxLanguageInfo_methodCount; - extern void wxLua_wxLanguageInfo_delete_function(void** p); - extern wxLuaBindMethod wxLocale_methods[]; - extern int wxLocale_methodCount; - extern void wxLua_wxLocale_delete_function(void** p); -#endif // wxUSE_INTL - -#if wxUSE_LONGLONG - extern wxLuaBindMethod wxLongLong_methods[]; - extern int wxLongLong_methodCount; - extern void wxLua_wxLongLong_delete_function(void** p); - extern wxLuaBindMethod wxULongLong_methods[]; - extern int wxULongLong_methodCount; - extern void wxLua_wxULongLong_delete_function(void** p); -#endif // wxUSE_LONGLONG - -#if wxUSE_SNGLINST_CHECKER - extern wxLuaBindMethod wxSingleInstanceChecker_methods[]; - extern int wxSingleInstanceChecker_methodCount; - extern void wxLua_wxSingleInstanceChecker_delete_function(void** p); -#endif // wxUSE_SNGLINST_CHECKER - -#if wxUSE_STREAMS - extern wxLuaBindMethod wxDataInputStream_methods[]; - extern int wxDataInputStream_methodCount; - extern void wxLua_wxDataInputStream_delete_function(void** p); - extern wxLuaBindMethod wxDataOutputStream_methods[]; - extern int wxDataOutputStream_methodCount; - extern void wxLua_wxDataOutputStream_delete_function(void** p); - extern wxLuaBindMethod wxFileInputStream_methods[]; - extern int wxFileInputStream_methodCount; - extern void wxLua_wxFileInputStream_delete_function(void** p); - extern wxLuaBindMethod wxFileOutputStream_methods[]; - extern int wxFileOutputStream_methodCount; - extern void wxLua_wxFileOutputStream_delete_function(void** p); - extern wxLuaBindMethod wxInputStream_methods[]; - extern int wxInputStream_methodCount; - extern void wxLua_wxInputStream_delete_function(void** p); - extern wxLuaBindMethod wxMemoryInputStream_methods[]; - extern int wxMemoryInputStream_methodCount; - extern void wxLua_wxMemoryInputStream_delete_function(void** p); - extern wxLuaBindMethod wxMemoryOutputStream_methods[]; - extern int wxMemoryOutputStream_methodCount; - extern void wxLua_wxMemoryOutputStream_delete_function(void** p); - extern wxLuaBindMethod wxOutputStream_methods[]; - extern int wxOutputStream_methodCount; - extern void wxLua_wxOutputStream_delete_function(void** p); - extern wxLuaBindMethod wxStreamBase_methods[]; - extern int wxStreamBase_methodCount; - extern void wxLua_wxStreamBase_delete_function(void** p); - extern wxLuaBindMethod wxStringInputStream_methods[]; - extern int wxStringInputStream_methodCount; - extern void wxLua_wxStringInputStream_delete_function(void** p); - extern wxLuaBindMethod wxStringOutputStream_methods[]; - extern int wxStringOutputStream_methodCount; - extern void wxLua_wxStringOutputStream_delete_function(void** p); - extern wxLuaBindMethod wxTextInputStream_methods[]; - extern int wxTextInputStream_methodCount; - extern void wxLua_wxTextInputStream_delete_function(void** p); - extern wxLuaBindMethod wxTextOutputStream_methods[]; - extern int wxTextOutputStream_methodCount; - extern void wxLua_wxTextOutputStream_delete_function(void** p); -#endif // wxUSE_STREAMS - -#if wxUSE_VARIANT - extern wxLuaBindMethod wxVariant_methods[]; - extern int wxVariant_methodCount; - extern void wxLua_wxVariant_delete_function(void** p); - extern wxLuaBindMethod wxVariantData_methods[]; - extern int wxVariantData_methodCount; - extern void wxLua_wxVariantData_delete_function(void** p); - extern wxLuaBindMethod wxVariantList_methods[]; - extern int wxVariantList_methodCount; - extern void wxLua_wxVariantList_delete_function(void** p); -#endif // wxUSE_VARIANT - - - - -wxLuaBindClass* wxLuaGetClassList_wxbase(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - { wxluaclassname_wxArchiveFSHandler, wxArchiveFSHandler_methods, wxArchiveFSHandler_methodCount, CLASSINFO(wxArchiveFSHandler), &wxluatype_wxArchiveFSHandler, wxluabaseclassnames_wxArchiveFSHandler, wxluabaseclassbinds_wxArchiveFSHandler, NULL, NULL, NULL, 0, &wxLua_wxArchiveFSHandler_delete_function, }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -#if wxLUA_USE_wxArrayDouble - { wxluaclassname_wxArrayDouble, wxArrayDouble_methods, wxArrayDouble_methodCount, NULL, &wxluatype_wxArrayDouble, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxArrayDouble_delete_function, }, -#endif // wxLUA_USE_wxArrayDouble - -#if wxLUA_USE_wxArrayInt - { wxluaclassname_wxArrayInt, wxArrayInt_methods, wxArrayInt_methodCount, NULL, &wxluatype_wxArrayInt, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxArrayInt_delete_function, }, -#endif // wxLUA_USE_wxArrayInt - -#if wxLUA_USE_wxArrayString - { wxluaclassname_wxArrayString, wxArrayString_methods, wxArrayString_methodCount, NULL, &wxluatype_wxArrayString, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxArrayString_delete_function, }, -#endif // wxLUA_USE_wxArrayString - -#if wxLUA_USE_wxClassInfo - { wxluaclassname_wxClassInfo, wxClassInfo_methods, wxClassInfo_methodCount, NULL, &wxluatype_wxClassInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxClassInfo_delete_function, }, -#endif // wxLUA_USE_wxClassInfo - - { wxluaclassname_wxClientData, wxClientData_methods, wxClientData_methodCount, NULL, &wxluatype_wxClientData, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxClientData_delete_function, }, - { wxluaclassname_wxClientDataContainer, wxClientDataContainer_methods, wxClientDataContainer_methodCount, NULL, &wxluatype_wxClientDataContainer, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxClientDataContainer_delete_function, }, - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - { wxluaclassname_wxConfig, wxConfig_methods, wxConfig_methodCount, CLASSINFO(wxConfig), &wxluatype_wxConfig, wxluabaseclassnames_wxConfig, wxluabaseclassbinds_wxConfig, NULL, NULL, NULL, 0, &wxLua_wxConfig_delete_function, }, - { wxluaclassname_wxConfigBase, wxConfigBase_methods, wxConfigBase_methodCount, CLASSINFO(wxConfigBase), &wxluatype_wxConfigBase, wxluabaseclassnames_wxConfigBase, wxluabaseclassbinds_wxConfigBase, NULL, NULL, wxConfigBase_enums, wxConfigBase_enumCount, &wxLua_wxConfigBase_delete_function, }, - { wxluaclassname_wxConfigPathChanger, wxConfigPathChanger_methods, wxConfigPathChanger_methodCount, NULL, &wxluatype_wxConfigPathChanger, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxConfigPathChanger_delete_function, }, -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if wxLUA_USE_wxCriticalSection && wxUSE_THREADS - { wxluaclassname_wxCriticalSection, wxCriticalSection_methods, wxCriticalSection_methodCount, NULL, &wxluatype_wxCriticalSection, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxCriticalSection_delete_function, }, -#endif // wxLUA_USE_wxCriticalSection && wxUSE_THREADS - -#if wxLUA_USE_wxCriticalSectionLocker - { wxluaclassname_wxCriticalSectionLocker, wxCriticalSectionLocker_methods, wxCriticalSectionLocker_methodCount, NULL, &wxluatype_wxCriticalSectionLocker, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxCriticalSectionLocker_delete_function, }, -#endif // wxLUA_USE_wxCriticalSectionLocker - -#if wxUSE_STREAMS - { wxluaclassname_wxDataInputStream, wxDataInputStream_methods, wxDataInputStream_methodCount, NULL, &wxluatype_wxDataInputStream, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataInputStream_delete_function, }, - { wxluaclassname_wxDataOutputStream, wxDataOutputStream_methods, wxDataOutputStream_methodCount, NULL, &wxluatype_wxDataOutputStream, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataOutputStream_delete_function, }, -#endif // wxUSE_STREAMS - -#if wxLUA_USE_wxDateSpan && wxUSE_DATETIME - { wxluaclassname_wxDateSpan, wxDateSpan_methods, wxDateSpan_methodCount, NULL, &wxluatype_wxDateSpan, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDateSpan_delete_function, }, -#endif // wxLUA_USE_wxDateSpan && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { wxluaclassname_wxDateTime, wxDateTime_methods, wxDateTime_methodCount, NULL, &wxluatype_wxDateTime, NULL, NULL, NULL, NULL, wxDateTime_enums, wxDateTime_enumCount, &wxLua_wxDateTime_delete_function, }, - { wxluaclassname_wxDateTimeArray, wxDateTimeArray_methods, wxDateTimeArray_methodCount, NULL, &wxluatype_wxDateTimeArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDateTimeArray_delete_function, }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - { wxluaclassname_wxDateTimeHolidayAuthority, wxDateTimeHolidayAuthority_methods, wxDateTimeHolidayAuthority_methodCount, NULL, &wxluatype_wxDateTimeHolidayAuthority, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDateTimeHolidayAuthority_delete_function, }, - { wxluaclassname_wxDateTimeWorkDays, wxDateTimeWorkDays_methods, wxDateTimeWorkDays_methodCount, NULL, &wxluatype_wxDateTimeWorkDays, wxluabaseclassnames_wxDateTimeWorkDays, wxluabaseclassbinds_wxDateTimeWorkDays, NULL, NULL, NULL, 0, &wxLua_wxDateTimeWorkDays_delete_function, }, -#endif // wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { wxluaclassname_wxDateTime_TimeZone, wxDateTime_TimeZone_methods, wxDateTime_TimeZone_methodCount, NULL, &wxluatype_wxDateTime_TimeZone, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDateTime_TimeZone_delete_function, }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if wxLUA_USE_wxDir - { wxluaclassname_wxDir, wxDir_methods, wxDir_methodCount, NULL, &wxluatype_wxDir, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDir_delete_function, }, -#endif // wxLUA_USE_wxDir - - { wxluaclassname_wxDynamicLibrary, wxDynamicLibrary_methods, wxDynamicLibrary_methodCount, NULL, &wxluatype_wxDynamicLibrary, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDynamicLibrary_delete_function, }, - { wxluaclassname_wxDynamicLibraryDetails, wxDynamicLibraryDetails_methods, wxDynamicLibraryDetails_methodCount, NULL, &wxluatype_wxDynamicLibraryDetails, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDynamicLibraryDetails_delete_function, }, - { wxluaclassname_wxDynamicLibraryDetailsArray, wxDynamicLibraryDetailsArray_methods, wxDynamicLibraryDetailsArray_methodCount, NULL, &wxluatype_wxDynamicLibraryDetailsArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDynamicLibraryDetailsArray_delete_function, }, - { wxluaclassname_wxEvent, wxEvent_methods, wxEvent_methodCount, CLASSINFO(wxEvent), &wxluatype_wxEvent, wxluabaseclassnames_wxEvent, wxluabaseclassbinds_wxEvent, NULL, NULL, NULL, 0, &wxLua_wxEvent_delete_function, }, - { wxluaclassname_wxEventFilter, wxEventFilter_methods, wxEventFilter_methodCount, NULL, &wxluatype_wxEventFilter, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxEventFilter_delete_function, }, - { wxluaclassname_wxEventLoopBase, wxEventLoopBase_methods, wxEventLoopBase_methodCount, NULL, &wxluatype_wxEventLoopBase, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxEventLoopBase_delete_function, }, - { wxluaclassname_wxEvtHandler, wxEvtHandler_methods, wxEvtHandler_methodCount, CLASSINFO(wxEvtHandler), &wxluatype_wxEvtHandler, wxluabaseclassnames_wxEvtHandler, wxluabaseclassbinds_wxEvtHandler, NULL, NULL, NULL, 0, &wxLua_wxEvtHandler_delete_function, }, - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - { wxluaclassname_wxFSFile, wxFSFile_methods, wxFSFile_methodCount, CLASSINFO(wxFSFile), &wxluatype_wxFSFile, wxluabaseclassnames_wxFSFile, wxluabaseclassbinds_wxFSFile, NULL, NULL, NULL, 0, &wxLua_wxFSFile_delete_function, }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -#if wxLUA_USE_wxFile && wxUSE_FILE - { wxluaclassname_wxFile, wxFile_methods, wxFile_methodCount, NULL, &wxluatype_wxFile, NULL, NULL, NULL, NULL, wxFile_enums, wxFile_enumCount, &wxLua_wxFile_delete_function, }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - { wxluaclassname_wxFileConfig, wxFileConfig_methods, wxFileConfig_methodCount, CLASSINFO(wxFileConfig), &wxluatype_wxFileConfig, wxluabaseclassnames_wxFileConfig, wxluabaseclassbinds_wxFileConfig, NULL, NULL, NULL, 0, &wxLua_wxFileConfig_delete_function, }, -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if wxUSE_STREAMS - { wxluaclassname_wxFileInputStream, wxFileInputStream_methods, wxFileInputStream_methodCount, NULL, &wxluatype_wxFileInputStream, wxluabaseclassnames_wxFileInputStream, wxluabaseclassbinds_wxFileInputStream, NULL, NULL, NULL, 0, &wxLua_wxFileInputStream_delete_function, }, -#endif // wxUSE_STREAMS - -#if wxLUA_USE_wxFileName - { wxluaclassname_wxFileName, wxFileName_methods, wxFileName_methodCount, NULL, &wxluatype_wxFileName, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFileName_delete_function, }, -#endif // wxLUA_USE_wxFileName - -#if wxUSE_STREAMS - { wxluaclassname_wxFileOutputStream, wxFileOutputStream_methods, wxFileOutputStream_methodCount, NULL, &wxluatype_wxFileOutputStream, wxluabaseclassnames_wxFileOutputStream, wxluabaseclassbinds_wxFileOutputStream, NULL, NULL, NULL, 0, &wxLua_wxFileOutputStream_delete_function, }, -#endif // wxUSE_STREAMS - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - { wxluaclassname_wxFileSystem, wxFileSystem_methods, wxFileSystem_methodCount, CLASSINFO(wxFileSystem), &wxluatype_wxFileSystem, wxluabaseclassnames_wxFileSystem, wxluabaseclassbinds_wxFileSystem, NULL, NULL, NULL, 0, &wxLua_wxFileSystem_delete_function, }, - { wxluaclassname_wxFileSystemHandler, wxFileSystemHandler_methods, wxFileSystemHandler_methodCount, CLASSINFO(wxFileSystemHandler), &wxluatype_wxFileSystemHandler, wxluabaseclassnames_wxFileSystemHandler, wxluabaseclassbinds_wxFileSystemHandler, NULL, NULL, NULL, 0, &wxLua_wxFileSystemHandler_delete_function, }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - { wxluaclassname_wxFileSystemWatcher, wxFileSystemWatcher_methods, wxFileSystemWatcher_methodCount, CLASSINFO(wxFileSystemWatcher), &wxluatype_wxFileSystemWatcher, wxluabaseclassnames_wxFileSystemWatcher, wxluabaseclassbinds_wxFileSystemWatcher, NULL, NULL, NULL, 0, &wxLua_wxFileSystemWatcher_delete_function, }, - { wxluaclassname_wxFileSystemWatcherEvent, wxFileSystemWatcherEvent_methods, wxFileSystemWatcherEvent_methodCount, CLASSINFO(wxFileSystemWatcherEvent), &wxluatype_wxFileSystemWatcherEvent, wxluabaseclassnames_wxFileSystemWatcherEvent, wxluabaseclassbinds_wxFileSystemWatcherEvent, NULL, NULL, NULL, 0, &wxLua_wxFileSystemWatcherEvent_delete_function, }, -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - { wxluaclassname_wxFileTranslationsLoader, wxFileTranslationsLoader_methods, wxFileTranslationsLoader_methodCount, NULL, &wxluatype_wxFileTranslationsLoader, wxluabaseclassnames_wxFileTranslationsLoader, wxluabaseclassbinds_wxFileTranslationsLoader, NULL, NULL, NULL, 0, &wxLua_wxFileTranslationsLoader_delete_function, }, -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - - { wxluaclassname_wxFileType, wxFileType_methods, wxFileType_methodCount, NULL, &wxluatype_wxFileType, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFileType_delete_function, }, - { wxluaclassname_wxFileTypeInfo, wxFileTypeInfo_methods, wxFileTypeInfo_methodCount, NULL, &wxluatype_wxFileTypeInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFileTypeInfo_delete_function, }, - { wxluaclassname_wxFileType_MessageParameters, wxFileType_MessageParameters_methods, wxFileType_MessageParameters_methodCount, NULL, &wxluatype_wxFileType_MessageParameters, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFileType_MessageParameters_delete_function, }, - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - { wxluaclassname_wxFilterFSHandler, wxFilterFSHandler_methods, wxFilterFSHandler_methodCount, CLASSINFO(wxFilterFSHandler), &wxluatype_wxFilterFSHandler, wxluabaseclassnames_wxFilterFSHandler, wxluabaseclassbinds_wxFilterFSHandler, NULL, NULL, NULL, 0, &wxLua_wxFilterFSHandler_delete_function, }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - { wxluaclassname_wxIconLocation, wxIconLocation_methods, wxIconLocation_methodCount, NULL, &wxluatype_wxIconLocation, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxIconLocation_delete_function, }, - -#if wxUSE_STREAMS - { wxluaclassname_wxInputStream, wxInputStream_methods, wxInputStream_methodCount, NULL, &wxluatype_wxInputStream, wxluabaseclassnames_wxInputStream, wxluabaseclassbinds_wxInputStream, NULL, NULL, NULL, 0, &wxLua_wxInputStream_delete_function, }, -#endif // wxUSE_STREAMS - -#if (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - { wxluaclassname_wxInternetFSHandler, wxInternetFSHandler_methods, wxInternetFSHandler_methodCount, CLASSINFO(wxInternetFSHandler), &wxluatype_wxInternetFSHandler, wxluabaseclassnames_wxInternetFSHandler, wxluabaseclassbinds_wxInternetFSHandler, NULL, NULL, NULL, 0, &wxLua_wxInternetFSHandler_delete_function, }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - -#if wxUSE_INTL - { wxluaclassname_wxLanguageInfo, wxLanguageInfo_methods, wxLanguageInfo_methodCount, NULL, &wxluatype_wxLanguageInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxLanguageInfo_delete_function, }, -#endif // wxUSE_INTL - -#if wxLUA_USE_wxList && !wxUSE_STL - { wxluaclassname_wxList, wxList_methods, wxList_methodCount, NULL, &wxluatype_wxList, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxList_delete_function, }, -#endif // wxLUA_USE_wxList && !wxUSE_STL - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - { wxluaclassname_wxLocalFSHandler, wxLocalFSHandler_methods, wxLocalFSHandler_methodCount, CLASSINFO(wxLocalFSHandler), &wxluatype_wxLocalFSHandler, wxluabaseclassnames_wxLocalFSHandler, wxluabaseclassbinds_wxLocalFSHandler, NULL, NULL, NULL, 0, &wxLua_wxLocalFSHandler_delete_function, }, -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - -#if wxUSE_INTL - { wxluaclassname_wxLocale, wxLocale_methods, wxLocale_methodCount, NULL, &wxluatype_wxLocale, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxLocale_delete_function, }, -#endif // wxUSE_INTL - -#if wxLUA_USE_wxLog && wxUSE_LOG - { wxluaclassname_wxLog, wxLog_methods, wxLog_methodCount, NULL, &wxluatype_wxLog, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxLog_delete_function, }, - { wxluaclassname_wxLogBuffer, wxLogBuffer_methods, wxLogBuffer_methodCount, NULL, &wxluatype_wxLogBuffer, wxluabaseclassnames_wxLogBuffer, wxluabaseclassbinds_wxLogBuffer, NULL, NULL, NULL, 0, &wxLua_wxLogBuffer_delete_function, }, - { wxluaclassname_wxLogChain, wxLogChain_methods, wxLogChain_methodCount, NULL, &wxluatype_wxLogChain, wxluabaseclassnames_wxLogChain, wxluabaseclassbinds_wxLogChain, NULL, NULL, NULL, 0, &wxLua_wxLogChain_delete_function, }, - { wxluaclassname_wxLogNull, wxLogNull_methods, wxLogNull_methodCount, NULL, &wxluatype_wxLogNull, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxLogNull_delete_function, }, - { wxluaclassname_wxLogPassThrough, wxLogPassThrough_methods, wxLogPassThrough_methodCount, NULL, &wxluatype_wxLogPassThrough, wxluabaseclassnames_wxLogPassThrough, wxluabaseclassbinds_wxLogPassThrough, NULL, NULL, NULL, 0, &wxLua_wxLogPassThrough_delete_function, }, -#endif // wxLUA_USE_wxLog && wxUSE_LOG - -#if wxUSE_LONGLONG - { wxluaclassname_wxLongLong, wxLongLong_methods, wxLongLong_methodCount, NULL, &wxluatype_wxLongLong, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxLongLong_delete_function, }, -#endif // wxUSE_LONGLONG - -#if wxLUA_USE_wxMemoryBuffer - { wxluaclassname_wxMemoryBuffer, wxMemoryBuffer_methods, wxMemoryBuffer_methodCount, NULL, &wxluatype_wxMemoryBuffer, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxMemoryBuffer_delete_function, }, -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - { wxluaclassname_wxMemoryConfig, wxMemoryConfig_methods, wxMemoryConfig_methodCount, CLASSINFO(wxMemoryConfig), &wxluatype_wxMemoryConfig, wxluabaseclassnames_wxMemoryConfig, wxluabaseclassbinds_wxMemoryConfig, NULL, NULL, NULL, 0, &wxLua_wxMemoryConfig_delete_function, }, -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - -#if wxUSE_STREAMS - { wxluaclassname_wxMemoryInputStream, wxMemoryInputStream_methods, wxMemoryInputStream_methodCount, NULL, &wxluatype_wxMemoryInputStream, wxluabaseclassnames_wxMemoryInputStream, wxluabaseclassbinds_wxMemoryInputStream, NULL, NULL, NULL, 0, &wxLua_wxMemoryInputStream_delete_function, }, - { wxluaclassname_wxMemoryOutputStream, wxMemoryOutputStream_methods, wxMemoryOutputStream_methodCount, NULL, &wxluatype_wxMemoryOutputStream, wxluabaseclassnames_wxMemoryOutputStream, wxluabaseclassbinds_wxMemoryOutputStream, NULL, NULL, NULL, 0, &wxLua_wxMemoryOutputStream_delete_function, }, -#endif // wxUSE_STREAMS - - { wxluaclassname_wxMimeTypesManager, wxMimeTypesManager_methods, wxMimeTypesManager_methodCount, NULL, &wxluatype_wxMimeTypesManager, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxMimeTypesManager_delete_function, }, - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - { wxluaclassname_wxMsgCatalog, wxMsgCatalog_methods, wxMsgCatalog_methodCount, NULL, &wxluatype_wxMsgCatalog, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxMsgCatalog_delete_function, }, -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if wxLUA_USE_wxList && !wxUSE_STL - { wxluaclassname_wxNode, wxNode_methods, wxNode_methodCount, NULL, &wxluatype_wxNode, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxNode_delete_function, }, -#endif // wxLUA_USE_wxList && !wxUSE_STL - -#if wxLUA_USE_wxObject - { wxluaclassname_wxObject, wxObject_methods, wxObject_methodCount, CLASSINFO(wxObject), &wxluatype_wxObject, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxObject_delete_function, }, - { wxluaclassname_wxObjectRefData, wxObjectRefData_methods, wxObjectRefData_methodCount, NULL, &wxluatype_wxObjectRefData, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxObjectRefData_delete_function, }, -#endif // wxLUA_USE_wxObject - -#if wxUSE_STREAMS - { wxluaclassname_wxOutputStream, wxOutputStream_methods, wxOutputStream_methodCount, NULL, &wxluatype_wxOutputStream, wxluabaseclassnames_wxOutputStream, wxluabaseclassbinds_wxOutputStream, NULL, NULL, NULL, 0, &wxLua_wxOutputStream_delete_function, }, -#endif // wxUSE_STREAMS - - { wxluaclassname_wxPathList, wxPathList_methods, wxPathList_methodCount, NULL, &wxluatype_wxPathList, wxluabaseclassnames_wxPathList, wxluabaseclassbinds_wxPathList, NULL, NULL, NULL, 0, &wxLua_wxPathList_delete_function, }, - { wxluaclassname_wxPlatformInfo, wxPlatformInfo_methods, wxPlatformInfo_methodCount, NULL, &wxluatype_wxPlatformInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPlatformInfo_delete_function, }, - -#if wxLUA_USE_wxRegEx && wxUSE_REGEX - { wxluaclassname_wxRegEx, wxRegEx_methods, wxRegEx_methodCount, NULL, &wxluatype_wxRegEx, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRegEx_delete_function, }, -#endif // wxLUA_USE_wxRegEx && wxUSE_REGEX - -#if (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - { wxluaclassname_wxResourceTranslationsLoader, wxResourceTranslationsLoader_methods, wxResourceTranslationsLoader_methodCount, NULL, &wxluatype_wxResourceTranslationsLoader, wxluabaseclassnames_wxResourceTranslationsLoader, wxluabaseclassbinds_wxResourceTranslationsLoader, NULL, NULL, NULL, 0, &wxLua_wxResourceTranslationsLoader_delete_function, }, -#endif // (defined (__WINDOWS__ )) && (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if wxUSE_SNGLINST_CHECKER - { wxluaclassname_wxSingleInstanceChecker, wxSingleInstanceChecker_methods, wxSingleInstanceChecker_methodCount, NULL, &wxluatype_wxSingleInstanceChecker, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxSingleInstanceChecker_delete_function, }, -#endif // wxUSE_SNGLINST_CHECKER - -#if wxLUA_USE_wxArrayString - { wxluaclassname_wxSortedArrayString, wxSortedArrayString_methods, wxSortedArrayString_methodCount, NULL, &wxluatype_wxSortedArrayString, wxluabaseclassnames_wxSortedArrayString, wxluabaseclassbinds_wxSortedArrayString, NULL, NULL, NULL, 0, &wxLua_wxSortedArrayString_delete_function, }, -#endif // wxLUA_USE_wxArrayString - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - { wxluaclassname_wxStandardPaths, wxStandardPaths_methods, wxStandardPaths_methodCount, NULL, &wxluatype_wxStandardPaths, NULL, NULL, NULL, NULL, wxStandardPaths_enums, wxStandardPaths_enumCount, &wxLua_wxStandardPaths_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - -#if wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - { wxluaclassname_wxStopWatch, wxStopWatch_methods, wxStopWatch_methodCount, NULL, &wxluatype_wxStopWatch, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxStopWatch_delete_function, }, -#endif // wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - -#if wxUSE_STREAMS - { wxluaclassname_wxStreamBase, wxStreamBase_methods, wxStreamBase_methodCount, NULL, &wxluatype_wxStreamBase, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxStreamBase_delete_function, }, -#endif // wxUSE_STREAMS - - { wxluaclassname_wxString, wxString_methods, wxString_methodCount, NULL, &wxluatype_wxString, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxString_delete_function, }, - { wxluaclassname_wxStringClientData, wxStringClientData_methods, wxStringClientData_methodCount, NULL, &wxluatype_wxStringClientData, wxluabaseclassnames_wxStringClientData, wxluabaseclassbinds_wxStringClientData, NULL, NULL, NULL, 0, &wxLua_wxStringClientData_delete_function, }, - -#if wxUSE_STREAMS - { wxluaclassname_wxStringInputStream, wxStringInputStream_methods, wxStringInputStream_methodCount, NULL, &wxluatype_wxStringInputStream, wxluabaseclassnames_wxStringInputStream, wxluabaseclassbinds_wxStringInputStream, NULL, NULL, NULL, 0, &wxLua_wxStringInputStream_delete_function, }, - { wxluaclassname_wxStringOutputStream, wxStringOutputStream_methods, wxStringOutputStream_methodCount, NULL, &wxluatype_wxStringOutputStream, wxluabaseclassnames_wxStringOutputStream, wxluabaseclassbinds_wxStringOutputStream, NULL, NULL, NULL, 0, &wxLua_wxStringOutputStream_delete_function, }, -#endif // wxUSE_STREAMS - - { wxluaclassname_wxStringTokenizer, wxStringTokenizer_methods, wxStringTokenizer_methodCount, CLASSINFO(wxStringTokenizer), &wxluatype_wxStringTokenizer, wxluabaseclassnames_wxStringTokenizer, wxluabaseclassbinds_wxStringTokenizer, NULL, NULL, NULL, 0, &wxLua_wxStringTokenizer_delete_function, }, - -#if wxCHECK_VERSION(2,9,0) - { wxluaclassname_wxString_const_iterator, wxString_const_iterator_methods, wxString_const_iterator_methodCount, NULL, &wxluatype_wxString_const_iterator, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxString_const_iterator_delete_function, }, - { wxluaclassname_wxString_iterator, wxString_iterator_methods, wxString_iterator_methodCount, NULL, &wxluatype_wxString_iterator, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxString_iterator_delete_function, }, -#endif // wxCHECK_VERSION(2,9,0) - -#if wxLUA_USE_wxSystemOptions - { wxluaclassname_wxSystemOptions, wxSystemOptions_methods, wxSystemOptions_methodCount, CLASSINFO(wxSystemOptions), &wxluatype_wxSystemOptions, wxluabaseclassnames_wxSystemOptions, wxluabaseclassbinds_wxSystemOptions, NULL, NULL, NULL, 0, &wxLua_wxSystemOptions_delete_function, }, -#endif // wxLUA_USE_wxSystemOptions - -#if wxLUA_USE_wxFile && wxUSE_FILE - { wxluaclassname_wxTempFile, wxTempFile_methods, wxTempFile_methodCount, NULL, &wxluatype_wxTempFile, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTempFile_delete_function, }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - -#if wxUSE_STREAMS - { wxluaclassname_wxTextInputStream, wxTextInputStream_methods, wxTextInputStream_methodCount, NULL, &wxluatype_wxTextInputStream, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextInputStream_delete_function, }, - { wxluaclassname_wxTextOutputStream, wxTextOutputStream_methods, wxTextOutputStream_methodCount, NULL, &wxluatype_wxTextOutputStream, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextOutputStream_delete_function, }, -#endif // wxUSE_STREAMS - -#if wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - { wxluaclassname_wxTimeSpan, wxTimeSpan_methods, wxTimeSpan_methodCount, NULL, &wxluatype_wxTimeSpan, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTimeSpan_delete_function, }, -#endif // wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - -#if (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - { wxluaclassname_wxTranslations, wxTranslations_methods, wxTranslations_methodCount, NULL, &wxluatype_wxTranslations, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTranslations_delete_function, }, - { wxluaclassname_wxTranslationsLoader, wxTranslationsLoader_methods, wxTranslationsLoader_methodCount, NULL, &wxluatype_wxTranslationsLoader, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTranslationsLoader_delete_function, }, -#endif // (wxCHECK_VERSION(2,9,1) && wxLUA_USE_wxTranslations) && (wxUSE_INTL) - -#if wxUSE_LONGLONG - { wxluaclassname_wxULongLong, wxULongLong_methods, wxULongLong_methodCount, NULL, &wxluatype_wxULongLong, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxULongLong_delete_function, }, -#endif // wxUSE_LONGLONG - - { wxluaclassname_wxUniChar, wxUniChar_methods, wxUniChar_methodCount, NULL, &wxluatype_wxUniChar, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxUniChar_delete_function, }, - -#if wxUSE_VARIANT - { wxluaclassname_wxVariant, wxVariant_methods, wxVariant_methodCount, CLASSINFO(wxVariant), &wxluatype_wxVariant, wxluabaseclassnames_wxVariant, wxluabaseclassbinds_wxVariant, NULL, NULL, NULL, 0, &wxLua_wxVariant_delete_function, }, - { wxluaclassname_wxVariantData, wxVariantData_methods, wxVariantData_methodCount, NULL, &wxluatype_wxVariantData, wxluabaseclassnames_wxVariantData, wxluabaseclassbinds_wxVariantData, NULL, NULL, NULL, 0, &wxLua_wxVariantData_delete_function, }, - { wxluaclassname_wxVariantList, wxVariantList_methods, wxVariantList_methodCount, NULL, &wxluatype_wxVariantList, wxluabaseclassnames_wxVariantList, wxluabaseclassbinds_wxVariantList, NULL, NULL, NULL, 0, &wxLua_wxVariantList_delete_function, }, -#endif // wxUSE_VARIANT - -#if wxCHECK_VERSION(2,9,2) - { wxluaclassname_wxVersionInfo, wxVersionInfo_methods, wxVersionInfo_methodCount, NULL, &wxluatype_wxVersionInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxVersionInfo_delete_function, }, -#endif // wxCHECK_VERSION(2,9,2) - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxbase() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxbase, wxLuaBinding) - -wxLuaBinding_wxbase::wxLuaBinding_wxbase() : wxLuaBinding() -{ - m_bindingName = wxT("wxbase"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxbase(m_classCount); - m_numberArray = wxLuaGetDefineList_wxbase(m_numberCount); - m_stringArray = wxLuaGetStringList_wxbase(m_stringCount); - m_eventArray = wxLuaGetEventList_wxbase(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxbase(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxbase(m_functionCount); - InitBinding(); -} - -bool wxLuaBinding_wxbase::RegisterBinding(const wxLuaState& wxlState) -{ - bool ret = wxLuaBinding::RegisterBinding(wxlState); - - wxCHECK_MSG(wxlState.Ok(), false, wxT("Invalid wxLuaState")); - lua_State* L = wxlState.GetLuaState(); - - lua_pushlstring(L, "NULL", 4); - wxluaT_pushuserdatatype(L, NULL, wxluatype_NULL, true, true); - lua_rawset(L, -3); // set t["NULL"] = userdata(NULL) w/ NULL tag - - p_wxluatype_wxUniChar = &wxluatype_wxUniChar; - p_wxluatype_wxString = &wxluatype_wxString; - p_wxluatype_wxArrayString = &wxluatype_wxArrayString; - p_wxluatype_wxSortedArrayString = &wxluatype_wxSortedArrayString; - p_wxluatype_wxArrayInt = &wxluatype_wxArrayInt; - p_wxluatype_wxArrayDouble = &wxluatype_wxArrayDouble; - p_wxluatype_wxMemoryBuffer = &wxluatype_wxMemoryBuffer; - p_wxluatype_wxDateTime = &wxluatype_wxDateTime; - p_wxluatype_wxVariant = &wxluatype_wxVariant; - - return ret; -} - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxbase_init() -{ - static wxLuaBinding_wxbase m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxbase_config.cpp b/wxLua/modules/wxbind/src/wxbase_config.cpp deleted file mode 100644 index 9d2bc26f..00000000 --- a/wxLua/modules/wxbind/src/wxbase_config.cpp +++ /dev/null @@ -1,1277 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxbase_config.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxbase_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG -// --------------------------------------------------------------------------- -// Bind class wxConfigBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxConfigBase' -int wxluatype_wxConfigBase = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxConfigBase_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Create[1] = {{ wxLua_wxConfigBase_Create, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxConfigBase* Create(); -static int LUACALL wxLua_wxConfigBase_Create(lua_State *L) -{ - // call Create - wxConfigBase* returns = (wxConfigBase*)wxConfigBase::Create(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_DeleteAll[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_DeleteAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_DeleteAll[1] = {{ wxLua_wxConfigBase_DeleteAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_DeleteAll }}; -// bool DeleteAll(); -static int LUACALL wxLua_wxConfigBase_DeleteAll(lua_State *L) -{ - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call DeleteAll - bool returns = (self->DeleteAll()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_DeleteEntry[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_DeleteEntry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_DeleteEntry[1] = {{ wxLua_wxConfigBase_DeleteEntry, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxConfigBase_DeleteEntry }}; -// bool DeleteEntry(const wxString& key, bool bDeleteGroupIfEmpty = true); -static int LUACALL wxLua_wxConfigBase_DeleteEntry(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bDeleteGroupIfEmpty = true - bool bDeleteGroupIfEmpty = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call DeleteEntry - bool returns = (self->DeleteEntry(key, bDeleteGroupIfEmpty)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_DeleteGroup[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_DeleteGroup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_DeleteGroup[1] = {{ wxLua_wxConfigBase_DeleteGroup, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_DeleteGroup }}; -// bool DeleteGroup(const wxString& key); -static int LUACALL wxLua_wxConfigBase_DeleteGroup(lua_State *L) -{ - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call DeleteGroup - bool returns = (self->DeleteGroup(key)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxConfigBase_DontCreateOnDemand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_DontCreateOnDemand[1] = {{ wxLua_wxConfigBase_DontCreateOnDemand, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void DontCreateOnDemand(); -static int LUACALL wxLua_wxConfigBase_DontCreateOnDemand(lua_State *L) -{ - // call DontCreateOnDemand - wxConfigBase::DontCreateOnDemand(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Exists[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_Exists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Exists[1] = {{ wxLua_wxConfigBase_Exists, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_Exists }}; -// bool Exists(wxString& strName) const; -static int LUACALL wxLua_wxConfigBase_Exists(lua_State *L) -{ - // wxString strName - wxString strName = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call Exists - bool returns = (self->Exists(strName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Flush[] = { &wxluatype_wxConfigBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_Flush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Flush[1] = {{ wxLua_wxConfigBase_Flush, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxConfigBase_Flush }}; -// bool Flush(bool bCurrentOnly = false); -static int LUACALL wxLua_wxConfigBase_Flush(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bCurrentOnly = false - bool bCurrentOnly = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call Flush - bool returns = (self->Flush(bCurrentOnly)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Get[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Get[1] = {{ wxLua_wxConfigBase_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxConfigBase_Get }}; -// static wxConfigBase* Get(bool CreateOnDemand = true); -static int LUACALL wxLua_wxConfigBase_Get(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool CreateOnDemand = true - bool CreateOnDemand = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call Get - wxConfigBase* returns = (wxConfigBase*)wxConfigBase::Get(CreateOnDemand); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetAppName[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_GetAppName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetAppName[1] = {{ wxLua_wxConfigBase_GetAppName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_GetAppName }}; -// wxString GetAppName() const; -static int LUACALL wxLua_wxConfigBase_GetAppName(lua_State *L) -{ - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetAppName - wxString returns = (self->GetAppName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetEntryType[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_GetEntryType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetEntryType[1] = {{ wxLua_wxConfigBase_GetEntryType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_GetEntryType }}; -// wxConfigBase::EntryType GetEntryType(const wxString& name) const; -static int LUACALL wxLua_wxConfigBase_GetEntryType(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetEntryType - wxConfigBase::EntryType returns = (self->GetEntryType(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetFirstEntry[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_GetFirstEntry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetFirstEntry[1] = {{ wxLua_wxConfigBase_GetFirstEntry, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_GetFirstEntry }}; -// %override wxLua_wxConfigBase_GetFirstEntry -// bool GetFirstEntry(wxString& str, long& index) const -static int LUACALL wxLua_wxConfigBase_GetFirstEntry(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // these are optional and are not used anyway - long index = (argCount >= 3 ? (long)wxlua_getintegertype(L, 3) : 0); - wxString str = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxConfig *self = (wxConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetFirstEntry - bool returns = self->GetFirstEntry(str, index); - // push the result number - lua_pushboolean(L, returns); - // push the next string - wxlua_pushwxString(L, str); - // push the next index - lua_pushinteger(L, index); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetFirstGroup[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_GetFirstGroup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetFirstGroup[1] = {{ wxLua_wxConfigBase_GetFirstGroup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_GetFirstGroup }}; -// %override wxLua_wxConfigBase_GetFirstGroup -// bool GetFirstGroup(wxString& str, long& index) const -static int LUACALL wxLua_wxConfigBase_GetFirstGroup(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // these are optional and are not used anyway - long index = (argCount >= 3 ? (long)wxlua_getintegertype(L, 3) : 0); - wxString str = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxConfig *self = (wxConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetFirstGroup - bool returns = self->GetFirstGroup(str, index); - // push the result number - lua_pushboolean(L, returns); - // push the result string - wxlua_pushwxString(L, str); - // push the next index - lua_pushinteger(L, index); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetNextEntry[] = { &wxluatype_wxConfigBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxConfigBase_GetNextEntry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetNextEntry[1] = {{ wxLua_wxConfigBase_GetNextEntry, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_GetNextEntry }}; -// %override wxLua_wxConfigBase_GetNextEntry -// bool GetNextEntry(wxString& str, long& index) const -static int LUACALL wxLua_wxConfigBase_GetNextEntry(lua_State *L) -{ - // only the number is needed - long index = (long)wxlua_getintegertype(L, 2); - wxString str; - // get this - wxConfig *self = (wxConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetNextEntry - bool returns = self->GetNextEntry(str, index); - // push the result number - lua_pushboolean(L, returns); - // push the result string - wxlua_pushwxString(L, str); - // push the next index - lua_pushinteger(L, index); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetNextGroup[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_GetNextGroup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetNextGroup[1] = {{ wxLua_wxConfigBase_GetNextGroup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_GetNextGroup }}; -// %override wxLua_wxConfigBase_GetNextGroup -// bool GetNextGroup(wxString& str, long& index) const -static int LUACALL wxLua_wxConfigBase_GetNextGroup(lua_State *L) -{ - // only the number is needed - long index = (long)wxlua_getintegertype(L, 2); - wxString str; - // get this - wxConfig *self = (wxConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetNextGroup - bool returns = self->GetNextGroup(str, index); - // push the result number - lua_pushboolean(L, returns); - // push the next result string - wxlua_pushwxString(L, str); - // push the next index - lua_pushinteger(L, index); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetNumberOfEntries[] = { &wxluatype_wxConfigBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_GetNumberOfEntries(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetNumberOfEntries[1] = {{ wxLua_wxConfigBase_GetNumberOfEntries, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxConfigBase_GetNumberOfEntries }}; -// unsigned int GetNumberOfEntries(bool bRecursive = false) const; -static int LUACALL wxLua_wxConfigBase_GetNumberOfEntries(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bRecursive = false - bool bRecursive = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetNumberOfEntries - unsigned int returns = (self->GetNumberOfEntries(bRecursive)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetNumberOfGroups[] = { &wxluatype_wxConfigBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_GetNumberOfGroups(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetNumberOfGroups[1] = {{ wxLua_wxConfigBase_GetNumberOfGroups, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxConfigBase_GetNumberOfGroups }}; -// unsigned int GetNumberOfGroups(bool bRecursive = false) const; -static int LUACALL wxLua_wxConfigBase_GetNumberOfGroups(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bRecursive = false - bool bRecursive = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetNumberOfGroups - unsigned int returns = (self->GetNumberOfGroups(bRecursive)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetPath[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetPath[1] = {{ wxLua_wxConfigBase_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_GetPath }}; -// const wxString& GetPath() const; -static int LUACALL wxLua_wxConfigBase_GetPath(lua_State *L) -{ - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_GetVendorName[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_GetVendorName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_GetVendorName[1] = {{ wxLua_wxConfigBase_GetVendorName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_GetVendorName }}; -// wxString GetVendorName() const; -static int LUACALL wxLua_wxConfigBase_GetVendorName(lua_State *L) -{ - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call GetVendorName - wxString returns = (self->GetVendorName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_HasEntry[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_HasEntry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_HasEntry[1] = {{ wxLua_wxConfigBase_HasEntry, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_HasEntry }}; -// bool HasEntry(wxString& strName) const; -static int LUACALL wxLua_wxConfigBase_HasEntry(lua_State *L) -{ - // wxString strName - wxString strName = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call HasEntry - bool returns = (self->HasEntry(strName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_HasGroup[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_HasGroup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_HasGroup[1] = {{ wxLua_wxConfigBase_HasGroup, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_HasGroup }}; -// bool HasGroup(const wxString& strName) const; -static int LUACALL wxLua_wxConfigBase_HasGroup(lua_State *L) -{ - // const wxString strName - const wxString strName = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call HasGroup - bool returns = (self->HasGroup(strName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_IsExpandingEnvVars[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_IsExpandingEnvVars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_IsExpandingEnvVars[1] = {{ wxLua_wxConfigBase_IsExpandingEnvVars, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_IsExpandingEnvVars }}; -// bool IsExpandingEnvVars() const; -static int LUACALL wxLua_wxConfigBase_IsExpandingEnvVars(lua_State *L) -{ - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call IsExpandingEnvVars - bool returns = (self->IsExpandingEnvVars()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_IsRecordingDefaults[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_IsRecordingDefaults(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_IsRecordingDefaults[1] = {{ wxLua_wxConfigBase_IsRecordingDefaults, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_IsRecordingDefaults }}; -// bool IsRecordingDefaults() const; -static int LUACALL wxLua_wxConfigBase_IsRecordingDefaults(lua_State *L) -{ - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call IsRecordingDefaults - bool returns = (self->IsRecordingDefaults()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#define wxLua_wxConfigBase_Read1 wxLua_wxConfigBase_ReadFloat -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Read1[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxConfigBase_Read1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Read1[1] = {{ wxLua_wxConfigBase_Read1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Read1 }}; -// %override wxLua_wxConfigBase_ReadFloat -// %rename ReadFloat bool Read(const wxString& key, double* d, double defaultVal = 0) const -static int LUACALL wxLua_wxConfigBase_ReadFloat(lua_State *L) -{ - double returns = 0; - // get number of arguments - int argCount = lua_gettop(L); - // double defaultVal = 0 - double defaultVal = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 0); - // const wxString& key - wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase *self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call Read - bool ret = self->Read(key, &returns, defaultVal); - // push the result bool - lua_pushboolean(L, ret); - // push the result number - lua_pushinteger(L, returns); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Read[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_Read(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Read[1] = {{ wxLua_wxConfigBase_Read, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxConfigBase_Read }}; -// %override wxLua_wxConfigBase_Read -// bool Read(const wxString& key, wxString* str, const wxString& defaultVal = wxEmptyString) const -static int LUACALL wxLua_wxConfigBase_Read(lua_State *L) -{ - wxString returns; - // get number of arguments - int argCount = lua_gettop(L); - // wxString defaultVal - wxString defaultVal = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString& key - wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase *self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call Read - bool ret = self->Read(key, &returns, defaultVal); - // push the result bool - lua_pushboolean(L, ret); - // push the result string - wxlua_pushwxString(L, returns); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_RenameEntry[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_RenameEntry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_RenameEntry[1] = {{ wxLua_wxConfigBase_RenameEntry, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_RenameEntry }}; -// bool RenameEntry(const wxString& oldName, const wxString& newName); -static int LUACALL wxLua_wxConfigBase_RenameEntry(lua_State *L) -{ - // const wxString newName - const wxString newName = wxlua_getwxStringtype(L, 3); - // const wxString oldName - const wxString oldName = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call RenameEntry - bool returns = (self->RenameEntry(oldName, newName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_RenameGroup[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_RenameGroup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_RenameGroup[1] = {{ wxLua_wxConfigBase_RenameGroup, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_RenameGroup }}; -// bool RenameGroup(const wxString& oldName, const wxString& newName); -static int LUACALL wxLua_wxConfigBase_RenameGroup(lua_State *L) -{ - // const wxString newName - const wxString newName = wxlua_getwxStringtype(L, 3); - // const wxString oldName - const wxString oldName = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call RenameGroup - bool returns = (self->RenameGroup(oldName, newName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Set[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Set[1] = {{ wxLua_wxConfigBase_Set, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxConfigBase_Set }}; -// static %gc wxConfigBase* Set(%ungc wxConfigBase *pConfig = NULL); -static int LUACALL wxLua_wxConfigBase_Set(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxConfigBase pConfig = NULL - wxConfigBase * pConfig = (argCount >= 1 ? (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase) : NULL); - if (wxluaO_isgcobject(L, pConfig)) wxluaO_undeletegcobject(L, pConfig); - // call Set - wxConfigBase* returns = (wxConfigBase*)wxConfigBase::Set(pConfig); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxConfigBase); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_SetExpandEnvVars[] = { &wxluatype_wxConfigBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_SetExpandEnvVars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_SetExpandEnvVars[1] = {{ wxLua_wxConfigBase_SetExpandEnvVars, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxConfigBase_SetExpandEnvVars }}; -// void SetExpandEnvVars(bool bDoIt = true); -static int LUACALL wxLua_wxConfigBase_SetExpandEnvVars(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bDoIt = true - bool bDoIt = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call SetExpandEnvVars - self->SetExpandEnvVars(bDoIt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_SetPath[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_SetPath[1] = {{ wxLua_wxConfigBase_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxConfigBase_SetPath }}; -// void SetPath(const wxString& strPath); -static int LUACALL wxLua_wxConfigBase_SetPath(lua_State *L) -{ - // const wxString strPath - const wxString strPath = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call SetPath - self->SetPath(strPath); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_SetRecordDefaults[] = { &wxluatype_wxConfigBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxConfigBase_SetRecordDefaults(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_SetRecordDefaults[1] = {{ wxLua_wxConfigBase_SetRecordDefaults, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxConfigBase_SetRecordDefaults }}; -// void SetRecordDefaults(bool bDoIt = true); -static int LUACALL wxLua_wxConfigBase_SetRecordDefaults(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bDoIt = true - bool bDoIt = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call SetRecordDefaults - self->SetRecordDefaults(bDoIt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Write1[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxConfigBase_Write1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Write1[1] = {{ wxLua_wxConfigBase_Write1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Write1 }}; -// bool Write(const wxString &key, double value); -static int LUACALL wxLua_wxConfigBase_Write1(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 3); - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call Write - bool returns = (self->Write(key, value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_Write[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigBase_Write(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Write[1] = {{ wxLua_wxConfigBase_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Write }}; -// bool Write(const wxString& key, wxString &value); -static int LUACALL wxLua_wxConfigBase_Write(lua_State *L) -{ - // wxString value - wxString value = wxlua_getwxStringtype(L, 3); - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxConfigBase * self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call Write - bool returns = (self->Write(key, value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigBase_delete[] = { &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxConfigBase_delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_delete[1] = {{ wxLua_wxConfigBase_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxConfigBase_delete }}; -// %override wxLua_wxConfigBase_delete -// void delete() -static int LUACALL wxLua_wxConfigBase_delete(lua_State *L) -{ - // get this - wxConfigBase *self = (wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - - if (wxConfigBase::Get(false) == self) // clear us from the wxConfigBase - wxConfigBase::Set(NULL); - - // we may not be tracked, but delete us anyway - if (!wxluaO_deletegcobject(L, 1, WXLUA_DELETE_OBJECT_ALL)) - delete self; - - // return the number of parameters - return 0; -} - - - - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Read_overload[] = -{ - { wxLua_wxConfigBase_Read1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Read1 }, - { wxLua_wxConfigBase_Read, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxConfigBase_Read }, -}; -static int s_wxluafunc_wxLua_wxConfigBase_Read_overload_count = sizeof(s_wxluafunc_wxLua_wxConfigBase_Read_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigBase_Write_overload[] = -{ - { wxLua_wxConfigBase_Write1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Write1 }, - { wxLua_wxConfigBase_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxConfigBase_Write }, -}; -static int s_wxluafunc_wxLua_wxConfigBase_Write_overload_count = sizeof(s_wxluafunc_wxLua_wxConfigBase_Write_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -void wxLua_wxConfigBase_delete_function(void** p) -{ - wxConfigBase* o = (wxConfigBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxConfigBase_methods[] = { - { "Create", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxConfigBase_Create, 1, NULL }, - { "DeleteAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_DeleteAll, 1, NULL }, - { "DeleteEntry", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_DeleteEntry, 1, NULL }, - { "DeleteGroup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_DeleteGroup, 1, NULL }, - { "DontCreateOnDemand", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxConfigBase_DontCreateOnDemand, 1, NULL }, - { "Exists", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_Exists, 1, NULL }, - { "Flush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_Flush, 1, NULL }, - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxConfigBase_Get, 1, NULL }, - { "GetAppName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetAppName, 1, NULL }, - { "GetEntryType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetEntryType, 1, NULL }, - { "GetFirstEntry", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetFirstEntry, 1, NULL }, - { "GetFirstGroup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetFirstGroup, 1, NULL }, - { "GetNextEntry", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetNextEntry, 1, NULL }, - { "GetNextGroup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetNextGroup, 1, NULL }, - { "GetNumberOfEntries", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetNumberOfEntries, 1, NULL }, - { "GetNumberOfGroups", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetNumberOfGroups, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetPath, 1, NULL }, - { "GetVendorName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_GetVendorName, 1, NULL }, - { "HasEntry", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_HasEntry, 1, NULL }, - { "HasGroup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_HasGroup, 1, NULL }, - { "IsExpandingEnvVars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_IsExpandingEnvVars, 1, NULL }, - { "IsRecordingDefaults", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_IsRecordingDefaults, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "Read", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_Read_overload, s_wxluafunc_wxLua_wxConfigBase_Read_overload_count, 0 }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { "RenameEntry", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_RenameEntry, 1, NULL }, - { "RenameGroup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_RenameGroup, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxConfigBase_Set, 1, NULL }, - { "SetExpandEnvVars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_SetExpandEnvVars, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_SetPath, 1, NULL }, - { "SetRecordDefaults", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_SetRecordDefaults, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigBase_Write_overload, s_wxluafunc_wxLua_wxConfigBase_Write_overload_count, 0 }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxConfigBase_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxConfigBase_methodCount = sizeof(wxConfigBase_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxConfigBase_enums[] = { -#if wxLUA_USE_wxConfig && wxUSE_CONFIG - { "Type_Boolean", wxConfigBase::Type_Boolean }, - { "Type_Float", wxConfigBase::Type_Float }, - { "Type_Integer", wxConfigBase::Type_Integer }, - { "Type_String", wxConfigBase::Type_String }, - { "Type_Unknown", wxConfigBase::Type_Unknown }, -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - - { NULL, 0, }, -}; -int wxConfigBase_enumCount = sizeof(wxConfigBase_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG -// --------------------------------------------------------------------------- -// Bind class wxConfig -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxConfig' -int wxluatype_wxConfig = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfig_delete[] = { &wxluatype_wxConfig, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfig_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxConfig_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfig_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxConfig_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfig_constructor[1] = {{ wxLua_wxConfig_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxConfig_constructor }}; -// wxConfig(const wxString& appName = "", const wxString& vendorName = "", const wxString& localFilename = "", const wxString& globalFilename = "", long style = 0); -static int LUACALL wxLua_wxConfig_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxString globalFilename = "" - const wxString globalFilename = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString localFilename = "" - const wxString localFilename = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString vendorName = "" - const wxString vendorName = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString appName = "" - const wxString appName = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxConfig* returns = new wxConfig(appName, vendorName, localFilename, globalFilename, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxConfig); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfig); - - return 1; -} - - - - -void wxLua_wxConfig_delete_function(void** p) -{ - wxConfig* o = (wxConfig*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxConfig_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxConfig_delete, 1, NULL }, - { "wxConfig", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxConfig_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxConfig_methodCount = sizeof(wxConfig_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG -// --------------------------------------------------------------------------- -// Bind class wxFileConfig -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileConfig' -int wxluatype_wxFileConfig = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_DisableAutoSave[] = { &wxluatype_wxFileConfig, NULL }; -static int LUACALL wxLua_wxFileConfig_DisableAutoSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_DisableAutoSave[1] = {{ wxLua_wxFileConfig_DisableAutoSave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_DisableAutoSave }}; -// %wxchkver_3_1_3 void DisableAutoSave(); -static int LUACALL wxLua_wxFileConfig_DisableAutoSave(lua_State *L) -{ - // get this - wxFileConfig * self = (wxFileConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileConfig); - // call DisableAutoSave - self->DisableAutoSave(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_EnableAutoSave[] = { &wxluatype_wxFileConfig, NULL }; -static int LUACALL wxLua_wxFileConfig_EnableAutoSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_EnableAutoSave[1] = {{ wxLua_wxFileConfig_EnableAutoSave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_EnableAutoSave }}; -// %wxchkver_3_1_3 void EnableAutoSave(); -static int LUACALL wxLua_wxFileConfig_EnableAutoSave(lua_State *L) -{ - // get this - wxFileConfig * self = (wxFileConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileConfig); - // call EnableAutoSave - self->EnableAutoSave(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_GetGlobalFile[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileConfig_GetGlobalFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_GetGlobalFile[1] = {{ wxLua_wxFileConfig_GetGlobalFile, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_GetGlobalFile }}; -// static wxFileName GetGlobalFile(const wxString& basename); -static int LUACALL wxLua_wxFileConfig_GetGlobalFile(lua_State *L) -{ - // const wxString basename - const wxString basename = wxlua_getwxStringtype(L, 1); - // call GetGlobalFile - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileConfig::GetGlobalFile(basename)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_GetGlobalFileName[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileConfig_GetGlobalFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_GetGlobalFileName[1] = {{ wxLua_wxFileConfig_GetGlobalFileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_GetGlobalFileName }}; -// static wxString GetGlobalFileName(const wxString& szFile); -static int LUACALL wxLua_wxFileConfig_GetGlobalFileName(lua_State *L) -{ - // const wxString szFile - const wxString szFile = wxlua_getwxStringtype(L, 1); - // call GetGlobalFileName - wxString returns = (wxFileConfig::GetGlobalFileName(szFile)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_GetLocalFile[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileConfig_GetLocalFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_GetLocalFile[1] = {{ wxLua_wxFileConfig_GetLocalFile, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileConfig_GetLocalFile }}; -// static wxFileName GetLocalFile(const wxString& basename, int style = 0); -static int LUACALL wxLua_wxFileConfig_GetLocalFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = 0 - int style = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString basename - const wxString basename = wxlua_getwxStringtype(L, 1); - // call GetLocalFile - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileConfig::GetLocalFile(basename, style)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_GetLocalFileName[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileConfig_GetLocalFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_GetLocalFileName[1] = {{ wxLua_wxFileConfig_GetLocalFileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileConfig_GetLocalFileName }}; -// static wxString GetLocalFileName(const wxString& szFile, int style = 0); -static int LUACALL wxLua_wxFileConfig_GetLocalFileName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = 0 - int style = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString szFile - const wxString szFile = wxlua_getwxStringtype(L, 1); - // call GetLocalFileName - wxString returns = (wxFileConfig::GetLocalFileName(szFile, style)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_Save[] = { &wxluatype_wxFileConfig, &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxFileConfig_Save(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_Save[1] = {{ wxLua_wxFileConfig_Save, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileConfig_Save }}; -// virtual bool Save(wxOutputStream& os); //, const wxMBConv& conv = wxConvAuto()); -static int LUACALL wxLua_wxFileConfig_Save(lua_State *L) -{ - // wxOutputStream os - wxOutputStream * os = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxFileConfig * self = (wxFileConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileConfig); - // call Save - bool returns = (self->Save(*os)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_SetUmask[] = { &wxluatype_wxFileConfig, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileConfig_SetUmask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_SetUmask[1] = {{ wxLua_wxFileConfig_SetUmask, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileConfig_SetUmask }}; -// void SetUmask(int mode); -static int LUACALL wxLua_wxFileConfig_SetUmask(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxFileConfig * self = (wxFileConfig *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileConfig); - // call SetUmask - self->SetUmask(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_delete[] = { &wxluatype_wxFileConfig, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_delete }}; - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_constructor1[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxFileConfig_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_constructor1[1] = {{ wxLua_wxFileConfig_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_constructor1 }}; -// wxFileConfig(wxInputStream& is); //, const wxMBConv& conv = wxConvAuto()); -static int LUACALL wxLua_wxFileConfig_constructor1(lua_State *L) -{ - // wxInputStream is - wxInputStream * is = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call constructor - wxFileConfig* returns = new wxFileConfig(*is); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileConfig); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileConfig); - - return 1; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileConfig_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileConfig_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_constructor[1] = {{ wxLua_wxFileConfig_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxFileConfig_constructor }}; -// wxFileConfig(const wxString& appName = "", const wxString& vendorName = "", const wxString& localFilename = "", const wxString& globalFilename = "", long style = wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE); //, wxMBConv& conv = wxConvUTF8); -static int LUACALL wxLua_wxFileConfig_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxCONFIG_USE_LOCAL_FILE | wxCONFIG_USE_GLOBAL_FILE); - // const wxString globalFilename = "" - const wxString globalFilename = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString localFilename = "" - const wxString localFilename = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString vendorName = "" - const wxString vendorName = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString appName = "" - const wxString appName = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxFileConfig* returns = new wxFileConfig(appName, vendorName, localFilename, globalFilename, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileConfig); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileConfig); - - return 1; -} - - - - -#if ((wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS))||(wxLUA_USE_wxConfig && wxUSE_CONFIG) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileConfig_constructor_overload[] = -{ - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) - { wxLua_wxFileConfig_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileConfig_constructor1 }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) - { wxLua_wxFileConfig_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxFileConfig_constructor }, -}; -static int s_wxluafunc_wxLua_wxFileConfig_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFileConfig_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS))||(wxLUA_USE_wxConfig && wxUSE_CONFIG) - -void wxLua_wxFileConfig_delete_function(void** p) -{ - wxFileConfig* o = (wxFileConfig*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileConfig_methods[] = { -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "DisableAutoSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileConfig_DisableAutoSave, 1, NULL }, - { "EnableAutoSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileConfig_EnableAutoSave, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) - { "GetGlobalFile", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileConfig_GetGlobalFile, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) - - { "GetGlobalFileName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileConfig_GetGlobalFileName, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) - { "GetLocalFile", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileConfig_GetLocalFile, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileName) - - { "GetLocalFileName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileConfig_GetLocalFileName, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) - { "Save", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileConfig_Save, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS) - - { "SetUmask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileConfig_SetUmask, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileConfig_delete, 1, NULL }, - -#if ((wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS))||(wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "wxFileConfig", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileConfig_constructor_overload, s_wxluafunc_wxLua_wxFileConfig_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxUSE_STREAMS))||(wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { 0, 0, 0, 0 }, -}; - -int wxFileConfig_methodCount = sizeof(wxFileConfig_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG -// --------------------------------------------------------------------------- -// Bind class wxMemoryConfig -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMemoryConfig' -int wxluatype_wxMemoryConfig = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryConfig_delete[] = { &wxluatype_wxMemoryConfig, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryConfig_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMemoryConfig_delete }}; - -static int LUACALL wxLua_wxMemoryConfig_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryConfig_constructor[1] = {{ wxLua_wxMemoryConfig_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMemoryConfig(); -static int LUACALL wxLua_wxMemoryConfig_constructor(lua_State *L) -{ - // call constructor - wxMemoryConfig* returns = new wxMemoryConfig(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryConfig); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryConfig); - - return 1; -} - - - - -void wxLua_wxMemoryConfig_delete_function(void** p) -{ - wxMemoryConfig* o = (wxMemoryConfig*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMemoryConfig_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMemoryConfig_delete, 1, NULL }, - { "wxMemoryConfig", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMemoryConfig_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMemoryConfig_methodCount = sizeof(wxMemoryConfig_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - - -#if wxLUA_USE_wxConfig && wxUSE_CONFIG -// --------------------------------------------------------------------------- -// Bind class wxConfigPathChanger -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxConfigPathChanger' -int wxluatype_wxConfigPathChanger = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigPathChanger_Name[] = { &wxluatype_wxConfigPathChanger, NULL }; -static int LUACALL wxLua_wxConfigPathChanger_Name(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigPathChanger_Name[1] = {{ wxLua_wxConfigPathChanger_Name, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigPathChanger_Name }}; -// wxString Name() const; -static int LUACALL wxLua_wxConfigPathChanger_Name(lua_State *L) -{ - // get this - wxConfigPathChanger * self = (wxConfigPathChanger *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigPathChanger); - // call Name - wxString returns = (self->Name()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigPathChanger_UpdateIfDeleted[] = { &wxluatype_wxConfigPathChanger, NULL }; -static int LUACALL wxLua_wxConfigPathChanger_UpdateIfDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigPathChanger_UpdateIfDeleted[1] = {{ wxLua_wxConfigPathChanger_UpdateIfDeleted, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxConfigPathChanger_UpdateIfDeleted }}; -// %wxchkver_2_8 void UpdateIfDeleted(); -static int LUACALL wxLua_wxConfigPathChanger_UpdateIfDeleted(lua_State *L) -{ - // get this - wxConfigPathChanger * self = (wxConfigPathChanger *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigPathChanger); - // call UpdateIfDeleted - self->UpdateIfDeleted(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigPathChanger_delete[] = { &wxluatype_wxConfigPathChanger, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigPathChanger_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxConfigPathChanger_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxConfigPathChanger_constructor[] = { &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxConfigPathChanger_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxConfigPathChanger_constructor[1] = {{ wxLua_wxConfigPathChanger_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxConfigPathChanger_constructor }}; -// wxConfigPathChanger(const wxConfigBase *pContainer, const wxString& strEntry); -static int LUACALL wxLua_wxConfigPathChanger_constructor(lua_State *L) -{ - // const wxString strEntry - const wxString strEntry = wxlua_getwxStringtype(L, 2); - // const wxConfigBase pContainer - const wxConfigBase * pContainer = (const wxConfigBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxConfigBase); - // call constructor - wxConfigPathChanger* returns = new wxConfigPathChanger(pContainer, strEntry); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxConfigPathChanger); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxConfigPathChanger); - - return 1; -} - - - - -void wxLua_wxConfigPathChanger_delete_function(void** p) -{ - wxConfigPathChanger* o = (wxConfigPathChanger*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxConfigPathChanger_methods[] = { - { "Name", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigPathChanger_Name, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "UpdateIfDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxConfigPathChanger_UpdateIfDeleted, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxConfigPathChanger_delete, 1, NULL }, - { "wxConfigPathChanger", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxConfigPathChanger_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxConfigPathChanger_methodCount = sizeof(wxConfigPathChanger_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxConfig && wxUSE_CONFIG - diff --git a/wxLua/modules/wxbind/src/wxbase_data.cpp b/wxLua/modules/wxbind/src/wxbase_data.cpp deleted file mode 100644 index 55584b8a..00000000 --- a/wxLua/modules/wxbind/src/wxbase_data.cpp +++ /dev/null @@ -1,5893 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxbase_data.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxbase_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - -// --------------------------------------------------------------------------- -// Bind class wxString -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxString' -int wxluatype_wxString = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_AfterFirst[] = { &wxluatype_wxString, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_AfterFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_AfterFirst[1] = {{ wxLua_wxString_AfterFirst, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_AfterFirst }}; -// wxString AfterFirst(wxChar ch) const; -static int LUACALL wxLua_wxString_AfterFirst(lua_State *L) -{ - // wxChar ch - wxChar ch = (wxChar)wxlua_getnumbertype(L, 2); - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call AfterFirst - wxString returns = (self->AfterFirst(ch)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_AfterLast[] = { &wxluatype_wxString, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_AfterLast(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_AfterLast[1] = {{ wxLua_wxString_AfterLast, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_AfterLast }}; -// wxString AfterLast(wxChar ch) const; -static int LUACALL wxLua_wxString_AfterLast(lua_State *L) -{ - // wxChar ch - wxChar ch = (wxChar)wxlua_getnumbertype(L, 2); - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call AfterLast - wxString returns = (self->AfterLast(ch)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_BeforeFirst[] = { &wxluatype_wxString, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_BeforeFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_BeforeFirst[1] = {{ wxLua_wxString_BeforeFirst, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_BeforeFirst }}; -// wxString BeforeFirst(wxChar ch) const; -static int LUACALL wxLua_wxString_BeforeFirst(lua_State *L) -{ - // wxChar ch - wxChar ch = (wxChar)wxlua_getnumbertype(L, 2); - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call BeforeFirst - wxString returns = (self->BeforeFirst(ch)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_BeforeLast[] = { &wxluatype_wxString, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_BeforeLast(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_BeforeLast[1] = {{ wxLua_wxString_BeforeLast, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_BeforeLast }}; -// wxString BeforeLast(wxChar ch) const; -static int LUACALL wxLua_wxString_BeforeLast(lua_State *L) -{ - // wxChar ch - wxChar ch = (wxChar)wxlua_getnumbertype(L, 2); - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call BeforeLast - wxString returns = (self->BeforeLast(ch)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_From8BitData[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxString_From8BitData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_From8BitData[1] = {{ wxLua_wxString_From8BitData, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxString_From8BitData }}; -// static wxString From8BitData(const char* s); -static int LUACALL wxLua_wxString_From8BitData(lua_State *L) -{ - // const char s - const char * s = wxlua_getstringtype(L, 1); - // call From8BitData - wxString returns = (wxString::From8BitData(s)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_FromUTF8[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxString_FromUTF8(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_FromUTF8[1] = {{ wxLua_wxString_FromUTF8, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxString_FromUTF8 }}; -// static wxString FromUTF8(const char* s); -static int LUACALL wxLua_wxString_FromUTF8(lua_State *L) -{ - // const char s - const char * s = wxlua_getstringtype(L, 1); - // call FromUTF8 - wxString returns = (wxString::FromUTF8(s)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_FromUTF8Unchecked[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxString_FromUTF8Unchecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_FromUTF8Unchecked[1] = {{ wxLua_wxString_FromUTF8Unchecked, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxString_FromUTF8Unchecked }}; -// static wxString FromUTF8Unchecked(const char* s); -static int LUACALL wxLua_wxString_FromUTF8Unchecked(lua_State *L) -{ - // const char s - const char * s = wxlua_getstringtype(L, 1); - // call FromUTF8Unchecked - wxString returns = (wxString::FromUTF8Unchecked(s)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_GetData[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_GetData[1] = {{ wxLua_wxString_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_GetData }}; -// wxString GetData() const; -static int LUACALL wxLua_wxString_GetData(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call GetData - wxString returns = (self->GetData()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_Len[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_Len(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_Len[1] = {{ wxLua_wxString_Len, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_Len }}; -// size_t Len() const; -static int LUACALL wxLua_wxString_Len(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call Len - size_t returns = (self->Len()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_To8BitData[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_To8BitData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_To8BitData[1] = {{ wxLua_wxString_To8BitData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_To8BitData }}; -// wxCharBuffer To8BitData(); -static int LUACALL wxLua_wxString_To8BitData(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call To8BitData - wxCharBuffer returns = (self->To8BitData()); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_ToUTF8[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_ToUTF8(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_ToUTF8[1] = {{ wxLua_wxString_ToUTF8, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_ToUTF8 }}; -// const wxCharBuffer ToUTF8() const; -static int LUACALL wxLua_wxString_ToUTF8(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call ToUTF8 - wxCharBuffer returns = (self->ToUTF8()); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_begin1[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_begin1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_begin1[1] = {{ wxLua_wxString_begin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_begin1 }}; -// wxString::iterator begin(); -static int LUACALL wxLua_wxString_begin1(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call begin - // allocate a new object using the copy constructor - wxString::iterator* returns = new wxString::iterator(self->begin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_begin[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_begin(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_begin[1] = {{ wxLua_wxString_begin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_begin }}; -// wxString::const_iterator begin() const; -static int LUACALL wxLua_wxString_begin(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call begin - // allocate a new object using the copy constructor - wxString::const_iterator* returns = new wxString::const_iterator(self->begin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_delete[] = { &wxluatype_wxString, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxString_delete }}; - - -#if wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_end1[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_end1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_end1[1] = {{ wxLua_wxString_end1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_end1 }}; -// wxString::iterator end(); -static int LUACALL wxLua_wxString_end1(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call end - // allocate a new object using the copy constructor - wxString::iterator* returns = new wxString::iterator(self->end()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_end[] = { &wxluatype_wxString, NULL }; -static int LUACALL wxLua_wxString_end(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_end[1] = {{ wxLua_wxString_end, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_end }}; -// wxString::const_iterator end() const; -static int LUACALL wxLua_wxString_end(lua_State *L) -{ - // get this - wxString * self = (wxString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString); - // call end - // allocate a new object using the copy constructor - wxString::const_iterator* returns = new wxString::const_iterator(self->end()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxString_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_constructor[1] = {{ wxLua_wxString_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxString_constructor }}; -// %override wxLua_wxString_constructor -// wxString(const wxString& str = "") -static int LUACALL wxLua_wxString_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString str = "" - const wxString str = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxString* returns = new wxString(str); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,9,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_begin_overload[] = -{ - -#if wxCHECK_VERSION(2,9,0) - { wxLua_wxString_begin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_begin1 }, -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(2,9,0) - { wxLua_wxString_begin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_begin }, -#endif // wxCHECK_VERSION(2,9,0) -}; -static int s_wxluafunc_wxLua_wxString_begin_overload_count = sizeof(s_wxluafunc_wxLua_wxString_begin_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_end_overload[] = -{ - -#if wxCHECK_VERSION(2,9,0) - { wxLua_wxString_end1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_end1 }, -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(2,9,0) - { wxLua_wxString_end, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_end }, -#endif // wxCHECK_VERSION(2,9,0) -}; -static int s_wxluafunc_wxLua_wxString_end_overload_count = sizeof(s_wxluafunc_wxLua_wxString_end_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,9,0)) - -void wxLua_wxString_delete_function(void** p) -{ - wxString* o = (wxString*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxString_methods[] = { - { "AfterFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_AfterFirst, 1, NULL }, - { "AfterLast", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_AfterLast, 1, NULL }, - { "BeforeFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_BeforeFirst, 1, NULL }, - { "BeforeLast", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_BeforeLast, 1, NULL }, - { "From8BitData", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxString_From8BitData, 1, NULL }, - { "FromUTF8", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxString_FromUTF8, 1, NULL }, - { "FromUTF8Unchecked", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxString_FromUTF8Unchecked, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_GetData, 1, NULL }, - { "Len", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_Len, 1, NULL }, - { "To8BitData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_To8BitData, 1, NULL }, - { "ToUTF8", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_ToUTF8, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,0)) - { "begin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_begin_overload, s_wxluafunc_wxLua_wxString_begin_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,9,0)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxString_delete, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,0)) - { "end", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_end_overload, s_wxluafunc_wxLua_wxString_end_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,9,0)) - - { "wxString", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxString_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxString_methodCount = sizeof(wxString_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxCHECK_VERSION(2,9,0) -// --------------------------------------------------------------------------- -// Bind class wxString::const_iterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxString::const_iterator' -int wxluatype_wxString_const_iterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_delete[] = { &wxluatype_wxString_const_iterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxString_const_iterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_op_add[] = { &wxluatype_wxString_const_iterator, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_const_iterator_op_add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_op_add[1] = {{ wxLua_wxString_const_iterator_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_const_iterator_op_add }}; -// wxString::const_iterator operator+(wxIntPtr n) const; -static int LUACALL wxLua_wxString_const_iterator_op_add(lua_State *L) -{ - // wxIntPtr n - wxIntPtr n = (wxIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxString::const_iterator * self = (wxString::const_iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_const_iterator); - // call op_add - // allocate a new object using the copy constructor - wxString::const_iterator* returns = new wxString::const_iterator((*self)+(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_op_deref[] = { &wxluatype_wxString_const_iterator, NULL }; -static int LUACALL wxLua_wxString_const_iterator_op_deref(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_op_deref[1] = {{ wxLua_wxString_const_iterator_op_deref, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_const_iterator_op_deref }}; -// char operator*() const; -static int LUACALL wxLua_wxString_const_iterator_op_deref(lua_State *L) -{ - // get this - wxString::const_iterator * self = (wxString::const_iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_const_iterator); - // call op_deref - char returns = (*(*self)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_op_set[] = { &wxluatype_wxString_const_iterator, &wxluatype_wxString_const_iterator, NULL }; -static int LUACALL wxLua_wxString_const_iterator_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_op_set[1] = {{ wxLua_wxString_const_iterator_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_const_iterator_op_set }}; -// wxString::const_iterator& operator=(const wxString::const_iterator& i); -static int LUACALL wxLua_wxString_const_iterator_op_set(lua_State *L) -{ - // const wxString::const_iterator i - const wxString::const_iterator * i = (const wxString::const_iterator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxString_const_iterator); - // get this - wxString::const_iterator * self = (wxString::const_iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_const_iterator); - // call op_set - (*self)=(*i); - wxString::const_iterator* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_op_sub[] = { &wxluatype_wxString_const_iterator, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_const_iterator_op_sub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_op_sub[1] = {{ wxLua_wxString_const_iterator_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_const_iterator_op_sub }}; -// wxString::const_iterator operator-(wxIntPtr n) const; -static int LUACALL wxLua_wxString_const_iterator_op_sub(lua_State *L) -{ - // wxIntPtr n - wxIntPtr n = (wxIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxString::const_iterator * self = (wxString::const_iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_const_iterator); - // call op_sub - // allocate a new object using the copy constructor - wxString::const_iterator* returns = new wxString::const_iterator((*self)-(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_constructor2[] = { &wxluatype_wxString_iterator, NULL }; -static int LUACALL wxLua_wxString_const_iterator_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_constructor2[1] = {{ wxLua_wxString_const_iterator_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxString_const_iterator_constructor2 }}; -// wxString::const_iterator(const wxString::iterator& i); -static int LUACALL wxLua_wxString_const_iterator_constructor2(lua_State *L) -{ - // const wxString::iterator i - const wxString::iterator * i = (const wxString::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_iterator); - // call constructor - wxString::const_iterator* returns = new wxString::const_iterator(*i); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_const_iterator_constructor1[] = { &wxluatype_wxString_const_iterator, NULL }; -static int LUACALL wxLua_wxString_const_iterator_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_constructor1[1] = {{ wxLua_wxString_const_iterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxString_const_iterator_constructor1 }}; -// wxString::const_iterator(const wxString::const_iterator& i); -static int LUACALL wxLua_wxString_const_iterator_constructor1(lua_State *L) -{ - // const wxString::const_iterator i - const wxString::const_iterator * i = (const wxString::const_iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_const_iterator); - // call constructor - wxString::const_iterator* returns = new wxString::const_iterator(*i); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - -static int LUACALL wxLua_wxString_const_iterator_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_constructor[1] = {{ wxLua_wxString_const_iterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxString::const_iterator(); -static int LUACALL wxLua_wxString_const_iterator_constructor(lua_State *L) -{ - // call constructor - wxString::const_iterator* returns = new wxString::const_iterator(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_const_iterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_const_iterator); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,9,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_const_iterator_constructor_overload[] = -{ - { wxLua_wxString_const_iterator_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxString_const_iterator_constructor2 }, - { wxLua_wxString_const_iterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxString_const_iterator_constructor1 }, - { wxLua_wxString_const_iterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxString_const_iterator_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxString_const_iterator_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,9,0)) - -void wxLua_wxString_const_iterator_delete_function(void** p) -{ - wxString::const_iterator* o = (wxString::const_iterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxString_const_iterator_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxString_const_iterator_delete, 1, NULL }, - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_const_iterator_op_add, 1, NULL }, - { "op_deref", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_const_iterator_op_deref, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_const_iterator_op_set, 1, NULL }, - { "op_sub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_const_iterator_op_sub, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,0)) - { "wxString_const_iterator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxString_const_iterator_constructor_overload, s_wxluafunc_wxLua_wxString_const_iterator_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,9,0)) - - { 0, 0, 0, 0 }, -}; - -int wxString_const_iterator_methodCount = sizeof(wxString_const_iterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,9,0) - - -#if wxCHECK_VERSION(2,9,0) -// --------------------------------------------------------------------------- -// Bind class wxString::iterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxString::iterator' -int wxluatype_wxString_iterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_iterator_delete[] = { &wxluatype_wxString_iterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxString_iterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_iterator_op_add[] = { &wxluatype_wxString_iterator, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_iterator_op_add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_op_add[1] = {{ wxLua_wxString_iterator_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_iterator_op_add }}; -// wxString::iterator operator+(wxIntPtr n) const; -static int LUACALL wxLua_wxString_iterator_op_add(lua_State *L) -{ - // wxIntPtr n - wxIntPtr n = (wxIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxString::iterator * self = (wxString::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_iterator); - // call op_add - // allocate a new object using the copy constructor - wxString::iterator* returns = new wxString::iterator((*self)+(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_iterator_op_deref[] = { &wxluatype_wxString_iterator, NULL }; -static int LUACALL wxLua_wxString_iterator_op_deref(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_op_deref[1] = {{ wxLua_wxString_iterator_op_deref, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxString_iterator_op_deref }}; -// char operator*() const; -static int LUACALL wxLua_wxString_iterator_op_deref(lua_State *L) -{ - // get this - wxString::iterator * self = (wxString::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_iterator); - // call op_deref - char returns = (*(*self)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_iterator_op_set[] = { &wxluatype_wxString_iterator, &wxluatype_wxString_iterator, NULL }; -static int LUACALL wxLua_wxString_iterator_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_op_set[1] = {{ wxLua_wxString_iterator_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_iterator_op_set }}; -// wxString::iterator& operator=(const wxString::iterator& i); -static int LUACALL wxLua_wxString_iterator_op_set(lua_State *L) -{ - // const wxString::iterator i - const wxString::iterator * i = (const wxString::iterator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxString_iterator); - // get this - wxString::iterator * self = (wxString::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_iterator); - // call op_set - (*self)=(*i); - wxString::iterator* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_iterator_op_sub[] = { &wxluatype_wxString_iterator, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxString_iterator_op_sub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_op_sub[1] = {{ wxLua_wxString_iterator_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxString_iterator_op_sub }}; -// wxString::iterator operator-(wxIntPtr n) const; -static int LUACALL wxLua_wxString_iterator_op_sub(lua_State *L) -{ - // wxIntPtr n - wxIntPtr n = (wxIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxString::iterator * self = (wxString::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_iterator); - // call op_sub - // allocate a new object using the copy constructor - wxString::iterator* returns = new wxString::iterator((*self)-(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxString_iterator_constructor1[] = { &wxluatype_wxString_iterator, NULL }; -static int LUACALL wxLua_wxString_iterator_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_constructor1[1] = {{ wxLua_wxString_iterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxString_iterator_constructor1 }}; -// wxString::iterator(const wxString::iterator& i); -static int LUACALL wxLua_wxString_iterator_constructor1(lua_State *L) -{ - // const wxString::iterator i - const wxString::iterator * i = (const wxString::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxString_iterator); - // call constructor - wxString::iterator* returns = new wxString::iterator(*i); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_iterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - -static int LUACALL wxLua_wxString_iterator_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_constructor[1] = {{ wxLua_wxString_iterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxString::iterator(); -static int LUACALL wxLua_wxString_iterator_constructor(lua_State *L) -{ - // call constructor - wxString::iterator* returns = new wxString::iterator(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxString_iterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxString_iterator); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,9,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxString_iterator_constructor_overload[] = -{ - { wxLua_wxString_iterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxString_iterator_constructor1 }, - { wxLua_wxString_iterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxString_iterator_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxString_iterator_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,9,0)) - -void wxLua_wxString_iterator_delete_function(void** p) -{ - wxString::iterator* o = (wxString::iterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxString_iterator_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxString_iterator_delete, 1, NULL }, - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_iterator_op_add, 1, NULL }, - { "op_deref", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_iterator_op_deref, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_iterator_op_set, 1, NULL }, - { "op_sub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxString_iterator_op_sub, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,0)) - { "wxString_iterator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxString_iterator_constructor_overload, s_wxluafunc_wxLua_wxString_iterator_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,9,0)) - - { 0, 0, 0, 0 }, -}; - -int wxString_iterator_methodCount = sizeof(wxString_iterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,9,0) - -// --------------------------------------------------------------------------- -// Bind class wxUniChar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxUniChar' -int wxluatype_wxUniChar = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_GetValue[] = { &wxluatype_wxUniChar, NULL }; -static int LUACALL wxLua_wxUniChar_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_GetValue[1] = {{ wxLua_wxUniChar_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_GetValue }}; -// wxUint32 GetValue() const; -static int LUACALL wxLua_wxUniChar_GetValue(lua_State *L) -{ - // get this - wxUniChar * self = (wxUniChar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUniChar); - // call GetValue - wxUint32 returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_HighSurrogate1[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxUniChar_HighSurrogate1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_HighSurrogate1[1] = {{ wxLua_wxUniChar_HighSurrogate1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_HighSurrogate1 }}; -// %wxchkver_3_1_1 static wxUint16 HighSurrogate(wxUint32 value); -static int LUACALL wxLua_wxUniChar_HighSurrogate1(lua_State *L) -{ - // wxUint32 value - wxUint32 value = (wxUint32)wxlua_getuintegertype(L, 1); - // call HighSurrogate - wxUint16 returns = (wxUniChar::HighSurrogate(value)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_HighSurrogate[] = { &wxluatype_wxUniChar, NULL }; -static int LUACALL wxLua_wxUniChar_HighSurrogate(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_HighSurrogate[1] = {{ wxLua_wxUniChar_HighSurrogate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_HighSurrogate }}; -// %wxchkver_3_1_1 wxUint16 HighSurrogate() const; -static int LUACALL wxLua_wxUniChar_HighSurrogate(lua_State *L) -{ - // get this - wxUniChar * self = (wxUniChar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUniChar); - // call HighSurrogate - wxUint16 returns = (self->HighSurrogate()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_IsAscii[] = { &wxluatype_wxUniChar, NULL }; -static int LUACALL wxLua_wxUniChar_IsAscii(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsAscii[1] = {{ wxLua_wxUniChar_IsAscii, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsAscii }}; -// bool IsAscii() const; -static int LUACALL wxLua_wxUniChar_IsAscii(lua_State *L) -{ - // get this - wxUniChar * self = (wxUniChar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUniChar); - // call IsAscii - bool returns = (self->IsAscii()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_IsBMP1[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxUniChar_IsBMP1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsBMP1[1] = {{ wxLua_wxUniChar_IsBMP1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsBMP1 }}; -// %wxchkver_3_1_1 static bool IsBMP(wxUint32 value); -static int LUACALL wxLua_wxUniChar_IsBMP1(lua_State *L) -{ - // wxUint32 value - wxUint32 value = (wxUint32)wxlua_getuintegertype(L, 1); - // call IsBMP - bool returns = (wxUniChar::IsBMP(value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_IsBMP[] = { &wxluatype_wxUniChar, NULL }; -static int LUACALL wxLua_wxUniChar_IsBMP(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsBMP[1] = {{ wxLua_wxUniChar_IsBMP, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsBMP }}; -// %wxchkver_3_1_1 bool IsBMP() const; -static int LUACALL wxLua_wxUniChar_IsBMP(lua_State *L) -{ - // get this - wxUniChar * self = (wxUniChar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUniChar); - // call IsBMP - bool returns = (self->IsBMP()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_IsSupplementary1[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxUniChar_IsSupplementary1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsSupplementary1[1] = {{ wxLua_wxUniChar_IsSupplementary1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsSupplementary1 }}; -// %wxchkver_3_1_1 static bool IsSupplementary(wxUint32 value); -static int LUACALL wxLua_wxUniChar_IsSupplementary1(lua_State *L) -{ - // wxUint32 value - wxUint32 value = (wxUint32)wxlua_getuintegertype(L, 1); - // call IsSupplementary - bool returns = (wxUniChar::IsSupplementary(value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_IsSupplementary[] = { &wxluatype_wxUniChar, NULL }; -static int LUACALL wxLua_wxUniChar_IsSupplementary(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsSupplementary[1] = {{ wxLua_wxUniChar_IsSupplementary, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsSupplementary }}; -// %wxchkver_3_1_1 bool IsSupplementary() const; -static int LUACALL wxLua_wxUniChar_IsSupplementary(lua_State *L) -{ - // get this - wxUniChar * self = (wxUniChar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUniChar); - // call IsSupplementary - bool returns = (self->IsSupplementary()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_LowSurrogate1[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxUniChar_LowSurrogate1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_LowSurrogate1[1] = {{ wxLua_wxUniChar_LowSurrogate1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_LowSurrogate1 }}; -// %wxchkver_3_1_1 static wxUint16 LowSurrogate(wxUint32 value); -static int LUACALL wxLua_wxUniChar_LowSurrogate1(lua_State *L) -{ - // wxUint32 value - wxUint32 value = (wxUint32)wxlua_getuintegertype(L, 1); - // call LowSurrogate - wxUint16 returns = (wxUniChar::LowSurrogate(value)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_LowSurrogate[] = { &wxluatype_wxUniChar, NULL }; -static int LUACALL wxLua_wxUniChar_LowSurrogate(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_LowSurrogate[1] = {{ wxLua_wxUniChar_LowSurrogate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_LowSurrogate }}; -// %wxchkver_3_1_1 wxUint16 LowSurrogate() const; -static int LUACALL wxLua_wxUniChar_LowSurrogate(lua_State *L) -{ - // get this - wxUniChar * self = (wxUniChar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUniChar); - // call LowSurrogate - wxUint16 returns = (self->LowSurrogate()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_delete[] = { &wxluatype_wxUniChar, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUniChar_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxUniChar_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_constructor[1] = {{ wxLua_wxUniChar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxUniChar_constructor }}; -// %override wxLua_wxUniChar_constructor -// wxUniChar(const string& str = "") -static int LUACALL wxLua_wxUniChar_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxUniChar c - const wxUniChar c = (argCount >= 1 ? wxlua_getwxUniChartype(L, 1) : wxUniChar()); - // call constructor - wxUniChar* returns = new wxUniChar(c); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxUniChar); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxUniChar); - - return 1; -} - - - - -#if (wxCHECK_VERSION(3,1,1)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_HighSurrogate_overload[] = -{ - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_HighSurrogate1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_HighSurrogate1 }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_HighSurrogate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_HighSurrogate }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxUniChar_HighSurrogate_overload_count = sizeof(s_wxluafunc_wxLua_wxUniChar_HighSurrogate_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsBMP_overload[] = -{ - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_IsBMP1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsBMP1 }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_IsBMP, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsBMP }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxUniChar_IsBMP_overload_count = sizeof(s_wxluafunc_wxLua_wxUniChar_IsBMP_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_IsSupplementary_overload[] = -{ - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_IsSupplementary1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsSupplementary1 }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_IsSupplementary, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_IsSupplementary }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxUniChar_IsSupplementary_overload_count = sizeof(s_wxluafunc_wxLua_wxUniChar_IsSupplementary_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUniChar_LowSurrogate_overload[] = -{ - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_LowSurrogate1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_LowSurrogate1 }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxUniChar_LowSurrogate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUniChar_LowSurrogate }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxUniChar_LowSurrogate_overload_count = sizeof(s_wxluafunc_wxLua_wxUniChar_LowSurrogate_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,1)) - -void wxLua_wxUniChar_delete_function(void** p) -{ - wxUniChar* o = (wxUniChar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxUniChar_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUniChar_GetValue, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) - { "HighSurrogate", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUniChar_HighSurrogate_overload, s_wxluafunc_wxLua_wxUniChar_HighSurrogate_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,1)) - - { "IsAscii", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUniChar_IsAscii, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) - { "IsBMP", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUniChar_IsBMP_overload, s_wxluafunc_wxLua_wxUniChar_IsBMP_overload_count, 0 }, - { "IsSupplementary", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUniChar_IsSupplementary_overload, s_wxluafunc_wxLua_wxUniChar_IsSupplementary_overload_count, 0 }, - { "LowSurrogate", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUniChar_LowSurrogate_overload, s_wxluafunc_wxLua_wxUniChar_LowSurrogate_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,1)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxUniChar_delete, 1, NULL }, - { "wxUniChar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxUniChar_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxUniChar_methodCount = sizeof(wxUniChar_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxStringTokenizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStringTokenizer' -int wxluatype_wxStringTokenizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_AllowEmpty[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_AllowEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_AllowEmpty[1] = {{ wxLua_wxStringTokenizer_AllowEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_AllowEmpty }}; -// bool AllowEmpty() const; -static int LUACALL wxLua_wxStringTokenizer_AllowEmpty(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call AllowEmpty - bool returns = (self->AllowEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_CountTokens[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_CountTokens(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_CountTokens[1] = {{ wxLua_wxStringTokenizer_CountTokens, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_CountTokens }}; -// size_t CountTokens() const; -static int LUACALL wxLua_wxStringTokenizer_CountTokens(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call CountTokens - size_t returns = (self->CountTokens()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_GetMode[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_GetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_GetMode[1] = {{ wxLua_wxStringTokenizer_GetMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_GetMode }}; -// wxStringTokenizerMode GetMode() const; -static int LUACALL wxLua_wxStringTokenizer_GetMode(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call GetMode - wxStringTokenizerMode returns = (self->GetMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_GetNextToken[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_GetNextToken(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_GetNextToken[1] = {{ wxLua_wxStringTokenizer_GetNextToken, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_GetNextToken }}; -// wxString GetNextToken(); -static int LUACALL wxLua_wxStringTokenizer_GetNextToken(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call GetNextToken - wxString returns = (self->GetNextToken()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_GetPosition[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_GetPosition[1] = {{ wxLua_wxStringTokenizer_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_GetPosition }}; -// size_t GetPosition() const; -static int LUACALL wxLua_wxStringTokenizer_GetPosition(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call GetPosition - size_t returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_GetString[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_GetString[1] = {{ wxLua_wxStringTokenizer_GetString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_GetString }}; -// wxString GetString() const; -static int LUACALL wxLua_wxStringTokenizer_GetString(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call GetString - wxString returns = (self->GetString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_HasMoreTokens[] = { &wxluatype_wxStringTokenizer, NULL }; -static int LUACALL wxLua_wxStringTokenizer_HasMoreTokens(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_HasMoreTokens[1] = {{ wxLua_wxStringTokenizer_HasMoreTokens, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_HasMoreTokens }}; -// bool HasMoreTokens() const; -static int LUACALL wxLua_wxStringTokenizer_HasMoreTokens(lua_State *L) -{ - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call HasMoreTokens - bool returns = (self->HasMoreTokens()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_Reinit[] = { &wxluatype_wxStringTokenizer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStringTokenizer_Reinit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_Reinit[1] = {{ wxLua_wxStringTokenizer_Reinit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStringTokenizer_Reinit }}; -// void Reinit(const wxString& str); -static int LUACALL wxLua_wxStringTokenizer_Reinit(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call Reinit - self->Reinit(str); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_SetString[] = { &wxluatype_wxStringTokenizer, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStringTokenizer_SetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_SetString[1] = {{ wxLua_wxStringTokenizer_SetString, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxStringTokenizer_SetString }}; -// void SetString(const wxString& str, const wxString& delims = wxDEFAULT_DELIMITERS, wxStringTokenizerMode mode = wxTOKEN_DEFAULT); -static int LUACALL wxLua_wxStringTokenizer_SetString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxStringTokenizerMode mode = wxTOKEN_DEFAULT - wxStringTokenizerMode mode = (argCount >= 4 ? (wxStringTokenizerMode)wxlua_getenumtype(L, 4) : wxTOKEN_DEFAULT); - // const wxString delims = wxDEFAULT_DELIMITERS - const wxString delims = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxDEFAULT_DELIMITERS)); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxStringTokenizer * self = (wxStringTokenizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringTokenizer); - // call SetString - self->SetString(str, delims, mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_delete[] = { &wxluatype_wxStringTokenizer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxStringTokenizer_delete }}; - -static int LUACALL wxLua_wxStringTokenizer_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_constructor[1] = {{ wxLua_wxStringTokenizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStringTokenizer(); -static int LUACALL wxLua_wxStringTokenizer_constructor(lua_State *L) -{ - // call constructor - wxStringTokenizer* returns = new wxStringTokenizer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStringTokenizer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringTokenizer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringTokenizer_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStringTokenizer_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_constructor1[1] = {{ wxLua_wxStringTokenizer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxStringTokenizer_constructor1 }}; -// wxStringTokenizer(const wxString& str, const wxString& delims = wxDEFAULT_DELIMITERS, wxStringTokenizerMode mode = wxTOKEN_DEFAULT); -static int LUACALL wxLua_wxStringTokenizer_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxStringTokenizerMode mode = wxTOKEN_DEFAULT - wxStringTokenizerMode mode = (argCount >= 3 ? (wxStringTokenizerMode)wxlua_getenumtype(L, 3) : wxTOKEN_DEFAULT); - // const wxString delims = wxDEFAULT_DELIMITERS - const wxString delims = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxDEFAULT_DELIMITERS)); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call constructor - wxStringTokenizer* returns = new wxStringTokenizer(str, delims, mode); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStringTokenizer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringTokenizer); - - return 1; -} - - - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringTokenizer_constructor_overload[] = -{ - { wxLua_wxStringTokenizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxStringTokenizer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxStringTokenizer_constructor1 }, -}; -static int s_wxluafunc_wxLua_wxStringTokenizer_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStringTokenizer_constructor_overload)/sizeof(wxLuaBindCFunc); - - -void wxLua_wxStringTokenizer_delete_function(void** p) -{ - wxStringTokenizer* o = (wxStringTokenizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStringTokenizer_methods[] = { - { "AllowEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_AllowEmpty, 1, NULL }, - { "CountTokens", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_CountTokens, 1, NULL }, - { "GetMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_GetMode, 1, NULL }, - { "GetNextToken", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_GetNextToken, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_GetPosition, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_GetString, 1, NULL }, - { "HasMoreTokens", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_HasMoreTokens, 1, NULL }, - { "Reinit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_Reinit, 1, NULL }, - { "SetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringTokenizer_SetString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStringTokenizer_delete, 1, NULL }, - - { "wxStringTokenizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStringTokenizer_constructor_overload, s_wxluafunc_wxLua_wxStringTokenizer_constructor_overload_count, 0 }, - - { 0, 0, 0, 0 }, -}; - -int wxStringTokenizer_methodCount = sizeof(wxStringTokenizer_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxClientData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClientData' -int wxluatype_wxClientData = WXLUA_TUNKNOWN; - - - -void wxLua_wxClientData_delete_function(void** p) -{ - wxClientData* o = (wxClientData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClientData_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxClientData_methodCount = sizeof(wxClientData_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxStringClientData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStringClientData' -int wxluatype_wxStringClientData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringClientData_GetData[] = { &wxluatype_wxStringClientData, NULL }; -static int LUACALL wxLua_wxStringClientData_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringClientData_GetData[1] = {{ wxLua_wxStringClientData_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringClientData_GetData }}; -// wxString GetData() const; -static int LUACALL wxLua_wxStringClientData_GetData(lua_State *L) -{ - // get this - wxStringClientData * self = (wxStringClientData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringClientData); - // call GetData - wxString returns = (self->GetData()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringClientData_SetData[] = { &wxluatype_wxStringClientData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStringClientData_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringClientData_SetData[1] = {{ wxLua_wxStringClientData_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStringClientData_SetData }}; -// void SetData(const wxString& data); -static int LUACALL wxLua_wxStringClientData_SetData(lua_State *L) -{ - // const wxString data - const wxString data = wxlua_getwxStringtype(L, 2); - // get this - wxStringClientData * self = (wxStringClientData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringClientData); - // call SetData - self->SetData(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringClientData_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStringClientData_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringClientData_constructor[1] = {{ wxLua_wxStringClientData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxStringClientData_constructor }}; -// wxStringClientData(const wxString& data = ""); -static int LUACALL wxLua_wxStringClientData_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString data = "" - const wxString data = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxStringClientData* returns = new wxStringClientData(data); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringClientData); - - return 1; -} - - - -void wxLua_wxStringClientData_delete_function(void** p) -{ - wxStringClientData* o = (wxStringClientData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStringClientData_methods[] = { - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringClientData_GetData, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringClientData_SetData, 1, NULL }, - { "wxStringClientData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStringClientData_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxStringClientData_methodCount = sizeof(wxStringClientData_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxClientDataContainer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClientDataContainer' -int wxluatype_wxClientDataContainer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClientDataContainer_GetClientData[] = { &wxluatype_wxClientDataContainer, NULL }; -static int LUACALL wxLua_wxClientDataContainer_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDataContainer_GetClientData[1] = {{ wxLua_wxClientDataContainer_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClientDataContainer_GetClientData }}; -// voidptr_long GetClientData() const; // C++ returns (void *) You get a number here -static int LUACALL wxLua_wxClientDataContainer_GetClientData(lua_State *L) -{ - // get this - wxClientDataContainer * self = (wxClientDataContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClientDataContainer); - // call GetClientData - wxUIntPtr returns = (wxUIntPtr)self->GetClientData(); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClientDataContainer_GetClientObject[] = { &wxluatype_wxClientDataContainer, NULL }; -static int LUACALL wxLua_wxClientDataContainer_GetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDataContainer_GetClientObject[1] = {{ wxLua_wxClientDataContainer_GetClientObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClientDataContainer_GetClientObject }}; -// wxClientData *GetClientObject() const; -static int LUACALL wxLua_wxClientDataContainer_GetClientObject(lua_State *L) -{ - // get this - wxClientDataContainer * self = (wxClientDataContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClientDataContainer); - // call GetClientObject - wxClientData* returns = (wxClientData*)self->GetClientObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClientDataContainer_SetClientData[] = { &wxluatype_wxClientDataContainer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxClientDataContainer_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDataContainer_SetClientData[1] = {{ wxLua_wxClientDataContainer_SetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClientDataContainer_SetClientData }}; -// void SetClientData(voidptr_long data); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxClientDataContainer_SetClientData(lua_State *L) -{ - // voidptr_long data - wxUIntPtr data = (wxUIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxClientDataContainer * self = (wxClientDataContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClientDataContainer); - // call SetClientData - self->SetClientData((void*)data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClientDataContainer_SetClientObject[] = { &wxluatype_wxClientDataContainer, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxClientDataContainer_SetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDataContainer_SetClientObject[1] = {{ wxLua_wxClientDataContainer_SetClientObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClientDataContainer_SetClientObject }}; -// void SetClientObject(wxClientData *data); -static int LUACALL wxLua_wxClientDataContainer_SetClientObject(lua_State *L) -{ - // wxClientData data - wxClientData * data = (wxClientData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClientData); - // get this - wxClientDataContainer * self = (wxClientDataContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClientDataContainer); - // call SetClientObject - self->SetClientObject(data); - - return 0; -} - -static int LUACALL wxLua_wxClientDataContainer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDataContainer_constructor[1] = {{ wxLua_wxClientDataContainer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxClientDataContainer(); -static int LUACALL wxLua_wxClientDataContainer_constructor(lua_State *L) -{ - // call constructor - wxClientDataContainer* returns = new wxClientDataContainer(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientDataContainer); - - return 1; -} - - - -void wxLua_wxClientDataContainer_delete_function(void** p) -{ - wxClientDataContainer* o = (wxClientDataContainer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClientDataContainer_methods[] = { - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClientDataContainer_GetClientData, 1, NULL }, - { "GetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClientDataContainer_GetClientObject, 1, NULL }, - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClientDataContainer_SetClientData, 1, NULL }, - { "SetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClientDataContainer_SetClientObject, 1, NULL }, - { "wxClientDataContainer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxClientDataContainer_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxClientDataContainer_methodCount = sizeof(wxClientDataContainer_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxObject -// --------------------------------------------------------------------------- -// Bind class wxObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxObject' -int wxluatype_wxObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_DynamicCast[] = { &wxluatype_wxObject, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxObject_DynamicCast(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_DynamicCast[1] = {{ wxLua_wxObject_DynamicCast, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxObject_DynamicCast }}; -// %override wxLua_wxObject_DynamicCast -// void *DynamicCast(const char *class) - -// Attempt to cast an object reference (the first parameter) to another type. -// The type requested is specified by the second parameter. Presumably the -// type requested will be derived from the supplied object, otherwise -// bad things will happen. -static int LUACALL wxLua_wxObject_DynamicCast(lua_State *L) -{ - int iResult = 0; - const char *className = lua_tostring(L, 2); - if (className != NULL) - { - // The userdata object must be derived from a wxObject for this - // function be be called. - wxObject *pObject = (wxObject *)wxlua_touserdata(L, 1, false); - //wxObject *pObject = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - - const wxLuaBindClass *wxlClass = wxluaT_getclass(L, className); - if (pObject && wxlClass && wxlClass->classInfo) - { - if (pObject->IsKindOf(wxlClass->classInfo)) - { - if (*wxlClass->wxluatype != wxluaT_type(L, 1)) - wxluaT_pushuserdatatype(L, pObject, *wxlClass->wxluatype); - else - lua_pushvalue(L, 1); // return same userdata - - iResult = 1; - } - else - wxlua_argerrormsg(L, wxString::Format(wxT("wxLua: wxObject::DynamicCast() Unable to cast a '%s' to a '%s' with wxClassInfo '%s'."), - pObject->GetClassInfo()->GetClassName(), - lua2wx(className).c_str(), - wxString(wxlClass ? wxlClass->classInfo->GetClassName() : wxT("Unknown")).c_str())); - } - - if (iResult == 0) - wxlua_argerrormsg(L, wxString::Format(wxT("wxLua: wxObject::DynamicCast() Cannot cast a wxLua type '%s' with wxClassInfo '%s' to a '%s'."), - wxluaT_gettypename(L, 1).c_str(), - wxString(pObject ? pObject->GetClassInfo()->GetClassName() : wxT("Unknown")).c_str(), - lua2wx(className).c_str())); - } - else - wxlua_argerror(L, 2, wxT("a 'string name of the class'")); - - return iResult; -} - - - -#if (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_GetClassInfo[] = { &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxObject_GetClassInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_GetClassInfo[1] = {{ wxLua_wxObject_GetClassInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxObject_GetClassInfo }}; -// wxClassInfo* GetClassInfo(); -static int LUACALL wxLua_wxObject_GetClassInfo(lua_State *L) -{ - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call GetClassInfo - wxClassInfo* returns = (wxClassInfo*)self->GetClassInfo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -#endif // (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_GetRefData[] = { &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxObject_GetRefData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_GetRefData[1] = {{ wxLua_wxObject_GetRefData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxObject_GetRefData }}; -// wxObjectRefData* GetRefData() const; -static int LUACALL wxLua_wxObject_GetRefData(lua_State *L) -{ - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call GetRefData - wxObjectRefData* returns = (wxObjectRefData*)self->GetRefData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObjectRefData); - - return 1; -} - - -#if (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_IsKindOf[] = { &wxluatype_wxObject, &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxObject_IsKindOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_IsKindOf[1] = {{ wxLua_wxObject_IsKindOf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxObject_IsKindOf }}; -// bool IsKindOf(wxClassInfo *info); -static int LUACALL wxLua_wxObject_IsKindOf(lua_State *L) -{ - // wxClassInfo info - wxClassInfo * info = (wxClassInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClassInfo); - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call IsKindOf - bool returns = (self->IsKindOf(info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_IsSameAs[] = { &wxluatype_wxObject, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxObject_IsSameAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_IsSameAs[1] = {{ wxLua_wxObject_IsSameAs, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxObject_IsSameAs }}; -// bool IsSameAs(const wxObject& o) const; -static int LUACALL wxLua_wxObject_IsSameAs(lua_State *L) -{ - // const wxObject o - const wxObject * o = (const wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call IsSameAs - bool returns = (self->IsSameAs(*o)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_Ref[] = { &wxluatype_wxObject, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxObject_Ref(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_Ref[1] = {{ wxLua_wxObject_Ref, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxObject_Ref }}; -// void Ref(const wxObject& clone); -static int LUACALL wxLua_wxObject_Ref(lua_State *L) -{ - // const wxObject clone - const wxObject * clone = (const wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call Ref - self->Ref(*clone); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_SetRefData[] = { &wxluatype_wxObject, &wxluatype_wxObjectRefData, NULL }; -static int LUACALL wxLua_wxObject_SetRefData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_SetRefData[1] = {{ wxLua_wxObject_SetRefData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxObject_SetRefData }}; -// void SetRefData(wxObjectRefData* data); -static int LUACALL wxLua_wxObject_SetRefData(lua_State *L) -{ - // wxObjectRefData data - wxObjectRefData * data = (wxObjectRefData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObjectRefData); - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call SetRefData - self->SetRefData(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_UnRef[] = { &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxObject_UnRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_UnRef[1] = {{ wxLua_wxObject_UnRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxObject_UnRef }}; -// void UnRef(); -static int LUACALL wxLua_wxObject_UnRef(lua_State *L) -{ - // get this - wxObject * self = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call UnRef - self->UnRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObject_delete[] = { &wxluatype_wxObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxObject_delete }}; - -static int LUACALL wxLua_wxObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObject_constructor[1] = {{ wxLua_wxObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxObject(); -static int LUACALL wxLua_wxObject_constructor(lua_State *L) -{ - // call constructor - wxObject* returns = new wxObject(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - - - - -void wxLua_wxObject_delete_function(void** p) -{ - wxObject* o = (wxObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxObject_methods[] = { - { "DynamicCast", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_DynamicCast, 1, NULL }, - -#if (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - { "GetClassInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_GetClassInfo, 1, NULL }, -#endif // (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - - { "GetRefData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_GetRefData, 1, NULL }, - -#if (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - { "IsKindOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_IsKindOf, 1, NULL }, -#endif // (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - - { "IsSameAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_IsSameAs, 1, NULL }, - { "Ref", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_Ref, 1, NULL }, - { "SetRefData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_SetRefData, 1, NULL }, - { "UnRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObject_UnRef, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxObject_delete, 1, NULL }, - { "wxObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxObject_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxObject_methodCount = sizeof(wxObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxObject - - -#if wxLUA_USE_wxObject -// --------------------------------------------------------------------------- -// Bind class wxObjectRefData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxObjectRefData' -int wxluatype_wxObjectRefData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxObjectRefData_GetRefCount[] = { &wxluatype_wxObjectRefData, NULL }; -static int LUACALL wxLua_wxObjectRefData_GetRefCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxObjectRefData_GetRefCount[1] = {{ wxLua_wxObjectRefData_GetRefCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxObjectRefData_GetRefCount }}; -// int GetRefCount() const; -static int LUACALL wxLua_wxObjectRefData_GetRefCount(lua_State *L) -{ - // get this - wxObjectRefData * self = (wxObjectRefData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObjectRefData); - // call GetRefCount - int returns = (self->GetRefCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - - - -// %override wxLua_wxObjectRefData_delete_function - -#if wxCHECK_VERSION(2,9,0) -void wxLua_wxObjectRefData_delete_function(void** p) -{ - wxObjectRefData* o = (wxObjectRefData*)(*p); - o->DecRef(); -} -#else -void wxLua_wxObjectRefData_delete_function(void** p) -{ - wxObjectRefData* o = (wxObjectRefData*)(*p); - delete o; -} -#endif - - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxObjectRefData_methods[] = { - { "GetRefCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxObjectRefData_GetRefCount, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxObjectRefData_methodCount = sizeof(wxObjectRefData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxObject - - -#if wxLUA_USE_wxClassInfo -// --------------------------------------------------------------------------- -// Bind class wxClassInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClassInfo' -int wxluatype_wxClassInfo = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_CreateObject[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_CreateObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_CreateObject[1] = {{ wxLua_wxClassInfo_CreateObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_CreateObject }}; -// wxObject* CreateObject(); -static int LUACALL wxLua_wxClassInfo_CreateObject(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call CreateObject - wxObject* returns = (wxObject*)self->CreateObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_FindClass[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxClassInfo_FindClass(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_FindClass[1] = {{ wxLua_wxClassInfo_FindClass, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_FindClass }}; -// static wxClassInfo* FindClass(const wxString &name); -static int LUACALL wxLua_wxClassInfo_FindClass(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindClass - wxClassInfo* returns = (wxClassInfo*)wxClassInfo::FindClass(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClass1[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetBaseClass1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetBaseClass1[1] = {{ wxLua_wxClassInfo_GetBaseClass1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClass1 }}; -// const wxClassInfo *GetBaseClass1() const; -static int LUACALL wxLua_wxClassInfo_GetBaseClass1(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetBaseClass1 - const wxClassInfo* returns = (const wxClassInfo*)self->GetBaseClass1(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClass2[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetBaseClass2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetBaseClass2[1] = {{ wxLua_wxClassInfo_GetBaseClass2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClass2 }}; -// const wxClassInfo *GetBaseClass2() const; -static int LUACALL wxLua_wxClassInfo_GetBaseClass2(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetBaseClass2 - const wxClassInfo* returns = (const wxClassInfo*)self->GetBaseClass2(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClassName1[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetBaseClassName1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetBaseClassName1[1] = {{ wxLua_wxClassInfo_GetBaseClassName1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClassName1 }}; -// wxString GetBaseClassName1() const; -static int LUACALL wxLua_wxClassInfo_GetBaseClassName1(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetBaseClassName1 - wxString returns = (self->GetBaseClassName1()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClassName2[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetBaseClassName2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetBaseClassName2[1] = {{ wxLua_wxClassInfo_GetBaseClassName2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetBaseClassName2 }}; -// wxString GetBaseClassName2() const; -static int LUACALL wxLua_wxClassInfo_GetBaseClassName2(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetBaseClassName2 - wxString returns = (self->GetBaseClassName2()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetClassName[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetClassName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetClassName[1] = {{ wxLua_wxClassInfo_GetClassName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetClassName }}; -// wxString GetClassName() const; -static int LUACALL wxLua_wxClassInfo_GetClassName(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetClassName - wxString returns = (self->GetClassName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxClassInfo_GetFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetFirst[1] = {{ wxLua_wxClassInfo_GetFirst, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static const wxClassInfo *GetFirst(); -static int LUACALL wxLua_wxClassInfo_GetFirst(lua_State *L) -{ - // call GetFirst - const wxClassInfo* returns = (const wxClassInfo*)wxClassInfo::GetFirst(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetNext[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetNext[1] = {{ wxLua_wxClassInfo_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetNext }}; -// const wxClassInfo *GetNext() const; -static int LUACALL wxLua_wxClassInfo_GetNext(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetNext - const wxClassInfo* returns = (const wxClassInfo*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_GetSize[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_GetSize[1] = {{ wxLua_wxClassInfo_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_GetSize }}; -// int GetSize() const; -static int LUACALL wxLua_wxClassInfo_GetSize(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call GetSize - int returns = (self->GetSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_IsDynamic[] = { &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_IsDynamic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_IsDynamic[1] = {{ wxLua_wxClassInfo_IsDynamic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_IsDynamic }}; -// bool IsDynamic(); -static int LUACALL wxLua_wxClassInfo_IsDynamic(lua_State *L) -{ - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call IsDynamic - bool returns = (self->IsDynamic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_IsKindOf[] = { &wxluatype_wxClassInfo, &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxClassInfo_IsKindOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_IsKindOf[1] = {{ wxLua_wxClassInfo_IsKindOf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClassInfo_IsKindOf }}; -// bool IsKindOf(wxClassInfo* info); -static int LUACALL wxLua_wxClassInfo_IsKindOf(lua_State *L) -{ - // wxClassInfo info - wxClassInfo * info = (wxClassInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClassInfo); - // get this - wxClassInfo * self = (wxClassInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClassInfo); - // call IsKindOf - bool returns = (self->IsKindOf(info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClassInfo_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxClassInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClassInfo_constructor[1] = {{ wxLua_wxClassInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxClassInfo_constructor }}; -// %override wxLua_wxClassInfo_constructor -// wxClassInfo(const wxString &name) -static int LUACALL wxLua_wxClassInfo_constructor(lua_State *L) -{ - // const wxString &name - wxString name = wxlua_getwxStringtype(L, 1); - // call constructor -#if wxCHECK_VERSION(2, 9, 0) - wxClassInfo *returns = wxClassInfo::FindClass(name); -#else - wxClassInfo *returns = wxClassInfo::FindClass(name.wx_str()); -#endif - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - // return the number of parameters - return 1; -} - - - - - -void wxLua_wxClassInfo_delete_function(void** p) -{ - wxClassInfo* o = (wxClassInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClassInfo_methods[] = { -#if (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - { "CreateObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_CreateObject, 1, NULL }, -#endif // (wxLUA_USE_wxClassInfo) && (wxLUA_USE_wxObject) - - { "FindClass", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxClassInfo_FindClass, 1, NULL }, - { "GetBaseClass1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetBaseClass1, 1, NULL }, - { "GetBaseClass2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetBaseClass2, 1, NULL }, - { "GetBaseClassName1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetBaseClassName1, 1, NULL }, - { "GetBaseClassName2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetBaseClassName2, 1, NULL }, - { "GetClassName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetClassName, 1, NULL }, - { "GetFirst", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxClassInfo_GetFirst, 1, NULL }, - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetNext, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_GetSize, 1, NULL }, - { "IsDynamic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_IsDynamic, 1, NULL }, - { "IsKindOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClassInfo_IsKindOf, 1, NULL }, - { "wxClassInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxClassInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxClassInfo_methodCount = sizeof(wxClassInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxClassInfo - - -#if wxLUA_USE_wxList && !wxUSE_STL -// --------------------------------------------------------------------------- -// Bind class wxList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxList' -int wxluatype_wxList = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Append2[] = { &wxluatype_wxList, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Append2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Append2[1] = {{ wxLua_wxList_Append2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Append2 }}; -// wxNode *Append(const wxString& key, wxObject *object); -static int LUACALL wxLua_wxList_Append2(lua_State *L) -{ - // wxObject object - wxObject * object = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Append - wxNode* returns = (wxNode*)self->Append(key, object); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Append1[] = { &wxluatype_wxList, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Append1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Append1[1] = {{ wxLua_wxList_Append1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Append1 }}; -// wxNode *Append(long key, wxObject *object); -static int LUACALL wxLua_wxList_Append1(lua_State *L) -{ - // wxObject object - wxObject * object = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // long key - long key = (long)wxlua_getnumbertype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Append - wxNode* returns = (wxNode*)self->Append(key, object); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Append[] = { &wxluatype_wxList, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Append(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Append[1] = {{ wxLua_wxList_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Append }}; -// wxNode *Append(wxObject *object); -static int LUACALL wxLua_wxList_Append(lua_State *L) -{ - // wxObject object - wxObject * object = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Append - wxNode* returns = (wxNode*)self->Append(object); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Clear[] = { &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxList_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Clear[1] = {{ wxLua_wxList_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxList_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxList_Clear(lua_State *L) -{ - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_DeleteContents[] = { &wxluatype_wxList, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxList_DeleteContents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_DeleteContents[1] = {{ wxLua_wxList_DeleteContents, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_DeleteContents }}; -// void DeleteContents(bool destroy); -static int LUACALL wxLua_wxList_DeleteContents(lua_State *L) -{ - // bool destroy - bool destroy = wxlua_getbooleantype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call DeleteContents - self->DeleteContents(destroy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_DeleteNode[] = { &wxluatype_wxList, &wxluatype_wxNode, NULL }; -static int LUACALL wxLua_wxList_DeleteNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_DeleteNode[1] = {{ wxLua_wxList_DeleteNode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_DeleteNode }}; -// bool DeleteNode(wxNode *pNode); -static int LUACALL wxLua_wxList_DeleteNode(lua_State *L) -{ - // wxNode pNode - wxNode * pNode = (wxNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxNode); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call DeleteNode - bool returns = (self->DeleteNode(pNode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_DeleteObject[] = { &wxluatype_wxList, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_DeleteObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_DeleteObject[1] = {{ wxLua_wxList_DeleteObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_DeleteObject }}; -// bool DeleteObject(wxObject *pObject); -static int LUACALL wxLua_wxList_DeleteObject(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call DeleteObject - bool returns = (self->DeleteObject(pObject)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Find2[] = { &wxluatype_wxList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxList_Find2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Find2[1] = {{ wxLua_wxList_Find2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Find2 }}; -// wxNode *Find(const wxString &key); -static int LUACALL wxLua_wxList_Find2(lua_State *L) -{ - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Find - wxNode* returns = (wxNode*)self->Find(key); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Find1[] = { &wxluatype_wxList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxList_Find1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Find1[1] = {{ wxLua_wxList_Find1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Find1 }}; -// wxNode *Find(long key); -static int LUACALL wxLua_wxList_Find1(lua_State *L) -{ - // long key - long key = (long)wxlua_getnumbertype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Find - wxNode* returns = (wxNode*)self->Find(key); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Find[] = { &wxluatype_wxList, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Find(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Find[1] = {{ wxLua_wxList_Find, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Find }}; -// wxNode* Find(wxObject* pObject); -static int LUACALL wxLua_wxList_Find(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Find - wxNode* returns = (wxNode*)self->Find(pObject); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_GetCount[] = { &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxList_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_GetCount[1] = {{ wxLua_wxList_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxList_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxList_GetCount(lua_State *L) -{ - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_GetFirst[] = { &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxList_GetFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_GetFirst[1] = {{ wxLua_wxList_GetFirst, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxList_GetFirst }}; -// wxNode *GetFirst(); -static int LUACALL wxLua_wxList_GetFirst(lua_State *L) -{ - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call GetFirst - wxNode* returns = (wxNode*)self->GetFirst(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_GetLast[] = { &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxList_GetLast(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_GetLast[1] = {{ wxLua_wxList_GetLast, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxList_GetLast }}; -// wxNode *GetLast(); -static int LUACALL wxLua_wxList_GetLast(lua_State *L) -{ - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call GetLast - wxNode* returns = (wxNode*)self->GetLast(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_IndexOf[] = { &wxluatype_wxList, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_IndexOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_IndexOf[1] = {{ wxLua_wxList_IndexOf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_IndexOf }}; -// int IndexOf(wxObject* pObject); -static int LUACALL wxLua_wxList_IndexOf(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call IndexOf - int returns = (self->IndexOf(pObject)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Insert2[] = { &wxluatype_wxList, &wxluatype_wxNode, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Insert2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Insert2[1] = {{ wxLua_wxList_Insert2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Insert2 }}; -// wxNode *Insert(wxNode *pNode, wxObject *pObject); -static int LUACALL wxLua_wxList_Insert2(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // wxNode pNode - wxNode * pNode = (wxNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxNode); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Insert - wxNode* returns = (wxNode*)self->Insert(pNode, pObject); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Insert1[] = { &wxluatype_wxList, &wxluatype_TINTEGER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Insert1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Insert1[1] = {{ wxLua_wxList_Insert1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Insert1 }}; -// wxNode *Insert(size_t position, wxObject *pObject); -static int LUACALL wxLua_wxList_Insert1(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // size_t position - size_t position = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Insert - wxNode* returns = (wxNode*)self->Insert(position, pObject); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Insert[] = { &wxluatype_wxList, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Insert(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Insert[1] = {{ wxLua_wxList_Insert, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Insert }}; -// wxNode *Insert(wxObject *pObject); -static int LUACALL wxLua_wxList_Insert(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Insert - wxNode* returns = (wxNode*)self->Insert(pObject); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_IsEmpty[] = { &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxList_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_IsEmpty[1] = {{ wxLua_wxList_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxList_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxList_IsEmpty(lua_State *L) -{ - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Item[] = { &wxluatype_wxList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxList_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Item[1] = {{ wxLua_wxList_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Item }}; -// wxNode *Item(int iIndex) const; -static int LUACALL wxLua_wxList_Item(lua_State *L) -{ - // int iIndex - int iIndex = (int)wxlua_getnumbertype(L, 2); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Item - wxNode* returns = (wxNode*)self->Item(iIndex); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_Member[] = { &wxluatype_wxList, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxList_Member(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Member[1] = {{ wxLua_wxList_Member, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Member }}; -// wxNode *Member(wxObject *pObject); -static int LUACALL wxLua_wxList_Member(lua_State *L) -{ - // wxObject pObject - wxObject * pObject = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxList * self = (wxList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxList); - // call Member - wxNode* returns = (wxNode*)self->Member(pObject); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxList_delete[] = { &wxluatype_wxList, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxList_delete }}; - -static int LUACALL wxLua_wxList_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_constructor[1] = {{ wxLua_wxList_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxList(); -static int LUACALL wxLua_wxList_constructor(lua_State *L) -{ - // call constructor - wxList* returns = new wxList(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxList); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - - return 1; -} - - - - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Append_overload[] = -{ - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Append2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Append2 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Append1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Append1 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Append }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxList_Append_overload_count = sizeof(s_wxluafunc_wxLua_wxList_Append_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - -#if (wxLUA_USE_wxList && !wxUSE_STL)||((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Find_overload[] = -{ - { wxLua_wxList_Find2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Find2 }, - { wxLua_wxList_Find1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Find1 }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Find, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Find }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxList_Find_overload_count = sizeof(s_wxluafunc_wxLua_wxList_Find_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxList && !wxUSE_STL)||((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxList_Insert_overload[] = -{ - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Insert2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Insert2 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Insert1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxList_Insert1 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { wxLua_wxList_Insert, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxList_Insert }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxList_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxList_Insert_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - -void wxLua_wxList_delete_function(void** p) -{ - wxList* o = (wxList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxList_methods[] = { -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_Append_overload, s_wxluafunc_wxLua_wxList_Append_overload_count, 0 }, -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_Clear, 1, NULL }, - { "DeleteContents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_DeleteContents, 1, NULL }, - { "DeleteNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_DeleteNode, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { "DeleteObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_DeleteObject, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -#if (wxLUA_USE_wxList && !wxUSE_STL)||((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - { "Find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_Find_overload, s_wxluafunc_wxLua_wxList_Find_overload_count, 0 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL)||((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_GetCount, 1, NULL }, - { "GetFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_GetFirst, 1, NULL }, - { "GetLast", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_GetLast, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { "IndexOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_IndexOf, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_Insert_overload, s_wxluafunc_wxLua_wxList_Insert_overload_count, 0 }, -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject)) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_Item, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { "Member", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxList_Member, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxList_delete, 1, NULL }, - { "wxList", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxList_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxList_methodCount = sizeof(wxList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxList && !wxUSE_STL - - -#if wxLUA_USE_wxList && !wxUSE_STL -// --------------------------------------------------------------------------- -// Bind class wxNode -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNode' -int wxluatype_wxNode = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNode_GetData[] = { &wxluatype_wxNode, NULL }; -static int LUACALL wxLua_wxNode_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNode_GetData[1] = {{ wxLua_wxNode_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNode_GetData }}; -// wxObject *GetData(); -static int LUACALL wxLua_wxNode_GetData(lua_State *L) -{ - // get this - wxNode * self = (wxNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNode); - // call GetData - wxObject* returns = (wxObject*)self->GetData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNode_GetNext[] = { &wxluatype_wxNode, NULL }; -static int LUACALL wxLua_wxNode_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNode_GetNext[1] = {{ wxLua_wxNode_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNode_GetNext }}; -// wxNode *GetNext(); -static int LUACALL wxLua_wxNode_GetNext(lua_State *L) -{ - // get this - wxNode * self = (wxNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNode); - // call GetNext - wxNode* returns = (wxNode*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNode_GetPrevious[] = { &wxluatype_wxNode, NULL }; -static int LUACALL wxLua_wxNode_GetPrevious(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNode_GetPrevious[1] = {{ wxLua_wxNode_GetPrevious, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNode_GetPrevious }}; -// wxNode *GetPrevious(); -static int LUACALL wxLua_wxNode_GetPrevious(lua_State *L) -{ - // get this - wxNode * self = (wxNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNode); - // call GetPrevious - wxNode* returns = (wxNode*)self->GetPrevious(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNode); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNode_SetData[] = { &wxluatype_wxNode, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxNode_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNode_SetData[1] = {{ wxLua_wxNode_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNode_SetData }}; -// void SetData(wxObject *data); -static int LUACALL wxLua_wxNode_SetData(lua_State *L) -{ - // wxObject data - wxObject * data = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxNode * self = (wxNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNode); - // call SetData - self->SetData(data); - - return 0; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - - - -void wxLua_wxNode_delete_function(void** p) -{ - wxNode* o = (wxNode*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNode_methods[] = { -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNode_GetData, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNode_GetNext, 1, NULL }, - { "GetPrevious", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNode_GetPrevious, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNode_SetData, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxNode_methodCount = sizeof(wxNode_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxList && !wxUSE_STL - - -#if wxLUA_USE_wxArrayInt -// --------------------------------------------------------------------------- -// Bind class wxArrayInt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArrayInt' -int wxluatype_wxArrayInt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Add[] = { &wxluatype_wxArrayInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayInt_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Add[1] = {{ wxLua_wxArrayInt_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayInt_Add }}; -// void Add(int num); -static int LUACALL wxLua_wxArrayInt_Add(lua_State *L) -{ - // int num - int num = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Add - self->Add(num); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Alloc[] = { &wxluatype_wxArrayInt, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayInt_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Alloc[1] = {{ wxLua_wxArrayInt_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayInt_Alloc }}; -// void Alloc(size_t count); -static int LUACALL wxLua_wxArrayInt_Alloc(lua_State *L) -{ - // size_t count - size_t count = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Alloc - self->Alloc(count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Clear[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Clear[1] = {{ wxLua_wxArrayInt_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxArrayInt_Clear(lua_State *L) -{ - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Empty[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Empty[1] = {{ wxLua_wxArrayInt_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_Empty }}; -// void Empty(); -static int LUACALL wxLua_wxArrayInt_Empty(lua_State *L) -{ - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Empty - self->Empty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_GetCount[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_GetCount[1] = {{ wxLua_wxArrayInt_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxArrayInt_GetCount(lua_State *L) -{ - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Index[] = { &wxluatype_wxArrayInt, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxArrayInt_Index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Index[1] = {{ wxLua_wxArrayInt_Index, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayInt_Index }}; -// int Index(int n, bool searchFromEnd = false); -static int LUACALL wxLua_wxArrayInt_Index(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool searchFromEnd = false - bool searchFromEnd = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Index - int returns = (self->Index(n, searchFromEnd)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Insert[] = { &wxluatype_wxArrayInt, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayInt_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Insert[1] = {{ wxLua_wxArrayInt_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxArrayInt_Insert }}; -// void Insert(int num, int n, int copies = 1); -static int LUACALL wxLua_wxArrayInt_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int copies = 1 - int copies = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int n - int n = (int)wxlua_getnumbertype(L, 3); - // int num - int num = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Insert - self->Insert(num, n, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_IsEmpty[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_IsEmpty[1] = {{ wxLua_wxArrayInt_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxArrayInt_IsEmpty(lua_State *L) -{ - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Item[] = { &wxluatype_wxArrayInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayInt_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Item[1] = {{ wxLua_wxArrayInt_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayInt_Item }}; -// int Item(int n); -static int LUACALL wxLua_wxArrayInt_Item(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Item - int returns = (self->Item(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Remove[] = { &wxluatype_wxArrayInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayInt_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Remove[1] = {{ wxLua_wxArrayInt_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayInt_Remove }}; -// void Remove(int n); -static int LUACALL wxLua_wxArrayInt_Remove(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Remove - self->Remove(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_RemoveAt[] = { &wxluatype_wxArrayInt, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayInt_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_RemoveAt[1] = {{ wxLua_wxArrayInt_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayInt_RemoveAt }}; -// void RemoveAt(size_t index); -static int LUACALL wxLua_wxArrayInt_RemoveAt(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call RemoveAt - self->RemoveAt(index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_Shrink[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_Shrink[1] = {{ wxLua_wxArrayInt_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxArrayInt_Shrink(lua_State *L) -{ - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_ToLuaTable[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_ToLuaTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_ToLuaTable[1] = {{ wxLua_wxArrayInt_ToLuaTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_ToLuaTable }}; -// %override wxLua_wxArrayInt_ToLuaTable -// int ToLuaTable() const -static int LUACALL wxLua_wxArrayInt_ToLuaTable(lua_State *L) -{ - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - wxlua_pushwxArrayInttable(L, *self); - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_delete[] = { &wxluatype_wxArrayInt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_op_index[] = { &wxluatype_wxArrayInt, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayInt_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_op_index[1] = {{ wxLua_wxArrayInt_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayInt_op_index }}; -// int operator[](size_t nIndex); -static int LUACALL wxLua_wxArrayInt_op_index(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayInt * self = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call op_index - int returns = ((*self)[(nIndex)]); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayInt_constructor1[] = { &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxArrayInt_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_constructor1[1] = {{ wxLua_wxArrayInt_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_constructor1 }}; -// wxArrayInt(const wxArrayInt& array); -static int LUACALL wxLua_wxArrayInt_constructor1(lua_State *L) -{ - // const wxArrayInt array - wxLuaSmartwxArrayInt array = wxlua_getwxArrayInt(L, 1); - // call constructor - wxArrayInt* returns = new wxArrayInt(array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -static int LUACALL wxLua_wxArrayInt_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_constructor[1] = {{ wxLua_wxArrayInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxArrayInt(); -static int LUACALL wxLua_wxArrayInt_constructor(lua_State *L) -{ - // call constructor - wxArrayInt* returns = new wxArrayInt(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - - - - -#if (wxLUA_USE_wxArrayInt) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayInt_constructor_overload[] = -{ - { wxLua_wxArrayInt_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayInt_constructor1 }, - { wxLua_wxArrayInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxArrayInt_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxArrayInt_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxArrayInt) - -void wxLua_wxArrayInt_delete_function(void** p) -{ - wxArrayInt* o = (wxArrayInt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArrayInt_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Clear, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Empty, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_GetCount, 1, NULL }, - { "Index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Index, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Item, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Remove, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_Shrink, 1, NULL }, - { "ToLuaTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_ToLuaTable, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxArrayInt_delete, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayInt_op_index, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) - { "wxArrayInt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxArrayInt_constructor_overload, s_wxluafunc_wxLua_wxArrayInt_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxArrayInt) - - { 0, 0, 0, 0 }, -}; - -int wxArrayInt_methodCount = sizeof(wxArrayInt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxArrayInt - - -#if wxLUA_USE_wxArrayDouble -// --------------------------------------------------------------------------- -// Bind class wxArrayDouble -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArrayDouble' -int wxluatype_wxArrayDouble = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Add[] = { &wxluatype_wxArrayDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayDouble_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Add[1] = {{ wxLua_wxArrayDouble_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayDouble_Add }}; -// void Add(double num); -static int LUACALL wxLua_wxArrayDouble_Add(lua_State *L) -{ - // double num - double num = (double)wxlua_getnumbertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Add - self->Add(num); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Alloc[] = { &wxluatype_wxArrayDouble, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayDouble_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Alloc[1] = {{ wxLua_wxArrayDouble_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayDouble_Alloc }}; -// void Alloc(size_t count); -static int LUACALL wxLua_wxArrayDouble_Alloc(lua_State *L) -{ - // size_t count - size_t count = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Alloc - self->Alloc(count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Clear[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Clear[1] = {{ wxLua_wxArrayDouble_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxArrayDouble_Clear(lua_State *L) -{ - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Empty[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Empty[1] = {{ wxLua_wxArrayDouble_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_Empty }}; -// void Empty(); -static int LUACALL wxLua_wxArrayDouble_Empty(lua_State *L) -{ - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Empty - self->Empty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_GetCount[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_GetCount[1] = {{ wxLua_wxArrayDouble_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxArrayDouble_GetCount(lua_State *L) -{ - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Index[] = { &wxluatype_wxArrayDouble, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxArrayDouble_Index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Index[1] = {{ wxLua_wxArrayDouble_Index, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayDouble_Index }}; -// int Index(double n, bool searchFromEnd = false); -static int LUACALL wxLua_wxArrayDouble_Index(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool searchFromEnd = false - bool searchFromEnd = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // double n - double n = (double)wxlua_getnumbertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Index - int returns = (self->Index(n, searchFromEnd)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Insert[] = { &wxluatype_wxArrayDouble, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayDouble_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Insert[1] = {{ wxLua_wxArrayDouble_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxArrayDouble_Insert }}; -// void Insert(double num, int n, int copies = 1); -static int LUACALL wxLua_wxArrayDouble_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int copies = 1 - int copies = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int n - int n = (int)wxlua_getnumbertype(L, 3); - // double num - double num = (double)wxlua_getnumbertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Insert - self->Insert(num, n, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_IsEmpty[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_IsEmpty[1] = {{ wxLua_wxArrayDouble_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxArrayDouble_IsEmpty(lua_State *L) -{ - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Item[] = { &wxluatype_wxArrayDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayDouble_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Item[1] = {{ wxLua_wxArrayDouble_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayDouble_Item }}; -// double Item(int n); -static int LUACALL wxLua_wxArrayDouble_Item(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Item - double returns = (self->Item(n)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Remove[] = { &wxluatype_wxArrayDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayDouble_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Remove[1] = {{ wxLua_wxArrayDouble_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayDouble_Remove }}; -// void Remove(int n); -static int LUACALL wxLua_wxArrayDouble_Remove(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Remove - self->Remove(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_RemoveAt[] = { &wxluatype_wxArrayDouble, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayDouble_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_RemoveAt[1] = {{ wxLua_wxArrayDouble_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayDouble_RemoveAt }}; -// void RemoveAt(size_t index); -static int LUACALL wxLua_wxArrayDouble_RemoveAt(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call RemoveAt - self->RemoveAt(index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_Shrink[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_Shrink[1] = {{ wxLua_wxArrayDouble_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxArrayDouble_Shrink(lua_State *L) -{ - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_ToLuaTable[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_ToLuaTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_ToLuaTable[1] = {{ wxLua_wxArrayDouble_ToLuaTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_ToLuaTable }}; -// %override wxLua_wxArrayDouble_ToLuaTable -// int ToLuaTable() const -static int LUACALL wxLua_wxArrayDouble_ToLuaTable(lua_State *L) -{ - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - wxlua_pushwxArrayDoubletable(L, *self); - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_delete[] = { &wxluatype_wxArrayDouble, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_op_index[] = { &wxluatype_wxArrayDouble, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayDouble_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_op_index[1] = {{ wxLua_wxArrayDouble_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayDouble_op_index }}; -// double operator[](size_t nIndex); -static int LUACALL wxLua_wxArrayDouble_op_index(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayDouble * self = (wxArrayDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayDouble); - // call op_index - double returns = ((*self)[(nIndex)]); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayDouble_constructor1[] = { &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxArrayDouble_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_constructor1[1] = {{ wxLua_wxArrayDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_constructor1 }}; -// wxArrayDouble(const wxArrayDouble& array); -static int LUACALL wxLua_wxArrayDouble_constructor1(lua_State *L) -{ - // const wxArrayDouble array - wxLuaSmartwxArrayDouble array = wxlua_getwxArrayDouble(L, 1); - // call constructor - wxArrayDouble* returns = new wxArrayDouble(array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayDouble); - - return 1; -} - -static int LUACALL wxLua_wxArrayDouble_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_constructor[1] = {{ wxLua_wxArrayDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxArrayDouble(); -static int LUACALL wxLua_wxArrayDouble_constructor(lua_State *L) -{ - // call constructor - wxArrayDouble* returns = new wxArrayDouble(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayDouble); - - return 1; -} - - - - -#if (wxLUA_USE_wxArrayDouble) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayDouble_constructor_overload[] = -{ - { wxLua_wxArrayDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayDouble_constructor1 }, - { wxLua_wxArrayDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxArrayDouble_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxArrayDouble_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxArrayDouble) - -void wxLua_wxArrayDouble_delete_function(void** p) -{ - wxArrayDouble* o = (wxArrayDouble*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArrayDouble_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Clear, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Empty, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_GetCount, 1, NULL }, - { "Index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Index, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Item, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Remove, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_Shrink, 1, NULL }, - { "ToLuaTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_ToLuaTable, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxArrayDouble_delete, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayDouble_op_index, 1, NULL }, - -#if (wxLUA_USE_wxArrayDouble) - { "wxArrayDouble", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxArrayDouble_constructor_overload, s_wxluafunc_wxLua_wxArrayDouble_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxArrayDouble) - - { 0, 0, 0, 0 }, -}; - -int wxArrayDouble_methodCount = sizeof(wxArrayDouble_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxArrayDouble - - -#if wxLUA_USE_wxArrayString -// --------------------------------------------------------------------------- -// Bind class wxArrayString -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArrayString' -int wxluatype_wxArrayString = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Add[] = { &wxluatype_wxArrayString, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayString_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Add[1] = {{ wxLua_wxArrayString_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayString_Add }}; -// size_t Add(const wxString& str, size_t copies = 1); -static int LUACALL wxLua_wxArrayString_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t copies = 1 - size_t copies = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Add - size_t returns = (self->Add(str, copies)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Alloc[] = { &wxluatype_wxArrayString, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayString_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Alloc[1] = {{ wxLua_wxArrayString_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayString_Alloc }}; -// void Alloc(size_t nCount); -static int LUACALL wxLua_wxArrayString_Alloc(lua_State *L) -{ - // size_t nCount - size_t nCount = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Alloc - self->Alloc(nCount); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Clear[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Clear[1] = {{ wxLua_wxArrayString_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxArrayString_Clear(lua_State *L) -{ - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Empty[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Empty[1] = {{ wxLua_wxArrayString_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_Empty }}; -// void Empty(); -static int LUACALL wxLua_wxArrayString_Empty(lua_State *L) -{ - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Empty - self->Empty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_GetCount[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_GetCount[1] = {{ wxLua_wxArrayString_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxArrayString_GetCount(lua_State *L) -{ - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Index[] = { &wxluatype_wxArrayString, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxArrayString_Index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Index[1] = {{ wxLua_wxArrayString_Index, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxArrayString_Index }}; -// int Index(const wxString &sz, bool bCase = true, bool bFromEnd = false); -static int LUACALL wxLua_wxArrayString_Index(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bFromEnd = false - bool bFromEnd = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // bool bCase = true - bool bCase = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Index - int returns = (self->Index(sz, bCase, bFromEnd)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Insert[] = { &wxluatype_wxArrayString, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayString_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Insert[1] = {{ wxLua_wxArrayString_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxArrayString_Insert }}; -// void Insert(const wxString& str, int nIndex, size_t copies = 1); -static int LUACALL wxLua_wxArrayString_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t copies = 1 - size_t copies = (argCount >= 4 ? (size_t)wxlua_getuintegertype(L, 4) : 1); - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Insert - self->Insert(str, nIndex, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_IsEmpty[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_IsEmpty[1] = {{ wxLua_wxArrayString_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxArrayString_IsEmpty(lua_State *L) -{ - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Item[] = { &wxluatype_wxArrayString, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayString_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Item[1] = {{ wxLua_wxArrayString_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayString_Item }}; -// wxString Item(size_t nIndex) const; -static int LUACALL wxLua_wxArrayString_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Item - wxString returns = (self->Item(nIndex)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Last[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_Last(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Last[1] = {{ wxLua_wxArrayString_Last, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_Last }}; -// wxString Last(); -static int LUACALL wxLua_wxArrayString_Last(lua_State *L) -{ - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Last - wxString returns = (self->Last()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Remove[] = { &wxluatype_wxArrayString, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxArrayString_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Remove[1] = {{ wxLua_wxArrayString_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayString_Remove }}; -// void Remove(const wxString &sz); -static int LUACALL wxLua_wxArrayString_Remove(lua_State *L) -{ - // const wxString sz - const wxString sz = wxlua_getwxStringtype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Remove - self->Remove(sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_RemoveAt[] = { &wxluatype_wxArrayString, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayString_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_RemoveAt[1] = {{ wxLua_wxArrayString_RemoveAt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayString_RemoveAt }}; -// void RemoveAt(size_t nIndex, size_t count = 1); -static int LUACALL wxLua_wxArrayString_RemoveAt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t count = 1 - size_t count = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call RemoveAt - self->RemoveAt(nIndex, count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Shrink[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Shrink[1] = {{ wxLua_wxArrayString_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxArrayString_Shrink(lua_State *L) -{ - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_Sort[] = { &wxluatype_wxArrayString, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxArrayString_Sort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_Sort[1] = {{ wxLua_wxArrayString_Sort, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxArrayString_Sort }}; -// void Sort(bool reverseOrder = false); -static int LUACALL wxLua_wxArrayString_Sort(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool reverseOrder = false - bool reverseOrder = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call Sort - self->Sort(reverseOrder); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_ToLuaTable[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_ToLuaTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_ToLuaTable[1] = {{ wxLua_wxArrayString_ToLuaTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_ToLuaTable }}; -// %override wxLua_wxArrayString_ToLuaTable -// int ToLuaTable() const -static int LUACALL wxLua_wxArrayString_ToLuaTable(lua_State *L) -{ - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - wxlua_pushwxArrayStringtable(L, *self); - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_delete[] = { &wxluatype_wxArrayString, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_op_index[] = { &wxluatype_wxArrayString, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayString_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_op_index[1] = {{ wxLua_wxArrayString_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayString_op_index }}; -// wxString& operator[](size_t nIndex); -static int LUACALL wxLua_wxArrayString_op_index(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayString * self = (wxArrayString *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayString); - // call op_index - wxString returns = (*self)[(nIndex)]; - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayString_constructor1[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayString_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_constructor1[1] = {{ wxLua_wxArrayString_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_constructor1 }}; -// wxArrayString(const wxArrayString& array); -static int LUACALL wxLua_wxArrayString_constructor1(lua_State *L) -{ - // const wxArrayString array - wxLuaSmartwxArrayString array = wxlua_getwxArrayString(L, 1); - // call constructor - wxArrayString* returns = new wxArrayString(array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -static int LUACALL wxLua_wxArrayString_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_constructor[1] = {{ wxLua_wxArrayString_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxArrayString(); -static int LUACALL wxLua_wxArrayString_constructor(lua_State *L) -{ - // call constructor - wxArrayString* returns = new wxArrayString(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - - - - -#if (wxLUA_USE_wxArrayString) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayString_constructor_overload[] = -{ - { wxLua_wxArrayString_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayString_constructor1 }, - { wxLua_wxArrayString_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxArrayString_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxArrayString_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxArrayString) - -void wxLua_wxArrayString_delete_function(void** p) -{ - wxArrayString* o = (wxArrayString*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArrayString_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Clear, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Empty, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_GetCount, 1, NULL }, - { "Index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Index, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Item, 1, NULL }, - { "Last", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Last, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Remove, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Shrink, 1, NULL }, - { "Sort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_Sort, 1, NULL }, - { "ToLuaTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_ToLuaTable, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxArrayString_delete, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayString_op_index, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) - { "wxArrayString", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxArrayString_constructor_overload, s_wxluafunc_wxLua_wxArrayString_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxArrayString) - - { 0, 0, 0, 0 }, -}; - -int wxArrayString_methodCount = sizeof(wxArrayString_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxArrayString - - -#if wxLUA_USE_wxArrayString -// --------------------------------------------------------------------------- -// Bind class wxSortedArrayString -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSortedArrayString' -int wxluatype_wxSortedArrayString = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSortedArrayString_delete[] = { &wxluatype_wxSortedArrayString, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSortedArrayString_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSortedArrayString_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSortedArrayString_constructor2[] = { &wxluatype_wxSortedArrayString, NULL }; -static int LUACALL wxLua_wxSortedArrayString_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSortedArrayString_constructor2[1] = {{ wxLua_wxSortedArrayString_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxSortedArrayString_constructor2 }}; -// wxSortedArrayString(const wxSortedArrayString& src); -static int LUACALL wxLua_wxSortedArrayString_constructor2(lua_State *L) -{ - // const wxSortedArrayString src - wxLuaSmartwxSortedArrayString src = wxlua_getwxSortedArrayString(L, 1); - // call constructor - wxSortedArrayString* returns = new wxSortedArrayString(src); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSortedArrayString); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSortedArrayString); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSortedArrayString_constructor1[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxSortedArrayString_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSortedArrayString_constructor1[1] = {{ wxLua_wxSortedArrayString_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxSortedArrayString_constructor1 }}; -// wxSortedArrayString(const wxArrayString& src); // have to have this constructor since they're not actually derived -static int LUACALL wxLua_wxSortedArrayString_constructor1(lua_State *L) -{ - // const wxArrayString src - wxLuaSmartwxArrayString src = wxlua_getwxArrayString(L, 1); - // call constructor - wxSortedArrayString* returns = new wxSortedArrayString(src); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSortedArrayString); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSortedArrayString); - - return 1; -} - -static int LUACALL wxLua_wxSortedArrayString_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSortedArrayString_constructor[1] = {{ wxLua_wxSortedArrayString_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSortedArrayString(); -static int LUACALL wxLua_wxSortedArrayString_constructor(lua_State *L) -{ - // call constructor - wxSortedArrayString* returns = new wxSortedArrayString(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSortedArrayString); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSortedArrayString); - - return 1; -} - - - - -#if (wxLUA_USE_wxArrayString) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSortedArrayString_constructor_overload[] = -{ - { wxLua_wxSortedArrayString_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxSortedArrayString_constructor2 }, - { wxLua_wxSortedArrayString_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxSortedArrayString_constructor1 }, - { wxLua_wxSortedArrayString_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSortedArrayString_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSortedArrayString_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxArrayString) - -void wxLua_wxSortedArrayString_delete_function(void** p) -{ - wxSortedArrayString* o = (wxSortedArrayString*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSortedArrayString_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSortedArrayString_delete, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) - { "wxSortedArrayString", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSortedArrayString_constructor_overload, s_wxluafunc_wxLua_wxSortedArrayString_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxArrayString) - - { 0, 0, 0, 0 }, -}; - -int wxSortedArrayString_methodCount = sizeof(wxSortedArrayString_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxArrayString - - -#if wxUSE_LONGLONG -// --------------------------------------------------------------------------- -// Bind class wxLongLong -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLongLong' -int wxluatype_wxLongLong = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_Abs[] = { &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxLongLong_Abs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_Abs[1] = {{ wxLua_wxLongLong_Abs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_Abs }}; -// wxLongLong Abs() const; -static int LUACALL wxLua_wxLongLong_Abs(lua_State *L) -{ - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call Abs - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->Abs()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_Assign[] = { &wxluatype_wxLongLong, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLongLong_Assign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_Assign[1] = {{ wxLua_wxLongLong_Assign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLongLong_Assign }}; -// wxLongLong& Assign(double d); -static int LUACALL wxLua_wxLongLong_Assign(lua_State *L) -{ - // double d - double d = (double)wxlua_getnumbertype(L, 2); - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call Assign - wxLongLong* returns = (wxLongLong*)&self->Assign(d); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_GetHi[] = { &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxLongLong_GetHi(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_GetHi[1] = {{ wxLua_wxLongLong_GetHi, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_GetHi }}; -// long GetHi() const; -static int LUACALL wxLua_wxLongLong_GetHi(lua_State *L) -{ - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call GetHi - long returns = (self->GetHi()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_GetLo[] = { &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxLongLong_GetLo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_GetLo[1] = {{ wxLua_wxLongLong_GetLo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_GetLo }}; -// unsigned long GetLo() const; -static int LUACALL wxLua_wxLongLong_GetLo(lua_State *L) -{ - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call GetLo - unsigned long returns = (self->GetLo()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_ToDouble[] = { &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxLongLong_ToDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_ToDouble[1] = {{ wxLua_wxLongLong_ToDouble, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_ToDouble }}; -// double ToDouble() const; -static int LUACALL wxLua_wxLongLong_ToDouble(lua_State *L) -{ - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call ToDouble - double returns = (self->ToDouble()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_ToLong[] = { &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxLongLong_ToLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_ToLong[1] = {{ wxLua_wxLongLong_ToLong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_ToLong }}; -// long ToLong() const; -static int LUACALL wxLua_wxLongLong_ToLong(lua_State *L) -{ - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call ToLong - long returns = (self->ToLong()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_ToString[] = { &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxLongLong_ToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_ToString[1] = {{ wxLua_wxLongLong_ToString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_ToString }}; -// wxString ToString() const; -static int LUACALL wxLua_wxLongLong_ToString(lua_State *L) -{ - // get this - wxLongLong * self = (wxLongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongLong); - // call ToString - wxString returns = (self->ToString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_delete[] = { &wxluatype_wxLongLong, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLongLong_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongLong_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLongLong_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongLong_constructor[1] = {{ wxLua_wxLongLong_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxLongLong_constructor }}; -// wxLongLong(long hi = 0, unsigned long lo = 0); -static int LUACALL wxLua_wxLongLong_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned long lo = 0 - unsigned long lo = (argCount >= 2 ? (unsigned long)wxlua_getuintegertype(L, 2) : 0); - // long hi = 0 - long hi = (argCount >= 1 ? (long)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxLongLong* returns = new wxLongLong(hi, lo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - - - - -void wxLua_wxLongLong_delete_function(void** p) -{ - wxLongLong* o = (wxLongLong*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLongLong_methods[] = { - { "Abs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_Abs, 1, NULL }, - { "Assign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_Assign, 1, NULL }, - { "GetHi", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_GetHi, 1, NULL }, - { "GetLo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_GetLo, 1, NULL }, - { "ToDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_ToDouble, 1, NULL }, - { "ToLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_ToLong, 1, NULL }, - { "ToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongLong_ToString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLongLong_delete, 1, NULL }, - { "wxLongLong", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLongLong_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLongLong_methodCount = sizeof(wxLongLong_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_LONGLONG - - -#if wxUSE_LONGLONG -// --------------------------------------------------------------------------- -// Bind class wxULongLong -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxULongLong' -int wxluatype_wxULongLong = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxULongLong_GetHi[] = { &wxluatype_wxULongLong, NULL }; -static int LUACALL wxLua_wxULongLong_GetHi(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxULongLong_GetHi[1] = {{ wxLua_wxULongLong_GetHi, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxULongLong_GetHi }}; -// unsigned long GetHi() const; -static int LUACALL wxLua_wxULongLong_GetHi(lua_State *L) -{ - // get this - wxULongLong * self = (wxULongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxULongLong); - // call GetHi - unsigned long returns = (self->GetHi()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxULongLong_GetLo[] = { &wxluatype_wxULongLong, NULL }; -static int LUACALL wxLua_wxULongLong_GetLo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxULongLong_GetLo[1] = {{ wxLua_wxULongLong_GetLo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxULongLong_GetLo }}; -// unsigned long GetLo() const; -static int LUACALL wxLua_wxULongLong_GetLo(lua_State *L) -{ - // get this - wxULongLong * self = (wxULongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxULongLong); - // call GetLo - unsigned long returns = (self->GetLo()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxULongLong_ToString[] = { &wxluatype_wxULongLong, NULL }; -static int LUACALL wxLua_wxULongLong_ToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxULongLong_ToString[1] = {{ wxLua_wxULongLong_ToString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxULongLong_ToString }}; -// wxString ToString() const; -static int LUACALL wxLua_wxULongLong_ToString(lua_State *L) -{ - // get this - wxULongLong * self = (wxULongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxULongLong); - // call ToString - wxString returns = (self->ToString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxULongLong_ToULong[] = { &wxluatype_wxULongLong, NULL }; -static int LUACALL wxLua_wxULongLong_ToULong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxULongLong_ToULong[1] = {{ wxLua_wxULongLong_ToULong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxULongLong_ToULong }}; -// long ToULong() const; -static int LUACALL wxLua_wxULongLong_ToULong(lua_State *L) -{ - // get this - wxULongLong * self = (wxULongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxULongLong); - // call ToULong - long returns = (self->ToULong()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxULongLong_delete[] = { &wxluatype_wxULongLong, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxULongLong_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxULongLong_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxULongLong_constructor[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxULongLong_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxULongLong_constructor[1] = {{ wxLua_wxULongLong_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxULongLong_constructor }}; -// wxULongLong(unsigned long hi = 0, unsigned long lo = 0); -static int LUACALL wxLua_wxULongLong_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned long lo = 0 - unsigned long lo = (argCount >= 2 ? (unsigned long)wxlua_getuintegertype(L, 2) : 0); - // unsigned long hi = 0 - unsigned long hi = (argCount >= 1 ? (unsigned long)wxlua_getuintegertype(L, 1) : 0); - // call constructor - wxULongLong* returns = new wxULongLong(hi, lo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - - - - -void wxLua_wxULongLong_delete_function(void** p) -{ - wxULongLong* o = (wxULongLong*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxULongLong_methods[] = { - { "GetHi", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxULongLong_GetHi, 1, NULL }, - { "GetLo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxULongLong_GetLo, 1, NULL }, - { "ToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxULongLong_ToString, 1, NULL }, - { "ToULong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxULongLong_ToULong, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxULongLong_delete, 1, NULL }, - { "wxULongLong", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxULongLong_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxULongLong_methodCount = sizeof(wxULongLong_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_LONGLONG - - -#if wxLUA_USE_wxMemoryBuffer -// --------------------------------------------------------------------------- -// Bind class wxMemoryBuffer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMemoryBuffer' -int wxluatype_wxMemoryBuffer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_AppendByte[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_AppendByte(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_AppendByte[1] = {{ wxLua_wxMemoryBuffer_AppendByte, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_AppendByte }}; -// void AppendByte(char data); -static int LUACALL wxLua_wxMemoryBuffer_AppendByte(lua_State *L) -{ - // char data - char data = (char)wxlua_getnumbertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call AppendByte - self->AppendByte(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_AppendData[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TLIGHTUSERDATA, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_AppendData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_AppendData[1] = {{ wxLua_wxMemoryBuffer_AppendData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMemoryBuffer_AppendData }}; -// void AppendData(const void *data, size_t len); -static int LUACALL wxLua_wxMemoryBuffer_AppendData(lua_State *L) -{ - // size_t len - size_t len = (size_t)wxlua_getuintegertype(L, 3); - // const void data - const void * data = (const void *)wxlua_touserdata(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call AppendData - self->AppendData(data, len); - - return 0; -} - - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_Clear[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_Clear[1] = {{ wxLua_wxMemoryBuffer_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_Clear }}; -// %wxchkver_2_9_4 void Clear(); -static int LUACALL wxLua_wxMemoryBuffer_Clear(lua_State *L) -{ - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call Clear - self->Clear(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_Fill[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_Fill(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_Fill[1] = {{ wxLua_wxMemoryBuffer_Fill, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMemoryBuffer_Fill }}; -// %override wxLua_wxMemoryBuffer_Fill -// void Fill(unsigned char data, int start_index, size_t length); -static int LUACALL wxLua_wxMemoryBuffer_Fill(lua_State *L) -{ - // size_t length - size_t length = (size_t)wxlua_getnumbertype(L, 4); - // int start_index - int start_index = (int)wxlua_getnumbertype(L, 3); - // unsigned char data - int data = (unsigned char)wxlua_getnumbertype(L, 2); - wxASSERT_MSG(start_index >= 0, "index out of range"); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - if (length <= 0) - return 0; // Do nothing - // get data pointer - unsigned char *dptr = (unsigned char *)self->GetWriteBuf(start_index + length); - wxASSERT_MSG(dptr != NULL, "cannot reallocate buffer"); - memset(dptr + start_index, data, length); - if (self->GetDataLen() < start_index + length) - self->SetDataLen(start_index + length); - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_GetAppendBuf[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_GetAppendBuf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_GetAppendBuf[1] = {{ wxLua_wxMemoryBuffer_GetAppendBuf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_GetAppendBuf }}; -// void *GetAppendBuf(size_t sizeNeeded); -static int LUACALL wxLua_wxMemoryBuffer_GetAppendBuf(lua_State *L) -{ - // size_t sizeNeeded - size_t sizeNeeded = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call GetAppendBuf - void* returns = (void*)self->GetAppendBuf(sizeNeeded); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_GetBufSize[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_GetBufSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_GetBufSize[1] = {{ wxLua_wxMemoryBuffer_GetBufSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_GetBufSize }}; -// size_t GetBufSize() const; -static int LUACALL wxLua_wxMemoryBuffer_GetBufSize(lua_State *L) -{ - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call GetBufSize - size_t returns = (self->GetBufSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_GetByte[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_GetByte(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_GetByte[1] = {{ wxLua_wxMemoryBuffer_GetByte, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMemoryBuffer_GetByte }}; -// %override wxLua_wxMemoryBuffer_GetByte -// unsigned char GetByte(int index, size_t length = 1); -static int LUACALL wxLua_wxMemoryBuffer_GetByte(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - if (index < 0 || (unsigned)index >= self->GetDataLen()) - return 0; - // int length (optional) - int length = 1; - if (lua_gettop(L) >= 3) - length = (size_t)wxlua_getnumbertype(L, 3); - if (length <= 0) - return 0; - if ((unsigned)(index + length) > self->GetDataLen()) - length = self->GetDataLen() - index; - int count = 0; - while (count < length) { - unsigned char returns = ((unsigned char *)(self->GetData()))[index + count]; - lua_pushinteger(L, returns); - count++; - } - return length; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_GetData[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_GetData[1] = {{ wxLua_wxMemoryBuffer_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_GetData }}; -// void *GetData() const; -static int LUACALL wxLua_wxMemoryBuffer_GetData(lua_State *L) -{ - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call GetData - void* returns = (void*)self->GetData(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_GetDataLen[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_GetDataLen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_GetDataLen[1] = {{ wxLua_wxMemoryBuffer_GetDataLen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_GetDataLen }}; -// size_t GetDataLen() const; -static int LUACALL wxLua_wxMemoryBuffer_GetDataLen(lua_State *L) -{ - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call GetDataLen - size_t returns = (self->GetDataLen()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_GetWriteBuf[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_GetWriteBuf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_GetWriteBuf[1] = {{ wxLua_wxMemoryBuffer_GetWriteBuf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_GetWriteBuf }}; -// void *GetWriteBuf(size_t sizeNeeded); -static int LUACALL wxLua_wxMemoryBuffer_GetWriteBuf(lua_State *L) -{ - // size_t sizeNeeded - size_t sizeNeeded = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call GetWriteBuf - void* returns = (void*)self->GetWriteBuf(sizeNeeded); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_IsEmpty[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_IsEmpty[1] = {{ wxLua_wxMemoryBuffer_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_IsEmpty }}; -// %wxchkver_2_9_4 bool IsEmpty() const; -static int LUACALL wxLua_wxMemoryBuffer_IsEmpty(lua_State *L) -{ - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_SetBufSize[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_SetBufSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_SetBufSize[1] = {{ wxLua_wxMemoryBuffer_SetBufSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_SetBufSize }}; -// void SetBufSize(size_t size); -static int LUACALL wxLua_wxMemoryBuffer_SetBufSize(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call SetBufSize - self->SetBufSize(size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_SetByte[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_SetByte(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_SetByte[1] = {{ wxLua_wxMemoryBuffer_SetByte, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMemoryBuffer_SetByte }}; -// %override wxLua_wxMemoryBuffer_SetByte -// void SetByte(int index, unsigned char data); -static int LUACALL wxLua_wxMemoryBuffer_SetByte(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - wxASSERT_MSG(index >= 0, "index out of range"); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // more data? (optional) - int length = lua_gettop(L) - 2; - if (length <= 0) - return 0; // Do nothing - // get data pointer - unsigned char *dptr = (unsigned char *)self->GetWriteBuf(index + length); - wxASSERT_MSG(dptr != NULL, "cannot reallocate buffer"); - int count = 0; - while (count < length) { - ((unsigned char *)(self->GetData()))[index + count] = (unsigned char)wxlua_getnumbertype(L, 3 + count); - count++; - } - if (self->GetDataLen() < (unsigned)(index + length)) - self->SetDataLen(index + length); - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_SetDataLen[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_SetDataLen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_SetDataLen[1] = {{ wxLua_wxMemoryBuffer_SetDataLen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_SetDataLen }}; -// void SetDataLen(size_t len); -static int LUACALL wxLua_wxMemoryBuffer_SetDataLen(lua_State *L) -{ - // size_t len - size_t len = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call SetDataLen - self->SetDataLen(len); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_UngetAppendBuf[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_UngetAppendBuf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_UngetAppendBuf[1] = {{ wxLua_wxMemoryBuffer_UngetAppendBuf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_UngetAppendBuf }}; -// void UngetAppendBuf(size_t sizeUsed); -static int LUACALL wxLua_wxMemoryBuffer_UngetAppendBuf(lua_State *L) -{ - // size_t sizeUsed - size_t sizeUsed = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call UngetAppendBuf - self->UngetAppendBuf(sizeUsed); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_UngetWriteBuf[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_UngetWriteBuf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_UngetWriteBuf[1] = {{ wxLua_wxMemoryBuffer_UngetWriteBuf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryBuffer_UngetWriteBuf }}; -// void UngetWriteBuf(size_t sizeUsed); -static int LUACALL wxLua_wxMemoryBuffer_UngetWriteBuf(lua_State *L) -{ - // size_t sizeUsed - size_t sizeUsed = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call UngetWriteBuf - self->UngetWriteBuf(sizeUsed); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_delete[] = { &wxluatype_wxMemoryBuffer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_release[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_release(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_release[1] = {{ wxLua_wxMemoryBuffer_release, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_release }}; -// void *release(); -static int LUACALL wxLua_wxMemoryBuffer_release(lua_State *L) -{ - // get this - wxMemoryBuffer * self = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call release - void* returns = (void*)self->release(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_constructor1[] = { &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_constructor1[1] = {{ wxLua_wxMemoryBuffer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_constructor1 }}; -// wxMemoryBuffer(const wxMemoryBuffer& src); -static int LUACALL wxLua_wxMemoryBuffer_constructor1(lua_State *L) -{ - // const wxMemoryBuffer src - const wxMemoryBuffer * src = (const wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - // call constructor - wxMemoryBuffer* returns = new wxMemoryBuffer(*src); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryBuffer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryBuffer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryBuffer_constructor[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryBuffer_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_constructor[1] = {{ wxLua_wxMemoryBuffer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_constructor }}; -// wxMemoryBuffer(size_t size = wxMemoryBufferData::DefBufSize); -static int LUACALL wxLua_wxMemoryBuffer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t size = wxMemoryBufferData::DefBufSize - size_t size = (argCount >= 1 ? (size_t)wxlua_getuintegertype(L, 1) : wxMemoryBufferData::DefBufSize); - // call constructor - wxMemoryBuffer* returns = new wxMemoryBuffer(size); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryBuffer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryBuffer); - - return 1; -} - - - - -#if (wxLUA_USE_wxMemoryBuffer) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryBuffer_constructor_overload[] = -{ - { wxLua_wxMemoryBuffer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_constructor1 }, - { wxLua_wxMemoryBuffer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMemoryBuffer_constructor }, -}; -static int s_wxluafunc_wxLua_wxMemoryBuffer_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMemoryBuffer_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxMemoryBuffer) - -void wxLua_wxMemoryBuffer_delete_function(void** p) -{ - wxMemoryBuffer* o = (wxMemoryBuffer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMemoryBuffer_methods[] = { - { "AppendByte", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_AppendByte, 1, NULL }, - { "AppendData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_AppendData, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_Clear, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) - - { "Fill", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_Fill, 1, NULL }, - { "GetAppendBuf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_GetAppendBuf, 1, NULL }, - { "GetBufSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_GetBufSize, 1, NULL }, - { "GetByte", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_GetByte, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_GetData, 1, NULL }, - { "GetDataLen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_GetDataLen, 1, NULL }, - { "GetWriteBuf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_GetWriteBuf, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_IsEmpty, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMemoryBuffer) - - { "SetBufSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_SetBufSize, 1, NULL }, - { "SetByte", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_SetByte, 1, NULL }, - { "SetDataLen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_SetDataLen, 1, NULL }, - { "UngetAppendBuf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_UngetAppendBuf, 1, NULL }, - { "UngetWriteBuf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_UngetWriteBuf, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMemoryBuffer_delete, 1, NULL }, - { "release", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryBuffer_release, 1, NULL }, - -#if (wxLUA_USE_wxMemoryBuffer) - { "wxMemoryBuffer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMemoryBuffer_constructor_overload, s_wxluafunc_wxLua_wxMemoryBuffer_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxMemoryBuffer) - - { 0, 0, 0, 0 }, -}; - -int wxMemoryBuffer_methodCount = sizeof(wxMemoryBuffer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMemoryBuffer - - -#if wxUSE_VARIANT -// --------------------------------------------------------------------------- -// Bind class wxVariant -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxVariant' -int wxluatype_wxVariant = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_Append[] = { &wxluatype_wxVariant, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_Append(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_Append[1] = {{ wxLua_wxVariant_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_Append }}; -// void Append(const wxVariant& value); -static int LUACALL wxLua_wxVariant_Append(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call Append - self->Append(*value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_Clear[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_Clear[1] = {{ wxLua_wxVariant_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxVariant_Clear(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_ClearList[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_ClearList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_ClearList[1] = {{ wxLua_wxVariant_ClearList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_ClearList }}; -// void ClearList(); -static int LUACALL wxLua_wxVariant_ClearList(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call ClearList - self->ClearList(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_Delete[] = { &wxluatype_wxVariant, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxVariant_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_Delete[1] = {{ wxLua_wxVariant_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_Delete }}; -// bool Delete(size_t item); -static int LUACALL wxLua_wxVariant_Delete(lua_State *L) -{ - // size_t item - size_t item = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call Delete - bool returns = (self->Delete(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetArrayString[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetArrayString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetArrayString[1] = {{ wxLua_wxVariant_GetArrayString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetArrayString }}; -// wxArrayString GetArrayString() const; -static int LUACALL wxLua_wxVariant_GetArrayString(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetArrayString - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetArrayString()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetBool[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetBool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetBool[1] = {{ wxLua_wxVariant_GetBool, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetBool }}; -// bool GetBool() const; -static int LUACALL wxLua_wxVariant_GetBool(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetBool - bool returns = (self->GetBool()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetCount[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetCount[1] = {{ wxLua_wxVariant_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetCount }}; -// size_t GetCount() const; -static int LUACALL wxLua_wxVariant_GetCount(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetCount - size_t returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetDateTime[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetDateTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetDateTime[1] = {{ wxLua_wxVariant_GetDateTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetDateTime }}; -// wxDateTime GetDateTime() const; -static int LUACALL wxLua_wxVariant_GetDateTime(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetDateTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetDateTime()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetDouble[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetDouble[1] = {{ wxLua_wxVariant_GetDouble, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetDouble }}; -// double GetDouble() const; -static int LUACALL wxLua_wxVariant_GetDouble(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetDouble - double returns = (self->GetDouble()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetList[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetList[1] = {{ wxLua_wxVariant_GetList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetList }}; -// wxVariantList& GetList() const; -static int LUACALL wxLua_wxVariant_GetList(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetList - wxVariantList* returns = (wxVariantList*)&self->GetList(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariantList); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetLong[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetLong[1] = {{ wxLua_wxVariant_GetLong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetLong }}; -// long GetLong() const; -static int LUACALL wxLua_wxVariant_GetLong(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetLong - long returns = (self->GetLong()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxUSE_LONGLONG) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetLongLong[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetLongLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetLongLong[1] = {{ wxLua_wxVariant_GetLongLong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetLongLong }}; -// wxLongLong GetLongLong() const; -static int LUACALL wxLua_wxVariant_GetLongLong(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetLongLong - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetLongLong()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -#endif // (wxUSE_LONGLONG) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetName[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetName[1] = {{ wxLua_wxVariant_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetName }}; -// const wxString& GetName() const; -static int LUACALL wxLua_wxVariant_GetName(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetString[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetString[1] = {{ wxLua_wxVariant_GetString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetString }}; -// wxString GetString() const; -static int LUACALL wxLua_wxVariant_GetString(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetString - wxString returns = (self->GetString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetType[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetType[1] = {{ wxLua_wxVariant_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetType }}; -// wxString GetType() const; -static int LUACALL wxLua_wxVariant_GetType(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetType - wxString returns = (self->GetType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxUSE_LONGLONG) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetULongLong[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetULongLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetULongLong[1] = {{ wxLua_wxVariant_GetULongLong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetULongLong }}; -// wxULongLong GetULongLong() const; -static int LUACALL wxLua_wxVariant_GetULongLong(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetULongLong - // allocate a new object using the copy constructor - wxULongLong* returns = new wxULongLong(self->GetULongLong()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - -#endif // (wxUSE_LONGLONG) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetVoidPtr[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetVoidPtr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetVoidPtr[1] = {{ wxLua_wxVariant_GetVoidPtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetVoidPtr }}; -// void* GetVoidPtr() const; -static int LUACALL wxLua_wxVariant_GetVoidPtr(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetVoidPtr - void* returns = (void*)self->GetVoidPtr(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#if (wxLUA_USE_wxObject) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_GetWxObjectPtr[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_GetWxObjectPtr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_GetWxObjectPtr[1] = {{ wxLua_wxVariant_GetWxObjectPtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_GetWxObjectPtr }}; -// wxObject* GetWxObjectPtr() const; -static int LUACALL wxLua_wxVariant_GetWxObjectPtr(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetWxObjectPtr - wxObject* returns = (wxObject*)self->GetWxObjectPtr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // (wxLUA_USE_wxObject) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_Insert[] = { &wxluatype_wxVariant, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_Insert[1] = {{ wxLua_wxVariant_Insert, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_Insert }}; -// void Insert(const wxVariant& value); -static int LUACALL wxLua_wxVariant_Insert(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call Insert - self->Insert(*value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_IsNull[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_IsNull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_IsNull[1] = {{ wxLua_wxVariant_IsNull, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_IsNull }}; -// bool IsNull() const; -static int LUACALL wxLua_wxVariant_IsNull(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call IsNull - bool returns = (self->IsNull()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_IsType[] = { &wxluatype_wxVariant, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxVariant_IsType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_IsType[1] = {{ wxLua_wxVariant_IsType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_IsType }}; -// bool IsType(const wxString& type) const; -static int LUACALL wxLua_wxVariant_IsType(lua_State *L) -{ - // const wxString type - const wxString type = wxlua_getwxStringtype(L, 2); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call IsType - bool returns = (self->IsType(type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_IsValueKindOf[] = { &wxluatype_wxVariant, &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxVariant_IsValueKindOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_IsValueKindOf[1] = {{ wxLua_wxVariant_IsValueKindOf, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_IsValueKindOf }}; -// bool IsValueKindOf(const wxClassInfo* type) const; -static int LUACALL wxLua_wxVariant_IsValueKindOf(lua_State *L) -{ - // const wxClassInfo type - const wxClassInfo * type = (const wxClassInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClassInfo); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call IsValueKindOf - bool returns = (self->IsValueKindOf(type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_MakeNull[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_MakeNull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_MakeNull[1] = {{ wxLua_wxVariant_MakeNull, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_MakeNull }}; -// void MakeNull(); -static int LUACALL wxLua_wxVariant_MakeNull(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call MakeNull - self->MakeNull(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_MakeString[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_MakeString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_MakeString[1] = {{ wxLua_wxVariant_MakeString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_MakeString }}; -// wxString MakeString() const; -static int LUACALL wxLua_wxVariant_MakeString(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call MakeString - wxString returns = (self->MakeString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_Member[] = { &wxluatype_wxVariant, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_Member(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_Member[1] = {{ wxLua_wxVariant_Member, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_Member }}; -// bool Member(const wxVariant& value) const; -static int LUACALL wxLua_wxVariant_Member(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call Member - bool returns = (self->Member(*value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_NullList[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_NullList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_NullList[1] = {{ wxLua_wxVariant_NullList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_NullList }}; -// void NullList(); -static int LUACALL wxLua_wxVariant_NullList(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call NullList - self->NullList(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_SetData[] = { &wxluatype_wxVariant, &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariant_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_SetData[1] = {{ wxLua_wxVariant_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_SetData }}; -// void SetData(wxVariantData* data); -static int LUACALL wxLua_wxVariant_SetData(lua_State *L) -{ - // wxVariantData data - wxVariantData * data = (wxVariantData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariantData); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call SetData - self->SetData(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_ToLuaValue[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_ToLuaValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_ToLuaValue[1] = {{ wxLua_wxVariant_ToLuaValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_ToLuaValue }}; -// %override wxLua_wxVariant_ToLuaValue -// int ToLuaValue() const -static int LUACALL wxLua_wxVariant_ToLuaValue(lua_State *L) -{ - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - - if (self->IsType("arrstring")) { - wxArrayString returns = self->GetArrayString(); - wxlua_pushwxArrayStringtable(L, returns); - return 1; - } else if (self->IsType("datetime")) { - wxDateTime* returns = new wxDateTime(self->GetDateTime()); - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - return 1; - } else if (self->IsType("string")) { - wxString returns = self->GetString(); - wxlua_pushwxString(L, returns); - return 1; - } else if (self->IsType("char")) { - wxUniChar returns = self->GetChar(); - lua_pushnumber(L, returns.GetValue()); - return 1; - } else if (self->IsType("double")) { - double returns = self->GetDouble(); - lua_pushnumber(L, returns); - return 1; - } else if (self->IsType("longlong")) { - wxLongLong returns = self->GetLongLong(); - lua_pushnumber(L, returns.ToLong()); - return 1; - } else if (self->IsType("ulonglong")) { - wxULongLong returns = self->GetULongLong(); - lua_pushnumber(L, returns.GetValue()); - return 1; - } else if (self->IsType("long")) { - long returns = self->GetLong(); - lua_pushnumber(L, returns); - return 1; - } else if (self->IsType("bool")) { - long returns = self->GetBool(); - lua_pushboolean(L, returns); - return 1; - } else if (self->IsNull()) { - lua_pushnil(L); - return 1; - } - - wxlua_argerror(L, 1, wxT("a 'convertable variant'")); - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_Unshare[] = { &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxVariant_Unshare(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_Unshare[1] = {{ wxLua_wxVariant_Unshare, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariant_Unshare }}; -// bool Unshare(); -static int LUACALL wxLua_wxVariant_Unshare(lua_State *L) -{ - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call Unshare - bool returns = (self->Unshare()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_delete[] = { &wxluatype_wxVariant, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxVariant_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_op_index1[] = { &wxluatype_wxVariant, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxVariant_op_index1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_op_index1[1] = {{ wxLua_wxVariant_op_index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_op_index1 }}; -// wxVariant& operator [](size_t idx); -static int LUACALL wxLua_wxVariant_op_index1(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call op_index - wxVariant* returns = (wxVariant*)&((*self)[(idx)]); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_op_index[] = { &wxluatype_wxVariant, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxVariant_op_index(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_op_index[1] = {{ wxLua_wxVariant_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_op_index }}; -// wxVariant operator [](size_t idx) const; -static int LUACALL wxLua_wxVariant_op_index(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxVariant * self = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call op_index - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant((*self)[(idx)]); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor7[] = { &wxluatype_wxVariantList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxVariant_constructor7(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor7[1] = {{ wxLua_wxVariant_constructor7, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxVariant_constructor7 }}; -// wxVariant(const wxVariantList& val, const wxString& name = wxEmptyString); // List of variants -static int LUACALL wxLua_wxVariant_constructor7(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxEmptyString - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxVariantList val - const wxVariantList * val = (const wxVariantList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantList); - // call constructor - wxVariant* returns = new wxVariant(*val, name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - -#if (wxLUA_USE_wxObject) && (wxUSE_VARIANT) -#define wxLua_wxVariant_constructor6 wxLua_wxVariantFromObject_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor6[] = { &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxVariant_constructor6(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor6[1] = {{ wxLua_wxVariant_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor6 }}; -// %override wxLua_wxVariantFromObject_constructor -// wxVariant(wxObject *o) -static int LUACALL wxLua_wxVariantFromObject_constructor(lua_State *L) -{ - // wxObject o - wxObject * o = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - if (wxluaO_isgcobject(L, o)) wxluaO_undeletegcobject(L, o); - // call constructor - wxVariant* returns = new wxVariant(o); - // push the constructed class pointer - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - -#endif // (wxLUA_USE_wxObject) && (wxUSE_VARIANT) - -#define wxLua_wxVariant_constructor5 wxLua_wxVariantFromDouble_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor5[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxVariant_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor5[1] = {{ wxLua_wxVariant_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor5 }}; -// %override wxLua_wxVariantFromDouble_constructor -// wxVariant(double d) -static int LUACALL wxLua_wxVariantFromDouble_constructor(lua_State *L) -{ - wxVariant* returns; - - if (lua_isboolean(L, 1)) { - bool b = (bool)wxlua_getbooleantype(L, 1); - returns = new wxVariant(b); - } - else { - double d = (double)wxlua_getnumbertype(L, 1); - if ((int)d == d) { - int i = (int)d; - returns = new wxVariant(i); - } else { - returns = new wxVariant(d); - } - } - - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - -#define wxLua_wxVariant_constructor4 wxLua_wxVariantFromString_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor4[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxVariant_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor4[1] = {{ wxLua_wxVariant_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor4 }}; -// %override wxLua_wxVariantFromString_constructor -// wxVariant(const wxString& str) -static int LUACALL wxLua_wxVariantFromString_constructor(lua_State *L) -{ - // const wxString str = "" - const wxString str = wxlua_getwxStringtype(L, 1); - // call constructor - wxVariant* returns = new wxVariant(str); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - - -#if (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) -#define wxLua_wxVariant_constructor3 wxLua_wxVariantFromArrayString_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor3[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxVariant_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor3[1] = {{ wxLua_wxVariant_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor3 }}; -// %override wxLua_wxVariantFromArrayString_constructor -// wxVariant(const wxArrayString& a) -static int LUACALL wxLua_wxVariantFromArrayString_constructor(lua_State *L) -{ - // wxLuaSmartwxArrayString a - wxLuaSmartwxArrayString a(wxlua_getwxArrayString(L, 1)); - // call constructor - wxVariant* returns = new wxVariant((wxArrayString&)a); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) -#define wxLua_wxVariant_constructor2 wxLua_wxVariantFromDateTime_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor2[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxVariant_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor2[1] = {{ wxLua_wxVariant_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor2 }}; -// %override wxLua_wxVariantFromDateTime_constructor -// wxVariant(const wxDateTime& d) -static int LUACALL wxLua_wxVariantFromDateTime_constructor(lua_State *L) -{ - // wxDateTime d - wxDateTime * d = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call constructor - wxVariant* returns = new wxVariant(*d); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) - -#define wxLua_wxVariant_constructor1 wxLua_wxVariantFromVoidPtr_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariant_constructor1[] = { &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxVariant_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor1[1] = {{ wxLua_wxVariant_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor1 }}; -// %override wxLua_wxVariantFromVoidPtr_constructor -// wxVariant(void *p) -static int LUACALL wxLua_wxVariantFromVoidPtr_constructor(lua_State *L) -{ - wxVariant* returns; - - if (lua_isnil(L, 1)) { - returns = new wxVariant(); - } else { - void * p = (void *)wxlua_touserdata(L, 1); - returns = new wxVariant(p); - } - - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - -static int LUACALL wxLua_wxVariant_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor[1] = {{ wxLua_wxVariant_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxVariant(); -static int LUACALL wxLua_wxVariant_constructor(lua_State *L) -{ - // call constructor - wxVariant* returns = new wxVariant(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - - - - -#if (wxUSE_VARIANT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_op_index_overload[] = -{ - { wxLua_wxVariant_op_index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_op_index1 }, - { wxLua_wxVariant_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariant_op_index }, -}; -static int s_wxluafunc_wxLua_wxVariant_op_index_overload_count = sizeof(s_wxluafunc_wxLua_wxVariant_op_index_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_VARIANT) - -#if (wxUSE_VARIANT)||((wxLUA_USE_wxObject) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayString) && (wxUSE_VARIANT))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariant_constructor_overload[] = -{ - { wxLua_wxVariant_constructor7, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxVariant_constructor7 }, - -#if (wxLUA_USE_wxObject) && (wxUSE_VARIANT) - { wxLua_wxVariant_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor6 }, -#endif // (wxLUA_USE_wxObject) && (wxUSE_VARIANT) - { wxLua_wxVariant_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor5 }, - { wxLua_wxVariant_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor4 }, - -#if (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) - { wxLua_wxVariant_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor3 }, -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) - { wxLua_wxVariant_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor2 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) - { wxLua_wxVariant_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxVariant_constructor1 }, - { wxLua_wxVariant_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxVariant_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxVariant_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_VARIANT)||((wxLUA_USE_wxObject) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayString) && (wxUSE_VARIANT))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT)) - -void wxLua_wxVariant_delete_function(void** p) -{ - wxVariant* o = (wxVariant*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxVariant_methods[] = { - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_Append, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_Clear, 1, NULL }, - { "ClearList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_ClearList, 1, NULL }, - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_Delete, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) - { "GetArrayString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetArrayString, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_VARIANT) - - { "GetBool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetBool, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) - { "GetDateTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetDateTime, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT) - - { "GetDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetDouble, 1, NULL }, - { "GetList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetList, 1, NULL }, - { "GetLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetLong, 1, NULL }, - -#if (wxUSE_LONGLONG) && (wxUSE_VARIANT) - { "GetLongLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetLongLong, 1, NULL }, -#endif // (wxUSE_LONGLONG) && (wxUSE_VARIANT) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetName, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetString, 1, NULL }, - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetType, 1, NULL }, - -#if (wxUSE_LONGLONG) && (wxUSE_VARIANT) - { "GetULongLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetULongLong, 1, NULL }, -#endif // (wxUSE_LONGLONG) && (wxUSE_VARIANT) - - { "GetVoidPtr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetVoidPtr, 1, NULL }, - -#if (wxLUA_USE_wxObject) && (wxUSE_VARIANT) - { "GetWxObjectPtr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_GetWxObjectPtr, 1, NULL }, -#endif // (wxLUA_USE_wxObject) && (wxUSE_VARIANT) - - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_Insert, 1, NULL }, - { "IsNull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_IsNull, 1, NULL }, - { "IsType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_IsType, 1, NULL }, - -#if (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) - { "IsValueKindOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_IsValueKindOf, 1, NULL }, -#endif // (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) - - { "MakeNull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_MakeNull, 1, NULL }, - { "MakeString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_MakeString, 1, NULL }, - { "Member", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_Member, 1, NULL }, - { "NullList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_NullList, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_SetData, 1, NULL }, - { "ToLuaValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_ToLuaValue, 1, NULL }, - { "Unshare", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_Unshare, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxVariant_delete, 1, NULL }, - -#if (wxUSE_VARIANT) - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariant_op_index_overload, s_wxluafunc_wxLua_wxVariant_op_index_overload_count, 0 }, -#endif // (wxUSE_VARIANT) - -#if (wxUSE_VARIANT)||((wxLUA_USE_wxObject) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayString) && (wxUSE_VARIANT))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT)) - { "wxVariant", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxVariant_constructor_overload, s_wxluafunc_wxLua_wxVariant_constructor_overload_count, 0 }, -#endif // (wxUSE_VARIANT)||((wxLUA_USE_wxObject) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayString) && (wxUSE_VARIANT))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxUSE_VARIANT)) - - { 0, 0, 0, 0 }, -}; - -int wxVariant_methodCount = sizeof(wxVariant_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_VARIANT - - -#if wxUSE_VARIANT -// --------------------------------------------------------------------------- -// Bind class wxVariantData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxVariantData' -int wxluatype_wxVariantData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_Clone[] = { &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariantData_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_Clone[1] = {{ wxLua_wxVariantData_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariantData_Clone }}; -// virtual wxVariantData* Clone() const; -static int LUACALL wxLua_wxVariantData_Clone(lua_State *L) -{ - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call Clone - wxVariantData* returns = (wxVariantData*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariantData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_DecRef[] = { &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariantData_DecRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_DecRef[1] = {{ wxLua_wxVariantData_DecRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariantData_DecRef }}; -// void DecRef(); -static int LUACALL wxLua_wxVariantData_DecRef(lua_State *L) -{ - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call DecRef - self->DecRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_Eq[] = { &wxluatype_wxVariantData, &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariantData_Eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_Eq[1] = {{ wxLua_wxVariantData_Eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariantData_Eq }}; -// virtual bool Eq(wxVariantData& data) const = 0; -static int LUACALL wxLua_wxVariantData_Eq(lua_State *L) -{ - // wxVariantData data - wxVariantData * data = (wxVariantData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariantData); - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call Eq - bool returns = (self->Eq(*data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_GetType[] = { &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariantData_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_GetType[1] = {{ wxLua_wxVariantData_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariantData_GetType }}; -// virtual wxString GetType() const = 0; -static int LUACALL wxLua_wxVariantData_GetType(lua_State *L) -{ - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call GetType - wxString returns = (self->GetType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_GetValueClassInfo[] = { &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariantData_GetValueClassInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_GetValueClassInfo[1] = {{ wxLua_wxVariantData_GetValueClassInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariantData_GetValueClassInfo }}; -// virtual wxClassInfo* GetValueClassInfo(); -static int LUACALL wxLua_wxVariantData_GetValueClassInfo(lua_State *L) -{ - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call GetValueClassInfo - wxClassInfo* returns = (wxClassInfo*)self->GetValueClassInfo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClassInfo); - - return 1; -} - -#endif // (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_IncRef[] = { &wxluatype_wxVariantData, NULL }; -static int LUACALL wxLua_wxVariantData_IncRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_IncRef[1] = {{ wxLua_wxVariantData_IncRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVariantData_IncRef }}; -// void IncRef(); -static int LUACALL wxLua_wxVariantData_IncRef(lua_State *L) -{ - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call IncRef - self->IncRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_Read[] = { &wxluatype_wxVariantData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxVariantData_Read(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_Read[1] = {{ wxLua_wxVariantData_Read, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariantData_Read }}; -// virtual bool Read(wxString& string); -static int LUACALL wxLua_wxVariantData_Read(lua_State *L) -{ - // wxString string - wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call Read - bool returns = (self->Read(string)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_Write[] = { &wxluatype_wxVariantData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxVariantData_Write(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_Write[1] = {{ wxLua_wxVariantData_Write, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVariantData_Write }}; -// virtual bool Write(wxString& string) const; -static int LUACALL wxLua_wxVariantData_Write(lua_State *L) -{ - // wxString string - wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxVariantData * self = (wxVariantData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariantData); - // call Write - bool returns = (self->Write(string)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVariantData_delete[] = { &wxluatype_wxVariantData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVariantData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxVariantData_delete }}; - - - - -// %override wxLua_wxVariantData_delete_function -// delete is private in wxVariantData -void wxLua_wxVariantData_delete_function(void** p) -{ -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxVariantData_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_Clone, 1, NULL }, - { "DecRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_DecRef, 1, NULL }, - { "Eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_Eq, 1, NULL }, - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_GetType, 1, NULL }, - -#if (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) - { "GetValueClassInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_GetValueClassInfo, 1, NULL }, -#endif // (wxLUA_USE_wxClassInfo) && (wxUSE_VARIANT) - - { "IncRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_IncRef, 1, NULL }, - { "Read", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_Read, 1, NULL }, - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVariantData_Write, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxVariantData_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxVariantData_methodCount = sizeof(wxVariantData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_VARIANT - - -#if wxUSE_VARIANT -// --------------------------------------------------------------------------- -// Bind class wxVariantList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxVariantList' -int wxluatype_wxVariantList = WXLUA_TUNKNOWN; - - - -void wxLua_wxVariantList_delete_function(void** p) -{ - wxVariantList* o = (wxVariantList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxVariantList_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxVariantList_methodCount = sizeof(wxVariantList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_VARIANT - diff --git a/wxLua/modules/wxbind/src/wxbase_datetime.cpp b/wxLua/modules/wxbind/src/wxbase_datetime.cpp deleted file mode 100644 index 8a5a0391..00000000 --- a/wxLua/modules/wxbind/src/wxbase_datetime.cpp +++ /dev/null @@ -1,5427 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxbase_datetime.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxbase_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxDateTime::TimeZone -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateTime::TimeZone' -int wxluatype_wxDateTime_TimeZone = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_TimeZone_GetOffset[] = { &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_TimeZone_GetOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_TimeZone_GetOffset[1] = {{ wxLua_wxDateTime_TimeZone_GetOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_TimeZone_GetOffset }}; -// long GetOffset() const; -static int LUACALL wxLua_wxDateTime_TimeZone_GetOffset(lua_State *L) -{ - // get this - wxDateTime::TimeZone * self = (wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime_TimeZone); - // call GetOffset - long returns = (self->GetOffset()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_TimeZone_Make[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_TimeZone_Make(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_TimeZone_Make[1] = {{ wxLua_wxDateTime_TimeZone_Make, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_TimeZone_Make }}; -// static wxDateTime::TimeZone Make(long offset); -static int LUACALL wxLua_wxDateTime_TimeZone_Make(lua_State *L) -{ - // long offset - long offset = (long)wxlua_getnumbertype(L, 1); - // call Make - // allocate a new object using the copy constructor - wxDateTime::TimeZone* returns = new wxDateTime::TimeZone(wxDateTime::TimeZone::Make(offset)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime_TimeZone); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime_TimeZone); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_TimeZone_delete[] = { &wxluatype_wxDateTime_TimeZone, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_TimeZone_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_TimeZone_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_TimeZone_constructor[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_TimeZone_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_TimeZone_constructor[1] = {{ wxLua_wxDateTime_TimeZone_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_TimeZone_constructor }}; -// wxDateTime::TimeZone(wxDateTime::TZ tz); -static int LUACALL wxLua_wxDateTime_TimeZone_constructor(lua_State *L) -{ - // wxDateTime::TZ tz - wxDateTime::TZ tz = (wxDateTime::TZ)wxlua_getenumtype(L, 1); - // call constructor - wxDateTime::TimeZone* returns = new wxDateTime::TimeZone(tz); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime_TimeZone); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime_TimeZone); - - return 1; -} - - - - -void wxLua_wxDateTime_TimeZone_delete_function(void** p) -{ - wxDateTime::TimeZone* o = (wxDateTime::TimeZone*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateTime_TimeZone_methods[] = { - { "GetOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_TimeZone_GetOffset, 1, NULL }, - { "Make", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_TimeZone_Make, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDateTime_TimeZone_delete, 1, NULL }, - { "wxDateTime_TimeZone", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTime_TimeZone_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDateTime_TimeZone_methodCount = sizeof(wxDateTime_TimeZone_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxDateTime -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateTime' -int wxluatype_wxDateTime = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_Add1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateTime_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Add1[1] = {{ wxLua_wxDateTime_Add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Add1 }}; -// wxDateTime& Add(const wxDateSpan& diff); -static int LUACALL wxLua_wxDateTime_Add1(lua_State *L) -{ - // const wxDateSpan diff - const wxDateSpan * diff = (const wxDateSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateSpan); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Add - wxDateTime* returns = (wxDateTime*)&self->Add(*diff); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_Add[] = { &wxluatype_wxDateTime, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxDateTime_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Add[1] = {{ wxLua_wxDateTime_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Add }}; -// wxDateTime& Add(const wxTimeSpan& diff); -static int LUACALL wxLua_wxDateTime_Add(lua_State *L) -{ - // const wxTimeSpan diff - const wxTimeSpan * diff = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Add - wxDateTime* returns = (wxDateTime*)&self->Add(*diff); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ConvertYearToBC[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_ConvertYearToBC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ConvertYearToBC[1] = {{ wxLua_wxDateTime_ConvertYearToBC, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_ConvertYearToBC }}; -// static int ConvertYearToBC(int year); -static int LUACALL wxLua_wxDateTime_ConvertYearToBC(lua_State *L) -{ - // int year - int year = (int)wxlua_getnumbertype(L, 1); - // call ConvertYearToBC - int returns = (wxDateTime::ConvertYearToBC(year)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_Format[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_Format(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Format[1] = {{ wxLua_wxDateTime_Format, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_Format }}; -// wxString Format(wxString format = "%c", wxDateTime::TZ tz = wxDateTime::Local) const; -static int LUACALL wxLua_wxDateTime_Format(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::TZ tz = wxDateTime::Local - wxDateTime::TZ tz = (argCount >= 3 ? (wxDateTime::TZ)wxlua_getenumtype(L, 3) : wxDateTime::Local); - // wxString format = "%c" - wxString format = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("%c"))); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Format - wxString returns = (self->Format(format, tz)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_FormatDate[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_FormatDate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_FormatDate[1] = {{ wxLua_wxDateTime_FormatDate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_FormatDate }}; -// wxString FormatDate() const; -static int LUACALL wxLua_wxDateTime_FormatDate(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call FormatDate - wxString returns = (self->FormatDate()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_FormatISODate[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_FormatISODate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_FormatISODate[1] = {{ wxLua_wxDateTime_FormatISODate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_FormatISODate }}; -// wxString FormatISODate() const; -static int LUACALL wxLua_wxDateTime_FormatISODate(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call FormatISODate - wxString returns = (self->FormatISODate()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_FormatISOTime[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_FormatISOTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_FormatISOTime[1] = {{ wxLua_wxDateTime_FormatISOTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_FormatISOTime }}; -// wxString FormatISOTime() const; -static int LUACALL wxLua_wxDateTime_FormatISOTime(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call FormatISOTime - wxString returns = (self->FormatISOTime()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_FormatTime[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_FormatTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_FormatTime[1] = {{ wxLua_wxDateTime_FormatTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_FormatTime }}; -// wxString FormatTime() const; -static int LUACALL wxLua_wxDateTime_FormatTime(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call FormatTime - wxString returns = (self->FormatTime()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_FromTimezone[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_FromTimezone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_FromTimezone[1] = {{ wxLua_wxDateTime_FromTimezone, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_FromTimezone }}; -// wxDateTime FromTimezone(const wxDateTime::TimeZone& tz, bool noDST = false) const; -static int LUACALL wxLua_wxDateTime_FromTimezone(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxDateTime::TimeZone tz - const wxDateTime::TimeZone * tz = (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call FromTimezone - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->FromTimezone(*tz, noDST)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_FromUTC[] = { &wxluatype_wxDateTime, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_FromUTC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_FromUTC[1] = {{ wxLua_wxDateTime_FromUTC, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_FromUTC }}; -// wxDateTime FromUTC(bool noDST = false) const; -static int LUACALL wxLua_wxDateTime_FromUTC(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call FromUTC - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->FromUTC(noDST)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetAsDOS[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetAsDOS(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetAsDOS[1] = {{ wxLua_wxDateTime_GetAsDOS, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetAsDOS }}; -// unsigned long GetAsDOS() const; -static int LUACALL wxLua_wxDateTime_GetAsDOS(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetAsDOS - unsigned long returns = (self->GetAsDOS()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetBeginDST[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetBeginDST(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetBeginDST[1] = {{ wxLua_wxDateTime_GetBeginDST, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 2, s_wxluatypeArray_wxLua_wxDateTime_GetBeginDST }}; -// static wxDateTime GetBeginDST(int year = wxDateTime::Inv_Year, wxDateTime::Country country = wxDateTime::Country_Default); -static int LUACALL wxLua_wxDateTime_GetBeginDST(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 2 ? (wxDateTime::Country)wxlua_getenumtype(L, 2) : wxDateTime::Country_Default); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxDateTime::Inv_Year); - // call GetBeginDST - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxDateTime::GetBeginDST(year, country)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetCentury1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetCentury1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetCentury1[1] = {{ wxLua_wxDateTime_GetCentury1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetCentury1 }}; -// int GetCentury(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetCentury1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetCentury - int returns = (self->GetCentury(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetCentury[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_GetCentury(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetCentury[1] = {{ wxLua_wxDateTime_GetCentury, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetCentury }}; -// static int GetCentury(int year); -static int LUACALL wxLua_wxDateTime_GetCentury(lua_State *L) -{ - // int year - int year = (int)wxlua_getnumbertype(L, 1); - // call GetCentury - int returns = (wxDateTime::GetCentury(year)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxDateTime_GetCountry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetCountry[1] = {{ wxLua_wxDateTime_GetCountry, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateTime::Country GetCountry(); -static int LUACALL wxLua_wxDateTime_GetCountry(lua_State *L) -{ - // call GetCountry - wxDateTime::Country returns = (wxDateTime::GetCountry()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetCurrentMonth[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetCurrentMonth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetCurrentMonth[1] = {{ wxLua_wxDateTime_GetCurrentMonth, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxDateTime_GetCurrentMonth }}; -// static wxDateTime::Month GetCurrentMonth(wxDateTime::Calendar cal = wxDateTime::Gregorian); -static int LUACALL wxLua_wxDateTime_GetCurrentMonth(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Calendar cal = wxDateTime::Gregorian - wxDateTime::Calendar cal = (argCount >= 1 ? (wxDateTime::Calendar)wxlua_getenumtype(L, 1) : wxDateTime::Gregorian); - // call GetCurrentMonth - wxDateTime::Month returns = (wxDateTime::GetCurrentMonth(cal)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetCurrentYear[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetCurrentYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetCurrentYear[1] = {{ wxLua_wxDateTime_GetCurrentYear, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxDateTime_GetCurrentYear }}; -// static int GetCurrentYear(wxDateTime::Calendar cal = wxDateTime::Gregorian); -static int LUACALL wxLua_wxDateTime_GetCurrentYear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Calendar cal = wxDateTime::Gregorian - wxDateTime::Calendar cal = (argCount >= 1 ? (wxDateTime::Calendar)wxlua_getenumtype(L, 1) : wxDateTime::Gregorian); - // call GetCurrentYear - int returns = (wxDateTime::GetCurrentYear(cal)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetDateOnly[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetDateOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetDateOnly[1] = {{ wxLua_wxDateTime_GetDateOnly, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetDateOnly }}; -// wxDateTime GetDateOnly() const; -static int LUACALL wxLua_wxDateTime_GetDateOnly(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetDateOnly - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetDateOnly()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetDay[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetDay[1] = {{ wxLua_wxDateTime_GetDay, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetDay }}; -// wxDateTime::wxDateTime_t GetDay(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetDay - wxDateTime::wxDateTime_t returns = (self->GetDay(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetDayOfYear[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetDayOfYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetDayOfYear[1] = {{ wxLua_wxDateTime_GetDayOfYear, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetDayOfYear }}; -// wxDateTime::wxDateTime_t GetDayOfYear(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetDayOfYear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetDayOfYear - wxDateTime::wxDateTime_t returns = (self->GetDayOfYear(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetEndDST[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetEndDST(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetEndDST[1] = {{ wxLua_wxDateTime_GetEndDST, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 2, s_wxluatypeArray_wxLua_wxDateTime_GetEndDST }}; -// static wxDateTime GetEndDST(int year = wxDateTime::Inv_Year, wxDateTime::Country country = wxDateTime::Country_Default); -static int LUACALL wxLua_wxDateTime_GetEndDST(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 2 ? (wxDateTime::Country)wxlua_getenumtype(L, 2) : wxDateTime::Country_Default); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxDateTime::Inv_Year); - // call GetEndDST - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxDateTime::GetEndDST(year, country)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetHour[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetHour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetHour[1] = {{ wxLua_wxDateTime_GetHour, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetHour }}; -// wxDateTime::wxDateTime_t GetHour(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetHour(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetHour - wxDateTime::wxDateTime_t returns = (self->GetHour(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetJDN[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetJDN(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetJDN[1] = {{ wxLua_wxDateTime_GetJDN, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetJDN }}; -// double GetJDN() const; -static int LUACALL wxLua_wxDateTime_GetJDN(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetJDN - double returns = (self->GetJDN()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetJulianDayNumber[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetJulianDayNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetJulianDayNumber[1] = {{ wxLua_wxDateTime_GetJulianDayNumber, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetJulianDayNumber }}; -// double GetJulianDayNumber() const; -static int LUACALL wxLua_wxDateTime_GetJulianDayNumber(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetJulianDayNumber - double returns = (self->GetJulianDayNumber()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetLastMonthDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_GetLastMonthDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetLastMonthDay[1] = {{ wxLua_wxDateTime_GetLastMonthDay, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_GetLastMonthDay }}; -// wxDateTime GetLastMonthDay(wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year) const; -static int LUACALL wxLua_wxDateTime_GetLastMonthDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 2 ? (wxDateTime::Month)wxlua_getenumtype(L, 2) : wxDateTime::Inv_Month); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetLastMonthDay - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetLastMonthDay(month, year)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetLastWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_GetLastWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetLastWeekDay[1] = {{ wxLua_wxDateTime_GetLastWeekDay, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxDateTime_GetLastWeekDay }}; -// wxDateTime GetLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year); -static int LUACALL wxLua_wxDateTime_GetLastWeekDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 3 ? (wxDateTime::Month)wxlua_getenumtype(L, 3) : wxDateTime::Inv_Month); - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetLastWeekDay - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetLastWeekDay(weekday, month, year)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetMJD[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetMJD(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetMJD[1] = {{ wxLua_wxDateTime_GetMJD, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetMJD }}; -// double GetMJD() const; -static int LUACALL wxLua_wxDateTime_GetMJD(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetMJD - double returns = (self->GetMJD()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetMillisecond[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetMillisecond(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetMillisecond[1] = {{ wxLua_wxDateTime_GetMillisecond, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetMillisecond }}; -// wxDateTime::wxDateTime_t GetMillisecond(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetMillisecond(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetMillisecond - wxDateTime::wxDateTime_t returns = (self->GetMillisecond(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetMinute[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetMinute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetMinute[1] = {{ wxLua_wxDateTime_GetMinute, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetMinute }}; -// wxDateTime::wxDateTime_t GetMinute(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetMinute(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetMinute - wxDateTime::wxDateTime_t returns = (self->GetMinute(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetModifiedJulianDayNumber[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetModifiedJulianDayNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetModifiedJulianDayNumber[1] = {{ wxLua_wxDateTime_GetModifiedJulianDayNumber, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetModifiedJulianDayNumber }}; -// double GetModifiedJulianDayNumber() const; -static int LUACALL wxLua_wxDateTime_GetModifiedJulianDayNumber(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetModifiedJulianDayNumber - double returns = (self->GetModifiedJulianDayNumber()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetMonth[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetMonth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetMonth[1] = {{ wxLua_wxDateTime_GetMonth, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetMonth }}; -// wxDateTime::Month GetMonth(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetMonth(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetMonth - wxDateTime::Month returns = (self->GetMonth(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetMonthName[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetMonthName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetMonthName[1] = {{ wxLua_wxDateTime_GetMonthName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetMonthName }}; -// static wxString GetMonthName(wxDateTime::Month month, wxDateTime::NameFlags flags = wxDateTime::Name_Full); -static int LUACALL wxLua_wxDateTime_GetMonthName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::NameFlags flags = wxDateTime::Name_Full - wxDateTime::NameFlags flags = (argCount >= 2 ? (wxDateTime::NameFlags)wxlua_getenumtype(L, 2) : wxDateTime::Name_Full); - // wxDateTime::Month month - wxDateTime::Month month = (wxDateTime::Month)wxlua_getenumtype(L, 1); - // call GetMonthName - wxString returns = (wxDateTime::GetMonthName(month, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetNextWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetNextWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetNextWeekDay[1] = {{ wxLua_wxDateTime_GetNextWeekDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_GetNextWeekDay }}; -// wxDateTime GetNextWeekDay(wxDateTime::WeekDay weekday) const; -static int LUACALL wxLua_wxDateTime_GetNextWeekDay(lua_State *L) -{ - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetNextWeekDay - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetNextWeekDay(weekday)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetNumberOfDays1[] = { &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetNumberOfDays1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays1[1] = {{ wxLua_wxDateTime_GetNumberOfDays1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_GetNumberOfDays1 }}; -// static wxDateTime::wxDateTime_t GetNumberOfDays(wxDateTime::Month month, int year = wxDateTime::Inv_Year, wxDateTime::Calendar cal = wxDateTime::Gregorian); -static int LUACALL wxLua_wxDateTime_GetNumberOfDays1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Calendar cal = wxDateTime::Gregorian - wxDateTime::Calendar cal = (argCount >= 3 ? (wxDateTime::Calendar)wxlua_getenumtype(L, 3) : wxDateTime::Gregorian); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxDateTime::Inv_Year); - // wxDateTime::Month month - wxDateTime::Month month = (wxDateTime::Month)wxlua_getenumtype(L, 1); - // call GetNumberOfDays - wxDateTime::wxDateTime_t returns = (wxDateTime::GetNumberOfDays(month, year, cal)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetNumberOfDays[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetNumberOfDays(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays[1] = {{ wxLua_wxDateTime_GetNumberOfDays, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetNumberOfDays }}; -// static wxDateTime::wxDateTime_t GetNumberOfDays(int year, wxDateTime::Calendar cal = wxDateTime::Gregorian); -static int LUACALL wxLua_wxDateTime_GetNumberOfDays(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Calendar cal = wxDateTime::Gregorian - wxDateTime::Calendar cal = (argCount >= 2 ? (wxDateTime::Calendar)wxlua_getenumtype(L, 2) : wxDateTime::Gregorian); - // int year - int year = (int)wxlua_getnumbertype(L, 1); - // call GetNumberOfDays - wxDateTime::wxDateTime_t returns = (wxDateTime::GetNumberOfDays(year, cal)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetPrevWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetPrevWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetPrevWeekDay[1] = {{ wxLua_wxDateTime_GetPrevWeekDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_GetPrevWeekDay }}; -// wxDateTime GetPrevWeekDay(wxDateTime::WeekDay weekday) const; -static int LUACALL wxLua_wxDateTime_GetPrevWeekDay(lua_State *L) -{ - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetPrevWeekDay - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetPrevWeekDay(weekday)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetRataDie[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetRataDie(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetRataDie[1] = {{ wxLua_wxDateTime_GetRataDie, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetRataDie }}; -// double GetRataDie() const; -static int LUACALL wxLua_wxDateTime_GetRataDie(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetRataDie - double returns = (self->GetRataDie()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetSecond[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetSecond(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetSecond[1] = {{ wxLua_wxDateTime_GetSecond, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetSecond }}; -// wxDateTime::wxDateTime_t GetSecond(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetSecond(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetSecond - wxDateTime::wxDateTime_t returns = (self->GetSecond(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetTicks1[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetTicks1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetTicks1[1] = {{ wxLua_wxDateTime_GetTicks1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetTicks1 }}; -// time_t GetTicks() const; -static int LUACALL wxLua_wxDateTime_GetTicks1(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetTicks - time_t returns = (self->GetTicks()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetTicks[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_GetTicks(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetTicks[1] = {{ wxLua_wxDateTime_GetTicks, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetTicks }}; -// long GetTicks(); -static int LUACALL wxLua_wxDateTime_GetTicks(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetTicks - long returns = (self->GetTicks()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeek[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeek[1] = {{ wxLua_wxDateTime_GetWeek, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_GetWeek }}; -// !%wxchkver_2_6 wxDateTime GetWeek(wxDateTime::wxDateTime_t numWeek, wxDateTime::WeekDay weekday = wxDateTime::Mon) const; -static int LUACALL wxLua_wxDateTime_GetWeek(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::WeekDay weekday = wxDateTime::Mon - wxDateTime::WeekDay weekday = (argCount >= 3 ? (wxDateTime::WeekDay)wxlua_getenumtype(L, 3) : wxDateTime::Mon); - // wxDateTime::wxDateTime_t numWeek - wxDateTime::wxDateTime_t numWeek = (wxDateTime::wxDateTime_t)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetWeek - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetWeek(numWeek, weekday)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeekDay1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeekDay1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekDay1[1] = {{ wxLua_wxDateTime_GetWeekDay1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetWeekDay1 }}; -// wxDateTime::WeekDay GetWeekDay(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetWeekDay1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetWeekDay - wxDateTime::WeekDay returns = (self->GetWeekDay(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeekDay(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekDay[1] = {{ wxLua_wxDateTime_GetWeekDay, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxDateTime_GetWeekDay }}; -// wxDateTime GetWeekDay(wxDateTime::WeekDay weekday, int n = 1, wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year) const; -static int LUACALL wxLua_wxDateTime_GetWeekDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 4 ? (wxDateTime::Month)wxlua_getenumtype(L, 4) : wxDateTime::Inv_Month); - // int n = 1 - int n = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetWeekDay - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetWeekDay(weekday, n, month, year)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeekDayInSameWeek[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeekDayInSameWeek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekDayInSameWeek[1] = {{ wxLua_wxDateTime_GetWeekDayInSameWeek, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_GetWeekDayInSameWeek }}; -// wxDateTime GetWeekDayInSameWeek(wxDateTime::WeekDay weekday) const; -static int LUACALL wxLua_wxDateTime_GetWeekDayInSameWeek(lua_State *L) -{ - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetWeekDayInSameWeek - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetWeekDayInSameWeek(weekday)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeekDayName[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeekDayName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekDayName[1] = {{ wxLua_wxDateTime_GetWeekDayName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetWeekDayName }}; -// static wxString GetWeekDayName(wxDateTime::WeekDay weekday, wxDateTime::NameFlags flags = wxDateTime::Name_Full); -static int LUACALL wxLua_wxDateTime_GetWeekDayName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::NameFlags flags = wxDateTime::Name_Full - wxDateTime::NameFlags flags = (argCount >= 2 ? (wxDateTime::NameFlags)wxlua_getenumtype(L, 2) : wxDateTime::Name_Full); - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 1); - // call GetWeekDayName - wxString returns = (wxDateTime::GetWeekDayName(weekday, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeekOfMonth[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeekOfMonth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekOfMonth[1] = {{ wxLua_wxDateTime_GetWeekOfMonth, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_GetWeekOfMonth }}; -// wxDateTime::wxDateTime_t GetWeekOfMonth(wxDateTime::WeekFlags flags = wxDateTime::Monday_First, const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetWeekOfMonth(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 3 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // wxDateTime::WeekFlags flags = wxDateTime::Monday_First - wxDateTime::WeekFlags flags = (argCount >= 2 ? (wxDateTime::WeekFlags)wxlua_getenumtype(L, 2) : wxDateTime::Monday_First); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetWeekOfMonth - wxDateTime::wxDateTime_t returns = (self->GetWeekOfMonth(flags, *tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetWeekOfYear[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetWeekOfYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekOfYear[1] = {{ wxLua_wxDateTime_GetWeekOfYear, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_GetWeekOfYear }}; -// wxDateTime::wxDateTime_t GetWeekOfYear(wxDateTime::WeekFlags flags = wxDateTime::Monday_First, const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetWeekOfYear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 3 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // wxDateTime::WeekFlags flags = wxDateTime::Monday_First - wxDateTime::WeekFlags flags = (argCount >= 2 ? (wxDateTime::WeekFlags)wxlua_getenumtype(L, 2) : wxDateTime::Monday_First); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetWeekOfYear - wxDateTime::wxDateTime_t returns = (self->GetWeekOfYear(flags, *tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetYear[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, NULL }; -static int LUACALL wxLua_wxDateTime_GetYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetYear[1] = {{ wxLua_wxDateTime_GetYear, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetYear }}; -// int GetYear(const wxDateTime::TimeZone& tz = wxLua_wxDateTime_TimeZone_Local) const; -static int LUACALL wxLua_wxDateTime_GetYear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime::TimeZone tz = wxLua_wxDateTime_TimeZone_Local - const wxDateTime::TimeZone * tz = (argCount >= 2 ? (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone) : &wxLua_wxDateTime_TimeZone_Local); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetYear - int returns = (self->GetYear(*tz)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_GetYearDay[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_GetYearDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetYearDay[1] = {{ wxLua_wxDateTime_GetYearDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_GetYearDay }}; -// wxDateTime GetYearDay(wxDateTime::wxDateTime_t yday) const; -static int LUACALL wxLua_wxDateTime_GetYearDay(lua_State *L) -{ - // wxDateTime::wxDateTime_t yday - wxDateTime::wxDateTime_t yday = (wxDateTime::wxDateTime_t)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetYearDay - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetYearDay(yday)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsBetween1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsBetween1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsBetween1[1] = {{ wxLua_wxDateTime_IsBetween1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsBetween1 }}; -// bool IsBetween(const wxDateTime& t1, const wxDateTime& t2) const; -static int LUACALL wxLua_wxDateTime_IsBetween1(lua_State *L) -{ - // const wxDateTime t2 - const wxDateTime * t2 = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxDateTime t1 - const wxDateTime * t1 = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsBetween - bool returns = (self->IsBetween(*t1, *t2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsBetween[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsBetween(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsBetween[1] = {{ wxLua_wxDateTime_IsBetween, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsBetween }}; -// bool IsBetween(const wxDateTime& t1, const wxDateTime& t2) const; -static int LUACALL wxLua_wxDateTime_IsBetween(lua_State *L) -{ - // const wxDateTime t2 - const wxDateTime * t2 = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxDateTime t1 - const wxDateTime * t1 = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsBetween - bool returns = (self->IsBetween(*t1, *t2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsDST[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_IsDST(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsDST[1] = {{ wxLua_wxDateTime_IsDST, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_IsDST }}; -// int IsDST(wxDateTime::Country country = wxDateTime::Country_Default) const; -static int LUACALL wxLua_wxDateTime_IsDST(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 2 ? (wxDateTime::Country)wxlua_getenumtype(L, 2) : wxDateTime::Country_Default); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsDST - int returns = (self->IsDST(country)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsDSTApplicable[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_IsDSTApplicable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsDSTApplicable[1] = {{ wxLua_wxDateTime_IsDSTApplicable, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 2, s_wxluatypeArray_wxLua_wxDateTime_IsDSTApplicable }}; -// static bool IsDSTApplicable(int year = wxDateTime::Inv_Year, wxDateTime::Country country = wxDateTime::Country_Default); -static int LUACALL wxLua_wxDateTime_IsDSTApplicable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 2 ? (wxDateTime::Country)wxlua_getenumtype(L, 2) : wxDateTime::Country_Default); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxDateTime::Inv_Year); - // call IsDSTApplicable - bool returns = (wxDateTime::IsDSTApplicable(year, country)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsEarlierThan1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsEarlierThan1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEarlierThan1[1] = {{ wxLua_wxDateTime_IsEarlierThan1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEarlierThan1 }}; -// bool IsEarlierThan(const wxDateTime& datetime) const; -static int LUACALL wxLua_wxDateTime_IsEarlierThan1(lua_State *L) -{ - // const wxDateTime datetime - const wxDateTime * datetime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsEarlierThan - bool returns = (self->IsEarlierThan(*datetime)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsEarlierThan[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsEarlierThan(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEarlierThan[1] = {{ wxLua_wxDateTime_IsEarlierThan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEarlierThan }}; -// bool IsEarlierThan(const wxDateTime& datetime) const; -static int LUACALL wxLua_wxDateTime_IsEarlierThan(lua_State *L) -{ - // const wxDateTime datetime - const wxDateTime * datetime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsEarlierThan - bool returns = (self->IsEarlierThan(*datetime)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsEqualTo1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsEqualTo1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEqualTo1[1] = {{ wxLua_wxDateTime_IsEqualTo1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEqualTo1 }}; -// bool IsEqualTo(const wxDateTime& datetime) const; -static int LUACALL wxLua_wxDateTime_IsEqualTo1(lua_State *L) -{ - // const wxDateTime datetime - const wxDateTime * datetime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsEqualTo - bool returns = (self->IsEqualTo(*datetime)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsEqualTo[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsEqualTo(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEqualTo[1] = {{ wxLua_wxDateTime_IsEqualTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEqualTo }}; -// bool IsEqualTo(const wxDateTime& datetime) const; -static int LUACALL wxLua_wxDateTime_IsEqualTo(lua_State *L) -{ - // const wxDateTime datetime - const wxDateTime * datetime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsEqualTo - bool returns = (self->IsEqualTo(*datetime)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsEqualUpTo1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxDateTime_IsEqualUpTo1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo1[1] = {{ wxLua_wxDateTime_IsEqualUpTo1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsEqualUpTo1 }}; -// bool IsEqualUpTo(const wxDateTime& dt, const wxTimeSpan& ts) const; -static int LUACALL wxLua_wxDateTime_IsEqualUpTo1(lua_State *L) -{ - // const wxTimeSpan ts - const wxTimeSpan * ts = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTimeSpan); - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsEqualUpTo - bool returns = (self->IsEqualUpTo(*dt, *ts)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsEqualUpTo[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxDateTime_IsEqualUpTo(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo[1] = {{ wxLua_wxDateTime_IsEqualUpTo, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsEqualUpTo }}; -// bool IsEqualUpTo(const wxDateTime& dt, const wxTimeSpan& ts) const; -static int LUACALL wxLua_wxDateTime_IsEqualUpTo(lua_State *L) -{ - // const wxTimeSpan ts - const wxTimeSpan * ts = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTimeSpan); - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsEqualUpTo - bool returns = (self->IsEqualUpTo(*dt, *ts)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsLaterThan1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsLaterThan1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsLaterThan1[1] = {{ wxLua_wxDateTime_IsLaterThan1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsLaterThan1 }}; -// bool IsLaterThan(const wxDateTime& datetime) const; -static int LUACALL wxLua_wxDateTime_IsLaterThan1(lua_State *L) -{ - // const wxDateTime datetime - const wxDateTime * datetime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsLaterThan - bool returns = (self->IsLaterThan(*datetime)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsLaterThan[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsLaterThan(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsLaterThan[1] = {{ wxLua_wxDateTime_IsLaterThan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsLaterThan }}; -// bool IsLaterThan(const wxDateTime& datetime) const; -static int LUACALL wxLua_wxDateTime_IsLaterThan(lua_State *L) -{ - // const wxDateTime datetime - const wxDateTime * datetime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsLaterThan - bool returns = (self->IsLaterThan(*datetime)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsLeapYear[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_IsLeapYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsLeapYear[1] = {{ wxLua_wxDateTime_IsLeapYear, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 2, s_wxluatypeArray_wxLua_wxDateTime_IsLeapYear }}; -// static bool IsLeapYear(int year = wxDateTime::Inv_Year, wxDateTime::Calendar cal = wxDateTime::Gregorian); -static int LUACALL wxLua_wxDateTime_IsLeapYear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Calendar cal = wxDateTime::Gregorian - wxDateTime::Calendar cal = (argCount >= 2 ? (wxDateTime::Calendar)wxlua_getenumtype(L, 2) : wxDateTime::Gregorian); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxDateTime::Inv_Year); - // call IsLeapYear - bool returns = (wxDateTime::IsLeapYear(year, cal)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsSameDate1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsSameDate1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsSameDate1[1] = {{ wxLua_wxDateTime_IsSameDate1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameDate1 }}; -// bool IsSameDate(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_IsSameDate1(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsSameDate - bool returns = (self->IsSameDate(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsSameDate[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsSameDate(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsSameDate[1] = {{ wxLua_wxDateTime_IsSameDate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameDate }}; -// bool IsSameDate(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_IsSameDate(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsSameDate - bool returns = (self->IsSameDate(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsSameTime1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsSameTime1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsSameTime1[1] = {{ wxLua_wxDateTime_IsSameTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameTime1 }}; -// bool IsSameTime(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_IsSameTime1(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsSameTime - bool returns = (self->IsSameTime(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsSameTime[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsSameTime(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsSameTime[1] = {{ wxLua_wxDateTime_IsSameTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameTime }}; -// bool IsSameTime(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_IsSameTime(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsSameTime - bool returns = (self->IsSameTime(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsStrictlyBetween1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsStrictlyBetween1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween1[1] = {{ wxLua_wxDateTime_IsStrictlyBetween1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsStrictlyBetween1 }}; -// bool IsStrictlyBetween(const wxDateTime& t1, const wxDateTime& t2) const; -static int LUACALL wxLua_wxDateTime_IsStrictlyBetween1(lua_State *L) -{ - // const wxDateTime t2 - const wxDateTime * t2 = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxDateTime t1 - const wxDateTime * t1 = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsStrictlyBetween - bool returns = (self->IsStrictlyBetween(*t1, *t2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsStrictlyBetween[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsStrictlyBetween(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween[1] = {{ wxLua_wxDateTime_IsStrictlyBetween, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsStrictlyBetween }}; -// bool IsStrictlyBetween(const wxDateTime& t1, const wxDateTime& t2) const; -static int LUACALL wxLua_wxDateTime_IsStrictlyBetween(lua_State *L) -{ - // const wxDateTime t2 - const wxDateTime * t2 = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxDateTime t1 - const wxDateTime * t1 = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsStrictlyBetween - bool returns = (self->IsStrictlyBetween(*t1, *t2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsValid1[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsValid1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsValid1[1] = {{ wxLua_wxDateTime_IsValid1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_IsValid1 }}; -// bool IsValid() const; -static int LUACALL wxLua_wxDateTime_IsValid1(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsValid[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_IsValid(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsValid[1] = {{ wxLua_wxDateTime_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_IsValid }}; -// bool IsValid(); -static int LUACALL wxLua_wxDateTime_IsValid(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsWestEuropeanCountry[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_IsWestEuropeanCountry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsWestEuropeanCountry[1] = {{ wxLua_wxDateTime_IsWestEuropeanCountry, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxDateTime_IsWestEuropeanCountry }}; -// static bool IsWestEuropeanCountry(wxDateTime::Country country = wxDateTime::Country_Default); -static int LUACALL wxLua_wxDateTime_IsWestEuropeanCountry(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 1 ? (wxDateTime::Country)wxlua_getenumtype(L, 1) : wxDateTime::Country_Default); - // call IsWestEuropeanCountry - bool returns = (wxDateTime::IsWestEuropeanCountry(country)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsWorkDay1[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_IsWorkDay1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsWorkDay1[1] = {{ wxLua_wxDateTime_IsWorkDay1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_IsWorkDay1 }}; -// bool IsWorkDay(wxDateTime::Country country = wxDateTime::Country_Default) const; -static int LUACALL wxLua_wxDateTime_IsWorkDay1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 2 ? (wxDateTime::Country)wxlua_getenumtype(L, 2) : wxDateTime::Country_Default); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsWorkDay - bool returns = (self->IsWorkDay(country)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_IsWorkDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_IsWorkDay(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsWorkDay[1] = {{ wxLua_wxDateTime_IsWorkDay, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_IsWorkDay }}; -// bool IsWorkDay(wxDateTime::Country country = wxDateTime::Country_Default) const; -static int LUACALL wxLua_wxDateTime_IsWorkDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::Country country = wxDateTime::Country_Default - wxDateTime::Country country = (argCount >= 2 ? (wxDateTime::Country)wxlua_getenumtype(L, 2) : wxDateTime::Country_Default); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsWorkDay - bool returns = (self->IsWorkDay(country)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_MakeFromTimezone[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_MakeFromTimezone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_MakeFromTimezone[1] = {{ wxLua_wxDateTime_MakeFromTimezone, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_MakeFromTimezone }}; -// wxDateTime& MakeFromTimezone(const wxDateTime::TimeZone& tz, bool noDST = false); -static int LUACALL wxLua_wxDateTime_MakeFromTimezone(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxDateTime::TimeZone tz - const wxDateTime::TimeZone * tz = (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call MakeFromTimezone - wxDateTime* returns = (wxDateTime*)&self->MakeFromTimezone(*tz, noDST); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_MakeFromUTC[] = { &wxluatype_wxDateTime, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_MakeFromUTC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_MakeFromUTC[1] = {{ wxLua_wxDateTime_MakeFromUTC, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_MakeFromUTC }}; -// wxDateTime& MakeFromUTC(bool noDST = false); -static int LUACALL wxLua_wxDateTime_MakeFromUTC(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call MakeFromUTC - wxDateTime* returns = (wxDateTime*)&self->MakeFromUTC(noDST); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_MakeGMT[] = { &wxluatype_wxDateTime, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_MakeGMT(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_MakeGMT[1] = {{ wxLua_wxDateTime_MakeGMT, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_MakeGMT }}; -// wxDateTime& MakeGMT(bool noDST = false); -static int LUACALL wxLua_wxDateTime_MakeGMT(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call MakeGMT - wxDateTime* returns = (wxDateTime*)&self->MakeGMT(noDST); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_MakeTimezone[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_MakeTimezone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_MakeTimezone[1] = {{ wxLua_wxDateTime_MakeTimezone, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_MakeTimezone }}; -// wxDateTime& MakeTimezone(const wxDateTime::TimeZone& tz, bool noDST = false); -static int LUACALL wxLua_wxDateTime_MakeTimezone(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxDateTime::TimeZone tz - const wxDateTime::TimeZone * tz = (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call MakeTimezone - wxDateTime* returns = (wxDateTime*)&self->MakeTimezone(*tz, noDST); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_MakeUTC[] = { &wxluatype_wxDateTime, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_MakeUTC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_MakeUTC[1] = {{ wxLua_wxDateTime_MakeUTC, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_MakeUTC }}; -// wxDateTime& MakeUTC(bool noDST = false); -static int LUACALL wxLua_wxDateTime_MakeUTC(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call MakeUTC - wxDateTime* returns = (wxDateTime*)&self->MakeUTC(noDST); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static int LUACALL wxLua_wxDateTime_Now(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Now[1] = {{ wxLua_wxDateTime_Now, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateTime Now(); -static int LUACALL wxLua_wxDateTime_Now(lua_State *L) -{ - // call Now - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxDateTime::Now()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseDate1[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseDate1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseDate1[1] = {{ wxLua_wxDateTime_ParseDate1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDate1 }}; -// !%wxchkver_2_9 wxString ParseDate(wxString date); -static int LUACALL wxLua_wxDateTime_ParseDate1(lua_State *L) -{ - // wxString date - wxString date = wxlua_getwxStringtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseDate - wxString returns = (self->ParseDate(date)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseDate[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseDate(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseDate[1] = {{ wxLua_wxDateTime_ParseDate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDate }}; -// %override wxLua_wxDateTime_ParseDate -// %wxchkver_2_9 bool ParseDate(const wxString& date) -static int LUACALL wxLua_wxDateTime_ParseDate(lua_State *L) -{ - // const wxString date - const wxString date = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(date.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseDate - bool returns = (self->ParseDate(date, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != date.end())) - { - wxlua_pushwxString(L, wxString(it, date.end())); - return 2; - } - - return 1; -} - - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseDateTime1[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseDateTime1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseDateTime1[1] = {{ wxLua_wxDateTime_ParseDateTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDateTime1 }}; -// !%wxchkver_2_9 wxString ParseDateTime(wxString datetime); -static int LUACALL wxLua_wxDateTime_ParseDateTime1(lua_State *L) -{ - // wxString datetime - wxString datetime = wxlua_getwxStringtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseDateTime - wxString returns = (self->ParseDateTime(datetime)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseDateTime[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseDateTime(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseDateTime[1] = {{ wxLua_wxDateTime_ParseDateTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDateTime }}; -// %override wxLua_wxDateTime_ParseDateTime -// %wxchkver_2_9 bool ParseDateTime(const wxString& datetime) -static int LUACALL wxLua_wxDateTime_ParseDateTime(lua_State *L) -{ - // const wxString datetime - const wxString datetime = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(datetime.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseDateTime - bool returns = (self->ParseDateTime(datetime, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != datetime.end())) - { - wxlua_pushwxString(L, wxString(it, datetime.end())); - return 2; - } - - return 1; -} - - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseFormat3[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_ParseFormat3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseFormat3[1] = {{ wxLua_wxDateTime_ParseFormat3, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat3 }}; -// !%wxchkver_2_9 wxString ParseFormat(wxString date, wxString format = "%c", const wxDateTime& dateDef = wxDefaultDateTime); -static int LUACALL wxLua_wxDateTime_ParseFormat3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDateTime dateDef = wxDefaultDateTime - const wxDateTime * dateDef = (argCount >= 4 ? (const wxDateTime *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDateTime) : &wxDefaultDateTime); - // wxString format = "%c" - wxString format = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("%c"))); - // wxString date - wxString date = wxlua_getwxStringtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseFormat - wxString returns = (self->ParseFormat(date, format, *dateDef)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseFormat2[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseFormat2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseFormat2[1] = {{ wxLua_wxDateTime_ParseFormat2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat2 }}; -// %override wxLua_wxDateTime_ParseFormat2 -// %wxchkver_2_9 bool ParseFormat(const wxString& date) -static int LUACALL wxLua_wxDateTime_ParseFormat2(lua_State *L) -{ - // const wxString date - const wxString date = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(date.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseFormat - bool returns = (self->ParseFormat(date, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != date.end())) - { - wxlua_pushwxString(L, wxString(it, date.end())); - return 2; - } - - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseFormat1[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseFormat1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseFormat1[1] = {{ wxLua_wxDateTime_ParseFormat1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat1 }}; -// %override wxLua_wxDateTime_ParseFormat1 -// %wxchkver_2_9 bool ParseFormat(const wxString& date, wxString format) -static int LUACALL wxLua_wxDateTime_ParseFormat1(lua_State *L) -{ - // wxString format - wxString format = wxlua_getwxStringtype(L, 3); - // const wxString date - const wxString date = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(date.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseFormat - bool returns = (self->ParseFormat(date, format, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != date.end())) - { - wxlua_pushwxString(L, wxString(it, date.end())); - return 2; - } - - return 1; -} - - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseFormat[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_ParseFormat(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseFormat[1] = {{ wxLua_wxDateTime_ParseFormat, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat }}; -// %override wxLua_wxDateTime_ParseFormat -// %wxchkver_2_9 bool ParseFormat(const wxString& date, wxString format, const wxDateTime& dateDef) -static int LUACALL wxLua_wxDateTime_ParseFormat(lua_State *L) -{ - // const wxDateTime dateDef - const wxDateTime * dateDef = (const wxDateTime *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDateTime); - // wxString format - wxString format = wxlua_getwxStringtype(L, 3); - // const wxString date - const wxString date = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(date.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseFormat - bool returns = (self->ParseFormat(date, format, *dateDef, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != date.end())) - { - wxlua_pushwxString(L, wxString(it, date.end())); - return 2; - } - - return 1; -} - - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseRfc822Date1[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseRfc822Date1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date1[1] = {{ wxLua_wxDateTime_ParseRfc822Date1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseRfc822Date1 }}; -// !%wxchkver_2_9 wxString ParseRfc822Date(wxString date); -static int LUACALL wxLua_wxDateTime_ParseRfc822Date1(lua_State *L) -{ - // wxString date - wxString date = wxlua_getwxStringtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseRfc822Date - wxString returns = (self->ParseRfc822Date(date)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseRfc822Date[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseRfc822Date(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date[1] = {{ wxLua_wxDateTime_ParseRfc822Date, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseRfc822Date }}; -// %override wxLua_wxDateTime_ParseRfc822Date -// %wxchkver_2_9 bool ParseRfc822Date(const wxString& date) -static int LUACALL wxLua_wxDateTime_ParseRfc822Date(lua_State *L) -{ - // const wxString date - const wxString date = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(date.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseRfc822Date - bool returns = (self->ParseRfc822Date(date, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != date.end())) - { - wxlua_pushwxString(L, wxString(it, date.end())); - return 2; - } - - return 1; -} - - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseTime1[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseTime1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseTime1[1] = {{ wxLua_wxDateTime_ParseTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseTime1 }}; -// !%wxchkver_2_9 wxString ParseTime(wxString time); -static int LUACALL wxLua_wxDateTime_ParseTime1(lua_State *L) -{ - // wxString time - wxString time = wxlua_getwxStringtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseTime - wxString returns = (self->ParseTime(time)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ParseTime[] = { &wxluatype_wxDateTime, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateTime_ParseTime(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseTime[1] = {{ wxLua_wxDateTime_ParseTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseTime }}; -// %override wxLua_wxDateTime_ParseTime -// %wxchkver_2_9 bool ParseTime(const wxString& time) -static int LUACALL wxLua_wxDateTime_ParseTime(lua_State *L) -{ - // const wxString time - const wxString time = wxlua_getwxStringtype(L, 2); - wxString::const_iterator it(time.begin()); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ParseTime - bool returns = (self->ParseTime(time, &it)); - // push the result flag - lua_pushboolean(L, returns); - - if (!returns && (it != time.end())) - { - wxString s(it, time.end()); - wxlua_pushwxString(L, s); - return 2; - } - - return 1; -} - - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ResetTime[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_ResetTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ResetTime[1] = {{ wxLua_wxDateTime_ResetTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_ResetTime }}; -// wxDateTime& ResetTime(); -static int LUACALL wxLua_wxDateTime_ResetTime(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ResetTime - wxDateTime* returns = (wxDateTime*)&self->ResetTime(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_Set[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Set[1] = {{ wxLua_wxDateTime_Set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Set }}; -// wxDateTime& Set(time_t time); // use with Lua's os.time() on MSW, Linux, others? -static int LUACALL wxLua_wxDateTime_Set(lua_State *L) -{ - // time_t time - time_t time = (time_t)wxlua_getuintegertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Set - wxDateTime* returns = (wxDateTime*)&self->Set(time); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetCountry[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetCountry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetCountry[1] = {{ wxLua_wxDateTime_SetCountry, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_SetCountry }}; -// static void SetCountry(wxDateTime::Country country); -static int LUACALL wxLua_wxDateTime_SetCountry(lua_State *L) -{ - // wxDateTime::Country country - wxDateTime::Country country = (wxDateTime::Country)wxlua_getenumtype(L, 1); - // call SetCountry - wxDateTime::SetCountry(country); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetDay[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetDay[1] = {{ wxLua_wxDateTime_SetDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetDay }}; -// wxDateTime& SetDay(int day); -static int LUACALL wxLua_wxDateTime_SetDay(lua_State *L) -{ - // int day - int day = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetDay - wxDateTime* returns = (wxDateTime*)&self->SetDay(day); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetFromDOS[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetFromDOS(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetFromDOS[1] = {{ wxLua_wxDateTime_SetFromDOS, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetFromDOS }}; -// wxDateTime& SetFromDOS(unsigned long ddt); -static int LUACALL wxLua_wxDateTime_SetFromDOS(lua_State *L) -{ - // unsigned long ddt - unsigned long ddt = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetFromDOS - wxDateTime* returns = (wxDateTime*)&self->SetFromDOS(ddt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetHour[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetHour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetHour[1] = {{ wxLua_wxDateTime_SetHour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetHour }}; -// wxDateTime& SetHour(int hour); -static int LUACALL wxLua_wxDateTime_SetHour(lua_State *L) -{ - // int hour - int hour = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetHour - wxDateTime* returns = (wxDateTime*)&self->SetHour(hour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetMillisecond[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetMillisecond(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetMillisecond[1] = {{ wxLua_wxDateTime_SetMillisecond, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetMillisecond }}; -// wxDateTime& SetMillisecond(int millisecond); -static int LUACALL wxLua_wxDateTime_SetMillisecond(lua_State *L) -{ - // int millisecond - int millisecond = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetMillisecond - wxDateTime* returns = (wxDateTime*)&self->SetMillisecond(millisecond); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetMinute[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetMinute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetMinute[1] = {{ wxLua_wxDateTime_SetMinute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetMinute }}; -// wxDateTime& SetMinute(int minute); -static int LUACALL wxLua_wxDateTime_SetMinute(lua_State *L) -{ - // int minute - int minute = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetMinute - wxDateTime* returns = (wxDateTime*)&self->SetMinute(minute); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetMonth[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetMonth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetMonth[1] = {{ wxLua_wxDateTime_SetMonth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetMonth }}; -// wxDateTime& SetMonth(wxDateTime::Month month); -static int LUACALL wxLua_wxDateTime_SetMonth(lua_State *L) -{ - // wxDateTime::Month month - wxDateTime::Month month = (wxDateTime::Month)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetMonth - wxDateTime* returns = (wxDateTime*)&self->SetMonth(month); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetSecond[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetSecond(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetSecond[1] = {{ wxLua_wxDateTime_SetSecond, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetSecond }}; -// wxDateTime& SetSecond(int second); -static int LUACALL wxLua_wxDateTime_SetSecond(lua_State *L) -{ - // int second - int second = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetSecond - wxDateTime* returns = (wxDateTime*)&self->SetSecond(second); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToCurrent[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_SetToCurrent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToCurrent[1] = {{ wxLua_wxDateTime_SetToCurrent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_SetToCurrent }}; -// wxDateTime& SetToCurrent(); -static int LUACALL wxLua_wxDateTime_SetToCurrent(lua_State *L) -{ - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToCurrent - wxDateTime* returns = (wxDateTime*)&self->SetToCurrent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToDMY[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToDMY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToDMY[1] = {{ wxLua_wxDateTime_SetToDMY, WXLUAMETHOD_METHOD, 2, 8, s_wxluatypeArray_wxLua_wxDateTime_SetToDMY }}; -// %rename SetToDMY wxDateTime& Set(int day, wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year, int hour = 0, int minute = 0, int second = 0, int millisec = 0); -static int LUACALL wxLua_wxDateTime_SetToDMY(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int millisec = 0 - int millisec = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // int second = 0 - int second = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // int minute = 0 - int minute = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int hour = 0 - int hour = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 3 ? (wxDateTime::Month)wxlua_getenumtype(L, 3) : wxDateTime::Inv_Month); - // int day - int day = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Set - wxDateTime* returns = (wxDateTime*)&self->Set(day, month, year, hour, minute, second, millisec); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToHMS[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToHMS(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToHMS[1] = {{ wxLua_wxDateTime_SetToHMS, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDateTime_SetToHMS }}; -// %rename SetToHMS wxDateTime& Set(int hour, int minute, int second, int millisec); -static int LUACALL wxLua_wxDateTime_SetToHMS(lua_State *L) -{ - // int millisec - int millisec = (int)wxlua_getnumbertype(L, 5); - // int second - int second = (int)wxlua_getnumbertype(L, 4); - // int minute - int minute = (int)wxlua_getnumbertype(L, 3); - // int hour - int hour = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Set - wxDateTime* returns = (wxDateTime*)&self->Set(hour, minute, second, millisec); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToJDN[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToJDN(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToJDN[1] = {{ wxLua_wxDateTime_SetToJDN, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetToJDN }}; -// %rename SetToJDN wxDateTime& Set(double dateTime); -static int LUACALL wxLua_wxDateTime_SetToJDN(lua_State *L) -{ - // double dateTime - double dateTime = (double)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Set - wxDateTime* returns = (wxDateTime*)&self->Set(dateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToLastMonthDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToLastMonthDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToLastMonthDay[1] = {{ wxLua_wxDateTime_SetToLastMonthDay, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_SetToLastMonthDay }}; -// wxDateTime& SetToLastMonthDay(wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year); -static int LUACALL wxLua_wxDateTime_SetToLastMonthDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 2 ? (wxDateTime::Month)wxlua_getenumtype(L, 2) : wxDateTime::Inv_Month); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToLastMonthDay - wxDateTime* returns = (wxDateTime*)&self->SetToLastMonthDay(month, year); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToLastWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToLastWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToLastWeekDay[1] = {{ wxLua_wxDateTime_SetToLastWeekDay, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxDateTime_SetToLastWeekDay }}; -// bool SetToLastWeekDay(wxDateTime::WeekDay weekday, wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year); -static int LUACALL wxLua_wxDateTime_SetToLastWeekDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 3 ? (wxDateTime::Month)wxlua_getenumtype(L, 3) : wxDateTime::Inv_Month); - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToLastWeekDay - bool returns = (self->SetToLastWeekDay(weekday, month, year)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToNextWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToNextWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToNextWeekDay[1] = {{ wxLua_wxDateTime_SetToNextWeekDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetToNextWeekDay }}; -// wxDateTime& SetToNextWeekDay(wxDateTime::WeekDay weekday); -static int LUACALL wxLua_wxDateTime_SetToNextWeekDay(lua_State *L) -{ - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToNextWeekDay - wxDateTime* returns = (wxDateTime*)&self->SetToNextWeekDay(weekday); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToPrevWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToPrevWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToPrevWeekDay[1] = {{ wxLua_wxDateTime_SetToPrevWeekDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetToPrevWeekDay }}; -// wxDateTime& SetToPrevWeekDay(wxDateTime::WeekDay weekday); -static int LUACALL wxLua_wxDateTime_SetToPrevWeekDay(lua_State *L) -{ - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToPrevWeekDay - wxDateTime* returns = (wxDateTime*)&self->SetToPrevWeekDay(weekday); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToTheWeek[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToTheWeek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToTheWeek[1] = {{ wxLua_wxDateTime_SetToTheWeek, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_SetToTheWeek }}; -// !%wxchkver_2_6 bool SetToTheWeek(wxDateTime::wxDateTime_t numWeek, wxDateTime::WeekDay weekday = wxDateTime::Mon); -static int LUACALL wxLua_wxDateTime_SetToTheWeek(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::WeekDay weekday = wxDateTime::Mon - wxDateTime::WeekDay weekday = (argCount >= 3 ? (wxDateTime::WeekDay)wxlua_getenumtype(L, 3) : wxDateTime::Mon); - // wxDateTime::wxDateTime_t numWeek - wxDateTime::wxDateTime_t numWeek = (wxDateTime::wxDateTime_t)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToTheWeek - bool returns = (self->SetToTheWeek(numWeek, weekday)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToWeekDay[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToWeekDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToWeekDay[1] = {{ wxLua_wxDateTime_SetToWeekDay, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxDateTime_SetToWeekDay }}; -// bool SetToWeekDay(wxDateTime::WeekDay weekday, int n = 1, wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year); -static int LUACALL wxLua_wxDateTime_SetToWeekDay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 4 ? (wxDateTime::Month)wxlua_getenumtype(L, 4) : wxDateTime::Inv_Month); - // int n = 1 - int n = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToWeekDay - bool returns = (self->SetToWeekDay(weekday, n, month, year)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToWeekDayInSameWeek[] = { &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToWeekDayInSameWeek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToWeekDayInSameWeek[1] = {{ wxLua_wxDateTime_SetToWeekDayInSameWeek, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetToWeekDayInSameWeek }}; -// wxDateTime& SetToWeekDayInSameWeek(wxDateTime::WeekDay weekday); -static int LUACALL wxLua_wxDateTime_SetToWeekDayInSameWeek(lua_State *L) -{ - // wxDateTime::WeekDay weekday - wxDateTime::WeekDay weekday = (wxDateTime::WeekDay)wxlua_getenumtype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToWeekDayInSameWeek - wxDateTime* returns = (wxDateTime*)&self->SetToWeekDayInSameWeek(weekday); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToWeekOfYear[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToWeekOfYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToWeekOfYear[1] = {{ wxLua_wxDateTime_SetToWeekOfYear, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_SetToWeekOfYear }}; -// %wxchkver_2_6 static wxDateTime SetToWeekOfYear(int year, wxDateTime::wxDateTime_t numWeek, wxDateTime::WeekDay weekday = wxDateTime::Mon); -static int LUACALL wxLua_wxDateTime_SetToWeekOfYear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime::WeekDay weekday = wxDateTime::Mon - wxDateTime::WeekDay weekday = (argCount >= 3 ? (wxDateTime::WeekDay)wxlua_getenumtype(L, 3) : wxDateTime::Mon); - // wxDateTime::wxDateTime_t numWeek - wxDateTime::wxDateTime_t numWeek = (wxDateTime::wxDateTime_t)wxlua_getnumbertype(L, 2); - // int year - int year = (int)wxlua_getnumbertype(L, 1); - // call SetToWeekOfYear - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxDateTime::SetToWeekOfYear(year, numWeek, weekday)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetToYearDay[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetToYearDay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetToYearDay[1] = {{ wxLua_wxDateTime_SetToYearDay, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetToYearDay }}; -// wxDateTime& SetToYearDay(wxDateTime::wxDateTime_t yday); -static int LUACALL wxLua_wxDateTime_SetToYearDay(lua_State *L) -{ - // wxDateTime::wxDateTime_t yday - wxDateTime::wxDateTime_t yday = (wxDateTime::wxDateTime_t)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetToYearDay - wxDateTime* returns = (wxDateTime*)&self->SetToYearDay(yday); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_SetYear[] = { &wxluatype_wxDateTime, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTime_SetYear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_SetYear[1] = {{ wxLua_wxDateTime_SetYear, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_SetYear }}; -// wxDateTime& SetYear(int year); -static int LUACALL wxLua_wxDateTime_SetYear(lua_State *L) -{ - // int year - int year = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call SetYear - wxDateTime* returns = (wxDateTime*)&self->SetYear(year); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - - -#if (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_Subtract1[] = { &wxluatype_wxDateTime, &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateTime_Subtract1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Subtract1[1] = {{ wxLua_wxDateTime_Subtract1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Subtract1 }}; -// wxDateTime& Subtract(const wxDateSpan& diff); -static int LUACALL wxLua_wxDateTime_Subtract1(lua_State *L) -{ - // const wxDateSpan diff - const wxDateSpan * diff = (const wxDateSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateSpan); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Subtract - wxDateTime* returns = (wxDateTime*)&self->Subtract(*diff); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_Subtract[] = { &wxluatype_wxDateTime, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxDateTime_Subtract(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Subtract[1] = {{ wxLua_wxDateTime_Subtract, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Subtract }}; -// wxDateTime& Subtract(const wxTimeSpan& diff); -static int LUACALL wxLua_wxDateTime_Subtract(lua_State *L) -{ - // const wxTimeSpan diff - const wxTimeSpan * diff = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call Subtract - wxDateTime* returns = (wxDateTime*)&self->Subtract(*diff); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ToGMT[] = { &wxluatype_wxDateTime, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_ToGMT(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ToGMT[1] = {{ wxLua_wxDateTime_ToGMT, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_ToGMT }}; -// wxDateTime ToGMT(bool noDST = false) const; -static int LUACALL wxLua_wxDateTime_ToGMT(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ToGMT - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->ToGMT(noDST)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ToTimezone[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime_TimeZone, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_ToTimezone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ToTimezone[1] = {{ wxLua_wxDateTime_ToTimezone, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTime_ToTimezone }}; -// wxDateTime ToTimezone(const wxDateTime::TimeZone& tz, bool noDST = false) const; -static int LUACALL wxLua_wxDateTime_ToTimezone(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxDateTime::TimeZone tz - const wxDateTime::TimeZone * tz = (const wxDateTime::TimeZone *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime_TimeZone); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ToTimezone - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->ToTimezone(*tz, noDST)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_ToUTC[] = { &wxluatype_wxDateTime, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDateTime_ToUTC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ToUTC[1] = {{ wxLua_wxDateTime_ToUTC, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_ToUTC }}; -// wxDateTime ToUTC(bool noDST = false) const; -static int LUACALL wxLua_wxDateTime_ToUTC(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDST = false - bool noDST = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call ToUTC - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->ToUTC(noDST)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static int LUACALL wxLua_wxDateTime_Today(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Today[1] = {{ wxLua_wxDateTime_Today, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateTime Today(); -static int LUACALL wxLua_wxDateTime_Today(lua_State *L) -{ - // call Today - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxDateTime::Today()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static int LUACALL wxLua_wxDateTime_UNow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_UNow[1] = {{ wxLua_wxDateTime_UNow, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateTime UNow(); -static int LUACALL wxLua_wxDateTime_UNow(lua_State *L) -{ - // call UNow - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(wxDateTime::UNow()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_delete[] = { &wxluatype_wxDateTime, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_op_eq[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_op_eq[1] = {{ wxLua_wxDateTime_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_op_eq }}; -// bool operator==(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_op_eq(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call op_eq - bool returns = ((*self)==(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_op_ge[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_op_ge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_op_ge[1] = {{ wxLua_wxDateTime_op_ge, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_op_ge }}; -// bool operator>=(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_op_ge(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call op_ge - bool returns = ((*self)>=(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_op_gt[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_op_gt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_op_gt[1] = {{ wxLua_wxDateTime_op_gt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_op_gt }}; -// bool operator>(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_op_gt(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call op_gt - bool returns = ((*self)>(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_op_le[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_op_le(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_op_le[1] = {{ wxLua_wxDateTime_op_le, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_op_le }}; -// bool operator<=(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_op_le(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call op_le - bool returns = ((*self)<=(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_op_lt[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_op_lt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_op_lt[1] = {{ wxLua_wxDateTime_op_lt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_op_lt }}; -// bool operator<(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_op_lt(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call op_lt - bool returns = ((*self)<(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_op_ne[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_op_ne[1] = {{ wxLua_wxDateTime_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_op_ne }}; -// bool operator!=(const wxDateTime& dt) const; -static int LUACALL wxLua_wxDateTime_op_ne(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTime * self = (wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call op_ne - bool returns = ((*self)!=(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_constructor2[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTime_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_constructor2[1] = {{ wxLua_wxDateTime_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_constructor2 }}; -// wxDateTime(time_t dateTime); // use with Lua's os.time() on MSW, Linux, others? -static int LUACALL wxLua_wxDateTime_constructor2(lua_State *L) -{ - // time_t dateTime - time_t dateTime = (time_t)wxlua_getuintegertype(L, 1); - // call constructor - wxDateTime* returns = new wxDateTime(dateTime); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTime_constructor1[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTime_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_constructor1[1] = {{ wxLua_wxDateTime_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_constructor1 }}; -// wxDateTime(const wxDateTime& dateTime); -static int LUACALL wxLua_wxDateTime_constructor1(lua_State *L) -{ - // const wxDateTime dateTime - const wxDateTime * dateTime = (const wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call constructor - wxDateTime* returns = new wxDateTime(*dateTime); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static int LUACALL wxLua_wxDateTime_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_constructor[1] = {{ wxLua_wxDateTime_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDateTime(); -static int LUACALL wxLua_wxDateTime_constructor(lua_State *L) -{ - // call constructor - wxDateTime* returns = new wxDateTime(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeFromDMY_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTimeFromDMY_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeFromDMY_constructor[1] = {{ wxLua_wxDateTimeFromDMY_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 7, s_wxluatypeArray_wxLua_wxDateTimeFromDMY_constructor }}; -// %rename wxDateTimeFromDMY wxDateTime(int day, wxDateTime::Month month = wxDateTime::Inv_Month, int year = wxDateTime::Inv_Year, int hour = 0, int minute = 0, int second = 0, int millisec = 0); -static int LUACALL wxLua_wxDateTimeFromDMY_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int millisec = 0 - int millisec = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // int second = 0 - int second = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int minute = 0 - int minute = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int hour = 0 - int hour = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int year = wxDateTime::Inv_Year - int year = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDateTime::Inv_Year); - // wxDateTime::Month month = wxDateTime::Inv_Month - wxDateTime::Month month = (argCount >= 2 ? (wxDateTime::Month)wxlua_getenumtype(L, 2) : wxDateTime::Inv_Month); - // int day - int day = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxDateTime* returns = new wxDateTime(day, month, year, hour, minute, second, millisec); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeFromHMS_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTimeFromHMS_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeFromHMS_constructor[1] = {{ wxLua_wxDateTimeFromHMS_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxDateTimeFromHMS_constructor }}; -// %rename wxDateTimeFromHMS wxDateTime(int hour, int minute, int second, int millisec); -static int LUACALL wxLua_wxDateTimeFromHMS_constructor(lua_State *L) -{ - // int millisec - int millisec = (int)wxlua_getnumbertype(L, 4); - // int second - int second = (int)wxlua_getnumbertype(L, 3); - // int minute - int minute = (int)wxlua_getnumbertype(L, 2); - // int hour - int hour = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxDateTime* returns = new wxDateTime(hour, minute, second, millisec); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeFromJDN_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateTimeFromJDN_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeFromJDN_constructor[1] = {{ wxLua_wxDateTimeFromJDN_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeFromJDN_constructor }}; -// %rename wxDateTimeFromJDN wxDateTime(double dateTime); -static int LUACALL wxLua_wxDateTimeFromJDN_constructor(lua_State *L) -{ - // double dateTime - double dateTime = (double)wxlua_getnumbertype(L, 1); - // call constructor - wxDateTime* returns = new wxDateTime(dateTime); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - - - - -#if ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Add_overload[] = -{ - -#if (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_Add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Add1 }, -#endif // (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - { wxLua_wxDateTime_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Add }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetCentury_overload[] = -{ - { wxLua_wxDateTime_GetCentury1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetCentury1 }, - { wxLua_wxDateTime_GetCentury, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetCentury }, -}; -static int s_wxluafunc_wxLua_wxDateTime_GetCentury_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_GetCentury_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays_overload[] = -{ - { wxLua_wxDateTime_GetNumberOfDays1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxDateTime_GetNumberOfDays1 }, - { wxLua_wxDateTime_GetNumberOfDays, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetNumberOfDays }, -}; -static int s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetTicks_overload[] = -{ - { wxLua_wxDateTime_GetTicks1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetTicks1 }, - { wxLua_wxDateTime_GetTicks, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_GetTicks }, -}; -static int s_wxluafunc_wxLua_wxDateTime_GetTicks_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_GetTicks_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_GetWeekDay_overload[] = -{ - { wxLua_wxDateTime_GetWeekDay1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_GetWeekDay1 }, - { wxLua_wxDateTime_GetWeekDay, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxDateTime_GetWeekDay }, -}; -static int s_wxluafunc_wxLua_wxDateTime_GetWeekDay_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_GetWeekDay_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsBetween_overload[] = -{ - { wxLua_wxDateTime_IsBetween1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsBetween1 }, - { wxLua_wxDateTime_IsBetween, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsBetween }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsBetween_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsBetween_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEarlierThan_overload[] = -{ - { wxLua_wxDateTime_IsEarlierThan1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEarlierThan1 }, - { wxLua_wxDateTime_IsEarlierThan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEarlierThan }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsEarlierThan_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsEarlierThan_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEqualTo_overload[] = -{ - { wxLua_wxDateTime_IsEqualTo1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEqualTo1 }, - { wxLua_wxDateTime_IsEqualTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsEqualTo }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsEqualTo_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsEqualTo_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo_overload[] = -{ - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - { wxLua_wxDateTime_IsEqualUpTo1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsEqualUpTo1 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - { wxLua_wxDateTime_IsEqualUpTo, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsEqualUpTo }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsLaterThan_overload[] = -{ - { wxLua_wxDateTime_IsLaterThan1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsLaterThan1 }, - { wxLua_wxDateTime_IsLaterThan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsLaterThan }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsLaterThan_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsLaterThan_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsSameDate_overload[] = -{ - { wxLua_wxDateTime_IsSameDate1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameDate1 }, - { wxLua_wxDateTime_IsSameDate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameDate }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsSameDate_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsSameDate_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsSameTime_overload[] = -{ - { wxLua_wxDateTime_IsSameTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameTime1 }, - { wxLua_wxDateTime_IsSameTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_IsSameTime }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsSameTime_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsSameTime_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween_overload[] = -{ - { wxLua_wxDateTime_IsStrictlyBetween1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsStrictlyBetween1 }, - { wxLua_wxDateTime_IsStrictlyBetween, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_IsStrictlyBetween }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsValid_overload[] = -{ - { wxLua_wxDateTime_IsValid1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_IsValid1 }, - { wxLua_wxDateTime_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_IsValid }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsValid_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsValid_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_IsWorkDay_overload[] = -{ - { wxLua_wxDateTime_IsWorkDay1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_IsWorkDay1 }, - { wxLua_wxDateTime_IsWorkDay, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDateTime_IsWorkDay }, -}; -static int s_wxluafunc_wxLua_wxDateTime_IsWorkDay_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_IsWorkDay_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseDate_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseDate1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDate1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseDate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDate }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_ParseDate_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_ParseDate_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseDateTime_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseDateTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDateTime1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseDateTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseDateTime }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_ParseDateTime_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_ParseDateTime_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseFormat_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseFormat3, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat3 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseFormat2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat2 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseFormat1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat1 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseFormat, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDateTime_ParseFormat }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_ParseFormat_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_ParseFormat_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseRfc822Date1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseRfc822Date1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseRfc822Date, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseRfc822Date }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_ParseTime_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseTime1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_ParseTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_ParseTime }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_ParseTime_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_ParseTime_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - -#if ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_Subtract_overload[] = -{ - -#if (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { wxLua_wxDateTime_Subtract1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Subtract1 }, -#endif // (wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - { wxLua_wxDateTime_Subtract, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTime_Subtract }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -}; -static int s_wxluafunc_wxLua_wxDateTime_Subtract_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_Subtract_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTime_constructor_overload[] = -{ - { wxLua_wxDateTime_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_constructor2 }, - { wxLua_wxDateTime_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTime_constructor1 }, - { wxLua_wxDateTime_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDateTime_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTime_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -void wxLua_wxDateTime_delete_function(void** p) -{ - wxDateTime* o = (wxDateTime*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateTime_methods[] = { -#if ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_Add_overload, s_wxluafunc_wxLua_wxDateTime_Add_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - - { "ConvertYearToBC", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_ConvertYearToBC, 1, NULL }, - { "Format", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_Format, 1, NULL }, - { "FormatDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_FormatDate, 1, NULL }, - { "FormatISODate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_FormatISODate, 1, NULL }, - { "FormatISOTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_FormatISOTime, 1, NULL }, - { "FormatTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_FormatTime, 1, NULL }, - { "FromTimezone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_FromTimezone, 1, NULL }, - { "FromUTC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_FromUTC, 1, NULL }, - { "GetAsDOS", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetAsDOS, 1, NULL }, - { "GetBeginDST", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetBeginDST, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetCentury", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetCentury_overload, s_wxluafunc_wxLua_wxDateTime_GetCentury_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "GetCountry", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetCountry, 1, NULL }, - { "GetCurrentMonth", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetCurrentMonth, 1, NULL }, - { "GetCurrentYear", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetCurrentYear, 1, NULL }, - { "GetDateOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetDateOnly, 1, NULL }, - { "GetDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetDay, 1, NULL }, - { "GetDayOfYear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetDayOfYear, 1, NULL }, - { "GetEndDST", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetEndDST, 1, NULL }, - { "GetHour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetHour, 1, NULL }, - { "GetJDN", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetJDN, 1, NULL }, - { "GetJulianDayNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetJulianDayNumber, 1, NULL }, - { "GetLastMonthDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetLastMonthDay, 1, NULL }, - { "GetLastWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetLastWeekDay, 1, NULL }, - { "GetMJD", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetMJD, 1, NULL }, - { "GetMillisecond", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetMillisecond, 1, NULL }, - { "GetMinute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetMinute, 1, NULL }, - { "GetModifiedJulianDayNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetModifiedJulianDayNumber, 1, NULL }, - { "GetMonth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetMonth, 1, NULL }, - { "GetMonthName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetMonthName, 1, NULL }, - { "GetNextWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetNextWeekDay, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetNumberOfDays", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays_overload, s_wxluafunc_wxLua_wxDateTime_GetNumberOfDays_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "GetPrevWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetPrevWeekDay, 1, NULL }, - { "GetRataDie", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetRataDie, 1, NULL }, - { "GetSecond", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetSecond, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetTicks", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetTicks_overload, s_wxluafunc_wxLua_wxDateTime_GetTicks_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetWeek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetWeek, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetWeekDay_overload, s_wxluafunc_wxLua_wxDateTime_GetWeekDay_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "GetWeekDayInSameWeek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetWeekDayInSameWeek, 1, NULL }, - { "GetWeekDayName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_GetWeekDayName, 1, NULL }, - { "GetWeekOfMonth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetWeekOfMonth, 1, NULL }, - { "GetWeekOfYear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetWeekOfYear, 1, NULL }, - { "GetYear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetYear, 1, NULL }, - { "GetYearDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_GetYearDay, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "IsBetween", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsBetween_overload, s_wxluafunc_wxLua_wxDateTime_IsBetween_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "IsDST", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsDST, 1, NULL }, - { "IsDSTApplicable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_IsDSTApplicable, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "IsEarlierThan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsEarlierThan_overload, s_wxluafunc_wxLua_wxDateTime_IsEarlierThan_overload_count, 0 }, - { "IsEqualTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsEqualTo_overload, s_wxluafunc_wxLua_wxDateTime_IsEqualTo_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - { "IsEqualUpTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo_overload, s_wxluafunc_wxLua_wxDateTime_IsEqualUpTo_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "IsLaterThan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsLaterThan_overload, s_wxluafunc_wxLua_wxDateTime_IsLaterThan_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "IsLeapYear", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_IsLeapYear, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "IsSameDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsSameDate_overload, s_wxluafunc_wxLua_wxDateTime_IsSameDate_overload_count, 0 }, - { "IsSameTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsSameTime_overload, s_wxluafunc_wxLua_wxDateTime_IsSameTime_overload_count, 0 }, - { "IsStrictlyBetween", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween_overload, s_wxluafunc_wxLua_wxDateTime_IsStrictlyBetween_overload_count, 0 }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsValid_overload, s_wxluafunc_wxLua_wxDateTime_IsValid_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "IsWestEuropeanCountry", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_IsWestEuropeanCountry, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "IsWorkDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_IsWorkDay_overload, s_wxluafunc_wxLua_wxDateTime_IsWorkDay_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "MakeFromTimezone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_MakeFromTimezone, 1, NULL }, - { "MakeFromUTC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_MakeFromUTC, 1, NULL }, - { "MakeGMT", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_MakeGMT, 1, NULL }, - { "MakeTimezone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_MakeTimezone, 1, NULL }, - { "MakeUTC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_MakeUTC, 1, NULL }, - { "Now", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_Now, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - { "ParseDate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ParseDate_overload, s_wxluafunc_wxLua_wxDateTime_ParseDate_overload_count, 0 }, - { "ParseDateTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ParseDateTime_overload, s_wxluafunc_wxLua_wxDateTime_ParseDateTime_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - { "ParseFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ParseFormat_overload, s_wxluafunc_wxLua_wxDateTime_ParseFormat_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - { "ParseRfc822Date", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date_overload, s_wxluafunc_wxLua_wxDateTime_ParseRfc822Date_overload_count, 0 }, - { "ParseTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ParseTime_overload, s_wxluafunc_wxLua_wxDateTime_ParseTime_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) - - { "ResetTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ResetTime, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_Set, 1, NULL }, - { "SetCountry", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_SetCountry, 1, NULL }, - { "SetDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetDay, 1, NULL }, - { "SetFromDOS", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetFromDOS, 1, NULL }, - { "SetHour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetHour, 1, NULL }, - { "SetMillisecond", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetMillisecond, 1, NULL }, - { "SetMinute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetMinute, 1, NULL }, - { "SetMonth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetMonth, 1, NULL }, - { "SetSecond", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetSecond, 1, NULL }, - { "SetToCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToCurrent, 1, NULL }, - { "SetToDMY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToDMY, 1, NULL }, - { "SetToHMS", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToHMS, 1, NULL }, - { "SetToJDN", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToJDN, 1, NULL }, - { "SetToLastMonthDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToLastMonthDay, 1, NULL }, - { "SetToLastWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToLastWeekDay, 1, NULL }, - { "SetToNextWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToNextWeekDay, 1, NULL }, - { "SetToPrevWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToPrevWeekDay, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "SetToTheWeek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToTheWeek, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "SetToWeekDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToWeekDay, 1, NULL }, - { "SetToWeekDayInSameWeek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToWeekDayInSameWeek, 1, NULL }, - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "SetToWeekOfYear", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_SetToWeekOfYear, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "SetToYearDay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetToYearDay, 1, NULL }, - { "SetYear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_SetYear, 1, NULL }, - -#if ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - { "Subtract", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_Subtract_overload, s_wxluafunc_wxLua_wxDateTime_Subtract_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDateSpan && wxUSE_DATETIME) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME)) - - { "ToGMT", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ToGMT, 1, NULL }, - { "ToTimezone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ToTimezone, 1, NULL }, - { "ToUTC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_ToUTC, 1, NULL }, - { "Today", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_Today, 1, NULL }, - { "UNow", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTime_UNow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDateTime_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_op_eq, 1, NULL }, - { "op_ge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_op_ge, 1, NULL }, - { "op_gt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_op_gt, 1, NULL }, - { "op_le", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_op_le, 1, NULL }, - { "op_lt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_op_lt, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTime_op_ne, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "wxDateTime", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTime_constructor_overload, s_wxluafunc_wxLua_wxDateTime_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "wxDateTimeFromDMY", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTimeFromDMY_constructor, 1, NULL }, - { "wxDateTimeFromHMS", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTimeFromHMS_constructor, 1, NULL }, - { "wxDateTimeFromJDN", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTimeFromJDN_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDateTime_methodCount = sizeof(wxDateTime_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxDateTime_enums[] = { -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { "ADT", wxDateTime::ADT }, - { "AKDT", wxDateTime::AKDT }, - { "AKST", wxDateTime::AKST }, - { "AST", wxDateTime::AST }, - { "A_CST", wxDateTime::A_CST }, - { "A_ESST", wxDateTime::A_ESST }, - { "A_EST", wxDateTime::A_EST }, - { "A_WST", wxDateTime::A_WST }, - { "Apr", wxDateTime::Apr }, - { "Aug", wxDateTime::Aug }, - { "CDT", wxDateTime::CDT }, - { "CEST", wxDateTime::CEST }, - { "CET", wxDateTime::CET }, - { "CST", wxDateTime::CST }, - { "Country_Default", wxDateTime::Country_Default }, - { "Country_EEC", wxDateTime::Country_EEC }, - { "Country_Unknown", wxDateTime::Country_Unknown }, - { "Country_WesternEurope_End", wxDateTime::Country_WesternEurope_End }, - { "Country_WesternEurope_Start", wxDateTime::Country_WesternEurope_Start }, - { "Dec", wxDateTime::Dec }, - { "Default_First", wxDateTime::Default_First }, - { "EDT", wxDateTime::EDT }, - { "EEST", wxDateTime::EEST }, - { "EET", wxDateTime::EET }, - { "EST", wxDateTime::EST }, - { "Feb", wxDateTime::Feb }, - { "France", wxDateTime::France }, - { "Fri", wxDateTime::Fri }, - { "GMT0", wxDateTime::GMT0 }, - { "GMT1", wxDateTime::GMT1 }, - { "GMT10", wxDateTime::GMT10 }, - { "GMT11", wxDateTime::GMT11 }, - { "GMT12", wxDateTime::GMT12 }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GMT13", wxDateTime::GMT13 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { "GMT2", wxDateTime::GMT2 }, - { "GMT3", wxDateTime::GMT3 }, - { "GMT4", wxDateTime::GMT4 }, - { "GMT5", wxDateTime::GMT5 }, - { "GMT6", wxDateTime::GMT6 }, - { "GMT7", wxDateTime::GMT7 }, - { "GMT8", wxDateTime::GMT8 }, - { "GMT9", wxDateTime::GMT9 }, - { "GMT_1", wxDateTime::GMT_1 }, - { "GMT_10", wxDateTime::GMT_10 }, - { "GMT_11", wxDateTime::GMT_11 }, - { "GMT_12", wxDateTime::GMT_12 }, - { "GMT_2", wxDateTime::GMT_2 }, - { "GMT_3", wxDateTime::GMT_3 }, - { "GMT_4", wxDateTime::GMT_4 }, - { "GMT_5", wxDateTime::GMT_5 }, - { "GMT_6", wxDateTime::GMT_6 }, - { "GMT_7", wxDateTime::GMT_7 }, - { "GMT_8", wxDateTime::GMT_8 }, - { "GMT_9", wxDateTime::GMT_9 }, - { "Germany", wxDateTime::Germany }, - { "Gregorian", wxDateTime::Gregorian }, - { "HST", wxDateTime::HST }, - { "Inv_Month", wxDateTime::Inv_Month }, - { "Inv_WeekDay", wxDateTime::Inv_WeekDay }, - { "Inv_Year", wxDateTime::Inv_Year }, - { "Jan", wxDateTime::Jan }, - { "Jul", wxDateTime::Jul }, - { "Julian", wxDateTime::Julian }, - { "Jun", wxDateTime::Jun }, - { "Local", wxDateTime::Local }, - { "MDT", wxDateTime::MDT }, - { "MSD", wxDateTime::MSD }, - { "MSK", wxDateTime::MSK }, - { "MST", wxDateTime::MST }, - { "Mar", wxDateTime::Mar }, - { "May", wxDateTime::May }, - { "Mon", wxDateTime::Mon }, - { "Monday_First", wxDateTime::Monday_First }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "NZDT", wxDateTime::NZDT }, - { "NZST", wxDateTime::NZST }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME - { "Name_Abbr", wxDateTime::Name_Abbr }, - { "Name_Full", wxDateTime::Name_Full }, - { "Nov", wxDateTime::Nov }, - { "Oct", wxDateTime::Oct }, - { "PDT", wxDateTime::PDT }, - { "PST", wxDateTime::PST }, - { "Russia", wxDateTime::Russia }, - { "Sat", wxDateTime::Sat }, - { "Sep", wxDateTime::Sep }, - { "Sun", wxDateTime::Sun }, - { "Sunday_First", wxDateTime::Sunday_First }, - { "Thu", wxDateTime::Thu }, - { "Tue", wxDateTime::Tue }, - { "UK", wxDateTime::UK }, - { "USA", wxDateTime::USA }, - { "UTC", wxDateTime::UTC }, - { "WEST", wxDateTime::WEST }, - { "WET", wxDateTime::WET }, - { "Wed", wxDateTime::Wed }, -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - - { NULL, 0, }, -}; -int wxDateTime_enumCount = sizeof(wxDateTime_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - - -#if wxLUA_USE_wxDateTime && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxDateTimeArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateTimeArray' -int wxluatype_wxDateTimeArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Add[] = { &wxluatype_wxDateTimeArray, &wxluatype_wxDateTime, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Add[1] = {{ wxLua_wxDateTimeArray_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTimeArray_Add }}; -// void Add(const wxDateTime& dateTime, size_t copies = 1); -static int LUACALL wxLua_wxDateTimeArray_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t copies = 1 - size_t copies = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // const wxDateTime dateTime - const wxDateTime * dateTime = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Add - self->Add(*dateTime, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Alloc[] = { &wxluatype_wxDateTimeArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Alloc[1] = {{ wxLua_wxDateTimeArray_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTimeArray_Alloc }}; -// void Alloc(size_t nCount); -static int LUACALL wxLua_wxDateTimeArray_Alloc(lua_State *L) -{ - // size_t nCount - size_t nCount = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Alloc - self->Alloc(nCount); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Clear[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Clear[1] = {{ wxLua_wxDateTimeArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxDateTimeArray_Clear(lua_State *L) -{ - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Empty[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Empty[1] = {{ wxLua_wxDateTimeArray_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_Empty }}; -// void Empty(); -static int LUACALL wxLua_wxDateTimeArray_Empty(lua_State *L) -{ - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Empty - self->Empty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_GetCount[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_GetCount[1] = {{ wxLua_wxDateTimeArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxDateTimeArray_GetCount(lua_State *L) -{ - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Insert[] = { &wxluatype_wxDateTimeArray, &wxluatype_wxDateTime, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Insert[1] = {{ wxLua_wxDateTimeArray_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxDateTimeArray_Insert }}; -// void Insert(const wxDateTime& dt, int nIndex, size_t copies = 1); -static int LUACALL wxLua_wxDateTimeArray_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t copies = 1 - size_t copies = (argCount >= 4 ? (size_t)wxlua_getuintegertype(L, 4) : 1); - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Insert - self->Insert(*dt, nIndex, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_IsEmpty[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_IsEmpty[1] = {{ wxLua_wxDateTimeArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxDateTimeArray_IsEmpty(lua_State *L) -{ - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Item[] = { &wxluatype_wxDateTimeArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Item[1] = {{ wxLua_wxDateTimeArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateTimeArray_Item }}; -// wxDateTime Item(size_t nIndex) const; -static int LUACALL wxLua_wxDateTimeArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Item - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Last[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Last(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Last[1] = {{ wxLua_wxDateTimeArray_Last, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_Last }}; -// wxDateTime Last(); -static int LUACALL wxLua_wxDateTimeArray_Last(lua_State *L) -{ - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Last - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->Last()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_RemoveAt[] = { &wxluatype_wxDateTimeArray, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDateTimeArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_RemoveAt[1] = {{ wxLua_wxDateTimeArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateTimeArray_RemoveAt }}; -// void RemoveAt(size_t nIndex, size_t count = 1); -static int LUACALL wxLua_wxDateTimeArray_RemoveAt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t count = 1 - size_t count = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call RemoveAt - self->RemoveAt(nIndex, count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_Shrink[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_Shrink[1] = {{ wxLua_wxDateTimeArray_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxDateTimeArray_Shrink(lua_State *L) -{ - // get this - wxDateTimeArray * self = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_delete[] = { &wxluatype_wxDateTimeArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeArray_constructor1[] = { &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeArray_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_constructor1[1] = {{ wxLua_wxDateTimeArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_constructor1 }}; -// wxDateTimeArray(const wxDateTimeArray& array); -static int LUACALL wxLua_wxDateTimeArray_constructor1(lua_State *L) -{ - // const wxDateTimeArray array - const wxDateTimeArray * array = (const wxDateTimeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeArray); - // call constructor - wxDateTimeArray* returns = new wxDateTimeArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTimeArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTimeArray); - - return 1; -} - -static int LUACALL wxLua_wxDateTimeArray_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_constructor[1] = {{ wxLua_wxDateTimeArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDateTimeArray(); -static int LUACALL wxLua_wxDateTimeArray_constructor(lua_State *L) -{ - // call constructor - wxDateTimeArray* returns = new wxDateTimeArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTimeArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTimeArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeArray_constructor_overload[] = -{ - { wxLua_wxDateTimeArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeArray_constructor1 }, - { wxLua_wxDateTimeArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDateTimeArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDateTimeArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -void wxLua_wxDateTimeArray_delete_function(void** p) -{ - wxDateTimeArray* o = (wxDateTimeArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateTimeArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Clear, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Empty, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Item, 1, NULL }, - { "Last", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Last, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateTimeArray_Shrink, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDateTimeArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "wxDateTimeArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTimeArray_constructor_overload, s_wxluafunc_wxLua_wxDateTimeArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { 0, 0, 0, 0 }, -}; - -int wxDateTimeArray_methodCount = sizeof(wxDateTimeArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDateTime && wxUSE_DATETIME - - -#if wxLUA_USE_wxTimeSpan && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxTimeSpan -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTimeSpan' -int wxluatype_wxTimeSpan = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Abs[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_Abs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Abs[1] = {{ wxLua_wxTimeSpan_Abs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Abs }}; -// wxTimeSpan Abs(); -static int LUACALL wxLua_wxTimeSpan_Abs(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Abs - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(self->Abs()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Add[] = { &wxluatype_wxTimeSpan, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Add[1] = {{ wxLua_wxTimeSpan_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimeSpan_Add }}; -// wxTimeSpan Add(const wxTimeSpan& diff) const; -static int LUACALL wxLua_wxTimeSpan_Add(lua_State *L) -{ - // const wxTimeSpan diff - const wxTimeSpan * diff = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Add - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(self->Add(*diff)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static int LUACALL wxLua_wxTimeSpan_Day(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Day[1] = {{ wxLua_wxTimeSpan_Day, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxTimeSpan Day(); -static int LUACALL wxLua_wxTimeSpan_Day(lua_State *L) -{ - // call Day - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Day()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Days[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_Days(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Days[1] = {{ wxLua_wxTimeSpan_Days, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Days }}; -// static wxTimeSpan Days(long days); -static int LUACALL wxLua_wxTimeSpan_Days(lua_State *L) -{ - // long days - long days = (long)wxlua_getnumbertype(L, 1); - // call Days - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Days(days)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Format[] = { &wxluatype_wxTimeSpan, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTimeSpan_Format(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Format[1] = {{ wxLua_wxTimeSpan_Format, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTimeSpan_Format }}; -// wxString Format(wxString format = "%H:%M:%S") const; -static int LUACALL wxLua_wxTimeSpan_Format(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString format = "%H:%M:%S" - wxString format = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("%H:%M:%S"))); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Format - wxString returns = (self->Format(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetDays[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetDays(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetDays[1] = {{ wxLua_wxTimeSpan_GetDays, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetDays }}; -// int GetDays() const; -static int LUACALL wxLua_wxTimeSpan_GetDays(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetDays - int returns = (self->GetDays()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetHours[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetHours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetHours[1] = {{ wxLua_wxTimeSpan_GetHours, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetHours }}; -// int GetHours() const; -static int LUACALL wxLua_wxTimeSpan_GetHours(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetHours - int returns = (self->GetHours()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetMilliseconds[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetMilliseconds(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetMilliseconds[1] = {{ wxLua_wxTimeSpan_GetMilliseconds, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetMilliseconds }}; -// wxLongLong GetMilliseconds() const; -static int LUACALL wxLua_wxTimeSpan_GetMilliseconds(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetMilliseconds - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetMilliseconds()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -#endif // (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetMinutes[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetMinutes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetMinutes[1] = {{ wxLua_wxTimeSpan_GetMinutes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetMinutes }}; -// int GetMinutes() const; -static int LUACALL wxLua_wxTimeSpan_GetMinutes(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetMinutes - int returns = (self->GetMinutes()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetSeconds[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetSeconds(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetSeconds[1] = {{ wxLua_wxTimeSpan_GetSeconds, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetSeconds }}; -// wxLongLong GetSeconds() const; -static int LUACALL wxLua_wxTimeSpan_GetSeconds(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetSeconds - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetSeconds()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetValue[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetValue[1] = {{ wxLua_wxTimeSpan_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetValue }}; -// wxLongLong GetValue() const; -static int LUACALL wxLua_wxTimeSpan_GetValue(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetValue - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -#endif // (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_GetWeeks[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_GetWeeks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_GetWeeks[1] = {{ wxLua_wxTimeSpan_GetWeeks, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_GetWeeks }}; -// int GetWeeks() const; -static int LUACALL wxLua_wxTimeSpan_GetWeeks(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call GetWeeks - int returns = (self->GetWeeks()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxTimeSpan_Hour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Hour[1] = {{ wxLua_wxTimeSpan_Hour, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxTimeSpan Hour(); -static int LUACALL wxLua_wxTimeSpan_Hour(lua_State *L) -{ - // call Hour - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Hour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Hours[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_Hours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Hours[1] = {{ wxLua_wxTimeSpan_Hours, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Hours }}; -// static wxTimeSpan Hours(long hours); -static int LUACALL wxLua_wxTimeSpan_Hours(lua_State *L) -{ - // long hours - long hours = (long)wxlua_getnumbertype(L, 1); - // call Hours - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Hours(hours)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_IsEqualTo[] = { &wxluatype_wxTimeSpan, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_IsEqualTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_IsEqualTo[1] = {{ wxLua_wxTimeSpan_IsEqualTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimeSpan_IsEqualTo }}; -// bool IsEqualTo(const wxTimeSpan& ts) const; -static int LUACALL wxLua_wxTimeSpan_IsEqualTo(lua_State *L) -{ - // const wxTimeSpan ts - const wxTimeSpan * ts = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call IsEqualTo - bool returns = (self->IsEqualTo(*ts)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_IsLongerThan[] = { &wxluatype_wxTimeSpan, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_IsLongerThan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_IsLongerThan[1] = {{ wxLua_wxTimeSpan_IsLongerThan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimeSpan_IsLongerThan }}; -// bool IsLongerThan(const wxTimeSpan& ts) const; -static int LUACALL wxLua_wxTimeSpan_IsLongerThan(lua_State *L) -{ - // const wxTimeSpan ts - const wxTimeSpan * ts = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call IsLongerThan - bool returns = (self->IsLongerThan(*ts)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_IsNegative[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_IsNegative(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_IsNegative[1] = {{ wxLua_wxTimeSpan_IsNegative, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_IsNegative }}; -// bool IsNegative() const; -static int LUACALL wxLua_wxTimeSpan_IsNegative(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call IsNegative - bool returns = (self->IsNegative()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_IsNull[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_IsNull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_IsNull[1] = {{ wxLua_wxTimeSpan_IsNull, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_IsNull }}; -// bool IsNull() const; -static int LUACALL wxLua_wxTimeSpan_IsNull(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call IsNull - bool returns = (self->IsNull()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_IsPositive[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_IsPositive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_IsPositive[1] = {{ wxLua_wxTimeSpan_IsPositive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_IsPositive }}; -// bool IsPositive() const; -static int LUACALL wxLua_wxTimeSpan_IsPositive(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call IsPositive - bool returns = (self->IsPositive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_IsShorterThan[] = { &wxluatype_wxTimeSpan, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_IsShorterThan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_IsShorterThan[1] = {{ wxLua_wxTimeSpan_IsShorterThan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimeSpan_IsShorterThan }}; -// bool IsShorterThan(const wxTimeSpan& ts) const; -static int LUACALL wxLua_wxTimeSpan_IsShorterThan(lua_State *L) -{ - // const wxTimeSpan ts - const wxTimeSpan * ts = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call IsShorterThan - bool returns = (self->IsShorterThan(*ts)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxTimeSpan_Minute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Minute[1] = {{ wxLua_wxTimeSpan_Minute, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxTimeSpan Minute(); -static int LUACALL wxLua_wxTimeSpan_Minute(lua_State *L) -{ - // call Minute - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Minute()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Minutes[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_Minutes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Minutes[1] = {{ wxLua_wxTimeSpan_Minutes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Minutes }}; -// static wxTimeSpan Minutes(long min); -static int LUACALL wxLua_wxTimeSpan_Minutes(lua_State *L) -{ - // long min - long min = (long)wxlua_getnumbertype(L, 1); - // call Minutes - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Minutes(min)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Multiply[] = { &wxluatype_wxTimeSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_Multiply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Multiply[1] = {{ wxLua_wxTimeSpan_Multiply, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimeSpan_Multiply }}; -// wxTimeSpan Multiply(int n) const; -static int LUACALL wxLua_wxTimeSpan_Multiply(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Multiply - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(self->Multiply(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Neg[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_Neg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Neg[1] = {{ wxLua_wxTimeSpan_Neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Neg }}; -// wxTimeSpan& Neg(); -static int LUACALL wxLua_wxTimeSpan_Neg(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Neg - wxTimeSpan* returns = (wxTimeSpan*)&self->Neg(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Negate[] = { &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_Negate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Negate[1] = {{ wxLua_wxTimeSpan_Negate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Negate }}; -// wxTimeSpan Negate() const; -static int LUACALL wxLua_wxTimeSpan_Negate(lua_State *L) -{ - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Negate - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(self->Negate()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static int LUACALL wxLua_wxTimeSpan_Second(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Second[1] = {{ wxLua_wxTimeSpan_Second, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxTimeSpan Second(); -static int LUACALL wxLua_wxTimeSpan_Second(lua_State *L) -{ - // call Second - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Second()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Seconds[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_Seconds(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Seconds[1] = {{ wxLua_wxTimeSpan_Seconds, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Seconds }}; -// static wxTimeSpan Seconds(long sec); -static int LUACALL wxLua_wxTimeSpan_Seconds(lua_State *L) -{ - // long sec - long sec = (long)wxlua_getnumbertype(L, 1); - // call Seconds - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Seconds(sec)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Subtract[] = { &wxluatype_wxTimeSpan, &wxluatype_wxTimeSpan, NULL }; -static int LUACALL wxLua_wxTimeSpan_Subtract(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Subtract[1] = {{ wxLua_wxTimeSpan_Subtract, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimeSpan_Subtract }}; -// wxTimeSpan Subtract(const wxTimeSpan& diff) const; -static int LUACALL wxLua_wxTimeSpan_Subtract(lua_State *L) -{ - // const wxTimeSpan diff - const wxTimeSpan * diff = (const wxTimeSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTimeSpan); - // get this - wxTimeSpan * self = (wxTimeSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimeSpan); - // call Subtract - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(self->Subtract(*diff)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static int LUACALL wxLua_wxTimeSpan_Week(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Week[1] = {{ wxLua_wxTimeSpan_Week, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxTimeSpan Week(); -static int LUACALL wxLua_wxTimeSpan_Week(lua_State *L) -{ - // call Week - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Week()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_Weeks[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_Weeks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_Weeks[1] = {{ wxLua_wxTimeSpan_Weeks, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_Weeks }}; -// static wxTimeSpan Weeks(long weeks); -static int LUACALL wxLua_wxTimeSpan_Weeks(lua_State *L) -{ - // long weeks - long weeks = (long)wxlua_getnumbertype(L, 1); - // call Weeks - // allocate a new object using the copy constructor - wxTimeSpan* returns = new wxTimeSpan(wxTimeSpan::Weeks(weeks)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_delete[] = { &wxluatype_wxTimeSpan, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTimeSpan_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimeSpan_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimeSpan_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_constructor1[1] = {{ wxLua_wxTimeSpan_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxTimeSpan_constructor1 }}; -// wxTimeSpan(long hours, long minutes = 0, long seconds = 0, long milliseconds = 0); -static int LUACALL wxLua_wxTimeSpan_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long milliseconds = 0 - long milliseconds = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // long seconds = 0 - long seconds = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long minutes = 0 - long minutes = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : 0); - // long hours - long hours = (long)wxlua_getnumbertype(L, 1); - // call constructor - wxTimeSpan* returns = new wxTimeSpan(hours, minutes, seconds, milliseconds); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - -static int LUACALL wxLua_wxTimeSpan_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_constructor[1] = {{ wxLua_wxTimeSpan_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTimeSpan(); -static int LUACALL wxLua_wxTimeSpan_constructor(lua_State *L) -{ - // call constructor - wxTimeSpan* returns = new wxTimeSpan(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimeSpan); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimeSpan); - - return 1; -} - - - - -#if (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimeSpan_constructor_overload[] = -{ - { wxLua_wxTimeSpan_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxTimeSpan_constructor1 }, - { wxLua_wxTimeSpan_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTimeSpan_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTimeSpan_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - -void wxLua_wxTimeSpan_delete_function(void** p) -{ - wxTimeSpan* o = (wxTimeSpan*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTimeSpan_methods[] = { - { "Abs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Abs, 1, NULL }, - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Add, 1, NULL }, - { "Day", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Day, 1, NULL }, - { "Days", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Days, 1, NULL }, - { "Format", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Format, 1, NULL }, - { "GetDays", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetDays, 1, NULL }, - { "GetHours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetHours, 1, NULL }, - -#if (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) - { "GetMilliseconds", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetMilliseconds, 1, NULL }, -#endif // (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) - - { "GetMinutes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetMinutes, 1, NULL }, - -#if (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) - { "GetSeconds", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetSeconds, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetValue, 1, NULL }, -#endif // (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) && (wxUSE_LONGLONG) - - { "GetWeeks", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_GetWeeks, 1, NULL }, - { "Hour", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Hour, 1, NULL }, - { "Hours", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Hours, 1, NULL }, - { "IsEqualTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_IsEqualTo, 1, NULL }, - { "IsLongerThan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_IsLongerThan, 1, NULL }, - { "IsNegative", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_IsNegative, 1, NULL }, - { "IsNull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_IsNull, 1, NULL }, - { "IsPositive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_IsPositive, 1, NULL }, - { "IsShorterThan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_IsShorterThan, 1, NULL }, - { "Minute", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Minute, 1, NULL }, - { "Minutes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Minutes, 1, NULL }, - { "Multiply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Multiply, 1, NULL }, - { "Neg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Neg, 1, NULL }, - { "Negate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Negate, 1, NULL }, - { "Second", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Second, 1, NULL }, - { "Seconds", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Seconds, 1, NULL }, - { "Subtract", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimeSpan_Subtract, 1, NULL }, - { "Week", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Week, 1, NULL }, - { "Weeks", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTimeSpan_Weeks, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTimeSpan_delete, 1, NULL }, - -#if (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - { "wxTimeSpan", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTimeSpan_constructor_overload, s_wxluafunc_wxLua_wxTimeSpan_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxTimeSpan && wxUSE_DATETIME) - - { 0, 0, 0, 0 }, -}; - -int wxTimeSpan_methodCount = sizeof(wxTimeSpan_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTimeSpan && wxUSE_DATETIME - - -#if wxLUA_USE_wxDateSpan && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxDateSpan -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateSpan' -int wxluatype_wxDateSpan = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Add[] = { &wxluatype_wxDateSpan, &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Add[1] = {{ wxLua_wxDateSpan_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_Add }}; -// wxDateSpan Add(const wxDateSpan& other) const; -static int LUACALL wxLua_wxDateSpan_Add(lua_State *L) -{ - // const wxDateSpan other - const wxDateSpan * other = (const wxDateSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateSpan); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call Add - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(self->Add(*other)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static int LUACALL wxLua_wxDateSpan_Day(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Day[1] = {{ wxLua_wxDateSpan_Day, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateSpan Day(); -static int LUACALL wxLua_wxDateSpan_Day(lua_State *L) -{ - // call Day - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Day()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Days[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_Days(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Days[1] = {{ wxLua_wxDateSpan_Days, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_Days }}; -// static wxDateSpan Days(int days); -static int LUACALL wxLua_wxDateSpan_Days(lua_State *L) -{ - // int days - int days = (int)wxlua_getnumbertype(L, 1); - // call Days - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Days(days)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_GetDays[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_GetDays(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_GetDays[1] = {{ wxLua_wxDateSpan_GetDays, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_GetDays }}; -// int GetDays() const; -static int LUACALL wxLua_wxDateSpan_GetDays(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call GetDays - int returns = (self->GetDays()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_GetMonths[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_GetMonths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_GetMonths[1] = {{ wxLua_wxDateSpan_GetMonths, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_GetMonths }}; -// int GetMonths() const; -static int LUACALL wxLua_wxDateSpan_GetMonths(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call GetMonths - int returns = (self->GetMonths()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_GetTotalDays[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_GetTotalDays(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_GetTotalDays[1] = {{ wxLua_wxDateSpan_GetTotalDays, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_GetTotalDays }}; -// int GetTotalDays() const; -static int LUACALL wxLua_wxDateSpan_GetTotalDays(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call GetTotalDays - int returns = (self->GetTotalDays()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_GetWeeks[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_GetWeeks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_GetWeeks[1] = {{ wxLua_wxDateSpan_GetWeeks, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_GetWeeks }}; -// int GetWeeks() const; -static int LUACALL wxLua_wxDateSpan_GetWeeks(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call GetWeeks - int returns = (self->GetWeeks()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_GetYears[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_GetYears(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_GetYears[1] = {{ wxLua_wxDateSpan_GetYears, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_GetYears }}; -// int GetYears() const; -static int LUACALL wxLua_wxDateSpan_GetYears(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call GetYears - int returns = (self->GetYears()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxDateSpan_Month(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Month[1] = {{ wxLua_wxDateSpan_Month, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateSpan Month(); -static int LUACALL wxLua_wxDateSpan_Month(lua_State *L) -{ - // call Month - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Month()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Months[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_Months(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Months[1] = {{ wxLua_wxDateSpan_Months, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_Months }}; -// static wxDateSpan Months(int mon); -static int LUACALL wxLua_wxDateSpan_Months(lua_State *L) -{ - // int mon - int mon = (int)wxlua_getnumbertype(L, 1); - // call Months - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Months(mon)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Multiply[] = { &wxluatype_wxDateSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_Multiply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Multiply[1] = {{ wxLua_wxDateSpan_Multiply, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_Multiply }}; -// wxDateSpan Multiply(int factor) const; -static int LUACALL wxLua_wxDateSpan_Multiply(lua_State *L) -{ - // int factor - int factor = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call Multiply - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(self->Multiply(factor)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Neg[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_Neg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Neg[1] = {{ wxLua_wxDateSpan_Neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_Neg }}; -// wxDateSpan& Neg(); -static int LUACALL wxLua_wxDateSpan_Neg(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call Neg - wxDateSpan* returns = (wxDateSpan*)&self->Neg(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Negate[] = { &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_Negate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Negate[1] = {{ wxLua_wxDateSpan_Negate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_Negate }}; -// wxDateSpan Negate() const; -static int LUACALL wxLua_wxDateSpan_Negate(lua_State *L) -{ - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call Negate - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(self->Negate()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_SetDays[] = { &wxluatype_wxDateSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_SetDays(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_SetDays[1] = {{ wxLua_wxDateSpan_SetDays, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_SetDays }}; -// wxDateSpan& SetDays(int n); -static int LUACALL wxLua_wxDateSpan_SetDays(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call SetDays - wxDateSpan* returns = (wxDateSpan*)&self->SetDays(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_SetMonths[] = { &wxluatype_wxDateSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_SetMonths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_SetMonths[1] = {{ wxLua_wxDateSpan_SetMonths, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_SetMonths }}; -// wxDateSpan& SetMonths(int n); -static int LUACALL wxLua_wxDateSpan_SetMonths(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call SetMonths - wxDateSpan* returns = (wxDateSpan*)&self->SetMonths(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_SetWeeks[] = { &wxluatype_wxDateSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_SetWeeks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_SetWeeks[1] = {{ wxLua_wxDateSpan_SetWeeks, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_SetWeeks }}; -// wxDateSpan& SetWeeks(int n); -static int LUACALL wxLua_wxDateSpan_SetWeeks(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call SetWeeks - wxDateSpan* returns = (wxDateSpan*)&self->SetWeeks(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_SetYears[] = { &wxluatype_wxDateSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_SetYears(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_SetYears[1] = {{ wxLua_wxDateSpan_SetYears, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_SetYears }}; -// wxDateSpan& SetYears(int n); -static int LUACALL wxLua_wxDateSpan_SetYears(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call SetYears - wxDateSpan* returns = (wxDateSpan*)&self->SetYears(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Subtract[] = { &wxluatype_wxDateSpan, &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_Subtract(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Subtract[1] = {{ wxLua_wxDateSpan_Subtract, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_Subtract }}; -// wxDateSpan Subtract(const wxDateSpan& other) const; -static int LUACALL wxLua_wxDateSpan_Subtract(lua_State *L) -{ - // const wxDateSpan other - const wxDateSpan * other = (const wxDateSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateSpan); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call Subtract - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(self->Subtract(*other)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static int LUACALL wxLua_wxDateSpan_Week(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Week[1] = {{ wxLua_wxDateSpan_Week, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateSpan Week(); -static int LUACALL wxLua_wxDateSpan_Week(lua_State *L) -{ - // call Week - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Week()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Weeks[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_Weeks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Weeks[1] = {{ wxLua_wxDateSpan_Weeks, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_Weeks }}; -// static wxDateSpan Weeks(int weeks); -static int LUACALL wxLua_wxDateSpan_Weeks(lua_State *L) -{ - // int weeks - int weeks = (int)wxlua_getnumbertype(L, 1); - // call Weeks - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Weeks(weeks)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static int LUACALL wxLua_wxDateSpan_Year(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Year[1] = {{ wxLua_wxDateSpan_Year, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxDateSpan Year(); -static int LUACALL wxLua_wxDateSpan_Year(lua_State *L) -{ - // call Year - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Year()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_Years[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_Years(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_Years[1] = {{ wxLua_wxDateSpan_Years, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_Years }}; -// static wxDateSpan Years(int years); -static int LUACALL wxLua_wxDateSpan_Years(lua_State *L) -{ - // int years - int years = (int)wxlua_getnumbertype(L, 1); - // call Years - // allocate a new object using the copy constructor - wxDateSpan* returns = new wxDateSpan(wxDateSpan::Years(years)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_delete[] = { &wxluatype_wxDateSpan, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDateSpan_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_op_eq[] = { &wxluatype_wxDateSpan, &wxluatype_wxDateSpan, NULL }; -static int LUACALL wxLua_wxDateSpan_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_op_eq[1] = {{ wxLua_wxDateSpan_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateSpan_op_eq }}; -// bool operator==(wxDateSpan& other) const; -static int LUACALL wxLua_wxDateSpan_op_eq(lua_State *L) -{ - // wxDateSpan other - wxDateSpan * other = (wxDateSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateSpan); - // get this - wxDateSpan * self = (wxDateSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateSpan); - // call op_eq - bool returns = ((*self)==(*other)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateSpan_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateSpan_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateSpan_constructor[1] = {{ wxLua_wxDateSpan_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxDateSpan_constructor }}; -// wxDateSpan(int years = 0, int months = 0, int weeks = 0, int days = 0); -static int LUACALL wxLua_wxDateSpan_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int days = 0 - int days = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int weeks = 0 - int weeks = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int months = 0 - int months = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int years = 0 - int years = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxDateSpan* returns = new wxDateSpan(years, months, weeks, days); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateSpan); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateSpan); - - return 1; -} - - - - -void wxLua_wxDateSpan_delete_function(void** p) -{ - wxDateSpan* o = (wxDateSpan*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateSpan_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_Add, 1, NULL }, - { "Day", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Day, 1, NULL }, - { "Days", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Days, 1, NULL }, - { "GetDays", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_GetDays, 1, NULL }, - { "GetMonths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_GetMonths, 1, NULL }, - { "GetTotalDays", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_GetTotalDays, 1, NULL }, - { "GetWeeks", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_GetWeeks, 1, NULL }, - { "GetYears", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_GetYears, 1, NULL }, - { "Month", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Month, 1, NULL }, - { "Months", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Months, 1, NULL }, - { "Multiply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_Multiply, 1, NULL }, - { "Neg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_Neg, 1, NULL }, - { "Negate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_Negate, 1, NULL }, - { "SetDays", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_SetDays, 1, NULL }, - { "SetMonths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_SetMonths, 1, NULL }, - { "SetWeeks", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_SetWeeks, 1, NULL }, - { "SetYears", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_SetYears, 1, NULL }, - { "Subtract", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_Subtract, 1, NULL }, - { "Week", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Week, 1, NULL }, - { "Weeks", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Weeks, 1, NULL }, - { "Year", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Year, 1, NULL }, - { "Years", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateSpan_Years, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDateSpan_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateSpan_op_eq, 1, NULL }, - { "wxDateSpan", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateSpan_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDateSpan_methodCount = sizeof(wxDateSpan_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDateSpan && wxUSE_DATETIME - - -#if wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxDateTimeHolidayAuthority -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateTimeHolidayAuthority' -int wxluatype_wxDateTimeHolidayAuthority = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeHolidayAuthority_AddAuthority[] = { &wxluatype_wxDateTimeHolidayAuthority, NULL }; -static int LUACALL wxLua_wxDateTimeHolidayAuthority_AddAuthority(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_AddAuthority[1] = {{ wxLua_wxDateTimeHolidayAuthority_AddAuthority, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeHolidayAuthority_AddAuthority }}; -// static void AddAuthority(wxDateTimeHolidayAuthority *auth); -static int LUACALL wxLua_wxDateTimeHolidayAuthority_AddAuthority(lua_State *L) -{ - // wxDateTimeHolidayAuthority auth - wxDateTimeHolidayAuthority * auth = (wxDateTimeHolidayAuthority *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTimeHolidayAuthority); - // call AddAuthority - wxDateTimeHolidayAuthority::AddAuthority(auth); - - return 0; -} - -static int LUACALL wxLua_wxDateTimeHolidayAuthority_ClearAllAuthorities(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_ClearAllAuthorities[1] = {{ wxLua_wxDateTimeHolidayAuthority_ClearAllAuthorities, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void ClearAllAuthorities(); -static int LUACALL wxLua_wxDateTimeHolidayAuthority_ClearAllAuthorities(lua_State *L) -{ - // call ClearAllAuthorities - wxDateTimeHolidayAuthority::ClearAllAuthorities(); - - return 0; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange[] = { &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxDateTimeArray, NULL }; -static int LUACALL wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange[1] = {{ wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange }}; -// static size_t GetHolidaysInRange(const wxDateTime& dtStart, const wxDateTime& dtEnd, wxDateTimeArray& holidays); -static int LUACALL wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange(lua_State *L) -{ - // wxDateTimeArray holidays - wxDateTimeArray * holidays = (wxDateTimeArray *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTimeArray); - // const wxDateTime dtEnd - const wxDateTime * dtEnd = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // const wxDateTime dtStart - const wxDateTime * dtStart = (const wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call GetHolidaysInRange - size_t returns = (wxDateTimeHolidayAuthority::GetHolidaysInRange(*dtStart, *dtEnd, *holidays)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeHolidayAuthority_IsHoliday[] = { &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateTimeHolidayAuthority_IsHoliday(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_IsHoliday[1] = {{ wxLua_wxDateTimeHolidayAuthority_IsHoliday, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeHolidayAuthority_IsHoliday }}; -// static bool IsHoliday(const wxDateTime& dt); -static int LUACALL wxLua_wxDateTimeHolidayAuthority_IsHoliday(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateTime); - // call IsHoliday - bool returns = (wxDateTimeHolidayAuthority::IsHoliday(*dt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME) - - - -void wxLua_wxDateTimeHolidayAuthority_delete_function(void** p) -{ - wxDateTimeHolidayAuthority* o = (wxDateTimeHolidayAuthority*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateTimeHolidayAuthority_methods[] = { - { "AddAuthority", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_AddAuthority, 1, NULL }, - { "ClearAllAuthorities", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_ClearAllAuthorities, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME) - { "GetHolidaysInRange", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_GetHolidaysInRange, 1, NULL }, - { "IsHoliday", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDateTimeHolidayAuthority_IsHoliday, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME) - - { 0, 0, 0, 0 }, -}; - -int wxDateTimeHolidayAuthority_methodCount = sizeof(wxDateTimeHolidayAuthority_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - - -#if wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME -// --------------------------------------------------------------------------- -// Bind class wxDateTimeWorkDays -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateTimeWorkDays' -int wxluatype_wxDateTimeWorkDays = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateTimeWorkDays_delete[] = { &wxluatype_wxDateTimeWorkDays, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeWorkDays_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDateTimeWorkDays_delete }}; - -static int LUACALL wxLua_wxDateTimeWorkDays_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateTimeWorkDays_constructor[1] = {{ wxLua_wxDateTimeWorkDays_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDateTimeWorkDays(); -static int LUACALL wxLua_wxDateTimeWorkDays_constructor(lua_State *L) -{ - // call constructor - wxDateTimeWorkDays* returns = new wxDateTimeWorkDays(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTimeWorkDays); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTimeWorkDays); - - return 1; -} - - - - -void wxLua_wxDateTimeWorkDays_delete_function(void** p) -{ - wxDateTimeWorkDays* o = (wxDateTimeWorkDays*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateTimeWorkDays_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDateTimeWorkDays_delete, 1, NULL }, - { "wxDateTimeWorkDays", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateTimeWorkDays_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDateTimeWorkDays_methodCount = sizeof(wxDateTimeWorkDays_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDateTimeHolidayAuthority && wxUSE_DATETIME - - -#if wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH -// --------------------------------------------------------------------------- -// Bind class wxStopWatch -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStopWatch' -int wxluatype_wxStopWatch = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStopWatch_Pause[] = { &wxluatype_wxStopWatch, NULL }; -static int LUACALL wxLua_wxStopWatch_Pause(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStopWatch_Pause[1] = {{ wxLua_wxStopWatch_Pause, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStopWatch_Pause }}; -// void Pause(); -static int LUACALL wxLua_wxStopWatch_Pause(lua_State *L) -{ - // get this - wxStopWatch * self = (wxStopWatch *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStopWatch); - // call Pause - self->Pause(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStopWatch_Resume[] = { &wxluatype_wxStopWatch, NULL }; -static int LUACALL wxLua_wxStopWatch_Resume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStopWatch_Resume[1] = {{ wxLua_wxStopWatch_Resume, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStopWatch_Resume }}; -// void Resume(); -static int LUACALL wxLua_wxStopWatch_Resume(lua_State *L) -{ - // get this - wxStopWatch * self = (wxStopWatch *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStopWatch); - // call Resume - self->Resume(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStopWatch_Start[] = { &wxluatype_wxStopWatch, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStopWatch_Start(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStopWatch_Start[1] = {{ wxLua_wxStopWatch_Start, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxStopWatch_Start }}; -// void Start(long t0 = 0); // start the stop watch at the moment t0 -static int LUACALL wxLua_wxStopWatch_Start(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long t0 = 0 - long t0 = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : 0); - // get this - wxStopWatch * self = (wxStopWatch *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStopWatch); - // call Start - self->Start(t0); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStopWatch_Time[] = { &wxluatype_wxStopWatch, NULL }; -static int LUACALL wxLua_wxStopWatch_Time(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStopWatch_Time[1] = {{ wxLua_wxStopWatch_Time, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStopWatch_Time }}; -// long Time() const; -static int LUACALL wxLua_wxStopWatch_Time(lua_State *L) -{ - // get this - wxStopWatch * self = (wxStopWatch *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStopWatch); - // call Time - long returns = (self->Time()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStopWatch_delete[] = { &wxluatype_wxStopWatch, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStopWatch_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxStopWatch_delete }}; - -static int LUACALL wxLua_wxStopWatch_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStopWatch_constructor[1] = {{ wxLua_wxStopWatch_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStopWatch(); // ctor starts the stop watch -static int LUACALL wxLua_wxStopWatch_constructor(lua_State *L) -{ - // call constructor - wxStopWatch* returns = new wxStopWatch(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStopWatch); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStopWatch); - - return 1; -} - - - - -void wxLua_wxStopWatch_delete_function(void** p) -{ - wxStopWatch* o = (wxStopWatch*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStopWatch_methods[] = { - { "Pause", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStopWatch_Pause, 1, NULL }, - { "Resume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStopWatch_Resume, 1, NULL }, - { "Start", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStopWatch_Start, 1, NULL }, - { "Time", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStopWatch_Time, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStopWatch_delete, 1, NULL }, - { "wxStopWatch", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStopWatch_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStopWatch_methodCount = sizeof(wxStopWatch_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStopWatch && wxUSE_STOPWATCH - diff --git a/wxLua/modules/wxbind/src/wxbase_file.cpp b/wxLua/modules/wxbind/src/wxbase_file.cpp deleted file mode 100644 index 48bba38c..00000000 --- a/wxLua/modules/wxbind/src/wxbase_file.cpp +++ /dev/null @@ -1,10086 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxbase_file.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxbase_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths -// --------------------------------------------------------------------------- -// Bind class wxStandardPaths -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStandardPaths' -int wxluatype_wxStandardPaths = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_DontIgnoreAppSubDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_DontIgnoreAppSubDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_DontIgnoreAppSubDir[1] = {{ wxLua_wxStandardPaths_DontIgnoreAppSubDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_DontIgnoreAppSubDir }}; -// %wxchkver_3_0_0 && %win void DontIgnoreAppSubDir(); -static int LUACALL wxLua_wxStandardPaths_DontIgnoreAppSubDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call DontIgnoreAppSubDir - self->DontIgnoreAppSubDir(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) - -static int LUACALL wxLua_wxStandardPaths_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_Get[1] = {{ wxLua_wxStandardPaths_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxStandardPaths_Get -// static wxStandardPaths& Get(); -static int LUACALL wxLua_wxStandardPaths_Get(lua_State *L) -{ - // call Get - wxStandardPathsBase *returns = &wxStandardPaths::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStandardPaths); - - return 1; -} - - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetAppDocumentsDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetAppDocumentsDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetAppDocumentsDir[1] = {{ wxLua_wxStandardPaths_GetAppDocumentsDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetAppDocumentsDir }}; -// %wxchkver_3_0_0 wxString GetAppDocumentsDir() const; -static int LUACALL wxLua_wxStandardPaths_GetAppDocumentsDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetAppDocumentsDir - wxString returns = (self->GetAppDocumentsDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetConfigDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetConfigDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetConfigDir[1] = {{ wxLua_wxStandardPaths_GetConfigDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetConfigDir }}; -// virtual wxString GetConfigDir() const; -static int LUACALL wxLua_wxStandardPaths_GetConfigDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetConfigDir - wxString returns = (self->GetConfigDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetDataDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetDataDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetDataDir[1] = {{ wxLua_wxStandardPaths_GetDataDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetDataDir }}; -// virtual wxString GetDataDir() const; -static int LUACALL wxLua_wxStandardPaths_GetDataDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetDataDir - wxString returns = (self->GetDataDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetDocumentsDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetDocumentsDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetDocumentsDir[1] = {{ wxLua_wxStandardPaths_GetDocumentsDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetDocumentsDir }}; -// virtual wxString GetDocumentsDir() const; -static int LUACALL wxLua_wxStandardPaths_GetDocumentsDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetDocumentsDir - wxString returns = (self->GetDocumentsDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetExecutablePath[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetExecutablePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetExecutablePath[1] = {{ wxLua_wxStandardPaths_GetExecutablePath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetExecutablePath }}; -// virtual wxString GetExecutablePath() const; -static int LUACALL wxLua_wxStandardPaths_GetExecutablePath(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetExecutablePath - wxString returns = (self->GetExecutablePath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetFileLayout[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetFileLayout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetFileLayout[1] = {{ wxLua_wxStandardPaths_GetFileLayout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetFileLayout }}; -// %wxchkver_3_1_1 wxStandardPaths::FileLayout GetFileLayout() const; // %override return type -static int LUACALL wxLua_wxStandardPaths_GetFileLayout(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetFileLayout - wxStandardPaths::FileLayout returns = (self->GetFileLayout()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetInstallPrefix[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetInstallPrefix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetInstallPrefix[1] = {{ wxLua_wxStandardPaths_GetInstallPrefix, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetInstallPrefix }}; -// %wxchkver_3_0_0 && %gtk wxString GetInstallPrefix() const; -static int LUACALL wxLua_wxStandardPaths_GetInstallPrefix(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetInstallPrefix - wxString returns = (self->GetInstallPrefix()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetLocalDataDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetLocalDataDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetLocalDataDir[1] = {{ wxLua_wxStandardPaths_GetLocalDataDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetLocalDataDir }}; -// virtual wxString GetLocalDataDir() const; -static int LUACALL wxLua_wxStandardPaths_GetLocalDataDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetLocalDataDir - wxString returns = (self->GetLocalDataDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetLocalizedResourcesDir[] = { &wxluatype_wxStandardPaths, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetLocalizedResourcesDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetLocalizedResourcesDir[1] = {{ wxLua_wxStandardPaths_GetLocalizedResourcesDir, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStandardPaths_GetLocalizedResourcesDir }}; -// wxString GetLocalizedResourcesDir(const wxString& lang, wxStandardPaths::ResourceCat category = wxStandardPaths::ResourceCat_None) const; // %override parameter types -static int LUACALL wxLua_wxStandardPaths_GetLocalizedResourcesDir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxStandardPaths::ResourceCat category = wxStandardPaths::ResourceCat_None - wxStandardPaths::ResourceCat category = (argCount >= 3 ? (wxStandardPaths::ResourceCat)wxlua_getenumtype(L, 3) : wxStandardPaths::ResourceCat_None); - // const wxString lang - const wxString lang = wxlua_getwxStringtype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetLocalizedResourcesDir - wxString returns = (self->GetLocalizedResourcesDir(lang, category)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetPluginsDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetPluginsDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetPluginsDir[1] = {{ wxLua_wxStandardPaths_GetPluginsDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetPluginsDir }}; -// virtual wxString GetPluginsDir() const; -static int LUACALL wxLua_wxStandardPaths_GetPluginsDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetPluginsDir - wxString returns = (self->GetPluginsDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetResourcesDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetResourcesDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetResourcesDir[1] = {{ wxLua_wxStandardPaths_GetResourcesDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetResourcesDir }}; -// virtual wxString GetResourcesDir() const; -static int LUACALL wxLua_wxStandardPaths_GetResourcesDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetResourcesDir - wxString returns = (self->GetResourcesDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetTempDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetTempDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetTempDir[1] = {{ wxLua_wxStandardPaths_GetTempDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetTempDir }}; -// virtual wxString GetTempDir() const; -static int LUACALL wxLua_wxStandardPaths_GetTempDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetTempDir - wxString returns = (self->GetTempDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetUserConfigDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetUserConfigDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetUserConfigDir[1] = {{ wxLua_wxStandardPaths_GetUserConfigDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetUserConfigDir }}; -// virtual wxString GetUserConfigDir() const; -static int LUACALL wxLua_wxStandardPaths_GetUserConfigDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetUserConfigDir - wxString returns = (self->GetUserConfigDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetUserDataDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetUserDataDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetUserDataDir[1] = {{ wxLua_wxStandardPaths_GetUserDataDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetUserDataDir }}; -// virtual wxString GetUserDataDir() const; -static int LUACALL wxLua_wxStandardPaths_GetUserDataDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetUserDataDir - wxString returns = (self->GetUserDataDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetUserDir[] = { &wxluatype_wxStandardPaths, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetUserDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetUserDir[1] = {{ wxLua_wxStandardPaths_GetUserDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStandardPaths_GetUserDir }}; -// %wxchkver_3_1_0 wxString GetUserDir(wxStandardPaths::Dir userDir) const; // %override parameter type -static int LUACALL wxLua_wxStandardPaths_GetUserDir(lua_State *L) -{ - // wxStandardPaths::Dir userDir - wxStandardPaths::Dir userDir = (wxStandardPaths::Dir)wxlua_getenumtype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetUserDir - wxString returns = (self->GetUserDir(userDir)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_GetUserLocalDataDir[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_GetUserLocalDataDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_GetUserLocalDataDir[1] = {{ wxLua_wxStandardPaths_GetUserLocalDataDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_GetUserLocalDataDir }}; -// virtual wxString GetUserLocalDataDir() const; -static int LUACALL wxLua_wxStandardPaths_GetUserLocalDataDir(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call GetUserLocalDataDir - wxString returns = (self->GetUserLocalDataDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_IgnoreAppBuildSubDirs[] = { &wxluatype_wxStandardPaths, NULL }; -static int LUACALL wxLua_wxStandardPaths_IgnoreAppBuildSubDirs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_IgnoreAppBuildSubDirs[1] = {{ wxLua_wxStandardPaths_IgnoreAppBuildSubDirs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_IgnoreAppBuildSubDirs }}; -// %wxchkver_3_0_0 && %win void IgnoreAppBuildSubDirs(); -static int LUACALL wxLua_wxStandardPaths_IgnoreAppBuildSubDirs(lua_State *L) -{ - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call IgnoreAppBuildSubDirs - self->IgnoreAppBuildSubDirs(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_IgnoreAppSubDir[] = { &wxluatype_wxStandardPaths, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStandardPaths_IgnoreAppSubDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_IgnoreAppSubDir[1] = {{ wxLua_wxStandardPaths_IgnoreAppSubDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStandardPaths_IgnoreAppSubDir }}; -// %wxchkver_3_0_0 && %win void IgnoreAppSubDir(const wxString& subdirPattern); -static int LUACALL wxLua_wxStandardPaths_IgnoreAppSubDir(lua_State *L) -{ - // const wxString subdirPattern - const wxString subdirPattern = wxlua_getwxStringtype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call IgnoreAppSubDir - self->IgnoreAppSubDir(subdirPattern); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_MSWGetShellDir[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStandardPaths_MSWGetShellDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_MSWGetShellDir[1] = {{ wxLua_wxStandardPaths_MSWGetShellDir, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxStandardPaths_MSWGetShellDir }}; -// %wxchkver_3_0_0 && %win static wxString MSWGetShellDir(int csidl); -static int LUACALL wxLua_wxStandardPaths_MSWGetShellDir(lua_State *L) -{ - // int csidl - int csidl = (int)wxlua_getnumbertype(L, 1); - // call MSWGetShellDir - wxString returns = (wxStandardPaths::MSWGetShellDir(csidl)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_MakeConfigFileName[] = { &wxluatype_wxStandardPaths, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStandardPaths_MakeConfigFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_MakeConfigFileName[1] = {{ wxLua_wxStandardPaths_MakeConfigFileName, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStandardPaths_MakeConfigFileName }}; -// %wxchkver_3_1_1 wxString MakeConfigFileName(const wxString& basename, wxStandardPaths::ConfigFileConv conv = wxStandardPaths::ConfigFileConv_Ext) const; // %override parameter type -static int LUACALL wxLua_wxStandardPaths_MakeConfigFileName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxStandardPaths::ConfigFileConv conv = wxStandardPaths::ConfigFileConv_Ext - wxStandardPaths::ConfigFileConv conv = (argCount >= 3 ? (wxStandardPaths::ConfigFileConv)wxlua_getenumtype(L, 3) : wxStandardPaths::ConfigFileConv_Ext); - // const wxString basename - const wxString basename = wxlua_getwxStringtype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call MakeConfigFileName - wxString returns = (self->MakeConfigFileName(basename, conv)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_SetFileLayout[] = { &wxluatype_wxStandardPaths, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStandardPaths_SetFileLayout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_SetFileLayout[1] = {{ wxLua_wxStandardPaths_SetFileLayout, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStandardPaths_SetFileLayout }}; -// %wxchkver_3_1_1 void SetFileLayout(wxStandardPaths::FileLayout layout); // %override parameter type -static int LUACALL wxLua_wxStandardPaths_SetFileLayout(lua_State *L) -{ - // wxStandardPaths::FileLayout layout - wxStandardPaths::FileLayout layout = (wxStandardPaths::FileLayout)wxlua_getenumtype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call SetFileLayout - self->SetFileLayout(layout); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_SetInstallPrefix[] = { &wxluatype_wxStandardPaths, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStandardPaths_SetInstallPrefix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_SetInstallPrefix[1] = {{ wxLua_wxStandardPaths_SetInstallPrefix, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStandardPaths_SetInstallPrefix }}; -// %wxchkver_3_0_0 && %gtk void SetInstallPrefix(const wxString& prefix); -static int LUACALL wxLua_wxStandardPaths_SetInstallPrefix(lua_State *L) -{ - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call SetInstallPrefix - self->SetInstallPrefix(prefix); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStandardPaths_UseAppInfo[] = { &wxluatype_wxStandardPaths, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStandardPaths_UseAppInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStandardPaths_UseAppInfo[1] = {{ wxLua_wxStandardPaths_UseAppInfo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStandardPaths_UseAppInfo }}; -// %wxchkver_3_0_0 void UseAppInfo(int info); -static int LUACALL wxLua_wxStandardPaths_UseAppInfo(lua_State *L) -{ - // int info - int info = (int)wxlua_getnumbertype(L, 2); - // get this - wxStandardPaths * self = (wxStandardPaths *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStandardPaths); - // call UseAppInfo - self->UseAppInfo(info); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) - - - -void wxLua_wxStandardPaths_delete_function(void** p) -{ - wxStandardPaths* o = (wxStandardPaths*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStandardPaths_methods[] = { -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) - { "DontIgnoreAppSubDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_DontIgnoreAppSubDir, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) - - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStandardPaths_Get, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) - { "GetAppDocumentsDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetAppDocumentsDir, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) - - { "GetConfigDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetConfigDir, 1, NULL }, - { "GetDataDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetDataDir, 1, NULL }, - { "GetDocumentsDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetDocumentsDir, 1, NULL }, - { "GetExecutablePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetExecutablePath, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - { "GetFileLayout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetFileLayout, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) - { "GetInstallPrefix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetInstallPrefix, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) - - { "GetLocalDataDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetLocalDataDir, 1, NULL }, - { "GetLocalizedResourcesDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetLocalizedResourcesDir, 1, NULL }, - { "GetPluginsDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetPluginsDir, 1, NULL }, - { "GetResourcesDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetResourcesDir, 1, NULL }, - { "GetTempDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetTempDir, 1, NULL }, - { "GetUserConfigDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetUserConfigDir, 1, NULL }, - { "GetUserDataDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetUserDataDir, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0)) - { "GetUserDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetUserDir, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0)) - - { "GetUserLocalDataDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_GetUserLocalDataDir, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) - { "IgnoreAppBuildSubDirs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_IgnoreAppBuildSubDirs, 1, NULL }, - { "IgnoreAppSubDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_IgnoreAppSubDir, 1, NULL }, - { "MSWGetShellDir", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStandardPaths_MSWGetShellDir, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - { "MakeConfigFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_MakeConfigFileName, 1, NULL }, - { "SetFileLayout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_SetFileLayout, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) - { "SetInstallPrefix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_SetInstallPrefix, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0) && defined(__WXGTK__)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) - { "UseAppInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStandardPaths_UseAppInfo, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,0,0)) - - { 0, 0, 0, 0 }, -}; - -int wxStandardPaths_methodCount = sizeof(wxStandardPaths_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxStandardPaths_enums[] = { -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - { "ConfigFileConv_Dot", wxStandardPaths::ConfigFileConv_Dot }, - { "ConfigFileConv_Ext", wxStandardPaths::ConfigFileConv_Ext }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0)) - { "Dir_Desktop", wxStandardPaths::Dir_Desktop }, - { "Dir_Documents", wxStandardPaths::Dir_Documents }, - { "Dir_Downloads", wxStandardPaths::Dir_Downloads }, - { "Dir_Music", wxStandardPaths::Dir_Music }, - { "Dir_Pictures", wxStandardPaths::Dir_Pictures }, - { "Dir_Videos", wxStandardPaths::Dir_Videos }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,0)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - { "FileLayout_Classic", wxStandardPaths::FileLayout_Classic }, - { "FileLayout_XDG", wxStandardPaths::FileLayout_XDG }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) && (wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,1,1)) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) - { "ResourceCat_Max", wxStandardPaths::ResourceCat_Max }, -#endif // (!wxCHECK_VERSION(3,1,1)) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - { "ResourceCat_Messages", wxStandardPaths::ResourceCat_Messages }, - { "ResourceCat_None", wxStandardPaths::ResourceCat_None }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - - { NULL, 0, }, -}; -int wxStandardPaths_enumCount = sizeof(wxStandardPaths_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxStandardPaths - -// --------------------------------------------------------------------------- -// Bind class wxPathList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPathList' -int wxluatype_wxPathList = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_Add2[] = { &wxluatype_wxPathList, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPathList_Add2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_Add2[1] = {{ wxLua_wxPathList_Add2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_Add2 }}; -// %wxchkver_2_8 void Add(const wxArrayString& paths); -static int LUACALL wxLua_wxPathList_Add2(lua_State *L) -{ - // const wxArrayString paths - wxLuaSmartwxArrayString paths = wxlua_getwxArrayString(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call Add - self->Add(paths); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString) - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_Add1[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_Add1[1] = {{ wxLua_wxPathList_Add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_Add1 }}; -// %wxchkver_2_8 bool Add(const wxString& path); -static int LUACALL wxLua_wxPathList_Add1(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call Add - bool returns = (self->Add(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_Add[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_Add[1] = {{ wxLua_wxPathList_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_Add }}; -// !%wxchkver_2_8 void Add(const wxString& path); -static int LUACALL wxLua_wxPathList_Add(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call Add - self->Add(path); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_AddEnvList[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_AddEnvList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_AddEnvList[1] = {{ wxLua_wxPathList_AddEnvList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_AddEnvList }}; -// void AddEnvList(const wxString& envVariable); -static int LUACALL wxLua_wxPathList_AddEnvList(lua_State *L) -{ - // const wxString envVariable - const wxString envVariable = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call AddEnvList - self->AddEnvList(envVariable); - - return 0; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_EnsureFileAccessible[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_EnsureFileAccessible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_EnsureFileAccessible[1] = {{ wxLua_wxPathList_EnsureFileAccessible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_EnsureFileAccessible }}; -// %not_overload %wxchkver_2_8 bool EnsureFileAccessible(const wxString& path); -static int LUACALL wxLua_wxPathList_EnsureFileAccessible(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call EnsureFileAccessible - bool returns = (self->EnsureFileAccessible(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_EnsureFileAccessible[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_EnsureFileAccessible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_EnsureFileAccessible[1] = {{ wxLua_wxPathList_EnsureFileAccessible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_EnsureFileAccessible }}; -// %not_overload !%wxchkver_2_8 void EnsureFileAccessible(const wxString& path); -static int LUACALL wxLua_wxPathList_EnsureFileAccessible(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call EnsureFileAccessible - self->EnsureFileAccessible(path); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_FindAbsoluteValidPath[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_FindAbsoluteValidPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_FindAbsoluteValidPath[1] = {{ wxLua_wxPathList_FindAbsoluteValidPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_FindAbsoluteValidPath }}; -// wxString FindAbsoluteValidPath(const wxString& filename) const; -static int LUACALL wxLua_wxPathList_FindAbsoluteValidPath(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call FindAbsoluteValidPath - wxString returns = (self->FindAbsoluteValidPath(filename)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_FindValidPath[] = { &wxluatype_wxPathList, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPathList_FindValidPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_FindValidPath[1] = {{ wxLua_wxPathList_FindValidPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_FindValidPath }}; -// wxString FindValidPath(const wxString& filename) const; -static int LUACALL wxLua_wxPathList_FindValidPath(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxPathList * self = (wxPathList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPathList); - // call FindValidPath - wxString returns = (self->FindValidPath(filename)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPathList_delete[] = { &wxluatype_wxPathList, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPathList_delete }}; - -static int LUACALL wxLua_wxPathList_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_constructor[1] = {{ wxLua_wxPathList_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPathList(); -static int LUACALL wxLua_wxPathList_constructor(lua_State *L) -{ - // call constructor - wxPathList* returns = new wxPathList(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPathList); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPathList); - - return 1; -} - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString))||(wxCHECK_VERSION(2,8,0))||(!wxCHECK_VERSION(2,8,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPathList_Add_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString) - { wxLua_wxPathList_Add2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_Add2 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString) - -#if wxCHECK_VERSION(2,8,0) - { wxLua_wxPathList_Add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_Add1 }, -#endif // wxCHECK_VERSION(2,8,0) - -#if !wxCHECK_VERSION(2,8,0) - { wxLua_wxPathList_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPathList_Add }, -#endif // !wxCHECK_VERSION(2,8,0) -}; -static int s_wxluafunc_wxLua_wxPathList_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxPathList_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString))||(wxCHECK_VERSION(2,8,0))||(!wxCHECK_VERSION(2,8,0)) - -void wxLua_wxPathList_delete_function(void** p) -{ - wxPathList* o = (wxPathList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPathList_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString))||(wxCHECK_VERSION(2,8,0))||(!wxCHECK_VERSION(2,8,0)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPathList_Add_overload, s_wxluafunc_wxLua_wxPathList_Add_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArrayString))||(wxCHECK_VERSION(2,8,0))||(!wxCHECK_VERSION(2,8,0)) - - { "AddEnvList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPathList_AddEnvList, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "EnsureFileAccessible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPathList_EnsureFileAccessible, 1, NULL }, -#elif !wxCHECK_VERSION(2,8,0) - { "EnsureFileAccessible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPathList_EnsureFileAccessible, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - { "FindAbsoluteValidPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPathList_FindAbsoluteValidPath, 1, NULL }, - { "FindValidPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPathList_FindValidPath, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPathList_delete, 1, NULL }, - { "wxPathList", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPathList_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxPathList_methodCount = sizeof(wxPathList_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxFileName -// --------------------------------------------------------------------------- -// Bind class wxFileName -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileName' -int wxluatype_wxFileName = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_AppendDir[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_AppendDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AppendDir[1] = {{ wxLua_wxFileName_AppendDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_AppendDir }}; -// void AppendDir(const wxString& dir); -static int LUACALL wxLua_wxFileName_AppendDir(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call AppendDir - self->AppendDir(dir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Assign5[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_Assign5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign5[1] = {{ wxLua_wxFileName_Assign5, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxFileName_Assign5 }}; -// void Assign(const wxString& path, const wxString& name, const wxString& ext, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_Assign5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 5 ? (wxPathFormat)wxlua_getenumtype(L, 5) : wxPATH_NATIVE); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 4); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Assign - self->Assign(path, name, ext, format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Assign4[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_Assign4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign4[1] = {{ wxLua_wxFileName_Assign4, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxFileName_Assign4 }}; -// void Assign(const wxString& path, const wxString& name, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_Assign4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 4 ? (wxPathFormat)wxlua_getenumtype(L, 4) : wxPATH_NATIVE); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Assign - self->Assign(path, name, format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Assign3[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_Assign3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign3[1] = {{ wxLua_wxFileName_Assign3, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxFileName_Assign3 }}; -// void Assign(const wxString& volume, const wxString& path, const wxString& name, const wxString& ext, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_Assign3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 6 ? (wxPathFormat)wxlua_getenumtype(L, 6) : wxPATH_NATIVE); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 5); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 3); - // const wxString volume - const wxString volume = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Assign - self->Assign(volume, path, name, ext, format); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Assign2[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_Assign2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign2[1] = {{ wxLua_wxFileName_Assign2, WXLUAMETHOD_METHOD, 6, 7, s_wxluatypeArray_wxLua_wxFileName_Assign2 }}; -// %wxchkver_3_0_0 void Assign(const wxString& volume, const wxString& path, const wxString& name, const wxString& ext, bool hasExt, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_Assign2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 7 ? (wxPathFormat)wxlua_getenumtype(L, 7) : wxPATH_NATIVE); - // bool hasExt - bool hasExt = wxlua_getbooleantype(L, 6); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 5); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 3); - // const wxString volume - const wxString volume = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Assign - self->Assign(volume, path, name, ext, hasExt, format); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Assign1[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_Assign1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign1[1] = {{ wxLua_wxFileName_Assign1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileName_Assign1 }}; -// void Assign(const wxString& fullpath, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_Assign1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxString fullpath - const wxString fullpath = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Assign - self->Assign(fullpath, format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Assign[] = { &wxluatype_wxFileName, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_Assign(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign[1] = {{ wxLua_wxFileName_Assign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_Assign }}; -// void Assign(const wxFileName& filepath); -static int LUACALL wxLua_wxFileName_Assign(lua_State *L) -{ - // const wxFileName filepath - const wxFileName * filepath = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Assign - self->Assign(*filepath); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_AssignCwd[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_AssignCwd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AssignCwd[1] = {{ wxLua_wxFileName_AssignCwd, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_AssignCwd }}; -// void AssignCwd(const wxString& volume = ""); -static int LUACALL wxLua_wxFileName_AssignCwd(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString volume = "" - const wxString volume = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call AssignCwd - self->AssignCwd(volume); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_AssignDir[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_AssignDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AssignDir[1] = {{ wxLua_wxFileName_AssignDir, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileName_AssignDir }}; -// void AssignDir(const wxString& dir, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_AssignDir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call AssignDir - self->AssignDir(dir, format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_AssignHomeDir[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_AssignHomeDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AssignHomeDir[1] = {{ wxLua_wxFileName_AssignHomeDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_AssignHomeDir }}; -// void AssignHomeDir(); -static int LUACALL wxLua_wxFileName_AssignHomeDir(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call AssignHomeDir - self->AssignHomeDir(); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_AssignTempFileName1[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFileName_AssignTempFileName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AssignTempFileName1[1] = {{ wxLua_wxFileName_AssignTempFileName1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileName_AssignTempFileName1 }}; -// %wxchkver_2_8 && wxUSE_FILE void AssignTempFileName(const wxString& prefix, wxFile *fileTemp); -static int LUACALL wxLua_wxFileName_AssignTempFileName1(lua_State *L) -{ - // wxFile fileTemp - wxFile * fileTemp = (wxFile *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFile); - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call AssignTempFileName - self->AssignTempFileName(prefix, fileTemp); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) - -#if (wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_AssignTempFileName[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_AssignTempFileName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AssignTempFileName[1] = {{ wxLua_wxFileName_AssignTempFileName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_AssignTempFileName }}; -// %wxchkver_2_8 && (wxUSE_FILE||wxUSE_FFILE) void AssignTempFileName(const wxString& prefix); -static int LUACALL wxLua_wxFileName_AssignTempFileName(lua_State *L) -{ - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call AssignTempFileName - self->AssignTempFileName(prefix); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Clear[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Clear[1] = {{ wxLua_wxFileName_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxFileName_Clear(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_ClearExt[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_ClearExt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_ClearExt[1] = {{ wxLua_wxFileName_ClearExt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_ClearExt }}; -// void ClearExt(); -static int LUACALL wxLua_wxFileName_ClearExt(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call ClearExt - self->ClearExt(); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_CreateTempFileName1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_CreateTempFileName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_CreateTempFileName1[1] = {{ wxLua_wxFileName_CreateTempFileName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_CreateTempFileName1 }}; -// !%wxchkver_3_0_0 && %wxchkver_2_8 && (wxUSE_FILE||wxUSE_FFILE) static wxString CreateTempFileName(const wxString& prefix); -static int LUACALL wxLua_wxFileName_CreateTempFileName1(lua_State *L) -{ - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 1); - // call CreateTempFileName - wxString returns = (wxFileName::CreateTempFileName(prefix)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_CreateTempFileName[] = { &wxluatype_TSTRING, &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFileName_CreateTempFileName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_CreateTempFileName[1] = {{ wxLua_wxFileName_CreateTempFileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxFileName_CreateTempFileName }}; -// %wxchkver_2_8 && wxUSE_FILE static wxString CreateTempFileName(const wxString& prefix, wxFile *fileTemp); -static int LUACALL wxLua_wxFileName_CreateTempFileName(lua_State *L) -{ - // wxFile fileTemp - wxFile * fileTemp = (wxFile *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFile); - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 1); - // call CreateTempFileName - wxString returns = (wxFileName::CreateTempFileName(prefix, fileTemp)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_DirExists1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_DirExists1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DirExists1[1] = {{ wxLua_wxFileName_DirExists1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DirExists1 }}; -// static bool DirExists(const wxString& dir); -static int LUACALL wxLua_wxFileName_DirExists1(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call DirExists - bool returns = (wxFileName::DirExists(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_DirExists[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_DirExists(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DirExists[1] = {{ wxLua_wxFileName_DirExists, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DirExists }}; -// bool DirExists(); -static int LUACALL wxLua_wxFileName_DirExists(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call DirExists - bool returns = (self->DirExists()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_DirName1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_DirName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DirName1[1] = {{ wxLua_wxFileName_DirName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DirName1 }}; -// !%wxchkver_3_0_0 static wxFileName DirName(const wxString& dir); -static int LUACALL wxLua_wxFileName_DirName1(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call DirName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileName::DirName(dir)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_DirName[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_DirName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DirName[1] = {{ wxLua_wxFileName_DirName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_DirName }}; -// %wxchkver_3_0_0 static wxFileName DirName(const wxString& dir, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_DirName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call DirName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileName::DirName(dir, format)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_DontFollowLink[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_DontFollowLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DontFollowLink[1] = {{ wxLua_wxFileName_DontFollowLink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DontFollowLink }}; -// %wxchkver_3_0_0 void DontFollowLink(); -static int LUACALL wxLua_wxFileName_DontFollowLink(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call DontFollowLink - self->DontFollowLink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Exists1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_Exists1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Exists1[1] = {{ wxLua_wxFileName_Exists1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Exists1 }}; -// %wxchkver_3_0_0 static bool Exists(const wxString& path, int flags = wxFILE_EXISTS_ANY); -static int LUACALL wxLua_wxFileName_Exists1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxFILE_EXISTS_ANY - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxFILE_EXISTS_ANY); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call Exists - bool returns = (wxFileName::Exists(path, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Exists[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_Exists(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Exists[1] = {{ wxLua_wxFileName_Exists, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Exists }}; -// %wxchkver_3_0_0 bool Exists(int flags = wxFILE_EXISTS_ANY) const; -static int LUACALL wxLua_wxFileName_Exists(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxFILE_EXISTS_ANY - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxFILE_EXISTS_ANY); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Exists - bool returns = (self->Exists(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_FileExists1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_FileExists1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileExists1[1] = {{ wxLua_wxFileName_FileExists1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileExists1 }}; -// static bool FileExists(const wxString& file); -static int LUACALL wxLua_wxFileName_FileExists1(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call FileExists - bool returns = (wxFileName::FileExists(file)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_FileExists[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_FileExists(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileExists[1] = {{ wxLua_wxFileName_FileExists, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileExists }}; -// bool FileExists(); -static int LUACALL wxLua_wxFileName_FileExists(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call FileExists - bool returns = (self->FileExists()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_FileName1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_FileName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileName1[1] = {{ wxLua_wxFileName_FileName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileName1 }}; -// !%wxchkver_3_0_0 static wxFileName FileName(const wxString& file); -static int LUACALL wxLua_wxFileName_FileName1(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call FileName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileName::FileName(file)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_FileName[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_FileName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileName[1] = {{ wxLua_wxFileName_FileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_FileName }}; -// %wxchkver_3_0_0 static wxFileName FileName(const wxString& file, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_FileName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call FileName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileName::FileName(file, format)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_FileNameToURL[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_FileNameToURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileNameToURL[1] = {{ wxLua_wxFileName_FileNameToURL, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileNameToURL }}; -// %wxchkver_3_1_3 static wxString FileNameToURL(const wxFileName& filename); -static int LUACALL wxLua_wxFileName_FileNameToURL(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call FileNameToURL - wxString returns = (wxFileName::FileNameToURL(*filename)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetCwd[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_GetCwd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetCwd[1] = {{ wxLua_wxFileName_GetCwd, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetCwd }}; -// static wxString GetCwd(const wxString& volume = ""); -static int LUACALL wxLua_wxFileName_GetCwd(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString volume = "" - const wxString volume = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call GetCwd - wxString returns = (wxFileName::GetCwd(volume)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetDirCount[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetDirCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetDirCount[1] = {{ wxLua_wxFileName_GetDirCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetDirCount }}; -// int GetDirCount() const; -static int LUACALL wxLua_wxFileName_GetDirCount(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetDirCount - int returns = (self->GetDirCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetDirs[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetDirs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetDirs[1] = {{ wxLua_wxFileName_GetDirs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetDirs }}; -// %override wxLua_wxFileName_GetDirs -// const wxArrayString& GetDirs() const -static int LUACALL wxLua_wxFileName_GetDirs(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetDirs - wxArrayString returns = self->GetDirs(); - // push the result datatype - wxlua_pushwxArrayStringtable(L, returns); - - return 1; -} - - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetExt[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetExt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetExt[1] = {{ wxLua_wxFileName_GetExt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetExt }}; -// wxString GetExt() const; -static int LUACALL wxLua_wxFileName_GetExt(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetExt - wxString returns = (self->GetExt()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetForbiddenChars[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetForbiddenChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetForbiddenChars[1] = {{ wxLua_wxFileName_GetForbiddenChars, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetForbiddenChars }}; -// static wxString GetForbiddenChars(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_GetForbiddenChars(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call GetForbiddenChars - wxString returns = (wxFileName::GetForbiddenChars(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetFormat[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetFormat[1] = {{ wxLua_wxFileName_GetFormat, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetFormat }}; -// static wxPathFormat GetFormat(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_GetFormat(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call GetFormat - wxPathFormat returns = (wxFileName::GetFormat(format)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetFullName[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetFullName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetFullName[1] = {{ wxLua_wxFileName_GetFullName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetFullName }}; -// wxString GetFullName() const; -static int LUACALL wxLua_wxFileName_GetFullName(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetFullName - wxString returns = (self->GetFullName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetFullPath[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetFullPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetFullPath[1] = {{ wxLua_wxFileName_GetFullPath, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_GetFullPath }}; -// wxString GetFullPath(wxPathFormat format = wxPATH_NATIVE) const; -static int LUACALL wxLua_wxFileName_GetFullPath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetFullPath - wxString returns = (self->GetFullPath(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxFileName_GetHomeDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetHomeDir[1] = {{ wxLua_wxFileName_GetHomeDir, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetHomeDir(); -static int LUACALL wxLua_wxFileName_GetHomeDir(lua_State *L) -{ - // call GetHomeDir - wxString returns = (wxFileName::GetHomeDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize3[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetHumanReadableSize3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize3[1] = {{ wxLua_wxFileName_GetHumanReadableSize3, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize3 }}; -// %wxchkver_3_0_0 wxString GetHumanReadableSize(const wxString& failmsg = "Not available", int precision = 1, wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL) const; // %override to remote _() as it's not handled by wxlua -static int LUACALL wxLua_wxFileName_GetHumanReadableSize3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL - wxSizeConvention conv = (argCount >= 4 ? (wxSizeConvention)wxlua_getenumtype(L, 4) : wxSIZE_CONV_TRADITIONAL); - // int precision = 1 - int precision = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString failmsg = "Not available" - const wxString failmsg = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Not available"))); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetHumanReadableSize - wxString returns = (self->GetHumanReadableSize(failmsg, precision, conv)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize2[] = { &wxluatype_wxULongLong, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetHumanReadableSize2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize2[1] = {{ wxLua_wxFileName_GetHumanReadableSize2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 4, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize2 }}; -// %wxchkver_3_0_0 static wxString GetHumanReadableSize(const wxULongLong& bytes, const wxString& nullsize = "Not available", int precision = 1, wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL); // %override to remote _() as it's not handled by wxlua -static int LUACALL wxLua_wxFileName_GetHumanReadableSize2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSizeConvention conv = wxSIZE_CONV_TRADITIONAL - wxSizeConvention conv = (argCount >= 4 ? (wxSizeConvention)wxlua_getenumtype(L, 4) : wxSIZE_CONV_TRADITIONAL); - // int precision = 1 - int precision = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString nullsize = "Not available" - const wxString nullsize = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Not available"))); - // const wxULongLong bytes - const wxULongLong * bytes = (const wxULongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxULongLong); - // call GetHumanReadableSize - wxString returns = (wxFileName::GetHumanReadableSize(*bytes, nullsize, precision, conv)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG) - -#if (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize1[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_GetHumanReadableSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize1[1] = {{ wxLua_wxFileName_GetHumanReadableSize1, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize1 }}; -// !%wxchkver_3_0_0 && %wxchkver_2_8 wxString GetHumanReadableSize(const wxString &nullsize = "Not available", int precision = 1) const; -static int LUACALL wxLua_wxFileName_GetHumanReadableSize1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int precision = 1 - int precision = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString nullsize = "Not available" - const wxString nullsize = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Not available"))); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetHumanReadableSize - wxString returns = (self->GetHumanReadableSize(nullsize, precision)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize[] = { &wxluatype_wxULongLong, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_GetHumanReadableSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize[1] = {{ wxLua_wxFileName_GetHumanReadableSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize }}; -// !%wxchkver_3_0_0 && %wxchkver_2_8 static wxString GetHumanReadableSize(const wxULongLong &sz, const wxString &nullsize = "Not available", int precision = 1); -static int LUACALL wxLua_wxFileName_GetHumanReadableSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int precision = 1 - int precision = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString nullsize = "Not available" - const wxString nullsize = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Not available"))); - // const wxULongLong sz - const wxULongLong * sz = (const wxULongLong *)wxluaT_getuserdatatype(L, 1, wxluatype_wxULongLong); - // call GetHumanReadableSize - wxString returns = (wxFileName::GetHumanReadableSize(*sz, nullsize, precision)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetLongPath[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetLongPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetLongPath[1] = {{ wxLua_wxFileName_GetLongPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetLongPath }}; -// wxString GetLongPath() const; -static int LUACALL wxLua_wxFileName_GetLongPath(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetLongPath - wxString returns = (self->GetLongPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetModificationTime[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetModificationTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetModificationTime[1] = {{ wxLua_wxFileName_GetModificationTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetModificationTime }}; -// wxDateTime GetModificationTime() const; -static int LUACALL wxLua_wxFileName_GetModificationTime(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetModificationTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetModificationTime()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetName[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetName[1] = {{ wxLua_wxFileName_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxFileName_GetName(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetPath[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetPath[1] = {{ wxLua_wxFileName_GetPath, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_GetPath }}; -// wxString GetPath(int flags = 0, wxPathFormat format = wxPATH_NATIVE) const; -static int LUACALL wxLua_wxFileName_GetPath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetPath - wxString returns = (self->GetPath(flags, format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetPathSeparator[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetPathSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetPathSeparator[1] = {{ wxLua_wxFileName_GetPathSeparator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetPathSeparator }}; -// static int GetPathSeparator(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_GetPathSeparator(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call GetPathSeparator - int returns = (wxFileName::GetPathSeparator(format)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetPathSeparators[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetPathSeparators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetPathSeparators[1] = {{ wxLua_wxFileName_GetPathSeparators, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetPathSeparators }}; -// static wxString GetPathSeparators(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_GetPathSeparators(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call GetPathSeparators - wxString returns = (wxFileName::GetPathSeparators(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetPathTerminators[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetPathTerminators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetPathTerminators[1] = {{ wxLua_wxFileName_GetPathTerminators, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetPathTerminators }}; -// static wxString GetPathTerminators(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_GetPathTerminators(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call GetPathTerminators - wxString returns = (wxFileName::GetPathTerminators(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetPathWithSep[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetPathWithSep(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetPathWithSep[1] = {{ wxLua_wxFileName_GetPathWithSep, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_GetPathWithSep }}; -// wxString GetPathWithSep(wxPathFormat format = wxPATH_NATIVE) const; -static int LUACALL wxLua_wxFileName_GetPathWithSep(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetPathWithSep - wxString returns = (self->GetPathWithSep(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetShortPath[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetShortPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetShortPath[1] = {{ wxLua_wxFileName_GetShortPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetShortPath }}; -// wxString GetShortPath() const; -static int LUACALL wxLua_wxFileName_GetShortPath(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetShortPath - wxString returns = (self->GetShortPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetSize1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_GetSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetSize1[1] = {{ wxLua_wxFileName_GetSize1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetSize1 }}; -// %wxchkver_2_8 static wxULongLong GetSize(const wxString &file); -static int LUACALL wxLua_wxFileName_GetSize1(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call GetSize - // allocate a new object using the copy constructor - wxULongLong* returns = new wxULongLong(wxFileName::GetSize(file)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetSize[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetSize[1] = {{ wxLua_wxFileName_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetSize }}; -// %wxchkver_2_8 wxULongLong GetSize() const; -static int LUACALL wxLua_wxFileName_GetSize(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetSize - // allocate a new object using the copy constructor - wxULongLong* returns = new wxULongLong(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static int LUACALL wxLua_wxFileName_GetTempDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetTempDir[1] = {{ wxLua_wxFileName_GetTempDir, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 static wxString GetTempDir(); -static int LUACALL wxLua_wxFileName_GetTempDir(lua_State *L) -{ - // call GetTempDir - wxString returns = (wxFileName::GetTempDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetTimes[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetTimes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetTimes[1] = {{ wxLua_wxFileName_GetTimes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetTimes }}; -// %override wxLua_wxFileName_GetTimes -// bool GetTimes(wxDateTime* dtAccess, wxDateTime* dtMod, wxDateTime* dtCreate) const -static int LUACALL wxLua_wxFileName_GetTimes(lua_State *L) -{ - wxDateTime *dtCreate = new wxDateTime(); - wxDateTime *dtMod = new wxDateTime(); - wxDateTime *dtAccess= new wxDateTime(); - // get this - wxFileName *self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetTimes - bool returns = self->GetTimes(dtAccess, dtMod, dtCreate); - // push the result flag - lua_pushboolean(L, returns); - // add to tracked memory list - wxluaO_addgcobject(L, (void*)dtAccess, wxluatype_wxDateTime); - wxluaO_addgcobject(L, (void*)dtMod, wxluatype_wxDateTime); - wxluaO_addgcobject(L, (void*)dtCreate, wxluatype_wxDateTime); - // push the constructed class pointers - wxluaT_pushuserdatatype(L, dtAccess, wxluatype_wxDateTime); - wxluaT_pushuserdatatype(L, dtMod, wxluatype_wxDateTime); - wxluaT_pushuserdatatype(L, dtCreate, wxluatype_wxDateTime); - // return the number of parameters - return 4; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetVolume[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_GetVolume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetVolume[1] = {{ wxLua_wxFileName_GetVolume, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetVolume }}; -// wxString GetVolume() const; -static int LUACALL wxLua_wxFileName_GetVolume(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call GetVolume - wxString returns = (self->GetVolume()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetVolumeSeparator[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_GetVolumeSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetVolumeSeparator[1] = {{ wxLua_wxFileName_GetVolumeSeparator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_GetVolumeSeparator }}; -// static wxString GetVolumeSeparator(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_GetVolumeSeparator(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call GetVolumeSeparator - wxString returns = (wxFileName::GetVolumeSeparator(format)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_GetVolumeString[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_GetVolumeString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetVolumeString[1] = {{ wxLua_wxFileName_GetVolumeString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_GetVolumeString }}; -// %wxchkver_3_0_0 && %win static wxString GetVolumeString(char drive, int flags = wxPATH_GET_SEPARATOR); // %override as it's win-only -static int LUACALL wxLua_wxFileName_GetVolumeString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPATH_GET_SEPARATOR - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPATH_GET_SEPARATOR); - // char drive - char drive = (char)wxlua_getnumbertype(L, 1); - // call GetVolumeString - wxString returns = (wxFileName::GetVolumeString(drive, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_HasExt[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_HasExt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_HasExt[1] = {{ wxLua_wxFileName_HasExt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_HasExt }}; -// bool HasExt() const; -static int LUACALL wxLua_wxFileName_HasExt(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call HasExt - bool returns = (self->HasExt()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_HasName[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_HasName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_HasName[1] = {{ wxLua_wxFileName_HasName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_HasName }}; -// bool HasName() const; -static int LUACALL wxLua_wxFileName_HasName(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call HasName - bool returns = (self->HasName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_HasVolume[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_HasVolume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_HasVolume[1] = {{ wxLua_wxFileName_HasVolume, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_HasVolume }}; -// bool HasVolume() const; -static int LUACALL wxLua_wxFileName_HasVolume(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call HasVolume - bool returns = (self->HasVolume()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_InsertDir1[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_InsertDir1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_InsertDir1[1] = {{ wxLua_wxFileName_InsertDir1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileName_InsertDir1 }}; -// !%wxchkver_3_0_0 void InsertDir(int before, const wxString& dir); -static int LUACALL wxLua_wxFileName_InsertDir1(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 3); - // int before - int before = (int)wxlua_getnumbertype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call InsertDir - self->InsertDir(before, dir); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_InsertDir[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_InsertDir(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_InsertDir[1] = {{ wxLua_wxFileName_InsertDir, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileName_InsertDir }}; -// %wxchkver_3_0_0 bool InsertDir(size_t before, const wxString& dir); -static int LUACALL wxLua_wxFileName_InsertDir(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 3); - // size_t before - size_t before = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call InsertDir - bool returns = (self->InsertDir(before, dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsAbsolute[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_IsAbsolute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsAbsolute[1] = {{ wxLua_wxFileName_IsAbsolute, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsAbsolute }}; -// bool IsAbsolute(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_IsAbsolute(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsAbsolute - bool returns = (self->IsAbsolute(format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsCaseSensitive[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_IsCaseSensitive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsCaseSensitive[1] = {{ wxLua_wxFileName_IsCaseSensitive, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFileName_IsCaseSensitive }}; -// static bool IsCaseSensitive(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_IsCaseSensitive(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 1 ? (wxPathFormat)wxlua_getenumtype(L, 1) : wxPATH_NATIVE); - // call IsCaseSensitive - bool returns = (wxFileName::IsCaseSensitive(format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsDir[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDir[1] = {{ wxLua_wxFileName_IsDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDir }}; -// bool IsDir() const; -static int LUACALL wxLua_wxFileName_IsDir(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsDir - bool returns = (self->IsDir()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsDirReadable1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_IsDirReadable1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDirReadable1[1] = {{ wxLua_wxFileName_IsDirReadable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirReadable1 }}; -// %wxchkver_2_8 static bool IsDirReadable(const wxString &path); -static int LUACALL wxLua_wxFileName_IsDirReadable1(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call IsDirReadable - bool returns = (wxFileName::IsDirReadable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsDirReadable[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsDirReadable(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDirReadable[1] = {{ wxLua_wxFileName_IsDirReadable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirReadable }}; -// %wxchkver_2_8 bool IsDirReadable() const; -static int LUACALL wxLua_wxFileName_IsDirReadable(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsDirReadable - bool returns = (self->IsDirReadable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsDirWritable1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_IsDirWritable1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDirWritable1[1] = {{ wxLua_wxFileName_IsDirWritable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirWritable1 }}; -// %wxchkver_2_8 static bool IsDirWritable(const wxString &path); -static int LUACALL wxLua_wxFileName_IsDirWritable1(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call IsDirWritable - bool returns = (wxFileName::IsDirWritable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsDirWritable[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsDirWritable(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDirWritable[1] = {{ wxLua_wxFileName_IsDirWritable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirWritable }}; -// %wxchkver_2_8 bool IsDirWritable() const; -static int LUACALL wxLua_wxFileName_IsDirWritable(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsDirWritable - bool returns = (self->IsDirWritable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsFileExecutable1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_IsFileExecutable1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileExecutable1[1] = {{ wxLua_wxFileName_IsFileExecutable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileExecutable1 }}; -// %wxchkver_2_8 static bool IsFileExecutable(const wxString &path); -static int LUACALL wxLua_wxFileName_IsFileExecutable1(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call IsFileExecutable - bool returns = (wxFileName::IsFileExecutable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsFileExecutable[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsFileExecutable(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileExecutable[1] = {{ wxLua_wxFileName_IsFileExecutable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileExecutable }}; -// %wxchkver_2_8 bool IsFileExecutable() const; -static int LUACALL wxLua_wxFileName_IsFileExecutable(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsFileExecutable - bool returns = (self->IsFileExecutable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsFileReadable1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_IsFileReadable1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileReadable1[1] = {{ wxLua_wxFileName_IsFileReadable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileReadable1 }}; -// %wxchkver_2_8 static bool IsFileReadable(const wxString &path); -static int LUACALL wxLua_wxFileName_IsFileReadable1(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call IsFileReadable - bool returns = (wxFileName::IsFileReadable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsFileReadable[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsFileReadable(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileReadable[1] = {{ wxLua_wxFileName_IsFileReadable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileReadable }}; -// %wxchkver_2_8 bool IsFileReadable() const; -static int LUACALL wxLua_wxFileName_IsFileReadable(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsFileReadable - bool returns = (self->IsFileReadable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsFileWritable1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_IsFileWritable1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileWritable1[1] = {{ wxLua_wxFileName_IsFileWritable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileWritable1 }}; -// %wxchkver_2_8 static bool IsFileWritable(const wxString &path); -static int LUACALL wxLua_wxFileName_IsFileWritable1(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call IsFileWritable - bool returns = (wxFileName::IsFileWritable(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsFileWritable[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsFileWritable(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileWritable[1] = {{ wxLua_wxFileName_IsFileWritable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileWritable }}; -// %wxchkver_2_8 bool IsFileWritable() const; -static int LUACALL wxLua_wxFileName_IsFileWritable(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsFileWritable - bool returns = (self->IsFileWritable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsMSWUniqueVolumeNamePath[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_IsMSWUniqueVolumeNamePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsMSWUniqueVolumeNamePath[1] = {{ wxLua_wxFileName_IsMSWUniqueVolumeNamePath, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsMSWUniqueVolumeNamePath }}; -// %wxchkver_3_0_0 && %win static bool IsMSWUniqueVolumeNamePath(const wxString& path, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_IsMSWUniqueVolumeNamePath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call IsMSWUniqueVolumeNamePath - bool returns = (wxFileName::IsMSWUniqueVolumeNamePath(path, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsOk[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsOk[1] = {{ wxLua_wxFileName_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxFileName_IsOk(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsPathSeparator1[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_IsPathSeparator1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsPathSeparator1[1] = {{ wxLua_wxFileName_IsPathSeparator1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsPathSeparator1 }}; -// !%wxchkver_3_0_0 static bool IsPathSeparator(int ch, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_IsPathSeparator1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // int ch - int ch = (int)wxlua_getnumbertype(L, 1); - // call IsPathSeparator - bool returns = (wxFileName::IsPathSeparator(ch, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsPathSeparator[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_IsPathSeparator(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsPathSeparator[1] = {{ wxLua_wxFileName_IsPathSeparator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsPathSeparator }}; -// %wxchkver_3_0_0 static bool IsPathSeparator(wxChar ch, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_IsPathSeparator(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // wxChar ch - wxChar ch = (wxChar)wxlua_getnumbertype(L, 1); - // call IsPathSeparator - bool returns = (wxFileName::IsPathSeparator(ch, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_IsRelative[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_IsRelative(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsRelative[1] = {{ wxLua_wxFileName_IsRelative, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsRelative }}; -// bool IsRelative(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_IsRelative(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call IsRelative - bool returns = (self->IsRelative(format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_MakeAbsolute[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_MakeAbsolute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_MakeAbsolute[1] = {{ wxLua_wxFileName_MakeAbsolute, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_MakeAbsolute }}; -// bool MakeAbsolute(const wxString& cwd = "", wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_MakeAbsolute(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxString cwd = "" - const wxString cwd = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call MakeAbsolute - bool returns = (self->MakeAbsolute(cwd, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_MakeRelativeTo[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_MakeRelativeTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_MakeRelativeTo[1] = {{ wxLua_wxFileName_MakeRelativeTo, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_MakeRelativeTo }}; -// bool MakeRelativeTo(const wxString& pathBase = "", wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_MakeRelativeTo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxString pathBase = "" - const wxString pathBase = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call MakeRelativeTo - bool returns = (self->MakeRelativeTo(pathBase, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Mkdir1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_Mkdir1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Mkdir1[1] = {{ wxLua_wxFileName_Mkdir1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxFileName_Mkdir1 }}; -// static bool Mkdir(const wxString& dir, int perm = 4095, int flags = 0); -static int LUACALL wxLua_wxFileName_Mkdir1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int perm = 4095 - int perm = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 4095); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call Mkdir - bool returns = (wxFileName::Mkdir(dir, perm, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Mkdir[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_Mkdir(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Mkdir[1] = {{ wxLua_wxFileName_Mkdir, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_Mkdir }}; -// bool Mkdir(int perm = 4095, int flags = 0); -static int LUACALL wxLua_wxFileName_Mkdir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int perm = 4095 - int perm = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 4095); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Mkdir - bool returns = (self->Mkdir(perm, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Normalize[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_Normalize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Normalize[1] = {{ wxLua_wxFileName_Normalize, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFileName_Normalize }}; -// bool Normalize(int flags = wxPATH_NORM_ALL, const wxString& cwd = wxEmptyString, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_Normalize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 4 ? (wxPathFormat)wxlua_getenumtype(L, 4) : wxPATH_NATIVE); - // const wxString cwd = wxEmptyString - const wxString cwd = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int flags = wxPATH_NORM_ALL - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPATH_NORM_ALL); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Normalize - bool returns = (self->Normalize(flags, cwd, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_PrependDir[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_PrependDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_PrependDir[1] = {{ wxLua_wxFileName_PrependDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_PrependDir }}; -// void PrependDir(const wxString& dir); -static int LUACALL wxLua_wxFileName_PrependDir(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call PrependDir - self->PrependDir(dir); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_RemoveDir1[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_RemoveDir1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_RemoveDir1[1] = {{ wxLua_wxFileName_RemoveDir1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_RemoveDir1 }}; -// !%wxchkver_3_0_0 void RemoveDir(int pos); -static int LUACALL wxLua_wxFileName_RemoveDir1(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call RemoveDir - self->RemoveDir(pos); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_RemoveDir[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_RemoveDir(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_RemoveDir[1] = {{ wxLua_wxFileName_RemoveDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_RemoveDir }}; -// %wxchkver_3_0_0 void RemoveDir(size_t pos); -static int LUACALL wxLua_wxFileName_RemoveDir(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call RemoveDir - self->RemoveDir(pos); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_RemoveLastDir[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_RemoveLastDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_RemoveLastDir[1] = {{ wxLua_wxFileName_RemoveLastDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_RemoveLastDir }}; -// void RemoveLastDir(); -static int LUACALL wxLua_wxFileName_RemoveLastDir(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call RemoveLastDir - self->RemoveLastDir(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_ReplaceEnvVariable[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_ReplaceEnvVariable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_ReplaceEnvVariable[1] = {{ wxLua_wxFileName_ReplaceEnvVariable, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxFileName_ReplaceEnvVariable }}; -// %wxchkver_3_0_0 bool ReplaceEnvVariable(const wxString& envname, const wxString& replacementFmtString = "$%s", wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_ReplaceEnvVariable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 4 ? (wxPathFormat)wxlua_getenumtype(L, 4) : wxPATH_NATIVE); - // const wxString replacementFmtString = "$%s" - const wxString replacementFmtString = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("$%s"))); - // const wxString envname - const wxString envname = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call ReplaceEnvVariable - bool returns = (self->ReplaceEnvVariable(envname, replacementFmtString, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_ReplaceHomeDir[] = { &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_ReplaceHomeDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_ReplaceHomeDir[1] = {{ wxLua_wxFileName_ReplaceHomeDir, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_ReplaceHomeDir }}; -// %wxchkver_3_0_0 bool ReplaceHomeDir(wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_ReplaceHomeDir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call ReplaceHomeDir - bool returns = (self->ReplaceHomeDir(format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Rmdir3[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_Rmdir3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Rmdir3[1] = {{ wxLua_wxFileName_Rmdir3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_Rmdir3 }}; -// !%wxchkver_3_0_0 static bool Rmdir(const wxString& dir); -static int LUACALL wxLua_wxFileName_Rmdir3(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call Rmdir - bool returns = (wxFileName::Rmdir(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Rmdir2[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_Rmdir2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Rmdir2[1] = {{ wxLua_wxFileName_Rmdir2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_Rmdir2 }}; -// !%wxchkver_3_0_0 bool Rmdir(); -static int LUACALL wxLua_wxFileName_Rmdir2(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Rmdir - bool returns = (self->Rmdir()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Rmdir1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_Rmdir1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Rmdir1[1] = {{ wxLua_wxFileName_Rmdir1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Rmdir1 }}; -// %wxchkver_3_0_0 static bool Rmdir(const wxString& dir, int flags = 0); -static int LUACALL wxLua_wxFileName_Rmdir1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call Rmdir - bool returns = (wxFileName::Rmdir(dir, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Rmdir[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_Rmdir(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Rmdir[1] = {{ wxLua_wxFileName_Rmdir, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Rmdir }}; -// %wxchkver_3_0_0 bool Rmdir(int flags = 0) const; -static int LUACALL wxLua_wxFileName_Rmdir(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Rmdir - bool returns = (self->Rmdir(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SameAs[] = { &wxluatype_wxFileName, &wxluatype_wxFileName, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_SameAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SameAs[1] = {{ wxLua_wxFileName_SameAs, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileName_SameAs }}; -// bool SameAs(const wxFileName& filepath, wxPathFormat format = wxPATH_NATIVE) const; -static int LUACALL wxLua_wxFileName_SameAs(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxFileName filepath - const wxFileName * filepath = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SameAs - bool returns = (self->SameAs(*filepath, format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetCwd1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_SetCwd1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetCwd1[1] = {{ wxLua_wxFileName_SetCwd1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_SetCwd1 }}; -// static bool SetCwd(const wxString& cwd); -static int LUACALL wxLua_wxFileName_SetCwd1(lua_State *L) -{ - // const wxString cwd - const wxString cwd = wxlua_getwxStringtype(L, 1); - // call SetCwd - bool returns = (wxFileName::SetCwd(cwd)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetCwd[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_SetCwd(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetCwd[1] = {{ wxLua_wxFileName_SetCwd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_SetCwd }}; -// bool SetCwd(); -static int LUACALL wxLua_wxFileName_SetCwd(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetCwd - bool returns = (self->SetCwd()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetEmptyExt[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_SetEmptyExt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetEmptyExt[1] = {{ wxLua_wxFileName_SetEmptyExt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_SetEmptyExt }}; -// void SetEmptyExt(); -static int LUACALL wxLua_wxFileName_SetEmptyExt(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetEmptyExt - self->SetEmptyExt(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetExt[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_SetExt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetExt[1] = {{ wxLua_wxFileName_SetExt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_SetExt }}; -// void SetExt(const wxString& ext); -static int LUACALL wxLua_wxFileName_SetExt(lua_State *L) -{ - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetExt - self->SetExt(ext); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetFullName[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_SetFullName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetFullName[1] = {{ wxLua_wxFileName_SetFullName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_SetFullName }}; -// void SetFullName(const wxString& fullname); -static int LUACALL wxLua_wxFileName_SetFullName(lua_State *L) -{ - // const wxString fullname - const wxString fullname = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetFullName - self->SetFullName(fullname); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetName[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetName[1] = {{ wxLua_wxFileName_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxFileName_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetName - self->SetName(name); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetPath[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetPath[1] = {{ wxLua_wxFileName_SetPath, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileName_SetPath }}; -// %wxchkver_3_0_0 void SetPath(const wxString& path, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_SetPath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetPath - self->SetPath(path, format); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetPermissions[] = { &wxluatype_wxFileName, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileName_SetPermissions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetPermissions[1] = {{ wxLua_wxFileName_SetPermissions, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_SetPermissions }}; -// %wxchkver_3_0_0 bool SetPermissions(int permissions); -static int LUACALL wxLua_wxFileName_SetPermissions(lua_State *L) -{ - // int permissions - int permissions = (int)wxlua_getnumbertype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetPermissions - bool returns = (self->SetPermissions(permissions)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetTimes[] = { &wxluatype_wxFileName, &wxluatype_wxDateTime, &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxFileName_SetTimes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetTimes[1] = {{ wxLua_wxFileName_SetTimes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxFileName_SetTimes }}; -// bool SetTimes(const wxDateTime* dtAccess, const wxDateTime* dtMod, const wxDateTime* dtCreate); -static int LUACALL wxLua_wxFileName_SetTimes(lua_State *L) -{ - // const wxDateTime dtCreate - const wxDateTime * dtCreate = (const wxDateTime *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDateTime); - // const wxDateTime dtMod - const wxDateTime * dtMod = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxDateTime dtAccess - const wxDateTime * dtAccess = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetTimes - bool returns = (self->SetTimes(dtAccess, dtMod, dtCreate)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SetVolume[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_SetVolume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetVolume[1] = {{ wxLua_wxFileName_SetVolume, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_SetVolume }}; -// void SetVolume(const wxString& volume); -static int LUACALL wxLua_wxFileName_SetVolume(lua_State *L) -{ - // const wxString volume - const wxString volume = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call SetVolume - self->SetVolume(volume); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_ShouldFollowLink[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_ShouldFollowLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_ShouldFollowLink[1] = {{ wxLua_wxFileName_ShouldFollowLink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_ShouldFollowLink }}; -// %wxchkver_3_0_0 bool ShouldFollowLink() const; -static int LUACALL wxLua_wxFileName_ShouldFollowLink(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call ShouldFollowLink - bool returns = (self->ShouldFollowLink()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SplitPath[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_SplitPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SplitPath[1] = {{ wxLua_wxFileName_SplitPath, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_SplitPath }}; -// %override wxLua_wxFileName_SplitPath -// static void SplitPath(const wxString& fullpath, wxString* volume, wxString* path, wxString* name, wxString* ext, wxPathFormat format = wxPATH_NATIVE) -static int LUACALL wxLua_wxFileName_SplitPath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - wxString ext; - wxString name; - wxString path; - // const wxString& fullpath - wxString fullpath = wxlua_getwxStringtype(L, 1); - // call SplitPath - wxFileName::SplitPath(fullpath, &path, &name, &ext, format); - // push the result strings - wxlua_pushwxString(L, path); - wxlua_pushwxString(L, name); - wxlua_pushwxString(L, ext); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SplitPathVolume[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_SplitPathVolume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SplitPathVolume[1] = {{ wxLua_wxFileName_SplitPathVolume, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_SplitPathVolume }}; -// %override wxLua_wxFileName_SplitPathVolume -// static void SplitPath(const wxString& fullpath, wxString* volume, wxString* path, wxString* name, wxString* ext, wxPathFormat format = wxPATH_NATIVE) -static int LUACALL wxLua_wxFileName_SplitPathVolume(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - wxString ext; - wxString name; - wxString path; - wxString volume; - // const wxString& fullpath - wxString fullpath = wxlua_getwxStringtype(L, 1); - // call SplitPath - wxFileName::SplitPath(fullpath, &volume, &path, &name, &ext, format); - // push the result strings - wxlua_pushwxString(L, volume); - wxlua_pushwxString(L, path); - wxlua_pushwxString(L, name); - wxlua_pushwxString(L, ext); - // return the number of parameters - return 4; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_SplitVolume[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_SplitVolume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SplitVolume[1] = {{ wxLua_wxFileName_SplitVolume, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_SplitVolume }}; -// %override wxLua_wxFileName_SplitVolume -// static void SplitVolume(const wxString& fullpath, wxString* volume, wxString* path, wxPathFormat format = wxPATH_NATIVE) -static int LUACALL wxLua_wxFileName_SplitVolume(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // const wxString fullpath - const wxString fullpath = wxlua_getwxStringtype(L, 1); - wxString volume; - wxString path; - // call SplitVolume - wxFileName::SplitVolume(fullpath, &volume, &path, format); - // push the result strings - wxlua_pushwxString(L, volume); - wxlua_pushwxString(L, path); - return 2; -} - - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_StripExtension[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_StripExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_StripExtension[1] = {{ wxLua_wxFileName_StripExtension, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_StripExtension }}; -// %wxchkver_3_0_0 static wxString StripExtension(const wxString& fullname); -static int LUACALL wxLua_wxFileName_StripExtension(lua_State *L) -{ - // const wxString fullname - const wxString fullname = wxlua_getwxStringtype(L, 1); - // call StripExtension - wxString returns = (wxFileName::StripExtension(fullname)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_Touch[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_Touch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Touch[1] = {{ wxLua_wxFileName_Touch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_Touch }}; -// bool Touch(); -static int LUACALL wxLua_wxFileName_Touch(lua_State *L) -{ - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call Touch - bool returns = (self->Touch()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_URLToFileName[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_URLToFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_URLToFileName[1] = {{ wxLua_wxFileName_URLToFileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_URLToFileName }}; -// %wxchkver_3_1_3 static wxFileName URLToFileName(const wxString& url); -static int LUACALL wxLua_wxFileName_URLToFileName(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 1); - // call URLToFileName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileName::URLToFileName(url)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_delete[] = { &wxluatype_wxFileName, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileName_delete }}; - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_op_eq1[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_op_eq1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_eq1[1] = {{ wxLua_wxFileName_op_eq1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_eq1 }}; -// %wxchkver_3_0_0 bool operator==(const wxString& filename) const; -static int LUACALL wxLua_wxFileName_op_eq1(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call op_eq - bool returns = ((*self)==(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_op_eq[] = { &wxluatype_wxFileName, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_op_eq(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_eq[1] = {{ wxLua_wxFileName_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_eq }}; -// bool operator==(const wxFileName& filename) const; -static int LUACALL wxLua_wxFileName_op_eq(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call op_eq - bool returns = ((*self)==(*filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_op_ne1[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_op_ne1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_ne1[1] = {{ wxLua_wxFileName_op_ne1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_ne1 }}; -// %wxchkver_3_0_0 bool operator!=(const wxString& filename) const; -static int LUACALL wxLua_wxFileName_op_ne1(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call op_ne - bool returns = ((*self)!=(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_op_ne[] = { &wxluatype_wxFileName, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_op_ne(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_ne[1] = {{ wxLua_wxFileName_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_ne }}; -// %wxchkver_3_0_0 bool operator!=(const wxFileName& filename) const; -static int LUACALL wxLua_wxFileName_op_ne(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call op_ne - bool returns = ((*self)!=(*filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_op_set1[] = { &wxluatype_wxFileName, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileName_op_set1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_set1[1] = {{ wxLua_wxFileName_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_set1 }}; -// %wxchkver_3_0_0 wxFileName& operator=(const wxString& filename); -static int LUACALL wxLua_wxFileName_op_set1(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call op_set - (*self)=(filename); - wxFileName* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_op_set[] = { &wxluatype_wxFileName, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_op_set(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_set[1] = {{ wxLua_wxFileName_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_set }}; -// wxFileName& operator=(const wxFileName& filename); -static int LUACALL wxLua_wxFileName_op_set(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileName * self = (wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call op_set - (*self)=(*filename); - wxFileName* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_constructor5[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor5[1] = {{ wxLua_wxFileName_constructor5, WXLUAMETHOD_CONSTRUCTOR, 4, 5, s_wxluatypeArray_wxLua_wxFileName_constructor5 }}; -// wxFileName(const wxString& volume, const wxString& path, const wxString& name, const wxString& ext, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_constructor5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 5 ? (wxPathFormat)wxlua_getenumtype(L, 5) : wxPATH_NATIVE); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 4); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // const wxString volume - const wxString volume = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileName* returns = new wxFileName(volume, path, name, ext, format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_constructor4[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor4[1] = {{ wxLua_wxFileName_constructor4, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFileName_constructor4 }}; -// %wxchkver_3_0_0 wxFileName(const wxString& path, const wxString& name, const wxString& ext, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_constructor4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 4 ? (wxPathFormat)wxlua_getenumtype(L, 4) : wxPATH_NATIVE); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileName* returns = new wxFileName(path, name, ext, format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_constructor3[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor3[1] = {{ wxLua_wxFileName_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxFileName_constructor3 }}; -// wxFileName(const wxString& path, const wxString& name, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 3 ? (wxPathFormat)wxlua_getenumtype(L, 3) : wxPATH_NATIVE); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileName* returns = new wxFileName(path, name, format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileName_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor2[1] = {{ wxLua_wxFileName_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxFileName_constructor2 }}; -// wxFileName(const wxString& fullpath, wxPathFormat format = wxPATH_NATIVE); -static int LUACALL wxLua_wxFileName_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPathFormat format = wxPATH_NATIVE - wxPathFormat format = (argCount >= 2 ? (wxPathFormat)wxlua_getenumtype(L, 2) : wxPATH_NATIVE); - // const wxString fullpath - const wxString fullpath = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileName* returns = new wxFileName(fullpath, format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileName_constructor1[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileName_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor1[1] = {{ wxLua_wxFileName_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileName_constructor1 }}; -// wxFileName(const wxFileName& filename); -static int LUACALL wxLua_wxFileName_constructor1(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call constructor - wxFileName* returns = new wxFileName(*filename); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -static int LUACALL wxLua_wxFileName_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor[1] = {{ wxLua_wxFileName_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFileName(); -static int LUACALL wxLua_wxFileName_constructor(lua_State *L) -{ - // call constructor - wxFileName* returns = new wxFileName(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - - - - -#if (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Assign_overload[] = -{ - { wxLua_wxFileName_Assign5, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxFileName_Assign5 }, - { wxLua_wxFileName_Assign4, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxFileName_Assign4 }, - { wxLua_wxFileName_Assign3, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxFileName_Assign3 }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Assign2, WXLUAMETHOD_METHOD, 6, 7, s_wxluatypeArray_wxLua_wxFileName_Assign2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Assign1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileName_Assign1 }, - { wxLua_wxFileName_Assign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_Assign }, -}; -static int s_wxluafunc_wxLua_wxFileName_Assign_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_Assign_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if (((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE))||((wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_AssignTempFileName_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) - { wxLua_wxFileName_AssignTempFileName1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileName_AssignTempFileName1 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) - -#if (wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_AssignTempFileName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_AssignTempFileName }, -#endif // (wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_AssignTempFileName_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_AssignTempFileName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE))||((wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName)) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_CreateTempFileName_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_CreateTempFileName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_CreateTempFileName1 }, -#endif // (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) - { wxLua_wxFileName_CreateTempFileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxFileName_CreateTempFileName }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE) -}; -static int s_wxluafunc_wxLua_wxFileName_CreateTempFileName_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_CreateTempFileName_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE)) - -#if (wxLUA_USE_wxFileName) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DirExists_overload[] = -{ - { wxLua_wxFileName_DirExists1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DirExists1 }, - { wxLua_wxFileName_DirExists, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DirExists }, -}; -static int s_wxluafunc_wxLua_wxFileName_DirExists_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_DirExists_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFileName) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_DirName_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_DirName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_DirName1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_DirName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_DirName }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_DirName_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_DirName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Exists_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Exists1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Exists1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Exists, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Exists }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_Exists_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_Exists_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - -#if (wxLUA_USE_wxFileName) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileExists_overload[] = -{ - { wxLua_wxFileName_FileExists1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileExists1 }, - { wxLua_wxFileName_FileExists, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileExists }, -}; -static int s_wxluafunc_wxLua_wxFileName_FileExists_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_FileExists_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFileName) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_FileName_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_FileName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_FileName1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_FileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_FileName }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_FileName_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_FileName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG))||((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName))||(((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)) - { wxLua_wxFileName_GetHumanReadableSize3, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize3 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG) - { wxLua_wxFileName_GetHumanReadableSize2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 4, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize2 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG) - -#if (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_GetHumanReadableSize1, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize1 }, -#endif // (!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) - { wxLua_wxFileName_GetHumanReadableSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxFileName_GetHumanReadableSize }, -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) -}; -static int s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG))||((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName))||(((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_GetSize_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) - { wxLua_wxFileName_GetSize1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetSize1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) - { wxLua_wxFileName_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_GetSize }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG) -}; -static int s_wxluafunc_wxLua_wxFileName_GetSize_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_GetSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_InsertDir_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_InsertDir1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileName_InsertDir1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_InsertDir, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileName_InsertDir }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_InsertDir_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_InsertDir_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDirReadable_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsDirReadable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirReadable1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsDirReadable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirReadable }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_IsDirReadable_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_IsDirReadable_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsDirWritable_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsDirWritable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirWritable1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsDirWritable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsDirWritable }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_IsDirWritable_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_IsDirWritable_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileExecutable_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsFileExecutable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileExecutable1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsFileExecutable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileExecutable }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_IsFileExecutable_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_IsFileExecutable_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileReadable_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsFileReadable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileReadable1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsFileReadable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileReadable }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_IsFileReadable_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_IsFileReadable_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsFileWritable_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsFileWritable1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileWritable1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsFileWritable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_IsFileWritable }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_IsFileWritable_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_IsFileWritable_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_IsPathSeparator_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsPathSeparator1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsPathSeparator1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_IsPathSeparator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_IsPathSeparator }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_IsPathSeparator_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_IsPathSeparator_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if (wxLUA_USE_wxFileName) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Mkdir_overload[] = -{ - { wxLua_wxFileName_Mkdir1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxFileName_Mkdir1 }, - { wxLua_wxFileName_Mkdir, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileName_Mkdir }, -}; -static int s_wxluafunc_wxLua_wxFileName_Mkdir_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_Mkdir_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFileName) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_RemoveDir_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_RemoveDir1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_RemoveDir1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_RemoveDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_RemoveDir }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_RemoveDir_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_RemoveDir_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_Rmdir_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Rmdir3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_Rmdir3 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Rmdir2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_Rmdir2 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Rmdir1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Rmdir1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_Rmdir, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFileName_Rmdir }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_Rmdir_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_Rmdir_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - -#if (wxLUA_USE_wxFileName) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_SetCwd_overload[] = -{ - { wxLua_wxFileName_SetCwd1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileName_SetCwd1 }, - { wxLua_wxFileName_SetCwd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileName_SetCwd }, -}; -static int s_wxluafunc_wxLua_wxFileName_SetCwd_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_SetCwd_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_eq_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_op_eq1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_eq1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_eq }, -}; -static int s_wxluafunc_wxLua_wxFileName_op_eq_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_op_eq_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_ne_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_op_ne1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_ne1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_ne }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) -}; -static int s_wxluafunc_wxLua_wxFileName_op_ne_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_op_ne_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_op_set_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_set1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileName_op_set }, -}; -static int s_wxluafunc_wxLua_wxFileName_op_set_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_op_set_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) - -#if (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileName_constructor_overload[] = -{ - { wxLua_wxFileName_constructor5, WXLUAMETHOD_CONSTRUCTOR, 4, 5, s_wxluatypeArray_wxLua_wxFileName_constructor5 }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_constructor4, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFileName_constructor4 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { wxLua_wxFileName_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxFileName_constructor3 }, - { wxLua_wxFileName_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxFileName_constructor2 }, - { wxLua_wxFileName_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileName_constructor1 }, - { wxLua_wxFileName_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFileName_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFileName_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -void wxLua_wxFileName_delete_function(void** p) -{ - wxFileName* o = (wxFileName*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileName_methods[] = { - { "AppendDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_AppendDir, 1, NULL }, - -#if (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - { "Assign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_Assign_overload, s_wxluafunc_wxLua_wxFileName_Assign_overload_count, 0 }, -#endif // (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - - { "AssignCwd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_AssignCwd, 1, NULL }, - { "AssignDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_AssignDir, 1, NULL }, - { "AssignHomeDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_AssignHomeDir, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE))||((wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName)) - { "AssignTempFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_AssignTempFileName_overload, s_wxluafunc_wxLua_wxFileName_AssignTempFileName_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE))||((wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_Clear, 1, NULL }, - { "ClearExt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_ClearExt, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE)) - { "CreateTempFileName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_CreateTempFileName_overload, s_wxluafunc_wxLua_wxFileName_CreateTempFileName_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0) && (wxUSE_FILE || wxUSE_FFILE )) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(2,8,0) && wxUSE_FILE) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFile && wxUSE_FILE)) - -#if (wxLUA_USE_wxFileName) - { "DirExists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_DirExists_overload, s_wxluafunc_wxLua_wxFileName_DirExists_overload_count, 0 }, -#endif // (wxLUA_USE_wxFileName) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - { "DirName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_DirName_overload, s_wxluafunc_wxLua_wxFileName_DirName_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { "DontFollowLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_DontFollowLink, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - { "Exists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_Exists_overload, s_wxluafunc_wxLua_wxFileName_Exists_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - -#if (wxLUA_USE_wxFileName) - { "FileExists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_FileExists_overload, s_wxluafunc_wxLua_wxFileName_FileExists_overload_count, 0 }, -#endif // (wxLUA_USE_wxFileName) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - { "FileName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_FileName_overload, s_wxluafunc_wxLua_wxFileName_FileName_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { "FileNameToURL", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_FileNameToURL, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - - { "GetCwd", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetCwd, 1, NULL }, - { "GetDirCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetDirCount, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxFileName) - { "GetDirs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetDirs, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxFileName) - - { "GetExt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetExt, 1, NULL }, - { "GetForbiddenChars", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetForbiddenChars, 1, NULL }, - { "GetFormat", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetFormat, 1, NULL }, - { "GetFullName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetFullName, 1, NULL }, - { "GetFullPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetFullPath, 1, NULL }, - { "GetHomeDir", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetHomeDir, 1, NULL }, - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG))||((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName))||(((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) - { "GetHumanReadableSize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize_overload, s_wxluafunc_wxLua_wxFileName_GetHumanReadableSize_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName)))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFileName))) && (wxUSE_LONGLONG))||((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName))||(((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) - - { "GetLongPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetLongPath, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) - { "GetModificationTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetModificationTime, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetName, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetPath, 1, NULL }, - { "GetPathSeparator", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetPathSeparator, 1, NULL }, - { "GetPathSeparators", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetPathSeparators, 1, NULL }, - { "GetPathTerminators", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetPathTerminators, 1, NULL }, - { "GetPathWithSep", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetPathWithSep, 1, NULL }, - { "GetShortPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetShortPath, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) - { "GetSize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetSize_overload, s_wxluafunc_wxLua_wxFileName_GetSize_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) && (wxUSE_LONGLONG)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { "GetTempDir", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetTempDir, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - - { "GetTimes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetTimes, 1, NULL }, - { "GetVolume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_GetVolume, 1, NULL }, - { "GetVolumeSeparator", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetVolumeSeparator, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName) - { "GetVolumeString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_GetVolumeString, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName) - - { "HasExt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_HasExt, 1, NULL }, - { "HasName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_HasName, 1, NULL }, - { "HasVolume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_HasVolume, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - { "InsertDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_InsertDir_overload, s_wxluafunc_wxLua_wxFileName_InsertDir_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - - { "IsAbsolute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_IsAbsolute, 1, NULL }, - { "IsCaseSensitive", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsCaseSensitive, 1, NULL }, - { "IsDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_IsDir, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) - { "IsDirReadable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsDirReadable_overload, s_wxluafunc_wxLua_wxFileName_IsDirReadable_overload_count, 0 }, - { "IsDirWritable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsDirWritable_overload, s_wxluafunc_wxLua_wxFileName_IsDirWritable_overload_count, 0 }, - { "IsFileExecutable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsFileExecutable_overload, s_wxluafunc_wxLua_wxFileName_IsFileExecutable_overload_count, 0 }, - { "IsFileReadable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsFileReadable_overload, s_wxluafunc_wxLua_wxFileName_IsFileReadable_overload_count, 0 }, - { "IsFileWritable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsFileWritable_overload, s_wxluafunc_wxLua_wxFileName_IsFileWritable_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileName)) - -#if ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { "IsMSWUniqueVolumeNamePath", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsMSWUniqueVolumeNamePath, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_IsOk, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - { "IsPathSeparator", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_IsPathSeparator_overload, s_wxluafunc_wxLua_wxFileName_IsPathSeparator_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - - { "IsRelative", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_IsRelative, 1, NULL }, - { "MakeAbsolute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_MakeAbsolute, 1, NULL }, - { "MakeRelativeTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_MakeRelativeTo, 1, NULL }, - -#if (wxLUA_USE_wxFileName) - { "Mkdir", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_Mkdir_overload, s_wxluafunc_wxLua_wxFileName_Mkdir_overload_count, 0 }, -#endif // (wxLUA_USE_wxFileName) - - { "Normalize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_Normalize, 1, NULL }, - { "PrependDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_PrependDir, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - { "RemoveDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_RemoveDir_overload, s_wxluafunc_wxLua_wxFileName_RemoveDir_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - - { "RemoveLastDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_RemoveLastDir, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { "ReplaceEnvVariable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_ReplaceEnvVariable, 1, NULL }, - { "ReplaceHomeDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_ReplaceHomeDir, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - { "Rmdir", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_Rmdir_overload, s_wxluafunc_wxLua_wxFileName_Rmdir_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) - - { "SameAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SameAs, 1, NULL }, - -#if (wxLUA_USE_wxFileName) - { "SetCwd", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_SetCwd_overload, s_wxluafunc_wxLua_wxFileName_SetCwd_overload_count, 0 }, -#endif // (wxLUA_USE_wxFileName) - - { "SetEmptyExt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetEmptyExt, 1, NULL }, - { "SetExt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetExt, 1, NULL }, - { "SetFullName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetFullName, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetName, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetPath, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { "SetPermissions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetPermissions, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) - { "SetTimes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetTimes, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxFileName) - - { "SetVolume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_SetVolume, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { "ShouldFollowLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_ShouldFollowLink, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - - { "SplitPath", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_SplitPath, 1, NULL }, - { "SplitPathVolume", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_SplitPathVolume, 1, NULL }, - { "SplitVolume", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_SplitVolume, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - { "StripExtension", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_StripExtension, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName) - - { "Touch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_Touch, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - { "URLToFileName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileName_URLToFileName, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileName_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_op_eq_overload, s_wxluafunc_wxLua_wxFileName_op_eq_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_op_ne_overload, s_wxluafunc_wxLua_wxFileName_op_ne_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileName_op_set_overload, s_wxluafunc_wxLua_wxFileName_op_set_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName))||(wxLUA_USE_wxFileName) - -#if (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - { "wxFileName", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileName_constructor_overload, s_wxluafunc_wxLua_wxFileName_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxFileName)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFileName)) && (wxLUA_USE_wxFileName)) - - { 0, 0, 0, 0 }, -}; - -int wxFileName_methodCount = sizeof(wxFileName_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFileName - - -#if wxLUA_USE_wxFile && wxUSE_FILE -// --------------------------------------------------------------------------- -// Bind class wxFile -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFile' -int wxluatype_wxFile = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Access[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_Access(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Access[1] = {{ wxLua_wxFile_Access, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxFile_Access }}; -// static bool Access(const wxString& name, wxFile::OpenMode mode); -static int LUACALL wxLua_wxFile_Access(lua_State *L) -{ - // wxFile::OpenMode mode - wxFile::OpenMode mode = (wxFile::OpenMode)wxlua_getenumtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call Access - bool returns = (wxFile::Access(name, mode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Attach[] = { &wxluatype_wxFile, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFile_Attach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Attach[1] = {{ wxLua_wxFile_Attach, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFile_Attach }}; -// void Attach(int fd); -static int LUACALL wxLua_wxFile_Attach(lua_State *L) -{ - // int fd - int fd = (int)wxlua_getnumbertype(L, 2); - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Attach - self->Attach(fd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Close[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Close[1] = {{ wxLua_wxFile_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_Close }}; -// void Close(); -static int LUACALL wxLua_wxFile_Close(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Close - self->Close(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Create[] = { &wxluatype_wxFile, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFile_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Create[1] = {{ wxLua_wxFile_Create, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxFile_Create }}; -// bool Create(const wxString& filename, bool overwrite = false, int access = wxS_DEFAULT); -static int LUACALL wxLua_wxFile_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int access = wxS_DEFAULT - int access = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxS_DEFAULT); - // bool overwrite = false - bool overwrite = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Create - bool returns = (self->Create(filename, overwrite, access)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Detach[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_Detach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Detach[1] = {{ wxLua_wxFile_Detach, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_Detach }}; -// void Detach(); -static int LUACALL wxLua_wxFile_Detach(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Detach - self->Detach(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Eof[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_Eof(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Eof[1] = {{ wxLua_wxFile_Eof, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_Eof }}; -// bool Eof() const; -static int LUACALL wxLua_wxFile_Eof(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Eof - bool returns = (self->Eof()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Exists[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFile_Exists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Exists[1] = {{ wxLua_wxFile_Exists, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFile_Exists }}; -// static bool Exists(const wxString& name); -static int LUACALL wxLua_wxFile_Exists(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call Exists - bool returns = (wxFile::Exists(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Flush[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_Flush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Flush[1] = {{ wxLua_wxFile_Flush, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_Flush }}; -// bool Flush(); -static int LUACALL wxLua_wxFile_Flush(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Flush - bool returns = (self->Flush()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_GetKind[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_GetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_GetKind[1] = {{ wxLua_wxFile_GetKind, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_GetKind }}; -// wxFileKind GetKind() const; -static int LUACALL wxLua_wxFile_GetKind(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call GetKind - wxFileKind returns = (self->GetKind()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_IsOpened[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_IsOpened(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_IsOpened[1] = {{ wxLua_wxFile_IsOpened, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_IsOpened }}; -// bool IsOpened() const; -static int LUACALL wxLua_wxFile_IsOpened(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call IsOpened - bool returns = (self->IsOpened()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Length[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_Length(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Length[1] = {{ wxLua_wxFile_Length, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_Length }}; -// wxFileOffset Length() const; -static int LUACALL wxLua_wxFile_Length(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Length - wxFileOffset returns = (self->Length()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Open[] = { &wxluatype_wxFile, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_Open(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Open[1] = {{ wxLua_wxFile_Open, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFile_Open }}; -// bool Open(const wxString& filename, wxFile::OpenMode mode = wxFile::read); -static int LUACALL wxLua_wxFile_Open(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFile::OpenMode mode = wxFile::read - wxFile::OpenMode mode = (argCount >= 3 ? (wxFile::OpenMode)wxlua_getenumtype(L, 3) : wxFile::read); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Open - bool returns = (self->Open(filename, mode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Read[] = { &wxluatype_wxFile, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_Read(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Read[1] = {{ wxLua_wxFile_Read, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFile_Read }}; -// %override wxLua_wxFile_Read -// unsigned int Read(void * buffer, unsigned int count) -static int LUACALL wxLua_wxFile_Read(lua_State *L) -{ - // unsigned int count - unsigned int count = (unsigned int)wxlua_getintegertype(L, 2); - // void * buffer - void *buffer = malloc(count); - if (buffer != NULL) - { - // get this - wxFile *self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Read - unsigned int returns = self->Read(buffer, count); - // push the result number - lua_pushinteger(L, returns); - lua_pushlstring(L, (const char *) buffer, returns); - free(buffer); - // return the number of parameters - return 2; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Seek[] = { &wxluatype_wxFile, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_Seek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Seek[1] = {{ wxLua_wxFile_Seek, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFile_Seek }}; -// wxFileOffset Seek(wxFileOffset offset, wxSeekMode mode = wxFromStart); -static int LUACALL wxLua_wxFile_Seek(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSeekMode mode = wxFromStart - wxSeekMode mode = (argCount >= 3 ? (wxSeekMode)wxlua_getenumtype(L, 3) : wxFromStart); - // wxFileOffset offset - wxFileOffset offset = (wxFileOffset)wxlua_getuintegertype(L, 2); - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Seek - wxFileOffset returns = (self->Seek(offset, mode)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_SeekEnd[] = { &wxluatype_wxFile, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_SeekEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_SeekEnd[1] = {{ wxLua_wxFile_SeekEnd, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFile_SeekEnd }}; -// wxFileOffset SeekEnd(wxFileOffset offset = 0); -static int LUACALL wxLua_wxFile_SeekEnd(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFileOffset offset = 0 - wxFileOffset offset = (argCount >= 2 ? (wxFileOffset)wxlua_getuintegertype(L, 2) : 0); - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call SeekEnd - wxFileOffset returns = (self->SeekEnd(offset)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Tell[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_Tell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Tell[1] = {{ wxLua_wxFile_Tell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_Tell }}; -// wxFileOffset Tell() const; -static int LUACALL wxLua_wxFile_Tell(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Tell - wxFileOffset returns = (self->Tell()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Write1[] = { &wxluatype_wxFile, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFile_Write1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Write1[1] = {{ wxLua_wxFile_Write1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFile_Write1 }}; -// size_t Write(const wxString &str); //, const wxMBConv& conv = wxConvUTF8); -static int LUACALL wxLua_wxFile_Write1(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Write - size_t returns = (self->Write(str)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_Write[] = { &wxluatype_wxFile, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_Write(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Write[1] = {{ wxLua_wxFile_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFile_Write }}; -// %override wxLua_wxFile_Write -// unsigned int Write(const void * buffer, unsigned int nbytes) -static int LUACALL wxLua_wxFile_Write(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned long nbytes - unsigned long nbytes = (argCount >= 3 ? (unsigned long)wxlua_getintegertype(L, 3) : lua_strlen(L, 2)); - // const void * buffer - const void *buffer = (const void *)lua_tostring(L, 2); - // get this - wxFile *self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call Write - unsigned int returns = self->Write(buffer, nbytes); - // push the result number - lua_pushinteger(L, returns); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_delete[] = { &wxluatype_wxFile, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFile_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_fd[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFile_fd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_fd[1] = {{ wxLua_wxFile_fd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFile_fd }}; -// int fd() const; -static int LUACALL wxLua_wxFile_fd(lua_State *L) -{ - // get this - wxFile * self = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call fd - int returns = (self->fd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFile_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFile_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_constructor1[1] = {{ wxLua_wxFile_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxFile_constructor1 }}; -// wxFile(const wxString& filename, wxFile::OpenMode mode = wxFile::read); -static int LUACALL wxLua_wxFile_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFile::OpenMode mode = wxFile::read - wxFile::OpenMode mode = (argCount >= 2 ? (wxFile::OpenMode)wxlua_getenumtype(L, 2) : wxFile::read); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call constructor - wxFile* returns = new wxFile(filename, mode); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFile); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFile); - - return 1; -} - -static int LUACALL wxLua_wxFile_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_constructor[1] = {{ wxLua_wxFile_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFile(); -static int LUACALL wxLua_wxFile_constructor(lua_State *L) -{ - // call constructor - wxFile* returns = new wxFile(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFile); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFile); - - return 1; -} - - - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_Write_overload[] = -{ - { wxLua_wxFile_Write1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFile_Write1 }, - { wxLua_wxFile_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFile_Write }, -}; -static int s_wxluafunc_wxLua_wxFile_Write_overload_count = sizeof(s_wxluafunc_wxLua_wxFile_Write_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFile_constructor_overload[] = -{ - { wxLua_wxFile_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxFile_constructor1 }, - { wxLua_wxFile_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFile_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFile_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) - -void wxLua_wxFile_delete_function(void** p) -{ - wxFile* o = (wxFile*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFile_methods[] = { - { "Access", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFile_Access, 1, NULL }, - { "Attach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Attach, 1, NULL }, - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Close, 1, NULL }, - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Create, 1, NULL }, - { "Detach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Detach, 1, NULL }, - { "Eof", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Eof, 1, NULL }, - { "Exists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFile_Exists, 1, NULL }, - { "Flush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Flush, 1, NULL }, - { "GetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_GetKind, 1, NULL }, - { "IsOpened", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_IsOpened, 1, NULL }, - { "Length", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Length, 1, NULL }, - { "Open", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Open, 1, NULL }, - { "Read", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Read, 1, NULL }, - { "Seek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Seek, 1, NULL }, - { "SeekEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_SeekEnd, 1, NULL }, - { "Tell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Tell, 1, NULL }, - -#if (wxLUA_USE_wxFile && wxUSE_FILE) - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_Write_overload, s_wxluafunc_wxLua_wxFile_Write_overload_count, 0 }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFile_delete, 1, NULL }, - { "fd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFile_fd, 1, NULL }, - -#if (wxLUA_USE_wxFile && wxUSE_FILE) - { "wxFile", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFile_constructor_overload, s_wxluafunc_wxLua_wxFile_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) - - { 0, 0, 0, 0 }, -}; - -int wxFile_methodCount = sizeof(wxFile_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxFile_enums[] = { -#if wxLUA_USE_wxFile && wxUSE_FILE - { "fd_invalid", wxFile::fd_invalid }, - { "fd_stderr", wxFile::fd_stderr }, - { "fd_stdin", wxFile::fd_stdin }, - { "fd_stdout", wxFile::fd_stdout }, - { "read", wxFile::read }, - { "read_write", wxFile::read_write }, - { "write", wxFile::write }, - { "write_append", wxFile::write_append }, - { "write_excl", wxFile::write_excl }, -#endif // wxLUA_USE_wxFile && wxUSE_FILE - - { NULL, 0, }, -}; -int wxFile_enumCount = sizeof(wxFile_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxFile && wxUSE_FILE - - -#if wxLUA_USE_wxFile && wxUSE_FILE -// --------------------------------------------------------------------------- -// Bind class wxTempFile -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTempFile' -int wxluatype_wxTempFile = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Commit[] = { &wxluatype_wxTempFile, NULL }; -static int LUACALL wxLua_wxTempFile_Commit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Commit[1] = {{ wxLua_wxTempFile_Commit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_Commit }}; -// bool Commit(); -static int LUACALL wxLua_wxTempFile_Commit(lua_State *L) -{ - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Commit - bool returns = (self->Commit()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Discard[] = { &wxluatype_wxTempFile, NULL }; -static int LUACALL wxLua_wxTempFile_Discard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Discard[1] = {{ wxLua_wxTempFile_Discard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_Discard }}; -// void Discard(); -static int LUACALL wxLua_wxTempFile_Discard(lua_State *L) -{ - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Discard - self->Discard(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_IsOpened[] = { &wxluatype_wxTempFile, NULL }; -static int LUACALL wxLua_wxTempFile_IsOpened(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_IsOpened[1] = {{ wxLua_wxTempFile_IsOpened, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_IsOpened }}; -// bool IsOpened() const; -static int LUACALL wxLua_wxTempFile_IsOpened(lua_State *L) -{ - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call IsOpened - bool returns = (self->IsOpened()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Length[] = { &wxluatype_wxTempFile, NULL }; -static int LUACALL wxLua_wxTempFile_Length(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Length[1] = {{ wxLua_wxTempFile_Length, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_Length }}; -// wxFileOffset Length() const; -static int LUACALL wxLua_wxTempFile_Length(lua_State *L) -{ - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Length - wxFileOffset returns = (self->Length()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Open[] = { &wxluatype_wxTempFile, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTempFile_Open(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Open[1] = {{ wxLua_wxTempFile_Open, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTempFile_Open }}; -// bool Open(const wxString& strName); -static int LUACALL wxLua_wxTempFile_Open(lua_State *L) -{ - // const wxString strName - const wxString strName = wxlua_getwxStringtype(L, 2); - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Open - bool returns = (self->Open(strName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Seek[] = { &wxluatype_wxTempFile, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTempFile_Seek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Seek[1] = {{ wxLua_wxTempFile_Seek, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTempFile_Seek }}; -// wxFileOffset Seek(wxFileOffset ofs, wxSeekMode mode = wxFromStart); -static int LUACALL wxLua_wxTempFile_Seek(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSeekMode mode = wxFromStart - wxSeekMode mode = (argCount >= 3 ? (wxSeekMode)wxlua_getenumtype(L, 3) : wxFromStart); - // wxFileOffset ofs - wxFileOffset ofs = (wxFileOffset)wxlua_getuintegertype(L, 2); - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Seek - wxFileOffset returns = (self->Seek(ofs, mode)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Tell[] = { &wxluatype_wxTempFile, NULL }; -static int LUACALL wxLua_wxTempFile_Tell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Tell[1] = {{ wxLua_wxTempFile_Tell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_Tell }}; -// wxFileOffset Tell() const; -static int LUACALL wxLua_wxTempFile_Tell(lua_State *L) -{ - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Tell - wxFileOffset returns = (self->Tell()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_Write[] = { &wxluatype_wxTempFile, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTempFile_Write(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_Write[1] = {{ wxLua_wxTempFile_Write, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTempFile_Write }}; -// bool Write(const wxString& str); //, const wxMBConv& conv = wxConvUTF8); -static int LUACALL wxLua_wxTempFile_Write(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxTempFile * self = (wxTempFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTempFile); - // call Write - bool returns = (self->Write(str)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_delete[] = { &wxluatype_wxTempFile, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTempFile_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTempFile_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_constructor1[1] = {{ wxLua_wxTempFile_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_constructor1 }}; -// wxTempFile(const wxString& strName); -static int LUACALL wxLua_wxTempFile_constructor1(lua_State *L) -{ - // const wxString strName - const wxString strName = wxlua_getwxStringtype(L, 1); - // call constructor - wxTempFile* returns = new wxTempFile(strName); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTempFile); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTempFile); - - return 1; -} - -static int LUACALL wxLua_wxTempFile_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_constructor[1] = {{ wxLua_wxTempFile_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTempFile(); -static int LUACALL wxLua_wxTempFile_constructor(lua_State *L) -{ - // call constructor - wxTempFile* returns = new wxTempFile(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTempFile); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTempFile); - - return 1; -} - - - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTempFile_constructor_overload[] = -{ - { wxLua_wxTempFile_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTempFile_constructor1 }, - { wxLua_wxTempFile_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTempFile_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTempFile_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) - -void wxLua_wxTempFile_delete_function(void** p) -{ - wxTempFile* o = (wxTempFile*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTempFile_methods[] = { - { "Commit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Commit, 1, NULL }, - { "Discard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Discard, 1, NULL }, - { "IsOpened", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_IsOpened, 1, NULL }, - { "Length", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Length, 1, NULL }, - { "Open", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Open, 1, NULL }, - { "Seek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Seek, 1, NULL }, - { "Tell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Tell, 1, NULL }, - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTempFile_Write, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTempFile_delete, 1, NULL }, - -#if (wxLUA_USE_wxFile && wxUSE_FILE) - { "wxTempFile", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTempFile_constructor_overload, s_wxluafunc_wxLua_wxTempFile_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) - - { 0, 0, 0, 0 }, -}; - -int wxTempFile_methodCount = sizeof(wxTempFile_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFile && wxUSE_FILE - - -#if wxLUA_USE_wxDir -// --------------------------------------------------------------------------- -// Bind class wxDir -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDir' -int wxluatype_wxDir = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_Close[] = { &wxluatype_wxDir, NULL }; -static int LUACALL wxLua_wxDir_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_Close[1] = {{ wxLua_wxDir_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDir_Close }}; -// %wxchkver_3_0_0 void Close(); -static int LUACALL wxLua_wxDir_Close(lua_State *L) -{ - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call Close - self->Close(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_Exists[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDir_Exists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_Exists[1] = {{ wxLua_wxDir_Exists, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDir_Exists }}; -// static bool Exists(const wxString& dir); -static int LUACALL wxLua_wxDir_Exists(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call Exists - bool returns = (wxDir::Exists(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_FindFirst[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDir_FindFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_FindFirst[1] = {{ wxLua_wxDir_FindFirst, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxDir_FindFirst }}; -// %wxchkver_2_8 static wxString FindFirst(const wxString& dirname, const wxString& filespec, int flags = wxDIR_DEFAULT); -static int LUACALL wxLua_wxDir_FindFirst(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDIR_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxDIR_DEFAULT); - // const wxString filespec - const wxString filespec = wxlua_getwxStringtype(L, 2); - // const wxString dirname - const wxString dirname = wxlua_getwxStringtype(L, 1); - // call FindFirst - wxString returns = (wxDir::FindFirst(dirname, filespec, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_GetAllFiles[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDir_GetAllFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_GetAllFiles[1] = {{ wxLua_wxDir_GetAllFiles, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxDir_GetAllFiles }}; -// %override wxLua_wxDir_GetAllFiles -// static unsigned int GetAllFiles(const wxString& dirname, wxArrayString *files, const wxString& filespec = "", int flags = wxDIR_DEFAULT) -static int LUACALL wxLua_wxDir_GetAllFiles(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDIR_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getintegertype(L, 3) : wxDIR_DEFAULT); - // const wxString& filespec = "" - wxString filespec = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT(""))); - // wxArrayString *files - wxArrayString files; - // const wxString& dirname - wxString dirname = wxlua_getwxStringtype(L, 1); - // call GetAllFiles - unsigned int returns = wxDir::GetAllFiles(dirname, &files, filespec, flags); - // push the result number - lua_pushinteger(L, returns); - wxlua_pushwxArrayStringtable(L, files); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_GetFirst[] = { &wxluatype_wxDir, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDir_GetFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_GetFirst[1] = {{ wxLua_wxDir_GetFirst, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDir_GetFirst }}; -// %override wxLua_wxDir_GetFirst -// bool GetFirst(wxString * filename, const wxString& filespec = "", int flags = wxDIR_DEFAULT) const -static int LUACALL wxLua_wxDir_GetFirst(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDIR_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getintegertype(L, 3) : wxDIR_DEFAULT); - // const wxString& filespec = "" - wxString filespec = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT(""))); - // wxString * filename - wxString filename; - // get this - wxDir *self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call GetFirst - bool returns = self->GetFirst(&filename, filespec, flags); - lua_pushboolean(L, returns); - // push the result number - wxlua_pushwxString(L, filename); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_GetName[] = { &wxluatype_wxDir, NULL }; -static int LUACALL wxLua_wxDir_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_GetName[1] = {{ wxLua_wxDir_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDir_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxDir_GetName(lua_State *L) -{ - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_GetNameWithSep[] = { &wxluatype_wxDir, NULL }; -static int LUACALL wxLua_wxDir_GetNameWithSep(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_GetNameWithSep[1] = {{ wxLua_wxDir_GetNameWithSep, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDir_GetNameWithSep }}; -// %wxchkver_3_0_0 wxString GetNameWithSep() const; -static int LUACALL wxLua_wxDir_GetNameWithSep(lua_State *L) -{ - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call GetNameWithSep - wxString returns = (self->GetNameWithSep()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_GetNext[] = { &wxluatype_wxDir, NULL }; -static int LUACALL wxLua_wxDir_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_GetNext[1] = {{ wxLua_wxDir_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDir_GetNext }}; -// %override wxLua_wxDir_GetNext -// bool GetNext(wxString * filename) const -static int LUACALL wxLua_wxDir_GetNext(lua_State *L) -{ - // wxString * filename - wxString filename; - // get this - wxDir *self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call GetNext - bool returns = self->GetNext(&filename); - lua_pushboolean(L, returns); - // push the result number - wxlua_pushwxString(L, filename); - // return the number of parameters - return 2; -} - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir)) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_GetTotalSize[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDir_GetTotalSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_GetTotalSize[1] = {{ wxLua_wxDir_GetTotalSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDir_GetTotalSize }}; -// %wxchkver_2_8 static wxULongLong GetTotalSize(const wxString &dir); // %override ..., wxArrayString *filesSkipped = NULL) -static int LUACALL wxLua_wxDir_GetTotalSize(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call GetTotalSize - // allocate a new object using the copy constructor - wxULongLong* returns = new wxULongLong(wxDir::GetTotalSize(dir)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir)) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_HasFiles[] = { &wxluatype_wxDir, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDir_HasFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_HasFiles[1] = {{ wxLua_wxDir_HasFiles, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDir_HasFiles }}; -// bool HasFiles(const wxString& filespec = ""); -static int LUACALL wxLua_wxDir_HasFiles(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString filespec = "" - const wxString filespec = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call HasFiles - bool returns = (self->HasFiles(filespec)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_HasSubDirs[] = { &wxluatype_wxDir, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDir_HasSubDirs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_HasSubDirs[1] = {{ wxLua_wxDir_HasSubDirs, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDir_HasSubDirs }}; -// bool HasSubDirs(const wxString& dirspec = ""); -static int LUACALL wxLua_wxDir_HasSubDirs(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString dirspec = "" - const wxString dirspec = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call HasSubDirs - bool returns = (self->HasSubDirs(dirspec)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_IsOpened[] = { &wxluatype_wxDir, NULL }; -static int LUACALL wxLua_wxDir_IsOpened(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_IsOpened[1] = {{ wxLua_wxDir_IsOpened, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDir_IsOpened }}; -// bool IsOpened() const; -static int LUACALL wxLua_wxDir_IsOpened(lua_State *L) -{ - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call IsOpened - bool returns = (self->IsOpened()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_Make[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDir_Make(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_Make[1] = {{ wxLua_wxDir_Make, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxDir_Make }}; -// %wxchkver_3_0_0 static bool Make(const wxString &dir, int perm = wxS_DIR_DEFAULT, int flags = 0); -static int LUACALL wxLua_wxDir_Make(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int perm = wxS_DIR_DEFAULT - int perm = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxS_DIR_DEFAULT); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call Make - bool returns = (wxDir::Make(dir, perm, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_Open[] = { &wxluatype_wxDir, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDir_Open(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_Open[1] = {{ wxLua_wxDir_Open, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDir_Open }}; -// bool Open(const wxString& dir); -static int LUACALL wxLua_wxDir_Open(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxDir * self = (wxDir *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDir); - // call Open - bool returns = (self->Open(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_Remove[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDir_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_Remove[1] = {{ wxLua_wxDir_Remove, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxDir_Remove }}; -// %wxchkver_3_0_0 static bool Remove(const wxString &dir, int flags = 0); -static int LUACALL wxLua_wxDir_Remove(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call Remove - bool returns = (wxDir::Remove(dir, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_delete[] = { &wxluatype_wxDir, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDir_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDir_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDir_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_constructor1[1] = {{ wxLua_wxDir_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDir_constructor1 }}; -// wxDir(const wxString& dir); -static int LUACALL wxLua_wxDir_constructor1(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 1); - // call constructor - wxDir* returns = new wxDir(dir); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDir); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDir); - - return 1; -} - -static int LUACALL wxLua_wxDir_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_constructor[1] = {{ wxLua_wxDir_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDir(); -static int LUACALL wxLua_wxDir_constructor(lua_State *L) -{ - // call constructor - wxDir* returns = new wxDir(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDir); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDir); - - return 1; -} - - - - -#if (wxLUA_USE_wxDir) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDir_constructor_overload[] = -{ - { wxLua_wxDir_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDir_constructor1 }, - { wxLua_wxDir_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDir_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDir_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDir) - -void wxLua_wxDir_delete_function(void** p) -{ - wxDir* o = (wxDir*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDir_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_Close, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - - { "Exists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDir_Exists, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir) - { "FindFirst", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDir_FindFirst, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir) - - { "GetAllFiles", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDir_GetAllFiles, 1, NULL }, - { "GetFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_GetFirst, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_GetName, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - { "GetNameWithSep", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_GetNameWithSep, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_GetNext, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir)) && (wxUSE_LONGLONG) - { "GetTotalSize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDir_GetTotalSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDir)) && (wxUSE_LONGLONG) - - { "HasFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_HasFiles, 1, NULL }, - { "HasSubDirs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_HasSubDirs, 1, NULL }, - { "IsOpened", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_IsOpened, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - { "Make", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDir_Make, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - - { "Open", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDir_Open, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - { "Remove", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDir_Remove, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDir) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDir_delete, 1, NULL }, - -#if (wxLUA_USE_wxDir) - { "wxDir", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDir_constructor_overload, s_wxluafunc_wxLua_wxDir_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxDir) - - { 0, 0, 0, 0 }, -}; - -int wxDir_methodCount = sizeof(wxDir_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDir - -// --------------------------------------------------------------------------- -// Bind class wxFileTypeInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileTypeInfo' -int wxluatype_wxFileTypeInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetDescription[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetDescription[1] = {{ wxLua_wxFileTypeInfo_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetDescription }}; -// wxString GetDescription() const; -static int LUACALL wxLua_wxFileTypeInfo_GetDescription(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetDescription - wxString returns = (self->GetDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetExtensions[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetExtensions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetExtensions[1] = {{ wxLua_wxFileTypeInfo_GetExtensions, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetExtensions }}; -// wxArrayString GetExtensions() const; -static int LUACALL wxLua_wxFileTypeInfo_GetExtensions(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetExtensions - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetExtensions()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // wxLUA_USE_wxArrayString - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetExtensionsCount[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetExtensionsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetExtensionsCount[1] = {{ wxLua_wxFileTypeInfo_GetExtensionsCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetExtensionsCount }}; -// size_t GetExtensionsCount() const; -static int LUACALL wxLua_wxFileTypeInfo_GetExtensionsCount(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetExtensionsCount - size_t returns = (self->GetExtensionsCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetIconFile[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetIconFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetIconFile[1] = {{ wxLua_wxFileTypeInfo_GetIconFile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetIconFile }}; -// wxString GetIconFile() const; -static int LUACALL wxLua_wxFileTypeInfo_GetIconFile(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetIconFile - wxString returns = (self->GetIconFile()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetIconIndex[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetIconIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetIconIndex[1] = {{ wxLua_wxFileTypeInfo_GetIconIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetIconIndex }}; -// int GetIconIndex() const; -static int LUACALL wxLua_wxFileTypeInfo_GetIconIndex(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetIconIndex - int returns = (self->GetIconIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetMimeType[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetMimeType[1] = {{ wxLua_wxFileTypeInfo_GetMimeType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetMimeType }}; -// wxString GetMimeType() const; -static int LUACALL wxLua_wxFileTypeInfo_GetMimeType(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetMimeType - wxString returns = (self->GetMimeType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetOpenCommand[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetOpenCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetOpenCommand[1] = {{ wxLua_wxFileTypeInfo_GetOpenCommand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetOpenCommand }}; -// wxString GetOpenCommand() const; -static int LUACALL wxLua_wxFileTypeInfo_GetOpenCommand(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetOpenCommand - wxString returns = (self->GetOpenCommand()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetPrintCommand[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetPrintCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetPrintCommand[1] = {{ wxLua_wxFileTypeInfo_GetPrintCommand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetPrintCommand }}; -// wxString GetPrintCommand() const; -static int LUACALL wxLua_wxFileTypeInfo_GetPrintCommand(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetPrintCommand - wxString returns = (self->GetPrintCommand()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_GetShortDesc[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_GetShortDesc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_GetShortDesc[1] = {{ wxLua_wxFileTypeInfo_GetShortDesc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_GetShortDesc }}; -// wxString GetShortDesc() const; -static int LUACALL wxLua_wxFileTypeInfo_GetShortDesc(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call GetShortDesc - wxString returns = (self->GetShortDesc()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_IsValid[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_IsValid[1] = {{ wxLua_wxFileTypeInfo_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxFileTypeInfo_IsValid(lua_State *L) -{ - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_SetIcon[] = { &wxluatype_wxFileTypeInfo, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_SetIcon[1] = {{ wxLua_wxFileTypeInfo_SetIcon, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileTypeInfo_SetIcon }}; -// void SetIcon(const wxString& iconFile, int iconIndex = 0); -static int LUACALL wxLua_wxFileTypeInfo_SetIcon(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int iconIndex = 0 - int iconIndex = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString iconFile - const wxString iconFile = wxlua_getwxStringtype(L, 2); - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call SetIcon - self->SetIcon(iconFile, iconIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_SetShortDesc[] = { &wxluatype_wxFileTypeInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_SetShortDesc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_SetShortDesc[1] = {{ wxLua_wxFileTypeInfo_SetShortDesc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileTypeInfo_SetShortDesc }}; -// void SetShortDesc(const wxString& shortDesc); -static int LUACALL wxLua_wxFileTypeInfo_SetShortDesc(lua_State *L) -{ - // const wxString shortDesc - const wxString shortDesc = wxlua_getwxStringtype(L, 2); - // get this - wxFileTypeInfo * self = (wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call SetShortDesc - self->SetShortDesc(shortDesc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_delete[] = { &wxluatype_wxFileTypeInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_delete }}; - - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileTypeInfo_constructor[] = { &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxFileTypeInfo_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_constructor[1] = {{ wxLua_wxFileTypeInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_constructor }}; -// wxFileTypeInfo(const wxArrayString& sArray); -static int LUACALL wxLua_wxFileTypeInfo_constructor(lua_State *L) -{ - // const wxArrayString sArray - wxLuaSmartwxArrayString sArray = wxlua_getwxArrayString(L, 1); - // call constructor - wxFileTypeInfo* returns = new wxFileTypeInfo(sArray); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileTypeInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileTypeInfo); - - return 1; -} - -#endif // wxLUA_USE_wxArrayString - -static int LUACALL wxLua_wxFileTypeInfo_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_constructor1[1] = {{ wxLua_wxFileTypeInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFileTypeInfo(); -static int LUACALL wxLua_wxFileTypeInfo_constructor1(lua_State *L) -{ - // call constructor - wxFileTypeInfo* returns = new wxFileTypeInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileTypeInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileTypeInfo); - - return 1; -} - - - -#if (wxLUA_USE_wxArrayString) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileTypeInfo_constructor_overload[] = -{ - -#if wxLUA_USE_wxArrayString - { wxLua_wxFileTypeInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileTypeInfo_constructor }, -#endif // wxLUA_USE_wxArrayString - { wxLua_wxFileTypeInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFileTypeInfo_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFileTypeInfo_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxArrayString) - -void wxLua_wxFileTypeInfo_delete_function(void** p) -{ - wxFileTypeInfo* o = (wxFileTypeInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileTypeInfo_methods[] = { - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetDescription, 1, NULL }, - -#if wxLUA_USE_wxArrayString - { "GetExtensions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetExtensions, 1, NULL }, -#endif // wxLUA_USE_wxArrayString - - { "GetExtensionsCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetExtensionsCount, 1, NULL }, - { "GetIconFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetIconFile, 1, NULL }, - { "GetIconIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetIconIndex, 1, NULL }, - { "GetMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetMimeType, 1, NULL }, - { "GetOpenCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetOpenCommand, 1, NULL }, - { "GetPrintCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetPrintCommand, 1, NULL }, - { "GetShortDesc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_GetShortDesc, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_IsValid, 1, NULL }, - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_SetIcon, 1, NULL }, - { "SetShortDesc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileTypeInfo_SetShortDesc, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileTypeInfo_delete, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) - { "wxFileTypeInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileTypeInfo_constructor_overload, s_wxluafunc_wxLua_wxFileTypeInfo_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxArrayString) - - { 0, 0, 0, 0 }, -}; - -int wxFileTypeInfo_methodCount = sizeof(wxFileTypeInfo_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxIconLocation -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIconLocation' -int wxluatype_wxIconLocation = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_GetFileName[] = { &wxluatype_wxIconLocation, NULL }; -static int LUACALL wxLua_wxIconLocation_GetFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_GetFileName[1] = {{ wxLua_wxIconLocation_GetFileName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIconLocation_GetFileName }}; -// const wxString& GetFileName() const; -static int LUACALL wxLua_wxIconLocation_GetFileName(lua_State *L) -{ - // get this - wxIconLocation * self = (wxIconLocation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconLocation); - // call GetFileName - wxString returns = (self->GetFileName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if defined(__WXMSW__) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_GetIndex[] = { &wxluatype_wxIconLocation, NULL }; -static int LUACALL wxLua_wxIconLocation_GetIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_GetIndex[1] = {{ wxLua_wxIconLocation_GetIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIconLocation_GetIndex }}; -// %msw int GetIndex() const; -static int LUACALL wxLua_wxIconLocation_GetIndex(lua_State *L) -{ - // get this - wxIconLocation * self = (wxIconLocation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconLocation); - // call GetIndex - int returns = (self->GetIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // defined(__WXMSW__) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_IsOk[] = { &wxluatype_wxIconLocation, NULL }; -static int LUACALL wxLua_wxIconLocation_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_IsOk[1] = {{ wxLua_wxIconLocation_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIconLocation_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxIconLocation_IsOk(lua_State *L) -{ - // get this - wxIconLocation * self = (wxIconLocation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconLocation); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_SetFileName[] = { &wxluatype_wxIconLocation, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxIconLocation_SetFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_SetFileName[1] = {{ wxLua_wxIconLocation_SetFileName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIconLocation_SetFileName }}; -// void SetFileName(const wxString& filename); -static int LUACALL wxLua_wxIconLocation_SetFileName(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxIconLocation * self = (wxIconLocation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconLocation); - // call SetFileName - self->SetFileName(filename); - - return 0; -} - - -#if defined(__WXMSW__) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_SetIndex[] = { &wxluatype_wxIconLocation, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIconLocation_SetIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_SetIndex[1] = {{ wxLua_wxIconLocation_SetIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIconLocation_SetIndex }}; -// %msw void SetIndex(int num); -static int LUACALL wxLua_wxIconLocation_SetIndex(lua_State *L) -{ - // int num - int num = (int)wxlua_getnumbertype(L, 2); - // get this - wxIconLocation * self = (wxIconLocation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconLocation); - // call SetIndex - self->SetIndex(num); - - return 0; -} - -#endif // defined(__WXMSW__) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_delete[] = { &wxluatype_wxIconLocation, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIconLocation_delete }}; - - -#if defined(__WXMSW__) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIconLocation_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_constructor1[1] = {{ wxLua_wxIconLocation_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxIconLocation_constructor1 }}; -// %msw wxIconLocation(const wxString& file = "", int num = 0); -static int LUACALL wxLua_wxIconLocation_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int num = 0 - int num = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString file = "" - const wxString file = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxIconLocation* returns = new wxIconLocation(file, num); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconLocation); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconLocation); - - return 1; -} - -#endif // defined(__WXMSW__) - -#if !defined(__WXMSW__) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconLocation_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxIconLocation_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_constructor[1] = {{ wxLua_wxIconLocation_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxIconLocation_constructor }}; -// !%msw wxIconLocation(const wxString& filename = ""); -static int LUACALL wxLua_wxIconLocation_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString filename = "" - const wxString filename = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxIconLocation* returns = new wxIconLocation(filename); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconLocation); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconLocation); - - return 1; -} - -#endif // !defined(__WXMSW__) - - - -#if (defined(__WXMSW__))||(!defined(__WXMSW__)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconLocation_constructor_overload[] = -{ - -#if defined(__WXMSW__) - { wxLua_wxIconLocation_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxIconLocation_constructor1 }, -#endif // defined(__WXMSW__) - -#if !defined(__WXMSW__) - { wxLua_wxIconLocation_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxIconLocation_constructor }, -#endif // !defined(__WXMSW__) -}; -static int s_wxluafunc_wxLua_wxIconLocation_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxIconLocation_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (defined(__WXMSW__))||(!defined(__WXMSW__)) - -void wxLua_wxIconLocation_delete_function(void** p) -{ - wxIconLocation* o = (wxIconLocation*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIconLocation_methods[] = { - { "GetFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconLocation_GetFileName, 1, NULL }, - -#if defined(__WXMSW__) - { "GetIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconLocation_GetIndex, 1, NULL }, -#endif // defined(__WXMSW__) - - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconLocation_IsOk, 1, NULL }, - { "SetFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconLocation_SetFileName, 1, NULL }, - -#if defined(__WXMSW__) - { "SetIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconLocation_SetIndex, 1, NULL }, -#endif // defined(__WXMSW__) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIconLocation_delete, 1, NULL }, - -#if (defined(__WXMSW__))||(!defined(__WXMSW__)) - { "wxIconLocation", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIconLocation_constructor_overload, s_wxluafunc_wxLua_wxIconLocation_constructor_overload_count, 0 }, -#endif // (defined(__WXMSW__))||(!defined(__WXMSW__)) - - { 0, 0, 0, 0 }, -}; - -int wxIconLocation_methodCount = sizeof(wxIconLocation_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxFileType::MessageParameters -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileType::MessageParameters' -int wxluatype_wxFileType_MessageParameters = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_MessageParameters_GetFileName[] = { &wxluatype_wxFileType_MessageParameters, NULL }; -static int LUACALL wxLua_wxFileType_MessageParameters_GetFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_MessageParameters_GetFileName[1] = {{ wxLua_wxFileType_MessageParameters_GetFileName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileType_MessageParameters_GetFileName }}; -// wxString GetFileName() const; -static int LUACALL wxLua_wxFileType_MessageParameters_GetFileName(lua_State *L) -{ - // get this - wxFileType::MessageParameters * self = (wxFileType::MessageParameters *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType_MessageParameters); - // call GetFileName - wxString returns = (self->GetFileName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_MessageParameters_GetMimeType[] = { &wxluatype_wxFileType_MessageParameters, NULL }; -static int LUACALL wxLua_wxFileType_MessageParameters_GetMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_MessageParameters_GetMimeType[1] = {{ wxLua_wxFileType_MessageParameters_GetMimeType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileType_MessageParameters_GetMimeType }}; -// wxString GetMimeType() const; -static int LUACALL wxLua_wxFileType_MessageParameters_GetMimeType(lua_State *L) -{ - // get this - wxFileType::MessageParameters * self = (wxFileType::MessageParameters *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType_MessageParameters); - // call GetMimeType - wxString returns = (self->GetMimeType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_MessageParameters_GetParamValue[] = { &wxluatype_wxFileType_MessageParameters, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileType_MessageParameters_GetParamValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_MessageParameters_GetParamValue[1] = {{ wxLua_wxFileType_MessageParameters_GetParamValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileType_MessageParameters_GetParamValue }}; -// virtual wxString GetParamValue(const wxString& name) const; -static int LUACALL wxLua_wxFileType_MessageParameters_GetParamValue(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxFileType::MessageParameters * self = (wxFileType::MessageParameters *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType_MessageParameters); - // call GetParamValue - wxString returns = (self->GetParamValue(name)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_MessageParameters_delete[] = { &wxluatype_wxFileType_MessageParameters, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_MessageParameters_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileType_MessageParameters_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_MessageParameters_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileType_MessageParameters_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_MessageParameters_constructor[1] = {{ wxLua_wxFileType_MessageParameters_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxFileType_MessageParameters_constructor }}; -// wxFileType::MessageParameters(const wxString& filename, const wxString& mimetype = ""); -static int LUACALL wxLua_wxFileType_MessageParameters_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString mimetype = "" - const wxString mimetype = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileType::MessageParameters* returns = new wxFileType::MessageParameters(filename, mimetype); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileType_MessageParameters); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileType_MessageParameters); - - return 1; -} - - - -void wxLua_wxFileType_MessageParameters_delete_function(void** p) -{ - wxFileType::MessageParameters* o = (wxFileType::MessageParameters*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileType_MessageParameters_methods[] = { - { "GetFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_MessageParameters_GetFileName, 1, NULL }, - { "GetMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_MessageParameters_GetMimeType, 1, NULL }, - { "GetParamValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_MessageParameters_GetParamValue, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileType_MessageParameters_delete, 1, NULL }, - { "wxFileType_MessageParameters", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileType_MessageParameters_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxFileType_MessageParameters_methodCount = sizeof(wxFileType_MessageParameters_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxFileType -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileType' -int wxluatype_wxFileType = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_ExpandCommand[] = { &wxluatype_TSTRING, &wxluatype_wxFileType_MessageParameters, NULL }; -static int LUACALL wxLua_wxFileType_ExpandCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_ExpandCommand[1] = {{ wxLua_wxFileType_ExpandCommand, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxFileType_ExpandCommand }}; -// static wxString ExpandCommand(const wxString& command, const wxFileType::MessageParameters& params); -static int LUACALL wxLua_wxFileType_ExpandCommand(lua_State *L) -{ - // const wxFileType::MessageParameters params - const wxFileType::MessageParameters * params = (const wxFileType::MessageParameters *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileType_MessageParameters); - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 1); - // call ExpandCommand - wxString returns = (wxFileType::ExpandCommand(command, *params)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetAllCommands[] = { &wxluatype_wxFileType, &wxluatype_wxArrayString, &wxluatype_wxArrayString, &wxluatype_wxFileType_MessageParameters, NULL }; -static int LUACALL wxLua_wxFileType_GetAllCommands(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetAllCommands[1] = {{ wxLua_wxFileType_GetAllCommands, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxFileType_GetAllCommands }}; -// size_t GetAllCommands(wxArrayString *verbs, wxArrayString *commands, const wxFileType::MessageParameters& params) const; -static int LUACALL wxLua_wxFileType_GetAllCommands(lua_State *L) -{ - // const wxFileType::MessageParameters params - const wxFileType::MessageParameters * params = (const wxFileType::MessageParameters *)wxluaT_getuserdatatype(L, 4, wxluatype_wxFileType_MessageParameters); - // wxArrayString commands - wxArrayString * commands = (wxArrayString *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayString); - // wxArrayString verbs - wxArrayString * verbs = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetAllCommands - size_t returns = (self->GetAllCommands(verbs, commands, *params)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxLUA_USE_wxArrayString - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetDescription[] = { &wxluatype_wxFileType, NULL }; -static int LUACALL wxLua_wxFileType_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetDescription[1] = {{ wxLua_wxFileType_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileType_GetDescription }}; -// %override wxLua_wxFileType_GetDescription -// bool GetDescription(wxString *desc) const; -static int LUACALL wxLua_wxFileType_GetDescription(lua_State *L) -{ - // wxString desc - wxString desc; // = wxlua_getwxStringtype(L, 2); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetDescription - bool returns = (self->GetDescription(&desc)); - // push the result flag - lua_pushboolean(L, returns); - wxlua_pushwxString(L, desc); - - return 2; -} - - - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetExtensions[] = { &wxluatype_wxFileType, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxFileType_GetExtensions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetExtensions[1] = {{ wxLua_wxFileType_GetExtensions, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileType_GetExtensions }}; -// bool GetExtensions(wxArrayString& extensions); -static int LUACALL wxLua_wxFileType_GetExtensions(lua_State *L) -{ - // wxArrayString extensions - wxArrayString * extensions = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetExtensions - bool returns = (self->GetExtensions(*extensions)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxLUA_USE_wxArrayString - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetIcon[] = { &wxluatype_wxFileType, &wxluatype_wxIconLocation, NULL }; -static int LUACALL wxLua_wxFileType_GetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetIcon[1] = {{ wxLua_wxFileType_GetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileType_GetIcon }}; -// bool GetIcon(wxIconLocation *iconloc) const; -static int LUACALL wxLua_wxFileType_GetIcon(lua_State *L) -{ - // wxIconLocation iconloc - wxIconLocation * iconloc = (wxIconLocation *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIconLocation); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetIcon - bool returns = (self->GetIcon(iconloc)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetMimeTypes[] = { &wxluatype_wxFileType, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxFileType_GetMimeTypes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetMimeTypes[1] = {{ wxLua_wxFileType_GetMimeTypes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileType_GetMimeTypes }}; -// bool GetMimeTypes(wxArrayString& mimeTypes) const; -static int LUACALL wxLua_wxFileType_GetMimeTypes(lua_State *L) -{ - // wxArrayString mimeTypes - wxArrayString * mimeTypes = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetMimeTypes - bool returns = (self->GetMimeTypes(*mimeTypes)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxLUA_USE_wxArrayString - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetOpenCommand[] = { &wxluatype_wxFileType, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileType_GetOpenCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetOpenCommand[1] = {{ wxLua_wxFileType_GetOpenCommand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileType_GetOpenCommand }}; -// wxString GetOpenCommand(const wxString& filename) const; -static int LUACALL wxLua_wxFileType_GetOpenCommand(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetOpenCommand - wxString returns = (self->GetOpenCommand(filename)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_GetPrintCommand[] = { &wxluatype_wxFileType, &wxluatype_wxFileType_MessageParameters, NULL }; -static int LUACALL wxLua_wxFileType_GetPrintCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_GetPrintCommand[1] = {{ wxLua_wxFileType_GetPrintCommand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileType_GetPrintCommand }}; -// %override wxLua_wxFileType_GetPrintCommand -// bool GetPrintCommand(wxString *printCmd, const wxFileType::MessageParameters& params) const; -static int LUACALL wxLua_wxFileType_GetPrintCommand(lua_State *L) -{ - // const wxFileType::MessageParameters params - const wxFileType::MessageParameters * params = (const wxFileType::MessageParameters *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFileType_MessageParameters); - // wxString printCmd - wxString printCmd; // = wxlua_getwxStringtype(L, 2); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call GetPrintCommand - bool returns = (self->GetPrintCommand(&printCmd, *params)); - // push the result flag - lua_pushboolean(L, returns); - wxlua_pushwxString(L, printCmd); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_SetCommand[] = { &wxluatype_wxFileType, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFileType_SetCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_SetCommand[1] = {{ wxLua_wxFileType_SetCommand, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxFileType_SetCommand }}; -// bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = true); -static int LUACALL wxLua_wxFileType_SetCommand(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool overwriteprompt = true - bool overwriteprompt = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxString verb - const wxString verb = wxlua_getwxStringtype(L, 3); - // const wxString cmd - const wxString cmd = wxlua_getwxStringtype(L, 2); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call SetCommand - bool returns = (self->SetCommand(cmd, verb, overwriteprompt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_SetDefaultIcon[] = { &wxluatype_wxFileType, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileType_SetDefaultIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_SetDefaultIcon[1] = {{ wxLua_wxFileType_SetDefaultIcon, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFileType_SetDefaultIcon }}; -// bool SetDefaultIcon(const wxString& cmd = "", int index = 0); -static int LUACALL wxLua_wxFileType_SetDefaultIcon(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = 0 - int index = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString cmd = "" - const wxString cmd = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call SetDefaultIcon - bool returns = (self->SetDefaultIcon(cmd, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_Unassociate[] = { &wxluatype_wxFileType, NULL }; -static int LUACALL wxLua_wxFileType_Unassociate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_Unassociate[1] = {{ wxLua_wxFileType_Unassociate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileType_Unassociate }}; -// bool Unassociate(); -static int LUACALL wxLua_wxFileType_Unassociate(lua_State *L) -{ - // get this - wxFileType * self = (wxFileType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileType); - // call Unassociate - bool returns = (self->Unassociate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_delete[] = { &wxluatype_wxFileType, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileType_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileType_constructor[] = { &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxFileType_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileType_constructor[1] = {{ wxLua_wxFileType_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileType_constructor }}; -// wxFileType(const wxFileTypeInfo& ftInfo); -static int LUACALL wxLua_wxFileType_constructor(lua_State *L) -{ - // const wxFileTypeInfo ftInfo - const wxFileTypeInfo * ftInfo = (const wxFileTypeInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileTypeInfo); - // call constructor - wxFileType* returns = new wxFileType(*ftInfo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileType); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileType); - - return 1; -} - - - -void wxLua_wxFileType_delete_function(void** p) -{ - wxFileType* o = (wxFileType*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileType_methods[] = { - { "ExpandCommand", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileType_ExpandCommand, 1, NULL }, - -#if wxLUA_USE_wxArrayString - { "GetAllCommands", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetAllCommands, 1, NULL }, -#endif // wxLUA_USE_wxArrayString - - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetDescription, 1, NULL }, - -#if wxLUA_USE_wxArrayString - { "GetExtensions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetExtensions, 1, NULL }, -#endif // wxLUA_USE_wxArrayString - - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetIcon, 1, NULL }, - -#if wxLUA_USE_wxArrayString - { "GetMimeTypes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetMimeTypes, 1, NULL }, -#endif // wxLUA_USE_wxArrayString - - { "GetOpenCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetOpenCommand, 1, NULL }, - { "GetPrintCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_GetPrintCommand, 1, NULL }, - { "SetCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_SetCommand, 1, NULL }, - { "SetDefaultIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_SetDefaultIcon, 1, NULL }, - { "Unassociate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileType_Unassociate, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileType_delete, 1, NULL }, - { "wxFileType", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileType_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxFileType_methodCount = sizeof(wxFileType_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxMimeTypesManager -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMimeTypesManager' -int wxluatype_wxMimeTypesManager = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_AddFallback[] = { &wxluatype_wxMimeTypesManager, &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_AddFallback(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_AddFallback[1] = {{ wxLua_wxMimeTypesManager_AddFallback, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_AddFallback }}; -// void AddFallback(const wxFileTypeInfo& ft); -static int LUACALL wxLua_wxMimeTypesManager_AddFallback(lua_State *L) -{ - // const wxFileTypeInfo ft - const wxFileTypeInfo * ft = (const wxFileTypeInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileTypeInfo); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call AddFallback - self->AddFallback(*ft); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_Associate[] = { &wxluatype_wxMimeTypesManager, &wxluatype_wxFileTypeInfo, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_Associate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_Associate[1] = {{ wxLua_wxMimeTypesManager_Associate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_Associate }}; -// wxFileType *Associate(const wxFileTypeInfo& ftInfo); -static int LUACALL wxLua_wxMimeTypesManager_Associate(lua_State *L) -{ - // const wxFileTypeInfo ftInfo - const wxFileTypeInfo * ftInfo = (const wxFileTypeInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileTypeInfo); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call Associate - wxFileType* returns = (wxFileType*)self->Associate(*ftInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileType); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_ClearData[] = { &wxluatype_wxMimeTypesManager, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_ClearData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_ClearData[1] = {{ wxLua_wxMimeTypesManager_ClearData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMimeTypesManager_ClearData }}; -// void ClearData(); -static int LUACALL wxLua_wxMimeTypesManager_ClearData(lua_State *L) -{ - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call ClearData - self->ClearData(); - - return 0; -} - - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_EnumAllFileTypes[] = { &wxluatype_wxMimeTypesManager, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_EnumAllFileTypes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_EnumAllFileTypes[1] = {{ wxLua_wxMimeTypesManager_EnumAllFileTypes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_EnumAllFileTypes }}; -// size_t EnumAllFileTypes(wxArrayString& mimetypes); -static int LUACALL wxLua_wxMimeTypesManager_EnumAllFileTypes(lua_State *L) -{ - // wxArrayString mimetypes - wxArrayString * mimetypes = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call EnumAllFileTypes - size_t returns = (self->EnumAllFileTypes(*mimetypes)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxLUA_USE_wxArrayString - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_GetFileTypeFromExtension[] = { &wxluatype_wxMimeTypesManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_GetFileTypeFromExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_GetFileTypeFromExtension[1] = {{ wxLua_wxMimeTypesManager_GetFileTypeFromExtension, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_GetFileTypeFromExtension }}; -// wxFileType *GetFileTypeFromExtension(const wxString& ext); -static int LUACALL wxLua_wxMimeTypesManager_GetFileTypeFromExtension(lua_State *L) -{ - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 2); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call GetFileTypeFromExtension - wxFileType* returns = (wxFileType*)self->GetFileTypeFromExtension(ext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileType); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_GetFileTypeFromMimeType[] = { &wxluatype_wxMimeTypesManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_GetFileTypeFromMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_GetFileTypeFromMimeType[1] = {{ wxLua_wxMimeTypesManager_GetFileTypeFromMimeType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_GetFileTypeFromMimeType }}; -// wxFileType *GetFileTypeFromMimeType(const wxString& mimeType); -static int LUACALL wxLua_wxMimeTypesManager_GetFileTypeFromMimeType(lua_State *L) -{ - // const wxString mimeType - const wxString mimeType = wxlua_getwxStringtype(L, 2); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call GetFileTypeFromMimeType - wxFileType* returns = (wxFileType*)self->GetFileTypeFromMimeType(mimeType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileType); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_Initialize[] = { &wxluatype_wxMimeTypesManager, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_Initialize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_Initialize[1] = {{ wxLua_wxMimeTypesManager_Initialize, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxMimeTypesManager_Initialize }}; -// void Initialize(int mailcapStyle = wxMAILCAP_ALL, const wxString& extraDir = ""); -static int LUACALL wxLua_wxMimeTypesManager_Initialize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString extraDir = "" - const wxString extraDir = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int mailcapStyle = wxMAILCAP_ALL - int mailcapStyle = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxMAILCAP_ALL); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call Initialize - self->Initialize(mailcapStyle, extraDir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_IsOfType[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_IsOfType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_IsOfType[1] = {{ wxLua_wxMimeTypesManager_IsOfType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_IsOfType }}; -// static bool IsOfType(const wxString& mimeType, const wxString& wildcard); -static int LUACALL wxLua_wxMimeTypesManager_IsOfType(lua_State *L) -{ - // const wxString wildcard - const wxString wildcard = wxlua_getwxStringtype(L, 2); - // const wxString mimeType - const wxString mimeType = wxlua_getwxStringtype(L, 1); - // call IsOfType - bool returns = (wxMimeTypesManager::IsOfType(mimeType, wildcard)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if !wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_ReadMailcap[] = { &wxluatype_wxMimeTypesManager, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_ReadMailcap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_ReadMailcap[1] = {{ wxLua_wxMimeTypesManager_ReadMailcap, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMimeTypesManager_ReadMailcap }}; -// !%wxchkver_2_9 bool ReadMailcap(const wxString& filename, bool fallback = false); -static int LUACALL wxLua_wxMimeTypesManager_ReadMailcap(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool fallback = false - bool fallback = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call ReadMailcap - bool returns = (self->ReadMailcap(filename, fallback)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_ReadMimeTypes[] = { &wxluatype_wxMimeTypesManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_ReadMimeTypes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_ReadMimeTypes[1] = {{ wxLua_wxMimeTypesManager_ReadMimeTypes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_ReadMimeTypes }}; -// !%wxchkver_2_9 bool ReadMimeTypes(const wxString& filename); -static int LUACALL wxLua_wxMimeTypesManager_ReadMimeTypes(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call ReadMimeTypes - bool returns = (self->ReadMimeTypes(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,9,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMimeTypesManager_Unassociate[] = { &wxluatype_wxMimeTypesManager, &wxluatype_wxFileType, NULL }; -static int LUACALL wxLua_wxMimeTypesManager_Unassociate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMimeTypesManager_Unassociate[1] = {{ wxLua_wxMimeTypesManager_Unassociate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMimeTypesManager_Unassociate }}; -// bool Unassociate(wxFileType *ft); -static int LUACALL wxLua_wxMimeTypesManager_Unassociate(lua_State *L) -{ - // wxFileType ft - wxFileType * ft = (wxFileType *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileType); - // get this - wxMimeTypesManager * self = (wxMimeTypesManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMimeTypesManager); - // call Unassociate - bool returns = (self->Unassociate(ft)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - -void wxLua_wxMimeTypesManager_delete_function(void** p) -{ - wxMimeTypesManager* o = (wxMimeTypesManager*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMimeTypesManager_methods[] = { - { "AddFallback", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_AddFallback, 1, NULL }, - { "Associate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_Associate, 1, NULL }, - { "ClearData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_ClearData, 1, NULL }, - -#if wxLUA_USE_wxArrayString - { "EnumAllFileTypes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_EnumAllFileTypes, 1, NULL }, -#endif // wxLUA_USE_wxArrayString - - { "GetFileTypeFromExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_GetFileTypeFromExtension, 1, NULL }, - { "GetFileTypeFromMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_GetFileTypeFromMimeType, 1, NULL }, - { "Initialize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_Initialize, 1, NULL }, - { "IsOfType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMimeTypesManager_IsOfType, 1, NULL }, - -#if !wxCHECK_VERSION(2,9,0) - { "ReadMailcap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_ReadMailcap, 1, NULL }, - { "ReadMimeTypes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_ReadMimeTypes, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,0) - - { "Unassociate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMimeTypesManager_Unassociate, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxMimeTypesManager_methodCount = sizeof(wxMimeTypesManager_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxStreamBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStreamBase' -int wxluatype_wxStreamBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStreamBase_GetLastError[] = { &wxluatype_wxStreamBase, NULL }; -static int LUACALL wxLua_wxStreamBase_GetLastError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStreamBase_GetLastError[1] = {{ wxLua_wxStreamBase_GetLastError, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStreamBase_GetLastError }}; -// wxStreamError GetLastError() const; -static int LUACALL wxLua_wxStreamBase_GetLastError(lua_State *L) -{ - // get this - wxStreamBase * self = (wxStreamBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStreamBase); - // call GetLastError - wxStreamError returns = (self->GetLastError()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStreamBase_GetLength[] = { &wxluatype_wxStreamBase, NULL }; -static int LUACALL wxLua_wxStreamBase_GetLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStreamBase_GetLength[1] = {{ wxLua_wxStreamBase_GetLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStreamBase_GetLength }}; -// %wxchkver_2_6 wxFileOffset GetLength() const; -static int LUACALL wxLua_wxStreamBase_GetLength(lua_State *L) -{ - // get this - wxStreamBase * self = (wxStreamBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStreamBase); - // call GetLength - wxFileOffset returns = (self->GetLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStreamBase_GetSize[] = { &wxluatype_wxStreamBase, NULL }; -static int LUACALL wxLua_wxStreamBase_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStreamBase_GetSize[1] = {{ wxLua_wxStreamBase_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStreamBase_GetSize }}; -// size_t GetSize() const; -static int LUACALL wxLua_wxStreamBase_GetSize(lua_State *L) -{ - // get this - wxStreamBase * self = (wxStreamBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStreamBase); - // call GetSize - size_t returns = (self->GetSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStreamBase_IsOk[] = { &wxluatype_wxStreamBase, NULL }; -static int LUACALL wxLua_wxStreamBase_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStreamBase_IsOk[1] = {{ wxLua_wxStreamBase_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStreamBase_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxStreamBase_IsOk(lua_State *L) -{ - // get this - wxStreamBase * self = (wxStreamBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStreamBase); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStreamBase_IsSeekable[] = { &wxluatype_wxStreamBase, NULL }; -static int LUACALL wxLua_wxStreamBase_IsSeekable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStreamBase_IsSeekable[1] = {{ wxLua_wxStreamBase_IsSeekable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStreamBase_IsSeekable }}; -// bool IsSeekable() const; -static int LUACALL wxLua_wxStreamBase_IsSeekable(lua_State *L) -{ - // get this - wxStreamBase * self = (wxStreamBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStreamBase); - // call IsSeekable - bool returns = (self->IsSeekable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStreamBase_Reset[] = { &wxluatype_wxStreamBase, NULL }; -static int LUACALL wxLua_wxStreamBase_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStreamBase_Reset[1] = {{ wxLua_wxStreamBase_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStreamBase_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxStreamBase_Reset(lua_State *L) -{ - // get this - wxStreamBase * self = (wxStreamBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStreamBase); - // call Reset - self->Reset(); - - return 0; -} - - - - -void wxLua_wxStreamBase_delete_function(void** p) -{ - wxStreamBase* o = (wxStreamBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStreamBase_methods[] = { - { "GetLastError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetLastError, 1, NULL }, - -#if (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) - { "GetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetLength, 1, NULL }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) - - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetSize, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_IsOk, 1, NULL }, - { "IsSeekable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_IsSeekable, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_Reset, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStreamBase_methodCount = sizeof(wxStreamBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxInputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxInputStream' -int wxluatype_wxInputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_CanRead[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxInputStream_CanRead(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_CanRead[1] = {{ wxLua_wxInputStream_CanRead, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInputStream_CanRead }}; -// bool CanRead() const; -static int LUACALL wxLua_wxInputStream_CanRead(lua_State *L) -{ - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call CanRead - bool returns = (self->CanRead()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_Eof[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxInputStream_Eof(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Eof[1] = {{ wxLua_wxInputStream_Eof, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInputStream_Eof }}; -// bool Eof(); -static int LUACALL wxLua_wxInputStream_Eof(lua_State *L) -{ - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call Eof - bool returns = (self->Eof()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_GetC[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxInputStream_GetC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_GetC[1] = {{ wxLua_wxInputStream_GetC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInputStream_GetC }}; -// char GetC(); -static int LUACALL wxLua_wxInputStream_GetC(lua_State *L) -{ - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call GetC - char returns = (self->GetC()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_LastRead[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxInputStream_LastRead(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_LastRead[1] = {{ wxLua_wxInputStream_LastRead, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInputStream_LastRead }}; -// size_t LastRead() const; -static int LUACALL wxLua_wxInputStream_LastRead(lua_State *L) -{ - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call LastRead - size_t returns = (self->LastRead()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_Peek[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxInputStream_Peek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Peek[1] = {{ wxLua_wxInputStream_Peek, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInputStream_Peek }}; -// char Peek(); -static int LUACALL wxLua_wxInputStream_Peek(lua_State *L) -{ - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call Peek - char returns = (self->Peek()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_Read1[] = { &wxluatype_wxInputStream, &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxInputStream_Read1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Read1[1] = {{ wxLua_wxInputStream_Read1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInputStream_Read1 }}; -// wxInputStream& Read(wxOutputStream& stream_in); -static int LUACALL wxLua_wxInputStream_Read1(lua_State *L) -{ - // wxOutputStream stream_in - wxOutputStream * stream_in = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call Read - wxInputStream* returns = (wxInputStream*)&self->Read(*stream_in); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_Read[] = { &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxInputStream_Read(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Read[1] = {{ wxLua_wxInputStream_Read, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInputStream_Read }}; -// %override wxLua_wxInputStream_Read -// wxInputStream& Read(void *buffer, size_t size) -static int LUACALL wxLua_wxInputStream_Read(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getintegertype(L, 2); - // void *buffer - void *buffer = malloc(size); - // get this - wxInputStream *self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - if (buffer != NULL) - { - // call Read - // wxInputStream *returns = & // we don't return wxInputStream - self->Read(buffer, size); - // only return the data that was read, they already have self - //wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - lua_pushlstring(L, (const char *)buffer, size); - free(buffer); - return 1; - } - return 0; -} - - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_SeekI[] = { &wxluatype_wxInputStream, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxInputStream_SeekI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_SeekI[1] = {{ wxLua_wxInputStream_SeekI, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxInputStream_SeekI }}; -// wxFileOffset SeekI(wxFileOffset pos, wxSeekMode mode = wxFromStart); -static int LUACALL wxLua_wxInputStream_SeekI(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSeekMode mode = wxFromStart - wxSeekMode mode = (argCount >= 3 ? (wxSeekMode)wxlua_getenumtype(L, 3) : wxFromStart); - // wxFileOffset pos - wxFileOffset pos = (wxFileOffset)wxlua_getuintegertype(L, 2); - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call SeekI - wxFileOffset returns = (self->SeekI(pos, mode)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_TellI[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxInputStream_TellI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_TellI[1] = {{ wxLua_wxInputStream_TellI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInputStream_TellI }}; -// wxFileOffset TellI() const; -static int LUACALL wxLua_wxInputStream_TellI(lua_State *L) -{ - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call TellI - wxFileOffset returns = (self->TellI()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_Ungetch1[] = { &wxluatype_wxInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxInputStream_Ungetch1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Ungetch1[1] = {{ wxLua_wxInputStream_Ungetch1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInputStream_Ungetch1 }}; -// bool Ungetch(char c); -static int LUACALL wxLua_wxInputStream_Ungetch1(lua_State *L) -{ - // char c - char c = (char)wxlua_getnumbertype(L, 2); - // get this - wxInputStream * self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call Ungetch - bool returns = (self->Ungetch(c)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#define wxLua_wxInputStream_Ungetch wxLua_wxInputStream_UngetchString -static wxLuaArgType s_wxluatypeArray_wxLua_wxInputStream_Ungetch[] = { &wxluatype_wxInputStream, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxInputStream_Ungetch(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Ungetch[1] = {{ wxLua_wxInputStream_Ungetch, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxInputStream_Ungetch }}; -// %override wxLua_wxInputStream_UngetchString -// size_t Ungetch(const char* buffer, size_t size) -static int LUACALL wxLua_wxInputStream_UngetchString(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getintegertype(L, 3); - // const char* buffer - const char *buffer = (const char *)lua_tostring(L, 2); - // get this - wxInputStream *self = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call Ungetch - size_t returns = self->Ungetch(buffer, size); - // push the result number - lua_pushinteger(L, returns); - // return the number of parameters - return 1; -} - - - - - -#if (wxUSE_STREAMS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Read_overload[] = -{ - { wxLua_wxInputStream_Read1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInputStream_Read1 }, - { wxLua_wxInputStream_Read, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInputStream_Read }, -}; -static int s_wxluafunc_wxLua_wxInputStream_Read_overload_count = sizeof(s_wxluafunc_wxLua_wxInputStream_Read_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInputStream_Ungetch_overload[] = -{ - { wxLua_wxInputStream_Ungetch1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInputStream_Ungetch1 }, - { wxLua_wxInputStream_Ungetch, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxInputStream_Ungetch }, -}; -static int s_wxluafunc_wxLua_wxInputStream_Ungetch_overload_count = sizeof(s_wxluafunc_wxLua_wxInputStream_Ungetch_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_STREAMS) - -void wxLua_wxInputStream_delete_function(void** p) -{ - wxInputStream* o = (wxInputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxInputStream_methods[] = { - { "CanRead", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_CanRead, 1, NULL }, - { "Eof", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_Eof, 1, NULL }, - { "GetC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_GetC, 1, NULL }, - { "LastRead", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_LastRead, 1, NULL }, - { "Peek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_Peek, 1, NULL }, - -#if (wxUSE_STREAMS) - { "Read", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_Read_overload, s_wxluafunc_wxLua_wxInputStream_Read_overload_count, 0 }, -#endif // (wxUSE_STREAMS) - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - { "SeekI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_SeekI, 1, NULL }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - - { "TellI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_TellI, 1, NULL }, - -#if (wxUSE_STREAMS) - { "Ungetch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInputStream_Ungetch_overload, s_wxluafunc_wxLua_wxInputStream_Ungetch_overload_count, 0 }, -#endif // (wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxInputStream_methodCount = sizeof(wxInputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxOutputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxOutputStream' -int wxluatype_wxOutputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_Close[] = { &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxOutputStream_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_Close[1] = {{ wxLua_wxOutputStream_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxOutputStream_Close }}; -// bool Close(); -static int LUACALL wxLua_wxOutputStream_Close(lua_State *L) -{ - // get this - wxOutputStream * self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call Close - bool returns = (self->Close()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_LastWrite[] = { &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxOutputStream_LastWrite(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_LastWrite[1] = {{ wxLua_wxOutputStream_LastWrite, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxOutputStream_LastWrite }}; -// size_t LastWrite() const; -static int LUACALL wxLua_wxOutputStream_LastWrite(lua_State *L) -{ - // get this - wxOutputStream * self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call LastWrite - size_t returns = (self->LastWrite()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_PutC[] = { &wxluatype_wxOutputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxOutputStream_PutC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_PutC[1] = {{ wxLua_wxOutputStream_PutC, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxOutputStream_PutC }}; -// void PutC(char c); -static int LUACALL wxLua_wxOutputStream_PutC(lua_State *L) -{ - // char c - char c = (char)wxlua_getnumbertype(L, 2); - // get this - wxOutputStream * self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call PutC - self->PutC(c); - - return 0; -} - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_SeekO[] = { &wxluatype_wxOutputStream, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxOutputStream_SeekO(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_SeekO[1] = {{ wxLua_wxOutputStream_SeekO, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxOutputStream_SeekO }}; -// wxFileOffset SeekO(wxFileOffset pos, wxSeekMode mode = wxFromStart); -static int LUACALL wxLua_wxOutputStream_SeekO(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSeekMode mode = wxFromStart - wxSeekMode mode = (argCount >= 3 ? (wxSeekMode)wxlua_getenumtype(L, 3) : wxFromStart); - // wxFileOffset pos - wxFileOffset pos = (wxFileOffset)wxlua_getuintegertype(L, 2); - // get this - wxOutputStream * self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call SeekO - wxFileOffset returns = (self->SeekO(pos, mode)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_TellO[] = { &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxOutputStream_TellO(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_TellO[1] = {{ wxLua_wxOutputStream_TellO, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxOutputStream_TellO }}; -// wxFileOffset TellO() const; -static int LUACALL wxLua_wxOutputStream_TellO(lua_State *L) -{ - // get this - wxOutputStream * self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call TellO - wxFileOffset returns = (self->TellO()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_Write1[] = { &wxluatype_wxOutputStream, &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxOutputStream_Write1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_Write1[1] = {{ wxLua_wxOutputStream_Write1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxOutputStream_Write1 }}; -// wxOutputStream& Write(wxInputStream& stream_in); -static int LUACALL wxLua_wxOutputStream_Write1(lua_State *L) -{ - // wxInputStream stream_in - wxInputStream * stream_in = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxOutputStream * self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call Write - wxOutputStream* returns = (wxOutputStream*)&self->Write(*stream_in); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxOutputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxOutputStream_Write[] = { &wxluatype_wxOutputStream, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxOutputStream_Write(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_Write[1] = {{ wxLua_wxOutputStream_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxOutputStream_Write }}; -// %override wxLua_wxOutputStream_Write -// wxOutputStream& Write(const void *buffer, size_t size) -static int LUACALL wxLua_wxOutputStream_Write(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getintegertype(L, 3); - // const void *buffer - const void *buffer = (void *)lua_tostring(L, 2); - // get this - wxOutputStream *self = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call Write - wxOutputStream *returns = &self->Write(buffer, size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxOutputStream); - // return the number of parameters - return 1; -} - - - - - -#if (wxUSE_STREAMS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxOutputStream_Write_overload[] = -{ - { wxLua_wxOutputStream_Write1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxOutputStream_Write1 }, - { wxLua_wxOutputStream_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxOutputStream_Write }, -}; -static int s_wxluafunc_wxLua_wxOutputStream_Write_overload_count = sizeof(s_wxluafunc_wxLua_wxOutputStream_Write_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_STREAMS) - -void wxLua_wxOutputStream_delete_function(void** p) -{ - wxOutputStream* o = (wxOutputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxOutputStream_methods[] = { - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxOutputStream_Close, 1, NULL }, - { "LastWrite", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxOutputStream_LastWrite, 1, NULL }, - { "PutC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxOutputStream_PutC, 1, NULL }, - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - { "SeekO", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxOutputStream_SeekO, 1, NULL }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - - { "TellO", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxOutputStream_TellO, 1, NULL }, - -#if (wxUSE_STREAMS) - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxOutputStream_Write_overload, s_wxluafunc_wxLua_wxOutputStream_Write_overload_count, 0 }, -#endif // (wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxOutputStream_methodCount = sizeof(wxOutputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxFileInputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileInputStream' -int wxluatype_wxFileInputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileInputStream_Ok[] = { &wxluatype_wxFileInputStream, NULL }; -static int LUACALL wxLua_wxFileInputStream_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileInputStream_Ok[1] = {{ wxLua_wxFileInputStream_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileInputStream_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxFileInputStream_Ok(lua_State *L) -{ - // get this - wxFileInputStream * self = (wxFileInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileInputStream); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileInputStream_delete[] = { &wxluatype_wxFileInputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileInputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileInputStream_delete }}; - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileInputStream_constructor1[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFileInputStream_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileInputStream_constructor1[1] = {{ wxLua_wxFileInputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileInputStream_constructor1 }}; -// wxFileInputStream(wxFile& file); -static int LUACALL wxLua_wxFileInputStream_constructor1(lua_State *L) -{ - // wxFile file - wxFile * file = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call constructor - wxFileInputStream* returns = new wxFileInputStream(*file); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileInputStream); - - return 1; -} - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileInputStream_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileInputStream_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileInputStream_constructor[1] = {{ wxLua_wxFileInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileInputStream_constructor }}; -// wxFileInputStream(const wxString& fileName); -static int LUACALL wxLua_wxFileInputStream_constructor(lua_State *L) -{ - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileInputStream* returns = new wxFileInputStream(fileName); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileInputStream); - - return 1; -} - - - - -#if ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileInputStream_constructor_overload[] = -{ - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - { wxLua_wxFileInputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileInputStream_constructor1 }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - { wxLua_wxFileInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileInputStream_constructor }, -}; -static int s_wxluafunc_wxLua_wxFileInputStream_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFileInputStream_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - -void wxLua_wxFileInputStream_delete_function(void** p) -{ - wxFileInputStream* o = (wxFileInputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileInputStream_methods[] = { - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileInputStream_Ok, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileInputStream_delete, 1, NULL }, - -#if ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - { "wxFileInputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileInputStream_constructor_overload, s_wxluafunc_wxLua_wxFileInputStream_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxFileInputStream_methodCount = sizeof(wxFileInputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxFileOutputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileOutputStream' -int wxluatype_wxFileOutputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileOutputStream_Ok[] = { &wxluatype_wxFileOutputStream, NULL }; -static int LUACALL wxLua_wxFileOutputStream_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileOutputStream_Ok[1] = {{ wxLua_wxFileOutputStream_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileOutputStream_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxFileOutputStream_Ok(lua_State *L) -{ - // get this - wxFileOutputStream * self = (wxFileOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileOutputStream); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileOutputStream_delete[] = { &wxluatype_wxFileOutputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileOutputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileOutputStream_delete }}; - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileOutputStream_constructor1[] = { &wxluatype_wxFile, NULL }; -static int LUACALL wxLua_wxFileOutputStream_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileOutputStream_constructor1[1] = {{ wxLua_wxFileOutputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileOutputStream_constructor1 }}; -// wxFileOutputStream(wxFile& file); -static int LUACALL wxLua_wxFileOutputStream_constructor1(lua_State *L) -{ - // wxFile file - wxFile * file = (wxFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFile); - // call constructor - wxFileOutputStream* returns = new wxFileOutputStream(*file); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileOutputStream); - - return 1; -} - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileOutputStream_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileOutputStream_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileOutputStream_constructor[1] = {{ wxLua_wxFileOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileOutputStream_constructor }}; -// wxFileOutputStream(const wxString& fileName); -static int LUACALL wxLua_wxFileOutputStream_constructor(lua_State *L) -{ - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 1); - // call constructor - wxFileOutputStream* returns = new wxFileOutputStream(fileName); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileOutputStream); - - return 1; -} - - - - -#if ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileOutputStream_constructor_overload[] = -{ - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - { wxLua_wxFileOutputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileOutputStream_constructor1 }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS) - { wxLua_wxFileOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFileOutputStream_constructor }, -}; -static int s_wxluafunc_wxLua_wxFileOutputStream_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFileOutputStream_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - -void wxLua_wxFileOutputStream_delete_function(void** p) -{ - wxFileOutputStream* o = (wxFileOutputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileOutputStream_methods[] = { - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileOutputStream_Ok, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileOutputStream_delete, 1, NULL }, - -#if ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - { "wxFileOutputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileOutputStream_constructor_overload, s_wxluafunc_wxLua_wxFileOutputStream_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFile && wxUSE_FILE) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxFileOutputStream_methodCount = sizeof(wxFileOutputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxMemoryInputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMemoryInputStream' -int wxluatype_wxMemoryInputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryInputStream_delete[] = { &wxluatype_wxMemoryInputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryInputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMemoryInputStream_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryInputStream_constructor1[] = { &wxluatype_wxMemoryOutputStream, NULL }; -static int LUACALL wxLua_wxMemoryInputStream_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryInputStream_constructor1[1] = {{ wxLua_wxMemoryInputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMemoryInputStream_constructor1 }}; -// wxMemoryInputStream(const wxMemoryOutputStream& stream); -static int LUACALL wxLua_wxMemoryInputStream_constructor1(lua_State *L) -{ - // const wxMemoryOutputStream stream - const wxMemoryOutputStream * stream = (const wxMemoryOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryOutputStream); - // call constructor - wxMemoryInputStream* returns = new wxMemoryInputStream(*stream); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryInputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryInputStream_constructor[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryInputStream_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryInputStream_constructor[1] = {{ wxLua_wxMemoryInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMemoryInputStream_constructor }}; -// %override wxLua_wxMemoryInputStream_constructor -// wxMemoryInputStream(const char *data, size_t length) -static int LUACALL wxLua_wxMemoryInputStream_constructor(lua_State *L) -{ - // size_t length - size_t length = (size_t)wxlua_getnumbertype(L, 2); - // const char data - const char* data = (const char*)wxlua_getstringtype(L, 1); - // call constructor - wxMemoryInputStream* returns = new wxMemoryInputStream(data, length); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryInputStream); - - return 1; -} - - - - - -#if (wxUSE_STREAMS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryInputStream_constructor_overload[] = -{ - { wxLua_wxMemoryInputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMemoryInputStream_constructor1 }, - { wxLua_wxMemoryInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMemoryInputStream_constructor }, -}; -static int s_wxluafunc_wxLua_wxMemoryInputStream_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMemoryInputStream_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_STREAMS) - -void wxLua_wxMemoryInputStream_delete_function(void** p) -{ - wxMemoryInputStream* o = (wxMemoryInputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMemoryInputStream_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMemoryInputStream_delete, 1, NULL }, - -#if (wxUSE_STREAMS) - { "wxMemoryInputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMemoryInputStream_constructor_overload, s_wxluafunc_wxLua_wxMemoryInputStream_constructor_overload_count, 0 }, -#endif // (wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxMemoryInputStream_methodCount = sizeof(wxMemoryInputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxMemoryOutputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMemoryOutputStream' -int wxluatype_wxMemoryOutputStream = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryOutputStream_CopyTo[] = { &wxluatype_wxMemoryOutputStream, &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxMemoryOutputStream_CopyTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryOutputStream_CopyTo[1] = {{ wxLua_wxMemoryOutputStream_CopyTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryOutputStream_CopyTo }}; -// %override wxLua_wxMemoryOutputStream_CopyTo -// size_t CopyTo(wxMemoryBuffer &buffer, size_t length = 0); -// C++ Func: wxMemoryOutputStream(void *data = NULL, size_t length = 0); -static int LUACALL wxLua_wxMemoryOutputStream_CopyTo(lua_State *L) -{ - // size_t length - size_t length = (lua_gettop(L) >= 2 ? (size_t)wxlua_getnumbertype(L, 2) : 0); - // wxMemoryBuffer buffer - wxMemoryBuffer * buffer = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMemoryBuffer); - void *data; - if (length > 0) { - data = buffer->GetWriteBuf(length); - } else { - data = buffer->GetData(); - length = buffer->GetDataLen(); - } - // get this - wxMemoryOutputStream * self = (wxMemoryOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryOutputStream); - // call CopyTo - size_t returns = (self->CopyTo(data, length)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); - } else -#endif - { - lua_pushnumber(L, returns); - } - return 1; -} - - -#endif // (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryOutputStream_delete[] = { &wxluatype_wxMemoryOutputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryOutputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMemoryOutputStream_delete }}; - - -#if (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryOutputStream_constructor1[] = { &wxluatype_wxMemoryBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryOutputStream_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryOutputStream_constructor1[1] = {{ wxLua_wxMemoryOutputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxMemoryOutputStream_constructor1 }}; -// %override wxLua_wxMemoryOutputStream_constructor1 -// wxMemoryOutputStream(wxMemoryBuffer &buffer, size_t length = 0); -// C++ Func: wxMemoryOutputStream(void *data = NULL, size_t length = 0); -static int LUACALL wxLua_wxMemoryOutputStream_constructor1(lua_State *L) -{ - // size_t length - size_t length = (lua_gettop(L) >= 2 ? (size_t)wxlua_getnumbertype(L, 2) : 0); - // wxMemoryBuffer buffer - wxMemoryBuffer * buffer = (wxMemoryBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryBuffer); - void *data; - if (length > 0) { - data = buffer->GetWriteBuf(length); - } else { - data = buffer->GetData(); - length = buffer->GetDataLen(); - } - // call constructor - wxMemoryOutputStream* returns = new wxMemoryOutputStream(data, length); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryOutputStream); - - return 1; -} - - -#endif // (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) - -static int LUACALL wxLua_wxMemoryOutputStream_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryOutputStream_constructor[1] = {{ wxLua_wxMemoryOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMemoryOutputStream(); -static int LUACALL wxLua_wxMemoryOutputStream_constructor(lua_State *L) -{ - // call constructor - wxMemoryOutputStream* returns = new wxMemoryOutputStream(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryOutputStream); - - return 1; -} - - - - -#if ((wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS))||(wxUSE_STREAMS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryOutputStream_constructor_overload[] = -{ - -#if (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) - { wxLua_wxMemoryOutputStream_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxMemoryOutputStream_constructor1 }, -#endif // (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) - { wxLua_wxMemoryOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxMemoryOutputStream_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMemoryOutputStream_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - -void wxLua_wxMemoryOutputStream_delete_function(void** p) -{ - wxMemoryOutputStream* o = (wxMemoryOutputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMemoryOutputStream_methods[] = { -#if (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) - { "CopyTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryOutputStream_CopyTo, 1, NULL }, -#endif // (wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMemoryOutputStream_delete, 1, NULL }, - -#if ((wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - { "wxMemoryOutputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMemoryOutputStream_constructor_overload, s_wxluafunc_wxLua_wxMemoryOutputStream_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxMemoryBuffer) && (wxUSE_STREAMS))||(wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxMemoryOutputStream_methodCount = sizeof(wxMemoryOutputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxStringInputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStringInputStream' -int wxluatype_wxStringInputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringInputStream_delete[] = { &wxluatype_wxStringInputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringInputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxStringInputStream_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringInputStream_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStringInputStream_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringInputStream_constructor[1] = {{ wxLua_wxStringInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxStringInputStream_constructor }}; -// wxStringInputStream(const wxString& s); -static int LUACALL wxLua_wxStringInputStream_constructor(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 1); - // call constructor - wxStringInputStream* returns = new wxStringInputStream(s); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStringInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringInputStream); - - return 1; -} - - - - -void wxLua_wxStringInputStream_delete_function(void** p) -{ - wxStringInputStream* o = (wxStringInputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStringInputStream_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStringInputStream_delete, 1, NULL }, - { "wxStringInputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStringInputStream_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStringInputStream_methodCount = sizeof(wxStringInputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxStringOutputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStringOutputStream' -int wxluatype_wxStringOutputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringOutputStream_GetString[] = { &wxluatype_wxStringOutputStream, NULL }; -static int LUACALL wxLua_wxStringOutputStream_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringOutputStream_GetString[1] = {{ wxLua_wxStringOutputStream_GetString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringOutputStream_GetString }}; -// const wxString& GetString() const; -static int LUACALL wxLua_wxStringOutputStream_GetString(lua_State *L) -{ - // get this - wxStringOutputStream * self = (wxStringOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringOutputStream); - // call GetString - wxString returns = (self->GetString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringOutputStream_delete[] = { &wxluatype_wxStringOutputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringOutputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxStringOutputStream_delete }}; - -static int LUACALL wxLua_wxStringOutputStream_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringOutputStream_constructor[1] = {{ wxLua_wxStringOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStringOutputStream(); -static int LUACALL wxLua_wxStringOutputStream_constructor(lua_State *L) -{ - // call constructor - wxStringOutputStream* returns = new wxStringOutputStream(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStringOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringOutputStream); - - return 1; -} - - - - -void wxLua_wxStringOutputStream_delete_function(void** p) -{ - wxStringOutputStream* o = (wxStringOutputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStringOutputStream_methods[] = { - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringOutputStream_GetString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStringOutputStream_delete, 1, NULL }, - { "wxStringOutputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStringOutputStream_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStringOutputStream_methodCount = sizeof(wxStringOutputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxDataInputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataInputStream' -int wxluatype_wxDataInputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_BigEndianOrdered[] = { &wxluatype_wxDataInputStream, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataInputStream_BigEndianOrdered(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_BigEndianOrdered[1] = {{ wxLua_wxDataInputStream_BigEndianOrdered, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataInputStream_BigEndianOrdered }}; -// void BigEndianOrdered(bool be_order); -static int LUACALL wxLua_wxDataInputStream_BigEndianOrdered(lua_State *L) -{ - // bool be_order - bool be_order = wxlua_getbooleantype(L, 2); - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call BigEndianOrdered - self->BigEndianOrdered(be_order); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_IsOk[] = { &wxluatype_wxDataInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_IsOk[1] = {{ wxLua_wxDataInputStream_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_IsOk }}; -// bool IsOk(); -static int LUACALL wxLua_wxDataInputStream_IsOk(lua_State *L) -{ - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_Read16[] = { &wxluatype_wxDataInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_Read16(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_Read16[1] = {{ wxLua_wxDataInputStream_Read16, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_Read16 }}; -// wxUint16 Read16(); -static int LUACALL wxLua_wxDataInputStream_Read16(lua_State *L) -{ - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call Read16 - wxUint16 returns = (self->Read16()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_Read32[] = { &wxluatype_wxDataInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_Read32(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_Read32[1] = {{ wxLua_wxDataInputStream_Read32, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_Read32 }}; -// wxUint32 Read32(); -static int LUACALL wxLua_wxDataInputStream_Read32(lua_State *L) -{ - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call Read32 - wxUint32 returns = (self->Read32()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_Read8[] = { &wxluatype_wxDataInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_Read8(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_Read8[1] = {{ wxLua_wxDataInputStream_Read8, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_Read8 }}; -// wxUint8 Read8(); -static int LUACALL wxLua_wxDataInputStream_Read8(lua_State *L) -{ - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call Read8 - wxUint8 returns = (self->Read8()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_ReadDouble[] = { &wxluatype_wxDataInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_ReadDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_ReadDouble[1] = {{ wxLua_wxDataInputStream_ReadDouble, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_ReadDouble }}; -// double ReadDouble(); -static int LUACALL wxLua_wxDataInputStream_ReadDouble(lua_State *L) -{ - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call ReadDouble - double returns = (self->ReadDouble()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_ReadString[] = { &wxluatype_wxDataInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_ReadString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_ReadString[1] = {{ wxLua_wxDataInputStream_ReadString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_ReadString }}; -// wxString ReadString(); -static int LUACALL wxLua_wxDataInputStream_ReadString(lua_State *L) -{ - // get this - wxDataInputStream * self = (wxDataInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataInputStream); - // call ReadString - wxString returns = (self->ReadString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_delete[] = { &wxluatype_wxDataInputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataInputStream_constructor[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxDataInputStream_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataInputStream_constructor[1] = {{ wxLua_wxDataInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataInputStream_constructor }}; -// wxDataInputStream(wxInputStream& s); -static int LUACALL wxLua_wxDataInputStream_constructor(lua_State *L) -{ - // wxInputStream s - wxInputStream * s = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call constructor - wxDataInputStream* returns = new wxDataInputStream(*s); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataInputStream); - - return 1; -} - - - - -void wxLua_wxDataInputStream_delete_function(void** p) -{ - wxDataInputStream* o = (wxDataInputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataInputStream_methods[] = { - { "BigEndianOrdered", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_BigEndianOrdered, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_IsOk, 1, NULL }, - { "Read16", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_Read16, 1, NULL }, - { "Read32", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_Read32, 1, NULL }, - { "Read8", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_Read8, 1, NULL }, - { "ReadDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_ReadDouble, 1, NULL }, - { "ReadString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataInputStream_ReadString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataInputStream_delete, 1, NULL }, - { "wxDataInputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataInputStream_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataInputStream_methodCount = sizeof(wxDataInputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxTextInputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextInputStream' -int wxluatype_wxTextInputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_GetChar[] = { &wxluatype_wxTextInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_GetChar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_GetChar[1] = {{ wxLua_wxTextInputStream_GetChar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_GetChar }}; -// wxChar GetChar(); -static int LUACALL wxLua_wxTextInputStream_GetChar(lua_State *L) -{ - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call GetChar - wxChar returns = (self->GetChar()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_GetInputStream[] = { &wxluatype_wxTextInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_GetInputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_GetInputStream[1] = {{ wxLua_wxTextInputStream_GetInputStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_GetInputStream }}; -// const wxInputStream& GetInputStream(); -static int LUACALL wxLua_wxTextInputStream_GetInputStream(lua_State *L) -{ - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call GetInputStream - const wxInputStream* returns = (const wxInputStream*)&self->GetInputStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_GetStringSeparators[] = { &wxluatype_wxTextInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_GetStringSeparators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_GetStringSeparators[1] = {{ wxLua_wxTextInputStream_GetStringSeparators, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_GetStringSeparators }}; -// wxString GetStringSeparators() const; -static int LUACALL wxLua_wxTextInputStream_GetStringSeparators(lua_State *L) -{ - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call GetStringSeparators - wxString returns = (self->GetStringSeparators()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read16[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read16(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read16[1] = {{ wxLua_wxTextInputStream_Read16, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read16 }}; -// wxUint16 Read16(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read16(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read16 - wxUint16 returns = (self->Read16(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read16S[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read16S(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read16S[1] = {{ wxLua_wxTextInputStream_Read16S, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read16S }}; -// wxInt16 Read16S(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read16S(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read16S - wxInt16 returns = (self->Read16S(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read32[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read32(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read32[1] = {{ wxLua_wxTextInputStream_Read32, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read32 }}; -// wxUint32 Read32(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read32(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read32 - wxUint32 returns = (self->Read32(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read32S[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read32S(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read32S[1] = {{ wxLua_wxTextInputStream_Read32S, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read32S }}; -// wxInt32 Read32S(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read32S(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read32S - wxInt32 returns = (self->Read32S(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read64[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read64(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read64[1] = {{ wxLua_wxTextInputStream_Read64, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read64 }}; -// %wxchkver_3_1_0 wxUint64 Read64(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read64(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read64 - wxUint64 returns = (self->Read64(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read64S[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read64S(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read64S[1] = {{ wxLua_wxTextInputStream_Read64S, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read64S }}; -// %wxchkver_3_1_0 wxInt64 Read64S(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read64S(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read64S - wxInt64 returns = (self->Read64S(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read8[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read8(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read8[1] = {{ wxLua_wxTextInputStream_Read8, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read8 }}; -// wxUint8 Read8(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read8(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read8 - wxUint8 returns = (self->Read8(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_Read8S[] = { &wxluatype_wxTextInputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextInputStream_Read8S(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_Read8S[1] = {{ wxLua_wxTextInputStream_Read8S, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextInputStream_Read8S }}; -// wxInt8 Read8S(int base = 10); -static int LUACALL wxLua_wxTextInputStream_Read8S(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call Read8S - wxInt8 returns = (self->Read8S(base)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_ReadDouble[] = { &wxluatype_wxTextInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_ReadDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_ReadDouble[1] = {{ wxLua_wxTextInputStream_ReadDouble, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_ReadDouble }}; -// double ReadDouble(); -static int LUACALL wxLua_wxTextInputStream_ReadDouble(lua_State *L) -{ - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call ReadDouble - double returns = (self->ReadDouble()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_ReadLine[] = { &wxluatype_wxTextInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_ReadLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_ReadLine[1] = {{ wxLua_wxTextInputStream_ReadLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_ReadLine }}; -// wxString ReadLine(); -static int LUACALL wxLua_wxTextInputStream_ReadLine(lua_State *L) -{ - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call ReadLine - wxString returns = (self->ReadLine()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_ReadWord[] = { &wxluatype_wxTextInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_ReadWord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_ReadWord[1] = {{ wxLua_wxTextInputStream_ReadWord, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_ReadWord }}; -// wxString ReadWord(); -static int LUACALL wxLua_wxTextInputStream_ReadWord(lua_State *L) -{ - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call ReadWord - wxString returns = (self->ReadWord()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_SetStringSeparators[] = { &wxluatype_wxTextInputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextInputStream_SetStringSeparators(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_SetStringSeparators[1] = {{ wxLua_wxTextInputStream_SetStringSeparators, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextInputStream_SetStringSeparators }}; -// void SetStringSeparators(const wxString &c); -static int LUACALL wxLua_wxTextInputStream_SetStringSeparators(lua_State *L) -{ - // const wxString c - const wxString c = wxlua_getwxStringtype(L, 2); - // get this - wxTextInputStream * self = (wxTextInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextInputStream); - // call SetStringSeparators - self->SetStringSeparators(c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_delete[] = { &wxluatype_wxTextInputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextInputStream_constructor[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxTextInputStream_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextInputStream_constructor[1] = {{ wxLua_wxTextInputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTextInputStream_constructor }}; -// wxTextInputStream(wxInputStream& s); -static int LUACALL wxLua_wxTextInputStream_constructor(lua_State *L) -{ - // wxInputStream s - wxInputStream * s = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call constructor - wxTextInputStream* returns = new wxTextInputStream(*s); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextInputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextInputStream); - - return 1; -} - - - - -void wxLua_wxTextInputStream_delete_function(void** p) -{ - wxTextInputStream* o = (wxTextInputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextInputStream_methods[] = { - { "GetChar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_GetChar, 1, NULL }, - { "GetInputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_GetInputStream, 1, NULL }, - { "GetStringSeparators", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_GetStringSeparators, 1, NULL }, - { "Read16", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read16, 1, NULL }, - { "Read16S", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read16S, 1, NULL }, - { "Read32", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read32, 1, NULL }, - { "Read32S", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read32S, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) - { "Read64", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read64, 1, NULL }, - { "Read64S", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read64S, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) - - { "Read8", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read8, 1, NULL }, - { "Read8S", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_Read8S, 1, NULL }, - { "ReadDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_ReadDouble, 1, NULL }, - { "ReadLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_ReadLine, 1, NULL }, - { "ReadWord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_ReadWord, 1, NULL }, - { "SetStringSeparators", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextInputStream_SetStringSeparators, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextInputStream_delete, 1, NULL }, - { "wxTextInputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextInputStream_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextInputStream_methodCount = sizeof(wxTextInputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxTextOutputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextOutputStream' -int wxluatype_wxTextOutputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_Flush[] = { &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxTextOutputStream_Flush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_Flush[1] = {{ wxLua_wxTextOutputStream_Flush, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextOutputStream_Flush }}; -// void Flush(); -static int LUACALL wxLua_wxTextOutputStream_Flush(lua_State *L) -{ - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call Flush - self->Flush(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_GetMode[] = { &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxTextOutputStream_GetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_GetMode[1] = {{ wxLua_wxTextOutputStream_GetMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextOutputStream_GetMode }}; -// wxEOL GetMode(); -static int LUACALL wxLua_wxTextOutputStream_GetMode(lua_State *L) -{ - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call GetMode - wxEOL returns = (self->GetMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_GetOutputStream[] = { &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxTextOutputStream_GetOutputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_GetOutputStream[1] = {{ wxLua_wxTextOutputStream_GetOutputStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextOutputStream_GetOutputStream }}; -// const wxOutputStream& GetOutputStream(); -static int LUACALL wxLua_wxTextOutputStream_GetOutputStream(lua_State *L) -{ - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call GetOutputStream - const wxOutputStream* returns = (const wxOutputStream*)&self->GetOutputStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxOutputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_PutChar[] = { &wxluatype_wxTextOutputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_PutChar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_PutChar[1] = {{ wxLua_wxTextOutputStream_PutChar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_PutChar }}; -// wxTextOutputStream& PutChar(wxChar c); -static int LUACALL wxLua_wxTextOutputStream_PutChar(lua_State *L) -{ - // wxChar c - wxChar c = (wxChar)wxlua_getnumbertype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call PutChar - wxTextOutputStream* returns = (wxTextOutputStream*)&self->PutChar(c); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextOutputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_SetMode[] = { &wxluatype_wxTextOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_SetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_SetMode[1] = {{ wxLua_wxTextOutputStream_SetMode, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_SetMode }}; -// void SetMode( wxEOL mode = wxEOL_NATIVE ); -static int LUACALL wxLua_wxTextOutputStream_SetMode(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxEOL mode = wxEOL_NATIVE - wxEOL mode = (argCount >= 2 ? (wxEOL)wxlua_getenumtype(L, 2) : wxEOL_NATIVE); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call SetMode - self->SetMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_Write16[] = { &wxluatype_wxTextOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_Write16(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_Write16[1] = {{ wxLua_wxTextOutputStream_Write16, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_Write16 }}; -// void Write16(wxUint16 i); -static int LUACALL wxLua_wxTextOutputStream_Write16(lua_State *L) -{ - // wxUint16 i - wxUint16 i = (wxUint16)wxlua_getuintegertype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call Write16 - self->Write16(i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_Write32[] = { &wxluatype_wxTextOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_Write32(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_Write32[1] = {{ wxLua_wxTextOutputStream_Write32, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_Write32 }}; -// void Write32(wxUint32 i); -static int LUACALL wxLua_wxTextOutputStream_Write32(lua_State *L) -{ - // wxUint32 i - wxUint32 i = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call Write32 - self->Write32(i); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_Write64[] = { &wxluatype_wxTextOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_Write64(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_Write64[1] = {{ wxLua_wxTextOutputStream_Write64, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_Write64 }}; -// %wxchkver_3_1_0 void Write64(wxUint64 i); -static int LUACALL wxLua_wxTextOutputStream_Write64(lua_State *L) -{ - // wxUint64 i - wxUint64 i = (wxUint64)wxlua_getuintegertype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call Write64 - self->Write64(i); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_Write8[] = { &wxluatype_wxTextOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_Write8(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_Write8[1] = {{ wxLua_wxTextOutputStream_Write8, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_Write8 }}; -// void Write8(wxUint8 i); -static int LUACALL wxLua_wxTextOutputStream_Write8(lua_State *L) -{ - // wxUint8 i - wxUint8 i = (wxUint8)wxlua_getuintegertype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call Write8 - self->Write8(i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_WriteDouble[] = { &wxluatype_wxTextOutputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextOutputStream_WriteDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_WriteDouble[1] = {{ wxLua_wxTextOutputStream_WriteDouble, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_WriteDouble }}; -// virtual void WriteDouble(double d); -static int LUACALL wxLua_wxTextOutputStream_WriteDouble(lua_State *L) -{ - // double d - double d = (double)wxlua_getnumbertype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call WriteDouble - self->WriteDouble(d); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_WriteString[] = { &wxluatype_wxTextOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextOutputStream_WriteString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_WriteString[1] = {{ wxLua_wxTextOutputStream_WriteString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextOutputStream_WriteString }}; -// virtual void WriteString(const wxString& string); -static int LUACALL wxLua_wxTextOutputStream_WriteString(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxTextOutputStream * self = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextOutputStream); - // call WriteString - self->WriteString(string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_delete[] = { &wxluatype_wxTextOutputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextOutputStream_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextOutputStream_constructor[] = { &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxTextOutputStream_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextOutputStream_constructor[1] = {{ wxLua_wxTextOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTextOutputStream_constructor }}; -// wxTextOutputStream(wxOutputStream& s); -static int LUACALL wxLua_wxTextOutputStream_constructor(lua_State *L) -{ - // wxOutputStream s - wxOutputStream * s = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call constructor - wxTextOutputStream* returns = new wxTextOutputStream(*s); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextOutputStream); - - return 1; -} - - - - -void wxLua_wxTextOutputStream_delete_function(void** p) -{ - wxTextOutputStream* o = (wxTextOutputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextOutputStream_methods[] = { - { "Flush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_Flush, 1, NULL }, - { "GetMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_GetMode, 1, NULL }, - { "GetOutputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_GetOutputStream, 1, NULL }, - { "PutChar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_PutChar, 1, NULL }, - { "SetMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_SetMode, 1, NULL }, - { "Write16", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_Write16, 1, NULL }, - { "Write32", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_Write32, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) - { "Write64", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_Write64, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxUSE_STREAMS) - - { "Write8", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_Write8, 1, NULL }, - { "WriteDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_WriteDouble, 1, NULL }, - { "WriteString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextOutputStream_WriteString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextOutputStream_delete, 1, NULL }, - { "wxTextOutputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextOutputStream_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextOutputStream_methodCount = sizeof(wxTextOutputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if wxUSE_STREAMS -// --------------------------------------------------------------------------- -// Bind class wxDataOutputStream -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataOutputStream' -int wxluatype_wxDataOutputStream = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_BigEndianOrdered[] = { &wxluatype_wxDataOutputStream, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataOutputStream_BigEndianOrdered(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_BigEndianOrdered[1] = {{ wxLua_wxDataOutputStream_BigEndianOrdered, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataOutputStream_BigEndianOrdered }}; -// void BigEndianOrdered(bool be_order); -static int LUACALL wxLua_wxDataOutputStream_BigEndianOrdered(lua_State *L) -{ - // bool be_order - bool be_order = wxlua_getbooleantype(L, 2); - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call BigEndianOrdered - self->BigEndianOrdered(be_order); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_IsOk[] = { &wxluatype_wxDataOutputStream, NULL }; -static int LUACALL wxLua_wxDataOutputStream_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_IsOk[1] = {{ wxLua_wxDataOutputStream_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataOutputStream_IsOk }}; -// bool IsOk(); -static int LUACALL wxLua_wxDataOutputStream_IsOk(lua_State *L) -{ - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_Write16[] = { &wxluatype_wxDataOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataOutputStream_Write16(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_Write16[1] = {{ wxLua_wxDataOutputStream_Write16, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataOutputStream_Write16 }}; -// void Write16(wxUint16 i); -static int LUACALL wxLua_wxDataOutputStream_Write16(lua_State *L) -{ - // wxUint16 i - wxUint16 i = (wxUint16)wxlua_getuintegertype(L, 2); - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call Write16 - self->Write16(i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_Write32[] = { &wxluatype_wxDataOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataOutputStream_Write32(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_Write32[1] = {{ wxLua_wxDataOutputStream_Write32, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataOutputStream_Write32 }}; -// void Write32(wxUint32 i); -static int LUACALL wxLua_wxDataOutputStream_Write32(lua_State *L) -{ - // wxUint32 i - wxUint32 i = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call Write32 - self->Write32(i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_Write8[] = { &wxluatype_wxDataOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataOutputStream_Write8(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_Write8[1] = {{ wxLua_wxDataOutputStream_Write8, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataOutputStream_Write8 }}; -// void Write8(wxUint8 i); -static int LUACALL wxLua_wxDataOutputStream_Write8(lua_State *L) -{ - // wxUint8 i - wxUint8 i = (wxUint8)wxlua_getuintegertype(L, 2); - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call Write8 - self->Write8(i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_WriteDouble[] = { &wxluatype_wxDataOutputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDataOutputStream_WriteDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_WriteDouble[1] = {{ wxLua_wxDataOutputStream_WriteDouble, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataOutputStream_WriteDouble }}; -// void WriteDouble(double d); -static int LUACALL wxLua_wxDataOutputStream_WriteDouble(lua_State *L) -{ - // double d - double d = (double)wxlua_getnumbertype(L, 2); - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call WriteDouble - self->WriteDouble(d); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_WriteString[] = { &wxluatype_wxDataOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataOutputStream_WriteString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_WriteString[1] = {{ wxLua_wxDataOutputStream_WriteString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataOutputStream_WriteString }}; -// void WriteString(const wxString& string); -static int LUACALL wxLua_wxDataOutputStream_WriteString(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxDataOutputStream * self = (wxDataOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataOutputStream); - // call WriteString - self->WriteString(string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_delete[] = { &wxluatype_wxDataOutputStream, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataOutputStream_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataOutputStream_constructor[] = { &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxDataOutputStream_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataOutputStream_constructor[1] = {{ wxLua_wxDataOutputStream_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataOutputStream_constructor }}; -// wxDataOutputStream(wxOutputStream& s); -static int LUACALL wxLua_wxDataOutputStream_constructor(lua_State *L) -{ - // wxOutputStream s - wxOutputStream * s = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call constructor - wxDataOutputStream* returns = new wxDataOutputStream(*s); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataOutputStream); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataOutputStream); - - return 1; -} - - - - -void wxLua_wxDataOutputStream_delete_function(void** p) -{ - wxDataOutputStream* o = (wxDataOutputStream*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataOutputStream_methods[] = { - { "BigEndianOrdered", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_BigEndianOrdered, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_IsOk, 1, NULL }, - { "Write16", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_Write16, 1, NULL }, - { "Write32", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_Write32, 1, NULL }, - { "Write8", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_Write8, 1, NULL }, - { "WriteDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_WriteDouble, 1, NULL }, - { "WriteString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataOutputStream_WriteString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataOutputStream_delete, 1, NULL }, - { "wxDataOutputStream", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataOutputStream_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataOutputStream_methodCount = sizeof(wxDataOutputStream_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS - - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxFSFile -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFSFile' -int wxluatype_wxFSFile = WXLUA_TUNKNOWN; - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_DetachStream[] = { &wxluatype_wxFSFile, NULL }; -static int LUACALL wxLua_wxFSFile_DetachStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_DetachStream[1] = {{ wxLua_wxFSFile_DetachStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_DetachStream }}; -// %gc wxInputStream *DetachStream(); -static int LUACALL wxLua_wxFSFile_DetachStream(lua_State *L) -{ - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call DetachStream - wxInputStream* returns = (wxInputStream*)self->DetachStream(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxInputStream); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetAnchor[] = { &wxluatype_wxFSFile, NULL }; -static int LUACALL wxLua_wxFSFile_GetAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetAnchor[1] = {{ wxLua_wxFSFile_GetAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetAnchor }}; -// wxString GetAnchor() const; -static int LUACALL wxLua_wxFSFile_GetAnchor(lua_State *L) -{ - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call GetAnchor - wxString returns = (self->GetAnchor()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetLocation[] = { &wxluatype_wxFSFile, NULL }; -static int LUACALL wxLua_wxFSFile_GetLocation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetLocation[1] = {{ wxLua_wxFSFile_GetLocation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetLocation }}; -// wxString GetLocation() const; -static int LUACALL wxLua_wxFSFile_GetLocation(lua_State *L) -{ - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call GetLocation - wxString returns = (self->GetLocation()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetMimeType[] = { &wxluatype_wxFSFile, NULL }; -static int LUACALL wxLua_wxFSFile_GetMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetMimeType[1] = {{ wxLua_wxFSFile_GetMimeType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetMimeType }}; -// wxString GetMimeType() const; -static int LUACALL wxLua_wxFSFile_GetMimeType(lua_State *L) -{ - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call GetMimeType - wxString returns = (self->GetMimeType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetModificationTime[] = { &wxluatype_wxFSFile, NULL }; -static int LUACALL wxLua_wxFSFile_GetModificationTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetModificationTime[1] = {{ wxLua_wxFSFile_GetModificationTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetModificationTime }}; -// wxDateTime GetModificationTime() const; -static int LUACALL wxLua_wxFSFile_GetModificationTime(lua_State *L) -{ - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call GetModificationTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetModificationTime()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_GetStream[] = { &wxluatype_wxFSFile, NULL }; -static int LUACALL wxLua_wxFSFile_GetStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_GetStream[1] = {{ wxLua_wxFSFile_GetStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_GetStream }}; -// wxInputStream *GetStream() const; -static int LUACALL wxLua_wxFSFile_GetStream(lua_State *L) -{ - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call GetStream - wxInputStream* returns = (wxInputStream*)self->GetStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_SetStream[] = { &wxluatype_wxFSFile, &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxFSFile_SetStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_SetStream[1] = {{ wxLua_wxFSFile_SetStream, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFSFile_SetStream }}; -// void SetStream(%ungc wxInputStream *stream); -static int LUACALL wxLua_wxFSFile_SetStream(lua_State *L) -{ - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - if (wxluaO_isgcobject(L, stream)) wxluaO_undeletegcobject(L, stream); - // get this - wxFSFile * self = (wxFSFile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFSFile); - // call SetStream - self->SetStream(stream); - - return 0; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_delete[] = { &wxluatype_wxFSFile, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFSFile_delete }}; - - -#if (((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFSFile_constructor[] = { &wxluatype_wxInputStream, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxFSFile_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFSFile_constructor[1] = {{ wxLua_wxFSFile_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxFSFile_constructor }}; -// wxFSFile(%ungc wxInputStream *stream, const wxString& loc, const wxString& mimetype, const wxString& anchor, wxDateTime modif); -static int LUACALL wxLua_wxFSFile_constructor(lua_State *L) -{ - // wxDateTime modif - wxDateTime modif = *(wxDateTime*)wxluaT_getuserdatatype(L, 5, wxluatype_wxDateTime); - // const wxString anchor - const wxString anchor = wxlua_getwxStringtype(L, 4); - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 3); - // const wxString loc - const wxString loc = wxlua_getwxStringtype(L, 2); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - if (wxluaO_isgcobject(L, stream)) wxluaO_undeletegcobject(L, stream); - // call constructor - wxFSFile* returns = new wxFSFile(stream, loc, mimetype, anchor, modif); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFSFile); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); - - return 1; -} - -#endif // (((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxUSE_STREAMS) - - - -void wxLua_wxFSFile_delete_function(void** p) -{ - wxFSFile* o = (wxFSFile*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFSFile_methods[] = { -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - { "DetachStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_DetachStream, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - - { "GetAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetAnchor, 1, NULL }, - { "GetLocation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetLocation, 1, NULL }, - { "GetMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetMimeType, 1, NULL }, - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetModificationTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetModificationTime, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - { "GetStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_GetStream, 1, NULL }, - { "SetStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFSFile_SetStream, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFSFile_delete, 1, NULL }, - -#if (((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxUSE_STREAMS) - { "wxFSFile", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFSFile_constructor, 1, NULL }, -#endif // (((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxUSE_STREAMS) - - { 0, 0, 0, 0 }, -}; - -int wxFSFile_methodCount = sizeof(wxFSFile_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxFileSystemHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileSystemHandler' -int wxluatype_wxFileSystemHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_CanOpen[] = { &wxluatype_wxFileSystemHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystemHandler_CanOpen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_CanOpen[1] = {{ wxLua_wxFileSystemHandler_CanOpen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemHandler_CanOpen }}; -// virtual bool CanOpen(const wxString& location); //= 0; -static int LUACALL wxLua_wxFileSystemHandler_CanOpen(lua_State *L) -{ - // const wxString location - const wxString location = wxlua_getwxStringtype(L, 2); - // get this - wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); - // call CanOpen - bool returns = (self->CanOpen(location)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_FindFirst[] = { &wxluatype_wxFileSystemHandler, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystemHandler_FindFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_FindFirst[1] = {{ wxLua_wxFileSystemHandler_FindFirst, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystemHandler_FindFirst }}; -// virtual wxString FindFirst(const wxString& spec, int flags = 0); -static int LUACALL wxLua_wxFileSystemHandler_FindFirst(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString spec - const wxString spec = wxlua_getwxStringtype(L, 2); - // get this - wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); - // call FindFirst - wxString returns = (self->FindFirst(spec, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_FindNext[] = { &wxluatype_wxFileSystemHandler, NULL }; -static int LUACALL wxLua_wxFileSystemHandler_FindNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_FindNext[1] = {{ wxLua_wxFileSystemHandler_FindNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemHandler_FindNext }}; -// virtual wxString FindNext(); -static int LUACALL wxLua_wxFileSystemHandler_FindNext(lua_State *L) -{ - // get this - wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); - // call FindNext - wxString returns = (self->FindNext()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_OpenFile[] = { &wxluatype_wxFileSystemHandler, &wxluatype_wxFileSystem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystemHandler_OpenFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_OpenFile[1] = {{ wxLua_wxFileSystemHandler_OpenFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileSystemHandler_OpenFile }}; -// virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location); //= 0; -static int LUACALL wxLua_wxFileSystemHandler_OpenFile(lua_State *L) -{ - // const wxString location - const wxString location = wxlua_getwxStringtype(L, 3); - // wxFileSystem fs - wxFileSystem * fs = (wxFileSystem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileSystem); - // get this - wxFileSystemHandler * self = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); - // call OpenFile - wxFSFile* returns = (wxFSFile*)self->OpenFile(*fs, location); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemHandler_delete[] = { &wxluatype_wxFileSystemHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemHandler_delete }}; - - - - -void wxLua_wxFileSystemHandler_delete_function(void** p) -{ - wxFileSystemHandler* o = (wxFileSystemHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileSystemHandler_methods[] = { - { "CanOpen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_CanOpen, 1, NULL }, - { "FindFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_FindFirst, 1, NULL }, - { "FindNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_FindNext, 1, NULL }, - { "OpenFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemHandler_OpenFile, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileSystemHandler_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileSystemHandler_methodCount = sizeof(wxFileSystemHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxLocalFSHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLocalFSHandler' -int wxluatype_wxLocalFSHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocalFSHandler_Chroot[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLocalFSHandler_Chroot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocalFSHandler_Chroot[1] = {{ wxLua_wxLocalFSHandler_Chroot, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLocalFSHandler_Chroot }}; -// static void Chroot(const wxString& root); -static int LUACALL wxLua_wxLocalFSHandler_Chroot(lua_State *L) -{ - // const wxString root - const wxString root = wxlua_getwxStringtype(L, 1); - // call Chroot - wxLocalFSHandler::Chroot(root); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLocalFSHandler_delete[] = { &wxluatype_wxLocalFSHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocalFSHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLocalFSHandler_delete }}; - -static int LUACALL wxLua_wxLocalFSHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLocalFSHandler_constructor[1] = {{ wxLua_wxLocalFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLocalFSHandler(); -static int LUACALL wxLua_wxLocalFSHandler_constructor(lua_State *L) -{ - // call constructor - wxLocalFSHandler* returns = new wxLocalFSHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLocalFSHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLocalFSHandler); - - return 1; -} - - - - -void wxLua_wxLocalFSHandler_delete_function(void** p) -{ - wxLocalFSHandler* o = (wxLocalFSHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLocalFSHandler_methods[] = { - { "Chroot", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLocalFSHandler_Chroot, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLocalFSHandler_delete, 1, NULL }, - { "wxLocalFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLocalFSHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLocalFSHandler_methodCount = sizeof(wxLocalFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxFileSystem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileSystem' -int wxluatype_wxFileSystem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_AddHandler[] = { &wxluatype_wxFileSystemHandler, NULL }; -static int LUACALL wxLua_wxFileSystem_AddHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_AddHandler[1] = {{ wxLua_wxFileSystem_AddHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_AddHandler }}; -// static void AddHandler(%ungc wxFileSystemHandler *handler); -static int LUACALL wxLua_wxFileSystem_AddHandler(lua_State *L) -{ - // wxFileSystemHandler handler - wxFileSystemHandler * handler = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); - if (wxluaO_isgcobject(L, handler)) wxluaO_undeletegcobject(L, handler); - // call AddHandler - wxFileSystem::AddHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_ChangePathTo[] = { &wxluatype_wxFileSystem, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFileSystem_ChangePathTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_ChangePathTo[1] = {{ wxLua_wxFileSystem_ChangePathTo, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystem_ChangePathTo }}; -// void ChangePathTo(const wxString& location, bool is_dir = false); -static int LUACALL wxLua_wxFileSystem_ChangePathTo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool is_dir = false - bool is_dir = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString location - const wxString location = wxlua_getwxStringtype(L, 2); - // get this - wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); - // call ChangePathTo - self->ChangePathTo(location, is_dir); - - return 0; -} - -static int LUACALL wxLua_wxFileSystem_CleanUpHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_CleanUpHandlers[1] = {{ wxLua_wxFileSystem_CleanUpHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void CleanUpHandlers(); -static int LUACALL wxLua_wxFileSystem_CleanUpHandlers(lua_State *L) -{ - // call CleanUpHandlers - wxFileSystem::CleanUpHandlers(); - - return 0; -} - - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_FileNameToURL[] = { &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileSystem_FileNameToURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_FileNameToURL[1] = {{ wxLua_wxFileSystem_FileNameToURL, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_FileNameToURL }}; -// static wxString FileNameToURL(const wxFileName& filename); -static int LUACALL wxLua_wxFileSystem_FileNameToURL(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileName); - // call FileNameToURL - wxString returns = (wxFileSystem::FileNameToURL(*filename)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_FindFileInPath[] = { &wxluatype_wxFileSystem, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystem_FindFileInPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_FindFileInPath[1] = {{ wxLua_wxFileSystem_FindFileInPath, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileSystem_FindFileInPath }}; -// %override wxLua_wxFileSystem_FindFileInPath -// bool FindFileInPath(wxString *pStr, const wxChar *path, const wxChar *file); -// bool FindFileInPath(const wxString& path, const wxString& file); -static int LUACALL wxLua_wxFileSystem_FindFileInPath(lua_State *L) -{ - // const wxString file - const wxString file_ = wxlua_getwxStringtype(L, 3); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); - // call FindFileInPath - wxString str; - bool returns = (self->FindFileInPath(&str, path, file_)); - // push the result flag - lua_pushboolean(L, returns); - wxlua_pushwxString(L, str); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_FindFirst[] = { &wxluatype_wxFileSystem, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystem_FindFirst(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_FindFirst[1] = {{ wxLua_wxFileSystem_FindFirst, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystem_FindFirst }}; -// wxString FindFirst(const wxString& spec, int flags = 0); -static int LUACALL wxLua_wxFileSystem_FindFirst(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString spec - const wxString spec = wxlua_getwxStringtype(L, 2); - // get this - wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); - // call FindFirst - wxString returns = (self->FindFirst(spec, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_FindNext[] = { &wxluatype_wxFileSystem, NULL }; -static int LUACALL wxLua_wxFileSystem_FindNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_FindNext[1] = {{ wxLua_wxFileSystem_FindNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_FindNext }}; -// wxString FindNext(); -static int LUACALL wxLua_wxFileSystem_FindNext(lua_State *L) -{ - // get this - wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); - // call FindNext - wxString returns = (self->FindNext()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_GetPath[] = { &wxluatype_wxFileSystem, NULL }; -static int LUACALL wxLua_wxFileSystem_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_GetPath[1] = {{ wxLua_wxFileSystem_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxFileSystem_GetPath(lua_State *L) -{ - // get this - wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_HasHandlerForPath[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystem_HasHandlerForPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_HasHandlerForPath[1] = {{ wxLua_wxFileSystem_HasHandlerForPath, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_HasHandlerForPath }}; -// static bool HasHandlerForPath(const wxString& location); -static int LUACALL wxLua_wxFileSystem_HasHandlerForPath(lua_State *L) -{ - // const wxString location - const wxString location = wxlua_getwxStringtype(L, 1); - // call HasHandlerForPath - bool returns = (wxFileSystem::HasHandlerForPath(location)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_OpenFile[] = { &wxluatype_wxFileSystem, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystem_OpenFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_OpenFile[1] = {{ wxLua_wxFileSystem_OpenFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystem_OpenFile }}; -// %gc wxFSFile* OpenFile(const wxString& location, int flags = wxFS_READ); -static int LUACALL wxLua_wxFileSystem_OpenFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxFS_READ - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxFS_READ); - // const wxString location - const wxString location = wxlua_getwxStringtype(L, 2); - // get this - wxFileSystem * self = (wxFileSystem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystem); - // call OpenFile - wxFSFile* returns = (wxFSFile*)self->OpenFile(location, flags); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxFSFile); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_RemoveHandler[] = { &wxluatype_wxFileSystemHandler, NULL }; -static int LUACALL wxLua_wxFileSystem_RemoveHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_RemoveHandler[1] = {{ wxLua_wxFileSystem_RemoveHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_RemoveHandler }}; -// static %gc wxFileSystemHandler* RemoveHandler(wxFileSystemHandler *handler); -static int LUACALL wxLua_wxFileSystem_RemoveHandler(lua_State *L) -{ - // wxFileSystemHandler handler - wxFileSystemHandler * handler = (wxFileSystemHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemHandler); - // call RemoveHandler - wxFileSystemHandler* returns = (wxFileSystemHandler*)wxFileSystem::RemoveHandler(handler); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxFileSystemHandler); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileSystemHandler); - - return 1; -} - - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_URLToFileName[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystem_URLToFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_URLToFileName[1] = {{ wxLua_wxFileSystem_URLToFileName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_URLToFileName }}; -// static wxFileName URLToFileName(const wxString& url); -static int LUACALL wxLua_wxFileSystem_URLToFileName(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 1); - // call URLToFileName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(wxFileSystem::URLToFileName(url)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystem_delete[] = { &wxluatype_wxFileSystem, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileSystem_delete }}; - -static int LUACALL wxLua_wxFileSystem_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystem_constructor[1] = {{ wxLua_wxFileSystem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFileSystem(); -static int LUACALL wxLua_wxFileSystem_constructor(lua_State *L) -{ - // call constructor - wxFileSystem* returns = new wxFileSystem(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileSystem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileSystem); - - return 1; -} - - - - -void wxLua_wxFileSystem_delete_function(void** p) -{ - wxFileSystem* o = (wxFileSystem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileSystem_methods[] = { - { "AddHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileSystem_AddHandler, 1, NULL }, - { "ChangePathTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystem_ChangePathTo, 1, NULL }, - { "CleanUpHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileSystem_CleanUpHandlers, 1, NULL }, - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) - { "FileNameToURL", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileSystem_FileNameToURL, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) - - { "FindFileInPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystem_FindFileInPath, 1, NULL }, - { "FindFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystem_FindFirst, 1, NULL }, - { "FindNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystem_FindNext, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystem_GetPath, 1, NULL }, - { "HasHandlerForPath", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileSystem_HasHandlerForPath, 1, NULL }, - { "OpenFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystem_OpenFile, 1, NULL }, - { "RemoveHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileSystem_RemoveHandler, 1, NULL }, - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) - { "URLToFileName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileSystem_URLToFileName, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxLUA_USE_wxFileName) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileSystem_delete, 1, NULL }, - { "wxFileSystem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileSystem_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileSystem_methodCount = sizeof(wxFileSystem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxArchiveFSHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArchiveFSHandler' -int wxluatype_wxArchiveFSHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArchiveFSHandler_delete[] = { &wxluatype_wxArchiveFSHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArchiveFSHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxArchiveFSHandler_delete }}; - -static int LUACALL wxLua_wxArchiveFSHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArchiveFSHandler_constructor[1] = {{ wxLua_wxArchiveFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxArchiveFSHandler(); -static int LUACALL wxLua_wxArchiveFSHandler_constructor(lua_State *L) -{ - // call constructor - wxArchiveFSHandler* returns = new wxArchiveFSHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArchiveFSHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArchiveFSHandler); - - return 1; -} - - - - -void wxLua_wxArchiveFSHandler_delete_function(void** p) -{ - wxArchiveFSHandler* o = (wxArchiveFSHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArchiveFSHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxArchiveFSHandler_delete, 1, NULL }, - { "wxArchiveFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxArchiveFSHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxArchiveFSHandler_methodCount = sizeof(wxArchiveFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - -#if (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxFilterFSHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFilterFSHandler' -int wxluatype_wxFilterFSHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFilterFSHandler_delete[] = { &wxluatype_wxFilterFSHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFilterFSHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFilterFSHandler_delete }}; - -static int LUACALL wxLua_wxFilterFSHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFilterFSHandler_constructor[1] = {{ wxLua_wxFilterFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFilterFSHandler(); -static int LUACALL wxLua_wxFilterFSHandler_constructor(lua_State *L) -{ - // call constructor - wxFilterFSHandler* returns = new wxFilterFSHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFilterFSHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFilterFSHandler); - - return 1; -} - - - - -void wxLua_wxFilterFSHandler_delete_function(void** p) -{ - wxFilterFSHandler* o = (wxFilterFSHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFilterFSHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFilterFSHandler_delete, 1, NULL }, - { "wxFilterFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFilterFSHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFilterFSHandler_methodCount = sizeof(wxFilterFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_STREAMS) - - -#if (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) -// --------------------------------------------------------------------------- -// Bind class wxInternetFSHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxInternetFSHandler' -int wxluatype_wxInternetFSHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInternetFSHandler_delete[] = { &wxluatype_wxInternetFSHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInternetFSHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxInternetFSHandler_delete }}; - -static int LUACALL wxLua_wxInternetFSHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInternetFSHandler_constructor[1] = {{ wxLua_wxInternetFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxInternetFSHandler(); -static int LUACALL wxLua_wxInternetFSHandler_constructor(lua_State *L) -{ - // call constructor - wxInternetFSHandler* returns = new wxInternetFSHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxInternetFSHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInternetFSHandler); - - return 1; -} - - - - -void wxLua_wxInternetFSHandler_delete_function(void** p) -{ - wxInternetFSHandler* o = (wxInternetFSHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxInternetFSHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxInternetFSHandler_delete, 1, NULL }, - { "wxInternetFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxInternetFSHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxInternetFSHandler_methodCount = sizeof(wxInternetFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxUSE_FILESYSTEM) && (wxUSE_FS_INET && wxUSE_SOCKETS) && (wxUSE_STREAMS) - - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) -// --------------------------------------------------------------------------- -// Bind class wxFileSystemWatcherEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileSystemWatcherEvent' -int wxluatype_wxFileSystemWatcherEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetChangeType[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetChangeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetChangeType[1] = {{ wxLua_wxFileSystemWatcherEvent_GetChangeType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetChangeType }}; -// int GetChangeType() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetChangeType(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call GetChangeType - int returns = (self->GetChangeType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetErrorDescription[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetErrorDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetErrorDescription[1] = {{ wxLua_wxFileSystemWatcherEvent_GetErrorDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetErrorDescription }}; -// wxString GetErrorDescription() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetErrorDescription(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call GetErrorDescription - wxString returns = (self->GetErrorDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetNewPath[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetNewPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetNewPath[1] = {{ wxLua_wxFileSystemWatcherEvent_GetNewPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetNewPath }}; -// const wxFileName& GetNewPath() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetNewPath(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call GetNewPath - const wxFileName* returns = (const wxFileName*)&self->GetNewPath(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetPath[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetPath[1] = {{ wxLua_wxFileSystemWatcherEvent_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetPath }}; -// const wxFileName& GetPath() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetPath(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call GetPath - const wxFileName* returns = (const wxFileName*)&self->GetPath(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetWarningType[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetWarningType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetWarningType[1] = {{ wxLua_wxFileSystemWatcherEvent_GetWarningType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_GetWarningType }}; -// %wxchkver_3_0 wxFSWWarningType GetWarningType() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_GetWarningType(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call GetWarningType - wxFSWWarningType returns = (self->GetWarningType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_IsError[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_IsError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_IsError[1] = {{ wxLua_wxFileSystemWatcherEvent_IsError, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_IsError }}; -// bool IsError() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_IsError(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call IsError - bool returns = (self->IsError()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_SetNewPath[] = { &wxluatype_wxFileSystemWatcherEvent, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_SetNewPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_SetNewPath[1] = {{ wxLua_wxFileSystemWatcherEvent_SetNewPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_SetNewPath }}; -// void SetNewPath(const wxFileName& path); -static int LUACALL wxLua_wxFileSystemWatcherEvent_SetNewPath(lua_State *L) -{ - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call SetNewPath - self->SetNewPath(*path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_SetPath[] = { &wxluatype_wxFileSystemWatcherEvent, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_SetPath[1] = {{ wxLua_wxFileSystemWatcherEvent_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_SetPath }}; -// void SetPath(const wxFileName& path); -static int LUACALL wxLua_wxFileSystemWatcherEvent_SetPath(lua_State *L) -{ - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call SetPath - self->SetPath(*path); - - return 0; -} - -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_ToString[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_ToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_ToString[1] = {{ wxLua_wxFileSystemWatcherEvent_ToString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_ToString }}; -// wxString ToString() const; -static int LUACALL wxLua_wxFileSystemWatcherEvent_ToString(lua_State *L) -{ - // get this - wxFileSystemWatcherEvent * self = (wxFileSystemWatcherEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcherEvent); - // call ToString - wxString returns = (self->ToString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_delete[] = { &wxluatype_wxFileSystemWatcherEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_delete }}; - - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor2[] = { &wxluatype_TNUMBER, &wxluatype_wxFileName, &wxluatype_wxFileName, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor2[1] = {{ wxLua_wxFileSystemWatcherEvent_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor2 }}; -// wxFileSystemWatcherEvent(int changeType, const wxFileName& path, const wxFileName& newPath, int watchid = wxID_ANY); -static int LUACALL wxLua_wxFileSystemWatcherEvent_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int watchid = wxID_ANY - int watchid = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxID_ANY); - // const wxFileName newPath - const wxFileName * newPath = (const wxFileName *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFileName); - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // int changeType - int changeType = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFileSystemWatcherEvent* returns = new wxFileSystemWatcherEvent(changeType, *path, *newPath, watchid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileSystemWatcherEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileSystemWatcherEvent); - - return 1; -} - -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor1[1] = {{ wxLua_wxFileSystemWatcherEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor1 }}; -// wxFileSystemWatcherEvent(int changeType, wxFSWWarningType warningType, const wxString& errorMsg = "", int watchid = wxID_ANY); -static int LUACALL wxLua_wxFileSystemWatcherEvent_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int watchid = wxID_ANY - int watchid = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxID_ANY); - // const wxString errorMsg = "" - const wxString errorMsg = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxFSWWarningType warningType - wxFSWWarningType warningType = (wxFSWWarningType)wxlua_getenumtype(L, 2); - // int changeType - int changeType = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFileSystemWatcherEvent* returns = new wxFileSystemWatcherEvent(changeType, warningType, errorMsg, watchid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileSystemWatcherEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileSystemWatcherEvent); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystemWatcherEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor[1] = {{ wxLua_wxFileSystemWatcherEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor }}; -// wxFileSystemWatcherEvent(int changeType = 0, int watchid = wxID_ANY); -static int LUACALL wxLua_wxFileSystemWatcherEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int watchid = wxID_ANY - int watchid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxID_ANY); - // int changeType = 0 - int changeType = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxFileSystemWatcherEvent* returns = new wxFileSystemWatcherEvent(changeType, watchid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileSystemWatcherEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileSystemWatcherEvent); - - return 1; -} - - - - -#if ((wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor_overload[] = -{ - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { wxLua_wxFileSystemWatcherEvent_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor2 }, -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { wxLua_wxFileSystemWatcherEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { wxLua_wxFileSystemWatcherEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcherEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -void wxLua_wxFileSystemWatcherEvent_delete_function(void** p) -{ - wxFileSystemWatcherEvent* o = (wxFileSystemWatcherEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileSystemWatcherEvent_methods[] = { - { "GetChangeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetChangeType, 1, NULL }, - { "GetErrorDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetErrorDescription, 1, NULL }, - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "GetNewPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetNewPath, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetPath, 1, NULL }, -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "GetWarningType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_GetWarningType, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { "IsError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_IsError, 1, NULL }, - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "SetNewPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_SetNewPath, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_SetPath, 1, NULL }, -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { "ToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_ToString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_delete, 1, NULL }, - -#if ((wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "wxFileSystemWatcherEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor_overload, s_wxluafunc_wxLua_wxFileSystemWatcherEvent_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(((wxCHECK_VERSION(3,0,0)) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4))) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)))||(wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { 0, 0, 0, 0 }, -}; - -int wxFileSystemWatcherEvent_methodCount = sizeof(wxFileSystemWatcherEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - - -#if wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) -// --------------------------------------------------------------------------- -// Bind class wxFileSystemWatcher -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileSystemWatcher' -int wxluatype_wxFileSystemWatcher = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_Add[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxFileName, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_Add[1] = {{ wxLua_wxFileSystemWatcher_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileSystemWatcher_Add }}; -// virtual bool Add(const wxFileName& path, int events = wxFSW_EVENT_ALL); -static int LUACALL wxLua_wxFileSystemWatcher_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int events = wxFSW_EVENT_ALL - int events = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxFSW_EVENT_ALL); - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call Add - bool returns = (self->Add(*path, events)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_AddAny[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxFileName, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_AddAny(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_AddAny[1] = {{ wxLua_wxFileSystemWatcher_AddAny, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxFileSystemWatcher_AddAny }}; -// bool AddAny(const wxFileName& path, int events, wxFSWPathType type, const wxString& filespec = ""); -static int LUACALL wxLua_wxFileSystemWatcher_AddAny(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString filespec = "" - const wxString filespec = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // wxFSWPathType type - wxFSWPathType type = (wxFSWPathType)wxlua_getenumtype(L, 4); - // int events - int events = (int)wxlua_getnumbertype(L, 3); - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call AddAny - bool returns = (self->AddAny(*path, events, type, filespec)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_AddTree[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxFileName, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_AddTree(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_AddTree[1] = {{ wxLua_wxFileSystemWatcher_AddTree, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxFileSystemWatcher_AddTree }}; -// virtual bool AddTree(const wxFileName& path, int events = wxFSW_EVENT_ALL, const wxString& filespec = wxEmptyString); -static int LUACALL wxLua_wxFileSystemWatcher_AddTree(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString filespec = wxEmptyString - const wxString filespec = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int events = wxFSW_EVENT_ALL - int events = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxFSW_EVENT_ALL); - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call AddTree - bool returns = (self->AddTree(*path, events, filespec)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_GetOwner[] = { &wxluatype_wxFileSystemWatcher, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_GetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_GetOwner[1] = {{ wxLua_wxFileSystemWatcher_GetOwner, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcher_GetOwner }}; -// wxEvtHandler* GetOwner() const; -static int LUACALL wxLua_wxFileSystemWatcher_GetOwner(lua_State *L) -{ - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call GetOwner - wxEvtHandler* returns = (wxEvtHandler*)self->GetOwner(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_GetWatchedPaths[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_GetWatchedPaths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_GetWatchedPaths[1] = {{ wxLua_wxFileSystemWatcher_GetWatchedPaths, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcher_GetWatchedPaths }}; -// int GetWatchedPaths(wxArrayString* paths) const; -static int LUACALL wxLua_wxFileSystemWatcher_GetWatchedPaths(lua_State *L) -{ - // wxArrayString paths - wxArrayString * paths = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call GetWatchedPaths - int returns = (self->GetWatchedPaths(paths)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_GetWatchedPathsCount[] = { &wxluatype_wxFileSystemWatcher, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_GetWatchedPathsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_GetWatchedPathsCount[1] = {{ wxLua_wxFileSystemWatcher_GetWatchedPathsCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcher_GetWatchedPathsCount }}; -// int GetWatchedPathsCount() const; -static int LUACALL wxLua_wxFileSystemWatcher_GetWatchedPathsCount(lua_State *L) -{ - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call GetWatchedPathsCount - int returns = (self->GetWatchedPathsCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_Remove[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_Remove[1] = {{ wxLua_wxFileSystemWatcher_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcher_Remove }}; -// virtual bool Remove(const wxFileName& path); -static int LUACALL wxLua_wxFileSystemWatcher_Remove(lua_State *L) -{ - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call Remove - bool returns = (self->Remove(*path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_RemoveAll[] = { &wxluatype_wxFileSystemWatcher, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_RemoveAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_RemoveAll[1] = {{ wxLua_wxFileSystemWatcher_RemoveAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileSystemWatcher_RemoveAll }}; -// virtual bool RemoveAll(); -static int LUACALL wxLua_wxFileSystemWatcher_RemoveAll(lua_State *L) -{ - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call RemoveAll - bool returns = (self->RemoveAll()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_RemoveTree[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_RemoveTree(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_RemoveTree[1] = {{ wxLua_wxFileSystemWatcher_RemoveTree, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcher_RemoveTree }}; -// virtual bool RemoveTree(const wxFileName& path); -static int LUACALL wxLua_wxFileSystemWatcher_RemoveTree(lua_State *L) -{ - // const wxFileName path - const wxFileName * path = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call RemoveTree - bool returns = (self->RemoveTree(*path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileSystemWatcher_SetOwner[] = { &wxluatype_wxFileSystemWatcher, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxFileSystemWatcher_SetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_SetOwner[1] = {{ wxLua_wxFileSystemWatcher_SetOwner, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileSystemWatcher_SetOwner }}; -// void SetOwner(wxEvtHandler* handler); -static int LUACALL wxLua_wxFileSystemWatcher_SetOwner(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxFileSystemWatcher * self = (wxFileSystemWatcher *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileSystemWatcher); - // call SetOwner - self->SetOwner(handler); - - return 0; -} - -static int LUACALL wxLua_wxFileSystemWatcher_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileSystemWatcher_constructor[1] = {{ wxLua_wxFileSystemWatcher_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFileSystemWatcher(); -static int LUACALL wxLua_wxFileSystemWatcher_constructor(lua_State *L) -{ - // call constructor - wxFileSystemWatcher* returns = new wxFileSystemWatcher(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileSystemWatcher); - - return 1; -} - - - - -void wxLua_wxFileSystemWatcher_delete_function(void** p) -{ - wxFileSystemWatcher* o = (wxFileSystemWatcher*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileSystemWatcher_methods[] = { -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_Add, 1, NULL }, - { "AddAny", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_AddAny, 1, NULL }, - { "AddTree", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_AddTree, 1, NULL }, -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { "GetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_GetOwner, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "GetWatchedPaths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_GetWatchedPaths, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { "GetWatchedPathsCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_GetWatchedPathsCount, 1, NULL }, - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_Remove, 1, NULL }, -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { "RemoveAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_RemoveAll, 1, NULL }, - -#if (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - { "RemoveTree", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_RemoveTree, 1, NULL }, -#endif // (wxLUA_USE_wxFileName) && (wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4)) - - { "SetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileSystemWatcher_SetOwner, 1, NULL }, - { "wxFileSystemWatcher", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileSystemWatcher_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileSystemWatcher_methodCount = sizeof(wxFileSystemWatcher_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FSWATCHER && wxCHECK_VERSION(2,9,4) - diff --git a/wxLua/modules/wxbind/src/wxcore_appframe.cpp b/wxLua/modules/wxbind/src/wxcore_appframe.cpp deleted file mode 100644 index f403024d..00000000 --- a/wxLua/modules/wxbind/src/wxcore_appframe.cpp +++ /dev/null @@ -1,4076 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_appframe.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxApp -// --------------------------------------------------------------------------- -// Bind class wxAppConsole -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAppConsole' -int wxluatype_wxAppConsole = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_DeletePendingEvents[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_DeletePendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_DeletePendingEvents[1] = {{ wxLua_wxAppConsole_DeletePendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_DeletePendingEvents }}; -// %wxchkver_3_0_0 void DeletePendingEvents(); -static int LUACALL wxLua_wxAppConsole_DeletePendingEvents(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call DeletePendingEvents - self->DeletePendingEvents(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_ExitMainLoop[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_ExitMainLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_ExitMainLoop[1] = {{ wxLua_wxAppConsole_ExitMainLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_ExitMainLoop }}; -// %wxchkver_3_0_0 void ExitMainLoop(); -static int LUACALL wxLua_wxAppConsole_ExitMainLoop(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call ExitMainLoop - self->ExitMainLoop(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_FilterEvent[] = { &wxluatype_wxAppConsole, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxAppConsole_FilterEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_FilterEvent[1] = {{ wxLua_wxAppConsole_FilterEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_FilterEvent }}; -// %wxchkver_3_0_0 int FilterEvent(wxEvent& event); -static int LUACALL wxLua_wxAppConsole_FilterEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call FilterEvent - int returns = (self->FilterEvent(*event)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_GetAppDisplayName[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_GetAppDisplayName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetAppDisplayName[1] = {{ wxLua_wxAppConsole_GetAppDisplayName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_GetAppDisplayName }}; -// %wxchkver_3_0_0 wxString GetAppDisplayName() const; -static int LUACALL wxLua_wxAppConsole_GetAppDisplayName(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call GetAppDisplayName - wxString returns = (self->GetAppDisplayName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_GetAppName[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_GetAppName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetAppName[1] = {{ wxLua_wxAppConsole_GetAppName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_GetAppName }}; -// %wxchkver_3_0_0 wxString GetAppName() const; -static int LUACALL wxLua_wxAppConsole_GetAppName(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call GetAppName - wxString returns = (self->GetAppName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_GetClassName[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_GetClassName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetClassName[1] = {{ wxLua_wxAppConsole_GetClassName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_GetClassName }}; -// %wxchkver_3_0_0 wxString GetClassName() const; -static int LUACALL wxLua_wxAppConsole_GetClassName(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call GetClassName - wxString returns = (self->GetClassName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) -static int LUACALL wxLua_wxAppConsole_GetInstance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetInstance[1] = {{ wxLua_wxAppConsole_GetInstance, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 static wxAppConsole* GetInstance(); -static int LUACALL wxLua_wxAppConsole_GetInstance(lua_State *L) -{ - // call GetInstance - wxAppConsole* returns = (wxAppConsole*)wxAppConsole::GetInstance(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAppConsole); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_GetMainLoop[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_GetMainLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetMainLoop[1] = {{ wxLua_wxAppConsole_GetMainLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_GetMainLoop }}; -// %wxchkver_3_0_0 wxEventLoopBase* GetMainLoop() const; -static int LUACALL wxLua_wxAppConsole_GetMainLoop(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call GetMainLoop - wxEventLoopBase* returns = (wxEventLoopBase*)self->GetMainLoop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEventLoopBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_GetVendorDisplayName[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_GetVendorDisplayName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetVendorDisplayName[1] = {{ wxLua_wxAppConsole_GetVendorDisplayName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_GetVendorDisplayName }}; -// %wxchkver_3_0_0 const wxString& GetVendorDisplayName() const; -static int LUACALL wxLua_wxAppConsole_GetVendorDisplayName(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call GetVendorDisplayName - wxString returns = (self->GetVendorDisplayName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_GetVendorName[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_GetVendorName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_GetVendorName[1] = {{ wxLua_wxAppConsole_GetVendorName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_GetVendorName }}; -// %wxchkver_3_0_0 const wxString& GetVendorName() const; -static int LUACALL wxLua_wxAppConsole_GetVendorName(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call GetVendorName - wxString returns = (self->GetVendorName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_HasPendingEvents[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_HasPendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_HasPendingEvents[1] = {{ wxLua_wxAppConsole_HasPendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_HasPendingEvents }}; -// %wxchkver_3_0_0 bool HasPendingEvents() const; -static int LUACALL wxLua_wxAppConsole_HasPendingEvents(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call HasPendingEvents - bool returns = (self->HasPendingEvents()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxAppConsole_IsMainLoopRunning(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_IsMainLoopRunning[1] = {{ wxLua_wxAppConsole_IsMainLoopRunning, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 static bool IsMainLoopRunning(); -static int LUACALL wxLua_wxAppConsole_IsMainLoopRunning(lua_State *L) -{ - // call IsMainLoopRunning - bool returns = (wxAppConsole::IsMainLoopRunning()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_IsScheduledForDestruction[] = { &wxluatype_wxAppConsole, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxAppConsole_IsScheduledForDestruction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_IsScheduledForDestruction[1] = {{ wxLua_wxAppConsole_IsScheduledForDestruction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_IsScheduledForDestruction }}; -// %wxchkver_3_0_0 bool IsScheduledForDestruction(wxObject *object) const; -static int LUACALL wxLua_wxAppConsole_IsScheduledForDestruction(lua_State *L) -{ - // wxObject object - wxObject * object = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call IsScheduledForDestruction - bool returns = (self->IsScheduledForDestruction(object)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_MainLoop[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_MainLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_MainLoop[1] = {{ wxLua_wxAppConsole_MainLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_MainLoop }}; -// %override wxLua_wxAppConsole_MainLoop -// int MainLoop() -static int LUACALL wxLua_wxAppConsole_MainLoop(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - int returns = 0; - - if (!wxLuaState::sm_wxAppMainLoop_will_run && !wxAppConsole::IsMainLoopRunning()) - returns = self->MainLoop(); - - // push the result number - lua_pushinteger(L, returns); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnEventLoopEnter[] = { &wxluatype_wxAppConsole, &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxAppConsole_OnEventLoopEnter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnEventLoopEnter[1] = {{ wxLua_wxAppConsole_OnEventLoopEnter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_OnEventLoopEnter }}; -// %wxchkver_3_0_0 void OnEventLoopEnter(wxEventLoopBase* loop); -static int LUACALL wxLua_wxAppConsole_OnEventLoopEnter(lua_State *L) -{ - // wxEventLoopBase loop - wxEventLoopBase * loop = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEventLoopBase); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnEventLoopEnter - self->OnEventLoopEnter(loop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnEventLoopExit[] = { &wxluatype_wxAppConsole, &wxluatype_wxEventLoopBase, NULL }; -static int LUACALL wxLua_wxAppConsole_OnEventLoopExit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnEventLoopExit[1] = {{ wxLua_wxAppConsole_OnEventLoopExit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_OnEventLoopExit }}; -// %wxchkver_3_0_0 void OnEventLoopExit(wxEventLoopBase* loop); -static int LUACALL wxLua_wxAppConsole_OnEventLoopExit(lua_State *L) -{ - // wxEventLoopBase loop - wxEventLoopBase * loop = (wxEventLoopBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEventLoopBase); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnEventLoopExit - self->OnEventLoopExit(loop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnExceptionInMainLoop[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_OnExceptionInMainLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnExceptionInMainLoop[1] = {{ wxLua_wxAppConsole_OnExceptionInMainLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_OnExceptionInMainLoop }}; -// %wxchkver_3_0_0 bool OnExceptionInMainLoop(); -static int LUACALL wxLua_wxAppConsole_OnExceptionInMainLoop(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnExceptionInMainLoop - bool returns = (self->OnExceptionInMainLoop()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnExit[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_OnExit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnExit[1] = {{ wxLua_wxAppConsole_OnExit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_OnExit }}; -// %wxchkver_3_0_0 int OnExit(); -static int LUACALL wxLua_wxAppConsole_OnExit(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnExit - int returns = (self->OnExit()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnFatalException[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_OnFatalException(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnFatalException[1] = {{ wxLua_wxAppConsole_OnFatalException, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_OnFatalException }}; -// %wxchkver_3_0_0 void OnFatalException(); -static int LUACALL wxLua_wxAppConsole_OnFatalException(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnFatalException - self->OnFatalException(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnInit[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_OnInit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnInit[1] = {{ wxLua_wxAppConsole_OnInit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_OnInit }}; -// %wxchkver_3_0_0 bool OnInit(); -static int LUACALL wxLua_wxAppConsole_OnInit(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnInit - bool returns = (self->OnInit()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnRun[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_OnRun(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnRun[1] = {{ wxLua_wxAppConsole_OnRun, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_OnRun }}; -// %wxchkver_3_0_0 int OnRun(); -static int LUACALL wxLua_wxAppConsole_OnRun(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnRun - int returns = (self->OnRun()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_OnUnhandledException[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_OnUnhandledException(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_OnUnhandledException[1] = {{ wxLua_wxAppConsole_OnUnhandledException, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_OnUnhandledException }}; -// %wxchkver_3_0_0 void OnUnhandledException(); -static int LUACALL wxLua_wxAppConsole_OnUnhandledException(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call OnUnhandledException - self->OnUnhandledException(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_ProcessPendingEvents[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_ProcessPendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_ProcessPendingEvents[1] = {{ wxLua_wxAppConsole_ProcessPendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_ProcessPendingEvents }}; -// %wxchkver_3_0_0 void ProcessPendingEvents(); -static int LUACALL wxLua_wxAppConsole_ProcessPendingEvents(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call ProcessPendingEvents - self->ProcessPendingEvents(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_ResumeProcessingOfPendingEvents[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_ResumeProcessingOfPendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_ResumeProcessingOfPendingEvents[1] = {{ wxLua_wxAppConsole_ResumeProcessingOfPendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_ResumeProcessingOfPendingEvents }}; -// %wxchkver_3_0_0 void ResumeProcessingOfPendingEvents(); -static int LUACALL wxLua_wxAppConsole_ResumeProcessingOfPendingEvents(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call ResumeProcessingOfPendingEvents - self->ResumeProcessingOfPendingEvents(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_RethrowStoredException[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_RethrowStoredException(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_RethrowStoredException[1] = {{ wxLua_wxAppConsole_RethrowStoredException, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_RethrowStoredException }}; -// %wxchkver_3_1_0 void RethrowStoredException(); -static int LUACALL wxLua_wxAppConsole_RethrowStoredException(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call RethrowStoredException - self->RethrowStoredException(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_ScheduleForDestruction[] = { &wxluatype_wxAppConsole, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxAppConsole_ScheduleForDestruction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_ScheduleForDestruction[1] = {{ wxLua_wxAppConsole_ScheduleForDestruction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_ScheduleForDestruction }}; -// %wxchkver_3_0_0 void ScheduleForDestruction(wxObject *object); -static int LUACALL wxLua_wxAppConsole_ScheduleForDestruction(lua_State *L) -{ - // wxObject object - wxObject * object = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call ScheduleForDestruction - self->ScheduleForDestruction(object); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetAppDisplayName[] = { &wxluatype_wxAppConsole, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAppConsole_SetAppDisplayName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetAppDisplayName[1] = {{ wxLua_wxAppConsole_SetAppDisplayName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_SetAppDisplayName }}; -// %wxchkver_3_0_0 void SetAppDisplayName(const wxString& name); -static int LUACALL wxLua_wxAppConsole_SetAppDisplayName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetAppDisplayName - self->SetAppDisplayName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetAppName[] = { &wxluatype_wxAppConsole, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAppConsole_SetAppName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetAppName[1] = {{ wxLua_wxAppConsole_SetAppName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_SetAppName }}; -// %wxchkver_3_0_0 void SetAppName(const wxString& name); -static int LUACALL wxLua_wxAppConsole_SetAppName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetAppName - self->SetAppName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetCLocale[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_SetCLocale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetCLocale[1] = {{ wxLua_wxAppConsole_SetCLocale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_SetCLocale }}; -// %wxchkver_3_0_0 void SetCLocale(); -static int LUACALL wxLua_wxAppConsole_SetCLocale(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetCLocale - self->SetCLocale(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetClassName[] = { &wxluatype_wxAppConsole, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAppConsole_SetClassName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetClassName[1] = {{ wxLua_wxAppConsole_SetClassName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_SetClassName }}; -// %wxchkver_3_0_0 void SetClassName(const wxString& name); -static int LUACALL wxLua_wxAppConsole_SetClassName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetClassName - self->SetClassName(name); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetInstance[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_SetInstance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetInstance[1] = {{ wxLua_wxAppConsole_SetInstance, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_SetInstance }}; -// %wxchkver_3_0_0 static void SetInstance(wxAppConsole* app); -static int LUACALL wxLua_wxAppConsole_SetInstance(lua_State *L) -{ - // wxAppConsole app - wxAppConsole * app = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetInstance - wxAppConsole::SetInstance(app); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetVendorDisplayName[] = { &wxluatype_wxAppConsole, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAppConsole_SetVendorDisplayName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetVendorDisplayName[1] = {{ wxLua_wxAppConsole_SetVendorDisplayName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_SetVendorDisplayName }}; -// %wxchkver_3_0_0 void SetVendorDisplayName(const wxString& name); -static int LUACALL wxLua_wxAppConsole_SetVendorDisplayName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetVendorDisplayName - self->SetVendorDisplayName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SetVendorName[] = { &wxluatype_wxAppConsole, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAppConsole_SetVendorName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SetVendorName[1] = {{ wxLua_wxAppConsole_SetVendorName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAppConsole_SetVendorName }}; -// %wxchkver_3_0_0 void SetVendorName(const wxString& name); -static int LUACALL wxLua_wxAppConsole_SetVendorName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SetVendorName - self->SetVendorName(name); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_StoreCurrentException[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_StoreCurrentException(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_StoreCurrentException[1] = {{ wxLua_wxAppConsole_StoreCurrentException, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_StoreCurrentException }}; -// %wxchkver_3_1_0 bool StoreCurrentException(); -static int LUACALL wxLua_wxAppConsole_StoreCurrentException(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call StoreCurrentException - bool returns = (self->StoreCurrentException()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_SuspendProcessingOfPendingEvents[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_SuspendProcessingOfPendingEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_SuspendProcessingOfPendingEvents[1] = {{ wxLua_wxAppConsole_SuspendProcessingOfPendingEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_SuspendProcessingOfPendingEvents }}; -// %wxchkver_3_0_0 void SuspendProcessingOfPendingEvents(); -static int LUACALL wxLua_wxAppConsole_SuspendProcessingOfPendingEvents(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call SuspendProcessingOfPendingEvents - self->SuspendProcessingOfPendingEvents(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_UsesEventLoop[] = { &wxluatype_wxAppConsole, NULL }; -static int LUACALL wxLua_wxAppConsole_UsesEventLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_UsesEventLoop[1] = {{ wxLua_wxAppConsole_UsesEventLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAppConsole_UsesEventLoop }}; -// %wxchkver_3_0_0 bool UsesEventLoop() const; -static int LUACALL wxLua_wxAppConsole_UsesEventLoop(lua_State *L) -{ - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call UsesEventLoop - bool returns = (self->UsesEventLoop()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAppConsole_Yield[] = { &wxluatype_wxAppConsole, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxAppConsole_Yield(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAppConsole_Yield[1] = {{ wxLua_wxAppConsole_Yield, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAppConsole_Yield }}; -// %wxchkver_3_0_0 bool Yield(bool onlyIfNeeded = false); -static int LUACALL wxLua_wxAppConsole_Yield(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool onlyIfNeeded = false - bool onlyIfNeeded = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxAppConsole * self = (wxAppConsole *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAppConsole); - // call Yield - bool returns = (self->Yield(onlyIfNeeded)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - - - -void wxLua_wxAppConsole_delete_function(void** p) -{ - wxAppConsole* o = (wxAppConsole*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAppConsole_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "DeletePendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_DeletePendingEvents, 1, NULL }, - { "ExitMainLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_ExitMainLoop, 1, NULL }, - { "FilterEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_FilterEvent, 1, NULL }, - { "GetAppDisplayName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_GetAppDisplayName, 1, NULL }, - { "GetAppName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_GetAppName, 1, NULL }, - { "GetClassName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_GetClassName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - { "GetInstance", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxAppConsole_GetInstance, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "GetMainLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_GetMainLoop, 1, NULL }, - { "GetVendorDisplayName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_GetVendorDisplayName, 1, NULL }, - { "GetVendorName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_GetVendorName, 1, NULL }, - { "HasPendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_HasPendingEvents, 1, NULL }, - { "IsMainLoopRunning", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxAppConsole_IsMainLoopRunning, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) - { "IsScheduledForDestruction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_IsScheduledForDestruction, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "MainLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_MainLoop, 1, NULL }, - { "OnEventLoopEnter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnEventLoopEnter, 1, NULL }, - { "OnEventLoopExit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnEventLoopExit, 1, NULL }, - { "OnExceptionInMainLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnExceptionInMainLoop, 1, NULL }, - { "OnExit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnExit, 1, NULL }, - { "OnFatalException", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnFatalException, 1, NULL }, - { "OnInit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnInit, 1, NULL }, - { "OnRun", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnRun, 1, NULL }, - { "OnUnhandledException", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_OnUnhandledException, 1, NULL }, - { "ProcessPendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_ProcessPendingEvents, 1, NULL }, - { "ResumeProcessingOfPendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_ResumeProcessingOfPendingEvents, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) - { "RethrowStoredException", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_RethrowStoredException, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) - { "ScheduleForDestruction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_ScheduleForDestruction, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxObject) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SetAppDisplayName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SetAppDisplayName, 1, NULL }, - { "SetAppName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SetAppName, 1, NULL }, - { "SetCLocale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SetCLocale, 1, NULL }, - { "SetClassName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SetClassName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - { "SetInstance", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxAppConsole_SetInstance, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SetVendorDisplayName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SetVendorDisplayName, 1, NULL }, - { "SetVendorName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SetVendorName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) - { "StoreCurrentException", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_StoreCurrentException, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SuspendProcessingOfPendingEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_SuspendProcessingOfPendingEvents, 1, NULL }, - { "UsesEventLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_UsesEventLoop, 1, NULL }, - { "Yield", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAppConsole_Yield, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - - { 0, 0, 0, 0 }, -}; - -int wxAppConsole_methodCount = sizeof(wxAppConsole_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxApp - - -#if wxLUA_USE_wxApp -// --------------------------------------------------------------------------- -// Bind class wxApp -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxApp' -int wxluatype_wxApp = WXLUA_TUNKNOWN; - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_Dispatch[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_Dispatch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_Dispatch[1] = {{ wxLua_wxApp_Dispatch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_Dispatch }}; -// !%wxchkver_3_0_0 void Dispatch(); -static int LUACALL wxLua_wxApp_Dispatch(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call Dispatch - self->Dispatch(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_ExitMainLoop[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_ExitMainLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_ExitMainLoop[1] = {{ wxLua_wxApp_ExitMainLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_ExitMainLoop }}; -// !%wxchkver_3_0_0 void ExitMainLoop(); -static int LUACALL wxLua_wxApp_ExitMainLoop(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call ExitMainLoop - self->ExitMainLoop(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetAppName[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetAppName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetAppName[1] = {{ wxLua_wxApp_GetAppName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetAppName }}; -// !%wxchkver_3_0_0 wxString GetAppName() const; -static int LUACALL wxLua_wxApp_GetAppName(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetAppName - wxString returns = (self->GetAppName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetClassName[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetClassName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetClassName[1] = {{ wxLua_wxApp_GetClassName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetClassName }}; -// !%wxchkver_3_0_0 wxString GetClassName() const; -static int LUACALL wxLua_wxApp_GetClassName(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetClassName - wxString returns = (self->GetClassName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetDisplayMode[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetDisplayMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetDisplayMode[1] = {{ wxLua_wxApp_GetDisplayMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetDisplayMode }}; -// %wxchkver_3_0_0 wxVideoMode GetDisplayMode() const; -static int LUACALL wxLua_wxApp_GetDisplayMode(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetDisplayMode - // allocate a new object using the copy constructor - wxVideoMode* returns = new wxVideoMode(self->GetDisplayMode()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVideoMode); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetExitOnFrameDelete[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetExitOnFrameDelete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetExitOnFrameDelete[1] = {{ wxLua_wxApp_GetExitOnFrameDelete, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetExitOnFrameDelete }}; -// bool GetExitOnFrameDelete() const; -static int LUACALL wxLua_wxApp_GetExitOnFrameDelete(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetExitOnFrameDelete - bool returns = (self->GetExitOnFrameDelete()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetLayoutDirection[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetLayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetLayoutDirection[1] = {{ wxLua_wxApp_GetLayoutDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetLayoutDirection }}; -// %wxchkver_3_0_0 wxLayoutDirection GetLayoutDirection() const; -static int LUACALL wxLua_wxApp_GetLayoutDirection(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetLayoutDirection - wxLayoutDirection returns = (self->GetLayoutDirection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetTopWindow[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetTopWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetTopWindow[1] = {{ wxLua_wxApp_GetTopWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetTopWindow }}; -// wxWindow* GetTopWindow() const; -static int LUACALL wxLua_wxApp_GetTopWindow(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetTopWindow - wxWindow* returns = (wxWindow*)self->GetTopWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetUseBestVisual[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetUseBestVisual(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetUseBestVisual[1] = {{ wxLua_wxApp_GetUseBestVisual, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetUseBestVisual }}; -// bool GetUseBestVisual() const; -static int LUACALL wxLua_wxApp_GetUseBestVisual(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetUseBestVisual - bool returns = (self->GetUseBestVisual()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_GetVendorName[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_GetVendorName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_GetVendorName[1] = {{ wxLua_wxApp_GetVendorName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_GetVendorName }}; -// !%wxchkver_3_0_0 wxString GetVendorName() const; -static int LUACALL wxLua_wxApp_GetVendorName(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call GetVendorName - wxString returns = (self->GetVendorName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_IsActive[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_IsActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_IsActive[1] = {{ wxLua_wxApp_IsActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_IsActive }}; -// bool IsActive() const; -static int LUACALL wxLua_wxApp_IsActive(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call IsActive - bool returns = (self->IsActive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static int LUACALL wxLua_wxApp_IsMainLoopRunning(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_IsMainLoopRunning[1] = {{ wxLua_wxApp_IsMainLoopRunning, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// !%wxchkver_3_0_0 static bool IsMainLoopRunning(); -static int LUACALL wxLua_wxApp_IsMainLoopRunning(lua_State *L) -{ - // call IsMainLoopRunning - bool returns = (wxApp::IsMainLoopRunning()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MacNewFile[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_MacNewFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MacNewFile[1] = {{ wxLua_wxApp_MacNewFile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_MacNewFile }}; -// %wxchkver_3_0_0 && %mac void MacNewFile(); -static int LUACALL wxLua_wxApp_MacNewFile(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call MacNewFile - self->MacNewFile(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MacOpenFile[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_MacOpenFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MacOpenFile[1] = {{ wxLua_wxApp_MacOpenFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_MacOpenFile }}; -// %wxchkver_3_0_0 && %mac void MacOpenFile(const wxString& fileName); -static int LUACALL wxLua_wxApp_MacOpenFile(lua_State *L) -{ - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call MacOpenFile - self->MacOpenFile(fileName); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MacOpenFiles[] = { &wxluatype_wxApp, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxApp_MacOpenFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MacOpenFiles[1] = {{ wxLua_wxApp_MacOpenFiles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_MacOpenFiles }}; -// %wxchkver_3_0_0 && %mac void MacOpenFiles(const wxArrayString& fileNames); -static int LUACALL wxLua_wxApp_MacOpenFiles(lua_State *L) -{ - // const wxArrayString fileNames - wxLuaSmartwxArrayString fileNames = wxlua_getwxArrayString(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call MacOpenFiles - self->MacOpenFiles(fileNames); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MacOpenURL[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_MacOpenURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MacOpenURL[1] = {{ wxLua_wxApp_MacOpenURL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_MacOpenURL }}; -// %wxchkver_3_0_0 && %mac void MacOpenURL(const wxString& url); -static int LUACALL wxLua_wxApp_MacOpenURL(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call MacOpenURL - self->MacOpenURL(url); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MacPrintFile[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_MacPrintFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MacPrintFile[1] = {{ wxLua_wxApp_MacPrintFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_MacPrintFile }}; -// %wxchkver_3_0_0 && %mac void MacPrintFile(const wxString& fileName); -static int LUACALL wxLua_wxApp_MacPrintFile(lua_State *L) -{ - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call MacPrintFile - self->MacPrintFile(fileName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MacReopenApp[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_MacReopenApp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MacReopenApp[1] = {{ wxLua_wxApp_MacReopenApp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_MacReopenApp }}; -// %wxchkver_3_0_0 && %mac void MacReopenApp(); -static int LUACALL wxLua_wxApp_MacReopenApp(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call MacReopenApp - self->MacReopenApp(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_MainLoop[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_MainLoop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_MainLoop[1] = {{ wxLua_wxApp_MainLoop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_MainLoop }}; -// %override wxLua_wxApp_MainLoop -// int MainLoop() -static int LUACALL wxLua_wxApp_MainLoop(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - int returns = 0; - - if (!wxLuaState::sm_wxAppMainLoop_will_run && !wxApp::IsMainLoopRunning()) - returns = self->MainLoop(); - - // push the result number - lua_pushinteger(L, returns); - - return 1; -} - - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,1,4) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_OSXEnableAutomaticTabbing[] = { &wxluatype_wxApp, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxApp_OSXEnableAutomaticTabbing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_OSXEnableAutomaticTabbing[1] = {{ wxLua_wxApp_OSXEnableAutomaticTabbing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_OSXEnableAutomaticTabbing }}; -// %wxchkver_3_1_4 && %mac void OSXEnableAutomaticTabbing(bool enable); -static int LUACALL wxLua_wxApp_OSXEnableAutomaticTabbing(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call OSXEnableAutomaticTabbing - self->OSXEnableAutomaticTabbing(enable); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,4) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_OSXIsGUIApplication[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_OSXIsGUIApplication(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_OSXIsGUIApplication[1] = {{ wxLua_wxApp_OSXIsGUIApplication, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_OSXIsGUIApplication }}; -// %wxchkver_3_0_0 && %mac bool OSXIsGUIApplication(); -static int LUACALL wxLua_wxApp_OSXIsGUIApplication(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call OSXIsGUIApplication - bool returns = (self->OSXIsGUIApplication()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_Pending[] = { &wxluatype_wxApp, NULL }; -static int LUACALL wxLua_wxApp_Pending(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_Pending[1] = {{ wxLua_wxApp_Pending, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxApp_Pending }}; -// !%wxchkver_3_0_0 bool Pending(); -static int LUACALL wxLua_wxApp_Pending(lua_State *L) -{ - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call Pending - bool returns = (self->Pending()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SafeYield[] = { &wxluatype_wxApp, &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxApp_SafeYield(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SafeYield[1] = {{ wxLua_wxApp_SafeYield, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxApp_SafeYield }}; -// %wxchkver_3_0_0 bool SafeYield(wxWindow *win, bool onlyIfNeeded); -static int LUACALL wxLua_wxApp_SafeYield(lua_State *L) -{ - // bool onlyIfNeeded - bool onlyIfNeeded = wxlua_getbooleantype(L, 3); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SafeYield - bool returns = (self->SafeYield(win, onlyIfNeeded)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SafeYieldFor[] = { &wxluatype_wxApp, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxApp_SafeYieldFor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SafeYieldFor[1] = {{ wxLua_wxApp_SafeYieldFor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxApp_SafeYieldFor }}; -// %wxchkver_3_0_0 bool SafeYieldFor(wxWindow *win, long eventsToProcess); -static int LUACALL wxLua_wxApp_SafeYieldFor(lua_State *L) -{ - // long eventsToProcess - long eventsToProcess = (long)wxlua_getnumbertype(L, 3); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SafeYieldFor - bool returns = (self->SafeYieldFor(win, eventsToProcess)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(2,6,0) && !wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SendIdleEvents[] = { &wxluatype_wxApp, &wxluatype_wxWindow, &wxluatype_wxIdleEvent, NULL }; -static int LUACALL wxLua_wxApp_SendIdleEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SendIdleEvents[1] = {{ wxLua_wxApp_SendIdleEvents, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxApp_SendIdleEvents }}; -// %wxchkver_2_6 && !%wxchkver_2_9_2 bool SendIdleEvents(wxWindow* win, wxIdleEvent& event); -static int LUACALL wxLua_wxApp_SendIdleEvents(lua_State *L) -{ - // wxIdleEvent event - wxIdleEvent * event = (wxIdleEvent *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIdleEvent); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SendIdleEvents - bool returns = (self->SendIdleEvents(win, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,6,0) && !wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetAppName[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_SetAppName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetAppName[1] = {{ wxLua_wxApp_SetAppName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetAppName }}; -// !%wxchkver_3_0_0 void SetAppName(const wxString& name); -static int LUACALL wxLua_wxApp_SetAppName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetAppName - self->SetAppName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetClassName[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_SetClassName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetClassName[1] = {{ wxLua_wxApp_SetClassName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetClassName }}; -// !%wxchkver_3_0_0 void SetClassName(const wxString& name); -static int LUACALL wxLua_wxApp_SetClassName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetClassName - self->SetClassName(name); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetDisplayMode[] = { &wxluatype_wxApp, &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxApp_SetDisplayMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetDisplayMode[1] = {{ wxLua_wxApp_SetDisplayMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetDisplayMode }}; -// %wxchkver_3_0_0 bool SetDisplayMode(const wxVideoMode& info); -static int LUACALL wxLua_wxApp_SetDisplayMode(lua_State *L) -{ - // const wxVideoMode info - const wxVideoMode * info = (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetDisplayMode - bool returns = (self->SetDisplayMode(*info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetExitOnFrameDelete[] = { &wxluatype_wxApp, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxApp_SetExitOnFrameDelete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetExitOnFrameDelete[1] = {{ wxLua_wxApp_SetExitOnFrameDelete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetExitOnFrameDelete }}; -// void SetExitOnFrameDelete(bool flag); -static int LUACALL wxLua_wxApp_SetExitOnFrameDelete(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetExitOnFrameDelete - self->SetExitOnFrameDelete(flag); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetNativeTheme[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_SetNativeTheme(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetNativeTheme[1] = {{ wxLua_wxApp_SetNativeTheme, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetNativeTheme }}; -// %wxchkver_3_0_0 bool SetNativeTheme(const wxString& theme); -static int LUACALL wxLua_wxApp_SetNativeTheme(lua_State *L) -{ - // const wxString theme - const wxString theme = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetNativeTheme - bool returns = (self->SetNativeTheme(theme)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetTopWindow[] = { &wxluatype_wxApp, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxApp_SetTopWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetTopWindow[1] = {{ wxLua_wxApp_SetTopWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetTopWindow }}; -// void SetTopWindow(wxWindow* window); -static int LUACALL wxLua_wxApp_SetTopWindow(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetTopWindow - self->SetTopWindow(window); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetUseBestVisual1[] = { &wxluatype_wxApp, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxApp_SetUseBestVisual1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetUseBestVisual1[1] = {{ wxLua_wxApp_SetUseBestVisual1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetUseBestVisual1 }}; -// !%wxchkver_3_0_0 void SetUseBestVisual(bool flag); -static int LUACALL wxLua_wxApp_SetUseBestVisual1(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetUseBestVisual - self->SetUseBestVisual(flag); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetUseBestVisual[] = { &wxluatype_wxApp, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxApp_SetUseBestVisual(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetUseBestVisual[1] = {{ wxLua_wxApp_SetUseBestVisual, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxApp_SetUseBestVisual }}; -// %wxchkver_3_0_0 void SetUseBestVisual(bool flag, bool forceTrueColour = false); -static int LUACALL wxLua_wxApp_SetUseBestVisual(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool forceTrueColour = false - bool forceTrueColour = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetUseBestVisual - self->SetUseBestVisual(flag, forceTrueColour); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -static wxLuaArgType s_wxluatypeArray_wxLua_wxApp_SetVendorName[] = { &wxluatype_wxApp, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxApp_SetVendorName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetVendorName[1] = {{ wxLua_wxApp_SetVendorName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetVendorName }}; -// !%wxchkver_3_0_0 void SetVendorName(const wxString& name); -static int LUACALL wxLua_wxApp_SetVendorName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxApp * self = (wxApp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxApp); - // call SetVendorName - self->SetVendorName(name); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) -static int LUACALL wxLua_wxApp_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_constructor[1] = {{ wxLua_wxApp_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxApp(); -static int LUACALL wxLua_wxApp_constructor(lua_State *L) -{ - // call constructor - wxApp* returns = new wxApp(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxApp); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxApp_SetUseBestVisual_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { wxLua_wxApp_SetUseBestVisual1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxApp_SetUseBestVisual1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { wxLua_wxApp_SetUseBestVisual, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxApp_SetUseBestVisual }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) -}; -static int s_wxluafunc_wxLua_wxApp_SetUseBestVisual_overload_count = sizeof(s_wxluafunc_wxLua_wxApp_SetUseBestVisual_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) - -void wxLua_wxApp_delete_function(void** p) -{ - wxApp* o = (wxApp*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxApp_methods[] = { -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "Dispatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_Dispatch, 1, NULL }, - { "ExitMainLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_ExitMainLoop, 1, NULL }, - { "GetAppName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetAppName, 1, NULL }, - { "GetClassName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetClassName, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { "GetDisplayMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetDisplayMode, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - - { "GetExitOnFrameDelete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetExitOnFrameDelete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) - { "GetLayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetLayoutDirection, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) - - { "GetTopWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetTopWindow, 1, NULL }, - { "GetUseBestVisual", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetUseBestVisual, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "GetVendorName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_GetVendorName, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - - { "IsActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_IsActive, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "IsMainLoopRunning", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxApp_IsMainLoopRunning, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - { "MacNewFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MacNewFile, 1, NULL }, - { "MacOpenFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MacOpenFile, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxArrayString) - { "MacOpenFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MacOpenFiles, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - { "MacOpenURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MacOpenURL, 1, NULL }, - { "MacPrintFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MacPrintFile, 1, NULL }, - { "MacReopenApp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MacReopenApp, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "MainLoop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_MainLoop, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,1,4) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - { "OSXEnableAutomaticTabbing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_OSXEnableAutomaticTabbing, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,4) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - { "OSXIsGUIApplication", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_OSXIsGUIApplication, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "Pending", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_Pending, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SafeYield", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SafeYield, 1, NULL }, - { "SafeYieldFor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SafeYieldFor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if (wxCHECK_VERSION(2,6,0) && !wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxApp) - { "SendIdleEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SendIdleEvents, 1, NULL }, -#endif // (wxCHECK_VERSION(2,6,0) && !wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxApp) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SetAppName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetAppName, 1, NULL }, - { "SetClassName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetClassName, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { "SetDisplayMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetDisplayMode, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - - { "SetExitOnFrameDelete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetExitOnFrameDelete, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SetNativeTheme", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetNativeTheme, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - - { "SetTopWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetTopWindow, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) - { "SetUseBestVisual", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetUseBestVisual_overload, s_wxluafunc_wxLua_wxApp_SetUseBestVisual_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - { "SetVendorName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxApp_SetVendorName, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - { "wxApp", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxApp_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxApp)) && (wxLUA_USE_wxApp) - - { 0, 0, 0, 0 }, -}; - -int wxApp_methodCount = sizeof(wxApp_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxApp - - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog -// --------------------------------------------------------------------------- -// Bind class wxNonOwnedWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNonOwnedWindow' -int wxluatype_wxNonOwnedWindow = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNonOwnedWindow_SetShape[] = { &wxluatype_wxNonOwnedWindow, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxNonOwnedWindow_SetShape(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNonOwnedWindow_SetShape[1] = {{ wxLua_wxNonOwnedWindow_SetShape, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNonOwnedWindow_SetShape }}; -// %wxchkver_3_0_0 bool SetShape(const wxRegion& region); -static int LUACALL wxLua_wxNonOwnedWindow_SetShape(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxNonOwnedWindow * self = (wxNonOwnedWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNonOwnedWindow); - // call SetShape - bool returns = (self->SetShape(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) - - - -void wxLua_wxNonOwnedWindow_delete_function(void** p) -{ - wxNonOwnedWindow* o = (wxNonOwnedWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNonOwnedWindow_methods[] = { -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) - { "SetShape", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNonOwnedWindow_SetShape, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) - - { 0, 0, 0, 0 }, -}; - -int wxNonOwnedWindow_methodCount = sizeof(wxNonOwnedWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog -// --------------------------------------------------------------------------- -// Bind class wxTopLevelWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTopLevelWindow' -int wxluatype_wxTopLevelWindow = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_CanSetTransparent[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_CanSetTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_CanSetTransparent[1] = {{ wxLua_wxTopLevelWindow_CanSetTransparent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_CanSetTransparent }}; -// bool CanSetTransparent(); -static int LUACALL wxLua_wxTopLevelWindow_CanSetTransparent(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call CanSetTransparent - bool returns = (self->CanSetTransparent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_CenterOnScreen[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_CenterOnScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_CenterOnScreen[1] = {{ wxLua_wxTopLevelWindow_CenterOnScreen, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_CenterOnScreen }}; -// %wxchkver_3_0_0 void CenterOnScreen(int direction = wxBOTH); -static int LUACALL wxLua_wxTopLevelWindow_CenterOnScreen(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call CenterOnScreen - self->CenterOnScreen(direction); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_CentreOnScreen[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_CentreOnScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_CentreOnScreen[1] = {{ wxLua_wxTopLevelWindow_CentreOnScreen, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_CentreOnScreen }}; -// %wxchkver_3_0_0 void CentreOnScreen(int direction = wxBOTH); -static int LUACALL wxLua_wxTopLevelWindow_CentreOnScreen(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call CentreOnScreen - self->CentreOnScreen(direction); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_Create[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_Create[1] = {{ wxLua_wxTopLevelWindow_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxTopLevelWindow_Create }}; -// %wxchkver_3_0_0 bool Create(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); -static int LUACALL wxLua_wxTopLevelWindow_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxFrameNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxFrameNameStr)); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call Create - bool returns = (self->Create(parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableCloseButton[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_EnableCloseButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_EnableCloseButton[1] = {{ wxLua_wxTopLevelWindow_EnableCloseButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableCloseButton }}; -// bool EnableCloseButton(bool enable = true); -static int LUACALL wxLua_wxTopLevelWindow_EnableCloseButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call EnableCloseButton - bool returns = (self->EnableCloseButton(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableFullScreenView[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_EnableFullScreenView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_EnableFullScreenView[1] = {{ wxLua_wxTopLevelWindow_EnableFullScreenView, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableFullScreenView }}; -// %wxchkver_3_1_0 bool EnableFullScreenView(bool enable = true); -static int LUACALL wxLua_wxTopLevelWindow_EnableFullScreenView(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call EnableFullScreenView - bool returns = (self->EnableFullScreenView(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableMaximizeButton[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_EnableMaximizeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_EnableMaximizeButton[1] = {{ wxLua_wxTopLevelWindow_EnableMaximizeButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableMaximizeButton }}; -// %wxchkver_3_1_0 bool EnableMaximizeButton(bool enable = true); -static int LUACALL wxLua_wxTopLevelWindow_EnableMaximizeButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call EnableMaximizeButton - bool returns = (self->EnableMaximizeButton(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableMinimizeButton[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_EnableMinimizeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_EnableMinimizeButton[1] = {{ wxLua_wxTopLevelWindow_EnableMinimizeButton, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_EnableMinimizeButton }}; -// %wxchkver_3_1_0 bool EnableMinimizeButton(bool enable = true); -static int LUACALL wxLua_wxTopLevelWindow_EnableMinimizeButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call EnableMinimizeButton - bool returns = (self->EnableMinimizeButton(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_GetDefaultItem[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_GetDefaultItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_GetDefaultItem[1] = {{ wxLua_wxTopLevelWindow_GetDefaultItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_GetDefaultItem }}; -// %wxchkver_2_8 wxWindow* GetDefaultItem() const; -static int LUACALL wxLua_wxTopLevelWindow_GetDefaultItem(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call GetDefaultItem - wxWindow* returns = (wxWindow*)self->GetDefaultItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) -static int LUACALL wxLua_wxTopLevelWindow_GetDefaultSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_GetDefaultSize[1] = {{ wxLua_wxTopLevelWindow_GetDefaultSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 static wxSize GetDefaultSize(); -static int LUACALL wxLua_wxTopLevelWindow_GetDefaultSize(lua_State *L) -{ - // call GetDefaultSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxTopLevelWindow::GetDefaultSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_GetIcon[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_GetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_GetIcon[1] = {{ wxLua_wxTopLevelWindow_GetIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_GetIcon }}; -// wxIcon GetIcon() const; -static int LUACALL wxLua_wxTopLevelWindow_GetIcon(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_GetIcons[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_GetIcons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_GetIcons[1] = {{ wxLua_wxTopLevelWindow_GetIcons, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_GetIcons }}; -// %wxchkver_3_0_0 const wxIconBundle& GetIcons() const; -static int LUACALL wxLua_wxTopLevelWindow_GetIcons(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call GetIcons - const wxIconBundle* returns = (const wxIconBundle*)&self->GetIcons(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_GetTitle[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_GetTitle[1] = {{ wxLua_wxTopLevelWindow_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_GetTitle }}; -// wxString GetTitle() const; -static int LUACALL wxLua_wxTopLevelWindow_GetTitle(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_GetTmpDefaultItem[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_GetTmpDefaultItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_GetTmpDefaultItem[1] = {{ wxLua_wxTopLevelWindow_GetTmpDefaultItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_GetTmpDefaultItem }}; -// %wxchkver_2_8 wxWindow* GetTmpDefaultItem() const; -static int LUACALL wxLua_wxTopLevelWindow_GetTmpDefaultItem(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call GetTmpDefaultItem - wxWindow* returns = (wxWindow*)self->GetTmpDefaultItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_Iconize[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_Iconize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_Iconize[1] = {{ wxLua_wxTopLevelWindow_Iconize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_Iconize }}; -// void Iconize(bool iconize); -static int LUACALL wxLua_wxTopLevelWindow_Iconize(lua_State *L) -{ - // bool iconize - bool iconize = wxlua_getbooleantype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call Iconize - self->Iconize(iconize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_IsActive[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_IsActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_IsActive[1] = {{ wxLua_wxTopLevelWindow_IsActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_IsActive }}; -// bool IsActive() const; -static int LUACALL wxLua_wxTopLevelWindow_IsActive(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call IsActive - bool returns = (self->IsActive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_IsAlwaysMaximized[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_IsAlwaysMaximized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_IsAlwaysMaximized[1] = {{ wxLua_wxTopLevelWindow_IsAlwaysMaximized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_IsAlwaysMaximized }}; -// bool IsAlwaysMaximized() const; -static int LUACALL wxLua_wxTopLevelWindow_IsAlwaysMaximized(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call IsAlwaysMaximized - bool returns = (self->IsAlwaysMaximized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_IsFullScreen[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_IsFullScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_IsFullScreen[1] = {{ wxLua_wxTopLevelWindow_IsFullScreen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_IsFullScreen }}; -// bool IsFullScreen() const; -static int LUACALL wxLua_wxTopLevelWindow_IsFullScreen(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call IsFullScreen - bool returns = (self->IsFullScreen()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_IsIconized[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_IsIconized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_IsIconized[1] = {{ wxLua_wxTopLevelWindow_IsIconized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_IsIconized }}; -// bool IsIconized() const; -static int LUACALL wxLua_wxTopLevelWindow_IsIconized(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call IsIconized - bool returns = (self->IsIconized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_IsMaximized[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_IsMaximized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_IsMaximized[1] = {{ wxLua_wxTopLevelWindow_IsMaximized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_IsMaximized }}; -// bool IsMaximized() const; -static int LUACALL wxLua_wxTopLevelWindow_IsMaximized(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call IsMaximized - bool returns = (self->IsMaximized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_Layout[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_Layout[1] = {{ wxLua_wxTopLevelWindow_Layout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_Layout }}; -// %wxchkver_3_0_0 bool Layout(); -static int LUACALL wxLua_wxTopLevelWindow_Layout(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call Layout - bool returns = (self->Layout()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_MSWGetSystemMenu[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_MSWGetSystemMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_MSWGetSystemMenu[1] = {{ wxLua_wxTopLevelWindow_MSWGetSystemMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_MSWGetSystemMenu }}; -// %wxchkver_3_0_0 && %win wxMenu *MSWGetSystemMenu() const; -static int LUACALL wxLua_wxTopLevelWindow_MSWGetSystemMenu(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call MSWGetSystemMenu - wxMenu* returns = (wxMenu*)self->MSWGetSystemMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_Maximize[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_Maximize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_Maximize[1] = {{ wxLua_wxTopLevelWindow_Maximize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_Maximize }}; -// void Maximize(bool maximize); -static int LUACALL wxLua_wxTopLevelWindow_Maximize(lua_State *L) -{ - // bool maximize - bool maximize = wxlua_getbooleantype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call Maximize - self->Maximize(maximize); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_OSXIsModified[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_OSXIsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_OSXIsModified[1] = {{ wxLua_wxTopLevelWindow_OSXIsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_OSXIsModified }}; -// %wxchkver_3_0_0 && %mac bool OSXIsModified() const; -static int LUACALL wxLua_wxTopLevelWindow_OSXIsModified(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call OSXIsModified - bool returns = (self->OSXIsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_OSXSetModified[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_OSXSetModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_OSXSetModified[1] = {{ wxLua_wxTopLevelWindow_OSXSetModified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_OSXSetModified }}; -// %wxchkver_3_0_0 && %mac void OSXSetModified(bool modified); -static int LUACALL wxLua_wxTopLevelWindow_OSXSetModified(lua_State *L) -{ - // bool modified - bool modified = wxlua_getbooleantype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call OSXSetModified - self->OSXSetModified(modified); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_RequestUserAttention[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_RequestUserAttention(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_RequestUserAttention[1] = {{ wxLua_wxTopLevelWindow_RequestUserAttention, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_RequestUserAttention }}; -// void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO); -static int LUACALL wxLua_wxTopLevelWindow_RequestUserAttention(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxUSER_ATTENTION_INFO - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxUSER_ATTENTION_INFO); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call RequestUserAttention - self->RequestUserAttention(flags); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_Restore[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_Restore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_Restore[1] = {{ wxLua_wxTopLevelWindow_Restore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_Restore }}; -// %wxchkver_3_0_0 void Restore(); -static int LUACALL wxLua_wxTopLevelWindow_Restore(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call Restore - self->Restore(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetDefaultItem[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetDefaultItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetDefaultItem[1] = {{ wxLua_wxTopLevelWindow_SetDefaultItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetDefaultItem }}; -// %wxchkver_2_8 wxWindow* SetDefaultItem(wxWindow *win); -static int LUACALL wxLua_wxTopLevelWindow_SetDefaultItem(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetDefaultItem - wxWindow* returns = (wxWindow*)self->SetDefaultItem(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetIcon[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetIcon[1] = {{ wxLua_wxTopLevelWindow_SetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetIcon }}; -// void SetIcon(const wxIcon& icon); -static int LUACALL wxLua_wxTopLevelWindow_SetIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetIcon - self->SetIcon(*icon); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetIcons[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxIconBundle, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetIcons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetIcons[1] = {{ wxLua_wxTopLevelWindow_SetIcons, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetIcons }}; -// void SetIcons(const wxIconBundle& icons); -static int LUACALL wxLua_wxTopLevelWindow_SetIcons(lua_State *L) -{ - // const wxIconBundle icons - const wxIconBundle * icons = (const wxIconBundle *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIconBundle); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetIcons - self->SetIcons(*icons); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetMaxSize[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetMaxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetMaxSize[1] = {{ wxLua_wxTopLevelWindow_SetMaxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetMaxSize }}; -// void SetMaxSize(const wxSize& size); -static int LUACALL wxLua_wxTopLevelWindow_SetMaxSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetMaxSize - self->SetMaxSize(*size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetMinSize[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetMinSize[1] = {{ wxLua_wxTopLevelWindow_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetMinSize }}; -// void SetMinSize(const wxSize& size); -static int LUACALL wxLua_wxTopLevelWindow_SetMinSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetMinSize - self->SetMinSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetRepresentedFilename[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetRepresentedFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetRepresentedFilename[1] = {{ wxLua_wxTopLevelWindow_SetRepresentedFilename, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetRepresentedFilename }}; -// %wxchkver_3_0_0 void SetRepresentedFilename(const wxString& filename); -static int LUACALL wxLua_wxTopLevelWindow_SetRepresentedFilename(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetRepresentedFilename - self->SetRepresentedFilename(filename); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetShape[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetShape(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetShape[1] = {{ wxLua_wxTopLevelWindow_SetShape, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetShape }}; -// !%wxchkver_3_0_0 bool SetShape(const wxRegion& region); -static int LUACALL wxLua_wxTopLevelWindow_SetShape(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetShape - bool returns = (self->SetShape(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetSizeHints1[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxSize, &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetSizeHints1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints1[1] = {{ wxLua_wxTopLevelWindow_SetSizeHints1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetSizeHints1 }}; -// void SetSizeHints(const wxSize& minSize, const wxSize& maxSize=wxDefaultSize, const wxSize& incSize=wxDefaultSize); -static int LUACALL wxLua_wxTopLevelWindow_SetSizeHints1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize incSize = wxDefaultSize - const wxSize * incSize = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxSize maxSize = wxDefaultSize - const wxSize * maxSize = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // const wxSize minSize - const wxSize * minSize = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetSizeHints - self->SetSizeHints(*minSize, *maxSize, *incSize); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetSizeHints[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetSizeHints(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints[1] = {{ wxLua_wxTopLevelWindow_SetSizeHints, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetSizeHints }}; -// void SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1); -static int LUACALL wxLua_wxTopLevelWindow_SetSizeHints(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int incH = -1 - int incH = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : -1); - // int incW = -1 - int incW = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int maxH = -1 - int maxH = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int maxW = -1 - int maxW = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int minH - int minH = (int)wxlua_getnumbertype(L, 3); - // int minW - int minW = (int)wxlua_getnumbertype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetSizeHints - self->SetSizeHints(minW, minH, maxW, maxH, incW, incH); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTitle[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetTitle[1] = {{ wxLua_wxTopLevelWindow_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTitle }}; -// virtual void SetTitle(const wxString& title); -static int LUACALL wxLua_wxTopLevelWindow_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetTitle - self->SetTitle(title); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTmpDefaultItem[] = { &wxluatype_wxTopLevelWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetTmpDefaultItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetTmpDefaultItem[1] = {{ wxLua_wxTopLevelWindow_SetTmpDefaultItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTmpDefaultItem }}; -// %wxchkver_2_8 wxWindow* SetTmpDefaultItem(wxWindow *win); -static int LUACALL wxLua_wxTopLevelWindow_SetTmpDefaultItem(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetTmpDefaultItem - wxWindow* returns = (wxWindow*)self->SetTmpDefaultItem(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTransparent1[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetTransparent1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent1[1] = {{ wxLua_wxTopLevelWindow_SetTransparent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTransparent1 }}; -// !%wxchkver_3_0_0 virtual bool SetTransparent(int alpha); -static int LUACALL wxLua_wxTopLevelWindow_SetTransparent1(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetTransparent - bool returns = (self->SetTransparent(alpha)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTransparent[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_SetTransparent(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent[1] = {{ wxLua_wxTopLevelWindow_SetTransparent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTransparent }}; -// %wxchkver_3_0_0 bool SetTransparent(wxByte alpha); -static int LUACALL wxLua_wxTopLevelWindow_SetTransparent(lua_State *L) -{ - // wxByte alpha - wxByte alpha = (wxByte)wxlua_getnumbertype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call SetTransparent - bool returns = (self->SetTransparent(alpha)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_ShowFullScreen[] = { &wxluatype_wxTopLevelWindow, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_ShowFullScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_ShowFullScreen[1] = {{ wxLua_wxTopLevelWindow_ShowFullScreen, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTopLevelWindow_ShowFullScreen }}; -// bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); -static int LUACALL wxLua_wxTopLevelWindow_ShowFullScreen(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxFULLSCREEN_ALL - long style = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : wxFULLSCREEN_ALL); - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call ShowFullScreen - bool returns = (self->ShowFullScreen(show, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_ShowWithoutActivating[] = { &wxluatype_wxTopLevelWindow, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_ShowWithoutActivating(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_ShowWithoutActivating[1] = {{ wxLua_wxTopLevelWindow_ShowWithoutActivating, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTopLevelWindow_ShowWithoutActivating }}; -// %wxchkver_3_0_0 void ShowWithoutActivating(); -static int LUACALL wxLua_wxTopLevelWindow_ShowWithoutActivating(lua_State *L) -{ - // get this - wxTopLevelWindow * self = (wxTopLevelWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTopLevelWindow); - // call ShowWithoutActivating - self->ShowWithoutActivating(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTopLevelWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTopLevelWindow_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_constructor1[1] = {{ wxLua_wxTopLevelWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxTopLevelWindow_constructor1 }}; -// %wxchkver_3_0_0 wxTopLevelWindow(wxWindow *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = wxFrameNameStr); -static int LUACALL wxLua_wxTopLevelWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxFrameNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxFrameNameStr)); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTopLevelWindow* returns = new wxTopLevelWindow(parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTopLevelWindow); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -static int LUACALL wxLua_wxTopLevelWindow_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_constructor[1] = {{ wxLua_wxTopLevelWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxTopLevelWindow(); -static int LUACALL wxLua_wxTopLevelWindow_constructor(lua_State *L) -{ - // call constructor - wxTopLevelWindow* returns = new wxTopLevelWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTopLevelWindow); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - - - -#if ((wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints_overload[] = -{ - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxTopLevelWindow_SetSizeHints1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetSizeHints1 }, -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxTopLevelWindow_SetSizeHints, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetSizeHints }, -}; -static int s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints_overload_count = sizeof(s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { wxLua_wxTopLevelWindow_SetTransparent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTransparent1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { wxLua_wxTopLevelWindow_SetTransparent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTopLevelWindow_SetTransparent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -}; -static int s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent_overload_count = sizeof(s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) - -#if ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTopLevelWindow_constructor_overload[] = -{ - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxTopLevelWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxTopLevelWindow_constructor1 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { wxLua_wxTopLevelWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) -}; -static int s_wxluafunc_wxLua_wxTopLevelWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTopLevelWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) - -void wxLua_wxTopLevelWindow_delete_function(void** p) -{ - wxTopLevelWindow* o = (wxTopLevelWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTopLevelWindow_methods[] = { - { "CanSetTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_CanSetTransparent, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "CenterOnScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_CenterOnScreen, 1, NULL }, - { "CentreOnScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_CentreOnScreen, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_Create, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - - { "EnableCloseButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_EnableCloseButton, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "EnableFullScreenView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_EnableFullScreenView, 1, NULL }, - { "EnableMaximizeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_EnableMaximizeButton, 1, NULL }, - { "EnableMinimizeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_EnableMinimizeButton, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "GetDefaultItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_GetDefaultItem, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - { "GetDefaultSize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTopLevelWindow_GetDefaultSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_GetIcon, 1, NULL }, -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxIcon) - { "GetIcons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_GetIcons, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxIcon) - - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_GetTitle, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "GetTmpDefaultItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_GetTmpDefaultItem, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - - { "Iconize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_Iconize, 1, NULL }, - { "IsActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_IsActive, 1, NULL }, - { "IsAlwaysMaximized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_IsAlwaysMaximized, 1, NULL }, - { "IsFullScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_IsFullScreen, 1, NULL }, - { "IsIconized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_IsIconized, 1, NULL }, - { "IsMaximized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_IsMaximized, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_Layout, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "MSWGetSystemMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_MSWGetSystemMenu, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0) && defined(__WXMSW__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Maximize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_Maximize, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "OSXIsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_OSXIsModified, 1, NULL }, - { "OSXSetModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_OSXSetModified, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0) && defined(__WXMAC__)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - - { "RequestUserAttention", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_RequestUserAttention, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "Restore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_Restore, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "SetDefaultItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetDefaultItem, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) - { "SetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetIcon, 1, NULL }, - { "SetIcons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetIcons, 1, NULL }, -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxIcon) - -#if (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - { "SetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetMaxSize, 1, NULL }, - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetMinSize, 1, NULL }, -#endif // (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "SetRepresentedFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetRepresentedFilename, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) - { "SetShape", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetShape, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxRegion) - -#if ((wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "SetSizeHints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints_overload, s_wxluafunc_wxLua_wxTopLevelWindow_SetSizeHints_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetTitle, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "SetTmpDefaultItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetTmpDefaultItem, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) - { "SetTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent_overload, s_wxluafunc_wxLua_wxTopLevelWindow_SetTransparent_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) - - { "ShowFullScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_ShowFullScreen, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - { "ShowWithoutActivating", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTopLevelWindow_ShowWithoutActivating, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog) - -#if ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) - { "wxTopLevelWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTopLevelWindow_constructor_overload, s_wxluafunc_wxLua_wxTopLevelWindow_constructor_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) && (wxLUA_USE_wxFrame || wxLUA_USE_wxDialog)) - - { 0, 0, 0, 0 }, -}; - -int wxTopLevelWindow_methodCount = sizeof(wxTopLevelWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - - -#if wxLUA_USE_wxFrame -// --------------------------------------------------------------------------- -// Bind class wxFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFrame' -int wxluatype_wxFrame = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_Centre[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFrame_Centre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_Centre[1] = {{ wxLua_wxFrame_Centre, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFrame_Centre }}; -// %wxchkver_3_0_0 void Centre(int direction = wxBOTH); -static int LUACALL wxLua_wxFrame_Centre(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call Centre - self->Centre(direction); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_Create[] = { &wxluatype_wxFrame, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_Create[1] = {{ wxLua_wxFrame_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxFrame_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxFrame"); -static int LUACALL wxLua_wxFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call Create - bool returns = (self->Create(parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_CreateStatusBar[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_CreateStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_CreateStatusBar[1] = {{ wxLua_wxFrame_CreateStatusBar, WXLUAMETHOD_METHOD, 1, 5, s_wxluatypeArray_wxLua_wxFrame_CreateStatusBar }}; -// virtual wxStatusBar* CreateStatusBar(int number = 1, long style = 0, wxWindowID id = wxID_ANY, const wxString& name = "wxStatusBar"); -static int LUACALL wxLua_wxFrame_CreateStatusBar(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStatusBar" - const wxString name = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxT("wxStatusBar"))); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 4 ? (wxWindowID)wxlua_getnumbertype(L, 4) : wxID_ANY); - // long style = 0 - long style = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // int number = 1 - int number = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call CreateStatusBar - wxStatusBar* returns = (wxStatusBar*)self->CreateStatusBar(number, style, id, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_CreateToolBar1[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_CreateToolBar1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_CreateToolBar1[1] = {{ wxLua_wxFrame_CreateToolBar1, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFrame_CreateToolBar1 }}; -// !%wxchkver_3_0_0 virtual wxToolBar* CreateToolBar(long style = wxNO_BORDER|wxTB_HORIZONTAL, wxWindowID id = wxID_ANY, const wxString& name = "wxToolBar"); -static int LUACALL wxLua_wxFrame_CreateToolBar1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToolBar" - const wxString name = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxT("wxToolBar"))); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // long style = wxNO_BORDER | wxTB_HORIZONTAL - long style = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : wxNO_BORDER | wxTB_HORIZONTAL); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call CreateToolBar - wxToolBar* returns = (wxToolBar*)self->CreateToolBar(style, id, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_CreateToolBar[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_CreateToolBar(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_CreateToolBar[1] = {{ wxLua_wxFrame_CreateToolBar, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFrame_CreateToolBar }}; -// %wxchkver_3_0_0 wxToolBar* CreateToolBar(long style = wxTB_DEFAULT_STYLE, wxWindowID id = wxID_ANY, const wxString& name = wxToolBarNameStr); -static int LUACALL wxLua_wxFrame_CreateToolBar(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxToolBarNameStr - const wxString name = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxToolBarNameStr)); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // long style = wxTB_DEFAULT_STYLE - long style = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : wxTB_DEFAULT_STYLE); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call CreateToolBar - wxToolBar* returns = (wxToolBar*)self->CreateToolBar(style, id, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_DoGiveHelp[] = { &wxluatype_wxFrame, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFrame_DoGiveHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_DoGiveHelp[1] = {{ wxLua_wxFrame_DoGiveHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFrame_DoGiveHelp }}; -// %wxchkver_3_0_0 void DoGiveHelp(const wxString& text, bool show); -static int LUACALL wxLua_wxFrame_DoGiveHelp(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 3); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call DoGiveHelp - self->DoGiveHelp(text, show); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_GetClientAreaOrigin[] = { &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxFrame_GetClientAreaOrigin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_GetClientAreaOrigin[1] = {{ wxLua_wxFrame_GetClientAreaOrigin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFrame_GetClientAreaOrigin }}; -// wxPoint GetClientAreaOrigin() const; -static int LUACALL wxLua_wxFrame_GetClientAreaOrigin(lua_State *L) -{ - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call GetClientAreaOrigin - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetClientAreaOrigin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_GetMenuBar[] = { &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxFrame_GetMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_GetMenuBar[1] = {{ wxLua_wxFrame_GetMenuBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFrame_GetMenuBar }}; -// wxMenuBar* GetMenuBar() const; -static int LUACALL wxLua_wxFrame_GetMenuBar(lua_State *L) -{ - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call GetMenuBar - wxMenuBar* returns = (wxMenuBar*)self->GetMenuBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_GetStatusBar[] = { &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxFrame_GetStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_GetStatusBar[1] = {{ wxLua_wxFrame_GetStatusBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFrame_GetStatusBar }}; -// wxStatusBar* GetStatusBar() const; -static int LUACALL wxLua_wxFrame_GetStatusBar(lua_State *L) -{ - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call GetStatusBar - wxStatusBar* returns = (wxStatusBar*)self->GetStatusBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_GetStatusBarPane[] = { &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxFrame_GetStatusBarPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_GetStatusBarPane[1] = {{ wxLua_wxFrame_GetStatusBarPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFrame_GetStatusBarPane }}; -// int GetStatusBarPane(); -static int LUACALL wxLua_wxFrame_GetStatusBarPane(lua_State *L) -{ - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call GetStatusBarPane - int returns = (self->GetStatusBarPane()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_GetToolBar[] = { &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxFrame_GetToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_GetToolBar[1] = {{ wxLua_wxFrame_GetToolBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFrame_GetToolBar }}; -// wxToolBar* GetToolBar() const; -static int LUACALL wxLua_wxFrame_GetToolBar(lua_State *L) -{ - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call GetToolBar - wxToolBar* returns = (wxToolBar*)self->GetToolBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_OnCreateStatusBar[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_OnCreateStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_OnCreateStatusBar[1] = {{ wxLua_wxFrame_OnCreateStatusBar, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxFrame_OnCreateStatusBar }}; -// %wxchkver_3_0_0 wxStatusBar* OnCreateStatusBar(int number, long style, wxWindowID id, const wxString& name); -static int LUACALL wxLua_wxFrame_OnCreateStatusBar(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 5); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 4); - // long style - long style = (long)wxlua_getnumbertype(L, 3); - // int number - int number = (int)wxlua_getnumbertype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call OnCreateStatusBar - wxStatusBar* returns = (wxStatusBar*)self->OnCreateStatusBar(number, style, id, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_OnCreateToolBar[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_OnCreateToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_OnCreateToolBar[1] = {{ wxLua_wxFrame_OnCreateToolBar, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxFrame_OnCreateToolBar }}; -// %wxchkver_3_0_0 wxToolBar* OnCreateToolBar(long style, wxWindowID id, const wxString& name); -static int LUACALL wxLua_wxFrame_OnCreateToolBar(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call OnCreateToolBar - wxToolBar* returns = (wxToolBar*)self->OnCreateToolBar(style, id, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_PopStatusText[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFrame_PopStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_PopStatusText[1] = {{ wxLua_wxFrame_PopStatusText, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFrame_PopStatusText }}; -// %wxchkver_3_0_0 void PopStatusText(int number = 0); -static int LUACALL wxLua_wxFrame_PopStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int number = 0 - int number = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call PopStatusText - self->PopStatusText(number); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_ProcessCommand[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFrame_ProcessCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_ProcessCommand[1] = {{ wxLua_wxFrame_ProcessCommand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFrame_ProcessCommand }}; -// %wxchkver_2_4 void ProcessCommand(int id); -static int LUACALL wxLua_wxFrame_ProcessCommand(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call ProcessCommand - self->ProcessCommand(id); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxFrame) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_PushStatusText[] = { &wxluatype_wxFrame, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFrame_PushStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_PushStatusText[1] = {{ wxLua_wxFrame_PushStatusText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFrame_PushStatusText }}; -// %wxchkver_3_0_0 void PushStatusText(const wxString &text, int number = 0); -static int LUACALL wxLua_wxFrame_PushStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int number = 0 - int number = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call PushStatusText - self->PushStatusText(text, number); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SendSizeEvent[] = { &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxFrame_SendSizeEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SendSizeEvent[1] = {{ wxLua_wxFrame_SendSizeEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFrame_SendSizeEvent }}; -// !%wxchkver_3_0_0 void SendSizeEvent(); -static int LUACALL wxLua_wxFrame_SendSizeEvent(lua_State *L) -{ - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SendSizeEvent - self->SendSizeEvent(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SetMenuBar[] = { &wxluatype_wxFrame, &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxFrame_SetMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SetMenuBar[1] = {{ wxLua_wxFrame_SetMenuBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFrame_SetMenuBar }}; -// void SetMenuBar(wxMenuBar* menuBar); -static int LUACALL wxLua_wxFrame_SetMenuBar(lua_State *L) -{ - // wxMenuBar menuBar - wxMenuBar * menuBar = (wxMenuBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuBar); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SetMenuBar - self->SetMenuBar(menuBar); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SetStatusBar[] = { &wxluatype_wxFrame, &wxluatype_wxStatusBar, NULL }; -static int LUACALL wxLua_wxFrame_SetStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SetStatusBar[1] = {{ wxLua_wxFrame_SetStatusBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFrame_SetStatusBar }}; -// void SetStatusBar(wxStatusBar* statusBar); -static int LUACALL wxLua_wxFrame_SetStatusBar(lua_State *L) -{ - // wxStatusBar statusBar - wxStatusBar * statusBar = (wxStatusBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxStatusBar); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SetStatusBar - self->SetStatusBar(statusBar); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SetStatusBarPane[] = { &wxluatype_wxFrame, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFrame_SetStatusBarPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SetStatusBarPane[1] = {{ wxLua_wxFrame_SetStatusBarPane, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFrame_SetStatusBarPane }}; -// void SetStatusBarPane(int n); -static int LUACALL wxLua_wxFrame_SetStatusBarPane(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SetStatusBarPane - self->SetStatusBarPane(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SetStatusText[] = { &wxluatype_wxFrame, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFrame_SetStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SetStatusText[1] = {{ wxLua_wxFrame_SetStatusText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFrame_SetStatusText }}; -// virtual void SetStatusText(const wxString& text, int number = 0); -static int LUACALL wxLua_wxFrame_SetStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int number = 0 - int number = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SetStatusText - self->SetStatusText(text, number); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SetStatusWidths[] = { &wxluatype_wxFrame, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxFrame_SetStatusWidths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SetStatusWidths[1] = {{ wxLua_wxFrame_SetStatusWidths, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFrame_SetStatusWidths }}; -// virtual void SetStatusWidths(IntArray_FromLuaTable intTable); // %override parameters -static int LUACALL wxLua_wxFrame_SetStatusWidths(lua_State *L) -{ - // IntArray_FromLuaTable intTable - int count_ = 0; wxLuaSmartIntArray ptr; int* intTable = NULL; ptr = intTable = wxlua_getintarray(L, 2, count_); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SetStatusWidths - self->SetStatusWidths(count_, intTable); - - return 0; -} - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_SetToolBar[] = { &wxluatype_wxFrame, &wxluatype_wxToolBar, NULL }; -static int LUACALL wxLua_wxFrame_SetToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_SetToolBar[1] = {{ wxLua_wxFrame_SetToolBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFrame_SetToolBar }}; -// void SetToolBar(wxToolBar* toolBar); -static int LUACALL wxLua_wxFrame_SetToolBar(lua_State *L) -{ - // wxToolBar toolBar - wxToolBar * toolBar = (wxToolBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxToolBar); - // get this - wxFrame * self = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call SetToolBar - self->SetToolBar(toolBar); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFrame_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_constructor1[1] = {{ wxLua_wxFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxFrame_constructor1 }}; -// wxFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxFrame"); -static int LUACALL wxLua_wxFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFrame* returns = new wxFrame(parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_constructor[1] = {{ wxLua_wxFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFrame(); -static int LUACALL wxLua_wxFrame_constructor(lua_State *L) -{ - // call constructor - wxFrame* returns = new wxFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_CreateToolBar_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - { wxLua_wxFrame_CreateToolBar1, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFrame_CreateToolBar1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - { wxLua_wxFrame_CreateToolBar, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxFrame_CreateToolBar }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) -}; -static int s_wxluafunc_wxLua_wxFrame_CreateToolBar_overload_count = sizeof(s_wxluafunc_wxLua_wxFrame_CreateToolBar_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar)) - -#if ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFrame_constructor_overload[] = -{ - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxFrame_constructor1 }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame) - -void wxLua_wxFrame_delete_function(void** p) -{ - wxFrame* o = (wxFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFrame_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - { "Centre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_Centre, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_Create, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "CreateStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_CreateStatusBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar)) - { "CreateToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_CreateToolBar_overload, s_wxluafunc_wxLua_wxFrame_CreateToolBar_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - { "DoGiveHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_DoGiveHelp, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - { "GetClientAreaOrigin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_GetClientAreaOrigin, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_GetMenuBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_GetStatusBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { "GetStatusBarPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_GetStatusBarPane, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) - { "GetToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_GetToolBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "OnCreateStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_OnCreateStatusBar, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - { "OnCreateToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_OnCreateToolBar, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxToolbar) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - { "PopStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_PopStatusText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxFrame) - { "ProcessCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_ProcessCommand, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxFrame) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - { "PushStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_PushStatusText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - { "SendSizeEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SendSizeEvent, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFrame) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SetMenuBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "SetStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SetStatusBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { "SetStatusBarPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SetStatusBarPane, 1, NULL }, - { "SetStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SetStatusText, 1, NULL }, - { "SetStatusWidths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SetStatusWidths, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) - { "SetToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFrame_SetToolBar, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxToolbar) - -#if ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame) - { "wxFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFrame_constructor_overload, s_wxluafunc_wxLua_wxFrame_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxFrame) - - { 0, 0, 0, 0 }, -}; - -int wxFrame_methodCount = sizeof(wxFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFrame - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) -// --------------------------------------------------------------------------- -// Bind class wxMiniFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMiniFrame' -int wxluatype_wxMiniFrame = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMiniFrame_Create[] = { &wxluatype_wxMiniFrame, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMiniFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMiniFrame_Create[1] = {{ wxLua_wxMiniFrame_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxMiniFrame_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxMiniFrame"); -static int LUACALL wxLua_wxMiniFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMiniFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxMiniFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxMiniFrame * self = (wxMiniFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMiniFrame); - // call Create - bool returns = (self->Create(parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMiniFrame_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMiniFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMiniFrame_constructor1[1] = {{ wxLua_wxMiniFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxMiniFrame_constructor1 }}; -// wxMiniFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxMiniFrame"); -static int LUACALL wxLua_wxMiniFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMiniFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxMiniFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxMiniFrame* returns = new wxMiniFrame(parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMiniFrame); - - return 1; -} - -#endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxMiniFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMiniFrame_constructor[1] = {{ wxLua_wxMiniFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMiniFrame(); -static int LUACALL wxLua_wxMiniFrame_constructor(lua_State *L) -{ - // call constructor - wxMiniFrame* returns = new wxMiniFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMiniFrame); - - return 1; -} - - - - -#if (((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMiniFrame_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMiniFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxMiniFrame_constructor1 }, -#endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMiniFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxMiniFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMiniFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) - -void wxLua_wxMiniFrame_delete_function(void** p) -{ - wxMiniFrame* o = (wxMiniFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMiniFrame_methods[] = { -#if ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMiniFrame_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect) - -#if (((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) - { "wxMiniFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMiniFrame_constructor_overload, s_wxluafunc_wxLua_wxMiniFrame_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) - - { 0, 0, 0, 0 }, -}; - -int wxMiniFrame_methodCount = sizeof(wxMiniFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR -// --------------------------------------------------------------------------- -// Bind class wxStatusBarPane -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStatusBarPane' -int wxluatype_wxStatusBarPane = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBarPane_GetStyle[] = { &wxluatype_wxStatusBarPane, NULL }; -static int LUACALL wxLua_wxStatusBarPane_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBarPane_GetStyle[1] = {{ wxLua_wxStatusBarPane_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStatusBarPane_GetStyle }}; -// %wxchkver_3_0_0 int GetStyle() const; -static int LUACALL wxLua_wxStatusBarPane_GetStyle(lua_State *L) -{ - // get this - wxStatusBarPane * self = (wxStatusBarPane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBarPane); - // call GetStyle - int returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBarPane_GetText[] = { &wxluatype_wxStatusBarPane, NULL }; -static int LUACALL wxLua_wxStatusBarPane_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBarPane_GetText[1] = {{ wxLua_wxStatusBarPane_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStatusBarPane_GetText }}; -// %wxchkver_3_0_0 wxString GetText() const; -static int LUACALL wxLua_wxStatusBarPane_GetText(lua_State *L) -{ - // get this - wxStatusBarPane * self = (wxStatusBarPane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBarPane); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBarPane_GetWidth[] = { &wxluatype_wxStatusBarPane, NULL }; -static int LUACALL wxLua_wxStatusBarPane_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBarPane_GetWidth[1] = {{ wxLua_wxStatusBarPane_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStatusBarPane_GetWidth }}; -// %wxchkver_3_0_0 int GetWidth() const; -static int LUACALL wxLua_wxStatusBarPane_GetWidth(lua_State *L) -{ - // get this - wxStatusBarPane * self = (wxStatusBarPane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBarPane); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBarPane_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBarPane_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBarPane_constructor[1] = {{ wxLua_wxStatusBarPane_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxStatusBarPane_constructor }}; -// %wxchkver_3_0_0 wxStatusBarPane(int style = wxSB_NORMAL, int width = 0); -static int LUACALL wxLua_wxStatusBarPane_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int width = 0 - int width = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int style = wxSB_NORMAL - int style = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxSB_NORMAL); - // call constructor - wxStatusBarPane* returns = new wxStatusBarPane(style, width); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBarPane); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - - -void wxLua_wxStatusBarPane_delete_function(void** p) -{ - wxStatusBarPane* o = (wxStatusBarPane*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStatusBarPane_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBarPane_GetStyle, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBarPane_GetText, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBarPane_GetWidth, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "wxStatusBarPane", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStatusBarPane_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { 0, 0, 0, 0 }, -}; - -int wxStatusBarPane_methodCount = sizeof(wxStatusBarPane_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR -// --------------------------------------------------------------------------- -// Bind class wxStatusBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStatusBar' -int wxluatype_wxStatusBar = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_Create[] = { &wxluatype_wxStatusBar, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStatusBar_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_Create[1] = {{ wxLua_wxStatusBar_Create, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxStatusBar_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, long style = wxST_SIZEGRIP, const wxString& name = "wxStatusBar"); -static int LUACALL wxLua_wxStatusBar_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStatusBar" - const wxString name = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxT("wxStatusBar"))); - // long style = wxST_SIZEGRIP - long style = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : wxST_SIZEGRIP); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call Create - bool returns = (self->Create(parent, id, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetBorders[] = { &wxluatype_wxStatusBar, NULL }; -static int LUACALL wxLua_wxStatusBar_GetBorders(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetBorders[1] = {{ wxLua_wxStatusBar_GetBorders, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStatusBar_GetBorders }}; -// %wxchkver_3_0_0 wxSize GetBorders() const; -static int LUACALL wxLua_wxStatusBar_GetBorders(lua_State *L) -{ - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetBorders - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBorders()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetField[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_GetField(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetField[1] = {{ wxLua_wxStatusBar_GetField, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_GetField }}; -// %wxchkver_3_0_0 const wxStatusBarPane& GetField(int n) const; -static int LUACALL wxLua_wxStatusBar_GetField(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetField - const wxStatusBarPane* returns = (const wxStatusBarPane*)&self->GetField(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBarPane); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetFieldRect[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxStatusBar_GetFieldRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetFieldRect[1] = {{ wxLua_wxStatusBar_GetFieldRect, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStatusBar_GetFieldRect }}; -// virtual bool GetFieldRect(int i, wxRect& rect) const; -static int LUACALL wxLua_wxStatusBar_GetFieldRect(lua_State *L) -{ - // wxRect rect - wxRect * rect = (wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetFieldRect - bool returns = (self->GetFieldRect(i, *rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetFieldsCount[] = { &wxluatype_wxStatusBar, NULL }; -static int LUACALL wxLua_wxStatusBar_GetFieldsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetFieldsCount[1] = {{ wxLua_wxStatusBar_GetFieldsCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStatusBar_GetFieldsCount }}; -// int GetFieldsCount() const; -static int LUACALL wxLua_wxStatusBar_GetFieldsCount(lua_State *L) -{ - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetFieldsCount - int returns = (self->GetFieldsCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetStatusStyle[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_GetStatusStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetStatusStyle[1] = {{ wxLua_wxStatusBar_GetStatusStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_GetStatusStyle }}; -// %wxchkver_3_0_0 int GetStatusStyle(int n) const; -static int LUACALL wxLua_wxStatusBar_GetStatusStyle(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetStatusStyle - int returns = (self->GetStatusStyle(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetStatusText[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_GetStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetStatusText[1] = {{ wxLua_wxStatusBar_GetStatusText, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxStatusBar_GetStatusText }}; -// virtual wxString GetStatusText(int ir = 0) const; -static int LUACALL wxLua_wxStatusBar_GetStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int ir = 0 - int ir = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetStatusText - wxString returns = (self->GetStatusText(ir)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_GetStatusWidth[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_GetStatusWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_GetStatusWidth[1] = {{ wxLua_wxStatusBar_GetStatusWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_GetStatusWidth }}; -// %wxchkver_3_0_0 int GetStatusWidth(int n) const; -static int LUACALL wxLua_wxStatusBar_GetStatusWidth(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call GetStatusWidth - int returns = (self->GetStatusWidth(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_PopStatusText[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_PopStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_PopStatusText[1] = {{ wxLua_wxStatusBar_PopStatusText, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxStatusBar_PopStatusText }}; -// void PopStatusText(int field = 0); -static int LUACALL wxLua_wxStatusBar_PopStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int field = 0 - int field = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call PopStatusText - self->PopStatusText(field); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_PushStatusText[] = { &wxluatype_wxStatusBar, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_PushStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_PushStatusText[1] = {{ wxLua_wxStatusBar_PushStatusText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStatusBar_PushStatusText }}; -// void PushStatusText(const wxString& string, int field = 0); -static int LUACALL wxLua_wxStatusBar_PushStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int field = 0 - int field = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call PushStatusText - self->PushStatusText(string, field); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_SetFieldsCount[] = { &wxluatype_wxStatusBar, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxStatusBar_SetFieldsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_SetFieldsCount[1] = {{ wxLua_wxStatusBar_SetFieldsCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_SetFieldsCount }}; -// %override wxLua_wxStatusBar_SetFieldsCount -// virtual void SetFieldsCount(int number = 1, int* widths = NULL) -static int LUACALL wxLua_wxStatusBar_SetFieldsCount(lua_State *L) -{ - int count = 0; - int *widths = NULL; - - wxLuaSmartIntArray ptr; - - if (lua_istable(L, 2)) - ptr = widths = wxlua_getintarray(L, 2, count); - else - count = wxlua_getintegertype(L, 2); - - // get this - wxStatusBar *self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call SetFieldsCount - self->SetFieldsCount(count, widths); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_SetMinHeight[] = { &wxluatype_wxStatusBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_SetMinHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_SetMinHeight[1] = {{ wxLua_wxStatusBar_SetMinHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_SetMinHeight }}; -// void SetMinHeight(int height); -static int LUACALL wxLua_wxStatusBar_SetMinHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call SetMinHeight - self->SetMinHeight(height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_SetStatusStyles[] = { &wxluatype_wxStatusBar, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxStatusBar_SetStatusStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_SetStatusStyles[1] = {{ wxLua_wxStatusBar_SetStatusStyles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_SetStatusStyles }}; -// virtual void SetStatusStyles(IntArray_FromLuaTable intTable); // %override parameters -static int LUACALL wxLua_wxStatusBar_SetStatusStyles(lua_State *L) -{ - // IntArray_FromLuaTable intTable - int count_ = 0; wxLuaSmartIntArray ptr; int* intTable = NULL; ptr = intTable = wxlua_getintarray(L, 2, count_); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call SetStatusStyles - self->SetStatusStyles(count_, intTable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_SetStatusText[] = { &wxluatype_wxStatusBar, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStatusBar_SetStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_SetStatusText[1] = {{ wxLua_wxStatusBar_SetStatusText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStatusBar_SetStatusText }}; -// virtual void SetStatusText(const wxString& text, int i = 0); -static int LUACALL wxLua_wxStatusBar_SetStatusText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int i = 0 - int i = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call SetStatusText - self->SetStatusText(text, i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_SetStatusWidths[] = { &wxluatype_wxStatusBar, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxStatusBar_SetStatusWidths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_SetStatusWidths[1] = {{ wxLua_wxStatusBar_SetStatusWidths, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStatusBar_SetStatusWidths }}; -// virtual void SetStatusWidths(IntArray_FromLuaTable intTable); // %override parameters -static int LUACALL wxLua_wxStatusBar_SetStatusWidths(lua_State *L) -{ - // IntArray_FromLuaTable intTable - int count_ = 0; wxLuaSmartIntArray ptr; int* intTable = NULL; ptr = intTable = wxlua_getintarray(L, 2, count_); - // get this - wxStatusBar * self = (wxStatusBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStatusBar); - // call SetStatusWidths - self->SetStatusWidths(count_, intTable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStatusBar_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStatusBar_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_constructor1[1] = {{ wxLua_wxStatusBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxStatusBar_constructor1 }}; -// wxStatusBar(wxWindow* parent, wxWindowID id, long style = wxST_SIZEGRIP, const wxString& name = "wxStatusBar"); -static int LUACALL wxLua_wxStatusBar_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStatusBar" - const wxString name = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxT("wxStatusBar"))); - // long style = wxST_SIZEGRIP - long style = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : wxST_SIZEGRIP); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxStatusBar* returns = new wxStatusBar(parent, id, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -static int LUACALL wxLua_wxStatusBar_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_constructor[1] = {{ wxLua_wxStatusBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStatusBar(); -static int LUACALL wxLua_wxStatusBar_constructor(lua_State *L) -{ - // call constructor - wxStatusBar* returns = new wxStatusBar(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - - - - -#if (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStatusBar_constructor_overload[] = -{ - { wxLua_wxStatusBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxStatusBar_constructor1 }, - { wxLua_wxStatusBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxStatusBar_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStatusBar_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -void wxLua_wxStatusBar_delete_function(void** p) -{ - wxStatusBar* o = (wxStatusBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStatusBar_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_Create, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxPointSizeRect) - { "GetBorders", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetBorders, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetField", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetField, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetFieldRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetFieldRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { "GetFieldsCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetFieldsCount, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetStatusStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetStatusStyle, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { "GetStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetStatusText, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetStatusWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_GetStatusWidth, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { "PopStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_PopStatusText, 1, NULL }, - { "PushStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_PushStatusText, 1, NULL }, - { "SetFieldsCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_SetFieldsCount, 1, NULL }, - { "SetMinHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_SetMinHeight, 1, NULL }, - { "SetStatusStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_SetStatusStyles, 1, NULL }, - { "SetStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_SetStatusText, 1, NULL }, - { "SetStatusWidths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStatusBar_SetStatusWidths, 1, NULL }, - -#if (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "wxStatusBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStatusBar_constructor_overload, s_wxluafunc_wxLua_wxStatusBar_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - - { 0, 0, 0, 0 }, -}; - -int wxStatusBar_methodCount = sizeof(wxStatusBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - diff --git a/wxLua/modules/wxbind/src/wxcore_bind.cpp b/wxLua/modules/wxbind/src/wxcore_bind.cpp deleted file mode 100644 index 8f821725..00000000 --- a/wxLua/modules/wxbind/src/wxcore_bind.cpp +++ /dev/null @@ -1,8893 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif -// wxWidgets >= 2.7 doesn't have static versions of stock GDI objects anymore -wxColour* wxLua_wxBLACK = NULL; -wxColour* wxLua_wxWHITE = NULL; -wxColour* wxLua_wxRED = NULL; -wxColour* wxLua_wxBLUE = NULL; -wxColour* wxLua_wxGREEN = NULL; -wxColour* wxLua_wxCYAN = NULL; -wxColour* wxLua_wxLIGHT_GREY = NULL; -wxColour* wxLua_wxYELLOW = NULL; -wxPen* wxLua_wxRED_PEN = NULL; -wxPen* wxLua_wxCYAN_PEN = NULL; -wxPen* wxLua_wxGREEN_PEN = NULL; -wxPen* wxLua_wxBLACK_PEN = NULL; -wxPen* wxLua_wxWHITE_PEN = NULL; -wxPen* wxLua_wxTRANSPARENT_PEN = NULL; -wxPen* wxLua_wxBLACK_DASHED_PEN = NULL; -wxPen* wxLua_wxGREY_PEN = NULL; -wxPen* wxLua_wxMEDIUM_GREY_PEN = NULL; -wxPen* wxLua_wxLIGHT_GREY_PEN = NULL; -wxPen* wxLua_wxBLUE_PEN = NULL; -wxPen* wxLua_wxYELLOW_PEN = NULL; -wxBrush* wxLua_wxBLUE_BRUSH = NULL; -wxBrush* wxLua_wxGREEN_BRUSH = NULL; -wxBrush* wxLua_wxWHITE_BRUSH = NULL; -wxBrush* wxLua_wxBLACK_BRUSH = NULL; -wxBrush* wxLua_wxGREY_BRUSH = NULL; -wxBrush* wxLua_wxMEDIUM_GREY_BRUSH = NULL; -wxBrush* wxLua_wxLIGHT_GREY_BRUSH = NULL; -wxBrush* wxLua_wxTRANSPARENT_BRUSH = NULL; -wxBrush* wxLua_wxCYAN_BRUSH = NULL; -wxBrush* wxLua_wxYELLOW_BRUSH = NULL; -wxBrush* wxLua_wxRED_BRUSH = NULL; -wxFont* wxLua_wxNORMAL_FONT = NULL; -wxFont* wxLua_wxSMALL_FONT = NULL; -wxFont* wxLua_wxITALIC_FONT = NULL; -wxFont* wxLua_wxSWISS_FONT = NULL; -wxCursor* wxLua_wxSTANDARD_CURSOR = NULL; -wxCursor* wxLua_wxHOURGLASS_CURSOR = NULL; -wxCursor* wxLua_wxCROSS_CURSOR = NULL; - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxcore() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxcore(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - { "wxEVT_ACTIVATE", WXLUA_GET_wxEventType_ptr(wxEVT_ACTIVATE), &wxluatype_wxActivateEvent }, - { "wxEVT_ACTIVATE_APP", WXLUA_GET_wxEventType_ptr(wxEVT_ACTIVATE_APP), &wxluatype_wxActivateEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_AUX1_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_AUX1_DCLICK), &wxluatype_wxMouseEvent }, - { "wxEVT_AUX1_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_AUX1_DOWN), &wxluatype_wxMouseEvent }, - { "wxEVT_AUX1_UP", WXLUA_GET_wxEventType_ptr(wxEVT_AUX1_UP), &wxluatype_wxMouseEvent }, - { "wxEVT_AUX2_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_AUX2_DCLICK), &wxluatype_wxMouseEvent }, - { "wxEVT_AUX2_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_AUX2_DOWN), &wxluatype_wxMouseEvent }, - { "wxEVT_AUX2_UP", WXLUA_GET_wxEventType_ptr(wxEVT_AUX2_UP), &wxluatype_wxMouseEvent }, - { "wxEVT_BUTTON", WXLUA_GET_wxEventType_ptr(wxEVT_BUTTON), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxEVT_CHAR", WXLUA_GET_wxEventType_ptr(wxEVT_CHAR), &wxluatype_wxKeyEvent }, - { "wxEVT_CHAR_HOOK", WXLUA_GET_wxEventType_ptr(wxEVT_CHAR_HOOK), &wxluatype_wxKeyEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_CHECKBOX", WXLUA_GET_wxEventType_ptr(wxEVT_CHECKBOX), &wxluatype_wxCommandEvent }, - { "wxEVT_CHECKLISTBOX", WXLUA_GET_wxEventType_ptr(wxEVT_CHECKLISTBOX), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxEVT_CHILD_FOCUS", WXLUA_GET_wxEventType_ptr(wxEVT_CHILD_FOCUS), &wxluatype_wxChildFocusEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_CHOICE", WXLUA_GET_wxEventType_ptr(wxEVT_CHOICE), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - { "wxEVT_CHOICEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_CHOICEBOOK_PAGE_CHANGED), &wxluatype_wxChoicebookEvent }, - { "wxEVT_CHOICEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_CHOICEBOOK_PAGE_CHANGING), &wxluatype_wxChoicebookEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - - { "wxEVT_CLOSE_WINDOW", WXLUA_GET_wxEventType_ptr(wxEVT_CLOSE_WINDOW), &wxluatype_wxCloseEvent }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_COLLAPSIBLEPANE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COLLAPSIBLEPANE_CHANGED), &wxluatype_wxCollapsiblePaneEvent }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxCHECK_VERSION(3,0,0)) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_COLOURPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COLOURPICKER_CHANGED), &wxluatype_wxColourPickerEvent }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxCHECK_VERSION(3,0,0)) - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_COMBOBOX", WXLUA_GET_wxEventType_ptr(wxEVT_COMBOBOX), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxEVT_COMMAND_BUTTON_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_BUTTON_CLICKED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_CHECKBOX_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_CHECKBOX_CLICKED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED), &wxluatype_wxCommandEvent }, - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - { "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED), &wxluatype_wxChoicebookEvent }, - { "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING), &wxluatype_wxChoicebookEvent }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - - { "wxEVT_COMMAND_CHOICE_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_CHOICE_SELECTED), &wxluatype_wxCommandEvent }, - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - { "wxEVT_COMMAND_COLLPANE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_COLLPANE_CHANGED), &wxluatype_wxCollapsiblePaneEvent }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - { "wxEVT_COMMAND_COLOURPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_COLOURPICKER_CHANGED), &wxluatype_wxColourPickerEvent }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - - { "wxEVT_COMMAND_COMBOBOX_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_COMBOBOX_SELECTED), &wxluatype_wxCommandEvent }, - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - { "wxEVT_COMMAND_DIRPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_DIRPICKER_CHANGED), &wxluatype_wxFileDirPickerEvent }, -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - - { "wxEVT_COMMAND_ENTER", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_ENTER), &wxluatype_wxCommandEvent }, - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - { "wxEVT_COMMAND_FILEPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FILEPICKER_CHANGED), &wxluatype_wxFileDirPickerEvent }, -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - { "wxEVT_COMMAND_FIND", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FIND), &wxluatype_wxFindDialogEvent }, - { "wxEVT_COMMAND_FIND_CLOSE", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FIND_CLOSE), &wxluatype_wxFindDialogEvent }, - { "wxEVT_COMMAND_FIND_NEXT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FIND_NEXT), &wxluatype_wxFindDialogEvent }, - { "wxEVT_COMMAND_FIND_REPLACE", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FIND_REPLACE), &wxluatype_wxFindDialogEvent }, - { "wxEVT_COMMAND_FIND_REPLACE_ALL", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FIND_REPLACE_ALL), &wxluatype_wxFindDialogEvent }, -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - { "wxEVT_COMMAND_FONTPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_FONTPICKER_CHANGED), &wxluatype_wxFontPickerEvent }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - - { "wxEVT_COMMAND_KILL_FOCUS", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_KILL_FOCUS), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_LEFT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LEFT_CLICK), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_LEFT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LEFT_DCLICK), &wxluatype_wxCommandEvent }, - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED), &wxluatype_wxListbookEvent }, - { "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING), &wxluatype_wxListbookEvent }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - - { "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_LISTBOX_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LISTBOX_SELECTED), &wxluatype_wxCommandEvent }, - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { "wxEVT_COMMAND_LIST_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_BEGIN_DRAG), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_BEGIN_RDRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_BEGIN_RDRAG), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_CACHE_HINT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_CACHE_HINT), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_COL_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_COL_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_COL_DRAGGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_COL_DRAGGING), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_COL_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_COL_END_DRAG), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_DELETE_ITEM", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_DELETE_ITEM), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_END_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_END_LABEL_EDIT), &wxluatype_wxListEvent }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxEVT_COMMAND_LIST_GET_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_GET_INFO), &wxluatype_wxListEvent }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { "wxEVT_COMMAND_LIST_INSERT_ITEM", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_INSERT_ITEM), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_ITEM_ACTIVATED), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_ITEM_DESELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_ITEM_DESELECTED), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_ITEM_FOCUSED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_ITEM_FOCUSED), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_ITEM_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_ITEM_SELECTED), &wxluatype_wxListEvent }, - { "wxEVT_COMMAND_LIST_KEY_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_KEY_DOWN), &wxluatype_wxListEvent }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxEVT_COMMAND_LIST_SET_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_LIST_SET_INFO), &wxluatype_wxListEvent }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "wxEVT_COMMAND_MENU_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_MENU_SELECTED), &wxluatype_wxCommandEvent }, - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - { "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED), &wxluatype_wxNotebookEvent }, - { "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING), &wxluatype_wxNotebookEvent }, -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - - { "wxEVT_COMMAND_RADIOBOX_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_RADIOBOX_SELECTED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_RADIOBUTTON_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_RADIOBUTTON_SELECTED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_RIGHT_CLICK), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_RIGHT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_RIGHT_DCLICK), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_SET_FOCUS", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SET_FOCUS), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_SLIDER_UPDATED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SLIDER_UPDATED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_SPINCTRL_UPDATED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SPINCTRL_UPDATED), &wxluatype_wxCommandEvent }, - -#if wxLUA_USE_wxSplitterWindow - { "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED), &wxluatype_wxSplitterEvent }, - { "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED), &wxluatype_wxSplitterEvent }, - { "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING), &wxluatype_wxSplitterEvent }, - { "wxEVT_COMMAND_SPLITTER_UNSPLIT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_SPLITTER_UNSPLIT), &wxluatype_wxSplitterEvent }, -#endif // wxLUA_USE_wxSplitterWindow - -#if (defined(__WXMSW__)) && (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) - { "wxEVT_COMMAND_TAB_SEL_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TAB_SEL_CHANGED), &wxluatype_wxTabEvent }, - { "wxEVT_COMMAND_TAB_SEL_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TAB_SEL_CHANGING), &wxluatype_wxTabEvent }, -#endif // (defined(__WXMSW__)) && (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - { "wxEVT_COMMAND_TEXT_COPY", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_COPY), &wxluatype_wxClipboardTextEvent }, - { "wxEVT_COMMAND_TEXT_CUT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_CUT), &wxluatype_wxClipboardTextEvent }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - - { "wxEVT_COMMAND_TEXT_ENTER", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_ENTER), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_TEXT_MAXLEN", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_MAXLEN), &wxluatype_wxCommandEvent }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - { "wxEVT_COMMAND_TEXT_PASTE", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_PASTE), &wxluatype_wxClipboardTextEvent }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - - { "wxEVT_COMMAND_TEXT_UPDATED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_UPDATED), &wxluatype_wxCommandEvent }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxEVT_COMMAND_TEXT_URL", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_URL), &wxluatype_wxCommandEvent }, -#elif (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxEVT_COMMAND_TEXT_URL", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TEXT_URL), &wxluatype_wxTextUrlEvent }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -#if wxCHECK_VERSION(2,4,0) - { "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(2,4,0) - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - { "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED), &wxluatype_wxToolbookEvent }, - { "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING), &wxluatype_wxToolbookEvent }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - - { "wxEVT_COMMAND_TOOL_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TOOL_CLICKED), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_TOOL_ENTER", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TOOL_ENTER), &wxluatype_wxCommandEvent }, - { "wxEVT_COMMAND_TOOL_RCLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TOOL_RCLICKED), &wxluatype_wxCommandEvent }, - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - { "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED), &wxluatype_wxTreebookEvent }, - { "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED), &wxluatype_wxTreebookEvent }, - { "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED), &wxluatype_wxTreebookEvent }, - { "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING), &wxluatype_wxTreebookEvent }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { "wxEVT_COMMAND_TREE_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_BEGIN_DRAG), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_BEGIN_RDRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_BEGIN_RDRAG), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_DELETE_ITEM", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_DELETE_ITEM), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_END_DRAG), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_END_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_END_LABEL_EDIT), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_GET_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_GET_INFO), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_ACTIVATED), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_COLLAPSED), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_COLLAPSING), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_EXPANDED), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_EXPANDING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_EXPANDING), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_MENU", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_MENU), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_KEY_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_KEY_DOWN), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_SEL_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_SEL_CHANGED), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_SEL_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_SEL_CHANGING), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_SET_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_SET_INFO), &wxluatype_wxTreeEvent }, - { "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK), &wxluatype_wxTreeEvent }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - - { "wxEVT_CONTEXT_MENU", WXLUA_GET_wxEventType_ptr(wxEVT_CONTEXT_MENU), &wxluatype_wxContextMenuEvent }, - { "wxEVT_CREATE", WXLUA_GET_wxEventType_ptr(wxEVT_CREATE), &wxluatype_wxWindowCreateEvent }, - { "wxEVT_DESTROY", WXLUA_GET_wxEventType_ptr(wxEVT_DESTROY), &wxluatype_wxWindowDestroyEvent }, - { "wxEVT_DETAILED_HELP", WXLUA_GET_wxEventType_ptr(wxEVT_DETAILED_HELP), &wxluatype_wxHelpEvent }, - -#if (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_DIRPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_DIRPICKER_CHANGED), &wxluatype_wxFileDirPickerEvent }, -#endif // (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxCHECK_VERSION(3,0,0)) - - { "wxEVT_DISPLAY_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_DISPLAY_CHANGED), &wxluatype_wxDisplayChangedEvent }, - -#if wxCHECK_VERSION(3,1,3) - { "wxEVT_DPI_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_DPI_CHANGED), &wxluatype_wxDPIChangedEvent }, -#endif // wxCHECK_VERSION(3,1,3) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "wxEVT_DROP_FILES", WXLUA_GET_wxEventType_ptr(wxEVT_DROP_FILES), &wxluatype_wxDropFilesEvent }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - { "wxEVT_END_PROCESS", WXLUA_GET_wxEventType_ptr(wxEVT_END_PROCESS), &wxluatype_wxProcessEvent }, - { "wxEVT_END_SESSION", WXLUA_GET_wxEventType_ptr(wxEVT_END_SESSION), &wxluatype_wxCloseEvent }, - { "wxEVT_ENTER_WINDOW", WXLUA_GET_wxEventType_ptr(wxEVT_ENTER_WINDOW), &wxluatype_wxMouseEvent }, - { "wxEVT_ERASE_BACKGROUND", WXLUA_GET_wxEventType_ptr(wxEVT_ERASE_BACKGROUND), &wxluatype_wxEraseEvent }, - -#if (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_FILEPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_FILEPICKER_CHANGED), &wxluatype_wxFileDirPickerEvent }, -#endif // (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog) - { "wxEVT_FIND", WXLUA_GET_wxEventType_ptr(wxEVT_FIND), &wxluatype_wxFindDialogEvent }, - { "wxEVT_FIND_CLOSE", WXLUA_GET_wxEventType_ptr(wxEVT_FIND_CLOSE), &wxluatype_wxFindDialogEvent }, - { "wxEVT_FIND_NEXT", WXLUA_GET_wxEventType_ptr(wxEVT_FIND_NEXT), &wxluatype_wxFindDialogEvent }, - { "wxEVT_FIND_REPLACE", WXLUA_GET_wxEventType_ptr(wxEVT_FIND_REPLACE), &wxluatype_wxFindDialogEvent }, - { "wxEVT_FIND_REPLACE_ALL", WXLUA_GET_wxEventType_ptr(wxEVT_FIND_REPLACE_ALL), &wxluatype_wxFindDialogEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_FONTPICKER_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_FONTPICKER_CHANGED), &wxluatype_wxFontPickerEvent }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - { "wxEVT_HEADER_BEGIN_REORDER", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_BEGIN_REORDER), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_BEGIN_RESIZE", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_BEGIN_RESIZE), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_CLICK), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_DCLICK), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_DRAGGING_CANCELLED", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_DRAGGING_CANCELLED), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_END_REORDER", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_END_REORDER), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_END_RESIZE", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_END_RESIZE), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_MIDDLE_CLICK), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_MIDDLE_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_MIDDLE_DCLICK), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_RESIZING", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_RESIZING), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_RIGHT_CLICK), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_RIGHT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_RIGHT_DCLICK), &wxluatype_wxHeaderCtrlEvent }, - { "wxEVT_HEADER_SEPARATOR_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_HEADER_SEPARATOR_DCLICK), &wxluatype_wxHeaderCtrlEvent }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - - { "wxEVT_HELP", WXLUA_GET_wxEventType_ptr(wxEVT_HELP), &wxluatype_wxHelpEvent }, - { "wxEVT_HIBERNATE", WXLUA_GET_wxEventType_ptr(wxEVT_HIBERNATE), &wxluatype_wxActivateEvent }, - -#if wxUSE_HOTKEY - { "wxEVT_HOTKEY", WXLUA_GET_wxEventType_ptr(wxEVT_HOTKEY), &wxluatype_wxKeyEvent }, -#endif // wxUSE_HOTKEY - - { "wxEVT_ICONIZE", WXLUA_GET_wxEventType_ptr(wxEVT_ICONIZE), &wxluatype_wxIconizeEvent }, - { "wxEVT_IDLE", WXLUA_GET_wxEventType_ptr(wxEVT_IDLE), &wxluatype_wxIdleEvent }, - { "wxEVT_INIT_DIALOG", WXLUA_GET_wxEventType_ptr(wxEVT_INIT_DIALOG), &wxluatype_wxInitDialogEvent }, - { "wxEVT_KEY_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_KEY_DOWN), &wxluatype_wxKeyEvent }, - { "wxEVT_KEY_UP", WXLUA_GET_wxEventType_ptr(wxEVT_KEY_UP), &wxluatype_wxKeyEvent }, - { "wxEVT_KILL_FOCUS", WXLUA_GET_wxEventType_ptr(wxEVT_KILL_FOCUS), &wxluatype_wxFocusEvent }, - { "wxEVT_LEAVE_WINDOW", WXLUA_GET_wxEventType_ptr(wxEVT_LEAVE_WINDOW), &wxluatype_wxMouseEvent }, - { "wxEVT_LEFT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_LEFT_DCLICK), &wxluatype_wxMouseEvent }, - { "wxEVT_LEFT_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_LEFT_DOWN), &wxluatype_wxMouseEvent }, - { "wxEVT_LEFT_UP", WXLUA_GET_wxEventType_ptr(wxEVT_LEFT_UP), &wxluatype_wxMouseEvent }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - { "wxEVT_LISTBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_LISTBOOK_PAGE_CHANGED), &wxluatype_wxListbookEvent }, - { "wxEVT_LISTBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_LISTBOOK_PAGE_CHANGING), &wxluatype_wxListbookEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_LISTBOX", WXLUA_GET_wxEventType_ptr(wxEVT_LISTBOX), &wxluatype_wxCommandEvent }, - { "wxEVT_LISTBOX_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_LISTBOX_DCLICK), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxEVT_LIST_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_BEGIN_DRAG), &wxluatype_wxListEvent }, - { "wxEVT_LIST_BEGIN_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_BEGIN_LABEL_EDIT), &wxluatype_wxListEvent }, - { "wxEVT_LIST_BEGIN_RDRAG", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_BEGIN_RDRAG), &wxluatype_wxListEvent }, - { "wxEVT_LIST_CACHE_HINT", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_CACHE_HINT), &wxluatype_wxListEvent }, - { "wxEVT_LIST_COL_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_COL_BEGIN_DRAG), &wxluatype_wxListEvent }, - { "wxEVT_LIST_COL_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_COL_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_LIST_COL_DRAGGING", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_COL_DRAGGING), &wxluatype_wxListEvent }, - { "wxEVT_LIST_COL_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_COL_END_DRAG), &wxluatype_wxListEvent }, - { "wxEVT_LIST_COL_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_COL_RIGHT_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_LIST_DELETE_ALL_ITEMS", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_DELETE_ALL_ITEMS), &wxluatype_wxListEvent }, - { "wxEVT_LIST_DELETE_ITEM", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_DELETE_ITEM), &wxluatype_wxListEvent }, - { "wxEVT_LIST_END_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_END_LABEL_EDIT), &wxluatype_wxListEvent }, - { "wxEVT_LIST_INSERT_ITEM", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_INSERT_ITEM), &wxluatype_wxListEvent }, - { "wxEVT_LIST_ITEM_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_ITEM_ACTIVATED), &wxluatype_wxListEvent }, - { "wxEVT_LIST_ITEM_DESELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_ITEM_DESELECTED), &wxluatype_wxListEvent }, - { "wxEVT_LIST_ITEM_FOCUSED", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_ITEM_FOCUSED), &wxluatype_wxListEvent }, - { "wxEVT_LIST_ITEM_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_ITEM_MIDDLE_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_LIST_ITEM_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_ITEM_RIGHT_CLICK), &wxluatype_wxListEvent }, - { "wxEVT_LIST_ITEM_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_ITEM_SELECTED), &wxluatype_wxListEvent }, - { "wxEVT_LIST_KEY_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_LIST_KEY_DOWN), &wxluatype_wxListEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if wxCHECK_VERSION(3,1,0) - { "wxEVT_MAGNIFY", WXLUA_GET_wxEventType_ptr(wxEVT_MAGNIFY), &wxluatype_wxMouseEvent }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxEVT_MAXIMIZE", WXLUA_GET_wxEventType_ptr(wxEVT_MAXIMIZE), &wxluatype_wxMaximizeEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_MENU", WXLUA_GET_wxEventType_ptr(wxEVT_MENU), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - { "wxEVT_MENU_CLOSE", WXLUA_GET_wxEventType_ptr(wxEVT_MENU_CLOSE), &wxluatype_wxMenuEvent }, - { "wxEVT_MENU_HIGHLIGHT", WXLUA_GET_wxEventType_ptr(wxEVT_MENU_HIGHLIGHT), &wxluatype_wxMenuEvent }, - { "wxEVT_MENU_OPEN", WXLUA_GET_wxEventType_ptr(wxEVT_MENU_OPEN), &wxluatype_wxMenuEvent }, -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - - { "wxEVT_MIDDLE_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_MIDDLE_DCLICK), &wxluatype_wxMouseEvent }, - { "wxEVT_MIDDLE_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_MIDDLE_DOWN), &wxluatype_wxMouseEvent }, - { "wxEVT_MIDDLE_UP", WXLUA_GET_wxEventType_ptr(wxEVT_MIDDLE_UP), &wxluatype_wxMouseEvent }, - { "wxEVT_MOTION", WXLUA_GET_wxEventType_ptr(wxEVT_MOTION), &wxluatype_wxMouseEvent }, - { "wxEVT_MOUSEWHEEL", WXLUA_GET_wxEventType_ptr(wxEVT_MOUSEWHEEL), &wxluatype_wxMouseEvent }, - { "wxEVT_MOUSE_CAPTURE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_MOUSE_CAPTURE_CHANGED), &wxluatype_wxMouseCaptureChangedEvent }, - -#if wxCHECK_VERSION(2,8,0) - { "wxEVT_MOUSE_CAPTURE_LOST", WXLUA_GET_wxEventType_ptr(wxEVT_MOUSE_CAPTURE_LOST), &wxluatype_wxMouseCaptureLostEvent }, -#endif // wxCHECK_VERSION(2,8,0) - - { "wxEVT_MOVE", WXLUA_GET_wxEventType_ptr(wxEVT_MOVE), &wxluatype_wxMoveEvent }, - -#if wxCHECK_VERSION(2,6,0) - { "wxEVT_MOVING", WXLUA_GET_wxEventType_ptr(wxEVT_MOVING), &wxluatype_wxMoveEvent }, -#endif // wxCHECK_VERSION(2,6,0) - - { "wxEVT_NAVIGATION_KEY", WXLUA_GET_wxEventType_ptr(wxEVT_NAVIGATION_KEY), &wxluatype_wxNavigationKeyEvent }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - { "wxEVT_NOTEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_NOTEBOOK_PAGE_CHANGED), &wxluatype_wxNotebookEvent }, - { "wxEVT_NOTEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_NOTEBOOK_PAGE_CHANGING), &wxluatype_wxNotebookEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - - { "wxEVT_NULL", WXLUA_GET_wxEventType_ptr(wxEVT_NULL), &wxluatype_wxCommandEvent }, - { "wxEVT_PAINT", WXLUA_GET_wxEventType_ptr(wxEVT_PAINT), &wxluatype_wxPaintEvent }, - { "wxEVT_PALETTE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_PALETTE_CHANGED), &wxluatype_wxPaletteChangedEvent }, - -#if (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - { "wxEVT_POWER_RESUME", WXLUA_GET_wxEventType_ptr(wxEVT_POWER_RESUME), &wxluatype_wxPowerEvent }, - { "wxEVT_POWER_SUSPENDED", WXLUA_GET_wxEventType_ptr(wxEVT_POWER_SUSPENDED), &wxluatype_wxPowerEvent }, - { "wxEVT_POWER_SUSPENDING", WXLUA_GET_wxEventType_ptr(wxEVT_POWER_SUSPENDING), &wxluatype_wxPowerEvent }, - { "wxEVT_POWER_SUSPEND_CANCEL", WXLUA_GET_wxEventType_ptr(wxEVT_POWER_SUSPEND_CANCEL), &wxluatype_wxPowerEvent }, -#endif // (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - - { "wxEVT_QUERY_END_SESSION", WXLUA_GET_wxEventType_ptr(wxEVT_QUERY_END_SESSION), &wxluatype_wxCloseEvent }, - { "wxEVT_QUERY_NEW_PALETTE", WXLUA_GET_wxEventType_ptr(wxEVT_QUERY_NEW_PALETTE), &wxluatype_wxQueryNewPaletteEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_RADIOBOX", WXLUA_GET_wxEventType_ptr(wxEVT_RADIOBOX), &wxluatype_wxCommandEvent }, - { "wxEVT_RADIOBUTTON", WXLUA_GET_wxEventType_ptr(wxEVT_RADIOBUTTON), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxEVT_RIGHT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_RIGHT_DCLICK), &wxluatype_wxMouseEvent }, - { "wxEVT_RIGHT_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_RIGHT_DOWN), &wxluatype_wxMouseEvent }, - { "wxEVT_RIGHT_UP", WXLUA_GET_wxEventType_ptr(wxEVT_RIGHT_UP), &wxluatype_wxMouseEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_SCROLLBAR", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLBAR), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxEVT_SCROLLWIN_BOTTOM", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_BOTTOM), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_LINEDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_LINEDOWN), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_LINEUP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_LINEUP), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_PAGEDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_PAGEDOWN), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_PAGEUP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_PAGEUP), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_THUMBRELEASE", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_THUMBRELEASE), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_THUMBTRACK", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_THUMBTRACK), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLLWIN_TOP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLLWIN_TOP), &wxluatype_wxScrollWinEvent }, - { "wxEVT_SCROLL_BOTTOM", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_BOTTOM), &wxluatype_wxScrollEvent }, - -#if wxCHECK_VERSION(2,8,0) - { "wxEVT_SCROLL_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_CHANGED), &wxluatype_wxScrollEvent }, -#endif // wxCHECK_VERSION(2,8,0) - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxEVT_SCROLL_ENDSCROLL", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_ENDSCROLL), &wxluatype_wxScrollEvent }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { "wxEVT_SCROLL_LINEDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_LINEDOWN), &wxluatype_wxSpinEvent }, -#elif 1 - { "wxEVT_SCROLL_LINEDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_LINEDOWN), &wxluatype_wxScrollEvent }, -#endif // 1 -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { "wxEVT_SCROLL_LINEUP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_LINEUP), &wxluatype_wxSpinEvent }, -#elif 1 - { "wxEVT_SCROLL_LINEUP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_LINEUP), &wxluatype_wxScrollEvent }, -#endif // 1 - { "wxEVT_SCROLL_PAGEDOWN", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_PAGEDOWN), &wxluatype_wxScrollEvent }, - { "wxEVT_SCROLL_PAGEUP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_PAGEUP), &wxluatype_wxScrollEvent }, - { "wxEVT_SCROLL_THUMBRELEASE", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_THUMBRELEASE), &wxluatype_wxScrollEvent }, - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { "wxEVT_SCROLL_THUMBTRACK", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_THUMBTRACK), &wxluatype_wxSpinEvent }, -#elif 1 - { "wxEVT_SCROLL_THUMBTRACK", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_THUMBTRACK), &wxluatype_wxScrollEvent }, -#endif // 1 - { "wxEVT_SCROLL_TOP", WXLUA_GET_wxEventType_ptr(wxEVT_SCROLL_TOP), &wxluatype_wxScrollEvent }, - -#if wxCHECK_VERSION(3,1,1) - { "wxEVT_SEARCH", WXLUA_GET_wxEventType_ptr(wxEVT_SEARCH), &wxluatype_wxCommandEvent }, - { "wxEVT_SEARCH_CANCEL", WXLUA_GET_wxEventType_ptr(wxEVT_SEARCH_CANCEL), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxEVT_SET_CURSOR", WXLUA_GET_wxEventType_ptr(wxEVT_SET_CURSOR), &wxluatype_wxSetCursorEvent }, - { "wxEVT_SET_FOCUS", WXLUA_GET_wxEventType_ptr(wxEVT_SET_FOCUS), &wxluatype_wxFocusEvent }, - { "wxEVT_SHOW", WXLUA_GET_wxEventType_ptr(wxEVT_SHOW), &wxluatype_wxShowEvent }, - { "wxEVT_SIZE", WXLUA_GET_wxEventType_ptr(wxEVT_SIZE), &wxluatype_wxSizeEvent }, - -#if wxCHECK_VERSION(2,6,0) - { "wxEVT_SIZING", WXLUA_GET_wxEventType_ptr(wxEVT_SIZING), &wxluatype_wxSizeEvent }, -#endif // wxCHECK_VERSION(2,6,0) - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_SLIDER", WXLUA_GET_wxEventType_ptr(wxEVT_SLIDER), &wxluatype_wxCommandEvent }, - { "wxEVT_SPINCTRL", WXLUA_GET_wxEventType_ptr(wxEVT_SPINCTRL), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - { "wxEVT_SPINCTRLDOUBLE", WXLUA_GET_wxEventType_ptr(wxEVT_SPINCTRLDOUBLE), &wxluatype_wxSpinDoubleEvent }, -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxSplitterWindow) - { "wxEVT_SPLITTER_DOUBLECLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_SPLITTER_DOUBLECLICKED), &wxluatype_wxSplitterEvent }, - { "wxEVT_SPLITTER_SASH_POS_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_SPLITTER_SASH_POS_CHANGED), &wxluatype_wxSplitterEvent }, - { "wxEVT_SPLITTER_SASH_POS_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_SPLITTER_SASH_POS_CHANGING), &wxluatype_wxSplitterEvent }, - { "wxEVT_SPLITTER_UNSPLIT", WXLUA_GET_wxEventType_ptr(wxEVT_SPLITTER_UNSPLIT), &wxluatype_wxSplitterEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxSplitterWindow) - - { "wxEVT_SYS_COLOUR_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_SYS_COLOUR_CHANGED), &wxluatype_wxSysColourChangedEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_TEXT", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_TEXT_COPY", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT_COPY), &wxluatype_wxClipboardTextEvent }, - { "wxEVT_TEXT_CUT", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT_CUT), &wxluatype_wxClipboardTextEvent }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxCHECK_VERSION(3,0,0)) - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_TEXT_ENTER", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT_ENTER), &wxluatype_wxCommandEvent }, - { "wxEVT_TEXT_MAXLEN", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT_MAXLEN), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_TEXT_PASTE", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT_PASTE), &wxluatype_wxClipboardTextEvent }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxEVT_TEXT_URL", WXLUA_GET_wxEventType_ptr(wxEVT_TEXT_URL), &wxluatype_wxTextUrlEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTimer && wxUSE_TIMER - { "wxEVT_TIMER", WXLUA_GET_wxEventType_ptr(wxEVT_TIMER), &wxluatype_wxTimerEvent }, -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_TOGGLEBUTTON", WXLUA_GET_wxEventType_ptr(wxEVT_TOGGLEBUTTON), &wxluatype_wxCommandEvent }, - { "wxEVT_TOOL", WXLUA_GET_wxEventType_ptr(wxEVT_TOOL), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_TOOLBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_TOOLBOOK_PAGE_CHANGED), &wxluatype_wxToolbookEvent }, - { "wxEVT_TOOLBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_TOOLBOOK_PAGE_CHANGING), &wxluatype_wxToolbookEvent }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxCHECK_VERSION(3,0,0)) - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_TOOL_ENTER", WXLUA_GET_wxEventType_ptr(wxEVT_TOOL_ENTER), &wxluatype_wxCommandEvent }, - { "wxEVT_TOOL_RCLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_TOOL_RCLICKED), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxCHECK_VERSION(3,0,0)) - { "wxEVT_TREEBOOK_NODE_COLLAPSED", WXLUA_GET_wxEventType_ptr(wxEVT_TREEBOOK_NODE_COLLAPSED), &wxluatype_wxTreebookEvent }, - { "wxEVT_TREEBOOK_NODE_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_TREEBOOK_NODE_EXPANDED), &wxluatype_wxTreebookEvent }, - { "wxEVT_TREEBOOK_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_TREEBOOK_PAGE_CHANGED), &wxluatype_wxTreebookEvent }, - { "wxEVT_TREEBOOK_PAGE_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_TREEBOOK_PAGE_CHANGING), &wxluatype_wxTreebookEvent }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxCHECK_VERSION(3,0,0)) - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - { "wxEVT_TREELIST_COLUMN_SORTED", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_COLUMN_SORTED), &wxluatype_wxTreeListEvent }, - { "wxEVT_TREELIST_ITEM_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_ITEM_ACTIVATED), &wxluatype_wxTreeListEvent }, - { "wxEVT_TREELIST_ITEM_CHECKED", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_ITEM_CHECKED), &wxluatype_wxTreeListEvent }, - { "wxEVT_TREELIST_ITEM_CONTEXT_MENU", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_ITEM_CONTEXT_MENU), &wxluatype_wxTreeListEvent }, - { "wxEVT_TREELIST_ITEM_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_ITEM_EXPANDED), &wxluatype_wxTreeListEvent }, - { "wxEVT_TREELIST_ITEM_EXPANDING", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_ITEM_EXPANDING), &wxluatype_wxTreeListEvent }, - { "wxEVT_TREELIST_SELECTION_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_TREELIST_SELECTION_CHANGED), &wxluatype_wxTreeListEvent }, -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "wxEVT_TREE_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_BEGIN_DRAG), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_BEGIN_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_BEGIN_LABEL_EDIT), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_BEGIN_RDRAG", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_BEGIN_RDRAG), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_DELETE_ITEM", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_DELETE_ITEM), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_END_DRAG), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_END_LABEL_EDIT", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_END_LABEL_EDIT), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_GET_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_GET_INFO), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_ACTIVATED", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_ACTIVATED), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_COLLAPSED", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_COLLAPSED), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_COLLAPSING", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_COLLAPSING), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_EXPANDED), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_EXPANDING", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_EXPANDING), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_GETTOOLTIP", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_GETTOOLTIP), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_MENU", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_MENU), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_MIDDLE_CLICK), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_ITEM_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_ITEM_RIGHT_CLICK), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_KEY_DOWN", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_KEY_DOWN), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_SEL_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_SEL_CHANGED), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_SEL_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_SEL_CHANGING), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_SET_INFO", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_SET_INFO), &wxluatype_wxTreeEvent }, - { "wxEVT_TREE_STATE_IMAGE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_TREE_STATE_IMAGE_CLICK), &wxluatype_wxTreeEvent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "wxEVT_UPDATE_UI", WXLUA_GET_wxEventType_ptr(wxEVT_UPDATE_UI), &wxluatype_wxUpdateUIEvent }, - -#if wxCHECK_VERSION(3,0,0) - { "wxEVT_VLBOX", WXLUA_GET_wxEventType_ptr(wxEVT_VLBOX), &wxluatype_wxCommandEvent }, -#endif // wxCHECK_VERSION(3,0,0) - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxcore() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxcore(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { - { "WXK_ADD", WXK_ADD }, - { "WXK_ALT", WXK_ALT }, - { "WXK_BACK", WXK_BACK }, - { "WXK_CANCEL", WXK_CANCEL }, - { "WXK_CAPITAL", WXK_CAPITAL }, - { "WXK_CLEAR", WXK_CLEAR }, - { "WXK_CONTROL", WXK_CONTROL }, - { "WXK_DECIMAL", WXK_DECIMAL }, - { "WXK_DELETE", WXK_DELETE }, - { "WXK_DIVIDE", WXK_DIVIDE }, - { "WXK_DOWN", WXK_DOWN }, - { "WXK_END", WXK_END }, - { "WXK_ESCAPE", WXK_ESCAPE }, - { "WXK_EXECUTE", WXK_EXECUTE }, - { "WXK_F1", WXK_F1 }, - { "WXK_F10", WXK_F10 }, - { "WXK_F11", WXK_F11 }, - { "WXK_F12", WXK_F12 }, - { "WXK_F13", WXK_F13 }, - { "WXK_F14", WXK_F14 }, - { "WXK_F15", WXK_F15 }, - { "WXK_F16", WXK_F16 }, - { "WXK_F17", WXK_F17 }, - { "WXK_F18", WXK_F18 }, - { "WXK_F19", WXK_F19 }, - { "WXK_F2", WXK_F2 }, - { "WXK_F20", WXK_F20 }, - { "WXK_F21", WXK_F21 }, - { "WXK_F22", WXK_F22 }, - { "WXK_F23", WXK_F23 }, - { "WXK_F24", WXK_F24 }, - { "WXK_F3", WXK_F3 }, - { "WXK_F4", WXK_F4 }, - { "WXK_F5", WXK_F5 }, - { "WXK_F6", WXK_F6 }, - { "WXK_F7", WXK_F7 }, - { "WXK_F8", WXK_F8 }, - { "WXK_F9", WXK_F9 }, - { "WXK_HELP", WXK_HELP }, - { "WXK_HOME", WXK_HOME }, - { "WXK_INSERT", WXK_INSERT }, - { "WXK_LBUTTON", WXK_LBUTTON }, - { "WXK_LEFT", WXK_LEFT }, - { "WXK_MBUTTON", WXK_MBUTTON }, - { "WXK_MENU", WXK_MENU }, - { "WXK_MULTIPLY", WXK_MULTIPLY }, - { "WXK_NUMLOCK", WXK_NUMLOCK }, - { "WXK_NUMPAD0", WXK_NUMPAD0 }, - { "WXK_NUMPAD1", WXK_NUMPAD1 }, - { "WXK_NUMPAD2", WXK_NUMPAD2 }, - { "WXK_NUMPAD3", WXK_NUMPAD3 }, - { "WXK_NUMPAD4", WXK_NUMPAD4 }, - { "WXK_NUMPAD5", WXK_NUMPAD5 }, - { "WXK_NUMPAD6", WXK_NUMPAD6 }, - { "WXK_NUMPAD7", WXK_NUMPAD7 }, - { "WXK_NUMPAD8", WXK_NUMPAD8 }, - { "WXK_NUMPAD9", WXK_NUMPAD9 }, - { "WXK_NUMPAD_ADD", WXK_NUMPAD_ADD }, - { "WXK_NUMPAD_BEGIN", WXK_NUMPAD_BEGIN }, - { "WXK_NUMPAD_DECIMAL", WXK_NUMPAD_DECIMAL }, - { "WXK_NUMPAD_DELETE", WXK_NUMPAD_DELETE }, - { "WXK_NUMPAD_DIVIDE", WXK_NUMPAD_DIVIDE }, - { "WXK_NUMPAD_DOWN", WXK_NUMPAD_DOWN }, - { "WXK_NUMPAD_END", WXK_NUMPAD_END }, - { "WXK_NUMPAD_ENTER", WXK_NUMPAD_ENTER }, - { "WXK_NUMPAD_EQUAL", WXK_NUMPAD_EQUAL }, - { "WXK_NUMPAD_F1", WXK_NUMPAD_F1 }, - { "WXK_NUMPAD_F2", WXK_NUMPAD_F2 }, - { "WXK_NUMPAD_F3", WXK_NUMPAD_F3 }, - { "WXK_NUMPAD_F4", WXK_NUMPAD_F4 }, - { "WXK_NUMPAD_HOME", WXK_NUMPAD_HOME }, - { "WXK_NUMPAD_INSERT", WXK_NUMPAD_INSERT }, - { "WXK_NUMPAD_LEFT", WXK_NUMPAD_LEFT }, - { "WXK_NUMPAD_MULTIPLY", WXK_NUMPAD_MULTIPLY }, - { "WXK_NUMPAD_PAGEDOWN", WXK_NUMPAD_PAGEDOWN }, - { "WXK_NUMPAD_PAGEUP", WXK_NUMPAD_PAGEUP }, - { "WXK_NUMPAD_RIGHT", WXK_NUMPAD_RIGHT }, - { "WXK_NUMPAD_SEPARATOR", WXK_NUMPAD_SEPARATOR }, - { "WXK_NUMPAD_SPACE", WXK_NUMPAD_SPACE }, - { "WXK_NUMPAD_SUBTRACT", WXK_NUMPAD_SUBTRACT }, - { "WXK_NUMPAD_TAB", WXK_NUMPAD_TAB }, - { "WXK_NUMPAD_UP", WXK_NUMPAD_UP }, - { "WXK_PAGEDOWN", WXK_PAGEDOWN }, - { "WXK_PAGEUP", WXK_PAGEUP }, - { "WXK_PAUSE", WXK_PAUSE }, - { "WXK_PRINT", WXK_PRINT }, - { "WXK_RBUTTON", WXK_RBUTTON }, - { "WXK_RETURN", WXK_RETURN }, - { "WXK_RIGHT", WXK_RIGHT }, - { "WXK_SCROLL", WXK_SCROLL }, - { "WXK_SELECT", WXK_SELECT }, - { "WXK_SEPARATOR", WXK_SEPARATOR }, - { "WXK_SHIFT", WXK_SHIFT }, - { "WXK_SNAPSHOT", WXK_SNAPSHOT }, - { "WXK_SPACE", WXK_SPACE }, - { "WXK_START", WXK_START }, - { "WXK_SUBTRACT", WXK_SUBTRACT }, - { "WXK_TAB", WXK_TAB }, - { "WXK_UP", WXK_UP }, - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - { "wxACCEL_ALT", wxACCEL_ALT }, -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "wxACCEL_CMD", wxACCEL_CMD }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - { "wxACCEL_CTRL", wxACCEL_CTRL }, - { "wxACCEL_NORMAL", wxACCEL_NORMAL }, - { "wxACCEL_SHIFT", wxACCEL_SHIFT }, -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - { "wxADJUST_MINSIZE", wxADJUST_MINSIZE }, -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - - { "wxALIGN_BOTTOM", wxALIGN_BOTTOM }, - { "wxALIGN_CENTER", wxALIGN_CENTER }, - { "wxALIGN_CENTER_HORIZONTAL", wxALIGN_CENTER_HORIZONTAL }, - { "wxALIGN_CENTER_VERTICAL", wxALIGN_CENTER_VERTICAL }, - { "wxALIGN_CENTRE", wxALIGN_CENTRE }, - { "wxALIGN_CENTRE_HORIZONTAL", wxALIGN_CENTRE_HORIZONTAL }, - { "wxALIGN_CENTRE_VERTICAL", wxALIGN_CENTRE_VERTICAL }, - { "wxALIGN_LEFT", wxALIGN_LEFT }, - { "wxALIGN_MASK", wxALIGN_MASK }, - { "wxALIGN_NOT", wxALIGN_NOT }, - { "wxALIGN_RIGHT", wxALIGN_RIGHT }, - { "wxALIGN_TOP", wxALIGN_TOP }, - { "wxALL", wxALL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "wxALPHA_OPAQUE", wxALPHA_OPAQUE }, - { "wxALPHA_TRANSPARENT", wxALPHA_TRANSPARENT }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - { "wxALWAYS_NATIVE_DOUBLE_BUFFER", wxALWAYS_NATIVE_DOUBLE_BUFFER }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - - { "wxALWAYS_SHOW_SB", wxALWAYS_SHOW_SB }, - -#if wxLUA_USE_wxDC - { "wxAND", wxAND }, - { "wxAND_INVERT", wxAND_INVERT }, - { "wxAND_REVERSE", wxAND_REVERSE }, -#endif // wxLUA_USE_wxDC - -#if wxUSE_GRAPHICS_CONTEXT - { "wxANTIALIAS_DEFAULT", wxANTIALIAS_DEFAULT }, - { "wxANTIALIAS_NONE", wxANTIALIAS_NONE }, -#endif // wxUSE_GRAPHICS_CONTEXT - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxAbove", wxAbove }, - { "wxAbsolute", wxAbsolute }, - { "wxAsIs", wxAsIs }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - - { "wxBACKINGSTORE", wxBACKINGSTORE }, - { "wxBACKWARD", wxBACKWARD }, - -#if wxCHECK_VERSION(2,8,0) - { "wxBATTERY_CRITICAL_STATE", wxBATTERY_CRITICAL_STATE }, - { "wxBATTERY_LOW_STATE", wxBATTERY_LOW_STATE }, - { "wxBATTERY_NORMAL_STATE", wxBATTERY_NORMAL_STATE }, - { "wxBATTERY_SHUTDOWN_STATE", wxBATTERY_SHUTDOWN_STATE }, - { "wxBATTERY_UNKNOWN_STATE", wxBATTERY_UNKNOWN_STATE }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxColourPenBrush - { "wxBDIAGONAL_HATCH", wxBDIAGONAL_HATCH }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxBG_STYLE_COLOUR", wxBG_STYLE_COLOUR }, - -#if !wxCHECK_VERSION(3,1,0) - { "wxBG_STYLE_CUSTOM", wxBG_STYLE_CUSTOM }, -#endif // !wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,0) - { "wxBG_STYLE_ERASE", wxBG_STYLE_ERASE }, - { "wxBG_STYLE_PAINT", wxBG_STYLE_PAINT }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxBG_STYLE_SYSTEM", wxBG_STYLE_SYSTEM }, - -#if wxCHECK_VERSION(3,1,0) - { "wxBG_STYLE_TRANSPARENT", wxBG_STYLE_TRANSPARENT }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxBITMAP_TYPE_ANI", wxBITMAP_TYPE_ANI }, - { "wxBITMAP_TYPE_ANY", wxBITMAP_TYPE_ANY }, - { "wxBITMAP_TYPE_BMP", wxBITMAP_TYPE_BMP }, - { "wxBITMAP_TYPE_BMP_RESOURCE", wxBITMAP_TYPE_BMP_RESOURCE }, - { "wxBITMAP_TYPE_CUR", wxBITMAP_TYPE_CUR }, - { "wxBITMAP_TYPE_CUR_RESOURCE", wxBITMAP_TYPE_CUR_RESOURCE }, - { "wxBITMAP_TYPE_GIF", wxBITMAP_TYPE_GIF }, - { "wxBITMAP_TYPE_GIF_RESOURCE", wxBITMAP_TYPE_GIF_RESOURCE }, - { "wxBITMAP_TYPE_ICO", wxBITMAP_TYPE_ICO }, - { "wxBITMAP_TYPE_ICON", wxBITMAP_TYPE_ICON }, - { "wxBITMAP_TYPE_ICON_RESOURCE", wxBITMAP_TYPE_ICON_RESOURCE }, - { "wxBITMAP_TYPE_ICO_RESOURCE", wxBITMAP_TYPE_ICO_RESOURCE }, - { "wxBITMAP_TYPE_IFF", wxBITMAP_TYPE_IFF }, - { "wxBITMAP_TYPE_INVALID", wxBITMAP_TYPE_INVALID }, - { "wxBITMAP_TYPE_JPEG", wxBITMAP_TYPE_JPEG }, - { "wxBITMAP_TYPE_JPEG_RESOURCE", wxBITMAP_TYPE_JPEG_RESOURCE }, - { "wxBITMAP_TYPE_MACCURSOR", wxBITMAP_TYPE_MACCURSOR }, - { "wxBITMAP_TYPE_MACCURSOR_RESOURCE", wxBITMAP_TYPE_MACCURSOR_RESOURCE }, - { "wxBITMAP_TYPE_PCX", wxBITMAP_TYPE_PCX }, - { "wxBITMAP_TYPE_PCX_RESOURCE", wxBITMAP_TYPE_PCX_RESOURCE }, - { "wxBITMAP_TYPE_PICT", wxBITMAP_TYPE_PICT }, - { "wxBITMAP_TYPE_PICT_RESOURCE", wxBITMAP_TYPE_PICT_RESOURCE }, - { "wxBITMAP_TYPE_PNG", wxBITMAP_TYPE_PNG }, - { "wxBITMAP_TYPE_PNG_RESOURCE", wxBITMAP_TYPE_PNG_RESOURCE }, - { "wxBITMAP_TYPE_PNM", wxBITMAP_TYPE_PNM }, - { "wxBITMAP_TYPE_PNM_RESOURCE", wxBITMAP_TYPE_PNM_RESOURCE }, - { "wxBITMAP_TYPE_RESOURCE", wxBITMAP_TYPE_RESOURCE }, - -#if wxCHECK_VERSION(2,8,0) - { "wxBITMAP_TYPE_TGA", wxBITMAP_TYPE_TGA }, -#endif // wxCHECK_VERSION(2,8,0) - - { "wxBITMAP_TYPE_TIF", wxBITMAP_TYPE_TIF }, - { "wxBITMAP_TYPE_TIF_RESOURCE", wxBITMAP_TYPE_TIF_RESOURCE }, - { "wxBITMAP_TYPE_XBM", wxBITMAP_TYPE_XBM }, - { "wxBITMAP_TYPE_XBM_DATA", wxBITMAP_TYPE_XBM_DATA }, - { "wxBITMAP_TYPE_XPM", wxBITMAP_TYPE_XPM }, - { "wxBITMAP_TYPE_XPM_DATA", wxBITMAP_TYPE_XPM_DATA }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "wxBK_ALIGN_MASK", wxBK_ALIGN_MASK }, - { "wxBK_BOTTOM", wxBK_BOTTOM }, - { "wxBK_DEFAULT", wxBK_DEFAULT }, - { "wxBK_HITTEST_NOWHERE", wxBK_HITTEST_NOWHERE }, - { "wxBK_HITTEST_ONICON", wxBK_HITTEST_ONICON }, - { "wxBK_HITTEST_ONITEM", wxBK_HITTEST_ONITEM }, - { "wxBK_HITTEST_ONLABEL", wxBK_HITTEST_ONLABEL }, - { "wxBK_HITTEST_ONPAGE", wxBK_HITTEST_ONPAGE }, - { "wxBK_LEFT", wxBK_LEFT }, - { "wxBK_RIGHT", wxBK_RIGHT }, - { "wxBK_TOP", wxBK_TOP }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC) - { "wxBLIT_00220326", wxBLIT_00220326 }, - { "wxBLIT_007700E6", wxBLIT_007700E6 }, - { "wxBLIT_00990066", wxBLIT_00990066 }, - { "wxBLIT_00AA0029", wxBLIT_00AA0029 }, - { "wxBLIT_00DD0228", wxBLIT_00DD0228 }, - { "wxBLIT_BLACKNESS", wxBLIT_BLACKNESS }, - { "wxBLIT_DSTINVERT", wxBLIT_DSTINVERT }, - { "wxBLIT_MERGEPAINT", wxBLIT_MERGEPAINT }, - { "wxBLIT_NOTSCRCOPY", wxBLIT_NOTSCRCOPY }, - { "wxBLIT_NOTSRCERASE", wxBLIT_NOTSRCERASE }, - { "wxBLIT_SRCAND", wxBLIT_SRCAND }, - { "wxBLIT_SRCCOPY", wxBLIT_SRCCOPY }, - { "wxBLIT_SRCERASE", wxBLIT_SRCERASE }, - { "wxBLIT_SRCINVERT", wxBLIT_SRCINVERT }, - { "wxBLIT_SRCPAINT", wxBLIT_SRCPAINT }, - { "wxBLIT_WHITENESS", wxBLIT_WHITENESS }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxBMP_1BPP", wxBMP_1BPP }, - { "wxBMP_1BPP_BW", wxBMP_1BPP_BW }, - { "wxBMP_24BPP", wxBMP_24BPP }, - { "wxBMP_4BPP", wxBMP_4BPP }, - { "wxBMP_8BPP", wxBMP_8BPP }, - { "wxBMP_8BPP_GRAY", wxBMP_8BPP_GRAY }, - { "wxBMP_8BPP_GREY", wxBMP_8BPP_GREY }, - { "wxBMP_8BPP_PALETTE", wxBMP_8BPP_PALETTE }, - { "wxBMP_8BPP_RED", wxBMP_8BPP_RED }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxLUA_USE_wxFont - { "wxBOLD", wxBOLD }, -#endif // wxLUA_USE_wxFont - - { "wxBORDER_DEFAULT", wxBORDER_DEFAULT }, - { "wxBORDER_DOUBLE", wxBORDER_DOUBLE }, - { "wxBORDER_MASK", wxBORDER_MASK }, - { "wxBORDER_NONE", wxBORDER_NONE }, - { "wxBORDER_RAISED", wxBORDER_RAISED }, - { "wxBORDER_SIMPLE", wxBORDER_SIMPLE }, - { "wxBORDER_STATIC", wxBORDER_STATIC }, - { "wxBORDER_SUNKEN", wxBORDER_SUNKEN }, - { "wxBOTH", wxBOTH }, - { "wxBOTTOM", wxBOTTOM }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "wxBRUSHSTYLE_BDIAGONAL_HATCH", wxBRUSHSTYLE_BDIAGONAL_HATCH }, - { "wxBRUSHSTYLE_CROSSDIAG_HATCH", wxBRUSHSTYLE_CROSSDIAG_HATCH }, - { "wxBRUSHSTYLE_CROSS_HATCH", wxBRUSHSTYLE_CROSS_HATCH }, - { "wxBRUSHSTYLE_FDIAGONAL_HATCH", wxBRUSHSTYLE_FDIAGONAL_HATCH }, - { "wxBRUSHSTYLE_FIRST_HATCH", wxBRUSHSTYLE_FIRST_HATCH }, - { "wxBRUSHSTYLE_HORIZONTAL_HATCH", wxBRUSHSTYLE_HORIZONTAL_HATCH }, - { "wxBRUSHSTYLE_INVALID", wxBRUSHSTYLE_INVALID }, - { "wxBRUSHSTYLE_LAST_HATCH", wxBRUSHSTYLE_LAST_HATCH }, - { "wxBRUSHSTYLE_SOLID", wxBRUSHSTYLE_SOLID }, - { "wxBRUSHSTYLE_STIPPLE", wxBRUSHSTYLE_STIPPLE }, - { "wxBRUSHSTYLE_STIPPLE_MASK", wxBRUSHSTYLE_STIPPLE_MASK }, - { "wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE", wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE }, - { "wxBRUSHSTYLE_TRANSPARENT", wxBRUSHSTYLE_TRANSPARENT }, - { "wxBRUSHSTYLE_VERTICAL_HATCH", wxBRUSHSTYLE_VERTICAL_HATCH }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - { "wxBU_ALIGN_MASK", wxBU_ALIGN_MASK }, -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "wxBU_AUTODRAW", wxBU_AUTODRAW }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - { "wxBU_BOTTOM", wxBU_BOTTOM }, - { "wxBU_EXACTFIT", wxBU_EXACTFIT }, - { "wxBU_LEFT", wxBU_LEFT }, -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "wxBU_NOTEXT", wxBU_NOTEXT }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - { "wxBU_RIGHT", wxBU_RIGHT }, - { "wxBU_TOP", wxBU_TOP }, -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxBelow", wxBelow }, - { "wxBottom", wxBottom }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "wxC2S_CSS_SYNTAX", wxC2S_CSS_SYNTAX }, - { "wxC2S_HTML_SYNTAX", wxC2S_HTML_SYNTAX }, - { "wxC2S_NAME", wxC2S_NAME }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - - { "wxCANCEL", wxCANCEL }, - -#if wxLUA_USE_wxFrame - { "wxCAPTION", wxCAPTION }, -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxColourPenBrush - { "wxCAP_BUTT", wxCAP_BUTT }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "wxCAP_INVALID", wxCAP_INVALID }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxLUA_USE_wxColourPenBrush - { "wxCAP_PROJECTING", wxCAP_PROJECTING }, - { "wxCAP_ROUND", wxCAP_ROUND }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - { "wxCB_DROPDOWN", wxCB_DROPDOWN }, - { "wxCB_READONLY", wxCB_READONLY }, - { "wxCB_SIMPLE", wxCB_SIMPLE }, - { "wxCB_SORT", wxCB_SORT }, -#endif // wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - -#if wxUSE_COMBOCTRL - { "wxCC_BUTTON_COVERS_BORDER", wxCC_BUTTON_COVERS_BORDER }, - { "wxCC_BUTTON_OUTSIDE_BORDER", wxCC_BUTTON_OUTSIDE_BORDER }, - { "wxCC_BUTTON_STAYS_DOWN", wxCC_BUTTON_STAYS_DOWN }, - { "wxCC_FULL_BUTTON", wxCC_FULL_BUTTON }, - { "wxCC_IFLAG_BUTTON_OUTSIDE", wxCC_IFLAG_BUTTON_OUTSIDE }, - { "wxCC_IFLAG_CREATED", wxCC_IFLAG_CREATED }, - { "wxCC_IFLAG_DISABLE_POPUP_ANIM", wxCC_IFLAG_DISABLE_POPUP_ANIM }, - { "wxCC_IFLAG_HAS_NONSTANDARD_BUTTON", wxCC_IFLAG_HAS_NONSTANDARD_BUTTON }, - { "wxCC_IFLAG_LEFT_MARGIN_SET", wxCC_IFLAG_LEFT_MARGIN_SET }, - { "wxCC_IFLAG_PARENT_TAB_TRAVERSAL", wxCC_IFLAG_PARENT_TAB_TRAVERSAL }, - { "wxCC_IFLAG_USE_ALT_POPUP", wxCC_IFLAG_USE_ALT_POPUP }, - { "wxCC_MF_ON_BUTTON", wxCC_MF_ON_BUTTON }, - { "wxCC_MF_ON_CLICK_AREA", wxCC_MF_ON_CLICK_AREA }, - { "wxCC_NO_TEXT_AUTO_SELECT", wxCC_NO_TEXT_AUTO_SELECT }, - { "wxCC_POPUP_ON_MOUSE_UP", wxCC_POPUP_ON_MOUSE_UP }, - { "wxCC_SPECIAL_DCLICK", wxCC_SPECIAL_DCLICK }, - { "wxCC_STD_BUTTON", wxCC_STD_BUTTON }, -#endif // wxUSE_COMBOCTRL - - { "wxCENTER", wxCENTER }, - { "wxCENTER_FRAME", wxCENTER_FRAME }, - { "wxCENTER_ON_SCREEN", wxCENTER_ON_SCREEN }, - { "wxCENTRE", wxCENTRE }, - { "wxCENTRE_ON_SCREEN", wxCENTRE_ON_SCREEN }, - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxCHANGE_DIR", wxCHANGE_DIR }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - { "wxCHB_ALIGN_MASK", wxCHB_ALIGN_MASK }, - { "wxCHB_BOTTOM", wxCHB_BOTTOM }, - { "wxCHB_DEFAULT", wxCHB_DEFAULT }, - { "wxCHB_LEFT", wxCHB_LEFT }, - { "wxCHB_RIGHT", wxCHB_RIGHT }, - { "wxCHB_TOP", wxCHB_TOP }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - -#if wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - { "wxCHK_2STATE", wxCHK_2STATE }, - { "wxCHK_3STATE", wxCHK_3STATE }, - { "wxCHK_ALLOW_3RD_STATE_FOR_USER", wxCHK_ALLOW_3RD_STATE_FOR_USER }, - { "wxCHK_CHECKED", wxCHK_CHECKED }, - { "wxCHK_UNCHECKED", wxCHK_UNCHECKED }, - { "wxCHK_UNDETERMINED", wxCHK_UNDETERMINED }, -#endif // wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - -#if wxLUA_USE_wxDialog - { "wxCHOICEDLG_STYLE", wxCHOICEDLG_STYLE }, -#endif // wxLUA_USE_wxDialog - -#if wxLUA_USE_wxDC - { "wxCLEAR", wxCLEAR }, -#endif // wxLUA_USE_wxDC - - { "wxCLIP_CHILDREN", wxCLIP_CHILDREN }, - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxFrame) - { "wxCLOSE_BOX", wxCLOSE_BOX }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxFrame) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - { "wxCLRP_DEFAULT_STYLE", wxCLRP_DEFAULT_STYLE }, - { "wxCLRP_SHOW_LABEL", wxCLRP_SHOW_LABEL }, - { "wxCLRP_USE_TEXTCTRL", wxCLRP_USE_TEXTCTRL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - - { "wxCOLOURED", wxCOLOURED }, - -#if wxUSE_GRAPHICS_CONTEXT - { "wxCOMPOSITION_ADD", wxCOMPOSITION_ADD }, - { "wxCOMPOSITION_ATOP", wxCOMPOSITION_ATOP }, - { "wxCOMPOSITION_CLEAR", wxCOMPOSITION_CLEAR }, - { "wxCOMPOSITION_DEST", wxCOMPOSITION_DEST }, - { "wxCOMPOSITION_DEST_ATOP", wxCOMPOSITION_DEST_ATOP }, - { "wxCOMPOSITION_DEST_IN", wxCOMPOSITION_DEST_IN }, - { "wxCOMPOSITION_DEST_OUT", wxCOMPOSITION_DEST_OUT }, - { "wxCOMPOSITION_DEST_OVER", wxCOMPOSITION_DEST_OVER }, - { "wxCOMPOSITION_IN", wxCOMPOSITION_IN }, - { "wxCOMPOSITION_INVALID", wxCOMPOSITION_INVALID }, - { "wxCOMPOSITION_OUT", wxCOMPOSITION_OUT }, - { "wxCOMPOSITION_OVER", wxCOMPOSITION_OVER }, - { "wxCOMPOSITION_SOURCE", wxCOMPOSITION_SOURCE }, - { "wxCOMPOSITION_XOR", wxCOMPOSITION_XOR }, -#endif // wxUSE_GRAPHICS_CONTEXT - -#if wxLUA_USE_wxRenderer - { "wxCONTROL_CHECKABLE", wxCONTROL_CHECKABLE }, - { "wxCONTROL_CHECKED", wxCONTROL_CHECKED }, - { "wxCONTROL_CURRENT", wxCONTROL_CURRENT }, - { "wxCONTROL_DIRTY", wxCONTROL_DIRTY }, - { "wxCONTROL_DISABLED", wxCONTROL_DISABLED }, - { "wxCONTROL_EXPANDED", wxCONTROL_EXPANDED }, - { "wxCONTROL_FLAGS_MASK", wxCONTROL_FLAGS_MASK }, - { "wxCONTROL_FOCUSED", wxCONTROL_FOCUSED }, - { "wxCONTROL_ISDEFAULT", wxCONTROL_ISDEFAULT }, - { "wxCONTROL_ISSUBMENU", wxCONTROL_ISSUBMENU }, - { "wxCONTROL_PRESSED", wxCONTROL_PRESSED }, - { "wxCONTROL_SELECTED", wxCONTROL_SELECTED }, - { "wxCONTROL_SIZEGRIP", wxCONTROL_SIZEGRIP }, - { "wxCONTROL_SPECIAL", wxCONTROL_SPECIAL }, - { "wxCONTROL_UNDETERMINED", wxCONTROL_UNDETERMINED }, -#endif // wxLUA_USE_wxRenderer - -#if wxLUA_USE_wxDC - { "wxCOPY", wxCOPY }, -#endif // wxLUA_USE_wxDC - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - { "wxCP_DEFAULT_STYLE", wxCP_DEFAULT_STYLE }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - -#if wxUSE_COMBOCTRL - { "wxCP_IFLAG_CREATED", wxCP_IFLAG_CREATED }, -#endif // wxUSE_COMBOCTRL - -#if wxLUA_USE_wxColourPenBrush - { "wxCROSSDIAG_HATCH", wxCROSSDIAG_HATCH }, - { "wxCROSS_HATCH", wxCROSS_HATCH }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxCursor - { "wxCURSOR_ARROW", wxCURSOR_ARROW }, - { "wxCURSOR_ARROWWAIT", wxCURSOR_ARROWWAIT }, -#endif // wxLUA_USE_wxCursor - -#if (defined (__X__ )) && (wxLUA_USE_wxCursor) - { "wxCURSOR_BASED_ARROW_DOWN", wxCURSOR_BASED_ARROW_DOWN }, - { "wxCURSOR_BASED_ARROW_UP", wxCURSOR_BASED_ARROW_UP }, -#endif // (defined (__X__ )) && (wxLUA_USE_wxCursor) - -#if wxLUA_USE_wxCursor - { "wxCURSOR_BLANK", wxCURSOR_BLANK }, - { "wxCURSOR_BULLSEYE", wxCURSOR_BULLSEYE }, - { "wxCURSOR_CHAR", wxCURSOR_CHAR }, -#endif // wxLUA_USE_wxCursor - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxCursor) - { "wxCURSOR_COPY_ARROW", wxCURSOR_COPY_ARROW }, -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxCursor) - -#if wxLUA_USE_wxCursor - { "wxCURSOR_CROSS", wxCURSOR_CROSS }, -#endif // wxLUA_USE_wxCursor - -#if (defined (__X__ )) && (wxLUA_USE_wxCursor) - { "wxCURSOR_CROSS_REVERSE", wxCURSOR_CROSS_REVERSE }, -#endif // (defined (__X__ )) && (wxLUA_USE_wxCursor) - -#if wxLUA_USE_wxCursor - { "wxCURSOR_DEFAULT", wxCURSOR_DEFAULT }, -#endif // wxLUA_USE_wxCursor - -#if (defined (__X__ )) && (wxLUA_USE_wxCursor) - { "wxCURSOR_DOUBLE_ARROW", wxCURSOR_DOUBLE_ARROW }, -#endif // (defined (__X__ )) && (wxLUA_USE_wxCursor) - -#if wxLUA_USE_wxCursor - { "wxCURSOR_HAND", wxCURSOR_HAND }, - { "wxCURSOR_IBEAM", wxCURSOR_IBEAM }, - { "wxCURSOR_LEFT_BUTTON", wxCURSOR_LEFT_BUTTON }, - { "wxCURSOR_MAGNIFIER", wxCURSOR_MAGNIFIER }, - { "wxCURSOR_MAX", wxCURSOR_MAX }, - { "wxCURSOR_MIDDLE_BUTTON", wxCURSOR_MIDDLE_BUTTON }, - { "wxCURSOR_NONE", wxCURSOR_NONE }, - { "wxCURSOR_NO_ENTRY", wxCURSOR_NO_ENTRY }, - { "wxCURSOR_PAINT_BRUSH", wxCURSOR_PAINT_BRUSH }, - { "wxCURSOR_PENCIL", wxCURSOR_PENCIL }, - { "wxCURSOR_POINT_LEFT", wxCURSOR_POINT_LEFT }, - { "wxCURSOR_POINT_RIGHT", wxCURSOR_POINT_RIGHT }, - { "wxCURSOR_QUESTION_ARROW", wxCURSOR_QUESTION_ARROW }, - { "wxCURSOR_RIGHT_ARROW", wxCURSOR_RIGHT_ARROW }, - { "wxCURSOR_RIGHT_BUTTON", wxCURSOR_RIGHT_BUTTON }, - { "wxCURSOR_SIZENESW", wxCURSOR_SIZENESW }, - { "wxCURSOR_SIZENS", wxCURSOR_SIZENS }, - { "wxCURSOR_SIZENWSE", wxCURSOR_SIZENWSE }, - { "wxCURSOR_SIZEWE", wxCURSOR_SIZEWE }, - { "wxCURSOR_SIZING", wxCURSOR_SIZING }, - { "wxCURSOR_SPRAYCAN", wxCURSOR_SPRAYCAN }, - { "wxCURSOR_WAIT", wxCURSOR_WAIT }, - { "wxCURSOR_WATCH", wxCURSOR_WATCH }, -#endif // wxLUA_USE_wxCursor - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxCenter", wxCenter }, - { "wxCentre", wxCentre }, - { "wxCentreX", wxCentreX }, - { "wxCentreY", wxCentreY }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - { "wxDD_CHANGE_DIR", wxDD_CHANGE_DIR }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - -#if wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - { "wxDD_DEFAULT_STYLE", wxDD_DEFAULT_STYLE }, -#endif // wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - { "wxDD_DIR_MUST_EXIST", wxDD_DIR_MUST_EXIST }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - { "wxDD_NEW_DIR_BUTTON", wxDD_NEW_DIR_BUTTON }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - -#if wxLUA_USE_wxFont - { "wxDECORATIVE", wxDECORATIVE }, - { "wxDEFAULT", wxDEFAULT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxDialog - { "wxDEFAULT_DIALOG_STYLE", wxDEFAULT_DIALOG_STYLE }, -#endif // wxLUA_USE_wxDialog - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "wxDEFAULT_DOCMAN_FLAGS", wxDEFAULT_DOCMAN_FLAGS }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if wxLUA_USE_wxFrame - { "wxDEFAULT_FRAME_STYLE", wxDEFAULT_FRAME_STYLE }, -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - { "wxDEFAULT_TEMPLATE_FLAGS", wxDEFAULT_TEMPLATE_FLAGS }, -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { "wxDF_BITMAP", wxDF_BITMAP }, - { "wxDF_DIB", wxDF_DIB }, - { "wxDF_DIF", wxDF_DIF }, - { "wxDF_ENHMETAFILE", wxDF_ENHMETAFILE }, - { "wxDF_FILENAME", wxDF_FILENAME }, - { "wxDF_HTML", wxDF_HTML }, - { "wxDF_INVALID", wxDF_INVALID }, - { "wxDF_LOCALE", wxDF_LOCALE }, - { "wxDF_MAX", wxDF_MAX }, - { "wxDF_METAFILE", wxDF_METAFILE }, - { "wxDF_OEMTEXT", wxDF_OEMTEXT }, - { "wxDF_PALETTE", wxDF_PALETTE }, - { "wxDF_PENDATA", wxDF_PENDATA }, - { "wxDF_PRIVATE", wxDF_PRIVATE }, - { "wxDF_RIFF", wxDF_RIFF }, - { "wxDF_SYLK", wxDF_SYLK }, - { "wxDF_TEXT", wxDF_TEXT }, - { "wxDF_TIFF", wxDF_TIFF }, - { "wxDF_UNICODETEXT", wxDF_UNICODETEXT }, - { "wxDF_WAVE", wxDF_WAVE }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxDialog - { "wxDIALOG_EX_CONTEXTHELP", wxDIALOG_EX_CONTEXTHELP }, - { "wxDIALOG_NO_PARENT", wxDIALOG_NO_PARENT }, -#endif // wxLUA_USE_wxDialog - -#if wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - { "wxDIRCTRL_3D_INTERNAL", wxDIRCTRL_3D_INTERNAL }, - { "wxDIRCTRL_DIR_ONLY", wxDIRCTRL_DIR_ONLY }, - { "wxDIRCTRL_EDIT_LABELS", wxDIRCTRL_EDIT_LABELS }, - { "wxDIRCTRL_SELECT_FIRST", wxDIRCTRL_SELECT_FIRST }, - { "wxDIRCTRL_SHOW_FILTERS", wxDIRCTRL_SHOW_FILTERS }, -#endif // wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - { "wxDIRP_CHANGE_DIR", wxDIRP_CHANGE_DIR }, - { "wxDIRP_DEFAULT_STYLE", wxDIRP_DEFAULT_STYLE }, - { "wxDIRP_DIR_MUST_EXIST", wxDIRP_DIR_MUST_EXIST }, - { "wxDIRP_USE_TEXTCTRL", wxDIRP_USE_TEXTCTRL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - { "wxDOC_NEW", wxDOC_NEW }, - { "wxDOC_SILENT", wxDOC_SILENT }, -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxColourPenBrush - { "wxDOT", wxDOT }, - { "wxDOT_DASH", wxDOT_DASH }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxDOUBLE_BORDER", wxDOUBLE_BORDER }, - { "wxDOWN", wxDOWN }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - { "wxDP_ALLOWNONE", wxDP_ALLOWNONE }, - { "wxDP_DEFAULT", wxDP_DEFAULT }, - { "wxDP_DROPDOWN", wxDP_DROPDOWN }, - { "wxDP_SHOWCENTURY", wxDP_SHOWCENTURY }, - { "wxDP_SPIN", wxDP_SPIN }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxDUPLEX_HORIZONTAL", wxDUPLEX_HORIZONTAL }, - { "wxDUPLEX_SIMPLEX", wxDUPLEX_SIMPLEX }, - { "wxDUPLEX_VERTICAL", wxDUPLEX_VERTICAL }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxPointSizeRect - { "wxDefaultCoord", wxDefaultCoord }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "wxDragCancel", wxDragCancel }, - { "wxDragCopy", wxDragCopy }, - { "wxDragError", wxDragError }, - { "wxDragLink", wxDragLink }, - { "wxDragMove", wxDragMove }, - { "wxDragNone", wxDragNone }, - { "wxDrag_AllowMove", wxDrag_AllowMove }, - { "wxDrag_CopyOnly", wxDrag_CopyOnly }, - { "wxDrag_DefaultMove", wxDrag_DefaultMove }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - { "wxEAST", wxEAST }, - -#if wxLUA_USE_wxDC - { "wxEQUIV", wxEQUIV }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxProcess - { "wxEXEC_ASYNC", wxEXEC_ASYNC }, - { "wxEXEC_MAKE_GROUP_LEADER", wxEXEC_MAKE_GROUP_LEADER }, - { "wxEXEC_NODISABLE", wxEXEC_NODISABLE }, - { "wxEXEC_NOHIDE", wxEXEC_NOHIDE }, - { "wxEXEC_SYNC", wxEXEC_SYNC }, -#endif // wxLUA_USE_wxProcess - - { "wxEXPAND", wxEXPAND }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - { "wxEXTEND_LAST_ON_EACH_LINE", wxEXTEND_LAST_ON_EACH_LINE }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxColourPenBrush - { "wxFDIAGONAL_HATCH", wxFDIAGONAL_HATCH }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(2,8,0) - { "wxFD_CHANGE_DIR", wxFD_CHANGE_DIR }, - { "wxFD_DEFAULT_STYLE", wxFD_DEFAULT_STYLE }, - { "wxFD_FILE_MUST_EXIST", wxFD_FILE_MUST_EXIST }, - { "wxFD_MULTIPLE", wxFD_MULTIPLE }, - { "wxFD_OPEN", wxFD_OPEN }, - { "wxFD_OVERWRITE_PROMPT", wxFD_OVERWRITE_PROMPT }, - { "wxFD_PREVIEW", wxFD_PREVIEW }, - { "wxFD_SAVE", wxFD_SAVE }, -#endif // wxCHECK_VERSION(2,8,0) - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxFILE_MUST_EXIST", wxFILE_MUST_EXIST }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "wxFILTER_ALPHA", wxFILTER_ALPHA }, - { "wxFILTER_ALPHANUMERIC", wxFILTER_ALPHANUMERIC }, - { "wxFILTER_ASCII", wxFILTER_ASCII }, - { "wxFILTER_DIGITS", wxFILTER_DIGITS }, - { "wxFILTER_EMPTY", wxFILTER_EMPTY }, - { "wxFILTER_EXCLUDE_CHAR_LIST", wxFILTER_EXCLUDE_CHAR_LIST }, - { "wxFILTER_EXCLUDE_LIST", wxFILTER_EXCLUDE_LIST }, - { "wxFILTER_INCLUDE_CHAR_LIST", wxFILTER_INCLUDE_CHAR_LIST }, - { "wxFILTER_INCLUDE_LIST", wxFILTER_INCLUDE_LIST }, - { "wxFILTER_NONE", wxFILTER_NONE }, - { "wxFILTER_NUMERIC", wxFILTER_NUMERIC }, -#endif // (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(3,1,3)) - { "wxFILTER_SPACE", wxFILTER_SPACE }, - { "wxFILTER_XDIGITS", wxFILTER_XDIGITS }, -#endif // ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(3,1,3)) - -#if wxLUA_USE_wxFont - { "wxFIXED", wxFIXED }, -#endif // wxLUA_USE_wxFont - - { "wxFIXED_LENGTH", wxFIXED_LENGTH }, - -#if wxCHECK_VERSION(2,8,8) - { "wxFIXED_MINSIZE", wxFIXED_MINSIZE }, -#endif // wxCHECK_VERSION(2,8,8) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { "wxFLEX_GROWMODE_ALL", wxFLEX_GROWMODE_ALL }, - { "wxFLEX_GROWMODE_NONE", wxFLEX_GROWMODE_NONE }, - { "wxFLEX_GROWMODE_SPECIFIED", wxFLEX_GROWMODE_SPECIFIED }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxDC - { "wxFLOOD_BORDER", wxFLOOD_BORDER }, - { "wxFLOOD_SURFACE", wxFLOOD_SURFACE }, -#endif // wxLUA_USE_wxDC - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - { "wxFLP_CHANGE_DIR", wxFLP_CHANGE_DIR }, - { "wxFLP_DEFAULT_STYLE", wxFLP_DEFAULT_STYLE }, - { "wxFLP_FILE_MUST_EXIST", wxFLP_FILE_MUST_EXIST }, - { "wxFLP_OPEN", wxFLP_OPEN }, - { "wxFLP_OVERWRITE_PROMPT", wxFLP_OVERWRITE_PROMPT }, - { "wxFLP_SAVE", wxFLP_SAVE }, - { "wxFLP_USE_TEXTCTRL", wxFLP_USE_TEXTCTRL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - { "wxFNTP_DEFAULT_STYLE", wxFNTP_DEFAULT_STYLE }, - { "wxFNTP_FONTDESC_AS_LABEL", wxFNTP_FONTDESC_AS_LABEL }, - { "wxFNTP_MAXPOINT_SIZE", wxFNTP_MAXPOINT_SIZE }, - { "wxFNTP_USEFONT_FOR_LABEL", wxFNTP_USEFONT_FOR_LABEL }, - { "wxFNTP_USE_TEXTCTRL", wxFNTP_USE_TEXTCTRL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - -#if wxLUA_USE_wxFont - { "wxFONTFAMILY_DECORATIVE", wxFONTFAMILY_DECORATIVE }, - { "wxFONTFAMILY_DEFAULT", wxFONTFAMILY_DEFAULT }, - { "wxFONTFAMILY_MAX", wxFONTFAMILY_MAX }, - { "wxFONTFAMILY_MODERN", wxFONTFAMILY_MODERN }, - { "wxFONTFAMILY_ROMAN", wxFONTFAMILY_ROMAN }, - { "wxFONTFAMILY_SCRIPT", wxFONTFAMILY_SCRIPT }, - { "wxFONTFAMILY_SWISS", wxFONTFAMILY_SWISS }, - { "wxFONTFAMILY_TELETYPE", wxFONTFAMILY_TELETYPE }, - { "wxFONTFAMILY_UNKNOWN", wxFONTFAMILY_UNKNOWN }, - { "wxFONTFLAG_ANTIALIASED", wxFONTFLAG_ANTIALIASED }, - { "wxFONTFLAG_BOLD", wxFONTFLAG_BOLD }, - { "wxFONTFLAG_DEFAULT", wxFONTFLAG_DEFAULT }, - { "wxFONTFLAG_ITALIC", wxFONTFLAG_ITALIC }, - { "wxFONTFLAG_LIGHT", wxFONTFLAG_LIGHT }, - { "wxFONTFLAG_MASK", wxFONTFLAG_MASK }, - { "wxFONTFLAG_NOT_ANTIALIASED", wxFONTFLAG_NOT_ANTIALIASED }, - { "wxFONTFLAG_SLANT", wxFONTFLAG_SLANT }, - { "wxFONTFLAG_STRIKETHROUGH", wxFONTFLAG_STRIKETHROUGH }, - { "wxFONTFLAG_UNDERLINED", wxFONTFLAG_UNDERLINED }, -#endif // wxLUA_USE_wxFont - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont) - { "wxFONTSIZE_LARGE", wxFONTSIZE_LARGE }, - { "wxFONTSIZE_MEDIUM", wxFONTSIZE_MEDIUM }, - { "wxFONTSIZE_SMALL", wxFONTSIZE_SMALL }, - { "wxFONTSIZE_XX_LARGE", wxFONTSIZE_XX_LARGE }, - { "wxFONTSIZE_XX_SMALL", wxFONTSIZE_XX_SMALL }, - { "wxFONTSIZE_X_LARGE", wxFONTSIZE_X_LARGE }, - { "wxFONTSIZE_X_SMALL", wxFONTSIZE_X_SMALL }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont) - -#if wxLUA_USE_wxFont - { "wxFONTSTYLE_ITALIC", wxFONTSTYLE_ITALIC }, - { "wxFONTSTYLE_MAX", wxFONTSTYLE_MAX }, - { "wxFONTSTYLE_NORMAL", wxFONTSTYLE_NORMAL }, - { "wxFONTSTYLE_SLANT", wxFONTSTYLE_SLANT }, - { "wxFONTWEIGHT_BOLD", wxFONTWEIGHT_BOLD }, -#endif // wxLUA_USE_wxFont - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "wxFONTWEIGHT_EXTRABOLD", wxFONTWEIGHT_EXTRABOLD }, - { "wxFONTWEIGHT_EXTRAHEAVY", wxFONTWEIGHT_EXTRAHEAVY }, - { "wxFONTWEIGHT_EXTRALIGHT", wxFONTWEIGHT_EXTRALIGHT }, - { "wxFONTWEIGHT_HEAVY", wxFONTWEIGHT_HEAVY }, - { "wxFONTWEIGHT_INVALID", wxFONTWEIGHT_INVALID }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if wxLUA_USE_wxFont - { "wxFONTWEIGHT_LIGHT", wxFONTWEIGHT_LIGHT }, - { "wxFONTWEIGHT_MAX", wxFONTWEIGHT_MAX }, -#endif // wxLUA_USE_wxFont - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "wxFONTWEIGHT_MEDIUM", wxFONTWEIGHT_MEDIUM }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if wxLUA_USE_wxFont - { "wxFONTWEIGHT_NORMAL", wxFONTWEIGHT_NORMAL }, -#endif // wxLUA_USE_wxFont - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "wxFONTWEIGHT_SEMIBOLD", wxFONTWEIGHT_SEMIBOLD }, - { "wxFONTWEIGHT_THIN", wxFONTWEIGHT_THIN }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - - { "wxFORWARD", wxFORWARD }, - -#if wxLUA_USE_wxFrame - { "wxFRAME_EX_CONTEXTHELP", wxFRAME_EX_CONTEXTHELP }, -#endif // wxLUA_USE_wxFrame - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxFrame) - { "wxFRAME_EX_METAL", wxFRAME_EX_METAL }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxFrame) - -#if wxLUA_USE_wxFrame - { "wxFRAME_FLOAT_ON_PARENT", wxFRAME_FLOAT_ON_PARENT }, - { "wxFRAME_NO_TASKBAR", wxFRAME_NO_TASKBAR }, -#endif // wxLUA_USE_wxFrame - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxFrame) - { "wxFRAME_SHAPED", wxFRAME_SHAPED }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxFrame) - -#if wxLUA_USE_wxFrame - { "wxFRAME_TOOL_WINDOW", wxFRAME_TOOL_WINDOW }, -#endif // wxLUA_USE_wxFrame - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - { "wxFR_DOWN", wxFR_DOWN }, - { "wxFR_MATCHCASE", wxFR_MATCHCASE }, - { "wxFR_NOMATCHCASE", wxFR_NOMATCHCASE }, - { "wxFR_NOUPDOWN", wxFR_NOUPDOWN }, - { "wxFR_NOWHOLEWORD", wxFR_NOWHOLEWORD }, - { "wxFR_REPLACEDIALOG", wxFR_REPLACEDIALOG }, - { "wxFR_WHOLEWORD", wxFR_WHOLEWORD }, -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - { "wxFULLSCREEN_ALL", wxFULLSCREEN_ALL }, - { "wxFULLSCREEN_NOBORDER", wxFULLSCREEN_NOBORDER }, - { "wxFULLSCREEN_NOCAPTION", wxFULLSCREEN_NOCAPTION }, - { "wxFULLSCREEN_NOMENUBAR", wxFULLSCREEN_NOMENUBAR }, - { "wxFULLSCREEN_NOSTATUSBAR", wxFULLSCREEN_NOSTATUSBAR }, - { "wxFULLSCREEN_NOTOOLBAR", wxFULLSCREEN_NOTOOLBAR }, -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - - { "wxFULL_REPAINT_ON_RESIZE", wxFULL_REPAINT_ON_RESIZE }, - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - { "wxGA_HORIZONTAL", wxGA_HORIZONTAL }, -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "wxGA_PROGRESS", wxGA_PROGRESS }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -#if ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "wxGA_PROGRESSBAR", wxGA_PROGRESSBAR }, -#endif // ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - { "wxGA_SMOOTH", wxGA_SMOOTH }, -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "wxGA_TEXT", wxGA_TEXT }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - { "wxGA_VERTICAL", wxGA_VERTICAL }, -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - { "wxGRADIENT_LINEAR", wxGRADIENT_LINEAR }, - { "wxGRADIENT_NONE", wxGRADIENT_NONE }, - { "wxGRADIENT_RADIAL", wxGRADIENT_RADIAL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - - { "wxGROW", wxGROW }, - -#if (defined(wxHAS_NATIVE_RENDERER)) && (wxLUA_USE_wxRenderer) - { "wxHAS_NATIVE_RENDERER", 1 }, -#endif // (defined(wxHAS_NATIVE_RENDERER)) && (wxLUA_USE_wxRenderer) - -#if (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) - { "wxHAS_REGION_COMBINE", 1 }, -#endif // (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) - -#if wxLUA_USE_wxRenderer - { "wxHDR_SORT_ICON_DOWN", wxHDR_SORT_ICON_DOWN }, - { "wxHDR_SORT_ICON_NONE", wxHDR_SORT_ICON_NONE }, - { "wxHDR_SORT_ICON_UP", wxHDR_SORT_ICON_UP }, -#endif // wxLUA_USE_wxRenderer - - { "wxHELP", wxHELP }, - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - { "wxHELP_NETSCAPE", wxHELP_NETSCAPE }, - { "wxHELP_SEARCH_ALL", wxHELP_SEARCH_ALL }, - { "wxHELP_SEARCH_INDEX", wxHELP_SEARCH_INDEX }, -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if ((defined(WXWIN_COMPATIBILITY_2_4) && WXWIN_COMPATIBILITY_2_4)) && ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) - { "wxHIDE_READONLY", wxHIDE_READONLY }, -#endif // ((defined(WXWIN_COMPATIBILITY_2_4) && WXWIN_COMPATIBILITY_2_4)) && ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) - - { "wxHORIZONTAL", wxHORIZONTAL }, - -#if wxLUA_USE_wxColourPenBrush - { "wxHORIZONTAL_HATCH", wxHORIZONTAL_HATCH }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxHSCROLL", wxHSCROLL }, - -#if wxCHECK_VERSION(3,0,0) - { "wxHT_MAX", wxHT_MAX }, - { "wxHT_NOWHERE", wxHT_NOWHERE }, - { "wxHT_SCROLLBAR_ARROW_LINE_1", wxHT_SCROLLBAR_ARROW_LINE_1 }, - { "wxHT_SCROLLBAR_ARROW_LINE_2", wxHT_SCROLLBAR_ARROW_LINE_2 }, - { "wxHT_SCROLLBAR_ARROW_PAGE_1", wxHT_SCROLLBAR_ARROW_PAGE_1 }, - { "wxHT_SCROLLBAR_ARROW_PAGE_2", wxHT_SCROLLBAR_ARROW_PAGE_2 }, - { "wxHT_SCROLLBAR_BAR_1", wxHT_SCROLLBAR_BAR_1 }, - { "wxHT_SCROLLBAR_BAR_2", wxHT_SCROLLBAR_BAR_2 }, - { "wxHT_SCROLLBAR_FIRST", wxHT_SCROLLBAR_FIRST }, - { "wxHT_SCROLLBAR_LAST", wxHT_SCROLLBAR_LAST }, - { "wxHT_SCROLLBAR_THUMB", wxHT_SCROLLBAR_THUMB }, - { "wxHT_WINDOW_CORNER", wxHT_WINDOW_CORNER }, - { "wxHT_WINDOW_HORZ_SCROLLBAR", wxHT_WINDOW_HORZ_SCROLLBAR }, - { "wxHT_WINDOW_INSIDE", wxHT_WINDOW_INSIDE }, - { "wxHT_WINDOW_OUTSIDE", wxHT_WINDOW_OUTSIDE }, - { "wxHT_WINDOW_VERT_SCROLLBAR", wxHT_WINDOW_VERT_SCROLLBAR }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxHeight", wxHeight }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxFrame - { "wxICONIZE", wxICONIZE }, -#endif // wxLUA_USE_wxFrame - - { "wxICON_ASTERISK", wxICON_ASTERISK }, - { "wxICON_ERROR", wxICON_ERROR }, - { "wxICON_EXCLAMATION", wxICON_EXCLAMATION }, - { "wxICON_HAND", wxICON_HAND }, - { "wxICON_INFORMATION", wxICON_INFORMATION }, - { "wxICON_MASK", wxICON_MASK }, - -#if wxCHECK_VERSION(3,0,0) - { "wxICON_NONE", wxICON_NONE }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxICON_QUESTION", wxICON_QUESTION }, - { "wxICON_STOP", wxICON_STOP }, - { "wxICON_WARNING", wxICON_WARNING }, - { "wxIDLE_PROCESS_ALL", wxIDLE_PROCESS_ALL }, - { "wxIDLE_PROCESS_SPECIFIED", wxIDLE_PROCESS_SPECIFIED }, - -#if wxLUA_USE_wxID_XXX - { "wxID_ABORT", wxID_ABORT }, - { "wxID_ABOUT", wxID_ABOUT }, - { "wxID_ADD", wxID_ADD }, - { "wxID_ANY", wxID_ANY }, - { "wxID_APPLY", wxID_APPLY }, - { "wxID_BACKWARD", wxID_BACKWARD }, - { "wxID_BOLD", wxID_BOLD }, - { "wxID_CANCEL", wxID_CANCEL }, - { "wxID_CLEAR", wxID_CLEAR }, - { "wxID_CLOSE", wxID_CLOSE }, - { "wxID_CLOSE_ALL", wxID_CLOSE_ALL }, - { "wxID_CLOSE_FRAME", wxID_CLOSE_FRAME }, - { "wxID_CONTEXT_HELP", wxID_CONTEXT_HELP }, - { "wxID_COPY", wxID_COPY }, - { "wxID_CUT", wxID_CUT }, - { "wxID_DEFAULT", wxID_DEFAULT }, - { "wxID_DELETE", wxID_DELETE }, - { "wxID_DOWN", wxID_DOWN }, - { "wxID_DUPLICATE", wxID_DUPLICATE }, -#endif // wxLUA_USE_wxID_XXX - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - { "wxID_EDIT", wxID_EDIT }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - -#if wxLUA_USE_wxID_XXX - { "wxID_EXIT", wxID_EXIT }, -#endif // wxLUA_USE_wxID_XXX - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - { "wxID_FILE", wxID_FILE }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - -#if wxLUA_USE_wxID_XXX - { "wxID_FILE1", wxID_FILE1 }, - { "wxID_FILE2", wxID_FILE2 }, - { "wxID_FILE3", wxID_FILE3 }, - { "wxID_FILE4", wxID_FILE4 }, - { "wxID_FILE5", wxID_FILE5 }, - { "wxID_FILE6", wxID_FILE6 }, - { "wxID_FILE7", wxID_FILE7 }, - { "wxID_FILE8", wxID_FILE8 }, - { "wxID_FILE9", wxID_FILE9 }, - { "wxID_FIND", wxID_FIND }, - { "wxID_FORWARD", wxID_FORWARD }, - { "wxID_HELP", wxID_HELP }, - { "wxID_HELP_COMMANDS", wxID_HELP_COMMANDS }, - { "wxID_HELP_CONTENTS", wxID_HELP_CONTENTS }, - { "wxID_HELP_CONTEXT", wxID_HELP_CONTEXT }, -#endif // wxLUA_USE_wxID_XXX - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - { "wxID_HELP_INDEX", wxID_HELP_INDEX }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - -#if wxLUA_USE_wxID_XXX - { "wxID_HELP_PROCEDURES", wxID_HELP_PROCEDURES }, -#endif // wxLUA_USE_wxID_XXX - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - { "wxID_HELP_SEARCH", wxID_HELP_SEARCH }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - -#if wxLUA_USE_wxID_XXX - { "wxID_HIGHEST", wxID_HIGHEST }, - { "wxID_HOME", wxID_HOME }, - { "wxID_ICONIZE_FRAME", wxID_ICONIZE_FRAME }, - { "wxID_IGNORE", wxID_IGNORE }, - { "wxID_INDENT", wxID_INDENT }, - { "wxID_INDEX", wxID_INDEX }, - { "wxID_ITALIC", wxID_ITALIC }, - { "wxID_JUSTIFY_CENTER", wxID_JUSTIFY_CENTER }, - { "wxID_JUSTIFY_FILL", wxID_JUSTIFY_FILL }, - { "wxID_JUSTIFY_LEFT", wxID_JUSTIFY_LEFT }, - { "wxID_JUSTIFY_RIGHT", wxID_JUSTIFY_RIGHT }, - { "wxID_LOWEST", wxID_LOWEST }, - { "wxID_MAXIMIZE_FRAME", wxID_MAXIMIZE_FRAME }, - { "wxID_MORE", wxID_MORE }, - { "wxID_MOVE_FRAME", wxID_MOVE_FRAME }, - { "wxID_NEW", wxID_NEW }, - { "wxID_NO", wxID_NO }, - { "wxID_NONE", wxID_NONE }, - { "wxID_NOTOALL", wxID_NOTOALL }, - { "wxID_OK", wxID_OK }, - { "wxID_OPEN", wxID_OPEN }, -#endif // wxLUA_USE_wxID_XXX - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - { "wxID_PAGE_SETUP", wxID_PAGE_SETUP }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxID_XXX) - -#if wxLUA_USE_wxID_XXX - { "wxID_PASTE", wxID_PASTE }, - { "wxID_PREFERENCES", wxID_PREFERENCES }, - { "wxID_PREVIEW", wxID_PREVIEW }, -#endif // wxLUA_USE_wxID_XXX - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxID_PREVIEW_CLOSE", wxID_PREVIEW_CLOSE }, - { "wxID_PREVIEW_FIRST", wxID_PREVIEW_FIRST }, - { "wxID_PREVIEW_GOTO", wxID_PREVIEW_GOTO }, - { "wxID_PREVIEW_LAST", wxID_PREVIEW_LAST }, - { "wxID_PREVIEW_NEXT", wxID_PREVIEW_NEXT }, - { "wxID_PREVIEW_PREVIOUS", wxID_PREVIEW_PREVIOUS }, - { "wxID_PREVIEW_PRINT", wxID_PREVIEW_PRINT }, - { "wxID_PREVIEW_ZOOM", wxID_PREVIEW_ZOOM }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxID_XXX - { "wxID_PRINT", wxID_PRINT }, - { "wxID_PRINT_SETUP", wxID_PRINT_SETUP }, - { "wxID_PROPERTIES", wxID_PROPERTIES }, - { "wxID_REDO", wxID_REDO }, - { "wxID_REFRESH", wxID_REFRESH }, - { "wxID_REMOVE", wxID_REMOVE }, - { "wxID_REPLACE", wxID_REPLACE }, - { "wxID_REPLACE_ALL", wxID_REPLACE_ALL }, - { "wxID_RESET", wxID_RESET }, - { "wxID_RESIZE_FRAME", wxID_RESIZE_FRAME }, - { "wxID_RESTORE_FRAME", wxID_RESTORE_FRAME }, - { "wxID_RETRY", wxID_RETRY }, - { "wxID_REVERT", wxID_REVERT }, - { "wxID_REVERT_TO_SAVED", wxID_REVERT_TO_SAVED }, - { "wxID_SAVE", wxID_SAVE }, - { "wxID_SAVEAS", wxID_SAVEAS }, - { "wxID_SELECTALL", wxID_SELECTALL }, - { "wxID_SEPARATOR", wxID_SEPARATOR }, - { "wxID_SETUP", wxID_SETUP }, - { "wxID_STATIC", wxID_STATIC }, - { "wxID_STOP", wxID_STOP }, - { "wxID_SYSTEM_MENU", wxID_SYSTEM_MENU }, - { "wxID_UNDELETE", wxID_UNDELETE }, - { "wxID_UNDERLINE", wxID_UNDERLINE }, - { "wxID_UNDO", wxID_UNDO }, - { "wxID_UNINDENT", wxID_UNINDENT }, - { "wxID_UP", wxID_UP }, - { "wxID_VIEW_DETAILS", wxID_VIEW_DETAILS }, - { "wxID_VIEW_LARGEICONS", wxID_VIEW_LARGEICONS }, - { "wxID_VIEW_LIST", wxID_VIEW_LIST }, - { "wxID_VIEW_SMALLICONS", wxID_VIEW_SMALLICONS }, - { "wxID_VIEW_SORTDATE", wxID_VIEW_SORTDATE }, - { "wxID_VIEW_SORTNAME", wxID_VIEW_SORTNAME }, - { "wxID_VIEW_SORTSIZE", wxID_VIEW_SORTSIZE }, - { "wxID_VIEW_SORTTYPE", wxID_VIEW_SORTTYPE }, - { "wxID_YES", wxID_YES }, - { "wxID_YESTOALL", wxID_YESTOALL }, - { "wxID_ZOOM_100", wxID_ZOOM_100 }, - { "wxID_ZOOM_FIT", wxID_ZOOM_FIT }, - { "wxID_ZOOM_IN", wxID_ZOOM_IN }, - { "wxID_ZOOM_OUT", wxID_ZOOM_OUT }, -#endif // wxLUA_USE_wxID_XXX - -#if wxLUA_USE_wxImageList - { "wxIMAGELIST_DRAW_FOCUSED", wxIMAGELIST_DRAW_FOCUSED }, - { "wxIMAGELIST_DRAW_NORMAL", wxIMAGELIST_DRAW_NORMAL }, - { "wxIMAGELIST_DRAW_SELECTED", wxIMAGELIST_DRAW_SELECTED }, - { "wxIMAGELIST_DRAW_TRANSPARENT", wxIMAGELIST_DRAW_TRANSPARENT }, -#endif // wxLUA_USE_wxImageList - - { "wxIMAGE_ALPHA_OPAQUE", wxIMAGE_ALPHA_OPAQUE }, - { "wxIMAGE_ALPHA_THRESHOLD", wxIMAGE_ALPHA_THRESHOLD }, - { "wxIMAGE_ALPHA_TRANSPARENT", wxIMAGE_ALPHA_TRANSPARENT }, - -#if wxLUA_USE_wxImageList - { "wxIMAGE_LIST_NORMAL", wxIMAGE_LIST_NORMAL }, - { "wxIMAGE_LIST_SMALL", wxIMAGE_LIST_SMALL }, - { "wxIMAGE_LIST_STATE", wxIMAGE_LIST_STATE }, -#endif // wxLUA_USE_wxImageList - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "wxIMAGE_QUALITY_BICUBIC", wxIMAGE_QUALITY_BICUBIC }, - { "wxIMAGE_QUALITY_BILINEAR", wxIMAGE_QUALITY_BILINEAR }, - { "wxIMAGE_QUALITY_BOX_AVERAGE", wxIMAGE_QUALITY_BOX_AVERAGE }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "wxIMAGE_QUALITY_HIGH", wxIMAGE_QUALITY_HIGH }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "wxIMAGE_QUALITY_NEAREST", wxIMAGE_QUALITY_NEAREST }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "wxIMAGE_QUALITY_NORMAL", wxIMAGE_QUALITY_NORMAL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxIMAGE_RESOLUTION_CM", wxIMAGE_RESOLUTION_CM }, - { "wxIMAGE_RESOLUTION_INCHES", wxIMAGE_RESOLUTION_INCHES }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxUSE_GRAPHICS_CONTEXT - { "wxINTERPOLATION_BEST", wxINTERPOLATION_BEST }, - { "wxINTERPOLATION_DEFAULT", wxINTERPOLATION_DEFAULT }, - { "wxINTERPOLATION_FAST", wxINTERPOLATION_FAST }, - { "wxINTERPOLATION_GOOD", wxINTERPOLATION_GOOD }, - { "wxINTERPOLATION_NONE", wxINTERPOLATION_NONE }, -#endif // wxUSE_GRAPHICS_CONTEXT - -#if wxLUA_USE_wxDC - { "wxINVERT", wxINVERT }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxFont - { "wxITALIC", wxITALIC }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - { "wxITEM_CHECK", wxITEM_CHECK }, - { "wxITEM_MAX", wxITEM_MAX }, - { "wxITEM_NORMAL", wxITEM_NORMAL }, - { "wxITEM_RADIO", wxITEM_RADIO }, - { "wxITEM_SEPARATOR", wxITEM_SEPARATOR }, -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if wxLUA_USE_wxRegion - { "wxInRegion", wxInRegion }, -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - { "wxInside", wxInside }, -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxInvalidTextCoord", wxInvalidTextCoord }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxLUA_USE_wxColourPenBrush - { "wxJOIN_BEVEL", wxJOIN_BEVEL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "wxJOIN_INVALID", wxJOIN_INVALID }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxLUA_USE_wxColourPenBrush - { "wxJOIN_MITER", wxJOIN_MITER }, - { "wxJOIN_ROUND", wxJOIN_ROUND }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxProcess - { "wxKILL_ACCESS_DENIED", wxKILL_ACCESS_DENIED }, - { "wxKILL_BAD_SIGNAL", wxKILL_BAD_SIGNAL }, - { "wxKILL_CHILDREN", wxKILL_CHILDREN }, - { "wxKILL_ERROR", wxKILL_ERROR }, - { "wxKILL_NOCHILDREN", wxKILL_NOCHILDREN }, - { "wxKILL_NO_PROCESS", wxKILL_NO_PROCESS }, - { "wxKILL_OK", wxKILL_OK }, -#endif // wxLUA_USE_wxProcess - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxLANDSCAPE", wxLANDSCAPE }, -#elif wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxLANDSCAPE", wxLANDSCAPE }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { "wxLB_ALIGN_MASK", wxLB_ALIGN_MASK }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - { "wxLB_ALWAYS_SB", wxLB_ALWAYS_SB }, -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { "wxLB_BOTTOM", wxLB_BOTTOM }, - { "wxLB_DEFAULT", wxLB_DEFAULT }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - { "wxLB_EXTENDED", wxLB_EXTENDED }, - { "wxLB_HSCROLL", wxLB_HSCROLL }, -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { "wxLB_LEFT", wxLB_LEFT }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - { "wxLB_MULTIPLE", wxLB_MULTIPLE }, - { "wxLB_NEEDED_SB", wxLB_NEEDED_SB }, - { "wxLB_OWNERDRAW", wxLB_OWNERDRAW }, -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { "wxLB_RIGHT", wxLB_RIGHT }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - { "wxLB_SINGLE", wxLB_SINGLE }, - { "wxLB_SORT", wxLB_SORT }, -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { "wxLB_TOP", wxLB_TOP }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { "wxLC_ALIGN_LEFT", wxLC_ALIGN_LEFT }, - { "wxLC_ALIGN_TOP", wxLC_ALIGN_TOP }, - { "wxLC_AUTOARRANGE", wxLC_AUTOARRANGE }, - { "wxLC_EDIT_LABELS", wxLC_EDIT_LABELS }, - { "wxLC_HRULES", wxLC_HRULES }, - { "wxLC_ICON", wxLC_ICON }, - { "wxLC_LIST", wxLC_LIST }, - { "wxLC_MASK_ALIGN", wxLC_MASK_ALIGN }, - { "wxLC_MASK_SORT", wxLC_MASK_SORT }, - { "wxLC_MASK_TYPE", wxLC_MASK_TYPE }, - { "wxLC_NO_HEADER", wxLC_NO_HEADER }, - { "wxLC_NO_SORT_HEADER", wxLC_NO_SORT_HEADER }, - { "wxLC_REPORT", wxLC_REPORT }, - { "wxLC_SINGLE_SEL", wxLC_SINGLE_SEL }, - { "wxLC_SMALL_ICON", wxLC_SMALL_ICON }, - { "wxLC_SORT_ASCENDING", wxLC_SORT_ASCENDING }, - { "wxLC_SORT_DESCENDING", wxLC_SORT_DESCENDING }, - { "wxLC_VIRTUAL", wxLC_VIRTUAL }, - { "wxLC_VRULES", wxLC_VRULES }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - { "wxLEFT", wxLEFT }, - -#if wxLUA_USE_wxFont - { "wxLIGHT", wxLIGHT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { "wxLIST_ALIGN_DEFAULT", wxLIST_ALIGN_DEFAULT }, - { "wxLIST_ALIGN_LEFT", wxLIST_ALIGN_LEFT }, - { "wxLIST_ALIGN_SNAP_TO_GRID", wxLIST_ALIGN_SNAP_TO_GRID }, - { "wxLIST_ALIGN_TOP", wxLIST_ALIGN_TOP }, - { "wxLIST_AUTOSIZE", wxLIST_AUTOSIZE }, - { "wxLIST_AUTOSIZE_USEHEADER", wxLIST_AUTOSIZE_USEHEADER }, - { "wxLIST_FIND_DOWN", wxLIST_FIND_DOWN }, - { "wxLIST_FIND_LEFT", wxLIST_FIND_LEFT }, - { "wxLIST_FIND_RIGHT", wxLIST_FIND_RIGHT }, - { "wxLIST_FIND_UP", wxLIST_FIND_UP }, - { "wxLIST_FORMAT_CENTER", wxLIST_FORMAT_CENTER }, - { "wxLIST_FORMAT_CENTRE", wxLIST_FORMAT_CENTRE }, - { "wxLIST_FORMAT_LEFT", wxLIST_FORMAT_LEFT }, - { "wxLIST_FORMAT_RIGHT", wxLIST_FORMAT_RIGHT }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxLIST_GETSUBITEMRECT_WHOLEITEM", wxLIST_GETSUBITEMRECT_WHOLEITEM }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { "wxLIST_HITTEST_ABOVE", wxLIST_HITTEST_ABOVE }, - { "wxLIST_HITTEST_BELOW", wxLIST_HITTEST_BELOW }, - { "wxLIST_HITTEST_NOWHERE", wxLIST_HITTEST_NOWHERE }, - { "wxLIST_HITTEST_ONITEM", wxLIST_HITTEST_ONITEM }, - { "wxLIST_HITTEST_ONITEMICON", wxLIST_HITTEST_ONITEMICON }, - { "wxLIST_HITTEST_ONITEMLABEL", wxLIST_HITTEST_ONITEMLABEL }, - { "wxLIST_HITTEST_ONITEMRIGHT", wxLIST_HITTEST_ONITEMRIGHT }, - { "wxLIST_HITTEST_ONITEMSTATEICON", wxLIST_HITTEST_ONITEMSTATEICON }, - { "wxLIST_HITTEST_TOLEFT", wxLIST_HITTEST_TOLEFT }, - { "wxLIST_HITTEST_TORIGHT", wxLIST_HITTEST_TORIGHT }, - { "wxLIST_MASK_DATA", wxLIST_MASK_DATA }, - { "wxLIST_MASK_FORMAT", wxLIST_MASK_FORMAT }, - { "wxLIST_MASK_IMAGE", wxLIST_MASK_IMAGE }, - { "wxLIST_MASK_STATE", wxLIST_MASK_STATE }, - { "wxLIST_MASK_TEXT", wxLIST_MASK_TEXT }, - { "wxLIST_MASK_WIDTH", wxLIST_MASK_WIDTH }, - { "wxLIST_NEXT_ABOVE", wxLIST_NEXT_ABOVE }, - { "wxLIST_NEXT_ALL", wxLIST_NEXT_ALL }, - { "wxLIST_NEXT_BELOW", wxLIST_NEXT_BELOW }, - { "wxLIST_NEXT_LEFT", wxLIST_NEXT_LEFT }, - { "wxLIST_NEXT_RIGHT", wxLIST_NEXT_RIGHT }, - { "wxLIST_RECT_BOUNDS", wxLIST_RECT_BOUNDS }, - { "wxLIST_RECT_ICON", wxLIST_RECT_ICON }, - { "wxLIST_RECT_LABEL", wxLIST_RECT_LABEL }, - { "wxLIST_SET_ITEM", wxLIST_SET_ITEM }, - { "wxLIST_STATE_CUT", wxLIST_STATE_CUT }, - { "wxLIST_STATE_DONTCARE", wxLIST_STATE_DONTCARE }, - { "wxLIST_STATE_DROPHILITED", wxLIST_STATE_DROPHILITED }, - { "wxLIST_STATE_FOCUSED", wxLIST_STATE_FOCUSED }, - { "wxLIST_STATE_SELECTED", wxLIST_STATE_SELECTED }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if wxLUA_USE_wxStaticLine && wxUSE_STATLINE - { "wxLI_HORIZONTAL", wxLI_HORIZONTAL }, - { "wxLI_VERTICAL", wxLI_VERTICAL }, -#endif // wxLUA_USE_wxStaticLine && wxUSE_STATLINE - -#if wxLUA_USE_wxColourPenBrush - { "wxLONG_DASH", wxLONG_DASH }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxLeft", wxLeft }, - { "wxLeftOf", wxLeftOf }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxFrame - { "wxMAXIMIZE", wxMAXIMIZE }, - { "wxMAXIMIZE_BOX", wxMAXIMIZE_BOX }, -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - { "wxMB_DOCKABLE", wxMB_DOCKABLE }, - { "wxMENU_TEAROFF", wxMENU_TEAROFF }, -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if wxLUA_USE_wxFrame - { "wxMINIMIZE", wxMINIMIZE }, - { "wxMINIMIZE_BOX", wxMINIMIZE_BOX }, -#endif // wxLUA_USE_wxFrame - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - { "wxMM_ANISOTROPIC", wxMM_ANISOTROPIC }, - { "wxMM_HIENGLISH", wxMM_HIENGLISH }, - { "wxMM_HIMETRIC", wxMM_HIMETRIC }, - { "wxMM_ISOTROPIC", wxMM_ISOTROPIC }, - { "wxMM_LOENGLISH", wxMM_LOENGLISH }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - -#if wxLUA_USE_wxDC - { "wxMM_LOMETRIC", wxMM_LOMETRIC }, - { "wxMM_METRIC", wxMM_METRIC }, - { "wxMM_POINTS", wxMM_POINTS }, - { "wxMM_TEXT", wxMM_TEXT }, - { "wxMM_TWIPS", wxMM_TWIPS }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxFont - { "wxMODERN", wxMODERN }, -#endif // wxLUA_USE_wxFont - - { "wxMOD_ALL", wxMOD_ALL }, - { "wxMOD_ALT", wxMOD_ALT }, - { "wxMOD_ALTGR", wxMOD_ALTGR }, - { "wxMOD_CMD", wxMOD_CMD }, - { "wxMOD_CONTROL", wxMOD_CONTROL }, - { "wxMOD_META", wxMOD_META }, - { "wxMOD_NONE", wxMOD_NONE }, - -#if wxCHECK_VERSION(3,0,0) - { "wxMOD_RAW_CONTROL", wxMOD_RAW_CONTROL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "wxMOD_SHIFT", wxMOD_SHIFT }, - { "wxMOD_WIN", wxMOD_WIN }, - { "wxMORE", wxMORE }, - { "wxMOUSE_BTN_ANY", wxMOUSE_BTN_ANY }, - { "wxMOUSE_BTN_LEFT", wxMOUSE_BTN_LEFT }, - { "wxMOUSE_BTN_MIDDLE", wxMOUSE_BTN_MIDDLE }, - { "wxMOUSE_BTN_NONE", wxMOUSE_BTN_NONE }, - { "wxMOUSE_BTN_RIGHT", wxMOUSE_BTN_RIGHT }, - -#if wxCHECK_VERSION(2,9,4) - { "wxMOUSE_WHEEL_HORIZONTAL", wxMOUSE_WHEEL_HORIZONTAL }, - { "wxMOUSE_WHEEL_VERTICAL", wxMOUSE_WHEEL_VERTICAL }, -#endif // wxCHECK_VERSION(2,9,4) - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxMULTIPLE", wxMULTIPLE }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxDC - { "wxNAND", wxNAND }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - { "wxNB_BOTTOM", wxNB_BOTTOM }, - { "wxNB_FIXEDWIDTH", wxNB_FIXEDWIDTH }, - { "wxNB_HITTEST_NOWHERE", wxNB_HITTEST_NOWHERE }, - { "wxNB_HITTEST_ONICON", wxNB_HITTEST_ONICON }, - { "wxNB_HITTEST_ONITEM", wxNB_HITTEST_ONITEM }, - { "wxNB_HITTEST_ONLABEL", wxNB_HITTEST_ONLABEL }, - { "wxNB_LEFT", wxNB_LEFT }, - { "wxNB_MULTILINE", wxNB_MULTILINE }, - { "wxNB_NOPAGETHEME", wxNB_NOPAGETHEME }, - { "wxNB_RIGHT", wxNB_RIGHT }, - { "wxNB_TOP", wxNB_TOP }, -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - - { "wxNO", wxNO }, - -#if wxLUA_USE_wxDC - { "wxNOR", wxNOR }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxFont - { "wxNORMAL", wxNORMAL }, -#endif // wxLUA_USE_wxFont - - { "wxNORTH", wxNORTH }, - { "wxNO_BORDER", wxNO_BORDER }, - { "wxNO_DEFAULT", wxNO_DEFAULT }, - { "wxNO_FULL_REPAINT_ON_RESIZE", wxNO_FULL_REPAINT_ON_RESIZE }, - -#if wxLUA_USE_wxDC - { "wxNO_OP", wxNO_OP }, - { "wxODDEVEN_RULE", wxODDEVEN_RULE }, -#endif // wxLUA_USE_wxDC - - { "wxOK", wxOK }, - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxOPEN", wxOPEN }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxDC - { "wxOR", wxOR }, - { "wxOR_INVERT", wxOR_INVERT }, - { "wxOR_REVERSE", wxOR_REVERSE }, -#endif // wxLUA_USE_wxDC - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxOVERWRITE_PROMPT", wxOVERWRITE_PROMPT }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - { "wxOutBottom", wxOutBottom }, - { "wxOutLeft", wxOutLeft }, -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxOutOfRangeTextCoord", wxOutOfRangeTextCoord }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxLUA_USE_wxRegion - { "wxOutRegion", wxOutRegion }, -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - { "wxOutRight", wxOutRight }, - { "wxOutTop", wxOutTop }, -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxPAPER_10X11", wxPAPER_10X11 }, - { "wxPAPER_10X14", wxPAPER_10X14 }, - { "wxPAPER_11X17", wxPAPER_11X17 }, - { "wxPAPER_12X11", wxPAPER_12X11 }, - { "wxPAPER_15X11", wxPAPER_15X11 }, - { "wxPAPER_9X11", wxPAPER_9X11 }, - { "wxPAPER_A2", wxPAPER_A2 }, - { "wxPAPER_A3", wxPAPER_A3 }, - { "wxPAPER_A3_EXTRA", wxPAPER_A3_EXTRA }, - { "wxPAPER_A3_EXTRA_TRANSVERSE", wxPAPER_A3_EXTRA_TRANSVERSE }, - { "wxPAPER_A3_ROTATED", wxPAPER_A3_ROTATED }, - { "wxPAPER_A3_TRANSVERSE", wxPAPER_A3_TRANSVERSE }, - { "wxPAPER_A4", wxPAPER_A4 }, - { "wxPAPER_A4SMALL", wxPAPER_A4SMALL }, - { "wxPAPER_A4_EXTRA", wxPAPER_A4_EXTRA }, - { "wxPAPER_A4_PLUS", wxPAPER_A4_PLUS }, - { "wxPAPER_A4_ROTATED", wxPAPER_A4_ROTATED }, - { "wxPAPER_A4_TRANSVERSE", wxPAPER_A4_TRANSVERSE }, - { "wxPAPER_A5", wxPAPER_A5 }, - { "wxPAPER_A5_EXTRA", wxPAPER_A5_EXTRA }, - { "wxPAPER_A5_ROTATED", wxPAPER_A5_ROTATED }, - { "wxPAPER_A5_TRANSVERSE", wxPAPER_A5_TRANSVERSE }, - { "wxPAPER_A6", wxPAPER_A6 }, - { "wxPAPER_A6_ROTATED", wxPAPER_A6_ROTATED }, - { "wxPAPER_A_PLUS", wxPAPER_A_PLUS }, - { "wxPAPER_B4", wxPAPER_B4 }, - { "wxPAPER_B4_JIS_ROTATED", wxPAPER_B4_JIS_ROTATED }, - { "wxPAPER_B5", wxPAPER_B5 }, - { "wxPAPER_B5_EXTRA", wxPAPER_B5_EXTRA }, - { "wxPAPER_B5_JIS_ROTATED", wxPAPER_B5_JIS_ROTATED }, - { "wxPAPER_B5_TRANSVERSE", wxPAPER_B5_TRANSVERSE }, - { "wxPAPER_B6_JIS", wxPAPER_B6_JIS }, - { "wxPAPER_B6_JIS_ROTATED", wxPAPER_B6_JIS_ROTATED }, - { "wxPAPER_B_PLUS", wxPAPER_B_PLUS }, - { "wxPAPER_CSHEET", wxPAPER_CSHEET }, - { "wxPAPER_DBL_JAPANESE_POSTCARD", wxPAPER_DBL_JAPANESE_POSTCARD }, - { "wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED", wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED }, - { "wxPAPER_DSHEET", wxPAPER_DSHEET }, - { "wxPAPER_ENV_10", wxPAPER_ENV_10 }, - { "wxPAPER_ENV_11", wxPAPER_ENV_11 }, - { "wxPAPER_ENV_12", wxPAPER_ENV_12 }, - { "wxPAPER_ENV_14", wxPAPER_ENV_14 }, - { "wxPAPER_ENV_9", wxPAPER_ENV_9 }, - { "wxPAPER_ENV_B4", wxPAPER_ENV_B4 }, - { "wxPAPER_ENV_B5", wxPAPER_ENV_B5 }, - { "wxPAPER_ENV_B6", wxPAPER_ENV_B6 }, - { "wxPAPER_ENV_C3", wxPAPER_ENV_C3 }, - { "wxPAPER_ENV_C4", wxPAPER_ENV_C4 }, - { "wxPAPER_ENV_C5", wxPAPER_ENV_C5 }, - { "wxPAPER_ENV_C6", wxPAPER_ENV_C6 }, - { "wxPAPER_ENV_C65", wxPAPER_ENV_C65 }, - { "wxPAPER_ENV_DL", wxPAPER_ENV_DL }, - { "wxPAPER_ENV_INVITE", wxPAPER_ENV_INVITE }, - { "wxPAPER_ENV_ITALY", wxPAPER_ENV_ITALY }, - { "wxPAPER_ENV_MONARCH", wxPAPER_ENV_MONARCH }, - { "wxPAPER_ENV_PERSONAL", wxPAPER_ENV_PERSONAL }, - { "wxPAPER_ESHEET", wxPAPER_ESHEET }, - { "wxPAPER_EXECUTIVE", wxPAPER_EXECUTIVE }, - { "wxPAPER_FANFOLD_LGL_GERMAN", wxPAPER_FANFOLD_LGL_GERMAN }, - { "wxPAPER_FANFOLD_STD_GERMAN", wxPAPER_FANFOLD_STD_GERMAN }, - { "wxPAPER_FANFOLD_US", wxPAPER_FANFOLD_US }, - { "wxPAPER_FOLIO", wxPAPER_FOLIO }, - { "wxPAPER_ISO_B4", wxPAPER_ISO_B4 }, - { "wxPAPER_JAPANESE_POSTCARD", wxPAPER_JAPANESE_POSTCARD }, - { "wxPAPER_JAPANESE_POSTCARD_ROTATED", wxPAPER_JAPANESE_POSTCARD_ROTATED }, - { "wxPAPER_JENV_CHOU3", wxPAPER_JENV_CHOU3 }, - { "wxPAPER_JENV_CHOU3_ROTATED", wxPAPER_JENV_CHOU3_ROTATED }, - { "wxPAPER_JENV_CHOU4", wxPAPER_JENV_CHOU4 }, - { "wxPAPER_JENV_CHOU4_ROTATED", wxPAPER_JENV_CHOU4_ROTATED }, - { "wxPAPER_JENV_KAKU2", wxPAPER_JENV_KAKU2 }, - { "wxPAPER_JENV_KAKU2_ROTATED", wxPAPER_JENV_KAKU2_ROTATED }, - { "wxPAPER_JENV_KAKU3", wxPAPER_JENV_KAKU3 }, - { "wxPAPER_JENV_KAKU3_ROTATED", wxPAPER_JENV_KAKU3_ROTATED }, - { "wxPAPER_JENV_YOU4", wxPAPER_JENV_YOU4 }, - { "wxPAPER_JENV_YOU4_ROTATED", wxPAPER_JENV_YOU4_ROTATED }, - { "wxPAPER_LEDGER", wxPAPER_LEDGER }, - { "wxPAPER_LEGAL", wxPAPER_LEGAL }, - { "wxPAPER_LEGAL_EXTRA", wxPAPER_LEGAL_EXTRA }, - { "wxPAPER_LETTER", wxPAPER_LETTER }, - { "wxPAPER_LETTERSMALL", wxPAPER_LETTERSMALL }, - { "wxPAPER_LETTER_EXTRA", wxPAPER_LETTER_EXTRA }, - { "wxPAPER_LETTER_EXTRA_TRANSVERSE", wxPAPER_LETTER_EXTRA_TRANSVERSE }, - { "wxPAPER_LETTER_PLUS", wxPAPER_LETTER_PLUS }, - { "wxPAPER_LETTER_ROTATED", wxPAPER_LETTER_ROTATED }, - { "wxPAPER_LETTER_TRANSVERSE", wxPAPER_LETTER_TRANSVERSE }, - { "wxPAPER_NONE", wxPAPER_NONE }, - { "wxPAPER_NOTE", wxPAPER_NOTE }, - { "wxPAPER_P16K", wxPAPER_P16K }, - { "wxPAPER_P16K_ROTATED", wxPAPER_P16K_ROTATED }, - { "wxPAPER_P32K", wxPAPER_P32K }, - { "wxPAPER_P32KBIG", wxPAPER_P32KBIG }, - { "wxPAPER_P32KBIG_ROTATED", wxPAPER_P32KBIG_ROTATED }, - { "wxPAPER_P32K_ROTATED", wxPAPER_P32K_ROTATED }, - { "wxPAPER_PENV_1", wxPAPER_PENV_1 }, - { "wxPAPER_PENV_10", wxPAPER_PENV_10 }, - { "wxPAPER_PENV_10_ROTATED", wxPAPER_PENV_10_ROTATED }, - { "wxPAPER_PENV_1_ROTATED", wxPAPER_PENV_1_ROTATED }, - { "wxPAPER_PENV_2", wxPAPER_PENV_2 }, - { "wxPAPER_PENV_2_ROTATED", wxPAPER_PENV_2_ROTATED }, - { "wxPAPER_PENV_3", wxPAPER_PENV_3 }, - { "wxPAPER_PENV_3_ROTATED", wxPAPER_PENV_3_ROTATED }, - { "wxPAPER_PENV_4", wxPAPER_PENV_4 }, - { "wxPAPER_PENV_4_ROTATED", wxPAPER_PENV_4_ROTATED }, - { "wxPAPER_PENV_5", wxPAPER_PENV_5 }, - { "wxPAPER_PENV_5_ROTATED", wxPAPER_PENV_5_ROTATED }, - { "wxPAPER_PENV_6", wxPAPER_PENV_6 }, - { "wxPAPER_PENV_6_ROTATED", wxPAPER_PENV_6_ROTATED }, - { "wxPAPER_PENV_7", wxPAPER_PENV_7 }, - { "wxPAPER_PENV_7_ROTATED", wxPAPER_PENV_7_ROTATED }, - { "wxPAPER_PENV_8", wxPAPER_PENV_8 }, - { "wxPAPER_PENV_8_ROTATED", wxPAPER_PENV_8_ROTATED }, - { "wxPAPER_PENV_9", wxPAPER_PENV_9 }, - { "wxPAPER_PENV_9_ROTATED", wxPAPER_PENV_9_ROTATED }, - { "wxPAPER_QUARTO", wxPAPER_QUARTO }, - { "wxPAPER_STATEMENT", wxPAPER_STATEMENT }, - { "wxPAPER_TABLOID", wxPAPER_TABLOID }, - { "wxPAPER_TABLOID_EXTRA", wxPAPER_TABLOID_EXTRA }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - { "wxPB_USE_TEXTCTRL", wxPB_USE_TEXTCTRL }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - -#if wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - { "wxPD_APP_MODAL", wxPD_APP_MODAL }, - { "wxPD_AUTO_HIDE", wxPD_AUTO_HIDE }, - { "wxPD_CAN_ABORT", wxPD_CAN_ABORT }, - { "wxPD_CAN_SKIP", wxPD_CAN_SKIP }, - { "wxPD_ELAPSED_TIME", wxPD_ELAPSED_TIME }, - { "wxPD_ESTIMATED_TIME", wxPD_ESTIMATED_TIME }, - { "wxPD_REMAINING_TIME", wxPD_REMAINING_TIME }, - { "wxPD_SMOOTH", wxPD_SMOOTH }, -#endif // wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "wxPENSTYLE_BDIAGONAL_HATCH", wxPENSTYLE_BDIAGONAL_HATCH }, - { "wxPENSTYLE_CROSSDIAG_HATCH", wxPENSTYLE_CROSSDIAG_HATCH }, - { "wxPENSTYLE_CROSS_HATCH", wxPENSTYLE_CROSS_HATCH }, - { "wxPENSTYLE_DOT", wxPENSTYLE_DOT }, - { "wxPENSTYLE_DOT_DASH", wxPENSTYLE_DOT_DASH }, - { "wxPENSTYLE_FDIAGONAL_HATCH", wxPENSTYLE_FDIAGONAL_HATCH }, - { "wxPENSTYLE_FIRST_HATCH", wxPENSTYLE_FIRST_HATCH }, - { "wxPENSTYLE_HORIZONTAL_HATCH", wxPENSTYLE_HORIZONTAL_HATCH }, - { "wxPENSTYLE_INVALID", wxPENSTYLE_INVALID }, - { "wxPENSTYLE_LAST_HATCH", wxPENSTYLE_LAST_HATCH }, - { "wxPENSTYLE_LONG_DASH", wxPENSTYLE_LONG_DASH }, - { "wxPENSTYLE_SHORT_DASH", wxPENSTYLE_SHORT_DASH }, - { "wxPENSTYLE_SOLID", wxPENSTYLE_SOLID }, - { "wxPENSTYLE_STIPPLE", wxPENSTYLE_STIPPLE }, - { "wxPENSTYLE_STIPPLE_MASK", wxPENSTYLE_STIPPLE_MASK }, - { "wxPENSTYLE_STIPPLE_MASK_OPAQUE", wxPENSTYLE_STIPPLE_MASK_OPAQUE }, - { "wxPENSTYLE_TRANSPARENT", wxPENSTYLE_TRANSPARENT }, - { "wxPENSTYLE_USER_DASH", wxPENSTYLE_USER_DASH }, - { "wxPENSTYLE_VERTICAL_HATCH", wxPENSTYLE_VERTICAL_HATCH }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - { "wxPNG_TYPE_COLOUR", wxPNG_TYPE_COLOUR }, - { "wxPNG_TYPE_GREY", wxPNG_TYPE_GREY }, - { "wxPNG_TYPE_GREY_RED", wxPNG_TYPE_GREY_RED }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPORTRAIT", wxPORTRAIT }, -#elif wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxPORTRAIT", wxPORTRAIT }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -#if wxCHECK_VERSION(2,8,0) - { "wxPOWER_BATTERY", wxPOWER_BATTERY }, - { "wxPOWER_SOCKET", wxPOWER_SOCKET }, - { "wxPOWER_UNKNOWN", wxPOWER_UNKNOWN }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxPREVIEW_FIRST", wxPREVIEW_FIRST }, - { "wxPREVIEW_GOTO", wxPREVIEW_GOTO }, - { "wxPREVIEW_LAST", wxPREVIEW_LAST }, - { "wxPREVIEW_NEXT", wxPREVIEW_NEXT }, - { "wxPREVIEW_PREVIOUS", wxPREVIEW_PREVIOUS }, - { "wxPREVIEW_PRINT", wxPREVIEW_PRINT }, - { "wxPREVIEW_ZOOM", wxPREVIEW_ZOOM }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPRINTBIN_AUTO", wxPRINTBIN_AUTO }, - { "wxPRINTBIN_CASSETTE", wxPRINTBIN_CASSETTE }, - { "wxPRINTBIN_DEFAULT", wxPRINTBIN_DEFAULT }, - { "wxPRINTBIN_ENVELOPE", wxPRINTBIN_ENVELOPE }, - { "wxPRINTBIN_ENVMANUAL", wxPRINTBIN_ENVMANUAL }, - { "wxPRINTBIN_FORMSOURCE", wxPRINTBIN_FORMSOURCE }, - { "wxPRINTBIN_LARGECAPACITY", wxPRINTBIN_LARGECAPACITY }, - { "wxPRINTBIN_LARGEFMT", wxPRINTBIN_LARGEFMT }, - { "wxPRINTBIN_LOWER", wxPRINTBIN_LOWER }, - { "wxPRINTBIN_MANUAL", wxPRINTBIN_MANUAL }, - { "wxPRINTBIN_MIDDLE", wxPRINTBIN_MIDDLE }, - { "wxPRINTBIN_ONLYONE", wxPRINTBIN_ONLYONE }, - { "wxPRINTBIN_SMALLFMT", wxPRINTBIN_SMALLFMT }, - { "wxPRINTBIN_TRACTOR", wxPRINTBIN_TRACTOR }, - { "wxPRINTBIN_USER", wxPRINTBIN_USER }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPRINTER_CANCELLED", wxPRINTER_CANCELLED }, - { "wxPRINTER_ERROR", wxPRINTER_ERROR }, - { "wxPRINTER_NO_ERROR", wxPRINTER_NO_ERROR }, -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { "wxPRINT_MODE_FILE", wxPRINT_MODE_FILE }, - { "wxPRINT_MODE_NONE", wxPRINT_MODE_NONE }, - { "wxPRINT_MODE_PREVIEW", wxPRINT_MODE_PREVIEW }, - { "wxPRINT_MODE_PRINTER", wxPRINT_MODE_PRINTER }, - { "wxPRINT_QUALITY_DRAFT", wxPRINT_QUALITY_DRAFT }, - { "wxPRINT_QUALITY_HIGH", wxPRINT_QUALITY_HIGH }, - { "wxPRINT_QUALITY_LOW", wxPRINT_QUALITY_LOW }, - { "wxPRINT_QUALITY_MEDIUM", wxPRINT_QUALITY_MEDIUM }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxProcess - { "wxPROCESS_DEFAULT", wxPROCESS_DEFAULT }, - { "wxPROCESS_REDIRECT", wxPROCESS_REDIRECT }, -#endif // wxLUA_USE_wxProcess - -#if wxLUA_USE_wxRegion - { "wxPartRegion", wxPartRegion }, -#endif // wxLUA_USE_wxRegion - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxPercentOf", wxPercentOf }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxQUANTIZE_FILL_DESTINATION_IMAGE", wxQUANTIZE_FILL_DESTINATION_IMAGE }, - { "wxQUANTIZE_INCLUDE_WINDOWS_COLOURS", wxQUANTIZE_INCLUDE_WINDOWS_COLOURS }, - { "wxQUANTIZE_RETURN_8BIT_DATA", wxQUANTIZE_RETURN_8BIT_DATA }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - { "wxRAISED_BORDER", wxRAISED_BORDER }, - -#if wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - { "wxRA_HORIZONTAL", wxRA_HORIZONTAL }, - { "wxRA_SPECIFY_COLS", wxRA_SPECIFY_COLS }, - { "wxRA_SPECIFY_ROWS", wxRA_SPECIFY_ROWS }, - { "wxRA_VERTICAL", wxRA_VERTICAL }, -#endif // wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - -#if wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - { "wxRB_GROUP", wxRB_GROUP }, - { "wxRB_SINGLE", wxRB_SINGLE }, -#endif // wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - { "wxREMOVE_LEADING_SPACES", wxREMOVE_LEADING_SPACES }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - -#if wxCHECK_VERSION(2,8,8) - { "wxRESERVE_SPACE_EVEN_IF_HIDDEN", wxRESERVE_SPACE_EVEN_IF_HIDDEN }, -#endif // wxCHECK_VERSION(2,8,8) - - { "wxRESET", wxRESET }, - -#if wxLUA_USE_wxFrame - { "wxRESIZE_BORDER", wxRESIZE_BORDER }, -#endif // wxLUA_USE_wxFrame - - { "wxRETAINED", wxRETAINED }, - -#if (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) - { "wxRGN_AND", wxRGN_AND }, - { "wxRGN_COPY", wxRGN_COPY }, - { "wxRGN_DIFF", wxRGN_DIFF }, - { "wxRGN_OR", wxRGN_OR }, - { "wxRGN_XOR", wxRGN_XOR }, -#endif // (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) - - { "wxRIGHT", wxRIGHT }, - -#if wxLUA_USE_wxFont - { "wxROMAN", wxROMAN }, -#endif // wxLUA_USE_wxFont - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC) - { "wxROP_BLACK", wxROP_BLACK }, - { "wxROP_COPYPEN", wxROP_COPYPEN }, - { "wxROP_MASKNOTPEN", wxROP_MASKNOTPEN }, - { "wxROP_MASKPEN", wxROP_MASKPEN }, - { "wxROP_MASKPENNOT", wxROP_MASKPENNOT }, - { "wxROP_MERGENOTPEN", wxROP_MERGENOTPEN }, - { "wxROP_MERGEPEN", wxROP_MERGEPEN }, - { "wxROP_MERGEPENNOT", wxROP_MERGEPENNOT }, - { "wxROP_NOP", wxROP_NOP }, - { "wxROP_NOT", wxROP_NOT }, - { "wxROP_NOTCOPYPEN", wxROP_NOTCOPYPEN }, - { "wxROP_NOTMASKPEN", wxROP_NOTMASKPEN }, - { "wxROP_NOTMERGEPEN", wxROP_NOTMERGEPEN }, - { "wxROP_NOTXORPEN", wxROP_NOTXORPEN }, - { "wxROP_WHITE", wxROP_WHITE }, - { "wxROP_XORPEN", wxROP_XORPEN }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxRight", wxRight }, - { "wxRightOf", wxRightOf }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - { "wxSAVE", wxSAVE }, -#endif // (defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6) - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - { "wxSB_FLAT", wxSB_FLAT }, -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - { "wxSB_HORIZONTAL", wxSB_HORIZONTAL }, -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - { "wxSB_NORMAL", wxSB_NORMAL }, - { "wxSB_RAISED", wxSB_RAISED }, -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - { "wxSB_VERTICAL", wxSB_VERTICAL }, -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -#if wxLUA_USE_wxFont - { "wxSCRIPT", wxSCRIPT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxDC - { "wxSET", wxSET }, -#endif // wxLUA_USE_wxDC - - { "wxSETUP", wxSETUP }, - { "wxSHAPED", wxSHAPED }, - -#if wxLUA_USE_wxColourPenBrush - { "wxSHORT_DASH", wxSHORT_DASH }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(2,9,1) - { "wxSHOW_EFFECT_BLEND", wxSHOW_EFFECT_BLEND }, - { "wxSHOW_EFFECT_EXPAND", wxSHOW_EFFECT_EXPAND }, - { "wxSHOW_EFFECT_MAX", wxSHOW_EFFECT_MAX }, - { "wxSHOW_EFFECT_NONE", wxSHOW_EFFECT_NONE }, - { "wxSHOW_EFFECT_ROLL_TO_BOTTOM", wxSHOW_EFFECT_ROLL_TO_BOTTOM }, - { "wxSHOW_EFFECT_ROLL_TO_LEFT", wxSHOW_EFFECT_ROLL_TO_LEFT }, - { "wxSHOW_EFFECT_ROLL_TO_RIGHT", wxSHOW_EFFECT_ROLL_TO_RIGHT }, - { "wxSHOW_EFFECT_ROLL_TO_TOP", wxSHOW_EFFECT_ROLL_TO_TOP }, - { "wxSHOW_EFFECT_SLIDE_TO_BOTTOM", wxSHOW_EFFECT_SLIDE_TO_BOTTOM }, - { "wxSHOW_EFFECT_SLIDE_TO_LEFT", wxSHOW_EFFECT_SLIDE_TO_LEFT }, - { "wxSHOW_EFFECT_SLIDE_TO_RIGHT", wxSHOW_EFFECT_SLIDE_TO_RIGHT }, - { "wxSHOW_EFFECT_SLIDE_TO_TOP", wxSHOW_EFFECT_SLIDE_TO_TOP }, -#endif // wxCHECK_VERSION(2,9,1) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow) - { "wxSHOW_SB_ALWAYS", wxSHOW_SB_ALWAYS }, - { "wxSHOW_SB_DEFAULT", wxSHOW_SB_DEFAULT }, - { "wxSHOW_SB_NEVER", wxSHOW_SB_NEVER }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow) - - { "wxSHRINK", wxSHRINK }, - { "wxSHUTDOWN_POWEROFF", wxSHUTDOWN_POWEROFF }, - { "wxSHUTDOWN_REBOOT", wxSHUTDOWN_REBOOT }, - -#if wxLUA_USE_wxProcess - { "wxSIGABRT", wxSIGABRT }, - { "wxSIGALRM", wxSIGALRM }, - { "wxSIGBUS", wxSIGBUS }, - { "wxSIGEMT", wxSIGEMT }, - { "wxSIGFPE", wxSIGFPE }, - { "wxSIGHUP", wxSIGHUP }, - { "wxSIGILL", wxSIGILL }, - { "wxSIGINT", wxSIGINT }, - { "wxSIGKILL", wxSIGKILL }, - { "wxSIGNONE", wxSIGNONE }, - { "wxSIGPIPE", wxSIGPIPE }, - { "wxSIGQUIT", wxSIGQUIT }, - { "wxSIGSEGV", wxSIGSEGV }, - { "wxSIGSYS", wxSIGSYS }, - { "wxSIGTERM", wxSIGTERM }, - { "wxSIGTRAP", wxSIGTRAP }, -#endif // wxLUA_USE_wxProcess - - { "wxSIMPLE_BORDER", wxSIMPLE_BORDER }, - { "wxSIZE_ALLOW_MINUS_ONE", wxSIZE_ALLOW_MINUS_ONE }, - { "wxSIZE_AUTO", wxSIZE_AUTO }, - { "wxSIZE_AUTO_HEIGHT", wxSIZE_AUTO_HEIGHT }, - { "wxSIZE_AUTO_WIDTH", wxSIZE_AUTO_WIDTH }, - { "wxSIZE_NO_ADJUSTMENTS", wxSIZE_NO_ADJUSTMENTS }, - { "wxSIZE_USE_EXISTING", wxSIZE_USE_EXISTING }, - -#if wxLUA_USE_wxFont - { "wxSLANT", wxSLANT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxSlider && wxUSE_SLIDER - { "wxSL_AUTOTICKS", wxSL_AUTOTICKS }, - { "wxSL_BOTH", wxSL_BOTH }, - { "wxSL_BOTTOM", wxSL_BOTTOM }, - { "wxSL_HORIZONTAL", wxSL_HORIZONTAL }, - { "wxSL_LABELS", wxSL_LABELS }, - { "wxSL_LEFT", wxSL_LEFT }, - { "wxSL_RIGHT", wxSL_RIGHT }, - { "wxSL_SELRANGE", wxSL_SELRANGE }, - { "wxSL_TOP", wxSL_TOP }, - { "wxSL_VERTICAL", wxSL_VERTICAL }, -#endif // wxLUA_USE_wxSlider && wxUSE_SLIDER - -#if wxLUA_USE_wxColourPenBrush - { "wxSOLID", wxSOLID }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxSOUTH", wxSOUTH }, - -#if wxLUA_USE_wxSplitterWindow - { "wxSP_3D", wxSP_3D }, - { "wxSP_3DBORDER", wxSP_3DBORDER }, - { "wxSP_3DSASH", wxSP_3DSASH }, -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { "wxSP_ARROW_KEYS", wxSP_ARROW_KEYS }, -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSplitterWindow - { "wxSP_BORDER", wxSP_BORDER }, -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { "wxSP_HORIZONTAL", wxSP_HORIZONTAL }, -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSplitterWindow - { "wxSP_LIVE_UPDATE", wxSP_LIVE_UPDATE }, - { "wxSP_NOBORDER", wxSP_NOBORDER }, - { "wxSP_NOSASH", wxSP_NOSASH }, -#endif // wxLUA_USE_wxSplitterWindow - -#if (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxSplitterWindow) - { "wxSP_NO_XP_THEME", wxSP_NO_XP_THEME }, -#endif // (wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxSplitterWindow) - -#if wxLUA_USE_wxSplitterWindow - { "wxSP_PERMIT_UNSPLIT", wxSP_PERMIT_UNSPLIT }, -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { "wxSP_VERTICAL", wxSP_VERTICAL }, - { "wxSP_WRAP", wxSP_WRAP }, -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxDC - { "wxSRC_INVERT", wxSRC_INVERT }, -#endif // wxLUA_USE_wxDC - - { "wxSTATIC_BORDER", wxSTATIC_BORDER }, - -#if wxLUA_USE_wxFrame - { "wxSTAY_ON_TOP", wxSTAY_ON_TOP }, -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxColourPenBrush - { "wxSTIPPLE", wxSTIPPLE }, - { "wxSTIPPLE_MASK", wxSTIPPLE_MASK }, - { "wxSTIPPLE_MASK_OPAQUE", wxSTIPPLE_MASK_OPAQUE }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxSTRETCH_NOT", wxSTRETCH_NOT }, - -#if (wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - { "wxST_DOTS_END", wxST_DOTS_END }, - { "wxST_DOTS_MIDDLE", wxST_DOTS_MIDDLE }, -#endif // (wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - -#if wxLUA_USE_wxStaticText && wxUSE_STATTEXT - { "wxST_NO_AUTORESIZE", wxST_NO_AUTORESIZE }, -#endif // wxLUA_USE_wxStaticText && wxUSE_STATTEXT - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - { "wxST_SIZEGRIP", wxST_SIZEGRIP }, -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - - { "wxSUNKEN_BORDER", wxSUNKEN_BORDER }, - -#if wxLUA_USE_wxFont - { "wxSWISS", wxSWISS }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxFrame - { "wxSYSTEM_MENU", wxSYSTEM_MENU }, -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxSystemSettings - { "wxSYS_ANSI_FIXED_FONT", wxSYS_ANSI_FIXED_FONT }, - { "wxSYS_ANSI_VAR_FONT", wxSYS_ANSI_VAR_FONT }, - { "wxSYS_BORDER_X", wxSYS_BORDER_X }, - { "wxSYS_BORDER_Y", wxSYS_BORDER_Y }, - { "wxSYS_CAN_DRAW_FRAME_DECORATIONS", wxSYS_CAN_DRAW_FRAME_DECORATIONS }, - { "wxSYS_CAN_ICONIZE_FRAME", wxSYS_CAN_ICONIZE_FRAME }, - { "wxSYS_CAPTION_Y", wxSYS_CAPTION_Y }, - { "wxSYS_COLOUR_3DDKSHADOW", wxSYS_COLOUR_3DDKSHADOW }, - { "wxSYS_COLOUR_3DFACE", wxSYS_COLOUR_3DFACE }, - { "wxSYS_COLOUR_3DHIGHLIGHT", wxSYS_COLOUR_3DHIGHLIGHT }, - { "wxSYS_COLOUR_3DHILIGHT", wxSYS_COLOUR_3DHILIGHT }, - { "wxSYS_COLOUR_3DLIGHT", wxSYS_COLOUR_3DLIGHT }, - { "wxSYS_COLOUR_3DSHADOW", wxSYS_COLOUR_3DSHADOW }, - { "wxSYS_COLOUR_ACTIVEBORDER", wxSYS_COLOUR_ACTIVEBORDER }, - { "wxSYS_COLOUR_ACTIVECAPTION", wxSYS_COLOUR_ACTIVECAPTION }, - { "wxSYS_COLOUR_APPWORKSPACE", wxSYS_COLOUR_APPWORKSPACE }, - { "wxSYS_COLOUR_BACKGROUND", wxSYS_COLOUR_BACKGROUND }, - { "wxSYS_COLOUR_BTNFACE", wxSYS_COLOUR_BTNFACE }, - { "wxSYS_COLOUR_BTNHIGHLIGHT", wxSYS_COLOUR_BTNHIGHLIGHT }, - { "wxSYS_COLOUR_BTNHILIGHT", wxSYS_COLOUR_BTNHILIGHT }, - { "wxSYS_COLOUR_BTNSHADOW", wxSYS_COLOUR_BTNSHADOW }, - { "wxSYS_COLOUR_BTNTEXT", wxSYS_COLOUR_BTNTEXT }, - { "wxSYS_COLOUR_CAPTIONTEXT", wxSYS_COLOUR_CAPTIONTEXT }, - { "wxSYS_COLOUR_DESKTOP", wxSYS_COLOUR_DESKTOP }, - { "wxSYS_COLOUR_GRADIENTACTIVECAPTION", wxSYS_COLOUR_GRADIENTACTIVECAPTION }, - { "wxSYS_COLOUR_GRADIENTINACTIVECAPTION", wxSYS_COLOUR_GRADIENTINACTIVECAPTION }, - { "wxSYS_COLOUR_GRAYTEXT", wxSYS_COLOUR_GRAYTEXT }, - { "wxSYS_COLOUR_HIGHLIGHT", wxSYS_COLOUR_HIGHLIGHT }, - { "wxSYS_COLOUR_HIGHLIGHTTEXT", wxSYS_COLOUR_HIGHLIGHTTEXT }, - { "wxSYS_COLOUR_HOTLIGHT", wxSYS_COLOUR_HOTLIGHT }, - { "wxSYS_COLOUR_INACTIVEBORDER", wxSYS_COLOUR_INACTIVEBORDER }, - { "wxSYS_COLOUR_INACTIVECAPTION", wxSYS_COLOUR_INACTIVECAPTION }, - { "wxSYS_COLOUR_INACTIVECAPTIONTEXT", wxSYS_COLOUR_INACTIVECAPTIONTEXT }, - { "wxSYS_COLOUR_INFOBK", wxSYS_COLOUR_INFOBK }, - { "wxSYS_COLOUR_INFOTEXT", wxSYS_COLOUR_INFOTEXT }, - { "wxSYS_COLOUR_LISTBOX", wxSYS_COLOUR_LISTBOX }, - { "wxSYS_COLOUR_MAX", wxSYS_COLOUR_MAX }, - { "wxSYS_COLOUR_MENU", wxSYS_COLOUR_MENU }, - { "wxSYS_COLOUR_MENUBAR", wxSYS_COLOUR_MENUBAR }, - { "wxSYS_COLOUR_MENUHILIGHT", wxSYS_COLOUR_MENUHILIGHT }, - { "wxSYS_COLOUR_MENUTEXT", wxSYS_COLOUR_MENUTEXT }, - { "wxSYS_COLOUR_SCROLLBAR", wxSYS_COLOUR_SCROLLBAR }, - { "wxSYS_COLOUR_WINDOW", wxSYS_COLOUR_WINDOW }, - { "wxSYS_COLOUR_WINDOWFRAME", wxSYS_COLOUR_WINDOWFRAME }, - { "wxSYS_COLOUR_WINDOWTEXT", wxSYS_COLOUR_WINDOWTEXT }, - { "wxSYS_CURSOR_X", wxSYS_CURSOR_X }, - { "wxSYS_CURSOR_Y", wxSYS_CURSOR_Y }, - { "wxSYS_DCLICK_X", wxSYS_DCLICK_X }, - { "wxSYS_DCLICK_Y", wxSYS_DCLICK_Y }, - { "wxSYS_DEFAULT_GUI_FONT", wxSYS_DEFAULT_GUI_FONT }, - { "wxSYS_DEFAULT_PALETTE", wxSYS_DEFAULT_PALETTE }, - { "wxSYS_DEVICE_DEFAULT_FONT", wxSYS_DEVICE_DEFAULT_FONT }, - { "wxSYS_DRAG_X", wxSYS_DRAG_X }, - { "wxSYS_DRAG_Y", wxSYS_DRAG_Y }, - { "wxSYS_EDGE_X", wxSYS_EDGE_X }, - { "wxSYS_EDGE_Y", wxSYS_EDGE_Y }, - { "wxSYS_FRAMESIZE_X", wxSYS_FRAMESIZE_X }, - { "wxSYS_FRAMESIZE_Y", wxSYS_FRAMESIZE_Y }, - { "wxSYS_HSCROLL_ARROW_X", wxSYS_HSCROLL_ARROW_X }, - { "wxSYS_HSCROLL_ARROW_Y", wxSYS_HSCROLL_ARROW_Y }, - { "wxSYS_HSCROLL_Y", wxSYS_HSCROLL_Y }, - { "wxSYS_HTHUMB_X", wxSYS_HTHUMB_X }, - { "wxSYS_ICONSPACING_X", wxSYS_ICONSPACING_X }, - { "wxSYS_ICONSPACING_Y", wxSYS_ICONSPACING_Y }, - { "wxSYS_ICON_X", wxSYS_ICON_X }, - { "wxSYS_ICON_Y", wxSYS_ICON_Y }, - { "wxSYS_MENU_Y", wxSYS_MENU_Y }, - { "wxSYS_MOUSE_BUTTONS", wxSYS_MOUSE_BUTTONS }, - { "wxSYS_NETWORK_PRESENT", wxSYS_NETWORK_PRESENT }, - { "wxSYS_OEM_FIXED_FONT", wxSYS_OEM_FIXED_FONT }, - { "wxSYS_PENWINDOWS_PRESENT", wxSYS_PENWINDOWS_PRESENT }, - { "wxSYS_SCREEN_DESKTOP", wxSYS_SCREEN_DESKTOP }, - { "wxSYS_SCREEN_NONE", wxSYS_SCREEN_NONE }, - { "wxSYS_SCREEN_PDA", wxSYS_SCREEN_PDA }, - { "wxSYS_SCREEN_SMALL", wxSYS_SCREEN_SMALL }, - { "wxSYS_SCREEN_TINY", wxSYS_SCREEN_TINY }, - { "wxSYS_SCREEN_X", wxSYS_SCREEN_X }, - { "wxSYS_SCREEN_Y", wxSYS_SCREEN_Y }, - { "wxSYS_SHOW_SOUNDS", wxSYS_SHOW_SOUNDS }, - { "wxSYS_SMALLICON_X", wxSYS_SMALLICON_X }, - { "wxSYS_SMALLICON_Y", wxSYS_SMALLICON_Y }, - { "wxSYS_SWAP_BUTTONS", wxSYS_SWAP_BUTTONS }, - { "wxSYS_SYSTEM_FIXED_FONT", wxSYS_SYSTEM_FIXED_FONT }, - { "wxSYS_SYSTEM_FONT", wxSYS_SYSTEM_FONT }, - { "wxSYS_VSCROLL_ARROW_X", wxSYS_VSCROLL_ARROW_X }, - { "wxSYS_VSCROLL_ARROW_Y", wxSYS_VSCROLL_ARROW_Y }, - { "wxSYS_VSCROLL_X", wxSYS_VSCROLL_X }, - { "wxSYS_VTHUMB_Y", wxSYS_VTHUMB_Y }, - { "wxSYS_WINDOWMIN_X", wxSYS_WINDOWMIN_X }, - { "wxSYS_WINDOWMIN_Y", wxSYS_WINDOWMIN_Y }, -#endif // wxLUA_USE_wxSystemSettings - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxSameAs", wxSameAs }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - - { "wxTAB_TRAVERSAL", wxTAB_TRAVERSAL }, - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxToolbar) - { "wxTB_3DBUTTONS", wxTB_3DBUTTONS }, -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxToolbar) - -#if wxLUA_USE_wxToolbar - { "wxTB_DOCKABLE", wxTB_DOCKABLE }, - { "wxTB_FLAT", wxTB_FLAT }, - { "wxTB_HORIZONTAL", wxTB_HORIZONTAL }, - { "wxTB_HORZ_LAYOUT", wxTB_HORZ_LAYOUT }, - { "wxTB_HORZ_TEXT", wxTB_HORZ_TEXT }, - { "wxTB_NOALIGN", wxTB_NOALIGN }, - { "wxTB_NODIVIDER", wxTB_NODIVIDER }, - { "wxTB_NOICONS", wxTB_NOICONS }, - { "wxTB_TEXT", wxTB_TEXT }, - { "wxTB_VERTICAL", wxTB_VERTICAL }, -#endif // wxLUA_USE_wxToolbar - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - { "wxTC_BOTTOM", wxTC_BOTTOM }, - { "wxTC_FIXEDWIDTH", wxTC_FIXEDWIDTH }, - { "wxTC_LEFT", wxTC_LEFT }, - { "wxTC_MULTILINE", wxTC_MULTILINE }, - { "wxTC_OWNERDRAW", wxTC_OWNERDRAW }, - { "wxTC_RIGHT", wxTC_RIGHT }, - { "wxTC_RIGHTJUSTIFY", wxTC_RIGHTJUSTIFY }, - { "wxTC_TOP", wxTC_TOP }, -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - -#if wxLUA_USE_wxFont - { "wxTELETYPE", wxTELETYPE }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - { "wxTEMPLATE_INVISIBLE", wxTEMPLATE_INVISIBLE }, - { "wxTEMPLATE_VISIBLE", wxTEMPLATE_VISIBLE }, -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ALIGNMENT_CENTER", wxTEXT_ALIGNMENT_CENTER }, - { "wxTEXT_ALIGNMENT_CENTRE", wxTEXT_ALIGNMENT_CENTRE }, - { "wxTEXT_ALIGNMENT_DEFAULT", wxTEXT_ALIGNMENT_DEFAULT }, - { "wxTEXT_ALIGNMENT_JUSTIFIED", wxTEXT_ALIGNMENT_JUSTIFIED }, - { "wxTEXT_ALIGNMENT_LEFT", wxTEXT_ALIGNMENT_LEFT }, - { "wxTEXT_ALIGNMENT_RIGHT", wxTEXT_ALIGNMENT_RIGHT }, - { "wxTEXT_ATTR_ALIGNMENT", wxTEXT_ATTR_ALIGNMENT }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_ALL", wxTEXT_ATTR_ALL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_BACKGROUND_COLOUR", wxTEXT_ATTR_BACKGROUND_COLOUR }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_BULLET", wxTEXT_ATTR_BULLET }, - { "wxTEXT_ATTR_BULLET_NAME", wxTEXT_ATTR_BULLET_NAME }, - { "wxTEXT_ATTR_BULLET_NUMBER", wxTEXT_ATTR_BULLET_NUMBER }, - { "wxTEXT_ATTR_BULLET_STYLE", wxTEXT_ATTR_BULLET_STYLE }, - { "wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE", wxTEXT_ATTR_BULLET_STYLE_ALIGN_CENTRE }, - { "wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT", wxTEXT_ATTR_BULLET_STYLE_ALIGN_LEFT }, - { "wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT", wxTEXT_ATTR_BULLET_STYLE_ALIGN_RIGHT }, - { "wxTEXT_ATTR_BULLET_STYLE_ARABIC", wxTEXT_ATTR_BULLET_STYLE_ARABIC }, - { "wxTEXT_ATTR_BULLET_STYLE_BITMAP", wxTEXT_ATTR_BULLET_STYLE_BITMAP }, - { "wxTEXT_ATTR_BULLET_STYLE_CONTINUATION", wxTEXT_ATTR_BULLET_STYLE_CONTINUATION }, - { "wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER", wxTEXT_ATTR_BULLET_STYLE_LETTERS_LOWER }, - { "wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER", wxTEXT_ATTR_BULLET_STYLE_LETTERS_UPPER }, - { "wxTEXT_ATTR_BULLET_STYLE_NONE", wxTEXT_ATTR_BULLET_STYLE_NONE }, - { "wxTEXT_ATTR_BULLET_STYLE_OUTLINE", wxTEXT_ATTR_BULLET_STYLE_OUTLINE }, - { "wxTEXT_ATTR_BULLET_STYLE_PARENTHESES", wxTEXT_ATTR_BULLET_STYLE_PARENTHESES }, - { "wxTEXT_ATTR_BULLET_STYLE_PERIOD", wxTEXT_ATTR_BULLET_STYLE_PERIOD }, - { "wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS", wxTEXT_ATTR_BULLET_STYLE_RIGHT_PARENTHESIS }, - { "wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER", wxTEXT_ATTR_BULLET_STYLE_ROMAN_LOWER }, - { "wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER", wxTEXT_ATTR_BULLET_STYLE_ROMAN_UPPER }, - { "wxTEXT_ATTR_BULLET_STYLE_STANDARD", wxTEXT_ATTR_BULLET_STYLE_STANDARD }, - { "wxTEXT_ATTR_BULLET_STYLE_SYMBOL", wxTEXT_ATTR_BULLET_STYLE_SYMBOL }, - { "wxTEXT_ATTR_BULLET_TEXT", wxTEXT_ATTR_BULLET_TEXT }, - { "wxTEXT_ATTR_CHARACTER", wxTEXT_ATTR_CHARACTER }, - { "wxTEXT_ATTR_CHARACTER_STYLE_NAME", wxTEXT_ATTR_CHARACTER_STYLE_NAME }, - { "wxTEXT_ATTR_EFFECTS", wxTEXT_ATTR_EFFECTS }, - { "wxTEXT_ATTR_EFFECT_CAPITALS", wxTEXT_ATTR_EFFECT_CAPITALS }, - { "wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH", wxTEXT_ATTR_EFFECT_DOUBLE_STRIKETHROUGH }, - { "wxTEXT_ATTR_EFFECT_EMBOSS", wxTEXT_ATTR_EFFECT_EMBOSS }, - { "wxTEXT_ATTR_EFFECT_ENGRAVE", wxTEXT_ATTR_EFFECT_ENGRAVE }, - { "wxTEXT_ATTR_EFFECT_NONE", wxTEXT_ATTR_EFFECT_NONE }, - { "wxTEXT_ATTR_EFFECT_OUTLINE", wxTEXT_ATTR_EFFECT_OUTLINE }, - { "wxTEXT_ATTR_EFFECT_SHADOW", wxTEXT_ATTR_EFFECT_SHADOW }, - { "wxTEXT_ATTR_EFFECT_SMALL_CAPITALS", wxTEXT_ATTR_EFFECT_SMALL_CAPITALS }, - { "wxTEXT_ATTR_EFFECT_STRIKETHROUGH", wxTEXT_ATTR_EFFECT_STRIKETHROUGH }, - { "wxTEXT_ATTR_EFFECT_SUBSCRIPT", wxTEXT_ATTR_EFFECT_SUBSCRIPT }, - { "wxTEXT_ATTR_EFFECT_SUPERSCRIPT", wxTEXT_ATTR_EFFECT_SUPERSCRIPT }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_FONT", wxTEXT_ATTR_FONT }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_FONT_ENCODING", wxTEXT_ATTR_FONT_ENCODING }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_FONT_FACE", wxTEXT_ATTR_FONT_FACE }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_FONT_FAMILY", wxTEXT_ATTR_FONT_FAMILY }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_FONT_ITALIC", wxTEXT_ATTR_FONT_ITALIC }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_FONT_PIXEL_SIZE", wxTEXT_ATTR_FONT_PIXEL_SIZE }, - { "wxTEXT_ATTR_FONT_POINT_SIZE", wxTEXT_ATTR_FONT_POINT_SIZE }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_FONT_SIZE", wxTEXT_ATTR_FONT_SIZE }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_FONT_STRIKETHROUGH", wxTEXT_ATTR_FONT_STRIKETHROUGH }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_FONT_UNDERLINE", wxTEXT_ATTR_FONT_UNDERLINE }, - { "wxTEXT_ATTR_FONT_WEIGHT", wxTEXT_ATTR_FONT_WEIGHT }, - { "wxTEXT_ATTR_LEFT_INDENT", wxTEXT_ATTR_LEFT_INDENT }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_LINE_SPACING", wxTEXT_ATTR_LINE_SPACING }, - { "wxTEXT_ATTR_LINE_SPACING_HALF", wxTEXT_ATTR_LINE_SPACING_HALF }, - { "wxTEXT_ATTR_LINE_SPACING_NORMAL", wxTEXT_ATTR_LINE_SPACING_NORMAL }, - { "wxTEXT_ATTR_LINE_SPACING_TWICE", wxTEXT_ATTR_LINE_SPACING_TWICE }, - { "wxTEXT_ATTR_LIST_STYLE_NAME", wxTEXT_ATTR_LIST_STYLE_NAME }, - { "wxTEXT_ATTR_OUTLINE_LEVEL", wxTEXT_ATTR_OUTLINE_LEVEL }, - { "wxTEXT_ATTR_PAGE_BREAK", wxTEXT_ATTR_PAGE_BREAK }, - { "wxTEXT_ATTR_PARAGRAPH", wxTEXT_ATTR_PARAGRAPH }, - { "wxTEXT_ATTR_PARAGRAPH_STYLE_NAME", wxTEXT_ATTR_PARAGRAPH_STYLE_NAME }, - { "wxTEXT_ATTR_PARA_SPACING_AFTER", wxTEXT_ATTR_PARA_SPACING_AFTER }, - { "wxTEXT_ATTR_PARA_SPACING_BEFORE", wxTEXT_ATTR_PARA_SPACING_BEFORE }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_RIGHT_INDENT", wxTEXT_ATTR_RIGHT_INDENT }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_TABS", wxTEXT_ATTR_TABS }, -#elif wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_TABS", wxTEXT_ATTR_TABS }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTEXT_ATTR_TEXT_COLOUR", wxTEXT_ATTR_TEXT_COLOUR }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTEXT_ATTR_URL", wxTEXT_ATTR_URL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTE_AUTO_SCROLL", wxTE_AUTO_SCROLL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { "wxTE_AUTO_URL", wxTE_AUTO_URL }, - { "wxTE_BESTWRAP", wxTE_BESTWRAP }, - { "wxTE_CAPITALIZE", wxTE_CAPITALIZE }, - { "wxTE_CENTRE", wxTE_CENTRE }, - { "wxTE_CHARWRAP", wxTE_CHARWRAP }, - { "wxTE_DONTWRAP", wxTE_DONTWRAP }, - { "wxTE_HT_BEFORE", wxTE_HT_BEFORE }, - { "wxTE_HT_BELOW", wxTE_HT_BELOW }, - { "wxTE_HT_BEYOND", wxTE_HT_BEYOND }, - { "wxTE_HT_ON_TEXT", wxTE_HT_ON_TEXT }, - { "wxTE_HT_UNKNOWN", wxTE_HT_UNKNOWN }, - { "wxTE_LEFT", wxTE_LEFT }, - { "wxTE_MULTILINE", wxTE_MULTILINE }, - { "wxTE_NOHIDESEL", wxTE_NOHIDESEL }, - { "wxTE_NO_VSCROLL", wxTE_NO_VSCROLL }, - { "wxTE_PASSWORD", wxTE_PASSWORD }, - { "wxTE_PROCESS_ENTER", wxTE_PROCESS_ENTER }, - { "wxTE_PROCESS_TAB", wxTE_PROCESS_TAB }, - { "wxTE_READONLY", wxTE_READONLY }, - { "wxTE_RICH", wxTE_RICH }, - { "wxTE_RICH2", wxTE_RICH2 }, - { "wxTE_RIGHT", wxTE_RIGHT }, - { "wxTE_WORDWRAP", wxTE_WORDWRAP }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - { "wxTILE", wxTILE }, - -#if wxLUA_USE_wxTimer && wxUSE_TIMER - { "wxTIMER_CONTINUOUS", wxTIMER_CONTINUOUS }, - { "wxTIMER_ONE_SHOT", wxTIMER_ONE_SHOT }, -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) - { "wxTINY_CAPTION_HORIZ", wxTINY_CAPTION_HORIZ }, - { "wxTINY_CAPTION_VERT", wxTINY_CAPTION_VERT }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame)) - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - { "wxTL_3STATE", wxTL_3STATE }, - { "wxTL_CHECKBOX", wxTL_CHECKBOX }, - { "wxTL_DEFAULT_STYLE", wxTL_DEFAULT_STYLE }, - { "wxTL_MULTIPLE", wxTL_MULTIPLE }, -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "wxTL_NO_HEADER", wxTL_NO_HEADER }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - { "wxTL_SINGLE", wxTL_SINGLE }, - { "wxTL_STYLE_MASK", wxTL_STYLE_MASK }, - { "wxTL_USER_3STATE", wxTL_USER_3STATE }, -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if wxLUA_USE_wxToolbar - { "wxTOOL_STYLE_BUTTON", wxTOOL_STYLE_BUTTON }, - { "wxTOOL_STYLE_CONTROL", wxTOOL_STYLE_CONTROL }, - { "wxTOOL_STYLE_SEPARATOR", wxTOOL_STYLE_SEPARATOR }, -#endif // wxLUA_USE_wxToolbar - - { "wxTOP", wxTOP }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - { "wxTP_DEFAULT", wxTP_DEFAULT }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - -#if wxLUA_USE_wxColourPenBrush - { "wxTRANSPARENT", wxTRANSPARENT }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxTRANSPARENT_WINDOW", wxTRANSPARENT_WINDOW }, - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { "wxTREE_HITTEST_ABOVE", wxTREE_HITTEST_ABOVE }, - { "wxTREE_HITTEST_BELOW", wxTREE_HITTEST_BELOW }, - { "wxTREE_HITTEST_NOWHERE", wxTREE_HITTEST_NOWHERE }, - { "wxTREE_HITTEST_ONITEM", wxTREE_HITTEST_ONITEM }, - { "wxTREE_HITTEST_ONITEMBUTTON", wxTREE_HITTEST_ONITEMBUTTON }, - { "wxTREE_HITTEST_ONITEMICON", wxTREE_HITTEST_ONITEMICON }, - { "wxTREE_HITTEST_ONITEMINDENT", wxTREE_HITTEST_ONITEMINDENT }, - { "wxTREE_HITTEST_ONITEMLABEL", wxTREE_HITTEST_ONITEMLABEL }, - { "wxTREE_HITTEST_ONITEMLOWERPART", wxTREE_HITTEST_ONITEMLOWERPART }, - { "wxTREE_HITTEST_ONITEMRIGHT", wxTREE_HITTEST_ONITEMRIGHT }, - { "wxTREE_HITTEST_ONITEMSTATEICON", wxTREE_HITTEST_ONITEMSTATEICON }, - { "wxTREE_HITTEST_ONITEMUPPERPART", wxTREE_HITTEST_ONITEMUPPERPART }, - { "wxTREE_HITTEST_TOLEFT", wxTREE_HITTEST_TOLEFT }, - { "wxTREE_HITTEST_TORIGHT", wxTREE_HITTEST_TORIGHT }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "wxTREE_ITEMSTATE_NEXT", wxTREE_ITEMSTATE_NEXT }, - { "wxTREE_ITEMSTATE_NONE", wxTREE_ITEMSTATE_NONE }, - { "wxTREE_ITEMSTATE_PREV", wxTREE_ITEMSTATE_PREV }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { "wxTR_DEFAULT_STYLE", wxTR_DEFAULT_STYLE }, - { "wxTR_EDIT_LABELS", wxTR_EDIT_LABELS }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "wxTR_EXTENDED", wxTR_EXTENDED }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { "wxTR_FULL_ROW_HIGHLIGHT", wxTR_FULL_ROW_HIGHLIGHT }, - { "wxTR_HAS_BUTTONS", wxTR_HAS_BUTTONS }, - { "wxTR_HAS_VARIABLE_ROW_HEIGHT", wxTR_HAS_VARIABLE_ROW_HEIGHT }, - { "wxTR_HIDE_ROOT", wxTR_HIDE_ROOT }, - { "wxTR_LINES_AT_ROOT", wxTR_LINES_AT_ROOT }, - { "wxTR_MULTIPLE", wxTR_MULTIPLE }, - { "wxTR_NO_BUTTONS", wxTR_NO_BUTTONS }, - { "wxTR_NO_LINES", wxTR_NO_LINES }, - { "wxTR_ROW_LINES", wxTR_ROW_LINES }, - { "wxTR_SINGLE", wxTR_SINGLE }, - { "wxTR_TWIST_BUTTONS", wxTR_TWIST_BUTTONS }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - { "wxTextEntryDialogStyle", wxTextEntryDialogStyle }, - { "wxTextEntryDialogStyle", wxTextEntryDialogStyle }, -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxTop", wxTop }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { "wxTreeItemIcon_Expanded", wxTreeItemIcon_Expanded }, - { "wxTreeItemIcon_Max", wxTreeItemIcon_Max }, - { "wxTreeItemIcon_Normal", wxTreeItemIcon_Normal }, - { "wxTreeItemIcon_Selected", wxTreeItemIcon_Selected }, - { "wxTreeItemIcon_SelectedExpanded", wxTreeItemIcon_SelectedExpanded }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - { "wxTreeListCtrl::NO_IMAGE", wxTreeListCtrl::NO_IMAGE }, -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - - { "wxUP", wxUP }, - { "wxUPDATE_UI_FROMIDLE", wxUPDATE_UI_FROMIDLE }, - { "wxUPDATE_UI_NONE", wxUPDATE_UI_NONE }, - { "wxUPDATE_UI_PROCESS_ALL", wxUPDATE_UI_PROCESS_ALL }, - { "wxUPDATE_UI_PROCESS_SPECIFIED", wxUPDATE_UI_PROCESS_SPECIFIED }, - { "wxUPDATE_UI_RECURSE", wxUPDATE_UI_RECURSE }, - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - { "wxUSER_ATTENTION_ERROR", wxUSER_ATTENTION_ERROR }, - { "wxUSER_ATTENTION_INFO", wxUSER_ATTENTION_INFO }, -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - -#if wxLUA_USE_wxColourPenBrush - { "wxUSER_DASH", wxUSER_DASH }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxUnconstrained", wxUnconstrained }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxFont - { "wxVARIABLE", wxVARIABLE }, -#endif // wxLUA_USE_wxFont - - { "wxVERTICAL", wxVERTICAL }, - -#if wxLUA_USE_wxColourPenBrush - { "wxVERTICAL_HATCH", wxVERTICAL_HATCH }, -#endif // wxLUA_USE_wxColourPenBrush - - { "wxVSCROLL", wxVSCROLL }, - { "wxWANTS_CHARS", wxWANTS_CHARS }, - { "wxWEST", wxWEST }, - -#if wxLUA_USE_wxDC - { "wxWINDING_RULE", wxWINDING_RULE }, -#endif // wxLUA_USE_wxDC - - { "wxWINDOW_VARIANT_LARGE", wxWINDOW_VARIANT_LARGE }, - { "wxWINDOW_VARIANT_MAX", wxWINDOW_VARIANT_MAX }, - { "wxWINDOW_VARIANT_MINI", wxWINDOW_VARIANT_MINI }, - { "wxWINDOW_VARIANT_NORMAL", wxWINDOW_VARIANT_NORMAL }, - { "wxWINDOW_VARIANT_SMALL", wxWINDOW_VARIANT_SMALL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - { "wxWRAPSIZER_DEFAULT_FLAGS", wxWRAPSIZER_DEFAULT_FLAGS }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - - { "wxWS_EX_BLOCK_EVENTS", wxWS_EX_BLOCK_EVENTS }, - { "wxWS_EX_PROCESS_IDLE", wxWS_EX_PROCESS_IDLE }, - { "wxWS_EX_PROCESS_UI_UPDATES", wxWS_EX_PROCESS_UI_UPDATES }, - { "wxWS_EX_TRANSIENT", wxWS_EX_TRANSIENT }, - { "wxWS_EX_VALIDATE_RECURSIVELY", wxWS_EX_VALIDATE_RECURSIVELY }, - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { "wxWidth", wxWidth }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxDC - { "wxXOR", wxXOR }, -#endif // wxLUA_USE_wxDC - - { "wxYES", wxYES }, - { "wxYES_DEFAULT", wxYES_DEFAULT }, - { "wxYES_NO", wxYES_NO }, - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxcore() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxcore(size_t &count) -{ - static wxLuaBindString stringList[] = - { -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_ADD_BOOKMARK", NULL, wxART_ADD_BOOKMARK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_ADD_BOOKMARK", wxART_ADD_BOOKMARK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_BUTTON", NULL, wxART_BUTTON }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_BUTTON", wxART_BUTTON, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CDROM", NULL, wxART_CDROM }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CDROM", wxART_CDROM, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CMN_DIALOG", NULL, wxART_CMN_DIALOG }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CMN_DIALOG", wxART_CMN_DIALOG, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_COPY", NULL, wxART_COPY }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_COPY", wxART_COPY, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CROSS_MARK", NULL, wxART_CROSS_MARK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CROSS_MARK", wxART_CROSS_MARK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CUT", NULL, wxART_CUT }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_CUT", wxART_CUT, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_DELETE", NULL, wxART_DELETE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_DELETE", wxART_DELETE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_DEL_BOOKMARK", NULL, wxART_DEL_BOOKMARK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_DEL_BOOKMARK", wxART_DEL_BOOKMARK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_ERROR", NULL, wxART_ERROR }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_ERROR", wxART_ERROR, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_EXECUTABLE_FILE", NULL, wxART_EXECUTABLE_FILE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_EXECUTABLE_FILE", wxART_EXECUTABLE_FILE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FILE_OPEN", NULL, wxART_FILE_OPEN }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FILE_OPEN", wxART_FILE_OPEN, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FILE_SAVE", NULL, wxART_FILE_SAVE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FILE_SAVE", wxART_FILE_SAVE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FILE_SAVE_AS", NULL, wxART_FILE_SAVE_AS }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FILE_SAVE_AS", wxART_FILE_SAVE_AS, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FIND", NULL, wxART_FIND }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FIND", wxART_FIND, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FIND_AND_REPLACE", NULL, wxART_FIND_AND_REPLACE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FIND_AND_REPLACE", wxART_FIND_AND_REPLACE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FLOPPY", NULL, wxART_FLOPPY }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FLOPPY", wxART_FLOPPY, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FOLDER", NULL, wxART_FOLDER }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FOLDER", wxART_FOLDER, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FOLDER_OPEN", NULL, wxART_FOLDER_OPEN }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FOLDER_OPEN", wxART_FOLDER_OPEN, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FRAME_ICON", NULL, wxART_FRAME_ICON }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_FRAME_ICON", wxART_FRAME_ICON, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_BACK", NULL, wxART_GO_BACK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_BACK", wxART_GO_BACK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_DIR_UP", NULL, wxART_GO_DIR_UP }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_DIR_UP", wxART_GO_DIR_UP, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_DOWN", NULL, wxART_GO_DOWN }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_DOWN", wxART_GO_DOWN, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_FORWARD", NULL, wxART_GO_FORWARD }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_FORWARD", wxART_GO_FORWARD, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_HOME", NULL, wxART_GO_HOME }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_HOME", wxART_GO_HOME, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_TO_PARENT", NULL, wxART_GO_TO_PARENT }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_TO_PARENT", wxART_GO_TO_PARENT, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_UP", NULL, wxART_GO_UP }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_GO_UP", wxART_GO_UP, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HARDDISK", NULL, wxART_HARDDISK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HARDDISK", wxART_HARDDISK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP", NULL, wxART_HELP }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP", wxART_HELP, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_BOOK", NULL, wxART_HELP_BOOK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_BOOK", wxART_HELP_BOOK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_BROWSER", NULL, wxART_HELP_BROWSER }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_BROWSER", wxART_HELP_BROWSER, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_FOLDER", NULL, wxART_HELP_FOLDER }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_FOLDER", wxART_HELP_FOLDER, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_PAGE", NULL, wxART_HELP_PAGE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_PAGE", wxART_HELP_PAGE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_SETTINGS", NULL, wxART_HELP_SETTINGS }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_SETTINGS", wxART_HELP_SETTINGS, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_SIDE_PANEL", NULL, wxART_HELP_SIDE_PANEL }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_HELP_SIDE_PANEL", wxART_HELP_SIDE_PANEL, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_INFORMATION", NULL, wxART_INFORMATION }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_INFORMATION", wxART_INFORMATION, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_LIST_VIEW", NULL, wxART_LIST_VIEW }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_LIST_VIEW", wxART_LIST_VIEW, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_MENU", NULL, wxART_MENU }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_MENU", wxART_MENU, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_MESSAGE_BOX", NULL, wxART_MESSAGE_BOX }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_MESSAGE_BOX", wxART_MESSAGE_BOX, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_MISSING_IMAGE", NULL, wxART_MISSING_IMAGE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_MISSING_IMAGE", wxART_MISSING_IMAGE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_NEW", NULL, wxART_NEW }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_NEW", wxART_NEW, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_NEW_DIR", NULL, wxART_NEW_DIR }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_NEW_DIR", wxART_NEW_DIR, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_NORMAL_FILE", NULL, wxART_NORMAL_FILE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_NORMAL_FILE", wxART_NORMAL_FILE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_OTHER", NULL, wxART_OTHER }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_OTHER", wxART_OTHER, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_PASTE", NULL, wxART_PASTE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_PASTE", wxART_PASTE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_PRINT", NULL, wxART_PRINT }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_PRINT", wxART_PRINT, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_QUESTION", NULL, wxART_QUESTION }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_QUESTION", wxART_QUESTION, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_QUIT", NULL, wxART_QUIT }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_QUIT", wxART_QUIT, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_REDO", NULL, wxART_REDO }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_REDO", wxART_REDO, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_REMOVABLE", NULL, wxART_REMOVABLE }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_REMOVABLE", wxART_REMOVABLE, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_REPORT_VIEW", NULL, wxART_REPORT_VIEW }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_REPORT_VIEW", wxART_REPORT_VIEW, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_TICK_MARK", NULL, wxART_TICK_MARK }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_TICK_MARK", wxART_TICK_MARK, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_TIP", NULL, wxART_TIP }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_TIP", wxART_TIP, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_TOOLBAR", NULL, wxART_TOOLBAR }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_TOOLBAR", wxART_TOOLBAR, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_UNDO", NULL, wxART_UNDO }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_UNDO", wxART_UNDO, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_WARNING", NULL, wxART_WARNING }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) - { "wxART_WARNING", wxART_WARNING, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxArtProvider) -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) - { "wxDirDialogDefaultFolderStr", NULL, wxDirDialogDefaultFolderStr }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) - { "wxDirDialogDefaultFolderStr", wxDirDialogDefaultFolderStr, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) - { "wxDirSelectorPromptStr", NULL, wxT("Select a directory") }, - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - { "wxFileSelectorDefaultWildcardStr", NULL, wxFileSelectorDefaultWildcardStr }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - { "wxFileSelectorDefaultWildcardStr", wxFileSelectorDefaultWildcardStr, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) -#if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - { "wxFileSelectorPromptStr", NULL, wxT("Select a file") }, -#endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - -#if (!wxCHECK_VERSION(2,9,0)) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - { "wxGetPasswordFromUserPromptStr", NULL, wxGetPasswordFromUserPromptStr }, -#elif (wxCHECK_VERSION(2,9,0)) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - { "wxGetPasswordFromUserPromptStr", wxGetPasswordFromUserPromptStr, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - { "wxIMAGE_OPTION_BITSPERSAMPLE", NULL, wxT("BitsPerSample") }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxIMAGE_OPTION_BMP_FORMAT", NULL, wxT("wxBMP_FORMAT") }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - { "wxIMAGE_OPTION_COMPRESSION", NULL, wxT("Compression") }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "wxIMAGE_OPTION_CUR_HOTSPOT_X", NULL, wxIMAGE_OPTION_CUR_HOTSPOT_X }, - { "wxIMAGE_OPTION_CUR_HOTSPOT_Y", NULL, wxIMAGE_OPTION_CUR_HOTSPOT_Y }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxIMAGE_OPTION_FILENAME", NULL, wxT("FileName") }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - { "wxIMAGE_OPTION_IMAGEDESCRIPTOR", NULL, wxT("ImageDescriptor") }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - { "wxIMAGE_OPTION_PNG_BITDEPTH", NULL, wxIMAGE_OPTION_PNG_BITDEPTH }, - { "wxIMAGE_OPTION_PNG_FORMAT", NULL, wxIMAGE_OPTION_PNG_FORMAT }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxIMAGE_OPTION_QUALITY", NULL, wxT("quality") }, - { "wxIMAGE_OPTION_RESOLUTION", NULL, wxT("Resolution") }, - { "wxIMAGE_OPTION_RESOLUTIONUNIT", NULL, wxT("ResolutionUnit") }, - { "wxIMAGE_OPTION_RESOLUTIONX", NULL, wxT("ResolutionX") }, - { "wxIMAGE_OPTION_RESOLUTIONY", NULL, wxT("ResolutionY") }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - { "wxIMAGE_OPTION_SAMPLESPERPIXEL", NULL, wxT("SamplesPerPixel") }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxcore() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxcore(size_t &count) -{ - static wxLuaBindObject objectList[] = - { -#if wxLUA_USE_wxColourPenBrush - { "wxBLACK", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxBLACK }, - { "wxBLACK_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxBLACK_BRUSH }, - { "wxBLACK_DASHED_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxBLACK_DASHED_PEN }, - { "wxBLACK_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxBLACK_PEN }, - { "wxBLUE", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxBLUE }, - { "wxBLUE_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxBLUE_BRUSH }, - { "wxBLUE_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxBLUE_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxCursor - { "wxCROSS_CURSOR", &wxluatype_wxCursor, NULL, (const void **) &wxLua_wxCROSS_CURSOR }, -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxColourPenBrush - { "wxCYAN", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxCYAN }, - { "wxCYAN_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxCYAN_BRUSH }, - { "wxCYAN_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxCYAN_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxPointSizeRect - { "wxDefaultPosition", &wxluatype_wxPoint, &wxDefaultPosition, NULL }, - { "wxDefaultSize", &wxluatype_wxSize, &wxDefaultSize, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - { "wxDefaultValidator", &wxluatype_wxValidator, &wxDefaultValidator, NULL }, -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - { "wxDefaultVideoMode", &wxluatype_wxVideoMode, &wxDefaultVideoMode, NULL }, -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { "wxFormatInvalid", &wxluatype_wxDataFormat, &wxFormatInvalid, NULL }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxColourPenBrush - { "wxGREEN", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxGREEN }, - { "wxGREEN_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxGREEN_BRUSH }, - { "wxGREEN_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxGREEN_PEN }, - { "wxGREY_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxGREY_BRUSH }, - { "wxGREY_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxGREY_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxCursor - { "wxHOURGLASS_CURSOR", &wxluatype_wxCursor, NULL, (const void **) &wxLua_wxHOURGLASS_CURSOR }, -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxFont - { "wxITALIC_FONT", &wxluatype_wxFont, NULL, (const void **) &wxLua_wxITALIC_FONT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - { "wxLIGHT_GREY", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxLIGHT_GREY }, - { "wxLIGHT_GREY_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxLIGHT_GREY_BRUSH }, - { "wxLIGHT_GREY_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxLIGHT_GREY_PEN }, - { "wxMEDIUM_GREY_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxMEDIUM_GREY_BRUSH }, - { "wxMEDIUM_GREY_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxMEDIUM_GREY_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont - { "wxNORMAL_FONT", &wxluatype_wxFont, NULL, (const void **) &wxLua_wxNORMAL_FONT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - { "wxNullAcceleratorTable", &wxluatype_wxAcceleratorTable, &wxNullAcceleratorTable, NULL }, -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if wxLUA_USE_wxBitmap - { "wxNullBitmap", &wxluatype_wxBitmap, &wxNullBitmap, NULL }, -#endif // wxLUA_USE_wxBitmap - -#if wxLUA_USE_wxColourPenBrush - { "wxNullBrush", &wxluatype_wxBrush, &wxNullBrush, NULL }, - { "wxNullColour", &wxluatype_wxColour, &wxNullColour, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxCursor - { "wxNullCursor", &wxluatype_wxCursor, &wxNullCursor, NULL }, -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxFont - { "wxNullFont", &wxluatype_wxFont, &wxNullFont, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxIcon - { "wxNullIcon", &wxluatype_wxIcon, &wxNullIcon, NULL }, -#endif // wxLUA_USE_wxIcon - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { "wxNullImage", &wxluatype_wxImage, &wxNullImage, NULL }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxLUA_USE_wxPalette && wxUSE_PALETTE - { "wxNullPalette", &wxluatype_wxPalette, &wxNullPalette, NULL }, -#endif // wxLUA_USE_wxPalette && wxUSE_PALETTE - -#if wxLUA_USE_wxColourPenBrush - { "wxNullPen", &wxluatype_wxPen, &wxNullPen, NULL }, - { "wxRED", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxRED }, - { "wxRED_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxRED_BRUSH }, - { "wxRED_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxRED_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont - { "wxSMALL_FONT", &wxluatype_wxFont, NULL, (const void **) &wxLua_wxSMALL_FONT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxCursor - { "wxSTANDARD_CURSOR", &wxluatype_wxCursor, NULL, (const void **) &wxLua_wxSTANDARD_CURSOR }, -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxFont - { "wxSWISS_FONT", &wxluatype_wxFont, NULL, (const void **) &wxLua_wxSWISS_FONT }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - { "wxTRANSPARENT_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxTRANSPARENT_BRUSH }, - { "wxTRANSPARENT_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxTRANSPARENT_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - { "wxTheBrushList", &wxluatype_wxBrushList, NULL, (const void **) &wxTheBrushList }, -#endif // (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - { "wxTheClipboard", &wxluatype_wxClipboard, NULL, (const void **) &wxTheClipboard }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - -#if wxLUA_USE_wxColourPenBrush - { "wxTheColourDatabase", &wxluatype_wxColourDatabase, NULL, (const void **) &wxTheColourDatabase }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFontList - { "wxTheFontList", &wxluatype_wxFontList, NULL, (const void **) &wxTheFontList }, -#endif // wxLUA_USE_wxFontList - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - { "wxThePenList", &wxluatype_wxPenList, NULL, (const void **) &wxThePenList }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - -#if wxLUA_USE_wxColourPenBrush - { "wxWHITE", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxWHITE }, - { "wxWHITE_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxWHITE_BRUSH }, - { "wxWHITE_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxWHITE_PEN }, - { "wxYELLOW", &wxluatype_wxColour, NULL, (const void **) &wxLua_wxYELLOW }, - { "wxYELLOW_BRUSH", &wxluatype_wxBrush, NULL, (const void **) &wxLua_wxYELLOW_BRUSH }, - { "wxYELLOW_PEN", &wxluatype_wxPen, NULL, (const void **) &wxLua_wxYELLOW_PEN }, -#endif // wxLUA_USE_wxColourPenBrush - - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxcore() is called to register global functions -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxCursor -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxBeginBusyCursor[] = { &wxluatype_wxCursor, NULL }; -// void wxBeginBusyCursor(wxCursor *cursor = wxLua_wxHOURGLASS_CURSOR); -static int LUACALL wxLua_function_wxBeginBusyCursor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCursor cursor = wxLua_wxHOURGLASS_CURSOR - wxCursor * cursor = (argCount >= 1 ? (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor) : wxLua_wxHOURGLASS_CURSOR); - // call wxBeginBusyCursor - wxBeginBusyCursor(cursor); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxBeginBusyCursor[1] = {{ wxLua_function_wxBeginBusyCursor, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxBeginBusyCursor }}; - -#endif // wxLUA_USE_wxCursor - -// void wxBell(); -static int LUACALL wxLua_function_wxBell(lua_State *L) -{ - // call wxBell - wxBell(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxBell[1] = {{ wxLua_function_wxBell, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// %override wxLua_function_wxClientDisplayRect -// %function void wxClientDisplayRect(int *x, int *y,int *width, int *height) -static int LUACALL wxLua_function_wxClientDisplayRect(lua_State *L) -{ - int x = 0, y = 0, width = 0, height = 0; - // call wxClientDisplayRect - wxClientDisplayRect(&x, &y, &width, &height); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 4; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxClientDisplayRect[1] = {{ wxLua_function_wxClientDisplayRect, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// bool wxColourDisplay(); -static int LUACALL wxLua_function_wxColourDisplay(lua_State *L) -{ - // call wxColourDisplay - bool returns = (wxColourDisplay()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxColourDisplay[1] = {{ wxLua_function_wxColourDisplay, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxDirSelector[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxWindow, NULL }; -// wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr, const wxString& default_path = "", long style = wxDD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, wxWindow *parent = NULL); -static int LUACALL wxLua_function_wxDirSelector(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 5 ? (wxWindow *)wxluaT_getuserdatatype(L, 5, wxluatype_wxWindow) : NULL); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxDD_DEFAULT_STYLE - long style = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : wxDD_DEFAULT_STYLE); - // const wxString default_path = "" - const wxString default_path = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString message = wxDirSelectorPromptStr - const wxString message = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxDirSelectorPromptStr)); - // call wxDirSelector - wxString returns = (wxDirSelector(message, default_path, style, *pos, parent)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxDirSelector[1] = {{ wxLua_function_wxDirSelector, WXLUAMETHOD_CFUNCTION, 0, 5, s_wxluatypeArray_wxLua_function_wxDirSelector }}; - -#endif // wxLUA_USE_wxPointSizeRect - -// int wxDisplayDepth(); -static int LUACALL wxLua_function_wxDisplayDepth(lua_State *L) -{ - // call wxDisplayDepth - int returns = (wxDisplayDepth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxDisplayDepth[1] = {{ wxLua_function_wxDisplayDepth, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// %override wxLua_function_wxDisplaySize -// %function void wxDisplaySize(int *width, int *height) -static int LUACALL wxLua_function_wxDisplaySize(lua_State *L) -{ - int height = 0, width = 0; - // call wxDisplaySize - wxDisplaySize(&width, &height); - // return the number of parameters - lua_pushinteger(L, width); - lua_pushinteger(L, height); - return 2; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxDisplaySize[1] = {{ wxLua_function_wxDisplaySize, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// %override wxLua_function_wxDisplaySizeMM -// %function void wxDisplaySizeMM(int *width, int *height) -static int LUACALL wxLua_function_wxDisplaySizeMM(lua_State *L) -{ - int height = 0, width = 0; - // call wxDisplaySizeMM - wxDisplaySizeMM(&width, &height); - // return the number of parameters - lua_pushinteger(L, width); - lua_pushinteger(L, height); - return 2; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxDisplaySizeMM[1] = {{ wxLua_function_wxDisplaySizeMM, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxEnableTopLevelWindows[] = { &wxluatype_TBOOLEAN, NULL }; -// void wxEnableTopLevelWindows(bool enable = true); -static int LUACALL wxLua_function_wxEnableTopLevelWindows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call wxEnableTopLevelWindows - wxEnableTopLevelWindows(enable); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxEnableTopLevelWindows[1] = {{ wxLua_function_wxEnableTopLevelWindows, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxEnableTopLevelWindows }}; - -// void wxEndBusyCursor(); -static int LUACALL wxLua_function_wxEndBusyCursor(lua_State *L) -{ - // call wxEndBusyCursor - wxEndBusyCursor(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxEndBusyCursor[1] = {{ wxLua_function_wxEndBusyCursor, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxExecute1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxProcess, NULL }; -// %wxchkver_2_6 long wxExecute(const wxString& command, int flags = wxEXEC_ASYNC, wxProcess *process = NULL); -static int LUACALL wxLua_function_wxExecute1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxProcess process = NULL - wxProcess * process = (argCount >= 3 ? (wxProcess *)wxluaT_getuserdatatype(L, 3, wxluatype_wxProcess) : NULL); - // int flags = wxEXEC_ASYNC - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxEXEC_ASYNC); - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 1); - // call wxExecute - long returns = (wxExecute(command, flags, process)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxExecute1[1] = {{ wxLua_function_wxExecute1, WXLUAMETHOD_CFUNCTION, 1, 3, s_wxluatypeArray_wxLua_function_wxExecute1 }}; - -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxExecute[] = { &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_wxProcess, NULL }; -// !%wxchkver_2_6 long wxExecute(const wxString& command, bool sync = false, wxProcess *callback = NULL); -static int LUACALL wxLua_function_wxExecute(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxProcess callback = NULL - wxProcess * callback = (argCount >= 3 ? (wxProcess *)wxluaT_getuserdatatype(L, 3, wxluatype_wxProcess) : NULL); - // bool sync = false - bool sync = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 1); - // call wxExecute - long returns = (wxExecute(command, sync, callback)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxExecute[1] = {{ wxLua_function_wxExecute, WXLUAMETHOD_CFUNCTION, 1, 3, s_wxluatypeArray_wxLua_function_wxExecute }}; - -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) - -#if wxLUA_USE_wxArrayString -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxExecuteStdout[] = { &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_TNUMBER, NULL }; -// %override wxLua_function_wxExecuteStdout -// %function %rename wxExecuteStdout long wxExecute(const wxString& command, wxArrayString& output, int flags = 0) -static int LUACALL wxLua_function_wxExecuteStdout(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getintegertype(L, 2) : 0); - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 1); - // call wxExecute - wxArrayString output; - long returns = wxExecute(command, output, flags); - // push the result number - lua_pushinteger(L, returns); - wxlua_pushwxArrayStringtable(L, output); - - return 2; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxExecuteStdout[1] = {{ wxLua_function_wxExecuteStdout, WXLUAMETHOD_CFUNCTION, 2, 3, s_wxluatypeArray_wxLua_function_wxExecuteStdout }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxExecuteStdoutStderr[] = { &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxArrayString, &wxluatype_TNUMBER, NULL }; -// %override wxLua_function_wxExecuteStdoutStderr -// %function %rename wxExecuteStdoutStderr long wxExecute(const wxString& command, wxArrayString& output, wxArrayString& errors, int flags = 0) -static int LUACALL wxLua_function_wxExecuteStdoutStderr(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getintegertype(L, 2) : 0); - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 1); - // call wxExecute - wxArrayString output; - wxArrayString errors; - long returns = wxExecute(command, output, errors, flags); - // push the result number - lua_pushinteger(L, returns); - wxlua_pushwxArrayStringtable(L, output); - wxlua_pushwxArrayStringtable(L, errors); - - return 3; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxExecuteStdoutStderr[1] = {{ wxLua_function_wxExecuteStdoutStderr, WXLUAMETHOD_CFUNCTION, 3, 4, s_wxluatypeArray_wxLua_function_wxExecuteStdoutStderr }}; - -#endif // wxLUA_USE_wxArrayString - -// void wxExit(); -static int LUACALL wxLua_function_wxExit(lua_State *L) -{ - // call wxExit - wxExit(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxExit[1] = {{ wxLua_function_wxExit, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFileSelector[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// wxString wxFileSelector(const wxString& message, const wxString& default_path = "", const wxString& default_filename = "", const wxString& default_extension = "", const wxString& wildcard = "*.*", int flags = 0, wxWindow *parent = NULL, int x = -1, int y = -1); -static int LUACALL wxLua_function_wxFileSelector(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int y = -1 - int y = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : -1); - // int x = -1 - int x = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : -1); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 7 ? (wxWindow *)wxluaT_getuserdatatype(L, 7, wxluatype_wxWindow) : NULL); - // int flags = 0 - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // const wxString wildcard = "*.*" - const wxString wildcard = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxT("*.*"))); - // const wxString default_extension = "" - const wxString default_extension = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString default_filename = "" - const wxString default_filename = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString default_path = "" - const wxString default_path = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxFileSelector - wxString returns = (wxFileSelector(message, default_path, default_filename, default_extension, wildcard, flags, parent, x, y)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFileSelector[1] = {{ wxLua_function_wxFileSelector, WXLUAMETHOD_CFUNCTION, 1, 9, s_wxluatypeArray_wxLua_function_wxFileSelector }}; - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindFocusDescendant[] = { &wxluatype_wxWindow, NULL }; -// %wxchkver_2_8 wxWindow* wxFindFocusDescendant(wxWindow* ancestor); -static int LUACALL wxLua_function_wxFindFocusDescendant(lua_State *L) -{ - // wxWindow ancestor - wxWindow * ancestor = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call wxFindFocusDescendant - wxWindow* returns = (wxWindow*)wxFindFocusDescendant(ancestor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindFocusDescendant[1] = {{ wxLua_function_wxFindFocusDescendant, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxFindFocusDescendant }}; - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxFrame -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindMenuItemId[] = { &wxluatype_wxFrame, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// int wxFindMenuItemId(wxFrame *frame, const wxString& menuString, const wxString& itemString); -static int LUACALL wxLua_function_wxFindMenuItemId(lua_State *L) -{ - // const wxString itemString - const wxString itemString = wxlua_getwxStringtype(L, 3); - // const wxString menuString - const wxString menuString = wxlua_getwxStringtype(L, 2); - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call wxFindMenuItemId - int returns = (wxFindMenuItemId(frame, menuString, itemString)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindMenuItemId[1] = {{ wxLua_function_wxFindMenuItemId, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxFindMenuItemId }}; - -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindWindowAtPoint[] = { &wxluatype_wxPoint, NULL }; -// wxWindow* wxFindWindowAtPoint(const wxPoint& pt); -static int LUACALL wxLua_function_wxFindWindowAtPoint(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call wxFindWindowAtPoint - wxWindow* returns = (wxWindow*)wxFindWindowAtPoint(*pt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindWindowAtPoint[1] = {{ wxLua_function_wxFindWindowAtPoint, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxFindWindowAtPoint }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindWindowAtPointer[] = { &wxluatype_wxPoint, NULL }; -// wxWindow* wxFindWindowAtPointer(wxPoint& pt); -static int LUACALL wxLua_function_wxFindWindowAtPointer(lua_State *L) -{ - // wxPoint pt - wxPoint * pt = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call wxFindWindowAtPointer - wxWindow* returns = (wxWindow*)wxFindWindowAtPointer(*pt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindWindowAtPointer[1] = {{ wxLua_function_wxFindWindowAtPointer, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxFindWindowAtPointer }}; - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindWindowByLabel[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -// wxWindow* wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL); -static int LUACALL wxLua_function_wxFindWindowByLabel(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call wxFindWindowByLabel - wxWindow* returns = (wxWindow*)wxFindWindowByLabel(label, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindWindowByLabel[1] = {{ wxLua_function_wxFindWindowByLabel, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxFindWindowByLabel }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxFindWindowByName[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -// wxWindow* wxFindWindowByName(const wxString& name, wxWindow *parent=NULL); -static int LUACALL wxLua_function_wxFindWindowByName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call wxFindWindowByName - wxWindow* returns = (wxWindow*)wxFindWindowByName(name, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxFindWindowByName[1] = {{ wxLua_function_wxFindWindowByName, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxFindWindowByName }}; - - -#if (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetAccelFromString[] = { &wxluatype_TSTRING, NULL }; -// %wxcompat_2_6 wxAcceleratorEntry* wxGetAccelFromString(const wxString& label); // deprecated in 2.8 use wxAcceleratorEntry::Create() or FromString(); -static int LUACALL wxLua_function_wxGetAccelFromString(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call wxGetAccelFromString - wxAcceleratorEntry* returns = (wxAcceleratorEntry*)wxGetAccelFromString(label); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorEntry); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetAccelFromString[1] = {{ wxLua_function_wxGetAccelFromString, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxGetAccelFromString }}; - -#endif // (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if wxCHECK_VERSION(2,8,4) -// %wxchkver_2_8_4 wxWindow* wxGetActiveWindow(); -static int LUACALL wxLua_function_wxGetActiveWindow(lua_State *L) -{ - // call wxGetActiveWindow - wxWindow* returns = (wxWindow*)wxGetActiveWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetActiveWindow[1] = {{ wxLua_function_wxGetActiveWindow, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxCHECK_VERSION(2,8,4) - -#if wxLUA_USE_wxApp -// %override wxLua_function_wxGetApp -// %function wxApp* wxGetApp() -static int LUACALL wxLua_function_wxGetApp(lua_State *L) -{ - // call wxGetApp(), actually not since you have to have IMPLEMENT_APP - wxApp *returns = wxTheApp; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxApp); - // return the number of parameters - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetApp[1] = {{ wxLua_function_wxGetApp, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxLUA_USE_wxApp - -#if wxCHECK_VERSION(2,8,0) -// wxBatteryState wxGetBatteryState(); -static int LUACALL wxLua_function_wxGetBatteryState(lua_State *L) -{ - // call wxGetBatteryState - wxBatteryState returns = (wxGetBatteryState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetBatteryState[1] = {{ wxLua_function_wxGetBatteryState, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect -// wxRect wxGetClientDisplayRect(); -static int LUACALL wxLua_function_wxGetClientDisplayRect(lua_State *L) -{ - // call wxGetClientDisplayRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(wxGetClientDisplayRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetClientDisplayRect[1] = {{ wxLua_function_wxGetClientDisplayRect, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetColourFromUser1[] = { &wxluatype_wxWindow, &wxluatype_wxColour, &wxluatype_TSTRING, NULL }; -// wxUSE_COLOURDLG&&%wxchkver_2_8 wxColour wxGetColourFromUser(wxWindow *parent, const wxColour& colInit, const wxString& caption = ""); -static int LUACALL wxLua_function_wxGetColourFromUser1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString caption = "" - const wxString caption = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxColour colInit - const wxColour * colInit = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call wxGetColourFromUser - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(wxGetColourFromUser(parent, *colInit, caption)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetColourFromUser1[1] = {{ wxLua_function_wxGetColourFromUser1, WXLUAMETHOD_CFUNCTION, 2, 3, s_wxluatypeArray_wxLua_function_wxGetColourFromUser1 }}; - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && wxCHECK_VERSION(2,8,0)) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && !wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetColourFromUser[] = { &wxluatype_wxWindow, &wxluatype_wxColour, NULL }; -// wxUSE_COLOURDLG&&!%wxchkver_2_8 wxColour wxGetColourFromUser(wxWindow *parent, const wxColour& colInit); -static int LUACALL wxLua_function_wxGetColourFromUser(lua_State *L) -{ - // const wxColour colInit - const wxColour * colInit = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call wxGetColourFromUser - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(wxGetColourFromUser(parent, *colInit)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetColourFromUser[1] = {{ wxLua_function_wxGetColourFromUser, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxGetColourFromUser }}; - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && !wxCHECK_VERSION(2,8,0)) - -#if wxLUA_USE_wxPointSizeRect -// wxSize wxGetDisplaySize(); -static int LUACALL wxLua_function_wxGetDisplaySize(lua_State *L) -{ - // call wxGetDisplaySize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxGetDisplaySize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetDisplaySize[1] = {{ wxLua_function_wxGetDisplaySize, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// wxSize wxGetDisplaySizeMM(); -static int LUACALL wxLua_function_wxGetDisplaySizeMM(lua_State *L) -{ - // call wxGetDisplaySizeMM - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxGetDisplaySizeMM()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetDisplaySizeMM[1] = {{ wxLua_function_wxGetDisplaySizeMM, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetFontFromUser1[] = { &wxluatype_wxWindow, &wxluatype_wxFont, &wxluatype_TSTRING, NULL }; -// %wxchkver_2_8&&wxUSE_FONTDLG wxFont wxGetFontFromUser(wxWindow *parent = NULL, const wxFont& fontInit = wxNullFont, const wxString& caption = ""); -static int LUACALL wxLua_function_wxGetFontFromUser1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString caption = "" - const wxString caption = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxFont fontInit = wxNullFont - const wxFont * fontInit = (argCount >= 2 ? (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont) : &wxNullFont); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call wxGetFontFromUser - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(wxGetFontFromUser(parent, *fontInit, caption)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetFontFromUser1[1] = {{ wxLua_function_wxGetFontFromUser1, WXLUAMETHOD_CFUNCTION, 0, 3, s_wxluatypeArray_wxLua_function_wxGetFontFromUser1 }}; - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) - -#if (!wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetFontFromUser[] = { &wxluatype_wxWindow, &wxluatype_wxFont, NULL }; -// !%wxchkver_2_8&&wxUSE_FONTDLG wxFont wxGetFontFromUser(wxWindow *parent, const wxFont& fontInit); -static int LUACALL wxLua_function_wxGetFontFromUser(lua_State *L) -{ - // const wxFont fontInit - const wxFont * fontInit = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call wxGetFontFromUser - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(wxGetFontFromUser(parent, *fontInit)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetFontFromUser[1] = {{ wxLua_function_wxGetFontFromUser, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxGetFontFromUser }}; - -#endif // (!wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetKeyState[] = { &wxluatype_TINTEGER, NULL }; -// bool wxGetKeyState(wxKeyCode key); -static int LUACALL wxLua_function_wxGetKeyState(lua_State *L) -{ - // wxKeyCode key - wxKeyCode key = (wxKeyCode)wxlua_getenumtype(L, 1); - // call wxGetKeyState - bool returns = (wxGetKeyState(key)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetKeyState[1] = {{ wxLua_function_wxGetKeyState, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxGetKeyState }}; - - -#if wxLUA_USE_wxPointSizeRect -// wxPoint wxGetMousePosition(); -static int LUACALL wxLua_function_wxGetMousePosition(lua_State *L) -{ - // call wxGetMousePosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(wxGetMousePosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetMousePosition[1] = {{ wxLua_function_wxGetMousePosition, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(2,8,0) -// wxMouseState wxGetMouseState(); -static int LUACALL wxLua_function_wxGetMouseState(lua_State *L) -{ - // call wxGetMouseState - // allocate a new object using the copy constructor - wxMouseState* returns = new wxMouseState(wxGetMouseState()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMouseState); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseState); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetMouseState[1] = {{ wxLua_function_wxGetMouseState, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxCHECK_VERSION(2,8,0) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_CHOICEDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetMultipleChoices[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TTABLE, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// %override wxLua_function_wxGetMultipleChoices -// %function size_t wxGetMultipleChoices(wxArrayInt& selections,const wxString& message,const wxString& caption,int n, const wxString *choices,wxWindow *parent = (wxWindow *) NULL,int x = -1, int y = -1, bool centre = true, int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT); -static int LUACALL wxLua_function_wxGetMultipleChoices(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int height = wxCHOICE_HEIGHT - int height = (argCount >= 10 ? (int)wxlua_getnumbertype(L, 10) : wxCHOICE_HEIGHT); - // int width = wxCHOICE_WIDTH - int width = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : wxCHOICE_WIDTH); - // bool centre = true - bool centre = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : true); - // int y = -1 - int y = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : -1); - // int x = -1 - int x = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // wxWindow *parent = (wxWindow *) NULL - wxWindow *parent = (argCount >= 5 ? (wxWindow *)wxluaT_getuserdatatype(L, 5, wxluatype_wxWindow) : (wxWindow *) NULL); - // const wxString& choices[] - int count = 0; wxLuaSmartStringArray choices = wxlua_getwxStringarray(L, 4, count); - // const wxString& caption - wxString caption = wxlua_getwxStringtype(L, 3); - // const wxString& message - wxString message = wxlua_getwxStringtype(L, 2); - // wxArrayInt& selections - wxLuaSmartwxArrayInt selections = wxlua_getwxArrayInt(L, 1); - - // call wxGetMultipleChoices - size_t returns = wxGetMultipleChoices(selections, message, caption, count, choices, parent, x, y, centre, width, height); - - wxlua_pushwxArrayInttable(L, selections); - - // push the result number - lua_pushinteger(L, returns); - // return the number of parameters - return 2; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetMultipleChoices[1] = {{ wxLua_function_wxGetMultipleChoices, WXLUAMETHOD_CFUNCTION, 3, 9, s_wxluatypeArray_wxLua_function_wxGetMultipleChoices }}; - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_CHOICEDLG) - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetNumberFromUser1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -// wxUSE_NUMBERDLG long wxGetNumberFromUser(const wxString& message, const wxString& prompt, const wxString& caption, long value, long min = 0, long max = 100, wxWindow* parent = NULL, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_function_wxGetNumberFromUser1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 7 ? (wxWindow *)wxluaT_getuserdatatype(L, 7, wxluatype_wxWindow) : NULL); - // long max = 100 - long max = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 100); - // long min = 0 - long min = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // long value - long value = (long)wxlua_getnumbertype(L, 4); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 3); - // const wxString prompt - const wxString prompt = wxlua_getwxStringtype(L, 2); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxGetNumberFromUser - long returns = (wxGetNumberFromUser(message, prompt, caption, value, min, max, parent, *pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetNumberFromUser1[1] = {{ wxLua_function_wxGetNumberFromUser1, WXLUAMETHOD_CFUNCTION, 4, 8, s_wxluatypeArray_wxLua_function_wxGetNumberFromUser1 }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetNumberFromUser[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -// long wxGetNumberFromUser(const wxString& message, const wxString& prompt, const wxString& caption, long value, long min = 0, long max = 100, wxWindow *parent = NULL, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_function_wxGetNumberFromUser(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 7 ? (wxWindow *)wxluaT_getuserdatatype(L, 7, wxluatype_wxWindow) : NULL); - // long max = 100 - long max = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 100); - // long min = 0 - long min = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // long value - long value = (long)wxlua_getnumbertype(L, 4); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 3); - // const wxString prompt - const wxString prompt = wxlua_getwxStringtype(L, 2); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxGetNumberFromUser - long returns = (wxGetNumberFromUser(message, prompt, caption, value, min, max, parent, *pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetNumberFromUser[1] = {{ wxLua_function_wxGetNumberFromUser, WXLUAMETHOD_CFUNCTION, 4, 8, s_wxluatypeArray_wxLua_function_wxGetNumberFromUser }}; - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG) - -#if wxUSE_TEXTDLG -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetPasswordFromUser[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -// wxUSE_TEXTDLG wxString wxGetPasswordFromUser(const wxString& message, const wxString& caption = "Input text", const wxString& default_value = "", wxWindow *parent = NULL); -static int LUACALL wxLua_function_wxGetPasswordFromUser(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // const wxString default_value = "" - const wxString default_value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString caption = "Input text" - const wxString caption = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Input text"))); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxGetPasswordFromUser - wxString returns = (wxGetPasswordFromUser(message, caption, default_value, parent)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetPasswordFromUser[1] = {{ wxLua_function_wxGetPasswordFromUser, WXLUAMETHOD_CFUNCTION, 1, 4, s_wxluatypeArray_wxLua_function_wxGetPasswordFromUser }}; - -#endif // wxUSE_TEXTDLG - -#if wxCHECK_VERSION(2,8,0) -// wxPowerType wxGetPowerType(); -static int LUACALL wxLua_function_wxGetPowerType(lua_State *L) -{ - // call wxGetPowerType - wxPowerType returns = (wxGetPowerType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetPowerType[1] = {{ wxLua_function_wxGetPowerType, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxCHECK_VERSION(2,8,0) - -// unsigned long wxGetProcessId(); -static int LUACALL wxLua_function_wxGetProcessId(lua_State *L) -{ - // call wxGetProcessId - unsigned long returns = (wxGetProcessId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetProcessId[1] = {{ wxLua_function_wxGetProcessId, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxUSE_CHOICEDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetSelectedChoices[] = { &wxluatype_wxArrayInt, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// wxUSE_CHOICEDLG int wxGetSelectedChoices(wxArrayInt& selections, const wxString& message, const wxString& caption, const wxArrayString& aChoices, wxWindow* parent = NULL, int x = wxDefaultCoord, int y = wxDefaultCoord, bool centre = true, int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT); -static int LUACALL wxLua_function_wxGetSelectedChoices(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int height = wxCHOICE_HEIGHT - int height = (argCount >= 10 ? (int)wxlua_getnumbertype(L, 10) : wxCHOICE_HEIGHT); - // int width = wxCHOICE_WIDTH - int width = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : wxCHOICE_WIDTH); - // bool centre = true - bool centre = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : true); - // int y = wxDefaultCoord - int y = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : wxDefaultCoord); - // int x = wxDefaultCoord - int x = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDefaultCoord); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 5 ? (wxWindow *)wxluaT_getuserdatatype(L, 5, wxluatype_wxWindow) : NULL); - // const wxArrayString aChoices - wxLuaSmartwxArrayString aChoices = wxlua_getwxArrayString(L, 4); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 3); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxArrayInt selections - wxArrayInt * selections = (wxArrayInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayInt); - // call wxGetSelectedChoices - int returns = (wxGetSelectedChoices(*selections, message, caption, aChoices, parent, x, y, centre, width, height)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetSelectedChoices[1] = {{ wxLua_function_wxGetSelectedChoices, WXLUAMETHOD_CFUNCTION, 4, 10, s_wxluatypeArray_wxLua_function_wxGetSelectedChoices }}; - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxUSE_CHOICEDLG) - -#if (wxLUA_USE_wxArrayString) && (wxUSE_CHOICEDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetSingleChoice[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// wxUSE_CHOICEDLG wxString wxGetSingleChoice(const wxString& message, const wxString& caption, const wxArrayString& choices, wxWindow *parent = NULL, int x = wxDefaultCoord, int y = wxDefaultCoord, bool centre = true, int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT); -static int LUACALL wxLua_function_wxGetSingleChoice(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int height = wxCHOICE_HEIGHT - int height = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : wxCHOICE_HEIGHT); - // int width = wxCHOICE_WIDTH - int width = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : wxCHOICE_WIDTH); - // bool centre = true - bool centre = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : true); - // int y = wxDefaultCoord - int y = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDefaultCoord); - // int x = wxDefaultCoord - int x = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDefaultCoord); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 3); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 2); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxGetSingleChoice - wxString returns = (wxGetSingleChoice(message, caption, choices, parent, x, y, centre, width, height)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetSingleChoice[1] = {{ wxLua_function_wxGetSingleChoice, WXLUAMETHOD_CFUNCTION, 3, 9, s_wxluatypeArray_wxLua_function_wxGetSingleChoice }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetSingleChoiceIndex[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// wxUSE_CHOICEDLG int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption, const wxArrayString& choices, wxWindow *parent = NULL, int x = wxDefaultCoord, int y = wxDefaultCoord, bool centre = true, int width = wxCHOICE_WIDTH, int height = wxCHOICE_HEIGHT); -static int LUACALL wxLua_function_wxGetSingleChoiceIndex(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int height = wxCHOICE_HEIGHT - int height = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : wxCHOICE_HEIGHT); - // int width = wxCHOICE_WIDTH - int width = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : wxCHOICE_WIDTH); - // bool centre = true - bool centre = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : true); - // int y = wxDefaultCoord - int y = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxDefaultCoord); - // int x = wxDefaultCoord - int x = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxDefaultCoord); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 3); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 2); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxGetSingleChoiceIndex - int returns = (wxGetSingleChoiceIndex(message, caption, choices, parent, x, y, centre, width, height)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetSingleChoiceIndex[1] = {{ wxLua_function_wxGetSingleChoiceIndex, WXLUAMETHOD_CFUNCTION, 3, 9, s_wxluatypeArray_wxLua_function_wxGetSingleChoiceIndex }}; - -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_CHOICEDLG) - -#if wxUSE_TEXTDLG -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTextFromUser[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -// wxUSE_TEXTDLG wxString wxGetTextFromUser(const wxString& message, const wxString& caption = "Input text", const wxString& default_value = "", wxWindow *parent = NULL, int x = -1, int y = -1, bool centre = true); -static int LUACALL wxLua_function_wxGetTextFromUser(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool centre = true - bool centre = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : true); - // int y = -1 - int y = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int x = -1 - int x = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // const wxString default_value = "" - const wxString default_value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString caption = "Input text" - const wxString caption = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Input text"))); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxGetTextFromUser - wxString returns = (wxGetTextFromUser(message, caption, default_value, parent, x, y, centre)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTextFromUser[1] = {{ wxLua_function_wxGetTextFromUser, WXLUAMETHOD_CFUNCTION, 1, 7, s_wxluatypeArray_wxLua_function_wxGetTextFromUser }}; - -#endif // wxUSE_TEXTDLG - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxGetTopLevelParent[] = { &wxluatype_wxWindow, NULL }; -// wxWindow* wxGetTopLevelParent(wxWindow *win); -static int LUACALL wxLua_function_wxGetTopLevelParent(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call wxGetTopLevelParent - wxWindow* returns = (wxWindow*)wxGetTopLevelParent(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxGetTopLevelParent[1] = {{ wxLua_function_wxGetTopLevelParent, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxGetTopLevelParent }}; - -// void wxInitAllImageHandlers(); -static int LUACALL wxLua_function_wxInitAllImageHandlers(lua_State *L) -{ - // call wxInitAllImageHandlers - wxInitAllImageHandlers(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxInitAllImageHandlers[1] = {{ wxLua_function_wxInitAllImageHandlers, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// bool wxIsBusy(); -static int LUACALL wxLua_function_wxIsBusy(lua_State *L) -{ - // call wxIsBusy - bool returns = (wxIsBusy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsBusy[1] = {{ wxLua_function_wxIsBusy, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxIsDragResultOk[] = { &wxluatype_TINTEGER, NULL }; -// bool wxIsDragResultOk(wxDragResult res); -static int LUACALL wxLua_function_wxIsDragResultOk(lua_State *L) -{ - // wxDragResult res - wxDragResult res = (wxDragResult)wxlua_getenumtype(L, 1); - // call wxIsDragResultOk - bool returns = (wxIsDragResultOk(res)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxIsDragResultOk[1] = {{ wxLua_function_wxIsDragResultOk, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxIsDragResultOk }}; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxProcess -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxKill[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -// %override wxLua_function_wxKill -// %function int wxKill(long pid, wxSignal sig = wxSIGTERM, wxKillError *rc = NULL, int flags = 0) -static int LUACALL wxLua_function_wxKill(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxKillError rc = NULL - wxKillError rc = wxKILL_OK; - //wxKillError * rc = (argCount >= 3 ? (wxKillError *)wxlua_touserdata(L, 3) : NULL); - // wxSignal sig = wxSIGTERM - wxSignal sig = (argCount >= 2 ? (wxSignal)wxlua_getenumtype(L, 2) : wxSIGTERM); - // long pid - long pid = (long)wxlua_getnumbertype(L, 1); - // call wxKill - int returns = (wxKill(pid, sig, &rc, flags)); - // push the result number - lua_pushinteger(L, returns); - lua_pushinteger(L, rc); - - return 2; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxKill[1] = {{ wxLua_function_wxKill, WXLUAMETHOD_CFUNCTION, 1, 3, s_wxluatypeArray_wxLua_function_wxKill }}; - -#endif // wxLUA_USE_wxProcess - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLaunchDefaultApplication[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -// bool wxLaunchDefaultApplication(const wxString& document, int flags = 0); -static int LUACALL wxLua_function_wxLaunchDefaultApplication(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString document - const wxString document = wxlua_getwxStringtype(L, 1); - // call wxLaunchDefaultApplication - bool returns = (wxLaunchDefaultApplication(document, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLaunchDefaultApplication[1] = {{ wxLua_function_wxLaunchDefaultApplication, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxLaunchDefaultApplication }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLaunchDefaultBrowser[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -// bool wxLaunchDefaultBrowser(const wxString& url, int flags = 0); -static int LUACALL wxLua_function_wxLaunchDefaultBrowser(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 1); - // call wxLaunchDefaultBrowser - bool returns = (wxLaunchDefaultBrowser(url, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLaunchDefaultBrowser[1] = {{ wxLua_function_wxLaunchDefaultBrowser, WXLUAMETHOD_CFUNCTION, 1, 2, s_wxluatypeArray_wxLua_function_wxLaunchDefaultBrowser }}; - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxLog && wxUSE_LOG) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLogStatus[] = { &wxluatype_wxFrame, &wxluatype_TSTRING, NULL }; -// void wxLogStatus(wxFrame *frame, const wxString& message); -static int LUACALL wxLua_function_wxLogStatus(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFrame); - // call wxLogStatus - wxLogStatus(frame, message); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLogStatus[1] = {{ wxLua_function_wxLogStatus, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxLogStatus }}; - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxLog && wxUSE_LOG) - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxMessageBox[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// int wxMessageBox(const wxString& message, const wxString& caption = "Message", int style = wxOK | wxCENTRE, wxWindow *parent = NULL, int x = -1, int y = -1); -static int LUACALL wxLua_function_wxMessageBox(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int y = -1 - int y = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int x = -1 - int x = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // int style = wxOK | wxCENTRE - int style = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxOK | wxCENTRE); - // const wxString caption = "Message" - const wxString caption = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Message"))); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call wxMessageBox - int returns = (wxMessageBox(message, caption, style, parent, x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxMessageBox[1] = {{ wxLua_function_wxMessageBox, WXLUAMETHOD_CFUNCTION, 1, 6, s_wxluatypeArray_wxLua_function_wxMessageBox }}; - -// long wxNewId(); -static int LUACALL wxLua_function_wxNewId(lua_State *L) -{ - // call wxNewId - long returns = (wxNewId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxNewId[1] = {{ wxLua_function_wxNewId, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxPostEvent[] = { &wxluatype_wxEvtHandler, &wxluatype_wxEvent, NULL }; -// void wxPostEvent(wxEvtHandler *dest, wxEvent& event); -static int LUACALL wxLua_function_wxPostEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // wxEvtHandler dest - wxEvtHandler * dest = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call wxPostEvent - wxPostEvent(dest, *event); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxPostEvent[1] = {{ wxLua_function_wxPostEvent, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxPostEvent }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRegisterId[] = { &wxluatype_TNUMBER, NULL }; -// void wxRegisterId(long id); -static int LUACALL wxLua_function_wxRegisterId(lua_State *L) -{ - // long id - long id = (long)wxlua_getnumbertype(L, 1); - // call wxRegisterId - wxRegisterId(id); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRegisterId[1] = {{ wxLua_function_wxRegisterId, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxRegisterId }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSafeYield[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -// bool wxSafeYield(wxWindow* win = NULL, bool onlyIfNeeded = false); -static int LUACALL wxLua_function_wxSafeYield(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool onlyIfNeeded = false - bool onlyIfNeeded = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call wxSafeYield - bool returns = (wxSafeYield(win, onlyIfNeeded)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSafeYield[1] = {{ wxLua_function_wxSafeYield, WXLUAMETHOD_CFUNCTION, 0, 2, s_wxluatypeArray_wxLua_function_wxSafeYield }}; - - -#if wxLUA_USE_wxCursor -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxSetCursor[] = { &wxluatype_wxCursor, NULL }; -// void wxSetCursor(const wxCursor &cursor); -static int LUACALL wxLua_function_wxSetCursor(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call wxSetCursor - wxSetCursor(*cursor); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxSetCursor[1] = {{ wxLua_function_wxSetCursor, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxSetCursor }}; - -#endif // wxLUA_USE_wxCursor - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxShell[] = { &wxluatype_TSTRING, NULL }; -// bool wxShell(const wxString& command = ""); -static int LUACALL wxLua_function_wxShell(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString command = "" - const wxString command = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call wxShell - bool returns = (wxShell(command)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxShell[1] = {{ wxLua_function_wxShell, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_wxShell }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxShutdown[] = { &wxluatype_TINTEGER, NULL }; -// bool wxShutdown(wxShutdownFlags flags); -static int LUACALL wxLua_function_wxShutdown(lua_State *L) -{ - // wxShutdownFlags flags - wxShutdownFlags flags = (wxShutdownFlags)wxlua_getenumtype(L, 1); - // call wxShutdown - bool returns = (wxShutdown(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxShutdown[1] = {{ wxLua_function_wxShutdown, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxShutdown }}; - -// void wxWakeUpIdle(); -static int LUACALL wxLua_function_wxWakeUpIdle(lua_State *L) -{ - // call wxWakeUpIdle - wxWakeUpIdle(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxWakeUpIdle[1] = {{ wxLua_function_wxWakeUpIdle, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// bool wxYield(); -static int LUACALL wxLua_function_wxYield(lua_State *L) -{ - // call wxYield - bool returns = (wxYield()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxYield[1] = {{ wxLua_function_wxYield, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxcore() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxcore(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { -#if wxLUA_USE_wxCursor - { "wxBeginBusyCursor", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxBeginBusyCursor, 1, NULL }, -#endif // wxLUA_USE_wxCursor - - { "wxBell", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxBell, 1, NULL }, - { "wxClientDisplayRect", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxClientDisplayRect, 1, NULL }, - { "wxColourDisplay", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxColourDisplay, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxDirSelector", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxDirSelector, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "wxDisplayDepth", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxDisplayDepth, 1, NULL }, - { "wxDisplaySize", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxDisplaySize, 1, NULL }, - { "wxDisplaySizeMM", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxDisplaySizeMM, 1, NULL }, - { "wxEnableTopLevelWindows", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxEnableTopLevelWindows, 1, NULL }, - { "wxEndBusyCursor", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxEndBusyCursor, 1, NULL }, - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) - { "wxExecute", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxExecute1, 1, NULL }, -#elif (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) - { "wxExecute", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxExecute, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxProcess) -#if wxLUA_USE_wxArrayString - { "wxExecuteStdout", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxExecuteStdout, 1, NULL }, - { "wxExecuteStdoutStderr", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxExecuteStdoutStderr, 1, NULL }, -#endif // wxLUA_USE_wxArrayString - - { "wxExit", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxExit, 1, NULL }, - { "wxFileSelector", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFileSelector, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "wxFindFocusDescendant", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindFocusDescendant, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxFrame - { "wxFindMenuItemId", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindMenuItemId, 1, NULL }, -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxPointSizeRect - { "wxFindWindowAtPoint", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindWindowAtPoint, 1, NULL }, - { "wxFindWindowAtPointer", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindWindowAtPointer, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "wxFindWindowByLabel", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindWindowByLabel, 1, NULL }, - { "wxFindWindowByName", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxFindWindowByName, 1, NULL }, - -#if (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "wxGetAccelFromString", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetAccelFromString, 1, NULL }, -#endif // (((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if wxCHECK_VERSION(2,8,4) - { "wxGetActiveWindow", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetActiveWindow, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,4) - -#if wxLUA_USE_wxApp - { "wxGetApp", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetApp, 1, NULL }, -#endif // wxLUA_USE_wxApp - -#if wxCHECK_VERSION(2,8,0) - { "wxGetBatteryState", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetBatteryState, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect - { "wxGetClientDisplayRect", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetClientDisplayRect, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && wxCHECK_VERSION(2,8,0)) - { "wxGetColourFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetColourFromUser1, 1, NULL }, -#elif (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && !wxCHECK_VERSION(2,8,0)) - { "wxGetColourFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetColourFromUser, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COLOURDLG && !wxCHECK_VERSION(2,8,0)) -#if wxLUA_USE_wxPointSizeRect - { "wxGetDisplaySize", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetDisplaySize, 1, NULL }, - { "wxGetDisplaySizeMM", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetDisplaySizeMM, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) - { "wxGetFontFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetFontFromUser1, 1, NULL }, -#elif (!wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) - { "wxGetFontFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetFontFromUser, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0) && wxUSE_FONTDLG) && (wxLUA_USE_wxFont) - { "wxGetKeyState", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetKeyState, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxGetMousePosition", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetMousePosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(2,8,0) - { "wxGetMouseState", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetMouseState, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_CHOICEDLG) - { "wxGetMultipleChoices", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetMultipleChoices, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxUSE_CHOICEDLG) - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG) - { "wxGetNumberFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetNumberFromUser1, 1, NULL }, - { "wxGetNumberFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetNumberFromUser, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG) - -#if wxUSE_TEXTDLG - { "wxGetPasswordFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetPasswordFromUser, 1, NULL }, -#endif // wxUSE_TEXTDLG - -#if wxCHECK_VERSION(2,8,0) - { "wxGetPowerType", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetPowerType, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "wxGetProcessId", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetProcessId, 1, NULL }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxUSE_CHOICEDLG) - { "wxGetSelectedChoices", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetSelectedChoices, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxUSE_CHOICEDLG) - -#if (wxLUA_USE_wxArrayString) && (wxUSE_CHOICEDLG) - { "wxGetSingleChoice", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetSingleChoice, 1, NULL }, - { "wxGetSingleChoiceIndex", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetSingleChoiceIndex, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxUSE_CHOICEDLG) - -#if wxUSE_TEXTDLG - { "wxGetTextFromUser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTextFromUser, 1, NULL }, -#endif // wxUSE_TEXTDLG - - { "wxGetTopLevelParent", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxGetTopLevelParent, 1, NULL }, - { "wxInitAllImageHandlers", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxInitAllImageHandlers, 1, NULL }, - { "wxIsBusy", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsBusy, 1, NULL }, - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "wxIsDragResultOk", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxIsDragResultOk, 1, NULL }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxProcess - { "wxKill", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxKill, 1, NULL }, -#endif // wxLUA_USE_wxProcess - - { "wxLaunchDefaultApplication", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLaunchDefaultApplication, 1, NULL }, - { "wxLaunchDefaultBrowser", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLaunchDefaultBrowser, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxLog && wxUSE_LOG) - { "wxLogStatus", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLogStatus, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxLog && wxUSE_LOG) - - { "wxMessageBox", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxMessageBox, 1, NULL }, - { "wxNewId", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxNewId, 1, NULL }, - { "wxPostEvent", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxPostEvent, 1, NULL }, - { "wxRegisterId", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRegisterId, 1, NULL }, - { "wxSafeYield", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSafeYield, 1, NULL }, - -#if wxLUA_USE_wxCursor - { "wxSetCursor", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxSetCursor, 1, NULL }, -#endif // wxLUA_USE_wxCursor - - { "wxShell", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxShell, 1, NULL }, - { "wxShutdown", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxShutdown, 1, NULL }, - { "wxWakeUpIdle", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxWakeUpIdle, 1, NULL }, - { "wxYield", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxYield, 1, NULL }, - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxcore() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxANIHandler = "wxANIHandler"; -static const char* wxluaclassname_wxAcceleratorEntry = "wxAcceleratorEntry"; -static const char* wxluaclassname_wxAcceleratorTable = "wxAcceleratorTable"; -static const char* wxluaclassname_wxActivateEvent = "wxActivateEvent"; -static const char* wxluaclassname_wxAffineMatrix2D = "wxAffineMatrix2D"; -static const char* wxluaclassname_wxAnyButton = "wxAnyButton"; -static const char* wxluaclassname_wxApp = "wxApp"; -static const char* wxluaclassname_wxAppConsole = "wxAppConsole"; -static const char* wxluaclassname_wxArrayVideoModes = "wxArrayVideoModes"; -static const char* wxluaclassname_wxArtProvider = "wxArtProvider"; -static const char* wxluaclassname_wxAutoBufferedPaintDC = "wxAutoBufferedPaintDC"; -static const char* wxluaclassname_wxBMPHandler = "wxBMPHandler"; -static const char* wxluaclassname_wxBestHelpController = "wxBestHelpController"; -static const char* wxluaclassname_wxBitmap = "wxBitmap"; -static const char* wxluaclassname_wxBitmapButton = "wxBitmapButton"; -static const char* wxluaclassname_wxBitmapDataObject = "wxBitmapDataObject"; -static const char* wxluaclassname_wxBitmapToggleButton = "wxBitmapToggleButton"; -static const char* wxluaclassname_wxBookCtrlBase = "wxBookCtrlBase"; -static const char* wxluaclassname_wxBookCtrlBaseEvent = "wxBookCtrlBaseEvent"; -static const char* wxluaclassname_wxBoxSizer = "wxBoxSizer"; -static const char* wxluaclassname_wxBrush = "wxBrush"; -static const char* wxluaclassname_wxBrushList = "wxBrushList"; -static const char* wxluaclassname_wxBufferedDC = "wxBufferedDC"; -static const char* wxluaclassname_wxBufferedPaintDC = "wxBufferedPaintDC"; -static const char* wxluaclassname_wxBusyCursor = "wxBusyCursor"; -static const char* wxluaclassname_wxBusyInfo = "wxBusyInfo"; -static const char* wxluaclassname_wxButton = "wxButton"; -static const char* wxluaclassname_wxCURHandler = "wxCURHandler"; -static const char* wxluaclassname_wxCaret = "wxCaret"; -static const char* wxluaclassname_wxCaretSuspend = "wxCaretSuspend"; -static const char* wxluaclassname_wxCheckBox = "wxCheckBox"; -static const char* wxluaclassname_wxCheckListBox = "wxCheckListBox"; -static const char* wxluaclassname_wxChildFocusEvent = "wxChildFocusEvent"; -static const char* wxluaclassname_wxChoice = "wxChoice"; -static const char* wxluaclassname_wxChoicebook = "wxChoicebook"; -static const char* wxluaclassname_wxChoicebookEvent = "wxChoicebookEvent"; -static const char* wxluaclassname_wxClientDC = "wxClientDC"; -static const char* wxluaclassname_wxClientData = "wxClientData"; -static const char* wxluaclassname_wxClipboard = "wxClipboard"; -static const char* wxluaclassname_wxClipboardLocker = "wxClipboardLocker"; -static const char* wxluaclassname_wxClipboardTextEvent = "wxClipboardTextEvent"; -static const char* wxluaclassname_wxCloseEvent = "wxCloseEvent"; -static const char* wxluaclassname_wxCollapsiblePane = "wxCollapsiblePane"; -static const char* wxluaclassname_wxCollapsiblePaneEvent = "wxCollapsiblePaneEvent"; -static const char* wxluaclassname_wxColour = "wxColour"; -static const char* wxluaclassname_wxColourData = "wxColourData"; -static const char* wxluaclassname_wxColourDatabase = "wxColourDatabase"; -static const char* wxluaclassname_wxColourDialog = "wxColourDialog"; -static const char* wxluaclassname_wxColourPickerCtrl = "wxColourPickerCtrl"; -static const char* wxluaclassname_wxColourPickerEvent = "wxColourPickerEvent"; -static const char* wxluaclassname_wxComboBox = "wxComboBox"; -static const char* wxluaclassname_wxComboCtrl = "wxComboCtrl"; -static const char* wxluaclassname_wxComboCtrlFeatures = "wxComboCtrlFeatures"; -static const char* wxluaclassname_wxComboPopup = "wxComboPopup"; -static const char* wxluaclassname_wxCommand = "wxCommand"; -static const char* wxluaclassname_wxCommandEvent = "wxCommandEvent"; -static const char* wxluaclassname_wxCommandProcessor = "wxCommandProcessor"; -static const char* wxluaclassname_wxContextHelp = "wxContextHelp"; -static const char* wxluaclassname_wxContextHelpButton = "wxContextHelpButton"; -static const char* wxluaclassname_wxContextMenuEvent = "wxContextMenuEvent"; -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxControlWithItems = "wxControlWithItems"; -static const char* wxluaclassname_wxCursor = "wxCursor"; -static const char* wxluaclassname_wxDC = "wxDC"; -static const char* wxluaclassname_wxDCClipper = "wxDCClipper"; -static const char* wxluaclassname_wxDPIChangedEvent = "wxDPIChangedEvent"; -static const char* wxluaclassname_wxDataFormat = "wxDataFormat"; -static const char* wxluaclassname_wxDataObject = "wxDataObject"; -static const char* wxluaclassname_wxDataObjectComposite = "wxDataObjectComposite"; -static const char* wxluaclassname_wxDataObjectSimple = "wxDataObjectSimple"; -static const char* wxluaclassname_wxDatePickerCtrl = "wxDatePickerCtrl"; -static const char* wxluaclassname_wxDialog = "wxDialog"; -static const char* wxluaclassname_wxDirDialog = "wxDirDialog"; -static const char* wxluaclassname_wxDirPickerCtrl = "wxDirPickerCtrl"; -static const char* wxluaclassname_wxDisplay = "wxDisplay"; -static const char* wxluaclassname_wxDisplayChangedEvent = "wxDisplayChangedEvent"; -static const char* wxluaclassname_wxDocChildFrame = "wxDocChildFrame"; -static const char* wxluaclassname_wxDocMDIChildFrame = "wxDocMDIChildFrame"; -static const char* wxluaclassname_wxDocMDIParentFrame = "wxDocMDIParentFrame"; -static const char* wxluaclassname_wxDocManager = "wxDocManager"; -static const char* wxluaclassname_wxDocParentFrame = "wxDocParentFrame"; -static const char* wxluaclassname_wxDocTemplate = "wxDocTemplate"; -static const char* wxluaclassname_wxDocument = "wxDocument"; -static const char* wxluaclassname_wxDropFilesEvent = "wxDropFilesEvent"; -static const char* wxluaclassname_wxDropSource = "wxDropSource"; -static const char* wxluaclassname_wxDropTarget = "wxDropTarget"; -static const char* wxluaclassname_wxEffects = "wxEffects"; -static const char* wxluaclassname_wxEraseEvent = "wxEraseEvent"; -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxEvtHandler = "wxEvtHandler"; -static const char* wxluaclassname_wxExtHelpController = "wxExtHelpController"; -static const char* wxluaclassname_wxFileDataObject = "wxFileDataObject"; -static const char* wxluaclassname_wxFileDialog = "wxFileDialog"; -static const char* wxluaclassname_wxFileDirPickerCtrlBase = "wxFileDirPickerCtrlBase"; -static const char* wxluaclassname_wxFileDirPickerEvent = "wxFileDirPickerEvent"; -static const char* wxluaclassname_wxFileDropTarget = "wxFileDropTarget"; -static const char* wxluaclassname_wxFileHistory = "wxFileHistory"; -static const char* wxluaclassname_wxFilePickerCtrl = "wxFilePickerCtrl"; -static const char* wxluaclassname_wxFileSystemHandler = "wxFileSystemHandler"; -static const char* wxluaclassname_wxFindDialogEvent = "wxFindDialogEvent"; -static const char* wxluaclassname_wxFindReplaceData = "wxFindReplaceData"; -static const char* wxluaclassname_wxFindReplaceDialog = "wxFindReplaceDialog"; -static const char* wxluaclassname_wxFlexGridSizer = "wxFlexGridSizer"; -static const char* wxluaclassname_wxFocusEvent = "wxFocusEvent"; -static const char* wxluaclassname_wxFont = "wxFont"; -static const char* wxluaclassname_wxFontData = "wxFontData"; -static const char* wxluaclassname_wxFontDialog = "wxFontDialog"; -static const char* wxluaclassname_wxFontEnumerator = "wxFontEnumerator"; -static const char* wxluaclassname_wxFontInfo = "wxFontInfo"; -static const char* wxluaclassname_wxFontList = "wxFontList"; -static const char* wxluaclassname_wxFontMapper = "wxFontMapper"; -static const char* wxluaclassname_wxFontPickerCtrl = "wxFontPickerCtrl"; -static const char* wxluaclassname_wxFontPickerEvent = "wxFontPickerEvent"; -static const char* wxluaclassname_wxFrame = "wxFrame"; -static const char* wxluaclassname_wxGBPosition = "wxGBPosition"; -static const char* wxluaclassname_wxGBSizerItem = "wxGBSizerItem"; -static const char* wxluaclassname_wxGBSpan = "wxGBSpan"; -static const char* wxluaclassname_wxGCDC = "wxGCDC"; -static const char* wxluaclassname_wxGDIObject = "wxGDIObject"; -static const char* wxluaclassname_wxGIFHandler = "wxGIFHandler"; -static const char* wxluaclassname_wxGauge = "wxGauge"; -static const char* wxluaclassname_wxGenericDirCtrl = "wxGenericDirCtrl"; -static const char* wxluaclassname_wxGenericValidator = "wxGenericValidator"; -static const char* wxluaclassname_wxGraphicsBitmap = "wxGraphicsBitmap"; -static const char* wxluaclassname_wxGraphicsBrush = "wxGraphicsBrush"; -static const char* wxluaclassname_wxGraphicsContext = "wxGraphicsContext"; -static const char* wxluaclassname_wxGraphicsFont = "wxGraphicsFont"; -static const char* wxluaclassname_wxGraphicsGradientStop = "wxGraphicsGradientStop"; -static const char* wxluaclassname_wxGraphicsGradientStops = "wxGraphicsGradientStops"; -static const char* wxluaclassname_wxGraphicsMatrix = "wxGraphicsMatrix"; -static const char* wxluaclassname_wxGraphicsObject = "wxGraphicsObject"; -static const char* wxluaclassname_wxGraphicsPath = "wxGraphicsPath"; -static const char* wxluaclassname_wxGraphicsPen = "wxGraphicsPen"; -static const char* wxluaclassname_wxGraphicsPenInfo = "wxGraphicsPenInfo"; -static const char* wxluaclassname_wxGraphicsRenderer = "wxGraphicsRenderer"; -static const char* wxluaclassname_wxGridBagSizer = "wxGridBagSizer"; -static const char* wxluaclassname_wxGridSizer = "wxGridSizer"; -static const char* wxluaclassname_wxHeaderButtonParams = "wxHeaderButtonParams"; -static const char* wxluaclassname_wxHeaderCtrl = "wxHeaderCtrl"; -static const char* wxluaclassname_wxHeaderCtrlEvent = "wxHeaderCtrlEvent"; -static const char* wxluaclassname_wxHeaderCtrlSimple = "wxHeaderCtrlSimple"; -static const char* wxluaclassname_wxHelpController = "wxHelpController"; -static const char* wxluaclassname_wxHelpControllerBase = "wxHelpControllerBase"; -static const char* wxluaclassname_wxHelpControllerHelpProvider = "wxHelpControllerHelpProvider"; -static const char* wxluaclassname_wxHelpEvent = "wxHelpEvent"; -static const char* wxluaclassname_wxHelpProvider = "wxHelpProvider"; -static const char* wxluaclassname_wxICOHandler = "wxICOHandler"; -static const char* wxluaclassname_wxIFFHandler = "wxIFFHandler"; -static const char* wxluaclassname_wxIcon = "wxIcon"; -static const char* wxluaclassname_wxIconBundle = "wxIconBundle"; -static const char* wxluaclassname_wxIconizeEvent = "wxIconizeEvent"; -static const char* wxluaclassname_wxIdleEvent = "wxIdleEvent"; -static const char* wxluaclassname_wxImage = "wxImage"; -static const char* wxluaclassname_wxImageHandler = "wxImageHandler"; -static const char* wxluaclassname_wxImageHistogram = "wxImageHistogram"; -static const char* wxluaclassname_wxImageHistogramEntry = "wxImageHistogramEntry"; -static const char* wxluaclassname_wxImageHistogram_iterator = "wxImageHistogram_iterator"; -static const char* wxluaclassname_wxImageList = "wxImageList"; -static const char* wxluaclassname_wxIndividualLayoutConstraint = "wxIndividualLayoutConstraint"; -static const char* wxluaclassname_wxInfoBar = "wxInfoBar"; -static const char* wxluaclassname_wxInitDialogEvent = "wxInitDialogEvent"; -static const char* wxluaclassname_wxItemContainer = "wxItemContainer"; -static const char* wxluaclassname_wxItemContainerImmutable = "wxItemContainerImmutable"; -static const char* wxluaclassname_wxJPEGHandler = "wxJPEGHandler"; -static const char* wxluaclassname_wxKeyEvent = "wxKeyEvent"; -static const char* wxluaclassname_wxKeyboardState = "wxKeyboardState"; -static const char* wxluaclassname_wxLayoutConstraints = "wxLayoutConstraints"; -static const char* wxluaclassname_wxList = "wxList"; -static const char* wxluaclassname_wxListBox = "wxListBox"; -static const char* wxluaclassname_wxListCtrl = "wxListCtrl"; -static const char* wxluaclassname_wxListEvent = "wxListEvent"; -static const char* wxluaclassname_wxListItem = "wxListItem"; -static const char* wxluaclassname_wxListItemAttr = "wxListItemAttr"; -static const char* wxluaclassname_wxListView = "wxListView"; -static const char* wxluaclassname_wxListbook = "wxListbook"; -static const char* wxluaclassname_wxListbookEvent = "wxListbookEvent"; -static const char* wxluaclassname_wxLog = "wxLog"; -static const char* wxluaclassname_wxLogGui = "wxLogGui"; -static const char* wxluaclassname_wxLogPassThrough = "wxLogPassThrough"; -static const char* wxluaclassname_wxLogTextCtrl = "wxLogTextCtrl"; -static const char* wxluaclassname_wxLogWindow = "wxLogWindow"; -static const char* wxluaclassname_wxLuaArtProvider = "wxLuaArtProvider"; -static const char* wxluaclassname_wxLuaDataObjectSimple = "wxLuaDataObjectSimple"; -static const char* wxluaclassname_wxLuaFileDropTarget = "wxLuaFileDropTarget"; -static const char* wxluaclassname_wxLuaListCtrl = "wxLuaListCtrl"; -static const char* wxluaclassname_wxLuaPrintout = "wxLuaPrintout"; -static const char* wxluaclassname_wxLuaProcess = "wxLuaProcess"; -static const char* wxluaclassname_wxLuaTextDropTarget = "wxLuaTextDropTarget"; -static const char* wxluaclassname_wxLuaTreeItemData = "wxLuaTreeItemData"; -static const char* wxluaclassname_wxLuaURLDropTarget = "wxLuaURLDropTarget"; -static const char* wxluaclassname_wxMDIChildFrame = "wxMDIChildFrame"; -static const char* wxluaclassname_wxMDIClientWindow = "wxMDIClientWindow"; -static const char* wxluaclassname_wxMDIParentFrame = "wxMDIParentFrame"; -static const char* wxluaclassname_wxMask = "wxMask"; -static const char* wxluaclassname_wxMatrix2D = "wxMatrix2D"; -static const char* wxluaclassname_wxMaximizeEvent = "wxMaximizeEvent"; -static const char* wxluaclassname_wxMemoryDC = "wxMemoryDC"; -static const char* wxluaclassname_wxMemoryFSHandler = "wxMemoryFSHandler"; -static const char* wxluaclassname_wxMenu = "wxMenu"; -static const char* wxluaclassname_wxMenuBar = "wxMenuBar"; -static const char* wxluaclassname_wxMenuEvent = "wxMenuEvent"; -static const char* wxluaclassname_wxMenuItem = "wxMenuItem"; -static const char* wxluaclassname_wxMenuItemList = "wxMenuItemList"; -static const char* wxluaclassname_wxMessageDialog = "wxMessageDialog"; -static const char* wxluaclassname_wxMetafile = "wxMetafile"; -static const char* wxluaclassname_wxMetafileDC = "wxMetafileDC"; -static const char* wxluaclassname_wxMiniFrame = "wxMiniFrame"; -static const char* wxluaclassname_wxMirrorDC = "wxMirrorDC"; -static const char* wxluaclassname_wxMouseCaptureChangedEvent = "wxMouseCaptureChangedEvent"; -static const char* wxluaclassname_wxMouseCaptureLostEvent = "wxMouseCaptureLostEvent"; -static const char* wxluaclassname_wxMouseEvent = "wxMouseEvent"; -static const char* wxluaclassname_wxMouseState = "wxMouseState"; -static const char* wxluaclassname_wxMoveEvent = "wxMoveEvent"; -static const char* wxluaclassname_wxMultiChoiceDialog = "wxMultiChoiceDialog"; -static const char* wxluaclassname_wxNativeFontInfo = "wxNativeFontInfo"; -static const char* wxluaclassname_wxNavigationKeyEvent = "wxNavigationKeyEvent"; -static const char* wxluaclassname_wxNonOwnedWindow = "wxNonOwnedWindow"; -static const char* wxluaclassname_wxNotebook = "wxNotebook"; -static const char* wxluaclassname_wxNotebookEvent = "wxNotebookEvent"; -static const char* wxluaclassname_wxNotebookSizer = "wxNotebookSizer"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; -static const char* wxluaclassname_wxNumberEntryDialog = "wxNumberEntryDialog"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxPCXHandler = "wxPCXHandler"; -static const char* wxluaclassname_wxPNGHandler = "wxPNGHandler"; -static const char* wxluaclassname_wxPNMHandler = "wxPNMHandler"; -static const char* wxluaclassname_wxPageSetupDialog = "wxPageSetupDialog"; -static const char* wxluaclassname_wxPageSetupDialogData = "wxPageSetupDialogData"; -static const char* wxluaclassname_wxPaintDC = "wxPaintDC"; -static const char* wxluaclassname_wxPaintEvent = "wxPaintEvent"; -static const char* wxluaclassname_wxPalette = "wxPalette"; -static const char* wxluaclassname_wxPaletteChangedEvent = "wxPaletteChangedEvent"; -static const char* wxluaclassname_wxPanel = "wxPanel"; -static const char* wxluaclassname_wxPasswordEntryDialog = "wxPasswordEntryDialog"; -static const char* wxluaclassname_wxPen = "wxPen"; -static const char* wxluaclassname_wxPenInfo = "wxPenInfo"; -static const char* wxluaclassname_wxPenList = "wxPenList"; -static const char* wxluaclassname_wxPickerBase = "wxPickerBase"; -static const char* wxluaclassname_wxPoint = "wxPoint"; -static const char* wxluaclassname_wxPoint2DDouble = "wxPoint2DDouble"; -static const char* wxluaclassname_wxPoint2DInt = "wxPoint2DInt"; -static const char* wxluaclassname_wxPopupTransientWindow = "wxPopupTransientWindow"; -static const char* wxluaclassname_wxPopupWindow = "wxPopupWindow"; -static const char* wxluaclassname_wxPosition = "wxPosition"; -static const char* wxluaclassname_wxPostScriptDC = "wxPostScriptDC"; -static const char* wxluaclassname_wxPowerEvent = "wxPowerEvent"; -static const char* wxluaclassname_wxPreviewCanvas = "wxPreviewCanvas"; -static const char* wxluaclassname_wxPreviewControlBar = "wxPreviewControlBar"; -static const char* wxluaclassname_wxPreviewFrame = "wxPreviewFrame"; -static const char* wxluaclassname_wxPrintData = "wxPrintData"; -static const char* wxluaclassname_wxPrintDialog = "wxPrintDialog"; -static const char* wxluaclassname_wxPrintDialogData = "wxPrintDialogData"; -static const char* wxluaclassname_wxPrintPreview = "wxPrintPreview"; -static const char* wxluaclassname_wxPrinter = "wxPrinter"; -static const char* wxluaclassname_wxPrinterDC = "wxPrinterDC"; -static const char* wxluaclassname_wxPrintout = "wxPrintout"; -static const char* wxluaclassname_wxProcess = "wxProcess"; -static const char* wxluaclassname_wxProcessEvent = "wxProcessEvent"; -static const char* wxluaclassname_wxProgressDialog = "wxProgressDialog"; -static const char* wxluaclassname_wxPropagateOnce = "wxPropagateOnce"; -static const char* wxluaclassname_wxPropagationDisabler = "wxPropagationDisabler"; -static const char* wxluaclassname_wxQuantize = "wxQuantize"; -static const char* wxluaclassname_wxQueryNewPaletteEvent = "wxQueryNewPaletteEvent"; -static const char* wxluaclassname_wxRadioBox = "wxRadioBox"; -static const char* wxluaclassname_wxRadioButton = "wxRadioButton"; -static const char* wxluaclassname_wxRealPoint = "wxRealPoint"; -static const char* wxluaclassname_wxRect = "wxRect"; -static const char* wxluaclassname_wxRect2DDouble = "wxRect2DDouble"; -static const char* wxluaclassname_wxRect2DInt = "wxRect2DInt"; -static const char* wxluaclassname_wxRegion = "wxRegion"; -static const char* wxluaclassname_wxRegionIterator = "wxRegionIterator"; -static const char* wxluaclassname_wxRendererNative = "wxRendererNative"; -static const char* wxluaclassname_wxRendererVersion = "wxRendererVersion"; -static const char* wxluaclassname_wxScreenDC = "wxScreenDC"; -static const char* wxluaclassname_wxScrollBar = "wxScrollBar"; -static const char* wxluaclassname_wxScrollEvent = "wxScrollEvent"; -static const char* wxluaclassname_wxScrollHelper = "wxScrollHelper"; -static const char* wxluaclassname_wxScrollWinEvent = "wxScrollWinEvent"; -static const char* wxluaclassname_wxScrolledWindow = "wxScrolledWindow"; -static const char* wxluaclassname_wxSearchCtrl = "wxSearchCtrl"; -static const char* wxluaclassname_wxSetCursorEvent = "wxSetCursorEvent"; -static const char* wxluaclassname_wxShowEvent = "wxShowEvent"; -static const char* wxluaclassname_wxSimpleHelpProvider = "wxSimpleHelpProvider"; -static const char* wxluaclassname_wxSingleChoiceDialog = "wxSingleChoiceDialog"; -static const char* wxluaclassname_wxSize = "wxSize"; -static const char* wxluaclassname_wxSizeEvent = "wxSizeEvent"; -static const char* wxluaclassname_wxSizer = "wxSizer"; -static const char* wxluaclassname_wxSizerFlags = "wxSizerFlags"; -static const char* wxluaclassname_wxSizerItem = "wxSizerItem"; -static const char* wxluaclassname_wxSizerItemList = "wxSizerItemList"; -static const char* wxluaclassname_wxSlider = "wxSlider"; -static const char* wxluaclassname_wxSpinButton = "wxSpinButton"; -static const char* wxluaclassname_wxSpinCtrl = "wxSpinCtrl"; -static const char* wxluaclassname_wxSpinCtrlDouble = "wxSpinCtrlDouble"; -static const char* wxluaclassname_wxSpinDoubleEvent = "wxSpinDoubleEvent"; -static const char* wxluaclassname_wxSpinEvent = "wxSpinEvent"; -static const char* wxluaclassname_wxSplitterEvent = "wxSplitterEvent"; -static const char* wxluaclassname_wxSplitterRenderParams = "wxSplitterRenderParams"; -static const char* wxluaclassname_wxSplitterWindow = "wxSplitterWindow"; -static const char* wxluaclassname_wxStaticBitmap = "wxStaticBitmap"; -static const char* wxluaclassname_wxStaticBox = "wxStaticBox"; -static const char* wxluaclassname_wxStaticBoxSizer = "wxStaticBoxSizer"; -static const char* wxluaclassname_wxStaticLine = "wxStaticLine"; -static const char* wxluaclassname_wxStaticText = "wxStaticText"; -static const char* wxluaclassname_wxStatusBar = "wxStatusBar"; -static const char* wxluaclassname_wxStatusBarPane = "wxStatusBarPane"; -static const char* wxluaclassname_wxStdDialogButtonSizer = "wxStdDialogButtonSizer"; -static const char* wxluaclassname_wxStockGDI = "wxStockGDI"; -static const char* wxluaclassname_wxSysColourChangedEvent = "wxSysColourChangedEvent"; -static const char* wxluaclassname_wxSystemAppearance = "wxSystemAppearance"; -static const char* wxluaclassname_wxSystemSettings = "wxSystemSettings"; -static const char* wxluaclassname_wxTGAHandler = "wxTGAHandler"; -static const char* wxluaclassname_wxTIFFHandler = "wxTIFFHandler"; -static const char* wxluaclassname_wxTabCtrl = "wxTabCtrl"; -static const char* wxluaclassname_wxTabEvent = "wxTabEvent"; -static const char* wxluaclassname_wxTextAreaBase = "wxTextAreaBase"; -static const char* wxluaclassname_wxTextAttr = "wxTextAttr"; -static const char* wxluaclassname_wxTextCtrl = "wxTextCtrl"; -static const char* wxluaclassname_wxTextCtrlIface = "wxTextCtrlIface"; -static const char* wxluaclassname_wxTextDataObject = "wxTextDataObject"; -static const char* wxluaclassname_wxTextDropTarget = "wxTextDropTarget"; -static const char* wxluaclassname_wxTextEntry = "wxTextEntry"; -static const char* wxluaclassname_wxTextEntryDialog = "wxTextEntryDialog"; -static const char* wxluaclassname_wxTextUrlEvent = "wxTextUrlEvent"; -static const char* wxluaclassname_wxTextValidator = "wxTextValidator"; -static const char* wxluaclassname_wxTimePickerCtrl = "wxTimePickerCtrl"; -static const char* wxluaclassname_wxTimer = "wxTimer"; -static const char* wxluaclassname_wxTimerEvent = "wxTimerEvent"; -static const char* wxluaclassname_wxToggleButton = "wxToggleButton"; -static const char* wxluaclassname_wxToolBar = "wxToolBar"; -static const char* wxluaclassname_wxToolBarBase = "wxToolBarBase"; -static const char* wxluaclassname_wxToolBarSimple = "wxToolBarSimple"; -static const char* wxluaclassname_wxToolBarToolBase = "wxToolBarToolBase"; -static const char* wxluaclassname_wxToolTip = "wxToolTip"; -static const char* wxluaclassname_wxToolbook = "wxToolbook"; -static const char* wxluaclassname_wxToolbookEvent = "wxToolbookEvent"; -static const char* wxluaclassname_wxTopLevelWindow = "wxTopLevelWindow"; -static const char* wxluaclassname_wxTreeCtrl = "wxTreeCtrl"; -static const char* wxluaclassname_wxTreeEvent = "wxTreeEvent"; -static const char* wxluaclassname_wxTreeItemData = "wxTreeItemData"; -static const char* wxluaclassname_wxTreeItemId = "wxTreeItemId"; -static const char* wxluaclassname_wxTreeListCtrl = "wxTreeListCtrl"; -static const char* wxluaclassname_wxTreeListEvent = "wxTreeListEvent"; -static const char* wxluaclassname_wxTreeListItem = "wxTreeListItem"; -static const char* wxluaclassname_wxTreebook = "wxTreebook"; -static const char* wxluaclassname_wxTreebookEvent = "wxTreebookEvent"; -static const char* wxluaclassname_wxURLDataObject = "wxURLDataObject"; -static const char* wxluaclassname_wxUpdateUIEvent = "wxUpdateUIEvent"; -static const char* wxluaclassname_wxValidator = "wxValidator"; -static const char* wxluaclassname_wxVideoMode = "wxVideoMode"; -static const char* wxluaclassname_wxView = "wxView"; -static const char* wxluaclassname_wxVisualAttributes = "wxVisualAttributes"; -static const char* wxluaclassname_wxWinHelpController = "wxWinHelpController"; -static const char* wxluaclassname_wxWindow = "wxWindow"; -static const char* wxluaclassname_wxWindowCreateEvent = "wxWindowCreateEvent"; -static const char* wxluaclassname_wxWindowDC = "wxWindowDC"; -static const char* wxluaclassname_wxWindowDestroyEvent = "wxWindowDestroyEvent"; -static const char* wxluaclassname_wxWindowDisabler = "wxWindowDisabler"; -static const char* wxluaclassname_wxWindowList = "wxWindowList"; -static const char* wxluaclassname_wxWindowUpdateLocker = "wxWindowUpdateLocker"; -static const char* wxluaclassname_wxWrapSizer = "wxWrapSizer"; -static const char* wxluaclassname_wxXPMHandler = "wxXPMHandler"; - -static const char* wxluabaseclassnames_wxANIHandler[] = { wxluaclassname_wxCURHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxANIHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxAcceleratorTable[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAcceleratorTable[] = { NULL }; -static const char* wxluabaseclassnames_wxActivateEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxActivateEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxAnyButton[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAnyButton[] = { NULL }; -static const char* wxluabaseclassnames_wxApp[] = { wxluaclassname_wxAppConsole, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxApp[] = { NULL }; -static const char* wxluabaseclassnames_wxAppConsole[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAppConsole[] = { NULL }; -static const char* wxluabaseclassnames_wxArtProvider[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxArtProvider[] = { NULL }; -static const char* wxluabaseclassnames_wxAutoBufferedPaintDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxAutoBufferedPaintDC[] = { NULL }; -static const char* wxluabaseclassnames_wxBMPHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBMPHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxBestHelpController[] = { wxluaclassname_wxHelpControllerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBestHelpController[] = { NULL }; -static const char* wxluabaseclassnames_wxBitmap[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBitmap[] = { NULL }; -static const char* wxluabaseclassnames_wxBitmapButton[] = { wxluaclassname_wxAnyButton, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBitmapButton[] = { NULL }; -static const char* wxluabaseclassnames_wxBitmapDataObject[] = { wxluaclassname_wxDataObjectSimple, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBitmapDataObject[] = { NULL }; -static const char* wxluabaseclassnames_wxBitmapToggleButton[] = { wxluaclassname_wxToggleButton, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBitmapToggleButton[] = { NULL }; -static const char* wxluabaseclassnames_wxBookCtrlBase[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBookCtrlBase[] = { NULL }; -static const char* wxluabaseclassnames_wxBookCtrlBaseEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBookCtrlBaseEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxBoxSizer[] = { wxluaclassname_wxSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBoxSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxBrush[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBrush[] = { NULL }; -static const char* wxluabaseclassnames_wxBufferedDC[] = { wxluaclassname_wxMemoryDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBufferedDC[] = { NULL }; -static const char* wxluabaseclassnames_wxBufferedPaintDC[] = { wxluaclassname_wxBufferedDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBufferedPaintDC[] = { NULL }; -static const char* wxluabaseclassnames_wxBusyInfo[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBusyInfo[] = { NULL }; -static const char* wxluabaseclassnames_wxButton[] = { wxluaclassname_wxAnyButton, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxButton[] = { NULL }; -static const char* wxluabaseclassnames_wxCURHandler[] = { wxluaclassname_wxICOHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCURHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxCheckBox[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCheckBox[] = { NULL }; -static const char* wxluabaseclassnames_wxCheckListBox[] = { wxluaclassname_wxListBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCheckListBox[] = { NULL }; -static const char* wxluabaseclassnames_wxChildFocusEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxChildFocusEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxChoice[] = { wxluaclassname_wxControlWithItems, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxChoice[] = { NULL }; -static const char* wxluabaseclassnames_wxChoicebook[] = { wxluaclassname_wxBookCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxChoicebook[] = { NULL }; -static const char* wxluabaseclassnames_wxChoicebookEvent[] = { wxluaclassname_wxBookCtrlBaseEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxChoicebookEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxClientDC[] = { wxluaclassname_wxWindowDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxClientDC[] = { NULL }; -static const char* wxluabaseclassnames_wxClipboard[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxClipboard[] = { NULL }; -static const char* wxluabaseclassnames_wxClipboardTextEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxClipboardTextEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxCloseEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCloseEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxCollapsiblePane[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCollapsiblePane[] = { NULL }; -static const char* wxluabaseclassnames_wxCollapsiblePaneEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCollapsiblePaneEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxColour[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColour[] = { NULL }; -static const char* wxluabaseclassnames_wxColourData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColourData[] = { NULL }; -static const char* wxluabaseclassnames_wxColourDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColourDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxColourPickerCtrl[] = { wxluaclassname_wxPickerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColourPickerCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxColourPickerEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColourPickerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxComboBox[] = { wxluaclassname_wxControl, wxluaclassname_wxItemContainer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxComboBox[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxComboCtrl[] = { wxluaclassname_wxControl, wxluaclassname_wxTextEntry, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxComboCtrl[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxCommand[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCommand[] = { NULL }; -static const char* wxluabaseclassnames_wxCommandEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCommandEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxCommandProcessor[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCommandProcessor[] = { NULL }; -static const char* wxluabaseclassnames_wxContextHelp[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxContextHelp[] = { NULL }; -static const char* wxluabaseclassnames_wxContextHelpButton[] = { wxluaclassname_wxBitmapButton, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxContextHelpButton[] = { NULL }; -static const char* wxluabaseclassnames_wxContextMenuEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxContextMenuEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxControl[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxControl[] = { NULL }; -static const char* wxluabaseclassnames_wxControlWithItems[] = { wxluaclassname_wxControl, wxluaclassname_wxItemContainer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxControlWithItems[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxCursor[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCursor[] = { NULL }; -static const char* wxluabaseclassnames_wxDC[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDC[] = { NULL }; -static const char* wxluabaseclassnames_wxDPIChangedEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDPIChangedEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxDataObjectComposite[] = { wxluaclassname_wxDataObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataObjectComposite[] = { NULL }; -static const char* wxluabaseclassnames_wxDataObjectSimple[] = { wxluaclassname_wxDataObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDataObjectSimple[] = { NULL }; -static const char* wxluabaseclassnames_wxDatePickerCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDatePickerCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxDialog[] = { wxluaclassname_wxTopLevelWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxDirDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDirDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxDirPickerCtrl[] = { wxluaclassname_wxFileDirPickerCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDirPickerCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxDisplayChangedEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDisplayChangedEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxDocChildFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocChildFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxDocMDIChildFrame[] = { wxluaclassname_wxMDIChildFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocMDIChildFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxDocMDIParentFrame[] = { wxluaclassname_wxMDIParentFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocMDIParentFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxDocManager[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocManager[] = { NULL }; -static const char* wxluabaseclassnames_wxDocParentFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocParentFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxDocTemplate[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocTemplate[] = { NULL }; -static const char* wxluabaseclassnames_wxDocument[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDocument[] = { NULL }; -static const char* wxluabaseclassnames_wxDropFilesEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDropFilesEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxEffects[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEffects[] = { NULL }; -static const char* wxluabaseclassnames_wxEraseEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEraseEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxExtHelpController[] = { wxluaclassname_wxHelpControllerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxExtHelpController[] = { NULL }; -static const char* wxluabaseclassnames_wxFileDataObject[] = { wxluaclassname_wxDataObjectSimple, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileDataObject[] = { NULL }; -static const char* wxluabaseclassnames_wxFileDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxFileDirPickerCtrlBase[] = { wxluaclassname_wxPickerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileDirPickerCtrlBase[] = { NULL }; -static const char* wxluabaseclassnames_wxFileDirPickerEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileDirPickerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxFileDropTarget[] = { wxluaclassname_wxDropTarget, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileDropTarget[] = { NULL }; -static const char* wxluabaseclassnames_wxFileHistory[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileHistory[] = { NULL }; -static const char* wxluabaseclassnames_wxFilePickerCtrl[] = { wxluaclassname_wxFileDirPickerCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFilePickerCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxFindDialogEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFindDialogEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxFindReplaceData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFindReplaceData[] = { NULL }; -static const char* wxluabaseclassnames_wxFindReplaceDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFindReplaceDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxFlexGridSizer[] = { wxluaclassname_wxGridSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFlexGridSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxFocusEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFocusEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxFont[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFont[] = { NULL }; -static const char* wxluabaseclassnames_wxFontData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFontData[] = { NULL }; -static const char* wxluabaseclassnames_wxFontDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFontDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxFontPickerCtrl[] = { wxluaclassname_wxPickerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFontPickerCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxFontPickerEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFontPickerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxFrame[] = { wxluaclassname_wxTopLevelWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxGBSizerItem[] = { wxluaclassname_wxSizerItem, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGBSizerItem[] = { NULL }; -static const char* wxluabaseclassnames_wxGCDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGCDC[] = { NULL }; -static const char* wxluabaseclassnames_wxGDIObject[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGDIObject[] = { NULL }; -static const char* wxluabaseclassnames_wxGIFHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGIFHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxGauge[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGauge[] = { NULL }; -static const char* wxluabaseclassnames_wxGenericDirCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGenericDirCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxGenericValidator[] = { wxluaclassname_wxValidator, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGenericValidator[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsBitmap[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsBitmap[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsBrush[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsBrush[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsContext[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsContext[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsFont[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsFont[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsMatrix[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsMatrix[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsObject[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsObject[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsPath[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsPath[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsPen[] = { wxluaclassname_wxGraphicsObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsPen[] = { NULL }; -static const char* wxluabaseclassnames_wxGraphicsRenderer[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGraphicsRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridBagSizer[] = { wxluaclassname_wxFlexGridSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridBagSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxGridSizer[] = { wxluaclassname_wxSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGridSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxHeaderCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHeaderCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxHeaderCtrlEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHeaderCtrlEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxHeaderCtrlSimple[] = { wxluaclassname_wxHeaderCtrl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHeaderCtrlSimple[] = { NULL }; -static const char* wxluabaseclassnames_wxHelpController[] = { wxluaclassname_wxHelpControllerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHelpController[] = { NULL }; -static const char* wxluabaseclassnames_wxHelpControllerBase[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHelpControllerBase[] = { NULL }; -static const char* wxluabaseclassnames_wxHelpControllerHelpProvider[] = { wxluaclassname_wxSimpleHelpProvider, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHelpControllerHelpProvider[] = { NULL }; -static const char* wxluabaseclassnames_wxHelpEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHelpEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxICOHandler[] = { wxluaclassname_wxBMPHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxICOHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxIFFHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIFFHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxIcon[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIcon[] = { NULL }; -static const char* wxluabaseclassnames_wxIconBundle[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIconBundle[] = { NULL }; -static const char* wxluabaseclassnames_wxIconizeEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIconizeEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxIdleEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIdleEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxImage[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxImage[] = { NULL }; -static const char* wxluabaseclassnames_wxImageHandler[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxImageHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxImageList[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxImageList[] = { NULL }; -static const char* wxluabaseclassnames_wxIndividualLayoutConstraint[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIndividualLayoutConstraint[] = { NULL }; -static const char* wxluabaseclassnames_wxInfoBar[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxInfoBar[] = { NULL }; -static const char* wxluabaseclassnames_wxInitDialogEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxInitDialogEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxItemContainer[] = { wxluaclassname_wxItemContainerImmutable, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxItemContainer[] = { NULL }; -static const char* wxluabaseclassnames_wxJPEGHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxJPEGHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxKeyEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxKeyEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxLayoutConstraints[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLayoutConstraints[] = { NULL }; -static const char* wxluabaseclassnames_wxListBox[] = { wxluaclassname_wxControlWithItems, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListBox[] = { NULL }; -static const char* wxluabaseclassnames_wxListCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxListEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxListItem[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListItem[] = { NULL }; -static const char* wxluabaseclassnames_wxListView[] = { wxluaclassname_wxListCtrl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListView[] = { NULL }; -static const char* wxluabaseclassnames_wxListbook[] = { wxluaclassname_wxBookCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListbook[] = { NULL }; -static const char* wxluabaseclassnames_wxListbookEvent[] = { wxluaclassname_wxBookCtrlBaseEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxListbookEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxLogGui[] = { wxluaclassname_wxLog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLogGui[] = { NULL }; -static const char* wxluabaseclassnames_wxLogTextCtrl[] = { wxluaclassname_wxLog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLogTextCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxLogWindow[] = { wxluaclassname_wxLogPassThrough, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLogWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaArtProvider[] = { wxluaclassname_wxArtProvider, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaArtProvider[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaDataObjectSimple[] = { wxluaclassname_wxDataObjectSimple, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaDataObjectSimple[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaFileDropTarget[] = { wxluaclassname_wxFileDropTarget, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaFileDropTarget[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaListCtrl[] = { wxluaclassname_wxListCtrl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaListCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaPrintout[] = { wxluaclassname_wxPrintout, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaPrintout[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaProcess[] = { wxluaclassname_wxProcess, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaProcess[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaTextDropTarget[] = { wxluaclassname_wxTextDropTarget, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaTextDropTarget[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaTreeItemData[] = { wxluaclassname_wxTreeItemData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaTreeItemData[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaURLDropTarget[] = { wxluaclassname_wxDropTarget, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaURLDropTarget[] = { NULL }; -static const char* wxluabaseclassnames_wxMDIChildFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMDIChildFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxMDIClientWindow[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMDIClientWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxMDIParentFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMDIParentFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxMask[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMask[] = { NULL }; -static const char* wxluabaseclassnames_wxMaximizeEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMaximizeEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxMemoryDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMemoryDC[] = { NULL }; -static const char* wxluabaseclassnames_wxMemoryFSHandler[] = { wxluaclassname_wxFileSystemHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMemoryFSHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxMenu[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMenu[] = { NULL }; -static const char* wxluabaseclassnames_wxMenuBar[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMenuBar[] = { NULL }; -static const char* wxluabaseclassnames_wxMenuEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMenuEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxMenuItem[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMenuItem[] = { NULL }; -static const char* wxluabaseclassnames_wxMenuItemList[] = { wxluaclassname_wxList, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMenuItemList[] = { NULL }; -static const char* wxluabaseclassnames_wxMessageDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMessageDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxMetafile[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMetafile[] = { NULL }; -static const char* wxluabaseclassnames_wxMetafileDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMetafileDC[] = { NULL }; -static const char* wxluabaseclassnames_wxMiniFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMiniFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxMirrorDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMirrorDC[] = { NULL }; -static const char* wxluabaseclassnames_wxMouseCaptureChangedEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMouseCaptureChangedEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxMouseCaptureLostEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMouseCaptureLostEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxMouseEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMouseEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxMouseState[] = { wxluaclassname_wxKeyboardState, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMouseState[] = { NULL }; -static const char* wxluabaseclassnames_wxMoveEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMoveEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxMultiChoiceDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMultiChoiceDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxNavigationKeyEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNavigationKeyEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxNonOwnedWindow[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNonOwnedWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxNotebook[] = { wxluaclassname_wxBookCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNotebook[] = { NULL }; -static const char* wxluabaseclassnames_wxNotebookEvent[] = { wxluaclassname_wxBookCtrlBaseEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNotebookEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxNotebookSizer[] = { wxluaclassname_wxSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNotebookSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxNotifyEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNotifyEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxNumberEntryDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNumberEntryDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxPCXHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPCXHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxPNGHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPNGHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxPNMHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPNMHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxPageSetupDialog[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPageSetupDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxPageSetupDialogData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPageSetupDialogData[] = { NULL }; -static const char* wxluabaseclassnames_wxPaintDC[] = { wxluaclassname_wxWindowDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPaintDC[] = { NULL }; -static const char* wxluabaseclassnames_wxPaintEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPaintEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxPalette[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPalette[] = { NULL }; -static const char* wxluabaseclassnames_wxPaletteChangedEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPaletteChangedEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxPanel[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPanel[] = { NULL }; -static const char* wxluabaseclassnames_wxPasswordEntryDialog[] = { wxluaclassname_wxTextEntryDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPasswordEntryDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxPen[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPen[] = { NULL }; -static const char* wxluabaseclassnames_wxPickerBase[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPickerBase[] = { NULL }; -static const char* wxluabaseclassnames_wxPopupTransientWindow[] = { wxluaclassname_wxPopupWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPopupTransientWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxPopupWindow[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPopupWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxPostScriptDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPostScriptDC[] = { NULL }; -static const char* wxluabaseclassnames_wxPowerEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPowerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxPreviewCanvas[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPreviewCanvas[] = { NULL }; -static const char* wxluabaseclassnames_wxPreviewControlBar[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPreviewControlBar[] = { NULL }; -static const char* wxluabaseclassnames_wxPreviewFrame[] = { wxluaclassname_wxFrame, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPreviewFrame[] = { NULL }; -static const char* wxluabaseclassnames_wxPrintData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrintData[] = { NULL }; -static const char* wxluabaseclassnames_wxPrintDialog[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrintDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxPrintDialogData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrintDialogData[] = { NULL }; -static const char* wxluabaseclassnames_wxPrintPreview[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrintPreview[] = { NULL }; -static const char* wxluabaseclassnames_wxPrinter[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrinter[] = { NULL }; -static const char* wxluabaseclassnames_wxPrinterDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrinterDC[] = { NULL }; -static const char* wxluabaseclassnames_wxPrintout[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPrintout[] = { NULL }; -static const char* wxluabaseclassnames_wxProcess[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxProcess[] = { NULL }; -static const char* wxluabaseclassnames_wxProcessEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxProcessEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxProgressDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxProgressDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxQuantize[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxQuantize[] = { NULL }; -static const char* wxluabaseclassnames_wxQueryNewPaletteEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxQueryNewPaletteEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxRadioBox[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRadioBox[] = { NULL }; -static const char* wxluabaseclassnames_wxRadioButton[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRadioButton[] = { NULL }; -static const char* wxluabaseclassnames_wxRegion[] = { wxluaclassname_wxGDIObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRegion[] = { NULL }; -static const char* wxluabaseclassnames_wxRegionIterator[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRegionIterator[] = { NULL }; -static const char* wxluabaseclassnames_wxScreenDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxScreenDC[] = { NULL }; -static const char* wxluabaseclassnames_wxScrollBar[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxScrollBar[] = { NULL }; -static const char* wxluabaseclassnames_wxScrollEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxScrollEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxScrollWinEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxScrollWinEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxScrolledWindow[] = { wxluaclassname_wxPanel, wxluaclassname_wxScrollHelper, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxScrolledWindow[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxSearchCtrl[] = { wxluaclassname_wxTextCtrl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSearchCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxSetCursorEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSetCursorEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxShowEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxShowEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSimpleHelpProvider[] = { wxluaclassname_wxHelpProvider, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSimpleHelpProvider[] = { NULL }; -static const char* wxluabaseclassnames_wxSingleChoiceDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSingleChoiceDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxSizeEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSizeEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSizer[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxSizerItem[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSizerItem[] = { NULL }; -static const char* wxluabaseclassnames_wxSizerItemList[] = { wxluaclassname_wxList, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSizerItemList[] = { NULL }; -static const char* wxluabaseclassnames_wxSlider[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSlider[] = { NULL }; -static const char* wxluabaseclassnames_wxSpinButton[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSpinButton[] = { NULL }; -static const char* wxluabaseclassnames_wxSpinCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSpinCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxSpinCtrlDouble[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSpinCtrlDouble[] = { NULL }; -static const char* wxluabaseclassnames_wxSpinDoubleEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSpinDoubleEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSpinEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSpinEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSplitterEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSplitterEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSplitterWindow[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSplitterWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxStaticBitmap[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStaticBitmap[] = { NULL }; -static const char* wxluabaseclassnames_wxStaticBox[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStaticBox[] = { NULL }; -static const char* wxluabaseclassnames_wxStaticBoxSizer[] = { wxluaclassname_wxBoxSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStaticBoxSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxStaticLine[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStaticLine[] = { NULL }; -static const char* wxluabaseclassnames_wxStaticText[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStaticText[] = { NULL }; -static const char* wxluabaseclassnames_wxStatusBar[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStatusBar[] = { NULL }; -static const char* wxluabaseclassnames_wxStdDialogButtonSizer[] = { wxluaclassname_wxBoxSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStdDialogButtonSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxSysColourChangedEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSysColourChangedEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxTGAHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTGAHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxTIFFHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTIFFHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxTabCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTabCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxTabEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTabEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxTextCtrl[] = { wxluaclassname_wxControl, wxluaclassname_wxTextEntry, wxluaclassname_wxTextAreaBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextCtrl[] = { NULL, NULL, NULL }; -static const char* wxluabaseclassnames_wxTextCtrlIface[] = { wxluaclassname_wxTextAreaBase, wxluaclassname_wxTextEntry, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextCtrlIface[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxTextDataObject[] = { wxluaclassname_wxDataObjectSimple, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextDataObject[] = { NULL }; -static const char* wxluabaseclassnames_wxTextDropTarget[] = { wxluaclassname_wxDropTarget, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextDropTarget[] = { NULL }; -static const char* wxluabaseclassnames_wxTextEntryDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextEntryDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxTextUrlEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextUrlEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxTextValidator[] = { wxluaclassname_wxValidator, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTextValidator[] = { NULL }; -static const char* wxluabaseclassnames_wxTimePickerCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTimePickerCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxTimer[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTimer[] = { NULL }; -static const char* wxluabaseclassnames_wxTimerEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTimerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxToggleButton[] = { wxluaclassname_wxAnyButton, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToggleButton[] = { NULL }; -static const char* wxluabaseclassnames_wxToolBar[] = { wxluaclassname_wxToolBarBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolBar[] = { NULL }; -static const char* wxluabaseclassnames_wxToolBarBase[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolBarBase[] = { NULL }; -static const char* wxluabaseclassnames_wxToolBarSimple[] = { wxluaclassname_wxToolBarBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolBarSimple[] = { NULL }; -static const char* wxluabaseclassnames_wxToolBarToolBase[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolBarToolBase[] = { NULL }; -static const char* wxluabaseclassnames_wxToolTip[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolTip[] = { NULL }; -static const char* wxluabaseclassnames_wxToolbook[] = { wxluaclassname_wxBookCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolbook[] = { NULL }; -static const char* wxluabaseclassnames_wxToolbookEvent[] = { wxluaclassname_wxBookCtrlBaseEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxToolbookEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxTopLevelWindow[] = { wxluaclassname_wxNonOwnedWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTopLevelWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxTreeCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreeCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxTreeEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreeEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxTreeItemData[] = { wxluaclassname_wxClientData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreeItemData[] = { NULL }; -static const char* wxluabaseclassnames_wxTreeListCtrl[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreeListCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxTreeListEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreeListEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxTreebook[] = { wxluaclassname_wxBookCtrlBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreebook[] = { NULL }; -static const char* wxluabaseclassnames_wxTreebookEvent[] = { wxluaclassname_wxBookCtrlBaseEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxTreebookEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxURLDataObject[] = { wxluaclassname_wxTextDataObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxURLDataObject[] = { NULL }; -static const char* wxluabaseclassnames_wxUpdateUIEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxUpdateUIEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxValidator[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxValidator[] = { NULL }; -static const char* wxluabaseclassnames_wxView[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxView[] = { NULL }; -static const char* wxluabaseclassnames_wxWinHelpController[] = { wxluaclassname_wxHelpControllerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWinHelpController[] = { NULL }; -static const char* wxluabaseclassnames_wxWindow[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxWindowCreateEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWindowCreateEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxWindowDC[] = { wxluaclassname_wxDC, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWindowDC[] = { NULL }; -static const char* wxluabaseclassnames_wxWindowDestroyEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWindowDestroyEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxWindowList[] = { wxluaclassname_wxList, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWindowList[] = { NULL }; -static const char* wxluabaseclassnames_wxWrapSizer[] = { wxluaclassname_wxBoxSizer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWrapSizer[] = { NULL }; -static const char* wxluabaseclassnames_wxXPMHandler[] = { wxluaclassname_wxImageHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxXPMHandler[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - extern wxLuaBindMethod wxExtHelpController_methods[]; - extern int wxExtHelpController_methodCount; - extern void wxLua_wxExtHelpController_delete_function(void** p); -#endif // (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - extern wxLuaBindMethod wxToolBarSimple_methods[]; - extern int wxToolBarSimple_methodCount; - extern void wxLua_wxToolBarSimple_delete_function(void** p); -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - extern wxLuaBindMethod wxFileDirPickerCtrlBase_methods[]; - extern int wxFileDirPickerCtrlBase_methodCount; - extern void wxLua_wxFileDirPickerCtrlBase_delete_function(void** p); - extern wxLuaBindMethod wxFileDirPickerEvent_methods[]; - extern int wxFileDirPickerEvent_methodCount; - extern void wxLua_wxFileDirPickerEvent_delete_function(void** p); -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - -#if (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - extern wxLuaBindMethod wxEffects_methods[]; - extern int wxEffects_methodCount; - extern void wxLua_wxEffects_delete_function(void** p); -#endif // (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - extern wxLuaBindMethod wxPrinterDC_methods[]; - extern int wxPrinterDC_methodCount; - extern void wxLua_wxPrinterDC_delete_function(void** p); -#endif // (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - extern wxLuaBindMethod wxBestHelpController_methods[]; - extern int wxBestHelpController_methodCount; - extern void wxLua_wxBestHelpController_delete_function(void** p); - extern wxLuaBindMethod wxWinHelpController_methods[]; - extern int wxWinHelpController_methodCount; - extern void wxLua_wxWinHelpController_delete_function(void** p); -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - extern wxLuaBindMethod wxPowerEvent_methods[]; - extern int wxPowerEvent_methodCount; - extern void wxLua_wxPowerEvent_delete_function(void** p); -#endif // (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - extern wxLuaBindMethod wxColourPickerCtrl_methods[]; - extern int wxColourPickerCtrl_methodCount; - extern void wxLua_wxColourPickerCtrl_delete_function(void** p); - extern wxLuaBindMethod wxColourPickerEvent_methods[]; - extern int wxColourPickerEvent_methodCount; - extern void wxLua_wxColourPickerEvent_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - extern wxLuaBindMethod wxDatePickerCtrl_methods[]; - extern int wxDatePickerCtrl_methodCount; - extern void wxLua_wxDatePickerCtrl_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - extern wxLuaBindMethod wxDirPickerCtrl_methods[]; - extern int wxDirPickerCtrl_methodCount; - extern void wxLua_wxDirPickerCtrl_delete_function(void** p); - extern wxLuaBindMethod wxFilePickerCtrl_methods[]; - extern int wxFilePickerCtrl_methodCount; - extern void wxLua_wxFilePickerCtrl_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - extern wxLuaBindMethod wxFontPickerCtrl_methods[]; - extern int wxFontPickerCtrl_methodCount; - extern void wxLua_wxFontPickerCtrl_delete_function(void** p); - extern wxLuaBindMethod wxFontPickerEvent_methods[]; - extern int wxFontPickerEvent_methodCount; - extern void wxLua_wxFontPickerEvent_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - extern wxLuaBindMethod wxTimePickerCtrl_methods[]; - extern int wxTimePickerCtrl_methodCount; - extern void wxLua_wxTimePickerCtrl_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - extern wxLuaBindMethod wxTGAHandler_methods[]; - extern int wxTGAHandler_methodCount; - extern void wxLua_wxTGAHandler_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - extern wxLuaBindMethod wxWrapSizer_methods[]; - extern int wxWrapSizer_methodCount; - extern void wxLua_wxWrapSizer_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - extern wxLuaBindMethod wxClipboardTextEvent_methods[]; - extern int wxClipboardTextEvent_methodCount; - extern void wxLua_wxClipboardTextEvent_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - extern wxLuaBindMethod wxStockGDI_methods[]; - extern int wxStockGDI_methodCount; - extern wxLuaBindNumber wxStockGDI_enums[]; - extern int wxStockGDI_enumCount; - extern void wxLua_wxStockGDI_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - extern wxLuaBindMethod wxAutoBufferedPaintDC_methods[]; - extern int wxAutoBufferedPaintDC_methodCount; - extern void wxLua_wxAutoBufferedPaintDC_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - extern wxLuaBindMethod wxURLDataObject_methods[]; - extern int wxURLDataObject_methodCount; - extern void wxLua_wxURLDataObject_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - extern wxLuaBindMethod wxBoxSizer_methods[]; - extern int wxBoxSizer_methodCount; - extern void wxLua_wxBoxSizer_delete_function(void** p); - extern wxLuaBindMethod wxFlexGridSizer_methods[]; - extern int wxFlexGridSizer_methodCount; - extern void wxLua_wxFlexGridSizer_delete_function(void** p); - extern wxLuaBindMethod wxGBPosition_methods[]; - extern int wxGBPosition_methodCount; - extern void wxLua_wxGBPosition_delete_function(void** p); - extern wxLuaBindMethod wxGBSizerItem_methods[]; - extern int wxGBSizerItem_methodCount; - extern void wxLua_wxGBSizerItem_delete_function(void** p); - extern wxLuaBindMethod wxGBSpan_methods[]; - extern int wxGBSpan_methodCount; - extern void wxLua_wxGBSpan_delete_function(void** p); - extern wxLuaBindMethod wxGridBagSizer_methods[]; - extern int wxGridBagSizer_methodCount; - extern void wxLua_wxGridBagSizer_delete_function(void** p); - extern wxLuaBindMethod wxGridSizer_methods[]; - extern int wxGridSizer_methodCount; - extern void wxLua_wxGridSizer_delete_function(void** p); - extern wxLuaBindMethod wxSizer_methods[]; - extern int wxSizer_methodCount; - extern void wxLua_wxSizer_delete_function(void** p); - extern wxLuaBindMethod wxSizerFlags_methods[]; - extern int wxSizerFlags_methodCount; - extern void wxLua_wxSizerFlags_delete_function(void** p); - extern wxLuaBindMethod wxSizerItem_methods[]; - extern int wxSizerItem_methodCount; - extern void wxLua_wxSizerItem_delete_function(void** p); - extern wxLuaBindMethod wxSizerItemList_methods[]; - extern int wxSizerItemList_methodCount; - extern void wxLua_wxSizerItemList_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - extern wxLuaBindMethod wxStdDialogButtonSizer_methods[]; - extern int wxStdDialogButtonSizer_methodCount; - extern void wxLua_wxStdDialogButtonSizer_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - extern wxLuaBindMethod wxNotebookSizer_methods[]; - extern int wxNotebookSizer_methodCount; - extern void wxLua_wxNotebookSizer_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - extern wxLuaBindMethod wxStaticBoxSizer_methods[]; - extern int wxStaticBoxSizer_methodCount; - extern void wxLua_wxStaticBoxSizer_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - extern wxLuaBindMethod wxAffineMatrix2D_methods[]; - extern int wxAffineMatrix2D_methodCount; - extern void wxLua_wxAffineMatrix2D_delete_function(void** p); - extern wxLuaBindMethod wxMatrix2D_methods[]; - extern int wxMatrix2D_methodCount; - extern void wxLua_wxMatrix2D_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - extern wxLuaBindMethod wxPenInfo_methods[]; - extern int wxPenInfo_methodCount; - extern void wxLua_wxPenInfo_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - extern wxLuaBindMethod wxGraphicsPenInfo_methods[]; - extern int wxGraphicsPenInfo_methodCount; - extern void wxLua_wxGraphicsPenInfo_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - extern wxLuaBindMethod wxSystemAppearance_methods[]; - extern int wxSystemAppearance_methodCount; - extern void wxLua_wxSystemAppearance_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - extern wxLuaBindMethod wxBitmapButton_methods[]; - extern int wxBitmapButton_methodCount; - extern void wxLua_wxBitmapButton_delete_function(void** p); -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - extern wxLuaBindMethod wxContextHelpButton_methods[]; - extern int wxContextHelpButton_methodCount; - extern void wxLua_wxContextHelpButton_delete_function(void** p); -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - extern wxLuaBindMethod wxBrushList_methods[]; - extern int wxBrushList_methodCount; - extern void wxLua_wxBrushList_delete_function(void** p); -#endif // (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - extern wxLuaBindMethod wxHeaderCtrl_methods[]; - extern int wxHeaderCtrl_methodCount; - extern void wxLua_wxHeaderCtrl_delete_function(void** p); - extern wxLuaBindMethod wxHeaderCtrlEvent_methods[]; - extern int wxHeaderCtrlEvent_methodCount; - extern void wxLua_wxHeaderCtrlEvent_delete_function(void** p); - extern wxLuaBindMethod wxHeaderCtrlSimple_methods[]; - extern int wxHeaderCtrlSimple_methodCount; - extern void wxLua_wxHeaderCtrlSimple_delete_function(void** p); -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - -#if (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - extern wxLuaBindMethod wxCheckListBox_methods[]; - extern int wxCheckListBox_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxCheckListBox[] = { &wxluatype_wxItemContainer, &wxluatype_wxItemContainerImmutable, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxCheckListBox[] = { wxIntPtr(((wxIntPtr)(wxItemContainer*)(wxCheckListBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxCheckListBox*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxItemContainerImmutable*)(wxCheckListBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxCheckListBox*)&wxluatype_TNONE)) }; - extern void wxLua_wxCheckListBox_delete_function(void** p); -#endif // (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - -#if (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - extern wxLuaBindMethod wxItemContainer_methods[]; - extern int wxItemContainer_methodCount; - extern void wxLua_wxItemContainer_delete_function(void** p); - extern wxLuaBindMethod wxItemContainerImmutable_methods[]; - extern int wxItemContainerImmutable_methodCount; - extern void wxLua_wxItemContainerImmutable_delete_function(void** p); -#endif // (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - extern wxLuaBindMethod wxPenList_methods[]; - extern int wxPenList_methodCount; - extern void wxLua_wxPenList_delete_function(void** p); -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - extern wxLuaBindMethod wxMiniFrame_methods[]; - extern int wxMiniFrame_methodCount; - extern void wxLua_wxMiniFrame_delete_function(void** p); -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - -#if (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - extern wxLuaBindMethod wxGenericValidator_methods[]; - extern int wxGenericValidator_methodCount; - extern void wxLua_wxGenericValidator_delete_function(void** p); -#endif // (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - extern wxLuaBindMethod wxGIFHandler_methods[]; - extern int wxGIFHandler_methodCount; - extern void wxLua_wxGIFHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - extern wxLuaBindMethod wxANIHandler_methods[]; - extern int wxANIHandler_methodCount; - extern void wxLua_wxANIHandler_delete_function(void** p); - extern wxLuaBindMethod wxCURHandler_methods[]; - extern int wxCURHandler_methodCount; - extern void wxLua_wxCURHandler_delete_function(void** p); - extern wxLuaBindMethod wxICOHandler_methods[]; - extern int wxICOHandler_methodCount; - extern void wxLua_wxICOHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - extern wxLuaBindMethod wxIFFHandler_methods[]; - extern int wxIFFHandler_methodCount; - extern void wxLua_wxIFFHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - extern wxLuaBindMethod wxJPEGHandler_methods[]; - extern int wxJPEGHandler_methodCount; - extern void wxLua_wxJPEGHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - extern wxLuaBindMethod wxPNGHandler_methods[]; - extern int wxPNGHandler_methodCount; - extern void wxLua_wxPNGHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - extern wxLuaBindMethod wxTIFFHandler_methods[]; - extern int wxTIFFHandler_methodCount; - extern void wxLua_wxTIFFHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - extern wxLuaBindMethod wxPCXHandler_methods[]; - extern int wxPCXHandler_methodCount; - extern void wxLua_wxPCXHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - extern wxLuaBindMethod wxPNMHandler_methods[]; - extern int wxPNMHandler_methodCount; - extern void wxLua_wxPNMHandler_delete_function(void** p); -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - extern wxLuaBindMethod wxIndividualLayoutConstraint_methods[]; - extern int wxIndividualLayoutConstraint_methodCount; - extern void wxLua_wxIndividualLayoutConstraint_delete_function(void** p); - extern wxLuaBindMethod wxLayoutConstraints_methods[]; - extern int wxLayoutConstraints_methodCount; - extern void wxLua_wxLayoutConstraints_delete_function(void** p); -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - extern wxLuaBindMethod wxLogWindow_methods[]; - extern int wxLogWindow_methodCount; - extern void wxLua_wxLogWindow_delete_function(void** p); -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - extern wxLuaBindMethod wxLogTextCtrl_methods[]; - extern int wxLogTextCtrl_methodCount; - extern void wxLua_wxLogTextCtrl_delete_function(void** p); -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - extern wxLuaBindMethod wxLogGui_methods[]; - extern int wxLogGui_methodCount; - extern void wxLua_wxLogGui_delete_function(void** p); -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - extern wxLuaBindMethod wxLuaPrintout_methods[]; - extern int wxLuaPrintout_methodCount; - extern void wxLua_wxLuaPrintout_delete_function(void** p); - extern wxLuaBindMethod wxPreviewFrame_methods[]; - extern int wxPreviewFrame_methodCount; - extern void wxLua_wxPreviewFrame_delete_function(void** p); - extern wxLuaBindMethod wxPrintPreview_methods[]; - extern int wxPrintPreview_methodCount; - extern void wxLua_wxPrintPreview_delete_function(void** p); - extern wxLuaBindMethod wxPrinter_methods[]; - extern int wxPrinter_methodCount; - extern void wxLua_wxPrinter_delete_function(void** p); -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - extern wxLuaBindMethod wxPostScriptDC_methods[]; - extern int wxPostScriptDC_methodCount; - extern void wxLua_wxPostScriptDC_delete_function(void** p); -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - -#if (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - extern wxLuaBindMethod wxTextValidator_methods[]; - extern int wxTextValidator_methodCount; - extern void wxLua_wxTextValidator_delete_function(void** p); -#endif // (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -extern wxLuaBindMethod wxActivateEvent_methods[]; -extern int wxActivateEvent_methodCount; -extern void wxLua_wxActivateEvent_delete_function(void** p); -extern wxLuaBindMethod wxChildFocusEvent_methods[]; -extern int wxChildFocusEvent_methodCount; -extern void wxLua_wxChildFocusEvent_delete_function(void** p); -extern wxLuaBindMethod wxCloseEvent_methods[]; -extern int wxCloseEvent_methodCount; -extern void wxLua_wxCloseEvent_delete_function(void** p); -extern wxLuaBindMethod wxCommandEvent_methods[]; -extern int wxCommandEvent_methodCount; -extern void wxLua_wxCommandEvent_delete_function(void** p); -extern wxLuaBindMethod wxContextMenuEvent_methods[]; -extern int wxContextMenuEvent_methodCount; -extern void wxLua_wxContextMenuEvent_delete_function(void** p); -extern wxLuaBindMethod wxControl_methods[]; -extern int wxControl_methodCount; -extern void wxLua_wxControl_delete_function(void** p); -extern wxLuaBindMethod wxControlWithItems_methods[]; -extern int wxControlWithItems_methodCount; -static wxLuaArgType wxluabaseclass_wxluatypes_wxControlWithItems[] = { &wxluatype_wxItemContainer, &wxluatype_wxItemContainerImmutable, NULL }; -static wxIntPtr wxluabaseclass_vtable_offsets_wxControlWithItems[] = { wxIntPtr(((wxIntPtr)(wxItemContainer*)(wxControlWithItems*)&wxluatype_TNONE) - ((wxIntPtr)(wxControlWithItems*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxItemContainerImmutable*)(wxControlWithItems*)&wxluatype_TNONE) - ((wxIntPtr)(wxControlWithItems*)&wxluatype_TNONE)) }; -extern void wxLua_wxControlWithItems_delete_function(void** p); -extern wxLuaBindMethod wxDisplayChangedEvent_methods[]; -extern int wxDisplayChangedEvent_methodCount; -extern void wxLua_wxDisplayChangedEvent_delete_function(void** p); -extern wxLuaBindMethod wxEraseEvent_methods[]; -extern int wxEraseEvent_methodCount; -extern void wxLua_wxEraseEvent_delete_function(void** p); -extern wxLuaBindMethod wxFocusEvent_methods[]; -extern int wxFocusEvent_methodCount; -extern void wxLua_wxFocusEvent_delete_function(void** p); -extern wxLuaBindMethod wxGDIObject_methods[]; -extern int wxGDIObject_methodCount; -extern void wxLua_wxGDIObject_delete_function(void** p); -extern wxLuaBindMethod wxHelpEvent_methods[]; -extern int wxHelpEvent_methodCount; -extern wxLuaBindNumber wxHelpEvent_enums[]; -extern int wxHelpEvent_enumCount; -extern void wxLua_wxHelpEvent_delete_function(void** p); -extern wxLuaBindMethod wxIconizeEvent_methods[]; -extern int wxIconizeEvent_methodCount; -extern void wxLua_wxIconizeEvent_delete_function(void** p); -extern wxLuaBindMethod wxIdleEvent_methods[]; -extern int wxIdleEvent_methodCount; -extern void wxLua_wxIdleEvent_delete_function(void** p); -extern wxLuaBindMethod wxInitDialogEvent_methods[]; -extern int wxInitDialogEvent_methodCount; -extern void wxLua_wxInitDialogEvent_delete_function(void** p); -extern wxLuaBindMethod wxKeyEvent_methods[]; -extern int wxKeyEvent_methodCount; -extern void wxLua_wxKeyEvent_delete_function(void** p); -extern wxLuaBindMethod wxKeyboardState_methods[]; -extern int wxKeyboardState_methodCount; -extern void wxLua_wxKeyboardState_delete_function(void** p); -extern wxLuaBindMethod wxMaximizeEvent_methods[]; -extern int wxMaximizeEvent_methodCount; -extern void wxLua_wxMaximizeEvent_delete_function(void** p); -extern wxLuaBindMethod wxMouseCaptureChangedEvent_methods[]; -extern int wxMouseCaptureChangedEvent_methodCount; -extern void wxLua_wxMouseCaptureChangedEvent_delete_function(void** p); -extern wxLuaBindMethod wxMouseEvent_methods[]; -extern int wxMouseEvent_methodCount; -extern void wxLua_wxMouseEvent_delete_function(void** p); -extern wxLuaBindMethod wxMoveEvent_methods[]; -extern int wxMoveEvent_methodCount; -extern void wxLua_wxMoveEvent_delete_function(void** p); -extern wxLuaBindMethod wxNavigationKeyEvent_methods[]; -extern int wxNavigationKeyEvent_methodCount; -extern wxLuaBindNumber wxNavigationKeyEvent_enums[]; -extern int wxNavigationKeyEvent_enumCount; -extern void wxLua_wxNavigationKeyEvent_delete_function(void** p); -extern wxLuaBindMethod wxNotifyEvent_methods[]; -extern int wxNotifyEvent_methodCount; -extern void wxLua_wxNotifyEvent_delete_function(void** p); -extern wxLuaBindMethod wxPaintEvent_methods[]; -extern int wxPaintEvent_methodCount; -extern void wxLua_wxPaintEvent_delete_function(void** p); -extern wxLuaBindMethod wxPaletteChangedEvent_methods[]; -extern int wxPaletteChangedEvent_methodCount; -extern void wxLua_wxPaletteChangedEvent_delete_function(void** p); -extern wxLuaBindMethod wxPanel_methods[]; -extern int wxPanel_methodCount; -extern void wxLua_wxPanel_delete_function(void** p); -extern wxLuaBindMethod wxProcessEvent_methods[]; -extern int wxProcessEvent_methodCount; -extern void wxLua_wxProcessEvent_delete_function(void** p); -extern wxLuaBindMethod wxPropagateOnce_methods[]; -extern int wxPropagateOnce_methodCount; -extern void wxLua_wxPropagateOnce_delete_function(void** p); -extern wxLuaBindMethod wxPropagationDisabler_methods[]; -extern int wxPropagationDisabler_methodCount; -extern void wxLua_wxPropagationDisabler_delete_function(void** p); -extern wxLuaBindMethod wxQueryNewPaletteEvent_methods[]; -extern int wxQueryNewPaletteEvent_methodCount; -extern void wxLua_wxQueryNewPaletteEvent_delete_function(void** p); -extern wxLuaBindMethod wxScrollEvent_methods[]; -extern int wxScrollEvent_methodCount; -extern void wxLua_wxScrollEvent_delete_function(void** p); -extern wxLuaBindMethod wxScrollWinEvent_methods[]; -extern int wxScrollWinEvent_methodCount; -extern void wxLua_wxScrollWinEvent_delete_function(void** p); -extern wxLuaBindMethod wxSetCursorEvent_methods[]; -extern int wxSetCursorEvent_methodCount; -extern void wxLua_wxSetCursorEvent_delete_function(void** p); -extern wxLuaBindMethod wxShowEvent_methods[]; -extern int wxShowEvent_methodCount; -extern void wxLua_wxShowEvent_delete_function(void** p); -extern wxLuaBindMethod wxSizeEvent_methods[]; -extern int wxSizeEvent_methodCount; -extern void wxLua_wxSizeEvent_delete_function(void** p); -extern wxLuaBindMethod wxSysColourChangedEvent_methods[]; -extern int wxSysColourChangedEvent_methodCount; -extern void wxLua_wxSysColourChangedEvent_delete_function(void** p); -extern wxLuaBindMethod wxUpdateUIEvent_methods[]; -extern int wxUpdateUIEvent_methodCount; -extern void wxLua_wxUpdateUIEvent_delete_function(void** p); -extern wxLuaBindMethod wxVisualAttributes_methods[]; -extern int wxVisualAttributes_methodCount; -extern void wxLua_wxVisualAttributes_delete_function(void** p); -extern wxLuaBindMethod wxWindow_methods[]; -extern int wxWindow_methodCount; -extern void wxLua_wxWindow_delete_function(void** p); -extern wxLuaBindMethod wxWindowCreateEvent_methods[]; -extern int wxWindowCreateEvent_methodCount; -extern void wxLua_wxWindowCreateEvent_delete_function(void** p); -extern wxLuaBindMethod wxWindowDestroyEvent_methods[]; -extern int wxWindowDestroyEvent_methodCount; -extern void wxLua_wxWindowDestroyEvent_delete_function(void** p); -extern wxLuaBindMethod wxWindowDisabler_methods[]; -extern int wxWindowDisabler_methodCount; -extern void wxLua_wxWindowDisabler_delete_function(void** p); -extern wxLuaBindMethod wxWindowUpdateLocker_methods[]; -extern int wxWindowUpdateLocker_methodCount; -extern void wxLua_wxWindowUpdateLocker_delete_function(void** p); - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - extern wxLuaBindMethod wxTabCtrl_methods[]; - extern int wxTabCtrl_methodCount; - extern void wxLua_wxTabCtrl_delete_function(void** p); - extern wxLuaBindMethod wxTabEvent_methods[]; - extern int wxTabEvent_methodCount; - extern void wxLua_wxTabEvent_delete_function(void** p); -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - -#if wxCHECK_VERSION(2,8,0) - extern wxLuaBindMethod wxMouseCaptureLostEvent_methods[]; - extern int wxMouseCaptureLostEvent_methodCount; - extern void wxLua_wxMouseCaptureLostEvent_delete_function(void** p); - extern wxLuaBindMethod wxMouseState_methods[]; - extern int wxMouseState_methodCount; - extern void wxLua_wxMouseState_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - extern wxLuaBindMethod wxCollapsiblePane_methods[]; - extern int wxCollapsiblePane_methodCount; - extern void wxLua_wxCollapsiblePane_delete_function(void** p); - extern wxLuaBindMethod wxCollapsiblePaneEvent_methods[]; - extern int wxCollapsiblePaneEvent_methodCount; - extern void wxLua_wxCollapsiblePaneEvent_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - extern wxLuaBindMethod wxPickerBase_methods[]; - extern int wxPickerBase_methodCount; - extern void wxLua_wxPickerBase_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - extern wxLuaBindMethod wxToolbook_methods[]; - extern int wxToolbook_methodCount; - extern void wxLua_wxToolbook_delete_function(void** p); - extern wxLuaBindMethod wxToolbookEvent_methods[]; - extern int wxToolbookEvent_methodCount; - extern void wxLua_wxToolbookEvent_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - extern wxLuaBindMethod wxTreebook_methods[]; - extern int wxTreebook_methodCount; - extern void wxLua_wxTreebook_delete_function(void** p); - extern wxLuaBindMethod wxTreebookEvent_methods[]; - extern int wxTreebookEvent_methodCount; - extern void wxLua_wxTreebookEvent_delete_function(void** p); -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - -#if wxCHECK_VERSION(3,1,3) - extern wxLuaBindMethod wxDPIChangedEvent_methods[]; - extern int wxDPIChangedEvent_methodCount; - extern void wxLua_wxDPIChangedEvent_delete_function(void** p); -#endif // wxCHECK_VERSION(3,1,3) - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - extern wxLuaBindMethod wxPoint2DDouble_methods[]; - extern int wxPoint2DDouble_methodCount; - extern void wxLua_wxPoint2DDouble_delete_function(void** p); - extern wxLuaBindMethod wxPoint2DInt_methods[]; - extern int wxPoint2DInt_methodCount; - extern void wxLua_wxPoint2DInt_delete_function(void** p); - extern wxLuaBindMethod wxPosition_methods[]; - extern int wxPosition_methodCount; - extern void wxLua_wxPosition_delete_function(void** p); - extern wxLuaBindMethod wxRect2DDouble_methods[]; - extern int wxRect2DDouble_methodCount; - extern void wxLua_wxRect2DDouble_delete_function(void** p); - extern wxLuaBindMethod wxRect2DInt_methods[]; - extern int wxRect2DInt_methodCount; - extern void wxLua_wxRect2DInt_delete_function(void** p); -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - extern wxLuaBindMethod wxDocChildFrame_methods[]; - extern int wxDocChildFrame_methodCount; - extern void wxLua_wxDocChildFrame_delete_function(void** p); - extern wxLuaBindMethod wxDocMDIChildFrame_methods[]; - extern int wxDocMDIChildFrame_methodCount; - extern void wxLua_wxDocMDIChildFrame_delete_function(void** p); - extern wxLuaBindMethod wxDocMDIParentFrame_methods[]; - extern int wxDocMDIParentFrame_methodCount; - extern void wxLua_wxDocMDIParentFrame_delete_function(void** p); - extern wxLuaBindMethod wxDocManager_methods[]; - extern int wxDocManager_methodCount; - extern void wxLua_wxDocManager_delete_function(void** p); - extern wxLuaBindMethod wxDocParentFrame_methods[]; - extern int wxDocParentFrame_methodCount; - extern void wxLua_wxDocParentFrame_delete_function(void** p); - extern wxLuaBindMethod wxDocTemplate_methods[]; - extern int wxDocTemplate_methodCount; - extern void wxLua_wxDocTemplate_delete_function(void** p); - extern wxLuaBindMethod wxDocument_methods[]; - extern int wxDocument_methodCount; - extern void wxLua_wxDocument_delete_function(void** p); - extern wxLuaBindMethod wxMDIChildFrame_methods[]; - extern int wxMDIChildFrame_methodCount; - extern void wxLua_wxMDIChildFrame_delete_function(void** p); - extern wxLuaBindMethod wxMDIClientWindow_methods[]; - extern int wxMDIClientWindow_methodCount; - extern void wxLua_wxMDIClientWindow_delete_function(void** p); - extern wxLuaBindMethod wxMDIParentFrame_methods[]; - extern int wxMDIParentFrame_methodCount; - extern void wxLua_wxMDIParentFrame_delete_function(void** p); - extern wxLuaBindMethod wxView_methods[]; - extern int wxView_methodCount; - extern void wxLua_wxView_delete_function(void** p); -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - extern wxLuaBindMethod wxAcceleratorEntry_methods[]; - extern int wxAcceleratorEntry_methodCount; - extern void wxLua_wxAcceleratorEntry_delete_function(void** p); - extern wxLuaBindMethod wxAcceleratorTable_methods[]; - extern int wxAcceleratorTable_methodCount; - extern void wxLua_wxAcceleratorTable_delete_function(void** p); -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if wxLUA_USE_wxApp - extern wxLuaBindMethod wxApp_methods[]; - extern int wxApp_methodCount; - extern void wxLua_wxApp_delete_function(void** p); - extern wxLuaBindMethod wxAppConsole_methods[]; - extern int wxAppConsole_methodCount; - extern void wxLua_wxAppConsole_delete_function(void** p); -#endif // wxLUA_USE_wxApp - -#if wxLUA_USE_wxArtProvider - extern wxLuaBindMethod wxArtProvider_methods[]; - extern int wxArtProvider_methodCount; - extern void wxLua_wxArtProvider_delete_function(void** p); - extern wxLuaBindMethod wxLuaArtProvider_methods[]; - extern int wxLuaArtProvider_methodCount; - extern void wxLua_wxLuaArtProvider_delete_function(void** p); -#endif // wxLUA_USE_wxArtProvider - -#if wxLUA_USE_wxBitmap - extern wxLuaBindMethod wxBitmap_methods[]; - extern int wxBitmap_methodCount; - extern void wxLua_wxBitmap_delete_function(void** p); -#endif // wxLUA_USE_wxBitmap - -#if wxLUA_USE_wxBusyCursor - extern wxLuaBindMethod wxBusyCursor_methods[]; - extern int wxBusyCursor_methodCount; - extern void wxLua_wxBusyCursor_delete_function(void** p); -#endif // wxLUA_USE_wxBusyCursor - -#if wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - extern wxLuaBindMethod wxBusyInfo_methods[]; - extern int wxBusyInfo_methodCount; - extern void wxLua_wxBusyInfo_delete_function(void** p); -#endif // wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - extern wxLuaBindMethod wxAnyButton_methods[]; - extern int wxAnyButton_methodCount; - extern void wxLua_wxAnyButton_delete_function(void** p); - extern wxLuaBindMethod wxButton_methods[]; - extern int wxButton_methodCount; - extern void wxLua_wxButton_delete_function(void** p); -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if wxLUA_USE_wxCaret && wxUSE_CARET - extern wxLuaBindMethod wxCaret_methods[]; - extern int wxCaret_methodCount; - extern void wxLua_wxCaret_delete_function(void** p); - extern wxLuaBindMethod wxCaretSuspend_methods[]; - extern int wxCaretSuspend_methodCount; - extern void wxLua_wxCaretSuspend_delete_function(void** p); -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -#if wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - extern wxLuaBindMethod wxCheckBox_methods[]; - extern int wxCheckBox_methodCount; - extern void wxLua_wxCheckBox_delete_function(void** p); -#endif // wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - -#if wxLUA_USE_wxChoice && wxUSE_CHOICE - extern wxLuaBindMethod wxChoice_methods[]; - extern int wxChoice_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxChoice[] = { &wxluatype_wxItemContainer, &wxluatype_wxItemContainerImmutable, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxChoice[] = { wxIntPtr(((wxIntPtr)(wxItemContainer*)(wxChoice*)&wxluatype_TNONE) - ((wxIntPtr)(wxChoice*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxItemContainerImmutable*)(wxChoice*)&wxluatype_TNONE) - ((wxIntPtr)(wxChoice*)&wxluatype_TNONE)) }; - extern void wxLua_wxChoice_delete_function(void** p); -#endif // wxLUA_USE_wxChoice && wxUSE_CHOICE - -#if wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - extern wxLuaBindMethod wxClipboard_methods[]; - extern int wxClipboard_methodCount; - extern void wxLua_wxClipboard_delete_function(void** p); - extern wxLuaBindMethod wxClipboardLocker_methods[]; - extern int wxClipboardLocker_methodCount; - extern void wxLua_wxClipboardLocker_delete_function(void** p); -#endif // wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - extern wxLuaBindMethod wxColourData_methods[]; - extern int wxColourData_methodCount; - extern void wxLua_wxColourData_delete_function(void** p); - extern wxLuaBindMethod wxColourDialog_methods[]; - extern int wxColourDialog_methodCount; - extern void wxLua_wxColourDialog_delete_function(void** p); -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - -#if wxLUA_USE_wxColourPenBrush - extern wxLuaBindMethod wxBrush_methods[]; - extern int wxBrush_methodCount; - extern void wxLua_wxBrush_delete_function(void** p); - extern wxLuaBindMethod wxColour_methods[]; - extern int wxColour_methodCount; - extern void wxLua_wxColour_delete_function(void** p); - extern wxLuaBindMethod wxColourDatabase_methods[]; - extern int wxColourDatabase_methodCount; - extern void wxLua_wxColourDatabase_delete_function(void** p); - extern wxLuaBindMethod wxPen_methods[]; - extern int wxPen_methodCount; - extern void wxLua_wxPen_delete_function(void** p); -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - extern wxLuaBindMethod wxComboBox_methods[]; - extern int wxComboBox_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxComboBox[] = { &wxluatype_wxItemContainer, &wxluatype_wxItemContainerImmutable, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxComboBox[] = { wxIntPtr(((wxIntPtr)(wxItemContainer*)(wxComboBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxComboBox*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxItemContainerImmutable*)(wxComboBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxComboBox*)&wxluatype_TNONE)) }; - extern void wxLua_wxComboBox_delete_function(void** p); -#endif // wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - -#if wxLUA_USE_wxCommandProcessor - extern wxLuaBindMethod wxCommand_methods[]; - extern int wxCommand_methodCount; - extern void wxLua_wxCommand_delete_function(void** p); - extern wxLuaBindMethod wxCommandProcessor_methods[]; - extern int wxCommandProcessor_methodCount; - extern void wxLua_wxCommandProcessor_delete_function(void** p); -#endif // wxLUA_USE_wxCommandProcessor - -#if wxLUA_USE_wxCursor - extern wxLuaBindMethod wxCursor_methods[]; - extern int wxCursor_methodCount; - extern void wxLua_wxCursor_delete_function(void** p); -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxDC - extern wxLuaBindMethod wxBufferedDC_methods[]; - extern int wxBufferedDC_methodCount; - extern void wxLua_wxBufferedDC_delete_function(void** p); - extern wxLuaBindMethod wxBufferedPaintDC_methods[]; - extern int wxBufferedPaintDC_methodCount; - extern void wxLua_wxBufferedPaintDC_delete_function(void** p); - extern wxLuaBindMethod wxClientDC_methods[]; - extern int wxClientDC_methodCount; - extern void wxLua_wxClientDC_delete_function(void** p); - extern wxLuaBindMethod wxDC_methods[]; - extern int wxDC_methodCount; - extern void wxLua_wxDC_delete_function(void** p); - extern wxLuaBindMethod wxDCClipper_methods[]; - extern int wxDCClipper_methodCount; - extern void wxLua_wxDCClipper_delete_function(void** p); - extern wxLuaBindMethod wxMemoryDC_methods[]; - extern int wxMemoryDC_methodCount; - extern void wxLua_wxMemoryDC_delete_function(void** p); - extern wxLuaBindMethod wxMirrorDC_methods[]; - extern int wxMirrorDC_methodCount; - extern void wxLua_wxMirrorDC_delete_function(void** p); - extern wxLuaBindMethod wxPaintDC_methods[]; - extern int wxPaintDC_methodCount; - extern void wxLua_wxPaintDC_delete_function(void** p); - extern wxLuaBindMethod wxScreenDC_methods[]; - extern int wxScreenDC_methodCount; - extern void wxLua_wxScreenDC_delete_function(void** p); - extern wxLuaBindMethod wxWindowDC_methods[]; - extern int wxWindowDC_methodCount; - extern void wxLua_wxWindowDC_delete_function(void** p); -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - extern wxLuaBindMethod wxBitmapDataObject_methods[]; - extern int wxBitmapDataObject_methodCount; - extern void wxLua_wxBitmapDataObject_delete_function(void** p); - extern wxLuaBindMethod wxDataFormat_methods[]; - extern int wxDataFormat_methodCount; - extern void wxLua_wxDataFormat_delete_function(void** p); - extern wxLuaBindMethod wxDataObject_methods[]; - extern int wxDataObject_methodCount; - extern wxLuaBindNumber wxDataObject_enums[]; - extern int wxDataObject_enumCount; - extern void wxLua_wxDataObject_delete_function(void** p); - extern wxLuaBindMethod wxDataObjectComposite_methods[]; - extern int wxDataObjectComposite_methodCount; - extern void wxLua_wxDataObjectComposite_delete_function(void** p); - extern wxLuaBindMethod wxDataObjectSimple_methods[]; - extern int wxDataObjectSimple_methodCount; - extern void wxLua_wxDataObjectSimple_delete_function(void** p); - extern wxLuaBindMethod wxFileDataObject_methods[]; - extern int wxFileDataObject_methodCount; - extern void wxLua_wxFileDataObject_delete_function(void** p); - extern wxLuaBindMethod wxLuaDataObjectSimple_methods[]; - extern int wxLuaDataObjectSimple_methodCount; - extern void wxLua_wxLuaDataObjectSimple_delete_function(void** p); - extern wxLuaBindMethod wxTextDataObject_methods[]; - extern int wxTextDataObject_methodCount; - extern void wxLua_wxTextDataObject_delete_function(void** p); -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxDialog - extern wxLuaBindMethod wxDialog_methods[]; - extern int wxDialog_methodCount; - extern void wxLua_wxDialog_delete_function(void** p); -#endif // wxLUA_USE_wxDialog - -#if wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - extern wxLuaBindMethod wxDirDialog_methods[]; - extern int wxDirDialog_methodCount; - extern void wxLua_wxDirDialog_delete_function(void** p); -#endif // wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - extern wxLuaBindMethod wxArrayVideoModes_methods[]; - extern int wxArrayVideoModes_methodCount; - extern void wxLua_wxArrayVideoModes_delete_function(void** p); - extern wxLuaBindMethod wxDisplay_methods[]; - extern int wxDisplay_methodCount; - extern void wxLua_wxDisplay_delete_function(void** p); - extern wxLuaBindMethod wxVideoMode_methods[]; - extern int wxVideoMode_methodCount; - extern void wxLua_wxVideoMode_delete_function(void** p); -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - extern wxLuaBindMethod wxDropFilesEvent_methods[]; - extern int wxDropFilesEvent_methodCount; - extern void wxLua_wxDropFilesEvent_delete_function(void** p); - extern wxLuaBindMethod wxDropSource_methods[]; - extern int wxDropSource_methodCount; - extern void wxLua_wxDropSource_delete_function(void** p); - extern wxLuaBindMethod wxDropTarget_methods[]; - extern int wxDropTarget_methodCount; - extern void wxLua_wxDropTarget_delete_function(void** p); - extern wxLuaBindMethod wxFileDropTarget_methods[]; - extern int wxFileDropTarget_methodCount; - extern void wxLua_wxFileDropTarget_delete_function(void** p); - extern wxLuaBindMethod wxLuaFileDropTarget_methods[]; - extern int wxLuaFileDropTarget_methodCount; - extern void wxLua_wxLuaFileDropTarget_delete_function(void** p); - extern wxLuaBindMethod wxLuaTextDropTarget_methods[]; - extern int wxLuaTextDropTarget_methodCount; - extern void wxLua_wxLuaTextDropTarget_delete_function(void** p); - extern wxLuaBindMethod wxLuaURLDropTarget_methods[]; - extern int wxLuaURLDropTarget_methodCount; - extern void wxLua_wxLuaURLDropTarget_delete_function(void** p); - extern wxLuaBindMethod wxTextDropTarget_methods[]; - extern int wxTextDropTarget_methodCount; - extern void wxLua_wxTextDropTarget_delete_function(void** p); -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - extern wxLuaBindMethod wxFileDialog_methods[]; - extern int wxFileDialog_methodCount; - extern void wxLua_wxFileDialog_delete_function(void** p); -#endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - -#if wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - extern wxLuaBindMethod wxFileHistory_methods[]; - extern int wxFileHistory_methodCount; - extern void wxLua_wxFileHistory_delete_function(void** p); -#endif // wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxFont - extern wxLuaBindMethod wxFont_methods[]; - extern int wxFont_methodCount; - extern void wxLua_wxFont_delete_function(void** p); - extern wxLuaBindMethod wxFontInfo_methods[]; - extern int wxFontInfo_methodCount; - extern void wxLua_wxFontInfo_delete_function(void** p); - extern wxLuaBindMethod wxNativeFontInfo_methods[]; - extern int wxNativeFontInfo_methodCount; - extern void wxLua_wxNativeFontInfo_delete_function(void** p); -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxFontEnumerator - extern wxLuaBindMethod wxFontEnumerator_methods[]; - extern int wxFontEnumerator_methodCount; - extern void wxLua_wxFontEnumerator_delete_function(void** p); -#endif // wxLUA_USE_wxFontEnumerator - -#if wxLUA_USE_wxFontList - extern wxLuaBindMethod wxFontList_methods[]; - extern int wxFontList_methodCount; - extern void wxLua_wxFontList_delete_function(void** p); -#endif // wxLUA_USE_wxFontList - -#if wxLUA_USE_wxFontMapper - extern wxLuaBindMethod wxFontMapper_methods[]; - extern int wxFontMapper_methodCount; - extern void wxLua_wxFontMapper_delete_function(void** p); -#endif // wxLUA_USE_wxFontMapper - -#if wxLUA_USE_wxFrame - extern wxLuaBindMethod wxFrame_methods[]; - extern int wxFrame_methodCount; - extern void wxLua_wxFrame_delete_function(void** p); -#endif // wxLUA_USE_wxFrame - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - extern wxLuaBindMethod wxNonOwnedWindow_methods[]; - extern int wxNonOwnedWindow_methodCount; - extern void wxLua_wxNonOwnedWindow_delete_function(void** p); - extern wxLuaBindMethod wxTopLevelWindow_methods[]; - extern int wxTopLevelWindow_methodCount; - extern void wxLua_wxTopLevelWindow_delete_function(void** p); -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - extern wxLuaBindMethod wxGauge_methods[]; - extern int wxGauge_methodCount; - extern void wxLua_wxGauge_delete_function(void** p); -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - extern wxLuaBindMethod wxGenericDirCtrl_methods[]; - extern int wxGenericDirCtrl_methodCount; - extern void wxLua_wxGenericDirCtrl_delete_function(void** p); -#endif // wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - extern wxLuaBindMethod wxContextHelp_methods[]; - extern int wxContextHelp_methodCount; - extern void wxLua_wxContextHelp_delete_function(void** p); - extern wxLuaBindMethod wxHelpController_methods[]; - extern int wxHelpController_methodCount; - extern void wxLua_wxHelpController_delete_function(void** p); - extern wxLuaBindMethod wxHelpControllerBase_methods[]; - extern int wxHelpControllerBase_methodCount; - extern void wxLua_wxHelpControllerBase_delete_function(void** p); - extern wxLuaBindMethod wxHelpControllerHelpProvider_methods[]; - extern int wxHelpControllerHelpProvider_methodCount; - extern void wxLua_wxHelpControllerHelpProvider_delete_function(void** p); - extern wxLuaBindMethod wxHelpProvider_methods[]; - extern int wxHelpProvider_methodCount; - extern void wxLua_wxHelpProvider_delete_function(void** p); - extern wxLuaBindMethod wxSimpleHelpProvider_methods[]; - extern int wxSimpleHelpProvider_methodCount; - extern void wxLua_wxSimpleHelpProvider_delete_function(void** p); -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if wxLUA_USE_wxIcon - extern wxLuaBindMethod wxIcon_methods[]; - extern int wxIcon_methodCount; - extern void wxLua_wxIcon_delete_function(void** p); - extern wxLuaBindMethod wxIconBundle_methods[]; - extern int wxIconBundle_methodCount; - extern void wxLua_wxIconBundle_delete_function(void** p); -#endif // wxLUA_USE_wxIcon - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - extern wxLuaBindMethod wxBMPHandler_methods[]; - extern int wxBMPHandler_methodCount; - extern void wxLua_wxBMPHandler_delete_function(void** p); - extern wxLuaBindMethod wxImage_methods[]; - extern int wxImage_methodCount; - extern void wxLua_wxImage_delete_function(void** p); - extern wxLuaBindMethod wxImageHandler_methods[]; - extern int wxImageHandler_methodCount; - extern void wxLua_wxImageHandler_delete_function(void** p); - extern wxLuaBindMethod wxImageHistogram_methods[]; - extern int wxImageHistogram_methodCount; - extern void wxLua_wxImageHistogram_delete_function(void** p); - extern wxLuaBindMethod wxImageHistogram_iterator_methods[]; - extern int wxImageHistogram_iterator_methodCount; - extern void wxLua_wxImageHistogram_iterator_delete_function(void** p); - extern wxLuaBindMethod wxImageHistogramEntry_methods[]; - extern int wxImageHistogramEntry_methodCount; - extern void wxLua_wxImageHistogramEntry_delete_function(void** p); - extern wxLuaBindMethod wxQuantize_methods[]; - extern int wxQuantize_methodCount; - extern void wxLua_wxQuantize_delete_function(void** p); - extern wxLuaBindMethod wxXPMHandler_methods[]; - extern int wxXPMHandler_methodCount; - extern void wxLua_wxXPMHandler_delete_function(void** p); -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxLUA_USE_wxImageList - extern wxLuaBindMethod wxImageList_methods[]; - extern int wxImageList_methodCount; - extern void wxLua_wxImageList_delete_function(void** p); -#endif // wxLUA_USE_wxImageList - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - extern wxLuaBindMethod wxListBox_methods[]; - extern int wxListBox_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxListBox[] = { &wxluatype_wxItemContainer, &wxluatype_wxItemContainerImmutable, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxListBox[] = { wxIntPtr(((wxIntPtr)(wxItemContainer*)(wxListBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxListBox*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxItemContainerImmutable*)(wxListBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxListBox*)&wxluatype_TNONE)) }; - extern void wxLua_wxListBox_delete_function(void** p); -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - extern wxLuaBindMethod wxListCtrl_methods[]; - extern int wxListCtrl_methodCount; - extern void wxLua_wxListCtrl_delete_function(void** p); - extern wxLuaBindMethod wxListEvent_methods[]; - extern int wxListEvent_methodCount; - extern void wxLua_wxListEvent_delete_function(void** p); - extern wxLuaBindMethod wxListItem_methods[]; - extern int wxListItem_methodCount; - extern void wxLua_wxListItem_delete_function(void** p); - extern wxLuaBindMethod wxListItemAttr_methods[]; - extern int wxListItemAttr_methodCount; - extern void wxLua_wxListItemAttr_delete_function(void** p); - extern wxLuaBindMethod wxListView_methods[]; - extern int wxListView_methodCount; - extern void wxLua_wxListView_delete_function(void** p); - extern wxLuaBindMethod wxLuaListCtrl_methods[]; - extern int wxLuaListCtrl_methodCount; - extern void wxLua_wxLuaListCtrl_delete_function(void** p); -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if wxLUA_USE_wxMask - extern wxLuaBindMethod wxMask_methods[]; - extern int wxMask_methodCount; - extern void wxLua_wxMask_delete_function(void** p); -#endif // wxLUA_USE_wxMask - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - extern wxLuaBindMethod wxMenu_methods[]; - extern int wxMenu_methodCount; - extern void wxLua_wxMenu_delete_function(void** p); - extern wxLuaBindMethod wxMenuBar_methods[]; - extern int wxMenuBar_methodCount; - extern void wxLua_wxMenuBar_delete_function(void** p); - extern wxLuaBindMethod wxMenuEvent_methods[]; - extern int wxMenuEvent_methodCount; - extern void wxLua_wxMenuEvent_delete_function(void** p); - extern wxLuaBindMethod wxMenuItem_methods[]; - extern int wxMenuItem_methodCount; - extern void wxLua_wxMenuItem_delete_function(void** p); - extern wxLuaBindMethod wxMenuItemList_methods[]; - extern int wxMenuItemList_methodCount; - extern void wxLua_wxMenuItemList_delete_function(void** p); -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - extern wxLuaBindMethod wxMessageDialog_methods[]; - extern int wxMessageDialog_methodCount; - extern void wxLua_wxMessageDialog_delete_function(void** p); -#endif // wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - -#if wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - extern wxLuaBindMethod wxMetafile_methods[]; - extern int wxMetafile_methodCount; - extern void wxLua_wxMetafile_delete_function(void** p); - extern wxLuaBindMethod wxMetafileDC_methods[]; - extern int wxMetafileDC_methodCount; - extern void wxLua_wxMetafileDC_delete_function(void** p); -#endif // wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - extern wxLuaBindMethod wxChoicebook_methods[]; - extern int wxChoicebook_methodCount; - extern void wxLua_wxChoicebook_delete_function(void** p); - extern wxLuaBindMethod wxChoicebookEvent_methods[]; - extern int wxChoicebookEvent_methodCount; - extern void wxLua_wxChoicebookEvent_delete_function(void** p); -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - extern wxLuaBindMethod wxListbook_methods[]; - extern int wxListbook_methodCount; - extern void wxLua_wxListbook_delete_function(void** p); - extern wxLuaBindMethod wxListbookEvent_methods[]; - extern int wxListbookEvent_methodCount; - extern void wxLua_wxListbookEvent_delete_function(void** p); -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - extern wxLuaBindMethod wxBookCtrlBase_methods[]; - extern int wxBookCtrlBase_methodCount; - extern void wxLua_wxBookCtrlBase_delete_function(void** p); - extern wxLuaBindMethod wxBookCtrlBaseEvent_methods[]; - extern int wxBookCtrlBaseEvent_methodCount; - extern void wxLua_wxBookCtrlBaseEvent_delete_function(void** p); -#endif // wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - extern wxLuaBindMethod wxNotebook_methods[]; - extern int wxNotebook_methodCount; - extern void wxLua_wxNotebook_delete_function(void** p); - extern wxLuaBindMethod wxNotebookEvent_methods[]; - extern int wxNotebookEvent_methodCount; - extern void wxLua_wxNotebookEvent_delete_function(void** p); -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - -#if wxLUA_USE_wxPalette && wxUSE_PALETTE - extern wxLuaBindMethod wxPalette_methods[]; - extern int wxPalette_methodCount; - extern void wxLua_wxPalette_delete_function(void** p); -#endif // wxLUA_USE_wxPalette && wxUSE_PALETTE - -#if wxLUA_USE_wxPointSizeRect - extern wxLuaBindMethod wxPoint_methods[]; - extern int wxPoint_methodCount; - extern void wxLua_wxPoint_delete_function(void** p); - extern wxLuaBindMethod wxRealPoint_methods[]; - extern int wxRealPoint_methodCount; - extern void wxLua_wxRealPoint_delete_function(void** p); - extern wxLuaBindMethod wxRect_methods[]; - extern int wxRect_methodCount; - extern void wxLua_wxRect_delete_function(void** p); - extern wxLuaBindMethod wxSize_methods[]; - extern int wxSize_methodCount; - extern void wxLua_wxSize_delete_function(void** p); -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxPopupTransientWindow - extern wxLuaBindMethod wxPopupTransientWindow_methods[]; - extern int wxPopupTransientWindow_methodCount; - extern void wxLua_wxPopupTransientWindow_delete_function(void** p); -#endif // wxLUA_USE_wxPopupTransientWindow - -#if wxLUA_USE_wxPopupWindow - extern wxLuaBindMethod wxPopupWindow_methods[]; - extern int wxPopupWindow_methodCount; - extern void wxLua_wxPopupWindow_delete_function(void** p); -#endif // wxLUA_USE_wxPopupWindow - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - extern wxLuaBindMethod wxPageSetupDialog_methods[]; - extern int wxPageSetupDialog_methodCount; - extern void wxLua_wxPageSetupDialog_delete_function(void** p); - extern wxLuaBindMethod wxPageSetupDialogData_methods[]; - extern int wxPageSetupDialogData_methodCount; - extern void wxLua_wxPageSetupDialogData_delete_function(void** p); - extern wxLuaBindMethod wxPreviewCanvas_methods[]; - extern int wxPreviewCanvas_methodCount; - extern void wxLua_wxPreviewCanvas_delete_function(void** p); - extern wxLuaBindMethod wxPreviewControlBar_methods[]; - extern int wxPreviewControlBar_methodCount; - extern void wxLua_wxPreviewControlBar_delete_function(void** p); - extern wxLuaBindMethod wxPrintData_methods[]; - extern int wxPrintData_methodCount; - extern void wxLua_wxPrintData_delete_function(void** p); - extern wxLuaBindMethod wxPrintDialog_methods[]; - extern int wxPrintDialog_methodCount; - extern void wxLua_wxPrintDialog_delete_function(void** p); - extern wxLuaBindMethod wxPrintDialogData_methods[]; - extern int wxPrintDialogData_methodCount; - extern void wxLua_wxPrintDialogData_delete_function(void** p); - extern wxLuaBindMethod wxPrintout_methods[]; - extern int wxPrintout_methodCount; - extern void wxLua_wxPrintout_delete_function(void** p); -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxProcess - extern wxLuaBindMethod wxLuaProcess_methods[]; - extern int wxLuaProcess_methodCount; - extern void wxLua_wxLuaProcess_delete_function(void** p); - extern wxLuaBindMethod wxProcess_methods[]; - extern int wxProcess_methodCount; - extern void wxLua_wxProcess_delete_function(void** p); -#endif // wxLUA_USE_wxProcess - -#if wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - extern wxLuaBindMethod wxRadioBox_methods[]; - extern int wxRadioBox_methodCount; - extern void wxLua_wxRadioBox_delete_function(void** p); -#endif // wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - -#if wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - extern wxLuaBindMethod wxRadioButton_methods[]; - extern int wxRadioButton_methodCount; - extern void wxLua_wxRadioButton_delete_function(void** p); -#endif // wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - -#if wxLUA_USE_wxRegion - extern wxLuaBindMethod wxRegion_methods[]; - extern int wxRegion_methodCount; - extern void wxLua_wxRegion_delete_function(void** p); - extern wxLuaBindMethod wxRegionIterator_methods[]; - extern int wxRegionIterator_methodCount; - extern void wxLua_wxRegionIterator_delete_function(void** p); -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_wxRenderer - extern wxLuaBindMethod wxHeaderButtonParams_methods[]; - extern int wxHeaderButtonParams_methodCount; - extern void wxLua_wxHeaderButtonParams_delete_function(void** p); - extern wxLuaBindMethod wxRendererNative_methods[]; - extern int wxRendererNative_methodCount; - extern void wxLua_wxRendererNative_delete_function(void** p); - extern wxLuaBindMethod wxRendererVersion_methods[]; - extern int wxRendererVersion_methodCount; - extern wxLuaBindNumber wxRendererVersion_enums[]; - extern int wxRendererVersion_enumCount; - extern void wxLua_wxRendererVersion_delete_function(void** p); - extern wxLuaBindMethod wxSplitterRenderParams_methods[]; - extern int wxSplitterRenderParams_methodCount; - extern void wxLua_wxSplitterRenderParams_delete_function(void** p); -#endif // wxLUA_USE_wxRenderer - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - extern wxLuaBindMethod wxScrollBar_methods[]; - extern int wxScrollBar_methodCount; - extern void wxLua_wxScrollBar_delete_function(void** p); -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -#if wxLUA_USE_wxScrolledWindow - extern wxLuaBindMethod wxScrollHelper_methods[]; - extern int wxScrollHelper_methodCount; - extern void wxLua_wxScrollHelper_delete_function(void** p); - extern wxLuaBindMethod wxScrolledWindow_methods[]; - extern int wxScrolledWindow_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxScrolledWindow[] = { &wxluatype_wxScrollHelper, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxScrolledWindow[] = { wxIntPtr(((wxIntPtr)(wxScrollHelper*)(wxScrolledWindow*)&wxluatype_TNONE) - ((wxIntPtr)(wxScrolledWindow*)&wxluatype_TNONE)) }; - extern void wxLua_wxScrolledWindow_delete_function(void** p); -#endif // wxLUA_USE_wxScrolledWindow - -#if wxLUA_USE_wxSlider && wxUSE_SLIDER - extern wxLuaBindMethod wxSlider_methods[]; - extern int wxSlider_methodCount; - extern void wxLua_wxSlider_delete_function(void** p); -#endif // wxLUA_USE_wxSlider && wxUSE_SLIDER - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - extern wxLuaBindMethod wxSpinButton_methods[]; - extern int wxSpinButton_methodCount; - extern void wxLua_wxSpinButton_delete_function(void** p); - extern wxLuaBindMethod wxSpinEvent_methods[]; - extern int wxSpinEvent_methodCount; - extern void wxLua_wxSpinEvent_delete_function(void** p); -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - extern wxLuaBindMethod wxSpinCtrl_methods[]; - extern int wxSpinCtrl_methodCount; - extern void wxLua_wxSpinCtrl_delete_function(void** p); -#endif // wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - extern wxLuaBindMethod wxSpinCtrlDouble_methods[]; - extern int wxSpinCtrlDouble_methodCount; - extern void wxLua_wxSpinCtrlDouble_delete_function(void** p); - extern wxLuaBindMethod wxSpinDoubleEvent_methods[]; - extern int wxSpinDoubleEvent_methodCount; - extern void wxLua_wxSpinDoubleEvent_delete_function(void** p); -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSplitterWindow - extern wxLuaBindMethod wxSplitterEvent_methods[]; - extern int wxSplitterEvent_methodCount; - extern void wxLua_wxSplitterEvent_delete_function(void** p); - extern wxLuaBindMethod wxSplitterWindow_methods[]; - extern int wxSplitterWindow_methodCount; - extern void wxLua_wxSplitterWindow_delete_function(void** p); -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - extern wxLuaBindMethod wxStaticBitmap_methods[]; - extern int wxStaticBitmap_methodCount; - extern void wxLua_wxStaticBitmap_delete_function(void** p); -#endif // wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - -#if wxLUA_USE_wxStaticBox && wxUSE_STATBOX - extern wxLuaBindMethod wxStaticBox_methods[]; - extern int wxStaticBox_methodCount; - extern void wxLua_wxStaticBox_delete_function(void** p); -#endif // wxLUA_USE_wxStaticBox && wxUSE_STATBOX - -#if wxLUA_USE_wxStaticLine && wxUSE_STATLINE - extern wxLuaBindMethod wxStaticLine_methods[]; - extern int wxStaticLine_methodCount; - extern void wxLua_wxStaticLine_delete_function(void** p); -#endif // wxLUA_USE_wxStaticLine && wxUSE_STATLINE - -#if wxLUA_USE_wxStaticText && wxUSE_STATTEXT - extern wxLuaBindMethod wxStaticText_methods[]; - extern int wxStaticText_methodCount; - extern void wxLua_wxStaticText_delete_function(void** p); -#endif // wxLUA_USE_wxStaticText && wxUSE_STATTEXT - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - extern wxLuaBindMethod wxStatusBar_methods[]; - extern int wxStatusBar_methodCount; - extern void wxLua_wxStatusBar_delete_function(void** p); - extern wxLuaBindMethod wxStatusBarPane_methods[]; - extern int wxStatusBarPane_methodCount; - extern void wxLua_wxStatusBarPane_delete_function(void** p); -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - -#if wxLUA_USE_wxSystemSettings - extern wxLuaBindMethod wxSystemSettings_methods[]; - extern int wxSystemSettings_methodCount; - extern void wxLua_wxSystemSettings_delete_function(void** p); -#endif // wxLUA_USE_wxSystemSettings - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - extern wxLuaBindMethod wxTextAreaBase_methods[]; - extern int wxTextAreaBase_methodCount; - extern void wxLua_wxTextAreaBase_delete_function(void** p); - extern wxLuaBindMethod wxTextAttr_methods[]; - extern int wxTextAttr_methodCount; - extern void wxLua_wxTextAttr_delete_function(void** p); - extern wxLuaBindMethod wxTextCtrl_methods[]; - extern int wxTextCtrl_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxTextCtrl[] = { &wxluatype_wxTextEntry, &wxluatype_wxTextAreaBase, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxTextCtrl[] = { wxIntPtr(((wxIntPtr)(wxTextEntry*)(wxTextCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxTextCtrl*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxTextAreaBase*)(wxTextCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxTextCtrl*)&wxluatype_TNONE)) }; - extern void wxLua_wxTextCtrl_delete_function(void** p); - extern wxLuaBindMethod wxTextCtrlIface_methods[]; - extern int wxTextCtrlIface_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxTextCtrlIface[] = { &wxluatype_wxTextEntry, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxTextCtrlIface[] = { wxIntPtr(((wxIntPtr)(wxTextEntry*)(wxTextCtrlIface*)&wxluatype_TNONE) - ((wxIntPtr)(wxTextCtrlIface*)&wxluatype_TNONE)) }; - extern void wxLua_wxTextCtrlIface_delete_function(void** p); - extern wxLuaBindMethod wxTextEntry_methods[]; - extern int wxTextEntry_methodCount; - extern void wxLua_wxTextEntry_delete_function(void** p); - extern wxLuaBindMethod wxTextUrlEvent_methods[]; - extern int wxTextUrlEvent_methodCount; - extern void wxLua_wxTextUrlEvent_delete_function(void** p); -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxLUA_USE_wxTimer && wxUSE_TIMER - extern wxLuaBindMethod wxTimer_methods[]; - extern int wxTimer_methodCount; - extern void wxLua_wxTimer_delete_function(void** p); - extern wxLuaBindMethod wxTimerEvent_methods[]; - extern int wxTimerEvent_methodCount; - extern void wxLua_wxTimerEvent_delete_function(void** p); -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - extern wxLuaBindMethod wxBitmapToggleButton_methods[]; - extern int wxBitmapToggleButton_methodCount; - extern void wxLua_wxBitmapToggleButton_delete_function(void** p); - extern wxLuaBindMethod wxToggleButton_methods[]; - extern int wxToggleButton_methodCount; - extern void wxLua_wxToggleButton_delete_function(void** p); -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - -#if wxLUA_USE_wxToolbar - extern wxLuaBindMethod wxToolBar_methods[]; - extern int wxToolBar_methodCount; - extern void wxLua_wxToolBar_delete_function(void** p); - extern wxLuaBindMethod wxToolBarBase_methods[]; - extern int wxToolBarBase_methodCount; - extern void wxLua_wxToolBarBase_delete_function(void** p); - extern wxLuaBindMethod wxToolBarToolBase_methods[]; - extern int wxToolBarToolBase_methodCount; - extern void wxLua_wxToolBarToolBase_delete_function(void** p); -#endif // wxLUA_USE_wxToolbar - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - extern wxLuaBindMethod wxToolTip_methods[]; - extern int wxToolTip_methodCount; - extern void wxLua_wxToolTip_delete_function(void** p); -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - extern wxLuaBindMethod wxLuaTreeItemData_methods[]; - extern int wxLuaTreeItemData_methodCount; - extern void wxLua_wxLuaTreeItemData_delete_function(void** p); - extern wxLuaBindMethod wxTreeCtrl_methods[]; - extern int wxTreeCtrl_methodCount; - extern void wxLua_wxTreeCtrl_delete_function(void** p); - extern wxLuaBindMethod wxTreeEvent_methods[]; - extern int wxTreeEvent_methodCount; - extern void wxLua_wxTreeEvent_delete_function(void** p); - extern wxLuaBindMethod wxTreeItemData_methods[]; - extern int wxTreeItemData_methodCount; - extern void wxLua_wxTreeItemData_delete_function(void** p); - extern wxLuaBindMethod wxTreeItemId_methods[]; - extern int wxTreeItemId_methodCount; - extern void wxLua_wxTreeItemId_delete_function(void** p); -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - extern wxLuaBindMethod wxTreeListCtrl_methods[]; - extern int wxTreeListCtrl_methodCount; - extern void wxLua_wxTreeListCtrl_delete_function(void** p); - extern wxLuaBindMethod wxTreeListEvent_methods[]; - extern int wxTreeListEvent_methodCount; - extern void wxLua_wxTreeListEvent_delete_function(void** p); - extern wxLuaBindMethod wxTreeListItem_methods[]; - extern int wxTreeListItem_methodCount; - extern void wxLua_wxTreeListItem_delete_function(void** p); -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - extern wxLuaBindMethod wxValidator_methods[]; - extern int wxValidator_methodCount; - extern void wxLua_wxValidator_delete_function(void** p); -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxWindowList && !wxUSE_STL - extern wxLuaBindMethod wxWindowList_methods[]; - extern int wxWindowList_methodCount; - extern void wxLua_wxWindowList_delete_function(void** p); -#endif // wxLUA_USE_wxWindowList && !wxUSE_STL - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - extern wxLuaBindMethod wxMultiChoiceDialog_methods[]; - extern int wxMultiChoiceDialog_methodCount; - extern void wxLua_wxMultiChoiceDialog_delete_function(void** p); -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - extern wxLuaBindMethod wxSingleChoiceDialog_methods[]; - extern int wxSingleChoiceDialog_methodCount; - extern void wxLua_wxSingleChoiceDialog_delete_function(void** p); -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - -#if wxUSE_COMBOCTRL - extern wxLuaBindMethod wxComboCtrl_methods[]; - extern int wxComboCtrl_methodCount; - extern wxLuaBindNumber wxComboCtrl_enums[]; - extern int wxComboCtrl_enumCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxComboCtrl[] = { &wxluatype_wxTextEntry, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxComboCtrl[] = { wxIntPtr(((wxIntPtr)(wxTextEntry*)(wxComboCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxComboCtrl*)&wxluatype_TNONE)) }; - extern void wxLua_wxComboCtrl_delete_function(void** p); - extern wxLuaBindMethod wxComboCtrlFeatures_methods[]; - extern int wxComboCtrlFeatures_methodCount; - extern wxLuaBindNumber wxComboCtrlFeatures_enums[]; - extern int wxComboCtrlFeatures_enumCount; - extern void wxLua_wxComboCtrlFeatures_delete_function(void** p); - extern wxLuaBindMethod wxComboPopup_methods[]; - extern int wxComboPopup_methodCount; - extern void wxLua_wxComboPopup_delete_function(void** p); -#endif // wxUSE_COMBOCTRL - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - extern wxLuaBindMethod wxFindDialogEvent_methods[]; - extern int wxFindDialogEvent_methodCount; - extern void wxLua_wxFindDialogEvent_delete_function(void** p); - extern wxLuaBindMethod wxFindReplaceData_methods[]; - extern int wxFindReplaceData_methodCount; - extern void wxLua_wxFindReplaceData_delete_function(void** p); - extern wxLuaBindMethod wxFindReplaceDialog_methods[]; - extern int wxFindReplaceDialog_methodCount; - extern void wxLua_wxFindReplaceDialog_delete_function(void** p); -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - -#if wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - extern wxLuaBindMethod wxFontData_methods[]; - extern int wxFontData_methodCount; - extern void wxLua_wxFontData_delete_function(void** p); - extern wxLuaBindMethod wxFontDialog_methods[]; - extern int wxFontDialog_methodCount; - extern void wxLua_wxFontDialog_delete_function(void** p); -#endif // wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - -#if wxUSE_GRAPHICS_CONTEXT - extern wxLuaBindMethod wxGCDC_methods[]; - extern int wxGCDC_methodCount; - extern void wxLua_wxGCDC_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsBitmap_methods[]; - extern int wxGraphicsBitmap_methodCount; - extern void wxLua_wxGraphicsBitmap_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsBrush_methods[]; - extern int wxGraphicsBrush_methodCount; - extern void wxLua_wxGraphicsBrush_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsContext_methods[]; - extern int wxGraphicsContext_methodCount; - extern void wxLua_wxGraphicsContext_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsFont_methods[]; - extern int wxGraphicsFont_methodCount; - extern void wxLua_wxGraphicsFont_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsGradientStop_methods[]; - extern int wxGraphicsGradientStop_methodCount; - extern void wxLua_wxGraphicsGradientStop_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsGradientStops_methods[]; - extern int wxGraphicsGradientStops_methodCount; - extern void wxLua_wxGraphicsGradientStops_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsMatrix_methods[]; - extern int wxGraphicsMatrix_methodCount; - extern void wxLua_wxGraphicsMatrix_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsObject_methods[]; - extern int wxGraphicsObject_methodCount; - extern void wxLua_wxGraphicsObject_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsPath_methods[]; - extern int wxGraphicsPath_methodCount; - extern void wxLua_wxGraphicsPath_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsPen_methods[]; - extern int wxGraphicsPen_methodCount; - extern void wxLua_wxGraphicsPen_delete_function(void** p); - extern wxLuaBindMethod wxGraphicsRenderer_methods[]; - extern int wxGraphicsRenderer_methodCount; - extern void wxLua_wxGraphicsRenderer_delete_function(void** p); -#endif // wxUSE_GRAPHICS_CONTEXT - -#if wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - extern wxLuaBindMethod wxInfoBar_methods[]; - extern int wxInfoBar_methodCount; - extern void wxLua_wxInfoBar_delete_function(void** p); -#endif // wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - -#if wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - extern wxLuaBindMethod wxNumberEntryDialog_methods[]; - extern int wxNumberEntryDialog_methodCount; - extern void wxLua_wxNumberEntryDialog_delete_function(void** p); -#endif // wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - -#if wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - extern wxLuaBindMethod wxProgressDialog_methods[]; - extern int wxProgressDialog_methodCount; - extern void wxLua_wxProgressDialog_delete_function(void** p); -#endif // wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - -#if wxUSE_SEARCHCTRL - extern wxLuaBindMethod wxSearchCtrl_methods[]; - extern int wxSearchCtrl_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxSearchCtrl[] = { &wxluatype_wxTextEntry, &wxluatype_wxTextAreaBase, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxSearchCtrl[] = { wxIntPtr(((wxIntPtr)(wxTextEntry*)(wxSearchCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxSearchCtrl*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxTextAreaBase*)(wxSearchCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxSearchCtrl*)&wxluatype_TNONE)) }; - extern void wxLua_wxSearchCtrl_delete_function(void** p); -#endif // wxUSE_SEARCHCTRL - -#if wxUSE_STREAMS && wxUSE_FILESYSTEM - extern wxLuaBindMethod wxMemoryFSHandler_methods[]; - extern int wxMemoryFSHandler_methodCount; - extern void wxLua_wxMemoryFSHandler_delete_function(void** p); -#endif // wxUSE_STREAMS && wxUSE_FILESYSTEM - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - extern wxLuaBindMethod wxPasswordEntryDialog_methods[]; - extern int wxPasswordEntryDialog_methodCount; - extern void wxLua_wxPasswordEntryDialog_delete_function(void** p); - extern wxLuaBindMethod wxTextEntryDialog_methods[]; - extern int wxTextEntryDialog_methodCount; - extern void wxLua_wxTextEntryDialog_delete_function(void** p); -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - - - - -wxLuaBindClass* wxLuaGetClassList_wxcore(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - { wxluaclassname_wxANIHandler, wxANIHandler_methods, wxANIHandler_methodCount, CLASSINFO(wxANIHandler), &wxluatype_wxANIHandler, wxluabaseclassnames_wxANIHandler, wxluabaseclassbinds_wxANIHandler, NULL, NULL, NULL, 0, &wxLua_wxANIHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - { wxluaclassname_wxAcceleratorEntry, wxAcceleratorEntry_methods, wxAcceleratorEntry_methodCount, NULL, &wxluatype_wxAcceleratorEntry, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAcceleratorEntry_delete_function, }, - { wxluaclassname_wxAcceleratorTable, wxAcceleratorTable_methods, wxAcceleratorTable_methodCount, CLASSINFO(wxAcceleratorTable), &wxluatype_wxAcceleratorTable, wxluabaseclassnames_wxAcceleratorTable, wxluabaseclassbinds_wxAcceleratorTable, NULL, NULL, NULL, 0, &wxLua_wxAcceleratorTable_delete_function, }, -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - - { wxluaclassname_wxActivateEvent, wxActivateEvent_methods, wxActivateEvent_methodCount, CLASSINFO(wxActivateEvent), &wxluatype_wxActivateEvent, wxluabaseclassnames_wxActivateEvent, wxluabaseclassbinds_wxActivateEvent, NULL, NULL, NULL, 0, &wxLua_wxActivateEvent_delete_function, }, - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - { wxluaclassname_wxAffineMatrix2D, wxAffineMatrix2D_methods, wxAffineMatrix2D_methodCount, NULL, &wxluatype_wxAffineMatrix2D, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxAffineMatrix2D_delete_function, }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - { wxluaclassname_wxAnyButton, wxAnyButton_methods, wxAnyButton_methodCount, CLASSINFO(wxAnyButton), &wxluatype_wxAnyButton, wxluabaseclassnames_wxAnyButton, wxluabaseclassbinds_wxAnyButton, NULL, NULL, NULL, 0, &wxLua_wxAnyButton_delete_function, }, -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if wxLUA_USE_wxApp - { wxluaclassname_wxApp, wxApp_methods, wxApp_methodCount, CLASSINFO(wxApp), &wxluatype_wxApp, wxluabaseclassnames_wxApp, wxluabaseclassbinds_wxApp, NULL, NULL, NULL, 0, &wxLua_wxApp_delete_function, }, - { wxluaclassname_wxAppConsole, wxAppConsole_methods, wxAppConsole_methodCount, CLASSINFO(wxAppConsole), &wxluatype_wxAppConsole, wxluabaseclassnames_wxAppConsole, wxluabaseclassbinds_wxAppConsole, NULL, NULL, NULL, 0, &wxLua_wxAppConsole_delete_function, }, -#endif // wxLUA_USE_wxApp - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - { wxluaclassname_wxArrayVideoModes, wxArrayVideoModes_methods, wxArrayVideoModes_methodCount, NULL, &wxluatype_wxArrayVideoModes, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxArrayVideoModes_delete_function, }, -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - -#if wxLUA_USE_wxArtProvider - { wxluaclassname_wxArtProvider, wxArtProvider_methods, wxArtProvider_methodCount, CLASSINFO(wxArtProvider), &wxluatype_wxArtProvider, wxluabaseclassnames_wxArtProvider, wxluabaseclassbinds_wxArtProvider, NULL, NULL, NULL, 0, &wxLua_wxArtProvider_delete_function, }, -#endif // wxLUA_USE_wxArtProvider - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - { wxluaclassname_wxAutoBufferedPaintDC, wxAutoBufferedPaintDC_methods, wxAutoBufferedPaintDC_methodCount, CLASSINFO(wxAutoBufferedPaintDC), &wxluatype_wxAutoBufferedPaintDC, wxluabaseclassnames_wxAutoBufferedPaintDC, wxluabaseclassbinds_wxAutoBufferedPaintDC, NULL, NULL, NULL, 0, &wxLua_wxAutoBufferedPaintDC_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { wxluaclassname_wxBMPHandler, wxBMPHandler_methods, wxBMPHandler_methodCount, CLASSINFO(wxBMPHandler), &wxluatype_wxBMPHandler, wxluabaseclassnames_wxBMPHandler, wxluabaseclassbinds_wxBMPHandler, NULL, NULL, NULL, 0, &wxLua_wxBMPHandler_delete_function, }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { wxluaclassname_wxBestHelpController, wxBestHelpController_methods, wxBestHelpController_methodCount, CLASSINFO(wxBestHelpController), &wxluatype_wxBestHelpController, wxluabaseclassnames_wxBestHelpController, wxluabaseclassbinds_wxBestHelpController, NULL, NULL, NULL, 0, &wxLua_wxBestHelpController_delete_function, }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if wxLUA_USE_wxBitmap - { wxluaclassname_wxBitmap, wxBitmap_methods, wxBitmap_methodCount, CLASSINFO(wxBitmap), &wxluatype_wxBitmap, wxluabaseclassnames_wxBitmap, wxluabaseclassbinds_wxBitmap, NULL, NULL, NULL, 0, &wxLua_wxBitmap_delete_function, }, -#endif // wxLUA_USE_wxBitmap - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { wxluaclassname_wxBitmapButton, wxBitmapButton_methods, wxBitmapButton_methodCount, CLASSINFO(wxBitmapButton), &wxluatype_wxBitmapButton, wxluabaseclassnames_wxBitmapButton, wxluabaseclassbinds_wxBitmapButton, NULL, NULL, NULL, 0, &wxLua_wxBitmapButton_delete_function, }, -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { wxluaclassname_wxBitmapDataObject, wxBitmapDataObject_methods, wxBitmapDataObject_methodCount, NULL, &wxluatype_wxBitmapDataObject, wxluabaseclassnames_wxBitmapDataObject, wxluabaseclassbinds_wxBitmapDataObject, NULL, NULL, NULL, 0, &wxLua_wxBitmapDataObject_delete_function, }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - { wxluaclassname_wxBitmapToggleButton, wxBitmapToggleButton_methods, wxBitmapToggleButton_methodCount, CLASSINFO(wxBitmapToggleButton), &wxluatype_wxBitmapToggleButton, wxluabaseclassnames_wxBitmapToggleButton, wxluabaseclassbinds_wxBitmapToggleButton, NULL, NULL, NULL, 0, &wxLua_wxBitmapToggleButton_delete_function, }, -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - -#if wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - { wxluaclassname_wxBookCtrlBase, wxBookCtrlBase_methods, wxBookCtrlBase_methodCount, CLASSINFO(wxBookCtrlBase), &wxluatype_wxBookCtrlBase, wxluabaseclassnames_wxBookCtrlBase, wxluabaseclassbinds_wxBookCtrlBase, NULL, NULL, NULL, 0, &wxLua_wxBookCtrlBase_delete_function, }, - { wxluaclassname_wxBookCtrlBaseEvent, wxBookCtrlBaseEvent_methods, wxBookCtrlBaseEvent_methodCount, CLASSINFO(wxBookCtrlBaseEvent), &wxluatype_wxBookCtrlBaseEvent, wxluabaseclassnames_wxBookCtrlBaseEvent, wxluabaseclassbinds_wxBookCtrlBaseEvent, NULL, NULL, NULL, 0, &wxLua_wxBookCtrlBaseEvent_delete_function, }, -#endif // wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxBoxSizer, wxBoxSizer_methods, wxBoxSizer_methodCount, CLASSINFO(wxBoxSizer), &wxluatype_wxBoxSizer, wxluabaseclassnames_wxBoxSizer, wxluabaseclassbinds_wxBoxSizer, NULL, NULL, NULL, 0, &wxLua_wxBoxSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxColourPenBrush - { wxluaclassname_wxBrush, wxBrush_methods, wxBrush_methodCount, CLASSINFO(wxBrush), &wxluatype_wxBrush, wxluabaseclassnames_wxBrush, wxluabaseclassbinds_wxBrush, NULL, NULL, NULL, 0, &wxLua_wxBrush_delete_function, }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - { wxluaclassname_wxBrushList, wxBrushList_methods, wxBrushList_methodCount, NULL, &wxluatype_wxBrushList, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxBrushList_delete_function, }, -#endif // (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - -#if wxLUA_USE_wxDC - { wxluaclassname_wxBufferedDC, wxBufferedDC_methods, wxBufferedDC_methodCount, CLASSINFO(wxBufferedDC), &wxluatype_wxBufferedDC, wxluabaseclassnames_wxBufferedDC, wxluabaseclassbinds_wxBufferedDC, NULL, NULL, NULL, 0, &wxLua_wxBufferedDC_delete_function, }, - { wxluaclassname_wxBufferedPaintDC, wxBufferedPaintDC_methods, wxBufferedPaintDC_methodCount, CLASSINFO(wxBufferedPaintDC), &wxluatype_wxBufferedPaintDC, wxluabaseclassnames_wxBufferedPaintDC, wxluabaseclassbinds_wxBufferedPaintDC, NULL, NULL, NULL, 0, &wxLua_wxBufferedPaintDC_delete_function, }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxBusyCursor - { wxluaclassname_wxBusyCursor, wxBusyCursor_methods, wxBusyCursor_methodCount, NULL, &wxluatype_wxBusyCursor, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxBusyCursor_delete_function, }, -#endif // wxLUA_USE_wxBusyCursor - -#if wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - { wxluaclassname_wxBusyInfo, wxBusyInfo_methods, wxBusyInfo_methodCount, CLASSINFO(wxBusyInfo), &wxluatype_wxBusyInfo, wxluabaseclassnames_wxBusyInfo, wxluabaseclassbinds_wxBusyInfo, NULL, NULL, NULL, 0, &wxLua_wxBusyInfo_delete_function, }, -#endif // wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - -#if wxLUA_USE_wxButton && wxUSE_BUTTON - { wxluaclassname_wxButton, wxButton_methods, wxButton_methodCount, CLASSINFO(wxButton), &wxluatype_wxButton, wxluabaseclassnames_wxButton, wxluabaseclassbinds_wxButton, NULL, NULL, NULL, 0, &wxLua_wxButton_delete_function, }, -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - { wxluaclassname_wxCURHandler, wxCURHandler_methods, wxCURHandler_methodCount, CLASSINFO(wxCURHandler), &wxluatype_wxCURHandler, wxluabaseclassnames_wxCURHandler, wxluabaseclassbinds_wxCURHandler, NULL, NULL, NULL, 0, &wxLua_wxCURHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - -#if wxLUA_USE_wxCaret && wxUSE_CARET - { wxluaclassname_wxCaret, wxCaret_methods, wxCaret_methodCount, NULL, &wxluatype_wxCaret, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxCaret_delete_function, }, - { wxluaclassname_wxCaretSuspend, wxCaretSuspend_methods, wxCaretSuspend_methodCount, NULL, &wxluatype_wxCaretSuspend, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxCaretSuspend_delete_function, }, -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -#if wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - { wxluaclassname_wxCheckBox, wxCheckBox_methods, wxCheckBox_methodCount, CLASSINFO(wxCheckBox), &wxluatype_wxCheckBox, wxluabaseclassnames_wxCheckBox, wxluabaseclassbinds_wxCheckBox, NULL, NULL, NULL, 0, &wxLua_wxCheckBox_delete_function, }, -#endif // wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - -#if (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - { wxluaclassname_wxCheckListBox, wxCheckListBox_methods, wxCheckListBox_methodCount, CLASSINFO(wxCheckListBox), &wxluatype_wxCheckListBox, wxluabaseclassnames_wxCheckListBox, wxluabaseclassbinds_wxCheckListBox, wxluabaseclass_wxluatypes_wxCheckListBox, wxluabaseclass_vtable_offsets_wxCheckListBox, NULL, 0, &wxLua_wxCheckListBox_delete_function, }, -#endif // (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - - { wxluaclassname_wxChildFocusEvent, wxChildFocusEvent_methods, wxChildFocusEvent_methodCount, CLASSINFO(wxChildFocusEvent), &wxluatype_wxChildFocusEvent, wxluabaseclassnames_wxChildFocusEvent, wxluabaseclassbinds_wxChildFocusEvent, NULL, NULL, NULL, 0, &wxLua_wxChildFocusEvent_delete_function, }, - -#if wxLUA_USE_wxChoice && wxUSE_CHOICE - { wxluaclassname_wxChoice, wxChoice_methods, wxChoice_methodCount, CLASSINFO(wxChoice), &wxluatype_wxChoice, wxluabaseclassnames_wxChoice, wxluabaseclassbinds_wxChoice, wxluabaseclass_wxluatypes_wxChoice, wxluabaseclass_vtable_offsets_wxChoice, NULL, 0, &wxLua_wxChoice_delete_function, }, -#endif // wxLUA_USE_wxChoice && wxUSE_CHOICE - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - { wxluaclassname_wxChoicebook, wxChoicebook_methods, wxChoicebook_methodCount, CLASSINFO(wxChoicebook), &wxluatype_wxChoicebook, wxluabaseclassnames_wxChoicebook, wxluabaseclassbinds_wxChoicebook, NULL, NULL, NULL, 0, &wxLua_wxChoicebook_delete_function, }, - { wxluaclassname_wxChoicebookEvent, wxChoicebookEvent_methods, wxChoicebookEvent_methodCount, CLASSINFO(wxChoicebookEvent), &wxluatype_wxChoicebookEvent, wxluabaseclassnames_wxChoicebookEvent, wxluabaseclassbinds_wxChoicebookEvent, NULL, NULL, NULL, 0, &wxLua_wxChoicebookEvent_delete_function, }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - -#if wxLUA_USE_wxDC - { wxluaclassname_wxClientDC, wxClientDC_methods, wxClientDC_methodCount, CLASSINFO(wxClientDC), &wxluatype_wxClientDC, wxluabaseclassnames_wxClientDC, wxluabaseclassbinds_wxClientDC, NULL, NULL, NULL, 0, &wxLua_wxClientDC_delete_function, }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - { wxluaclassname_wxClipboard, wxClipboard_methods, wxClipboard_methodCount, CLASSINFO(wxClipboard), &wxluatype_wxClipboard, wxluabaseclassnames_wxClipboard, wxluabaseclassbinds_wxClipboard, NULL, NULL, NULL, 0, &wxLua_wxClipboard_delete_function, }, - { wxluaclassname_wxClipboardLocker, wxClipboardLocker_methods, wxClipboardLocker_methodCount, NULL, &wxluatype_wxClipboardLocker, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxClipboardLocker_delete_function, }, -#endif // wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - { wxluaclassname_wxClipboardTextEvent, wxClipboardTextEvent_methods, wxClipboardTextEvent_methodCount, CLASSINFO(wxClipboardTextEvent), &wxluatype_wxClipboardTextEvent, wxluabaseclassnames_wxClipboardTextEvent, wxluabaseclassbinds_wxClipboardTextEvent, NULL, NULL, NULL, 0, &wxLua_wxClipboardTextEvent_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - - { wxluaclassname_wxCloseEvent, wxCloseEvent_methods, wxCloseEvent_methodCount, CLASSINFO(wxCloseEvent), &wxluatype_wxCloseEvent, wxluabaseclassnames_wxCloseEvent, wxluabaseclassbinds_wxCloseEvent, NULL, NULL, NULL, 0, &wxLua_wxCloseEvent_delete_function, }, - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - { wxluaclassname_wxCollapsiblePane, wxCollapsiblePane_methods, wxCollapsiblePane_methodCount, CLASSINFO(wxCollapsiblePane), &wxluatype_wxCollapsiblePane, wxluabaseclassnames_wxCollapsiblePane, wxluabaseclassbinds_wxCollapsiblePane, NULL, NULL, NULL, 0, &wxLua_wxCollapsiblePane_delete_function, }, - { wxluaclassname_wxCollapsiblePaneEvent, wxCollapsiblePaneEvent_methods, wxCollapsiblePaneEvent_methodCount, CLASSINFO(wxCollapsiblePaneEvent), &wxluatype_wxCollapsiblePaneEvent, wxluabaseclassnames_wxCollapsiblePaneEvent, wxluabaseclassbinds_wxCollapsiblePaneEvent, NULL, NULL, NULL, 0, &wxLua_wxCollapsiblePaneEvent_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - -#if wxLUA_USE_wxColourPenBrush - { wxluaclassname_wxColour, wxColour_methods, wxColour_methodCount, CLASSINFO(wxColour), &wxluatype_wxColour, wxluabaseclassnames_wxColour, wxluabaseclassbinds_wxColour, NULL, NULL, NULL, 0, &wxLua_wxColour_delete_function, }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - { wxluaclassname_wxColourData, wxColourData_methods, wxColourData_methodCount, CLASSINFO(wxColourData), &wxluatype_wxColourData, wxluabaseclassnames_wxColourData, wxluabaseclassbinds_wxColourData, NULL, NULL, NULL, 0, &wxLua_wxColourData_delete_function, }, -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - -#if wxLUA_USE_wxColourPenBrush - { wxluaclassname_wxColourDatabase, wxColourDatabase_methods, wxColourDatabase_methodCount, NULL, &wxluatype_wxColourDatabase, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxColourDatabase_delete_function, }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - { wxluaclassname_wxColourDialog, wxColourDialog_methods, wxColourDialog_methodCount, CLASSINFO(wxColourDialog), &wxluatype_wxColourDialog, wxluabaseclassnames_wxColourDialog, wxluabaseclassbinds_wxColourDialog, NULL, NULL, NULL, 0, &wxLua_wxColourDialog_delete_function, }, -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - { wxluaclassname_wxColourPickerCtrl, wxColourPickerCtrl_methods, wxColourPickerCtrl_methodCount, CLASSINFO(wxColourPickerCtrl), &wxluatype_wxColourPickerCtrl, wxluabaseclassnames_wxColourPickerCtrl, wxluabaseclassbinds_wxColourPickerCtrl, NULL, NULL, NULL, 0, &wxLua_wxColourPickerCtrl_delete_function, }, - { wxluaclassname_wxColourPickerEvent, wxColourPickerEvent_methods, wxColourPickerEvent_methodCount, CLASSINFO(wxColourPickerEvent), &wxluatype_wxColourPickerEvent, wxluabaseclassnames_wxColourPickerEvent, wxluabaseclassbinds_wxColourPickerEvent, NULL, NULL, NULL, 0, &wxLua_wxColourPickerEvent_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - -#if wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - { wxluaclassname_wxComboBox, wxComboBox_methods, wxComboBox_methodCount, CLASSINFO(wxComboBox), &wxluatype_wxComboBox, wxluabaseclassnames_wxComboBox, wxluabaseclassbinds_wxComboBox, wxluabaseclass_wxluatypes_wxComboBox, wxluabaseclass_vtable_offsets_wxComboBox, NULL, 0, &wxLua_wxComboBox_delete_function, }, -#endif // wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - -#if wxUSE_COMBOCTRL - { wxluaclassname_wxComboCtrl, wxComboCtrl_methods, wxComboCtrl_methodCount, CLASSINFO(wxComboCtrl), &wxluatype_wxComboCtrl, wxluabaseclassnames_wxComboCtrl, wxluabaseclassbinds_wxComboCtrl, wxluabaseclass_wxluatypes_wxComboCtrl, wxluabaseclass_vtable_offsets_wxComboCtrl, wxComboCtrl_enums, wxComboCtrl_enumCount, &wxLua_wxComboCtrl_delete_function, }, - { wxluaclassname_wxComboCtrlFeatures, wxComboCtrlFeatures_methods, wxComboCtrlFeatures_methodCount, NULL, &wxluatype_wxComboCtrlFeatures, NULL, NULL, NULL, NULL, wxComboCtrlFeatures_enums, wxComboCtrlFeatures_enumCount, &wxLua_wxComboCtrlFeatures_delete_function, }, - { wxluaclassname_wxComboPopup, wxComboPopup_methods, wxComboPopup_methodCount, NULL, &wxluatype_wxComboPopup, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxComboPopup_delete_function, }, -#endif // wxUSE_COMBOCTRL - -#if wxLUA_USE_wxCommandProcessor - { wxluaclassname_wxCommand, wxCommand_methods, wxCommand_methodCount, CLASSINFO(wxCommand), &wxluatype_wxCommand, wxluabaseclassnames_wxCommand, wxluabaseclassbinds_wxCommand, NULL, NULL, NULL, 0, &wxLua_wxCommand_delete_function, }, -#endif // wxLUA_USE_wxCommandProcessor - - { wxluaclassname_wxCommandEvent, wxCommandEvent_methods, wxCommandEvent_methodCount, CLASSINFO(wxCommandEvent), &wxluatype_wxCommandEvent, wxluabaseclassnames_wxCommandEvent, wxluabaseclassbinds_wxCommandEvent, NULL, NULL, NULL, 0, &wxLua_wxCommandEvent_delete_function, }, - -#if wxLUA_USE_wxCommandProcessor - { wxluaclassname_wxCommandProcessor, wxCommandProcessor_methods, wxCommandProcessor_methodCount, CLASSINFO(wxCommandProcessor), &wxluatype_wxCommandProcessor, wxluabaseclassnames_wxCommandProcessor, wxluabaseclassbinds_wxCommandProcessor, NULL, NULL, NULL, 0, &wxLua_wxCommandProcessor_delete_function, }, -#endif // wxLUA_USE_wxCommandProcessor - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - { wxluaclassname_wxContextHelp, wxContextHelp_methods, wxContextHelp_methodCount, CLASSINFO(wxContextHelp), &wxluatype_wxContextHelp, wxluabaseclassnames_wxContextHelp, wxluabaseclassbinds_wxContextHelp, NULL, NULL, NULL, 0, &wxLua_wxContextHelp_delete_function, }, -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { wxluaclassname_wxContextHelpButton, wxContextHelpButton_methods, wxContextHelpButton_methodCount, CLASSINFO(wxContextHelpButton), &wxluatype_wxContextHelpButton, wxluabaseclassnames_wxContextHelpButton, wxluabaseclassbinds_wxContextHelpButton, NULL, NULL, NULL, 0, &wxLua_wxContextHelpButton_delete_function, }, -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - { wxluaclassname_wxContextMenuEvent, wxContextMenuEvent_methods, wxContextMenuEvent_methodCount, CLASSINFO(wxContextMenuEvent), &wxluatype_wxContextMenuEvent, wxluabaseclassnames_wxContextMenuEvent, wxluabaseclassbinds_wxContextMenuEvent, NULL, NULL, NULL, 0, &wxLua_wxContextMenuEvent_delete_function, }, - { wxluaclassname_wxControl, wxControl_methods, wxControl_methodCount, CLASSINFO(wxControl), &wxluatype_wxControl, wxluabaseclassnames_wxControl, wxluabaseclassbinds_wxControl, NULL, NULL, NULL, 0, &wxLua_wxControl_delete_function, }, - { wxluaclassname_wxControlWithItems, wxControlWithItems_methods, wxControlWithItems_methodCount, CLASSINFO(wxControlWithItems), &wxluatype_wxControlWithItems, wxluabaseclassnames_wxControlWithItems, wxluabaseclassbinds_wxControlWithItems, wxluabaseclass_wxluatypes_wxControlWithItems, wxluabaseclass_vtable_offsets_wxControlWithItems, NULL, 0, &wxLua_wxControlWithItems_delete_function, }, - -#if wxLUA_USE_wxCursor - { wxluaclassname_wxCursor, wxCursor_methods, wxCursor_methodCount, CLASSINFO(wxCursor), &wxluatype_wxCursor, wxluabaseclassnames_wxCursor, wxluabaseclassbinds_wxCursor, NULL, NULL, NULL, 0, &wxLua_wxCursor_delete_function, }, -#endif // wxLUA_USE_wxCursor - -#if wxLUA_USE_wxDC - { wxluaclassname_wxDC, wxDC_methods, wxDC_methodCount, CLASSINFO(wxDC), &wxluatype_wxDC, wxluabaseclassnames_wxDC, wxluabaseclassbinds_wxDC, NULL, NULL, NULL, 0, &wxLua_wxDC_delete_function, }, - { wxluaclassname_wxDCClipper, wxDCClipper_methods, wxDCClipper_methodCount, NULL, &wxluatype_wxDCClipper, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDCClipper_delete_function, }, -#endif // wxLUA_USE_wxDC - -#if wxCHECK_VERSION(3,1,3) - { wxluaclassname_wxDPIChangedEvent, wxDPIChangedEvent_methods, wxDPIChangedEvent_methodCount, CLASSINFO(wxDPIChangedEvent), &wxluatype_wxDPIChangedEvent, wxluabaseclassnames_wxDPIChangedEvent, wxluabaseclassbinds_wxDPIChangedEvent, NULL, NULL, NULL, 0, &wxLua_wxDPIChangedEvent_delete_function, }, -#endif // wxCHECK_VERSION(3,1,3) - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { wxluaclassname_wxDataFormat, wxDataFormat_methods, wxDataFormat_methodCount, NULL, &wxluatype_wxDataFormat, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDataFormat_delete_function, }, - { wxluaclassname_wxDataObject, wxDataObject_methods, wxDataObject_methodCount, NULL, &wxluatype_wxDataObject, NULL, NULL, NULL, NULL, wxDataObject_enums, wxDataObject_enumCount, &wxLua_wxDataObject_delete_function, }, - { wxluaclassname_wxDataObjectComposite, wxDataObjectComposite_methods, wxDataObjectComposite_methodCount, NULL, &wxluatype_wxDataObjectComposite, wxluabaseclassnames_wxDataObjectComposite, wxluabaseclassbinds_wxDataObjectComposite, NULL, NULL, NULL, 0, &wxLua_wxDataObjectComposite_delete_function, }, - { wxluaclassname_wxDataObjectSimple, wxDataObjectSimple_methods, wxDataObjectSimple_methodCount, NULL, &wxluatype_wxDataObjectSimple, wxluabaseclassnames_wxDataObjectSimple, wxluabaseclassbinds_wxDataObjectSimple, NULL, NULL, NULL, 0, &wxLua_wxDataObjectSimple_delete_function, }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - { wxluaclassname_wxDatePickerCtrl, wxDatePickerCtrl_methods, wxDatePickerCtrl_methodCount, CLASSINFO(wxDatePickerCtrl), &wxluatype_wxDatePickerCtrl, wxluabaseclassnames_wxDatePickerCtrl, wxluabaseclassbinds_wxDatePickerCtrl, NULL, NULL, NULL, 0, &wxLua_wxDatePickerCtrl_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - -#if wxLUA_USE_wxDialog - { wxluaclassname_wxDialog, wxDialog_methods, wxDialog_methodCount, CLASSINFO(wxDialog), &wxluatype_wxDialog, wxluabaseclassnames_wxDialog, wxluabaseclassbinds_wxDialog, NULL, NULL, NULL, 0, &wxLua_wxDialog_delete_function, }, -#endif // wxLUA_USE_wxDialog - -#if wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - { wxluaclassname_wxDirDialog, wxDirDialog_methods, wxDirDialog_methodCount, CLASSINFO(wxDirDialog), &wxluatype_wxDirDialog, wxluabaseclassnames_wxDirDialog, wxluabaseclassbinds_wxDirDialog, NULL, NULL, NULL, 0, &wxLua_wxDirDialog_delete_function, }, -#endif // wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - { wxluaclassname_wxDirPickerCtrl, wxDirPickerCtrl_methods, wxDirPickerCtrl_methodCount, CLASSINFO(wxDirPickerCtrl), &wxluatype_wxDirPickerCtrl, wxluabaseclassnames_wxDirPickerCtrl, wxluabaseclassbinds_wxDirPickerCtrl, NULL, NULL, NULL, 0, &wxLua_wxDirPickerCtrl_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - { wxluaclassname_wxDisplay, wxDisplay_methods, wxDisplay_methodCount, NULL, &wxluatype_wxDisplay, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDisplay_delete_function, }, -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - - { wxluaclassname_wxDisplayChangedEvent, wxDisplayChangedEvent_methods, wxDisplayChangedEvent_methodCount, CLASSINFO(wxDisplayChangedEvent), &wxluatype_wxDisplayChangedEvent, wxluabaseclassnames_wxDisplayChangedEvent, wxluabaseclassbinds_wxDisplayChangedEvent, NULL, NULL, NULL, 0, &wxLua_wxDisplayChangedEvent_delete_function, }, - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - { wxluaclassname_wxDocChildFrame, wxDocChildFrame_methods, wxDocChildFrame_methodCount, CLASSINFO(wxDocChildFrame), &wxluatype_wxDocChildFrame, wxluabaseclassnames_wxDocChildFrame, wxluabaseclassbinds_wxDocChildFrame, NULL, NULL, NULL, 0, &wxLua_wxDocChildFrame_delete_function, }, - { wxluaclassname_wxDocMDIChildFrame, wxDocMDIChildFrame_methods, wxDocMDIChildFrame_methodCount, CLASSINFO(wxDocMDIChildFrame), &wxluatype_wxDocMDIChildFrame, wxluabaseclassnames_wxDocMDIChildFrame, wxluabaseclassbinds_wxDocMDIChildFrame, NULL, NULL, NULL, 0, &wxLua_wxDocMDIChildFrame_delete_function, }, - { wxluaclassname_wxDocMDIParentFrame, wxDocMDIParentFrame_methods, wxDocMDIParentFrame_methodCount, CLASSINFO(wxDocMDIParentFrame), &wxluatype_wxDocMDIParentFrame, wxluabaseclassnames_wxDocMDIParentFrame, wxluabaseclassbinds_wxDocMDIParentFrame, NULL, NULL, NULL, 0, &wxLua_wxDocMDIParentFrame_delete_function, }, - { wxluaclassname_wxDocManager, wxDocManager_methods, wxDocManager_methodCount, CLASSINFO(wxDocManager), &wxluatype_wxDocManager, wxluabaseclassnames_wxDocManager, wxluabaseclassbinds_wxDocManager, NULL, NULL, NULL, 0, &wxLua_wxDocManager_delete_function, }, - { wxluaclassname_wxDocParentFrame, wxDocParentFrame_methods, wxDocParentFrame_methodCount, CLASSINFO(wxDocParentFrame), &wxluatype_wxDocParentFrame, wxluabaseclassnames_wxDocParentFrame, wxluabaseclassbinds_wxDocParentFrame, NULL, NULL, NULL, 0, &wxLua_wxDocParentFrame_delete_function, }, - { wxluaclassname_wxDocTemplate, wxDocTemplate_methods, wxDocTemplate_methodCount, CLASSINFO(wxDocTemplate), &wxluatype_wxDocTemplate, wxluabaseclassnames_wxDocTemplate, wxluabaseclassbinds_wxDocTemplate, NULL, NULL, NULL, 0, &wxLua_wxDocTemplate_delete_function, }, - { wxluaclassname_wxDocument, wxDocument_methods, wxDocument_methodCount, CLASSINFO(wxDocument), &wxluatype_wxDocument, wxluabaseclassnames_wxDocument, wxluabaseclassbinds_wxDocument, NULL, NULL, NULL, 0, &wxLua_wxDocument_delete_function, }, -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { wxluaclassname_wxDropFilesEvent, wxDropFilesEvent_methods, wxDropFilesEvent_methodCount, CLASSINFO(wxDropFilesEvent), &wxluatype_wxDropFilesEvent, wxluabaseclassnames_wxDropFilesEvent, wxluabaseclassbinds_wxDropFilesEvent, NULL, NULL, NULL, 0, &wxLua_wxDropFilesEvent_delete_function, }, - { wxluaclassname_wxDropSource, wxDropSource_methods, wxDropSource_methodCount, NULL, &wxluatype_wxDropSource, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDropSource_delete_function, }, - { wxluaclassname_wxDropTarget, wxDropTarget_methods, wxDropTarget_methodCount, NULL, &wxluatype_wxDropTarget, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxDropTarget_delete_function, }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - { wxluaclassname_wxEffects, wxEffects_methods, wxEffects_methodCount, CLASSINFO(wxEffects), &wxluatype_wxEffects, wxluabaseclassnames_wxEffects, wxluabaseclassbinds_wxEffects, NULL, NULL, NULL, 0, &wxLua_wxEffects_delete_function, }, -#endif // (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - - { wxluaclassname_wxEraseEvent, wxEraseEvent_methods, wxEraseEvent_methodCount, CLASSINFO(wxEraseEvent), &wxluatype_wxEraseEvent, wxluabaseclassnames_wxEraseEvent, wxluabaseclassbinds_wxEraseEvent, NULL, NULL, NULL, 0, &wxLua_wxEraseEvent_delete_function, }, - -#if (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { wxluaclassname_wxExtHelpController, wxExtHelpController_methods, wxExtHelpController_methodCount, CLASSINFO(wxExtHelpController), &wxluatype_wxExtHelpController, wxluabaseclassnames_wxExtHelpController, wxluabaseclassbinds_wxExtHelpController, NULL, NULL, NULL, 0, &wxLua_wxExtHelpController_delete_function, }, -#endif // (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { wxluaclassname_wxFileDataObject, wxFileDataObject_methods, wxFileDataObject_methodCount, NULL, &wxluatype_wxFileDataObject, wxluabaseclassnames_wxFileDataObject, wxluabaseclassbinds_wxFileDataObject, NULL, NULL, NULL, 0, &wxLua_wxFileDataObject_delete_function, }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - { wxluaclassname_wxFileDialog, wxFileDialog_methods, wxFileDialog_methodCount, CLASSINFO(wxFileDialog), &wxluatype_wxFileDialog, wxluabaseclassnames_wxFileDialog, wxluabaseclassbinds_wxFileDialog, NULL, NULL, NULL, 0, &wxLua_wxFileDialog_delete_function, }, -#endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - { wxluaclassname_wxFileDirPickerCtrlBase, wxFileDirPickerCtrlBase_methods, wxFileDirPickerCtrlBase_methodCount, CLASSINFO(wxFileDirPickerCtrlBase), &wxluatype_wxFileDirPickerCtrlBase, wxluabaseclassnames_wxFileDirPickerCtrlBase, wxluabaseclassbinds_wxFileDirPickerCtrlBase, NULL, NULL, NULL, 0, &wxLua_wxFileDirPickerCtrlBase_delete_function, }, - { wxluaclassname_wxFileDirPickerEvent, wxFileDirPickerEvent_methods, wxFileDirPickerEvent_methodCount, CLASSINFO(wxFileDirPickerEvent), &wxluatype_wxFileDirPickerEvent, wxluabaseclassnames_wxFileDirPickerEvent, wxluabaseclassbinds_wxFileDirPickerEvent, NULL, NULL, NULL, 0, &wxLua_wxFileDirPickerEvent_delete_function, }, -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { wxluaclassname_wxFileDropTarget, wxFileDropTarget_methods, wxFileDropTarget_methodCount, NULL, &wxluatype_wxFileDropTarget, wxluabaseclassnames_wxFileDropTarget, wxluabaseclassbinds_wxFileDropTarget, NULL, NULL, NULL, 0, &wxLua_wxFileDropTarget_delete_function, }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - { wxluaclassname_wxFileHistory, wxFileHistory_methods, wxFileHistory_methodCount, CLASSINFO(wxFileHistory), &wxluatype_wxFileHistory, wxluabaseclassnames_wxFileHistory, wxluabaseclassbinds_wxFileHistory, NULL, NULL, NULL, 0, &wxLua_wxFileHistory_delete_function, }, -#endif // wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - { wxluaclassname_wxFilePickerCtrl, wxFilePickerCtrl_methods, wxFilePickerCtrl_methodCount, CLASSINFO(wxFilePickerCtrl), &wxluatype_wxFilePickerCtrl, wxluabaseclassnames_wxFilePickerCtrl, wxluabaseclassbinds_wxFilePickerCtrl, NULL, NULL, NULL, 0, &wxLua_wxFilePickerCtrl_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - { wxluaclassname_wxFindDialogEvent, wxFindDialogEvent_methods, wxFindDialogEvent_methodCount, CLASSINFO(wxFindDialogEvent), &wxluatype_wxFindDialogEvent, wxluabaseclassnames_wxFindDialogEvent, wxluabaseclassbinds_wxFindDialogEvent, NULL, NULL, NULL, 0, &wxLua_wxFindDialogEvent_delete_function, }, - { wxluaclassname_wxFindReplaceData, wxFindReplaceData_methods, wxFindReplaceData_methodCount, CLASSINFO(wxFindReplaceData), &wxluatype_wxFindReplaceData, wxluabaseclassnames_wxFindReplaceData, wxluabaseclassbinds_wxFindReplaceData, NULL, NULL, NULL, 0, &wxLua_wxFindReplaceData_delete_function, }, - { wxluaclassname_wxFindReplaceDialog, wxFindReplaceDialog_methods, wxFindReplaceDialog_methodCount, CLASSINFO(wxFindReplaceDialog), &wxluatype_wxFindReplaceDialog, wxluabaseclassnames_wxFindReplaceDialog, wxluabaseclassbinds_wxFindReplaceDialog, NULL, NULL, NULL, 0, &wxLua_wxFindReplaceDialog_delete_function, }, -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxFlexGridSizer, wxFlexGridSizer_methods, wxFlexGridSizer_methodCount, CLASSINFO(wxFlexGridSizer), &wxluatype_wxFlexGridSizer, wxluabaseclassnames_wxFlexGridSizer, wxluabaseclassbinds_wxFlexGridSizer, NULL, NULL, NULL, 0, &wxLua_wxFlexGridSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - { wxluaclassname_wxFocusEvent, wxFocusEvent_methods, wxFocusEvent_methodCount, CLASSINFO(wxFocusEvent), &wxluatype_wxFocusEvent, wxluabaseclassnames_wxFocusEvent, wxluabaseclassbinds_wxFocusEvent, NULL, NULL, NULL, 0, &wxLua_wxFocusEvent_delete_function, }, - -#if wxLUA_USE_wxFont - { wxluaclassname_wxFont, wxFont_methods, wxFont_methodCount, CLASSINFO(wxFont), &wxluatype_wxFont, wxluabaseclassnames_wxFont, wxluabaseclassbinds_wxFont, NULL, NULL, NULL, 0, &wxLua_wxFont_delete_function, }, -#endif // wxLUA_USE_wxFont - -#if wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - { wxluaclassname_wxFontData, wxFontData_methods, wxFontData_methodCount, CLASSINFO(wxFontData), &wxluatype_wxFontData, wxluabaseclassnames_wxFontData, wxluabaseclassbinds_wxFontData, NULL, NULL, NULL, 0, &wxLua_wxFontData_delete_function, }, - { wxluaclassname_wxFontDialog, wxFontDialog_methods, wxFontDialog_methodCount, CLASSINFO(wxFontDialog), &wxluatype_wxFontDialog, wxluabaseclassnames_wxFontDialog, wxluabaseclassbinds_wxFontDialog, NULL, NULL, NULL, 0, &wxLua_wxFontDialog_delete_function, }, -#endif // wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - -#if wxLUA_USE_wxFontEnumerator - { wxluaclassname_wxFontEnumerator, wxFontEnumerator_methods, wxFontEnumerator_methodCount, NULL, &wxluatype_wxFontEnumerator, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFontEnumerator_delete_function, }, -#endif // wxLUA_USE_wxFontEnumerator - -#if wxLUA_USE_wxFont - { wxluaclassname_wxFontInfo, wxFontInfo_methods, wxFontInfo_methodCount, NULL, &wxluatype_wxFontInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFontInfo_delete_function, }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxFontList - { wxluaclassname_wxFontList, wxFontList_methods, wxFontList_methodCount, NULL, &wxluatype_wxFontList, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFontList_delete_function, }, -#endif // wxLUA_USE_wxFontList - -#if wxLUA_USE_wxFontMapper - { wxluaclassname_wxFontMapper, wxFontMapper_methods, wxFontMapper_methodCount, NULL, &wxluatype_wxFontMapper, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxFontMapper_delete_function, }, -#endif // wxLUA_USE_wxFontMapper - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - { wxluaclassname_wxFontPickerCtrl, wxFontPickerCtrl_methods, wxFontPickerCtrl_methodCount, CLASSINFO(wxFontPickerCtrl), &wxluatype_wxFontPickerCtrl, wxluabaseclassnames_wxFontPickerCtrl, wxluabaseclassbinds_wxFontPickerCtrl, NULL, NULL, NULL, 0, &wxLua_wxFontPickerCtrl_delete_function, }, - { wxluaclassname_wxFontPickerEvent, wxFontPickerEvent_methods, wxFontPickerEvent_methodCount, CLASSINFO(wxFontPickerEvent), &wxluatype_wxFontPickerEvent, wxluabaseclassnames_wxFontPickerEvent, wxluabaseclassbinds_wxFontPickerEvent, NULL, NULL, NULL, 0, &wxLua_wxFontPickerEvent_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - -#if wxLUA_USE_wxFrame - { wxluaclassname_wxFrame, wxFrame_methods, wxFrame_methodCount, CLASSINFO(wxFrame), &wxluatype_wxFrame, wxluabaseclassnames_wxFrame, wxluabaseclassbinds_wxFrame, NULL, NULL, NULL, 0, &wxLua_wxFrame_delete_function, }, -#endif // wxLUA_USE_wxFrame - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxGBPosition, wxGBPosition_methods, wxGBPosition_methodCount, NULL, &wxluatype_wxGBPosition, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGBPosition_delete_function, }, - { wxluaclassname_wxGBSizerItem, wxGBSizerItem_methods, wxGBSizerItem_methodCount, CLASSINFO(wxGBSizerItem), &wxluatype_wxGBSizerItem, wxluabaseclassnames_wxGBSizerItem, wxluabaseclassbinds_wxGBSizerItem, NULL, NULL, NULL, 0, &wxLua_wxGBSizerItem_delete_function, }, - { wxluaclassname_wxGBSpan, wxGBSpan_methods, wxGBSpan_methodCount, NULL, &wxluatype_wxGBSpan, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGBSpan_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxUSE_GRAPHICS_CONTEXT - { wxluaclassname_wxGCDC, wxGCDC_methods, wxGCDC_methodCount, CLASSINFO(wxGCDC), &wxluatype_wxGCDC, wxluabaseclassnames_wxGCDC, wxluabaseclassbinds_wxGCDC, NULL, NULL, NULL, 0, &wxLua_wxGCDC_delete_function, }, -#endif // wxUSE_GRAPHICS_CONTEXT - - { wxluaclassname_wxGDIObject, wxGDIObject_methods, wxGDIObject_methodCount, CLASSINFO(wxGDIObject), &wxluatype_wxGDIObject, wxluabaseclassnames_wxGDIObject, wxluabaseclassbinds_wxGDIObject, NULL, NULL, NULL, 0, &wxLua_wxGDIObject_delete_function, }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - { wxluaclassname_wxGIFHandler, wxGIFHandler_methods, wxGIFHandler_methodCount, CLASSINFO(wxGIFHandler), &wxluatype_wxGIFHandler, wxluabaseclassnames_wxGIFHandler, wxluabaseclassbinds_wxGIFHandler, NULL, NULL, NULL, 0, &wxLua_wxGIFHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE - { wxluaclassname_wxGauge, wxGauge_methods, wxGauge_methodCount, CLASSINFO(wxGauge), &wxluatype_wxGauge, wxluabaseclassnames_wxGauge, wxluabaseclassbinds_wxGauge, NULL, NULL, NULL, 0, &wxLua_wxGauge_delete_function, }, -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - -#if wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - { wxluaclassname_wxGenericDirCtrl, wxGenericDirCtrl_methods, wxGenericDirCtrl_methodCount, CLASSINFO(wxGenericDirCtrl), &wxluatype_wxGenericDirCtrl, wxluabaseclassnames_wxGenericDirCtrl, wxluabaseclassbinds_wxGenericDirCtrl, NULL, NULL, NULL, 0, &wxLua_wxGenericDirCtrl_delete_function, }, -#endif // wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - -#if (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxluaclassname_wxGenericValidator, wxGenericValidator_methods, wxGenericValidator_methodCount, CLASSINFO(wxGenericValidator), &wxluatype_wxGenericValidator, wxluabaseclassnames_wxGenericValidator, wxluabaseclassbinds_wxGenericValidator, NULL, NULL, NULL, 0, &wxLua_wxGenericValidator_delete_function, }, -#endif // (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if wxUSE_GRAPHICS_CONTEXT - { wxluaclassname_wxGraphicsBitmap, wxGraphicsBitmap_methods, wxGraphicsBitmap_methodCount, CLASSINFO(wxGraphicsBitmap), &wxluatype_wxGraphicsBitmap, wxluabaseclassnames_wxGraphicsBitmap, wxluabaseclassbinds_wxGraphicsBitmap, NULL, NULL, NULL, 0, &wxLua_wxGraphicsBitmap_delete_function, }, - { wxluaclassname_wxGraphicsBrush, wxGraphicsBrush_methods, wxGraphicsBrush_methodCount, CLASSINFO(wxGraphicsBrush), &wxluatype_wxGraphicsBrush, wxluabaseclassnames_wxGraphicsBrush, wxluabaseclassbinds_wxGraphicsBrush, NULL, NULL, NULL, 0, &wxLua_wxGraphicsBrush_delete_function, }, - { wxluaclassname_wxGraphicsContext, wxGraphicsContext_methods, wxGraphicsContext_methodCount, CLASSINFO(wxGraphicsContext), &wxluatype_wxGraphicsContext, wxluabaseclassnames_wxGraphicsContext, wxluabaseclassbinds_wxGraphicsContext, NULL, NULL, NULL, 0, &wxLua_wxGraphicsContext_delete_function, }, - { wxluaclassname_wxGraphicsFont, wxGraphicsFont_methods, wxGraphicsFont_methodCount, CLASSINFO(wxGraphicsFont), &wxluatype_wxGraphicsFont, wxluabaseclassnames_wxGraphicsFont, wxluabaseclassbinds_wxGraphicsFont, NULL, NULL, NULL, 0, &wxLua_wxGraphicsFont_delete_function, }, - { wxluaclassname_wxGraphicsGradientStop, wxGraphicsGradientStop_methods, wxGraphicsGradientStop_methodCount, NULL, &wxluatype_wxGraphicsGradientStop, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGraphicsGradientStop_delete_function, }, - { wxluaclassname_wxGraphicsGradientStops, wxGraphicsGradientStops_methods, wxGraphicsGradientStops_methodCount, NULL, &wxluatype_wxGraphicsGradientStops, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGraphicsGradientStops_delete_function, }, - { wxluaclassname_wxGraphicsMatrix, wxGraphicsMatrix_methods, wxGraphicsMatrix_methodCount, CLASSINFO(wxGraphicsMatrix), &wxluatype_wxGraphicsMatrix, wxluabaseclassnames_wxGraphicsMatrix, wxluabaseclassbinds_wxGraphicsMatrix, NULL, NULL, NULL, 0, &wxLua_wxGraphicsMatrix_delete_function, }, - { wxluaclassname_wxGraphicsObject, wxGraphicsObject_methods, wxGraphicsObject_methodCount, CLASSINFO(wxGraphicsObject), &wxluatype_wxGraphicsObject, wxluabaseclassnames_wxGraphicsObject, wxluabaseclassbinds_wxGraphicsObject, NULL, NULL, NULL, 0, &wxLua_wxGraphicsObject_delete_function, }, - { wxluaclassname_wxGraphicsPath, wxGraphicsPath_methods, wxGraphicsPath_methodCount, CLASSINFO(wxGraphicsPath), &wxluatype_wxGraphicsPath, wxluabaseclassnames_wxGraphicsPath, wxluabaseclassbinds_wxGraphicsPath, NULL, NULL, NULL, 0, &wxLua_wxGraphicsPath_delete_function, }, - { wxluaclassname_wxGraphicsPen, wxGraphicsPen_methods, wxGraphicsPen_methodCount, CLASSINFO(wxGraphicsPen), &wxluatype_wxGraphicsPen, wxluabaseclassnames_wxGraphicsPen, wxluabaseclassbinds_wxGraphicsPen, NULL, NULL, NULL, 0, &wxLua_wxGraphicsPen_delete_function, }, -#endif // wxUSE_GRAPHICS_CONTEXT - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - { wxluaclassname_wxGraphicsPenInfo, wxGraphicsPenInfo_methods, wxGraphicsPenInfo_methodCount, NULL, &wxluatype_wxGraphicsPenInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGraphicsPenInfo_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - -#if wxUSE_GRAPHICS_CONTEXT - { wxluaclassname_wxGraphicsRenderer, wxGraphicsRenderer_methods, wxGraphicsRenderer_methodCount, CLASSINFO(wxGraphicsRenderer), &wxluatype_wxGraphicsRenderer, wxluabaseclassnames_wxGraphicsRenderer, wxluabaseclassbinds_wxGraphicsRenderer, NULL, NULL, NULL, 0, &wxLua_wxGraphicsRenderer_delete_function, }, -#endif // wxUSE_GRAPHICS_CONTEXT - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxGridBagSizer, wxGridBagSizer_methods, wxGridBagSizer_methodCount, CLASSINFO(wxGridBagSizer), &wxluatype_wxGridBagSizer, wxluabaseclassnames_wxGridBagSizer, wxluabaseclassbinds_wxGridBagSizer, NULL, NULL, NULL, 0, &wxLua_wxGridBagSizer_delete_function, }, - { wxluaclassname_wxGridSizer, wxGridSizer_methods, wxGridSizer_methodCount, CLASSINFO(wxGridSizer), &wxluatype_wxGridSizer, wxluabaseclassnames_wxGridSizer, wxluabaseclassbinds_wxGridSizer, NULL, NULL, NULL, 0, &wxLua_wxGridSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxRenderer - { wxluaclassname_wxHeaderButtonParams, wxHeaderButtonParams_methods, wxHeaderButtonParams_methodCount, NULL, &wxluatype_wxHeaderButtonParams, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHeaderButtonParams_delete_function, }, -#endif // wxLUA_USE_wxRenderer - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - { wxluaclassname_wxHeaderCtrl, wxHeaderCtrl_methods, wxHeaderCtrl_methodCount, CLASSINFO(wxHeaderCtrl), &wxluatype_wxHeaderCtrl, wxluabaseclassnames_wxHeaderCtrl, wxluabaseclassbinds_wxHeaderCtrl, NULL, NULL, NULL, 0, &wxLua_wxHeaderCtrl_delete_function, }, - { wxluaclassname_wxHeaderCtrlEvent, wxHeaderCtrlEvent_methods, wxHeaderCtrlEvent_methodCount, CLASSINFO(wxHeaderCtrlEvent), &wxluatype_wxHeaderCtrlEvent, wxluabaseclassnames_wxHeaderCtrlEvent, wxluabaseclassbinds_wxHeaderCtrlEvent, NULL, NULL, NULL, 0, &wxLua_wxHeaderCtrlEvent_delete_function, }, - { wxluaclassname_wxHeaderCtrlSimple, wxHeaderCtrlSimple_methods, wxHeaderCtrlSimple_methodCount, CLASSINFO(wxHeaderCtrlSimple), &wxluatype_wxHeaderCtrlSimple, wxluabaseclassnames_wxHeaderCtrlSimple, wxluabaseclassbinds_wxHeaderCtrlSimple, NULL, NULL, NULL, 0, &wxLua_wxHeaderCtrlSimple_delete_function, }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - { wxluaclassname_wxHelpController, wxHelpController_methods, wxHelpController_methodCount, CLASSINFO(wxHelpController), &wxluatype_wxHelpController, wxluabaseclassnames_wxHelpController, wxluabaseclassbinds_wxHelpController, NULL, NULL, NULL, 0, &wxLua_wxHelpController_delete_function, }, - { wxluaclassname_wxHelpControllerBase, wxHelpControllerBase_methods, wxHelpControllerBase_methodCount, CLASSINFO(wxHelpControllerBase), &wxluatype_wxHelpControllerBase, wxluabaseclassnames_wxHelpControllerBase, wxluabaseclassbinds_wxHelpControllerBase, NULL, NULL, NULL, 0, &wxLua_wxHelpControllerBase_delete_function, }, - { wxluaclassname_wxHelpControllerHelpProvider, wxHelpControllerHelpProvider_methods, wxHelpControllerHelpProvider_methodCount, NULL, &wxluatype_wxHelpControllerHelpProvider, wxluabaseclassnames_wxHelpControllerHelpProvider, wxluabaseclassbinds_wxHelpControllerHelpProvider, NULL, NULL, NULL, 0, &wxLua_wxHelpControllerHelpProvider_delete_function, }, -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - { wxluaclassname_wxHelpEvent, wxHelpEvent_methods, wxHelpEvent_methodCount, CLASSINFO(wxHelpEvent), &wxluatype_wxHelpEvent, wxluabaseclassnames_wxHelpEvent, wxluabaseclassbinds_wxHelpEvent, NULL, NULL, wxHelpEvent_enums, wxHelpEvent_enumCount, &wxLua_wxHelpEvent_delete_function, }, - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - { wxluaclassname_wxHelpProvider, wxHelpProvider_methods, wxHelpProvider_methodCount, NULL, &wxluatype_wxHelpProvider, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHelpProvider_delete_function, }, -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - { wxluaclassname_wxICOHandler, wxICOHandler_methods, wxICOHandler_methodCount, CLASSINFO(wxICOHandler), &wxluatype_wxICOHandler, wxluabaseclassnames_wxICOHandler, wxluabaseclassbinds_wxICOHandler, NULL, NULL, NULL, 0, &wxLua_wxICOHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - { wxluaclassname_wxIFFHandler, wxIFFHandler_methods, wxIFFHandler_methodCount, CLASSINFO(wxIFFHandler), &wxluatype_wxIFFHandler, wxluabaseclassnames_wxIFFHandler, wxluabaseclassbinds_wxIFFHandler, NULL, NULL, NULL, 0, &wxLua_wxIFFHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - -#if wxLUA_USE_wxIcon - { wxluaclassname_wxIcon, wxIcon_methods, wxIcon_methodCount, CLASSINFO(wxIcon), &wxluatype_wxIcon, wxluabaseclassnames_wxIcon, wxluabaseclassbinds_wxIcon, NULL, NULL, NULL, 0, &wxLua_wxIcon_delete_function, }, - { wxluaclassname_wxIconBundle, wxIconBundle_methods, wxIconBundle_methodCount, CLASSINFO(wxIconBundle), &wxluatype_wxIconBundle, wxluabaseclassnames_wxIconBundle, wxluabaseclassbinds_wxIconBundle, NULL, NULL, NULL, 0, &wxLua_wxIconBundle_delete_function, }, -#endif // wxLUA_USE_wxIcon - - { wxluaclassname_wxIconizeEvent, wxIconizeEvent_methods, wxIconizeEvent_methodCount, CLASSINFO(wxIconizeEvent), &wxluatype_wxIconizeEvent, wxluabaseclassnames_wxIconizeEvent, wxluabaseclassbinds_wxIconizeEvent, NULL, NULL, NULL, 0, &wxLua_wxIconizeEvent_delete_function, }, - { wxluaclassname_wxIdleEvent, wxIdleEvent_methods, wxIdleEvent_methodCount, CLASSINFO(wxIdleEvent), &wxluatype_wxIdleEvent, wxluabaseclassnames_wxIdleEvent, wxluabaseclassbinds_wxIdleEvent, NULL, NULL, NULL, 0, &wxLua_wxIdleEvent_delete_function, }, - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { wxluaclassname_wxImage, wxImage_methods, wxImage_methodCount, CLASSINFO(wxImage), &wxluatype_wxImage, wxluabaseclassnames_wxImage, wxluabaseclassbinds_wxImage, NULL, NULL, NULL, 0, &wxLua_wxImage_delete_function, }, - { wxluaclassname_wxImageHandler, wxImageHandler_methods, wxImageHandler_methodCount, CLASSINFO(wxImageHandler), &wxluatype_wxImageHandler, wxluabaseclassnames_wxImageHandler, wxluabaseclassbinds_wxImageHandler, NULL, NULL, NULL, 0, &wxLua_wxImageHandler_delete_function, }, - { wxluaclassname_wxImageHistogram, wxImageHistogram_methods, wxImageHistogram_methodCount, NULL, &wxluatype_wxImageHistogram, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxImageHistogram_delete_function, }, - { wxluaclassname_wxImageHistogramEntry, wxImageHistogramEntry_methods, wxImageHistogramEntry_methodCount, NULL, &wxluatype_wxImageHistogramEntry, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxImageHistogramEntry_delete_function, }, - { wxluaclassname_wxImageHistogram_iterator, wxImageHistogram_iterator_methods, wxImageHistogram_iterator_methodCount, NULL, &wxluatype_wxImageHistogram_iterator, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxImageHistogram_iterator_delete_function, }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - -#if wxLUA_USE_wxImageList - { wxluaclassname_wxImageList, wxImageList_methods, wxImageList_methodCount, CLASSINFO(wxImageList), &wxluatype_wxImageList, wxluabaseclassnames_wxImageList, wxluabaseclassbinds_wxImageList, NULL, NULL, NULL, 0, &wxLua_wxImageList_delete_function, }, -#endif // wxLUA_USE_wxImageList - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxIndividualLayoutConstraint, wxIndividualLayoutConstraint_methods, wxIndividualLayoutConstraint_methodCount, CLASSINFO(wxIndividualLayoutConstraint), &wxluatype_wxIndividualLayoutConstraint, wxluabaseclassnames_wxIndividualLayoutConstraint, wxluabaseclassbinds_wxIndividualLayoutConstraint, NULL, NULL, NULL, 0, &wxLua_wxIndividualLayoutConstraint_delete_function, }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - { wxluaclassname_wxInfoBar, wxInfoBar_methods, wxInfoBar_methodCount, CLASSINFO(wxInfoBar), &wxluatype_wxInfoBar, wxluabaseclassnames_wxInfoBar, wxluabaseclassbinds_wxInfoBar, NULL, NULL, NULL, 0, &wxLua_wxInfoBar_delete_function, }, -#endif // wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - - { wxluaclassname_wxInitDialogEvent, wxInitDialogEvent_methods, wxInitDialogEvent_methodCount, CLASSINFO(wxInitDialogEvent), &wxluatype_wxInitDialogEvent, wxluabaseclassnames_wxInitDialogEvent, wxluabaseclassbinds_wxInitDialogEvent, NULL, NULL, NULL, 0, &wxLua_wxInitDialogEvent_delete_function, }, - -#if (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - { wxluaclassname_wxItemContainer, wxItemContainer_methods, wxItemContainer_methodCount, NULL, &wxluatype_wxItemContainer, wxluabaseclassnames_wxItemContainer, wxluabaseclassbinds_wxItemContainer, NULL, NULL, NULL, 0, &wxLua_wxItemContainer_delete_function, }, - { wxluaclassname_wxItemContainerImmutable, wxItemContainerImmutable_methods, wxItemContainerImmutable_methodCount, NULL, &wxluatype_wxItemContainerImmutable, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxItemContainerImmutable_delete_function, }, -#endif // (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - { wxluaclassname_wxJPEGHandler, wxJPEGHandler_methods, wxJPEGHandler_methodCount, CLASSINFO(wxJPEGHandler), &wxluatype_wxJPEGHandler, wxluabaseclassnames_wxJPEGHandler, wxluabaseclassbinds_wxJPEGHandler, NULL, NULL, NULL, 0, &wxLua_wxJPEGHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - - { wxluaclassname_wxKeyEvent, wxKeyEvent_methods, wxKeyEvent_methodCount, CLASSINFO(wxKeyEvent), &wxluatype_wxKeyEvent, wxluabaseclassnames_wxKeyEvent, wxluabaseclassbinds_wxKeyEvent, NULL, NULL, NULL, 0, &wxLua_wxKeyEvent_delete_function, }, - { wxluaclassname_wxKeyboardState, wxKeyboardState_methods, wxKeyboardState_methodCount, NULL, &wxluatype_wxKeyboardState, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxKeyboardState_delete_function, }, - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxLayoutConstraints, wxLayoutConstraints_methods, wxLayoutConstraints_methodCount, CLASSINFO(wxLayoutConstraints), &wxluatype_wxLayoutConstraints, wxluabaseclassnames_wxLayoutConstraints, wxluabaseclassbinds_wxLayoutConstraints, NULL, NULL, NULL, 0, &wxLua_wxLayoutConstraints_delete_function, }, -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX - { wxluaclassname_wxListBox, wxListBox_methods, wxListBox_methodCount, CLASSINFO(wxListBox), &wxluatype_wxListBox, wxluabaseclassnames_wxListBox, wxluabaseclassbinds_wxListBox, wxluabaseclass_wxluatypes_wxListBox, wxluabaseclass_vtable_offsets_wxListBox, NULL, 0, &wxLua_wxListBox_delete_function, }, -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { wxluaclassname_wxListCtrl, wxListCtrl_methods, wxListCtrl_methodCount, CLASSINFO(wxListCtrl), &wxluatype_wxListCtrl, wxluabaseclassnames_wxListCtrl, wxluabaseclassbinds_wxListCtrl, NULL, NULL, NULL, 0, &wxLua_wxListCtrl_delete_function, }, - { wxluaclassname_wxListEvent, wxListEvent_methods, wxListEvent_methodCount, CLASSINFO(wxListEvent), &wxluatype_wxListEvent, wxluabaseclassnames_wxListEvent, wxluabaseclassbinds_wxListEvent, NULL, NULL, NULL, 0, &wxLua_wxListEvent_delete_function, }, - { wxluaclassname_wxListItem, wxListItem_methods, wxListItem_methodCount, CLASSINFO(wxListItem), &wxluatype_wxListItem, wxluabaseclassnames_wxListItem, wxluabaseclassbinds_wxListItem, NULL, NULL, NULL, 0, &wxLua_wxListItem_delete_function, }, - { wxluaclassname_wxListItemAttr, wxListItemAttr_methods, wxListItemAttr_methodCount, NULL, &wxluatype_wxListItemAttr, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxListItemAttr_delete_function, }, - { wxluaclassname_wxListView, wxListView_methods, wxListView_methodCount, CLASSINFO(wxListView), &wxluatype_wxListView, wxluabaseclassnames_wxListView, wxluabaseclassbinds_wxListView, NULL, NULL, NULL, 0, &wxLua_wxListView_delete_function, }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - { wxluaclassname_wxListbook, wxListbook_methods, wxListbook_methodCount, CLASSINFO(wxListbook), &wxluatype_wxListbook, wxluabaseclassnames_wxListbook, wxluabaseclassbinds_wxListbook, NULL, NULL, NULL, 0, &wxLua_wxListbook_delete_function, }, - { wxluaclassname_wxListbookEvent, wxListbookEvent_methods, wxListbookEvent_methodCount, CLASSINFO(wxListbookEvent), &wxluatype_wxListbookEvent, wxluabaseclassnames_wxListbookEvent, wxluabaseclassbinds_wxListbookEvent, NULL, NULL, NULL, 0, &wxLua_wxListbookEvent_delete_function, }, -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - { wxluaclassname_wxLogGui, wxLogGui_methods, wxLogGui_methodCount, NULL, &wxluatype_wxLogGui, wxluabaseclassnames_wxLogGui, wxluabaseclassbinds_wxLogGui, NULL, NULL, NULL, 0, &wxLua_wxLogGui_delete_function, }, -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxluaclassname_wxLogTextCtrl, wxLogTextCtrl_methods, wxLogTextCtrl_methodCount, NULL, &wxluatype_wxLogTextCtrl, wxluabaseclassnames_wxLogTextCtrl, wxluabaseclassbinds_wxLogTextCtrl, NULL, NULL, NULL, 0, &wxLua_wxLogTextCtrl_delete_function, }, -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - { wxluaclassname_wxLogWindow, wxLogWindow_methods, wxLogWindow_methodCount, NULL, &wxluatype_wxLogWindow, wxluabaseclassnames_wxLogWindow, wxluabaseclassbinds_wxLogWindow, NULL, NULL, NULL, 0, &wxLua_wxLogWindow_delete_function, }, -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - -#if wxLUA_USE_wxArtProvider - { wxluaclassname_wxLuaArtProvider, wxLuaArtProvider_methods, wxLuaArtProvider_methodCount, CLASSINFO(wxLuaArtProvider), &wxluatype_wxLuaArtProvider, wxluabaseclassnames_wxLuaArtProvider, wxluabaseclassbinds_wxLuaArtProvider, NULL, NULL, NULL, 0, &wxLua_wxLuaArtProvider_delete_function, }, -#endif // wxLUA_USE_wxArtProvider - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { wxluaclassname_wxLuaDataObjectSimple, wxLuaDataObjectSimple_methods, wxLuaDataObjectSimple_methodCount, NULL, &wxluatype_wxLuaDataObjectSimple, wxluabaseclassnames_wxLuaDataObjectSimple, wxluabaseclassbinds_wxLuaDataObjectSimple, NULL, NULL, NULL, 0, &wxLua_wxLuaDataObjectSimple_delete_function, }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { wxluaclassname_wxLuaFileDropTarget, wxLuaFileDropTarget_methods, wxLuaFileDropTarget_methodCount, NULL, &wxluatype_wxLuaFileDropTarget, wxluabaseclassnames_wxLuaFileDropTarget, wxluabaseclassbinds_wxLuaFileDropTarget, NULL, NULL, NULL, 0, &wxLua_wxLuaFileDropTarget_delete_function, }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - { wxluaclassname_wxLuaListCtrl, wxLuaListCtrl_methods, wxLuaListCtrl_methodCount, CLASSINFO(wxLuaListCtrl), &wxluatype_wxLuaListCtrl, wxluabaseclassnames_wxLuaListCtrl, wxluabaseclassbinds_wxLuaListCtrl, NULL, NULL, NULL, 0, &wxLua_wxLuaListCtrl_delete_function, }, -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxluaclassname_wxLuaPrintout, wxLuaPrintout_methods, wxLuaPrintout_methodCount, CLASSINFO(wxLuaPrintout), &wxluatype_wxLuaPrintout, wxluabaseclassnames_wxLuaPrintout, wxluabaseclassbinds_wxLuaPrintout, NULL, NULL, NULL, 0, &wxLua_wxLuaPrintout_delete_function, }, -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if wxLUA_USE_wxProcess - { wxluaclassname_wxLuaProcess, wxLuaProcess_methods, wxLuaProcess_methodCount, CLASSINFO(wxLuaProcess), &wxluatype_wxLuaProcess, wxluabaseclassnames_wxLuaProcess, wxluabaseclassbinds_wxLuaProcess, NULL, NULL, NULL, 0, &wxLua_wxLuaProcess_delete_function, }, -#endif // wxLUA_USE_wxProcess - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { wxluaclassname_wxLuaTextDropTarget, wxLuaTextDropTarget_methods, wxLuaTextDropTarget_methodCount, NULL, &wxluatype_wxLuaTextDropTarget, wxluabaseclassnames_wxLuaTextDropTarget, wxluabaseclassbinds_wxLuaTextDropTarget, NULL, NULL, NULL, 0, &wxLua_wxLuaTextDropTarget_delete_function, }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { wxluaclassname_wxLuaTreeItemData, wxLuaTreeItemData_methods, wxLuaTreeItemData_methodCount, NULL, &wxluatype_wxLuaTreeItemData, wxluabaseclassnames_wxLuaTreeItemData, wxluabaseclassbinds_wxLuaTreeItemData, NULL, NULL, NULL, 0, &wxLua_wxLuaTreeItemData_delete_function, }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { wxluaclassname_wxLuaURLDropTarget, wxLuaURLDropTarget_methods, wxLuaURLDropTarget_methodCount, NULL, &wxluatype_wxLuaURLDropTarget, wxluabaseclassnames_wxLuaURLDropTarget, wxluabaseclassbinds_wxLuaURLDropTarget, NULL, NULL, NULL, 0, &wxLua_wxLuaURLDropTarget_delete_function, }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - { wxluaclassname_wxMDIChildFrame, wxMDIChildFrame_methods, wxMDIChildFrame_methodCount, CLASSINFO(wxMDIChildFrame), &wxluatype_wxMDIChildFrame, wxluabaseclassnames_wxMDIChildFrame, wxluabaseclassbinds_wxMDIChildFrame, NULL, NULL, NULL, 0, &wxLua_wxMDIChildFrame_delete_function, }, - { wxluaclassname_wxMDIClientWindow, wxMDIClientWindow_methods, wxMDIClientWindow_methodCount, CLASSINFO(wxMDIClientWindow), &wxluatype_wxMDIClientWindow, wxluabaseclassnames_wxMDIClientWindow, wxluabaseclassbinds_wxMDIClientWindow, NULL, NULL, NULL, 0, &wxLua_wxMDIClientWindow_delete_function, }, - { wxluaclassname_wxMDIParentFrame, wxMDIParentFrame_methods, wxMDIParentFrame_methodCount, CLASSINFO(wxMDIParentFrame), &wxluatype_wxMDIParentFrame, wxluabaseclassnames_wxMDIParentFrame, wxluabaseclassbinds_wxMDIParentFrame, NULL, NULL, NULL, 0, &wxLua_wxMDIParentFrame_delete_function, }, -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - -#if wxLUA_USE_wxMask - { wxluaclassname_wxMask, wxMask_methods, wxMask_methodCount, CLASSINFO(wxMask), &wxluatype_wxMask, wxluabaseclassnames_wxMask, wxluabaseclassbinds_wxMask, NULL, NULL, NULL, 0, &wxLua_wxMask_delete_function, }, -#endif // wxLUA_USE_wxMask - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - { wxluaclassname_wxMatrix2D, wxMatrix2D_methods, wxMatrix2D_methodCount, NULL, &wxluatype_wxMatrix2D, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxMatrix2D_delete_function, }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - - { wxluaclassname_wxMaximizeEvent, wxMaximizeEvent_methods, wxMaximizeEvent_methodCount, CLASSINFO(wxMaximizeEvent), &wxluatype_wxMaximizeEvent, wxluabaseclassnames_wxMaximizeEvent, wxluabaseclassbinds_wxMaximizeEvent, NULL, NULL, NULL, 0, &wxLua_wxMaximizeEvent_delete_function, }, - -#if wxLUA_USE_wxDC - { wxluaclassname_wxMemoryDC, wxMemoryDC_methods, wxMemoryDC_methodCount, CLASSINFO(wxMemoryDC), &wxluatype_wxMemoryDC, wxluabaseclassnames_wxMemoryDC, wxluabaseclassbinds_wxMemoryDC, NULL, NULL, NULL, 0, &wxLua_wxMemoryDC_delete_function, }, -#endif // wxLUA_USE_wxDC - -#if wxUSE_STREAMS && wxUSE_FILESYSTEM - { wxluaclassname_wxMemoryFSHandler, wxMemoryFSHandler_methods, wxMemoryFSHandler_methodCount, CLASSINFO(wxMemoryFSHandler), &wxluatype_wxMemoryFSHandler, wxluabaseclassnames_wxMemoryFSHandler, wxluabaseclassbinds_wxMemoryFSHandler, NULL, NULL, NULL, 0, &wxLua_wxMemoryFSHandler_delete_function, }, -#endif // wxUSE_STREAMS && wxUSE_FILESYSTEM - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - { wxluaclassname_wxMenu, wxMenu_methods, wxMenu_methodCount, CLASSINFO(wxMenu), &wxluatype_wxMenu, wxluabaseclassnames_wxMenu, wxluabaseclassbinds_wxMenu, NULL, NULL, NULL, 0, &wxLua_wxMenu_delete_function, }, - { wxluaclassname_wxMenuBar, wxMenuBar_methods, wxMenuBar_methodCount, CLASSINFO(wxMenuBar), &wxluatype_wxMenuBar, wxluabaseclassnames_wxMenuBar, wxluabaseclassbinds_wxMenuBar, NULL, NULL, NULL, 0, &wxLua_wxMenuBar_delete_function, }, - { wxluaclassname_wxMenuEvent, wxMenuEvent_methods, wxMenuEvent_methodCount, CLASSINFO(wxMenuEvent), &wxluatype_wxMenuEvent, wxluabaseclassnames_wxMenuEvent, wxluabaseclassbinds_wxMenuEvent, NULL, NULL, NULL, 0, &wxLua_wxMenuEvent_delete_function, }, - { wxluaclassname_wxMenuItem, wxMenuItem_methods, wxMenuItem_methodCount, CLASSINFO(wxMenuItem), &wxluatype_wxMenuItem, wxluabaseclassnames_wxMenuItem, wxluabaseclassbinds_wxMenuItem, NULL, NULL, NULL, 0, &wxLua_wxMenuItem_delete_function, }, - { wxluaclassname_wxMenuItemList, wxMenuItemList_methods, wxMenuItemList_methodCount, NULL, &wxluatype_wxMenuItemList, wxluabaseclassnames_wxMenuItemList, wxluabaseclassbinds_wxMenuItemList, NULL, NULL, NULL, 0, &wxLua_wxMenuItemList_delete_function, }, -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - { wxluaclassname_wxMessageDialog, wxMessageDialog_methods, wxMessageDialog_methodCount, CLASSINFO(wxMessageDialog), &wxluatype_wxMessageDialog, wxluabaseclassnames_wxMessageDialog, wxluabaseclassbinds_wxMessageDialog, NULL, NULL, NULL, 0, &wxLua_wxMessageDialog_delete_function, }, -#endif // wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - -#if wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - { wxluaclassname_wxMetafile, wxMetafile_methods, wxMetafile_methodCount, CLASSINFO(wxMetafile), &wxluatype_wxMetafile, wxluabaseclassnames_wxMetafile, wxluabaseclassbinds_wxMetafile, NULL, NULL, NULL, 0, &wxLua_wxMetafile_delete_function, }, - { wxluaclassname_wxMetafileDC, wxMetafileDC_methods, wxMetafileDC_methodCount, CLASSINFO(wxMetafileDC), &wxluatype_wxMetafileDC, wxluabaseclassnames_wxMetafileDC, wxluabaseclassbinds_wxMetafileDC, NULL, NULL, NULL, 0, &wxLua_wxMetafileDC_delete_function, }, -#endif // wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - { wxluaclassname_wxMiniFrame, wxMiniFrame_methods, wxMiniFrame_methodCount, CLASSINFO(wxMiniFrame), &wxluatype_wxMiniFrame, wxluabaseclassnames_wxMiniFrame, wxluabaseclassbinds_wxMiniFrame, NULL, NULL, NULL, 0, &wxLua_wxMiniFrame_delete_function, }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMiniFrame) - -#if wxLUA_USE_wxDC - { wxluaclassname_wxMirrorDC, wxMirrorDC_methods, wxMirrorDC_methodCount, CLASSINFO(wxMirrorDC), &wxluatype_wxMirrorDC, wxluabaseclassnames_wxMirrorDC, wxluabaseclassbinds_wxMirrorDC, NULL, NULL, NULL, 0, &wxLua_wxMirrorDC_delete_function, }, -#endif // wxLUA_USE_wxDC - - { wxluaclassname_wxMouseCaptureChangedEvent, wxMouseCaptureChangedEvent_methods, wxMouseCaptureChangedEvent_methodCount, CLASSINFO(wxMouseCaptureChangedEvent), &wxluatype_wxMouseCaptureChangedEvent, wxluabaseclassnames_wxMouseCaptureChangedEvent, wxluabaseclassbinds_wxMouseCaptureChangedEvent, NULL, NULL, NULL, 0, &wxLua_wxMouseCaptureChangedEvent_delete_function, }, - -#if wxCHECK_VERSION(2,8,0) - { wxluaclassname_wxMouseCaptureLostEvent, wxMouseCaptureLostEvent_methods, wxMouseCaptureLostEvent_methodCount, CLASSINFO(wxMouseCaptureLostEvent), &wxluatype_wxMouseCaptureLostEvent, wxluabaseclassnames_wxMouseCaptureLostEvent, wxluabaseclassbinds_wxMouseCaptureLostEvent, NULL, NULL, NULL, 0, &wxLua_wxMouseCaptureLostEvent_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) - - { wxluaclassname_wxMouseEvent, wxMouseEvent_methods, wxMouseEvent_methodCount, CLASSINFO(wxMouseEvent), &wxluatype_wxMouseEvent, wxluabaseclassnames_wxMouseEvent, wxluabaseclassbinds_wxMouseEvent, NULL, NULL, NULL, 0, &wxLua_wxMouseEvent_delete_function, }, - -#if wxCHECK_VERSION(2,8,0) - { wxluaclassname_wxMouseState, wxMouseState_methods, wxMouseState_methodCount, NULL, &wxluatype_wxMouseState, wxluabaseclassnames_wxMouseState, wxluabaseclassbinds_wxMouseState, NULL, NULL, NULL, 0, &wxLua_wxMouseState_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) - - { wxluaclassname_wxMoveEvent, wxMoveEvent_methods, wxMoveEvent_methodCount, CLASSINFO(wxMoveEvent), &wxluatype_wxMoveEvent, wxluabaseclassnames_wxMoveEvent, wxluabaseclassbinds_wxMoveEvent, NULL, NULL, NULL, 0, &wxLua_wxMoveEvent_delete_function, }, - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - { wxluaclassname_wxMultiChoiceDialog, wxMultiChoiceDialog_methods, wxMultiChoiceDialog_methodCount, CLASSINFO(wxMultiChoiceDialog), &wxluatype_wxMultiChoiceDialog, wxluabaseclassnames_wxMultiChoiceDialog, wxluabaseclassbinds_wxMultiChoiceDialog, NULL, NULL, NULL, 0, &wxLua_wxMultiChoiceDialog_delete_function, }, -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - -#if wxLUA_USE_wxFont - { wxluaclassname_wxNativeFontInfo, wxNativeFontInfo_methods, wxNativeFontInfo_methodCount, NULL, &wxluatype_wxNativeFontInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxNativeFontInfo_delete_function, }, -#endif // wxLUA_USE_wxFont - - { wxluaclassname_wxNavigationKeyEvent, wxNavigationKeyEvent_methods, wxNavigationKeyEvent_methodCount, CLASSINFO(wxNavigationKeyEvent), &wxluatype_wxNavigationKeyEvent, wxluabaseclassnames_wxNavigationKeyEvent, wxluabaseclassbinds_wxNavigationKeyEvent, NULL, NULL, wxNavigationKeyEvent_enums, wxNavigationKeyEvent_enumCount, &wxLua_wxNavigationKeyEvent_delete_function, }, - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - { wxluaclassname_wxNonOwnedWindow, wxNonOwnedWindow_methods, wxNonOwnedWindow_methodCount, CLASSINFO(wxNonOwnedWindow), &wxluatype_wxNonOwnedWindow, wxluabaseclassnames_wxNonOwnedWindow, wxluabaseclassbinds_wxNonOwnedWindow, NULL, NULL, NULL, 0, &wxLua_wxNonOwnedWindow_delete_function, }, -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - { wxluaclassname_wxNotebook, wxNotebook_methods, wxNotebook_methodCount, CLASSINFO(wxNotebook), &wxluatype_wxNotebook, wxluabaseclassnames_wxNotebook, wxluabaseclassbinds_wxNotebook, NULL, NULL, NULL, 0, &wxLua_wxNotebook_delete_function, }, - { wxluaclassname_wxNotebookEvent, wxNotebookEvent_methods, wxNotebookEvent_methodCount, CLASSINFO(wxNotebookEvent), &wxluatype_wxNotebookEvent, wxluabaseclassnames_wxNotebookEvent, wxluabaseclassbinds_wxNotebookEvent, NULL, NULL, NULL, 0, &wxLua_wxNotebookEvent_delete_function, }, -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - { wxluaclassname_wxNotebookSizer, wxNotebookSizer_methods, wxNotebookSizer_methodCount, CLASSINFO(wxNotebookSizer), &wxluatype_wxNotebookSizer, wxluabaseclassnames_wxNotebookSizer, wxluabaseclassbinds_wxNotebookSizer, NULL, NULL, NULL, 0, &wxLua_wxNotebookSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - - { wxluaclassname_wxNotifyEvent, wxNotifyEvent_methods, wxNotifyEvent_methodCount, CLASSINFO(wxNotifyEvent), &wxluatype_wxNotifyEvent, wxluabaseclassnames_wxNotifyEvent, wxluabaseclassbinds_wxNotifyEvent, NULL, NULL, NULL, 0, &wxLua_wxNotifyEvent_delete_function, }, - -#if wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - { wxluaclassname_wxNumberEntryDialog, wxNumberEntryDialog_methods, wxNumberEntryDialog_methodCount, CLASSINFO(wxNumberEntryDialog), &wxluatype_wxNumberEntryDialog, wxluabaseclassnames_wxNumberEntryDialog, wxluabaseclassbinds_wxNumberEntryDialog, NULL, NULL, NULL, 0, &wxLua_wxNumberEntryDialog_delete_function, }, -#endif // wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - { wxluaclassname_wxPCXHandler, wxPCXHandler_methods, wxPCXHandler_methodCount, CLASSINFO(wxPCXHandler), &wxluatype_wxPCXHandler, wxluabaseclassnames_wxPCXHandler, wxluabaseclassbinds_wxPCXHandler, NULL, NULL, NULL, 0, &wxLua_wxPCXHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - { wxluaclassname_wxPNGHandler, wxPNGHandler_methods, wxPNGHandler_methodCount, CLASSINFO(wxPNGHandler), &wxluatype_wxPNGHandler, wxluabaseclassnames_wxPNGHandler, wxluabaseclassbinds_wxPNGHandler, NULL, NULL, NULL, 0, &wxLua_wxPNGHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - { wxluaclassname_wxPNMHandler, wxPNMHandler_methods, wxPNMHandler_methodCount, CLASSINFO(wxPNMHandler), &wxluatype_wxPNMHandler, wxluabaseclassnames_wxPNMHandler, wxluabaseclassbinds_wxPNMHandler, NULL, NULL, NULL, 0, &wxLua_wxPNMHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { wxluaclassname_wxPageSetupDialog, wxPageSetupDialog_methods, wxPageSetupDialog_methodCount, CLASSINFO(wxPageSetupDialog), &wxluatype_wxPageSetupDialog, wxluabaseclassnames_wxPageSetupDialog, wxluabaseclassbinds_wxPageSetupDialog, NULL, NULL, NULL, 0, &wxLua_wxPageSetupDialog_delete_function, }, - { wxluaclassname_wxPageSetupDialogData, wxPageSetupDialogData_methods, wxPageSetupDialogData_methodCount, CLASSINFO(wxPageSetupDialogData), &wxluatype_wxPageSetupDialogData, wxluabaseclassnames_wxPageSetupDialogData, wxluabaseclassbinds_wxPageSetupDialogData, NULL, NULL, NULL, 0, &wxLua_wxPageSetupDialogData_delete_function, }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxDC - { wxluaclassname_wxPaintDC, wxPaintDC_methods, wxPaintDC_methodCount, CLASSINFO(wxPaintDC), &wxluatype_wxPaintDC, wxluabaseclassnames_wxPaintDC, wxluabaseclassbinds_wxPaintDC, NULL, NULL, NULL, 0, &wxLua_wxPaintDC_delete_function, }, -#endif // wxLUA_USE_wxDC - - { wxluaclassname_wxPaintEvent, wxPaintEvent_methods, wxPaintEvent_methodCount, CLASSINFO(wxPaintEvent), &wxluatype_wxPaintEvent, wxluabaseclassnames_wxPaintEvent, wxluabaseclassbinds_wxPaintEvent, NULL, NULL, NULL, 0, &wxLua_wxPaintEvent_delete_function, }, - -#if wxLUA_USE_wxPalette && wxUSE_PALETTE - { wxluaclassname_wxPalette, wxPalette_methods, wxPalette_methodCount, CLASSINFO(wxPalette), &wxluatype_wxPalette, wxluabaseclassnames_wxPalette, wxluabaseclassbinds_wxPalette, NULL, NULL, NULL, 0, &wxLua_wxPalette_delete_function, }, -#endif // wxLUA_USE_wxPalette && wxUSE_PALETTE - - { wxluaclassname_wxPaletteChangedEvent, wxPaletteChangedEvent_methods, wxPaletteChangedEvent_methodCount, CLASSINFO(wxPaletteChangedEvent), &wxluatype_wxPaletteChangedEvent, wxluabaseclassnames_wxPaletteChangedEvent, wxluabaseclassbinds_wxPaletteChangedEvent, NULL, NULL, NULL, 0, &wxLua_wxPaletteChangedEvent_delete_function, }, - { wxluaclassname_wxPanel, wxPanel_methods, wxPanel_methodCount, CLASSINFO(wxPanel), &wxluatype_wxPanel, wxluabaseclassnames_wxPanel, wxluabaseclassbinds_wxPanel, NULL, NULL, NULL, 0, &wxLua_wxPanel_delete_function, }, - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - { wxluaclassname_wxPasswordEntryDialog, wxPasswordEntryDialog_methods, wxPasswordEntryDialog_methodCount, CLASSINFO(wxPasswordEntryDialog), &wxluatype_wxPasswordEntryDialog, wxluabaseclassnames_wxPasswordEntryDialog, wxluabaseclassbinds_wxPasswordEntryDialog, NULL, NULL, NULL, 0, &wxLua_wxPasswordEntryDialog_delete_function, }, -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - -#if wxLUA_USE_wxColourPenBrush - { wxluaclassname_wxPen, wxPen_methods, wxPen_methodCount, CLASSINFO(wxPen), &wxluatype_wxPen, wxluabaseclassnames_wxPen, wxluabaseclassbinds_wxPen, NULL, NULL, NULL, 0, &wxLua_wxPen_delete_function, }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - { wxluaclassname_wxPenInfo, wxPenInfo_methods, wxPenInfo_methodCount, NULL, &wxluatype_wxPenInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPenInfo_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - { wxluaclassname_wxPenList, wxPenList_methods, wxPenList_methodCount, NULL, &wxluatype_wxPenList, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPenList_delete_function, }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - { wxluaclassname_wxPickerBase, wxPickerBase_methods, wxPickerBase_methodCount, CLASSINFO(wxPickerBase), &wxluatype_wxPickerBase, wxluabaseclassnames_wxPickerBase, wxluabaseclassbinds_wxPickerBase, NULL, NULL, NULL, 0, &wxLua_wxPickerBase_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - -#if wxLUA_USE_wxPointSizeRect - { wxluaclassname_wxPoint, wxPoint_methods, wxPoint_methodCount, NULL, &wxluatype_wxPoint, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPoint_delete_function, }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - { wxluaclassname_wxPoint2DDouble, wxPoint2DDouble_methods, wxPoint2DDouble_methodCount, NULL, &wxluatype_wxPoint2DDouble, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPoint2DDouble_delete_function, }, - { wxluaclassname_wxPoint2DInt, wxPoint2DInt_methods, wxPoint2DInt_methodCount, NULL, &wxluatype_wxPoint2DInt, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPoint2DInt_delete_function, }, -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_wxPopupTransientWindow - { wxluaclassname_wxPopupTransientWindow, wxPopupTransientWindow_methods, wxPopupTransientWindow_methodCount, CLASSINFO(wxPopupTransientWindow), &wxluatype_wxPopupTransientWindow, wxluabaseclassnames_wxPopupTransientWindow, wxluabaseclassbinds_wxPopupTransientWindow, NULL, NULL, NULL, 0, &wxLua_wxPopupTransientWindow_delete_function, }, -#endif // wxLUA_USE_wxPopupTransientWindow - -#if wxLUA_USE_wxPopupWindow - { wxluaclassname_wxPopupWindow, wxPopupWindow_methods, wxPopupWindow_methodCount, CLASSINFO(wxPopupWindow), &wxluatype_wxPopupWindow, wxluabaseclassnames_wxPopupWindow, wxluabaseclassbinds_wxPopupWindow, NULL, NULL, NULL, 0, &wxLua_wxPopupWindow_delete_function, }, -#endif // wxLUA_USE_wxPopupWindow - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - { wxluaclassname_wxPosition, wxPosition_methods, wxPosition_methodCount, NULL, &wxluatype_wxPosition, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPosition_delete_function, }, -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - { wxluaclassname_wxPostScriptDC, wxPostScriptDC_methods, wxPostScriptDC_methodCount, CLASSINFO(wxPostScriptDC), &wxluatype_wxPostScriptDC, wxluabaseclassnames_wxPostScriptDC, wxluabaseclassbinds_wxPostScriptDC, NULL, NULL, NULL, 0, &wxLua_wxPostScriptDC_delete_function, }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - -#if (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - { wxluaclassname_wxPowerEvent, wxPowerEvent_methods, wxPowerEvent_methodCount, CLASSINFO(wxPowerEvent), &wxluatype_wxPowerEvent, wxluabaseclassnames_wxPowerEvent, wxluabaseclassbinds_wxPowerEvent, NULL, NULL, NULL, 0, &wxLua_wxPowerEvent_delete_function, }, -#endif // (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { wxluaclassname_wxPreviewCanvas, wxPreviewCanvas_methods, wxPreviewCanvas_methodCount, CLASSINFO(wxPreviewCanvas), &wxluatype_wxPreviewCanvas, wxluabaseclassnames_wxPreviewCanvas, wxluabaseclassbinds_wxPreviewCanvas, NULL, NULL, NULL, 0, &wxLua_wxPreviewCanvas_delete_function, }, - { wxluaclassname_wxPreviewControlBar, wxPreviewControlBar_methods, wxPreviewControlBar_methodCount, CLASSINFO(wxPreviewControlBar), &wxluatype_wxPreviewControlBar, wxluabaseclassnames_wxPreviewControlBar, wxluabaseclassbinds_wxPreviewControlBar, NULL, NULL, NULL, 0, &wxLua_wxPreviewControlBar_delete_function, }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxluaclassname_wxPreviewFrame, wxPreviewFrame_methods, wxPreviewFrame_methodCount, CLASSINFO(wxPreviewFrame), &wxluatype_wxPreviewFrame, wxluabaseclassnames_wxPreviewFrame, wxluabaseclassbinds_wxPreviewFrame, NULL, NULL, NULL, 0, &wxLua_wxPreviewFrame_delete_function, }, -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { wxluaclassname_wxPrintData, wxPrintData_methods, wxPrintData_methodCount, CLASSINFO(wxPrintData), &wxluatype_wxPrintData, wxluabaseclassnames_wxPrintData, wxluabaseclassbinds_wxPrintData, NULL, NULL, NULL, 0, &wxLua_wxPrintData_delete_function, }, - { wxluaclassname_wxPrintDialog, wxPrintDialog_methods, wxPrintDialog_methodCount, CLASSINFO(wxPrintDialog), &wxluatype_wxPrintDialog, wxluabaseclassnames_wxPrintDialog, wxluabaseclassbinds_wxPrintDialog, NULL, NULL, NULL, 0, &wxLua_wxPrintDialog_delete_function, }, - { wxluaclassname_wxPrintDialogData, wxPrintDialogData_methods, wxPrintDialogData_methodCount, CLASSINFO(wxPrintDialogData), &wxluatype_wxPrintDialogData, wxluabaseclassnames_wxPrintDialogData, wxluabaseclassbinds_wxPrintDialogData, NULL, NULL, NULL, 0, &wxLua_wxPrintDialogData_delete_function, }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxluaclassname_wxPrintPreview, wxPrintPreview_methods, wxPrintPreview_methodCount, CLASSINFO(wxPrintPreview), &wxluatype_wxPrintPreview, wxluabaseclassnames_wxPrintPreview, wxluabaseclassbinds_wxPrintPreview, NULL, NULL, NULL, 0, &wxLua_wxPrintPreview_delete_function, }, - { wxluaclassname_wxPrinter, wxPrinter_methods, wxPrinter_methodCount, CLASSINFO(wxPrinter), &wxluatype_wxPrinter, wxluabaseclassnames_wxPrinter, wxluabaseclassbinds_wxPrinter, NULL, NULL, NULL, 0, &wxLua_wxPrinter_delete_function, }, -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxluaclassname_wxPrinterDC, wxPrinterDC_methods, wxPrinterDC_methodCount, CLASSINFO(wxPrinterDC), &wxluatype_wxPrinterDC, wxluabaseclassnames_wxPrinterDC, wxluabaseclassbinds_wxPrinterDC, NULL, NULL, NULL, 0, &wxLua_wxPrinterDC_delete_function, }, -#endif // (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - { wxluaclassname_wxPrintout, wxPrintout_methods, wxPrintout_methodCount, CLASSINFO(wxPrintout), &wxluatype_wxPrintout, wxluabaseclassnames_wxPrintout, wxluabaseclassbinds_wxPrintout, NULL, NULL, NULL, 0, &wxLua_wxPrintout_delete_function, }, -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - -#if wxLUA_USE_wxProcess - { wxluaclassname_wxProcess, wxProcess_methods, wxProcess_methodCount, CLASSINFO(wxProcess), &wxluatype_wxProcess, wxluabaseclassnames_wxProcess, wxluabaseclassbinds_wxProcess, NULL, NULL, NULL, 0, &wxLua_wxProcess_delete_function, }, -#endif // wxLUA_USE_wxProcess - - { wxluaclassname_wxProcessEvent, wxProcessEvent_methods, wxProcessEvent_methodCount, CLASSINFO(wxProcessEvent), &wxluatype_wxProcessEvent, wxluabaseclassnames_wxProcessEvent, wxluabaseclassbinds_wxProcessEvent, NULL, NULL, NULL, 0, &wxLua_wxProcessEvent_delete_function, }, - -#if wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - { wxluaclassname_wxProgressDialog, wxProgressDialog_methods, wxProgressDialog_methodCount, CLASSINFO(wxProgressDialog), &wxluatype_wxProgressDialog, wxluabaseclassnames_wxProgressDialog, wxluabaseclassbinds_wxProgressDialog, NULL, NULL, NULL, 0, &wxLua_wxProgressDialog_delete_function, }, -#endif // wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - - { wxluaclassname_wxPropagateOnce, wxPropagateOnce_methods, wxPropagateOnce_methodCount, NULL, &wxluatype_wxPropagateOnce, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPropagateOnce_delete_function, }, - { wxluaclassname_wxPropagationDisabler, wxPropagationDisabler_methods, wxPropagationDisabler_methodCount, NULL, &wxluatype_wxPropagationDisabler, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPropagationDisabler_delete_function, }, - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { wxluaclassname_wxQuantize, wxQuantize_methods, wxQuantize_methodCount, CLASSINFO(wxQuantize), &wxluatype_wxQuantize, wxluabaseclassnames_wxQuantize, wxluabaseclassbinds_wxQuantize, NULL, NULL, NULL, 0, &wxLua_wxQuantize_delete_function, }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - { wxluaclassname_wxQueryNewPaletteEvent, wxQueryNewPaletteEvent_methods, wxQueryNewPaletteEvent_methodCount, CLASSINFO(wxQueryNewPaletteEvent), &wxluatype_wxQueryNewPaletteEvent, wxluabaseclassnames_wxQueryNewPaletteEvent, wxluabaseclassbinds_wxQueryNewPaletteEvent, NULL, NULL, NULL, 0, &wxLua_wxQueryNewPaletteEvent_delete_function, }, - -#if wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - { wxluaclassname_wxRadioBox, wxRadioBox_methods, wxRadioBox_methodCount, CLASSINFO(wxRadioBox), &wxluatype_wxRadioBox, wxluabaseclassnames_wxRadioBox, wxluabaseclassbinds_wxRadioBox, NULL, NULL, NULL, 0, &wxLua_wxRadioBox_delete_function, }, -#endif // wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - -#if wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - { wxluaclassname_wxRadioButton, wxRadioButton_methods, wxRadioButton_methodCount, CLASSINFO(wxRadioButton), &wxluatype_wxRadioButton, wxluabaseclassnames_wxRadioButton, wxluabaseclassbinds_wxRadioButton, NULL, NULL, NULL, 0, &wxLua_wxRadioButton_delete_function, }, -#endif // wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - -#if wxLUA_USE_wxPointSizeRect - { wxluaclassname_wxRealPoint, wxRealPoint_methods, wxRealPoint_methodCount, NULL, &wxluatype_wxRealPoint, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRealPoint_delete_function, }, - { wxluaclassname_wxRect, wxRect_methods, wxRect_methodCount, NULL, &wxluatype_wxRect, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRect_delete_function, }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY - { wxluaclassname_wxRect2DDouble, wxRect2DDouble_methods, wxRect2DDouble_methodCount, NULL, &wxluatype_wxRect2DDouble, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRect2DDouble_delete_function, }, - { wxluaclassname_wxRect2DInt, wxRect2DInt_methods, wxRect2DInt_methodCount, NULL, &wxluatype_wxRect2DInt, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRect2DInt_delete_function, }, -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - -#if wxLUA_USE_wxRegion - { wxluaclassname_wxRegion, wxRegion_methods, wxRegion_methodCount, CLASSINFO(wxRegion), &wxluatype_wxRegion, wxluabaseclassnames_wxRegion, wxluabaseclassbinds_wxRegion, NULL, NULL, NULL, 0, &wxLua_wxRegion_delete_function, }, - { wxluaclassname_wxRegionIterator, wxRegionIterator_methods, wxRegionIterator_methodCount, CLASSINFO(wxRegionIterator), &wxluatype_wxRegionIterator, wxluabaseclassnames_wxRegionIterator, wxluabaseclassbinds_wxRegionIterator, NULL, NULL, NULL, 0, &wxLua_wxRegionIterator_delete_function, }, -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_wxRenderer - { wxluaclassname_wxRendererNative, wxRendererNative_methods, wxRendererNative_methodCount, NULL, &wxluatype_wxRendererNative, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRendererNative_delete_function, }, - { wxluaclassname_wxRendererVersion, wxRendererVersion_methods, wxRendererVersion_methodCount, NULL, &wxluatype_wxRendererVersion, NULL, NULL, NULL, NULL, wxRendererVersion_enums, wxRendererVersion_enumCount, &wxLua_wxRendererVersion_delete_function, }, -#endif // wxLUA_USE_wxRenderer - -#if wxLUA_USE_wxDC - { wxluaclassname_wxScreenDC, wxScreenDC_methods, wxScreenDC_methodCount, CLASSINFO(wxScreenDC), &wxluatype_wxScreenDC, wxluabaseclassnames_wxScreenDC, wxluabaseclassbinds_wxScreenDC, NULL, NULL, NULL, 0, &wxLua_wxScreenDC_delete_function, }, -#endif // wxLUA_USE_wxDC - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - { wxluaclassname_wxScrollBar, wxScrollBar_methods, wxScrollBar_methodCount, CLASSINFO(wxScrollBar), &wxluatype_wxScrollBar, wxluabaseclassnames_wxScrollBar, wxluabaseclassbinds_wxScrollBar, NULL, NULL, NULL, 0, &wxLua_wxScrollBar_delete_function, }, -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - - { wxluaclassname_wxScrollEvent, wxScrollEvent_methods, wxScrollEvent_methodCount, CLASSINFO(wxScrollEvent), &wxluatype_wxScrollEvent, wxluabaseclassnames_wxScrollEvent, wxluabaseclassbinds_wxScrollEvent, NULL, NULL, NULL, 0, &wxLua_wxScrollEvent_delete_function, }, - -#if wxLUA_USE_wxScrolledWindow - { wxluaclassname_wxScrollHelper, wxScrollHelper_methods, wxScrollHelper_methodCount, NULL, &wxluatype_wxScrollHelper, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxScrollHelper_delete_function, }, -#endif // wxLUA_USE_wxScrolledWindow - - { wxluaclassname_wxScrollWinEvent, wxScrollWinEvent_methods, wxScrollWinEvent_methodCount, CLASSINFO(wxScrollWinEvent), &wxluatype_wxScrollWinEvent, wxluabaseclassnames_wxScrollWinEvent, wxluabaseclassbinds_wxScrollWinEvent, NULL, NULL, NULL, 0, &wxLua_wxScrollWinEvent_delete_function, }, - -#if wxLUA_USE_wxScrolledWindow - { wxluaclassname_wxScrolledWindow, wxScrolledWindow_methods, wxScrolledWindow_methodCount, CLASSINFO(wxScrolledWindow), &wxluatype_wxScrolledWindow, wxluabaseclassnames_wxScrolledWindow, wxluabaseclassbinds_wxScrolledWindow, wxluabaseclass_wxluatypes_wxScrolledWindow, wxluabaseclass_vtable_offsets_wxScrolledWindow, NULL, 0, &wxLua_wxScrolledWindow_delete_function, }, -#endif // wxLUA_USE_wxScrolledWindow - -#if wxUSE_SEARCHCTRL - { wxluaclassname_wxSearchCtrl, wxSearchCtrl_methods, wxSearchCtrl_methodCount, CLASSINFO(wxSearchCtrl), &wxluatype_wxSearchCtrl, wxluabaseclassnames_wxSearchCtrl, wxluabaseclassbinds_wxSearchCtrl, wxluabaseclass_wxluatypes_wxSearchCtrl, wxluabaseclass_vtable_offsets_wxSearchCtrl, NULL, 0, &wxLua_wxSearchCtrl_delete_function, }, -#endif // wxUSE_SEARCHCTRL - - { wxluaclassname_wxSetCursorEvent, wxSetCursorEvent_methods, wxSetCursorEvent_methodCount, CLASSINFO(wxSetCursorEvent), &wxluatype_wxSetCursorEvent, wxluabaseclassnames_wxSetCursorEvent, wxluabaseclassbinds_wxSetCursorEvent, NULL, NULL, NULL, 0, &wxLua_wxSetCursorEvent_delete_function, }, - { wxluaclassname_wxShowEvent, wxShowEvent_methods, wxShowEvent_methodCount, CLASSINFO(wxShowEvent), &wxluatype_wxShowEvent, wxluabaseclassnames_wxShowEvent, wxluabaseclassbinds_wxShowEvent, NULL, NULL, NULL, 0, &wxLua_wxShowEvent_delete_function, }, - -#if wxLUA_USE_wxHelpController && wxUSE_HELP - { wxluaclassname_wxSimpleHelpProvider, wxSimpleHelpProvider_methods, wxSimpleHelpProvider_methodCount, NULL, &wxluatype_wxSimpleHelpProvider, wxluabaseclassnames_wxSimpleHelpProvider, wxluabaseclassbinds_wxSimpleHelpProvider, NULL, NULL, NULL, 0, &wxLua_wxSimpleHelpProvider_delete_function, }, -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - { wxluaclassname_wxSingleChoiceDialog, wxSingleChoiceDialog_methods, wxSingleChoiceDialog_methodCount, CLASSINFO(wxSingleChoiceDialog), &wxluatype_wxSingleChoiceDialog, wxluabaseclassnames_wxSingleChoiceDialog, wxluabaseclassbinds_wxSingleChoiceDialog, NULL, NULL, NULL, 0, &wxLua_wxSingleChoiceDialog_delete_function, }, -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - -#if wxLUA_USE_wxPointSizeRect - { wxluaclassname_wxSize, wxSize_methods, wxSize_methodCount, NULL, &wxluatype_wxSize, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxSize_delete_function, }, -#endif // wxLUA_USE_wxPointSizeRect - - { wxluaclassname_wxSizeEvent, wxSizeEvent_methods, wxSizeEvent_methodCount, CLASSINFO(wxSizeEvent), &wxluatype_wxSizeEvent, wxluabaseclassnames_wxSizeEvent, wxluabaseclassbinds_wxSizeEvent, NULL, NULL, NULL, 0, &wxLua_wxSizeEvent_delete_function, }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxSizer, wxSizer_methods, wxSizer_methodCount, CLASSINFO(wxSizer), &wxluatype_wxSizer, wxluabaseclassnames_wxSizer, wxluabaseclassbinds_wxSizer, NULL, NULL, NULL, 0, &wxLua_wxSizer_delete_function, }, - { wxluaclassname_wxSizerFlags, wxSizerFlags_methods, wxSizerFlags_methodCount, NULL, &wxluatype_wxSizerFlags, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxSizerFlags_delete_function, }, - { wxluaclassname_wxSizerItem, wxSizerItem_methods, wxSizerItem_methodCount, CLASSINFO(wxSizerItem), &wxluatype_wxSizerItem, wxluabaseclassnames_wxSizerItem, wxluabaseclassbinds_wxSizerItem, NULL, NULL, NULL, 0, &wxLua_wxSizerItem_delete_function, }, - { wxluaclassname_wxSizerItemList, wxSizerItemList_methods, wxSizerItemList_methodCount, NULL, &wxluatype_wxSizerItemList, wxluabaseclassnames_wxSizerItemList, wxluabaseclassbinds_wxSizerItemList, NULL, NULL, NULL, 0, &wxLua_wxSizerItemList_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxSlider && wxUSE_SLIDER - { wxluaclassname_wxSlider, wxSlider_methods, wxSlider_methodCount, CLASSINFO(wxSlider), &wxluatype_wxSlider, wxluabaseclassnames_wxSlider, wxluabaseclassbinds_wxSlider, NULL, NULL, NULL, 0, &wxLua_wxSlider_delete_function, }, -#endif // wxLUA_USE_wxSlider && wxUSE_SLIDER - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { wxluaclassname_wxSpinButton, wxSpinButton_methods, wxSpinButton_methodCount, CLASSINFO(wxSpinButton), &wxluatype_wxSpinButton, wxluabaseclassnames_wxSpinButton, wxluabaseclassbinds_wxSpinButton, NULL, NULL, NULL, 0, &wxLua_wxSpinButton_delete_function, }, -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - { wxluaclassname_wxSpinCtrl, wxSpinCtrl_methods, wxSpinCtrl_methodCount, CLASSINFO(wxSpinCtrl), &wxluatype_wxSpinCtrl, wxluabaseclassnames_wxSpinCtrl, wxluabaseclassbinds_wxSpinCtrl, NULL, NULL, NULL, 0, &wxLua_wxSpinCtrl_delete_function, }, -#endif // wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - { wxluaclassname_wxSpinCtrlDouble, wxSpinCtrlDouble_methods, wxSpinCtrlDouble_methodCount, CLASSINFO(wxSpinCtrlDouble), &wxluatype_wxSpinCtrlDouble, wxluabaseclassnames_wxSpinCtrlDouble, wxluabaseclassbinds_wxSpinCtrlDouble, NULL, NULL, NULL, 0, &wxLua_wxSpinCtrlDouble_delete_function, }, - { wxluaclassname_wxSpinDoubleEvent, wxSpinDoubleEvent_methods, wxSpinDoubleEvent_methodCount, CLASSINFO(wxSpinDoubleEvent), &wxluatype_wxSpinDoubleEvent, wxluabaseclassnames_wxSpinDoubleEvent, wxluabaseclassbinds_wxSpinDoubleEvent, NULL, NULL, NULL, 0, &wxLua_wxSpinDoubleEvent_delete_function, }, -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - { wxluaclassname_wxSpinEvent, wxSpinEvent_methods, wxSpinEvent_methodCount, CLASSINFO(wxSpinEvent), &wxluatype_wxSpinEvent, wxluabaseclassnames_wxSpinEvent, wxluabaseclassbinds_wxSpinEvent, NULL, NULL, NULL, 0, &wxLua_wxSpinEvent_delete_function, }, -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - -#if wxLUA_USE_wxSplitterWindow - { wxluaclassname_wxSplitterEvent, wxSplitterEvent_methods, wxSplitterEvent_methodCount, CLASSINFO(wxSplitterEvent), &wxluatype_wxSplitterEvent, wxluabaseclassnames_wxSplitterEvent, wxluabaseclassbinds_wxSplitterEvent, NULL, NULL, NULL, 0, &wxLua_wxSplitterEvent_delete_function, }, -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxRenderer - { wxluaclassname_wxSplitterRenderParams, wxSplitterRenderParams_methods, wxSplitterRenderParams_methodCount, NULL, &wxluatype_wxSplitterRenderParams, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxSplitterRenderParams_delete_function, }, -#endif // wxLUA_USE_wxRenderer - -#if wxLUA_USE_wxSplitterWindow - { wxluaclassname_wxSplitterWindow, wxSplitterWindow_methods, wxSplitterWindow_methodCount, CLASSINFO(wxSplitterWindow), &wxluatype_wxSplitterWindow, wxluabaseclassnames_wxSplitterWindow, wxluabaseclassbinds_wxSplitterWindow, NULL, NULL, NULL, 0, &wxLua_wxSplitterWindow_delete_function, }, -#endif // wxLUA_USE_wxSplitterWindow - -#if wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - { wxluaclassname_wxStaticBitmap, wxStaticBitmap_methods, wxStaticBitmap_methodCount, CLASSINFO(wxStaticBitmap), &wxluatype_wxStaticBitmap, wxluabaseclassnames_wxStaticBitmap, wxluabaseclassbinds_wxStaticBitmap, NULL, NULL, NULL, 0, &wxLua_wxStaticBitmap_delete_function, }, -#endif // wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - -#if wxLUA_USE_wxStaticBox && wxUSE_STATBOX - { wxluaclassname_wxStaticBox, wxStaticBox_methods, wxStaticBox_methodCount, CLASSINFO(wxStaticBox), &wxluatype_wxStaticBox, wxluabaseclassnames_wxStaticBox, wxluabaseclassbinds_wxStaticBox, NULL, NULL, NULL, 0, &wxLua_wxStaticBox_delete_function, }, -#endif // wxLUA_USE_wxStaticBox && wxUSE_STATBOX - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - { wxluaclassname_wxStaticBoxSizer, wxStaticBoxSizer_methods, wxStaticBoxSizer_methodCount, CLASSINFO(wxStaticBoxSizer), &wxluatype_wxStaticBoxSizer, wxluabaseclassnames_wxStaticBoxSizer, wxluabaseclassbinds_wxStaticBoxSizer, NULL, NULL, NULL, 0, &wxLua_wxStaticBoxSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - -#if wxLUA_USE_wxStaticLine && wxUSE_STATLINE - { wxluaclassname_wxStaticLine, wxStaticLine_methods, wxStaticLine_methodCount, CLASSINFO(wxStaticLine), &wxluatype_wxStaticLine, wxluabaseclassnames_wxStaticLine, wxluabaseclassbinds_wxStaticLine, NULL, NULL, NULL, 0, &wxLua_wxStaticLine_delete_function, }, -#endif // wxLUA_USE_wxStaticLine && wxUSE_STATLINE - -#if wxLUA_USE_wxStaticText && wxUSE_STATTEXT - { wxluaclassname_wxStaticText, wxStaticText_methods, wxStaticText_methodCount, CLASSINFO(wxStaticText), &wxluatype_wxStaticText, wxluabaseclassnames_wxStaticText, wxluabaseclassbinds_wxStaticText, NULL, NULL, NULL, 0, &wxLua_wxStaticText_delete_function, }, -#endif // wxLUA_USE_wxStaticText && wxUSE_STATTEXT - -#if wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - { wxluaclassname_wxStatusBar, wxStatusBar_methods, wxStatusBar_methodCount, CLASSINFO(wxStatusBar), &wxluatype_wxStatusBar, wxluabaseclassnames_wxStatusBar, wxluabaseclassbinds_wxStatusBar, NULL, NULL, NULL, 0, &wxLua_wxStatusBar_delete_function, }, - { wxluaclassname_wxStatusBarPane, wxStatusBarPane_methods, wxStatusBarPane_methodCount, NULL, &wxluatype_wxStatusBarPane, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxStatusBarPane_delete_function, }, -#endif // wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - { wxluaclassname_wxStdDialogButtonSizer, wxStdDialogButtonSizer_methods, wxStdDialogButtonSizer_methodCount, CLASSINFO(wxStdDialogButtonSizer), &wxluatype_wxStdDialogButtonSizer, wxluabaseclassnames_wxStdDialogButtonSizer, wxluabaseclassbinds_wxStdDialogButtonSizer, NULL, NULL, NULL, 0, &wxLua_wxStdDialogButtonSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { wxluaclassname_wxStockGDI, wxStockGDI_methods, wxStockGDI_methodCount, NULL, &wxluatype_wxStockGDI, NULL, NULL, NULL, NULL, wxStockGDI_enums, wxStockGDI_enumCount, &wxLua_wxStockGDI_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - - { wxluaclassname_wxSysColourChangedEvent, wxSysColourChangedEvent_methods, wxSysColourChangedEvent_methodCount, CLASSINFO(wxSysColourChangedEvent), &wxluatype_wxSysColourChangedEvent, wxluabaseclassnames_wxSysColourChangedEvent, wxluabaseclassbinds_wxSysColourChangedEvent, NULL, NULL, NULL, 0, &wxLua_wxSysColourChangedEvent_delete_function, }, - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - { wxluaclassname_wxSystemAppearance, wxSystemAppearance_methods, wxSystemAppearance_methodCount, NULL, &wxluatype_wxSystemAppearance, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxSystemAppearance_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - -#if wxLUA_USE_wxSystemSettings - { wxluaclassname_wxSystemSettings, wxSystemSettings_methods, wxSystemSettings_methodCount, NULL, &wxluatype_wxSystemSettings, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxSystemSettings_delete_function, }, -#endif // wxLUA_USE_wxSystemSettings - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxluaclassname_wxTGAHandler, wxTGAHandler_methods, wxTGAHandler_methodCount, CLASSINFO(wxTGAHandler), &wxluatype_wxTGAHandler, wxluabaseclassnames_wxTGAHandler, wxluabaseclassbinds_wxTGAHandler, NULL, NULL, NULL, 0, &wxLua_wxTGAHandler_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - { wxluaclassname_wxTIFFHandler, wxTIFFHandler_methods, wxTIFFHandler_methodCount, CLASSINFO(wxTIFFHandler), &wxluatype_wxTIFFHandler, wxluabaseclassnames_wxTIFFHandler, wxluabaseclassbinds_wxTIFFHandler, NULL, NULL, NULL, 0, &wxLua_wxTIFFHandler_delete_function, }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - { wxluaclassname_wxTabCtrl, wxTabCtrl_methods, wxTabCtrl_methodCount, CLASSINFO(wxTabCtrl), &wxluatype_wxTabCtrl, wxluabaseclassnames_wxTabCtrl, wxluabaseclassbinds_wxTabCtrl, NULL, NULL, NULL, 0, &wxLua_wxTabCtrl_delete_function, }, - { wxluaclassname_wxTabEvent, wxTabEvent_methods, wxTabEvent_methodCount, CLASSINFO(wxTabEvent), &wxluatype_wxTabEvent, wxluabaseclassnames_wxTabEvent, wxluabaseclassbinds_wxTabEvent, NULL, NULL, NULL, 0, &wxLua_wxTabEvent_delete_function, }, -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { wxluaclassname_wxTextAreaBase, wxTextAreaBase_methods, wxTextAreaBase_methodCount, NULL, &wxluatype_wxTextAreaBase, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAreaBase_delete_function, }, - { wxluaclassname_wxTextAttr, wxTextAttr_methods, wxTextAttr_methodCount, NULL, &wxluatype_wxTextAttr, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttr_delete_function, }, - { wxluaclassname_wxTextCtrl, wxTextCtrl_methods, wxTextCtrl_methodCount, CLASSINFO(wxTextCtrl), &wxluatype_wxTextCtrl, wxluabaseclassnames_wxTextCtrl, wxluabaseclassbinds_wxTextCtrl, wxluabaseclass_wxluatypes_wxTextCtrl, wxluabaseclass_vtable_offsets_wxTextCtrl, NULL, 0, &wxLua_wxTextCtrl_delete_function, }, - { wxluaclassname_wxTextCtrlIface, wxTextCtrlIface_methods, wxTextCtrlIface_methodCount, NULL, &wxluatype_wxTextCtrlIface, wxluabaseclassnames_wxTextCtrlIface, wxluabaseclassbinds_wxTextCtrlIface, wxluabaseclass_wxluatypes_wxTextCtrlIface, wxluabaseclass_vtable_offsets_wxTextCtrlIface, NULL, 0, &wxLua_wxTextCtrlIface_delete_function, }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { wxluaclassname_wxTextDataObject, wxTextDataObject_methods, wxTextDataObject_methodCount, NULL, &wxluatype_wxTextDataObject, wxluabaseclassnames_wxTextDataObject, wxluabaseclassbinds_wxTextDataObject, NULL, NULL, NULL, 0, &wxLua_wxTextDataObject_delete_function, }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { wxluaclassname_wxTextDropTarget, wxTextDropTarget_methods, wxTextDropTarget_methodCount, NULL, &wxluatype_wxTextDropTarget, wxluabaseclassnames_wxTextDropTarget, wxluabaseclassbinds_wxTextDropTarget, NULL, NULL, NULL, 0, &wxLua_wxTextDropTarget_delete_function, }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { wxluaclassname_wxTextEntry, wxTextEntry_methods, wxTextEntry_methodCount, NULL, &wxluatype_wxTextEntry, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextEntry_delete_function, }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - { wxluaclassname_wxTextEntryDialog, wxTextEntryDialog_methods, wxTextEntryDialog_methodCount, CLASSINFO(wxTextEntryDialog), &wxluatype_wxTextEntryDialog, wxluabaseclassnames_wxTextEntryDialog, wxluabaseclassbinds_wxTextEntryDialog, NULL, NULL, NULL, 0, &wxLua_wxTextEntryDialog_delete_function, }, -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - { wxluaclassname_wxTextUrlEvent, wxTextUrlEvent_methods, wxTextUrlEvent_methodCount, CLASSINFO(wxTextUrlEvent), &wxluatype_wxTextUrlEvent, wxluabaseclassnames_wxTextUrlEvent, wxluabaseclassbinds_wxTextUrlEvent, NULL, NULL, NULL, 0, &wxLua_wxTextUrlEvent_delete_function, }, -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - -#if (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxluaclassname_wxTextValidator, wxTextValidator_methods, wxTextValidator_methodCount, CLASSINFO(wxTextValidator), &wxluatype_wxTextValidator, wxluabaseclassnames_wxTextValidator, wxluabaseclassbinds_wxTextValidator, NULL, NULL, NULL, 0, &wxLua_wxTextValidator_delete_function, }, -#endif // (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - { wxluaclassname_wxTimePickerCtrl, wxTimePickerCtrl_methods, wxTimePickerCtrl_methodCount, CLASSINFO(wxTimePickerCtrl), &wxluatype_wxTimePickerCtrl, wxluabaseclassnames_wxTimePickerCtrl, wxluabaseclassbinds_wxTimePickerCtrl, NULL, NULL, NULL, 0, &wxLua_wxTimePickerCtrl_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - -#if wxLUA_USE_wxTimer && wxUSE_TIMER - { wxluaclassname_wxTimer, wxTimer_methods, wxTimer_methodCount, CLASSINFO(wxTimer), &wxluatype_wxTimer, wxluabaseclassnames_wxTimer, wxluabaseclassbinds_wxTimer, NULL, NULL, NULL, 0, &wxLua_wxTimer_delete_function, }, - { wxluaclassname_wxTimerEvent, wxTimerEvent_methods, wxTimerEvent_methodCount, CLASSINFO(wxTimerEvent), &wxluatype_wxTimerEvent, wxluabaseclassnames_wxTimerEvent, wxluabaseclassbinds_wxTimerEvent, NULL, NULL, NULL, 0, &wxLua_wxTimerEvent_delete_function, }, -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - { wxluaclassname_wxToggleButton, wxToggleButton_methods, wxToggleButton_methodCount, CLASSINFO(wxToggleButton), &wxluatype_wxToggleButton, wxluabaseclassnames_wxToggleButton, wxluabaseclassbinds_wxToggleButton, NULL, NULL, NULL, 0, &wxLua_wxToggleButton_delete_function, }, -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - -#if wxLUA_USE_wxToolbar - { wxluaclassname_wxToolBar, wxToolBar_methods, wxToolBar_methodCount, CLASSINFO(wxToolBar), &wxluatype_wxToolBar, wxluabaseclassnames_wxToolBar, wxluabaseclassbinds_wxToolBar, NULL, NULL, NULL, 0, &wxLua_wxToolBar_delete_function, }, - { wxluaclassname_wxToolBarBase, wxToolBarBase_methods, wxToolBarBase_methodCount, CLASSINFO(wxToolBarBase), &wxluatype_wxToolBarBase, wxluabaseclassnames_wxToolBarBase, wxluabaseclassbinds_wxToolBarBase, NULL, NULL, NULL, 0, &wxLua_wxToolBarBase_delete_function, }, -#endif // wxLUA_USE_wxToolbar - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - { wxluaclassname_wxToolBarSimple, wxToolBarSimple_methods, wxToolBarSimple_methodCount, CLASSINFO(wxToolBarSimple), &wxluatype_wxToolBarSimple, wxluabaseclassnames_wxToolBarSimple, wxluabaseclassbinds_wxToolBarSimple, NULL, NULL, NULL, 0, &wxLua_wxToolBarSimple_delete_function, }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - -#if wxLUA_USE_wxToolbar - { wxluaclassname_wxToolBarToolBase, wxToolBarToolBase_methods, wxToolBarToolBase_methodCount, CLASSINFO(wxToolBarToolBase), &wxluatype_wxToolBarToolBase, wxluabaseclassnames_wxToolBarToolBase, wxluabaseclassbinds_wxToolBarToolBase, NULL, NULL, NULL, 0, &wxLua_wxToolBarToolBase_delete_function, }, -#endif // wxLUA_USE_wxToolbar - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - { wxluaclassname_wxToolTip, wxToolTip_methods, wxToolTip_methodCount, CLASSINFO(wxToolTip), &wxluatype_wxToolTip, wxluabaseclassnames_wxToolTip, wxluabaseclassbinds_wxToolTip, NULL, NULL, NULL, 0, &wxLua_wxToolTip_delete_function, }, -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - { wxluaclassname_wxToolbook, wxToolbook_methods, wxToolbook_methodCount, CLASSINFO(wxToolbook), &wxluatype_wxToolbook, wxluabaseclassnames_wxToolbook, wxluabaseclassbinds_wxToolbook, NULL, NULL, NULL, 0, &wxLua_wxToolbook_delete_function, }, - { wxluaclassname_wxToolbookEvent, wxToolbookEvent_methods, wxToolbookEvent_methodCount, CLASSINFO(wxToolbookEvent), &wxluatype_wxToolbookEvent, wxluabaseclassnames_wxToolbookEvent, wxluabaseclassbinds_wxToolbookEvent, NULL, NULL, NULL, 0, &wxLua_wxToolbookEvent_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - -#if wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - { wxluaclassname_wxTopLevelWindow, wxTopLevelWindow_methods, wxTopLevelWindow_methodCount, CLASSINFO(wxTopLevelWindow), &wxluatype_wxTopLevelWindow, wxluabaseclassnames_wxTopLevelWindow, wxluabaseclassbinds_wxTopLevelWindow, NULL, NULL, NULL, 0, &wxLua_wxTopLevelWindow_delete_function, }, -#endif // wxLUA_USE_wxFrame || wxLUA_USE_wxDialog - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - { wxluaclassname_wxTreeCtrl, wxTreeCtrl_methods, wxTreeCtrl_methodCount, CLASSINFO(wxTreeCtrl), &wxluatype_wxTreeCtrl, wxluabaseclassnames_wxTreeCtrl, wxluabaseclassbinds_wxTreeCtrl, NULL, NULL, NULL, 0, &wxLua_wxTreeCtrl_delete_function, }, - { wxluaclassname_wxTreeEvent, wxTreeEvent_methods, wxTreeEvent_methodCount, CLASSINFO(wxTreeEvent), &wxluatype_wxTreeEvent, wxluabaseclassnames_wxTreeEvent, wxluabaseclassbinds_wxTreeEvent, NULL, NULL, NULL, 0, &wxLua_wxTreeEvent_delete_function, }, - { wxluaclassname_wxTreeItemData, wxTreeItemData_methods, wxTreeItemData_methodCount, NULL, &wxluatype_wxTreeItemData, wxluabaseclassnames_wxTreeItemData, wxluabaseclassbinds_wxTreeItemData, NULL, NULL, NULL, 0, &wxLua_wxTreeItemData_delete_function, }, - { wxluaclassname_wxTreeItemId, wxTreeItemId_methods, wxTreeItemId_methodCount, NULL, &wxluatype_wxTreeItemId, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTreeItemId_delete_function, }, -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - { wxluaclassname_wxTreeListCtrl, wxTreeListCtrl_methods, wxTreeListCtrl_methodCount, CLASSINFO(wxTreeListCtrl), &wxluatype_wxTreeListCtrl, wxluabaseclassnames_wxTreeListCtrl, wxluabaseclassbinds_wxTreeListCtrl, NULL, NULL, NULL, 0, &wxLua_wxTreeListCtrl_delete_function, }, - { wxluaclassname_wxTreeListEvent, wxTreeListEvent_methods, wxTreeListEvent_methodCount, CLASSINFO(wxTreeListEvent), &wxluatype_wxTreeListEvent, wxluabaseclassnames_wxTreeListEvent, wxluabaseclassbinds_wxTreeListEvent, NULL, NULL, NULL, 0, &wxLua_wxTreeListEvent_delete_function, }, - { wxluaclassname_wxTreeListItem, wxTreeListItem_methods, wxTreeListItem_methodCount, NULL, &wxluatype_wxTreeListItem, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTreeListItem_delete_function, }, -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - { wxluaclassname_wxTreebook, wxTreebook_methods, wxTreebook_methodCount, CLASSINFO(wxTreebook), &wxluatype_wxTreebook, wxluabaseclassnames_wxTreebook, wxluabaseclassbinds_wxTreebook, NULL, NULL, NULL, 0, &wxLua_wxTreebook_delete_function, }, - { wxluaclassname_wxTreebookEvent, wxTreebookEvent_methods, wxTreebookEvent_methodCount, CLASSINFO(wxTreebookEvent), &wxluatype_wxTreebookEvent, wxluabaseclassnames_wxTreebookEvent, wxluabaseclassbinds_wxTreebookEvent, NULL, NULL, NULL, 0, &wxLua_wxTreebookEvent_delete_function, }, -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxluaclassname_wxURLDataObject, wxURLDataObject_methods, wxURLDataObject_methodCount, NULL, &wxluatype_wxURLDataObject, wxluabaseclassnames_wxURLDataObject, wxluabaseclassbinds_wxURLDataObject, NULL, NULL, NULL, 0, &wxLua_wxURLDataObject_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { wxluaclassname_wxUpdateUIEvent, wxUpdateUIEvent_methods, wxUpdateUIEvent_methodCount, CLASSINFO(wxUpdateUIEvent), &wxluatype_wxUpdateUIEvent, wxluabaseclassnames_wxUpdateUIEvent, wxluabaseclassbinds_wxUpdateUIEvent, NULL, NULL, NULL, 0, &wxLua_wxUpdateUIEvent_delete_function, }, - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - { wxluaclassname_wxValidator, wxValidator_methods, wxValidator_methodCount, CLASSINFO(wxValidator), &wxluatype_wxValidator, wxluabaseclassnames_wxValidator, wxluabaseclassbinds_wxValidator, NULL, NULL, NULL, 0, &wxLua_wxValidator_delete_function, }, -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY - { wxluaclassname_wxVideoMode, wxVideoMode_methods, wxVideoMode_methodCount, NULL, &wxluatype_wxVideoMode, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxVideoMode_delete_function, }, -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - { wxluaclassname_wxView, wxView_methods, wxView_methodCount, CLASSINFO(wxView), &wxluatype_wxView, wxluabaseclassnames_wxView, wxluabaseclassbinds_wxView, NULL, NULL, NULL, 0, &wxLua_wxView_delete_function, }, -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - { wxluaclassname_wxVisualAttributes, wxVisualAttributes_methods, wxVisualAttributes_methodCount, NULL, &wxluatype_wxVisualAttributes, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxVisualAttributes_delete_function, }, - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { wxluaclassname_wxWinHelpController, wxWinHelpController_methods, wxWinHelpController_methodCount, CLASSINFO(wxWinHelpController), &wxluatype_wxWinHelpController, wxluabaseclassnames_wxWinHelpController, wxluabaseclassbinds_wxWinHelpController, NULL, NULL, NULL, 0, &wxLua_wxWinHelpController_delete_function, }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - { wxluaclassname_wxWindow, wxWindow_methods, wxWindow_methodCount, CLASSINFO(wxWindow), &wxluatype_wxWindow, wxluabaseclassnames_wxWindow, wxluabaseclassbinds_wxWindow, NULL, NULL, NULL, 0, &wxLua_wxWindow_delete_function, }, - { wxluaclassname_wxWindowCreateEvent, wxWindowCreateEvent_methods, wxWindowCreateEvent_methodCount, CLASSINFO(wxWindowCreateEvent), &wxluatype_wxWindowCreateEvent, wxluabaseclassnames_wxWindowCreateEvent, wxluabaseclassbinds_wxWindowCreateEvent, NULL, NULL, NULL, 0, &wxLua_wxWindowCreateEvent_delete_function, }, - -#if wxLUA_USE_wxDC - { wxluaclassname_wxWindowDC, wxWindowDC_methods, wxWindowDC_methodCount, CLASSINFO(wxWindowDC), &wxluatype_wxWindowDC, wxluabaseclassnames_wxWindowDC, wxluabaseclassbinds_wxWindowDC, NULL, NULL, NULL, 0, &wxLua_wxWindowDC_delete_function, }, -#endif // wxLUA_USE_wxDC - - { wxluaclassname_wxWindowDestroyEvent, wxWindowDestroyEvent_methods, wxWindowDestroyEvent_methodCount, CLASSINFO(wxWindowDestroyEvent), &wxluatype_wxWindowDestroyEvent, wxluabaseclassnames_wxWindowDestroyEvent, wxluabaseclassbinds_wxWindowDestroyEvent, NULL, NULL, NULL, 0, &wxLua_wxWindowDestroyEvent_delete_function, }, - { wxluaclassname_wxWindowDisabler, wxWindowDisabler_methods, wxWindowDisabler_methodCount, NULL, &wxluatype_wxWindowDisabler, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxWindowDisabler_delete_function, }, - -#if wxLUA_USE_wxWindowList && !wxUSE_STL - { wxluaclassname_wxWindowList, wxWindowList_methods, wxWindowList_methodCount, NULL, &wxluatype_wxWindowList, wxluabaseclassnames_wxWindowList, wxluabaseclassbinds_wxWindowList, NULL, NULL, NULL, 0, &wxLua_wxWindowList_delete_function, }, -#endif // wxLUA_USE_wxWindowList && !wxUSE_STL - - { wxluaclassname_wxWindowUpdateLocker, wxWindowUpdateLocker_methods, wxWindowUpdateLocker_methodCount, NULL, &wxluatype_wxWindowUpdateLocker, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxWindowUpdateLocker_delete_function, }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - { wxluaclassname_wxWrapSizer, wxWrapSizer_methods, wxWrapSizer_methodCount, CLASSINFO(wxWrapSizer), &wxluatype_wxWrapSizer, wxluabaseclassnames_wxWrapSizer, wxluabaseclassbinds_wxWrapSizer, NULL, NULL, NULL, 0, &wxLua_wxWrapSizer_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxImage && wxUSE_IMAGE - { wxluaclassname_wxXPMHandler, wxXPMHandler_methods, wxXPMHandler_methodCount, CLASSINFO(wxXPMHandler), &wxluatype_wxXPMHandler, wxluabaseclassnames_wxXPMHandler, wxluabaseclassbinds_wxXPMHandler, NULL, NULL, NULL, 0, &wxLua_wxXPMHandler_delete_function, }, -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxcore() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxcore, wxLuaBinding) - -wxLuaBinding_wxcore::wxLuaBinding_wxcore() : wxLuaBinding() -{ - m_bindingName = wxT("wxcore"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxcore(m_classCount); - m_numberArray = wxLuaGetDefineList_wxcore(m_numberCount); - m_stringArray = wxLuaGetStringList_wxcore(m_stringCount); - m_eventArray = wxLuaGetEventList_wxcore(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxcore(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxcore(m_functionCount); - InitBinding(); -} - -bool wxLuaBinding_wxcore::RegisterBinding(const wxLuaState& wxlState) -{ - // ugly hack for wxWidgets >2.7 change to use wxStockGDI::GetXXX - if (wxLua_wxBLACK == NULL) - { - wxLua_wxBLACK = (wxColour*)wxBLACK; - wxLua_wxWHITE = (wxColour*)wxWHITE; - wxLua_wxRED = (wxColour*)wxRED; - wxLua_wxBLUE = (wxColour*)wxBLUE; - wxLua_wxGREEN = (wxColour*)wxGREEN; - wxLua_wxCYAN = (wxColour*)wxCYAN; - wxLua_wxLIGHT_GREY = (wxColour*)wxLIGHT_GREY; - wxLua_wxYELLOW = (wxColour*)wxYELLOW; - - wxLua_wxRED_PEN = (wxPen*)wxRED_PEN; - wxLua_wxCYAN_PEN = (wxPen*)wxCYAN_PEN; - wxLua_wxGREEN_PEN = (wxPen*)wxGREEN_PEN; - wxLua_wxBLACK_PEN = (wxPen*)wxBLACK_PEN; - wxLua_wxWHITE_PEN = (wxPen*)wxWHITE_PEN; - wxLua_wxTRANSPARENT_PEN = (wxPen*)wxTRANSPARENT_PEN; - wxLua_wxBLACK_DASHED_PEN = (wxPen*)wxBLACK_DASHED_PEN; - wxLua_wxGREY_PEN = (wxPen*)wxGREY_PEN; - wxLua_wxMEDIUM_GREY_PEN = (wxPen*)wxMEDIUM_GREY_PEN; - wxLua_wxLIGHT_GREY_PEN = (wxPen*)wxLIGHT_GREY_PEN; - wxLua_wxBLUE_PEN = (wxPen*)wxBLUE_PEN; - wxLua_wxYELLOW_PEN = (wxPen*)wxYELLOW_PEN; - - wxLua_wxBLUE_BRUSH = (wxBrush*)wxBLUE_BRUSH; - wxLua_wxGREEN_BRUSH = (wxBrush*)wxGREEN_BRUSH; - wxLua_wxWHITE_BRUSH = (wxBrush*)wxWHITE_BRUSH; - wxLua_wxBLACK_BRUSH = (wxBrush*)wxBLACK_BRUSH; - wxLua_wxGREY_BRUSH = (wxBrush*)wxGREY_BRUSH; - wxLua_wxMEDIUM_GREY_BRUSH = (wxBrush*)wxMEDIUM_GREY_BRUSH; - wxLua_wxLIGHT_GREY_BRUSH = (wxBrush*)wxLIGHT_GREY_BRUSH; - wxLua_wxTRANSPARENT_BRUSH = (wxBrush*)wxTRANSPARENT_BRUSH; - wxLua_wxCYAN_BRUSH = (wxBrush*)wxCYAN_BRUSH; - wxLua_wxRED_BRUSH = (wxBrush*)wxRED_BRUSH; - wxLua_wxYELLOW_BRUSH = (wxBrush*)wxYELLOW_BRUSH; - - wxLua_wxNORMAL_FONT = (wxFont*)wxNORMAL_FONT; - wxLua_wxSMALL_FONT = (wxFont*)wxSMALL_FONT; - wxLua_wxITALIC_FONT = (wxFont*)wxITALIC_FONT; - wxLua_wxSWISS_FONT = (wxFont*)wxSWISS_FONT; - - wxLua_wxSTANDARD_CURSOR = (wxCursor*)wxSTANDARD_CURSOR; - wxLua_wxHOURGLASS_CURSOR = (wxCursor*)wxHOURGLASS_CURSOR; - wxLua_wxCROSS_CURSOR = (wxCursor*)wxCROSS_CURSOR; - } - - bool ret = wxLuaBinding::RegisterBinding(wxlState); - - p_wxluatype_wxEvent = &wxluatype_wxEvent; - p_wxluatype_wxPoint = &wxluatype_wxPoint; - p_wxluatype_wxScrollEvent = &wxluatype_wxScrollEvent; - p_wxluatype_wxSpinEvent = &wxluatype_wxSpinEvent; - p_wxluatype_wxWindow = &wxluatype_wxWindow; - - return ret; -} - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxcore_init() -{ - static wxLuaBinding_wxcore m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxcore_clipdrag.cpp b/wxLua/modules/wxbind/src/wxcore_clipdrag.cpp deleted file mode 100644 index 98795b84..00000000 --- a/wxLua/modules/wxbind/src/wxcore_clipdrag.cpp +++ /dev/null @@ -1,2747 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_clipdrag.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD -// --------------------------------------------------------------------------- -// Bind class wxClipboard -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClipboard' -int wxluatype_wxClipboard = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_AddData[] = { &wxluatype_wxClipboard, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxClipboard_AddData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_AddData[1] = {{ wxLua_wxClipboard_AddData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClipboard_AddData }}; -// bool AddData(%ungc wxDataObject *data); -static int LUACALL wxLua_wxClipboard_AddData(lua_State *L) -{ - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObject); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call AddData - bool returns = (self->AddData(data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_Clear[] = { &wxluatype_wxClipboard, NULL }; -static int LUACALL wxLua_wxClipboard_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_Clear[1] = {{ wxLua_wxClipboard_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClipboard_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxClipboard_Clear(lua_State *L) -{ - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_Close[] = { &wxluatype_wxClipboard, NULL }; -static int LUACALL wxLua_wxClipboard_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_Close[1] = {{ wxLua_wxClipboard_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClipboard_Close }}; -// void Close(); -static int LUACALL wxLua_wxClipboard_Close(lua_State *L) -{ - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call Close - self->Close(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_Flush[] = { &wxluatype_wxClipboard, NULL }; -static int LUACALL wxLua_wxClipboard_Flush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_Flush[1] = {{ wxLua_wxClipboard_Flush, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClipboard_Flush }}; -// bool Flush(); -static int LUACALL wxLua_wxClipboard_Flush(lua_State *L) -{ - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call Flush - bool returns = (self->Flush()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) -static int LUACALL wxLua_wxClipboard_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_Get[1] = {{ wxLua_wxClipboard_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_2_6 static wxClipboard *Get(); -static int LUACALL wxLua_wxClipboard_Get(lua_State *L) -{ - // call Get - wxClipboard* returns = (wxClipboard*)wxClipboard::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboard); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_GetData[] = { &wxluatype_wxClipboard, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxClipboard_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_GetData[1] = {{ wxLua_wxClipboard_GetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClipboard_GetData }}; -// bool GetData(wxDataObject& data); -static int LUACALL wxLua_wxClipboard_GetData(lua_State *L) -{ - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObject); - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call GetData - bool returns = (self->GetData(*data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_IsOpened[] = { &wxluatype_wxClipboard, NULL }; -static int LUACALL wxLua_wxClipboard_IsOpened(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_IsOpened[1] = {{ wxLua_wxClipboard_IsOpened, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClipboard_IsOpened }}; -// bool IsOpened() const; -static int LUACALL wxLua_wxClipboard_IsOpened(lua_State *L) -{ - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call IsOpened - bool returns = (self->IsOpened()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_IsSupported[] = { &wxluatype_wxClipboard, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxClipboard_IsSupported(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_IsSupported[1] = {{ wxLua_wxClipboard_IsSupported, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClipboard_IsSupported }}; -// bool IsSupported(const wxDataFormat& format); -static int LUACALL wxLua_wxClipboard_IsSupported(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call IsSupported - bool returns = (self->IsSupported(*format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_Open[] = { &wxluatype_wxClipboard, NULL }; -static int LUACALL wxLua_wxClipboard_Open(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_Open[1] = {{ wxLua_wxClipboard_Open, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClipboard_Open }}; -// bool Open(); -static int LUACALL wxLua_wxClipboard_Open(lua_State *L) -{ - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call Open - bool returns = (self->Open()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_SetData[] = { &wxluatype_wxClipboard, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxClipboard_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_SetData[1] = {{ wxLua_wxClipboard_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxClipboard_SetData }}; -// bool SetData(%ungc wxDataObject *data); -static int LUACALL wxLua_wxClipboard_SetData(lua_State *L) -{ - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObject); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call SetData - bool returns = (self->SetData(data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboard_UsePrimarySelection[] = { &wxluatype_wxClipboard, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxClipboard_UsePrimarySelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboard_UsePrimarySelection[1] = {{ wxLua_wxClipboard_UsePrimarySelection, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxClipboard_UsePrimarySelection }}; -// void UsePrimarySelection(bool primary = true); -static int LUACALL wxLua_wxClipboard_UsePrimarySelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool primary = true - bool primary = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxClipboard * self = (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard); - // call UsePrimarySelection - self->UsePrimarySelection(primary); - - return 0; -} - - - - -void wxLua_wxClipboard_delete_function(void** p) -{ - wxClipboard* o = (wxClipboard*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClipboard_methods[] = { -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "AddData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_AddData, 1, NULL }, -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_Clear, 1, NULL }, - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_Close, 1, NULL }, - { "Flush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_Flush, 1, NULL }, - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxClipboard_Get, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_GetData, 1, NULL }, -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "IsOpened", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_IsOpened, 1, NULL }, - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "IsSupported", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_IsSupported, 1, NULL }, -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "Open", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_Open, 1, NULL }, - -#if (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_SetData, 1, NULL }, -#endif // (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "UsePrimarySelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboard_UsePrimarySelection, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxClipboard_methodCount = sizeof(wxClipboard_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - - -#if wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD -// --------------------------------------------------------------------------- -// Bind class wxClipboardLocker -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClipboardLocker' -int wxluatype_wxClipboardLocker = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboardLocker_delete[] = { &wxluatype_wxClipboardLocker, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboardLocker_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxClipboardLocker_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboardLocker_op_not[] = { &wxluatype_wxClipboardLocker, NULL }; -static int LUACALL wxLua_wxClipboardLocker_op_not(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboardLocker_op_not[1] = {{ wxLua_wxClipboardLocker_op_not, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxClipboardLocker_op_not }}; -// bool operator!() const; -static int LUACALL wxLua_wxClipboardLocker_op_not(lua_State *L) -{ - // get this - wxClipboardLocker * self = (wxClipboardLocker *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboardLocker); - // call op_not - bool returns = (!(*self)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboardLocker_constructor[] = { &wxluatype_wxClipboard, NULL }; -static int LUACALL wxLua_wxClipboardLocker_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboardLocker_constructor[1] = {{ wxLua_wxClipboardLocker_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxClipboardLocker_constructor }}; -// wxClipboardLocker(wxClipboard *clipboard = NULL); -static int LUACALL wxLua_wxClipboardLocker_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClipboard clipboard = NULL - wxClipboard * clipboard = (argCount >= 1 ? (wxClipboard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxClipboard) : NULL); - // call constructor - wxClipboardLocker* returns = new wxClipboardLocker(clipboard); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxClipboardLocker); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboardLocker); - - return 1; -} - - - - -void wxLua_wxClipboardLocker_delete_function(void** p) -{ - wxClipboardLocker* o = (wxClipboardLocker*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClipboardLocker_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxClipboardLocker_delete, 1, NULL }, - { "op_not", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxClipboardLocker_op_not, 1, NULL }, - { "wxClipboardLocker", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxClipboardLocker_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxClipboardLocker_methodCount = sizeof(wxClipboardLocker_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) -// --------------------------------------------------------------------------- -// Bind class wxClipboardTextEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClipboardTextEvent' -int wxluatype_wxClipboardTextEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboardTextEvent_delete[] = { &wxluatype_wxClipboardTextEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboardTextEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxClipboardTextEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClipboardTextEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxClipboardTextEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClipboardTextEvent_constructor[1] = {{ wxLua_wxClipboardTextEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxClipboardTextEvent_constructor }}; -// wxClipboardTextEvent(wxEventType type = wxEVT_NULL, wxWindowID winid = 0); -static int LUACALL wxLua_wxClipboardTextEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID winid = 0 - wxWindowID winid = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : 0); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxClipboardTextEvent* returns = new wxClipboardTextEvent(type, winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxClipboardTextEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClipboardTextEvent); - - return 1; -} - - - - -void wxLua_wxClipboardTextEvent_delete_function(void** p) -{ - wxClipboardTextEvent* o = (wxClipboardTextEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClipboardTextEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxClipboardTextEvent_delete, 1, NULL }, - { "wxClipboardTextEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxClipboardTextEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxClipboardTextEvent_methodCount = sizeof(wxClipboardTextEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxClipboard && wxUSE_CLIPBOARD) - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxDataFormat -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataFormat' -int wxluatype_wxDataFormat = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_GetId[] = { &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataFormat_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_GetId[1] = {{ wxLua_wxDataFormat_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataFormat_GetId }}; -// wxString GetId() const; -static int LUACALL wxLua_wxDataFormat_GetId(lua_State *L) -{ - // get this - wxDataFormat * self = (wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat); - // call GetId - wxString returns = (self->GetId()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_GetType[] = { &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataFormat_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_GetType[1] = {{ wxLua_wxDataFormat_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataFormat_GetType }}; -// int GetType() const; // returns wxDataFormatId, but it's just an int and msw differs -static int LUACALL wxLua_wxDataFormat_GetType(lua_State *L) -{ - // get this - wxDataFormat * self = (wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat); - // call GetType - int returns = (self->GetType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_SetId[] = { &wxluatype_wxDataFormat, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataFormat_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_SetId[1] = {{ wxLua_wxDataFormat_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataFormat_SetId }}; -// void SetId(const wxString &format); -static int LUACALL wxLua_wxDataFormat_SetId(lua_State *L) -{ - // const wxString format - const wxString format = wxlua_getwxStringtype(L, 2); - // get this - wxDataFormat * self = (wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat); - // call SetId - self->SetId(format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_SetType[] = { &wxluatype_wxDataFormat, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataFormat_SetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_SetType[1] = {{ wxLua_wxDataFormat_SetType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataFormat_SetType }}; -// void SetType(wxDataFormatId format); -static int LUACALL wxLua_wxDataFormat_SetType(lua_State *L) -{ - // wxDataFormatId format - wxDataFormatId format = (wxDataFormatId)wxlua_getenumtype(L, 2); - // get this - wxDataFormat * self = (wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat); - // call SetType - self->SetType(format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_delete[] = { &wxluatype_wxDataFormat, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataFormat_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_op_eq[] = { &wxluatype_wxDataFormat, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataFormat_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_op_eq[1] = {{ wxLua_wxDataFormat_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataFormat_op_eq }}; -// bool operator==(const wxDataFormat& format) const; -static int LUACALL wxLua_wxDataFormat_op_eq(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataFormat * self = (wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat); - // call op_eq - bool returns = ((*self)==(*format)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataFormat_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_constructor1[1] = {{ wxLua_wxDataFormat_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataFormat_constructor1 }}; -// wxDataFormat(const wxString &format); -static int LUACALL wxLua_wxDataFormat_constructor1(lua_State *L) -{ - // const wxString format - const wxString format = wxlua_getwxStringtype(L, 1); - // call constructor - wxDataFormat* returns = new wxDataFormat(format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataFormat_constructor[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataFormat_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_constructor[1] = {{ wxLua_wxDataFormat_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDataFormat_constructor }}; -// wxDataFormat(wxDataFormatId format = wxDF_INVALID); -static int LUACALL wxLua_wxDataFormat_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDataFormatId format = wxDF_INVALID - wxDataFormatId format = (argCount >= 1 ? (wxDataFormatId)wxlua_getenumtype(L, 1) : wxDF_INVALID); - // call constructor - wxDataFormat* returns = new wxDataFormat(format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - - - - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataFormat_constructor_overload[] = -{ - { wxLua_wxDataFormat_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDataFormat_constructor1 }, - { wxLua_wxDataFormat_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDataFormat_constructor }, -}; -static int s_wxluafunc_wxLua_wxDataFormat_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDataFormat_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -void wxLua_wxDataFormat_delete_function(void** p) -{ - wxDataFormat* o = (wxDataFormat*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataFormat_methods[] = { - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataFormat_GetId, 1, NULL }, - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataFormat_GetType, 1, NULL }, - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataFormat_SetId, 1, NULL }, - { "SetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataFormat_SetType, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataFormat_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataFormat_op_eq, 1, NULL }, - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "wxDataFormat", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataFormat_constructor_overload, s_wxluafunc_wxLua_wxDataFormat_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { 0, 0, 0, 0 }, -}; - -int wxDataFormat_methodCount = sizeof(wxDataFormat_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxDataObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataObject' -int wxluatype_wxDataObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObject_GetAllFormats[] = { &wxluatype_wxDataObject, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataObject_GetAllFormats(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObject_GetAllFormats[1] = {{ wxLua_wxDataObject_GetAllFormats, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDataObject_GetAllFormats }}; -// %override wxLua_wxDataObject_GetAllFormats -// virtual void GetAllFormats(wxDataFormat *formats, wxDataObject::Direction dir = wxDataObject::Get) const -static int LUACALL wxLua_wxDataObject_GetAllFormats(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDataObject::Direction dir = wxDataObject::Get - wxDataObject::Direction dir = (argCount >= 2 ? (wxDataObject::Direction)(int)wxlua_getenumtype(L, 2) : wxDataObject::Get); - // get this - wxDataObject *self = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // wxDataFormat *formats - int idx, formatCount = self->GetFormatCount(dir); - - if (formatCount > 0) - { - wxDataFormat *formats = new wxDataFormat[formatCount]; - if (formats != NULL) - { - // call GetAllFormats - self->GetAllFormats(formats, dir); - // return the number of parameters - - lua_newtable(L); - for (idx = 0; idx < formatCount; ++idx) - { - wxDataFormat *pFormat = new wxDataFormat(formats[idx]); - wxluaT_pushuserdatatype(L, pFormat, wxluatype_wxDataFormat); - lua_rawseti(L, -2, idx + 1); - } - delete[] formats; - return 1; - } - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObject_GetDataHere[] = { &wxluatype_wxDataObject, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataObject_GetDataHere(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObject_GetDataHere[1] = {{ wxLua_wxDataObject_GetDataHere, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataObject_GetDataHere }}; -// %override wxLua_wxDataObject_GetDataHere -// virtual bool GetDataHere(const wxDataFormat& format, void *buf) const -static int LUACALL wxLua_wxDataObject_GetDataHere(lua_State *L) -{ - // const wxDataFormat& format - const wxDataFormat *format = (wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataObject *self = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - - size_t size = self->GetDataSize(*format); - - void *buf = malloc(size); - - if (buf != NULL) - { - // call GetDataHere - bool returns = self->GetDataHere(*format, buf); - - // push the result number - lua_pushboolean(L, returns); - // push the result string - lua_pushlstring(L, (const char *) buf, size); - - free(buf); - - // return the number of parameters - return 2; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObject_GetDataSize[] = { &wxluatype_wxDataObject, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataObject_GetDataSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObject_GetDataSize[1] = {{ wxLua_wxDataObject_GetDataSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataObject_GetDataSize }}; -// virtual int GetDataSize(const wxDataFormat& format) const; -static int LUACALL wxLua_wxDataObject_GetDataSize(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataObject * self = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call GetDataSize - int returns = (self->GetDataSize(*format)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObject_GetFormatCount[] = { &wxluatype_wxDataObject, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataObject_GetFormatCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObject_GetFormatCount[1] = {{ wxLua_wxDataObject_GetFormatCount, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDataObject_GetFormatCount }}; -// virtual int GetFormatCount(wxDataObject::Direction dir = wxDataObject::Get) const; -static int LUACALL wxLua_wxDataObject_GetFormatCount(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDataObject::Direction dir = wxDataObject::Get - wxDataObject::Direction dir = (argCount >= 2 ? (wxDataObject::Direction)wxlua_getenumtype(L, 2) : wxDataObject::Get); - // get this - wxDataObject * self = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call GetFormatCount - int returns = (self->GetFormatCount(dir)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObject_GetPreferredFormat[] = { &wxluatype_wxDataObject, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDataObject_GetPreferredFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObject_GetPreferredFormat[1] = {{ wxLua_wxDataObject_GetPreferredFormat, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDataObject_GetPreferredFormat }}; -// virtual wxDataFormat GetPreferredFormat(wxDataObject::Direction dir = wxDataObject::Get) const; -static int LUACALL wxLua_wxDataObject_GetPreferredFormat(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDataObject::Direction dir = wxDataObject::Get - wxDataObject::Direction dir = (argCount >= 2 ? (wxDataObject::Direction)wxlua_getenumtype(L, 2) : wxDataObject::Get); - // get this - wxDataObject * self = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call GetPreferredFormat - // allocate a new object using the copy constructor - wxDataFormat* returns = new wxDataFormat(self->GetPreferredFormat(dir)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObject_SetData[] = { &wxluatype_wxDataObject, &wxluatype_wxDataFormat, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataObject_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObject_SetData[1] = {{ wxLua_wxDataObject_SetData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDataObject_SetData }}; -// %override wxLua_wxDataObject_SetData -// virtual bool SetData(const wxDataFormat& format, int len, const void *buf) -static int LUACALL wxLua_wxDataObject_SetData(lua_State *L) -{ - // const void *buf - const void *buf = lua_tostring(L, 3); - // int len - int len = lua_strlen(L, 3); - // const wxDataFormat& format - const wxDataFormat *format = (wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataObject *self = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call SetData - bool returns = self->SetData(*format, len, buf); - // push the result number - lua_pushboolean(L, returns); - // return the number of parameters - return 1; -} - - - - - -void wxLua_wxDataObject_delete_function(void** p) -{ - wxDataObject* o = (wxDataObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataObject_methods[] = { - { "GetAllFormats", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObject_GetAllFormats, 1, NULL }, - { "GetDataHere", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObject_GetDataHere, 1, NULL }, - { "GetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObject_GetDataSize, 1, NULL }, - { "GetFormatCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObject_GetFormatCount, 1, NULL }, - { "GetPreferredFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObject_GetPreferredFormat, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObject_SetData, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataObject_methodCount = sizeof(wxDataObject_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxDataObject_enums[] = { -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - { "Get", wxDataObject::Get }, - { "Set", wxDataObject::Set }, -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - { NULL, 0, }, -}; -int wxDataObject_enumCount = sizeof(wxDataObject_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxDataObjectSimple -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataObjectSimple' -int wxluatype_wxDataObjectSimple = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_GetDataHere[] = { &wxluatype_wxDataObjectSimple, NULL }; -static int LUACALL wxLua_wxDataObjectSimple_GetDataHere(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_GetDataHere[1] = {{ wxLua_wxDataObjectSimple_GetDataHere, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataObjectSimple_GetDataHere }}; -// %override wxLua_wxDataObjectSimple_GetDataHere -// virtual bool GetDataHere(void *buf) const -static int LUACALL wxLua_wxDataObjectSimple_GetDataHere(lua_State *L) -{ - // get this - wxDataObjectSimple *self = (wxDataObjectSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectSimple); - - size_t size = self->GetDataSize(); - - void *buf = malloc(size); - if (buf != NULL) - { - // call GetDataHere - bool returns = self->GetDataHere(buf); - - // push the result number - lua_pushboolean(L, returns); - // push the result string - lua_pushlstring(L, (const char *) buf, size); - - free(buf); - - // return the number of parameters - return 2; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_GetDataSize[] = { &wxluatype_wxDataObjectSimple, NULL }; -static int LUACALL wxLua_wxDataObjectSimple_GetDataSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_GetDataSize[1] = {{ wxLua_wxDataObjectSimple_GetDataSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataObjectSimple_GetDataSize }}; -// virtual size_t GetDataSize() const; -static int LUACALL wxLua_wxDataObjectSimple_GetDataSize(lua_State *L) -{ - // get this - wxDataObjectSimple * self = (wxDataObjectSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectSimple); - // call GetDataSize - size_t returns = (self->GetDataSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_GetFormat[] = { &wxluatype_wxDataObjectSimple, NULL }; -static int LUACALL wxLua_wxDataObjectSimple_GetFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_GetFormat[1] = {{ wxLua_wxDataObjectSimple_GetFormat, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataObjectSimple_GetFormat }}; -// const wxDataFormat& GetFormat() const; -static int LUACALL wxLua_wxDataObjectSimple_GetFormat(lua_State *L) -{ - // get this - wxDataObjectSimple * self = (wxDataObjectSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectSimple); - // call GetFormat - const wxDataFormat* returns = (const wxDataFormat*)&self->GetFormat(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_SetData[] = { &wxluatype_wxDataObjectSimple, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDataObjectSimple_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_SetData[1] = {{ wxLua_wxDataObjectSimple_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataObjectSimple_SetData }}; -// %override wxLua_wxDataObjectSimple_SetData -// virtual bool SetData(size_t len, const void *buf) -static int LUACALL wxLua_wxDataObjectSimple_SetData(lua_State *L) -{ - // const void *buf - const void *buf = lua_tostring(L, 2); - // size_t len - size_t len = (size_t)lua_strlen(L, 2); - // get this - wxDataObjectSimple *self = (wxDataObjectSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectSimple); - // call SetData - bool returns = self->SetData(len, buf); - // push the result number - lua_pushboolean(L, returns); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_SetFormat[] = { &wxluatype_wxDataObjectSimple, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataObjectSimple_SetFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_SetFormat[1] = {{ wxLua_wxDataObjectSimple_SetFormat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataObjectSimple_SetFormat }}; -// void SetFormat(const wxDataFormat& format); -static int LUACALL wxLua_wxDataObjectSimple_SetFormat(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataObjectSimple * self = (wxDataObjectSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectSimple); - // call SetFormat - self->SetFormat(*format); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_delete[] = { &wxluatype_wxDataObjectSimple, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataObjectSimple_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectSimple_constructor[] = { &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataObjectSimple_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectSimple_constructor[1] = {{ wxLua_wxDataObjectSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDataObjectSimple_constructor }}; -// wxDataObjectSimple(const wxDataFormat& format = wxFormatInvalid); -static int LUACALL wxLua_wxDataObjectSimple_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxDataFormat format = wxFormatInvalid - const wxDataFormat * format = (argCount >= 1 ? (const wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat) : &wxFormatInvalid); - // call constructor - wxDataObjectSimple* returns = new wxDataObjectSimple(*format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataObjectSimple); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectSimple); - - return 1; -} - - - - -void wxLua_wxDataObjectSimple_delete_function(void** p) -{ - wxDataObjectSimple* o = (wxDataObjectSimple*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataObjectSimple_methods[] = { - { "GetDataHere", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectSimple_GetDataHere, 1, NULL }, - { "GetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectSimple_GetDataSize, 1, NULL }, - { "GetFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectSimple_GetFormat, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectSimple_SetData, 1, NULL }, - { "SetFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectSimple_SetFormat, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataObjectSimple_delete, 1, NULL }, - { "wxDataObjectSimple", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataObjectSimple_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataObjectSimple_methodCount = sizeof(wxDataObjectSimple_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxLuaDataObjectSimple -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaDataObjectSimple' -int wxluatype_wxLuaDataObjectSimple = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDataObjectSimple_delete[] = { &wxluatype_wxLuaDataObjectSimple, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDataObjectSimple_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaDataObjectSimple_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDataObjectSimple_constructor[] = { &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxLuaDataObjectSimple_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDataObjectSimple_constructor[1] = {{ wxLua_wxLuaDataObjectSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxLuaDataObjectSimple_constructor }}; -// %override wxLua_wxLuaDataObjectSimple_constructor -// wxLuaDataObjectSimple(const wxDataFormat& format = wxFormatInvalid) -static int LUACALL wxLua_wxLuaDataObjectSimple_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // get number of arguments - int argCount = lua_gettop(L); - // const wxDataFormat format = wxFormatInvalid - const wxDataFormat * format = (argCount >= 1 ? (const wxDataFormat *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataFormat) : &wxFormatInvalid); - // call constructor - wxLuaDataObjectSimple* returns = new wxLuaDataObjectSimple(wxlState, *format); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaDataObjectSimple); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaDataObjectSimple); - - return 1; -} - - - - - -void wxLua_wxLuaDataObjectSimple_delete_function(void** p) -{ - wxLuaDataObjectSimple* o = (wxLuaDataObjectSimple*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaDataObjectSimple_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaDataObjectSimple_delete, 1, NULL }, - { "wxLuaDataObjectSimple", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaDataObjectSimple_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaDataObjectSimple_methodCount = sizeof(wxLuaDataObjectSimple_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxDataObjectComposite -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDataObjectComposite' -int wxluatype_wxDataObjectComposite = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectComposite_Add[] = { &wxluatype_wxDataObjectComposite, &wxluatype_wxDataObjectSimple, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDataObjectComposite_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectComposite_Add[1] = {{ wxLua_wxDataObjectComposite_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDataObjectComposite_Add }}; -// void Add(%ungc wxDataObjectSimple *dataObject, bool preferred = false); -static int LUACALL wxLua_wxDataObjectComposite_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool preferred = false - bool preferred = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxDataObjectSimple dataObject - wxDataObjectSimple * dataObject = (wxDataObjectSimple *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObjectSimple); - if (wxluaO_isgcobject(L, dataObject)) wxluaO_undeletegcobject(L, dataObject); - // get this - wxDataObjectComposite * self = (wxDataObjectComposite *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectComposite); - // call Add - self->Add(dataObject, preferred); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectComposite_GetObject[] = { &wxluatype_wxDataObjectComposite, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxDataObjectComposite_GetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectComposite_GetObject[1] = {{ wxLua_wxDataObjectComposite_GetObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDataObjectComposite_GetObject }}; -// wxDataObjectSimple *GetObject(const wxDataFormat& format /*, wxDataObject::Direction dir = Get*/) const; -static int LUACALL wxLua_wxDataObjectComposite_GetObject(lua_State *L) -{ - // const wxDataFormat format - const wxDataFormat * format = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxDataObjectComposite * self = (wxDataObjectComposite *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectComposite); - // call GetObject - wxDataObjectSimple* returns = (wxDataObjectSimple*)self->GetObject(*format); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectSimple); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectComposite_GetReceivedFormat[] = { &wxluatype_wxDataObjectComposite, NULL }; -static int LUACALL wxLua_wxDataObjectComposite_GetReceivedFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectComposite_GetReceivedFormat[1] = {{ wxLua_wxDataObjectComposite_GetReceivedFormat, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDataObjectComposite_GetReceivedFormat }}; -// %wxchkver_2_8 wxDataFormat GetReceivedFormat() const; -static int LUACALL wxLua_wxDataObjectComposite_GetReceivedFormat(lua_State *L) -{ - // get this - wxDataObjectComposite * self = (wxDataObjectComposite *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObjectComposite); - // call GetReceivedFormat - // allocate a new object using the copy constructor - wxDataFormat* returns = new wxDataFormat(self->GetReceivedFormat()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDataObjectComposite_delete[] = { &wxluatype_wxDataObjectComposite, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectComposite_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDataObjectComposite_delete }}; - -static int LUACALL wxLua_wxDataObjectComposite_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDataObjectComposite_constructor[1] = {{ wxLua_wxDataObjectComposite_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDataObjectComposite(); -static int LUACALL wxLua_wxDataObjectComposite_constructor(lua_State *L) -{ - // call constructor - wxDataObjectComposite* returns = new wxDataObjectComposite(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataObjectComposite); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObjectComposite); - - return 1; -} - - - - -void wxLua_wxDataObjectComposite_delete_function(void** p) -{ - wxDataObjectComposite* o = (wxDataObjectComposite*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDataObjectComposite_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectComposite_Add, 1, NULL }, - { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectComposite_GetObject, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "GetReceivedFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDataObjectComposite_GetReceivedFormat, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDataObjectComposite_delete, 1, NULL }, - { "wxDataObjectComposite", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDataObjectComposite_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDataObjectComposite_methodCount = sizeof(wxDataObjectComposite_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxFileDataObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileDataObject' -int wxluatype_wxFileDataObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDataObject_AddFile[] = { &wxluatype_wxFileDataObject, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDataObject_AddFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDataObject_AddFile[1] = {{ wxLua_wxFileDataObject_AddFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDataObject_AddFile }}; -// virtual void AddFile(const wxString& file); -static int LUACALL wxLua_wxFileDataObject_AddFile(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxFileDataObject * self = (wxFileDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDataObject); - // call AddFile - self->AddFile(file); - - return 0; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDataObject_GetFilenames[] = { &wxluatype_wxFileDataObject, NULL }; -static int LUACALL wxLua_wxFileDataObject_GetFilenames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDataObject_GetFilenames[1] = {{ wxLua_wxFileDataObject_GetFilenames, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDataObject_GetFilenames }}; -// wxArrayString GetFilenames() const; -static int LUACALL wxLua_wxFileDataObject_GetFilenames(lua_State *L) -{ - // get this - wxFileDataObject * self = (wxFileDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDataObject); - // call GetFilenames - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetFilenames()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDataObject_delete[] = { &wxluatype_wxFileDataObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDataObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileDataObject_delete }}; - -static int LUACALL wxLua_wxFileDataObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDataObject_constructor[1] = {{ wxLua_wxFileDataObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFileDataObject(); -static int LUACALL wxLua_wxFileDataObject_constructor(lua_State *L) -{ - // call constructor - wxFileDataObject* returns = new wxFileDataObject(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileDataObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileDataObject); - - return 1; -} - - - - -void wxLua_wxFileDataObject_delete_function(void** p) -{ - wxFileDataObject* o = (wxFileDataObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileDataObject_methods[] = { - { "AddFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDataObject_AddFile, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "GetFilenames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDataObject_GetFilenames, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileDataObject_delete, 1, NULL }, - { "wxFileDataObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileDataObject_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileDataObject_methodCount = sizeof(wxFileDataObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxTextDataObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextDataObject' -int wxluatype_wxTextDataObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextDataObject_GetText[] = { &wxluatype_wxTextDataObject, NULL }; -static int LUACALL wxLua_wxTextDataObject_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextDataObject_GetText[1] = {{ wxLua_wxTextDataObject_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextDataObject_GetText }}; -// virtual wxString GetText() const; -static int LUACALL wxLua_wxTextDataObject_GetText(lua_State *L) -{ - // get this - wxTextDataObject * self = (wxTextDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextDataObject); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextDataObject_GetTextLength[] = { &wxluatype_wxTextDataObject, NULL }; -static int LUACALL wxLua_wxTextDataObject_GetTextLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextDataObject_GetTextLength[1] = {{ wxLua_wxTextDataObject_GetTextLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextDataObject_GetTextLength }}; -// virtual size_t GetTextLength() const; -static int LUACALL wxLua_wxTextDataObject_GetTextLength(lua_State *L) -{ - // get this - wxTextDataObject * self = (wxTextDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextDataObject); - // call GetTextLength - size_t returns = (self->GetTextLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextDataObject_SetText[] = { &wxluatype_wxTextDataObject, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextDataObject_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextDataObject_SetText[1] = {{ wxLua_wxTextDataObject_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextDataObject_SetText }}; -// virtual void SetText(const wxString& text); -static int LUACALL wxLua_wxTextDataObject_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTextDataObject * self = (wxTextDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextDataObject); - // call SetText - self->SetText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextDataObject_delete[] = { &wxluatype_wxTextDataObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextDataObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextDataObject_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextDataObject_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextDataObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextDataObject_constructor[1] = {{ wxLua_wxTextDataObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxTextDataObject_constructor }}; -// wxTextDataObject(const wxString& text = ""); -static int LUACALL wxLua_wxTextDataObject_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString text = "" - const wxString text = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxTextDataObject* returns = new wxTextDataObject(text); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextDataObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextDataObject); - - return 1; -} - - - - -void wxLua_wxTextDataObject_delete_function(void** p) -{ - wxTextDataObject* o = (wxTextDataObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextDataObject_methods[] = { - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextDataObject_GetText, 1, NULL }, - { "GetTextLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextDataObject_GetTextLength, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextDataObject_SetText, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextDataObject_delete, 1, NULL }, - { "wxTextDataObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextDataObject_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextDataObject_methodCount = sizeof(wxTextDataObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if wxLUA_USE_wxDataObject && wxUSE_DATAOBJ -// --------------------------------------------------------------------------- -// Bind class wxBitmapDataObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBitmapDataObject' -int wxluatype_wxBitmapDataObject = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapDataObject_GetBitmap[] = { &wxluatype_wxBitmapDataObject, NULL }; -static int LUACALL wxLua_wxBitmapDataObject_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapDataObject_GetBitmap[1] = {{ wxLua_wxBitmapDataObject_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapDataObject_GetBitmap }}; -// virtual wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxBitmapDataObject_GetBitmap(lua_State *L) -{ - // get this - wxBitmapDataObject * self = (wxBitmapDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapDataObject); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapDataObject_SetBitmap[] = { &wxluatype_wxBitmapDataObject, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapDataObject_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapDataObject_SetBitmap[1] = {{ wxLua_wxBitmapDataObject_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapDataObject_SetBitmap }}; -// virtual void SetBitmap(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmapDataObject_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmapDataObject * self = (wxBitmapDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapDataObject); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapDataObject_delete[] = { &wxluatype_wxBitmapDataObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapDataObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBitmapDataObject_delete }}; - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapDataObject_constructor[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapDataObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapDataObject_constructor[1] = {{ wxLua_wxBitmapDataObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxBitmapDataObject_constructor }}; -// wxBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap); -static int LUACALL wxLua_wxBitmapDataObject_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 1 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap) : &wxNullBitmap); - // call constructor - wxBitmapDataObject* returns = new wxBitmapDataObject(*bitmap); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmapDataObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapDataObject); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - - -void wxLua_wxBitmapDataObject_delete_function(void** p) -{ - wxBitmapDataObject* o = (wxBitmapDataObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBitmapDataObject_methods[] = { -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapDataObject_GetBitmap, 1, NULL }, - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapDataObject_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBitmapDataObject_delete, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "wxBitmapDataObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBitmapDataObject_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - { 0, 0, 0, 0 }, -}; - -int wxBitmapDataObject_methodCount = sizeof(wxBitmapDataObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDataObject && wxUSE_DATAOBJ - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -// --------------------------------------------------------------------------- -// Bind class wxURLDataObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxURLDataObject' -int wxluatype_wxURLDataObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURLDataObject_GetURL[] = { &wxluatype_wxURLDataObject, NULL }; -static int LUACALL wxLua_wxURLDataObject_GetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURLDataObject_GetURL[1] = {{ wxLua_wxURLDataObject_GetURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURLDataObject_GetURL }}; -// wxString GetURL() const; -static int LUACALL wxLua_wxURLDataObject_GetURL(lua_State *L) -{ - // get this - wxURLDataObject * self = (wxURLDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURLDataObject); - // call GetURL - wxString returns = (self->GetURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURLDataObject_SetURL[] = { &wxluatype_wxURLDataObject, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURLDataObject_SetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURLDataObject_SetURL[1] = {{ wxLua_wxURLDataObject_SetURL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURLDataObject_SetURL }}; -// void SetURL(const wxString& url); -static int LUACALL wxLua_wxURLDataObject_SetURL(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxURLDataObject * self = (wxURLDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURLDataObject); - // call SetURL - self->SetURL(url); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURLDataObject_delete[] = { &wxluatype_wxURLDataObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURLDataObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxURLDataObject_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURLDataObject_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURLDataObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURLDataObject_constructor[1] = {{ wxLua_wxURLDataObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxURLDataObject_constructor }}; -// wxURLDataObject(const wxString& url = ""); -static int LUACALL wxLua_wxURLDataObject_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString url = "" - const wxString url = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxURLDataObject* returns = new wxURLDataObject(url); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxURLDataObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURLDataObject); - - return 1; -} - - - - -void wxLua_wxURLDataObject_delete_function(void** p) -{ - wxURLDataObject* o = (wxURLDataObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxURLDataObject_methods[] = { - { "GetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURLDataObject_GetURL, 1, NULL }, - { "SetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURLDataObject_SetURL, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxURLDataObject_delete, 1, NULL }, - { "wxURLDataObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxURLDataObject_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxURLDataObject_methodCount = sizeof(wxURLDataObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDropTarget' -int wxluatype_wxDropTarget = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropTarget_GetData[] = { &wxluatype_wxDropTarget, NULL }; -static int LUACALL wxLua_wxDropTarget_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropTarget_GetData[1] = {{ wxLua_wxDropTarget_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropTarget_GetData }}; -// virtual bool GetData(); -static int LUACALL wxLua_wxDropTarget_GetData(lua_State *L) -{ - // get this - wxDropTarget * self = (wxDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropTarget); - // call GetData - bool returns = (self->GetData()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropTarget_GetDataObject[] = { &wxluatype_wxDropTarget, NULL }; -static int LUACALL wxLua_wxDropTarget_GetDataObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropTarget_GetDataObject[1] = {{ wxLua_wxDropTarget_GetDataObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropTarget_GetDataObject }}; -// wxDataObject *GetDataObject() const; -static int LUACALL wxLua_wxDropTarget_GetDataObject(lua_State *L) -{ - // get this - wxDropTarget * self = (wxDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropTarget); - // call GetDataObject - wxDataObject* returns = (wxDataObject*)self->GetDataObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObject); - - return 1; -} - -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropTarget_GetDefaultAction[] = { &wxluatype_wxDropTarget, NULL }; -static int LUACALL wxLua_wxDropTarget_GetDefaultAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropTarget_GetDefaultAction[1] = {{ wxLua_wxDropTarget_GetDefaultAction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropTarget_GetDefaultAction }}; -// wxDragResult GetDefaultAction(); -static int LUACALL wxLua_wxDropTarget_GetDefaultAction(lua_State *L) -{ - // get this - wxDropTarget * self = (wxDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropTarget); - // call GetDefaultAction - wxDragResult returns = (self->GetDefaultAction()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropTarget_SetDataObject[] = { &wxluatype_wxDropTarget, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxDropTarget_SetDataObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropTarget_SetDataObject[1] = {{ wxLua_wxDropTarget_SetDataObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDropTarget_SetDataObject }}; -// void SetDataObject(%ungc wxDataObject* data); -static int LUACALL wxLua_wxDropTarget_SetDataObject(lua_State *L) -{ - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObject); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxDropTarget * self = (wxDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropTarget); - // call SetDataObject - self->SetDataObject(data); - - return 0; -} - -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropTarget_SetDefaultAction[] = { &wxluatype_wxDropTarget, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDropTarget_SetDefaultAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropTarget_SetDefaultAction[1] = {{ wxLua_wxDropTarget_SetDefaultAction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDropTarget_SetDefaultAction }}; -// void SetDefaultAction(wxDragResult action); -static int LUACALL wxLua_wxDropTarget_SetDefaultAction(lua_State *L) -{ - // wxDragResult action - wxDragResult action = (wxDragResult)wxlua_getenumtype(L, 2); - // get this - wxDropTarget * self = (wxDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropTarget); - // call SetDefaultAction - self->SetDefaultAction(action); - - return 0; -} - - - - -void wxLua_wxDropTarget_delete_function(void** p) -{ - wxDropTarget* o = (wxDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDropTarget_methods[] = { - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropTarget_GetData, 1, NULL }, - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "GetDataObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropTarget_GetDataObject, 1, NULL }, -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "GetDefaultAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropTarget_GetDefaultAction, 1, NULL }, - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "SetDataObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropTarget_SetDataObject, 1, NULL }, -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "SetDefaultAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropTarget_SetDefaultAction, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDropTarget_methodCount = sizeof(wxDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxFileDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileDropTarget' -int wxluatype_wxFileDropTarget = WXLUA_TUNKNOWN; - - - -void wxLua_wxFileDropTarget_delete_function(void** p) -{ - wxFileDropTarget* o = (wxFileDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileDropTarget_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxFileDropTarget_methodCount = sizeof(wxFileDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxLuaFileDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaFileDropTarget' -int wxluatype_wxLuaFileDropTarget = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaFileDropTarget_OnData[] = { &wxluatype_wxLuaFileDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLuaFileDropTarget_OnData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaFileDropTarget_OnData[1] = {{ wxLua_wxLuaFileDropTarget_OnData, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaFileDropTarget_OnData }}; -// virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); -static int LUACALL wxLua_wxLuaFileDropTarget_OnData(lua_State *L) -{ - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaFileDropTarget * self = (wxLuaFileDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaFileDropTarget); - // call OnData - wxDragResult returns = (self->OnData(x, y, def)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaFileDropTarget_OnDropFiles[] = { &wxluatype_wxLuaFileDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxLuaFileDropTarget_OnDropFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaFileDropTarget_OnDropFiles[1] = {{ wxLua_wxLuaFileDropTarget_OnDropFiles, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaFileDropTarget_OnDropFiles }}; -// virtual bool OnDropFiles(wxCoord x, wxCoord y,const wxArrayString& filenames); -static int LUACALL wxLua_wxLuaFileDropTarget_OnDropFiles(lua_State *L) -{ - // const wxArrayString filenames - wxLuaSmartwxArrayString filenames = wxlua_getwxArrayString(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaFileDropTarget * self = (wxLuaFileDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaFileDropTarget); - // call OnDropFiles - bool returns = (self->OnDropFiles(x, y, filenames)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static int LUACALL wxLua_wxLuaFileDropTarget_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaFileDropTarget_constructor[1] = {{ wxLua_wxLuaFileDropTarget_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxLuaFileDropTarget_constructor -// wxLuaFileDropTarget() -static int LUACALL wxLua_wxLuaFileDropTarget_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // call constructor - wxLuaFileDropTarget* returns = new wxLuaFileDropTarget(wxlState); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaFileDropTarget); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaFileDropTarget); - - return 1; -} - - - - - -void wxLua_wxLuaFileDropTarget_delete_function(void** p) -{ - wxLuaFileDropTarget* o = (wxLuaFileDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaFileDropTarget_methods[] = { - { "OnData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaFileDropTarget_OnData, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "OnDropFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaFileDropTarget_OnDropFiles, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "wxLuaFileDropTarget", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaFileDropTarget_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaFileDropTarget_methodCount = sizeof(wxLuaFileDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxTextDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextDropTarget' -int wxluatype_wxTextDropTarget = WXLUA_TUNKNOWN; - - - -void wxLua_wxTextDropTarget_delete_function(void** p) -{ - wxTextDropTarget* o = (wxTextDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextDropTarget_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxTextDropTarget_methodCount = sizeof(wxTextDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxLuaTextDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaTextDropTarget' -int wxluatype_wxLuaTextDropTarget = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnData[] = { &wxluatype_wxLuaTextDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLuaTextDropTarget_OnData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTextDropTarget_OnData[1] = {{ wxLua_wxLuaTextDropTarget_OnData, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnData }}; -// virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); -static int LUACALL wxLua_wxLuaTextDropTarget_OnData(lua_State *L) -{ - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaTextDropTarget * self = (wxLuaTextDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTextDropTarget); - // call OnData - wxDragResult returns = (self->OnData(x, y, def)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnDragOver[] = { &wxluatype_wxLuaTextDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLuaTextDropTarget_OnDragOver(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTextDropTarget_OnDragOver[1] = {{ wxLua_wxLuaTextDropTarget_OnDragOver, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnDragOver }}; -// virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def); -static int LUACALL wxLua_wxLuaTextDropTarget_OnDragOver(lua_State *L) -{ - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaTextDropTarget * self = (wxLuaTextDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTextDropTarget); - // call OnDragOver - wxDragResult returns = (self->OnDragOver(x, y, def)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnDropText[] = { &wxluatype_wxLuaTextDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaTextDropTarget_OnDropText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTextDropTarget_OnDropText[1] = {{ wxLua_wxLuaTextDropTarget_OnDropText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnDropText }}; -// virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& text); -static int LUACALL wxLua_wxLuaTextDropTarget_OnDropText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaTextDropTarget * self = (wxLuaTextDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTextDropTarget); - // call OnDropText - bool returns = (self->OnDropText(x, y, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnEnter[] = { &wxluatype_wxLuaTextDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLuaTextDropTarget_OnEnter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTextDropTarget_OnEnter[1] = {{ wxLua_wxLuaTextDropTarget_OnEnter, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnEnter }}; -// virtual wxDragResult OnEnter(wxCoord x, wxCoord y, wxDragResult def); -static int LUACALL wxLua_wxLuaTextDropTarget_OnEnter(lua_State *L) -{ - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaTextDropTarget * self = (wxLuaTextDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTextDropTarget); - // call OnEnter - wxDragResult returns = (self->OnEnter(x, y, def)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnLeave[] = { &wxluatype_wxLuaTextDropTarget, NULL }; -static int LUACALL wxLua_wxLuaTextDropTarget_OnLeave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTextDropTarget_OnLeave[1] = {{ wxLua_wxLuaTextDropTarget_OnLeave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaTextDropTarget_OnLeave }}; -// virtual void OnLeave(); -static int LUACALL wxLua_wxLuaTextDropTarget_OnLeave(lua_State *L) -{ - // get this - wxLuaTextDropTarget * self = (wxLuaTextDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTextDropTarget); - // call OnLeave - self->OnLeave(); - - return 0; -} - -static int LUACALL wxLua_wxLuaTextDropTarget_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTextDropTarget_constructor[1] = {{ wxLua_wxLuaTextDropTarget_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxLuaTextDropTarget_constructor -// wxLuaTextDropTarget() -static int LUACALL wxLua_wxLuaTextDropTarget_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // call constructor - wxLuaTextDropTarget* returns = new wxLuaTextDropTarget(wxlState); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaTextDropTarget); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaTextDropTarget); - - return 1; -} - - - - - -void wxLua_wxLuaTextDropTarget_delete_function(void** p) -{ - wxLuaTextDropTarget* o = (wxLuaTextDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaTextDropTarget_methods[] = { - { "OnData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTextDropTarget_OnData, 1, NULL }, - { "OnDragOver", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTextDropTarget_OnDragOver, 1, NULL }, - { "OnDropText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTextDropTarget_OnDropText, 1, NULL }, - { "OnEnter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTextDropTarget_OnEnter, 1, NULL }, - { "OnLeave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTextDropTarget_OnLeave, 1, NULL }, - { "wxLuaTextDropTarget", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaTextDropTarget_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaTextDropTarget_methodCount = sizeof(wxLuaTextDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxLuaURLDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaURLDropTarget' -int wxluatype_wxLuaURLDropTarget = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaURLDropTarget_OnData[] = { &wxluatype_wxLuaURLDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxLuaURLDropTarget_OnData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaURLDropTarget_OnData[1] = {{ wxLua_wxLuaURLDropTarget_OnData, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaURLDropTarget_OnData }}; -// virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); -static int LUACALL wxLua_wxLuaURLDropTarget_OnData(lua_State *L) -{ - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaURLDropTarget * self = (wxLuaURLDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaURLDropTarget); - // call OnData - wxDragResult returns = (self->OnData(x, y, def)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaURLDropTarget_OnDropURL[] = { &wxluatype_wxLuaURLDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaURLDropTarget_OnDropURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaURLDropTarget_OnDropURL[1] = {{ wxLua_wxLuaURLDropTarget_OnDropURL, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaURLDropTarget_OnDropURL }}; -// virtual bool OnDropURL(wxCoord x, wxCoord y, const wxString& text); -static int LUACALL wxLua_wxLuaURLDropTarget_OnDropURL(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxLuaURLDropTarget * self = (wxLuaURLDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaURLDropTarget); - // call OnDropURL - bool returns = (self->OnDropURL(x, y, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxLuaURLDropTarget_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaURLDropTarget_constructor[1] = {{ wxLua_wxLuaURLDropTarget_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxLuaURLDropTarget_constructor -// wxLuaTextDropTarget() -static int LUACALL wxLua_wxLuaURLDropTarget_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // call constructor - wxLuaURLDropTarget* returns = new wxLuaURLDropTarget(wxlState); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaURLDropTarget); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaURLDropTarget); - - return 1; -} - - - - - -void wxLua_wxLuaURLDropTarget_delete_function(void** p) -{ - wxLuaURLDropTarget* o = (wxLuaURLDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaURLDropTarget_methods[] = { - { "OnData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaURLDropTarget_OnData, 1, NULL }, - { "OnDropURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaURLDropTarget_OnDropURL, 1, NULL }, - { "wxLuaURLDropTarget", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaURLDropTarget_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaURLDropTarget_methodCount = sizeof(wxLuaURLDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxDropSource -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDropSource' -int wxluatype_wxDropSource = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_DoDragDrop[] = { &wxluatype_wxDropSource, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDropSource_DoDragDrop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_DoDragDrop[1] = {{ wxLua_wxDropSource_DoDragDrop, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDropSource_DoDragDrop }}; -// virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly); -static int LUACALL wxLua_wxDropSource_DoDragDrop(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxDrag_CopyOnly - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxDrag_CopyOnly); - // get this - wxDropSource * self = (wxDropSource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropSource); - // call DoDragDrop - wxDragResult returns = (self->DoDragDrop(flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_GetDataObject[] = { &wxluatype_wxDropSource, NULL }; -static int LUACALL wxLua_wxDropSource_GetDataObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_GetDataObject[1] = {{ wxLua_wxDropSource_GetDataObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropSource_GetDataObject }}; -// wxDataObject* GetDataObject(); -static int LUACALL wxLua_wxDropSource_GetDataObject(lua_State *L) -{ - // get this - wxDropSource * self = (wxDropSource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropSource); - // call GetDataObject - wxDataObject* returns = (wxDataObject*)self->GetDataObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataObject); - - return 1; -} - -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_GiveFeedback[] = { &wxluatype_wxDropSource, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDropSource_GiveFeedback(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_GiveFeedback[1] = {{ wxLua_wxDropSource_GiveFeedback, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDropSource_GiveFeedback }}; -// virtual bool GiveFeedback(wxDragResult effect); -static int LUACALL wxLua_wxDropSource_GiveFeedback(lua_State *L) -{ - // wxDragResult effect - wxDragResult effect = (wxDragResult)wxlua_getenumtype(L, 2); - // get this - wxDropSource * self = (wxDropSource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropSource); - // call GiveFeedback - bool returns = (self->GiveFeedback(effect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_SetCursor[] = { &wxluatype_wxDropSource, &wxluatype_TINTEGER, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxDropSource_SetCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_SetCursor[1] = {{ wxLua_wxDropSource_SetCursor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDropSource_SetCursor }}; -// void SetCursor(wxDragResult res, const wxCursor& cursor); -static int LUACALL wxLua_wxDropSource_SetCursor(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 3, wxluatype_wxCursor); - // wxDragResult res - wxDragResult res = (wxDragResult)wxlua_getenumtype(L, 2); - // get this - wxDropSource * self = (wxDropSource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropSource); - // call SetCursor - self->SetCursor(res, *cursor); - - return 0; -} - -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_SetData[] = { &wxluatype_wxDropSource, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxDropSource_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_SetData[1] = {{ wxLua_wxDropSource_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDropSource_SetData }}; -// void SetData(wxDataObject& data); -static int LUACALL wxLua_wxDropSource_SetData(lua_State *L) -{ - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataObject); - // get this - wxDropSource * self = (wxDropSource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropSource); - // call SetData - self->SetData(*data); - - return 0; -} - -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_delete[] = { &wxluatype_wxDropSource, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDropSource_delete }}; - - -#if ((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_constructor3[] = { &wxluatype_wxDataObject, &wxluatype_wxWindow, &wxluatype_wxIcon, &wxluatype_wxIcon, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDropSource_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_constructor3[1] = {{ wxLua_wxDropSource_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxDropSource_constructor3 }}; -// %gtk wxDropSource(wxDataObject& data, wxWindow* win = NULL, const wxIcon& iconCopy = wxNullIcon, const wxIcon& iconMove = wxNullIcon, const wxIcon& iconStop = wxNullIcon); -static int LUACALL wxLua_wxDropSource_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxIcon iconStop = wxNullIcon - const wxIcon * iconStop = (argCount >= 5 ? (const wxIcon *)wxluaT_getuserdatatype(L, 5, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon iconMove = wxNullIcon - const wxIcon * iconMove = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon iconCopy = wxNullIcon - const wxIcon * iconCopy = (argCount >= 3 ? (const wxIcon *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIcon) : &wxNullIcon); - // wxWindow win = NULL - wxWindow * win = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call constructor - wxDropSource* returns = new wxDropSource(*data, win, *iconCopy, *iconMove, *iconStop); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); - - return 1; -} - -#endif // ((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) - -#if ((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_constructor2[] = { &wxluatype_wxDataObject, &wxluatype_wxWindow, &wxluatype_wxCursor, &wxluatype_wxCursor, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxDropSource_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_constructor2[1] = {{ wxLua_wxDropSource_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxDropSource_constructor2 }}; -// %win wxDropSource(wxDataObject& data, wxWindow* win = NULL, const wxCursor& cursorCopy = wxNullCursor, const wxCursor& cursorMove = wxNullCursor, const wxCursor& cursorStop = wxNullCursor); -static int LUACALL wxLua_wxDropSource_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxCursor cursorStop = wxNullCursor - const wxCursor * cursorStop = (argCount >= 5 ? (const wxCursor *)wxluaT_getuserdatatype(L, 5, wxluatype_wxCursor) : &wxNullCursor); - // const wxCursor cursorMove = wxNullCursor - const wxCursor * cursorMove = (argCount >= 4 ? (const wxCursor *)wxluaT_getuserdatatype(L, 4, wxluatype_wxCursor) : &wxNullCursor); - // const wxCursor cursorCopy = wxNullCursor - const wxCursor * cursorCopy = (argCount >= 3 ? (const wxCursor *)wxluaT_getuserdatatype(L, 3, wxluatype_wxCursor) : &wxNullCursor); - // wxWindow win = NULL - wxWindow * win = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call constructor - wxDropSource* returns = new wxDropSource(*data, win, *cursorCopy, *cursorMove, *cursorStop); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); - - return 1; -} - -#endif // ((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -#if (((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_constructor1[] = { &wxluatype_wxWindow, &wxluatype_wxIcon, &wxluatype_wxIcon, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxDropSource_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_constructor1[1] = {{ wxLua_wxDropSource_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxDropSource_constructor1 }}; -// %gtk wxDropSource(wxWindow* win = NULL, const wxIcon& iconCopy = wxNullIcon, const wxIcon& iconMove = wxNullIcon, const wxIcon& iconStop = wxNullIcon); -static int LUACALL wxLua_wxDropSource_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxIcon iconStop = wxNullIcon - const wxIcon * iconStop = (argCount >= 4 ? (const wxIcon *)wxluaT_getuserdatatype(L, 4, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon iconMove = wxNullIcon - const wxIcon * iconMove = (argCount >= 3 ? (const wxIcon *)wxluaT_getuserdatatype(L, 3, wxluatype_wxIcon) : &wxNullIcon); - // const wxIcon iconCopy = wxNullIcon - const wxIcon * iconCopy = (argCount >= 2 ? (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon) : &wxNullIcon); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxDropSource* returns = new wxDropSource(win, *iconCopy, *iconMove, *iconStop); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); - - return 1; -} - -#endif // (((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropSource_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxCursor, &wxluatype_wxCursor, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxDropSource_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_constructor[1] = {{ wxLua_wxDropSource_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxDropSource_constructor }}; -// %win|%mac wxDropSource(wxWindow* win = NULL, const wxCursor& cursorCopy = wxNullCursor, const wxCursor& cursorMove = wxNullCursor, const wxCursor& cursorStop = wxNullCursor); -static int LUACALL wxLua_wxDropSource_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxCursor cursorStop = wxNullCursor - const wxCursor * cursorStop = (argCount >= 4 ? (const wxCursor *)wxluaT_getuserdatatype(L, 4, wxluatype_wxCursor) : &wxNullCursor); - // const wxCursor cursorMove = wxNullCursor - const wxCursor * cursorMove = (argCount >= 3 ? (const wxCursor *)wxluaT_getuserdatatype(L, 3, wxluatype_wxCursor) : &wxNullCursor); - // const wxCursor cursorCopy = wxNullCursor - const wxCursor * cursorCopy = (argCount >= 2 ? (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor) : &wxNullCursor); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxDropSource* returns = new wxDropSource(win, *cursorCopy, *cursorMove, *cursorStop); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDropSource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropSource); - - return 1; -} - -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - - -#if (((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||(((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP))||((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropSource_constructor_overload[] = -{ - -#if ((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) - { wxLua_wxDropSource_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxDropSource_constructor3 }, -#endif // ((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) - -#if ((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { wxLua_wxDropSource_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxDropSource_constructor2 }, -#endif // ((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -#if (((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) - { wxLua_wxDropSource_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxDropSource_constructor1 }, -#endif // (((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon) - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { wxLua_wxDropSource_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxDropSource_constructor }, -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -}; -static int s_wxluafunc_wxLua_wxDropSource_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDropSource_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||(((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP))||((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) - -void wxLua_wxDropSource_delete_function(void** p) -{ - wxDropSource* o = (wxDropSource*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDropSource_methods[] = { - { "DoDragDrop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropSource_DoDragDrop, 1, NULL }, - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "GetDataObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropSource_GetDataObject, 1, NULL }, -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "GiveFeedback", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropSource_GiveFeedback, 1, NULL }, - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "SetCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropSource_SetCursor, 1, NULL }, -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -#if (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropSource_SetData, 1, NULL }, -#endif // (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDropSource_delete, 1, NULL }, - -#if (((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||(((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP))||((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) - { "wxDropSource", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDropSource_constructor_overload, s_wxluafunc_wxLua_wxDropSource_constructor_overload_count, 0 }, -#endif // (((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||(((((defined(__WXMSW__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP))||((((defined(__WXGTK__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxIcon))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP)) - - { 0, 0, 0, 0 }, -}; - -int wxDropSource_methodCount = sizeof(wxDropSource_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -// --------------------------------------------------------------------------- -// Bind class wxDropFilesEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDropFilesEvent' -int wxluatype_wxDropFilesEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropFilesEvent_GetFiles[] = { &wxluatype_wxDropFilesEvent, NULL }; -static int LUACALL wxLua_wxDropFilesEvent_GetFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropFilesEvent_GetFiles[1] = {{ wxLua_wxDropFilesEvent_GetFiles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropFilesEvent_GetFiles }}; -// %override wxLua_wxDropFilesEvent_GetFiles -// wxString* GetFiles() const -static int LUACALL wxLua_wxDropFilesEvent_GetFiles(lua_State *L) -{ - // get this - wxDropFilesEvent *self = (wxDropFilesEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropFilesEvent); - // call GetFiles - int numFiles = self->GetNumberOfFiles(); - wxString *files = self->GetFiles(); - - lua_newtable(L); - - int idx; - for (idx = 0; idx < numFiles; ++idx) - { - wxlua_pushwxString(L, files[idx]); - lua_rawseti(L, -2, idx + 1); - } - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropFilesEvent_GetNumberOfFiles[] = { &wxluatype_wxDropFilesEvent, NULL }; -static int LUACALL wxLua_wxDropFilesEvent_GetNumberOfFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropFilesEvent_GetNumberOfFiles[1] = {{ wxLua_wxDropFilesEvent_GetNumberOfFiles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropFilesEvent_GetNumberOfFiles }}; -// int GetNumberOfFiles() const; -static int LUACALL wxLua_wxDropFilesEvent_GetNumberOfFiles(lua_State *L) -{ - // get this - wxDropFilesEvent * self = (wxDropFilesEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropFilesEvent); - // call GetNumberOfFiles - int returns = (self->GetNumberOfFiles()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropFilesEvent_GetPosition[] = { &wxluatype_wxDropFilesEvent, NULL }; -static int LUACALL wxLua_wxDropFilesEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropFilesEvent_GetPosition[1] = {{ wxLua_wxDropFilesEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDropFilesEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxDropFilesEvent_GetPosition(lua_State *L) -{ - // get this - wxDropFilesEvent * self = (wxDropFilesEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDropFilesEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDropFilesEvent_delete[] = { &wxluatype_wxDropFilesEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDropFilesEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDropFilesEvent_delete }}; - - - - -void wxLua_wxDropFilesEvent_delete_function(void** p) -{ - wxDropFilesEvent* o = (wxDropFilesEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDropFilesEvent_methods[] = { - { "GetFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropFilesEvent_GetFiles, 1, NULL }, - { "GetNumberOfFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropFilesEvent_GetNumberOfFiles, 1, NULL }, - -#if (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDropFilesEvent_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDropFilesEvent_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDropFilesEvent_methodCount = sizeof(wxDropFilesEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - -#if wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) -// --------------------------------------------------------------------------- -// Bind class wxMetafile -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMetafile' -int wxluatype_wxMetafile = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafile_Ok[] = { &wxluatype_wxMetafile, NULL }; -static int LUACALL wxLua_wxMetafile_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafile_Ok[1] = {{ wxLua_wxMetafile_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMetafile_Ok }}; -// bool Ok(); -static int LUACALL wxLua_wxMetafile_Ok(lua_State *L) -{ - // get this - wxMetafile * self = (wxMetafile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMetafile); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafile_Play[] = { &wxluatype_wxMetafile, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxMetafile_Play(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafile_Play[1] = {{ wxLua_wxMetafile_Play, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMetafile_Play }}; -// bool Play(wxDC *dc); -static int LUACALL wxLua_wxMetafile_Play(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxMetafile * self = (wxMetafile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMetafile); - // call Play - bool returns = (self->Play(dc)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafile_SetClipboard[] = { &wxluatype_wxMetafile, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMetafile_SetClipboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafile_SetClipboard[1] = {{ wxLua_wxMetafile_SetClipboard, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxMetafile_SetClipboard }}; -// bool SetClipboard(int width = 0, int height = 0); -static int LUACALL wxLua_wxMetafile_SetClipboard(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int height = 0 - int height = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int width = 0 - int width = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxMetafile * self = (wxMetafile *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMetafile); - // call SetClipboard - bool returns = (self->SetClipboard(width, height)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafile_delete[] = { &wxluatype_wxMetafile, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafile_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMetafile_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafile_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMetafile_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafile_constructor[1] = {{ wxLua_wxMetafile_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMetafile_constructor }}; -// wxMetafile(const wxString& filename = ""); -static int LUACALL wxLua_wxMetafile_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString filename = "" - const wxString filename = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxMetafile* returns = new wxMetafile(filename); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMetafile); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafile); - - return 1; -} - - - - -void wxLua_wxMetafile_delete_function(void** p) -{ - wxMetafile* o = (wxMetafile*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMetafile_methods[] = { - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMetafile_Ok, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) - { "Play", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMetafile_Play, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) - - { "SetClipboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMetafile_SetClipboard, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMetafile_delete, 1, NULL }, - { "wxMetafile", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMetafile_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMetafile_methodCount = sizeof(wxMetafile_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - - -#if wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) -// --------------------------------------------------------------------------- -// Bind class wxMetafileDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMetafileDC' -int wxluatype_wxMetafileDC = WXLUA_TUNKNOWN; - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)))) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafileDC_Close[] = { &wxluatype_wxMetafileDC, NULL }; -static int LUACALL wxLua_wxMetafileDC_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafileDC_Close[1] = {{ wxLua_wxMetafileDC_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMetafileDC_Close }}; -// %win %gc wxMetafile* Close(); -static int LUACALL wxLua_wxMetafileDC_Close(lua_State *L) -{ - // get this - wxMetafileDC * self = (wxMetafileDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMetafileDC); - // call Close - wxMetafile* returns = (wxMetafile*)self->Close(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxMetafile); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafile); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)))) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafileDC_delete[] = { &wxluatype_wxMetafileDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafileDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMetafileDC_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMetafileDC_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMetafileDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMetafileDC_constructor[1] = {{ wxLua_wxMetafileDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMetafileDC_constructor }}; -// wxMetafileDC(const wxString& filename = ""); -static int LUACALL wxLua_wxMetafileDC_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString filename = "" - const wxString filename = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxMetafileDC* returns = new wxMetafileDC(filename); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMetafileDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMetafileDC); - - return 1; -} - - - - -void wxLua_wxMetafileDC_delete_function(void** p) -{ - wxMetafileDC* o = (wxMetafileDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMetafileDC_methods[] = { -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)))) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMetafileDC_Close, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)))) && (wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__))) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMetafileDC_delete, 1, NULL }, - { "wxMetafileDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMetafileDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMetafileDC_methodCount = sizeof(wxMetafileDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMetafile && wxUSE_METAFILE && (defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) - diff --git a/wxLua/modules/wxbind/src/wxcore_controls.cpp b/wxLua/modules/wxbind/src/wxcore_controls.cpp deleted file mode 100644 index c084dab1..00000000 --- a/wxLua/modules/wxbind/src/wxcore_controls.cpp +++ /dev/null @@ -1,23044 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_controls.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxButton && wxUSE_BUTTON -// --------------------------------------------------------------------------- -// Bind class wxAnyButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAnyButton' -int wxluatype_wxAnyButton = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmap[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmap[1] = {{ wxLua_wxAnyButton_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmap }}; -// %wxchkver_3_0_0 wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxAnyButton_GetBitmap(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapCurrent[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmapCurrent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmapCurrent[1] = {{ wxLua_wxAnyButton_GetBitmapCurrent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapCurrent }}; -// %wxchkver_3_0_0 wxBitmap GetBitmapCurrent() const; -static int LUACALL wxLua_wxAnyButton_GetBitmapCurrent(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmapCurrent - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapCurrent()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapDisabled[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmapDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmapDisabled[1] = {{ wxLua_wxAnyButton_GetBitmapDisabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapDisabled }}; -// %wxchkver_3_0_0 wxBitmap GetBitmapDisabled() const; -static int LUACALL wxLua_wxAnyButton_GetBitmapDisabled(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmapDisabled - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapDisabled()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapFocus[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmapFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmapFocus[1] = {{ wxLua_wxAnyButton_GetBitmapFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapFocus }}; -// %wxchkver_3_0_0 wxBitmap GetBitmapFocus() const; -static int LUACALL wxLua_wxAnyButton_GetBitmapFocus(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmapFocus - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapFocus()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapLabel[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmapLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmapLabel[1] = {{ wxLua_wxAnyButton_GetBitmapLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapLabel }}; -// %wxchkver_3_0_0 wxBitmap GetBitmapLabel() const; -static int LUACALL wxLua_wxAnyButton_GetBitmapLabel(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmapLabel - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapLabel()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapMargins[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmapMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmapMargins[1] = {{ wxLua_wxAnyButton_GetBitmapMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapMargins }}; -// %wxchkver_3_0_0 wxSize GetBitmapMargins(); -static int LUACALL wxLua_wxAnyButton_GetBitmapMargins(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmapMargins - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBitmapMargins()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapPressed[] = { &wxluatype_wxAnyButton, NULL }; -static int LUACALL wxLua_wxAnyButton_GetBitmapPressed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_GetBitmapPressed[1] = {{ wxLua_wxAnyButton_GetBitmapPressed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAnyButton_GetBitmapPressed }}; -// %wxchkver_3_0_0 wxBitmap GetBitmapPressed() const; -static int LUACALL wxLua_wxAnyButton_GetBitmapPressed(lua_State *L) -{ - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call GetBitmapPressed - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapPressed()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmap[] = { &wxluatype_wxAnyButton, &wxluatype_wxBitmap, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmap[1] = {{ wxLua_wxAnyButton_SetBitmap, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmap }}; -// %wxchkver_3_0_0 void SetBitmap(const wxBitmap& bitmap, wxDirection dir = wxLEFT); -static int LUACALL wxLua_wxAnyButton_SetBitmap(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDirection dir = wxLEFT - wxDirection dir = (argCount >= 3 ? (wxDirection)wxlua_getenumtype(L, 3) : wxLEFT); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmap - self->SetBitmap(*bitmap, dir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapCurrent[] = { &wxluatype_wxAnyButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapCurrent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapCurrent[1] = {{ wxLua_wxAnyButton_SetBitmapCurrent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapCurrent }}; -// %wxchkver_3_0_0 void SetBitmapCurrent(const wxBitmap& bitmap); -static int LUACALL wxLua_wxAnyButton_SetBitmapCurrent(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapCurrent - self->SetBitmapCurrent(*bitmap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapDisabled[] = { &wxluatype_wxAnyButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapDisabled[1] = {{ wxLua_wxAnyButton_SetBitmapDisabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapDisabled }}; -// %wxchkver_3_0_0 void SetBitmapDisabled(const wxBitmap& bitmap); -static int LUACALL wxLua_wxAnyButton_SetBitmapDisabled(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapDisabled - self->SetBitmapDisabled(*bitmap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapFocus[] = { &wxluatype_wxAnyButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapFocus[1] = {{ wxLua_wxAnyButton_SetBitmapFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapFocus }}; -// %wxchkver_3_0_0 void SetBitmapFocus(const wxBitmap& bitmap); -static int LUACALL wxLua_wxAnyButton_SetBitmapFocus(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapFocus - self->SetBitmapFocus(*bitmap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapLabel[] = { &wxluatype_wxAnyButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapLabel[1] = {{ wxLua_wxAnyButton_SetBitmapLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapLabel }}; -// %wxchkver_3_0_0 void SetBitmapLabel(const wxBitmap& bitmap); -static int LUACALL wxLua_wxAnyButton_SetBitmapLabel(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapLabel - self->SetBitmapLabel(*bitmap); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapMargins1[] = { &wxluatype_wxAnyButton, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapMargins1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins1[1] = {{ wxLua_wxAnyButton_SetBitmapMargins1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapMargins1 }}; -// %wxchkver_3_0_0 void SetBitmapMargins(const wxSize& sz); -static int LUACALL wxLua_wxAnyButton_SetBitmapMargins1(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapMargins - self->SetBitmapMargins(*sz); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapMargins[] = { &wxluatype_wxAnyButton, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapMargins(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins[1] = {{ wxLua_wxAnyButton_SetBitmapMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapMargins }}; -// %wxchkver_3_0_0 void SetBitmapMargins(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxAnyButton_SetBitmapMargins(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapMargins - self->SetBitmapMargins(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapPosition[] = { &wxluatype_wxAnyButton, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapPosition[1] = {{ wxLua_wxAnyButton_SetBitmapPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapPosition }}; -// %wxchkver_3_0_0 void SetBitmapPosition(wxDirection dir); -static int LUACALL wxLua_wxAnyButton_SetBitmapPosition(lua_State *L) -{ - // wxDirection dir - wxDirection dir = (wxDirection)wxlua_getenumtype(L, 2); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapPosition - self->SetBitmapPosition(dir); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapPressed[] = { &wxluatype_wxAnyButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxAnyButton_SetBitmapPressed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapPressed[1] = {{ wxLua_wxAnyButton_SetBitmapPressed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapPressed }}; -// %wxchkver_3_0_0 void SetBitmapPressed(const wxBitmap& bitmap); -static int LUACALL wxLua_wxAnyButton_SetBitmapPressed(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxAnyButton * self = (wxAnyButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAnyButton); - // call SetBitmapPressed - self->SetBitmapPressed(*bitmap); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static int LUACALL wxLua_wxAnyButton_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_constructor[1] = {{ wxLua_wxAnyButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxAnyButton(); -static int LUACALL wxLua_wxAnyButton_constructor(lua_State *L) -{ - // call constructor - wxAnyButton* returns = new wxAnyButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAnyButton); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxAnyButton_SetBitmapMargins1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapMargins1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { wxLua_wxAnyButton_SetBitmapMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAnyButton_SetBitmapMargins }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -}; -static int s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - -void wxLua_wxAnyButton_delete_function(void** p) -{ - wxAnyButton* o = (wxAnyButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAnyButton_methods[] = { -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmap, 1, NULL }, - { "GetBitmapCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmapCurrent, 1, NULL }, - { "GetBitmapDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmapDisabled, 1, NULL }, - { "GetBitmapFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmapFocus, 1, NULL }, - { "GetBitmapLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmapLabel, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - { "GetBitmapMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmapMargins, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - { "GetBitmapPressed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_GetBitmapPressed, 1, NULL }, - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmap, 1, NULL }, - { "SetBitmapCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapCurrent, 1, NULL }, - { "SetBitmapDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapDisabled, 1, NULL }, - { "SetBitmapFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapFocus, 1, NULL }, - { "SetBitmapLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapLabel, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - { "SetBitmapMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins_overload, s_wxluafunc_wxLua_wxAnyButton_SetBitmapMargins_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "SetBitmapPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapPosition, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - { "SetBitmapPressed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAnyButton_SetBitmapPressed, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "wxAnyButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAnyButton_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - - { 0, 0, 0, 0 }, -}; - -int wxAnyButton_methodCount = sizeof(wxAnyButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxHeaderCtrlEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHeaderCtrlEvent' -int wxluatype_wxHeaderCtrlEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_GetColumn[] = { &wxluatype_wxHeaderCtrlEvent, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_GetColumn[1] = {{ wxLua_wxHeaderCtrlEvent_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_GetColumn }}; -// int GetColumn() const; -static int LUACALL wxLua_wxHeaderCtrlEvent_GetColumn(lua_State *L) -{ - // get this - wxHeaderCtrlEvent * self = (wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call GetColumn - int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_GetNewOrder[] = { &wxluatype_wxHeaderCtrlEvent, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_GetNewOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_GetNewOrder[1] = {{ wxLua_wxHeaderCtrlEvent_GetNewOrder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_GetNewOrder }}; -// unsigned int GetNewOrder() const; -static int LUACALL wxLua_wxHeaderCtrlEvent_GetNewOrder(lua_State *L) -{ - // get this - wxHeaderCtrlEvent * self = (wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call GetNewOrder - unsigned int returns = (self->GetNewOrder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_GetWidth[] = { &wxluatype_wxHeaderCtrlEvent, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_GetWidth[1] = {{ wxLua_wxHeaderCtrlEvent_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxHeaderCtrlEvent_GetWidth(lua_State *L) -{ - // get this - wxHeaderCtrlEvent * self = (wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_SetColumn[] = { &wxluatype_wxHeaderCtrlEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_SetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_SetColumn[1] = {{ wxLua_wxHeaderCtrlEvent_SetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_SetColumn }}; -// void SetColumn(int col); -static int LUACALL wxLua_wxHeaderCtrlEvent_SetColumn(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxHeaderCtrlEvent * self = (wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call SetColumn - self->SetColumn(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_SetNewOrder[] = { &wxluatype_wxHeaderCtrlEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_SetNewOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_SetNewOrder[1] = {{ wxLua_wxHeaderCtrlEvent_SetNewOrder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_SetNewOrder }}; -// void SetNewOrder(unsigned int order); -static int LUACALL wxLua_wxHeaderCtrlEvent_SetNewOrder(lua_State *L) -{ - // unsigned int order - unsigned int order = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrlEvent * self = (wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call SetNewOrder - self->SetNewOrder(order); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_SetWidth[] = { &wxluatype_wxHeaderCtrlEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_SetWidth[1] = {{ wxLua_wxHeaderCtrlEvent_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxHeaderCtrlEvent_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxHeaderCtrlEvent * self = (wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_delete[] = { &wxluatype_wxHeaderCtrlEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_constructor1[] = { &wxluatype_wxHeaderCtrlEvent, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor1[1] = {{ wxLua_wxHeaderCtrlEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_constructor1 }}; -// wxHeaderCtrlEvent(const wxHeaderCtrlEvent& event); -static int LUACALL wxLua_wxHeaderCtrlEvent_constructor1(lua_State *L) -{ - // const wxHeaderCtrlEvent event - const wxHeaderCtrlEvent * event = (const wxHeaderCtrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlEvent); - // call constructor - wxHeaderCtrlEvent* returns = new wxHeaderCtrlEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHeaderCtrlEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHeaderCtrlEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHeaderCtrlEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor[1] = {{ wxLua_wxHeaderCtrlEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_constructor }}; -// wxHeaderCtrlEvent(wxEventType commandType = wxEVT_NULL, int winid = 0); -static int LUACALL wxLua_wxHeaderCtrlEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int winid = 0 - int winid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxHeaderCtrlEvent* returns = new wxHeaderCtrlEvent(commandType, winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHeaderCtrlEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHeaderCtrlEvent); - - return 1; -} - - - - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor_overload[] = -{ - { wxLua_wxHeaderCtrlEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_constructor1 }, - { wxLua_wxHeaderCtrlEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - -void wxLua_wxHeaderCtrlEvent_delete_function(void** p) -{ - wxHeaderCtrlEvent* o = (wxHeaderCtrlEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHeaderCtrlEvent_methods[] = { - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlEvent_GetColumn, 1, NULL }, - { "GetNewOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlEvent_GetNewOrder, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlEvent_GetWidth, 1, NULL }, - { "SetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlEvent_SetColumn, 1, NULL }, - { "SetNewOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlEvent_SetNewOrder, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlEvent_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHeaderCtrlEvent_delete, 1, NULL }, - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - { "wxHeaderCtrlEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor_overload, s_wxluafunc_wxLua_wxHeaderCtrlEvent_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxHeaderCtrlEvent_methodCount = sizeof(wxHeaderCtrlEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxHeaderCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHeaderCtrl' -int wxluatype_wxHeaderCtrl = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_AddColumnsItems[] = { &wxluatype_wxHeaderCtrl, &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_AddColumnsItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_AddColumnsItems[1] = {{ wxLua_wxHeaderCtrl_AddColumnsItems, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHeaderCtrl_AddColumnsItems }}; -// void AddColumnsItems(wxMenu& menu, int idColumnsBase = 0); -static int LUACALL wxLua_wxHeaderCtrl_AddColumnsItems(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int idColumnsBase = 0 - int idColumnsBase = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call AddColumnsItems - self->AddColumnsItems(*menu, idColumnsBase); - - return 0; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnAt[] = { &wxluatype_wxHeaderCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnAt[1] = {{ wxLua_wxHeaderCtrl_GetColumnAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnAt }}; -// unsigned int GetColumnAt(unsigned int pos) const; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnAt(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call GetColumnAt - unsigned int returns = (self->GetColumnAt(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnCount[] = { &wxluatype_wxHeaderCtrl, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnCount[1] = {{ wxLua_wxHeaderCtrl_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnCount }}; -// unsigned int GetColumnCount() const; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnCount(lua_State *L) -{ - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnPos[] = { &wxluatype_wxHeaderCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnPos[1] = {{ wxLua_wxHeaderCtrl_GetColumnPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnPos }}; -// unsigned int GetColumnPos(unsigned int idx) const; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnPos(lua_State *L) -{ - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call GetColumnPos - unsigned int returns = (self->GetColumnPos(idx)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxCHECK_VERSION(3,1,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnTitleWidth[] = { &wxluatype_wxHeaderCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnTitleWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnTitleWidth[1] = {{ wxLua_wxHeaderCtrl_GetColumnTitleWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnTitleWidth }}; -// %wxchkver_3_1_3 int GetColumnTitleWidth(unsigned int idx); -static int LUACALL wxLua_wxHeaderCtrl_GetColumnTitleWidth(lua_State *L) -{ - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call GetColumnTitleWidth - int returns = (self->GetColumnTitleWidth(idx)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxCHECK_VERSION(3,1,3)) - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnsOrder[] = { &wxluatype_wxHeaderCtrl, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnsOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnsOrder[1] = {{ wxLua_wxHeaderCtrl_GetColumnsOrder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrl_GetColumnsOrder }}; -// wxArrayInt GetColumnsOrder() const; -static int LUACALL wxLua_wxHeaderCtrl_GetColumnsOrder(lua_State *L) -{ - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call GetColumnsOrder - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetColumnsOrder()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_IsEmpty[] = { &wxluatype_wxHeaderCtrl, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_IsEmpty[1] = {{ wxLua_wxHeaderCtrl_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrl_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxHeaderCtrl_IsEmpty(lua_State *L) -{ - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_MoveColumnInOrderArray[] = { &wxluatype_wxArrayInt, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_MoveColumnInOrderArray(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_MoveColumnInOrderArray[1] = {{ wxLua_wxHeaderCtrl_MoveColumnInOrderArray, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxHeaderCtrl_MoveColumnInOrderArray }}; -// static void MoveColumnInOrderArray(const wxArrayInt& order, unsigned int idx, unsigned int pos); -static int LUACALL wxLua_wxHeaderCtrl_MoveColumnInOrderArray(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 3); - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // const wxArrayInt order - wxLuaSmartwxArrayInt order = wxlua_getwxArrayInt(L, 1); - // call MoveColumnInOrderArray - wxHeaderCtrl::MoveColumnInOrderArray(order, idx, pos); - - return 0; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_ResetColumnsOrder[] = { &wxluatype_wxHeaderCtrl, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_ResetColumnsOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_ResetColumnsOrder[1] = {{ wxLua_wxHeaderCtrl_ResetColumnsOrder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrl_ResetColumnsOrder }}; -// void ResetColumnsOrder(); -static int LUACALL wxLua_wxHeaderCtrl_ResetColumnsOrder(lua_State *L) -{ - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call ResetColumnsOrder - self->ResetColumnsOrder(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_SetColumnCount[] = { &wxluatype_wxHeaderCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_SetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_SetColumnCount[1] = {{ wxLua_wxHeaderCtrl_SetColumnCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrl_SetColumnCount }}; -// void SetColumnCount(unsigned int count); -static int LUACALL wxLua_wxHeaderCtrl_SetColumnCount(lua_State *L) -{ - // unsigned int count - unsigned int count = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call SetColumnCount - self->SetColumnCount(count); - - return 0; -} - - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_SetColumnsOrder[] = { &wxluatype_wxHeaderCtrl, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_SetColumnsOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_SetColumnsOrder[1] = {{ wxLua_wxHeaderCtrl_SetColumnsOrder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrl_SetColumnsOrder }}; -// void SetColumnsOrder(const wxArrayInt& order); -static int LUACALL wxLua_wxHeaderCtrl_SetColumnsOrder(lua_State *L) -{ - // const wxArrayInt order - wxLuaSmartwxArrayInt order = wxlua_getwxArrayInt(L, 2); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call SetColumnsOrder - self->SetColumnsOrder(order); - - return 0; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_ShowColumnsMenu[] = { &wxluatype_wxHeaderCtrl, &wxluatype_wxPoint, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_ShowColumnsMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_ShowColumnsMenu[1] = {{ wxLua_wxHeaderCtrl_ShowColumnsMenu, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHeaderCtrl_ShowColumnsMenu }}; -// bool ShowColumnsMenu(const wxPoint& pt, const wxString& title = wxEmptyString); -static int LUACALL wxLua_wxHeaderCtrl_ShowColumnsMenu(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString title = wxEmptyString - const wxString title = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call ShowColumnsMenu - bool returns = (self->ShowColumnsMenu(*pt, title)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_ShowCustomizeDialog[] = { &wxluatype_wxHeaderCtrl, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_ShowCustomizeDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_ShowCustomizeDialog[1] = {{ wxLua_wxHeaderCtrl_ShowCustomizeDialog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrl_ShowCustomizeDialog }}; -// bool ShowCustomizeDialog(); -static int LUACALL wxLua_wxHeaderCtrl_ShowCustomizeDialog(lua_State *L) -{ - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call ShowCustomizeDialog - bool returns = (self->ShowCustomizeDialog()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrl_UpdateColumn[] = { &wxluatype_wxHeaderCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrl_UpdateColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrl_UpdateColumn[1] = {{ wxLua_wxHeaderCtrl_UpdateColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrl_UpdateColumn }}; -// void UpdateColumn(unsigned int idx); -static int LUACALL wxLua_wxHeaderCtrl_UpdateColumn(lua_State *L) -{ - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrl * self = (wxHeaderCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrl); - // call UpdateColumn - self->UpdateColumn(idx); - - return 0; -} - - - - -void wxLua_wxHeaderCtrl_delete_function(void** p) -{ - wxHeaderCtrl* o = (wxHeaderCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHeaderCtrl_methods[] = { -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "AddColumnsItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_AddColumnsItems, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetColumnAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnAt, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnCount, 1, NULL }, - { "GetColumnPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnPos, 1, NULL }, - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxCHECK_VERSION(3,1,3)) - { "GetColumnTitleWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnTitleWidth, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxCHECK_VERSION(3,1,3)) - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - { "GetColumnsOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_GetColumnsOrder, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_IsEmpty, 1, NULL }, - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - { "MoveColumnInOrderArray", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxHeaderCtrl_MoveColumnInOrderArray, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - - { "ResetColumnsOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_ResetColumnsOrder, 1, NULL }, - { "SetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_SetColumnCount, 1, NULL }, - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - { "SetColumnsOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_SetColumnsOrder, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxArrayInt) - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) - { "ShowColumnsMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_ShowColumnsMenu, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) - - { "ShowCustomizeDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_ShowCustomizeDialog, 1, NULL }, - { "UpdateColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrl_UpdateColumn, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHeaderCtrl_methodCount = sizeof(wxHeaderCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxHeaderCtrlSimple -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHeaderCtrlSimple' -int wxluatype_wxHeaderCtrlSimple = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_DeleteColumn[] = { &wxluatype_wxHeaderCtrlSimple, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrlSimple_DeleteColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_DeleteColumn[1] = {{ wxLua_wxHeaderCtrlSimple_DeleteColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_DeleteColumn }}; -// void DeleteColumn(unsigned int idx); -static int LUACALL wxLua_wxHeaderCtrlSimple_DeleteColumn(lua_State *L) -{ - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrlSimple * self = (wxHeaderCtrlSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlSimple); - // call DeleteColumn - self->DeleteColumn(idx); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_HideColumn[] = { &wxluatype_wxHeaderCtrlSimple, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHeaderCtrlSimple_HideColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_HideColumn[1] = {{ wxLua_wxHeaderCtrlSimple_HideColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_HideColumn }}; -// void HideColumn(unsigned int idx); -static int LUACALL wxLua_wxHeaderCtrlSimple_HideColumn(lua_State *L) -{ - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrlSimple * self = (wxHeaderCtrlSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlSimple); - // call HideColumn - self->HideColumn(idx); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_RemoveSortIndicator[] = { &wxluatype_wxHeaderCtrlSimple, NULL }; -static int LUACALL wxLua_wxHeaderCtrlSimple_RemoveSortIndicator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_RemoveSortIndicator[1] = {{ wxLua_wxHeaderCtrlSimple_RemoveSortIndicator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_RemoveSortIndicator }}; -// void RemoveSortIndicator(); -static int LUACALL wxLua_wxHeaderCtrlSimple_RemoveSortIndicator(lua_State *L) -{ - // get this - wxHeaderCtrlSimple * self = (wxHeaderCtrlSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlSimple); - // call RemoveSortIndicator - self->RemoveSortIndicator(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_ShowColumn[] = { &wxluatype_wxHeaderCtrlSimple, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHeaderCtrlSimple_ShowColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_ShowColumn[1] = {{ wxLua_wxHeaderCtrlSimple_ShowColumn, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_ShowColumn }}; -// void ShowColumn(unsigned int idx, bool show = true); -static int LUACALL wxLua_wxHeaderCtrlSimple_ShowColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrlSimple * self = (wxHeaderCtrlSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlSimple); - // call ShowColumn - self->ShowColumn(idx, show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_ShowSortIndicator[] = { &wxluatype_wxHeaderCtrlSimple, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHeaderCtrlSimple_ShowSortIndicator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_ShowSortIndicator[1] = {{ wxLua_wxHeaderCtrlSimple_ShowSortIndicator, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_ShowSortIndicator }}; -// void ShowSortIndicator(unsigned int idx, bool sortOrder = true); -static int LUACALL wxLua_wxHeaderCtrlSimple_ShowSortIndicator(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool sortOrder = true - bool sortOrder = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // unsigned int idx - unsigned int idx = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxHeaderCtrlSimple * self = (wxHeaderCtrlSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderCtrlSimple); - // call ShowSortIndicator - self->ShowSortIndicator(idx, sortOrder); - - return 0; -} - - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHeaderCtrlSimple_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor1[1] = {{ wxLua_wxHeaderCtrlSimple_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_constructor1 }}; -// const wxString& name = wxHeaderCtrlNameStr); -static int LUACALL wxLua_wxHeaderCtrlSimple_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxHeaderCtrlNameStr - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxHeaderCtrlNameStr)); - // long style = wxHD_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxHD_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID winid = wxID_ANY - wxWindowID winid = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxHeaderCtrlSimple* returns = new wxHeaderCtrlSimple(parent, winid, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHeaderCtrlSimple); - - return 1; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxHeaderCtrlSimple_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor[1] = {{ wxLua_wxHeaderCtrlSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHeaderCtrlSimple(); -static int LUACALL wxLua_wxHeaderCtrlSimple_constructor(lua_State *L) -{ - // call constructor - wxHeaderCtrlSimple* returns = new wxHeaderCtrlSimple(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHeaderCtrlSimple); - - return 1; -} - - - - -#if (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHeaderCtrlSimple_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxHeaderCtrlSimple_constructor1 }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHeaderCtrlSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - -void wxLua_wxHeaderCtrlSimple_delete_function(void** p) -{ - wxHeaderCtrlSimple* o = (wxHeaderCtrlSimple*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHeaderCtrlSimple_methods[] = { - { "DeleteColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlSimple_DeleteColumn, 1, NULL }, - { "HideColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlSimple_HideColumn, 1, NULL }, - { "RemoveSortIndicator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlSimple_RemoveSortIndicator, 1, NULL }, - { "ShowColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlSimple_ShowColumn, 1, NULL }, - { "ShowSortIndicator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderCtrlSimple_ShowSortIndicator, 1, NULL }, - -#if (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - { "wxHeaderCtrlSimple", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor_overload, s_wxluafunc_wxLua_wxHeaderCtrlSimple_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxHeaderCtrlSimple_methodCount = sizeof(wxHeaderCtrlSimple_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxUSE_HEADERCTRL) - - -#if wxLUA_USE_wxButton && wxUSE_BUTTON -// --------------------------------------------------------------------------- -// Bind class wxButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxButton' -int wxluatype_wxButton = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_Create[] = { &wxluatype_wxButton, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxButton_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_Create[1] = {{ wxLua_wxButton_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxButton_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxButton"); -static int LUACALL wxLua_wxButton_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxButton" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxButton * self = (wxButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxButton); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_GetAuthNeeded[] = { &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxButton_GetAuthNeeded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_GetAuthNeeded[1] = {{ wxLua_wxButton_GetAuthNeeded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxButton_GetAuthNeeded }}; -// %wxchkver_3_0_0 bool GetAuthNeeded() const; -static int LUACALL wxLua_wxButton_GetAuthNeeded(lua_State *L) -{ - // get this - wxButton * self = (wxButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxButton); - // call GetAuthNeeded - bool returns = (self->GetAuthNeeded()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if ((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) -static int LUACALL wxLua_wxButton_GetDefaultSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_GetDefaultSize1[1] = {{ wxLua_wxButton_GetDefaultSize1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// !%wxchkver_3_1_3 static wxSize GetDefaultSize(); -static int LUACALL wxLua_wxButton_GetDefaultSize1(lua_State *L) -{ - // call GetDefaultSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxButton::GetDefaultSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_GetDefaultSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxButton_GetDefaultSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_GetDefaultSize[1] = {{ wxLua_wxButton_GetDefaultSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxButton_GetDefaultSize }}; -// %wxchkver_3_1_3 static wxSize GetDefaultSize(wxWindow* win = NULL); -static int LUACALL wxLua_wxButton_GetDefaultSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call GetDefaultSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxButton::GetDefaultSize(win)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_GetLabel[] = { &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxButton_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_GetLabel[1] = {{ wxLua_wxButton_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxButton_GetLabel }}; -// %wxchkver_3_0_0 wxString GetLabel() const; -static int LUACALL wxLua_wxButton_GetLabel(lua_State *L) -{ - // get this - wxButton * self = (wxButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxButton); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_SetAuthNeeded[] = { &wxluatype_wxButton, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxButton_SetAuthNeeded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_SetAuthNeeded[1] = {{ wxLua_wxButton_SetAuthNeeded, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxButton_SetAuthNeeded }}; -// %wxchkver_3_0_0 void SetAuthNeeded(bool needed = true); -static int LUACALL wxLua_wxButton_SetAuthNeeded(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool needed = true - bool needed = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxButton * self = (wxButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxButton); - // call SetAuthNeeded - self->SetAuthNeeded(needed); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_SetDefault[] = { &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxButton_SetDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_SetDefault[1] = {{ wxLua_wxButton_SetDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxButton_SetDefault }}; -// void SetDefault(); -static int LUACALL wxLua_wxButton_SetDefault(lua_State *L) -{ - // get this - wxButton * self = (wxButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxButton); - // call SetDefault - self->SetDefault(); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_SetLabel[] = { &wxluatype_wxButton, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxButton_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_SetLabel[1] = {{ wxLua_wxButton_SetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxButton_SetLabel }}; -// %wxchkver_3_0_0 void SetLabel(const wxString& label); -static int LUACALL wxLua_wxButton_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxButton * self = (wxButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxButton); - // call SetLabel - self->SetLabel(label); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxButton_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxButton_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_constructor1[1] = {{ wxLua_wxButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxButton_constructor1 }}; -// wxButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxButton"); -static int LUACALL wxLua_wxButton_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxButton" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxButton* returns = new wxButton(parent, id, label, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxButton_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_constructor[1] = {{ wxLua_wxButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxButton(); -static int LUACALL wxLua_wxButton_constructor(lua_State *L) -{ - // call constructor - wxButton* returns = new wxButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_GetDefaultSize_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxButton_GetDefaultSize1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxButton_GetDefaultSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxButton_GetDefaultSize }, -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxButton_GetDefaultSize_overload_count = sizeof(s_wxluafunc_wxLua_wxButton_GetDefaultSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect)) - -#if (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxButton && wxUSE_BUTTON) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxButton_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxButton_constructor1 }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxButton_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxButton_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxButton && wxUSE_BUTTON) - -void wxLua_wxButton_delete_function(void** p) -{ - wxButton* o = (wxButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxButton_methods[] = { -#if ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxButton_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "GetAuthNeeded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxButton_GetAuthNeeded, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if (((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect)) - { "GetDefaultSize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxButton_GetDefaultSize_overload, s_wxluafunc_wxLua_wxButton_GetDefaultSize_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxButton_GetLabel, 1, NULL }, - { "SetAuthNeeded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxButton_SetAuthNeeded, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - - { "SetDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxButton_SetDefault, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxButton_SetLabel, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -#if (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxButton && wxUSE_BUTTON) - { "wxButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxButton_constructor_overload, s_wxluafunc_wxLua_wxButton_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxButton && wxUSE_BUTTON) - - { 0, 0, 0, 0 }, -}; - -int wxButton_methodCount = sizeof(wxButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxButton && wxUSE_BUTTON - - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -// --------------------------------------------------------------------------- -// Bind class wxBitmapButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBitmapButton' -int wxluatype_wxBitmapButton = WXLUA_TUNKNOWN; - -#if ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_Create[] = { &wxluatype_wxBitmapButton, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapButton_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_Create[1] = {{ wxLua_wxBitmapButton_Create, WXLUAMETHOD_METHOD, 5, 9, s_wxluatypeArray_wxLua_wxBitmapButton_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos, const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxBitmapButton"); -static int LUACALL wxLua_wxBitmapButton_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxBitmapButton" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxBitmapButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxBU_AUTODRAW - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxBU_AUTODRAW); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call Create - bool returns = (self->Create(parent, id, *bitmap, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapDisabled[] = { &wxluatype_wxBitmapButton, NULL }; -static int LUACALL wxLua_wxBitmapButton_GetBitmapDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_GetBitmapDisabled[1] = {{ wxLua_wxBitmapButton_GetBitmapDisabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapDisabled }}; -// !%wxchkver_3_0_0 wxBitmap GetBitmapDisabled() const; -static int LUACALL wxLua_wxBitmapButton_GetBitmapDisabled(lua_State *L) -{ - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call GetBitmapDisabled - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapDisabled()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapFocus[] = { &wxluatype_wxBitmapButton, NULL }; -static int LUACALL wxLua_wxBitmapButton_GetBitmapFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_GetBitmapFocus[1] = {{ wxLua_wxBitmapButton_GetBitmapFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapFocus }}; -// !%wxchkver_3_0_0 wxBitmap GetBitmapFocus() const; -static int LUACALL wxLua_wxBitmapButton_GetBitmapFocus(lua_State *L) -{ - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call GetBitmapFocus - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapFocus()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapHover[] = { &wxluatype_wxBitmapButton, NULL }; -static int LUACALL wxLua_wxBitmapButton_GetBitmapHover(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_GetBitmapHover[1] = {{ wxLua_wxBitmapButton_GetBitmapHover, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapHover }}; -// !%wxchkver_3_0_0 && %wxchkver_2_8 wxBitmap GetBitmapHover() const; -static int LUACALL wxLua_wxBitmapButton_GetBitmapHover(lua_State *L) -{ - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call GetBitmapHover - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapHover()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapLabel[] = { &wxluatype_wxBitmapButton, NULL }; -static int LUACALL wxLua_wxBitmapButton_GetBitmapLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_GetBitmapLabel[1] = {{ wxLua_wxBitmapButton_GetBitmapLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapLabel }}; -// !%wxchkver_3_0_0 wxBitmap GetBitmapLabel() const; -static int LUACALL wxLua_wxBitmapButton_GetBitmapLabel(lua_State *L) -{ - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call GetBitmapLabel - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapLabel()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapSelected[] = { &wxluatype_wxBitmapButton, NULL }; -static int LUACALL wxLua_wxBitmapButton_GetBitmapSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_GetBitmapSelected[1] = {{ wxLua_wxBitmapButton_GetBitmapSelected, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapButton_GetBitmapSelected }}; -// !%wxchkver_3_0_0 wxBitmap GetBitmapSelected() const; -static int LUACALL wxLua_wxBitmapButton_GetBitmapSelected(lua_State *L) -{ - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call GetBitmapSelected - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapSelected()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if (((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxCHECK_VERSION(3,0,0))) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_NewCloseButton[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmapButton_NewCloseButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_NewCloseButton[1] = {{ wxLua_wxBitmapButton_NewCloseButton, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxBitmapButton_NewCloseButton }}; -// %wxchkver_3_0_0 static wxBitmapButton* NewCloseButton(wxWindow* parent, wxWindowID winid); -static int LUACALL wxLua_wxBitmapButton_NewCloseButton(lua_State *L) -{ - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call NewCloseButton - wxBitmapButton* returns = (wxBitmapButton*)wxBitmapButton::NewCloseButton(parent, winid); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapButton); - - return 1; -} - -#endif // (((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxCHECK_VERSION(3,0,0))) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapDisabled[] = { &wxluatype_wxBitmapButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapButton_SetBitmapDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_SetBitmapDisabled[1] = {{ wxLua_wxBitmapButton_SetBitmapDisabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapDisabled }}; -// !%wxchkver_3_0_0 void SetBitmapDisabled(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmapButton_SetBitmapDisabled(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call SetBitmapDisabled - self->SetBitmapDisabled(*bitmap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapFocus[] = { &wxluatype_wxBitmapButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapButton_SetBitmapFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_SetBitmapFocus[1] = {{ wxLua_wxBitmapButton_SetBitmapFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapFocus }}; -// !%wxchkver_3_0_0 void SetBitmapFocus(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmapButton_SetBitmapFocus(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call SetBitmapFocus - self->SetBitmapFocus(*bitmap); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapHover[] = { &wxluatype_wxBitmapButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapButton_SetBitmapHover(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_SetBitmapHover[1] = {{ wxLua_wxBitmapButton_SetBitmapHover, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapHover }}; -// !%wxchkver_3_0_0 && %wxchkver_2_8 void SetBitmapHover(const wxBitmap& hover); -static int LUACALL wxLua_wxBitmapButton_SetBitmapHover(lua_State *L) -{ - // const wxBitmap hover - const wxBitmap * hover = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call SetBitmapHover - self->SetBitmapHover(*hover); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapLabel[] = { &wxluatype_wxBitmapButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapButton_SetBitmapLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_SetBitmapLabel[1] = {{ wxLua_wxBitmapButton_SetBitmapLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapLabel }}; -// !%wxchkver_3_0_0 void SetBitmapLabel(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmapButton_SetBitmapLabel(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call SetBitmapLabel - self->SetBitmapLabel(*bitmap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapSelected[] = { &wxluatype_wxBitmapButton, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmapButton_SetBitmapSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_SetBitmapSelected[1] = {{ wxLua_wxBitmapButton_SetBitmapSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapButton_SetBitmapSelected }}; -// !%wxchkver_3_0_0 void SetBitmapSelected(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmapButton_SetBitmapSelected(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmapButton * self = (wxBitmapButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapButton); - // call SetBitmapSelected - self->SetBitmapSelected(*bitmap); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapButton_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapButton_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_constructor1[1] = {{ wxLua_wxBitmapButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxBitmapButton_constructor1 }}; -// wxBitmapButton(wxWindow* parent, wxWindowID id, const wxBitmap& bitmap, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxBitmapButton"); -static int LUACALL wxLua_wxBitmapButton_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxBitmapButton" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxBitmapButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxBU_AUTODRAW - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxBU_AUTODRAW); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxBitmapButton* returns = new wxBitmapButton(parent, id, *bitmap, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapButton); - - return 1; -} - -#endif // ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxBitmapButton_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_constructor[1] = {{ wxLua_wxBitmapButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxBitmapButton(); -static int LUACALL wxLua_wxBitmapButton_constructor(lua_State *L) -{ - // call constructor - wxBitmapButton* returns = new wxBitmapButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapButton); - - return 1; -} - - - - -#if (((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapButton_constructor_overload[] = -{ - -#if ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxBitmapButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxBitmapButton_constructor1 }, -#endif // ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxBitmapButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxBitmapButton_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmapButton_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - -void wxLua_wxBitmapButton_delete_function(void** p) -{ - wxBitmapButton* o = (wxBitmapButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBitmapButton_methods[] = { -#if ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_Create, 1, NULL }, -#endif // ((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - { "GetBitmapDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_GetBitmapDisabled, 1, NULL }, - { "GetBitmapFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_GetBitmapFocus, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - { "GetBitmapHover", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_GetBitmapHover, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - { "GetBitmapLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_GetBitmapLabel, 1, NULL }, - { "GetBitmapSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_GetBitmapSelected, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if (((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxCHECK_VERSION(3,0,0))) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - { "NewCloseButton", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxBitmapButton_NewCloseButton, 1, NULL }, -#endif // (((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxCHECK_VERSION(3,0,0))) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - { "SetBitmapDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_SetBitmapDisabled, 1, NULL }, - { "SetBitmapFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_SetBitmapFocus, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - { "SetBitmapHover", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_SetBitmapHover, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0) && wxCHECK_VERSION(2,8,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - { "SetBitmapLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_SetBitmapLabel, 1, NULL }, - { "SetBitmapSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapButton_SetBitmapSelected, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON))) && (wxLUA_USE_wxBitmap) - -#if (((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - { "wxBitmapButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBitmapButton_constructor_overload, s_wxluafunc_wxLua_wxBitmapButton_constructor_overload_count, 0 }, -#endif // (((((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON)) - - { 0, 0, 0, 0 }, -}; - -int wxBitmapButton_methodCount = sizeof(wxBitmapButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN -// --------------------------------------------------------------------------- -// Bind class wxToggleButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToggleButton' -int wxluatype_wxToggleButton = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToggleButton_Create[] = { &wxluatype_wxToggleButton, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToggleButton_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToggleButton_Create[1] = {{ wxLua_wxToggleButton_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxToggleButton_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxToggleButton"); -static int LUACALL wxLua_wxToggleButton_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToggleButton" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxToggleButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxToggleButton * self = (wxToggleButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToggleButton); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToggleButton_GetValue[] = { &wxluatype_wxToggleButton, NULL }; -static int LUACALL wxLua_wxToggleButton_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToggleButton_GetValue[1] = {{ wxLua_wxToggleButton_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToggleButton_GetValue }}; -// bool GetValue() const; -static int LUACALL wxLua_wxToggleButton_GetValue(lua_State *L) -{ - // get this - wxToggleButton * self = (wxToggleButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToggleButton); - // call GetValue - bool returns = (self->GetValue()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToggleButton_SetValue[] = { &wxluatype_wxToggleButton, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToggleButton_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToggleButton_SetValue[1] = {{ wxLua_wxToggleButton_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToggleButton_SetValue }}; -// void SetValue(bool state); -static int LUACALL wxLua_wxToggleButton_SetValue(lua_State *L) -{ - // bool state - bool state = wxlua_getbooleantype(L, 2); - // get this - wxToggleButton * self = (wxToggleButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToggleButton); - // call SetValue - self->SetValue(state); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToggleButton_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToggleButton_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToggleButton_constructor1[1] = {{ wxLua_wxToggleButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxToggleButton_constructor1 }}; -// wxToggleButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxToggleButton"); -static int LUACALL wxLua_wxToggleButton_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToggleButton" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxToggleButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxToggleButton* returns = new wxToggleButton(parent, id, label, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToggleButton); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxToggleButton_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToggleButton_constructor[1] = {{ wxLua_wxToggleButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxToggleButton(); -static int LUACALL wxLua_wxToggleButton_constructor(lua_State *L) -{ - // call constructor - wxToggleButton* returns = new wxToggleButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToggleButton); - - return 1; -} - - - - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToggleButton_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxToggleButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxToggleButton_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxToggleButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxToggleButton_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxToggleButton_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - -void wxLua_wxToggleButton_delete_function(void** p) -{ - wxToggleButton* o = (wxToggleButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToggleButton_methods[] = { -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToggleButton_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToggleButton_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToggleButton_SetValue, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - { "wxToggleButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxToggleButton_constructor_overload, s_wxluafunc_wxLua_wxToggleButton_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - - { 0, 0, 0, 0 }, -}; - -int wxToggleButton_methodCount = sizeof(wxToggleButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - - -#if wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN -// --------------------------------------------------------------------------- -// Bind class wxBitmapToggleButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBitmapToggleButton' -int wxluatype_wxBitmapToggleButton = WXLUA_TUNKNOWN; - -#if ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapToggleButton_Create[] = { &wxluatype_wxBitmapToggleButton, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapToggleButton_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapToggleButton_Create[1] = {{ wxLua_wxBitmapToggleButton_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxBitmapToggleButton_Create }}; -// %wxchkver_3_0_0 bool Create(wxWindow* parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& val = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr); -static int LUACALL wxLua_wxBitmapToggleButton_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxCheckBoxNameStr - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxCheckBoxNameStr)); - // const wxValidator val = wxDefaultValidator - const wxValidator * val = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxBitmapToggleButton * self = (wxBitmapToggleButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapToggleButton); - // call Create - bool returns = (self->Create(parent, id, *label, *pos, *size, style, *val, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapToggleButton_GetValue[] = { &wxluatype_wxBitmapToggleButton, NULL }; -static int LUACALL wxLua_wxBitmapToggleButton_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapToggleButton_GetValue[1] = {{ wxLua_wxBitmapToggleButton_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmapToggleButton_GetValue }}; -// %wxchkver_3_0_0 bool GetValue() const; -static int LUACALL wxLua_wxBitmapToggleButton_GetValue(lua_State *L) -{ - // get this - wxBitmapToggleButton * self = (wxBitmapToggleButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapToggleButton); - // call GetValue - bool returns = (self->GetValue()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapToggleButton_SetValue[] = { &wxluatype_wxBitmapToggleButton, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxBitmapToggleButton_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapToggleButton_SetValue[1] = {{ wxLua_wxBitmapToggleButton_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmapToggleButton_SetValue }}; -// %wxchkver_3_0_0 void SetValue(bool state); -static int LUACALL wxLua_wxBitmapToggleButton_SetValue(lua_State *L) -{ - // bool state - bool state = wxlua_getbooleantype(L, 2); - // get this - wxBitmapToggleButton * self = (wxBitmapToggleButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmapToggleButton); - // call SetValue - self->SetValue(state); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - -#if (((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmapToggleButton_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBitmapToggleButton_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapToggleButton_constructor1[1] = {{ wxLua_wxBitmapToggleButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxBitmapToggleButton_constructor1 }}; -// %wxchkver_3_0_0 wxBitmapToggleButton(wxWindow* parent, wxWindowID id, const wxBitmap& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& val = wxDefaultValidator, const wxString& name = wxCheckBoxNameStr); -static int LUACALL wxLua_wxBitmapToggleButton_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxCheckBoxNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxCheckBoxNameStr)); - // const wxValidator val = wxDefaultValidator - const wxValidator * val = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxBitmapToggleButton* returns = new wxBitmapToggleButton(parent, id, *label, *pos, *size, style, *val, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapToggleButton); - - return 1; -} - -#endif // (((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) -static int LUACALL wxLua_wxBitmapToggleButton_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapToggleButton_constructor[1] = {{ wxLua_wxBitmapToggleButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxBitmapToggleButton(); -static int LUACALL wxLua_wxBitmapToggleButton_constructor(lua_State *L) -{ - // call constructor - wxBitmapToggleButton* returns = new wxBitmapToggleButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmapToggleButton); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - - - -#if ((((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmapToggleButton_constructor_overload[] = -{ - -#if (((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxBitmapToggleButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxBitmapToggleButton_constructor1 }, -#endif // (((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - { wxLua_wxBitmapToggleButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) -}; -static int s_wxluafunc_wxLua_wxBitmapToggleButton_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmapToggleButton_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) - -void wxLua_wxBitmapToggleButton_delete_function(void** p) -{ - wxBitmapToggleButton* o = (wxBitmapToggleButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBitmapToggleButton_methods[] = { -#if ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapToggleButton_Create, 1, NULL }, -#endif // ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapToggleButton_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmapToggleButton_SetValue, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN) - -#if ((((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) - { "wxBitmapToggleButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBitmapToggleButton_constructor_overload, s_wxluafunc_wxLua_wxBitmapToggleButton_constructor_overload_count, 0 }, -#endif // ((((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) && (wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN)) - - { 0, 0, 0, 0 }, -}; - -int wxBitmapToggleButton_methodCount = sizeof(wxBitmapToggleButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxToggleButton && wxUSE_TOGGLEBTN - - -#if wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX -// --------------------------------------------------------------------------- -// Bind class wxCheckBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCheckBox' -int wxluatype_wxCheckBox = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_Create[] = { &wxluatype_wxCheckBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCheckBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_Create[1] = {{ wxLua_wxCheckBox_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxCheckBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& val = wxDefaultValidator, const wxString& name = "wxCheckBox"); -static int LUACALL wxLua_wxCheckBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCheckBox" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxCheckBox"))); - // const wxValidator val = wxDefaultValidator - const wxValidator * val = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, *val, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_Get3StateValue[] = { &wxluatype_wxCheckBox, NULL }; -static int LUACALL wxLua_wxCheckBox_Get3StateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_Get3StateValue[1] = {{ wxLua_wxCheckBox_Get3StateValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCheckBox_Get3StateValue }}; -// wxCheckBoxState Get3StateValue() const; -static int LUACALL wxLua_wxCheckBox_Get3StateValue(lua_State *L) -{ - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call Get3StateValue - wxCheckBoxState returns = (self->Get3StateValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_GetValue[] = { &wxluatype_wxCheckBox, NULL }; -static int LUACALL wxLua_wxCheckBox_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_GetValue[1] = {{ wxLua_wxCheckBox_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCheckBox_GetValue }}; -// bool GetValue() const; -static int LUACALL wxLua_wxCheckBox_GetValue(lua_State *L) -{ - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call GetValue - bool returns = (self->GetValue()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_Is3State[] = { &wxluatype_wxCheckBox, NULL }; -static int LUACALL wxLua_wxCheckBox_Is3State(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_Is3State[1] = {{ wxLua_wxCheckBox_Is3State, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCheckBox_Is3State }}; -// bool Is3State() const; -static int LUACALL wxLua_wxCheckBox_Is3State(lua_State *L) -{ - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call Is3State - bool returns = (self->Is3State()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_Is3rdStateAllowedForUser[] = { &wxluatype_wxCheckBox, NULL }; -static int LUACALL wxLua_wxCheckBox_Is3rdStateAllowedForUser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_Is3rdStateAllowedForUser[1] = {{ wxLua_wxCheckBox_Is3rdStateAllowedForUser, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCheckBox_Is3rdStateAllowedForUser }}; -// bool Is3rdStateAllowedForUser() const; -static int LUACALL wxLua_wxCheckBox_Is3rdStateAllowedForUser(lua_State *L) -{ - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call Is3rdStateAllowedForUser - bool returns = (self->Is3rdStateAllowedForUser()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_IsChecked[] = { &wxluatype_wxCheckBox, NULL }; -static int LUACALL wxLua_wxCheckBox_IsChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_IsChecked[1] = {{ wxLua_wxCheckBox_IsChecked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCheckBox_IsChecked }}; -// bool IsChecked() const; -static int LUACALL wxLua_wxCheckBox_IsChecked(lua_State *L) -{ - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call IsChecked - bool returns = (self->IsChecked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_Set3StateValue[] = { &wxluatype_wxCheckBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCheckBox_Set3StateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_Set3StateValue[1] = {{ wxLua_wxCheckBox_Set3StateValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCheckBox_Set3StateValue }}; -// void Set3StateValue(const wxCheckBoxState state); -static int LUACALL wxLua_wxCheckBox_Set3StateValue(lua_State *L) -{ - // const wxCheckBoxState state - const wxCheckBoxState state = (const wxCheckBoxState)wxlua_getenumtype(L, 2); - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call Set3StateValue - self->Set3StateValue(state); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_SetValue[] = { &wxluatype_wxCheckBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCheckBox_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_SetValue[1] = {{ wxLua_wxCheckBox_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCheckBox_SetValue }}; -// void SetValue(const bool state); -static int LUACALL wxLua_wxCheckBox_SetValue(lua_State *L) -{ - // const bool state - const bool state = wxlua_getbooleantype(L, 2); - // get this - wxCheckBox * self = (wxCheckBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckBox); - // call SetValue - self->SetValue(state); - - return 0; -} - - -#if ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCheckBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_constructor1[1] = {{ wxLua_wxCheckBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxCheckBox_constructor1 }}; -// wxCheckBox(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& val = wxDefaultValidator, const wxString& name = "wxCheckBox"); -static int LUACALL wxLua_wxCheckBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCheckBox" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxCheckBox"))); - // const wxValidator val = wxDefaultValidator - const wxValidator * val = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCheckBox* returns = new wxCheckBox(parent, id, label, *pos, *size, style, *val, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCheckBox); - - return 1; -} - -#endif // ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxCheckBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_constructor[1] = {{ wxLua_wxCheckBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCheckBox(); -static int LUACALL wxLua_wxCheckBox_constructor(lua_State *L) -{ - // call constructor - wxCheckBox* returns = new wxCheckBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCheckBox); - - return 1; -} - - - - -#if (((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckBox_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxCheckBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxCheckBox_constructor1 }, -#endif // ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxCheckBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCheckBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCheckBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) - -void wxLua_wxCheckBox_delete_function(void** p) -{ - wxCheckBox* o = (wxCheckBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCheckBox_methods[] = { -#if ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Get3StateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_Get3StateValue, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_GetValue, 1, NULL }, - { "Is3State", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_Is3State, 1, NULL }, - { "Is3rdStateAllowedForUser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_Is3rdStateAllowedForUser, 1, NULL }, - { "IsChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_IsChecked, 1, NULL }, - { "Set3StateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_Set3StateValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckBox_SetValue, 1, NULL }, - -#if (((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) - { "wxCheckBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCheckBox_constructor_overload, s_wxluafunc_wxLua_wxCheckBox_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) - - { 0, 0, 0, 0 }, -}; - -int wxCheckBox_methodCount = sizeof(wxCheckBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX - - -#if (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS -// --------------------------------------------------------------------------- -// Bind class wxItemContainerImmutable -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxItemContainerImmutable' -int wxluatype_wxItemContainerImmutable = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_FindString[] = { &wxluatype_wxItemContainerImmutable, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_FindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_FindString[1] = {{ wxLua_wxItemContainerImmutable_FindString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxItemContainerImmutable_FindString }}; -// virtual int FindString(const wxString& s, bool bCase = false) const; -static int LUACALL wxLua_wxItemContainerImmutable_FindString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bCase = false - bool bCase = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call FindString - int returns = (self->FindString(s, bCase)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetCount[] = { &wxluatype_wxItemContainerImmutable, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_GetCount[1] = {{ wxLua_wxItemContainerImmutable_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetCount }}; -// virtual unsigned int GetCount() const; -static int LUACALL wxLua_wxItemContainerImmutable_GetCount(lua_State *L) -{ - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetSelection[] = { &wxluatype_wxItemContainerImmutable, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_GetSelection[1] = {{ wxLua_wxItemContainerImmutable_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetSelection }}; -// virtual int GetSelection() const; //= 0; -static int LUACALL wxLua_wxItemContainerImmutable_GetSelection(lua_State *L) -{ - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetString[] = { &wxluatype_wxItemContainerImmutable, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_GetString[1] = {{ wxLua_wxItemContainerImmutable_GetString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetString }}; -// virtual wxString GetString(unsigned int n); // = 0; -static int LUACALL wxLua_wxItemContainerImmutable_GetString(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call GetString - wxString returns = (self->GetString(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetStringSelection[] = { &wxluatype_wxItemContainerImmutable, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_GetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_GetStringSelection[1] = {{ wxLua_wxItemContainerImmutable_GetStringSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetStringSelection }}; -// wxString GetStringSelection() const; -static int LUACALL wxLua_wxItemContainerImmutable_GetStringSelection(lua_State *L) -{ - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call GetStringSelection - wxString returns = (self->GetStringSelection()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetStrings[] = { &wxluatype_wxItemContainerImmutable, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_GetStrings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_GetStrings[1] = {{ wxLua_wxItemContainerImmutable_GetStrings, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainerImmutable_GetStrings }}; -// wxArrayString GetStrings() const; -static int LUACALL wxLua_wxItemContainerImmutable_GetStrings(lua_State *L) -{ - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call GetStrings - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetStrings()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_IsEmpty[] = { &wxluatype_wxItemContainerImmutable, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_IsEmpty[1] = {{ wxLua_wxItemContainerImmutable_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainerImmutable_IsEmpty }}; -// virtual bool IsEmpty() const; -static int LUACALL wxLua_wxItemContainerImmutable_IsEmpty(lua_State *L) -{ - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_Select[] = { &wxluatype_wxItemContainerImmutable, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_Select(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_Select[1] = {{ wxLua_wxItemContainerImmutable_Select, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainerImmutable_Select }}; -// void Select(int n); -static int LUACALL wxLua_wxItemContainerImmutable_Select(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call Select - self->Select(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_SetSelection[] = { &wxluatype_wxItemContainerImmutable, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_SetSelection[1] = {{ wxLua_wxItemContainerImmutable_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainerImmutable_SetSelection }}; -// virtual void SetSelection(int n); //= 0; -static int LUACALL wxLua_wxItemContainerImmutable_SetSelection(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call SetSelection - self->SetSelection(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_SetString[] = { &wxluatype_wxItemContainerImmutable, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_SetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_SetString[1] = {{ wxLua_wxItemContainerImmutable_SetString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainerImmutable_SetString }}; -// virtual void SetString(unsigned int n, const wxString& s); // = 0; -static int LUACALL wxLua_wxItemContainerImmutable_SetString(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 3); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call SetString - self->SetString(n, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainerImmutable_SetStringSelection[] = { &wxluatype_wxItemContainerImmutable, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxItemContainerImmutable_SetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainerImmutable_SetStringSelection[1] = {{ wxLua_wxItemContainerImmutable_SetStringSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainerImmutable_SetStringSelection }}; -// bool SetStringSelection(const wxString& s); -static int LUACALL wxLua_wxItemContainerImmutable_SetStringSelection(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainerImmutable * self = (wxItemContainerImmutable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainerImmutable); - // call SetStringSelection - bool returns = (self->SetStringSelection(s)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxItemContainerImmutable_delete_function(void** p) -{ - wxItemContainerImmutable* o = (wxItemContainerImmutable*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxItemContainerImmutable_methods[] = { - { "FindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_FindString, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_GetCount, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_GetSelection, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_GetString, 1, NULL }, - { "GetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_GetStringSelection, 1, NULL }, - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - { "GetStrings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_GetStrings, 1, NULL }, -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_IsEmpty, 1, NULL }, - { "Select", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_Select, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_SetSelection, 1, NULL }, - { "SetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_SetString, 1, NULL }, - { "SetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainerImmutable_SetStringSelection, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxItemContainerImmutable_methodCount = sizeof(wxItemContainerImmutable_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - - -#if (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS -// --------------------------------------------------------------------------- -// Bind class wxItemContainer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxItemContainer' -int wxluatype_wxItemContainer = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Append3[] = { &wxluatype_wxItemContainer, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxItemContainer_Append3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Append3[1] = {{ wxLua_wxItemContainer_Append3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_Append3 }}; -// void Append(const wxArrayString& strings); -static int LUACALL wxLua_wxItemContainer_Append3(lua_State *L) -{ - // const wxArrayString strings - wxLuaSmartwxArrayString strings = wxlua_getwxArrayString(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Append - self->Append(strings); - - return 0; -} - -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Append2[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxItemContainer_Append2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Append2[1] = {{ wxLua_wxItemContainer_Append2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_Append2 }}; -// int Append(const wxString& item, wxClientData *clientData); -static int LUACALL wxLua_wxItemContainer_Append2(lua_State *L) -{ - // wxClientData clientData - wxClientData * clientData = (wxClientData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxClientData); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Append - int returns = (self->Append(item, clientData)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Append1[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxItemContainer_Append1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Append1[1] = {{ wxLua_wxItemContainer_Append1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_Append1 }}; -// int Append(const wxString& item, voidptr_long number); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxItemContainer_Append1(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 3); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Append - int returns = (self->Append(item, (void*)number)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Append[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxItemContainer_Append(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Append[1] = {{ wxLua_wxItemContainer_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_Append }}; -// int Append(const wxString& item); -static int LUACALL wxLua_wxItemContainer_Append(lua_State *L) -{ - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Append - int returns = (self->Append(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_AppendString[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxItemContainer_AppendString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_AppendString[1] = {{ wxLua_wxItemContainer_AppendString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_AppendString }}; -// void AppendString(const wxString& item); -static int LUACALL wxLua_wxItemContainer_AppendString(lua_State *L) -{ - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call AppendString - self->AppendString(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Clear[] = { &wxluatype_wxItemContainer, NULL }; -static int LUACALL wxLua_wxItemContainer_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Clear[1] = {{ wxLua_wxItemContainer_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainer_Clear }}; -// virtual void Clear(); //= 0; -static int LUACALL wxLua_wxItemContainer_Clear(lua_State *L) -{ - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Delete[] = { &wxluatype_wxItemContainer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxItemContainer_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Delete[1] = {{ wxLua_wxItemContainer_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_Delete }}; -// virtual void Delete(unsigned int n); //= 0; -static int LUACALL wxLua_wxItemContainer_Delete(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Delete - self->Delete(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_GetClientData[] = { &wxluatype_wxItemContainer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxItemContainer_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_GetClientData[1] = {{ wxLua_wxItemContainer_GetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_GetClientData }}; -// voidptr_long GetClientData(unsigned int n) const; // C++ returns (void *) You get a number here -static int LUACALL wxLua_wxItemContainer_GetClientData(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call GetClientData - wxUIntPtr returns = (wxUIntPtr)self->GetClientData(n); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_GetClientObject[] = { &wxluatype_wxItemContainer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxItemContainer_GetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_GetClientObject[1] = {{ wxLua_wxItemContainer_GetClientObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_GetClientObject }}; -// wxClientData* GetClientObject(unsigned int n) const; -static int LUACALL wxLua_wxItemContainer_GetClientObject(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call GetClientObject - wxClientData* returns = (wxClientData*)self->GetClientObject(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_HasClientObjectData[] = { &wxluatype_wxItemContainer, NULL }; -static int LUACALL wxLua_wxItemContainer_HasClientObjectData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_HasClientObjectData[1] = {{ wxLua_wxItemContainer_HasClientObjectData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainer_HasClientObjectData }}; -// bool HasClientObjectData() const; -static int LUACALL wxLua_wxItemContainer_HasClientObjectData(lua_State *L) -{ - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call HasClientObjectData - bool returns = (self->HasClientObjectData()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_HasClientUntypedData[] = { &wxluatype_wxItemContainer, NULL }; -static int LUACALL wxLua_wxItemContainer_HasClientUntypedData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_HasClientUntypedData[1] = {{ wxLua_wxItemContainer_HasClientUntypedData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxItemContainer_HasClientUntypedData }}; -// bool HasClientUntypedData() const; -static int LUACALL wxLua_wxItemContainer_HasClientUntypedData(lua_State *L) -{ - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call HasClientUntypedData - bool returns = (self->HasClientUntypedData()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Insert2[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxItemContainer_Insert2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Insert2[1] = {{ wxLua_wxItemContainer_Insert2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxItemContainer_Insert2 }}; -// int Insert(const wxString& item, unsigned int pos, wxClientData *clientData); -static int LUACALL wxLua_wxItemContainer_Insert2(lua_State *L) -{ - // wxClientData clientData - wxClientData * clientData = (wxClientData *)wxluaT_getuserdatatype(L, 4, wxluatype_wxClientData); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Insert - int returns = (self->Insert(item, pos, clientData)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Insert1[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxItemContainer_Insert1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Insert1[1] = {{ wxLua_wxItemContainer_Insert1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxItemContainer_Insert1 }}; -// int Insert(const wxString& item, unsigned int pos, voidptr_long number); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxItemContainer_Insert1(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 4); - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Insert - int returns = (self->Insert(item, pos, (void*)number)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Insert[] = { &wxluatype_wxItemContainer, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxItemContainer_Insert(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Insert[1] = {{ wxLua_wxItemContainer_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_Insert }}; -// int Insert(const wxString& item, unsigned int pos); -static int LUACALL wxLua_wxItemContainer_Insert(lua_State *L) -{ - // unsigned int pos - unsigned int pos = (unsigned int)wxlua_getuintegertype(L, 3); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Insert - int returns = (self->Insert(item, pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_Set[] = { &wxluatype_wxItemContainer, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxItemContainer_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Set[1] = {{ wxLua_wxItemContainer_Set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_Set }}; -// void Set(const wxArrayString &items); -static int LUACALL wxLua_wxItemContainer_Set(lua_State *L) -{ - // const wxArrayString items - wxLuaSmartwxArrayString items = wxlua_getwxArrayString(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call Set - self->Set(items); - - return 0; -} - -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_SetClientData[] = { &wxluatype_wxItemContainer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxItemContainer_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_SetClientData[1] = {{ wxLua_wxItemContainer_SetClientData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_SetClientData }}; -// void SetClientData(unsigned int n, voidptr_long number); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxItemContainer_SetClientData(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 3); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call SetClientData - self->SetClientData(n, (void*)number); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxItemContainer_SetClientObject[] = { &wxluatype_wxItemContainer, &wxluatype_TINTEGER, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxItemContainer_SetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_SetClientObject[1] = {{ wxLua_wxItemContainer_SetClientObject, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_SetClientObject }}; -// void SetClientObject(unsigned int n, wxClientData* clientData); -static int LUACALL wxLua_wxItemContainer_SetClientObject(lua_State *L) -{ - // wxClientData clientData - wxClientData * clientData = (wxClientData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxClientData); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxItemContainer * self = (wxItemContainer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxItemContainer); - // call SetClientObject - self->SetClientObject(n, clientData); - - return 0; -} - - - - -#if (((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Append_overload[] = -{ - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - { wxLua_wxItemContainer_Append3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_Append3 }, -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - { wxLua_wxItemContainer_Append2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_Append2 }, - { wxLua_wxItemContainer_Append1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_Append1 }, - { wxLua_wxItemContainer_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxItemContainer_Append }, -}; -static int s_wxluafunc_wxLua_wxItemContainer_Append_overload_count = sizeof(s_wxluafunc_wxLua_wxItemContainer_Append_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxItemContainer_Insert_overload[] = -{ - { wxLua_wxItemContainer_Insert2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxItemContainer_Insert2 }, - { wxLua_wxItemContainer_Insert1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxItemContainer_Insert1 }, - { wxLua_wxItemContainer_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxItemContainer_Insert }, -}; -static int s_wxluafunc_wxLua_wxItemContainer_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxItemContainer_Insert_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) - -void wxLua_wxItemContainer_delete_function(void** p) -{ - wxItemContainer* o = (wxItemContainer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxItemContainer_methods[] = { -#if (((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_Append_overload, s_wxluafunc_wxLua_wxItemContainer_Append_overload_count, 0 }, -#endif // (((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) - - { "AppendString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_AppendString, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_Clear, 1, NULL }, - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_Delete, 1, NULL }, - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_GetClientData, 1, NULL }, - { "GetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_GetClientObject, 1, NULL }, - { "HasClientObjectData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_HasClientObjectData, 1, NULL }, - { "HasClientUntypedData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_HasClientUntypedData, 1, NULL }, - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_Insert_overload, s_wxluafunc_wxLua_wxItemContainer_Insert_overload_count, 0 }, -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) - -#if ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_Set, 1, NULL }, -#endif // ((wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS) && (wxLUA_USE_wxArrayString) - - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_SetClientData, 1, NULL }, - { "SetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxItemContainer_SetClientObject, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxItemContainer_methodCount = sizeof(wxItemContainer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxChoice || wxLUA_USE_wxComboBox || wxLUA_USE_wxListBox ) && wxUSE_CONTROLS - -// --------------------------------------------------------------------------- -// Bind class wxControlWithItems -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxControlWithItems' -int wxluatype_wxControlWithItems = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxControlWithItems_ShouldInheritColours[] = { &wxluatype_wxControlWithItems, NULL }; -static int LUACALL wxLua_wxControlWithItems_ShouldInheritColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxControlWithItems_ShouldInheritColours[1] = {{ wxLua_wxControlWithItems_ShouldInheritColours, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxControlWithItems_ShouldInheritColours }}; -// virtual bool ShouldInheritColours() const; -static int LUACALL wxLua_wxControlWithItems_ShouldInheritColours(lua_State *L) -{ - // get this - wxControlWithItems * self = (wxControlWithItems *)wxluaT_getuserdatatype(L, 1, wxluatype_wxControlWithItems); - // call ShouldInheritColours - bool returns = (self->ShouldInheritColours()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - -void wxLua_wxControlWithItems_delete_function(void** p) -{ - wxControlWithItems* o = (wxControlWithItems*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxControlWithItems_methods[] = { - { "ShouldInheritColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxControlWithItems_ShouldInheritColours, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxControlWithItems_methodCount = sizeof(wxControlWithItems_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxChoice && wxUSE_CHOICE -// --------------------------------------------------------------------------- -// Bind class wxChoice -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxChoice' -int wxluatype_wxChoice = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoice_Command[] = { &wxluatype_wxChoice, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxChoice_Command(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoice_Command[1] = {{ wxLua_wxChoice_Command, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxChoice_Command }}; -// void Command(wxCommandEvent& event); -static int LUACALL wxLua_wxChoice_Command(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxChoice * self = (wxChoice *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChoice); - // call Command - self->Command(*event); - - return 0; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoice_Create[] = { &wxluatype_wxChoice, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxChoice_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoice_Create[1] = {{ wxLua_wxChoice_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxChoice_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxChoice"); -static int LUACALL wxLua_wxChoice_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxChoice" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxChoice"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 6 ? wxlua_getwxArrayString(L, 6) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxChoice * self = (wxChoice *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChoice); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, choices, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoice_GetCurrentSelection[] = { &wxluatype_wxChoice, NULL }; -static int LUACALL wxLua_wxChoice_GetCurrentSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoice_GetCurrentSelection[1] = {{ wxLua_wxChoice_GetCurrentSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxChoice_GetCurrentSelection }}; -// int GetCurrentSelection() const; -static int LUACALL wxLua_wxChoice_GetCurrentSelection(lua_State *L) -{ - // get this - wxChoice * self = (wxChoice *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChoice); - // call GetCurrentSelection - int returns = (self->GetCurrentSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoice_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxChoice_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoice_constructor1[1] = {{ wxLua_wxChoice_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxChoice_constructor1 }}; -// wxChoice(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxChoice"); -static int LUACALL wxLua_wxChoice_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxChoice" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxChoice"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 5 ? wxlua_getwxArrayString(L, 5) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxChoice* returns = new wxChoice(parent, id, *pos, *size, choices, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoice); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxChoice_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoice_constructor[1] = {{ wxLua_wxChoice_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxChoice(); -static int LUACALL wxLua_wxChoice_constructor(lua_State *L) -{ - // call constructor - wxChoice* returns = new wxChoice(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoice); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxChoice && wxUSE_CHOICE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoice_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxChoice_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxChoice_constructor1 }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxChoice_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxChoice_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxChoice_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxChoice && wxUSE_CHOICE) - -void wxLua_wxChoice_delete_function(void** p) -{ - wxChoice* o = (wxChoice*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxChoice_methods[] = { - { "Command", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChoice_Command, 1, NULL }, - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChoice_Create, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetCurrentSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChoice_GetCurrentSelection, 1, NULL }, - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxChoice && wxUSE_CHOICE) - { "wxChoice", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxChoice_constructor_overload, s_wxluafunc_wxLua_wxChoice_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxChoice && wxUSE_CHOICE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxChoice && wxUSE_CHOICE) - - { 0, 0, 0, 0 }, -}; - -int wxChoice_methodCount = sizeof(wxChoice_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxChoice && wxUSE_CHOICE - - -#if wxLUA_USE_wxComboBox && wxUSE_COMBOBOX -// --------------------------------------------------------------------------- -// Bind class wxComboBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxComboBox' -int wxluatype_wxComboBox = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_CanCopy[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_CanCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_CanCopy[1] = {{ wxLua_wxComboBox_CanCopy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_CanCopy }}; -// bool CanCopy() const; -static int LUACALL wxLua_wxComboBox_CanCopy(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call CanCopy - bool returns = (self->CanCopy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_CanCut[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_CanCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_CanCut[1] = {{ wxLua_wxComboBox_CanCut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_CanCut }}; -// bool CanCut() const; -static int LUACALL wxLua_wxComboBox_CanCut(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call CanCut - bool returns = (self->CanCut()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_CanPaste[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_CanPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_CanPaste[1] = {{ wxLua_wxComboBox_CanPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_CanPaste }}; -// bool CanPaste() const; -static int LUACALL wxLua_wxComboBox_CanPaste(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call CanPaste - bool returns = (self->CanPaste()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_CanRedo[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_CanRedo[1] = {{ wxLua_wxComboBox_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_CanRedo }}; -// bool CanRedo() const; -static int LUACALL wxLua_wxComboBox_CanRedo(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_CanUndo[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_CanUndo[1] = {{ wxLua_wxComboBox_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_CanUndo }}; -// bool CanUndo() const; -static int LUACALL wxLua_wxComboBox_CanUndo(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Copy[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Copy[1] = {{ wxLua_wxComboBox_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_Copy }}; -// void Copy(); -static int LUACALL wxLua_wxComboBox_Copy(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Copy - self->Copy(); - - return 0; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Create[] = { &wxluatype_wxComboBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Create[1] = {{ wxLua_wxComboBox_Create, WXLUAMETHOD_METHOD, 3, 10, s_wxluatypeArray_wxLua_wxComboBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxComboBox"); -static int LUACALL wxLua_wxComboBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxComboBox" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxComboBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 7 ? wxlua_getwxArrayString(L, 7) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = "" - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, choices, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Cut[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Cut[1] = {{ wxLua_wxComboBox_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_Cut }}; -// void Cut(); -static int LUACALL wxLua_wxComboBox_Cut(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Cut - self->Cut(); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_GetCurrentSelection[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_GetCurrentSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_GetCurrentSelection[1] = {{ wxLua_wxComboBox_GetCurrentSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_GetCurrentSelection }}; -// %wxchkver_2_8 virtual int GetCurrentSelection() const; -static int LUACALL wxLua_wxComboBox_GetCurrentSelection(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call GetCurrentSelection - int returns = (self->GetCurrentSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_GetInsertionPoint[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_GetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_GetInsertionPoint[1] = {{ wxLua_wxComboBox_GetInsertionPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_GetInsertionPoint }}; -// long GetInsertionPoint() const; -static int LUACALL wxLua_wxComboBox_GetInsertionPoint(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call GetInsertionPoint - long returns = (self->GetInsertionPoint()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_GetLastPosition[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_GetLastPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_GetLastPosition[1] = {{ wxLua_wxComboBox_GetLastPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_GetLastPosition }}; -// long GetLastPosition() const; -static int LUACALL wxLua_wxComboBox_GetLastPosition(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call GetLastPosition - long returns = (self->GetLastPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_GetValue[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_GetValue[1] = {{ wxLua_wxComboBox_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_GetValue }}; -// wxString GetValue() const; -static int LUACALL wxLua_wxComboBox_GetValue(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Paste[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Paste[1] = {{ wxLua_wxComboBox_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_Paste }}; -// void Paste(); -static int LUACALL wxLua_wxComboBox_Paste(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Paste - self->Paste(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Redo[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Redo[1] = {{ wxLua_wxComboBox_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_Redo }}; -// void Redo(); -static int LUACALL wxLua_wxComboBox_Redo(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Redo - self->Redo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Remove[] = { &wxluatype_wxComboBox, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboBox_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Remove[1] = {{ wxLua_wxComboBox_Remove, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboBox_Remove }}; -// void Remove(long from, long to); -static int LUACALL wxLua_wxComboBox_Remove(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Remove - self->Remove(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Replace[] = { &wxluatype_wxComboBox, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboBox_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Replace[1] = {{ wxLua_wxComboBox_Replace, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxComboBox_Replace }}; -// void Replace(long from, long to, const wxString& text); -static int LUACALL wxLua_wxComboBox_Replace(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Replace - self->Replace(from, to, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_SetInsertionPoint[] = { &wxluatype_wxComboBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboBox_SetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_SetInsertionPoint[1] = {{ wxLua_wxComboBox_SetInsertionPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboBox_SetInsertionPoint }}; -// void SetInsertionPoint(long pos); -static int LUACALL wxLua_wxComboBox_SetInsertionPoint(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call SetInsertionPoint - self->SetInsertionPoint(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_SetInsertionPointEnd[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_SetInsertionPointEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_SetInsertionPointEnd[1] = {{ wxLua_wxComboBox_SetInsertionPointEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_SetInsertionPointEnd }}; -// void SetInsertionPointEnd(); -static int LUACALL wxLua_wxComboBox_SetInsertionPointEnd(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call SetInsertionPointEnd - self->SetInsertionPointEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_SetSelection[] = { &wxluatype_wxComboBox, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboBox_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_SetSelection[1] = {{ wxLua_wxComboBox_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboBox_SetSelection }}; -// void SetSelection(long from, long to); -static int LUACALL wxLua_wxComboBox_SetSelection(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call SetSelection - self->SetSelection(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_SetValue[] = { &wxluatype_wxComboBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboBox_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_SetValue[1] = {{ wxLua_wxComboBox_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboBox_SetValue }}; -// void SetValue(const wxString& text); -static int LUACALL wxLua_wxComboBox_SetValue(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call SetValue - self->SetValue(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_Undo[] = { &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxComboBox_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_Undo[1] = {{ wxLua_wxComboBox_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboBox_Undo }}; -// void Undo(); -static int LUACALL wxLua_wxComboBox_Undo(lua_State *L) -{ - // get this - wxComboBox * self = (wxComboBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboBox); - // call Undo - self->Undo(); - - return 0; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_constructor1[1] = {{ wxLua_wxComboBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxComboBox_constructor1 }}; -// wxComboBox(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxComboBox"); -static int LUACALL wxLua_wxComboBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxComboBox" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxComboBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 6 ? wxlua_getwxArrayString(L, 6) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = "" - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxComboBox* returns = new wxComboBox(parent, id, value, *pos, *size, choices, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxComboBox); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxComboBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_constructor[1] = {{ wxLua_wxComboBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxComboBox(); -static int LUACALL wxLua_wxComboBox_constructor(lua_State *L) -{ - // call constructor - wxComboBox* returns = new wxComboBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxComboBox); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboBox_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxComboBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxComboBox_constructor1 }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxComboBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxComboBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxComboBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - -void wxLua_wxComboBox_delete_function(void** p) -{ - wxComboBox* o = (wxComboBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxComboBox_methods[] = { - { "CanCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_CanCopy, 1, NULL }, - { "CanCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_CanCut, 1, NULL }, - { "CanPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_CanPaste, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_CanUndo, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Copy, 1, NULL }, - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Create, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Cut, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - { "GetCurrentSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_GetCurrentSelection, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - { "GetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_GetInsertionPoint, 1, NULL }, - { "GetLastPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_GetLastPosition, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_GetValue, 1, NULL }, - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Paste, 1, NULL }, - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Redo, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Remove, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Replace, 1, NULL }, - { "SetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_SetInsertionPoint, 1, NULL }, - { "SetInsertionPointEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_SetInsertionPointEnd, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_SetSelection, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_SetValue, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboBox_Undo, 1, NULL }, - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - { "wxComboBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxComboBox_constructor_overload, s_wxluafunc_wxLua_wxComboBox_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - { 0, 0, 0, 0 }, -}; - -int wxComboBox_methodCount = sizeof(wxComboBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxComboBox && wxUSE_COMBOBOX - - -#if wxUSE_COMBOCTRL -// --------------------------------------------------------------------------- -// Bind struct wxComboCtrlFeatures -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxComboCtrlFeatures' -int wxluatype_wxComboCtrlFeatures = WXLUA_TUNKNOWN; - - - -void wxLua_wxComboCtrlFeatures_delete_function(void** p) -{ - wxComboCtrlFeatures* o = (wxComboCtrlFeatures*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxComboCtrlFeatures_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxComboCtrlFeatures_methodCount = sizeof(wxComboCtrlFeatures_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxComboCtrlFeatures_enums[] = { -#if wxUSE_COMBOCTRL - { "All", wxComboCtrlFeatures::All }, - { "BitmapButton", wxComboCtrlFeatures::BitmapButton }, - { "Borderless", wxComboCtrlFeatures::Borderless }, - { "ButtonSpacing", wxComboCtrlFeatures::ButtonSpacing }, - { "MovableButton", wxComboCtrlFeatures::MovableButton }, - { "PaintControl", wxComboCtrlFeatures::PaintControl }, - { "PaintWritable", wxComboCtrlFeatures::PaintWritable }, - { "TextIndent", wxComboCtrlFeatures::TextIndent }, -#endif // wxUSE_COMBOCTRL - - { NULL, 0, }, -}; -int wxComboCtrlFeatures_enumCount = sizeof(wxComboCtrlFeatures_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxUSE_COMBOCTRL - - -#if wxUSE_COMBOCTRL -// --------------------------------------------------------------------------- -// Bind class wxComboCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxComboCtrl' -int wxluatype_wxComboCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_AppendText[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_AppendText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_AppendText[1] = {{ wxLua_wxComboCtrl_AppendText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_AppendText }}; -// virtual void AppendText(const wxString& text); -static int LUACALL wxLua_wxComboCtrl_AppendText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call AppendText - self->AppendText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_CanRedo[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_CanRedo[1] = {{ wxLua_wxComboCtrl_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_CanRedo }}; -// virtual bool CanRedo() const; -static int LUACALL wxLua_wxComboCtrl_CanRedo(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_CanUndo[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_CanUndo[1] = {{ wxLua_wxComboCtrl_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_CanUndo }}; -// virtual bool CanUndo() const; -static int LUACALL wxLua_wxComboCtrl_CanUndo(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_ChangeValue[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_ChangeValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_ChangeValue[1] = {{ wxLua_wxComboCtrl_ChangeValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_ChangeValue }}; -// virtual void ChangeValue(const wxString& value); -static int LUACALL wxLua_wxComboCtrl_ChangeValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call ChangeValue - self->ChangeValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Copy[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Copy[1] = {{ wxLua_wxComboCtrl_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Copy }}; -// virtual void Copy(); -static int LUACALL wxLua_wxComboCtrl_Copy(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Copy - self->Copy(); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Create[] = { &wxluatype_wxComboCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Create[1] = {{ wxLua_wxComboCtrl_Create, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxComboCtrl_Create }}; -// const wxString& name); -static int LUACALL wxLua_wxComboCtrl_Create(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 9); - // const wxValidator validator - const wxValidator * validator = (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator); - // long style - long style = (long)wxlua_getnumbertype(L, 7); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Cut[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Cut[1] = {{ wxLua_wxComboCtrl_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Cut }}; -// virtual void Cut(); -static int LUACALL wxLua_wxComboCtrl_Cut(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Cut - self->Cut(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Dismiss[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Dismiss(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Dismiss[1] = {{ wxLua_wxComboCtrl_Dismiss, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Dismiss }}; -// virtual void Dismiss(); -static int LUACALL wxLua_wxComboCtrl_Dismiss(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Dismiss - self->Dismiss(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Enable[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Enable[1] = {{ wxLua_wxComboCtrl_Enable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxComboCtrl_Enable }}; -// virtual bool Enable(bool enable = true); -static int LUACALL wxLua_wxComboCtrl_Enable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Enable - bool returns = (self->Enable(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_EnablePopupAnimation[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_EnablePopupAnimation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_EnablePopupAnimation[1] = {{ wxLua_wxComboCtrl_EnablePopupAnimation, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxComboCtrl_EnablePopupAnimation }}; -// void EnablePopupAnimation( bool enable = true ); -static int LUACALL wxLua_wxComboCtrl_EnablePopupAnimation(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call EnablePopupAnimation - self->EnablePopupAnimation(enable); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBackgroundColour[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBackgroundColour[1] = {{ wxLua_wxComboCtrl_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBackgroundColour }}; -// wxColour GetBackgroundColour() const; -static int LUACALL wxLua_wxComboCtrl_GetBackgroundColour(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapDisabled1[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapDisabled1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled1[1] = {{ wxLua_wxComboCtrl_GetBitmapDisabled1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapDisabled1 }}; -// %wxchkver_3_1_6 wxBitmap GetBitmapDisabled() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapDisabled1(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapDisabled - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapDisabled()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapDisabled[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapDisabled(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled[1] = {{ wxLua_wxComboCtrl_GetBitmapDisabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapDisabled }}; -// !%wxchkver_3_1_6 const wxBitmap& GetBitmapDisabled() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapDisabled(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapDisabled - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmapDisabled(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapHover1[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapHover1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover1[1] = {{ wxLua_wxComboCtrl_GetBitmapHover1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapHover1 }}; -// %wxchkver_3_1_6 wxBitmap GetBitmapHover() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapHover1(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapHover - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapHover()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapHover[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapHover(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover[1] = {{ wxLua_wxComboCtrl_GetBitmapHover, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapHover }}; -// !%wxchkver_3_1_6 const wxBitmap& GetBitmapHover() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapHover(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapHover - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmapHover(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapNormal1[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapNormal1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal1[1] = {{ wxLua_wxComboCtrl_GetBitmapNormal1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapNormal1 }}; -// %wxchkver_3_1_6 wxBitmap GetBitmapNormal() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapNormal1(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapNormal - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapNormal()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapNormal[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapNormal(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal[1] = {{ wxLua_wxComboCtrl_GetBitmapNormal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapNormal }}; -// !%wxchkver_3_1_6 const wxBitmap& GetBitmapNormal() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapNormal(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapNormal - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmapNormal(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapPressed1[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapPressed1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed1[1] = {{ wxLua_wxComboCtrl_GetBitmapPressed1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapPressed1 }}; -// %wxchkver_3_1_6 wxBitmap GetBitmapPressed() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapPressed1(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapPressed - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapPressed()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapPressed[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetBitmapPressed(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed[1] = {{ wxLua_wxComboCtrl_GetBitmapPressed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapPressed }}; -// !%wxchkver_3_1_6 const wxBitmap& GetBitmapPressed() const; -static int LUACALL wxLua_wxComboCtrl_GetBitmapPressed(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetBitmapPressed - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmapPressed(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetButton[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetButton[1] = {{ wxLua_wxComboCtrl_GetButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetButton }}; -// wxWindow *GetButton() const; -static int LUACALL wxLua_wxComboCtrl_GetButton(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetButton - wxWindow* returns = (wxWindow*)self->GetButton(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetButtonSize[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetButtonSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetButtonSize[1] = {{ wxLua_wxComboCtrl_GetButtonSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetButtonSize }}; -// wxSize GetButtonSize(); -static int LUACALL wxLua_wxComboCtrl_GetButtonSize(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetButtonSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetButtonSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetCustomPaintWidth[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetCustomPaintWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetCustomPaintWidth[1] = {{ wxLua_wxComboCtrl_GetCustomPaintWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetCustomPaintWidth }}; -// int GetCustomPaintWidth() const; -static int LUACALL wxLua_wxComboCtrl_GetCustomPaintWidth(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetCustomPaintWidth - int returns = (self->GetCustomPaintWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetHint[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetHint[1] = {{ wxLua_wxComboCtrl_GetHint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetHint }}; -// virtual wxString GetHint() const; -static int LUACALL wxLua_wxComboCtrl_GetHint(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetHint - wxString returns = (self->GetHint()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetInsertionPoint[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetInsertionPoint[1] = {{ wxLua_wxComboCtrl_GetInsertionPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetInsertionPoint }}; -// virtual long GetInsertionPoint() const; -static int LUACALL wxLua_wxComboCtrl_GetInsertionPoint(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetInsertionPoint - long returns = (self->GetInsertionPoint()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetInternalFlags[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetInternalFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetInternalFlags[1] = {{ wxLua_wxComboCtrl_GetInternalFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetInternalFlags }}; -// wxUint32 GetInternalFlags() const; -static int LUACALL wxLua_wxComboCtrl_GetInternalFlags(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetInternalFlags - wxUint32 returns = (self->GetInternalFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetLastPosition[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetLastPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetLastPosition[1] = {{ wxLua_wxComboCtrl_GetLastPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetLastPosition }}; -// virtual long GetLastPosition() const; -static int LUACALL wxLua_wxComboCtrl_GetLastPosition(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetLastPosition - long returns = (self->GetLastPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetMainWindowOfCompositeControl[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetMainWindowOfCompositeControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetMainWindowOfCompositeControl[1] = {{ wxLua_wxComboCtrl_GetMainWindowOfCompositeControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetMainWindowOfCompositeControl }}; -// virtual wxWindow *GetMainWindowOfCompositeControl(); -static int LUACALL wxLua_wxComboCtrl_GetMainWindowOfCompositeControl(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetMainWindowOfCompositeControl - wxWindow* returns = (wxWindow*)self->GetMainWindowOfCompositeControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetPopupControl[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetPopupControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetPopupControl[1] = {{ wxLua_wxComboCtrl_GetPopupControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetPopupControl }}; -// wxComboPopup* GetPopupControl(); -static int LUACALL wxLua_wxComboCtrl_GetPopupControl(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetPopupControl - wxComboPopup* returns = (wxComboPopup*)self->GetPopupControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxComboPopup); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetPopupWindow[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetPopupWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetPopupWindow[1] = {{ wxLua_wxComboCtrl_GetPopupWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetPopupWindow }}; -// wxWindow *GetPopupWindow() const; -static int LUACALL wxLua_wxComboCtrl_GetPopupWindow(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetPopupWindow - wxWindow* returns = (wxWindow*)self->GetPopupWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetPopupWindowState[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetPopupWindowState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetPopupWindowState[1] = {{ wxLua_wxComboCtrl_GetPopupWindowState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetPopupWindowState }}; -// wxByte GetPopupWindowState() const; -static int LUACALL wxLua_wxComboCtrl_GetPopupWindowState(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetPopupWindowState - wxByte returns = (self->GetPopupWindowState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetRange[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetRange[1] = {{ wxLua_wxComboCtrl_GetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboCtrl_GetRange }}; -// virtual wxString GetRange(long from, long to) const; -static int LUACALL wxLua_wxComboCtrl_GetRange(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetRange - wxString returns = (self->GetRange(from, to)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetSelection[] = { &wxluatype_wxComboCtrl, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetSelection[1] = {{ wxLua_wxComboCtrl_GetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboCtrl_GetSelection }}; -// virtual void GetSelection(long *from, long *to) const; -static int LUACALL wxLua_wxComboCtrl_GetSelection(lua_State *L) -{ - // long to - long * to = (long *)wxlua_touserdata(L, 3); - // long from - long * from = (long *)wxlua_touserdata(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetSelection - self->GetSelection(from, to); - - return 0; -} - - -#if (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetTextCtrl[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetTextCtrl[1] = {{ wxLua_wxComboCtrl_GetTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetTextCtrl }}; -// wxTextCtrl *GetTextCtrl() const; -static int LUACALL wxLua_wxComboCtrl_GetTextCtrl(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetTextCtrl - wxTextCtrl* returns = (wxTextCtrl*)self->GetTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxUSE_COMBOCTRL) - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetTextRect[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetTextRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetTextRect[1] = {{ wxLua_wxComboCtrl_GetTextRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetTextRect }}; -// const wxRect& GetTextRect() const; -static int LUACALL wxLua_wxComboCtrl_GetTextRect(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetTextRect - const wxRect* returns = (const wxRect*)&self->GetTextRect(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_GetValue[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetValue[1] = {{ wxLua_wxComboCtrl_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetValue }}; -// virtual wxString GetValue() const; -static int LUACALL wxLua_wxComboCtrl_GetValue(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_HidePopup[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_HidePopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_HidePopup[1] = {{ wxLua_wxComboCtrl_HidePopup, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxComboCtrl_HidePopup }}; -// virtual void HidePopup(bool generateEvent=false); -static int LUACALL wxLua_wxComboCtrl_HidePopup(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool generateEvent = false - bool generateEvent = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call HidePopup - self->HidePopup(generateEvent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_IsCreated[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_IsCreated(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_IsCreated[1] = {{ wxLua_wxComboCtrl_IsCreated, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_IsCreated }}; -// bool IsCreated() const; -static int LUACALL wxLua_wxComboCtrl_IsCreated(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call IsCreated - bool returns = (self->IsCreated()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_IsEditable[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_IsEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_IsEditable[1] = {{ wxLua_wxComboCtrl_IsEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_IsEditable }}; -// virtual bool IsEditable() const; -static int LUACALL wxLua_wxComboCtrl_IsEditable(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call IsEditable - bool returns = (self->IsEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_IsKeyPopupToggle[] = { &wxluatype_wxComboCtrl, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxComboCtrl_IsKeyPopupToggle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_IsKeyPopupToggle[1] = {{ wxLua_wxComboCtrl_IsKeyPopupToggle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_IsKeyPopupToggle }}; -// virtual bool IsKeyPopupToggle(const wxKeyEvent& event) const; -static int LUACALL wxLua_wxComboCtrl_IsKeyPopupToggle(lua_State *L) -{ - // const wxKeyEvent event - const wxKeyEvent * event = (const wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call IsKeyPopupToggle - bool returns = (self->IsKeyPopupToggle(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_IsPopupShown[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_IsPopupShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_IsPopupShown[1] = {{ wxLua_wxComboCtrl_IsPopupShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_IsPopupShown }}; -// bool IsPopupShown() const; -static int LUACALL wxLua_wxComboCtrl_IsPopupShown(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call IsPopupShown - bool returns = (self->IsPopupShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_IsPopupWindowState[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_IsPopupWindowState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_IsPopupWindowState[1] = {{ wxLua_wxComboCtrl_IsPopupWindowState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_IsPopupWindowState }}; -// bool IsPopupWindowState( int state ); -static int LUACALL wxLua_wxComboCtrl_IsPopupWindowState(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call IsPopupWindowState - bool returns = (self->IsPopupWindowState(state)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_OnButtonClick[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_OnButtonClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_OnButtonClick[1] = {{ wxLua_wxComboCtrl_OnButtonClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_OnButtonClick }}; -// virtual void OnButtonClick(); -static int LUACALL wxLua_wxComboCtrl_OnButtonClick(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call OnButtonClick - self->OnButtonClick(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_OnPopupDismiss[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_OnPopupDismiss(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_OnPopupDismiss[1] = {{ wxLua_wxComboCtrl_OnPopupDismiss, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_OnPopupDismiss }}; -// void OnPopupDismiss(bool generateEvent); -static int LUACALL wxLua_wxComboCtrl_OnPopupDismiss(lua_State *L) -{ - // bool generateEvent - bool generateEvent = wxlua_getbooleantype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call OnPopupDismiss - self->OnPopupDismiss(generateEvent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Paste[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Paste[1] = {{ wxLua_wxComboCtrl_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Paste }}; -// virtual void Paste(); -static int LUACALL wxLua_wxComboCtrl_Paste(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Paste - self->Paste(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Popup[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Popup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Popup[1] = {{ wxLua_wxComboCtrl_Popup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Popup }}; -// virtual void Popup(); -static int LUACALL wxLua_wxComboCtrl_Popup(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Popup - self->Popup(); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_PrepareBackground[] = { &wxluatype_wxComboCtrl, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_PrepareBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_PrepareBackground[1] = {{ wxLua_wxComboCtrl_PrepareBackground, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxComboCtrl_PrepareBackground }}; -// virtual void PrepareBackground( wxDC& dc, const wxRect& rect, int flags ) const; -static int LUACALL wxLua_wxComboCtrl_PrepareBackground(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 4); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call PrepareBackground - self->PrepareBackground(*dc, *rect, flags); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Redo[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Redo[1] = {{ wxLua_wxComboCtrl_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Redo }}; -// virtual void Redo(); -static int LUACALL wxLua_wxComboCtrl_Redo(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Redo - self->Redo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Remove[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Remove[1] = {{ wxLua_wxComboCtrl_Remove, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboCtrl_Remove }}; -// virtual void Remove(long from, long to); -static int LUACALL wxLua_wxComboCtrl_Remove(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Remove - self->Remove(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Replace[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Replace[1] = {{ wxLua_wxComboCtrl_Replace, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxComboCtrl_Replace }}; -// virtual void Replace(long from, long to, const wxString& value); -static int LUACALL wxLua_wxComboCtrl_Replace(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Replace - self->Replace(from, to, value); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetBackgroundColour[] = { &wxluatype_wxComboCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetBackgroundColour[1] = {{ wxLua_wxComboCtrl_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetBackgroundColour }}; -// virtual bool SetBackgroundColour(const wxColour& colour); -static int LUACALL wxLua_wxComboCtrl_SetBackgroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetBackgroundColour - bool returns = (self->SetBackgroundColour(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - -#if (wxLUA_USE_wxBitmap) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetButtonBitmaps[] = { &wxluatype_wxComboCtrl, &wxluatype_wxBitmap, &wxluatype_TBOOLEAN, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetButtonBitmaps(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetButtonBitmaps[1] = {{ wxLua_wxComboCtrl_SetButtonBitmaps, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxComboCtrl_SetButtonBitmaps }}; -// void SetButtonBitmaps( const wxBitmap& bmpNormal, bool pushButtonBg = false, const wxBitmap& bmpPressed = wxNullBitmap, const wxBitmap& bmpHover = wxNullBitmap, const wxBitmap& bmpDisabled = wxNullBitmap ); -static int LUACALL wxLua_wxComboCtrl_SetButtonBitmaps(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap bmpDisabled = wxNullBitmap - const wxBitmap * bmpDisabled = (argCount >= 6 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 6, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bmpHover = wxNullBitmap - const wxBitmap * bmpHover = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bmpPressed = wxNullBitmap - const wxBitmap * bmpPressed = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // bool pushButtonBg = false - bool pushButtonBg = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxBitmap bmpNormal - const wxBitmap * bmpNormal = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetButtonBitmaps - self->SetButtonBitmaps(*bmpNormal, pushButtonBg, *bmpPressed, *bmpHover, *bmpDisabled); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetButtonPosition[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetButtonPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetButtonPosition[1] = {{ wxLua_wxComboCtrl_SetButtonPosition, WXLUAMETHOD_METHOD, 1, 5, s_wxluatypeArray_wxLua_wxComboCtrl_SetButtonPosition }}; -// void SetButtonPosition( int width = -1, int height = -1, int side = wxRIGHT, int spacingX = 0 ); -static int LUACALL wxLua_wxComboCtrl_SetButtonPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int spacingX = 0 - int spacingX = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int side = wxRIGHT - int side = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRIGHT); - // int height = -1 - int height = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int width = -1 - int width = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetButtonPosition - self->SetButtonPosition(width, height, side, spacingX); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetCtrlMainWnd[] = { &wxluatype_wxComboCtrl, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetCtrlMainWnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetCtrlMainWnd[1] = {{ wxLua_wxComboCtrl_SetCtrlMainWnd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetCtrlMainWnd }}; -// void SetCtrlMainWnd( wxWindow* wnd ); -static int LUACALL wxLua_wxComboCtrl_SetCtrlMainWnd(lua_State *L) -{ - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetCtrlMainWnd - self->SetCtrlMainWnd(wnd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetCustomPaintWidth[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetCustomPaintWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetCustomPaintWidth[1] = {{ wxLua_wxComboCtrl_SetCustomPaintWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetCustomPaintWidth }}; -// void SetCustomPaintWidth( int width ); -static int LUACALL wxLua_wxComboCtrl_SetCustomPaintWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetCustomPaintWidth - self->SetCustomPaintWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetEditable[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetEditable[1] = {{ wxLua_wxComboCtrl_SetEditable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetEditable }}; -// virtual void SetEditable(bool editable); -static int LUACALL wxLua_wxComboCtrl_SetEditable(lua_State *L) -{ - // bool editable - bool editable = wxlua_getbooleantype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetEditable - self->SetEditable(editable); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetFont[] = { &wxluatype_wxComboCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetFont[1] = {{ wxLua_wxComboCtrl_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetFont }}; -// virtual bool SetFont(const wxFont& font); -static int LUACALL wxLua_wxComboCtrl_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetFont - bool returns = (self->SetFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_COMBOCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetForegroundColour[] = { &wxluatype_wxComboCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetForegroundColour[1] = {{ wxLua_wxComboCtrl_SetForegroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetForegroundColour }}; -// virtual bool SetForegroundColour(const wxColour& colour); -static int LUACALL wxLua_wxComboCtrl_SetForegroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetForegroundColour - bool returns = (self->SetForegroundColour(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetHint[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetHint[1] = {{ wxLua_wxComboCtrl_SetHint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetHint }}; -// virtual bool SetHint(const wxString& hint); -static int LUACALL wxLua_wxComboCtrl_SetHint(lua_State *L) -{ - // const wxString hint - const wxString hint = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetHint - bool returns = (self->SetHint(hint)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetInsertionPoint[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetInsertionPoint[1] = {{ wxLua_wxComboCtrl_SetInsertionPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetInsertionPoint }}; -// virtual void SetInsertionPoint(long pos); -static int LUACALL wxLua_wxComboCtrl_SetInsertionPoint(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetInsertionPoint - self->SetInsertionPoint(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupAnchor[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetPopupAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetPopupAnchor[1] = {{ wxLua_wxComboCtrl_SetPopupAnchor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupAnchor }}; -// void SetPopupAnchor( int anchorSide ); -static int LUACALL wxLua_wxComboCtrl_SetPopupAnchor(lua_State *L) -{ - // int anchorSide - int anchorSide = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetPopupAnchor - self->SetPopupAnchor(anchorSide); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupControl[] = { &wxluatype_wxComboCtrl, &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetPopupControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetPopupControl[1] = {{ wxLua_wxComboCtrl_SetPopupControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupControl }}; -// void SetPopupControl( wxComboPopup* popup ); -static int LUACALL wxLua_wxComboCtrl_SetPopupControl(lua_State *L) -{ - // wxComboPopup popup - wxComboPopup * popup = (wxComboPopup *)wxluaT_getuserdatatype(L, 2, wxluatype_wxComboPopup); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetPopupControl - self->SetPopupControl(popup); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupExtents[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetPopupExtents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetPopupExtents[1] = {{ wxLua_wxComboCtrl_SetPopupExtents, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupExtents }}; -// void SetPopupExtents( int extLeft, int extRight ); -static int LUACALL wxLua_wxComboCtrl_SetPopupExtents(lua_State *L) -{ - // int extRight - int extRight = (int)wxlua_getnumbertype(L, 3); - // int extLeft - int extLeft = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetPopupExtents - self->SetPopupExtents(extLeft, extRight); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupMaxHeight[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetPopupMaxHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetPopupMaxHeight[1] = {{ wxLua_wxComboCtrl_SetPopupMaxHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupMaxHeight }}; -// void SetPopupMaxHeight( int height ); -static int LUACALL wxLua_wxComboCtrl_SetPopupMaxHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetPopupMaxHeight - self->SetPopupMaxHeight(height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupMinWidth[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetPopupMinWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetPopupMinWidth[1] = {{ wxLua_wxComboCtrl_SetPopupMinWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetPopupMinWidth }}; -// void SetPopupMinWidth( int width ); -static int LUACALL wxLua_wxComboCtrl_SetPopupMinWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetPopupMinWidth - self->SetPopupMinWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetSelection[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetSelection[1] = {{ wxLua_wxComboCtrl_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboCtrl_SetSelection }}; -// virtual void SetSelection(long from, long to); -static int LUACALL wxLua_wxComboCtrl_SetSelection(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetSelection - self->SetSelection(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetText[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetText[1] = {{ wxLua_wxComboCtrl_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetText }}; -// void SetText(const wxString& value); -static int LUACALL wxLua_wxComboCtrl_SetText(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetText - self->SetText(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetTextCtrlStyle[] = { &wxluatype_wxComboCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetTextCtrlStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetTextCtrlStyle[1] = {{ wxLua_wxComboCtrl_SetTextCtrlStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetTextCtrlStyle }}; -// void SetTextCtrlStyle( int style ); -static int LUACALL wxLua_wxComboCtrl_SetTextCtrlStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetTextCtrlStyle - self->SetTextCtrlStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetValue[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetValue[1] = {{ wxLua_wxComboCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetValue }}; -// virtual void SetValue(const wxString& value); -static int LUACALL wxLua_wxComboCtrl_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_SetValueByUser[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_SetValueByUser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_SetValueByUser[1] = {{ wxLua_wxComboCtrl_SetValueByUser, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_SetValueByUser }}; -// void SetValueByUser(const wxString& value); -static int LUACALL wxLua_wxComboCtrl_SetValueByUser(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call SetValueByUser - self->SetValueByUser(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_ShouldDrawFocus[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_ShouldDrawFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_ShouldDrawFocus[1] = {{ wxLua_wxComboCtrl_ShouldDrawFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_ShouldDrawFocus }}; -// bool ShouldDrawFocus() const; -static int LUACALL wxLua_wxComboCtrl_ShouldDrawFocus(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call ShouldDrawFocus - bool returns = (self->ShouldDrawFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Show[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Show[1] = {{ wxLua_wxComboCtrl_Show, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxComboCtrl_Show }}; -// virtual bool Show(bool show = true); -static int LUACALL wxLua_wxComboCtrl_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Show - bool returns = (self->Show(show)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_ShowPopup[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_ShowPopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_ShowPopup[1] = {{ wxLua_wxComboCtrl_ShowPopup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_ShowPopup }}; -// virtual void ShowPopup(); -static int LUACALL wxLua_wxComboCtrl_ShowPopup(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call ShowPopup - self->ShowPopup(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_Undo[] = { &wxluatype_wxComboCtrl, NULL }; -static int LUACALL wxLua_wxComboCtrl_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_Undo[1] = {{ wxLua_wxComboCtrl_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_Undo }}; -// virtual void Undo(); -static int LUACALL wxLua_wxComboCtrl_Undo(lua_State *L) -{ - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call Undo - self->Undo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_UseAltPopupWindow[] = { &wxluatype_wxComboCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxComboCtrl_UseAltPopupWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_UseAltPopupWindow[1] = {{ wxLua_wxComboCtrl_UseAltPopupWindow, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxComboCtrl_UseAltPopupWindow }}; -// void UseAltPopupWindow( bool enable = true ); -static int LUACALL wxLua_wxComboCtrl_UseAltPopupWindow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call UseAltPopupWindow - self->UseAltPopupWindow(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_WriteText[] = { &wxluatype_wxComboCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboCtrl_WriteText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_WriteText[1] = {{ wxLua_wxComboCtrl_WriteText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboCtrl_WriteText }}; -// virtual void WriteText(const wxString& text); -static int LUACALL wxLua_wxComboCtrl_WriteText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxComboCtrl * self = (wxComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboCtrl); - // call WriteText - self->WriteText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboCtrl_delete[] = { &wxluatype_wxComboCtrl, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_delete }}; - -static int LUACALL wxLua_wxComboCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_constructor[1] = {{ wxLua_wxComboCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxComboCtrl(); -static int LUACALL wxLua_wxComboCtrl_constructor(lua_State *L) -{ - // call constructor - wxComboCtrl* returns = new wxComboCtrl(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxComboCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxComboCtrl); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapDisabled1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapDisabled1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapDisabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapDisabled }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled_overload_count = sizeof(s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapHover1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapHover1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapHover, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapHover }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover_overload_count = sizeof(s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapNormal1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapNormal1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapNormal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapNormal }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal_overload_count = sizeof(s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapPressed1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapPressed1 }, -#endif // ((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - -#if ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) - { wxLua_wxComboCtrl_GetBitmapPressed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboCtrl_GetBitmapPressed }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed_overload_count = sizeof(s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap)) - -void wxLua_wxComboCtrl_delete_function(void** p) -{ - wxComboCtrl* o = (wxComboCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxComboCtrl_methods[] = { - { "AppendText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_AppendText, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_CanUndo, 1, NULL }, - { "ChangeValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_ChangeValue, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_COMBOCTRL) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_COMBOCTRL) - - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Cut, 1, NULL }, - { "Dismiss", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Dismiss, 1, NULL }, - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Enable, 1, NULL }, - { "EnablePopupAnimation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_EnablePopupAnimation, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - -#if (((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap)) - { "GetBitmapDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled_overload, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapDisabled_overload_count, 0 }, - { "GetBitmapHover", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover_overload, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapHover_overload_count, 0 }, - { "GetBitmapNormal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal_overload, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapNormal_overload_count, 0 }, - { "GetBitmapPressed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed_overload, s_wxluafunc_wxLua_wxComboCtrl_GetBitmapPressed_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap))||(((!wxCHECK_VERSION(3,1,6)) && (wxUSE_COMBOCTRL)) && (wxLUA_USE_wxBitmap)) - - { "GetButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetButton, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - { "GetButtonSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetButtonSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - - { "GetCustomPaintWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetCustomPaintWidth, 1, NULL }, - { "GetHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetHint, 1, NULL }, - { "GetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetInsertionPoint, 1, NULL }, - { "GetInternalFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetInternalFlags, 1, NULL }, - { "GetLastPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetLastPosition, 1, NULL }, - { "GetMainWindowOfCompositeControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetMainWindowOfCompositeControl, 1, NULL }, - { "GetPopupControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetPopupControl, 1, NULL }, - { "GetPopupWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetPopupWindow, 1, NULL }, - { "GetPopupWindowState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetPopupWindowState, 1, NULL }, - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetRange, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetSelection, 1, NULL }, - -#if (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxUSE_COMBOCTRL) - { "GetTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetTextCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxUSE_COMBOCTRL) - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - { "GetTextRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetTextRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_GetValue, 1, NULL }, - { "HidePopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_HidePopup, 1, NULL }, - { "IsCreated", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_IsCreated, 1, NULL }, - { "IsEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_IsEditable, 1, NULL }, - { "IsKeyPopupToggle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_IsKeyPopupToggle, 1, NULL }, - { "IsPopupShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_IsPopupShown, 1, NULL }, - { "IsPopupWindowState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_IsPopupWindowState, 1, NULL }, - { "OnButtonClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_OnButtonClick, 1, NULL }, - { "OnPopupDismiss", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_OnPopupDismiss, 1, NULL }, - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Paste, 1, NULL }, - { "Popup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Popup, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) - { "PrepareBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_PrepareBackground, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) - - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Redo, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Remove, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Replace, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - -#if (wxLUA_USE_wxBitmap) && (wxUSE_COMBOCTRL) - { "SetButtonBitmaps", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetButtonBitmaps, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_COMBOCTRL) - - { "SetButtonPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetButtonPosition, 1, NULL }, - { "SetCtrlMainWnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetCtrlMainWnd, 1, NULL }, - { "SetCustomPaintWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetCustomPaintWidth, 1, NULL }, - { "SetEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetEditable, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxUSE_COMBOCTRL) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_COMBOCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - { "SetForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetForegroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_COMBOCTRL) - - { "SetHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetHint, 1, NULL }, - { "SetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetInsertionPoint, 1, NULL }, - { "SetPopupAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetPopupAnchor, 1, NULL }, - { "SetPopupControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetPopupControl, 1, NULL }, - { "SetPopupExtents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetPopupExtents, 1, NULL }, - { "SetPopupMaxHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetPopupMaxHeight, 1, NULL }, - { "SetPopupMinWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetPopupMinWidth, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetSelection, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetText, 1, NULL }, - { "SetTextCtrlStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetTextCtrlStyle, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetValue, 1, NULL }, - { "SetValueByUser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_SetValueByUser, 1, NULL }, - { "ShouldDrawFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_ShouldDrawFocus, 1, NULL }, - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Show, 1, NULL }, - { "ShowPopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_ShowPopup, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_Undo, 1, NULL }, - { "UseAltPopupWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_UseAltPopupWindow, 1, NULL }, - { "WriteText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboCtrl_WriteText, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxComboCtrl_delete, 1, NULL }, - { "wxComboCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxComboCtrl_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxComboCtrl_methodCount = sizeof(wxComboCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxComboCtrl_enums[] = { -#if wxUSE_COMBOCTRL - { "Animating", wxComboCtrl::Animating }, - { "Hidden", wxComboCtrl::Hidden }, - { "Visible", wxComboCtrl::Visible }, -#endif // wxUSE_COMBOCTRL - - { NULL, 0, }, -}; -int wxComboCtrl_enumCount = sizeof(wxComboCtrl_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxUSE_COMBOCTRL - - -#if wxUSE_COMBOCTRL -// --------------------------------------------------------------------------- -// Bind class wxComboPopup -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxComboPopup' -int wxluatype_wxComboPopup = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_Create[] = { &wxluatype_wxComboPopup, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxComboPopup_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_Create[1] = {{ wxLua_wxComboPopup_Create, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboPopup_Create }}; -// virtual bool Create(wxWindow* parent); // = 0; -static int LUACALL wxLua_wxComboPopup_Create(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call Create - bool returns = (self->Create(parent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_DestroyPopup[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_DestroyPopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_DestroyPopup[1] = {{ wxLua_wxComboPopup_DestroyPopup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_DestroyPopup }}; -// virtual void DestroyPopup(); -static int LUACALL wxLua_wxComboPopup_DestroyPopup(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call DestroyPopup - self->DestroyPopup(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_Dismiss[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_Dismiss(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_Dismiss[1] = {{ wxLua_wxComboPopup_Dismiss, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_Dismiss }}; -// void Dismiss(); -static int LUACALL wxLua_wxComboPopup_Dismiss(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call Dismiss - self->Dismiss(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_FindItem[] = { &wxluatype_wxComboPopup, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxComboPopup_FindItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_FindItem[1] = {{ wxLua_wxComboPopup_FindItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxComboPopup_FindItem }}; -// virtual bool FindItem(const wxString& item, wxString* trueItem=NULL); -static int LUACALL wxLua_wxComboPopup_FindItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString trueItem = NULL - wxString * trueItem = (argCount >= 3 ? (wxString *)wxlua_touserdata(L, 3) : NULL); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call FindItem - bool returns = (self->FindItem(item, trueItem)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_GetAdjustedSize[] = { &wxluatype_wxComboPopup, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxComboPopup_GetAdjustedSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_GetAdjustedSize[1] = {{ wxLua_wxComboPopup_GetAdjustedSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxComboPopup_GetAdjustedSize }}; -// virtual wxSize GetAdjustedSize( int minWidth, int prefHeight, int maxHeight ); -static int LUACALL wxLua_wxComboPopup_GetAdjustedSize(lua_State *L) -{ - // int maxHeight - int maxHeight = (int)wxlua_getnumbertype(L, 4); - // int prefHeight - int prefHeight = (int)wxlua_getnumbertype(L, 3); - // int minWidth - int minWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call GetAdjustedSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetAdjustedSize(minWidth, prefHeight, maxHeight)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_GetComboCtrl[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_GetComboCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_GetComboCtrl[1] = {{ wxLua_wxComboPopup_GetComboCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_GetComboCtrl }}; -// wxComboCtrl* GetComboCtrl() const; -static int LUACALL wxLua_wxComboPopup_GetComboCtrl(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call GetComboCtrl - wxComboCtrl* returns = (wxComboCtrl*)self->GetComboCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxComboCtrl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_GetControl[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_GetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_GetControl[1] = {{ wxLua_wxComboPopup_GetControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_GetControl }}; -// virtual wxWindow *GetControl(); // = 0; -static int LUACALL wxLua_wxComboPopup_GetControl(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call GetControl - wxWindow* returns = (wxWindow*)self->GetControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_GetStringValue[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_GetStringValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_GetStringValue[1] = {{ wxLua_wxComboPopup_GetStringValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_GetStringValue }}; -// virtual wxString GetStringValue() const; // = 0; -static int LUACALL wxLua_wxComboPopup_GetStringValue(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call GetStringValue - wxString returns = (self->GetStringValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_Init[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_Init[1] = {{ wxLua_wxComboPopup_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_Init }}; -// virtual void Init(); -static int LUACALL wxLua_wxComboPopup_Init(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_IsCreated[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_IsCreated(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_IsCreated[1] = {{ wxLua_wxComboPopup_IsCreated, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_IsCreated }}; -// bool IsCreated() const; -static int LUACALL wxLua_wxComboPopup_IsCreated(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call IsCreated - bool returns = (self->IsCreated()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_LazyCreate[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_LazyCreate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_LazyCreate[1] = {{ wxLua_wxComboPopup_LazyCreate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_LazyCreate }}; -// virtual bool LazyCreate(); -static int LUACALL wxLua_wxComboPopup_LazyCreate(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call LazyCreate - bool returns = (self->LazyCreate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_OnComboCharEvent[] = { &wxluatype_wxComboPopup, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxComboPopup_OnComboCharEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_OnComboCharEvent[1] = {{ wxLua_wxComboPopup_OnComboCharEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboPopup_OnComboCharEvent }}; -// virtual void OnComboCharEvent( wxKeyEvent& event ); -static int LUACALL wxLua_wxComboPopup_OnComboCharEvent(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call OnComboCharEvent - self->OnComboCharEvent(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_OnComboDoubleClick[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_OnComboDoubleClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_OnComboDoubleClick[1] = {{ wxLua_wxComboPopup_OnComboDoubleClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_OnComboDoubleClick }}; -// virtual void OnComboDoubleClick(); -static int LUACALL wxLua_wxComboPopup_OnComboDoubleClick(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call OnComboDoubleClick - self->OnComboDoubleClick(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_OnComboKeyEvent[] = { &wxluatype_wxComboPopup, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxComboPopup_OnComboKeyEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_OnComboKeyEvent[1] = {{ wxLua_wxComboPopup_OnComboKeyEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboPopup_OnComboKeyEvent }}; -// virtual void OnComboKeyEvent( wxKeyEvent& event ); -static int LUACALL wxLua_wxComboPopup_OnComboKeyEvent(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call OnComboKeyEvent - self->OnComboKeyEvent(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_OnDismiss[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_OnDismiss(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_OnDismiss[1] = {{ wxLua_wxComboPopup_OnDismiss, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_OnDismiss }}; -// virtual void OnDismiss(); -static int LUACALL wxLua_wxComboPopup_OnDismiss(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call OnDismiss - self->OnDismiss(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_OnPopup[] = { &wxluatype_wxComboPopup, NULL }; -static int LUACALL wxLua_wxComboPopup_OnPopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_OnPopup[1] = {{ wxLua_wxComboPopup_OnPopup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_OnPopup }}; -// virtual void OnPopup(); -static int LUACALL wxLua_wxComboPopup_OnPopup(lua_State *L) -{ - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call OnPopup - self->OnPopup(); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_PaintComboControl[] = { &wxluatype_wxComboPopup, &wxluatype_wxDC, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxComboPopup_PaintComboControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_PaintComboControl[1] = {{ wxLua_wxComboPopup_PaintComboControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxComboPopup_PaintComboControl }}; -// virtual void PaintComboControl( wxDC& dc, const wxRect& rect ); -static int LUACALL wxLua_wxComboPopup_PaintComboControl(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call PaintComboControl - self->PaintComboControl(*dc, *rect); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_SetStringValue[] = { &wxluatype_wxComboPopup, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxComboPopup_SetStringValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_SetStringValue[1] = {{ wxLua_wxComboPopup_SetStringValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxComboPopup_SetStringValue }}; -// virtual void SetStringValue( const wxString& value ); -static int LUACALL wxLua_wxComboPopup_SetStringValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxComboPopup * self = (wxComboPopup *)wxluaT_getuserdatatype(L, 1, wxluatype_wxComboPopup); - // call SetStringValue - self->SetStringValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxComboPopup_delete[] = { &wxluatype_wxComboPopup, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxComboPopup_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxComboPopup_delete }}; - - - - -void wxLua_wxComboPopup_delete_function(void** p) -{ - wxComboPopup* o = (wxComboPopup*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxComboPopup_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_Create, 1, NULL }, - { "DestroyPopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_DestroyPopup, 1, NULL }, - { "Dismiss", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_Dismiss, 1, NULL }, - { "FindItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_FindItem, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - { "GetAdjustedSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_GetAdjustedSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_COMBOCTRL) - - { "GetComboCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_GetComboCtrl, 1, NULL }, - { "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_GetControl, 1, NULL }, - { "GetStringValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_GetStringValue, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_Init, 1, NULL }, - { "IsCreated", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_IsCreated, 1, NULL }, - { "LazyCreate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_LazyCreate, 1, NULL }, - { "OnComboCharEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_OnComboCharEvent, 1, NULL }, - { "OnComboDoubleClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_OnComboDoubleClick, 1, NULL }, - { "OnComboKeyEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_OnComboKeyEvent, 1, NULL }, - { "OnDismiss", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_OnDismiss, 1, NULL }, - { "OnPopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_OnPopup, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) - { "PaintComboControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_PaintComboControl, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_COMBOCTRL) - - { "SetStringValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxComboPopup_SetStringValue, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxComboPopup_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxComboPopup_methodCount = sizeof(wxComboPopup_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_COMBOCTRL - - -#if wxLUA_USE_wxGauge && wxUSE_GAUGE -// --------------------------------------------------------------------------- -// Bind class wxGauge -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGauge' -int wxluatype_wxGauge = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_Create[] = { &wxluatype_wxGauge, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGauge_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_Create[1] = {{ wxLua_wxGauge_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxGauge_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, int range, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxGA_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxGauge"); -static int LUACALL wxLua_wxGauge_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxGauge" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxGauge"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxGA_HORIZONTAL - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxGA_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // int range - int range = (int)wxlua_getnumbertype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call Create - bool returns = (self->Create(parent, id, range, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_GetBezelFace[] = { &wxluatype_wxGauge, NULL }; -static int LUACALL wxLua_wxGauge_GetBezelFace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_GetBezelFace[1] = {{ wxLua_wxGauge_GetBezelFace, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGauge_GetBezelFace }}; -// !%wxchkver_3_1_0 int GetBezelFace() const; -static int LUACALL wxLua_wxGauge_GetBezelFace(lua_State *L) -{ - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call GetBezelFace - int returns = (self->GetBezelFace()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_GetRange[] = { &wxluatype_wxGauge, NULL }; -static int LUACALL wxLua_wxGauge_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_GetRange[1] = {{ wxLua_wxGauge_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGauge_GetRange }}; -// int GetRange() const; -static int LUACALL wxLua_wxGauge_GetRange(lua_State *L) -{ - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call GetRange - int returns = (self->GetRange()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_GetShadowWidth[] = { &wxluatype_wxGauge, NULL }; -static int LUACALL wxLua_wxGauge_GetShadowWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_GetShadowWidth[1] = {{ wxLua_wxGauge_GetShadowWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGauge_GetShadowWidth }}; -// !%wxchkver_3_1_0 int GetShadowWidth() const; -static int LUACALL wxLua_wxGauge_GetShadowWidth(lua_State *L) -{ - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call GetShadowWidth - int returns = (self->GetShadowWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_GetValue[] = { &wxluatype_wxGauge, NULL }; -static int LUACALL wxLua_wxGauge_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_GetValue[1] = {{ wxLua_wxGauge_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGauge_GetValue }}; -// int GetValue() const; -static int LUACALL wxLua_wxGauge_GetValue(lua_State *L) -{ - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_IsVertical[] = { &wxluatype_wxGauge, NULL }; -static int LUACALL wxLua_wxGauge_IsVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_IsVertical[1] = {{ wxLua_wxGauge_IsVertical, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGauge_IsVertical }}; -// bool IsVertical() const; -static int LUACALL wxLua_wxGauge_IsVertical(lua_State *L) -{ - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call IsVertical - bool returns = (self->IsVertical()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_Pulse[] = { &wxluatype_wxGauge, NULL }; -static int LUACALL wxLua_wxGauge_Pulse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_Pulse[1] = {{ wxLua_wxGauge_Pulse, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGauge_Pulse }}; -// %wxchkver_2_8 void Pulse(); -static int LUACALL wxLua_wxGauge_Pulse(lua_State *L) -{ - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call Pulse - self->Pulse(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_SetBezelFace[] = { &wxluatype_wxGauge, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGauge_SetBezelFace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_SetBezelFace[1] = {{ wxLua_wxGauge_SetBezelFace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGauge_SetBezelFace }}; -// !%wxchkver_3_1_0 void SetBezelFace(int width); -static int LUACALL wxLua_wxGauge_SetBezelFace(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call SetBezelFace - self->SetBezelFace(width); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_SetRange[] = { &wxluatype_wxGauge, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGauge_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_SetRange[1] = {{ wxLua_wxGauge_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGauge_SetRange }}; -// void SetRange(int range); -static int LUACALL wxLua_wxGauge_SetRange(lua_State *L) -{ - // int range - int range = (int)wxlua_getnumbertype(L, 2); - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call SetRange - self->SetRange(range); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_SetShadowWidth[] = { &wxluatype_wxGauge, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGauge_SetShadowWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_SetShadowWidth[1] = {{ wxLua_wxGauge_SetShadowWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGauge_SetShadowWidth }}; -// !%wxchkver_3_1_0 void SetShadowWidth(int width); -static int LUACALL wxLua_wxGauge_SetShadowWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call SetShadowWidth - self->SetShadowWidth(width); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_SetValue[] = { &wxluatype_wxGauge, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGauge_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_SetValue[1] = {{ wxLua_wxGauge_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGauge_SetValue }}; -// void SetValue(int pos); -static int LUACALL wxLua_wxGauge_SetValue(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxGauge * self = (wxGauge *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGauge); - // call SetValue - self->SetValue(pos); - - return 0; -} - - -#if ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGauge_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGauge_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_constructor1[1] = {{ wxLua_wxGauge_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxGauge_constructor1 }}; -// wxGauge(wxWindow* parent, wxWindowID id, int range, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxGA_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxGauge"); -static int LUACALL wxLua_wxGauge_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxGauge" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxGauge"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxGA_HORIZONTAL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxGA_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // int range - int range = (int)wxlua_getnumbertype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGauge* returns = new wxGauge(parent, id, range, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGauge); - - return 1; -} - -#endif // ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxGauge_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_constructor[1] = {{ wxLua_wxGauge_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGauge(); -static int LUACALL wxLua_wxGauge_constructor(lua_State *L) -{ - // call constructor - wxGauge* returns = new wxGauge(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGauge); - - return 1; -} - - - - -#if (((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxGauge && wxUSE_GAUGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGauge_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxGauge_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxGauge_constructor1 }, -#endif // ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxGauge_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGauge_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGauge_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxGauge && wxUSE_GAUGE) - -void wxLua_wxGauge_delete_function(void** p) -{ - wxGauge* o = (wxGauge*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGauge_methods[] = { -#if ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "GetBezelFace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_GetBezelFace, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_GetRange, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "GetShadowWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_GetShadowWidth, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_GetValue, 1, NULL }, - { "IsVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_IsVertical, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "Pulse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_Pulse, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "SetBezelFace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_SetBezelFace, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_SetRange, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "SetShadowWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_SetShadowWidth, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGauge && wxUSE_GAUGE) - - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGauge_SetValue, 1, NULL }, - -#if (((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxGauge && wxUSE_GAUGE) - { "wxGauge", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGauge_constructor_overload, s_wxluafunc_wxLua_wxGauge_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxGauge && wxUSE_GAUGE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxGauge && wxUSE_GAUGE) - - { 0, 0, 0, 0 }, -}; - -int wxGauge_methodCount = sizeof(wxGauge_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGauge && wxUSE_GAUGE - - -#if wxLUA_USE_wxListBox && wxUSE_LISTBOX -// --------------------------------------------------------------------------- -// Bind class wxListBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListBox' -int wxluatype_wxListBox = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_Create[] = { &wxluatype_wxListBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_Create[1] = {{ wxLua_wxListBox_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxListBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListBox"); -static int LUACALL wxLua_wxListBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListBox" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxListBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 6 ? wxlua_getwxArrayString(L, 6) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, choices, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_Deselect[] = { &wxluatype_wxListBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListBox_Deselect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_Deselect[1] = {{ wxLua_wxListBox_Deselect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListBox_Deselect }}; -// void Deselect(int n); -static int LUACALL wxLua_wxListBox_Deselect(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call Deselect - self->Deselect(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_GetSelections[] = { &wxluatype_wxListBox, NULL }; -static int LUACALL wxLua_wxListBox_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_GetSelections[1] = {{ wxLua_wxListBox_GetSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListBox_GetSelections }}; -// %override wxLua_wxListBox_GetSelections -// int GetSelections(wxArrayInt& selections) const -static int LUACALL wxLua_wxListBox_GetSelections(lua_State *L) -{ - // wxArrayInt selections - wxArrayInt selections; - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call GetSelections - int returns = self->GetSelections(selections); - // push the result number - lua_pushinteger(L, returns); - // push the selects as a table - wxlua_pushwxArrayInttable(L, selections); - - return 2; -} - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_HitTest[] = { &wxluatype_wxListBox, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxListBox_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_HitTest[1] = {{ wxLua_wxListBox_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListBox_HitTest }}; -// %wxchkver_2_8 int HitTest(const wxPoint& point) const; -static int LUACALL wxLua_wxListBox_HitTest(lua_State *L) -{ - // const wxPoint point - const wxPoint * point = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call HitTest - int returns = (self->HitTest(*point)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_InsertItems[] = { &wxluatype_wxListBox, &wxluatype_wxArrayString, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListBox_InsertItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_InsertItems[1] = {{ wxLua_wxListBox_InsertItems, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListBox_InsertItems }}; -// void InsertItems(const wxArrayString& items, int pos); -static int LUACALL wxLua_wxListBox_InsertItems(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // const wxArrayString items - wxLuaSmartwxArrayString items = wxlua_getwxArrayString(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call InsertItems - self->InsertItems(items, pos); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_IsSelected[] = { &wxluatype_wxListBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListBox_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_IsSelected[1] = {{ wxLua_wxListBox_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListBox_IsSelected }}; -// bool IsSelected(int n) const; -static int LUACALL wxLua_wxListBox_IsSelected(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call IsSelected - bool returns = (self->IsSelected(n)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_Set[] = { &wxluatype_wxListBox, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxListBox_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_Set[1] = {{ wxLua_wxListBox_Set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListBox_Set }}; -// void Set(const wxArrayString& choices); -static int LUACALL wxLua_wxListBox_Set(lua_State *L) -{ - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call Set - self->Set(choices); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_SetFirstItem[] = { &wxluatype_wxListBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListBox_SetFirstItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_SetFirstItem[1] = {{ wxLua_wxListBox_SetFirstItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListBox_SetFirstItem }}; -// void SetFirstItem(int n); -static int LUACALL wxLua_wxListBox_SetFirstItem(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call SetFirstItem - self->SetFirstItem(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_SetSelection[] = { &wxluatype_wxListBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxListBox_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_SetSelection[1] = {{ wxLua_wxListBox_SetSelection, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxListBox_SetSelection }}; -// void SetSelection(int n, bool select = true); -static int LUACALL wxLua_wxListBox_SetSelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool select = true - bool select = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call SetSelection - self->SetSelection(n, select); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_SetStringSelection[] = { &wxluatype_wxListBox, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxListBox_SetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_SetStringSelection[1] = {{ wxLua_wxListBox_SetStringSelection, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxListBox_SetStringSelection }}; -// void SetStringSelection(const wxString& string, bool select = true); -static int LUACALL wxLua_wxListBox_SetStringSelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool select = true - bool select = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxListBox * self = (wxListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListBox); - // call SetStringSelection - self->SetStringSelection(string, select); - - return 0; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_constructor1[1] = {{ wxLua_wxListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxListBox_constructor1 }}; -// wxListBox(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListBox"); -static int LUACALL wxLua_wxListBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListBox" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxListBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 5 ? wxlua_getwxArrayString(L, 5) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxListBox* returns = new wxListBox(parent, id, *pos, *size, choices, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListBox); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxListBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_constructor[1] = {{ wxLua_wxListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxListBox(); -static int LUACALL wxLua_wxListBox_constructor(lua_State *L) -{ - // call constructor - wxListBox* returns = new wxListBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListBox); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListBox && wxUSE_LISTBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListBox_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxListBox_constructor1 }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxListBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxListBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListBox && wxUSE_LISTBOX) - -void wxLua_wxListBox_delete_function(void** p) -{ - wxListBox* o = (wxListBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListBox_methods[] = { -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_Create, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Deselect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_Deselect, 1, NULL }, - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_GetSelections, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_HitTest, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - { "InsertItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_InsertItems, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_IsSelected, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_Set, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - - { "SetFirstItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_SetFirstItem, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_SetSelection, 1, NULL }, - { "SetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListBox_SetStringSelection, 1, NULL }, - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListBox && wxUSE_LISTBOX) - { "wxListBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListBox_constructor_overload, s_wxluafunc_wxLua_wxListBox_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListBox && wxUSE_LISTBOX) - - { 0, 0, 0, 0 }, -}; - -int wxListBox_methodCount = sizeof(wxListBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListBox && wxUSE_LISTBOX - - -#if (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) -// --------------------------------------------------------------------------- -// Bind class wxCheckListBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCheckListBox' -int wxluatype_wxCheckListBox = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckListBox_Check[] = { &wxluatype_wxCheckListBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCheckListBox_Check(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckListBox_Check[1] = {{ wxLua_wxCheckListBox_Check, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxCheckListBox_Check }}; -// void Check(int item, bool check = true); -static int LUACALL wxLua_wxCheckListBox_Check(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool check = true - bool check = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxCheckListBox * self = (wxCheckListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckListBox); - // call Check - self->Check(item, check); - - return 0; -} - - -#if ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckListBox_Create[] = { &wxluatype_wxCheckListBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCheckListBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckListBox_Create[1] = {{ wxLua_wxCheckListBox_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxCheckListBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxCheckListBox"); -static int LUACALL wxLua_wxCheckListBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCheckListBox" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxCheckListBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 6 ? wxlua_getwxArrayString(L, 6) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxCheckListBox * self = (wxCheckListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckListBox); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, choices, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckListBox_IsChecked[] = { &wxluatype_wxCheckListBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCheckListBox_IsChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckListBox_IsChecked[1] = {{ wxLua_wxCheckListBox_IsChecked, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCheckListBox_IsChecked }}; -// bool IsChecked(int item) const; -static int LUACALL wxLua_wxCheckListBox_IsChecked(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxCheckListBox * self = (wxCheckListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCheckListBox); - // call IsChecked - bool returns = (self->IsChecked(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCheckListBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCheckListBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckListBox_constructor1[1] = {{ wxLua_wxCheckListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxCheckListBox_constructor1 }}; -// wxCheckListBox(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxCheckListBox"); -static int LUACALL wxLua_wxCheckListBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCheckListBox" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxCheckListBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 5 ? wxlua_getwxArrayString(L, 5) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCheckListBox* returns = new wxCheckListBox(parent, id, *pos, *size, choices, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCheckListBox); - - return 1; -} - -#endif // ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxCheckListBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckListBox_constructor[1] = {{ wxLua_wxCheckListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCheckListBox(); -static int LUACALL wxLua_wxCheckListBox_constructor(lua_State *L) -{ - // call constructor - wxCheckListBox* returns = new wxCheckListBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCheckListBox); - - return 1; -} - - - - -#if (((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCheckListBox_constructor_overload[] = -{ - -#if ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxCheckListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxCheckListBox_constructor1 }, -#endif // ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxCheckListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCheckListBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCheckListBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) - -void wxLua_wxCheckListBox_delete_function(void** p) -{ - wxCheckListBox* o = (wxCheckListBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCheckListBox_methods[] = { - { "Check", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckListBox_Check, 1, NULL }, - -#if ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckListBox_Create, 1, NULL }, -#endif // ((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "IsChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCheckListBox_IsChecked, 1, NULL }, - -#if (((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) - { "wxCheckListBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCheckListBox_constructor_overload, s_wxluafunc_wxLua_wxCheckListBox_constructor_overload_count, 0 }, -#endif // (((((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX)) - - { 0, 0, 0, 0 }, -}; - -int wxCheckListBox_methodCount = sizeof(wxCheckListBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxCheckListBox && wxUSE_CHECKLISTBOX) && (wxLUA_USE_wxListBox && wxUSE_LISTBOX) - - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL -// --------------------------------------------------------------------------- -// Bind class wxListCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListCtrl' -int wxluatype_wxListCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_Arrange[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_Arrange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_Arrange[1] = {{ wxLua_wxListCtrl_Arrange, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxListCtrl_Arrange }}; -// bool Arrange(int flag = wxLIST_ALIGN_DEFAULT); -static int LUACALL wxLua_wxListCtrl_Arrange(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flag = wxLIST_ALIGN_DEFAULT - int flag = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxLIST_ALIGN_DEFAULT); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call Arrange - bool returns = (self->Arrange(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_AssignImageList[] = { &wxluatype_wxListCtrl, &wxluatype_wxImageList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_AssignImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_AssignImageList[1] = {{ wxLua_wxListCtrl_AssignImageList, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_AssignImageList }}; -// void AssignImageList(%ungc wxImageList *imageList, int which); -static int LUACALL wxLua_wxListCtrl_AssignImageList(lua_State *L) -{ - // int which - int which = (int)wxlua_getnumbertype(L, 3); - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - if (wxluaO_isgcobject(L, imageList)) wxluaO_undeletegcobject(L, imageList); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call AssignImageList - self->AssignImageList(imageList, which); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_ClearAll[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_ClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_ClearAll[1] = {{ wxLua_wxListCtrl_ClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_ClearAll }}; -// void ClearAll(); -static int LUACALL wxLua_wxListCtrl_ClearAll(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call ClearAll - self->ClearAll(); - - return 0; -} - - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_Create[] = { &wxluatype_wxListCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_Create[1] = {{ wxLua_wxListCtrl_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxListCtrl_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListCtrl"); -static int LUACALL wxLua_wxListCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxListCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxLC_ICON - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxLC_ICON); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_DeleteAllItems[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_DeleteAllItems[1] = {{ wxLua_wxListCtrl_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_DeleteAllItems }}; -// bool DeleteAllItems(); -static int LUACALL wxLua_wxListCtrl_DeleteAllItems(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call DeleteAllItems - bool returns = (self->DeleteAllItems()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_DeleteColumn[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_DeleteColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_DeleteColumn[1] = {{ wxLua_wxListCtrl_DeleteColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_DeleteColumn }}; -// bool DeleteColumn(int col); -static int LUACALL wxLua_wxListCtrl_DeleteColumn(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call DeleteColumn - bool returns = (self->DeleteColumn(col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_DeleteItem[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_DeleteItem[1] = {{ wxLua_wxListCtrl_DeleteItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_DeleteItem }}; -// bool DeleteItem(long item); -static int LUACALL wxLua_wxListCtrl_DeleteItem(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call DeleteItem - bool returns = (self->DeleteItem(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_EditLabel[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_EditLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_EditLabel[1] = {{ wxLua_wxListCtrl_EditLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_EditLabel }}; -// void EditLabel(long item); -static int LUACALL wxLua_wxListCtrl_EditLabel(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call EditLabel - self->EditLabel(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_EnsureVisible[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_EnsureVisible[1] = {{ wxLua_wxListCtrl_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_EnsureVisible }}; -// bool EnsureVisible(long item); -static int LUACALL wxLua_wxListCtrl_EnsureVisible(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call EnsureVisible - bool returns = (self->EnsureVisible(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_FindItem2[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_FindItem2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_FindItem2[1] = {{ wxLua_wxListCtrl_FindItem2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxListCtrl_FindItem2 }}; -// long FindItem(long start, const wxPoint& pt, int direction); -static int LUACALL wxLua_wxListCtrl_FindItem2(lua_State *L) -{ - // int direction - int direction = (int)wxlua_getnumbertype(L, 4); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call FindItem - long returns = (self->FindItem(start, *pt, direction)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_FindItem1[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_FindItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_FindItem1[1] = {{ wxLua_wxListCtrl_FindItem1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_FindItem1 }}; -// long FindItem(long start, long data); -static int LUACALL wxLua_wxListCtrl_FindItem1(lua_State *L) -{ - // long data - long data = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call FindItem - long returns = (self->FindItem(start, data)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_FindItem[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxListCtrl_FindItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_FindItem[1] = {{ wxLua_wxListCtrl_FindItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxListCtrl_FindItem }}; -// long FindItem(long start, const wxString& str, const bool partial = false); -static int LUACALL wxLua_wxListCtrl_FindItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const bool partial = false - const bool partial = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call FindItem - long returns = (self->FindItem(start, str, partial)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetColumn[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListCtrl_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetColumn[1] = {{ wxLua_wxListCtrl_GetColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_GetColumn }}; -// bool GetColumn(int col, wxListItem& item) const; -static int LUACALL wxLua_wxListCtrl_GetColumn(lua_State *L) -{ - // wxListItem item - wxListItem * item = (wxListItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxListItem); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetColumn - bool returns = (self->GetColumn(col, *item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetColumnCount[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetColumnCount[1] = {{ wxLua_wxListCtrl_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetColumnCount }}; -// int GetColumnCount() const; -static int LUACALL wxLua_wxListCtrl_GetColumnCount(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetColumnCount - int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetColumnWidth[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetColumnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetColumnWidth[1] = {{ wxLua_wxListCtrl_GetColumnWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetColumnWidth }}; -// int GetColumnWidth(int col) const; -static int LUACALL wxLua_wxListCtrl_GetColumnWidth(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetColumnWidth - int returns = (self->GetColumnWidth(col)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetCountPerPage[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetCountPerPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetCountPerPage[1] = {{ wxLua_wxListCtrl_GetCountPerPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetCountPerPage }}; -// int GetCountPerPage() const; -static int LUACALL wxLua_wxListCtrl_GetCountPerPage(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetCountPerPage - int returns = (self->GetCountPerPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((defined(__WXMSW__) || wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetEditControl[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetEditControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetEditControl[1] = {{ wxLua_wxListCtrl_GetEditControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetEditControl }}; -// %win|%wxchkver_2_8 wxTextCtrl* GetEditControl() const; -static int LUACALL wxLua_wxListCtrl_GetEditControl(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetEditControl - wxTextCtrl* returns = (wxTextCtrl*)self->GetEditControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // ((defined(__WXMSW__) || wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetImageList[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetImageList[1] = {{ wxLua_wxListCtrl_GetImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetImageList }}; -// wxImageList* GetImageList(int which) const; -static int LUACALL wxLua_wxListCtrl_GetImageList(lua_State *L) -{ - // int which - int which = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetImageList - wxImageList* returns = (wxImageList*)self->GetImageList(which); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItem[] = { &wxluatype_wxListCtrl, &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItem[1] = {{ wxLua_wxListCtrl_GetItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetItem }}; -// bool GetItem(wxListItem& info) const; -static int LUACALL wxLua_wxListCtrl_GetItem(lua_State *L) -{ - // wxListItem info - wxListItem * info = (wxListItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxListItem); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItem - bool returns = (self->GetItem(*info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemCount[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemCount[1] = {{ wxLua_wxListCtrl_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetItemCount }}; -// int GetItemCount() const; -static int LUACALL wxLua_wxListCtrl_GetItemCount(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemCount - int returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemData[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemData[1] = {{ wxLua_wxListCtrl_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetItemData }}; -// long GetItemData(long item) const; -static int LUACALL wxLua_wxListCtrl_GetItemData(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemData - long returns = (self->GetItemData(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemFont[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemFont[1] = {{ wxLua_wxListCtrl_GetItemFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetItemFont }}; -// wxFont GetItemFont(long item) const; -static int LUACALL wxLua_wxListCtrl_GetItemFont(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetItemFont(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemPosition[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemPosition[1] = {{ wxLua_wxListCtrl_GetItemPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_GetItemPosition }}; -// bool GetItemPosition(long item, wxPoint& pos) const; -static int LUACALL wxLua_wxListCtrl_GetItemPosition(lua_State *L) -{ - // wxPoint pos - wxPoint * pos = (wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemPosition - bool returns = (self->GetItemPosition(item, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemRect[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemRect[1] = {{ wxLua_wxListCtrl_GetItemRect, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxListCtrl_GetItemRect }}; -// bool GetItemRect(long item, wxRect& rect, int code = wxLIST_RECT_BOUNDS) const; -static int LUACALL wxLua_wxListCtrl_GetItemRect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int code = wxLIST_RECT_BOUNDS - int code = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxLIST_RECT_BOUNDS); - // wxRect rect - wxRect * rect = (wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemRect - bool returns = (self->GetItemRect(item, *rect, code)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemSpacing1[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemSpacing1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing1[1] = {{ wxLua_wxListCtrl_GetItemSpacing1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetItemSpacing1 }}; -// %wxchkver_2_6 wxSize GetItemSpacing() const; -static int LUACALL wxLua_wxListCtrl_GetItemSpacing1(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemSpacing - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetItemSpacing()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemSpacing[] = { &wxluatype_wxListCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemSpacing(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing[1] = {{ wxLua_wxListCtrl_GetItemSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetItemSpacing }}; -// !%wxchkver_2_6 int GetItemSpacing(bool isSmall) const; -static int LUACALL wxLua_wxListCtrl_GetItemSpacing(lua_State *L) -{ - // bool isSmall - bool isSmall = wxlua_getbooleantype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemSpacing - int returns = (self->GetItemSpacing(isSmall)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemState[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemState[1] = {{ wxLua_wxListCtrl_GetItemState, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_GetItemState }}; -// int GetItemState(long item, long stateMask) const; -static int LUACALL wxLua_wxListCtrl_GetItemState(lua_State *L) -{ - // long stateMask - long stateMask = (long)wxlua_getnumbertype(L, 3); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemState - int returns = (self->GetItemState(item, stateMask)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetItemText[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemText[1] = {{ wxLua_wxListCtrl_GetItemText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetItemText }}; -// wxString GetItemText(long item) const; -static int LUACALL wxLua_wxListCtrl_GetItemText(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetItemText - wxString returns = (self->GetItemText(item)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetNextItem[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_GetNextItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetNextItem[1] = {{ wxLua_wxListCtrl_GetNextItem, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxListCtrl_GetNextItem }}; -// long GetNextItem(long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE) const; -static int LUACALL wxLua_wxListCtrl_GetNextItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int state = wxLIST_STATE_DONTCARE - int state = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxLIST_STATE_DONTCARE); - // int geometry = wxLIST_NEXT_ALL - int geometry = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxLIST_NEXT_ALL); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetNextItem - long returns = (self->GetNextItem(item, geometry, state)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetSelectedItemCount[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetSelectedItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetSelectedItemCount[1] = {{ wxLua_wxListCtrl_GetSelectedItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetSelectedItemCount }}; -// int GetSelectedItemCount() const; -static int LUACALL wxLua_wxListCtrl_GetSelectedItemCount(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetSelectedItemCount - int returns = (self->GetSelectedItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetTextColour[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetTextColour[1] = {{ wxLua_wxListCtrl_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetTextColour }}; -// wxColour GetTextColour() const; -static int LUACALL wxLua_wxListCtrl_GetTextColour(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetTopItem[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetTopItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetTopItem[1] = {{ wxLua_wxListCtrl_GetTopItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetTopItem }}; -// long GetTopItem() const; -static int LUACALL wxLua_wxListCtrl_GetTopItem(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetTopItem - long returns = (self->GetTopItem()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_GetViewRect[] = { &wxluatype_wxListCtrl, NULL }; -static int LUACALL wxLua_wxListCtrl_GetViewRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetViewRect[1] = {{ wxLua_wxListCtrl_GetViewRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetViewRect }}; -// wxRect GetViewRect() const; -static int LUACALL wxLua_wxListCtrl_GetViewRect(lua_State *L) -{ - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call GetViewRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetViewRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_HitTest[] = { &wxluatype_wxListCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxListCtrl_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_HitTest[1] = {{ wxLua_wxListCtrl_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_HitTest }}; -// %override wxLua_wxListCtrl_HitTest -// long HitTest(const wxPoint& point, int& flags) -static int LUACALL wxLua_wxListCtrl_HitTest(lua_State *L) -{ - // int& flags - int flags; - // const wxPoint& point - const wxPoint *point = (wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxListCtrl *self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call HitTest - long returns = self->HitTest(*point, flags); - // push the result number - lua_pushinteger(L, returns); - // push the result flags - lua_pushinteger(L, flags); - // return the number of parameters - return 2; -} - - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_InsertColumn1[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_InsertColumn1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertColumn1[1] = {{ wxLua_wxListCtrl_InsertColumn1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxListCtrl_InsertColumn1 }}; -// long InsertColumn(long col, const wxString& heading, int format = wxLIST_FORMAT_LEFT, int width = -1); -static int LUACALL wxLua_wxListCtrl_InsertColumn1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int width = -1 - int width = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int format = wxLIST_FORMAT_LEFT - int format = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxLIST_FORMAT_LEFT); - // const wxString heading - const wxString heading = wxlua_getwxStringtype(L, 3); - // long col - long col = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call InsertColumn - long returns = (self->InsertColumn(col, heading, format, width)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_InsertColumn[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListCtrl_InsertColumn(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertColumn[1] = {{ wxLua_wxListCtrl_InsertColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_InsertColumn }}; -// long InsertColumn(long col, wxListItem& info); -static int LUACALL wxLua_wxListCtrl_InsertColumn(lua_State *L) -{ - // wxListItem info - wxListItem * info = (wxListItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxListItem); - // long col - long col = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call InsertColumn - long returns = (self->InsertColumn(col, *info)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_InsertItem3[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_InsertItem3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertItem3[1] = {{ wxLua_wxListCtrl_InsertItem3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem3 }}; -// long InsertItem(long index, const wxString& label, int imageIndex); -static int LUACALL wxLua_wxListCtrl_InsertItem3(lua_State *L) -{ - // int imageIndex - int imageIndex = (int)wxlua_getnumbertype(L, 4); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // long index - long index = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call InsertItem - long returns = (self->InsertItem(index, label, imageIndex)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_InsertItem2[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_InsertItem2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertItem2[1] = {{ wxLua_wxListCtrl_InsertItem2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem2 }}; -// long InsertItem(long index, int imageIndex); -static int LUACALL wxLua_wxListCtrl_InsertItem2(lua_State *L) -{ - // int imageIndex - int imageIndex = (int)wxlua_getnumbertype(L, 3); - // long index - long index = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call InsertItem - long returns = (self->InsertItem(index, imageIndex)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_InsertItem1[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListCtrl_InsertItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertItem1[1] = {{ wxLua_wxListCtrl_InsertItem1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem1 }}; -// long InsertItem(long index, const wxString& label); -static int LUACALL wxLua_wxListCtrl_InsertItem1(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // long index - long index = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call InsertItem - long returns = (self->InsertItem(index, label)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_InsertItem[] = { &wxluatype_wxListCtrl, &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListCtrl_InsertItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertItem[1] = {{ wxLua_wxListCtrl_InsertItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem }}; -// long InsertItem(wxListItem& info); -static int LUACALL wxLua_wxListCtrl_InsertItem(lua_State *L) -{ - // wxListItem info - wxListItem * info = (wxListItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxListItem); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call InsertItem - long returns = (self->InsertItem(*info)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_ScrollList[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_ScrollList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_ScrollList[1] = {{ wxLua_wxListCtrl_ScrollList, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_ScrollList }}; -// bool ScrollList(int dx, int dy); -static int LUACALL wxLua_wxListCtrl_ScrollList(lua_State *L) -{ - // int dy - int dy = (int)wxlua_getnumbertype(L, 3); - // int dx - int dx = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call ScrollList - bool returns = (self->ScrollList(dx, dy)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetColumn[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListCtrl_SetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetColumn[1] = {{ wxLua_wxListCtrl_SetColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetColumn }}; -// bool SetColumn(int col, wxListItem& item); -static int LUACALL wxLua_wxListCtrl_SetColumn(lua_State *L) -{ - // wxListItem item - wxListItem * item = (wxListItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxListItem); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetColumn - bool returns = (self->SetColumn(col, *item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetColumnWidth[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetColumnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetColumnWidth[1] = {{ wxLua_wxListCtrl_SetColumnWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetColumnWidth }}; -// bool SetColumnWidth(int col, int width); -static int LUACALL wxLua_wxListCtrl_SetColumnWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetColumnWidth - bool returns = (self->SetColumnWidth(col, width)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetImageList[] = { &wxluatype_wxListCtrl, &wxluatype_wxImageList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetImageList[1] = {{ wxLua_wxListCtrl_SetImageList, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetImageList }}; -// void SetImageList(wxImageList* imageList, int which); -static int LUACALL wxLua_wxListCtrl_SetImageList(lua_State *L) -{ - // int which - int which = (int)wxlua_getnumbertype(L, 3); - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetImageList - self->SetImageList(imageList, which); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItem1[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItem1[1] = {{ wxLua_wxListCtrl_SetItem1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxListCtrl_SetItem1 }}; -// long SetItem(long index, int col, const wxString& label, int imageId = -1); -static int LUACALL wxLua_wxListCtrl_SetItem1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = -1 - int imageId = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // long index - long index = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItem - long returns = (self->SetItem(index, col, label, imageId)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItem[] = { &wxluatype_wxListCtrl, &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItem[1] = {{ wxLua_wxListCtrl_SetItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_SetItem }}; -// bool SetItem(wxListItem& info); -static int LUACALL wxLua_wxListCtrl_SetItem(lua_State *L) -{ - // wxListItem info - wxListItem * info = (wxListItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxListItem); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItem - bool returns = (self->SetItem(*info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemBackgroundColour[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemBackgroundColour[1] = {{ wxLua_wxListCtrl_SetItemBackgroundColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetItemBackgroundColour }}; -// void SetItemBackgroundColour(long item, const wxColour& col); -static int LUACALL wxLua_wxListCtrl_SetItemBackgroundColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemBackgroundColour - self->SetItemBackgroundColour(item, *col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemColumnImage[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemColumnImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemColumnImage[1] = {{ wxLua_wxListCtrl_SetItemColumnImage, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxListCtrl_SetItemColumnImage }}; -// bool SetItemColumnImage(long item, long column, int image); -static int LUACALL wxLua_wxListCtrl_SetItemColumnImage(lua_State *L) -{ - // int image - int image = (int)wxlua_getnumbertype(L, 4); - // long column - long column = (long)wxlua_getnumbertype(L, 3); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemColumnImage - bool returns = (self->SetItemColumnImage(item, column, image)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemData[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemData[1] = {{ wxLua_wxListCtrl_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetItemData }}; -// bool SetItemData(long item, long data); -static int LUACALL wxLua_wxListCtrl_SetItemData(lua_State *L) -{ - // long data - long data = (long)wxlua_getnumbertype(L, 3); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemData - bool returns = (self->SetItemData(item, data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemImage[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemImage[1] = {{ wxLua_wxListCtrl_SetItemImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetItemImage }}; -// bool SetItemImage(long item, int image); // int selImage) selImage is deprecated and isn't used anyway -static int LUACALL wxLua_wxListCtrl_SetItemImage(lua_State *L) -{ - // int image - int image = (int)wxlua_getnumbertype(L, 3); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemImage - bool returns = (self->SetItemImage(item, image)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemPosition[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemPosition[1] = {{ wxLua_wxListCtrl_SetItemPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetItemPosition }}; -// bool SetItemPosition(long item, const wxPoint& pos); -static int LUACALL wxLua_wxListCtrl_SetItemPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemPosition - bool returns = (self->SetItemPosition(item, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemState[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemState[1] = {{ wxLua_wxListCtrl_SetItemState, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxListCtrl_SetItemState }}; -// bool SetItemState(long item, long state, long stateMask); -static int LUACALL wxLua_wxListCtrl_SetItemState(lua_State *L) -{ - // long stateMask - long stateMask = (long)wxlua_getnumbertype(L, 4); - // long state - long state = (long)wxlua_getnumbertype(L, 3); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemState - bool returns = (self->SetItemState(item, state, stateMask)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemText[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemText[1] = {{ wxLua_wxListCtrl_SetItemText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetItemText }}; -// void SetItemText(long item, const wxString& text); -static int LUACALL wxLua_wxListCtrl_SetItemText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemText - self->SetItemText(item, text); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetItemTextColour[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListCtrl_SetItemTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItemTextColour[1] = {{ wxLua_wxListCtrl_SetItemTextColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetItemTextColour }}; -// void SetItemTextColour(long item, const wxColour& col); -static int LUACALL wxLua_wxListCtrl_SetItemTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetItemTextColour - self->SetItemTextColour(item, *col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetSingleStyle[] = { &wxluatype_wxListCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxListCtrl_SetSingleStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetSingleStyle[1] = {{ wxLua_wxListCtrl_SetSingleStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxListCtrl_SetSingleStyle }}; -// void SetSingleStyle(long style, const bool add = true); -static int LUACALL wxLua_wxListCtrl_SetSingleStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const bool add = true - const bool add = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetSingleStyle - self->SetSingleStyle(style, add); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SetTextColour[] = { &wxluatype_wxListCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListCtrl_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetTextColour[1] = {{ wxLua_wxListCtrl_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_SetTextColour }}; -// void SetTextColour(const wxColour& col); -static int LUACALL wxLua_wxListCtrl_SetTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxListCtrl * self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - // call SetTextColour - self->SetTextColour(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_SortItems[] = { &wxluatype_wxListCtrl, &wxluatype_TFUNCTION, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListCtrl_SortItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SortItems[1] = {{ wxLua_wxListCtrl_SortItems, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_SortItems }}; -// %override wxLua_wxListCtrl_SortItems - - -struct wxLua_LCF_data // wrap up the wxLuaState, lua_tag, and the compare data -{ - wxLuaState* wxlState; - int lua_tag; - long data; -}; - -// type of compare function for wxListCtrl sort operation (as of 2.9.3) -//typedef int (wxCALLBACK *wxListCtrlCompare)(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData); - -#if !wxCHECK_VERSION(2, 8, 9) - typedef long wxIntPtr; -#endif - -int wxCALLBACK wxLua_ListCompareFunction(wxIntPtr item1, wxIntPtr item2, wxIntPtr sortData) -{ - wxLua_LCF_data* LCF_data = (wxLua_LCF_data*)sortData; - - lua_State *L = LCF_data->wxlState->GetLuaState(); - int old_top = lua_gettop(L); - - lua_rawgeti(L, LUA_REGISTRYINDEX, LCF_data->lua_tag); - lua_pushnumber(L, item1); - lua_pushnumber(L, item2); - lua_pushnumber(L, LCF_data->data); - - LCF_data->wxlState->LuaPCall(3, 1); - - // for some bizarre reason lua converts the return to a string! try to get it back as a number - // Happens with lua 5.1.2 - int ret = (int)lua_tonumber(L, -1); //LCF_data->wxlState->GetNumberType(0); - lua_settop(L, old_top); // pop results - - return ret; -} - -// bool SortItems(LuaFunction fnSortCallBack, long data) -static int LUACALL wxLua_wxListCtrl_SortItems(lua_State *L) -{ - wxLuaState wxlState(L); - - // long data - long data = (long)wxlua_getintegertype(L, 3); - wxLua_LCF_data LCF_data = { &wxlState, -1, data }; // only exists for this function - - if (lua_isfunction (L, 2)) - { - lua_pushvalue(L, 2); // push function to top of stack - LCF_data.lua_tag = luaL_ref(L, LUA_REGISTRYINDEX); // ref function and pop it from stack - } - else - wxlua_argerror(L, 2, wxT("a 'Lua function(long item1, long item2, long data)'")); - - // get this - wxListCtrl *self = (wxListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListCtrl); - - // call SortItems - bool returns = self->SortItems(wxLua_ListCompareFunction, (wxUIntPtr)&LCF_data); - - luaL_unref(L, LUA_REGISTRYINDEX, LCF_data.lua_tag); // remove ref to function - - // push the result number - lua_pushboolean(L, returns); - // return the number of parameters - return 1; -} - - - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_constructor1[1] = {{ wxLua_wxListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxListCtrl_constructor1 }}; -// wxListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListCtrl"); -static int LUACALL wxLua_wxListCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListCtrl" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxListCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxLC_ICON - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxLC_ICON); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxListCtrl* returns = new wxListCtrl(parent, id, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxListCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_constructor[1] = {{ wxLua_wxListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxListCtrl(); -static int LUACALL wxLua_wxListCtrl_constructor(lua_State *L) -{ - // call constructor - wxListCtrl* returns = new wxListCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListCtrl); - - return 1; -} - - - - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_FindItem_overload[] = -{ - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxListCtrl_FindItem2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxListCtrl_FindItem2 }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxListCtrl_FindItem1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_FindItem1 }, - { wxLua_wxListCtrl_FindItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxListCtrl_FindItem }, -}; -static int s_wxluafunc_wxLua_wxListCtrl_FindItem_overload_count = sizeof(s_wxluafunc_wxLua_wxListCtrl_FindItem_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing_overload[] = -{ - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxListCtrl_GetItemSpacing1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListCtrl_GetItemSpacing1 }, -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { wxLua_wxListCtrl_GetItemSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_GetItemSpacing }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -}; -static int s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing_overload_count = sizeof(s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertColumn_overload[] = -{ - { wxLua_wxListCtrl_InsertColumn1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxListCtrl_InsertColumn1 }, - { wxLua_wxListCtrl_InsertColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_InsertColumn }, -}; -static int s_wxluafunc_wxLua_wxListCtrl_InsertColumn_overload_count = sizeof(s_wxluafunc_wxLua_wxListCtrl_InsertColumn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_InsertItem_overload[] = -{ - { wxLua_wxListCtrl_InsertItem3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem3 }, - { wxLua_wxListCtrl_InsertItem2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem2 }, - { wxLua_wxListCtrl_InsertItem1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem1 }, - { wxLua_wxListCtrl_InsertItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_InsertItem }, -}; -static int s_wxluafunc_wxLua_wxListCtrl_InsertItem_overload_count = sizeof(s_wxluafunc_wxLua_wxListCtrl_InsertItem_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_SetItem_overload[] = -{ - { wxLua_wxListCtrl_SetItem1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxListCtrl_SetItem1 }, - { wxLua_wxListCtrl_SetItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListCtrl_SetItem }, -}; -static int s_wxluafunc_wxLua_wxListCtrl_SetItem_overload_count = sizeof(s_wxluafunc_wxLua_wxListCtrl_SetItem_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxListCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxListCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxListCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -void wxLua_wxListCtrl_delete_function(void** p) -{ - wxListCtrl* o = (wxListCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListCtrl_methods[] = { - { "Arrange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_Arrange, 1, NULL }, - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "AssignImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_AssignImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "ClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_ClearAll, 1, NULL }, - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_DeleteAllItems, 1, NULL }, - { "DeleteColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_DeleteColumn, 1, NULL }, - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_DeleteItem, 1, NULL }, - { "EditLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_EditLabel, 1, NULL }, - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_EnsureVisible, 1, NULL }, - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "FindItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_FindItem_overload, s_wxluafunc_wxLua_wxListCtrl_FindItem_overload_count, 0 }, -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetColumn, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetColumnCount, 1, NULL }, - { "GetColumnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetColumnWidth, 1, NULL }, - { "GetCountPerPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetCountPerPage, 1, NULL }, - -#if ((defined(__WXMSW__) || wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetEditControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetEditControl, 1, NULL }, -#endif // ((defined(__WXMSW__) || wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItem, 1, NULL }, - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemCount, 1, NULL }, - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemData, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetItemFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - { "GetItemPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemPosition, 1, NULL }, - { "GetItemRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemRect, 1, NULL }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -#if (((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) - { "GetItemSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing_overload, s_wxluafunc_wxLua_wxListCtrl_GetItemSpacing_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) - - { "GetItemState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemState, 1, NULL }, - { "GetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetItemText, 1, NULL }, - { "GetNextItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetNextItem, 1, NULL }, - { "GetSelectedItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetSelectedItemCount, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "GetTopItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetTopItem, 1, NULL }, - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - { "GetViewRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_GetViewRect, 1, NULL }, - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_HitTest, 1, NULL }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "InsertColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_InsertColumn_overload, s_wxluafunc_wxLua_wxListCtrl_InsertColumn_overload_count, 0 }, - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_InsertItem_overload, s_wxluafunc_wxLua_wxListCtrl_InsertItem_overload_count, 0 }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "ScrollList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_ScrollList, 1, NULL }, - { "SetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetColumn, 1, NULL }, - { "SetColumnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetColumnWidth, 1, NULL }, - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItem_overload, s_wxluafunc_wxLua_wxListCtrl_SetItem_overload_count, 0 }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetItemBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "SetItemColumnImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemColumnImage, 1, NULL }, - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemData, 1, NULL }, - { "SetItemImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemImage, 1, NULL }, - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - { "SetItemPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemPosition, 1, NULL }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - - { "SetItemState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemState, 1, NULL }, - { "SetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetItemTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetItemTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "SetSingleStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetSingleStyle, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "SortItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListCtrl_SortItems, 1, NULL }, - -#if (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxListCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListCtrl_constructor_overload, s_wxluafunc_wxLua_wxListCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxListCtrl_methodCount = sizeof(wxListCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL -// --------------------------------------------------------------------------- -// Bind class wxLuaListCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaListCtrl' -int wxluatype_wxLuaListCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaListCtrl_SetItemCount[] = { &wxluatype_wxLuaListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaListCtrl_SetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaListCtrl_SetItemCount[1] = {{ wxLua_wxLuaListCtrl_SetItemCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLuaListCtrl_SetItemCount }}; -// void SetItemCount(long count); -static int LUACALL wxLua_wxLuaListCtrl_SetItemCount(lua_State *L) -{ - // long count - long count = (long)wxlua_getnumbertype(L, 2); - // get this - wxLuaListCtrl * self = (wxLuaListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaListCtrl); - // call SetItemCount - self->SetItemCount(count); - - return 0; -} - - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaListCtrl_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaListCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaListCtrl_constructor[1] = {{ wxLua_wxLuaListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxLuaListCtrl_constructor }}; -// %override wxLua_wxLuaListCtrl_constructor -// wxLuaListCtrl(const wxLuaState& wxlState); -// wxLuaListCtrl(const wxLuaState& wxlState, -// wxWindow *parent, wxWindowID id, -// const wxPoint &pos=wxDefaultPosition, -// const wxSize &size=wxDefaultSize, long style=wxLC_REPORT|wxLC_VIRTUAL, -// const wxValidator &validator=wxDefaultValidator, -// const wxString &name=wxListCtrlNameStr); -static int LUACALL wxLua_wxLuaListCtrl_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - - wxLuaState wxlState(L); - wxListCtrl* returns; - - if (argCount == 0) // Default constructor - { - returns = new wxLuaListCtrl(wxlState); - } - else // Construct and create - { - // const wxString name = "wxLuaListCtrl" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxLuaListCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxLC_ICON - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxLC_REPORT|wxLC_VIRTUAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - returns = new wxLuaListCtrl(wxlState, parent, id, *pos, *size, style, *validator, name); - } - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaListCtrl); - - return 1; -} - - -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - - -void wxLua_wxLuaListCtrl_delete_function(void** p) -{ - wxLuaListCtrl* o = (wxLuaListCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaListCtrl_methods[] = { - { "SetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaListCtrl_SetItemCount, 1, NULL }, - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "wxLuaListCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaListCtrl_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { 0, 0, 0, 0 }, -}; - -int wxLuaListCtrl_methodCount = sizeof(wxLuaListCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL -// --------------------------------------------------------------------------- -// Bind class wxListItemAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListItemAttr' -int wxluatype_wxListItemAttr = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_AssignFrom[] = { &wxluatype_wxListItemAttr, &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_AssignFrom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_AssignFrom[1] = {{ wxLua_wxListItemAttr_AssignFrom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItemAttr_AssignFrom }}; -// %wxchkver_2_8 void AssignFrom(const wxListItemAttr& source); -static int LUACALL wxLua_wxListItemAttr_AssignFrom(lua_State *L) -{ - // const wxListItemAttr source - const wxListItemAttr * source = (const wxListItemAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxListItemAttr); - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call AssignFrom - self->AssignFrom(*source); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_GetBackgroundColour[] = { &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_GetBackgroundColour[1] = {{ wxLua_wxListItemAttr_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_GetBackgroundColour }}; -// wxColour GetBackgroundColour(); -static int LUACALL wxLua_wxListItemAttr_GetBackgroundColour(lua_State *L) -{ - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_GetFont[] = { &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_GetFont[1] = {{ wxLua_wxListItemAttr_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_GetFont }}; -// wxFont GetFont(); -static int LUACALL wxLua_wxListItemAttr_GetFont(lua_State *L) -{ - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_GetTextColour[] = { &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_GetTextColour[1] = {{ wxLua_wxListItemAttr_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_GetTextColour }}; -// wxColour GetTextColour(); -static int LUACALL wxLua_wxListItemAttr_GetTextColour(lua_State *L) -{ - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call GetTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_HasBackgroundColour[] = { &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_HasBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_HasBackgroundColour[1] = {{ wxLua_wxListItemAttr_HasBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_HasBackgroundColour }}; -// bool HasBackgroundColour(); -static int LUACALL wxLua_wxListItemAttr_HasBackgroundColour(lua_State *L) -{ - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call HasBackgroundColour - bool returns = (self->HasBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_HasFont[] = { &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_HasFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_HasFont[1] = {{ wxLua_wxListItemAttr_HasFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_HasFont }}; -// bool HasFont(); -static int LUACALL wxLua_wxListItemAttr_HasFont(lua_State *L) -{ - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call HasFont - bool returns = (self->HasFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_HasTextColour[] = { &wxluatype_wxListItemAttr, NULL }; -static int LUACALL wxLua_wxListItemAttr_HasTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_HasTextColour[1] = {{ wxLua_wxListItemAttr_HasTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_HasTextColour }}; -// bool HasTextColour(); -static int LUACALL wxLua_wxListItemAttr_HasTextColour(lua_State *L) -{ - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call HasTextColour - bool returns = (self->HasTextColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_SetBackgroundColour[] = { &wxluatype_wxListItemAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListItemAttr_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_SetBackgroundColour[1] = {{ wxLua_wxListItemAttr_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItemAttr_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colBack); -static int LUACALL wxLua_wxListItemAttr_SetBackgroundColour(lua_State *L) -{ - // const wxColour colBack - const wxColour * colBack = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call SetBackgroundColour - self->SetBackgroundColour(*colBack); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_SetFont[] = { &wxluatype_wxListItemAttr, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxListItemAttr_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_SetFont[1] = {{ wxLua_wxListItemAttr_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItemAttr_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxListItemAttr_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_SetTextColour[] = { &wxluatype_wxListItemAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListItemAttr_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_SetTextColour[1] = {{ wxLua_wxListItemAttr_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItemAttr_SetTextColour }}; -// void SetTextColour(const wxColour& colText); -static int LUACALL wxLua_wxListItemAttr_SetTextColour(lua_State *L) -{ - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxListItemAttr * self = (wxListItemAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItemAttr); - // call SetTextColour - self->SetTextColour(*colText); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_delete[] = { &wxluatype_wxListItemAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxListItemAttr_delete }}; - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItemAttr_constructor[] = { &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxListItemAttr_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItemAttr_constructor[1] = {{ wxLua_wxListItemAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxListItemAttr_constructor }}; -// wxListItemAttr(const wxColour& colText = wxNullColour, const wxColour& colBack = wxNullColour, const wxFont& font = wxNullFont); -static int LUACALL wxLua_wxListItemAttr_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxFont font = wxNullFont - const wxFont * font = (argCount >= 3 ? (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : &wxNullFont); - // const wxColour colBack = wxNullColour - const wxColour * colBack = (argCount >= 2 ? (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour) : &wxNullColour); - // const wxColour colText = wxNullColour - const wxColour * colText = (argCount >= 1 ? (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour) : &wxNullColour); - // call constructor - wxListItemAttr* returns = new wxListItemAttr(*colText, *colBack, *font); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxListItemAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListItemAttr); - - return 1; -} - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - - -void wxLua_wxListItemAttr_delete_function(void** p) -{ - wxListItemAttr* o = (wxListItemAttr*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListItemAttr_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "AssignFrom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_AssignFrom, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "HasBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_HasBackgroundColour, 1, NULL }, - { "HasFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_HasFont, 1, NULL }, - { "HasTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_HasTextColour, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItemAttr_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxListItemAttr_delete, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxListItemAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListItemAttr_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxListItemAttr_methodCount = sizeof(wxListItemAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL -// --------------------------------------------------------------------------- -// Bind class wxListItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListItem' -int wxluatype_wxListItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_Clear[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_Clear[1] = {{ wxLua_wxListItem_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxListItem_Clear(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_ClearAttributes[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_ClearAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_ClearAttributes[1] = {{ wxLua_wxListItem_ClearAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_ClearAttributes }}; -// void ClearAttributes(); -static int LUACALL wxLua_wxListItem_ClearAttributes(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call ClearAttributes - self->ClearAttributes(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetAlign[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetAlign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetAlign[1] = {{ wxLua_wxListItem_GetAlign, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetAlign }}; -// wxListColumnFormat GetAlign(); -static int LUACALL wxLua_wxListItem_GetAlign(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetAlign - wxListColumnFormat returns = (self->GetAlign()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetAttributes[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetAttributes[1] = {{ wxLua_wxListItem_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetAttributes }}; -// wxListItemAttr *GetAttributes(); -static int LUACALL wxLua_wxListItem_GetAttributes(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetAttributes - wxListItemAttr* returns = (wxListItemAttr*)self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListItemAttr); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetBackgroundColour[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetBackgroundColour[1] = {{ wxLua_wxListItem_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetBackgroundColour }}; -// wxColour GetBackgroundColour() const; -static int LUACALL wxLua_wxListItem_GetBackgroundColour(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetColumn[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetColumn[1] = {{ wxLua_wxListItem_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetColumn }}; -// int GetColumn(); -static int LUACALL wxLua_wxListItem_GetColumn(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetColumn - int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetData[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetData[1] = {{ wxLua_wxListItem_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetData }}; -// long GetData(); -static int LUACALL wxLua_wxListItem_GetData(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetData - long returns = (self->GetData()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetFont[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetFont[1] = {{ wxLua_wxListItem_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetFont }}; -// wxFont GetFont() const; -static int LUACALL wxLua_wxListItem_GetFont(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetId[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetId[1] = {{ wxLua_wxListItem_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetId }}; -// long GetId(); -static int LUACALL wxLua_wxListItem_GetId(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetId - long returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetImage[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetImage[1] = {{ wxLua_wxListItem_GetImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetImage }}; -// int GetImage(); -static int LUACALL wxLua_wxListItem_GetImage(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetImage - int returns = (self->GetImage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetMask[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetMask[1] = {{ wxLua_wxListItem_GetMask, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetMask }}; -// long GetMask(); -static int LUACALL wxLua_wxListItem_GetMask(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetMask - long returns = (self->GetMask()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetState[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetState[1] = {{ wxLua_wxListItem_GetState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetState }}; -// long GetState(); -static int LUACALL wxLua_wxListItem_GetState(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetState - long returns = (self->GetState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetText[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetText[1] = {{ wxLua_wxListItem_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetText }}; -// wxString GetText(); -static int LUACALL wxLua_wxListItem_GetText(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetTextColour[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetTextColour[1] = {{ wxLua_wxListItem_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetTextColour }}; -// wxColour GetTextColour() const; -static int LUACALL wxLua_wxListItem_GetTextColour(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_GetWidth[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_GetWidth[1] = {{ wxLua_wxListItem_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_GetWidth }}; -// int GetWidth(); -static int LUACALL wxLua_wxListItem_GetWidth(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_HasAttributes[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_HasAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_HasAttributes[1] = {{ wxLua_wxListItem_HasAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListItem_HasAttributes }}; -// bool HasAttributes(); -static int LUACALL wxLua_wxListItem_HasAttributes(lua_State *L) -{ - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call HasAttributes - bool returns = (self->HasAttributes()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetAlign[] = { &wxluatype_wxListItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxListItem_SetAlign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetAlign[1] = {{ wxLua_wxListItem_SetAlign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetAlign }}; -// void SetAlign(wxListColumnFormat align); -static int LUACALL wxLua_wxListItem_SetAlign(lua_State *L) -{ - // wxListColumnFormat align - wxListColumnFormat align = (wxListColumnFormat)wxlua_getenumtype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetAlign - self->SetAlign(align); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetBackgroundColour[] = { &wxluatype_wxListItem, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListItem_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetBackgroundColour[1] = {{ wxLua_wxListItem_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colBack); -static int LUACALL wxLua_wxListItem_SetBackgroundColour(lua_State *L) -{ - // const wxColour colBack - const wxColour * colBack = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetBackgroundColour - self->SetBackgroundColour(*colBack); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetColumn[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetColumn[1] = {{ wxLua_wxListItem_SetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetColumn }}; -// void SetColumn(int col); -static int LUACALL wxLua_wxListItem_SetColumn(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetColumn - self->SetColumn(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetData[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetData[1] = {{ wxLua_wxListItem_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetData }}; -// void SetData(long data); -static int LUACALL wxLua_wxListItem_SetData(lua_State *L) -{ - // long data - long data = (long)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetData - self->SetData(data); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetFont[] = { &wxluatype_wxListItem, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxListItem_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetFont[1] = {{ wxLua_wxListItem_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxListItem_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetId[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetId[1] = {{ wxLua_wxListItem_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetId }}; -// void SetId(long id); -static int LUACALL wxLua_wxListItem_SetId(lua_State *L) -{ - // long id - long id = (long)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetId - self->SetId(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetImage[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetImage[1] = {{ wxLua_wxListItem_SetImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetImage }}; -// void SetImage(int image); -static int LUACALL wxLua_wxListItem_SetImage(lua_State *L) -{ - // int image - int image = (int)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetImage - self->SetImage(image); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetMask[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetMask[1] = {{ wxLua_wxListItem_SetMask, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetMask }}; -// void SetMask(long mask); -static int LUACALL wxLua_wxListItem_SetMask(lua_State *L) -{ - // long mask - long mask = (long)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetMask - self->SetMask(mask); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetState[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetState[1] = {{ wxLua_wxListItem_SetState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetState }}; -// void SetState(long state); -static int LUACALL wxLua_wxListItem_SetState(lua_State *L) -{ - // long state - long state = (long)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetState - self->SetState(state); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetStateMask[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetStateMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetStateMask[1] = {{ wxLua_wxListItem_SetStateMask, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetStateMask }}; -// void SetStateMask(long stateMask); -static int LUACALL wxLua_wxListItem_SetStateMask(lua_State *L) -{ - // long stateMask - long stateMask = (long)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetStateMask - self->SetStateMask(stateMask); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetText[] = { &wxluatype_wxListItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListItem_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetText[1] = {{ wxLua_wxListItem_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetText }}; -// void SetText(const wxString& text); -static int LUACALL wxLua_wxListItem_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetText - self->SetText(text); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetTextColour[] = { &wxluatype_wxListItem, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxListItem_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetTextColour[1] = {{ wxLua_wxListItem_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetTextColour }}; -// void SetTextColour(const wxColour& colText); -static int LUACALL wxLua_wxListItem_SetTextColour(lua_State *L) -{ - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetTextColour - self->SetTextColour(*colText); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_SetWidth[] = { &wxluatype_wxListItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListItem_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_SetWidth[1] = {{ wxLua_wxListItem_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListItem_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxListItem_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxListItem * self = (wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_delete[] = { &wxluatype_wxListItem, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxListItem_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListItem_constructor1[] = { &wxluatype_wxListItem, NULL }; -static int LUACALL wxLua_wxListItem_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_constructor1[1] = {{ wxLua_wxListItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxListItem_constructor1 }}; -// wxListItem(const wxListItem& item); -static int LUACALL wxLua_wxListItem_constructor1(lua_State *L) -{ - // const wxListItem item - const wxListItem * item = (const wxListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListItem); - // call constructor - wxListItem* returns = new wxListItem(*item); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxListItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListItem); - - return 1; -} - -static int LUACALL wxLua_wxListItem_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_constructor[1] = {{ wxLua_wxListItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxListItem(); -static int LUACALL wxLua_wxListItem_constructor(lua_State *L) -{ - // call constructor - wxListItem* returns = new wxListItem(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxListItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListItem); - - return 1; -} - - - - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListItem_constructor_overload[] = -{ - { wxLua_wxListItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxListItem_constructor1 }, - { wxLua_wxListItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxListItem_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxListItem_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -void wxLua_wxListItem_delete_function(void** p) -{ - wxListItem* o = (wxListItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListItem_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_Clear, 1, NULL }, - { "ClearAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_ClearAttributes, 1, NULL }, - { "GetAlign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetAlign, 1, NULL }, - { "GetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetAttributes, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetColumn, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetData, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetId, 1, NULL }, - { "GetImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetImage, 1, NULL }, - { "GetMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetMask, 1, NULL }, - { "GetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetState, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_GetWidth, 1, NULL }, - { "HasAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_HasAttributes, 1, NULL }, - { "SetAlign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetAlign, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "SetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetColumn, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetData, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetId, 1, NULL }, - { "SetImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetImage, 1, NULL }, - { "SetMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetMask, 1, NULL }, - { "SetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetState, 1, NULL }, - { "SetStateMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetStateMask, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListItem_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxListItem_delete, 1, NULL }, - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxListItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListItem_constructor_overload, s_wxluafunc_wxLua_wxListItem_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxListItem_methodCount = sizeof(wxListItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL -// --------------------------------------------------------------------------- -// Bind class wxListEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListEvent' -int wxluatype_wxListEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetColumn[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetColumn[1] = {{ wxLua_wxListEvent_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetColumn }}; -// int GetColumn() const; -static int LUACALL wxLua_wxListEvent_GetColumn(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetColumn - int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetData[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetData[1] = {{ wxLua_wxListEvent_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetData }}; -// long GetData() const; -static int LUACALL wxLua_wxListEvent_GetData(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetData - long returns = (self->GetData()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetImage[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetImage[1] = {{ wxLua_wxListEvent_GetImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetImage }}; -// int GetImage() const; -static int LUACALL wxLua_wxListEvent_GetImage(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetImage - int returns = (self->GetImage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetIndex[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetIndex[1] = {{ wxLua_wxListEvent_GetIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetIndex }}; -// long GetIndex() const; -static int LUACALL wxLua_wxListEvent_GetIndex(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetIndex - long returns = (self->GetIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetItem[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetItem[1] = {{ wxLua_wxListEvent_GetItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetItem }}; -// const wxListItem& GetItem() const; -static int LUACALL wxLua_wxListEvent_GetItem(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetItem - const wxListItem* returns = (const wxListItem*)&self->GetItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetKeyCode[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetKeyCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetKeyCode[1] = {{ wxLua_wxListEvent_GetKeyCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetKeyCode }}; -// int GetKeyCode() const; -static int LUACALL wxLua_wxListEvent_GetKeyCode(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetKeyCode - int returns = (self->GetKeyCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetLabel[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetLabel[1] = {{ wxLua_wxListEvent_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetLabel }}; -// const wxString& GetLabel() const; -static int LUACALL wxLua_wxListEvent_GetLabel(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetMask[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetMask[1] = {{ wxLua_wxListEvent_GetMask, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetMask }}; -// long GetMask() const; -static int LUACALL wxLua_wxListEvent_GetMask(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetMask - long returns = (self->GetMask()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetPoint[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetPoint[1] = {{ wxLua_wxListEvent_GetPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetPoint }}; -// wxPoint GetPoint() const; -static int LUACALL wxLua_wxListEvent_GetPoint(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_GetText[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_GetText[1] = {{ wxLua_wxListEvent_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_GetText }}; -// const wxString& GetText() const; -static int LUACALL wxLua_wxListEvent_GetText(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_IsEditCancelled[] = { &wxluatype_wxListEvent, NULL }; -static int LUACALL wxLua_wxListEvent_IsEditCancelled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_IsEditCancelled[1] = {{ wxLua_wxListEvent_IsEditCancelled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_IsEditCancelled }}; -// bool IsEditCancelled() const; -static int LUACALL wxLua_wxListEvent_IsEditCancelled(lua_State *L) -{ - // get this - wxListEvent * self = (wxListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListEvent); - // call IsEditCancelled - bool returns = (self->IsEditCancelled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_delete[] = { &wxluatype_wxListEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxListEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListEvent_constructor[1] = {{ wxLua_wxListEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxListEvent_constructor }}; -// wxListEvent(wxEventType commandType = 0, int id = 0); -static int LUACALL wxLua_wxListEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = 0 - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxListEvent* returns = new wxListEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxListEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListEvent); - - return 1; -} - - - - -void wxLua_wxListEvent_delete_function(void** p) -{ - wxListEvent* o = (wxListEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListEvent_methods[] = { - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetColumn, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetData, 1, NULL }, - { "GetImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetImage, 1, NULL }, - { "GetIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetIndex, 1, NULL }, - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetItem, 1, NULL }, - { "GetKeyCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetKeyCode, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetLabel, 1, NULL }, - { "GetMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetMask, 1, NULL }, - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - { "GetPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetPoint, 1, NULL }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect) - - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_GetText, 1, NULL }, - { "IsEditCancelled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListEvent_IsEditCancelled, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxListEvent_delete, 1, NULL }, - { "wxListEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxListEvent_methodCount = sizeof(wxListEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - -#if wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL -// --------------------------------------------------------------------------- -// Bind class wxListView -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListView' -int wxluatype_wxListView = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_ClearColumnImage[] = { &wxluatype_wxListView, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListView_ClearColumnImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_ClearColumnImage[1] = {{ wxLua_wxListView_ClearColumnImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListView_ClearColumnImage }}; -// void ClearColumnImage(int col); -static int LUACALL wxLua_wxListView_ClearColumnImage(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call ClearColumnImage - self->ClearColumnImage(col); - - return 0; -} - - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_Create[] = { &wxluatype_wxListView, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListView_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_Create[1] = {{ wxLua_wxListView_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxListView_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListView"); -static int LUACALL wxLua_wxListView_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListView" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxListView"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxLC_ICON - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxLC_ICON); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_Focus[] = { &wxluatype_wxListView, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListView_Focus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_Focus[1] = {{ wxLua_wxListView_Focus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListView_Focus }}; -// void Focus(long index); -static int LUACALL wxLua_wxListView_Focus(lua_State *L) -{ - // long index - long index = (long)wxlua_getnumbertype(L, 2); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call Focus - self->Focus(index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_GetFirstSelected[] = { &wxluatype_wxListView, NULL }; -static int LUACALL wxLua_wxListView_GetFirstSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_GetFirstSelected[1] = {{ wxLua_wxListView_GetFirstSelected, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListView_GetFirstSelected }}; -// long GetFirstSelected() const; -static int LUACALL wxLua_wxListView_GetFirstSelected(lua_State *L) -{ - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call GetFirstSelected - long returns = (self->GetFirstSelected()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_GetFocusedItem[] = { &wxluatype_wxListView, NULL }; -static int LUACALL wxLua_wxListView_GetFocusedItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_GetFocusedItem[1] = {{ wxLua_wxListView_GetFocusedItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListView_GetFocusedItem }}; -// long GetFocusedItem() const; -static int LUACALL wxLua_wxListView_GetFocusedItem(lua_State *L) -{ - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call GetFocusedItem - long returns = (self->GetFocusedItem()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_GetNextSelected[] = { &wxluatype_wxListView, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListView_GetNextSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_GetNextSelected[1] = {{ wxLua_wxListView_GetNextSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListView_GetNextSelected }}; -// long GetNextSelected(long item) const; -static int LUACALL wxLua_wxListView_GetNextSelected(lua_State *L) -{ - // long item - long item = (long)wxlua_getnumbertype(L, 2); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call GetNextSelected - long returns = (self->GetNextSelected(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_IsSelected[] = { &wxluatype_wxListView, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListView_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_IsSelected[1] = {{ wxLua_wxListView_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxListView_IsSelected }}; -// bool IsSelected(long index); -static int LUACALL wxLua_wxListView_IsSelected(lua_State *L) -{ - // long index - long index = (long)wxlua_getnumbertype(L, 2); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call IsSelected - bool returns = (self->IsSelected(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_Select[] = { &wxluatype_wxListView, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxListView_Select(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_Select[1] = {{ wxLua_wxListView_Select, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxListView_Select }}; -// void Select(long n, bool on = true); -static int LUACALL wxLua_wxListView_Select(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool on = true - bool on = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // long n - long n = (long)wxlua_getnumbertype(L, 2); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call Select - self->Select(n, on); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_SetColumnImage[] = { &wxluatype_wxListView, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListView_SetColumnImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_SetColumnImage[1] = {{ wxLua_wxListView_SetColumnImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxListView_SetColumnImage }}; -// void SetColumnImage(int col, int image); -static int LUACALL wxLua_wxListView_SetColumnImage(lua_State *L) -{ - // int image - int image = (int)wxlua_getnumbertype(L, 3); - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxListView * self = (wxListView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListView); - // call SetColumnImage - self->SetColumnImage(col, image); - - return 0; -} - - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListView_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListView_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_constructor1[1] = {{ wxLua_wxListView_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxListView_constructor1 }}; -// wxListView(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxListView"); -static int LUACALL wxLua_wxListView_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListView" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxListView"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxLC_ICON - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxLC_ICON); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxListView* returns = new wxListView(parent, id, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListView); - - return 1; -} - -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxListView_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_constructor[1] = {{ wxLua_wxListView_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxListView(); -static int LUACALL wxLua_wxListView_constructor(lua_State *L) -{ - // call constructor - wxListView* returns = new wxListView(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListView); - - return 1; -} - - - - -#if (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListView_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxListView_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxListView_constructor1 }, -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxListView_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxListView_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxListView_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - -void wxLua_wxListView_delete_function(void** p) -{ - wxListView* o = (wxListView*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListView_methods[] = { - { "ClearColumnImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_ClearColumnImage, 1, NULL }, - -#if ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Focus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_Focus, 1, NULL }, - { "GetFirstSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_GetFirstSelected, 1, NULL }, - { "GetFocusedItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_GetFocusedItem, 1, NULL }, - { "GetNextSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_GetNextSelected, 1, NULL }, - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_IsSelected, 1, NULL }, - { "Select", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_Select, 1, NULL }, - { "SetColumnImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListView_SetColumnImage, 1, NULL }, - -#if (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - { "wxListView", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListView_constructor_overload, s_wxluafunc_wxLua_wxListView_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxListView_methodCount = sizeof(wxListView_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL - - -#if wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX -// --------------------------------------------------------------------------- -// Bind class wxRadioBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRadioBox' -int wxluatype_wxRadioBox = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_Create[] = { &wxluatype_wxRadioBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_Create[1] = {{ wxLua_wxRadioBox_Create, WXLUAMETHOD_METHOD, 4, 11, s_wxluatypeArray_wxLua_wxRadioBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, int majorDimension = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxRadioBox"); -static int LUACALL wxLua_wxRadioBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxRadioBox" - const wxString name = (argCount >= 11 ? wxlua_getwxStringtype(L, 11) : wxString(wxT("wxRadioBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 10 ? (const wxValidator *)wxluaT_getuserdatatype(L, 10, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxRA_SPECIFY_COLS - long style = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : wxRA_SPECIFY_COLS); - // int majorDimension = 0 - int majorDimension = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 7 ? wxlua_getwxArrayString(L, 7) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint point = wxDefaultPosition - const wxPoint * point = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call Create - bool returns = (self->Create(parent, id, label, *point, *size, choices, majorDimension, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_Enable1[] = { &wxluatype_wxRadioBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRadioBox_Enable1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_Enable1[1] = {{ wxLua_wxRadioBox_Enable1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRadioBox_Enable1 }}; -// void Enable(int n, bool enable); -static int LUACALL wxLua_wxRadioBox_Enable1(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 3); - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call Enable - self->Enable(n, enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_Enable[] = { &wxluatype_wxRadioBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRadioBox_Enable(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_Enable[1] = {{ wxLua_wxRadioBox_Enable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioBox_Enable }}; -// void Enable(bool enable); -static int LUACALL wxLua_wxRadioBox_Enable(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call Enable - self->Enable(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_FindString[] = { &wxluatype_wxRadioBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioBox_FindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_FindString[1] = {{ wxLua_wxRadioBox_FindString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioBox_FindString }}; -// int FindString(const wxString& string) const; -static int LUACALL wxLua_wxRadioBox_FindString(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call FindString - int returns = (self->FindString(string)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_GetCount[] = { &wxluatype_wxRadioBox, NULL }; -static int LUACALL wxLua_wxRadioBox_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_GetCount[1] = {{ wxLua_wxRadioBox_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRadioBox_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRadioBox_GetCount(lua_State *L) -{ - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_GetSelection[] = { &wxluatype_wxRadioBox, NULL }; -static int LUACALL wxLua_wxRadioBox_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_GetSelection[1] = {{ wxLua_wxRadioBox_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRadioBox_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxRadioBox_GetSelection(lua_State *L) -{ - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_GetString[] = { &wxluatype_wxRadioBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRadioBox_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_GetString[1] = {{ wxLua_wxRadioBox_GetString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioBox_GetString }}; -// wxString GetString(int n) const; -static int LUACALL wxLua_wxRadioBox_GetString(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call GetString - wxString returns = (self->GetString(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_GetStringSelection[] = { &wxluatype_wxRadioBox, NULL }; -static int LUACALL wxLua_wxRadioBox_GetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_GetStringSelection[1] = {{ wxLua_wxRadioBox_GetStringSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRadioBox_GetStringSelection }}; -// wxString GetStringSelection() const; -static int LUACALL wxLua_wxRadioBox_GetStringSelection(lua_State *L) -{ - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call GetStringSelection - wxString returns = (self->GetStringSelection()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_SetSelection[] = { &wxluatype_wxRadioBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRadioBox_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_SetSelection[1] = {{ wxLua_wxRadioBox_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioBox_SetSelection }}; -// void SetSelection(int n); -static int LUACALL wxLua_wxRadioBox_SetSelection(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call SetSelection - self->SetSelection(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_SetString[] = { &wxluatype_wxRadioBox, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioBox_SetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_SetString[1] = {{ wxLua_wxRadioBox_SetString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRadioBox_SetString }}; -// void SetString(int n, const wxString &label); -static int LUACALL wxLua_wxRadioBox_SetString(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call SetString - self->SetString(n, label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_SetStringSelection[] = { &wxluatype_wxRadioBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioBox_SetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_SetStringSelection[1] = {{ wxLua_wxRadioBox_SetStringSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioBox_SetStringSelection }}; -// void SetStringSelection(const wxString& string); -static int LUACALL wxLua_wxRadioBox_SetStringSelection(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call SetStringSelection - self->SetStringSelection(string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_Show[] = { &wxluatype_wxRadioBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRadioBox_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_Show[1] = {{ wxLua_wxRadioBox_Show, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRadioBox_Show }}; -// bool Show(int item, bool show); // must specify both for overload -static int LUACALL wxLua_wxRadioBox_Show(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 3); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxRadioBox * self = (wxRadioBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioBox); - // call Show - bool returns = (self->Show(item, show)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_constructor1[1] = {{ wxLua_wxRadioBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 10, s_wxluatypeArray_wxLua_wxRadioBox_constructor1 }}; -// wxRadioBox(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxArrayString& choices = wxLuaNullSmartwxArrayString, int majorDimension = 0, long style = wxRA_SPECIFY_COLS, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxRadioBox"); -static int LUACALL wxLua_wxRadioBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxRadioBox" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxRadioBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxRA_SPECIFY_COLS - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxRA_SPECIFY_COLS); - // int majorDimension = 0 - int majorDimension = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // const wxArrayString choices = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString choices = (argCount >= 6 ? wxlua_getwxArrayString(L, 6) : wxLuaNullSmartwxArrayString); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint point = wxDefaultPosition - const wxPoint * point = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxRadioBox* returns = new wxRadioBox(parent, id, label, *point, *size, choices, majorDimension, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRadioBox); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxRadioBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_constructor[1] = {{ wxLua_wxRadioBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRadioBox(); -static int LUACALL wxLua_wxRadioBox_constructor(lua_State *L) -{ - // call constructor - wxRadioBox* returns = new wxRadioBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRadioBox); - - return 1; -} - - - - -#if (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_Enable_overload[] = -{ - { wxLua_wxRadioBox_Enable1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRadioBox_Enable1 }, - { wxLua_wxRadioBox_Enable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioBox_Enable }, -}; -static int s_wxluafunc_wxLua_wxRadioBox_Enable_overload_count = sizeof(s_wxluafunc_wxLua_wxRadioBox_Enable_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioBox_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxRadioBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 10, s_wxluatypeArray_wxLua_wxRadioBox_constructor1 }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxRadioBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRadioBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRadioBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) - -void wxLua_wxRadioBox_delete_function(void** p) -{ - wxRadioBox* o = (wxRadioBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRadioBox_methods[] = { -#if (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_Create, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_Enable_overload, s_wxluafunc_wxLua_wxRadioBox_Enable_overload_count, 0 }, -#endif // (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) - - { "FindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_FindString, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_GetCount, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_GetSelection, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_GetString, 1, NULL }, - { "GetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_GetStringSelection, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_SetSelection, 1, NULL }, - { "SetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_SetString, 1, NULL }, - { "SetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_SetStringSelection, 1, NULL }, - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioBox_Show, 1, NULL }, - -#if ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) - { "wxRadioBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRadioBox_constructor_overload, s_wxluafunc_wxLua_wxRadioBox_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX) - - { 0, 0, 0, 0 }, -}; - -int wxRadioBox_methodCount = sizeof(wxRadioBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRadioBox && wxUSE_RADIOBOX - - -#if wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN -// --------------------------------------------------------------------------- -// Bind class wxRadioButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRadioButton' -int wxluatype_wxRadioButton = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioButton_Create[] = { &wxluatype_wxRadioButton, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioButton_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioButton_Create[1] = {{ wxLua_wxRadioButton_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxRadioButton_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxRadioButton"); -static int LUACALL wxLua_wxRadioButton_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxRadioButton" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxRadioButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRadioButton * self = (wxRadioButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioButton); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioButton_GetValue[] = { &wxluatype_wxRadioButton, NULL }; -static int LUACALL wxLua_wxRadioButton_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioButton_GetValue[1] = {{ wxLua_wxRadioButton_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRadioButton_GetValue }}; -// bool GetValue() const; -static int LUACALL wxLua_wxRadioButton_GetValue(lua_State *L) -{ - // get this - wxRadioButton * self = (wxRadioButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioButton); - // call GetValue - bool returns = (self->GetValue()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioButton_SetValue[] = { &wxluatype_wxRadioButton, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRadioButton_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioButton_SetValue[1] = {{ wxLua_wxRadioButton_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRadioButton_SetValue }}; -// void SetValue(const bool value); -static int LUACALL wxLua_wxRadioButton_SetValue(lua_State *L) -{ - // const bool value - const bool value = wxlua_getbooleantype(L, 2); - // get this - wxRadioButton * self = (wxRadioButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRadioButton); - // call SetValue - self->SetValue(value); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRadioButton_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRadioButton_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioButton_constructor1[1] = {{ wxLua_wxRadioButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxRadioButton_constructor1 }}; -// wxRadioButton(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxRadioButton"); -static int LUACALL wxLua_wxRadioButton_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxRadioButton" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxRadioButton"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxRadioButton* returns = new wxRadioButton(parent, id, label, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRadioButton); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxRadioButton_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioButton_constructor[1] = {{ wxLua_wxRadioButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRadioButton(); -static int LUACALL wxLua_wxRadioButton_constructor(lua_State *L) -{ - // call constructor - wxRadioButton* returns = new wxRadioButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRadioButton); - - return 1; -} - - - - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRadioButton_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxRadioButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxRadioButton_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxRadioButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRadioButton_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRadioButton_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN) - -void wxLua_wxRadioButton_delete_function(void** p) -{ - wxRadioButton* o = (wxRadioButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRadioButton_methods[] = { -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioButton_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioButton_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRadioButton_SetValue, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN) - { "wxRadioButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRadioButton_constructor_overload, s_wxluafunc_wxLua_wxRadioButton_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN) - - { 0, 0, 0, 0 }, -}; - -int wxRadioButton_methodCount = sizeof(wxRadioButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRadioButton && wxUSE_RADIOBTN - - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR -// --------------------------------------------------------------------------- -// Bind class wxScrollBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxScrollBar' -int wxluatype_wxScrollBar = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_Create[] = { &wxluatype_wxScrollBar, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxScrollBar_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_Create[1] = {{ wxLua_wxScrollBar_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxScrollBar_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxScrollBar"); -static int LUACALL wxLua_wxScrollBar_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxScrollBar" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxScrollBar"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxSB_HORIZONTAL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxSB_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_GetPageSize[] = { &wxluatype_wxScrollBar, NULL }; -static int LUACALL wxLua_wxScrollBar_GetPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_GetPageSize[1] = {{ wxLua_wxScrollBar_GetPageSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollBar_GetPageSize }}; -// int GetPageSize() const; -static int LUACALL wxLua_wxScrollBar_GetPageSize(lua_State *L) -{ - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call GetPageSize - int returns = (self->GetPageSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_GetRange[] = { &wxluatype_wxScrollBar, NULL }; -static int LUACALL wxLua_wxScrollBar_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_GetRange[1] = {{ wxLua_wxScrollBar_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollBar_GetRange }}; -// int GetRange() const; -static int LUACALL wxLua_wxScrollBar_GetRange(lua_State *L) -{ - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call GetRange - int returns = (self->GetRange()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_GetThumbPosition[] = { &wxluatype_wxScrollBar, NULL }; -static int LUACALL wxLua_wxScrollBar_GetThumbPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_GetThumbPosition[1] = {{ wxLua_wxScrollBar_GetThumbPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollBar_GetThumbPosition }}; -// int GetThumbPosition() const; -static int LUACALL wxLua_wxScrollBar_GetThumbPosition(lua_State *L) -{ - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call GetThumbPosition - int returns = (self->GetThumbPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_GetThumbSize[] = { &wxluatype_wxScrollBar, NULL }; -static int LUACALL wxLua_wxScrollBar_GetThumbSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_GetThumbSize[1] = {{ wxLua_wxScrollBar_GetThumbSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollBar_GetThumbSize }}; -// int GetThumbSize() const; -static int LUACALL wxLua_wxScrollBar_GetThumbSize(lua_State *L) -{ - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call GetThumbSize - int returns = (self->GetThumbSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_SetScrollbar[] = { &wxluatype_wxScrollBar, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxScrollBar_SetScrollbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_SetScrollbar[1] = {{ wxLua_wxScrollBar_SetScrollbar, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxScrollBar_SetScrollbar }}; -// virtual void SetScrollbar(int position, int thumbSize, int range, int pageSize, const bool refresh = true); -static int LUACALL wxLua_wxScrollBar_SetScrollbar(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const bool refresh = true - const bool refresh = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : true); - // int pageSize - int pageSize = (int)wxlua_getnumbertype(L, 5); - // int range - int range = (int)wxlua_getnumbertype(L, 4); - // int thumbSize - int thumbSize = (int)wxlua_getnumbertype(L, 3); - // int position - int position = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call SetScrollbar - self->SetScrollbar(position, thumbSize, range, pageSize, refresh); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_SetThumbPosition[] = { &wxluatype_wxScrollBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollBar_SetThumbPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_SetThumbPosition[1] = {{ wxLua_wxScrollBar_SetThumbPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollBar_SetThumbPosition }}; -// void SetThumbPosition(int viewStart); -static int LUACALL wxLua_wxScrollBar_SetThumbPosition(lua_State *L) -{ - // int viewStart - int viewStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollBar * self = (wxScrollBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollBar); - // call SetThumbPosition - self->SetThumbPosition(viewStart); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollBar_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxScrollBar_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_constructor1[1] = {{ wxLua_wxScrollBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxScrollBar_constructor1 }}; -// wxScrollBar(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxScrollBar"); -static int LUACALL wxLua_wxScrollBar_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxScrollBar" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxScrollBar"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxSB_HORIZONTAL - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxSB_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxScrollBar* returns = new wxScrollBar(parent, id, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScrollBar); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxScrollBar_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_constructor[1] = {{ wxLua_wxScrollBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxScrollBar(); -static int LUACALL wxLua_wxScrollBar_constructor(lua_State *L) -{ - // call constructor - wxScrollBar* returns = new wxScrollBar(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScrollBar); - - return 1; -} - - - - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollBar_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxScrollBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxScrollBar_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxScrollBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxScrollBar_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxScrollBar_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR) - -void wxLua_wxScrollBar_delete_function(void** p) -{ - wxScrollBar* o = (wxScrollBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxScrollBar_methods[] = { -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_GetPageSize, 1, NULL }, - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_GetRange, 1, NULL }, - { "GetThumbPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_GetThumbPosition, 1, NULL }, - { "GetThumbSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_GetThumbSize, 1, NULL }, - { "SetScrollbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_SetScrollbar, 1, NULL }, - { "SetThumbPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollBar_SetThumbPosition, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR) - { "wxScrollBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxScrollBar_constructor_overload, s_wxluafunc_wxLua_wxScrollBar_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR) - - { 0, 0, 0, 0 }, -}; - -int wxScrollBar_methodCount = sizeof(wxScrollBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - - -#if wxLUA_USE_wxSlider && wxUSE_SLIDER -// --------------------------------------------------------------------------- -// Bind class wxSlider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSlider' -int wxluatype_wxSlider = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_ClearSel[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_ClearSel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_ClearSel[1] = {{ wxLua_wxSlider_ClearSel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_ClearSel }}; -// void ClearSel(); -static int LUACALL wxLua_wxSlider_ClearSel(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call ClearSel - self->ClearSel(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_ClearTicks[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_ClearTicks(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_ClearTicks[1] = {{ wxLua_wxSlider_ClearTicks, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_ClearTicks }}; -// void ClearTicks(); -static int LUACALL wxLua_wxSlider_ClearTicks(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call ClearTicks - self->ClearTicks(); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_Create[] = { &wxluatype_wxSlider, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSlider_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_Create[1] = {{ wxLua_wxSlider_Create, WXLUAMETHOD_METHOD, 6, 11, s_wxluatypeArray_wxLua_wxSlider_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, int value , int minValue, int maxValue, const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxSlider"); -static int LUACALL wxLua_wxSlider_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSlider" - const wxString name = (argCount >= 11 ? wxlua_getwxStringtype(L, 11) : wxString(wxT("wxSlider"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 10 ? (const wxValidator *)wxluaT_getuserdatatype(L, 10, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxSL_HORIZONTAL - long style = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : wxSL_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 8 ? (const wxSize *)wxluaT_getuserdatatype(L, 8, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint point = wxDefaultPosition - const wxPoint * point = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // int maxValue - int maxValue = (int)wxlua_getnumbertype(L, 6); - // int minValue - int minValue = (int)wxlua_getnumbertype(L, 5); - // int value - int value = (int)wxlua_getnumbertype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call Create - bool returns = (self->Create(parent, id, value, minValue, maxValue, *point, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetLineSize[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetLineSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetLineSize[1] = {{ wxLua_wxSlider_GetLineSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetLineSize }}; -// int GetLineSize() const; -static int LUACALL wxLua_wxSlider_GetLineSize(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetLineSize - int returns = (self->GetLineSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetMax[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetMax[1] = {{ wxLua_wxSlider_GetMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetMax }}; -// int GetMax() const; -static int LUACALL wxLua_wxSlider_GetMax(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetMax - int returns = (self->GetMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetMin[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetMin[1] = {{ wxLua_wxSlider_GetMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetMin }}; -// int GetMin() const; -static int LUACALL wxLua_wxSlider_GetMin(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetMin - int returns = (self->GetMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetPageSize[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetPageSize[1] = {{ wxLua_wxSlider_GetPageSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetPageSize }}; -// int GetPageSize() const; -static int LUACALL wxLua_wxSlider_GetPageSize(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetPageSize - int returns = (self->GetPageSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetSelEnd[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetSelEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetSelEnd[1] = {{ wxLua_wxSlider_GetSelEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetSelEnd }}; -// int GetSelEnd() const; -static int LUACALL wxLua_wxSlider_GetSelEnd(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetSelEnd - int returns = (self->GetSelEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetSelStart[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetSelStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetSelStart[1] = {{ wxLua_wxSlider_GetSelStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetSelStart }}; -// int GetSelStart() const; -static int LUACALL wxLua_wxSlider_GetSelStart(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetSelStart - int returns = (self->GetSelStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetThumbLength[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetThumbLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetThumbLength[1] = {{ wxLua_wxSlider_GetThumbLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetThumbLength }}; -// int GetThumbLength() const; -static int LUACALL wxLua_wxSlider_GetThumbLength(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetThumbLength - int returns = (self->GetThumbLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetTickFreq[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetTickFreq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetTickFreq[1] = {{ wxLua_wxSlider_GetTickFreq, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetTickFreq }}; -// int GetTickFreq() const; -static int LUACALL wxLua_wxSlider_GetTickFreq(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetTickFreq - int returns = (self->GetTickFreq()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_GetValue[] = { &wxluatype_wxSlider, NULL }; -static int LUACALL wxLua_wxSlider_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_GetValue[1] = {{ wxLua_wxSlider_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSlider_GetValue }}; -// int GetValue() const; -static int LUACALL wxLua_wxSlider_GetValue(lua_State *L) -{ - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetLineSize[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetLineSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetLineSize[1] = {{ wxLua_wxSlider_SetLineSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetLineSize }}; -// void SetLineSize(int lineSize); -static int LUACALL wxLua_wxSlider_SetLineSize(lua_State *L) -{ - // int lineSize - int lineSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetLineSize - self->SetLineSize(lineSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetPageSize[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetPageSize[1] = {{ wxLua_wxSlider_SetPageSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetPageSize }}; -// void SetPageSize(int pageSize); -static int LUACALL wxLua_wxSlider_SetPageSize(lua_State *L) -{ - // int pageSize - int pageSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetPageSize - self->SetPageSize(pageSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetRange[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetRange[1] = {{ wxLua_wxSlider_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSlider_SetRange }}; -// void SetRange(int minValue, int maxValue); -static int LUACALL wxLua_wxSlider_SetRange(lua_State *L) -{ - // int maxValue - int maxValue = (int)wxlua_getnumbertype(L, 3); - // int minValue - int minValue = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetRange - self->SetRange(minValue, maxValue); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetSelection[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetSelection[1] = {{ wxLua_wxSlider_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSlider_SetSelection }}; -// void SetSelection(int startPos, int endPos); -static int LUACALL wxLua_wxSlider_SetSelection(lua_State *L) -{ - // int endPos - int endPos = (int)wxlua_getnumbertype(L, 3); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetSelection - self->SetSelection(startPos, endPos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetThumbLength[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetThumbLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetThumbLength[1] = {{ wxLua_wxSlider_SetThumbLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetThumbLength }}; -// void SetThumbLength(int len); -static int LUACALL wxLua_wxSlider_SetThumbLength(lua_State *L) -{ - // int len - int len = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetThumbLength - self->SetThumbLength(len); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetTick[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetTick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetTick[1] = {{ wxLua_wxSlider_SetTick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetTick }}; -// void SetTick(int tickPos); -static int LUACALL wxLua_wxSlider_SetTick(lua_State *L) -{ - // int tickPos - int tickPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetTick - self->SetTick(tickPos); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetTickFreq1[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetTickFreq1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetTickFreq1[1] = {{ wxLua_wxSlider_SetTickFreq1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetTickFreq1 }}; -// %wxchkver_2_8 && %win void SetTickFreq(int n); -static int LUACALL wxLua_wxSlider_SetTickFreq1(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetTickFreq - self->SetTickFreq(n); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetTickFreq[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetTickFreq(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetTickFreq[1] = {{ wxLua_wxSlider_SetTickFreq, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSlider_SetTickFreq }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetTickFreq(int n, int pos); -static int LUACALL wxLua_wxSlider_SetTickFreq(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetTickFreq - self->SetTickFreq(n, pos); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_SetValue[] = { &wxluatype_wxSlider, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSlider_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetValue[1] = {{ wxLua_wxSlider_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetValue }}; -// void SetValue(int value); -static int LUACALL wxLua_wxSlider_SetValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxSlider * self = (wxSlider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSlider); - // call SetValue - self->SetValue(value); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSlider_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSlider_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_constructor1[1] = {{ wxLua_wxSlider_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 10, s_wxluatypeArray_wxLua_wxSlider_constructor1 }}; -// wxSlider(wxWindow* parent, wxWindowID id, int value , int minValue, int maxValue, const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxSlider"); -static int LUACALL wxLua_wxSlider_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSlider" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxSlider"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxSL_HORIZONTAL - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxSL_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint point = wxDefaultPosition - const wxPoint * point = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // int maxValue - int maxValue = (int)wxlua_getnumbertype(L, 5); - // int minValue - int minValue = (int)wxlua_getnumbertype(L, 4); - // int value - int value = (int)wxlua_getnumbertype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSlider* returns = new wxSlider(parent, id, value, minValue, maxValue, *point, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSlider); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxSlider_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_constructor[1] = {{ wxLua_wxSlider_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSlider(); -static int LUACALL wxLua_wxSlider_constructor(lua_State *L) -{ - // call constructor - wxSlider* returns = new wxSlider(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSlider); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_SetTickFreq_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) - { wxLua_wxSlider_SetTickFreq1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSlider_SetTickFreq1 }, -#endif // (wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) - { wxLua_wxSlider_SetTickFreq, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSlider_SetTickFreq }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER) -}; -static int s_wxluafunc_wxLua_wxSlider_SetTickFreq_overload_count = sizeof(s_wxluafunc_wxLua_wxSlider_SetTickFreq_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxSlider && wxUSE_SLIDER) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSlider_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxSlider_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 10, s_wxluatypeArray_wxLua_wxSlider_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxSlider_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSlider_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSlider_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxSlider && wxUSE_SLIDER) - -void wxLua_wxSlider_delete_function(void** p) -{ - wxSlider* o = (wxSlider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSlider_methods[] = { - { "ClearSel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_ClearSel, 1, NULL }, - { "ClearTicks", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_ClearTicks, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetLineSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetLineSize, 1, NULL }, - { "GetMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetMax, 1, NULL }, - { "GetMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetMin, 1, NULL }, - { "GetPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetPageSize, 1, NULL }, - { "GetSelEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetSelEnd, 1, NULL }, - { "GetSelStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetSelStart, 1, NULL }, - { "GetThumbLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetThumbLength, 1, NULL }, - { "GetTickFreq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetTickFreq, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_GetValue, 1, NULL }, - { "SetLineSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetLineSize, 1, NULL }, - { "SetPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetPageSize, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetRange, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetSelection, 1, NULL }, - { "SetThumbLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetThumbLength, 1, NULL }, - { "SetTick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetTick, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) - { "SetTickFreq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetTickFreq_overload, s_wxluafunc_wxLua_wxSlider_SetTickFreq_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && defined(__WXMSW__)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) - - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSlider_SetValue, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxSlider && wxUSE_SLIDER) - { "wxSlider", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSlider_constructor_overload, s_wxluafunc_wxLua_wxSlider_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSlider && wxUSE_SLIDER)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxSlider && wxUSE_SLIDER) - - { 0, 0, 0, 0 }, -}; - -int wxSlider_methodCount = sizeof(wxSlider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSlider && wxUSE_SLIDER - - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN -// --------------------------------------------------------------------------- -// Bind class wxSpinButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSpinButton' -int wxluatype_wxSpinButton = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_Create[] = { &wxluatype_wxSpinButton, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinButton_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_Create[1] = {{ wxLua_wxSpinButton_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxSpinButton_Create }}; -// bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_VERTICAL | wxSP_ARROW_KEYS, const wxString& name = "wxSpinButton"); -static int LUACALL wxLua_wxSpinButton_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSpinButton" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxSpinButton"))); - // long style = wxSP_VERTICAL | wxSP_ARROW_KEYS - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxSP_VERTICAL | wxSP_ARROW_KEYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSpinButton * self = (wxSpinButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinButton); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_GetMax[] = { &wxluatype_wxSpinButton, NULL }; -static int LUACALL wxLua_wxSpinButton_GetMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_GetMax[1] = {{ wxLua_wxSpinButton_GetMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinButton_GetMax }}; -// int GetMax() const; -static int LUACALL wxLua_wxSpinButton_GetMax(lua_State *L) -{ - // get this - wxSpinButton * self = (wxSpinButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinButton); - // call GetMax - int returns = (self->GetMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_GetMin[] = { &wxluatype_wxSpinButton, NULL }; -static int LUACALL wxLua_wxSpinButton_GetMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_GetMin[1] = {{ wxLua_wxSpinButton_GetMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinButton_GetMin }}; -// int GetMin() const; -static int LUACALL wxLua_wxSpinButton_GetMin(lua_State *L) -{ - // get this - wxSpinButton * self = (wxSpinButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinButton); - // call GetMin - int returns = (self->GetMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_GetValue[] = { &wxluatype_wxSpinButton, NULL }; -static int LUACALL wxLua_wxSpinButton_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_GetValue[1] = {{ wxLua_wxSpinButton_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinButton_GetValue }}; -// int GetValue() const; -static int LUACALL wxLua_wxSpinButton_GetValue(lua_State *L) -{ - // get this - wxSpinButton * self = (wxSpinButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinButton); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_SetRange[] = { &wxluatype_wxSpinButton, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinButton_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_SetRange[1] = {{ wxLua_wxSpinButton_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSpinButton_SetRange }}; -// void SetRange(int min, int max); -static int LUACALL wxLua_wxSpinButton_SetRange(lua_State *L) -{ - // int max - int max = (int)wxlua_getnumbertype(L, 3); - // int min - int min = (int)wxlua_getnumbertype(L, 2); - // get this - wxSpinButton * self = (wxSpinButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinButton); - // call SetRange - self->SetRange(min, max); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_SetValue[] = { &wxluatype_wxSpinButton, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinButton_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_SetValue[1] = {{ wxLua_wxSpinButton_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinButton_SetValue }}; -// void SetValue(int value); -static int LUACALL wxLua_wxSpinButton_SetValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxSpinButton * self = (wxSpinButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinButton); - // call SetValue - self->SetValue(value); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinButton_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinButton_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_constructor1[1] = {{ wxLua_wxSpinButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSpinButton_constructor1 }}; -// wxSpinButton(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_VERTICAL | wxSP_ARROW_KEYS, const wxString& name = "wxSpinButton"); -static int LUACALL wxLua_wxSpinButton_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSpinButton" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxSpinButton"))); - // long style = wxSP_VERTICAL | wxSP_ARROW_KEYS - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxSP_VERTICAL | wxSP_ARROW_KEYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSpinButton* returns = new wxSpinButton(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinButton); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - -static int LUACALL wxLua_wxSpinButton_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_constructor[1] = {{ wxLua_wxSpinButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSpinButton(); -static int LUACALL wxLua_wxSpinButton_constructor(lua_State *L) -{ - // call constructor - wxSpinButton* returns = new wxSpinButton(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinButton); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN))||(wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinButton_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - { wxLua_wxSpinButton_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSpinButton_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - { wxLua_wxSpinButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSpinButton_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSpinButton_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN))||(wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - -void wxLua_wxSpinButton_delete_function(void** p) -{ - wxSpinButton* o = (wxSpinButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSpinButton_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinButton_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - - { "GetMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinButton_GetMax, 1, NULL }, - { "GetMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinButton_GetMin, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinButton_GetValue, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinButton_SetRange, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinButton_SetValue, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN))||(wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - { "wxSpinButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSpinButton_constructor_overload, s_wxluafunc_wxLua_wxSpinButton_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinButton && wxUSE_SPINBTN))||(wxLUA_USE_wxSpinButton && wxUSE_SPINBTN) - - { 0, 0, 0, 0 }, -}; - -int wxSpinButton_methodCount = sizeof(wxSpinButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - - -#if wxLUA_USE_wxSpinButton && wxUSE_SPINBTN -// --------------------------------------------------------------------------- -// Bind class wxSpinEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSpinEvent' -int wxluatype_wxSpinEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinEvent_GetPosition[] = { &wxluatype_wxSpinEvent, NULL }; -static int LUACALL wxLua_wxSpinEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinEvent_GetPosition[1] = {{ wxLua_wxSpinEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinEvent_GetPosition }}; -// int GetPosition() const; -static int LUACALL wxLua_wxSpinEvent_GetPosition(lua_State *L) -{ - // get this - wxSpinEvent * self = (wxSpinEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinEvent); - // call GetPosition - int returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinEvent_SetPosition[] = { &wxluatype_wxSpinEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinEvent_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinEvent_SetPosition[1] = {{ wxLua_wxSpinEvent_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinEvent_SetPosition }}; -// void SetPosition(int pos); -static int LUACALL wxLua_wxSpinEvent_SetPosition(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxSpinEvent * self = (wxSpinEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinEvent); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinEvent_delete[] = { &wxluatype_wxSpinEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSpinEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinEvent_constructor[1] = {{ wxLua_wxSpinEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxSpinEvent_constructor }}; -// wxSpinEvent(wxEventType commandType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxSpinEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxSpinEvent* returns = new wxSpinEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSpinEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinEvent); - - return 1; -} - - - - -void wxLua_wxSpinEvent_delete_function(void** p) -{ - wxSpinEvent* o = (wxSpinEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSpinEvent_methods[] = { - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinEvent_GetPosition, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinEvent_SetPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSpinEvent_delete, 1, NULL }, - { "wxSpinEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSpinEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSpinEvent_methodCount = sizeof(wxSpinEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSpinButton && wxUSE_SPINBTN - - -#if wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL -// --------------------------------------------------------------------------- -// Bind class wxSpinCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSpinCtrl' -int wxluatype_wxSpinCtrl = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_Create[] = { &wxluatype_wxSpinCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_Create[1] = {{ wxLua_wxSpinCtrl_Create, WXLUAMETHOD_METHOD, 2, 11, s_wxluatypeArray_wxLua_wxSpinCtrl_Create }}; -// bool Create(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, const wxString& name = "wxSpinCtrl"); -static int LUACALL wxLua_wxSpinCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSpinCtrl" - const wxString name = (argCount >= 11 ? wxlua_getwxStringtype(L, 11) : wxString(wxT("wxSpinCtrl"))); - // int initial = 0 - int initial = (argCount >= 10 ? (int)wxlua_getnumbertype(L, 10) : 0); - // int max = 100 - int max = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : 100); - // int min = 0 - int min = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // long style = wxSP_ARROW_KEYS - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxSP_ARROW_KEYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, style, min, max, initial, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_GetBase[] = { &wxluatype_wxSpinCtrl, NULL }; -static int LUACALL wxLua_wxSpinCtrl_GetBase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_GetBase[1] = {{ wxLua_wxSpinCtrl_GetBase, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrl_GetBase }}; -// %wxchkver_2_9_5 int GetBase() const; -static int LUACALL wxLua_wxSpinCtrl_GetBase(lua_State *L) -{ - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call GetBase - int returns = (self->GetBase()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_GetMax[] = { &wxluatype_wxSpinCtrl, NULL }; -static int LUACALL wxLua_wxSpinCtrl_GetMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_GetMax[1] = {{ wxLua_wxSpinCtrl_GetMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrl_GetMax }}; -// int GetMax() const; -static int LUACALL wxLua_wxSpinCtrl_GetMax(lua_State *L) -{ - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call GetMax - int returns = (self->GetMax()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_GetMin[] = { &wxluatype_wxSpinCtrl, NULL }; -static int LUACALL wxLua_wxSpinCtrl_GetMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_GetMin[1] = {{ wxLua_wxSpinCtrl_GetMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrl_GetMin }}; -// int GetMin() const; -static int LUACALL wxLua_wxSpinCtrl_GetMin(lua_State *L) -{ - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call GetMin - int returns = (self->GetMin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_GetValue[] = { &wxluatype_wxSpinCtrl, NULL }; -static int LUACALL wxLua_wxSpinCtrl_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_GetValue[1] = {{ wxLua_wxSpinCtrl_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrl_GetValue }}; -// int GetValue() const; -static int LUACALL wxLua_wxSpinCtrl_GetValue(lua_State *L) -{ - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_SetBase[] = { &wxluatype_wxSpinCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrl_SetBase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_SetBase[1] = {{ wxLua_wxSpinCtrl_SetBase, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrl_SetBase }}; -// %wxchkver_2_9_5 bool SetBase(int base); -static int LUACALL wxLua_wxSpinCtrl_SetBase(lua_State *L) -{ - // int base - int base = (int)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call SetBase - bool returns = (self->SetBase(base)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_SetRange[] = { &wxluatype_wxSpinCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrl_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_SetRange[1] = {{ wxLua_wxSpinCtrl_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSpinCtrl_SetRange }}; -// void SetRange(int minVal, int maxVal); -static int LUACALL wxLua_wxSpinCtrl_SetRange(lua_State *L) -{ - // int maxVal - int maxVal = (int)wxlua_getnumbertype(L, 3); - // int minVal - int minVal = (int)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call SetRange - self->SetRange(minVal, maxVal); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_SetSelection[] = { &wxluatype_wxSpinCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrl_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_SetSelection[1] = {{ wxLua_wxSpinCtrl_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSpinCtrl_SetSelection }}; -// void SetSelection(long from, long to); -static int LUACALL wxLua_wxSpinCtrl_SetSelection(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call SetSelection - self->SetSelection(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_SetValue1[] = { &wxluatype_wxSpinCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrl_SetValue1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_SetValue1[1] = {{ wxLua_wxSpinCtrl_SetValue1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrl_SetValue1 }}; -// void SetValue(int iValue); -static int LUACALL wxLua_wxSpinCtrl_SetValue1(lua_State *L) -{ - // int iValue - int iValue = (int)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call SetValue - self->SetValue(iValue); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_SetValue[] = { &wxluatype_wxSpinCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinCtrl_SetValue(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_SetValue[1] = {{ wxLua_wxSpinCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrl_SetValue }}; -// void SetValue(const wxString& text); -static int LUACALL wxLua_wxSpinCtrl_SetValue(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxSpinCtrl * self = (wxSpinCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrl); - // call SetValue - self->SetValue(text); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_constructor1[1] = {{ wxLua_wxSpinCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 10, s_wxluatypeArray_wxLua_wxSpinCtrl_constructor1 }}; -// wxSpinCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, int min = 0, int max = 100, int initial = 0, const wxString& name = "wxSpinCtrl"); -static int LUACALL wxLua_wxSpinCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSpinCtrl" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxSpinCtrl"))); - // int initial = 0 - int initial = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : 0); - // int max = 100 - int max = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 100); - // int min = 0 - int min = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // long style = wxSP_ARROW_KEYS - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxSP_ARROW_KEYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSpinCtrl* returns = new wxSpinCtrl(parent, id, value, *pos, *size, style, min, max, initial, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -static int LUACALL wxLua_wxSpinCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_constructor[1] = {{ wxLua_wxSpinCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSpinCtrl(); -static int LUACALL wxLua_wxSpinCtrl_constructor(lua_State *L) -{ - // call constructor - wxSpinCtrl* returns = new wxSpinCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinCtrl); - - return 1; -} - - - - -#if (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_SetValue_overload[] = -{ - { wxLua_wxSpinCtrl_SetValue1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrl_SetValue1 }, - { wxLua_wxSpinCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrl_SetValue }, -}; -static int s_wxluafunc_wxLua_wxSpinCtrl_SetValue_overload_count = sizeof(s_wxluafunc_wxLua_wxSpinCtrl_SetValue_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrl_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { wxLua_wxSpinCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 10, s_wxluatypeArray_wxLua_wxSpinCtrl_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { wxLua_wxSpinCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSpinCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSpinCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -void wxLua_wxSpinCtrl_delete_function(void** p) -{ - wxSpinCtrl* o = (wxSpinCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSpinCtrl_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { "GetBase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_GetBase, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - - { "GetMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_GetMax, 1, NULL }, - { "GetMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_GetMin, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_GetValue, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { "SetBase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_SetBase, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_SetRange, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_SetSelection, 1, NULL }, - -#if (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrl_SetValue_overload, s_wxluafunc_wxLua_wxSpinCtrl_SetValue_overload_count, 0 }, -#endif // (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - { "wxSpinCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSpinCtrl_constructor_overload, s_wxluafunc_wxLua_wxSpinCtrl_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxSpinCtrl_methodCount = sizeof(wxSpinCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSpinCtrl && wxUSE_SPINCTRL - - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL -// --------------------------------------------------------------------------- -// Bind class wxSpinDoubleEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSpinDoubleEvent' -int wxluatype_wxSpinDoubleEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinDoubleEvent_GetValue[] = { &wxluatype_wxSpinDoubleEvent, NULL }; -static int LUACALL wxLua_wxSpinDoubleEvent_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinDoubleEvent_GetValue[1] = {{ wxLua_wxSpinDoubleEvent_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinDoubleEvent_GetValue }}; -// double GetValue() const; -static int LUACALL wxLua_wxSpinDoubleEvent_GetValue(lua_State *L) -{ - // get this - wxSpinDoubleEvent * self = (wxSpinDoubleEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinDoubleEvent); - // call GetValue - double returns = (self->GetValue()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinDoubleEvent_SetValue[] = { &wxluatype_wxSpinDoubleEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinDoubleEvent_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinDoubleEvent_SetValue[1] = {{ wxLua_wxSpinDoubleEvent_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinDoubleEvent_SetValue }}; -// void SetValue(double value); -static int LUACALL wxLua_wxSpinDoubleEvent_SetValue(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 2); - // get this - wxSpinDoubleEvent * self = (wxSpinDoubleEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinDoubleEvent); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinDoubleEvent_delete[] = { &wxluatype_wxSpinDoubleEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinDoubleEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSpinDoubleEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinDoubleEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinDoubleEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinDoubleEvent_constructor[1] = {{ wxLua_wxSpinDoubleEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxSpinDoubleEvent_constructor }}; -// wxSpinDoubleEvent(wxEventType commandType = wxEVT_NULL, int winid=0, double value=0); -static int LUACALL wxLua_wxSpinDoubleEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double value = 0 - double value = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 0); - // int winid = 0 - int winid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxSpinDoubleEvent* returns = new wxSpinDoubleEvent(commandType, winid, value); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSpinDoubleEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinDoubleEvent); - - return 1; -} - - - - -void wxLua_wxSpinDoubleEvent_delete_function(void** p) -{ - wxSpinDoubleEvent* o = (wxSpinDoubleEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSpinDoubleEvent_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinDoubleEvent_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinDoubleEvent_SetValue, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSpinDoubleEvent_delete, 1, NULL }, - { "wxSpinDoubleEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSpinDoubleEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSpinDoubleEvent_methodCount = sizeof(wxSpinDoubleEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - - -#if wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL -// --------------------------------------------------------------------------- -// Bind class wxSpinCtrlDouble -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSpinCtrlDouble' -int wxluatype_wxSpinCtrlDouble = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_Create[] = { &wxluatype_wxSpinCtrlDouble, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_Create[1] = {{ wxLua_wxSpinCtrlDouble_Create, WXLUAMETHOD_METHOD, 2, 12, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_Create }}; -// bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, double min = 0, double max = 100, double initial = 0, double inc = 1, const wxString& name = "wxSpinCtrlDouble"); -static int LUACALL wxLua_wxSpinCtrlDouble_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSpinCtrlDouble" - const wxString name = (argCount >= 12 ? wxlua_getwxStringtype(L, 12) : wxString(wxT("wxSpinCtrlDouble"))); - // double inc = 1 - double inc = (argCount >= 11 ? (double)wxlua_getnumbertype(L, 11) : 1); - // double initial = 0 - double initial = (argCount >= 10 ? (double)wxlua_getnumbertype(L, 10) : 0); - // double max = 100 - double max = (argCount >= 9 ? (double)wxlua_getnumbertype(L, 9) : 100); - // double min = 0 - double min = (argCount >= 8 ? (double)wxlua_getnumbertype(L, 8) : 0); - // long style = wxSP_ARROW_KEYS - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxSP_ARROW_KEYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, style, min, max, initial, inc, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetDigits[] = { &wxluatype_wxSpinCtrlDouble, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_GetDigits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_GetDigits[1] = {{ wxLua_wxSpinCtrlDouble_GetDigits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetDigits }}; -// unsigned int GetDigits(); -static int LUACALL wxLua_wxSpinCtrlDouble_GetDigits(lua_State *L) -{ - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call GetDigits - unsigned int returns = (self->GetDigits()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetIncrement[] = { &wxluatype_wxSpinCtrlDouble, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_GetIncrement(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_GetIncrement[1] = {{ wxLua_wxSpinCtrlDouble_GetIncrement, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetIncrement }}; -// double GetIncrement(); -static int LUACALL wxLua_wxSpinCtrlDouble_GetIncrement(lua_State *L) -{ - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call GetIncrement - double returns = (self->GetIncrement()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetMax[] = { &wxluatype_wxSpinCtrlDouble, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_GetMax(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_GetMax[1] = {{ wxLua_wxSpinCtrlDouble_GetMax, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetMax }}; -// double GetMax() const; -static int LUACALL wxLua_wxSpinCtrlDouble_GetMax(lua_State *L) -{ - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call GetMax - double returns = (self->GetMax()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetMin[] = { &wxluatype_wxSpinCtrlDouble, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_GetMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_GetMin[1] = {{ wxLua_wxSpinCtrlDouble_GetMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetMin }}; -// double GetMin() const; -static int LUACALL wxLua_wxSpinCtrlDouble_GetMin(lua_State *L) -{ - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call GetMin - double returns = (self->GetMin()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetValue[] = { &wxluatype_wxSpinCtrlDouble, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_GetValue[1] = {{ wxLua_wxSpinCtrlDouble_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_GetValue }}; -// double GetValue(wxSPINCTRL_GETVALUE_FIX); -static int LUACALL wxLua_wxSpinCtrlDouble_GetValue(lua_State *L) -{ - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call GetValue - double returns = (self->GetValue()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetDigits[] = { &wxluatype_wxSpinCtrlDouble, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_SetDigits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_SetDigits[1] = {{ wxLua_wxSpinCtrlDouble_SetDigits, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetDigits }}; -// void SetDigits(unsigned int digits); -static int LUACALL wxLua_wxSpinCtrlDouble_SetDigits(lua_State *L) -{ - // unsigned int digits - unsigned int digits = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call SetDigits - self->SetDigits(digits); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetIncrement[] = { &wxluatype_wxSpinCtrlDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_SetIncrement(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_SetIncrement[1] = {{ wxLua_wxSpinCtrlDouble_SetIncrement, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetIncrement }}; -// void SetIncrement(double inc); -static int LUACALL wxLua_wxSpinCtrlDouble_SetIncrement(lua_State *L) -{ - // double inc - double inc = (double)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call SetIncrement - self->SetIncrement(inc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetRange[] = { &wxluatype_wxSpinCtrlDouble, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_SetRange[1] = {{ wxLua_wxSpinCtrlDouble_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetRange }}; -// void SetRange(double minVal, double maxVal); -static int LUACALL wxLua_wxSpinCtrlDouble_SetRange(lua_State *L) -{ - // double maxVal - double maxVal = (double)wxlua_getnumbertype(L, 3); - // double minVal - double minVal = (double)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call SetRange - self->SetRange(minVal, maxVal); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetValue1[] = { &wxluatype_wxSpinCtrlDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_SetValue1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue1[1] = {{ wxLua_wxSpinCtrlDouble_SetValue1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetValue1 }}; -// void SetValue(double value); -static int LUACALL wxLua_wxSpinCtrlDouble_SetValue1(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 2); - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetValue[] = { &wxluatype_wxSpinCtrlDouble, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_SetValue(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue[1] = {{ wxLua_wxSpinCtrlDouble_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetValue }}; -// void SetValue(const wxString& value); -static int LUACALL wxLua_wxSpinCtrlDouble_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxSpinCtrlDouble * self = (wxSpinCtrlDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSpinCtrlDouble); - // call SetValue - self->SetValue(value); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSpinCtrlDouble_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSpinCtrlDouble_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor1[1] = {{ wxLua_wxSpinCtrlDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 11, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_constructor1 }}; -// wxSpinCtrlDouble(wxWindow *parent, wxWindowID id = wxID_ANY, const wxString& value = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_ARROW_KEYS, double min = 0, double max = 100, double initial = 0, double inc = 1, const wxString& name = "wxSpinCtrlDouble"); -static int LUACALL wxLua_wxSpinCtrlDouble_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSpinCtrlDouble" - const wxString name = (argCount >= 11 ? wxlua_getwxStringtype(L, 11) : wxString(wxT("wxSpinCtrlDouble"))); - // double inc = 1 - double inc = (argCount >= 10 ? (double)wxlua_getnumbertype(L, 10) : 1); - // double initial = 0 - double initial = (argCount >= 9 ? (double)wxlua_getnumbertype(L, 9) : 0); - // double max = 100 - double max = (argCount >= 8 ? (double)wxlua_getnumbertype(L, 8) : 100); - // double min = 0 - double min = (argCount >= 7 ? (double)wxlua_getnumbertype(L, 7) : 0); - // long style = wxSP_ARROW_KEYS - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxSP_ARROW_KEYS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSpinCtrlDouble* returns = new wxSpinCtrlDouble(parent, id, value, *pos, *size, style, min, max, initial, inc, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinCtrlDouble); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - -static int LUACALL wxLua_wxSpinCtrlDouble_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor[1] = {{ wxLua_wxSpinCtrlDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSpinCtrlDouble(); -static int LUACALL wxLua_wxSpinCtrlDouble_constructor(lua_State *L) -{ - // call constructor - wxSpinCtrlDouble* returns = new wxSpinCtrlDouble(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSpinCtrlDouble); - - return 1; -} - - - - -#if (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue_overload[] = -{ - { wxLua_wxSpinCtrlDouble_SetValue1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetValue1 }, - { wxLua_wxSpinCtrlDouble_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_SetValue }, -}; -static int s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue_overload_count = sizeof(s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - { wxLua_wxSpinCtrlDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 11, s_wxluatypeArray_wxLua_wxSpinCtrlDouble_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - { wxLua_wxSpinCtrlDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - -void wxLua_wxSpinCtrlDouble_delete_function(void** p) -{ - wxSpinCtrlDouble* o = (wxSpinCtrlDouble*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSpinCtrlDouble_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - - { "GetDigits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_GetDigits, 1, NULL }, - { "GetIncrement", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_GetIncrement, 1, NULL }, - { "GetMax", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_GetMax, 1, NULL }, - { "GetMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_GetMin, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_GetValue, 1, NULL }, - { "SetDigits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_SetDigits, 1, NULL }, - { "SetIncrement", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_SetIncrement, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_SetRange, 1, NULL }, - -#if (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue_overload, s_wxluafunc_wxLua_wxSpinCtrlDouble_SetValue_overload_count, 0 }, -#endif // (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - { "wxSpinCtrlDouble", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor_overload, s_wxluafunc_wxLua_wxSpinCtrlDouble_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL))||(wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxSpinCtrlDouble_methodCount = sizeof(wxSpinCtrlDouble_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSpinCtrlDouble && wxUSE_SPINCTRL - - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -// --------------------------------------------------------------------------- -// Bind class wxTextEntry -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextEntry' -int wxluatype_wxTextEntry = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_AppendText[] = { &wxluatype_wxTextEntry, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntry_AppendText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_AppendText[1] = {{ wxLua_wxTextEntry_AppendText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_AppendText }}; -// %wxchkver_3_0_0 void AppendText(const wxString& text); -static int LUACALL wxLua_wxTextEntry_AppendText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call AppendText - self->AppendText(text); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_AutoComplete[] = { &wxluatype_wxTextEntry, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxTextEntry_AutoComplete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_AutoComplete[1] = {{ wxLua_wxTextEntry_AutoComplete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_AutoComplete }}; -// %wxchkver_3_0_0 bool AutoComplete(const wxArrayString& choices); -static int LUACALL wxLua_wxTextEntry_AutoComplete(lua_State *L) -{ - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call AutoComplete - bool returns = (self->AutoComplete(choices)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_AutoCompleteDirectories[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_AutoCompleteDirectories(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_AutoCompleteDirectories[1] = {{ wxLua_wxTextEntry_AutoCompleteDirectories, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_AutoCompleteDirectories }}; -// %wxchkver_3_0_0 bool AutoCompleteDirectories(); -static int LUACALL wxLua_wxTextEntry_AutoCompleteDirectories(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call AutoCompleteDirectories - bool returns = (self->AutoCompleteDirectories()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_AutoCompleteFileNames[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_AutoCompleteFileNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_AutoCompleteFileNames[1] = {{ wxLua_wxTextEntry_AutoCompleteFileNames, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_AutoCompleteFileNames }}; -// %wxchkver_3_0_0 bool AutoCompleteFileNames(); -static int LUACALL wxLua_wxTextEntry_AutoCompleteFileNames(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call AutoCompleteFileNames - bool returns = (self->AutoCompleteFileNames()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_CanCopy[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_CanCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_CanCopy[1] = {{ wxLua_wxTextEntry_CanCopy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_CanCopy }}; -// %wxchkver_3_0_0 bool CanCopy() const; -static int LUACALL wxLua_wxTextEntry_CanCopy(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call CanCopy - bool returns = (self->CanCopy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_CanCut[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_CanCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_CanCut[1] = {{ wxLua_wxTextEntry_CanCut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_CanCut }}; -// %wxchkver_3_0_0 bool CanCut() const; -static int LUACALL wxLua_wxTextEntry_CanCut(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call CanCut - bool returns = (self->CanCut()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_CanPaste[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_CanPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_CanPaste[1] = {{ wxLua_wxTextEntry_CanPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_CanPaste }}; -// %wxchkver_3_0_0 bool CanPaste() const; -static int LUACALL wxLua_wxTextEntry_CanPaste(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call CanPaste - bool returns = (self->CanPaste()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_CanRedo[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_CanRedo[1] = {{ wxLua_wxTextEntry_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_CanRedo }}; -// %wxchkver_3_0_0 bool CanRedo() const; -static int LUACALL wxLua_wxTextEntry_CanRedo(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_CanUndo[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_CanUndo[1] = {{ wxLua_wxTextEntry_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_CanUndo }}; -// %wxchkver_3_0_0 bool CanUndo() const; -static int LUACALL wxLua_wxTextEntry_CanUndo(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_ChangeValue[] = { &wxluatype_wxTextEntry, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntry_ChangeValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_ChangeValue[1] = {{ wxLua_wxTextEntry_ChangeValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_ChangeValue }}; -// %wxchkver_3_0_0 void ChangeValue(const wxString& value); -static int LUACALL wxLua_wxTextEntry_ChangeValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call ChangeValue - self->ChangeValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Clear[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Clear[1] = {{ wxLua_wxTextEntry_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_Clear }}; -// %wxchkver_3_0_0 void Clear(); -static int LUACALL wxLua_wxTextEntry_Clear(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Copy[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Copy[1] = {{ wxLua_wxTextEntry_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_Copy }}; -// %wxchkver_3_0_0 void Copy(); -static int LUACALL wxLua_wxTextEntry_Copy(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Copy - self->Copy(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Cut[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Cut[1] = {{ wxLua_wxTextEntry_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_Cut }}; -// %wxchkver_3_0_0 void Cut(); -static int LUACALL wxLua_wxTextEntry_Cut(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Cut - self->Cut(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_ForceUpper[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_ForceUpper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_ForceUpper[1] = {{ wxLua_wxTextEntry_ForceUpper, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_ForceUpper }}; -// %wxchkver_3_1_0 void ForceUpper(); -static int LUACALL wxLua_wxTextEntry_ForceUpper(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call ForceUpper - self->ForceUpper(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetHint[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetHint[1] = {{ wxLua_wxTextEntry_GetHint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetHint }}; -// %wxchkver_3_0_0 wxString GetHint() const; -static int LUACALL wxLua_wxTextEntry_GetHint(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetHint - wxString returns = (self->GetHint()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetInsertionPoint[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetInsertionPoint[1] = {{ wxLua_wxTextEntry_GetInsertionPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetInsertionPoint }}; -// %wxchkver_3_0_0 long GetInsertionPoint() const; -static int LUACALL wxLua_wxTextEntry_GetInsertionPoint(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetInsertionPoint - long returns = (self->GetInsertionPoint()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetLastPosition[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetLastPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetLastPosition[1] = {{ wxLua_wxTextEntry_GetLastPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetLastPosition }}; -// %wxchkver_3_0_0 wxTextPos GetLastPosition() const; -static int LUACALL wxLua_wxTextEntry_GetLastPosition(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetLastPosition - wxTextPos returns = (self->GetLastPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetMargins[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetMargins[1] = {{ wxLua_wxTextEntry_GetMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetMargins }}; -// %wxchkver_3_0_0 wxPoint GetMargins() const; -static int LUACALL wxLua_wxTextEntry_GetMargins(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetMargins - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetMargins()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetRange[] = { &wxluatype_wxTextEntry, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextEntry_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetRange[1] = {{ wxLua_wxTextEntry_GetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextEntry_GetRange }}; -// %wxchkver_3_0_0 wxString GetRange(long from, long to) const; -static int LUACALL wxLua_wxTextEntry_GetRange(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetRange - wxString returns = (self->GetRange(from, to)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetSelection[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetSelection[1] = {{ wxLua_wxTextEntry_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetSelection }}; -// %override wxLua_wxTextEntry_GetSelection -// virtual void GetSelection(long* from, long* to) -static int LUACALL wxLua_wxTextEntry_GetSelection(lua_State *L) -{ - long to; - long from; - // get this - wxTextEntry *self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetSelection - self->GetSelection(&from, &to); - lua_pushinteger(L, from); - lua_pushinteger(L, to); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetStringSelection[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetStringSelection[1] = {{ wxLua_wxTextEntry_GetStringSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetStringSelection }}; -// %wxchkver_3_0_0 wxString GetStringSelection() const; -static int LUACALL wxLua_wxTextEntry_GetStringSelection(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetStringSelection - wxString returns = (self->GetStringSelection()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_GetValue[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_GetValue[1] = {{ wxLua_wxTextEntry_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_GetValue }}; -// %wxchkver_3_0_0 wxString GetValue() const; -static int LUACALL wxLua_wxTextEntry_GetValue(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_IsEditable[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_IsEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_IsEditable[1] = {{ wxLua_wxTextEntry_IsEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_IsEditable }}; -// %wxchkver_3_0_0 bool IsEditable() const; -static int LUACALL wxLua_wxTextEntry_IsEditable(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call IsEditable - bool returns = (self->IsEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_IsEmpty[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_IsEmpty[1] = {{ wxLua_wxTextEntry_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_IsEmpty }}; -// %wxchkver_3_0_0 bool IsEmpty() const; -static int LUACALL wxLua_wxTextEntry_IsEmpty(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Paste[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Paste[1] = {{ wxLua_wxTextEntry_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_Paste }}; -// %wxchkver_3_0_0 void Paste(); -static int LUACALL wxLua_wxTextEntry_Paste(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Paste - self->Paste(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Redo[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Redo[1] = {{ wxLua_wxTextEntry_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_Redo }}; -// %wxchkver_3_0_0 void Redo(); -static int LUACALL wxLua_wxTextEntry_Redo(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Redo - self->Redo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Remove[] = { &wxluatype_wxTextEntry, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextEntry_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Remove[1] = {{ wxLua_wxTextEntry_Remove, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextEntry_Remove }}; -// %wxchkver_3_0_0 void Remove(long from, long to); -static int LUACALL wxLua_wxTextEntry_Remove(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Remove - self->Remove(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Replace[] = { &wxluatype_wxTextEntry, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntry_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Replace[1] = {{ wxLua_wxTextEntry_Replace, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextEntry_Replace }}; -// %wxchkver_3_0_0 void Replace(long from, long to, const wxString& value); -static int LUACALL wxLua_wxTextEntry_Replace(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Replace - self->Replace(from, to, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SelectAll[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SelectAll[1] = {{ wxLua_wxTextEntry_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_SelectAll }}; -// %wxchkver_3_0_0 void SelectAll(); -static int LUACALL wxLua_wxTextEntry_SelectAll(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SelectAll - self->SelectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SelectNone[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_SelectNone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SelectNone[1] = {{ wxLua_wxTextEntry_SelectNone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_SelectNone }}; -// %wxchkver_3_0_0 void SelectNone(); -static int LUACALL wxLua_wxTextEntry_SelectNone(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SelectNone - self->SelectNone(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetEditable[] = { &wxluatype_wxTextEntry, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextEntry_SetEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetEditable[1] = {{ wxLua_wxTextEntry_SetEditable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetEditable }}; -// %wxchkver_3_0_0 void SetEditable(bool editable); -static int LUACALL wxLua_wxTextEntry_SetEditable(lua_State *L) -{ - // bool editable - bool editable = wxlua_getbooleantype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetEditable - self->SetEditable(editable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetHint[] = { &wxluatype_wxTextEntry, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntry_SetHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetHint[1] = {{ wxLua_wxTextEntry_SetHint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetHint }}; -// %wxchkver_3_0_0 bool SetHint(const wxString& hint); -static int LUACALL wxLua_wxTextEntry_SetHint(lua_State *L) -{ - // const wxString hint - const wxString hint = wxlua_getwxStringtype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetHint - bool returns = (self->SetHint(hint)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetInsertionPoint[] = { &wxluatype_wxTextEntry, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextEntry_SetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetInsertionPoint[1] = {{ wxLua_wxTextEntry_SetInsertionPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetInsertionPoint }}; -// %wxchkver_3_0_0 void SetInsertionPoint(long pos); -static int LUACALL wxLua_wxTextEntry_SetInsertionPoint(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetInsertionPoint - self->SetInsertionPoint(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetInsertionPointEnd[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_SetInsertionPointEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetInsertionPointEnd[1] = {{ wxLua_wxTextEntry_SetInsertionPointEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_SetInsertionPointEnd }}; -// %wxchkver_3_0_0 void SetInsertionPointEnd(); -static int LUACALL wxLua_wxTextEntry_SetInsertionPointEnd(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetInsertionPointEnd - self->SetInsertionPointEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetMargins1[] = { &wxluatype_wxTextEntry, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextEntry_SetMargins1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetMargins1[1] = {{ wxLua_wxTextEntry_SetMargins1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextEntry_SetMargins1 }}; -// %wxchkver_3_0_0 bool SetMargins(wxCoord left, wxCoord top = -1); -static int LUACALL wxLua_wxTextEntry_SetMargins1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCoord top = -1 - wxCoord top = (argCount >= 3 ? (wxCoord)wxlua_getnumbertype(L, 3) : -1); - // wxCoord left - wxCoord left = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetMargins - bool returns = (self->SetMargins(left, top)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetMargins[] = { &wxluatype_wxTextEntry, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTextEntry_SetMargins(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetMargins[1] = {{ wxLua_wxTextEntry_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetMargins }}; -// %wxchkver_3_0_0 bool SetMargins(const wxPoint& pt); -static int LUACALL wxLua_wxTextEntry_SetMargins(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetMargins - bool returns = (self->SetMargins(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetMaxLength[] = { &wxluatype_wxTextEntry, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextEntry_SetMaxLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetMaxLength[1] = {{ wxLua_wxTextEntry_SetMaxLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetMaxLength }}; -// %wxchkver_3_0_0 void SetMaxLength(unsigned long len); -static int LUACALL wxLua_wxTextEntry_SetMaxLength(lua_State *L) -{ - // unsigned long len - unsigned long len = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetMaxLength - self->SetMaxLength(len); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetSelection[] = { &wxluatype_wxTextEntry, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextEntry_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetSelection[1] = {{ wxLua_wxTextEntry_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextEntry_SetSelection }}; -// %wxchkver_3_0_0 void SetSelection(long from, long to); -static int LUACALL wxLua_wxTextEntry_SetSelection(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetSelection - self->SetSelection(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_SetValue[] = { &wxluatype_wxTextEntry, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntry_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetValue[1] = {{ wxLua_wxTextEntry_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetValue }}; -// %wxchkver_3_0_0 void SetValue(const wxString& value); -static int LUACALL wxLua_wxTextEntry_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_Undo[] = { &wxluatype_wxTextEntry, NULL }; -static int LUACALL wxLua_wxTextEntry_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_Undo[1] = {{ wxLua_wxTextEntry_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntry_Undo }}; -// %wxchkver_3_0_0 void Undo(); -static int LUACALL wxLua_wxTextEntry_Undo(lua_State *L) -{ - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call Undo - self->Undo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntry_WriteText[] = { &wxluatype_wxTextEntry, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntry_WriteText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_WriteText[1] = {{ wxLua_wxTextEntry_WriteText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_WriteText }}; -// %wxchkver_3_0_0 void WriteText(const wxString& text); -static int LUACALL wxLua_wxTextEntry_WriteText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTextEntry * self = (wxTextEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntry); - // call WriteText - self->WriteText(text); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntry_SetMargins_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxTextEntry_SetMargins1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextEntry_SetMargins1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxTextEntry_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntry_SetMargins }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxTextEntry_SetMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxTextEntry_SetMargins_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxTextEntry_delete_function(void** p) -{ - wxTextEntry* o = (wxTextEntry*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextEntry_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "AppendText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_AppendText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayString) - { "AutoComplete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_AutoComplete, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayString) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "AutoCompleteDirectories", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_AutoCompleteDirectories, 1, NULL }, - { "AutoCompleteFileNames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_AutoCompleteFileNames, 1, NULL }, - { "CanCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_CanCopy, 1, NULL }, - { "CanCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_CanCut, 1, NULL }, - { "CanPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_CanPaste, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_CanUndo, 1, NULL }, - { "ChangeValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_ChangeValue, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Clear, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Copy, 1, NULL }, - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Cut, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "ForceUpper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_ForceUpper, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetHint, 1, NULL }, - { "GetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetInsertionPoint, 1, NULL }, - { "GetLastPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetLastPosition, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - { "GetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetMargins, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetRange, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetSelection, 1, NULL }, - { "GetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetStringSelection, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_GetValue, 1, NULL }, - { "IsEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_IsEditable, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_IsEmpty, 1, NULL }, - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Paste, 1, NULL }, - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Redo, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Remove, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Replace, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SelectAll, 1, NULL }, - { "SelectNone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SelectNone, 1, NULL }, - { "SetEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetEditable, 1, NULL }, - { "SetHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetHint, 1, NULL }, - { "SetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetInsertionPoint, 1, NULL }, - { "SetInsertionPointEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetInsertionPointEnd, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetMargins_overload, s_wxluafunc_wxLua_wxTextEntry_SetMargins_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetMaxLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetMaxLength, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetSelection, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_SetValue, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_Undo, 1, NULL }, - { "WriteText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntry_WriteText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxTextEntry_methodCount = sizeof(wxTextEntry_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -// --------------------------------------------------------------------------- -// Bind class wxTextAreaBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAreaBase' -int wxluatype_wxTextAreaBase = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_DiscardEdits[] = { &wxluatype_wxTextAreaBase, NULL }; -static int LUACALL wxLua_wxTextAreaBase_DiscardEdits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_DiscardEdits[1] = {{ wxLua_wxTextAreaBase_DiscardEdits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAreaBase_DiscardEdits }}; -// virtual void DiscardEdits(); -static int LUACALL wxLua_wxTextAreaBase_DiscardEdits(lua_State *L) -{ - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call DiscardEdits - self->DiscardEdits(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_GetDefaultStyle[] = { &wxluatype_wxTextAreaBase, NULL }; -static int LUACALL wxLua_wxTextAreaBase_GetDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_GetDefaultStyle[1] = {{ wxLua_wxTextAreaBase_GetDefaultStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAreaBase_GetDefaultStyle }}; -// virtual const wxTextAttr& GetDefaultStyle() const; -static int LUACALL wxLua_wxTextAreaBase_GetDefaultStyle(lua_State *L) -{ - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call GetDefaultStyle - const wxTextAttr* returns = (const wxTextAttr*)&self->GetDefaultStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttr); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_GetLineLength[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_GetLineLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_GetLineLength[1] = {{ wxLua_wxTextAreaBase_GetLineLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_GetLineLength }}; -// virtual int GetLineLength(long lineNo) const; -static int LUACALL wxLua_wxTextAreaBase_GetLineLength(lua_State *L) -{ - // long lineNo - long lineNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call GetLineLength - int returns = (self->GetLineLength(lineNo)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_GetLineText[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_GetLineText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_GetLineText[1] = {{ wxLua_wxTextAreaBase_GetLineText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_GetLineText }}; -// virtual wxString GetLineText(long lineNo) const; -static int LUACALL wxLua_wxTextAreaBase_GetLineText(lua_State *L) -{ - // long lineNo - long lineNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call GetLineText - wxString returns = (self->GetLineText(lineNo)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_GetNumberOfLines[] = { &wxluatype_wxTextAreaBase, NULL }; -static int LUACALL wxLua_wxTextAreaBase_GetNumberOfLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_GetNumberOfLines[1] = {{ wxLua_wxTextAreaBase_GetNumberOfLines, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAreaBase_GetNumberOfLines }}; -// virtual int GetNumberOfLines() const; -static int LUACALL wxLua_wxTextAreaBase_GetNumberOfLines(lua_State *L) -{ - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call GetNumberOfLines - int returns = (self->GetNumberOfLines()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_GetStyle[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAreaBase_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_GetStyle[1] = {{ wxLua_wxTextAreaBase_GetStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAreaBase_GetStyle }}; -// virtual bool GetStyle(long position, wxTextAttr& style); -static int LUACALL wxLua_wxTextAreaBase_GetStyle(lua_State *L) -{ - // wxTextAttr style - wxTextAttr * style = (wxTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttr); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call GetStyle - bool returns = (self->GetStyle(position, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_GetValue[] = { &wxluatype_wxTextAreaBase, NULL }; -static int LUACALL wxLua_wxTextAreaBase_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_GetValue[1] = {{ wxLua_wxTextAreaBase_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAreaBase_GetValue }}; -// virtual wxString GetValue() const; -static int LUACALL wxLua_wxTextAreaBase_GetValue(lua_State *L) -{ - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_HitTest[] = { &wxluatype_wxTextAreaBase, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTextAreaBase_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_HitTest[1] = {{ wxLua_wxTextAreaBase_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_HitTest }}; -// %override wxLua_wxTextAreaBase_HitTest -// wxTextCtrlHitTestResult HitTest(const wxPoint& pt, wxTextCoord *col, wxTextCoord *row) const -static int LUACALL wxLua_wxTextAreaBase_HitTest(lua_State *L) -{ - // wxTextCoord row - wxTextCoord row = wxInvalidTextCoord; - // wxTextCoord col - wxTextCoord col = wxInvalidTextCoord; - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call HitTest - wxTextCtrlHitTestResult returns = self->HitTest(*pt, &col, &row); - // push the result number - lua_pushinteger(L, returns); - lua_pushinteger(L, row); - lua_pushinteger(L, col); - - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_HitTestPos[] = { &wxluatype_wxTextAreaBase, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTextAreaBase_HitTestPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_HitTestPos[1] = {{ wxLua_wxTextAreaBase_HitTestPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_HitTestPos }}; -// %override wxLua_wxTextAreaBase_HitTestPos -// wxTextCtrlHitTestResult HitTestPos(const wxPoint& pt, long *pos) const -static int LUACALL wxLua_wxTextAreaBase_HitTestPos(lua_State *L) -{ - // long pos - long pos = wxInvalidTextCoord; - // wxTextCoord col - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call HitTest - wxTextCtrlHitTestResult returns = self->HitTest(*pt, &pos); - // push the result number - lua_pushinteger(L, returns); - lua_pushinteger(L, pos); - - return 2; -} - - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_IsModified[] = { &wxluatype_wxTextAreaBase, NULL }; -static int LUACALL wxLua_wxTextAreaBase_IsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_IsModified[1] = {{ wxLua_wxTextAreaBase_IsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAreaBase_IsModified }}; -// virtual bool IsModified() const; -static int LUACALL wxLua_wxTextAreaBase_IsModified(lua_State *L) -{ - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call IsModified - bool returns = (self->IsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_LoadFile[] = { &wxluatype_wxTextAreaBase, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_LoadFile[1] = {{ wxLua_wxTextAreaBase_LoadFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAreaBase_LoadFile }}; -// bool LoadFile(const wxString& file, int fileType = wxTEXT_TYPE_ANY); -static int LUACALL wxLua_wxTextAreaBase_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int fileType = wxTEXT_TYPE_ANY - int fileType = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxTEXT_TYPE_ANY); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call LoadFile - bool returns = (self->LoadFile(file, fileType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_MarkDirty[] = { &wxluatype_wxTextAreaBase, NULL }; -static int LUACALL wxLua_wxTextAreaBase_MarkDirty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_MarkDirty[1] = {{ wxLua_wxTextAreaBase_MarkDirty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAreaBase_MarkDirty }}; -// virtual void MarkDirty(); -static int LUACALL wxLua_wxTextAreaBase_MarkDirty(lua_State *L) -{ - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call MarkDirty - self->MarkDirty(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_PositionToCoords[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_PositionToCoords(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_PositionToCoords[1] = {{ wxLua_wxTextAreaBase_PositionToCoords, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_PositionToCoords }}; -// wxPoint PositionToCoords(long pos) const; -static int LUACALL wxLua_wxTextAreaBase_PositionToCoords(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call PositionToCoords - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->PositionToCoords(pos)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_PositionToXY[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_PositionToXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_PositionToXY[1] = {{ wxLua_wxTextAreaBase_PositionToXY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_PositionToXY }}; -// %override wxLua_wxTextAreaBase_PositionToXY -// bool PositionToXY(long pos, long *x, long *y) const -static int LUACALL wxLua_wxTextAreaBase_PositionToXY(lua_State *L) -{ - long y; - long x; - // long pos - long pos = (long)wxlua_getintegertype(L, 2); - // get this - wxTextAreaBase *self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call PositionToXY - bool returns = self->PositionToXY(pos, &x, &y); - // push the result number - lua_pushboolean(L, returns); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_SaveFile[] = { &wxluatype_wxTextAreaBase, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_SaveFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_SaveFile[1] = {{ wxLua_wxTextAreaBase_SaveFile, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxTextAreaBase_SaveFile }}; -// bool SaveFile(const wxString& file = wxEmptyString, int fileType = wxTEXT_TYPE_ANY); -static int LUACALL wxLua_wxTextAreaBase_SaveFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int fileType = wxTEXT_TYPE_ANY - int fileType = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxTEXT_TYPE_ANY); - // const wxString file = wxEmptyString - const wxString file = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call SaveFile - bool returns = (self->SaveFile(file, fileType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_SetDefaultStyle[] = { &wxluatype_wxTextAreaBase, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAreaBase_SetDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_SetDefaultStyle[1] = {{ wxLua_wxTextAreaBase_SetDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_SetDefaultStyle }}; -// virtual bool SetDefaultStyle(const wxTextAttr& style); -static int LUACALL wxLua_wxTextAreaBase_SetDefaultStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call SetDefaultStyle - bool returns = (self->SetDefaultStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_SetModified[] = { &wxluatype_wxTextAreaBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAreaBase_SetModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_SetModified[1] = {{ wxLua_wxTextAreaBase_SetModified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_SetModified }}; -// void SetModified(bool modified); -static int LUACALL wxLua_wxTextAreaBase_SetModified(lua_State *L) -{ - // bool modified - bool modified = wxlua_getbooleantype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call SetModified - self->SetModified(modified); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_SetStyle[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAreaBase_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_SetStyle[1] = {{ wxLua_wxTextAreaBase_SetStyle, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextAreaBase_SetStyle }}; -// virtual bool SetStyle(long start, long end, const wxTextAttr& style); -static int LUACALL wxLua_wxTextAreaBase_SetStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttr); - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call SetStyle - bool returns = (self->SetStyle(start, end, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_SetValue[] = { &wxluatype_wxTextAreaBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAreaBase_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_SetValue[1] = {{ wxLua_wxTextAreaBase_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_SetValue }}; -// virtual void SetValue(const wxString& value); -static int LUACALL wxLua_wxTextAreaBase_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_ShowPosition[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_ShowPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_ShowPosition[1] = {{ wxLua_wxTextAreaBase_ShowPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAreaBase_ShowPosition }}; -// virtual void ShowPosition(long pos); -static int LUACALL wxLua_wxTextAreaBase_ShowPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call ShowPosition - self->ShowPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAreaBase_XYToPosition[] = { &wxluatype_wxTextAreaBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAreaBase_XYToPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAreaBase_XYToPosition[1] = {{ wxLua_wxTextAreaBase_XYToPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAreaBase_XYToPosition }}; -// virtual long XYToPosition(long x, long y) const; -static int LUACALL wxLua_wxTextAreaBase_XYToPosition(lua_State *L) -{ - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAreaBase * self = (wxTextAreaBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAreaBase); - // call XYToPosition - long returns = (self->XYToPosition(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - - -void wxLua_wxTextAreaBase_delete_function(void** p) -{ - wxTextAreaBase* o = (wxTextAreaBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAreaBase_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "DiscardEdits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_DiscardEdits, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_GetDefaultStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetLineLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_GetLineLength, 1, NULL }, - { "GetLineText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_GetLineText, 1, NULL }, - { "GetNumberOfLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_GetNumberOfLines, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_GetStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_GetValue, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_HitTest, 1, NULL }, - { "HitTestPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_HitTestPos, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "IsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_IsModified, 1, NULL }, - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_LoadFile, 1, NULL }, - { "MarkDirty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_MarkDirty, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - { "PositionToCoords", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_PositionToCoords, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "PositionToXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_PositionToXY, 1, NULL }, - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_SaveFile, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_SetDefaultStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_SetModified, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_SetStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_SetValue, 1, NULL }, - { "ShowPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_ShowPosition, 1, NULL }, - { "XYToPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAreaBase_XYToPosition, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxTextAreaBase_methodCount = sizeof(wxTextAreaBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -// --------------------------------------------------------------------------- -// Bind class wxTextCtrlIface -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextCtrlIface' -int wxluatype_wxTextCtrlIface = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrlIface_GetValue[] = { &wxluatype_wxTextCtrlIface, NULL }; -static int LUACALL wxLua_wxTextCtrlIface_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrlIface_GetValue[1] = {{ wxLua_wxTextCtrlIface_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrlIface_GetValue }}; -// virtual wxString GetValue() const; -static int LUACALL wxLua_wxTextCtrlIface_GetValue(lua_State *L) -{ - // get this - wxTextCtrlIface * self = (wxTextCtrlIface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrlIface); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrlIface_SetValue[] = { &wxluatype_wxTextCtrlIface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrlIface_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrlIface_SetValue[1] = {{ wxLua_wxTextCtrlIface_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrlIface_SetValue }}; -// virtual void SetValue(const wxString& value); -static int LUACALL wxLua_wxTextCtrlIface_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrlIface * self = (wxTextCtrlIface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrlIface); - // call SetValue - self->SetValue(value); - - return 0; -} - - - - -void wxLua_wxTextCtrlIface_delete_function(void** p) -{ - wxTextCtrlIface* o = (wxTextCtrlIface*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextCtrlIface_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrlIface_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrlIface_SetValue, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextCtrlIface_methodCount = sizeof(wxTextCtrlIface_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -// --------------------------------------------------------------------------- -// Bind class wxTextCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextCtrl' -int wxluatype_wxTextCtrl = WXLUA_TUNKNOWN; - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_AppendText[] = { &wxluatype_wxTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_AppendText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_AppendText[1] = {{ wxLua_wxTextCtrl_AppendText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_AppendText }}; -// !%wxchkver_3_0_0 void AppendText(const wxString& text); -static int LUACALL wxLua_wxTextCtrl_AppendText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call AppendText - self->AppendText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_CanCopy[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_CanCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_CanCopy[1] = {{ wxLua_wxTextCtrl_CanCopy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_CanCopy }}; -// !%wxchkver_3_0_0 virtual bool CanCopy(); -static int LUACALL wxLua_wxTextCtrl_CanCopy(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call CanCopy - bool returns = (self->CanCopy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_CanCut[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_CanCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_CanCut[1] = {{ wxLua_wxTextCtrl_CanCut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_CanCut }}; -// !%wxchkver_3_0_0 virtual bool CanCut(); -static int LUACALL wxLua_wxTextCtrl_CanCut(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call CanCut - bool returns = (self->CanCut()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_CanPaste[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_CanPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_CanPaste[1] = {{ wxLua_wxTextCtrl_CanPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_CanPaste }}; -// !%wxchkver_3_0_0 virtual bool CanPaste(); -static int LUACALL wxLua_wxTextCtrl_CanPaste(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call CanPaste - bool returns = (self->CanPaste()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_CanRedo[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_CanRedo[1] = {{ wxLua_wxTextCtrl_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_CanRedo }}; -// !%wxchkver_3_0_0 virtual bool CanRedo(); -static int LUACALL wxLua_wxTextCtrl_CanRedo(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_CanUndo[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_CanUndo[1] = {{ wxLua_wxTextCtrl_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_CanUndo }}; -// !%wxchkver_3_0_0 virtual bool CanUndo(); -static int LUACALL wxLua_wxTextCtrl_CanUndo(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_ChangeValue[] = { &wxluatype_wxTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_ChangeValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_ChangeValue[1] = {{ wxLua_wxTextCtrl_ChangeValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_ChangeValue }}; -// !%wxchkver_3_0_0 virtual void ChangeValue(const wxString& value); -static int LUACALL wxLua_wxTextCtrl_ChangeValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call ChangeValue - self->ChangeValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Clear[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Clear[1] = {{ wxLua_wxTextCtrl_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_Clear }}; -// !%wxchkver_3_0_0 virtual void Clear(); -static int LUACALL wxLua_wxTextCtrl_Clear(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Copy[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Copy[1] = {{ wxLua_wxTextCtrl_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_Copy }}; -// !%wxchkver_3_0_0 virtual void Copy(); -static int LUACALL wxLua_wxTextCtrl_Copy(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Copy - self->Copy(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Create[] = { &wxluatype_wxTextCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Create[1] = {{ wxLua_wxTextCtrl_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxTextCtrl_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTextCtrl"); -static int LUACALL wxLua_wxTextCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTextCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxTextCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = "" - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Cut[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Cut[1] = {{ wxLua_wxTextCtrl_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_Cut }}; -// !%wxchkver_3_0_0 virtual void Cut(); -static int LUACALL wxLua_wxTextCtrl_Cut(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Cut - self->Cut(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_DiscardEdits[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_DiscardEdits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_DiscardEdits[1] = {{ wxLua_wxTextCtrl_DiscardEdits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_DiscardEdits }}; -// !%wxchkver_3_0_0 void DiscardEdits(); -static int LUACALL wxLua_wxTextCtrl_DiscardEdits(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call DiscardEdits - self->DiscardEdits(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_EmulateKeyPress[] = { &wxluatype_wxTextCtrl, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxTextCtrl_EmulateKeyPress(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_EmulateKeyPress[1] = {{ wxLua_wxTextCtrl_EmulateKeyPress, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_EmulateKeyPress }}; -// bool EmulateKeyPress(const wxKeyEvent& event); -static int LUACALL wxLua_wxTextCtrl_EmulateKeyPress(lua_State *L) -{ - // const wxKeyEvent event - const wxKeyEvent * event = (const wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call EmulateKeyPress - bool returns = (self->EmulateKeyPress(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetDefaultStyle[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetDefaultStyle[1] = {{ wxLua_wxTextCtrl_GetDefaultStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetDefaultStyle }}; -// const wxTextAttr& GetDefaultStyle() const; -static int LUACALL wxLua_wxTextCtrl_GetDefaultStyle(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetDefaultStyle - const wxTextAttr* returns = (const wxTextAttr*)&self->GetDefaultStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttr); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetInsertionPoint[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetInsertionPoint[1] = {{ wxLua_wxTextCtrl_GetInsertionPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetInsertionPoint }}; -// !%wxchkver_3_0_0 virtual long GetInsertionPoint() const; -static int LUACALL wxLua_wxTextCtrl_GetInsertionPoint(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetInsertionPoint - long returns = (self->GetInsertionPoint()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetLastPosition[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetLastPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetLastPosition[1] = {{ wxLua_wxTextCtrl_GetLastPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetLastPosition }}; -// !%wxchkver_3_0_0 virtual long GetLastPosition() const; -static int LUACALL wxLua_wxTextCtrl_GetLastPosition(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetLastPosition - long returns = (self->GetLastPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetLineLength[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetLineLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetLineLength[1] = {{ wxLua_wxTextCtrl_GetLineLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_GetLineLength }}; -// !%wxchkver_3_0_0 int GetLineLength(long lineNo) const; -static int LUACALL wxLua_wxTextCtrl_GetLineLength(lua_State *L) -{ - // long lineNo - long lineNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetLineLength - int returns = (self->GetLineLength(lineNo)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetLineText[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetLineText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetLineText[1] = {{ wxLua_wxTextCtrl_GetLineText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_GetLineText }}; -// !%wxchkver_3_0_0 wxString GetLineText(long lineNo) const; -static int LUACALL wxLua_wxTextCtrl_GetLineText(lua_State *L) -{ - // long lineNo - long lineNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetLineText - wxString returns = (self->GetLineText(lineNo)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetNumberOfLines[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetNumberOfLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetNumberOfLines[1] = {{ wxLua_wxTextCtrl_GetNumberOfLines, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetNumberOfLines }}; -// !%wxchkver_3_0_0 int GetNumberOfLines() const; -static int LUACALL wxLua_wxTextCtrl_GetNumberOfLines(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetNumberOfLines - int returns = (self->GetNumberOfLines()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetRange[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetRange[1] = {{ wxLua_wxTextCtrl_GetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextCtrl_GetRange }}; -// !%wxchkver_3_0_0 virtual wxString GetRange(long from, long to) const; -static int LUACALL wxLua_wxTextCtrl_GetRange(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetRange - wxString returns = (self->GetRange(from, to)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetSelection[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetSelection[1] = {{ wxLua_wxTextCtrl_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetSelection }}; -// %override wxLua_wxTextCtrl_GetSelection -// virtual void GetSelection(long* from, long* to) -static int LUACALL wxLua_wxTextCtrl_GetSelection(lua_State *L) -{ - long to; - long from; - // get this - wxTextCtrl *self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetSelection - self->GetSelection(&from, &to); - lua_pushinteger(L, from); - lua_pushinteger(L, to); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetStringSelection[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetStringSelection[1] = {{ wxLua_wxTextCtrl_GetStringSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetStringSelection }}; -// !%wxchkver_3_0_0 virtual wxString GetStringSelection(); -static int LUACALL wxLua_wxTextCtrl_GetStringSelection(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetStringSelection - wxString returns = (self->GetStringSelection()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetStyle[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetStyle[1] = {{ wxLua_wxTextCtrl_GetStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextCtrl_GetStyle }}; -// !%wxchkver_3_0_0 bool GetStyle(long position, wxTextAttr& style); -static int LUACALL wxLua_wxTextCtrl_GetStyle(lua_State *L) -{ - // wxTextAttr style - wxTextAttr * style = (wxTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttr); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetStyle - bool returns = (self->GetStyle(position, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_GetValue[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_GetValue[1] = {{ wxLua_wxTextCtrl_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_GetValue }}; -// !%wxchkver_3_0_0 wxString GetValue() const; -static int LUACALL wxLua_wxTextCtrl_GetValue(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_HitTest[] = { &wxluatype_wxTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTextCtrl_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_HitTest[1] = {{ wxLua_wxTextCtrl_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_HitTest }}; -// %override wxLua_wxTextCtrl_HitTest -// wxTextCtrlHitTestResult HitTest(const wxPoint& pt, wxTextCoord *col, wxTextCoord *row) const -static int LUACALL wxLua_wxTextCtrl_HitTest(lua_State *L) -{ - // wxTextCoord row - wxTextCoord row = wxInvalidTextCoord; - // wxTextCoord col - wxTextCoord col = wxInvalidTextCoord; - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call HitTest - wxTextCtrlHitTestResult returns = self->HitTest(*pt, &col, &row); - // push the result number - lua_pushinteger(L, returns); - lua_pushinteger(L, row); - lua_pushinteger(L, col); - - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_HitTestPos[] = { &wxluatype_wxTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTextCtrl_HitTestPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_HitTestPos[1] = {{ wxLua_wxTextCtrl_HitTestPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_HitTestPos }}; -// %override wxLua_wxTextCtrl_HitTestPos -// wxTextCtrlHitTestResult HitTestPos(const wxPoint& pt, long *pos) const -static int LUACALL wxLua_wxTextCtrl_HitTestPos(lua_State *L) -{ - // long pos - long pos = wxInvalidTextCoord; - // wxTextCoord col - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call HitTest - wxTextCtrlHitTestResult returns = self->HitTest(*pt, &pos); - // push the result number - lua_pushinteger(L, returns); - lua_pushinteger(L, pos); - - return 2; -} - - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_IsEditable[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_IsEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_IsEditable[1] = {{ wxLua_wxTextCtrl_IsEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_IsEditable }}; -// !%wxchkver_3_0_0 bool IsEditable() const; -static int LUACALL wxLua_wxTextCtrl_IsEditable(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call IsEditable - bool returns = (self->IsEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_IsModified[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_IsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_IsModified[1] = {{ wxLua_wxTextCtrl_IsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_IsModified }}; -// !%wxchkver_3_0_0 bool IsModified() const; -static int LUACALL wxLua_wxTextCtrl_IsModified(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call IsModified - bool returns = (self->IsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_IsMultiLine[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_IsMultiLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_IsMultiLine[1] = {{ wxLua_wxTextCtrl_IsMultiLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_IsMultiLine }}; -// bool IsMultiLine() const; -static int LUACALL wxLua_wxTextCtrl_IsMultiLine(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call IsMultiLine - bool returns = (self->IsMultiLine()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_IsSingleLine[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_IsSingleLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_IsSingleLine[1] = {{ wxLua_wxTextCtrl_IsSingleLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_IsSingleLine }}; -// bool IsSingleLine() const; -static int LUACALL wxLua_wxTextCtrl_IsSingleLine(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call IsSingleLine - bool returns = (self->IsSingleLine()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_LoadFile[] = { &wxluatype_wxTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_LoadFile[1] = {{ wxLua_wxTextCtrl_LoadFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_LoadFile }}; -// !%wxchkver_3_0_0 bool LoadFile(const wxString& filename); -static int LUACALL wxLua_wxTextCtrl_LoadFile(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call LoadFile - bool returns = (self->LoadFile(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_MarkDirty[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_MarkDirty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_MarkDirty[1] = {{ wxLua_wxTextCtrl_MarkDirty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_MarkDirty }}; -// !%wxchkver_3_0_0 void MarkDirty(); -static int LUACALL wxLua_wxTextCtrl_MarkDirty(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call MarkDirty - self->MarkDirty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Paste[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Paste[1] = {{ wxLua_wxTextCtrl_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_Paste }}; -// !%wxchkver_3_0_0 virtual void Paste(); -static int LUACALL wxLua_wxTextCtrl_Paste(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Paste - self->Paste(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_PositionToXY[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_PositionToXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_PositionToXY[1] = {{ wxLua_wxTextCtrl_PositionToXY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_PositionToXY }}; -// %override wxLua_wxTextCtrl_PositionToXY -// bool PositionToXY(long pos, long *x, long *y) const -static int LUACALL wxLua_wxTextCtrl_PositionToXY(lua_State *L) -{ - long y; - long x; - // long pos - long pos = (long)wxlua_getintegertype(L, 2); - // get this - wxTextCtrl *self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call PositionToXY - bool returns = self->PositionToXY(pos, &x, &y); - // push the result number - lua_pushboolean(L, returns); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Redo[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Redo[1] = {{ wxLua_wxTextCtrl_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_Redo }}; -// !%wxchkver_3_0_0 virtual void Redo(); -static int LUACALL wxLua_wxTextCtrl_Redo(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Redo - self->Redo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Remove[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Remove[1] = {{ wxLua_wxTextCtrl_Remove, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextCtrl_Remove }}; -// !%wxchkver_3_0_0 virtual void Remove(long from, long to); -static int LUACALL wxLua_wxTextCtrl_Remove(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Remove - self->Remove(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Replace[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Replace[1] = {{ wxLua_wxTextCtrl_Replace, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextCtrl_Replace }}; -// !%wxchkver_3_0_0 virtual void Replace(long from, long to, const wxString& value); -static int LUACALL wxLua_wxTextCtrl_Replace(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Replace - self->Replace(from, to, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SaveFile[] = { &wxluatype_wxTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_SaveFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SaveFile[1] = {{ wxLua_wxTextCtrl_SaveFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_SaveFile }}; -// !%wxchkver_3_0_0 bool SaveFile(const wxString& filename); -static int LUACALL wxLua_wxTextCtrl_SaveFile(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SaveFile - bool returns = (self->SaveFile(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetDefaultStyle[] = { &wxluatype_wxTextCtrl, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetDefaultStyle[1] = {{ wxLua_wxTextCtrl_SetDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_SetDefaultStyle }}; -// !%wxchkver_3_0_0 bool SetDefaultStyle(const wxTextAttr& style); -static int LUACALL wxLua_wxTextCtrl_SetDefaultStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetDefaultStyle - bool returns = (self->SetDefaultStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetEditable[] = { &wxluatype_wxTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetEditable[1] = {{ wxLua_wxTextCtrl_SetEditable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_SetEditable }}; -// !%wxchkver_3_0_0 virtual void SetEditable(bool editable); -static int LUACALL wxLua_wxTextCtrl_SetEditable(lua_State *L) -{ - // bool editable - bool editable = wxlua_getbooleantype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetEditable - self->SetEditable(editable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetInsertionPoint[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetInsertionPoint[1] = {{ wxLua_wxTextCtrl_SetInsertionPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_SetInsertionPoint }}; -// !%wxchkver_3_0_0 virtual void SetInsertionPoint(long pos); -static int LUACALL wxLua_wxTextCtrl_SetInsertionPoint(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetInsertionPoint - self->SetInsertionPoint(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetInsertionPointEnd[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetInsertionPointEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetInsertionPointEnd[1] = {{ wxLua_wxTextCtrl_SetInsertionPointEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_SetInsertionPointEnd }}; -// !%wxchkver_3_0_0 virtual void SetInsertionPointEnd(); -static int LUACALL wxLua_wxTextCtrl_SetInsertionPointEnd(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetInsertionPointEnd - self->SetInsertionPointEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetMaxLength[] = { &wxluatype_wxTextCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetMaxLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetMaxLength[1] = {{ wxLua_wxTextCtrl_SetMaxLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_SetMaxLength }}; -// !%wxchkver_3_0_0 virtual void SetMaxLength(unsigned long value); -static int LUACALL wxLua_wxTextCtrl_SetMaxLength(lua_State *L) -{ - // unsigned long value - unsigned long value = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetMaxLength - self->SetMaxLength(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetSelection[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetSelection[1] = {{ wxLua_wxTextCtrl_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextCtrl_SetSelection }}; -// !%wxchkver_3_0_0 virtual void SetSelection(long from, long to); -static int LUACALL wxLua_wxTextCtrl_SetSelection(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetSelection - self->SetSelection(from, to); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetStyle[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetStyle[1] = {{ wxLua_wxTextCtrl_SetStyle, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextCtrl_SetStyle }}; -// !%wxchkver_3_0_0 bool SetStyle(long start, long end, const wxTextAttr& style); -static int LUACALL wxLua_wxTextCtrl_SetStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttr); - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetStyle - bool returns = (self->SetStyle(start, end, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_SetValue[] = { &wxluatype_wxTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_SetValue[1] = {{ wxLua_wxTextCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_SetValue }}; -// !%wxchkver_3_0_0 virtual void SetValue(const wxString& value); -static int LUACALL wxLua_wxTextCtrl_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_ShowPosition[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_ShowPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_ShowPosition[1] = {{ wxLua_wxTextCtrl_ShowPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_ShowPosition }}; -// !%wxchkver_3_0_0 void ShowPosition(long pos); -static int LUACALL wxLua_wxTextCtrl_ShowPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call ShowPosition - self->ShowPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_Undo[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextCtrl_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_Undo[1] = {{ wxLua_wxTextCtrl_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextCtrl_Undo }}; -// !%wxchkver_3_0_0 virtual void Undo(); -static int LUACALL wxLua_wxTextCtrl_Undo(lua_State *L) -{ - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call Undo - self->Undo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_WriteText[] = { &wxluatype_wxTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_WriteText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_WriteText[1] = {{ wxLua_wxTextCtrl_WriteText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextCtrl_WriteText }}; -// !%wxchkver_3_0_0 void WriteText(const wxString& text); -static int LUACALL wxLua_wxTextCtrl_WriteText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call WriteText - self->WriteText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_XYToPosition[] = { &wxluatype_wxTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextCtrl_XYToPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_XYToPosition[1] = {{ wxLua_wxTextCtrl_XYToPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextCtrl_XYToPosition }}; -// !%wxchkver_3_0_0 long XYToPosition(long x, long y); -static int LUACALL wxLua_wxTextCtrl_XYToPosition(lua_State *L) -{ - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextCtrl * self = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call XYToPosition - long returns = (self->XYToPosition(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_constructor1[1] = {{ wxLua_wxTextCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxTextCtrl_constructor1 }}; -// wxTextCtrl(wxWindow *parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTextCtrl"); -static int LUACALL wxLua_wxTextCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTextCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxTextCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = "" - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTextCtrl* returns = new wxTextCtrl(parent, id, value, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxTextCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_constructor[1] = {{ wxLua_wxTextCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextCtrl(); -static int LUACALL wxLua_wxTextCtrl_constructor(lua_State *L) -{ - // call constructor - wxTextCtrl* returns = new wxTextCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - - - - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxTextCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxTextCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxTextCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTextCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTextCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -void wxLua_wxTextCtrl_delete_function(void** p) -{ - wxTextCtrl* o = (wxTextCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextCtrl_methods[] = { -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "AppendText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_AppendText, 1, NULL }, - { "CanCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_CanCopy, 1, NULL }, - { "CanCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_CanCut, 1, NULL }, - { "CanPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_CanPaste, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_CanUndo, 1, NULL }, - { "ChangeValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_ChangeValue, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Clear, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Copy, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Cut, 1, NULL }, - { "DiscardEdits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_DiscardEdits, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "EmulateKeyPress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_EmulateKeyPress, 1, NULL }, - { "GetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetDefaultStyle, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetInsertionPoint, 1, NULL }, - { "GetLastPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetLastPosition, 1, NULL }, - { "GetLineLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetLineLength, 1, NULL }, - { "GetLineText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetLineText, 1, NULL }, - { "GetNumberOfLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetNumberOfLines, 1, NULL }, - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetRange, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetSelection, 1, NULL }, - { "GetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetStringSelection, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetStyle, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_GetValue, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_HitTest, 1, NULL }, - { "HitTestPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_HitTestPos, 1, NULL }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "IsEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_IsEditable, 1, NULL }, - { "IsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_IsModified, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "IsMultiLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_IsMultiLine, 1, NULL }, - { "IsSingleLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_IsSingleLine, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_LoadFile, 1, NULL }, - { "MarkDirty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_MarkDirty, 1, NULL }, - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Paste, 1, NULL }, - { "PositionToXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_PositionToXY, 1, NULL }, - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Redo, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Remove, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Replace, 1, NULL }, - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SaveFile, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetDefaultStyle, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetEditable, 1, NULL }, - { "SetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetInsertionPoint, 1, NULL }, - { "SetInsertionPointEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetInsertionPointEnd, 1, NULL }, - { "SetMaxLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetMaxLength, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetSelection, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetStyle, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_SetValue, 1, NULL }, - { "ShowPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_ShowPosition, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_Undo, 1, NULL }, - { "WriteText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_WriteText, 1, NULL }, - { "XYToPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextCtrl_XYToPosition, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTextCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextCtrl_constructor_overload, s_wxluafunc_wxLua_wxTextCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxTextCtrl_methodCount = sizeof(wxTextCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -// --------------------------------------------------------------------------- -// Bind class wxTextAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttr' -int wxluatype_wxTextAttr = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_AddFlag[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_AddFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_AddFlag[1] = {{ wxLua_wxTextAttr_AddFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_AddFlag }}; -// void AddFlag(long flag); -static int LUACALL wxLua_wxTextAttr_AddFlag(lua_State *L) -{ - // long flag - long flag = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call AddFlag - self->AddFlag(flag); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_Apply[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_Apply[1] = {{ wxLua_wxTextAttr_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttr_Apply }}; -// bool Apply(const wxTextAttr& style, const wxTextAttr* compareWith = NULL); -static int LUACALL wxLua_wxTextAttr_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextAttr compareWith = NULL - const wxTextAttr * compareWith = (argCount >= 3 ? (const wxTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttr) : NULL); - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call Apply - bool returns = (self->Apply(*style, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_BitlistsEqPartial[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_BitlistsEqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_BitlistsEqPartial[1] = {{ wxLua_wxTextAttr_BitlistsEqPartial, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxTextAttr_BitlistsEqPartial }}; -// static bool BitlistsEqPartial(int valueA, int valueB, int flags); -static int LUACALL wxLua_wxTextAttr_BitlistsEqPartial(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // int valueB - int valueB = (int)wxlua_getnumbertype(L, 2); - // int valueA - int valueA = (int)wxlua_getnumbertype(L, 1); - // call BitlistsEqPartial - bool returns = (wxTextAttr::BitlistsEqPartial(valueA, valueB, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_Combine[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxTextAttr_Combine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_Combine[1] = {{ wxLua_wxTextAttr_Combine, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxTextAttr_Combine }}; -// static wxTextAttr Combine(const wxTextAttr& attr, const wxTextAttr& attrDef, const wxTextCtrl *text); -static int LUACALL wxLua_wxTextAttr_Combine(lua_State *L) -{ - // const wxTextCtrl text - const wxTextCtrl * text = (const wxTextCtrl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextCtrl); - // const wxTextAttr attrDef - const wxTextAttr * attrDef = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // const wxTextAttr attr - const wxTextAttr * attr = (const wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call Combine - // allocate a new object using the copy constructor - wxTextAttr* returns = new wxTextAttr(wxTextAttr::Combine(*attr, *attrDef, text)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttr); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_CombineBitlists[] = { &wxluatype_TLIGHTUSERDATA, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_CombineBitlists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_CombineBitlists[1] = {{ wxLua_wxTextAttr_CombineBitlists, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 4, s_wxluatypeArray_wxLua_wxTextAttr_CombineBitlists }}; -// static bool CombineBitlists(int& valueA, int valueB, int& flagsA, int flagsB); -static int LUACALL wxLua_wxTextAttr_CombineBitlists(lua_State *L) -{ - // int flagsB - int flagsB = (int)wxlua_getnumbertype(L, 4); - // int flagsA - int * flagsA = (int *)wxlua_touserdata(L, 3); - // int valueB - int valueB = (int)wxlua_getnumbertype(L, 2); - // int valueA - int * valueA = (int *)wxlua_touserdata(L, 1); - // call CombineBitlists - bool returns = (wxTextAttr::CombineBitlists(*valueA, valueB, *flagsA, flagsB)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_EqPartial[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttr_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_EqPartial[1] = {{ wxLua_wxTextAttr_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttr_EqPartial }}; -// bool EqPartial(const wxTextAttr& attr, bool weakTest = true) const; -static int LUACALL wxLua_wxTextAttr_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextAttr attr - const wxTextAttr * attr = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call EqPartial - bool returns = (self->EqPartial(*attr, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetAlignment[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetAlignment[1] = {{ wxLua_wxTextAttr_GetAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetAlignment }}; -// wxTextAttrAlignment GetAlignment() const; -static int LUACALL wxLua_wxTextAttr_GetAlignment(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetAlignment - wxTextAttrAlignment returns = (self->GetAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetBackgroundColour[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetBackgroundColour[1] = {{ wxLua_wxTextAttr_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetBackgroundColour }}; -// wxColour GetBackgroundColour() const; -static int LUACALL wxLua_wxTextAttr_GetBackgroundColour(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetBulletFont[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetBulletFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetBulletFont[1] = {{ wxLua_wxTextAttr_GetBulletFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetBulletFont }}; -// const wxString& GetBulletFont() const; -static int LUACALL wxLua_wxTextAttr_GetBulletFont(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetBulletFont - wxString returns = (self->GetBulletFont()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetBulletName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetBulletName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetBulletName[1] = {{ wxLua_wxTextAttr_GetBulletName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetBulletName }}; -// const wxString& GetBulletName() const; -static int LUACALL wxLua_wxTextAttr_GetBulletName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetBulletName - wxString returns = (self->GetBulletName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetBulletNumber[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetBulletNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetBulletNumber[1] = {{ wxLua_wxTextAttr_GetBulletNumber, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetBulletNumber }}; -// int GetBulletNumber() const; -static int LUACALL wxLua_wxTextAttr_GetBulletNumber(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetBulletNumber - int returns = (self->GetBulletNumber()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetBulletStyle[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetBulletStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetBulletStyle[1] = {{ wxLua_wxTextAttr_GetBulletStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetBulletStyle }}; -// int GetBulletStyle() const; -static int LUACALL wxLua_wxTextAttr_GetBulletStyle(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetBulletStyle - int returns = (self->GetBulletStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetBulletText[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetBulletText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetBulletText[1] = {{ wxLua_wxTextAttr_GetBulletText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetBulletText }}; -// const wxString& GetBulletText() const; -static int LUACALL wxLua_wxTextAttr_GetBulletText(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetBulletText - wxString returns = (self->GetBulletText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetCharacterStyleName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetCharacterStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetCharacterStyleName[1] = {{ wxLua_wxTextAttr_GetCharacterStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetCharacterStyleName }}; -// const wxString& GetCharacterStyleName() const; -static int LUACALL wxLua_wxTextAttr_GetCharacterStyleName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetCharacterStyleName - wxString returns = (self->GetCharacterStyleName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFlags[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFlags[1] = {{ wxLua_wxTextAttr_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFlags }}; -// long GetFlags() const; -static int LUACALL wxLua_wxTextAttr_GetFlags(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFlags - long returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFont[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFont[1] = {{ wxLua_wxTextAttr_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFont }}; -// wxFont GetFont() const; -static int LUACALL wxLua_wxTextAttr_GetFont(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontAttributes[] = { &wxluatype_wxTextAttr, &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontAttributes[1] = {{ wxLua_wxTextAttr_GetFontAttributes, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttr_GetFontAttributes }}; -// bool GetFontAttributes(const wxFont& font, int flags = wxTEXT_ATTR_FONT); -static int LUACALL wxLua_wxTextAttr_GetFontAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxTEXT_ATTR_FONT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxTEXT_ATTR_FONT); - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontAttributes - bool returns = (self->GetFontAttributes(*font, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontEncoding[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontEncoding[1] = {{ wxLua_wxTextAttr_GetFontEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontEncoding }}; -// wxFontEncoding GetFontEncoding() const; -static int LUACALL wxLua_wxTextAttr_GetFontEncoding(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontEncoding - wxFontEncoding returns = (self->GetFontEncoding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontFaceName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontFaceName[1] = {{ wxLua_wxTextAttr_GetFontFaceName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontFaceName }}; -// const wxString& GetFontFaceName() const; -static int LUACALL wxLua_wxTextAttr_GetFontFaceName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontFaceName - wxString returns = (self->GetFontFaceName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontFamily[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontFamily(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontFamily[1] = {{ wxLua_wxTextAttr_GetFontFamily, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontFamily }}; -// wxFontFamily GetFontFamily() const; -static int LUACALL wxLua_wxTextAttr_GetFontFamily(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontFamily - wxFontFamily returns = (self->GetFontFamily()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontSize[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontSize[1] = {{ wxLua_wxTextAttr_GetFontSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontSize }}; -// int GetFontSize() const; -static int LUACALL wxLua_wxTextAttr_GetFontSize(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontSize - int returns = (self->GetFontSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontStrikethrough[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontStrikethrough[1] = {{ wxLua_wxTextAttr_GetFontStrikethrough, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontStrikethrough }}; -// bool GetFontStrikethrough() const; -static int LUACALL wxLua_wxTextAttr_GetFontStrikethrough(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontStrikethrough - bool returns = (self->GetFontStrikethrough()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontStyle[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontStyle[1] = {{ wxLua_wxTextAttr_GetFontStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontStyle }}; -// wxFontStyle GetFontStyle() const; -static int LUACALL wxLua_wxTextAttr_GetFontStyle(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontStyle - wxFontStyle returns = (self->GetFontStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontUnderlined[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontUnderlined[1] = {{ wxLua_wxTextAttr_GetFontUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontUnderlined }}; -// bool GetFontUnderlined() const; -static int LUACALL wxLua_wxTextAttr_GetFontUnderlined(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontUnderlined - bool returns = (self->GetFontUnderlined()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetFontWeight[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetFontWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetFontWeight[1] = {{ wxLua_wxTextAttr_GetFontWeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetFontWeight }}; -// wxFontWeight GetFontWeight() const; -static int LUACALL wxLua_wxTextAttr_GetFontWeight(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetFontWeight - wxFontWeight returns = (self->GetFontWeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetLeftIndent[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetLeftIndent[1] = {{ wxLua_wxTextAttr_GetLeftIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetLeftIndent }}; -// long GetLeftIndent() const; -static int LUACALL wxLua_wxTextAttr_GetLeftIndent(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetLeftIndent - long returns = (self->GetLeftIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetLeftSubIndent[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetLeftSubIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetLeftSubIndent[1] = {{ wxLua_wxTextAttr_GetLeftSubIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetLeftSubIndent }}; -// long GetLeftSubIndent() const; -static int LUACALL wxLua_wxTextAttr_GetLeftSubIndent(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetLeftSubIndent - long returns = (self->GetLeftSubIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetLineSpacing[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetLineSpacing[1] = {{ wxLua_wxTextAttr_GetLineSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetLineSpacing }}; -// int GetLineSpacing() const; -static int LUACALL wxLua_wxTextAttr_GetLineSpacing(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetLineSpacing - int returns = (self->GetLineSpacing()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetListStyleName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetListStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetListStyleName[1] = {{ wxLua_wxTextAttr_GetListStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetListStyleName }}; -// const wxString& GetListStyleName() const; -static int LUACALL wxLua_wxTextAttr_GetListStyleName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetListStyleName - wxString returns = (self->GetListStyleName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetOutlineLevel[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetOutlineLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetOutlineLevel[1] = {{ wxLua_wxTextAttr_GetOutlineLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetOutlineLevel }}; -// int GetOutlineLevel() const; -static int LUACALL wxLua_wxTextAttr_GetOutlineLevel(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetOutlineLevel - int returns = (self->GetOutlineLevel()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetParagraphSpacingAfter[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetParagraphSpacingAfter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetParagraphSpacingAfter[1] = {{ wxLua_wxTextAttr_GetParagraphSpacingAfter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetParagraphSpacingAfter }}; -// int GetParagraphSpacingAfter() const; -static int LUACALL wxLua_wxTextAttr_GetParagraphSpacingAfter(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetParagraphSpacingAfter - int returns = (self->GetParagraphSpacingAfter()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetParagraphSpacingBefore[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetParagraphSpacingBefore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetParagraphSpacingBefore[1] = {{ wxLua_wxTextAttr_GetParagraphSpacingBefore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetParagraphSpacingBefore }}; -// int GetParagraphSpacingBefore() const; -static int LUACALL wxLua_wxTextAttr_GetParagraphSpacingBefore(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetParagraphSpacingBefore - int returns = (self->GetParagraphSpacingBefore()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetParagraphStyleName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetParagraphStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetParagraphStyleName[1] = {{ wxLua_wxTextAttr_GetParagraphStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetParagraphStyleName }}; -// const wxString& GetParagraphStyleName() const; -static int LUACALL wxLua_wxTextAttr_GetParagraphStyleName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetParagraphStyleName - wxString returns = (self->GetParagraphStyleName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetRightIndent[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetRightIndent[1] = {{ wxLua_wxTextAttr_GetRightIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetRightIndent }}; -// long GetRightIndent() const; -static int LUACALL wxLua_wxTextAttr_GetRightIndent(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetRightIndent - long returns = (self->GetRightIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetTabs[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetTabs[1] = {{ wxLua_wxTextAttr_GetTabs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetTabs }}; -// const wxArrayInt& GetTabs() const; -static int LUACALL wxLua_wxTextAttr_GetTabs(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetTabs - const wxArrayInt* returns = (const wxArrayInt*)&self->GetTabs(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetTextColour[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetTextColour[1] = {{ wxLua_wxTextAttr_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetTextColour }}; -// wxColour GetTextColour() const; -static int LUACALL wxLua_wxTextAttr_GetTextColour(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetTextEffectFlags[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetTextEffectFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetTextEffectFlags[1] = {{ wxLua_wxTextAttr_GetTextEffectFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetTextEffectFlags }}; -// int GetTextEffectFlags() const; -static int LUACALL wxLua_wxTextAttr_GetTextEffectFlags(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetTextEffectFlags - int returns = (self->GetTextEffectFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetTextEffects[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetTextEffects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetTextEffects[1] = {{ wxLua_wxTextAttr_GetTextEffects, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetTextEffects }}; -// int GetTextEffects() const; -static int LUACALL wxLua_wxTextAttr_GetTextEffects(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetTextEffects - int returns = (self->GetTextEffects()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_GetURL[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_GetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_GetURL[1] = {{ wxLua_wxTextAttr_GetURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_GetURL }}; -// const wxString& GetURL() const; -static int LUACALL wxLua_wxTextAttr_GetURL(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call GetURL - wxString returns = (self->GetURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasAlignment[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasAlignment[1] = {{ wxLua_wxTextAttr_HasAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasAlignment }}; -// bool HasAlignment() const; -static int LUACALL wxLua_wxTextAttr_HasAlignment(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasAlignment - bool returns = (self->HasAlignment()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasBackgroundColour[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasBackgroundColour[1] = {{ wxLua_wxTextAttr_HasBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasBackgroundColour }}; -// bool HasBackgroundColour() const; -static int LUACALL wxLua_wxTextAttr_HasBackgroundColour(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasBackgroundColour - bool returns = (self->HasBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasBulletName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasBulletName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasBulletName[1] = {{ wxLua_wxTextAttr_HasBulletName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasBulletName }}; -// bool HasBulletName() const; -static int LUACALL wxLua_wxTextAttr_HasBulletName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasBulletName - bool returns = (self->HasBulletName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasBulletNumber[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasBulletNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasBulletNumber[1] = {{ wxLua_wxTextAttr_HasBulletNumber, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasBulletNumber }}; -// bool HasBulletNumber() const; -static int LUACALL wxLua_wxTextAttr_HasBulletNumber(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasBulletNumber - bool returns = (self->HasBulletNumber()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasBulletStyle[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasBulletStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasBulletStyle[1] = {{ wxLua_wxTextAttr_HasBulletStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasBulletStyle }}; -// bool HasBulletStyle() const; -static int LUACALL wxLua_wxTextAttr_HasBulletStyle(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasBulletStyle - bool returns = (self->HasBulletStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasBulletText[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasBulletText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasBulletText[1] = {{ wxLua_wxTextAttr_HasBulletText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasBulletText }}; -// bool HasBulletText() const; -static int LUACALL wxLua_wxTextAttr_HasBulletText(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasBulletText - bool returns = (self->HasBulletText()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasCharacterStyleName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasCharacterStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasCharacterStyleName[1] = {{ wxLua_wxTextAttr_HasCharacterStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasCharacterStyleName }}; -// bool HasCharacterStyleName() const; -static int LUACALL wxLua_wxTextAttr_HasCharacterStyleName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasCharacterStyleName - bool returns = (self->HasCharacterStyleName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFlag[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFlag[1] = {{ wxLua_wxTextAttr_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_HasFlag }}; -// bool HasFlag(long flag) const; -static int LUACALL wxLua_wxTextAttr_HasFlag(lua_State *L) -{ - // long flag - long flag = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFont[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFont[1] = {{ wxLua_wxTextAttr_HasFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFont }}; -// bool HasFont() const; -static int LUACALL wxLua_wxTextAttr_HasFont(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFont - bool returns = (self->HasFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontEncoding[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontEncoding[1] = {{ wxLua_wxTextAttr_HasFontEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontEncoding }}; -// bool HasFontEncoding() const; -static int LUACALL wxLua_wxTextAttr_HasFontEncoding(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontEncoding - bool returns = (self->HasFontEncoding()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontFaceName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontFaceName[1] = {{ wxLua_wxTextAttr_HasFontFaceName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontFaceName }}; -// bool HasFontFaceName() const; -static int LUACALL wxLua_wxTextAttr_HasFontFaceName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontFaceName - bool returns = (self->HasFontFaceName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontFamily[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontFamily(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontFamily[1] = {{ wxLua_wxTextAttr_HasFontFamily, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontFamily }}; -// bool HasFontFamily() const; -static int LUACALL wxLua_wxTextAttr_HasFontFamily(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontFamily - bool returns = (self->HasFontFamily()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontItalic[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontItalic[1] = {{ wxLua_wxTextAttr_HasFontItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontItalic }}; -// bool HasFontItalic() const; -static int LUACALL wxLua_wxTextAttr_HasFontItalic(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontItalic - bool returns = (self->HasFontItalic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontPixelSize[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontPixelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontPixelSize[1] = {{ wxLua_wxTextAttr_HasFontPixelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontPixelSize }}; -// bool HasFontPixelSize() const; -static int LUACALL wxLua_wxTextAttr_HasFontPixelSize(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontPixelSize - bool returns = (self->HasFontPixelSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontPointSize[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontPointSize[1] = {{ wxLua_wxTextAttr_HasFontPointSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontPointSize }}; -// bool HasFontPointSize() const; -static int LUACALL wxLua_wxTextAttr_HasFontPointSize(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontPointSize - bool returns = (self->HasFontPointSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontSize[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontSize[1] = {{ wxLua_wxTextAttr_HasFontSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontSize }}; -// bool HasFontSize() const; -static int LUACALL wxLua_wxTextAttr_HasFontSize(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontSize - bool returns = (self->HasFontSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontStrikethrough[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontStrikethrough[1] = {{ wxLua_wxTextAttr_HasFontStrikethrough, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontStrikethrough }}; -// bool HasFontStrikethrough() const; -static int LUACALL wxLua_wxTextAttr_HasFontStrikethrough(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontStrikethrough - bool returns = (self->HasFontStrikethrough()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontUnderlined[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontUnderlined[1] = {{ wxLua_wxTextAttr_HasFontUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontUnderlined }}; -// bool HasFontUnderlined() const; -static int LUACALL wxLua_wxTextAttr_HasFontUnderlined(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontUnderlined - bool returns = (self->HasFontUnderlined()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasFontWeight[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasFontWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasFontWeight[1] = {{ wxLua_wxTextAttr_HasFontWeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasFontWeight }}; -// bool HasFontWeight() const; -static int LUACALL wxLua_wxTextAttr_HasFontWeight(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasFontWeight - bool returns = (self->HasFontWeight()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasLeftIndent[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasLeftIndent[1] = {{ wxLua_wxTextAttr_HasLeftIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasLeftIndent }}; -// bool HasLeftIndent() const; -static int LUACALL wxLua_wxTextAttr_HasLeftIndent(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasLeftIndent - bool returns = (self->HasLeftIndent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasLineSpacing[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasLineSpacing[1] = {{ wxLua_wxTextAttr_HasLineSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasLineSpacing }}; -// bool HasLineSpacing() const; -static int LUACALL wxLua_wxTextAttr_HasLineSpacing(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasLineSpacing - bool returns = (self->HasLineSpacing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasListStyleName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasListStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasListStyleName[1] = {{ wxLua_wxTextAttr_HasListStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasListStyleName }}; -// bool HasListStyleName() const; -static int LUACALL wxLua_wxTextAttr_HasListStyleName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasListStyleName - bool returns = (self->HasListStyleName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasOutlineLevel[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasOutlineLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasOutlineLevel[1] = {{ wxLua_wxTextAttr_HasOutlineLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasOutlineLevel }}; -// bool HasOutlineLevel() const; -static int LUACALL wxLua_wxTextAttr_HasOutlineLevel(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasOutlineLevel - bool returns = (self->HasOutlineLevel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasPageBreak[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasPageBreak(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasPageBreak[1] = {{ wxLua_wxTextAttr_HasPageBreak, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasPageBreak }}; -// bool HasPageBreak() const; -static int LUACALL wxLua_wxTextAttr_HasPageBreak(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasPageBreak - bool returns = (self->HasPageBreak()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasParagraphSpacingAfter[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasParagraphSpacingAfter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasParagraphSpacingAfter[1] = {{ wxLua_wxTextAttr_HasParagraphSpacingAfter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasParagraphSpacingAfter }}; -// bool HasParagraphSpacingAfter() const; -static int LUACALL wxLua_wxTextAttr_HasParagraphSpacingAfter(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasParagraphSpacingAfter - bool returns = (self->HasParagraphSpacingAfter()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasParagraphSpacingBefore[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasParagraphSpacingBefore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasParagraphSpacingBefore[1] = {{ wxLua_wxTextAttr_HasParagraphSpacingBefore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasParagraphSpacingBefore }}; -// bool HasParagraphSpacingBefore() const; -static int LUACALL wxLua_wxTextAttr_HasParagraphSpacingBefore(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasParagraphSpacingBefore - bool returns = (self->HasParagraphSpacingBefore()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasParagraphStyleName[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasParagraphStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasParagraphStyleName[1] = {{ wxLua_wxTextAttr_HasParagraphStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasParagraphStyleName }}; -// bool HasParagraphStyleName() const; -static int LUACALL wxLua_wxTextAttr_HasParagraphStyleName(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasParagraphStyleName - bool returns = (self->HasParagraphStyleName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasRightIndent[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasRightIndent[1] = {{ wxLua_wxTextAttr_HasRightIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasRightIndent }}; -// bool HasRightIndent() const; -static int LUACALL wxLua_wxTextAttr_HasRightIndent(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasRightIndent - bool returns = (self->HasRightIndent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasTabs[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasTabs[1] = {{ wxLua_wxTextAttr_HasTabs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasTabs }}; -// bool HasTabs() const; -static int LUACALL wxLua_wxTextAttr_HasTabs(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasTabs - bool returns = (self->HasTabs()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasTextColour[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasTextColour[1] = {{ wxLua_wxTextAttr_HasTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasTextColour }}; -// bool HasTextColour() const; -static int LUACALL wxLua_wxTextAttr_HasTextColour(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasTextColour - bool returns = (self->HasTextColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasTextEffect[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_HasTextEffect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasTextEffect[1] = {{ wxLua_wxTextAttr_HasTextEffect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_HasTextEffect }}; -// bool HasTextEffect(int effect) const; -static int LUACALL wxLua_wxTextAttr_HasTextEffect(lua_State *L) -{ - // int effect - int effect = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasTextEffect - bool returns = (self->HasTextEffect(effect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasTextEffects[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasTextEffects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasTextEffects[1] = {{ wxLua_wxTextAttr_HasTextEffects, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasTextEffects }}; -// bool HasTextEffects() const; -static int LUACALL wxLua_wxTextAttr_HasTextEffects(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasTextEffects - bool returns = (self->HasTextEffects()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_HasURL[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_HasURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_HasURL[1] = {{ wxLua_wxTextAttr_HasURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_HasURL }}; -// bool HasURL() const; -static int LUACALL wxLua_wxTextAttr_HasURL(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call HasURL - bool returns = (self->HasURL()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_IsCharacterStyle[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_IsCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_IsCharacterStyle[1] = {{ wxLua_wxTextAttr_IsCharacterStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_IsCharacterStyle }}; -// bool IsCharacterStyle() const; -static int LUACALL wxLua_wxTextAttr_IsCharacterStyle(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call IsCharacterStyle - bool returns = (self->IsCharacterStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_IsDefault[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_IsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_IsDefault[1] = {{ wxLua_wxTextAttr_IsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_IsDefault }}; -// bool IsDefault() const; -static int LUACALL wxLua_wxTextAttr_IsDefault(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call IsDefault - bool returns = (self->IsDefault()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_IsParagraphStyle[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_IsParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_IsParagraphStyle[1] = {{ wxLua_wxTextAttr_IsParagraphStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_IsParagraphStyle }}; -// bool IsParagraphStyle() const; -static int LUACALL wxLua_wxTextAttr_IsParagraphStyle(lua_State *L) -{ - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call IsParagraphStyle - bool returns = (self->IsParagraphStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_Merge1[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_Merge1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_Merge1[1] = {{ wxLua_wxTextAttr_Merge1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_Merge1 }}; -// void Merge(const wxTextAttr& overlay) -static int LUACALL wxLua_wxTextAttr_Merge1(lua_State *L) -{ - // const wxTextAttr overlay - const wxTextAttr * overlay = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call Merge - self->Merge(*overlay); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_Merge[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_Merge(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_Merge[1] = {{ wxLua_wxTextAttr_Merge, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_Merge }}; -// static wxTextAttr Merge(const wxTextAttr& base, const wxTextAttr& overlay); -static int LUACALL wxLua_wxTextAttr_Merge(lua_State *L) -{ - // const wxTextAttr overlay - const wxTextAttr * overlay = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // const wxTextAttr base - const wxTextAttr * base = (const wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call Merge - // allocate a new object using the copy constructor - wxTextAttr* returns = new wxTextAttr(wxTextAttr::Merge(*base, *overlay)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttr); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_RemoveFlag[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_RemoveFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_RemoveFlag[1] = {{ wxLua_wxTextAttr_RemoveFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_RemoveFlag }}; -// void RemoveFlag(long flag); -static int LUACALL wxLua_wxTextAttr_RemoveFlag(lua_State *L) -{ - // long flag - long flag = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call RemoveFlag - self->RemoveFlag(flag); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_RemoveStyle[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_RemoveStyle[1] = {{ wxLua_wxTextAttr_RemoveStyle, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_RemoveStyle }}; -// static bool RemoveStyle(wxTextAttr& destStyle, const wxTextAttr& style); -static int LUACALL wxLua_wxTextAttr_RemoveStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // wxTextAttr destStyle - wxTextAttr * destStyle = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call RemoveStyle - bool returns = (wxTextAttr::RemoveStyle(*destStyle, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetAlignment[] = { &wxluatype_wxTextAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetAlignment[1] = {{ wxLua_wxTextAttr_SetAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetAlignment }}; -// void SetAlignment(wxTextAttrAlignment alignment); -static int LUACALL wxLua_wxTextAttr_SetAlignment(lua_State *L) -{ - // wxTextAttrAlignment alignment - wxTextAttrAlignment alignment = (wxTextAttrAlignment)wxlua_getenumtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetAlignment - self->SetAlignment(alignment); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetBackgroundColour[] = { &wxluatype_wxTextAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxTextAttr_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetBackgroundColour[1] = {{ wxLua_wxTextAttr_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colBack); -static int LUACALL wxLua_wxTextAttr_SetBackgroundColour(lua_State *L) -{ - // const wxColour colBack - const wxColour * colBack = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetBackgroundColour - self->SetBackgroundColour(*colBack); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetBulletFont[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetBulletFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetBulletFont[1] = {{ wxLua_wxTextAttr_SetBulletFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetBulletFont }}; -// void SetBulletFont(const wxString& bulletFont); -static int LUACALL wxLua_wxTextAttr_SetBulletFont(lua_State *L) -{ - // const wxString bulletFont - const wxString bulletFont = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetBulletFont - self->SetBulletFont(bulletFont); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetBulletName[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetBulletName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetBulletName[1] = {{ wxLua_wxTextAttr_SetBulletName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetBulletName }}; -// void SetBulletName(const wxString& name); -static int LUACALL wxLua_wxTextAttr_SetBulletName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetBulletName - self->SetBulletName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetBulletNumber[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetBulletNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetBulletNumber[1] = {{ wxLua_wxTextAttr_SetBulletNumber, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetBulletNumber }}; -// void SetBulletNumber(int n); -static int LUACALL wxLua_wxTextAttr_SetBulletNumber(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetBulletNumber - self->SetBulletNumber(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetBulletStyle[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetBulletStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetBulletStyle[1] = {{ wxLua_wxTextAttr_SetBulletStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetBulletStyle }}; -// void SetBulletStyle(int style); -static int LUACALL wxLua_wxTextAttr_SetBulletStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetBulletStyle - self->SetBulletStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetBulletText[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetBulletText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetBulletText[1] = {{ wxLua_wxTextAttr_SetBulletText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetBulletText }}; -// void SetBulletText(const wxString& text); -static int LUACALL wxLua_wxTextAttr_SetBulletText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetBulletText - self->SetBulletText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetCharacterStyleName[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetCharacterStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetCharacterStyleName[1] = {{ wxLua_wxTextAttr_SetCharacterStyleName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetCharacterStyleName }}; -// void SetCharacterStyleName(const wxString& name); -static int LUACALL wxLua_wxTextAttr_SetCharacterStyleName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetCharacterStyleName - self->SetCharacterStyleName(name); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFlags[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFlags[1] = {{ wxLua_wxTextAttr_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFlags }}; -// void SetFlags(long flags); -static int LUACALL wxLua_wxTextAttr_SetFlags(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFont[] = { &wxluatype_wxTextAttr, &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFont[1] = {{ wxLua_wxTextAttr_SetFont, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttr_SetFont }}; -// void SetFont(const wxFont& font, long flags = wxTEXT_ATTR_FONT); -static int LUACALL wxLua_wxTextAttr_SetFont(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = wxTEXT_ATTR_FONT - long flags = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : wxTEXT_ATTR_FONT); - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFont - self->SetFont(*font, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontEncoding[] = { &wxluatype_wxTextAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontEncoding[1] = {{ wxLua_wxTextAttr_SetFontEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontEncoding }}; -// void SetFontEncoding(wxFontEncoding encoding); -static int LUACALL wxLua_wxTextAttr_SetFontEncoding(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontEncoding - self->SetFontEncoding(encoding); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontFaceName[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontFaceName[1] = {{ wxLua_wxTextAttr_SetFontFaceName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontFaceName }}; -// void SetFontFaceName(const wxString& faceName); -static int LUACALL wxLua_wxTextAttr_SetFontFaceName(lua_State *L) -{ - // const wxString faceName - const wxString faceName = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontFaceName - self->SetFontFaceName(faceName); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontFamily[] = { &wxluatype_wxTextAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontFamily(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontFamily[1] = {{ wxLua_wxTextAttr_SetFontFamily, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontFamily }}; -// void SetFontFamily(wxFontFamily family); -static int LUACALL wxLua_wxTextAttr_SetFontFamily(lua_State *L) -{ - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontFamily - self->SetFontFamily(family); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontPixelSize[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontPixelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontPixelSize[1] = {{ wxLua_wxTextAttr_SetFontPixelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontPixelSize }}; -// void SetFontPixelSize(int pixelSize); -static int LUACALL wxLua_wxTextAttr_SetFontPixelSize(lua_State *L) -{ - // int pixelSize - int pixelSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontPixelSize - self->SetFontPixelSize(pixelSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontPointSize[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontPointSize[1] = {{ wxLua_wxTextAttr_SetFontPointSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontPointSize }}; -// void SetFontPointSize(int pointSize); -static int LUACALL wxLua_wxTextAttr_SetFontPointSize(lua_State *L) -{ - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontPointSize - self->SetFontPointSize(pointSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontSize[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontSize[1] = {{ wxLua_wxTextAttr_SetFontSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontSize }}; -// void SetFontSize(int pointSize); -static int LUACALL wxLua_wxTextAttr_SetFontSize(lua_State *L) -{ - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontSize - self->SetFontSize(pointSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontStrikethrough[] = { &wxluatype_wxTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontStrikethrough[1] = {{ wxLua_wxTextAttr_SetFontStrikethrough, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontStrikethrough }}; -// void SetFontStrikethrough(bool strikethrough); -static int LUACALL wxLua_wxTextAttr_SetFontStrikethrough(lua_State *L) -{ - // bool strikethrough - bool strikethrough = wxlua_getbooleantype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontStrikethrough - self->SetFontStrikethrough(strikethrough); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontStyle[] = { &wxluatype_wxTextAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontStyle[1] = {{ wxLua_wxTextAttr_SetFontStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontStyle }}; -// void SetFontStyle(wxFontStyle fontStyle); -static int LUACALL wxLua_wxTextAttr_SetFontStyle(lua_State *L) -{ - // wxFontStyle fontStyle - wxFontStyle fontStyle = (wxFontStyle)wxlua_getenumtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontStyle - self->SetFontStyle(fontStyle); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontUnderlined[] = { &wxluatype_wxTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontUnderlined[1] = {{ wxLua_wxTextAttr_SetFontUnderlined, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontUnderlined }}; -// void SetFontUnderlined(bool underlined); -static int LUACALL wxLua_wxTextAttr_SetFontUnderlined(lua_State *L) -{ - // bool underlined - bool underlined = wxlua_getbooleantype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontUnderlined - self->SetFontUnderlined(underlined); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetFontWeight[] = { &wxluatype_wxTextAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetFontWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetFontWeight[1] = {{ wxLua_wxTextAttr_SetFontWeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetFontWeight }}; -// void SetFontWeight(wxFontWeight fontWeight); -static int LUACALL wxLua_wxTextAttr_SetFontWeight(lua_State *L) -{ - // wxFontWeight fontWeight - wxFontWeight fontWeight = (wxFontWeight)wxlua_getenumtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetFontWeight - self->SetFontWeight(fontWeight); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetLeftIndent[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetLeftIndent[1] = {{ wxLua_wxTextAttr_SetLeftIndent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttr_SetLeftIndent }}; -// void SetLeftIndent(int indent, int subIndent = 0); -static int LUACALL wxLua_wxTextAttr_SetLeftIndent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int subIndent = 0 - int subIndent = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetLeftIndent - self->SetLeftIndent(indent, subIndent); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetLineSpacing[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetLineSpacing[1] = {{ wxLua_wxTextAttr_SetLineSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetLineSpacing }}; -// void SetLineSpacing(int spacing); -static int LUACALL wxLua_wxTextAttr_SetLineSpacing(lua_State *L) -{ - // int spacing - int spacing = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetLineSpacing - self->SetLineSpacing(spacing); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetListStyleName[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetListStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetListStyleName[1] = {{ wxLua_wxTextAttr_SetListStyleName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetListStyleName }}; -// void SetListStyleName(const wxString& name); -static int LUACALL wxLua_wxTextAttr_SetListStyleName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetListStyleName - self->SetListStyleName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetOutlineLevel[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetOutlineLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetOutlineLevel[1] = {{ wxLua_wxTextAttr_SetOutlineLevel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetOutlineLevel }}; -// void SetOutlineLevel(int level); -static int LUACALL wxLua_wxTextAttr_SetOutlineLevel(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetOutlineLevel - self->SetOutlineLevel(level); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetPageBreak[] = { &wxluatype_wxTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttr_SetPageBreak(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetPageBreak[1] = {{ wxLua_wxTextAttr_SetPageBreak, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetPageBreak }}; -// void SetPageBreak(bool pageBreak = true); -static int LUACALL wxLua_wxTextAttr_SetPageBreak(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool pageBreak = true - bool pageBreak = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetPageBreak - self->SetPageBreak(pageBreak); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetParagraphSpacingAfter[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetParagraphSpacingAfter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetParagraphSpacingAfter[1] = {{ wxLua_wxTextAttr_SetParagraphSpacingAfter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetParagraphSpacingAfter }}; -// void SetParagraphSpacingAfter(int spacing); -static int LUACALL wxLua_wxTextAttr_SetParagraphSpacingAfter(lua_State *L) -{ - // int spacing - int spacing = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetParagraphSpacingAfter - self->SetParagraphSpacingAfter(spacing); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetParagraphSpacingBefore[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetParagraphSpacingBefore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetParagraphSpacingBefore[1] = {{ wxLua_wxTextAttr_SetParagraphSpacingBefore, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetParagraphSpacingBefore }}; -// void SetParagraphSpacingBefore(int spacing); -static int LUACALL wxLua_wxTextAttr_SetParagraphSpacingBefore(lua_State *L) -{ - // int spacing - int spacing = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetParagraphSpacingBefore - self->SetParagraphSpacingBefore(spacing); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetParagraphStyleName[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetParagraphStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetParagraphStyleName[1] = {{ wxLua_wxTextAttr_SetParagraphStyleName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetParagraphStyleName }}; -// void SetParagraphStyleName(const wxString& name); -static int LUACALL wxLua_wxTextAttr_SetParagraphStyleName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetParagraphStyleName - self->SetParagraphStyleName(name); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetRightIndent[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetRightIndent[1] = {{ wxLua_wxTextAttr_SetRightIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetRightIndent }}; -// void SetRightIndent(int indent); -static int LUACALL wxLua_wxTextAttr_SetRightIndent(lua_State *L) -{ - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetRightIndent - self->SetRightIndent(indent); - - return 0; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetTabs[] = { &wxluatype_wxTextAttr, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxTextAttr_SetTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetTabs[1] = {{ wxLua_wxTextAttr_SetTabs, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetTabs }}; -// void SetTabs(const wxArrayInt& tabs); -static int LUACALL wxLua_wxTextAttr_SetTabs(lua_State *L) -{ - // const wxArrayInt tabs - wxLuaSmartwxArrayInt tabs = wxlua_getwxArrayInt(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetTabs - self->SetTabs(tabs); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetTextColour[] = { &wxluatype_wxTextAttr, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxTextAttr_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetTextColour[1] = {{ wxLua_wxTextAttr_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetTextColour }}; -// void SetTextColour(const wxColour& colText); -static int LUACALL wxLua_wxTextAttr_SetTextColour(lua_State *L) -{ - // const wxColour colText - const wxColour * colText = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetTextColour - self->SetTextColour(*colText); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetTextEffectFlags[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetTextEffectFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetTextEffectFlags[1] = {{ wxLua_wxTextAttr_SetTextEffectFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetTextEffectFlags }}; -// void SetTextEffectFlags(int effects); -static int LUACALL wxLua_wxTextAttr_SetTextEffectFlags(lua_State *L) -{ - // int effects - int effects = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetTextEffectFlags - self->SetTextEffectFlags(effects); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetTextEffects[] = { &wxluatype_wxTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttr_SetTextEffects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetTextEffects[1] = {{ wxLua_wxTextAttr_SetTextEffects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetTextEffects }}; -// void SetTextEffects(int effects); -static int LUACALL wxLua_wxTextAttr_SetTextEffects(lua_State *L) -{ - // int effects - int effects = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetTextEffects - self->SetTextEffects(effects); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SetURL[] = { &wxluatype_wxTextAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextAttr_SetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SetURL[1] = {{ wxLua_wxTextAttr_SetURL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_SetURL }}; -// void SetURL(const wxString& url); -static int LUACALL wxLua_wxTextAttr_SetURL(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxTextAttr * self = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SetURL - self->SetURL(url); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_SplitParaCharStyles[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxTextAttr_SplitParaCharStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_SplitParaCharStyles[1] = {{ wxLua_wxTextAttr_SplitParaCharStyles, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxTextAttr_SplitParaCharStyles }}; -// static bool SplitParaCharStyles(const wxTextAttr& style, wxTextAttr& parStyle, wxTextAttr& charStyle); -static int LUACALL wxLua_wxTextAttr_SplitParaCharStyles(lua_State *L) -{ - // wxTextAttr charStyle - wxTextAttr * charStyle = (wxTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttr); - // wxTextAttr parStyle - wxTextAttr * parStyle = (wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call SplitParaCharStyles - bool returns = (wxTextAttr::SplitParaCharStyles(*style, *parStyle, *charStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_TabsEq[] = { &wxluatype_wxArrayInt, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxTextAttr_TabsEq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_TabsEq[1] = {{ wxLua_wxTextAttr_TabsEq, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_TabsEq }}; -// static bool TabsEq(const wxArrayInt& tabs1, const wxArrayInt& tabs2); -static int LUACALL wxLua_wxTextAttr_TabsEq(lua_State *L) -{ - // const wxArrayInt tabs2 - wxLuaSmartwxArrayInt tabs2 = wxlua_getwxArrayInt(L, 2); - // const wxArrayInt tabs1 - wxLuaSmartwxArrayInt tabs1 = wxlua_getwxArrayInt(L, 1); - // call TabsEq - bool returns = (wxTextAttr::TabsEq(tabs1, tabs2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_delete[] = { &wxluatype_wxTextAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttr_delete }}; - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttr_constructor[] = { &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttr_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_constructor[1] = {{ wxLua_wxTextAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxTextAttr_constructor }}; -// wxTextAttr(const wxColour& colText = wxNullColour, const wxColour& colBack = wxNullColour, const wxFont& font = wxNullFont, wxTextAttrAlignment alignment = wxTEXT_ALIGNMENT_DEFAULT); -static int LUACALL wxLua_wxTextAttr_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxTextAttrAlignment alignment = wxTEXT_ALIGNMENT_DEFAULT - wxTextAttrAlignment alignment = (argCount >= 4 ? (wxTextAttrAlignment)wxlua_getenumtype(L, 4) : wxTEXT_ALIGNMENT_DEFAULT); - // const wxFont font = wxNullFont - const wxFont * font = (argCount >= 3 ? (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : &wxNullFont); - // const wxColour colBack = wxNullColour - const wxColour * colBack = (argCount >= 2 ? (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour) : &wxNullColour); - // const wxColour colText = wxNullColour - const wxColour * colText = (argCount >= 1 ? (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour) : &wxNullColour); - // call constructor - wxTextAttr* returns = new wxTextAttr(*colText, *colBack, *font, alignment); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttr); - - return 1; -} - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttr_Merge_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxTextAttr_Merge1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_Merge1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxTextAttr_Merge, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxTextAttr_Merge }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -}; -static int s_wxluafunc_wxLua_wxTextAttr_Merge_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttr_Merge_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - -void wxLua_wxTextAttr_delete_function(void** p) -{ - wxTextAttr* o = (wxTextAttr*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttr_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "AddFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_AddFlag, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_Apply, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "BitlistsEqPartial", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_BitlistsEqPartial, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "Combine", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_Combine, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "CombineBitlists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_CombineBitlists, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_EqPartial, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetBulletFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetBulletFont, 1, NULL }, - { "GetBulletName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetBulletName, 1, NULL }, - { "GetBulletNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetBulletNumber, 1, NULL }, - { "GetBulletStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetBulletStyle, 1, NULL }, - { "GetBulletText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetBulletText, 1, NULL }, - { "GetCharacterStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetCharacterStyleName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFlags, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "GetFontAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontAttributes, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) - { "GetFontEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontEncoding, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetFontFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontFaceName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "GetFontFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontFamily, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontSize, 1, NULL }, - { "GetFontStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontStrikethrough, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "GetFontStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetFontUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontUnderlined, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "GetFontWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetFontWeight, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - - { "GetLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetLeftIndent, 1, NULL }, - { "GetLeftSubIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetLeftSubIndent, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetLineSpacing, 1, NULL }, - { "GetListStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetListStyleName, 1, NULL }, - { "GetOutlineLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetOutlineLevel, 1, NULL }, - { "GetParagraphSpacingAfter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetParagraphSpacingAfter, 1, NULL }, - { "GetParagraphSpacingBefore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetParagraphSpacingBefore, 1, NULL }, - { "GetParagraphStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetParagraphStyleName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetRightIndent, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetTabs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetTabs, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetTextEffectFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetTextEffectFlags, 1, NULL }, - { "GetTextEffects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetTextEffects, 1, NULL }, - { "GetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_GetURL, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "HasAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasAlignment, 1, NULL }, - { "HasBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasBackgroundColour, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "HasBulletName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasBulletName, 1, NULL }, - { "HasBulletNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasBulletNumber, 1, NULL }, - { "HasBulletStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasBulletStyle, 1, NULL }, - { "HasBulletText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasBulletText, 1, NULL }, - { "HasCharacterStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasCharacterStyleName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "HasFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFlag, 1, NULL }, - { "HasFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFont, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "HasFontEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontEncoding, 1, NULL }, - { "HasFontFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontFaceName, 1, NULL }, - { "HasFontFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontFamily, 1, NULL }, - { "HasFontItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontItalic, 1, NULL }, - { "HasFontPixelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontPixelSize, 1, NULL }, - { "HasFontPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontPointSize, 1, NULL }, - { "HasFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontSize, 1, NULL }, - { "HasFontStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontStrikethrough, 1, NULL }, - { "HasFontUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontUnderlined, 1, NULL }, - { "HasFontWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasFontWeight, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "HasLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasLeftIndent, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "HasLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasLineSpacing, 1, NULL }, - { "HasListStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasListStyleName, 1, NULL }, - { "HasOutlineLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasOutlineLevel, 1, NULL }, - { "HasPageBreak", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasPageBreak, 1, NULL }, - { "HasParagraphSpacingAfter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasParagraphSpacingAfter, 1, NULL }, - { "HasParagraphSpacingBefore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasParagraphSpacingBefore, 1, NULL }, - { "HasParagraphStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasParagraphStyleName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "HasRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasRightIndent, 1, NULL }, - { "HasTabs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasTabs, 1, NULL }, - { "HasTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasTextColour, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "HasTextEffect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasTextEffect, 1, NULL }, - { "HasTextEffects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasTextEffects, 1, NULL }, - { "HasURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_HasURL, 1, NULL }, - { "IsCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_IsCharacterStyle, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "IsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_IsDefault, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "IsParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_IsParagraphStyle, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - { "Merge", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_Merge_overload, s_wxluafunc_wxLua_wxTextAttr_Merge_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "RemoveFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_RemoveFlag, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "RemoveStyle", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_RemoveStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "SetAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetAlignment, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetBulletFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetBulletFont, 1, NULL }, - { "SetBulletName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetBulletName, 1, NULL }, - { "SetBulletNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetBulletNumber, 1, NULL }, - { "SetBulletStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetBulletStyle, 1, NULL }, - { "SetBulletText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetBulletText, 1, NULL }, - { "SetCharacterStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetCharacterStyleName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFlags, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) - { "SetFontEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontEncoding, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetFontFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontFaceName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "SetFontFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontFamily, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetFontPixelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontPixelSize, 1, NULL }, - { "SetFontPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontPointSize, 1, NULL }, - { "SetFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontSize, 1, NULL }, - { "SetFontStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontStrikethrough, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "SetFontStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetFontUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontUnderlined, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - { "SetFontWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetFontWeight, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxFont) - - { "SetLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetLeftIndent, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetLineSpacing, 1, NULL }, - { "SetListStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetListStyleName, 1, NULL }, - { "SetOutlineLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetOutlineLevel, 1, NULL }, - { "SetPageBreak", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetPageBreak, 1, NULL }, - { "SetParagraphSpacingAfter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetParagraphSpacingAfter, 1, NULL }, - { "SetParagraphSpacingBefore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetParagraphSpacingBefore, 1, NULL }, - { "SetParagraphStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetParagraphStyleName, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "SetRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetRightIndent, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetTabs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetTabs, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetTextEffectFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetTextEffectFlags, 1, NULL }, - { "SetTextEffects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetTextEffects, 1, NULL }, - { "SetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttr_SetURL, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SplitParaCharStyles", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_SplitParaCharStyles, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayInt) - { "TabsEq", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxTextAttr_TabsEq, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxArrayInt) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttr_delete, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTextAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttr_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxTextAttr_methodCount = sizeof(wxTextAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - -#if wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL -// --------------------------------------------------------------------------- -// Bind class wxTextUrlEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextUrlEvent' -int wxluatype_wxTextUrlEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextUrlEvent_GetMouseEvent[] = { &wxluatype_wxTextUrlEvent, NULL }; -static int LUACALL wxLua_wxTextUrlEvent_GetMouseEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextUrlEvent_GetMouseEvent[1] = {{ wxLua_wxTextUrlEvent_GetMouseEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextUrlEvent_GetMouseEvent }}; -// const wxMouseEvent& GetMouseEvent() const; -static int LUACALL wxLua_wxTextUrlEvent_GetMouseEvent(lua_State *L) -{ - // get this - wxTextUrlEvent * self = (wxTextUrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextUrlEvent); - // call GetMouseEvent - const wxMouseEvent* returns = (const wxMouseEvent*)&self->GetMouseEvent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextUrlEvent_GetURLEnd[] = { &wxluatype_wxTextUrlEvent, NULL }; -static int LUACALL wxLua_wxTextUrlEvent_GetURLEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextUrlEvent_GetURLEnd[1] = {{ wxLua_wxTextUrlEvent_GetURLEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextUrlEvent_GetURLEnd }}; -// long GetURLEnd() const; -static int LUACALL wxLua_wxTextUrlEvent_GetURLEnd(lua_State *L) -{ - // get this - wxTextUrlEvent * self = (wxTextUrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextUrlEvent); - // call GetURLEnd - long returns = (self->GetURLEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextUrlEvent_GetURLStart[] = { &wxluatype_wxTextUrlEvent, NULL }; -static int LUACALL wxLua_wxTextUrlEvent_GetURLStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextUrlEvent_GetURLStart[1] = {{ wxLua_wxTextUrlEvent_GetURLStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextUrlEvent_GetURLStart }}; -// long GetURLStart() const; -static int LUACALL wxLua_wxTextUrlEvent_GetURLStart(lua_State *L) -{ - // get this - wxTextUrlEvent * self = (wxTextUrlEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextUrlEvent); - // call GetURLStart - long returns = (self->GetURLStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextUrlEvent_delete[] = { &wxluatype_wxTextUrlEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextUrlEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextUrlEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextUrlEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxMouseEvent, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextUrlEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextUrlEvent_constructor[1] = {{ wxLua_wxTextUrlEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxTextUrlEvent_constructor }}; -// wxTextUrlEvent(int winid, const wxMouseEvent& evtMouse, long start, long end); -static int LUACALL wxLua_wxTextUrlEvent_constructor(lua_State *L) -{ - // long end - long end = (long)wxlua_getnumbertype(L, 4); - // long start - long start = (long)wxlua_getnumbertype(L, 3); - // const wxMouseEvent evtMouse - const wxMouseEvent * evtMouse = (const wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // int winid - int winid = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxTextUrlEvent* returns = new wxTextUrlEvent(winid, *evtMouse, start, end); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextUrlEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextUrlEvent); - - return 1; -} - - - - -void wxLua_wxTextUrlEvent_delete_function(void** p) -{ - wxTextUrlEvent* o = (wxTextUrlEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextUrlEvent_methods[] = { - { "GetMouseEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextUrlEvent_GetMouseEvent, 1, NULL }, - { "GetURLEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextUrlEvent_GetURLEnd, 1, NULL }, - { "GetURLStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextUrlEvent_GetURLStart, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextUrlEvent_delete, 1, NULL }, - { "wxTextUrlEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextUrlEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextUrlEvent_methodCount = sizeof(wxTextUrlEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL - - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL -// --------------------------------------------------------------------------- -// Bind class wxTreeCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeCtrl' -int wxluatype_wxTreeCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_AddRoot[] = { &wxluatype_wxTreeCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeCtrl_AddRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_AddRoot[1] = {{ wxLua_wxTreeCtrl_AddRoot, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxTreeCtrl_AddRoot }}; -// wxTreeItemId AddRoot(const wxString& text, int image = -1, int selImage = -1, %ungc wxLuaTreeItemData* data = NULL); -static int LUACALL wxLua_wxTreeCtrl_AddRoot(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxLuaTreeItemData data = NULL - wxLuaTreeItemData * data = (argCount >= 5 ? (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 5, wxluatype_wxLuaTreeItemData) : NULL); - // int selImage = -1 - int selImage = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int image = -1 - int image = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call AddRoot - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->AddRoot(text, image, selImage, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_AppendItem[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeCtrl_AppendItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_AppendItem[1] = {{ wxLua_wxTreeCtrl_AppendItem, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxTreeCtrl_AppendItem }}; -// wxTreeItemId AppendItem(const wxTreeItemId& parent, const wxString& text, int image = -1, int selImage = -1, %ungc wxLuaTreeItemData* data = NULL); -static int LUACALL wxLua_wxTreeCtrl_AppendItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxLuaTreeItemData data = NULL - wxLuaTreeItemData * data = (argCount >= 6 ? (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxLuaTreeItemData) : NULL); - // int selImage = -1 - int selImage = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int image = -1 - int image = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxTreeItemId parent - const wxTreeItemId * parent = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call AppendItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->AppendItem(*parent, text, image, selImage, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_AssignImageList[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTreeCtrl_AssignImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_AssignImageList[1] = {{ wxLua_wxTreeCtrl_AssignImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_AssignImageList }}; -// void AssignImageList(%ungc wxImageList* imageList); -static int LUACALL wxLua_wxTreeCtrl_AssignImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - if (wxluaO_isgcobject(L, imageList)) wxluaO_undeletegcobject(L, imageList); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call AssignImageList - self->AssignImageList(imageList); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_AssignStateImageList[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTreeCtrl_AssignStateImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_AssignStateImageList[1] = {{ wxLua_wxTreeCtrl_AssignStateImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_AssignStateImageList }}; -// void AssignStateImageList(%ungc wxImageList* imageList); -static int LUACALL wxLua_wxTreeCtrl_AssignStateImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - if (wxluaO_isgcobject(L, imageList)) wxluaO_undeletegcobject(L, imageList); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call AssignStateImageList - self->AssignStateImageList(imageList); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_ClearFocusedItem[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_ClearFocusedItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_ClearFocusedItem[1] = {{ wxLua_wxTreeCtrl_ClearFocusedItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_ClearFocusedItem }}; -// %wxchkver_3_0_0 void ClearFocusedItem(); -static int LUACALL wxLua_wxTreeCtrl_ClearFocusedItem(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call ClearFocusedItem - self->ClearFocusedItem(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_Collapse[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_Collapse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_Collapse[1] = {{ wxLua_wxTreeCtrl_Collapse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_Collapse }}; -// void Collapse(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_Collapse(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call Collapse - self->Collapse(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_CollapseAll[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_CollapseAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_CollapseAll[1] = {{ wxLua_wxTreeCtrl_CollapseAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_CollapseAll }}; -// void CollapseAll(); -static int LUACALL wxLua_wxTreeCtrl_CollapseAll(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call CollapseAll - self->CollapseAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_CollapseAllChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_CollapseAllChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_CollapseAllChildren[1] = {{ wxLua_wxTreeCtrl_CollapseAllChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_CollapseAllChildren }}; -// void CollapseAllChildren(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_CollapseAllChildren(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call CollapseAllChildren - self->CollapseAllChildren(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_CollapseAndReset[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_CollapseAndReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_CollapseAndReset[1] = {{ wxLua_wxTreeCtrl_CollapseAndReset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_CollapseAndReset }}; -// void CollapseAndReset(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_CollapseAndReset(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call CollapseAndReset - self->CollapseAndReset(*item); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_Create[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_Create[1] = {{ wxLua_wxTreeCtrl_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxTreeCtrl_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_HAS_BUTTONS, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTreeCtrl"); -static int LUACALL wxLua_wxTreeCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTreeCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxTreeCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxTR_HAS_BUTTONS - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxTR_HAS_BUTTONS); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_Delete[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_Delete[1] = {{ wxLua_wxTreeCtrl_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_Delete }}; -// void Delete(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_Delete(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call Delete - self->Delete(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_DeleteAllItems[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_DeleteAllItems[1] = {{ wxLua_wxTreeCtrl_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_DeleteAllItems }}; -// void DeleteAllItems(); -static int LUACALL wxLua_wxTreeCtrl_DeleteAllItems(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call DeleteAllItems - self->DeleteAllItems(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_DeleteChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_DeleteChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_DeleteChildren[1] = {{ wxLua_wxTreeCtrl_DeleteChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_DeleteChildren }}; -// void DeleteChildren(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_DeleteChildren(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call DeleteChildren - self->DeleteChildren(*item); - - return 0; -} - - -#if (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_EditLabel[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_EditLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_EditLabel[1] = {{ wxLua_wxTreeCtrl_EditLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_EditLabel }}; -// wxTextCtrl *EditLabel(const wxTreeItemId& item); // %override , wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)); -static int LUACALL wxLua_wxTreeCtrl_EditLabel(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call EditLabel - wxTextCtrl* returns = (wxTextCtrl*)self->EditLabel(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_EnableBellOnNoMatch[] = { &wxluatype_wxTreeCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_EnableBellOnNoMatch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_EnableBellOnNoMatch[1] = {{ wxLua_wxTreeCtrl_EnableBellOnNoMatch, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_EnableBellOnNoMatch }}; -// %wxchkver_3_0_0 void EnableBellOnNoMatch(bool on = true); -static int LUACALL wxLua_wxTreeCtrl_EnableBellOnNoMatch(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool on = true - bool on = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call EnableBellOnNoMatch - self->EnableBellOnNoMatch(on); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_EndEditLabel[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_EndEditLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_EndEditLabel[1] = {{ wxLua_wxTreeCtrl_EndEditLabel, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_EndEditLabel }}; -// %win void EndEditLabel(const wxTreeItemId& item, bool discardChanges = false); -static int LUACALL wxLua_wxTreeCtrl_EndEditLabel(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool discardChanges = false - bool discardChanges = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call EndEditLabel - self->EndEditLabel(*item, discardChanges); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_EnsureVisible[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_EnsureVisible[1] = {{ wxLua_wxTreeCtrl_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_EnsureVisible }}; -// void EnsureVisible(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_EnsureVisible(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call EnsureVisible - self->EnsureVisible(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_Expand[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_Expand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_Expand[1] = {{ wxLua_wxTreeCtrl_Expand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_Expand }}; -// void Expand(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_Expand(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call Expand - self->Expand(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_ExpandAll[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_ExpandAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_ExpandAll[1] = {{ wxLua_wxTreeCtrl_ExpandAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_ExpandAll }}; -// void ExpandAll(); -static int LUACALL wxLua_wxTreeCtrl_ExpandAll(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call ExpandAll - self->ExpandAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_ExpandAllChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_ExpandAllChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_ExpandAllChildren[1] = {{ wxLua_wxTreeCtrl_ExpandAllChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_ExpandAllChildren }}; -// void ExpandAllChildren(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_ExpandAllChildren(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call ExpandAllChildren - self->ExpandAllChildren(*item); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetBoundingRect[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_wxRect, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetBoundingRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetBoundingRect[1] = {{ wxLua_wxTreeCtrl_GetBoundingRect, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxTreeCtrl_GetBoundingRect }}; -// bool GetBoundingRect(const wxTreeItemId& item, wxRect& rect, bool textOnly = false) const; -static int LUACALL wxLua_wxTreeCtrl_GetBoundingRect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool textOnly = false - bool textOnly = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // wxRect rect - wxRect * rect = (wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetBoundingRect - bool returns = (self->GetBoundingRect(*item, *rect, textOnly)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetChildrenCount[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetChildrenCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetChildrenCount[1] = {{ wxLua_wxTreeCtrl_GetChildrenCount, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_GetChildrenCount }}; -// size_t GetChildrenCount(const wxTreeItemId& item, bool recursively = true) const; -static int LUACALL wxLua_wxTreeCtrl_GetChildrenCount(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursively = true - bool recursively = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetChildrenCount - size_t returns = (self->GetChildrenCount(*item, recursively)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetCount[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetCount[1] = {{ wxLua_wxTreeCtrl_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxTreeCtrl_GetCount(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetEditControl[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetEditControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetEditControl[1] = {{ wxLua_wxTreeCtrl_GetEditControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetEditControl }}; -// %win wxTextCtrl* GetEditControl() const; -static int LUACALL wxLua_wxTreeCtrl_GetEditControl(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetEditControl - wxTextCtrl* returns = (wxTextCtrl*)self->GetEditControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetFirstChild[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetFirstChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetFirstChild[1] = {{ wxLua_wxTreeCtrl_GetFirstChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetFirstChild }}; -// %override wxLua_wxTreeCtrl_GetFirstChild -// wxTreeItemId GetFirstChild(const wxTreeItemId& item, wxTreeItemIdValue& cookie) const -static int LUACALL wxLua_wxTreeCtrl_GetFirstChild(lua_State *L) -{ - wxTreeItemIdValue cookie = 0; - - // const wxTreeItemId& item - const wxTreeItemId *item = (wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl *self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetFirstChild - // allocate a new object using the copy constructor - wxTreeItemId *returns = new wxTreeItemId(self->GetFirstChild(*item, cookie)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, (void*)returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - // push the cookie - lua_pushlightuserdata(L, cookie); // wxTreeItemIdValue is void* - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetFirstVisibleItem[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetFirstVisibleItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetFirstVisibleItem[1] = {{ wxLua_wxTreeCtrl_GetFirstVisibleItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetFirstVisibleItem }}; -// wxTreeItemId GetFirstVisibleItem() const; -static int LUACALL wxLua_wxTreeCtrl_GetFirstVisibleItem(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetFirstVisibleItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetFirstVisibleItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetFocusedItem[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetFocusedItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetFocusedItem[1] = {{ wxLua_wxTreeCtrl_GetFocusedItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetFocusedItem }}; -// %wxchkver_3_0_0 wxTreeItemId GetFocusedItem() const; -static int LUACALL wxLua_wxTreeCtrl_GetFocusedItem(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetFocusedItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetFocusedItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetImageList[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetImageList[1] = {{ wxLua_wxTreeCtrl_GetImageList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetImageList }}; -// wxImageList* GetImageList() const; -static int LUACALL wxLua_wxTreeCtrl_GetImageList(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetImageList - wxImageList* returns = (wxImageList*)self->GetImageList(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetIndent[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetIndent[1] = {{ wxLua_wxTreeCtrl_GetIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetIndent }}; -// int GetIndent() const; -static int LUACALL wxLua_wxTreeCtrl_GetIndent(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetIndent - int returns = (self->GetIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemBackgroundColour[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemBackgroundColour[1] = {{ wxLua_wxTreeCtrl_GetItemBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemBackgroundColour }}; -// wxColour GetItemBackgroundColour(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemBackgroundColour(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetItemBackgroundColour(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemData[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemData[1] = {{ wxLua_wxTreeCtrl_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemData }}; -// wxLuaTreeItemData* GetItemData(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemData(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemData - wxLuaTreeItemData* returns = (wxLuaTreeItemData*)self->GetItemData(*item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaTreeItemData); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemFont[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemFont[1] = {{ wxLua_wxTreeCtrl_GetItemFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemFont }}; -// wxFont GetItemFont(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemFont(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetItemFont(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemImage[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemImage[1] = {{ wxLua_wxTreeCtrl_GetItemImage, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemImage }}; -// int GetItemImage(const wxTreeItemId& item, wxTreeItemIcon which = wxTreeItemIcon_Normal) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemImage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxTreeItemIcon which = wxTreeItemIcon_Normal - wxTreeItemIcon which = (argCount >= 3 ? (wxTreeItemIcon)wxlua_getenumtype(L, 3) : wxTreeItemIcon_Normal); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemImage - int returns = (self->GetItemImage(*item, which)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemParent[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemParent[1] = {{ wxLua_wxTreeCtrl_GetItemParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemParent }}; -// %wxchkver_2_4 wxTreeItemId GetItemParent(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemParent(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemParent - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetItemParent(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemState[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemState[1] = {{ wxLua_wxTreeCtrl_GetItemState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemState }}; -// %wxchkver_3_0_0 int GetItemState(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemState(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemState - int returns = (self->GetItemState(*item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemText[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemText[1] = {{ wxLua_wxTreeCtrl_GetItemText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemText }}; -// wxString GetItemText(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemText(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemText - wxString returns = (self->GetItemText(*item)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemTextColour[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetItemTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetItemTextColour[1] = {{ wxLua_wxTreeCtrl_GetItemTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetItemTextColour }}; -// wxColour GetItemTextColour(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetItemTextColour(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetItemTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetItemTextColour(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetLastChild[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetLastChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetLastChild[1] = {{ wxLua_wxTreeCtrl_GetLastChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetLastChild }}; -// wxTreeItemId GetLastChild(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetLastChild(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetLastChild - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetLastChild(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetNextChild[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetNextChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetNextChild[1] = {{ wxLua_wxTreeCtrl_GetNextChild, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_GetNextChild }}; -// %override wxLua_wxTreeCtrl_GetNextChild -// wxTreeItemId GetNextChild(const wxTreeItemId& item, wxTreeItemIdValue& cookie) const -static int LUACALL wxLua_wxTreeCtrl_GetNextChild(lua_State *L) -{ - wxTreeItemIdValue cookie = (wxTreeItemIdValue)wxlua_getpointertype(L, 3); - - // const wxTreeItemId& item - const wxTreeItemId *item = (wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl *self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetNextChild - // allocate a new object using the copy constructor - wxTreeItemId *returns = new wxTreeItemId(self->GetNextChild(*item, cookie)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - // push the cookie - lua_pushlightuserdata(L, cookie); // wxTreeItemIdValue is void* - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetNextSibling[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetNextSibling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetNextSibling[1] = {{ wxLua_wxTreeCtrl_GetNextSibling, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetNextSibling }}; -// wxTreeItemId GetNextSibling(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetNextSibling(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetNextSibling - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetNextSibling(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetNextVisible[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetNextVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetNextVisible[1] = {{ wxLua_wxTreeCtrl_GetNextVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetNextVisible }}; -// wxTreeItemId GetNextVisible(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetNextVisible(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetNextVisible - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetNextVisible(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetPrevSibling[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetPrevSibling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetPrevSibling[1] = {{ wxLua_wxTreeCtrl_GetPrevSibling, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetPrevSibling }}; -// wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetPrevSibling(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetPrevSibling - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetPrevSibling(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetPrevVisible[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetPrevVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetPrevVisible[1] = {{ wxLua_wxTreeCtrl_GetPrevVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_GetPrevVisible }}; -// wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_GetPrevVisible(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetPrevVisible - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetPrevVisible(*item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetQuickBestSize[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetQuickBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetQuickBestSize[1] = {{ wxLua_wxTreeCtrl_GetQuickBestSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetQuickBestSize }}; -// bool GetQuickBestSize() const; -static int LUACALL wxLua_wxTreeCtrl_GetQuickBestSize(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetQuickBestSize - bool returns = (self->GetQuickBestSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetRootItem[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetRootItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetRootItem[1] = {{ wxLua_wxTreeCtrl_GetRootItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetRootItem }}; -// wxTreeItemId GetRootItem() const; -static int LUACALL wxLua_wxTreeCtrl_GetRootItem(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetRootItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetRootItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetSelection[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetSelection[1] = {{ wxLua_wxTreeCtrl_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetSelection }}; -// wxTreeItemId GetSelection() const; -static int LUACALL wxLua_wxTreeCtrl_GetSelection(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetSelection - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetSelection()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetSelections[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetSelections[1] = {{ wxLua_wxTreeCtrl_GetSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetSelections }}; -// %override wxLua_wxTreeCtrl_GetSelections -// size_t GetSelections(wxArrayTreeItemIds& selection) const -static int LUACALL wxLua_wxTreeCtrl_GetSelections(lua_State *L) -{ - // get this - wxTreeCtrl *self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetSelections - wxArrayTreeItemIds selection; - size_t count = self->GetSelections(selection); - - lua_newtable(L); - - size_t idx; - for (idx = 0; idx < count; ++idx) - { - wxTreeItemId* treeId = new wxTreeItemId(selection[idx]); - wxluaO_addgcobject(L, treeId, wxluatype_wxTreeItemId); - wxluaT_pushuserdatatype(L, treeId, wxluatype_wxTreeItemId); - lua_rawseti(L, -2, idx + 1); - } - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetSpacing[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetSpacing[1] = {{ wxLua_wxTreeCtrl_GetSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetSpacing }}; -// unsigned int GetSpacing() const; -static int LUACALL wxLua_wxTreeCtrl_GetSpacing(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetSpacing - unsigned int returns = (self->GetSpacing()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_GetStateImageList[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_GetStateImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_GetStateImageList[1] = {{ wxLua_wxTreeCtrl_GetStateImageList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_GetStateImageList }}; -// wxImageList* GetStateImageList() const; -static int LUACALL wxLua_wxTreeCtrl_GetStateImageList(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call GetStateImageList - wxImageList* returns = (wxImageList*)self->GetStateImageList(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_HitTest[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTreeCtrl_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_HitTest[1] = {{ wxLua_wxTreeCtrl_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_HitTest }}; -// %override wxLua_wxTreeCtrl_HitTest -// wxTreeItemId HitTest(const wxPoint& point, int& flags) -static int LUACALL wxLua_wxTreeCtrl_HitTest(lua_State *L) -{ - // int& flags - int flags = 0; - // const wxPoint& point - const wxPoint *point = (wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTreeCtrl *self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call HitTest - // allocate a new object using the copy constructor - wxTreeItemId *returns = new wxTreeItemId(self->HitTest(*point, flags)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - lua_pushinteger(L, flags); - // return the number of parameters - return 2; -} - - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_InsertItem1[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeCtrl_InsertItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_InsertItem1[1] = {{ wxLua_wxTreeCtrl_InsertItem1, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxTreeCtrl_InsertItem1 }}; -// wxTreeItemId InsertItem(const wxTreeItemId& parent, size_t before, const wxString& text, int image = -1, int selImage = -1, %ungc wxLuaTreeItemData* data = NULL); -static int LUACALL wxLua_wxTreeCtrl_InsertItem1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxLuaTreeItemData data = NULL - wxLuaTreeItemData * data = (argCount >= 7 ? (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 7, wxluatype_wxLuaTreeItemData) : NULL); - // int selImage = -1 - int selImage = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int image = -1 - int image = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // size_t before - size_t before = (size_t)wxlua_getuintegertype(L, 3); - // const wxTreeItemId parent - const wxTreeItemId * parent = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call InsertItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->InsertItem(*parent, before, text, image, selImage, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_InsertItem[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_wxTreeItemId, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeCtrl_InsertItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_InsertItem[1] = {{ wxLua_wxTreeCtrl_InsertItem, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxTreeCtrl_InsertItem }}; -// wxTreeItemId InsertItem(const wxTreeItemId& parent, const wxTreeItemId& previous, const wxString& text, int image = -1, int selImage = -1, %ungc wxLuaTreeItemData* data = NULL); -static int LUACALL wxLua_wxTreeCtrl_InsertItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxLuaTreeItemData data = NULL - wxLuaTreeItemData * data = (argCount >= 7 ? (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 7, wxluatype_wxLuaTreeItemData) : NULL); - // int selImage = -1 - int selImage = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int image = -1 - int image = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // const wxTreeItemId previous - const wxTreeItemId * previous = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTreeItemId); - // const wxTreeItemId parent - const wxTreeItemId * parent = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call InsertItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->InsertItem(*parent, *previous, text, image, selImage, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_IsBold[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_IsBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_IsBold[1] = {{ wxLua_wxTreeCtrl_IsBold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_IsBold }}; -// bool IsBold(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_IsBold(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call IsBold - bool returns = (self->IsBold(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_IsEmpty[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_IsEmpty[1] = {{ wxLua_wxTreeCtrl_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxTreeCtrl_IsEmpty(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_IsExpanded[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_IsExpanded[1] = {{ wxLua_wxTreeCtrl_IsExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_IsExpanded }}; -// bool IsExpanded(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_IsExpanded(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call IsExpanded - bool returns = (self->IsExpanded(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_IsSelected[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_IsSelected[1] = {{ wxLua_wxTreeCtrl_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_IsSelected }}; -// bool IsSelected(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_IsSelected(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call IsSelected - bool returns = (self->IsSelected(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_IsVisible[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_IsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_IsVisible[1] = {{ wxLua_wxTreeCtrl_IsVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_IsVisible }}; -// bool IsVisible(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_IsVisible(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call IsVisible - bool returns = (self->IsVisible(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_ItemHasChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_ItemHasChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_ItemHasChildren[1] = {{ wxLua_wxTreeCtrl_ItemHasChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_ItemHasChildren }}; -// bool ItemHasChildren(const wxTreeItemId& item) const; -static int LUACALL wxLua_wxTreeCtrl_ItemHasChildren(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call ItemHasChildren - bool returns = (self->ItemHasChildren(*item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_PrependItem[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeCtrl_PrependItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_PrependItem[1] = {{ wxLua_wxTreeCtrl_PrependItem, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxTreeCtrl_PrependItem }}; -// wxTreeItemId PrependItem(const wxTreeItemId& parent, const wxString& text, int image = -1, int selImage = -1, %ungc wxLuaTreeItemData* data = NULL); -static int LUACALL wxLua_wxTreeCtrl_PrependItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxLuaTreeItemData data = NULL - wxLuaTreeItemData * data = (argCount >= 6 ? (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxLuaTreeItemData) : NULL); - // int selImage = -1 - int selImage = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int image = -1 - int image = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxTreeItemId parent - const wxTreeItemId * parent = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call PrependItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->PrependItem(*parent, text, image, selImage, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_ScrollTo[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_ScrollTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_ScrollTo[1] = {{ wxLua_wxTreeCtrl_ScrollTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_ScrollTo }}; -// void ScrollTo(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_ScrollTo(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call ScrollTo - self->ScrollTo(*item); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SelectChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SelectChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SelectChildren[1] = {{ wxLua_wxTreeCtrl_SelectChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SelectChildren }}; -// %wxchkver_3_0_0 void SelectChildren(const wxTreeItemId& parent); -static int LUACALL wxLua_wxTreeCtrl_SelectChildren(lua_State *L) -{ - // const wxTreeItemId parent - const wxTreeItemId * parent = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SelectChildren - self->SelectChildren(*parent); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SelectItem[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SelectItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SelectItem[1] = {{ wxLua_wxTreeCtrl_SelectItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SelectItem }}; -// void SelectItem(const wxTreeItemId& item, bool select = true); -static int LUACALL wxLua_wxTreeCtrl_SelectItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool select = true - bool select = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SelectItem - self->SelectItem(*item, select); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetFocusedItem[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetFocusedItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetFocusedItem[1] = {{ wxLua_wxTreeCtrl_SetFocusedItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetFocusedItem }}; -// %wxchkver_3_0_0 void SetFocusedItem(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_SetFocusedItem(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetFocusedItem - self->SetFocusedItem(*item); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetImageList[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetImageList[1] = {{ wxLua_wxTreeCtrl_SetImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetImageList }}; -// void SetImageList(wxImageList* imageList); -static int LUACALL wxLua_wxTreeCtrl_SetImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetImageList - self->SetImageList(imageList); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetIndent1[] = { &wxluatype_wxTreeCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetIndent1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetIndent1[1] = {{ wxLua_wxTreeCtrl_SetIndent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetIndent1 }}; -// !%wxchkver_3_0_0 void SetIndent(int indent); -static int LUACALL wxLua_wxTreeCtrl_SetIndent1(lua_State *L) -{ - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetIndent - self->SetIndent(indent); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetIndent[] = { &wxluatype_wxTreeCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetIndent(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetIndent[1] = {{ wxLua_wxTreeCtrl_SetIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetIndent }}; -// %wxchkver_3_0_0 void SetIndent(unsigned int indent); -static int LUACALL wxLua_wxTreeCtrl_SetIndent(lua_State *L) -{ - // unsigned int indent - unsigned int indent = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetIndent - self->SetIndent(indent); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemBackgroundColour[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemBackgroundColour[1] = {{ wxLua_wxTreeCtrl_SetItemBackgroundColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemBackgroundColour }}; -// void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col); -static int LUACALL wxLua_wxTreeCtrl_SetItemBackgroundColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemBackgroundColour - self->SetItemBackgroundColour(*item, *col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemBold[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemBold[1] = {{ wxLua_wxTreeCtrl_SetItemBold, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemBold }}; -// void SetItemBold(const wxTreeItemId& item, bool bold = true); -static int LUACALL wxLua_wxTreeCtrl_SetItemBold(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bold = true - bool bold = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemBold - self->SetItemBold(*item, bold); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemData[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemData[1] = {{ wxLua_wxTreeCtrl_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemData }}; -// void SetItemData(const wxTreeItemId& item, %ungc wxLuaTreeItemData* data); -static int LUACALL wxLua_wxTreeCtrl_SetItemData(lua_State *L) -{ - // wxLuaTreeItemData data - wxLuaTreeItemData * data = (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxLuaTreeItemData); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemData - self->SetItemData(*item, data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemDropHighlight[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemDropHighlight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemDropHighlight[1] = {{ wxLua_wxTreeCtrl_SetItemDropHighlight, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemDropHighlight }}; -// void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true); -static int LUACALL wxLua_wxTreeCtrl_SetItemDropHighlight(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool highlight = true - bool highlight = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemDropHighlight - self->SetItemDropHighlight(*item, highlight); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemFont[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemFont[1] = {{ wxLua_wxTreeCtrl_SetItemFont, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemFont }}; -// void SetItemFont(const wxTreeItemId& item, const wxFont& font); -static int LUACALL wxLua_wxTreeCtrl_SetItemFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemFont - self->SetItemFont(*item, *font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemHasChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemHasChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemHasChildren[1] = {{ wxLua_wxTreeCtrl_SetItemHasChildren, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemHasChildren }}; -// void SetItemHasChildren(const wxTreeItemId& item, bool hasChildren = true); -static int LUACALL wxLua_wxTreeCtrl_SetItemHasChildren(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool hasChildren = true - bool hasChildren = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemHasChildren - self->SetItemHasChildren(*item, hasChildren); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemImage[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemImage[1] = {{ wxLua_wxTreeCtrl_SetItemImage, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemImage }}; -// void SetItemImage(const wxTreeItemId& item, int image, wxTreeItemIcon which = wxTreeItemIcon_Normal); -static int LUACALL wxLua_wxTreeCtrl_SetItemImage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxTreeItemIcon which = wxTreeItemIcon_Normal - wxTreeItemIcon which = (argCount >= 4 ? (wxTreeItemIcon)wxlua_getenumtype(L, 4) : wxTreeItemIcon_Normal); - // int image - int image = (int)wxlua_getnumbertype(L, 3); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemImage - self->SetItemImage(*item, image, which); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemState[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemState[1] = {{ wxLua_wxTreeCtrl_SetItemState, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemState }}; -// %wxchkver_2_9 void SetItemState(const wxTreeItemId& item, int state); -static int LUACALL wxLua_wxTreeCtrl_SetItemState(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 3); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemState - self->SetItemState(*item, state); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemText[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemText[1] = {{ wxLua_wxTreeCtrl_SetItemText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemText }}; -// void SetItemText(const wxTreeItemId& item, const wxString& text); -static int LUACALL wxLua_wxTreeCtrl_SetItemText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemText - self->SetItemText(*item, text); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemTextColour[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetItemTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetItemTextColour[1] = {{ wxLua_wxTreeCtrl_SetItemTextColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeCtrl_SetItemTextColour }}; -// void SetItemTextColour(const wxTreeItemId& item, const wxColour& col); -static int LUACALL wxLua_wxTreeCtrl_SetItemTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetItemTextColour - self->SetItemTextColour(*item, *col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetQuickBestSize[] = { &wxluatype_wxTreeCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetQuickBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetQuickBestSize[1] = {{ wxLua_wxTreeCtrl_SetQuickBestSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetQuickBestSize }}; -// void SetQuickBestSize(bool quickBestSize); -static int LUACALL wxLua_wxTreeCtrl_SetQuickBestSize(lua_State *L) -{ - // bool quickBestSize - bool quickBestSize = wxlua_getbooleantype(L, 2); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetQuickBestSize - self->SetQuickBestSize(quickBestSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetSpacing[] = { &wxluatype_wxTreeCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetSpacing[1] = {{ wxLua_wxTreeCtrl_SetSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetSpacing }}; -// void SetSpacing(unsigned int spacing); -static int LUACALL wxLua_wxTreeCtrl_SetSpacing(lua_State *L) -{ - // unsigned int spacing - unsigned int spacing = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetSpacing - self->SetSpacing(spacing); - - return 0; -} - - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetStateImageList[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetStateImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetStateImageList[1] = {{ wxLua_wxTreeCtrl_SetStateImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetStateImageList }}; -// void SetStateImageList(wxImageList* imageList); -static int LUACALL wxLua_wxTreeCtrl_SetStateImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetStateImageList - self->SetStateImageList(imageList); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SetWindowStyle[] = { &wxluatype_wxTreeCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SetWindowStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetWindowStyle[1] = {{ wxLua_wxTreeCtrl_SetWindowStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetWindowStyle }}; -// void SetWindowStyle(long styles); -static int LUACALL wxLua_wxTreeCtrl_SetWindowStyle(lua_State *L) -{ - // long styles - long styles = (long)wxlua_getnumbertype(L, 2); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SetWindowStyle - self->SetWindowStyle(styles); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_SortChildren[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_SortChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SortChildren[1] = {{ wxLua_wxTreeCtrl_SortChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SortChildren }}; -// void SortChildren(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_SortChildren(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call SortChildren - self->SortChildren(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_Toggle[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_Toggle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_Toggle[1] = {{ wxLua_wxTreeCtrl_Toggle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_Toggle }}; -// void Toggle(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_Toggle(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call Toggle - self->Toggle(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_ToggleItemSelection[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_ToggleItemSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_ToggleItemSelection[1] = {{ wxLua_wxTreeCtrl_ToggleItemSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_ToggleItemSelection }}; -// void ToggleItemSelection(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_ToggleItemSelection(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call ToggleItemSelection - self->ToggleItemSelection(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_Unselect[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_Unselect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_Unselect[1] = {{ wxLua_wxTreeCtrl_Unselect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_Unselect }}; -// void Unselect(); -static int LUACALL wxLua_wxTreeCtrl_Unselect(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call Unselect - self->Unselect(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_UnselectAll[] = { &wxluatype_wxTreeCtrl, NULL }; -static int LUACALL wxLua_wxTreeCtrl_UnselectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_UnselectAll[1] = {{ wxLua_wxTreeCtrl_UnselectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeCtrl_UnselectAll }}; -// void UnselectAll(); -static int LUACALL wxLua_wxTreeCtrl_UnselectAll(lua_State *L) -{ - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call UnselectAll - self->UnselectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_UnselectItem[] = { &wxluatype_wxTreeCtrl, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeCtrl_UnselectItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_UnselectItem[1] = {{ wxLua_wxTreeCtrl_UnselectItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_UnselectItem }}; -// void UnselectItem(const wxTreeItemId& item); -static int LUACALL wxLua_wxTreeCtrl_UnselectItem(lua_State *L) -{ - // const wxTreeItemId item - const wxTreeItemId * item = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeCtrl * self = (wxTreeCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeCtrl); - // call UnselectItem - self->UnselectItem(*item); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_constructor1[1] = {{ wxLua_wxTreeCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxTreeCtrl_constructor1 }}; -// wxTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTR_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxTreeCtrl"); -static int LUACALL wxLua_wxTreeCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTreeCtrl" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxTreeCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxTR_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxTR_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTreeCtrl* returns = new wxTreeCtrl(parent, id, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxTreeCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_constructor[1] = {{ wxLua_wxTreeCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreeCtrl(); -static int LUACALL wxLua_wxTreeCtrl_constructor(lua_State *L) -{ - // call constructor - wxTreeCtrl* returns = new wxTreeCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeCtrl); - - return 1; -} - - - - -#if (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_InsertItem_overload[] = -{ - { wxLua_wxTreeCtrl_InsertItem1, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxTreeCtrl_InsertItem1 }, - { wxLua_wxTreeCtrl_InsertItem, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxTreeCtrl_InsertItem }, -}; -static int s_wxluafunc_wxLua_wxTreeCtrl_InsertItem_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeCtrl_InsertItem_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_SetIndent_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { wxLua_wxTreeCtrl_SetIndent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetIndent1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { wxLua_wxTreeCtrl_SetIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeCtrl_SetIndent }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -}; -static int s_wxluafunc_wxLua_wxTreeCtrl_SetIndent_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeCtrl_SetIndent_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxTreeCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxTreeCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxTreeCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTreeCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -void wxLua_wxTreeCtrl_delete_function(void** p) -{ - wxTreeCtrl* o = (wxTreeCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeCtrl_methods[] = { - { "AddRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_AddRoot, 1, NULL }, - { "AppendItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_AppendItem, 1, NULL }, - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "AssignImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_AssignImageList, 1, NULL }, - { "AssignStateImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_AssignStateImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "ClearFocusedItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_ClearFocusedItem, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "Collapse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_Collapse, 1, NULL }, - { "CollapseAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_CollapseAll, 1, NULL }, - { "CollapseAllChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_CollapseAllChildren, 1, NULL }, - { "CollapseAndReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_CollapseAndReset, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_Delete, 1, NULL }, - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_DeleteAllItems, 1, NULL }, - { "DeleteChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_DeleteChildren, 1, NULL }, - -#if (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "EditLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_EditLabel, 1, NULL }, -#endif // (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "EnableBellOnNoMatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_EnableBellOnNoMatch, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "EndEditLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_EndEditLabel, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_EnsureVisible, 1, NULL }, - { "Expand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_Expand, 1, NULL }, - { "ExpandAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_ExpandAll, 1, NULL }, - { "ExpandAllChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_ExpandAllChildren, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetBoundingRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetBoundingRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetChildrenCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetChildrenCount, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetCount, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetEditControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetEditControl, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetFirstChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetFirstChild, 1, NULL }, - { "GetFirstVisibleItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetFirstVisibleItem, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetFocusedItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetFocusedItem, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetIndent, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetItemBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemData, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetItemFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetItemImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemImage, 1, NULL }, - -#if ((wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetItemParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemParent, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,4,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetItemState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemState, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetItemTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetItemTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetLastChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetLastChild, 1, NULL }, - { "GetNextChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetNextChild, 1, NULL }, - { "GetNextSibling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetNextSibling, 1, NULL }, - { "GetNextVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetNextVisible, 1, NULL }, - { "GetPrevSibling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetPrevSibling, 1, NULL }, - { "GetPrevVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetPrevVisible, 1, NULL }, - { "GetQuickBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetQuickBestSize, 1, NULL }, - { "GetRootItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetRootItem, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetSelection, 1, NULL }, - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetSelections, 1, NULL }, - { "GetSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetSpacing, 1, NULL }, - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetStateImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_GetStateImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_HitTest, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_InsertItem_overload, s_wxluafunc_wxLua_wxTreeCtrl_InsertItem_overload_count, 0 }, -#endif // (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "IsBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_IsBold, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_IsEmpty, 1, NULL }, - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_IsExpanded, 1, NULL }, - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_IsSelected, 1, NULL }, - { "IsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_IsVisible, 1, NULL }, - { "ItemHasChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_ItemHasChildren, 1, NULL }, - { "PrependItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_PrependItem, 1, NULL }, - { "ScrollTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_ScrollTo, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SelectChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SelectChildren, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "SelectItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SelectItem, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetFocusedItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetFocusedItem, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) - { "SetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetIndent_overload, s_wxluafunc_wxLua_wxTreeCtrl_SetIndent_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetItemBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "SetItemBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemBold, 1, NULL }, - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemData, 1, NULL }, - { "SetItemDropHighlight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemDropHighlight, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetItemFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "SetItemHasChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemHasChildren, 1, NULL }, - { "SetItemImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemImage, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetItemState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemState, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "SetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetItemTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetItemTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "SetQuickBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetQuickBestSize, 1, NULL }, - { "SetSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetSpacing, 1, NULL }, - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "SetStateImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetStateImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "SetWindowStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SetWindowStyle, 1, NULL }, - { "SortChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_SortChildren, 1, NULL }, - { "Toggle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_Toggle, 1, NULL }, - { "ToggleItemSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_ToggleItemSelection, 1, NULL }, - { "Unselect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_Unselect, 1, NULL }, - { "UnselectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_UnselectAll, 1, NULL }, - { "UnselectItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeCtrl_UnselectItem, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "wxTreeCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeCtrl_constructor_overload, s_wxluafunc_wxLua_wxTreeCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { 0, 0, 0, 0 }, -}; - -int wxTreeCtrl_methodCount = sizeof(wxTreeCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL -// --------------------------------------------------------------------------- -// Bind class wxTreeItemId -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeItemId' -int wxluatype_wxTreeItemId = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemId_GetValue[] = { &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeItemId_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_GetValue[1] = {{ wxLua_wxTreeItemId_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemId_GetValue }}; -// %override wxLua_wxTreeItemId_GetValue -// long GetValue() const; -static int LUACALL wxLua_wxTreeItemId_GetValue(lua_State *L) -{ - // get this - wxTreeItemId *self = (wxTreeItemId *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemId); - // call GetValue - wxUIntPtr returns = (wxUIntPtr)self->m_pItem; - // push the result number - lua_pushnumber(L, returns); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemId_IsOk[] = { &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeItemId_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_IsOk[1] = {{ wxLua_wxTreeItemId_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemId_IsOk }}; -// bool IsOk(); -static int LUACALL wxLua_wxTreeItemId_IsOk(lua_State *L) -{ - // get this - wxTreeItemId * self = (wxTreeItemId *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemId); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemId_delete[] = { &wxluatype_wxTreeItemId, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemId_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemId_op_eq[] = { &wxluatype_wxTreeItemId, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeItemId_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_op_eq[1] = {{ wxLua_wxTreeItemId_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeItemId_op_eq }}; -// bool operator==(const wxTreeItemId& otherId) const; -static int LUACALL wxLua_wxTreeItemId_op_eq(lua_State *L) -{ - // const wxTreeItemId otherId - const wxTreeItemId * otherId = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeItemId * self = (wxTreeItemId *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemId); - // call op_eq - bool returns = ((*self)==(*otherId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemId_op_set[] = { &wxluatype_wxTreeItemId, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeItemId_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_op_set[1] = {{ wxLua_wxTreeItemId_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeItemId_op_set }}; -// wxTreeItemId& operator=(const wxTreeItemId& otherId); -static int LUACALL wxLua_wxTreeItemId_op_set(lua_State *L) -{ - // const wxTreeItemId otherId - const wxTreeItemId * otherId = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeItemId * self = (wxTreeItemId *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemId); - // call op_set - (*self)=(*otherId); - wxTreeItemId* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemId_constructor1[] = { &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeItemId_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_constructor1[1] = {{ wxLua_wxTreeItemId_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemId_constructor1 }}; -// wxTreeItemId(const wxTreeItemId& id); -static int LUACALL wxLua_wxTreeItemId_constructor1(lua_State *L) -{ - // const wxTreeItemId id - const wxTreeItemId * id = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemId); - // call constructor - wxTreeItemId* returns = new wxTreeItemId(*id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static int LUACALL wxLua_wxTreeItemId_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_constructor[1] = {{ wxLua_wxTreeItemId_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreeItemId(); -static int LUACALL wxLua_wxTreeItemId_constructor(lua_State *L) -{ - // call constructor - wxTreeItemId* returns = new wxTreeItemId(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - - - - -#if (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemId_constructor_overload[] = -{ - { wxLua_wxTreeItemId_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemId_constructor1 }, - { wxLua_wxTreeItemId_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTreeItemId_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeItemId_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -void wxLua_wxTreeItemId_delete_function(void** p) -{ - wxTreeItemId* o = (wxTreeItemId*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeItemId_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeItemId_GetValue, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeItemId_IsOk, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTreeItemId_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeItemId_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeItemId_op_set, 1, NULL }, - -#if (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "wxTreeItemId", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeItemId_constructor_overload, s_wxluafunc_wxLua_wxTreeItemId_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { 0, 0, 0, 0 }, -}; - -int wxTreeItemId_methodCount = sizeof(wxTreeItemId_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL -// --------------------------------------------------------------------------- -// Bind class wxTreeItemData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeItemData' -int wxluatype_wxTreeItemData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemData_GetId[] = { &wxluatype_wxTreeItemData, NULL }; -static int LUACALL wxLua_wxTreeItemData_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemData_GetId[1] = {{ wxLua_wxTreeItemData_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemData_GetId }}; -// wxTreeItemId GetId(); -static int LUACALL wxLua_wxTreeItemData_GetId(lua_State *L) -{ - // get this - wxTreeItemData * self = (wxTreeItemData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemData); - // call GetId - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetId()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemData_SetId[] = { &wxluatype_wxTreeItemData, &wxluatype_wxTreeItemId, NULL }; -static int LUACALL wxLua_wxTreeItemData_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemData_SetId[1] = {{ wxLua_wxTreeItemData_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeItemData_SetId }}; -// void SetId(const wxTreeItemId& id); -static int LUACALL wxLua_wxTreeItemData_SetId(lua_State *L) -{ - // const wxTreeItemId id - const wxTreeItemId * id = (const wxTreeItemId *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeItemId); - // get this - wxTreeItemData * self = (wxTreeItemData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeItemData); - // call SetId - self->SetId(*id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeItemData_delete[] = { &wxluatype_wxTreeItemData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTreeItemData_delete }}; - -static int LUACALL wxLua_wxTreeItemData_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeItemData_constructor[1] = {{ wxLua_wxTreeItemData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreeItemData(); -static int LUACALL wxLua_wxTreeItemData_constructor(lua_State *L) -{ - // call constructor - wxTreeItemData* returns = new wxTreeItemData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemData); - - return 1; -} - - - - -void wxLua_wxTreeItemData_delete_function(void** p) -{ - wxTreeItemData* o = (wxTreeItemData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeItemData_methods[] = { - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeItemData_GetId, 1, NULL }, - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeItemData_SetId, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTreeItemData_delete, 1, NULL }, - { "wxTreeItemData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeItemData_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTreeItemData_methodCount = sizeof(wxTreeItemData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL -// --------------------------------------------------------------------------- -// Bind class wxLuaTreeItemData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaTreeItemData' -int wxluatype_wxLuaTreeItemData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTreeItemData_GetData[] = { &wxluatype_wxLuaTreeItemData, NULL }; -static int LUACALL wxLua_wxLuaTreeItemData_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTreeItemData_GetData[1] = {{ wxLua_wxLuaTreeItemData_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaTreeItemData_GetData }}; -// %override wxLua_wxLuaTreeItemData_GetData -// wxLuaObject* GetData() const; -static int LUACALL wxLua_wxLuaTreeItemData_GetData(lua_State *L) -{ - // get this - wxLuaTreeItemData * self = (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTreeItemData); - // call GetData - wxLuaObject* returns = (wxLuaObject*)self->GetData(); - // push the result datatype - if ((returns == NULL) || !returns->GetObject(L)) - lua_pushnil(L); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTreeItemData_SetData[] = { &wxluatype_wxLuaTreeItemData, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxLuaTreeItemData_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTreeItemData_SetData[1] = {{ wxLua_wxLuaTreeItemData_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLuaTreeItemData_SetData }}; -// %override wxLua_wxLuaTreeItemData_SetData -// void SetData(%ungc wxLuaObject* obj); // obj is deleted when tree item data is deleted -static int LUACALL wxLua_wxLuaTreeItemData_SetData(lua_State *L) -{ - // wxLuaObject obj - //wxLuaObject * obj = (wxLuaObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLuaObject); - //if (wxluaO_isgcobject(L, obj)) wxluaO_undeletegcobject(L, obj); - wxLuaObject* obj = new wxLuaObject(L, 2); - - // get this - wxLuaTreeItemData * self = (wxLuaTreeItemData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaTreeItemData); - // call SetData - self->SetData(obj); - - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTreeItemData_delete[] = { &wxluatype_wxLuaTreeItemData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTreeItemData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaTreeItemData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaTreeItemData_constructor1[] = { &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxLuaTreeItemData_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTreeItemData_constructor1[1] = {{ wxLua_wxLuaTreeItemData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaTreeItemData_constructor1 }}; -// %override wxLua_wxLuaTreeItemData_constructor1 -// wxLuaTreeItemData(%ungc wxLuaObject* obj) // obj is deleted when tree item data is deleted -static int LUACALL wxLua_wxLuaTreeItemData_constructor1(lua_State *L) -{ - // wxLuaObject obj - //wxLuaObject * obj = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - //if (wxluaO_isgcobject(L, obj)) wxluaO_undeletegcobject(L, obj); - wxLuaObject* obj = new wxLuaObject(L, 1); - - // call constructor - wxLuaTreeItemData* returns = new wxLuaTreeItemData(obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaTreeItemData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaTreeItemData); - - return 1; -} - - -static int LUACALL wxLua_wxLuaTreeItemData_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTreeItemData_constructor[1] = {{ wxLua_wxLuaTreeItemData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLuaTreeItemData(); -static int LUACALL wxLua_wxLuaTreeItemData_constructor(lua_State *L) -{ - // call constructor - wxLuaTreeItemData* returns = new wxLuaTreeItemData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaTreeItemData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaTreeItemData); - - return 1; -} - - - - -#if (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaTreeItemData_constructor_overload[] = -{ - { wxLua_wxLuaTreeItemData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaTreeItemData_constructor1 }, - { wxLua_wxLuaTreeItemData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxLuaTreeItemData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxLuaTreeItemData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -void wxLua_wxLuaTreeItemData_delete_function(void** p) -{ - wxLuaTreeItemData* o = (wxLuaTreeItemData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaTreeItemData_methods[] = { - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTreeItemData_GetData, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaTreeItemData_SetData, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaTreeItemData_delete, 1, NULL }, - -#if (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "wxLuaTreeItemData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaTreeItemData_constructor_overload, s_wxluafunc_wxLua_wxLuaTreeItemData_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { 0, 0, 0, 0 }, -}; - -int wxLuaTreeItemData_methodCount = sizeof(wxLuaTreeItemData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - - -#if wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL -// --------------------------------------------------------------------------- -// Bind class wxTreeEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeEvent' -int wxluatype_wxTreeEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_GetItem[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_GetItem[1] = {{ wxLua_wxTreeEvent_GetItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_GetItem }}; -// wxTreeItemId GetItem() const; -static int LUACALL wxLua_wxTreeEvent_GetItem(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call GetItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_GetKeyCode[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_GetKeyCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_GetKeyCode[1] = {{ wxLua_wxTreeEvent_GetKeyCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_GetKeyCode }}; -// int GetKeyCode() const; -static int LUACALL wxLua_wxTreeEvent_GetKeyCode(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call GetKeyCode - int returns = (self->GetKeyCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_GetKeyEvent[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_GetKeyEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_GetKeyEvent[1] = {{ wxLua_wxTreeEvent_GetKeyEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_GetKeyEvent }}; -// wxKeyEvent GetKeyEvent() const; -static int LUACALL wxLua_wxTreeEvent_GetKeyEvent(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call GetKeyEvent - // allocate a new object using the copy constructor - wxKeyEvent* returns = new wxKeyEvent(self->GetKeyEvent()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxKeyEvent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxKeyEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_GetLabel[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_GetLabel[1] = {{ wxLua_wxTreeEvent_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_GetLabel }}; -// const wxString& GetLabel() const; -static int LUACALL wxLua_wxTreeEvent_GetLabel(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_GetOldItem[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_GetOldItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_GetOldItem[1] = {{ wxLua_wxTreeEvent_GetOldItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_GetOldItem }}; -// wxTreeItemId GetOldItem() const; -static int LUACALL wxLua_wxTreeEvent_GetOldItem(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call GetOldItem - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetOldItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_GetPoint[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_GetPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_GetPoint[1] = {{ wxLua_wxTreeEvent_GetPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_GetPoint }}; -// wxPoint GetPoint() const; -static int LUACALL wxLua_wxTreeEvent_GetPoint(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call GetPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_IsEditCancelled[] = { &wxluatype_wxTreeEvent, NULL }; -static int LUACALL wxLua_wxTreeEvent_IsEditCancelled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_IsEditCancelled[1] = {{ wxLua_wxTreeEvent_IsEditCancelled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_IsEditCancelled }}; -// bool IsEditCancelled() const; -static int LUACALL wxLua_wxTreeEvent_IsEditCancelled(lua_State *L) -{ - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call IsEditCancelled - bool returns = (self->IsEditCancelled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_SetToolTip[] = { &wxluatype_wxTreeEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeEvent_SetToolTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_SetToolTip[1] = {{ wxLua_wxTreeEvent_SetToolTip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeEvent_SetToolTip }}; -// void SetToolTip(const wxString& tooltip); -static int LUACALL wxLua_wxTreeEvent_SetToolTip(lua_State *L) -{ - // const wxString tooltip - const wxString tooltip = wxlua_getwxStringtype(L, 2); - // get this - wxTreeEvent * self = (wxTreeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeEvent); - // call SetToolTip - self->SetToolTip(tooltip); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_delete[] = { &wxluatype_wxTreeEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTreeEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeEvent_constructor[1] = {{ wxLua_wxTreeEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxTreeEvent_constructor }}; -// wxTreeEvent(wxEventType commandType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxTreeEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxTreeEvent* returns = new wxTreeEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeEvent); - - return 1; -} - - - - -void wxLua_wxTreeEvent_delete_function(void** p) -{ - wxTreeEvent* o = (wxTreeEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeEvent_methods[] = { - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_GetItem, 1, NULL }, - { "GetKeyCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_GetKeyCode, 1, NULL }, - { "GetKeyEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_GetKeyEvent, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_GetLabel, 1, NULL }, - { "GetOldItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_GetOldItem, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_GetPoint, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "IsEditCancelled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_IsEditCancelled, 1, NULL }, - { "SetToolTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeEvent_SetToolTip, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTreeEvent_delete, 1, NULL }, - { "wxTreeEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTreeEvent_methodCount = sizeof(wxTreeEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL - - -#if wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG -// --------------------------------------------------------------------------- -// Bind class wxGenericDirCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGenericDirCtrl' -int wxluatype_wxGenericDirCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_CollapseTree[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_CollapseTree(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_CollapseTree[1] = {{ wxLua_wxGenericDirCtrl_CollapseTree, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_CollapseTree }}; -// void CollapseTree(); -static int LUACALL wxLua_wxGenericDirCtrl_CollapseTree(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call CollapseTree - self->CollapseTree(); - - return 0; -} - - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_Create[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_Create[1] = {{ wxLua_wxGenericDirCtrl_Create, WXLUAMETHOD_METHOD, 2, 10, s_wxluatypeArray_wxLua_wxGenericDirCtrl_Create }}; -// bool Create(wxWindow *parent, const wxWindowID id = wxID_ANY, const wxString &dir = wxDirDialogDefaultFolderStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, const wxString& filter = "", int defaultFilter = 0, const wxString& name = "wxGenericDirCtrl"); -static int LUACALL wxLua_wxGenericDirCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxGenericDirCtrl" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxGenericDirCtrl"))); - // int defaultFilter = 0 - int defaultFilter = (argCount >= 9 ? (int)wxlua_getnumbertype(L, 9) : 0); - // const wxString filter = "" - const wxString filter = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); - // long style = wxDIRCTRL_3D_INTERNAL | wxSUNKEN_BORDER - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDIRCTRL_3D_INTERNAL | wxSUNKEN_BORDER); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString dir = wxDirDialogDefaultFolderStr - const wxString dir = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxDirDialogDefaultFolderStr)); - // const wxWindowID id = wxID_ANY - const wxWindowID id = (argCount >= 3 ? (const wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call Create - bool returns = (self->Create(parent, id, dir, *pos, *size, style, filter, defaultFilter, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_ExpandPath[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_ExpandPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_ExpandPath[1] = {{ wxLua_wxGenericDirCtrl_ExpandPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGenericDirCtrl_ExpandPath }}; -// bool ExpandPath(const wxString& path); -static int LUACALL wxLua_wxGenericDirCtrl_ExpandPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call ExpandPath - bool returns = (self->ExpandPath(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetDefaultPath[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetDefaultPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetDefaultPath[1] = {{ wxLua_wxGenericDirCtrl_GetDefaultPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetDefaultPath }}; -// wxString GetDefaultPath() const; -static int LUACALL wxLua_wxGenericDirCtrl_GetDefaultPath(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetDefaultPath - wxString returns = (self->GetDefaultPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetFilePath[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetFilePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetFilePath[1] = {{ wxLua_wxGenericDirCtrl_GetFilePath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetFilePath }}; -// wxString GetFilePath() const; -static int LUACALL wxLua_wxGenericDirCtrl_GetFilePath(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetFilePath - wxString returns = (self->GetFilePath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetFilter[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetFilter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetFilter[1] = {{ wxLua_wxGenericDirCtrl_GetFilter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetFilter }}; -// wxString GetFilter() const; -static int LUACALL wxLua_wxGenericDirCtrl_GetFilter(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetFilter - wxString returns = (self->GetFilter()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetFilterIndex[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetFilterIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetFilterIndex[1] = {{ wxLua_wxGenericDirCtrl_GetFilterIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetFilterIndex }}; -// int GetFilterIndex() const; -static int LUACALL wxLua_wxGenericDirCtrl_GetFilterIndex(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetFilterIndex - int returns = (self->GetFilterIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetPath[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetPath[1] = {{ wxLua_wxGenericDirCtrl_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxGenericDirCtrl_GetPath(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetRootId[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetRootId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetRootId[1] = {{ wxLua_wxGenericDirCtrl_GetRootId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetRootId }}; -// wxTreeItemId GetRootId(); -static int LUACALL wxLua_wxGenericDirCtrl_GetRootId(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetRootId - // allocate a new object using the copy constructor - wxTreeItemId* returns = new wxTreeItemId(self->GetRootId()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeItemId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeItemId); - - return 1; -} - -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetShowHidden[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetShowHidden(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetShowHidden[1] = {{ wxLua_wxGenericDirCtrl_GetShowHidden, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetShowHidden }}; -// bool GetShowHidden(); -static int LUACALL wxLua_wxGenericDirCtrl_GetShowHidden(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetShowHidden - bool returns = (self->GetShowHidden()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetTreeCtrl[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_GetTreeCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_GetTreeCtrl[1] = {{ wxLua_wxGenericDirCtrl_GetTreeCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_GetTreeCtrl }}; -// wxTreeCtrl* GetTreeCtrl() const; -static int LUACALL wxLua_wxGenericDirCtrl_GetTreeCtrl(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call GetTreeCtrl - wxTreeCtrl* returns = (wxTreeCtrl*)self->GetTreeCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_ReCreateTree[] = { &wxluatype_wxGenericDirCtrl, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_ReCreateTree(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_ReCreateTree[1] = {{ wxLua_wxGenericDirCtrl_ReCreateTree, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGenericDirCtrl_ReCreateTree }}; -// void ReCreateTree(); -static int LUACALL wxLua_wxGenericDirCtrl_ReCreateTree(lua_State *L) -{ - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call ReCreateTree - self->ReCreateTree(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetDefaultPath[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_SetDefaultPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_SetDefaultPath[1] = {{ wxLua_wxGenericDirCtrl_SetDefaultPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetDefaultPath }}; -// void SetDefaultPath(const wxString& path); -static int LUACALL wxLua_wxGenericDirCtrl_SetDefaultPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call SetDefaultPath - self->SetDefaultPath(path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetFilter[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_SetFilter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_SetFilter[1] = {{ wxLua_wxGenericDirCtrl_SetFilter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetFilter }}; -// void SetFilter(const wxString& filter); -static int LUACALL wxLua_wxGenericDirCtrl_SetFilter(lua_State *L) -{ - // const wxString filter - const wxString filter = wxlua_getwxStringtype(L, 2); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call SetFilter - self->SetFilter(filter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetFilterIndex[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_SetFilterIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_SetFilterIndex[1] = {{ wxLua_wxGenericDirCtrl_SetFilterIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetFilterIndex }}; -// void SetFilterIndex(int n); -static int LUACALL wxLua_wxGenericDirCtrl_SetFilterIndex(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call SetFilterIndex - self->SetFilterIndex(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetPath[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_SetPath[1] = {{ wxLua_wxGenericDirCtrl_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGenericDirCtrl_SetPath }}; -// void SetPath(const wxString& path); -static int LUACALL wxLua_wxGenericDirCtrl_SetPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call SetPath - self->SetPath(path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_ShowHidden[] = { &wxluatype_wxGenericDirCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_ShowHidden(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_ShowHidden[1] = {{ wxLua_wxGenericDirCtrl_ShowHidden, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGenericDirCtrl_ShowHidden }}; -// void ShowHidden(bool show); -static int LUACALL wxLua_wxGenericDirCtrl_ShowHidden(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxGenericDirCtrl * self = (wxGenericDirCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGenericDirCtrl); - // call ShowHidden - self->ShowHidden(show); - - return 0; -} - - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericDirCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGenericDirCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_constructor1[1] = {{ wxLua_wxGenericDirCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 9, s_wxluatypeArray_wxLua_wxGenericDirCtrl_constructor1 }}; -// wxGenericDirCtrl(wxWindow *parent, const wxWindowID id = wxID_ANY, const wxString &dir = wxDirDialogDefaultFolderStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER, const wxString& filter = "", int defaultFilter = 0, const wxString& name = "wxGenericDirCtrl"); -static int LUACALL wxLua_wxGenericDirCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxGenericDirCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxGenericDirCtrl"))); - // int defaultFilter = 0 - int defaultFilter = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // const wxString filter = "" - const wxString filter = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // long style = wxDIRCTRL_3D_INTERNAL | wxSUNKEN_BORDER - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDIRCTRL_3D_INTERNAL | wxSUNKEN_BORDER); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString dir = wxDirDialogDefaultFolderStr - const wxString dir = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxDirDialogDefaultFolderStr)); - // const wxWindowID id = wxID_ANY - const wxWindowID id = (argCount >= 2 ? (const wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGenericDirCtrl* returns = new wxGenericDirCtrl(parent, id, dir, *pos, *size, style, filter, defaultFilter, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericDirCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxGenericDirCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_constructor[1] = {{ wxLua_wxGenericDirCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGenericDirCtrl(); -static int LUACALL wxLua_wxGenericDirCtrl_constructor(lua_State *L) -{ - // call constructor - wxGenericDirCtrl* returns = new wxGenericDirCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericDirCtrl); - - return 1; -} - - - - -#if ((wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericDirCtrl_constructor_overload[] = -{ - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGenericDirCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 9, s_wxluatypeArray_wxLua_wxGenericDirCtrl_constructor1 }, -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGenericDirCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGenericDirCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGenericDirCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) - -void wxLua_wxGenericDirCtrl_delete_function(void** p) -{ - wxGenericDirCtrl* o = (wxGenericDirCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGenericDirCtrl_methods[] = { - { "CollapseTree", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_CollapseTree, 1, NULL }, - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_Create, 1, NULL }, -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - - { "ExpandPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_ExpandPath, 1, NULL }, - { "GetDefaultPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetDefaultPath, 1, NULL }, - { "GetFilePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetFilePath, 1, NULL }, - { "GetFilter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetFilter, 1, NULL }, - { "GetFilterIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetFilterIndex, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetPath, 1, NULL }, - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetRootId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetRootId, 1, NULL }, -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "GetShowHidden", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetShowHidden, 1, NULL }, - -#if (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetTreeCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_GetTreeCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "ReCreateTree", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_ReCreateTree, 1, NULL }, - { "SetDefaultPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_SetDefaultPath, 1, NULL }, - { "SetFilter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_SetFilter, 1, NULL }, - { "SetFilterIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_SetFilterIndex, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_SetPath, 1, NULL }, - { "ShowHidden", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGenericDirCtrl_ShowHidden, 1, NULL }, - -#if ((wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) - { "wxGenericDirCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGenericDirCtrl_constructor_overload, s_wxluafunc_wxLua_wxGenericDirCtrl_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG) - - { 0, 0, 0, 0 }, -}; - -int wxGenericDirCtrl_methodCount = sizeof(wxGenericDirCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGenericDirCtrl && wxUSE_DIRDLG - - -#if wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) -// --------------------------------------------------------------------------- -// Bind class wxInfoBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxInfoBar' -int wxluatype_wxInfoBar = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInfoBar_AddButton[] = { &wxluatype_wxInfoBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxInfoBar_AddButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_AddButton[1] = {{ wxLua_wxInfoBar_AddButton, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxInfoBar_AddButton }}; -// void AddButton(wxWindowID btnid, const wxString &label = wxEmptyString); -static int LUACALL wxLua_wxInfoBar_AddButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString label = wxEmptyString - const wxString label = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID btnid - wxWindowID btnid = (wxWindowID)wxlua_getnumbertype(L, 2); - // get this - wxInfoBar * self = (wxInfoBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInfoBar); - // call AddButton - self->AddButton(btnid, label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInfoBar_Create[] = { &wxluatype_wxInfoBar, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxInfoBar_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_Create[1] = {{ wxLua_wxInfoBar_Create, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxInfoBar_Create }}; -// bool Create(wxWindow *parent, wxWindowID id); -static int LUACALL wxLua_wxInfoBar_Create(lua_State *L) -{ - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxInfoBar * self = (wxInfoBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInfoBar); - // call Create - bool returns = (self->Create(parent, id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInfoBar_Dismiss[] = { &wxluatype_wxInfoBar, NULL }; -static int LUACALL wxLua_wxInfoBar_Dismiss(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_Dismiss[1] = {{ wxLua_wxInfoBar_Dismiss, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxInfoBar_Dismiss }}; -// void Dismiss(); -static int LUACALL wxLua_wxInfoBar_Dismiss(lua_State *L) -{ - // get this - wxInfoBar * self = (wxInfoBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInfoBar); - // call Dismiss - self->Dismiss(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInfoBar_RemoveButton[] = { &wxluatype_wxInfoBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxInfoBar_RemoveButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_RemoveButton[1] = {{ wxLua_wxInfoBar_RemoveButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxInfoBar_RemoveButton }}; -// void RemoveButton(wxWindowID btnid); -static int LUACALL wxLua_wxInfoBar_RemoveButton(lua_State *L) -{ - // wxWindowID btnid - wxWindowID btnid = (wxWindowID)wxlua_getnumbertype(L, 2); - // get this - wxInfoBar * self = (wxInfoBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInfoBar); - // call RemoveButton - self->RemoveButton(btnid); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInfoBar_ShowMessage[] = { &wxluatype_wxInfoBar, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxInfoBar_ShowMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_ShowMessage[1] = {{ wxLua_wxInfoBar_ShowMessage, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxInfoBar_ShowMessage }}; -// void ShowMessage(const wxString &msg, int flags = wxICON_INFORMATION); -static int LUACALL wxLua_wxInfoBar_ShowMessage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxICON_INFORMATION - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxICON_INFORMATION); - // const wxString msg - const wxString msg = wxlua_getwxStringtype(L, 2); - // get this - wxInfoBar * self = (wxInfoBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInfoBar); - // call ShowMessage - self->ShowMessage(msg, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInfoBar_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxInfoBar_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_constructor1[1] = {{ wxLua_wxInfoBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxInfoBar_constructor1 }}; -// wxInfoBar(wxWindow *parent, wxWindowID id); -static int LUACALL wxLua_wxInfoBar_constructor1(lua_State *L) -{ - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxInfoBar* returns = new wxInfoBar(parent, id); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInfoBar); - - return 1; -} - -static int LUACALL wxLua_wxInfoBar_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_constructor[1] = {{ wxLua_wxInfoBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxInfoBar(); -static int LUACALL wxLua_wxInfoBar_constructor(lua_State *L) -{ - // call constructor - wxInfoBar* returns = new wxInfoBar(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInfoBar); - - return 1; -} - - - - -#if (wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInfoBar_constructor_overload[] = -{ - { wxLua_wxInfoBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxInfoBar_constructor1 }, - { wxLua_wxInfoBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxInfoBar_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxInfoBar_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1)) - -void wxLua_wxInfoBar_delete_function(void** p) -{ - wxInfoBar* o = (wxInfoBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxInfoBar_methods[] = { - { "AddButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInfoBar_AddButton, 1, NULL }, - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInfoBar_Create, 1, NULL }, - { "Dismiss", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInfoBar_Dismiss, 1, NULL }, - { "RemoveButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInfoBar_RemoveButton, 1, NULL }, - { "ShowMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxInfoBar_ShowMessage, 1, NULL }, - -#if (wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1)) - { "wxInfoBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxInfoBar_constructor_overload, s_wxluafunc_wxLua_wxInfoBar_constructor_overload_count, 0 }, -#endif // (wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1)) - - { 0, 0, 0, 0 }, -}; - -int wxInfoBar_methodCount = sizeof(wxInfoBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_INFOBAR && wxCHECK_VERSION(2,9,1) - - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) -// --------------------------------------------------------------------------- -// Bind class wxTreeListItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeListItem' -int wxluatype_wxTreeListItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListItem_GetValue[] = { &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListItem_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListItem_GetValue[1] = {{ wxLua_wxTreeListItem_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListItem_GetValue }}; -// %override wxLua_wxTreeListItem_GetValue -// wxUIntPtr GetValue() const; -static int LUACALL wxLua_wxTreeListItem_GetValue(lua_State *L) -{ - // get this - wxTreeListItem *self = (wxTreeListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListItem); - // call GetValue - wxUIntPtr returns = (wxUIntPtr)self->m_pItem; - // push the result number - lua_pushnumber(L, returns); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListItem_IsOk[] = { &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListItem_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListItem_IsOk[1] = {{ wxLua_wxTreeListItem_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListItem_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxTreeListItem_IsOk(lua_State *L) -{ - // get this - wxTreeListItem * self = (wxTreeListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListItem); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListItem_delete[] = { &wxluatype_wxTreeListItem, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListItem_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTreeListItem_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListItem_constructor1[] = { &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListItem_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListItem_constructor1[1] = {{ wxLua_wxTreeListItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTreeListItem_constructor1 }}; -// wxTreeListItem(const wxTreeListItem& id); -static int LUACALL wxLua_wxTreeListItem_constructor1(lua_State *L) -{ - // const wxTreeListItem id - const wxTreeListItem * id = (const wxTreeListItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListItem); - // call constructor - wxTreeListItem* returns = new wxTreeListItem(*id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static int LUACALL wxLua_wxTreeListItem_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListItem_constructor[1] = {{ wxLua_wxTreeListItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreeListItem(); -static int LUACALL wxLua_wxTreeListItem_constructor(lua_State *L) -{ - // call constructor - wxTreeListItem* returns = new wxTreeListItem(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - - - - -#if (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListItem_constructor_overload[] = -{ - { wxLua_wxTreeListItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTreeListItem_constructor1 }, - { wxLua_wxTreeListItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTreeListItem_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeListItem_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -void wxLua_wxTreeListItem_delete_function(void** p) -{ - wxTreeListItem* o = (wxTreeListItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeListItem_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListItem_GetValue, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListItem_IsOk, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTreeListItem_delete, 1, NULL }, - -#if (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "wxTreeListItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeListItem_constructor_overload, s_wxluafunc_wxLua_wxTreeListItem_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { 0, 0, 0, 0 }, -}; - -int wxTreeListItem_methodCount = sizeof(wxTreeListItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) -// --------------------------------------------------------------------------- -// Bind class wxTreeListCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeListCtrl' -int wxluatype_wxTreeListCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_AppendColumn[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_AppendColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_AppendColumn[1] = {{ wxLua_wxTreeListCtrl_AppendColumn, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxTreeListCtrl_AppendColumn }}; -// int flags = wxCOL_RESIZABLE); -static int LUACALL wxLua_wxTreeListCtrl_AppendColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxCOL_RESIZABLE - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxCOL_RESIZABLE); - // wxAlignment align = wxALIGN_LEFT - wxAlignment align = (argCount >= 4 ? (wxAlignment)wxlua_getenumtype(L, 4) : wxALIGN_LEFT); - // int width = wxCOL_WIDTH_AUTOSIZE - int width = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxCOL_WIDTH_AUTOSIZE); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call AppendColumn - int returns = (self->AppendColumn(title, width, align, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_AppendItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_AppendItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_AppendItem[1] = {{ wxLua_wxTreeListCtrl_AppendItem, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxTreeListCtrl_AppendItem }}; -// wxClientData* data = NULL); -static int LUACALL wxLua_wxTreeListCtrl_AppendItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 6 ? (wxClientData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxClientData) : NULL); - // int imageOpened = wxTreeListCtrl::NO_IMAGE - int imageOpened = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTreeListCtrl::NO_IMAGE); - // int imageClosed = wxTreeListCtrl::NO_IMAGE - int imageClosed = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxTreeListCtrl::NO_IMAGE); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxTreeListItem parent - wxTreeListItem parent = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call AppendItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->AppendItem(parent, text, imageClosed, imageOpened, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_AreAllChildrenInState[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_AreAllChildrenInState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_AreAllChildrenInState[1] = {{ wxLua_wxTreeListCtrl_AreAllChildrenInState, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_AreAllChildrenInState }}; -// wxCheckBoxState state) const; -static int LUACALL wxLua_wxTreeListCtrl_AreAllChildrenInState(lua_State *L) -{ - // wxCheckBoxState state - wxCheckBoxState state = (wxCheckBoxState)wxlua_getenumtype(L, 3); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call AreAllChildrenInState - bool returns = (self->AreAllChildrenInState(item, state)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_AssignImageList[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_AssignImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_AssignImageList[1] = {{ wxLua_wxTreeListCtrl_AssignImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_AssignImageList }}; -// void AssignImageList(wxImageList* imageList); -static int LUACALL wxLua_wxTreeListCtrl_AssignImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call AssignImageList - self->AssignImageList(imageList); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_CheckItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_CheckItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_CheckItem[1] = {{ wxLua_wxTreeListCtrl_CheckItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_CheckItem }}; -// void CheckItem(wxTreeListItem item, wxCheckBoxState state = wxCHK_CHECKED); -static int LUACALL wxLua_wxTreeListCtrl_CheckItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCheckBoxState state = wxCHK_CHECKED - wxCheckBoxState state = (argCount >= 3 ? (wxCheckBoxState)wxlua_getenumtype(L, 3) : wxCHK_CHECKED); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call CheckItem - self->CheckItem(item, state); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_CheckItemRecursively[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_CheckItemRecursively(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_CheckItemRecursively[1] = {{ wxLua_wxTreeListCtrl_CheckItemRecursively, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_CheckItemRecursively }}; -// wxCheckBoxState state = wxCHK_CHECKED); -static int LUACALL wxLua_wxTreeListCtrl_CheckItemRecursively(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCheckBoxState state = wxCHK_CHECKED - wxCheckBoxState state = (argCount >= 3 ? (wxCheckBoxState)wxlua_getenumtype(L, 3) : wxCHK_CHECKED); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call CheckItemRecursively - self->CheckItemRecursively(item, state); - - return 0; -} - -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_ClearColumns[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_ClearColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_ClearColumns[1] = {{ wxLua_wxTreeListCtrl_ClearColumns, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_ClearColumns }}; -// void ClearColumns(); -static int LUACALL wxLua_wxTreeListCtrl_ClearColumns(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call ClearColumns - self->ClearColumns(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_Collapse[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_Collapse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_Collapse[1] = {{ wxLua_wxTreeListCtrl_Collapse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_Collapse }}; -// void Collapse(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_Collapse(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call Collapse - self->Collapse(item); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_Create[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_Create[1] = {{ wxLua_wxTreeListCtrl_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxTreeListCtrl_Create }}; -// const wxString& name = wxTreeListCtrlNameStr); -static int LUACALL wxLua_wxTreeListCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxTreeListCtrlNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxTreeListCtrlNameStr)); - // long style = wxTL_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxTL_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_DeleteAllItems[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_DeleteAllItems[1] = {{ wxLua_wxTreeListCtrl_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_DeleteAllItems }}; -// void DeleteAllItems(); -static int LUACALL wxLua_wxTreeListCtrl_DeleteAllItems(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call DeleteAllItems - self->DeleteAllItems(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_DeleteColumn[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_DeleteColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_DeleteColumn[1] = {{ wxLua_wxTreeListCtrl_DeleteColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_DeleteColumn }}; -// bool DeleteColumn(unsigned int col); -static int LUACALL wxLua_wxTreeListCtrl_DeleteColumn(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call DeleteColumn - bool returns = (self->DeleteColumn(col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_DeleteItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_DeleteItem[1] = {{ wxLua_wxTreeListCtrl_DeleteItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_DeleteItem }}; -// void DeleteItem(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_DeleteItem(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call DeleteItem - self->DeleteItem(item); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_EnsureVisible[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_EnsureVisible[1] = {{ wxLua_wxTreeListCtrl_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_EnsureVisible }}; -// %wxchkver_3_1_0 void EnsureVisible(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_EnsureVisible(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call EnsureVisible - self->EnsureVisible(item); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_Expand[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_Expand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_Expand[1] = {{ wxLua_wxTreeListCtrl_Expand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_Expand }}; -// void Expand(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_Expand(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call Expand - self->Expand(item); - - return 0; -} - - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetCheckedState[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetCheckedState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetCheckedState[1] = {{ wxLua_wxTreeListCtrl_GetCheckedState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetCheckedState }}; -// wxCheckBoxState GetCheckedState(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_GetCheckedState(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetCheckedState - wxCheckBoxState returns = (self->GetCheckedState(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetColumnCount[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetColumnCount[1] = {{ wxLua_wxTreeListCtrl_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetColumnCount }}; -// unsigned int GetColumnCount() const; -static int LUACALL wxLua_wxTreeListCtrl_GetColumnCount(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetColumnWidth[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetColumnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetColumnWidth[1] = {{ wxLua_wxTreeListCtrl_GetColumnWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetColumnWidth }}; -// int GetColumnWidth(unsigned int col) const; -static int LUACALL wxLua_wxTreeListCtrl_GetColumnWidth(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetColumnWidth - int returns = (self->GetColumnWidth(col)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetFirstChild[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetFirstChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetFirstChild[1] = {{ wxLua_wxTreeListCtrl_GetFirstChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetFirstChild }}; -// wxTreeListItem GetFirstChild(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_GetFirstChild(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetFirstChild - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetFirstChild(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetFirstItem[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetFirstItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetFirstItem[1] = {{ wxLua_wxTreeListCtrl_GetFirstItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetFirstItem }}; -// wxTreeListItem GetFirstItem() const; -static int LUACALL wxLua_wxTreeListCtrl_GetFirstItem(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetFirstItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetFirstItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetItemData[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetItemData[1] = {{ wxLua_wxTreeListCtrl_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetItemData }}; -// wxClientData* GetItemData(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_GetItemData(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetItemData - wxClientData* returns = (wxClientData*)self->GetItemData(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetItemParent[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetItemParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetItemParent[1] = {{ wxLua_wxTreeListCtrl_GetItemParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetItemParent }}; -// wxTreeListItem GetItemParent(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_GetItemParent(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetItemParent - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetItemParent(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetItemText[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetItemText[1] = {{ wxLua_wxTreeListCtrl_GetItemText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetItemText }}; -// const wxString& GetItemText(wxTreeListItem item, unsigned int col = 0) const; -static int LUACALL wxLua_wxTreeListCtrl_GetItemText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int col = 0 - unsigned int col = (argCount >= 3 ? (unsigned int)wxlua_getuintegertype(L, 3) : 0); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetItemText - wxString returns = (self->GetItemText(item, col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetNextItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetNextItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetNextItem[1] = {{ wxLua_wxTreeListCtrl_GetNextItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetNextItem }}; -// wxTreeListItem GetNextItem(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_GetNextItem(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetNextItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetNextItem(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetNextSibling[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetNextSibling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetNextSibling[1] = {{ wxLua_wxTreeListCtrl_GetNextSibling, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetNextSibling }}; -// wxTreeListItem GetNextSibling(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_GetNextSibling(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetNextSibling - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetNextSibling(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetRootItem[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetRootItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetRootItem[1] = {{ wxLua_wxTreeListCtrl_GetRootItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetRootItem }}; -// wxTreeListItem GetRootItem() const; -static int LUACALL wxLua_wxTreeListCtrl_GetRootItem(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetRootItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetRootItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetSelection[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetSelection[1] = {{ wxLua_wxTreeListCtrl_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetSelection }}; -// wxTreeListItem GetSelection() const; -static int LUACALL wxLua_wxTreeListCtrl_GetSelection(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetSelection - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetSelection()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetSelections[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetSelections[1] = {{ wxLua_wxTreeListCtrl_GetSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetSelections }}; -// %override wxLua_wxTreeListCtrl_GetSelections -// unsigned int GetSelections(wxTreeListItems& selections) const; -static int LUACALL wxLua_wxTreeListCtrl_GetSelections(lua_State *L) -{ - // get this - wxTreeListCtrl *self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetSelections - wxVector selection; - size_t count = self->GetSelections(selection); - - lua_newtable(L); - - size_t idx; - for (idx = 0; idx < count; ++idx) - { - wxTreeListItem* treeId = new wxTreeListItem(selection[idx]); - wxluaO_addgcobject(L, treeId, wxluatype_wxTreeListItem); - wxluaT_pushuserdatatype(L, treeId, wxluatype_wxTreeListItem); - lua_rawseti(L, -2, idx + 1); - } - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetSortColumn[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetSortColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetSortColumn[1] = {{ wxLua_wxTreeListCtrl_GetSortColumn, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetSortColumn }}; -// bool GetSortColumn(unsigned int* col, bool* ascendingOrder = NULL); -static int LUACALL wxLua_wxTreeListCtrl_GetSortColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool ascendingOrder = NULL - bool * ascendingOrder = (argCount >= 3 ? (bool *)wxlua_touserdata(L, 3) : NULL); - // unsigned int col - unsigned int * col = (unsigned int *)wxlua_touserdata(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetSortColumn - bool returns = (self->GetSortColumn(col, ascendingOrder)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_GetView[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_GetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_GetView[1] = {{ wxLua_wxTreeListCtrl_GetView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_GetView }}; -// wxWindow* GetView() const; -static int LUACALL wxLua_wxTreeListCtrl_GetView(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call GetView - wxWindow* returns = (wxWindow*)self->GetView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_InsertItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_wxTreeListItem, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_InsertItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_InsertItem[1] = {{ wxLua_wxTreeListCtrl_InsertItem, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxTreeListCtrl_InsertItem }}; -// wxClientData* data = NULL); -static int LUACALL wxLua_wxTreeListCtrl_InsertItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 7 ? (wxClientData *)wxluaT_getuserdatatype(L, 7, wxluatype_wxClientData) : NULL); - // int imageOpened = wxTreeListCtrl::NO_IMAGE - int imageOpened = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxTreeListCtrl::NO_IMAGE); - // int imageClosed = wxTreeListCtrl::NO_IMAGE - int imageClosed = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTreeListCtrl::NO_IMAGE); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxTreeListItem previous - wxTreeListItem previous = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 3, wxluatype_wxTreeListItem); - // wxTreeListItem parent - wxTreeListItem parent = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call InsertItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->InsertItem(parent, previous, text, imageClosed, imageOpened, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_IsExpanded[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_IsExpanded[1] = {{ wxLua_wxTreeListCtrl_IsExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_IsExpanded }}; -// bool IsExpanded(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_IsExpanded(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call IsExpanded - bool returns = (self->IsExpanded(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_IsSelected[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_IsSelected[1] = {{ wxLua_wxTreeListCtrl_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_IsSelected }}; -// bool IsSelected(wxTreeListItem item) const; -static int LUACALL wxLua_wxTreeListCtrl_IsSelected(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call IsSelected - bool returns = (self->IsSelected(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_PrependItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_PrependItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_PrependItem[1] = {{ wxLua_wxTreeListCtrl_PrependItem, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxTreeListCtrl_PrependItem }}; -// wxClientData* data = NULL); -static int LUACALL wxLua_wxTreeListCtrl_PrependItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxClientData data = NULL - wxClientData * data = (argCount >= 6 ? (wxClientData *)wxluaT_getuserdatatype(L, 6, wxluatype_wxClientData) : NULL); - // int imageOpened = wxTreeListCtrl::NO_IMAGE - int imageOpened = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTreeListCtrl::NO_IMAGE); - // int imageClosed = wxTreeListCtrl::NO_IMAGE - int imageClosed = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxTreeListCtrl::NO_IMAGE); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxTreeListItem parent - wxTreeListItem parent = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call PrependItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->PrependItem(parent, text, imageClosed, imageOpened, data)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_Select[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_Select(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_Select[1] = {{ wxLua_wxTreeListCtrl_Select, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_Select }}; -// void Select(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_Select(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call Select - self->Select(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SelectAll[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SelectAll[1] = {{ wxLua_wxTreeListCtrl_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_SelectAll }}; -// void SelectAll(); -static int LUACALL wxLua_wxTreeListCtrl_SelectAll(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SelectAll - self->SelectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetColumnWidth[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetColumnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetColumnWidth[1] = {{ wxLua_wxTreeListCtrl_SetColumnWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetColumnWidth }}; -// void SetColumnWidth(unsigned int col, int width); -static int LUACALL wxLua_wxTreeListCtrl_SetColumnWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetColumnWidth - self->SetColumnWidth(col, width); - - return 0; -} - - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetImageList[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetImageList[1] = {{ wxLua_wxTreeListCtrl_SetImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetImageList }}; -// void SetImageList(wxImageList* imageList); -static int LUACALL wxLua_wxTreeListCtrl_SetImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetImageList - self->SetImageList(imageList); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemData[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetItemData[1] = {{ wxLua_wxTreeListCtrl_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemData }}; -// void SetItemData(wxTreeListItem item, wxClientData* data); -static int LUACALL wxLua_wxTreeListCtrl_SetItemData(lua_State *L) -{ - // wxClientData data - wxClientData * data = (wxClientData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxClientData); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetItemData - self->SetItemData(item, data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemImage[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetItemImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetItemImage[1] = {{ wxLua_wxTreeListCtrl_SetItemImage, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemImage }}; -// void SetItemImage(wxTreeListItem item, int closed, int opened = wxTreeListCtrl::NO_IMAGE); -static int LUACALL wxLua_wxTreeListCtrl_SetItemImage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int opened = wxTreeListCtrl::NO_IMAGE - int opened = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxTreeListCtrl::NO_IMAGE); - // int closed - int closed = (int)wxlua_getnumbertype(L, 3); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetItemImage - self->SetItemImage(item, closed, opened); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemText1[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetItemText1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText1[1] = {{ wxLua_wxTreeListCtrl_SetItemText1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemText1 }}; -// void SetItemText(wxTreeListItem item, const wxString& text); -static int LUACALL wxLua_wxTreeListCtrl_SetItemText1(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetItemText - self->SetItemText(item, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemText[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetItemText(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText[1] = {{ wxLua_wxTreeListCtrl_SetItemText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemText }}; -// void SetItemText(wxTreeListItem item, unsigned int col, const wxString& text); -static int LUACALL wxLua_wxTreeListCtrl_SetItemText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 3); - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetItemText - self->SetItemText(item, col, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_SetSortColumn[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_SetSortColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetSortColumn[1] = {{ wxLua_wxTreeListCtrl_SetSortColumn, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetSortColumn }}; -// void SetSortColumn(unsigned int col, bool ascendingOrder = true); -static int LUACALL wxLua_wxTreeListCtrl_SetSortColumn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool ascendingOrder = true - bool ascendingOrder = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call SetSortColumn - self->SetSortColumn(col, ascendingOrder); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_UncheckItem[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_UncheckItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_UncheckItem[1] = {{ wxLua_wxTreeListCtrl_UncheckItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_UncheckItem }}; -// void UncheckItem(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_UncheckItem(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call UncheckItem - self->UncheckItem(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_Unselect[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_Unselect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_Unselect[1] = {{ wxLua_wxTreeListCtrl_Unselect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_Unselect }}; -// void Unselect(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_Unselect(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call Unselect - self->Unselect(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_UnselectAll[] = { &wxluatype_wxTreeListCtrl, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_UnselectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_UnselectAll[1] = {{ wxLua_wxTreeListCtrl_UnselectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListCtrl_UnselectAll }}; -// void UnselectAll(); -static int LUACALL wxLua_wxTreeListCtrl_UnselectAll(lua_State *L) -{ - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call UnselectAll - self->UnselectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively[] = { &wxluatype_wxTreeListCtrl, &wxluatype_wxTreeListItem, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively[1] = {{ wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively }}; -// void UpdateItemParentStateRecursively(wxTreeListItem item); -static int LUACALL wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively(lua_State *L) -{ - // wxTreeListItem item - wxTreeListItem item = *(wxTreeListItem*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTreeListItem); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call UpdateItemParentStateRecursively - self->UpdateItemParentStateRecursively(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_WidthFor[] = { &wxluatype_wxTreeListCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_WidthFor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_WidthFor[1] = {{ wxLua_wxTreeListCtrl_WidthFor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreeListCtrl_WidthFor }}; -// int WidthFor(const wxString& text) const; -static int LUACALL wxLua_wxTreeListCtrl_WidthFor(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxTreeListCtrl * self = (wxTreeListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListCtrl); - // call WidthFor - int returns = (self->WidthFor(text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreeListCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_constructor1[1] = {{ wxLua_wxTreeListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxTreeListCtrl_constructor1 }}; -// const wxString& name = wxTreeListCtrlNameStr); -static int LUACALL wxLua_wxTreeListCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxTreeListCtrlNameStr - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxTreeListCtrlNameStr)); - // long style = wxTL_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxTL_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTreeListCtrl* returns = new wxTreeListCtrl(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static int LUACALL wxLua_wxTreeListCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_constructor[1] = {{ wxLua_wxTreeListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreeListCtrl(); -static int LUACALL wxLua_wxTreeListCtrl_constructor(lua_State *L) -{ - // call constructor - wxTreeListCtrl* returns = new wxTreeListCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListCtrl); - - return 1; -} - - - - -#if (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText_overload[] = -{ - { wxLua_wxTreeListCtrl_SetItemText1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemText1 }, - { wxLua_wxTreeListCtrl_SetItemText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTreeListCtrl_SetItemText }, -}; -static int s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)))||(wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListCtrl_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { wxLua_wxTreeListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxTreeListCtrl_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { wxLua_wxTreeListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTreeListCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTreeListCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)))||(wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -void wxLua_wxTreeListCtrl_delete_function(void** p) -{ - wxTreeListCtrl* o = (wxTreeListCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeListCtrl_methods[] = { - { "AppendColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_AppendColumn, 1, NULL }, - { "AppendItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_AppendItem, 1, NULL }, - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "AreAllChildrenInState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_AreAllChildrenInState, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "AssignImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_AssignImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "CheckItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_CheckItem, 1, NULL }, - { "CheckItemRecursively", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_CheckItemRecursively, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "ClearColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_ClearColumns, 1, NULL }, - { "Collapse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_Collapse, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_DeleteAllItems, 1, NULL }, - { "DeleteColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_DeleteColumn, 1, NULL }, - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_DeleteItem, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_EnsureVisible, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "Expand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_Expand, 1, NULL }, - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "GetCheckedState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetCheckedState, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetColumnCount, 1, NULL }, - { "GetColumnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetColumnWidth, 1, NULL }, - { "GetFirstChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetFirstChild, 1, NULL }, - { "GetFirstItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetFirstItem, 1, NULL }, - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetItemData, 1, NULL }, - { "GetItemParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetItemParent, 1, NULL }, - { "GetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetItemText, 1, NULL }, - { "GetNextItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetNextItem, 1, NULL }, - { "GetNextSibling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetNextSibling, 1, NULL }, - { "GetRootItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetRootItem, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetSelection, 1, NULL }, - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetSelections, 1, NULL }, - { "GetSortColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetSortColumn, 1, NULL }, - { "GetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_GetView, 1, NULL }, - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_InsertItem, 1, NULL }, - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_IsExpanded, 1, NULL }, - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_IsSelected, 1, NULL }, - { "PrependItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_PrependItem, 1, NULL }, - { "Select", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_Select, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SelectAll, 1, NULL }, - { "SetColumnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SetColumnWidth, 1, NULL }, - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "SetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SetItemData, 1, NULL }, - { "SetItemImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SetItemImage, 1, NULL }, - -#if (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "SetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText_overload, s_wxluafunc_wxLua_wxTreeListCtrl_SetItemText_overload_count, 0 }, -#endif // (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "SetSortColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_SetSortColumn, 1, NULL }, - { "UncheckItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_UncheckItem, 1, NULL }, - { "Unselect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_Unselect, 1, NULL }, - { "UnselectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_UnselectAll, 1, NULL }, - { "UpdateItemParentStateRecursively", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_UpdateItemParentStateRecursively, 1, NULL }, - { "WidthFor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListCtrl_WidthFor, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)))||(wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "wxTreeListCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeListCtrl_constructor_overload, s_wxluafunc_wxLua_wxTreeListCtrl_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)))||(wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { 0, 0, 0, 0 }, -}; - -int wxTreeListCtrl_methodCount = sizeof(wxTreeListCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - - -#if wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) -// --------------------------------------------------------------------------- -// Bind class wxTreeListEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreeListEvent' -int wxluatype_wxTreeListEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListEvent_GetColumn[] = { &wxluatype_wxTreeListEvent, NULL }; -static int LUACALL wxLua_wxTreeListEvent_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListEvent_GetColumn[1] = {{ wxLua_wxTreeListEvent_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListEvent_GetColumn }}; -// unsigned int GetColumn() const; -static int LUACALL wxLua_wxTreeListEvent_GetColumn(lua_State *L) -{ - // get this - wxTreeListEvent * self = (wxTreeListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListEvent); - // call GetColumn - unsigned int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListEvent_GetItem[] = { &wxluatype_wxTreeListEvent, NULL }; -static int LUACALL wxLua_wxTreeListEvent_GetItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListEvent_GetItem[1] = {{ wxLua_wxTreeListEvent_GetItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListEvent_GetItem }}; -// wxTreeListItem GetItem() const; -static int LUACALL wxLua_wxTreeListEvent_GetItem(lua_State *L) -{ - // get this - wxTreeListEvent * self = (wxTreeListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListEvent); - // call GetItem - // allocate a new object using the copy constructor - wxTreeListItem* returns = new wxTreeListItem(self->GetItem()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListItem); - - return 1; -} - - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListEvent_GetOldCheckedState[] = { &wxluatype_wxTreeListEvent, NULL }; -static int LUACALL wxLua_wxTreeListEvent_GetOldCheckedState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListEvent_GetOldCheckedState[1] = {{ wxLua_wxTreeListEvent_GetOldCheckedState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreeListEvent_GetOldCheckedState }}; -// wxCheckBoxState GetOldCheckedState() const; -static int LUACALL wxLua_wxTreeListEvent_GetOldCheckedState(lua_State *L) -{ - // get this - wxTreeListEvent * self = (wxTreeListEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreeListEvent); - // call GetOldCheckedState - wxCheckBoxState returns = (self->GetOldCheckedState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreeListEvent_delete[] = { &wxluatype_wxTreeListEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTreeListEvent_delete }}; - -static int LUACALL wxLua_wxTreeListEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreeListEvent_constructor[1] = {{ wxLua_wxTreeListEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreeListEvent(); -static int LUACALL wxLua_wxTreeListEvent_constructor(lua_State *L) -{ - // call constructor - wxTreeListEvent* returns = new wxTreeListEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreeListEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeListEvent); - - return 1; -} - - - - -void wxLua_wxTreeListEvent_delete_function(void** p) -{ - wxTreeListEvent* o = (wxTreeListEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreeListEvent_methods[] = { - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListEvent_GetColumn, 1, NULL }, - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListEvent_GetItem, 1, NULL }, - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - { "GetOldCheckedState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreeListEvent_GetOldCheckedState, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTreeListEvent_delete, 1, NULL }, - { "wxTreeListEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreeListEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTreeListEvent_methodCount = sizeof(wxTreeListEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTreeListCtrl && wxUSE_TREELISTCTRL && wxCHECK_VERSION(2,9,3) - - -#if wxUSE_SEARCHCTRL -// --------------------------------------------------------------------------- -// Bind class wxSearchCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSearchCtrl' -int wxluatype_wxSearchCtrl = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_Create[] = { &wxluatype_wxSearchCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSearchCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_Create[1] = {{ wxLua_wxSearchCtrl_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxSearchCtrl_Create }}; -// const wxString& name = wxSearchCtrlNameStr); -static int LUACALL wxLua_wxSearchCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxSearchCtrlNameStr - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxSearchCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_GetDescriptiveText[] = { &wxluatype_wxSearchCtrl, NULL }; -static int LUACALL wxLua_wxSearchCtrl_GetDescriptiveText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_GetDescriptiveText[1] = {{ wxLua_wxSearchCtrl_GetDescriptiveText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSearchCtrl_GetDescriptiveText }}; -// wxString GetDescriptiveText() const; -static int LUACALL wxLua_wxSearchCtrl_GetDescriptiveText(lua_State *L) -{ - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call GetDescriptiveText - wxString returns = (self->GetDescriptiveText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_GetMenu[] = { &wxluatype_wxSearchCtrl, NULL }; -static int LUACALL wxLua_wxSearchCtrl_GetMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_GetMenu[1] = {{ wxLua_wxSearchCtrl_GetMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSearchCtrl_GetMenu }}; -// virtual wxMenu* GetMenu(); -static int LUACALL wxLua_wxSearchCtrl_GetMenu(lua_State *L) -{ - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call GetMenu - wxMenu* returns = (wxMenu*)self->GetMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_GetValue[] = { &wxluatype_wxSearchCtrl, NULL }; -static int LUACALL wxLua_wxSearchCtrl_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_GetValue[1] = {{ wxLua_wxSearchCtrl_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSearchCtrl_GetValue }}; -// wxString GetValue() const; -static int LUACALL wxLua_wxSearchCtrl_GetValue(lua_State *L) -{ - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_IsCancelButtonVisible[] = { &wxluatype_wxSearchCtrl, NULL }; -static int LUACALL wxLua_wxSearchCtrl_IsCancelButtonVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_IsCancelButtonVisible[1] = {{ wxLua_wxSearchCtrl_IsCancelButtonVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSearchCtrl_IsCancelButtonVisible }}; -// virtual bool IsCancelButtonVisible() const; -static int LUACALL wxLua_wxSearchCtrl_IsCancelButtonVisible(lua_State *L) -{ - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call IsCancelButtonVisible - bool returns = (self->IsCancelButtonVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_IsSearchButtonVisible[] = { &wxluatype_wxSearchCtrl, NULL }; -static int LUACALL wxLua_wxSearchCtrl_IsSearchButtonVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_IsSearchButtonVisible[1] = {{ wxLua_wxSearchCtrl_IsSearchButtonVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSearchCtrl_IsSearchButtonVisible }}; -// virtual bool IsSearchButtonVisible() const; -static int LUACALL wxLua_wxSearchCtrl_IsSearchButtonVisible(lua_State *L) -{ - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call IsSearchButtonVisible - bool returns = (self->IsSearchButtonVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_SetDescriptiveText[] = { &wxluatype_wxSearchCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSearchCtrl_SetDescriptiveText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_SetDescriptiveText[1] = {{ wxLua_wxSearchCtrl_SetDescriptiveText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSearchCtrl_SetDescriptiveText }}; -// void SetDescriptiveText(const wxString& text); -static int LUACALL wxLua_wxSearchCtrl_SetDescriptiveText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call SetDescriptiveText - self->SetDescriptiveText(text); - - return 0; -} - - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_SetMenu[] = { &wxluatype_wxSearchCtrl, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxSearchCtrl_SetMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_SetMenu[1] = {{ wxLua_wxSearchCtrl_SetMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSearchCtrl_SetMenu }}; -// virtual void SetMenu(%ungc wxMenu* menu); -static int LUACALL wxLua_wxSearchCtrl_SetMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - if (wxluaO_isgcobject(L, menu)) wxluaO_undeletegcobject(L, menu); - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call SetMenu - self->SetMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_SetValue[] = { &wxluatype_wxSearchCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSearchCtrl_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_SetValue[1] = {{ wxLua_wxSearchCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSearchCtrl_SetValue }}; -// virtual void SetValue(const wxString& value); -static int LUACALL wxLua_wxSearchCtrl_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_ShowCancelButton[] = { &wxluatype_wxSearchCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSearchCtrl_ShowCancelButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_ShowCancelButton[1] = {{ wxLua_wxSearchCtrl_ShowCancelButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSearchCtrl_ShowCancelButton }}; -// virtual void ShowCancelButton(bool show); -static int LUACALL wxLua_wxSearchCtrl_ShowCancelButton(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call ShowCancelButton - self->ShowCancelButton(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_ShowSearchButton[] = { &wxluatype_wxSearchCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSearchCtrl_ShowSearchButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_ShowSearchButton[1] = {{ wxLua_wxSearchCtrl_ShowSearchButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSearchCtrl_ShowSearchButton }}; -// virtual void ShowSearchButton(bool show); -static int LUACALL wxLua_wxSearchCtrl_ShowSearchButton(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxSearchCtrl * self = (wxSearchCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSearchCtrl); - // call ShowSearchButton - self->ShowSearchButton(show); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSearchCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSearchCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_constructor1[1] = {{ wxLua_wxSearchCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxSearchCtrl_constructor1 }}; -// const wxString& name = wxSearchCtrlNameStr); -static int LUACALL wxLua_wxSearchCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxSearchCtrlNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxSearchCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSearchCtrl* returns = new wxSearchCtrl(parent, id, value, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSearchCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) - -static int LUACALL wxLua_wxSearchCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_constructor[1] = {{ wxLua_wxSearchCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSearchCtrl(); -static int LUACALL wxLua_wxSearchCtrl_constructor(lua_State *L) -{ - // call constructor - wxSearchCtrl* returns = new wxSearchCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSearchCtrl); - - return 1; -} - - - - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL))||(wxUSE_SEARCHCTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSearchCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) - { wxLua_wxSearchCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxSearchCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) - { wxLua_wxSearchCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSearchCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSearchCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL))||(wxUSE_SEARCHCTRL) - -void wxLua_wxSearchCtrl_delete_function(void** p) -{ - wxSearchCtrl* o = (wxSearchCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSearchCtrl_methods[] = { -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL) - - { "GetDescriptiveText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_GetDescriptiveText, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) - { "GetMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_GetMenu, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) - - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_GetValue, 1, NULL }, - { "IsCancelButtonVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_IsCancelButtonVisible, 1, NULL }, - { "IsSearchButtonVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_IsSearchButtonVisible, 1, NULL }, - { "SetDescriptiveText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_SetDescriptiveText, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) - { "SetMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_SetMenu, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_SEARCHCTRL) - - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_SetValue, 1, NULL }, - { "ShowCancelButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_ShowCancelButton, 1, NULL }, - { "ShowSearchButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSearchCtrl_ShowSearchButton, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL))||(wxUSE_SEARCHCTRL) - { "wxSearchCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSearchCtrl_constructor_overload, s_wxluafunc_wxLua_wxSearchCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxUSE_SEARCHCTRL))||(wxUSE_SEARCHCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxSearchCtrl_methodCount = sizeof(wxSearchCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_SEARCHCTRL - diff --git a/wxLua/modules/wxbind/src/wxcore_core.cpp b/wxLua/modules/wxbind/src/wxcore_core.cpp deleted file mode 100644 index 4b3f5323..00000000 --- a/wxLua/modules/wxbind/src/wxcore_core.cpp +++ /dev/null @@ -1,1133 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_core.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) -// --------------------------------------------------------------------------- -// Bind class wxLogGui -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogGui' -int wxluatype_wxLogGui = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogGui_delete[] = { &wxluatype_wxLogGui, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogGui_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogGui_delete }}; - -static int LUACALL wxLua_wxLogGui_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogGui_constructor[1] = {{ wxLua_wxLogGui_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLogGui(); -static int LUACALL wxLua_wxLogGui_constructor(lua_State *L) -{ - // call constructor - wxLogGui* returns = new wxLogGui(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogGui); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogGui); - - return 1; -} - - - - -void wxLua_wxLogGui_delete_function(void** p) -{ - wxLogGui* o = (wxLogGui*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogGui_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogGui_delete, 1, NULL }, - { "wxLogGui", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogGui_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLogGui_methodCount = sizeof(wxLogGui_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxUSE_LOGGUI) - - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -// --------------------------------------------------------------------------- -// Bind class wxLogTextCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogTextCtrl' -int wxluatype_wxLogTextCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogTextCtrl_delete[] = { &wxluatype_wxLogTextCtrl, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogTextCtrl_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogTextCtrl_delete }}; - - -#if ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogTextCtrl_constructor[] = { &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxLogTextCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogTextCtrl_constructor[1] = {{ wxLua_wxLogTextCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLogTextCtrl_constructor }}; -// wxLogTextCtrl(wxTextCtrl* textCtrl); -static int LUACALL wxLua_wxLogTextCtrl_constructor(lua_State *L) -{ - // wxTextCtrl textCtrl - wxTextCtrl * textCtrl = (wxTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextCtrl); - // call constructor - wxLogTextCtrl* returns = new wxLogTextCtrl(textCtrl); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogTextCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogTextCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - - -void wxLua_wxLogTextCtrl_delete_function(void** p) -{ - wxLogTextCtrl* o = (wxLogTextCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogTextCtrl_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogTextCtrl_delete, 1, NULL }, - -#if ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxLogTextCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogTextCtrl_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { 0, 0, 0, 0 }, -}; - -int wxLogTextCtrl_methodCount = sizeof(wxLogTextCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - -#if (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) -// --------------------------------------------------------------------------- -// Bind class wxLogWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLogWindow' -int wxluatype_wxLogWindow = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogWindow_GetFrame[] = { &wxluatype_wxLogWindow, NULL }; -static int LUACALL wxLua_wxLogWindow_GetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogWindow_GetFrame[1] = {{ wxLua_wxLogWindow_GetFrame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLogWindow_GetFrame }}; -// wxFrame* GetFrame() const; -static int LUACALL wxLua_wxLogWindow_GetFrame(lua_State *L) -{ - // get this - wxLogWindow * self = (wxLogWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogWindow); - // call GetFrame - wxFrame* returns = (wxFrame*)self->GetFrame(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - - return 1; -} - -#endif // ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW)) && (wxLUA_USE_wxFrame) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogWindow_Show[] = { &wxluatype_wxLogWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLogWindow_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogWindow_Show[1] = {{ wxLua_wxLogWindow_Show, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxLogWindow_Show }}; -// void Show(bool show = true); -static int LUACALL wxLua_wxLogWindow_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxLogWindow * self = (wxLogWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLogWindow); - // call Show - self->Show(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogWindow_delete[] = { &wxluatype_wxLogWindow, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogWindow_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLogWindow_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLogWindow_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLogWindow_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLogWindow_constructor[1] = {{ wxLua_wxLogWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxLogWindow_constructor }}; -// wxLogWindow(wxWindow *pParent, const wxString& szTitle, bool bShow = true, bool bPassToOld = true); -static int LUACALL wxLua_wxLogWindow_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bPassToOld = true - bool bPassToOld = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // bool bShow = true - bool bShow = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString szTitle - const wxString szTitle = wxlua_getwxStringtype(L, 2); - // wxWindow pParent - wxWindow * pParent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxLogWindow* returns = new wxLogWindow(pParent, szTitle, bShow, bPassToOld); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLogWindow); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLogWindow); - - return 1; -} - - - - -void wxLua_wxLogWindow_delete_function(void** p) -{ - wxLogWindow* o = (wxLogWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLogWindow_methods[] = { -#if ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW)) && (wxLUA_USE_wxFrame) - { "GetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogWindow_GetFrame, 1, NULL }, -#endif // ((wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW)) && (wxLUA_USE_wxFrame) - - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLogWindow_Show, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLogWindow_delete, 1, NULL }, - { "wxLogWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLogWindow_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLogWindow_methodCount = sizeof(wxLogWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLog && wxUSE_LOG) && (wxLUA_USE_wxLogWindow && wxUSE_LOGWINDOW) - - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) -// --------------------------------------------------------------------------- -// Bind class wxSystemAppearance -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSystemAppearance' -int wxluatype_wxSystemAppearance = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemAppearance_GetName[] = { &wxluatype_wxSystemAppearance, NULL }; -static int LUACALL wxLua_wxSystemAppearance_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemAppearance_GetName[1] = {{ wxLua_wxSystemAppearance_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSystemAppearance_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxSystemAppearance_GetName(lua_State *L) -{ - // get this - wxSystemAppearance * self = (wxSystemAppearance *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemAppearance); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemAppearance_IsDark[] = { &wxluatype_wxSystemAppearance, NULL }; -static int LUACALL wxLua_wxSystemAppearance_IsDark(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemAppearance_IsDark[1] = {{ wxLua_wxSystemAppearance_IsDark, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSystemAppearance_IsDark }}; -// bool IsDark() const; -static int LUACALL wxLua_wxSystemAppearance_IsDark(lua_State *L) -{ - // get this - wxSystemAppearance * self = (wxSystemAppearance *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemAppearance); - // call IsDark - bool returns = (self->IsDark()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemAppearance_IsUsingDarkBackground[] = { &wxluatype_wxSystemAppearance, NULL }; -static int LUACALL wxLua_wxSystemAppearance_IsUsingDarkBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemAppearance_IsUsingDarkBackground[1] = {{ wxLua_wxSystemAppearance_IsUsingDarkBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSystemAppearance_IsUsingDarkBackground }}; -// bool IsUsingDarkBackground() const; -static int LUACALL wxLua_wxSystemAppearance_IsUsingDarkBackground(lua_State *L) -{ - // get this - wxSystemAppearance * self = (wxSystemAppearance *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemAppearance); - // call IsUsingDarkBackground - bool returns = (self->IsUsingDarkBackground()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxSystemAppearance_delete_function(void** p) -{ - wxSystemAppearance* o = (wxSystemAppearance*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSystemAppearance_methods[] = { - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemAppearance_GetName, 1, NULL }, - { "IsDark", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemAppearance_IsDark, 1, NULL }, - { "IsUsingDarkBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemAppearance_IsUsingDarkBackground, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSystemAppearance_methodCount = sizeof(wxSystemAppearance_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - - -#if wxLUA_USE_wxSystemSettings -// --------------------------------------------------------------------------- -// Bind class wxSystemSettings -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSystemSettings' -int wxluatype_wxSystemSettings = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) -static int LUACALL wxLua_wxSystemSettings_GetAppearance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_GetAppearance[1] = {{ wxLua_wxSystemSettings_GetAppearance, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_1_3 static wxSystemAppearance GetAppearance(); -static int LUACALL wxLua_wxSystemSettings_GetAppearance(lua_State *L) -{ - // call GetAppearance - // allocate a new object using the copy constructor - wxSystemAppearance* returns = new wxSystemAppearance(wxSystemSettings::GetAppearance()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSystemAppearance); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSystemAppearance); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxSystemSettings) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemSettings_GetColour[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSystemSettings_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_GetColour[1] = {{ wxLua_wxSystemSettings_GetColour, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemSettings_GetColour }}; -// static wxColour GetColour(wxSystemColour index); -static int LUACALL wxLua_wxSystemSettings_GetColour(lua_State *L) -{ - // wxSystemColour index - wxSystemColour index = (wxSystemColour)wxlua_getenumtype(L, 1); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(wxSystemSettings::GetColour(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxSystemSettings) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxSystemSettings) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemSettings_GetFont[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSystemSettings_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_GetFont[1] = {{ wxLua_wxSystemSettings_GetFont, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemSettings_GetFont }}; -// static wxFont GetFont(wxSystemFont index); -static int LUACALL wxLua_wxSystemSettings_GetFont(lua_State *L) -{ - // wxSystemFont index - wxSystemFont index = (wxSystemFont)wxlua_getenumtype(L, 1); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(wxSystemSettings::GetFont(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxSystemSettings) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemSettings_GetMetric[] = { &wxluatype_TINTEGER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSystemSettings_GetMetric(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_GetMetric[1] = {{ wxLua_wxSystemSettings_GetMetric, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxSystemSettings_GetMetric }}; -// static int GetMetric(wxSystemMetric index, wxWindow* win = NULL); -static int LUACALL wxLua_wxSystemSettings_GetMetric(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow win = NULL - wxWindow * win = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // wxSystemMetric index - wxSystemMetric index = (wxSystemMetric)wxlua_getenumtype(L, 1); - // call GetMetric - int returns = (wxSystemSettings::GetMetric(index, win)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxSystemSettings_GetScreenType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_GetScreenType[1] = {{ wxLua_wxSystemSettings_GetScreenType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxSystemScreenType GetScreenType(); -static int LUACALL wxLua_wxSystemSettings_GetScreenType(lua_State *L) -{ - // call GetScreenType - wxSystemScreenType returns = (wxSystemSettings::GetScreenType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemSettings_HasFeature[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSystemSettings_HasFeature(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_HasFeature[1] = {{ wxLua_wxSystemSettings_HasFeature, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemSettings_HasFeature }}; -// static bool HasFeature(wxSystemFeature index); -static int LUACALL wxLua_wxSystemSettings_HasFeature(lua_State *L) -{ - // wxSystemFeature index - wxSystemFeature index = (wxSystemFeature)wxlua_getenumtype(L, 1); - // call HasFeature - bool returns = (wxSystemSettings::HasFeature(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemSettings_SetScreenType[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSystemSettings_SetScreenType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemSettings_SetScreenType[1] = {{ wxLua_wxSystemSettings_SetScreenType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSystemSettings_SetScreenType }}; -// static void SetScreenType(wxSystemScreenType screen); -static int LUACALL wxLua_wxSystemSettings_SetScreenType(lua_State *L) -{ - // wxSystemScreenType screen - wxSystemScreenType screen = (wxSystemScreenType)wxlua_getenumtype(L, 1); - // call SetScreenType - wxSystemSettings::SetScreenType(screen); - - return 0; -} - - - - -void wxLua_wxSystemSettings_delete_function(void** p) -{ - wxSystemSettings* o = (wxSystemSettings*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSystemSettings_methods[] = { -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - { "GetAppearance", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_GetAppearance, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxSystemSettings) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxSystemSettings) - { "GetColour", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxSystemSettings) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxSystemSettings) - { "GetFont", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxSystemSettings) - - { "GetMetric", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_GetMetric, 1, NULL }, - { "GetScreenType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_GetScreenType, 1, NULL }, - { "HasFeature", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_HasFeature, 1, NULL }, - { "SetScreenType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSystemSettings_SetScreenType, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSystemSettings_methodCount = sizeof(wxSystemSettings_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSystemSettings - - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS -// --------------------------------------------------------------------------- -// Bind class wxValidator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxValidator' -int wxluatype_wxValidator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxValidator_GetWindow[] = { &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxValidator_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_GetWindow[1] = {{ wxLua_wxValidator_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxValidator_GetWindow }}; -// wxWindow* GetWindow() const; -static int LUACALL wxLua_wxValidator_GetWindow(lua_State *L) -{ - // get this - wxValidator * self = (wxValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxValidator); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static int LUACALL wxLua_wxValidator_IsSilent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_IsSilent[1] = {{ wxLua_wxValidator_IsSilent, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool IsSilent(); -static int LUACALL wxLua_wxValidator_IsSilent(lua_State *L) -{ - // call IsSilent - bool returns = (wxValidator::IsSilent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxValidator_SetBellOnError[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxValidator_SetBellOnError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_SetBellOnError[1] = {{ wxLua_wxValidator_SetBellOnError, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxValidator_SetBellOnError }}; -// !%wxchkver_2_9 || %wxcompat_2_8 static void SetBellOnError(bool doIt = true); -static int LUACALL wxLua_wxValidator_SetBellOnError(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool doIt = true - bool doIt = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : true); - // call SetBellOnError - wxValidator::SetBellOnError(doIt); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxValidator_SetWindow[] = { &wxluatype_wxValidator, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxValidator_SetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_SetWindow[1] = {{ wxLua_wxValidator_SetWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxValidator_SetWindow }}; -// void SetWindow(wxWindow* window); -static int LUACALL wxLua_wxValidator_SetWindow(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxValidator * self = (wxValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxValidator); - // call SetWindow - self->SetWindow(window); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxValidator_TransferFromWindow[] = { &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxValidator_TransferFromWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_TransferFromWindow[1] = {{ wxLua_wxValidator_TransferFromWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxValidator_TransferFromWindow }}; -// virtual bool TransferFromWindow(); -static int LUACALL wxLua_wxValidator_TransferFromWindow(lua_State *L) -{ - // get this - wxValidator * self = (wxValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxValidator); - // call TransferFromWindow - bool returns = (self->TransferFromWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxValidator_TransferToWindow[] = { &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxValidator_TransferToWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_TransferToWindow[1] = {{ wxLua_wxValidator_TransferToWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxValidator_TransferToWindow }}; -// virtual bool TransferToWindow(); -static int LUACALL wxLua_wxValidator_TransferToWindow(lua_State *L) -{ - // get this - wxValidator * self = (wxValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxValidator); - // call TransferToWindow - bool returns = (self->TransferToWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxValidator_Validate[] = { &wxluatype_wxValidator, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxValidator_Validate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxValidator_Validate[1] = {{ wxLua_wxValidator_Validate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxValidator_Validate }}; -// virtual bool Validate(wxWindow* parent); -static int LUACALL wxLua_wxValidator_Validate(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxValidator * self = (wxValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxValidator); - // call Validate - bool returns = (self->Validate(parent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxValidator_delete_function(void** p) -{ - wxValidator* o = (wxValidator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxValidator_methods[] = { - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxValidator_GetWindow, 1, NULL }, - { "IsSilent", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxValidator_IsSilent, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "SetBellOnError", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxValidator_SetBellOnError, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "SetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxValidator_SetWindow, 1, NULL }, - { "TransferFromWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxValidator_TransferFromWindow, 1, NULL }, - { "TransferToWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxValidator_TransferToWindow, 1, NULL }, - { "Validate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxValidator_Validate, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxValidator_methodCount = sizeof(wxValidator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - - -#if (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -// --------------------------------------------------------------------------- -// Bind class wxTextValidator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextValidator' -int wxluatype_wxTextValidator = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_GetExcludes[] = { &wxluatype_wxTextValidator, NULL }; -static int LUACALL wxLua_wxTextValidator_GetExcludes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetExcludes[1] = {{ wxLua_wxTextValidator_GetExcludes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextValidator_GetExcludes }}; -// %wxchkver_2_6 wxArrayString& GetExcludes(); -static int LUACALL wxLua_wxTextValidator_GetExcludes(lua_State *L) -{ - // get this - wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); - // call GetExcludes - wxArrayString* returns = (wxArrayString*)&self->GetExcludes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_GetIncludes[] = { &wxluatype_wxTextValidator, NULL }; -static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetIncludes[1] = {{ wxLua_wxTextValidator_GetIncludes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextValidator_GetIncludes }}; -// %wxchkver_2_6 wxArrayString& GetIncludes(); -static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L) -{ - // get this - wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); - // call GetIncludes - wxArrayString* returns = (wxArrayString*)&self->GetIncludes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_GetStyle[] = { &wxluatype_wxTextValidator, NULL }; -static int LUACALL wxLua_wxTextValidator_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetStyle[1] = {{ wxLua_wxTextValidator_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextValidator_GetStyle }}; -// long GetStyle() const; -static int LUACALL wxLua_wxTextValidator_GetStyle(lua_State *L) -{ - // get this - wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); - // call GetStyle - long returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_SetExcludes[] = { &wxluatype_wxTextValidator, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxTextValidator_SetExcludes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetExcludes[1] = {{ wxLua_wxTextValidator_SetExcludes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextValidator_SetExcludes }}; -// %wxchkver_2_6 void SetExcludes(const wxArrayString& excludes); -static int LUACALL wxLua_wxTextValidator_SetExcludes(lua_State *L) -{ - // const wxArrayString excludes - wxLuaSmartwxArrayString excludes = wxlua_getwxArrayString(L, 2); - // get this - wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); - // call SetExcludes - self->SetExcludes(excludes); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_SetIncludes[] = { &wxluatype_wxTextValidator, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxTextValidator_SetIncludes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetIncludes[1] = {{ wxLua_wxTextValidator_SetIncludes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextValidator_SetIncludes }}; -// %wxchkver_2_6 void SetIncludes(const wxArrayString& includes); -static int LUACALL wxLua_wxTextValidator_SetIncludes(lua_State *L) -{ - // const wxArrayString includes - wxLuaSmartwxArrayString includes = wxlua_getwxArrayString(L, 2); - // get this - wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); - // call SetIncludes - self->SetIncludes(includes); - - return 0; -} - -#endif // (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_SetStyle[] = { &wxluatype_wxTextValidator, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextValidator_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetStyle[1] = {{ wxLua_wxTextValidator_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextValidator_SetStyle }}; -// void SetStyle(long style); -static int LUACALL wxLua_wxTextValidator_SetStyle(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextValidator * self = (wxTextValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextValidator); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_delete[] = { &wxluatype_wxTextValidator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextValidator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextValidator_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxTextValidator_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_constructor[1] = {{ wxLua_wxTextValidator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxTextValidator_constructor }}; -// %override wxLua_wxTextValidator_constructor -// wxTextValidator(long style = wxFILTER_NONE, wxString *valPtr = NULL) -static int LUACALL wxLua_wxTextValidator_constructor(lua_State *L) -{ - wxTextValidator *returns; - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxFILTER_NONE - long style = (argCount >= 1 ? (long)wxlua_getintegertype(L, 1) : wxFILTER_NONE); - - // call constructor - if (argCount >= 2) - { - wxLuaObject *valPtr = (wxLuaObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLuaObject); - returns = new wxTextValidator(style, valPtr->GetStringPtr(L)); - } - else - returns = new wxTextValidator(style); - - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextValidator); - // return the number of parameters - return 1; -} - - - - - -void wxLua_wxTextValidator_delete_function(void** p) -{ - wxTextValidator* o = (wxTextValidator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextValidator_methods[] = { -#if (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) - { "GetExcludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetExcludes, 1, NULL }, - { "GetIncludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetIncludes, 1, NULL }, -#endif // (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) - - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetStyle, 1, NULL }, - -#if (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) - { "SetExcludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetExcludes, 1, NULL }, - { "SetIncludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetIncludes, 1, NULL }, -#endif // (((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) && (wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxArrayString) - - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetStyle, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextValidator_delete, 1, NULL }, - { "wxTextValidator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextValidator_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextValidator_methodCount = sizeof(wxTextValidator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - -#if (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -// --------------------------------------------------------------------------- -// Bind class wxGenericValidator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGenericValidator' -int wxluatype_wxGenericValidator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericValidator_delete[] = { &wxluatype_wxGenericValidator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericValidator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGenericValidator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericValidatorArrayInt_constructor[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxGenericValidatorArrayInt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericValidatorArrayInt_constructor[1] = {{ wxLua_wxGenericValidatorArrayInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGenericValidatorArrayInt_constructor }}; -// %override wxLua_wxGenericValidatorArrayInt_constructor -// %constructor wxGenericValidatorArrayInt(wxLuaObject *valPtr) -static int LUACALL wxLua_wxGenericValidatorArrayInt_constructor(lua_State *L) -{ - // wxLuaObject *valPtr - wxLuaObject *valPtr = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call constructor - wxGenericValidator *returns = new wxGenericValidator(valPtr->GetArrayPtr(L)); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericValidatorBool_constructor[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxGenericValidatorBool_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericValidatorBool_constructor[1] = {{ wxLua_wxGenericValidatorBool_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGenericValidatorBool_constructor }}; -// %override wxLua_wxGenericValidatorBool_constructor -// %constructor wxGenericValidatorBool(wxLuaObject *boolPtr) -static int LUACALL wxLua_wxGenericValidatorBool_constructor(lua_State *L) -{ - // wxLuaObject *boolPtr - wxLuaObject *boolPtr = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call constructor - wxGenericValidator *returns = new wxGenericValidator(boolPtr->GetBoolPtr(L)); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericValidatorInt_constructor[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxGenericValidatorInt_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericValidatorInt_constructor[1] = {{ wxLua_wxGenericValidatorInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGenericValidatorInt_constructor }}; -// %override wxLua_wxGenericValidatorInt_constructor -// %constructor wxGenericValidatorInt(wxLuaObject *valPtr) -static int LUACALL wxLua_wxGenericValidatorInt_constructor(lua_State *L) -{ - // wxLuaObject *valPtr - wxLuaObject *valPtr = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call constructor - wxGenericValidator *returns = new wxGenericValidator(valPtr->GetIntPtr(L)); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGenericValidatorString_constructor[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxGenericValidatorString_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGenericValidatorString_constructor[1] = {{ wxLua_wxGenericValidatorString_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGenericValidatorString_constructor }}; -// %override wxLua_wxGenericValidatorString_constructor -// %constructor wxGenericValidatorString(wxLuaObject *valPtr) -static int LUACALL wxLua_wxGenericValidatorString_constructor(lua_State *L) -{ - // wxLuaObject *valPtr - wxLuaObject *valPtr = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call constructor - wxGenericValidator *returns = new wxGenericValidator(valPtr->GetStringPtr(L)); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGenericValidator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGenericValidator); - // return the number of parameters - return 1; -} - - - - - -void wxLua_wxGenericValidator_delete_function(void** p) -{ - wxGenericValidator* o = (wxGenericValidator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGenericValidator_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGenericValidator_delete, 1, NULL }, - { "wxGenericValidatorArrayInt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGenericValidatorArrayInt_constructor, 1, NULL }, - { "wxGenericValidatorBool", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGenericValidatorBool_constructor, 1, NULL }, - { "wxGenericValidatorInt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGenericValidatorInt_constructor, 1, NULL }, - { "wxGenericValidatorString", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGenericValidatorString_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGenericValidator_methodCount = sizeof(wxGenericValidator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxGenericValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - -#if wxUSE_STREAMS && wxUSE_FILESYSTEM -// --------------------------------------------------------------------------- -// Bind class wxMemoryFSHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMemoryFSHandler' -int wxluatype_wxMemoryFSHandler = WXLUA_TUNKNOWN; - -#if ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile2[] = { &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryFSHandler_AddFile2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile2[1] = {{ wxLua_wxMemoryFSHandler_AddFile2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile2 }}; -// static void AddFile(const wxString& filename, const wxBitmap& bitmap, wxBitmapType type); -static int LUACALL wxLua_wxMemoryFSHandler_AddFile2(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call AddFile - wxMemoryFSHandler::AddFile(filename, *bitmap, type); - - return 0; -} - -#endif // ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap) - -#if ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile1[] = { &wxluatype_TSTRING, &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMemoryFSHandler_AddFile1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile1[1] = {{ wxLua_wxMemoryFSHandler_AddFile1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile1 }}; -// static void AddFile(const wxString& filename, const wxImage& image, wxBitmapType type); -static int LUACALL wxLua_wxMemoryFSHandler_AddFile1(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call AddFile - wxMemoryFSHandler::AddFile(filename, *image, type); - - return 0; -} - -#endif // ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMemoryFSHandler_AddFile(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile[1] = {{ wxLua_wxMemoryFSHandler_AddFile, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile }}; -// static void AddFile(const wxString& filename, const wxString& textdata); -static int LUACALL wxLua_wxMemoryFSHandler_AddFile(lua_State *L) -{ - // const wxString textdata - const wxString textdata = wxlua_getwxStringtype(L, 2); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call AddFile - wxMemoryFSHandler::AddFile(filename, textdata); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,5)) && (wxUSE_STREAMS && wxUSE_FILESYSTEM) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFileWithMimeType[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMemoryFSHandler_AddFileWithMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_AddFileWithMimeType[1] = {{ wxLua_wxMemoryFSHandler_AddFileWithMimeType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFileWithMimeType }}; -// static void AddFileWithMimeType(const wxString& filename, const wxString& textdata, const wxString& mimetype); -static int LUACALL wxLua_wxMemoryFSHandler_AddFileWithMimeType(lua_State *L) -{ - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 3); - // const wxString textdata - const wxString textdata = wxlua_getwxStringtype(L, 2); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call AddFileWithMimeType - wxMemoryFSHandler::AddFileWithMimeType(filename, textdata, mimetype); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,5)) && (wxUSE_STREAMS && wxUSE_FILESYSTEM) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryFSHandler_RemoveFile[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMemoryFSHandler_RemoveFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_RemoveFile[1] = {{ wxLua_wxMemoryFSHandler_RemoveFile, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxMemoryFSHandler_RemoveFile }}; -// static void RemoveFile(const wxString& filename); -static int LUACALL wxLua_wxMemoryFSHandler_RemoveFile(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call RemoveFile - wxMemoryFSHandler::RemoveFile(filename); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryFSHandler_delete[] = { &wxluatype_wxMemoryFSHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMemoryFSHandler_delete }}; - -static int LUACALL wxLua_wxMemoryFSHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_constructor[1] = {{ wxLua_wxMemoryFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMemoryFSHandler(); -static int LUACALL wxLua_wxMemoryFSHandler_constructor(lua_State *L) -{ - // call constructor - wxMemoryFSHandler* returns = new wxMemoryFSHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryFSHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryFSHandler); - - return 1; -} - - - - -#if (((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap))||(((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxUSE_STREAMS && wxUSE_FILESYSTEM) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile_overload[] = -{ - -#if ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap) - { wxLua_wxMemoryFSHandler_AddFile2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile2 }, -#endif // ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap) - -#if ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxMemoryFSHandler_AddFile1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile1 }, -#endif // ((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxMemoryFSHandler_AddFile, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxMemoryFSHandler_AddFile }, -}; -static int s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile_overload_count = sizeof(s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap))||(((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxUSE_STREAMS && wxUSE_FILESYSTEM) - -void wxLua_wxMemoryFSHandler_delete_function(void** p) -{ - wxMemoryFSHandler* o = (wxMemoryFSHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMemoryFSHandler_methods[] = { -#if (((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap))||(((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxUSE_STREAMS && wxUSE_FILESYSTEM) - { "AddFile", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile_overload, s_wxluafunc_wxLua_wxMemoryFSHandler_AddFile_overload_count, 0 }, -#endif // (((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxBitmap))||(((wxUSE_IMAGE) && (wxUSE_STREAMS && wxUSE_FILESYSTEM)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxUSE_STREAMS && wxUSE_FILESYSTEM) - -#if (wxCHECK_VERSION(2,8,5)) && (wxUSE_STREAMS && wxUSE_FILESYSTEM) - { "AddFileWithMimeType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMemoryFSHandler_AddFileWithMimeType, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,5)) && (wxUSE_STREAMS && wxUSE_FILESYSTEM) - - { "RemoveFile", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMemoryFSHandler_RemoveFile, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMemoryFSHandler_delete, 1, NULL }, - { "wxMemoryFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMemoryFSHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMemoryFSHandler_methodCount = sizeof(wxMemoryFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_STREAMS && wxUSE_FILESYSTEM - diff --git a/wxLua/modules/wxbind/src/wxcore_defsutils.cpp b/wxLua/modules/wxbind/src/wxcore_defsutils.cpp deleted file mode 100644 index 20205c5e..00000000 --- a/wxLua/modules/wxbind/src/wxcore_defsutils.cpp +++ /dev/null @@ -1,2219 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_defsutils.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxProcess -// --------------------------------------------------------------------------- -// Bind class wxProcess -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxProcess' -int wxluatype_wxProcess = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxProcess) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_Activate[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_Activate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_Activate[1] = {{ wxLua_wxProcess_Activate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_Activate }}; -// %wxchkver_3_1_0 & %win bool Activate() const; -static int LUACALL wxLua_wxProcess_Activate(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call Activate - bool returns = (self->Activate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxProcess) - -#if (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_CloseOutput[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_CloseOutput(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_CloseOutput[1] = {{ wxLua_wxProcess_CloseOutput, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_CloseOutput }}; -// wxUSE_STREAMS void CloseOutput(); -static int LUACALL wxLua_wxProcess_CloseOutput(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call CloseOutput - self->CloseOutput(); - - return 0; -} - -#endif // (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_Detach[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_Detach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_Detach[1] = {{ wxLua_wxProcess_Detach, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_Detach }}; -// void Detach(); -static int LUACALL wxLua_wxProcess_Detach(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call Detach - self->Detach(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_Exists[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcess_Exists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_Exists[1] = {{ wxLua_wxProcess_Exists, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxProcess_Exists }}; -// static bool Exists(int pid); -static int LUACALL wxLua_wxProcess_Exists(lua_State *L) -{ - // int pid - int pid = (int)wxlua_getnumbertype(L, 1); - // call Exists - bool returns = (wxProcess::Exists(pid)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_GetErrorStream[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_GetErrorStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_GetErrorStream[1] = {{ wxLua_wxProcess_GetErrorStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_GetErrorStream }}; -// wxUSE_STREAMS wxInputStream *GetErrorStream() const; -static int LUACALL wxLua_wxProcess_GetErrorStream(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call GetErrorStream - wxInputStream* returns = (wxInputStream*)self->GetErrorStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_GetInputStream[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_GetInputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_GetInputStream[1] = {{ wxLua_wxProcess_GetInputStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_GetInputStream }}; -// wxUSE_STREAMS wxInputStream *GetInputStream() const; -static int LUACALL wxLua_wxProcess_GetInputStream(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call GetInputStream - wxInputStream* returns = (wxInputStream*)self->GetInputStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_GetOutputStream[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_GetOutputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_GetOutputStream[1] = {{ wxLua_wxProcess_GetOutputStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_GetOutputStream }}; -// wxUSE_STREAMS wxOutputStream *GetOutputStream() const; -static int LUACALL wxLua_wxProcess_GetOutputStream(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call GetOutputStream - wxOutputStream* returns = (wxOutputStream*)self->GetOutputStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxOutputStream); - - return 1; -} - -#endif // ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_GetPid[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_GetPid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_GetPid[1] = {{ wxLua_wxProcess_GetPid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_GetPid }}; -// long GetPid() const; -static int LUACALL wxLua_wxProcess_GetPid(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call GetPid - long returns = (self->GetPid()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_IsErrorAvailable[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_IsErrorAvailable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_IsErrorAvailable[1] = {{ wxLua_wxProcess_IsErrorAvailable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_IsErrorAvailable }}; -// wxUSE_STREAMS bool IsErrorAvailable() const; -static int LUACALL wxLua_wxProcess_IsErrorAvailable(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call IsErrorAvailable - bool returns = (self->IsErrorAvailable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_IsInputAvailable[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_IsInputAvailable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_IsInputAvailable[1] = {{ wxLua_wxProcess_IsInputAvailable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_IsInputAvailable }}; -// wxUSE_STREAMS bool IsInputAvailable() const; -static int LUACALL wxLua_wxProcess_IsInputAvailable(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call IsInputAvailable - bool returns = (self->IsInputAvailable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_IsInputOpened[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_IsInputOpened(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_IsInputOpened[1] = {{ wxLua_wxProcess_IsInputOpened, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_IsInputOpened }}; -// wxUSE_STREAMS bool IsInputOpened() const; -static int LUACALL wxLua_wxProcess_IsInputOpened(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call IsInputOpened - bool returns = (self->IsInputOpened()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_IsRedirected[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_IsRedirected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_IsRedirected[1] = {{ wxLua_wxProcess_IsRedirected, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_IsRedirected }}; -// bool IsRedirected(); // %add missing in the interface -static int LUACALL wxLua_wxProcess_IsRedirected(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call IsRedirected - bool returns = (self->IsRedirected()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_Kill[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcess_Kill(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_Kill[1] = {{ wxLua_wxProcess_Kill, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxProcess_Kill }}; -// static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN); -static int LUACALL wxLua_wxProcess_Kill(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxKILL_NOCHILDREN - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxKILL_NOCHILDREN); - // wxSignal sig = wxSIGTERM - wxSignal sig = (argCount >= 2 ? (wxSignal)wxlua_getenumtype(L, 2) : wxSIGTERM); - // int pid - int pid = (int)wxlua_getnumbertype(L, 1); - // call Kill - wxKillError returns = (wxProcess::Kill(pid, sig, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_Open[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcess_Open(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_Open[1] = {{ wxLua_wxProcess_Open, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxProcess_Open }}; -// static wxProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC); -static int LUACALL wxLua_wxProcess_Open(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxEXEC_ASYNC - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxEXEC_ASYNC); - // const wxString cmd - const wxString cmd = wxlua_getwxStringtype(L, 1); - // call Open - wxProcess* returns = (wxProcess*)wxProcess::Open(cmd, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcess); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_Redirect[] = { &wxluatype_wxProcess, NULL }; -static int LUACALL wxLua_wxProcess_Redirect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_Redirect[1] = {{ wxLua_wxProcess_Redirect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcess_Redirect }}; -// void Redirect(); -static int LUACALL wxLua_wxProcess_Redirect(lua_State *L) -{ - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call Redirect - self->Redirect(); - - return 0; -} - - -#if ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_SetPipeStreams[] = { &wxluatype_wxProcess, &wxluatype_wxInputStream, &wxluatype_wxOutputStream, &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxProcess_SetPipeStreams(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_SetPipeStreams[1] = {{ wxLua_wxProcess_SetPipeStreams, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxProcess_SetPipeStreams }}; -// wxUSE_STREAMS void SetPipeStreams(wxInputStream *outStream, wxOutputStream *inStream, wxInputStream *errStream); // %add missing in the interface -static int LUACALL wxLua_wxProcess_SetPipeStreams(lua_State *L) -{ - // wxInputStream errStream - wxInputStream * errStream = (wxInputStream *)wxluaT_getuserdatatype(L, 4, wxluatype_wxInputStream); - // wxOutputStream inStream - wxOutputStream * inStream = (wxOutputStream *)wxluaT_getuserdatatype(L, 3, wxluatype_wxOutputStream); - // wxInputStream outStream - wxInputStream * outStream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call SetPipeStreams - self->SetPipeStreams(outStream, inStream, errStream); - - return 0; -} - -#endif // ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_SetPriority[] = { &wxluatype_wxProcess, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxProcess_SetPriority(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_SetPriority[1] = {{ wxLua_wxProcess_SetPriority, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxProcess_SetPriority }}; -// void SetPriority(unsigned int priority); // %override parameter type -- unsigned => unsigned int -- as wxlua doesn't handle "unsigned" by itself -static int LUACALL wxLua_wxProcess_SetPriority(lua_State *L) -{ - // unsigned int priority - unsigned int priority = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxProcess * self = (wxProcess *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcess); - // call SetPriority - self->SetPriority(priority); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_delete[] = { &wxluatype_wxProcess, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxProcess_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_constructor1[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcess_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_constructor1[1] = {{ wxLua_wxProcess_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxProcess_constructor1 }}; -// wxProcess(int flags); -static int LUACALL wxLua_wxProcess_constructor1(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxProcess* returns = new wxProcess(flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxProcess); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcess); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcess_constructor[] = { &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcess_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_constructor[1] = {{ wxLua_wxProcess_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxProcess_constructor }}; -// wxProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY); -static int LUACALL wxLua_wxProcess_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int nId = wxID_ANY - int nId = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxEvtHandler parent = NULL - wxEvtHandler * parent = (argCount >= 1 ? (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler) : NULL); - // call constructor - wxProcess* returns = new wxProcess(parent, nId); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxProcess); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcess); - - return 1; -} - - - - -#if (wxLUA_USE_wxProcess) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcess_constructor_overload[] = -{ - { wxLua_wxProcess_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxProcess_constructor1 }, - { wxLua_wxProcess_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxProcess_constructor }, -}; -static int s_wxluafunc_wxLua_wxProcess_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxProcess_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxProcess) - -void wxLua_wxProcess_delete_function(void** p) -{ - wxProcess* o = (wxProcess*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxProcess_methods[] = { -#if (wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxProcess) - { "Activate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_Activate, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxProcess) - -#if (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) - { "CloseOutput", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_CloseOutput, 1, NULL }, -#endif // (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) - - { "Detach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_Detach, 1, NULL }, - { "Exists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxProcess_Exists, 1, NULL }, - -#if ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - { "GetErrorStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_GetErrorStream, 1, NULL }, - { "GetInputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_GetInputStream, 1, NULL }, - { "GetOutputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_GetOutputStream, 1, NULL }, -#endif // ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - - { "GetPid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_GetPid, 1, NULL }, - -#if (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) - { "IsErrorAvailable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_IsErrorAvailable, 1, NULL }, - { "IsInputAvailable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_IsInputAvailable, 1, NULL }, - { "IsInputOpened", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_IsInputOpened, 1, NULL }, -#endif // (wxLUA_USE_wxProcess) && (wxUSE_STREAMS) - - { "IsRedirected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_IsRedirected, 1, NULL }, - { "Kill", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxProcess_Kill, 1, NULL }, - { "Open", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxProcess_Open, 1, NULL }, - { "Redirect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_Redirect, 1, NULL }, - -#if ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - { "SetPipeStreams", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_SetPipeStreams, 1, NULL }, -#endif // ((wxLUA_USE_wxProcess) && (wxUSE_STREAMS)) && (wxUSE_STREAMS) - - { "SetPriority", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcess_SetPriority, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxProcess_delete, 1, NULL }, - -#if (wxLUA_USE_wxProcess) - { "wxProcess", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxProcess_constructor_overload, s_wxluafunc_wxLua_wxProcess_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxProcess) - - { 0, 0, 0, 0 }, -}; - -int wxProcess_methodCount = sizeof(wxProcess_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxProcess - - -#if wxLUA_USE_wxProcess -// --------------------------------------------------------------------------- -// Bind class wxLuaProcess -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaProcess' -int wxluatype_wxLuaProcess = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaProcess_Exists[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaProcess_Exists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_Exists[1] = {{ wxLua_wxLuaProcess_Exists, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxLuaProcess_Exists }}; -// %override wxLua_wxLuaProcess_Exists -// static bool Exists(int pid); -static int LUACALL wxLua_wxLuaProcess_Exists(lua_State *L) -{ - // int pid - int pid = (int)wxlua_getnumbertype(L, 1); - // call Exists - bool returns = (wxProcess::Exists(pid)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaProcess_Kill[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaProcess_Kill(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_Kill[1] = {{ wxLua_wxLuaProcess_Kill, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxLuaProcess_Kill }}; -// %override wxLua_wxLuaProcess_Kill -// static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN); -static int LUACALL wxLua_wxLuaProcess_Kill(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxKILL_NOCHILDREN - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxKILL_NOCHILDREN); - // wxSignal sig = wxSIGTERM - wxSignal sig = (argCount >= 2 ? (wxSignal)wxlua_getenumtype(L, 2) : wxSIGTERM); - // int pid - int pid = (int)wxlua_getnumbertype(L, 1); - // call Kill - wxKillError returns = (wxProcess::Kill(pid, sig, flags)); - // push the result number - lua_pushinteger(L, returns); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaProcess_Open[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaProcess_Open(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_Open[1] = {{ wxLua_wxLuaProcess_Open, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxLuaProcess_Open }}; -// %override wxLua_wxLuaProcess_Open -// static wxLuaProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC); -static int LUACALL wxLua_wxLuaProcess_Open(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxEXEC_ASYNC - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxEXEC_ASYNC); - // const wxString cmd - const wxString cmd = wxlua_getwxStringtype(L, 1); - // call Open - wxLuaProcess* returns = (wxLuaProcess*)wxProcess::Open(cmd, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaProcess); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaProcess_delete[] = { &wxluatype_wxLuaProcess, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaProcess_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaProcess_constructor1[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaProcess_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_constructor1[1] = {{ wxLua_wxLuaProcess_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaProcess_constructor1 }}; -// wxLuaProcess(int flags); -static int LUACALL wxLua_wxLuaProcess_constructor1(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxLuaProcess* returns = new wxLuaProcess(flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaProcess); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaProcess); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaProcess_constructor[] = { &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaProcess_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_constructor[1] = {{ wxLua_wxLuaProcess_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxLuaProcess_constructor }}; -// wxLuaProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY); -static int LUACALL wxLua_wxLuaProcess_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int nId = wxID_ANY - int nId = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxEvtHandler parent = NULL - wxEvtHandler * parent = (argCount >= 1 ? (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler) : NULL); - // call constructor - wxLuaProcess* returns = new wxLuaProcess(parent, nId); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaProcess); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaProcess); - - return 1; -} - - - - -#if (wxLUA_USE_wxProcess) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaProcess_constructor_overload[] = -{ - { wxLua_wxLuaProcess_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaProcess_constructor1 }, - { wxLua_wxLuaProcess_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxLuaProcess_constructor }, -}; -static int s_wxluafunc_wxLua_wxLuaProcess_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxLuaProcess_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxProcess) - -void wxLua_wxLuaProcess_delete_function(void** p) -{ - wxLuaProcess* o = (wxLuaProcess*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaProcess_methods[] = { - { "Exists", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaProcess_Exists, 1, NULL }, - { "Kill", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaProcess_Kill, 1, NULL }, - { "Open", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaProcess_Open, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaProcess_delete, 1, NULL }, - -#if (wxLUA_USE_wxProcess) - { "wxLuaProcess", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaProcess_constructor_overload, s_wxluafunc_wxLua_wxLuaProcess_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxProcess) - - { 0, 0, 0, 0 }, -}; - -int wxLuaProcess_methodCount = sizeof(wxLuaProcess_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxProcess - -// --------------------------------------------------------------------------- -// Bind class wxKeyboardState -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxKeyboardState' -int wxluatype_wxKeyboardState = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_AltDown[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_AltDown[1] = {{ wxLua_wxKeyboardState_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_AltDown }}; -// %wxchkver_3_0_0 bool AltDown() const; -static int LUACALL wxLua_wxKeyboardState_AltDown(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_CmdDown[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_CmdDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_CmdDown[1] = {{ wxLua_wxKeyboardState_CmdDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_CmdDown }}; -// %wxchkver_3_0_0 bool CmdDown() const; -static int LUACALL wxLua_wxKeyboardState_CmdDown(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call CmdDown - bool returns = (self->CmdDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_ControlDown[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_ControlDown[1] = {{ wxLua_wxKeyboardState_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_ControlDown }}; -// %wxchkver_3_0_0 bool ControlDown() const; -static int LUACALL wxLua_wxKeyboardState_ControlDown(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_GetModifiers[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_GetModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_GetModifiers[1] = {{ wxLua_wxKeyboardState_GetModifiers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_GetModifiers }}; -// %wxchkver_3_0_0 int GetModifiers() const; -static int LUACALL wxLua_wxKeyboardState_GetModifiers(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call GetModifiers - int returns = (self->GetModifiers()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_HasAnyModifiers[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_HasAnyModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_HasAnyModifiers[1] = {{ wxLua_wxKeyboardState_HasAnyModifiers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_HasAnyModifiers }}; -// %wxchkver_3_0_0 bool HasAnyModifiers() const; -static int LUACALL wxLua_wxKeyboardState_HasAnyModifiers(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call HasAnyModifiers - bool returns = (self->HasAnyModifiers()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_HasModifiers[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_HasModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_HasModifiers[1] = {{ wxLua_wxKeyboardState_HasModifiers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_HasModifiers }}; -// %wxchkver_3_0_0 bool HasModifiers() const; -static int LUACALL wxLua_wxKeyboardState_HasModifiers(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call HasModifiers - bool returns = (self->HasModifiers()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_MetaDown[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_MetaDown[1] = {{ wxLua_wxKeyboardState_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_MetaDown }}; -// %wxchkver_3_0_0 bool MetaDown() const; -static int LUACALL wxLua_wxKeyboardState_MetaDown(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_RawControlDown[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_RawControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_RawControlDown[1] = {{ wxLua_wxKeyboardState_RawControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_RawControlDown }}; -// %wxchkver_3_0_0 bool RawControlDown() const; -static int LUACALL wxLua_wxKeyboardState_RawControlDown(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call RawControlDown - bool returns = (self->RawControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_SetAltDown[] = { &wxluatype_wxKeyboardState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxKeyboardState_SetAltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_SetAltDown[1] = {{ wxLua_wxKeyboardState_SetAltDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxKeyboardState_SetAltDown }}; -// %wxchkver_3_0_0 void SetAltDown(bool down); -static int LUACALL wxLua_wxKeyboardState_SetAltDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call SetAltDown - self->SetAltDown(down); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_SetControlDown[] = { &wxluatype_wxKeyboardState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxKeyboardState_SetControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_SetControlDown[1] = {{ wxLua_wxKeyboardState_SetControlDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxKeyboardState_SetControlDown }}; -// %wxchkver_3_0_0 void SetControlDown(bool down); -static int LUACALL wxLua_wxKeyboardState_SetControlDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call SetControlDown - self->SetControlDown(down); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_SetMetaDown[] = { &wxluatype_wxKeyboardState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxKeyboardState_SetMetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_SetMetaDown[1] = {{ wxLua_wxKeyboardState_SetMetaDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxKeyboardState_SetMetaDown }}; -// %wxchkver_3_0_0 void SetMetaDown(bool down); -static int LUACALL wxLua_wxKeyboardState_SetMetaDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call SetMetaDown - self->SetMetaDown(down); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_SetRawControlDown[] = { &wxluatype_wxKeyboardState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxKeyboardState_SetRawControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_SetRawControlDown[1] = {{ wxLua_wxKeyboardState_SetRawControlDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxKeyboardState_SetRawControlDown }}; -// %wxchkver_3_0_0 void SetRawControlDown(bool down); -static int LUACALL wxLua_wxKeyboardState_SetRawControlDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call SetRawControlDown - self->SetRawControlDown(down); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_SetShiftDown[] = { &wxluatype_wxKeyboardState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxKeyboardState_SetShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_SetShiftDown[1] = {{ wxLua_wxKeyboardState_SetShiftDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxKeyboardState_SetShiftDown }}; -// %wxchkver_3_0_0 void SetShiftDown(bool down); -static int LUACALL wxLua_wxKeyboardState_SetShiftDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call SetShiftDown - self->SetShiftDown(down); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_ShiftDown[] = { &wxluatype_wxKeyboardState, NULL }; -static int LUACALL wxLua_wxKeyboardState_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_ShiftDown[1] = {{ wxLua_wxKeyboardState_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyboardState_ShiftDown }}; -// %wxchkver_3_0_0 bool ShiftDown() const; -static int LUACALL wxLua_wxKeyboardState_ShiftDown(lua_State *L) -{ - // get this - wxKeyboardState * self = (wxKeyboardState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyboardState); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyboardState_constructor[] = { &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxKeyboardState_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyboardState_constructor[1] = {{ wxLua_wxKeyboardState_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxKeyboardState_constructor }}; -// %wxchkver_3_0_0 wxKeyboardState(bool controlDown = false, bool shiftDown = false, bool altDown = false, bool metaDown = false); -static int LUACALL wxLua_wxKeyboardState_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool metaDown = false - bool metaDown = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // bool altDown = false - bool altDown = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // bool shiftDown = false - bool shiftDown = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // bool controlDown = false - bool controlDown = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : false); - // call constructor - wxKeyboardState* returns = new wxKeyboardState(controlDown, shiftDown, altDown, metaDown); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxKeyboardState); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - - - -void wxLua_wxKeyboardState_delete_function(void** p) -{ - wxKeyboardState* o = (wxKeyboardState*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxKeyboardState_methods[] = { -#if wxCHECK_VERSION(3,0,0) - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_AltDown, 1, NULL }, - { "CmdDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_CmdDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_ControlDown, 1, NULL }, - { "GetModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_GetModifiers, 1, NULL }, - { "HasAnyModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_HasAnyModifiers, 1, NULL }, - { "HasModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_HasModifiers, 1, NULL }, - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_MetaDown, 1, NULL }, - { "RawControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_RawControlDown, 1, NULL }, - { "SetAltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_SetAltDown, 1, NULL }, - { "SetControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_SetControlDown, 1, NULL }, - { "SetMetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_SetMetaDown, 1, NULL }, - { "SetRawControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_SetRawControlDown, 1, NULL }, - { "SetShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_SetShiftDown, 1, NULL }, - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyboardState_ShiftDown, 1, NULL }, - { "wxKeyboardState", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxKeyboardState_constructor, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { 0, 0, 0, 0 }, -}; - -int wxKeyboardState_methodCount = sizeof(wxKeyboardState_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxCHECK_VERSION(2,8,0) -// --------------------------------------------------------------------------- -// Bind class wxMouseState -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMouseState' -int wxluatype_wxMouseState = WXLUA_TUNKNOWN; - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_AltDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_AltDown[1] = {{ wxLua_wxMouseState_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_AltDown }}; -// !%wxchkver_3_0_0 bool AltDown(); -static int LUACALL wxLua_wxMouseState_AltDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_Aux1IsDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_Aux1IsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_Aux1IsDown[1] = {{ wxLua_wxMouseState_Aux1IsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_Aux1IsDown }}; -// %wxchkver_3_0_0 bool Aux1IsDown() const; -static int LUACALL wxLua_wxMouseState_Aux1IsDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call Aux1IsDown - bool returns = (self->Aux1IsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_Aux2IsDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_Aux2IsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_Aux2IsDown[1] = {{ wxLua_wxMouseState_Aux2IsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_Aux2IsDown }}; -// %wxchkver_3_0_0 bool Aux2IsDown() const; -static int LUACALL wxLua_wxMouseState_Aux2IsDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call Aux2IsDown - bool returns = (self->Aux2IsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_CmdDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_CmdDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_CmdDown[1] = {{ wxLua_wxMouseState_CmdDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_CmdDown }}; -// !%wxchkver_3_0_0 bool CmdDown(); -static int LUACALL wxLua_wxMouseState_CmdDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call CmdDown - bool returns = (self->CmdDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_ControlDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_ControlDown[1] = {{ wxLua_wxMouseState_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_ControlDown }}; -// !%wxchkver_3_0_0 bool ControlDown(); -static int LUACALL wxLua_wxMouseState_ControlDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_GetX[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_GetX[1] = {{ wxLua_wxMouseState_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_GetX }}; -// wxCoord GetX(); -static int LUACALL wxLua_wxMouseState_GetX(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call GetX - wxCoord returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_GetY[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_GetY[1] = {{ wxLua_wxMouseState_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_GetY }}; -// wxCoord GetY(); -static int LUACALL wxLua_wxMouseState_GetY(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call GetY - wxCoord returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_LeftDown1[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_LeftDown1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_LeftDown1[1] = {{ wxLua_wxMouseState_LeftDown1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_LeftDown1 }}; -// %wxchkver_3_0_0 %rename LeftDown bool LeftIsDown() const; // for compatibility with previous wxlua versions -static int LUACALL wxLua_wxMouseState_LeftDown1(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call LeftIsDown - bool returns = (self->LeftIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_LeftDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_LeftDown(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_LeftDown[1] = {{ wxLua_wxMouseState_LeftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_LeftDown }}; -// !%wxchkver_3_0_0 bool LeftDown(); -static int LUACALL wxLua_wxMouseState_LeftDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call LeftDown - bool returns = (self->LeftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_LeftIsDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_LeftIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_LeftIsDown[1] = {{ wxLua_wxMouseState_LeftIsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_LeftIsDown }}; -// %wxchkver_3_0_0 bool LeftIsDown() const; -static int LUACALL wxLua_wxMouseState_LeftIsDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call LeftIsDown - bool returns = (self->LeftIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_MetaDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_MetaDown[1] = {{ wxLua_wxMouseState_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_MetaDown }}; -// !%wxchkver_3_0_0 bool MetaDown(); -static int LUACALL wxLua_wxMouseState_MetaDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_MiddleDown1[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_MiddleDown1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_MiddleDown1[1] = {{ wxLua_wxMouseState_MiddleDown1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_MiddleDown1 }}; -// %wxchkver_3_0_0 %rename MiddleDown bool MiddleIsDown() const; // for compatibility with previous wxlua versions -static int LUACALL wxLua_wxMouseState_MiddleDown1(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call MiddleIsDown - bool returns = (self->MiddleIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_MiddleDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_MiddleDown(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_MiddleDown[1] = {{ wxLua_wxMouseState_MiddleDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_MiddleDown }}; -// !%wxchkver_3_0_0 bool MiddleDown(); -static int LUACALL wxLua_wxMouseState_MiddleDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call MiddleDown - bool returns = (self->MiddleDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_MiddleIsDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_MiddleIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_MiddleIsDown[1] = {{ wxLua_wxMouseState_MiddleIsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_MiddleIsDown }}; -// %wxchkver_3_0_0 bool MiddleIsDown() const; -static int LUACALL wxLua_wxMouseState_MiddleIsDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call MiddleIsDown - bool returns = (self->MiddleIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_RightDown1[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_RightDown1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_RightDown1[1] = {{ wxLua_wxMouseState_RightDown1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_RightDown1 }}; -// %wxchkver_3_0_0 %rename RightDown bool RightIsDown() const; // for compatibility with previous wxlua versions -static int LUACALL wxLua_wxMouseState_RightDown1(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call RightIsDown - bool returns = (self->RightIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_RightDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_RightDown(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_RightDown[1] = {{ wxLua_wxMouseState_RightDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_RightDown }}; -// !%wxchkver_3_0_0 bool RightDown(); -static int LUACALL wxLua_wxMouseState_RightDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call RightDown - bool returns = (self->RightDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_RightIsDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_RightIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_RightIsDown[1] = {{ wxLua_wxMouseState_RightIsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_RightIsDown }}; -// %wxchkver_3_0_0 bool RightIsDown() const; -static int LUACALL wxLua_wxMouseState_RightIsDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call RightIsDown - bool returns = (self->RightIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetAltDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetAltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetAltDown[1] = {{ wxLua_wxMouseState_SetAltDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetAltDown }}; -// !%wxchkver_3_0_0 void SetAltDown(bool down); -static int LUACALL wxLua_wxMouseState_SetAltDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetAltDown - self->SetAltDown(down); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetAux1Down[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetAux1Down(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetAux1Down[1] = {{ wxLua_wxMouseState_SetAux1Down, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetAux1Down }}; -// %wxchkver_3_0_0 void SetAux1Down(bool down); -static int LUACALL wxLua_wxMouseState_SetAux1Down(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetAux1Down - self->SetAux1Down(down); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetAux2Down[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetAux2Down(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetAux2Down[1] = {{ wxLua_wxMouseState_SetAux2Down, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetAux2Down }}; -// %wxchkver_3_0_0 void SetAux2Down(bool down); -static int LUACALL wxLua_wxMouseState_SetAux2Down(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetAux2Down - self->SetAux2Down(down); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetControlDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetControlDown[1] = {{ wxLua_wxMouseState_SetControlDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetControlDown }}; -// !%wxchkver_3_0_0 void SetControlDown(bool down); -static int LUACALL wxLua_wxMouseState_SetControlDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetControlDown - self->SetControlDown(down); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetLeftDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetLeftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetLeftDown[1] = {{ wxLua_wxMouseState_SetLeftDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetLeftDown }}; -// void SetLeftDown(bool down); -static int LUACALL wxLua_wxMouseState_SetLeftDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetLeftDown - self->SetLeftDown(down); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetMetaDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetMetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetMetaDown[1] = {{ wxLua_wxMouseState_SetMetaDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetMetaDown }}; -// !%wxchkver_3_0_0 void SetMetaDown(bool down); -static int LUACALL wxLua_wxMouseState_SetMetaDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetMetaDown - self->SetMetaDown(down); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetMiddleDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetMiddleDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetMiddleDown[1] = {{ wxLua_wxMouseState_SetMiddleDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetMiddleDown }}; -// void SetMiddleDown(bool down); -static int LUACALL wxLua_wxMouseState_SetMiddleDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetMiddleDown - self->SetMiddleDown(down); - - return 0; -} - - -#if ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetPosition1[] = { &wxluatype_wxMouseState, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxMouseState_SetPosition1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetPosition1[1] = {{ wxLua_wxMouseState_SetPosition1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetPosition1 }}; -// !%wxchkver_3_1_2 && %wxchkver_3_0_0 void SetPosition(wxPoint pos); -static int LUACALL wxLua_wxMouseState_SetPosition1(lua_State *L) -{ - // wxPoint pos - wxPoint pos = *(wxPoint*)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetPosition[] = { &wxluatype_wxMouseState, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxMouseState_SetPosition(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetPosition[1] = {{ wxLua_wxMouseState_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetPosition }}; -// %wxchkver_3_1_2 void SetPosition(const wxPoint& pos); -static int LUACALL wxLua_wxMouseState_SetPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetPosition - self->SetPosition(*pos); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetRightDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetRightDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetRightDown[1] = {{ wxLua_wxMouseState_SetRightDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetRightDown }}; -// void SetRightDown(bool down); -static int LUACALL wxLua_wxMouseState_SetRightDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetRightDown - self->SetRightDown(down); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetShiftDown[] = { &wxluatype_wxMouseState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMouseState_SetShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetShiftDown[1] = {{ wxLua_wxMouseState_SetShiftDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetShiftDown }}; -// !%wxchkver_3_0_0 void SetShiftDown(bool down); -static int LUACALL wxLua_wxMouseState_SetShiftDown(lua_State *L) -{ - // bool down - bool down = wxlua_getbooleantype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetShiftDown - self->SetShiftDown(down); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetState[] = { &wxluatype_wxMouseState, &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_SetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetState[1] = {{ wxLua_wxMouseState_SetState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetState }}; -// %wxchkver_3_0_0 void SetState(const wxMouseState& state); -static int LUACALL wxLua_wxMouseState_SetState(lua_State *L) -{ - // const wxMouseState state - const wxMouseState * state = (const wxMouseState *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseState); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetState - self->SetState(*state); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxCHECK_VERSION(2,8,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetX[] = { &wxluatype_wxMouseState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseState_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetX[1] = {{ wxLua_wxMouseState_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetX }}; -// void SetX(wxCoord x); -static int LUACALL wxLua_wxMouseState_SetX(lua_State *L) -{ - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetX - self->SetX(x); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_SetY[] = { &wxluatype_wxMouseState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseState_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetY[1] = {{ wxLua_wxMouseState_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetY }}; -// void SetY(wxCoord y); -static int LUACALL wxLua_wxMouseState_SetY(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call SetY - self->SetY(y); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_ShiftDown[] = { &wxluatype_wxMouseState, NULL }; -static int LUACALL wxLua_wxMouseState_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_ShiftDown[1] = {{ wxLua_wxMouseState_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_ShiftDown }}; -// !%wxchkver_3_0_0 bool ShiftDown(); -static int LUACALL wxLua_wxMouseState_ShiftDown(lua_State *L) -{ - // get this - wxMouseState * self = (wxMouseState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseState); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseState_delete[] = { &wxluatype_wxMouseState, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_delete }}; - -static int LUACALL wxLua_wxMouseState_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_constructor[1] = {{ wxLua_wxMouseState_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMouseState(); -static int LUACALL wxLua_wxMouseState_constructor(lua_State *L) -{ - // call constructor - wxMouseState* returns = new wxMouseState(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMouseState); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseState); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_LeftDown_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { wxLua_wxMouseState_LeftDown1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_LeftDown1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { wxLua_wxMouseState_LeftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_LeftDown }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -}; -static int s_wxluafunc_wxLua_wxMouseState_LeftDown_overload_count = sizeof(s_wxluafunc_wxLua_wxMouseState_LeftDown_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_MiddleDown_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { wxLua_wxMouseState_MiddleDown1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_MiddleDown1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { wxLua_wxMouseState_MiddleDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_MiddleDown }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -}; -static int s_wxluafunc_wxLua_wxMouseState_MiddleDown_overload_count = sizeof(s_wxluafunc_wxLua_wxMouseState_MiddleDown_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_RightDown_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { wxLua_wxMouseState_RightDown1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_RightDown1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { wxLua_wxMouseState_RightDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseState_RightDown }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) -}; -static int s_wxluafunc_wxLua_wxMouseState_RightDown_overload_count = sizeof(s_wxluafunc_wxLua_wxMouseState_RightDown_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - -#if (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseState_SetPosition_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMouseState_SetPosition1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetPosition1 }, -#endif // ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMouseState_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseState_SetPosition }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxMouseState_SetPosition_overload_count = sizeof(s_wxluafunc_wxLua_wxMouseState_SetPosition_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxMouseState_delete_function(void** p) -{ - wxMouseState* o = (wxMouseState*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMouseState_methods[] = { -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_AltDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { "Aux1IsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_Aux1IsDown, 1, NULL }, - { "Aux2IsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_Aux2IsDown, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "CmdDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_CmdDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_ControlDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_GetY, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - { "LeftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_LeftDown_overload, s_wxluafunc_wxLua_wxMouseState_LeftDown_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { "LeftIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_LeftIsDown, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_MetaDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - { "MiddleDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_MiddleDown_overload, s_wxluafunc_wxLua_wxMouseState_MiddleDown_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { "MiddleIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_MiddleIsDown, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - { "RightDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_RightDown_overload, s_wxluafunc_wxLua_wxMouseState_RightDown_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)))||((!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { "RightIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_RightIsDown, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "SetAltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetAltDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - { "SetAux1Down", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetAux1Down, 1, NULL }, - { "SetAux2Down", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetAux2Down, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "SetControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetControlDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - - { "SetLeftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetLeftDown, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "SetMetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetMetaDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - - { "SetMiddleDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetMiddleDown, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect)) - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetPosition_overload, s_wxluafunc_wxLua_wxMouseState_SetPosition_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,1,2))) && (wxLUA_USE_wxPointSizeRect)) - - { "SetRightDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetRightDown, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "SetShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetShiftDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxCHECK_VERSION(2,8,0)) - { "SetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetState, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxCHECK_VERSION(2,8,0)) - - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_SetY, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseState_ShiftDown, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxCHECK_VERSION(2,8,0)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMouseState_delete, 1, NULL }, - { "wxMouseState", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMouseState_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMouseState_methodCount = sizeof(wxMouseState_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) - - -#if wxLUA_USE_wxBusyCursor -// --------------------------------------------------------------------------- -// Bind class wxBusyCursor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBusyCursor' -int wxluatype_wxBusyCursor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBusyCursor_delete[] = { &wxluatype_wxBusyCursor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBusyCursor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBusyCursor_delete }}; - - -#if (wxLUA_USE_wxBusyCursor) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBusyCursor_constructor[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxBusyCursor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBusyCursor_constructor[1] = {{ wxLua_wxBusyCursor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxBusyCursor_constructor }}; -// %override wxLua_wxBusyCursor_constructor -// wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR) -static int LUACALL wxLua_wxBusyCursor_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxCursor cursor = wxHOURGLASS_CURSOR - - // NOTE: gcc complains that wxHOURGLASS_CURSOR is const, if changed to const MSVC complains wxBusyCursor takes non const - wxCursor * cursor = (argCount >= 1 ? (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor) : (wxCursor*)wxHOURGLASS_CURSOR); - // call constructor - wxBusyCursor *returns = new wxBusyCursor(cursor); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBusyCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBusyCursor); - - return 1; -} - - -#endif // (wxLUA_USE_wxBusyCursor) && (wxLUA_USE_wxCursor) - - - -void wxLua_wxBusyCursor_delete_function(void** p) -{ - wxBusyCursor* o = (wxBusyCursor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBusyCursor_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBusyCursor_delete, 1, NULL }, - -#if (wxLUA_USE_wxBusyCursor) && (wxLUA_USE_wxCursor) - { "wxBusyCursor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBusyCursor_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxBusyCursor) && (wxLUA_USE_wxCursor) - - { 0, 0, 0, 0 }, -}; - -int wxBusyCursor_methodCount = sizeof(wxBusyCursor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxBusyCursor - - -#if wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO -// --------------------------------------------------------------------------- -// Bind class wxBusyInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBusyInfo' -int wxluatype_wxBusyInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBusyInfo_delete[] = { &wxluatype_wxBusyInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBusyInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBusyInfo_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBusyInfo_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxBusyInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBusyInfo_constructor[1] = {{ wxLua_wxBusyInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBusyInfo_constructor }}; -// wxBusyInfo(const wxString& message, wxWindow *parent = NULL); -static int LUACALL wxLua_wxBusyInfo_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 1); - // call constructor - wxBusyInfo* returns = new wxBusyInfo(message, parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBusyInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBusyInfo); - - return 1; -} - - - - -void wxLua_wxBusyInfo_delete_function(void** p) -{ - wxBusyInfo* o = (wxBusyInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBusyInfo_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBusyInfo_delete, 1, NULL }, - { "wxBusyInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBusyInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBusyInfo_methodCount = sizeof(wxBusyInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxBusyInfo && wxUSE_BUSYINFO - - -#if wxLUA_USE_wxTimer && wxUSE_TIMER -// --------------------------------------------------------------------------- -// Bind class wxTimer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTimer' -int wxluatype_wxTimer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_GetId[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_GetId[1] = {{ wxLua_wxTimer_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_GetId }}; -// int GetId() const; -static int LUACALL wxLua_wxTimer_GetId(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_GetInterval[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_GetInterval(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_GetInterval[1] = {{ wxLua_wxTimer_GetInterval, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_GetInterval }}; -// int GetInterval() const; -static int LUACALL wxLua_wxTimer_GetInterval(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call GetInterval - int returns = (self->GetInterval()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_GetOwner[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_GetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_GetOwner[1] = {{ wxLua_wxTimer_GetOwner, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_GetOwner }}; -// wxEvtHandler* GetOwner() const; -static int LUACALL wxLua_wxTimer_GetOwner(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call GetOwner - wxEvtHandler* returns = (wxEvtHandler*)self->GetOwner(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_IsOneShot[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_IsOneShot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_IsOneShot[1] = {{ wxLua_wxTimer_IsOneShot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_IsOneShot }}; -// bool IsOneShot() const; -static int LUACALL wxLua_wxTimer_IsOneShot(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call IsOneShot - bool returns = (self->IsOneShot()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_IsRunning[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_IsRunning(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_IsRunning[1] = {{ wxLua_wxTimer_IsRunning, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_IsRunning }}; -// bool IsRunning() const; -static int LUACALL wxLua_wxTimer_IsRunning(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call IsRunning - bool returns = (self->IsRunning()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_Notify[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_Notify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_Notify[1] = {{ wxLua_wxTimer_Notify, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_Notify }}; -// void Notify(); -static int LUACALL wxLua_wxTimer_Notify(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call Notify - self->Notify(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_SetOwner[] = { &wxluatype_wxTimer, &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimer_SetOwner(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_SetOwner[1] = {{ wxLua_wxTimer_SetOwner, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTimer_SetOwner }}; -// void SetOwner(wxEvtHandler *owner, int id = -1); -static int LUACALL wxLua_wxTimer_SetOwner(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = -1 - int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxEvtHandler owner - wxEvtHandler * owner = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call SetOwner - self->SetOwner(owner, id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_Start[] = { &wxluatype_wxTimer, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTimer_Start(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_Start[1] = {{ wxLua_wxTimer_Start, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxTimer_Start }}; -// bool Start(int milliseconds = -1, bool oneShot = false); -static int LUACALL wxLua_wxTimer_Start(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool oneShot = false - bool oneShot = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int milliseconds = -1 - int milliseconds = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call Start - bool returns = (self->Start(milliseconds, oneShot)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxTimer && wxUSE_TIMER) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_StartOnce[] = { &wxluatype_wxTimer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimer_StartOnce(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_StartOnce[1] = {{ wxLua_wxTimer_StartOnce, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxTimer_StartOnce }}; -// %wxchkver_2_9_5 bool StartOnce(int milliseconds = -1); -static int LUACALL wxLua_wxTimer_StartOnce(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int milliseconds = -1 - int milliseconds = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call StartOnce - bool returns = (self->StartOnce(milliseconds)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxTimer && wxUSE_TIMER) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_Stop[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimer_Stop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_Stop[1] = {{ wxLua_wxTimer_Stop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimer_Stop }}; -// void Stop(); -static int LUACALL wxLua_wxTimer_Stop(lua_State *L) -{ - // get this - wxTimer * self = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call Stop - self->Stop(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_delete[] = { &wxluatype_wxTimer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTimer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimer_constructor1[] = { &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimer_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_constructor1[1] = {{ wxLua_wxTimer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxTimer_constructor1 }}; -// wxTimer(wxEvtHandler *owner, int id = -1); -static int LUACALL wxLua_wxTimer_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = -1 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // wxEvtHandler owner - wxEvtHandler * owner = (wxEvtHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvtHandler); - // call constructor - wxTimer* returns = new wxTimer(owner, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimer); - - return 1; -} - -static int LUACALL wxLua_wxTimer_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_constructor[1] = {{ wxLua_wxTimer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTimer(); -static int LUACALL wxLua_wxTimer_constructor(lua_State *L) -{ - // call constructor - wxTimer* returns = new wxTimer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimer); - - return 1; -} - - - - -#if (wxLUA_USE_wxTimer && wxUSE_TIMER) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimer_constructor_overload[] = -{ - { wxLua_wxTimer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxTimer_constructor1 }, - { wxLua_wxTimer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTimer_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTimer_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTimer && wxUSE_TIMER) - -void wxLua_wxTimer_delete_function(void** p) -{ - wxTimer* o = (wxTimer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTimer_methods[] = { - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_GetId, 1, NULL }, - { "GetInterval", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_GetInterval, 1, NULL }, - { "GetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_GetOwner, 1, NULL }, - { "IsOneShot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_IsOneShot, 1, NULL }, - { "IsRunning", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_IsRunning, 1, NULL }, - { "Notify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_Notify, 1, NULL }, - { "SetOwner", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_SetOwner, 1, NULL }, - { "Start", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_Start, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxTimer && wxUSE_TIMER) - { "StartOnce", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_StartOnce, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxTimer && wxUSE_TIMER) - - { "Stop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimer_Stop, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTimer_delete, 1, NULL }, - -#if (wxLUA_USE_wxTimer && wxUSE_TIMER) - { "wxTimer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTimer_constructor_overload, s_wxluafunc_wxLua_wxTimer_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxTimer && wxUSE_TIMER) - - { 0, 0, 0, 0 }, -}; - -int wxTimer_methodCount = sizeof(wxTimer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - - -#if wxLUA_USE_wxTimer && wxUSE_TIMER -// --------------------------------------------------------------------------- -// Bind class wxTimerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTimerEvent' -int wxluatype_wxTimerEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimerEvent_GetInterval[] = { &wxluatype_wxTimerEvent, NULL }; -static int LUACALL wxLua_wxTimerEvent_GetInterval(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimerEvent_GetInterval[1] = {{ wxLua_wxTimerEvent_GetInterval, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimerEvent_GetInterval }}; -// int GetInterval() const; -static int LUACALL wxLua_wxTimerEvent_GetInterval(lua_State *L) -{ - // get this - wxTimerEvent * self = (wxTimerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimerEvent); - // call GetInterval - int returns = (self->GetInterval()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimerEvent_GetTimer[] = { &wxluatype_wxTimerEvent, NULL }; -static int LUACALL wxLua_wxTimerEvent_GetTimer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimerEvent_GetTimer[1] = {{ wxLua_wxTimerEvent_GetTimer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimerEvent_GetTimer }}; -// wxTimer& GetTimer() const; -static int LUACALL wxLua_wxTimerEvent_GetTimer(lua_State *L) -{ - // get this - wxTimerEvent * self = (wxTimerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimerEvent); - // call GetTimer - wxTimer* returns = (wxTimer*)&self->GetTimer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimerEvent_delete[] = { &wxluatype_wxTimerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTimerEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimerEvent_constructor[] = { &wxluatype_wxTimer, NULL }; -static int LUACALL wxLua_wxTimerEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimerEvent_constructor[1] = {{ wxLua_wxTimerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTimerEvent_constructor }}; -// wxTimerEvent(wxTimer& timer); -static int LUACALL wxLua_wxTimerEvent_constructor(lua_State *L) -{ - // wxTimer timer - wxTimer * timer = (wxTimer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimer); - // call constructor - wxTimerEvent* returns = new wxTimerEvent(*timer); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTimerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimerEvent); - - return 1; -} - - - - -void wxLua_wxTimerEvent_delete_function(void** p) -{ - wxTimerEvent* o = (wxTimerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTimerEvent_methods[] = { - { "GetInterval", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimerEvent_GetInterval, 1, NULL }, - { "GetTimer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimerEvent_GetTimer, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTimerEvent_delete, 1, NULL }, - { "wxTimerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTimerEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTimerEvent_methodCount = sizeof(wxTimerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTimer && wxUSE_TIMER - diff --git a/wxLua/modules/wxbind/src/wxcore_dialogs.cpp b/wxLua/modules/wxbind/src/wxcore_dialogs.cpp deleted file mode 100644 index b01c2d32..00000000 --- a/wxLua/modules/wxbind/src/wxcore_dialogs.cpp +++ /dev/null @@ -1,3533 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_dialogs.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxDialog -// --------------------------------------------------------------------------- -// Bind class wxDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDialog' -int wxluatype_wxDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_Create[] = { &wxluatype_wxDialog, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_Create[1] = {{ wxLua_wxDialog_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxDialog_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = "wxDialog"); -static int LUACALL wxLua_wxDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDialog" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxDialog"))); - // long style = wxDEFAULT_DIALOG_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_DIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call Create - bool returns = (self->Create(parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_CreateButtonSizer[] = { &wxluatype_wxDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDialog_CreateButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_CreateButtonSizer[1] = {{ wxLua_wxDialog_CreateButtonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDialog_CreateButtonSizer }}; -// wxUSE_BUTTON wxSizer* CreateButtonSizer(long flags); -static int LUACALL wxLua_wxDialog_CreateButtonSizer(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call CreateButtonSizer - wxSizer* returns = (wxSizer*)self->CreateButtonSizer(flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_BUTTON) && (wxLUA_USE_wxDialog)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_CreateSeparatedButtonSizer[] = { &wxluatype_wxDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDialog_CreateSeparatedButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_CreateSeparatedButtonSizer[1] = {{ wxLua_wxDialog_CreateSeparatedButtonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDialog_CreateSeparatedButtonSizer }}; -// %wxchkver_2_8&&wxUSE_BUTTON wxSizer *CreateSeparatedButtonSizer(long flags); -static int LUACALL wxLua_wxDialog_CreateSeparatedButtonSizer(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call CreateSeparatedButtonSizer - wxSizer* returns = (wxSizer*)self->CreateSeparatedButtonSizer(flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_BUTTON) && (wxLUA_USE_wxDialog)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_CreateStdDialogButtonSizer[] = { &wxluatype_wxDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDialog_CreateStdDialogButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_CreateStdDialogButtonSizer[1] = {{ wxLua_wxDialog_CreateStdDialogButtonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDialog_CreateStdDialogButtonSizer }}; -// wxUSE_BUTTON wxStdDialogButtonSizer* CreateStdDialogButtonSizer(long flags); -static int LUACALL wxLua_wxDialog_CreateStdDialogButtonSizer(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call CreateStdDialogButtonSizer - wxStdDialogButtonSizer* returns = (wxStdDialogButtonSizer*)self->CreateStdDialogButtonSizer(flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStdDialogButtonSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_STATTEXT)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_CreateTextSizer[] = { &wxluatype_wxDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDialog_CreateTextSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_CreateTextSizer[1] = {{ wxLua_wxDialog_CreateTextSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDialog_CreateTextSizer }}; -// wxUSE_STATTEXT wxSizer *CreateTextSizer(const wxString &message); -static int LUACALL wxLua_wxDialog_CreateTextSizer(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call CreateTextSizer - wxSizer* returns = (wxSizer*)self->CreateTextSizer(message); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_STATTEXT)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_EndModal[] = { &wxluatype_wxDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDialog_EndModal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_EndModal[1] = {{ wxLua_wxDialog_EndModal, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDialog_EndModal }}; -// void EndModal(int retCode); -static int LUACALL wxLua_wxDialog_EndModal(lua_State *L) -{ - // int retCode - int retCode = (int)wxlua_getnumbertype(L, 2); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call EndModal - self->EndModal(retCode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_GetReturnCode[] = { &wxluatype_wxDialog, NULL }; -static int LUACALL wxLua_wxDialog_GetReturnCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_GetReturnCode[1] = {{ wxLua_wxDialog_GetReturnCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDialog_GetReturnCode }}; -// int GetReturnCode(); -static int LUACALL wxLua_wxDialog_GetReturnCode(lua_State *L) -{ - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call GetReturnCode - int returns = (self->GetReturnCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_IsModal[] = { &wxluatype_wxDialog, NULL }; -static int LUACALL wxLua_wxDialog_IsModal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_IsModal[1] = {{ wxLua_wxDialog_IsModal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDialog_IsModal }}; -// bool IsModal() const; -static int LUACALL wxLua_wxDialog_IsModal(lua_State *L) -{ - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call IsModal - bool returns = (self->IsModal()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_SetReturnCode[] = { &wxluatype_wxDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDialog_SetReturnCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_SetReturnCode[1] = {{ wxLua_wxDialog_SetReturnCode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDialog_SetReturnCode }}; -// void SetReturnCode(int retCode); -static int LUACALL wxLua_wxDialog_SetReturnCode(lua_State *L) -{ - // int retCode - int retCode = (int)wxlua_getnumbertype(L, 2); - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call SetReturnCode - self->SetReturnCode(retCode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_ShowModal[] = { &wxluatype_wxDialog, NULL }; -static int LUACALL wxLua_wxDialog_ShowModal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_ShowModal[1] = {{ wxLua_wxDialog_ShowModal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDialog_ShowModal }}; -// int ShowModal(); -static int LUACALL wxLua_wxDialog_ShowModal(lua_State *L) -{ - // get this - wxDialog * self = (wxDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDialog); - // call ShowModal - int returns = (self->ShowModal()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDialog_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDialog_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_constructor1[1] = {{ wxLua_wxDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxDialog_constructor1 }}; -// wxDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = "wxDialog"); -static int LUACALL wxLua_wxDialog_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDialog" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxDialog"))); - // long style = wxDEFAULT_DIALOG_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_DIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDialog* returns = new wxDialog(parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxDialog_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_constructor[1] = {{ wxLua_wxDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDialog(); -static int LUACALL wxLua_wxDialog_constructor(lua_State *L) -{ - // call constructor - wxDialog* returns = new wxDialog(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDialog); - - return 1; -} - - - - -#if ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDialog) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDialog_constructor_overload[] = -{ - -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxDialog_constructor1 }, -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDialog_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDialog_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDialog) - -void wxLua_wxDialog_delete_function(void** p) -{ - wxDialog* o = (wxDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDialog_methods[] = { -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_Create, 1, NULL }, -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) - { "CreateButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_CreateButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_BUTTON) && (wxLUA_USE_wxDialog)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "CreateSeparatedButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_CreateSeparatedButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_BUTTON) && (wxLUA_USE_wxDialog)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) - { "CreateStdDialogButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_CreateStdDialogButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && ((wxLUA_USE_wxDialog) && (wxUSE_BUTTON)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_STATTEXT)) - { "CreateTextSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_CreateTextSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxLUA_USE_wxDialog) && (wxUSE_STATTEXT)) - - { "EndModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_EndModal, 1, NULL }, - { "GetReturnCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_GetReturnCode, 1, NULL }, - { "IsModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_IsModal, 1, NULL }, - { "SetReturnCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_SetReturnCode, 1, NULL }, - { "ShowModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDialog_ShowModal, 1, NULL }, - -#if ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDialog) - { "wxDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDialog_constructor_overload, s_wxluafunc_wxLua_wxDialog_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDialog) - - { 0, 0, 0, 0 }, -}; - -int wxDialog_methodCount = sizeof(wxDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDialog - - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG -// --------------------------------------------------------------------------- -// Bind class wxColourDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourDialog' -int wxluatype_wxColourDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourDialog_GetColourData[] = { &wxluatype_wxColourDialog, NULL }; -static int LUACALL wxLua_wxColourDialog_GetColourData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDialog_GetColourData[1] = {{ wxLua_wxColourDialog_GetColourData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourDialog_GetColourData }}; -// wxColourData& GetColourData(); -static int LUACALL wxLua_wxColourDialog_GetColourData(lua_State *L) -{ - // get this - wxColourDialog * self = (wxColourDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourDialog); - // call GetColourData - wxColourData* returns = (wxColourData*)&self->GetColourData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxColourData, NULL }; -static int LUACALL wxLua_wxColourDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDialog_constructor[1] = {{ wxLua_wxColourDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxColourDialog_constructor }}; -// wxColourDialog(wxWindow* parent, wxColourData* data = NULL); -static int LUACALL wxLua_wxColourDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxColourData data = NULL - wxColourData * data = (argCount >= 2 ? (wxColourData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColourData) : NULL); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxColourDialog* returns = new wxColourDialog(parent, data); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourDialog); - - return 1; -} - - - - -void wxLua_wxColourDialog_delete_function(void** p) -{ - wxColourDialog* o = (wxColourDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourDialog_methods[] = { - { "GetColourData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourDialog_GetColourData, 1, NULL }, - { "wxColourDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourDialog_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxColourDialog_methodCount = sizeof(wxColourDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - - -#if wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG -// --------------------------------------------------------------------------- -// Bind class wxColourData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourData' -int wxluatype_wxColourData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_GetChooseFull[] = { &wxluatype_wxColourData, NULL }; -static int LUACALL wxLua_wxColourData_GetChooseFull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_GetChooseFull[1] = {{ wxLua_wxColourData_GetChooseFull, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourData_GetChooseFull }}; -// bool GetChooseFull() const; -static int LUACALL wxLua_wxColourData_GetChooseFull(lua_State *L) -{ - // get this - wxColourData * self = (wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call GetChooseFull - bool returns = (self->GetChooseFull()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_GetColour[] = { &wxluatype_wxColourData, NULL }; -static int LUACALL wxLua_wxColourData_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_GetColour[1] = {{ wxLua_wxColourData_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourData_GetColour }}; -// wxColour GetColour() const; -static int LUACALL wxLua_wxColourData_GetColour(lua_State *L) -{ - // get this - wxColourData * self = (wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_GetCustomColour[] = { &wxluatype_wxColourData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxColourData_GetCustomColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_GetCustomColour[1] = {{ wxLua_wxColourData_GetCustomColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourData_GetCustomColour }}; -// wxColour GetCustomColour(int i) const; -static int LUACALL wxLua_wxColourData_GetCustomColour(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxColourData * self = (wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call GetCustomColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCustomColour(i)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_SetChooseFull[] = { &wxluatype_wxColourData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxColourData_SetChooseFull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_SetChooseFull[1] = {{ wxLua_wxColourData_SetChooseFull, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourData_SetChooseFull }}; -// void SetChooseFull(bool flag); -static int LUACALL wxLua_wxColourData_SetChooseFull(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxColourData * self = (wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call SetChooseFull - self->SetChooseFull(flag); - - return 0; -} - - -#if (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_SetColour[] = { &wxluatype_wxColourData, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourData_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_SetColour[1] = {{ wxLua_wxColourData_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourData_SetColour }}; -// void SetColour(wxColour &colour); -static int LUACALL wxLua_wxColourData_SetColour(lua_State *L) -{ - // wxColour colour - wxColour * colour = (wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColourData * self = (wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_SetCustomColour[] = { &wxluatype_wxColourData, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourData_SetCustomColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_SetCustomColour[1] = {{ wxLua_wxColourData_SetCustomColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxColourData_SetCustomColour }}; -// void SetCustomColour(int i, wxColour &colour); -static int LUACALL wxLua_wxColourData_SetCustomColour(lua_State *L) -{ - // wxColour colour - wxColour * colour = (wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxColourData * self = (wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call SetCustomColour - self->SetCustomColour(i, *colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_delete[] = { &wxluatype_wxColourData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxColourData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourData_constructor1[] = { &wxluatype_wxColourData, NULL }; -static int LUACALL wxLua_wxColourData_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_constructor1[1] = {{ wxLua_wxColourData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourData_constructor1 }}; -// wxColourData(const wxColourData& cData); -static int LUACALL wxLua_wxColourData_constructor1(lua_State *L) -{ - // const wxColourData cData - const wxColourData * cData = (const wxColourData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourData); - // call constructor - wxColourData* returns = new wxColourData(*cData); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourData); - - return 1; -} - -static int LUACALL wxLua_wxColourData_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_constructor[1] = {{ wxLua_wxColourData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxColourData(); -static int LUACALL wxLua_wxColourData_constructor(lua_State *L) -{ - // call constructor - wxColourData* returns = new wxColourData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourData); - - return 1; -} - - - - -#if (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourData_constructor_overload[] = -{ - { wxLua_wxColourData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourData_constructor1 }, - { wxLua_wxColourData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxColourData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxColourData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) - -void wxLua_wxColourData_delete_function(void** p) -{ - wxColourData* o = (wxColourData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourData_methods[] = { - { "GetChooseFull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourData_GetChooseFull, 1, NULL }, - -#if (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourData_GetColour, 1, NULL }, - { "GetCustomColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourData_GetCustomColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) - - { "SetChooseFull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourData_SetChooseFull, 1, NULL }, - -#if (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourData_SetColour, 1, NULL }, - { "SetCustomColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourData_SetCustomColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) && (wxLUA_USE_wxColourPenBrush) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxColourData_delete, 1, NULL }, - -#if (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) - { "wxColourData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourData_constructor_overload, s_wxluafunc_wxLua_wxColourData_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG) - - { 0, 0, 0, 0 }, -}; - -int wxColourData_methodCount = sizeof(wxColourData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxColourDialog && wxUSE_COLOURDLG - - -#if wxLUA_USE_wxFileDialog && wxUSE_FILEDLG -// --------------------------------------------------------------------------- -// Bind class wxFileDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileDialog' -int wxluatype_wxFileDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetDirectory[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetDirectory[1] = {{ wxLua_wxFileDialog_GetDirectory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetDirectory }}; -// wxString GetDirectory() const; -static int LUACALL wxLua_wxFileDialog_GetDirectory(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetDirectory - wxString returns = (self->GetDirectory()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetFilename[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetFilename[1] = {{ wxLua_wxFileDialog_GetFilename, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetFilename }}; -// wxString GetFilename() const; -static int LUACALL wxLua_wxFileDialog_GetFilename(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetFilename - wxString returns = (self->GetFilename()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetFilenames[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetFilenames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetFilenames[1] = {{ wxLua_wxFileDialog_GetFilenames, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetFilenames }}; -// %override wxLua_wxFileDialog_GetFilenames -// void GetFilenames(wxArrayString& filenames) const -static int LUACALL wxLua_wxFileDialog_GetFilenames(lua_State *L) -{ - wxArrayString fileNames; - wxFileDialog *self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetPaths - self->GetFilenames(fileNames); - // return values - wxlua_pushwxArrayStringtable(L, fileNames); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetFilterIndex[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetFilterIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetFilterIndex[1] = {{ wxLua_wxFileDialog_GetFilterIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetFilterIndex }}; -// int GetFilterIndex() const; -static int LUACALL wxLua_wxFileDialog_GetFilterIndex(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetFilterIndex - int returns = (self->GetFilterIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetMessage[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetMessage[1] = {{ wxLua_wxFileDialog_GetMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetMessage }}; -// wxString GetMessage() const; -static int LUACALL wxLua_wxFileDialog_GetMessage(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetMessage - wxString returns = (self->GetMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetPath[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetPath[1] = {{ wxLua_wxFileDialog_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxFileDialog_GetPath(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetPaths[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetPaths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetPaths[1] = {{ wxLua_wxFileDialog_GetPaths, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetPaths }}; -// %override wxLua_wxFileDialog_GetPaths -// void GetPaths(wxArrayString& paths) const -static int LUACALL wxLua_wxFileDialog_GetPaths(lua_State *L) -{ - wxArrayString paths; - wxFileDialog *self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetPaths - self->GetPaths(paths); - // return values - wxlua_pushwxArrayStringtable(L, paths); - // return the number of parameters - return 1; -} - - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetStyle[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetStyle[1] = {{ wxLua_wxFileDialog_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetStyle }}; -// !%wxchkver_2_8 long GetStyle() const; -static int LUACALL wxLua_wxFileDialog_GetStyle(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetStyle - long returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_GetWildcard[] = { &wxluatype_wxFileDialog, NULL }; -static int LUACALL wxLua_wxFileDialog_GetWildcard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetWildcard[1] = {{ wxLua_wxFileDialog_GetWildcard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDialog_GetWildcard }}; -// wxString GetWildcard() const; -static int LUACALL wxLua_wxFileDialog_GetWildcard(lua_State *L) -{ - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call GetWildcard - wxString returns = (self->GetWildcard()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetDirectory[] = { &wxluatype_wxFileDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDialog_SetDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetDirectory[1] = {{ wxLua_wxFileDialog_SetDirectory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetDirectory }}; -// void SetDirectory(const wxString& directory); -static int LUACALL wxLua_wxFileDialog_SetDirectory(lua_State *L) -{ - // const wxString directory - const wxString directory = wxlua_getwxStringtype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetDirectory - self->SetDirectory(directory); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetFilename[] = { &wxluatype_wxFileDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDialog_SetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetFilename[1] = {{ wxLua_wxFileDialog_SetFilename, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetFilename }}; -// void SetFilename(const wxString& setfilename); -static int LUACALL wxLua_wxFileDialog_SetFilename(lua_State *L) -{ - // const wxString setfilename - const wxString setfilename = wxlua_getwxStringtype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetFilename - self->SetFilename(setfilename); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetFilterIndex[] = { &wxluatype_wxFileDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileDialog_SetFilterIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetFilterIndex[1] = {{ wxLua_wxFileDialog_SetFilterIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetFilterIndex }}; -// void SetFilterIndex(int filterIndex); -static int LUACALL wxLua_wxFileDialog_SetFilterIndex(lua_State *L) -{ - // int filterIndex - int filterIndex = (int)wxlua_getnumbertype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetFilterIndex - self->SetFilterIndex(filterIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetMessage[] = { &wxluatype_wxFileDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDialog_SetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetMessage[1] = {{ wxLua_wxFileDialog_SetMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetMessage }}; -// void SetMessage(const wxString& message); -static int LUACALL wxLua_wxFileDialog_SetMessage(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetMessage - self->SetMessage(message); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetPath[] = { &wxluatype_wxFileDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDialog_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetPath[1] = {{ wxLua_wxFileDialog_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetPath }}; -// void SetPath(const wxString& path); -static int LUACALL wxLua_wxFileDialog_SetPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetPath - self->SetPath(path); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetStyle[] = { &wxluatype_wxFileDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileDialog_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetStyle[1] = {{ wxLua_wxFileDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetStyle }}; -// !%wxchkver_2_8 void SetStyle(long style); -static int LUACALL wxLua_wxFileDialog_SetStyle(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_SetWildcard[] = { &wxluatype_wxFileDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDialog_SetWildcard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetWildcard[1] = {{ wxLua_wxFileDialog_SetWildcard, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDialog_SetWildcard }}; -// void SetWildcard(const wxString& wildCard); -static int LUACALL wxLua_wxFileDialog_SetWildcard(lua_State *L) -{ - // const wxString wildCard - const wxString wildCard = wxlua_getwxStringtype(L, 2); - // get this - wxFileDialog * self = (wxFileDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDialog); - // call SetWildcard - self->SetWildcard(wildCard); - - return 0; -} - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_constructor[1] = {{ wxLua_wxFileDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 9, s_wxluatypeArray_wxLua_wxFileDialog_constructor }}; -// %not_overload %wxchkver_2_8 wxFileDialog(wxWindow *parent, const wxString& message = wxFileSelectorPromptStr, const wxString& defaultDir = "", const wxString& defaultFile = "", const wxString& wildCard = wxFileSelectorDefaultWildcardStr, long style = wxFD_DEFAULT_STYLE, const wxPoint& pos = wxDefaultPosition, const wxSize& sz = wxDefaultSize, const wxString& name = "wxFileDialog"); -static int LUACALL wxLua_wxFileDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFileDialog" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxFileDialog"))); - // const wxSize sz = wxDefaultSize - const wxSize * sz = (argCount >= 8 ? (const wxSize *)wxluaT_getuserdatatype(L, 8, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxFD_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxFD_DEFAULT_STYLE); - // const wxString wildCard = wxFileSelectorDefaultWildcardStr - const wxString wildCard = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxFileSelectorDefaultWildcardStr)); - // const wxString defaultFile = "" - const wxString defaultFile = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString defaultDir = "" - const wxString defaultDir = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString message = wxFileSelectorPromptStr - const wxString message = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxFileSelectorPromptStr)); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFileDialog* returns = new wxFileDialog(parent, message, defaultDir, defaultFile, wildCard, style, *pos, *sz, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileDialog); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxFileDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_constructor[1] = {{ wxLua_wxFileDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 7, s_wxluatypeArray_wxLua_wxFileDialog_constructor }}; -// %not_overload !%wxchkver_2_8 wxFileDialog(wxWindow* parent, const wxString& message = "Choose a file", const wxString& defaultDir = "", const wxString& defaultFile = "", const wxString& wildcard = "*.*", long style = 0, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxFileDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxString wildcard = "*.*" - const wxString wildcard = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxT("*.*"))); - // const wxString defaultFile = "" - const wxString defaultFile = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString defaultDir = "" - const wxString defaultDir = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString message = "Choose a file" - const wxString message = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Choose a file"))); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFileDialog* returns = new wxFileDialog(parent, message, defaultDir, defaultFile, wildcard, style, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileDialog); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxFileDialog_delete_function(void** p) -{ - wxFileDialog* o = (wxFileDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileDialog_methods[] = { - { "GetDirectory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetDirectory, 1, NULL }, - { "GetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetFilename, 1, NULL }, - { "GetFilenames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetFilenames, 1, NULL }, - { "GetFilterIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetFilterIndex, 1, NULL }, - { "GetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetMessage, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetPath, 1, NULL }, - { "GetPaths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetPaths, 1, NULL }, - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetStyle, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - - { "GetWildcard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetWildcard, 1, NULL }, - { "SetDirectory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetDirectory, 1, NULL }, - { "SetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetFilename, 1, NULL }, - { "SetFilterIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetFilterIndex, 1, NULL }, - { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetMessage, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetPath, 1, NULL }, - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetStyle, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) - - { "SetWildcard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetWildcard, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) - { "wxFileDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileDialog_constructor, 1, NULL }, -#elif (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) - { "wxFileDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileDialog_constructor, 1, NULL }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG)) && (wxLUA_USE_wxPointSizeRect) - { 0, 0, 0, 0 }, -}; - -int wxFileDialog_methodCount = sizeof(wxFileDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFileDialog && wxUSE_FILEDLG - - -#if wxLUA_USE_wxDirDialog && wxUSE_DIRDLG -// --------------------------------------------------------------------------- -// Bind class wxDirDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDirDialog' -int wxluatype_wxDirDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_GetMessage[] = { &wxluatype_wxDirDialog, NULL }; -static int LUACALL wxLua_wxDirDialog_GetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_GetMessage[1] = {{ wxLua_wxDirDialog_GetMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDirDialog_GetMessage }}; -// wxString GetMessage() const; -static int LUACALL wxLua_wxDirDialog_GetMessage(lua_State *L) -{ - // get this - wxDirDialog * self = (wxDirDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirDialog); - // call GetMessage - wxString returns = (self->GetMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_GetPath[] = { &wxluatype_wxDirDialog, NULL }; -static int LUACALL wxLua_wxDirDialog_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_GetPath[1] = {{ wxLua_wxDirDialog_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDirDialog_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxDirDialog_GetPath(lua_State *L) -{ - // get this - wxDirDialog * self = (wxDirDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirDialog); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_GetStyle[] = { &wxluatype_wxDirDialog, NULL }; -static int LUACALL wxLua_wxDirDialog_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_GetStyle[1] = {{ wxLua_wxDirDialog_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDirDialog_GetStyle }}; -// !%wxchkver_2_8 long GetStyle() const; -static int LUACALL wxLua_wxDirDialog_GetStyle(lua_State *L) -{ - // get this - wxDirDialog * self = (wxDirDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirDialog); - // call GetStyle - long returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_SetMessage[] = { &wxluatype_wxDirDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDirDialog_SetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_SetMessage[1] = {{ wxLua_wxDirDialog_SetMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDirDialog_SetMessage }}; -// void SetMessage(const wxString& message); -static int LUACALL wxLua_wxDirDialog_SetMessage(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxDirDialog * self = (wxDirDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirDialog); - // call SetMessage - self->SetMessage(message); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_SetPath[] = { &wxluatype_wxDirDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDirDialog_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_SetPath[1] = {{ wxLua_wxDirDialog_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDirDialog_SetPath }}; -// void SetPath(const wxString& path); -static int LUACALL wxLua_wxDirDialog_SetPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxDirDialog * self = (wxDirDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirDialog); - // call SetPath - self->SetPath(path); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_SetStyle[] = { &wxluatype_wxDirDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDirDialog_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_SetStyle[1] = {{ wxLua_wxDirDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDirDialog_SetStyle }}; -// !%wxchkver_2_8 void SetStyle(long style); -static int LUACALL wxLua_wxDirDialog_SetStyle(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxDirDialog * self = (wxDirDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirDialog); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - -#if (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxDirDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_constructor[1] = {{ wxLua_wxDirDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxDirDialog_constructor }}; -// wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = 0, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxDirDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = 0 - long style = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // const wxString defaultPath = "" - const wxString defaultPath = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString message = "Choose a directory" - const wxString message = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("Choose a directory"))); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDirDialog* returns = new wxDirDialog(parent, message, defaultPath, style, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDirDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxDirDialog_delete_function(void** p) -{ - wxDirDialog* o = (wxDirDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDirDialog_methods[] = { - { "GetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetMessage, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetPath, 1, NULL }, - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetStyle, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - - { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetMessage, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetPath, 1, NULL }, - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetStyle, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) - -#if (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - { "wxDirDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDirDialog_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxDirDialog_methodCount = sizeof(wxDirDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDirDialog && wxUSE_DIRDLG - - -#if wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG -// --------------------------------------------------------------------------- -// Bind class wxMessageDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMessageDialog' -int wxluatype_wxMessageDialog = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetCancelLabel[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetCancelLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetCancelLabel[1] = {{ wxLua_wxMessageDialog_GetCancelLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetCancelLabel }}; -// %wxchkver_2_9_0 wxString GetCancelLabel() const; -static int LUACALL wxLua_wxMessageDialog_GetCancelLabel(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetCancelLabel - wxString returns = (self->GetCancelLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetCaption[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetCaption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetCaption[1] = {{ wxLua_wxMessageDialog_GetCaption, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetCaption }}; -// %wxchkver_2_9_3 wxString GetCaption() const; -static int LUACALL wxLua_wxMessageDialog_GetCaption(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetCaption - wxString returns = (self->GetCaption()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetEffectiveIcon[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetEffectiveIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetEffectiveIcon[1] = {{ wxLua_wxMessageDialog_GetEffectiveIcon, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetEffectiveIcon }}; -// %wxchkver_2_9_3 long GetEffectiveIcon() const; -static int LUACALL wxLua_wxMessageDialog_GetEffectiveIcon(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetEffectiveIcon - long returns = (self->GetEffectiveIcon()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetExtendedMessage[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetExtendedMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetExtendedMessage[1] = {{ wxLua_wxMessageDialog_GetExtendedMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetExtendedMessage }}; -// %wxchkver_2_9_0 wxString GetExtendedMessage() const; -static int LUACALL wxLua_wxMessageDialog_GetExtendedMessage(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetExtendedMessage - wxString returns = (self->GetExtendedMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetHelpLabel[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetHelpLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetHelpLabel[1] = {{ wxLua_wxMessageDialog_GetHelpLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetHelpLabel }}; -// %wxchkver_2_9_3 wxString GetHelpLabel() const; -static int LUACALL wxLua_wxMessageDialog_GetHelpLabel(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetHelpLabel - wxString returns = (self->GetHelpLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetMessage[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetMessage[1] = {{ wxLua_wxMessageDialog_GetMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetMessage }}; -// %wxchkver_2_9_0 wxString GetMessage() const; -static int LUACALL wxLua_wxMessageDialog_GetMessage(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetMessage - wxString returns = (self->GetMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetMessageDialogStyle[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetMessageDialogStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetMessageDialogStyle[1] = {{ wxLua_wxMessageDialog_GetMessageDialogStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetMessageDialogStyle }}; -// %wxchkver_2_9_0 long GetMessageDialogStyle() const; -static int LUACALL wxLua_wxMessageDialog_GetMessageDialogStyle(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetMessageDialogStyle - long returns = (self->GetMessageDialogStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetNoLabel[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetNoLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetNoLabel[1] = {{ wxLua_wxMessageDialog_GetNoLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetNoLabel }}; -// %wxchkver_2_9_0 wxString GetNoLabel() const; -static int LUACALL wxLua_wxMessageDialog_GetNoLabel(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetNoLabel - wxString returns = (self->GetNoLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetOKLabel[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetOKLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetOKLabel[1] = {{ wxLua_wxMessageDialog_GetOKLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetOKLabel }}; -// %wxchkver_2_9_0 wxString GetOKLabel() const; -static int LUACALL wxLua_wxMessageDialog_GetOKLabel(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetOKLabel - wxString returns = (self->GetOKLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_GetYesLabel[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_GetYesLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_GetYesLabel[1] = {{ wxLua_wxMessageDialog_GetYesLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_GetYesLabel }}; -// %wxchkver_2_9_0 wxString GetYesLabel() const; -static int LUACALL wxLua_wxMessageDialog_GetYesLabel(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call GetYesLabel - wxString returns = (self->GetYesLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_HasCustomLabels[] = { &wxluatype_wxMessageDialog, NULL }; -static int LUACALL wxLua_wxMessageDialog_HasCustomLabels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_HasCustomLabels[1] = {{ wxLua_wxMessageDialog_HasCustomLabels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMessageDialog_HasCustomLabels }}; -// %wxchkver_2_9_0 bool HasCustomLabels() const; -static int LUACALL wxLua_wxMessageDialog_HasCustomLabels(lua_State *L) -{ - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call HasCustomLabels - bool returns = (self->HasCustomLabels()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetExtendedMessage[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetExtendedMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetExtendedMessage[1] = {{ wxLua_wxMessageDialog_SetExtendedMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetExtendedMessage }}; -// %wxchkver_2_9_0 void SetExtendedMessage(const wxString& extendedMessage); -static int LUACALL wxLua_wxMessageDialog_SetExtendedMessage(lua_State *L) -{ - // const wxString extendedMessage - const wxString extendedMessage = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetExtendedMessage - self->SetExtendedMessage(extendedMessage); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetHelpLabel1[] = { &wxluatype_wxMessageDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetHelpLabel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel1[1] = {{ wxLua_wxMessageDialog_SetHelpLabel1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetHelpLabel1 }}; -// %wxchkver_2_9_3 bool SetHelpLabel(int help); -static int LUACALL wxLua_wxMessageDialog_SetHelpLabel1(lua_State *L) -{ - // int help - int help = (int)wxlua_getnumbertype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetHelpLabel - bool returns = (self->SetHelpLabel(help)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetHelpLabel[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetHelpLabel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel[1] = {{ wxLua_wxMessageDialog_SetHelpLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetHelpLabel }}; -// %wxchkver_2_9_3 bool SetHelpLabel(const wxString& help); -static int LUACALL wxLua_wxMessageDialog_SetHelpLabel(lua_State *L) -{ - // const wxString help - const wxString help = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetHelpLabel - bool returns = (self->SetHelpLabel(help)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetMessage[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetMessage[1] = {{ wxLua_wxMessageDialog_SetMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetMessage }}; -// %wxchkver_2_9_0 void SetMessage(const wxString& message); -static int LUACALL wxLua_wxMessageDialog_SetMessage(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetMessage - self->SetMessage(message); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetOKCancelLabels1[] = { &wxluatype_wxMessageDialog, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetOKCancelLabels1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels1[1] = {{ wxLua_wxMessageDialog_SetOKCancelLabels1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKCancelLabels1 }}; -// %wxchkver_2_9_0 bool SetOKCancelLabels(int ok, int cancel); -static int LUACALL wxLua_wxMessageDialog_SetOKCancelLabels1(lua_State *L) -{ - // int cancel - int cancel = (int)wxlua_getnumbertype(L, 3); - // int ok - int ok = (int)wxlua_getnumbertype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetOKCancelLabels - bool returns = (self->SetOKCancelLabels(ok, cancel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetOKCancelLabels[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetOKCancelLabels(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels[1] = {{ wxLua_wxMessageDialog_SetOKCancelLabels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKCancelLabels }}; -// %wxchkver_2_9_0 bool SetOKCancelLabels(const wxString& ok, const wxString& cancel); -static int LUACALL wxLua_wxMessageDialog_SetOKCancelLabels(lua_State *L) -{ - // const wxString cancel - const wxString cancel = wxlua_getwxStringtype(L, 3); - // const wxString ok - const wxString ok = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetOKCancelLabels - bool returns = (self->SetOKCancelLabels(ok, cancel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetOKLabel1[] = { &wxluatype_wxMessageDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetOKLabel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel1[1] = {{ wxLua_wxMessageDialog_SetOKLabel1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKLabel1 }}; -// %wxchkver_2_9_0 bool SetOKLabel(int ok); -static int LUACALL wxLua_wxMessageDialog_SetOKLabel1(lua_State *L) -{ - // int ok - int ok = (int)wxlua_getnumbertype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetOKLabel - bool returns = (self->SetOKLabel(ok)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetOKLabel[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetOKLabel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel[1] = {{ wxLua_wxMessageDialog_SetOKLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKLabel }}; -// %wxchkver_2_9_0 bool SetOKLabel(const wxString& ok); -static int LUACALL wxLua_wxMessageDialog_SetOKLabel(lua_State *L) -{ - // const wxString ok - const wxString ok = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetOKLabel - bool returns = (self->SetOKLabel(ok)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoCancelLabels1[] = { &wxluatype_wxMessageDialog, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetYesNoCancelLabels1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels1[1] = {{ wxLua_wxMessageDialog_SetYesNoCancelLabels1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoCancelLabels1 }}; -// %wxchkver_2_9_0 bool SetYesNoCancelLabels(int yes, int no, int cancel); -static int LUACALL wxLua_wxMessageDialog_SetYesNoCancelLabels1(lua_State *L) -{ - // int cancel - int cancel = (int)wxlua_getnumbertype(L, 4); - // int no - int no = (int)wxlua_getnumbertype(L, 3); - // int yes - int yes = (int)wxlua_getnumbertype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetYesNoCancelLabels - bool returns = (self->SetYesNoCancelLabels(yes, no, cancel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoCancelLabels[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetYesNoCancelLabels(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels[1] = {{ wxLua_wxMessageDialog_SetYesNoCancelLabels, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoCancelLabels }}; -// %wxchkver_2_9_0 bool SetYesNoCancelLabels(const wxString& yes, const wxString& no, const wxString& cancel); -static int LUACALL wxLua_wxMessageDialog_SetYesNoCancelLabels(lua_State *L) -{ - // const wxString cancel - const wxString cancel = wxlua_getwxStringtype(L, 4); - // const wxString no - const wxString no = wxlua_getwxStringtype(L, 3); - // const wxString yes - const wxString yes = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetYesNoCancelLabels - bool returns = (self->SetYesNoCancelLabels(yes, no, cancel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoLabels1[] = { &wxluatype_wxMessageDialog, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetYesNoLabels1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels1[1] = {{ wxLua_wxMessageDialog_SetYesNoLabels1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoLabels1 }}; -// %wxchkver_2_9_0 bool SetYesNoLabels(int yes, int no); -static int LUACALL wxLua_wxMessageDialog_SetYesNoLabels1(lua_State *L) -{ - // int no - int no = (int)wxlua_getnumbertype(L, 3); - // int yes - int yes = (int)wxlua_getnumbertype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetYesNoLabels - bool returns = (self->SetYesNoLabels(yes, no)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoLabels[] = { &wxluatype_wxMessageDialog, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMessageDialog_SetYesNoLabels(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels[1] = {{ wxLua_wxMessageDialog_SetYesNoLabels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoLabels }}; -// %wxchkver_2_9_0 bool SetYesNoLabels(const wxString& yes, const wxString& no); -static int LUACALL wxLua_wxMessageDialog_SetYesNoLabels(lua_State *L) -{ - // const wxString no - const wxString no = wxlua_getwxStringtype(L, 3); - // const wxString yes - const wxString yes = wxlua_getwxStringtype(L, 2); - // get this - wxMessageDialog * self = (wxMessageDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMessageDialog); - // call SetYesNoLabels - bool returns = (self->SetYesNoLabels(yes, no)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMessageDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxMessageDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_constructor[1] = {{ wxLua_wxMessageDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 5, s_wxluatypeArray_wxLua_wxMessageDialog_constructor }}; -// wxMessageDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Message box", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxMessageDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxOK | wxCANCEL | wxCENTRE - long style = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : wxOK | wxCANCEL | wxCENTRE); - // const wxString caption = "Message box" - const wxString caption = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("Message box"))); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxMessageDialog* returns = new wxMessageDialog(parent, message, caption, style, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMessageDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) && (wxLUA_USE_wxPointSizeRect) - - - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel_overload[] = -{ - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetHelpLabel1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetHelpLabel1 }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetHelpLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetHelpLabel }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -}; -static int s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel_overload_count = sizeof(s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels_overload[] = -{ - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetOKCancelLabels1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKCancelLabels1 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetOKCancelLabels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKCancelLabels }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -}; -static int s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels_overload_count = sizeof(s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel_overload[] = -{ - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetOKLabel1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKLabel1 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetOKLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMessageDialog_SetOKLabel }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -}; -static int s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel_overload_count = sizeof(s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels_overload[] = -{ - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetYesNoCancelLabels1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoCancelLabels1 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetYesNoCancelLabels, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoCancelLabels }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -}; -static int s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels_overload_count = sizeof(s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels_overload[] = -{ - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetYesNoLabels1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoLabels1 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { wxLua_wxMessageDialog_SetYesNoLabels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMessageDialog_SetYesNoLabels }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) -}; -static int s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels_overload_count = sizeof(s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) - -void wxLua_wxMessageDialog_delete_function(void** p) -{ - wxMessageDialog* o = (wxMessageDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMessageDialog_methods[] = { -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { "GetCancelLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetCancelLabel, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { "GetCaption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetCaption, 1, NULL }, - { "GetEffectiveIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetEffectiveIcon, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { "GetExtendedMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetExtendedMessage, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { "GetHelpLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetHelpLabel, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { "GetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetMessage, 1, NULL }, - { "GetMessageDialogStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetMessageDialogStyle, 1, NULL }, - { "GetNoLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetNoLabel, 1, NULL }, - { "GetOKLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetOKLabel, 1, NULL }, - { "GetYesLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_GetYesLabel, 1, NULL }, - { "HasCustomLabels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_HasCustomLabels, 1, NULL }, - { "SetExtendedMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetExtendedMessage, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) - { "SetHelpLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel_overload, s_wxluafunc_wxLua_wxMessageDialog_SetHelpLabel_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,9,3)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetMessage, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) - { "SetOKCancelLabels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels_overload, s_wxluafunc_wxLua_wxMessageDialog_SetOKCancelLabels_overload_count, 0 }, - { "SetOKLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel_overload, s_wxluafunc_wxLua_wxMessageDialog_SetOKLabel_overload_count, 0 }, - { "SetYesNoCancelLabels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels_overload, s_wxluafunc_wxLua_wxMessageDialog_SetYesNoCancelLabels_overload_count, 0 }, - { "SetYesNoLabels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels_overload, s_wxluafunc_wxLua_wxMessageDialog_SetYesNoLabels_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG)) - -#if (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) && (wxLUA_USE_wxPointSizeRect) - { "wxMessageDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMessageDialog_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxMessageDialog_methodCount = sizeof(wxMessageDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMessageDialog && wxUSE_MSGDLG - - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog -// --------------------------------------------------------------------------- -// Bind class wxMultiChoiceDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMultiChoiceDialog' -int wxluatype_wxMultiChoiceDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxArrayInt) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceDialog_GetSelections[] = { &wxluatype_wxMultiChoiceDialog, NULL }; -static int LUACALL wxLua_wxMultiChoiceDialog_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceDialog_GetSelections[1] = {{ wxLua_wxMultiChoiceDialog_GetSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMultiChoiceDialog_GetSelections }}; -// wxArrayInt GetSelections() const; // FIXME -static int LUACALL wxLua_wxMultiChoiceDialog_GetSelections(lua_State *L) -{ - // get this - wxMultiChoiceDialog * self = (wxMultiChoiceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMultiChoiceDialog); - // call GetSelections - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetSelections()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceDialog_SetSelections[] = { &wxluatype_wxMultiChoiceDialog, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxMultiChoiceDialog_SetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceDialog_SetSelections[1] = {{ wxLua_wxMultiChoiceDialog_SetSelections, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMultiChoiceDialog_SetSelections }}; -// void SetSelections(const wxArrayInt& selections) const; // FIXME -static int LUACALL wxLua_wxMultiChoiceDialog_SetSelections(lua_State *L) -{ - // const wxArrayInt selections - wxLuaSmartwxArrayInt selections = wxlua_getwxArrayInt(L, 2); - // get this - wxMultiChoiceDialog * self = (wxMultiChoiceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMultiChoiceDialog); - // call SetSelections - self->SetSelections(selections); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxMultiChoiceDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceDialog_constructor[1] = {{ wxLua_wxMultiChoiceDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 6, s_wxluatypeArray_wxLua_wxMultiChoiceDialog_constructor }}; -// wxMultiChoiceDialog(wxWindow* parent, const wxString& message, const wxString& caption, const wxArrayString& choices, long style = wxCHOICEDLG_STYLE, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxMultiChoiceDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxCHOICEDLG_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxCHOICEDLG_STYLE); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 4); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 3); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxMultiChoiceDialog* returns = new wxMultiChoiceDialog(parent, message, caption, choices, style, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMultiChoiceDialog); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) - - - -void wxLua_wxMultiChoiceDialog_delete_function(void** p) -{ - wxMultiChoiceDialog* o = (wxMultiChoiceDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMultiChoiceDialog_methods[] = { -#if (wxLUA_USE_wxArrayInt) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMultiChoiceDialog_GetSelections, 1, NULL }, - { "SetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMultiChoiceDialog_SetSelections, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) - { "wxMultiChoiceDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMultiChoiceDialog_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog) - - { 0, 0, 0, 0 }, -}; - -int wxMultiChoiceDialog_methodCount = sizeof(wxMultiChoiceDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxMultiChoiceDialog - - -#if wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog -// --------------------------------------------------------------------------- -// Bind class wxSingleChoiceDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSingleChoiceDialog' -int wxluatype_wxSingleChoiceDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleChoiceDialog_GetSelection[] = { &wxluatype_wxSingleChoiceDialog, NULL }; -static int LUACALL wxLua_wxSingleChoiceDialog_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleChoiceDialog_GetSelection[1] = {{ wxLua_wxSingleChoiceDialog_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSingleChoiceDialog_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxSingleChoiceDialog_GetSelection(lua_State *L) -{ - // get this - wxSingleChoiceDialog * self = (wxSingleChoiceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSingleChoiceDialog); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleChoiceDialog_GetStringSelection[] = { &wxluatype_wxSingleChoiceDialog, NULL }; -static int LUACALL wxLua_wxSingleChoiceDialog_GetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleChoiceDialog_GetStringSelection[1] = {{ wxLua_wxSingleChoiceDialog_GetStringSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSingleChoiceDialog_GetStringSelection }}; -// wxString GetStringSelection() const; -static int LUACALL wxLua_wxSingleChoiceDialog_GetStringSelection(lua_State *L) -{ - // get this - wxSingleChoiceDialog * self = (wxSingleChoiceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSingleChoiceDialog); - // call GetStringSelection - wxString returns = (self->GetStringSelection()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleChoiceDialog_SetSelection[] = { &wxluatype_wxSingleChoiceDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSingleChoiceDialog_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleChoiceDialog_SetSelection[1] = {{ wxLua_wxSingleChoiceDialog_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSingleChoiceDialog_SetSelection }}; -// void SetSelection(int selection) const; -static int LUACALL wxLua_wxSingleChoiceDialog_SetSelection(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxSingleChoiceDialog * self = (wxSingleChoiceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSingleChoiceDialog); - // call SetSelection - self->SetSelection(selection); - - return 0; -} - - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSingleChoiceDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxSingleChoiceDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSingleChoiceDialog_constructor[1] = {{ wxLua_wxSingleChoiceDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 6, s_wxluatypeArray_wxLua_wxSingleChoiceDialog_constructor }}; -// %override wxLua_wxSingleChoiceDialog_constructor -// wxSingleChoiceDialog(wxWindow* parent, const wxString& message, const wxString& caption, const wxArrayString& choices, long style = wxCHOICEDLG_STYLE, const wxPoint& pos = wxDefaultPosition) -static int LUACALL wxLua_wxSingleChoiceDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxCHOICEDLG_STYLE - long style = (argCount >= 5 ? (long)wxlua_getintegertype(L, 5) : wxCHOICEDLG_STYLE); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 4); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 3); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSingleChoiceDialog *returns = new wxSingleChoiceDialog(parent, message, caption, choices, (void**)NULL, style, *pos); - // add to tracked window list - if (returns && returns->IsKindOf(CLASSINFO(wxWindow))) - wxluaW_addtrackedwindow(L, (wxWindow*)returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSingleChoiceDialog); - - return 1; -} - - -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog) - - - -void wxLua_wxSingleChoiceDialog_delete_function(void** p) -{ - wxSingleChoiceDialog* o = (wxSingleChoiceDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSingleChoiceDialog_methods[] = { - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSingleChoiceDialog_GetSelection, 1, NULL }, - { "GetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSingleChoiceDialog_GetStringSelection, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSingleChoiceDialog_SetSelection, 1, NULL }, - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog) - { "wxSingleChoiceDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSingleChoiceDialog_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog) - - { 0, 0, 0, 0 }, -}; - -int wxSingleChoiceDialog_methodCount = sizeof(wxSingleChoiceDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_CHOICEDLG && wxLUA_USE_wxSingleChoiceDialog - - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog -// --------------------------------------------------------------------------- -// Bind class wxTextEntryDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextEntryDialog' -int wxluatype_wxTextEntryDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntryDialog_GetValue[] = { &wxluatype_wxTextEntryDialog, NULL }; -static int LUACALL wxLua_wxTextEntryDialog_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntryDialog_GetValue[1] = {{ wxLua_wxTextEntryDialog_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextEntryDialog_GetValue }}; -// wxString GetValue() const; -static int LUACALL wxLua_wxTextEntryDialog_GetValue(lua_State *L) -{ - // get this - wxTextEntryDialog * self = (wxTextEntryDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntryDialog); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntryDialog_SetValue[] = { &wxluatype_wxTextEntryDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextEntryDialog_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntryDialog_SetValue[1] = {{ wxLua_wxTextEntryDialog_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextEntryDialog_SetValue }}; -// void SetValue(const wxString& value); -static int LUACALL wxLua_wxTextEntryDialog_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxTextEntryDialog * self = (wxTextEntryDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextEntryDialog); - // call SetValue - self->SetValue(value); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextEntryDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxTextEntryDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextEntryDialog_constructor[1] = {{ wxLua_wxTextEntryDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxTextEntryDialog_constructor }}; -// wxTextEntryDialog(wxWindow* parent, const wxString& message, const wxString& caption = "Please enter text", const wxString& defaultValue = "", long style = wxOK | wxCANCEL | wxCENTRE, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxTextEntryDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxOK | wxCANCEL | wxCENTRE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxOK | wxCANCEL | wxCENTRE); - // const wxString defaultValue = "" - const wxString defaultValue = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString caption = "Please enter text" - const wxString caption = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("Please enter text"))); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTextEntryDialog* returns = new wxTextEntryDialog(parent, message, caption, defaultValue, style, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextEntryDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - - - -void wxLua_wxTextEntryDialog_delete_function(void** p) -{ - wxTextEntryDialog* o = (wxTextEntryDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextEntryDialog_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntryDialog_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextEntryDialog_SetValue, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - { "wxTextEntryDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextEntryDialog_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - - { 0, 0, 0, 0 }, -}; - -int wxTextEntryDialog_methodCount = sizeof(wxTextEntryDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - - -#if wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog -// --------------------------------------------------------------------------- -// Bind class wxPasswordEntryDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPasswordEntryDialog' -int wxluatype_wxPasswordEntryDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPasswordEntryDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPasswordEntryDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPasswordEntryDialog_constructor[1] = {{ wxLua_wxPasswordEntryDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxPasswordEntryDialog_constructor }}; -// wxPasswordEntryDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxGetPasswordFromUserPromptStr, const wxString& value = "", long style = wxTextEntryDialogStyle, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxPasswordEntryDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxTextEntryDialogStyle - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxTextEntryDialogStyle); - // const wxString value = "" - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString caption = wxGetPasswordFromUserPromptStr - const wxString caption = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxGetPasswordFromUserPromptStr)); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPasswordEntryDialog* returns = new wxPasswordEntryDialog(parent, message, caption, value, style, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPasswordEntryDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - - - -void wxLua_wxPasswordEntryDialog_delete_function(void** p) -{ - wxPasswordEntryDialog* o = (wxPasswordEntryDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPasswordEntryDialog_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - { "wxPasswordEntryDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPasswordEntryDialog_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog) - - { 0, 0, 0, 0 }, -}; - -int wxPasswordEntryDialog_methodCount = sizeof(wxPasswordEntryDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_TEXTDLG && wxLUA_USE_wxTextEntryDialog - - -#if wxUSE_FONTDLG && wxLUA_USE_wxFontDialog -// --------------------------------------------------------------------------- -// Bind class wxFontDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontDialog' -int wxluatype_wxFontDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontDialog_GetFontData[] = { &wxluatype_wxFontDialog, NULL }; -static int LUACALL wxLua_wxFontDialog_GetFontData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontDialog_GetFontData[1] = {{ wxLua_wxFontDialog_GetFontData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontDialog_GetFontData }}; -// wxFontData& GetFontData(); -static int LUACALL wxLua_wxFontDialog_GetFontData(lua_State *L) -{ - // get this - wxFontDialog * self = (wxFontDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontDialog); - // call GetFontData - wxFontData* returns = (wxFontData*)&self->GetFontData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontDialog_constructor[1] = {{ wxLua_wxFontDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxFontDialog_constructor }}; -// wxFontDialog(wxWindow* parent, const wxFontData& data); -static int LUACALL wxLua_wxFontDialog_constructor(lua_State *L) -{ - // const wxFontData data - const wxFontData * data = (const wxFontData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFontData); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFontDialog* returns = new wxFontDialog(parent, *data); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontDialog); - - return 1; -} - - - - -void wxLua_wxFontDialog_delete_function(void** p) -{ - wxFontDialog* o = (wxFontDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontDialog_methods[] = { - { "GetFontData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontDialog_GetFontData, 1, NULL }, - { "wxFontDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontDialog_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFontDialog_methodCount = sizeof(wxFontDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - - -#if wxUSE_FONTDLG && wxLUA_USE_wxFontDialog -// --------------------------------------------------------------------------- -// Bind class wxFontData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontData' -int wxluatype_wxFontData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_EnableEffects[] = { &wxluatype_wxFontData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontData_EnableEffects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_EnableEffects[1] = {{ wxLua_wxFontData_EnableEffects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontData_EnableEffects }}; -// void EnableEffects(bool enable); -static int LUACALL wxLua_wxFontData_EnableEffects(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call EnableEffects - self->EnableEffects(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_GetAllowSymbols[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_GetAllowSymbols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_GetAllowSymbols[1] = {{ wxLua_wxFontData_GetAllowSymbols, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontData_GetAllowSymbols }}; -// bool GetAllowSymbols(); -static int LUACALL wxLua_wxFontData_GetAllowSymbols(lua_State *L) -{ - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call GetAllowSymbols - bool returns = (self->GetAllowSymbols()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_GetChosenFont[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_GetChosenFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_GetChosenFont[1] = {{ wxLua_wxFontData_GetChosenFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontData_GetChosenFont }}; -// wxFont GetChosenFont(); -static int LUACALL wxLua_wxFontData_GetChosenFont(lua_State *L) -{ - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call GetChosenFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetChosenFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_GetColour[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_GetColour[1] = {{ wxLua_wxFontData_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontData_GetColour }}; -// wxColour GetColour(); -static int LUACALL wxLua_wxFontData_GetColour(lua_State *L) -{ - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_GetEnableEffects[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_GetEnableEffects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_GetEnableEffects[1] = {{ wxLua_wxFontData_GetEnableEffects, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontData_GetEnableEffects }}; -// bool GetEnableEffects(); -static int LUACALL wxLua_wxFontData_GetEnableEffects(lua_State *L) -{ - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call GetEnableEffects - bool returns = (self->GetEnableEffects()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_GetInitialFont[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_GetInitialFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_GetInitialFont[1] = {{ wxLua_wxFontData_GetInitialFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontData_GetInitialFont }}; -// wxFont GetInitialFont(); -static int LUACALL wxLua_wxFontData_GetInitialFont(lua_State *L) -{ - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call GetInitialFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetInitialFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_GetShowHelp[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_GetShowHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_GetShowHelp[1] = {{ wxLua_wxFontData_GetShowHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontData_GetShowHelp }}; -// bool GetShowHelp(); -static int LUACALL wxLua_wxFontData_GetShowHelp(lua_State *L) -{ - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call GetShowHelp - bool returns = (self->GetShowHelp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_SetAllowSymbols[] = { &wxluatype_wxFontData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontData_SetAllowSymbols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_SetAllowSymbols[1] = {{ wxLua_wxFontData_SetAllowSymbols, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontData_SetAllowSymbols }}; -// void SetAllowSymbols(bool allowSymbols); -static int LUACALL wxLua_wxFontData_SetAllowSymbols(lua_State *L) -{ - // bool allowSymbols - bool allowSymbols = wxlua_getbooleantype(L, 2); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call SetAllowSymbols - self->SetAllowSymbols(allowSymbols); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_SetChosenFont[] = { &wxluatype_wxFontData, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFontData_SetChosenFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_SetChosenFont[1] = {{ wxLua_wxFontData_SetChosenFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontData_SetChosenFont }}; -// void SetChosenFont(const wxFont &font); -static int LUACALL wxLua_wxFontData_SetChosenFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call SetChosenFont - self->SetChosenFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_SetColour[] = { &wxluatype_wxFontData, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxFontData_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_SetColour[1] = {{ wxLua_wxFontData_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontData_SetColour }}; -// void SetColour(const wxColour &colour); -static int LUACALL wxLua_wxFontData_SetColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_SetInitialFont[] = { &wxluatype_wxFontData, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFontData_SetInitialFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_SetInitialFont[1] = {{ wxLua_wxFontData_SetInitialFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontData_SetInitialFont }}; -// void SetInitialFont(const wxFont &font); -static int LUACALL wxLua_wxFontData_SetInitialFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call SetInitialFont - self->SetInitialFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_SetRange[] = { &wxluatype_wxFontData, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontData_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_SetRange[1] = {{ wxLua_wxFontData_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFontData_SetRange }}; -// void SetRange(int minimum, int maximum); -static int LUACALL wxLua_wxFontData_SetRange(lua_State *L) -{ - // int maximum - int maximum = (int)wxlua_getnumbertype(L, 3); - // int minimum - int minimum = (int)wxlua_getnumbertype(L, 2); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call SetRange - self->SetRange(minimum, maximum); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_SetShowHelp[] = { &wxluatype_wxFontData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontData_SetShowHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_SetShowHelp[1] = {{ wxLua_wxFontData_SetShowHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontData_SetShowHelp }}; -// void SetShowHelp(bool showHelp); -static int LUACALL wxLua_wxFontData_SetShowHelp(lua_State *L) -{ - // bool showHelp - bool showHelp = wxlua_getbooleantype(L, 2); - // get this - wxFontData * self = (wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call SetShowHelp - self->SetShowHelp(showHelp); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_delete[] = { &wxluatype_wxFontData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFontData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontData_constructor1[] = { &wxluatype_wxFontData, NULL }; -static int LUACALL wxLua_wxFontData_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_constructor1[1] = {{ wxLua_wxFontData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontData_constructor1 }}; -// wxFontData(const wxFontData& data); -static int LUACALL wxLua_wxFontData_constructor1(lua_State *L) -{ - // const wxFontData data - const wxFontData * data = (const wxFontData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontData); - // call constructor - wxFontData* returns = new wxFontData(*data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFontData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontData); - - return 1; -} - -static int LUACALL wxLua_wxFontData_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_constructor[1] = {{ wxLua_wxFontData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFontData(); -static int LUACALL wxLua_wxFontData_constructor(lua_State *L) -{ - // call constructor - wxFontData* returns = new wxFontData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFontData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontData); - - return 1; -} - - - - -#if (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontData_constructor_overload[] = -{ - { wxLua_wxFontData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontData_constructor1 }, - { wxLua_wxFontData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFontData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFontData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -void wxLua_wxFontData_delete_function(void** p) -{ - wxFontData* o = (wxFontData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontData_methods[] = { - { "EnableEffects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_EnableEffects, 1, NULL }, - { "GetAllowSymbols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_GetAllowSymbols, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "GetChosenFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_GetChosenFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - - { "GetEnableEffects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_GetEnableEffects, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "GetInitialFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_GetInitialFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - - { "GetShowHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_GetShowHelp, 1, NULL }, - { "SetAllowSymbols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_SetAllowSymbols, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "SetChosenFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_SetChosenFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_SetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - -#if (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "SetInitialFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_SetInitialFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_SetRange, 1, NULL }, - { "SetShowHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontData_SetShowHelp, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFontData_delete, 1, NULL }, - -#if (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - { "wxFontData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontData_constructor_overload, s_wxluafunc_wxLua_wxFontData_constructor_overload_count, 0 }, -#endif // (wxUSE_FONTDLG && wxLUA_USE_wxFontDialog) - - { 0, 0, 0, 0 }, -}; - -int wxFontData_methodCount = sizeof(wxFontData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FONTDLG && wxLUA_USE_wxFontDialog - - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog -// --------------------------------------------------------------------------- -// Bind class wxFindReplaceDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFindReplaceDialog' -int wxluatype_wxFindReplaceDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceDialog_Create[] = { &wxluatype_wxFindReplaceDialog, &wxluatype_wxWindow, &wxluatype_wxFindReplaceData, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFindReplaceDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceDialog_Create[1] = {{ wxLua_wxFindReplaceDialog_Create, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxFindReplaceDialog_Create }}; -// bool Create(wxWindow *parent, wxFindReplaceData *findData, const wxString &title, int style = 0); -static int LUACALL wxLua_wxFindReplaceDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = 0 - int style = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxFindReplaceData findData - wxFindReplaceData * findData = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFindReplaceData); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxFindReplaceDialog * self = (wxFindReplaceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceDialog); - // call Create - bool returns = (self->Create(parent, findData, title, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceDialog_GetData[] = { &wxluatype_wxFindReplaceDialog, NULL }; -static int LUACALL wxLua_wxFindReplaceDialog_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceDialog_GetData[1] = {{ wxLua_wxFindReplaceDialog_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindReplaceDialog_GetData }}; -// const wxFindReplaceData *GetData(); -static int LUACALL wxLua_wxFindReplaceDialog_GetData(lua_State *L) -{ - // get this - wxFindReplaceDialog * self = (wxFindReplaceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceDialog); - // call GetData - const wxFindReplaceData* returns = (const wxFindReplaceData*)self->GetData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFindReplaceData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceDialog_SetData[] = { &wxluatype_wxFindReplaceDialog, &wxluatype_wxFindReplaceData, NULL }; -static int LUACALL wxLua_wxFindReplaceDialog_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceDialog_SetData[1] = {{ wxLua_wxFindReplaceDialog_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindReplaceDialog_SetData }}; -// void SetData(wxFindReplaceData *findData); -static int LUACALL wxLua_wxFindReplaceDialog_SetData(lua_State *L) -{ - // wxFindReplaceData findData - wxFindReplaceData * findData = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFindReplaceData); - // get this - wxFindReplaceDialog * self = (wxFindReplaceDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceDialog); - // call SetData - self->SetData(findData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceDialog_constructor1[] = { &wxluatype_wxWindow, &wxluatype_wxFindReplaceData, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFindReplaceDialog_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceDialog_constructor1[1] = {{ wxLua_wxFindReplaceDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFindReplaceDialog_constructor1 }}; -// wxFindReplaceDialog(wxWindow *parent, wxFindReplaceData *findData, const wxString &title, int style = 0); -static int LUACALL wxLua_wxFindReplaceDialog_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = 0 - int style = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxFindReplaceData findData - wxFindReplaceData * findData = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFindReplaceData); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFindReplaceDialog* returns = new wxFindReplaceDialog(parent, findData, title, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFindReplaceDialog); - - return 1; -} - -static int LUACALL wxLua_wxFindReplaceDialog_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceDialog_constructor[1] = {{ wxLua_wxFindReplaceDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFindReplaceDialog(); -static int LUACALL wxLua_wxFindReplaceDialog_constructor(lua_State *L) -{ - // call constructor - wxFindReplaceDialog* returns = new wxFindReplaceDialog(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFindReplaceDialog); - - return 1; -} - - - - -#if (wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceDialog_constructor_overload[] = -{ - { wxLua_wxFindReplaceDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFindReplaceDialog_constructor1 }, - { wxLua_wxFindReplaceDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFindReplaceDialog_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFindReplaceDialog_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog) - -void wxLua_wxFindReplaceDialog_delete_function(void** p) -{ - wxFindReplaceDialog* o = (wxFindReplaceDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFindReplaceDialog_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceDialog_Create, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceDialog_GetData, 1, NULL }, - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceDialog_SetData, 1, NULL }, - -#if (wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog) - { "wxFindReplaceDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFindReplaceDialog_constructor_overload, s_wxluafunc_wxLua_wxFindReplaceDialog_constructor_overload_count, 0 }, -#endif // (wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog) - - { 0, 0, 0, 0 }, -}; - -int wxFindReplaceDialog_methodCount = sizeof(wxFindReplaceDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog -// --------------------------------------------------------------------------- -// Bind class wxFindReplaceData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFindReplaceData' -int wxluatype_wxFindReplaceData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_GetFindString[] = { &wxluatype_wxFindReplaceData, NULL }; -static int LUACALL wxLua_wxFindReplaceData_GetFindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_GetFindString[1] = {{ wxLua_wxFindReplaceData_GetFindString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindReplaceData_GetFindString }}; -// wxString GetFindString(); -static int LUACALL wxLua_wxFindReplaceData_GetFindString(lua_State *L) -{ - // get this - wxFindReplaceData * self = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceData); - // call GetFindString - wxString returns = (self->GetFindString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_GetFlags[] = { &wxluatype_wxFindReplaceData, NULL }; -static int LUACALL wxLua_wxFindReplaceData_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_GetFlags[1] = {{ wxLua_wxFindReplaceData_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindReplaceData_GetFlags }}; -// int GetFlags(); -static int LUACALL wxLua_wxFindReplaceData_GetFlags(lua_State *L) -{ - // get this - wxFindReplaceData * self = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceData); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_GetReplaceString[] = { &wxluatype_wxFindReplaceData, NULL }; -static int LUACALL wxLua_wxFindReplaceData_GetReplaceString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_GetReplaceString[1] = {{ wxLua_wxFindReplaceData_GetReplaceString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindReplaceData_GetReplaceString }}; -// wxString GetReplaceString(); -static int LUACALL wxLua_wxFindReplaceData_GetReplaceString(lua_State *L) -{ - // get this - wxFindReplaceData * self = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceData); - // call GetReplaceString - wxString returns = (self->GetReplaceString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_SetFindString[] = { &wxluatype_wxFindReplaceData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFindReplaceData_SetFindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_SetFindString[1] = {{ wxLua_wxFindReplaceData_SetFindString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindReplaceData_SetFindString }}; -// void SetFindString(const wxString& string); -static int LUACALL wxLua_wxFindReplaceData_SetFindString(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxFindReplaceData * self = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceData); - // call SetFindString - self->SetFindString(string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_SetFlags[] = { &wxluatype_wxFindReplaceData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFindReplaceData_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_SetFlags[1] = {{ wxLua_wxFindReplaceData_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindReplaceData_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxFindReplaceData_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxFindReplaceData * self = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceData); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_SetReplaceString[] = { &wxluatype_wxFindReplaceData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFindReplaceData_SetReplaceString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_SetReplaceString[1] = {{ wxLua_wxFindReplaceData_SetReplaceString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindReplaceData_SetReplaceString }}; -// void SetReplaceString(const wxString& string); -static int LUACALL wxLua_wxFindReplaceData_SetReplaceString(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxFindReplaceData * self = (wxFindReplaceData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindReplaceData); - // call SetReplaceString - self->SetReplaceString(string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_delete[] = { &wxluatype_wxFindReplaceData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFindReplaceData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindReplaceData_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFindReplaceData_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindReplaceData_constructor[1] = {{ wxLua_wxFindReplaceData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxFindReplaceData_constructor }}; -// wxFindReplaceData(int flags = 0); -static int LUACALL wxLua_wxFindReplaceData_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxFindReplaceData* returns = new wxFindReplaceData(flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFindReplaceData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFindReplaceData); - - return 1; -} - - - - -void wxLua_wxFindReplaceData_delete_function(void** p) -{ - wxFindReplaceData* o = (wxFindReplaceData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFindReplaceData_methods[] = { - { "GetFindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceData_GetFindString, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceData_GetFlags, 1, NULL }, - { "GetReplaceString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceData_GetReplaceString, 1, NULL }, - { "SetFindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceData_SetFindString, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceData_SetFlags, 1, NULL }, - { "SetReplaceString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindReplaceData_SetReplaceString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFindReplaceData_delete, 1, NULL }, - { "wxFindReplaceData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFindReplaceData_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFindReplaceData_methodCount = sizeof(wxFindReplaceData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - - -#if wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog -// --------------------------------------------------------------------------- -// Bind class wxFindDialogEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFindDialogEvent' -int wxluatype_wxFindDialogEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_GetDialog[] = { &wxluatype_wxFindDialogEvent, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_GetDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_GetDialog[1] = {{ wxLua_wxFindDialogEvent_GetDialog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindDialogEvent_GetDialog }}; -// wxFindReplaceDialog *GetDialog(); -static int LUACALL wxLua_wxFindDialogEvent_GetDialog(lua_State *L) -{ - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call GetDialog - wxFindReplaceDialog* returns = (wxFindReplaceDialog*)self->GetDialog(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFindReplaceDialog); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_GetFindString[] = { &wxluatype_wxFindDialogEvent, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_GetFindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_GetFindString[1] = {{ wxLua_wxFindDialogEvent_GetFindString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindDialogEvent_GetFindString }}; -// wxString GetFindString(); -static int LUACALL wxLua_wxFindDialogEvent_GetFindString(lua_State *L) -{ - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call GetFindString - wxString returns = (self->GetFindString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_GetFlags[] = { &wxluatype_wxFindDialogEvent, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_GetFlags[1] = {{ wxLua_wxFindDialogEvent_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindDialogEvent_GetFlags }}; -// int GetFlags(); -static int LUACALL wxLua_wxFindDialogEvent_GetFlags(lua_State *L) -{ - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_GetReplaceString[] = { &wxluatype_wxFindDialogEvent, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_GetReplaceString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_GetReplaceString[1] = {{ wxLua_wxFindDialogEvent_GetReplaceString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFindDialogEvent_GetReplaceString }}; -// wxString GetReplaceString(); -static int LUACALL wxLua_wxFindDialogEvent_GetReplaceString(lua_State *L) -{ - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call GetReplaceString - wxString returns = (self->GetReplaceString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_SetFindString[] = { &wxluatype_wxFindDialogEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_SetFindString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_SetFindString[1] = {{ wxLua_wxFindDialogEvent_SetFindString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindDialogEvent_SetFindString }}; -// void SetFindString(const wxString& str); -static int LUACALL wxLua_wxFindDialogEvent_SetFindString(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call SetFindString - self->SetFindString(str); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_SetFlags[] = { &wxluatype_wxFindDialogEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_SetFlags[1] = {{ wxLua_wxFindDialogEvent_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindDialogEvent_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxFindDialogEvent_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_SetReplaceString[] = { &wxluatype_wxFindDialogEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_SetReplaceString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_SetReplaceString[1] = {{ wxLua_wxFindDialogEvent_SetReplaceString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFindDialogEvent_SetReplaceString }}; -// void SetReplaceString(const wxString& str); -static int LUACALL wxLua_wxFindDialogEvent_SetReplaceString(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxFindDialogEvent * self = (wxFindDialogEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFindDialogEvent); - // call SetReplaceString - self->SetReplaceString(str); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_delete[] = { &wxluatype_wxFindDialogEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFindDialogEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFindDialogEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFindDialogEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFindDialogEvent_constructor[1] = {{ wxLua_wxFindDialogEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxFindDialogEvent_constructor }}; -// wxFindDialogEvent(wxEventType commandType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxFindDialogEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxFindDialogEvent* returns = new wxFindDialogEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFindDialogEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFindDialogEvent); - - return 1; -} - - - - -void wxLua_wxFindDialogEvent_delete_function(void** p) -{ - wxFindDialogEvent* o = (wxFindDialogEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFindDialogEvent_methods[] = { - { "GetDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_GetDialog, 1, NULL }, - { "GetFindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_GetFindString, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_GetFlags, 1, NULL }, - { "GetReplaceString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_GetReplaceString, 1, NULL }, - { "SetFindString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_SetFindString, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_SetFlags, 1, NULL }, - { "SetReplaceString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFindDialogEvent_SetReplaceString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFindDialogEvent_delete, 1, NULL }, - { "wxFindDialogEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFindDialogEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFindDialogEvent_methodCount = sizeof(wxFindDialogEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_FINDREPLDLG && wxLUA_USE_wxFindReplaceDialog - - -#if wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog -// --------------------------------------------------------------------------- -// Bind class wxProgressDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxProgressDialog' -int wxluatype_wxProgressDialog = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_GetMessage[] = { &wxluatype_wxProgressDialog, NULL }; -static int LUACALL wxLua_wxProgressDialog_GetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_GetMessage[1] = {{ wxLua_wxProgressDialog_GetMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProgressDialog_GetMessage }}; -// %wxchkver_2_9_0 wxString GetMessage() const; -static int LUACALL wxLua_wxProgressDialog_GetMessage(lua_State *L) -{ - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call GetMessage - wxString returns = (self->GetMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_GetRange[] = { &wxluatype_wxProgressDialog, NULL }; -static int LUACALL wxLua_wxProgressDialog_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_GetRange[1] = {{ wxLua_wxProgressDialog_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProgressDialog_GetRange }}; -// %wxchkver_2_9_0 int GetRange() const; -static int LUACALL wxLua_wxProgressDialog_GetRange(lua_State *L) -{ - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call GetRange - int returns = (self->GetRange()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_GetValue[] = { &wxluatype_wxProgressDialog, NULL }; -static int LUACALL wxLua_wxProgressDialog_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_GetValue[1] = {{ wxLua_wxProgressDialog_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProgressDialog_GetValue }}; -// %wxchkver_2_9_0 int GetValue() const; -static int LUACALL wxLua_wxProgressDialog_GetValue(lua_State *L) -{ - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_Pulse[] = { &wxluatype_wxProgressDialog, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxProgressDialog_Pulse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_Pulse[1] = {{ wxLua_wxProgressDialog_Pulse, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxProgressDialog_Pulse }}; -// bool Pulse(const wxString& newmsg = wxEmptyString, bool *skip = NULL); -static int LUACALL wxLua_wxProgressDialog_Pulse(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool skip = NULL - bool * skip = (argCount >= 3 ? (bool *)wxlua_touserdata(L, 3) : NULL); - // const wxString newmsg = wxEmptyString - const wxString newmsg = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call Pulse - bool returns = (self->Pulse(newmsg, skip)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_Resume[] = { &wxluatype_wxProgressDialog, NULL }; -static int LUACALL wxLua_wxProgressDialog_Resume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_Resume[1] = {{ wxLua_wxProgressDialog_Resume, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProgressDialog_Resume }}; -// void Resume(); -static int LUACALL wxLua_wxProgressDialog_Resume(lua_State *L) -{ - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call Resume - self->Resume(); - - return 0; -} - - -#if (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_SetRange[] = { &wxluatype_wxProgressDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProgressDialog_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_SetRange[1] = {{ wxLua_wxProgressDialog_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxProgressDialog_SetRange }}; -// %wxchkver_2_9_1 void SetRange(int maximum); -static int LUACALL wxLua_wxProgressDialog_SetRange(lua_State *L) -{ - // int maximum - int maximum = (int)wxlua_getnumbertype(L, 2); - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call SetRange - self->SetRange(maximum); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_Update[] = { &wxluatype_wxProgressDialog, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxProgressDialog_Update(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_Update[1] = {{ wxLua_wxProgressDialog_Update, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxProgressDialog_Update }}; -// %override wxLua_wxProgressDialog_Update -// bool Update(int value = -1, const wxString &newmsg = "") -static int LUACALL wxLua_wxProgressDialog_Update(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString newmsg = "" - const wxString newmsg = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int value = -1 - int value = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call Update - bool skip = false; - bool returns = self->Update(value, newmsg, &skip); - // push the result flag - lua_pushboolean(L, returns); - lua_pushboolean(L, skip); - - return 2; -} - - - -#if (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_WasCancelled[] = { &wxluatype_wxProgressDialog, NULL }; -static int LUACALL wxLua_wxProgressDialog_WasCancelled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_WasCancelled[1] = {{ wxLua_wxProgressDialog_WasCancelled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProgressDialog_WasCancelled }}; -// %wxchkver_2_9_1 bool WasCancelled() const; -static int LUACALL wxLua_wxProgressDialog_WasCancelled(lua_State *L) -{ - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call WasCancelled - bool returns = (self->WasCancelled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_WasSkipped[] = { &wxluatype_wxProgressDialog, NULL }; -static int LUACALL wxLua_wxProgressDialog_WasSkipped(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_WasSkipped[1] = {{ wxLua_wxProgressDialog_WasSkipped, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProgressDialog_WasSkipped }}; -// %wxchkver_2_9_1 bool WasSkipped() const; -static int LUACALL wxLua_wxProgressDialog_WasSkipped(lua_State *L) -{ - // get this - wxProgressDialog * self = (wxProgressDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProgressDialog); - // call WasSkipped - bool returns = (self->WasSkipped()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProgressDialog_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProgressDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProgressDialog_constructor[1] = {{ wxLua_wxProgressDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 5, s_wxluatypeArray_wxLua_wxProgressDialog_constructor }}; -// wxProgressDialog(const wxString& title, const wxString& message, int maximum = 100, wxWindow* parent = NULL, int style = wxPD_AUTO_HIDE | wxPD_APP_MODAL); -static int LUACALL wxLua_wxProgressDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxPD_AUTO_HIDE | wxPD_APP_MODAL - int style = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxPD_AUTO_HIDE | wxPD_APP_MODAL); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // int maximum = 100 - int maximum = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 100); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 1); - // call constructor - wxProgressDialog* returns = new wxProgressDialog(title, message, maximum, parent, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProgressDialog); - - return 1; -} - - - - -void wxLua_wxProgressDialog_delete_function(void** p) -{ - wxProgressDialog* o = (wxProgressDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxProgressDialog_methods[] = { -#if (wxCHECK_VERSION(2,9,0)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - { "GetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_GetMessage, 1, NULL }, - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_GetRange, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_GetValue, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - - { "Pulse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_Pulse, 1, NULL }, - { "Resume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_Resume, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_SetRange, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - - { "Update", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_Update, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - { "WasCancelled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_WasCancelled, 1, NULL }, - { "WasSkipped", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProgressDialog_WasSkipped, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,1)) && (wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog) - - { "wxProgressDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxProgressDialog_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxProgressDialog_methodCount = sizeof(wxProgressDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_PROGRESSDLG && wxLUA_USE_wxProgressDialog - - -#if wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog -// --------------------------------------------------------------------------- -// Bind class wxNumberEntryDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNumberEntryDialog' -int wxluatype_wxNumberEntryDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumberEntryDialog_GetValue[] = { &wxluatype_wxNumberEntryDialog, NULL }; -static int LUACALL wxLua_wxNumberEntryDialog_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumberEntryDialog_GetValue[1] = {{ wxLua_wxNumberEntryDialog_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNumberEntryDialog_GetValue }}; -// long GetValue() const; -static int LUACALL wxLua_wxNumberEntryDialog_GetValue(lua_State *L) -{ - // get this - wxNumberEntryDialog * self = (wxNumberEntryDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNumberEntryDialog); - // call GetValue - long returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumberEntryDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxNumberEntryDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumberEntryDialog_constructor[1] = {{ wxLua_wxNumberEntryDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 7, 8, s_wxluatypeArray_wxLua_wxNumberEntryDialog_constructor }}; -// wxNumberEntryDialog(wxWindow *parent, const wxString& message, const wxString& prompt, const wxString& caption, long value, long min, long max, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxNumberEntryDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxDefaultPosition); - // long max - long max = (long)wxlua_getnumbertype(L, 7); - // long min - long min = (long)wxlua_getnumbertype(L, 6); - // long value - long value = (long)wxlua_getnumbertype(L, 5); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 4); - // const wxString prompt - const wxString prompt = wxlua_getwxStringtype(L, 3); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxNumberEntryDialog* returns = new wxNumberEntryDialog(parent, message, prompt, caption, value, min, max, *pos); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNumberEntryDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog) - - - -void wxLua_wxNumberEntryDialog_delete_function(void** p) -{ - wxNumberEntryDialog* o = (wxNumberEntryDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNumberEntryDialog_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNumberEntryDialog_GetValue, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog) - { "wxNumberEntryDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNumberEntryDialog_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog) - - { 0, 0, 0, 0 }, -}; - -int wxNumberEntryDialog_methodCount = sizeof(wxNumberEntryDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_NUMBERDLG && wxLUA_USE_wxNumberEntryDialog - diff --git a/wxLua/modules/wxbind/src/wxcore_event.cpp b/wxLua/modules/wxbind/src/wxcore_event.cpp deleted file mode 100644 index 80d6632e..00000000 --- a/wxLua/modules/wxbind/src/wxcore_event.cpp +++ /dev/null @@ -1,5218 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_event.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - -// --------------------------------------------------------------------------- -// Bind class wxPropagationDisabler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropagationDisabler' -int wxluatype_wxPropagationDisabler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropagationDisabler_delete[] = { &wxluatype_wxPropagationDisabler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropagationDisabler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropagationDisabler_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropagationDisabler_constructor[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPropagationDisabler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropagationDisabler_constructor[1] = {{ wxLua_wxPropagationDisabler_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPropagationDisabler_constructor }}; -// wxPropagationDisabler(wxEvent& event); -static int LUACALL wxLua_wxPropagationDisabler_constructor(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call constructor - wxPropagationDisabler* returns = new wxPropagationDisabler(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropagationDisabler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropagationDisabler); - - return 1; -} - - - -void wxLua_wxPropagationDisabler_delete_function(void** p) -{ - wxPropagationDisabler* o = (wxPropagationDisabler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropagationDisabler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropagationDisabler_delete, 1, NULL }, - { "wxPropagationDisabler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropagationDisabler_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxPropagationDisabler_methodCount = sizeof(wxPropagationDisabler_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxPropagateOnce -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropagateOnce' -int wxluatype_wxPropagateOnce = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropagateOnce_delete[] = { &wxluatype_wxPropagateOnce, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropagateOnce_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropagateOnce_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropagateOnce_constructor[] = { &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPropagateOnce_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropagateOnce_constructor[1] = {{ wxLua_wxPropagateOnce_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPropagateOnce_constructor }}; -// wxPropagateOnce(wxEvent& event); -static int LUACALL wxLua_wxPropagateOnce_constructor(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEvent); - // call constructor - wxPropagateOnce* returns = new wxPropagateOnce(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropagateOnce); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropagateOnce); - - return 1; -} - - - -void wxLua_wxPropagateOnce_delete_function(void** p) -{ - wxPropagateOnce* o = (wxPropagateOnce*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropagateOnce_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropagateOnce_delete, 1, NULL }, - { "wxPropagateOnce", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropagateOnce_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxPropagateOnce_methodCount = sizeof(wxPropagateOnce_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxCommandEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCommandEvent' -int wxluatype_wxCommandEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetClientData[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetClientData[1] = {{ wxLua_wxCommandEvent_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetClientData }}; -// voidptr_long GetClientData(); // C++ returns (void *) You get a number here -static int LUACALL wxLua_wxCommandEvent_GetClientData(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetClientData - wxUIntPtr returns = (wxUIntPtr)self->GetClientData(); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetClientObject[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetClientObject[1] = {{ wxLua_wxCommandEvent_GetClientObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetClientObject }}; -// wxClientData* GetClientObject(); -static int LUACALL wxLua_wxCommandEvent_GetClientObject(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetClientObject - wxClientData* returns = (wxClientData*)self->GetClientObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetExtraLong[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetExtraLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetExtraLong[1] = {{ wxLua_wxCommandEvent_GetExtraLong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetExtraLong }}; -// long GetExtraLong(); -static int LUACALL wxLua_wxCommandEvent_GetExtraLong(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetExtraLong - long returns = (self->GetExtraLong()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetInt[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetInt[1] = {{ wxLua_wxCommandEvent_GetInt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetInt }}; -// int GetInt(); -static int LUACALL wxLua_wxCommandEvent_GetInt(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetInt - int returns = (self->GetInt()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetSelection[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetSelection[1] = {{ wxLua_wxCommandEvent_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetSelection }}; -// int GetSelection(); -static int LUACALL wxLua_wxCommandEvent_GetSelection(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetString[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetString[1] = {{ wxLua_wxCommandEvent_GetString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetString }}; -// wxString GetString(); -static int LUACALL wxLua_wxCommandEvent_GetString(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetString - wxString returns = (self->GetString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_GetStringClientObject[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_GetStringClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_GetStringClientObject[1] = {{ wxLua_wxCommandEvent_GetStringClientObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_GetStringClientObject }}; -// %rename GetStringClientObject wxStringClientData* GetClientObject(); -static int LUACALL wxLua_wxCommandEvent_GetStringClientObject(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call GetClientObject - wxStringClientData* returns = (wxStringClientData*)self->GetClientObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_IsChecked[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_IsChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_IsChecked[1] = {{ wxLua_wxCommandEvent_IsChecked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_IsChecked }}; -// bool IsChecked() const; -static int LUACALL wxLua_wxCommandEvent_IsChecked(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call IsChecked - bool returns = (self->IsChecked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_IsSelection[] = { &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxCommandEvent_IsSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_IsSelection[1] = {{ wxLua_wxCommandEvent_IsSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_IsSelection }}; -// bool IsSelection(); -static int LUACALL wxLua_wxCommandEvent_IsSelection(lua_State *L) -{ - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call IsSelection - bool returns = (self->IsSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_SetClientData[] = { &wxluatype_wxCommandEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCommandEvent_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_SetClientData[1] = {{ wxLua_wxCommandEvent_SetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandEvent_SetClientData }}; -// void SetClientData(voidptr_long number); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxCommandEvent_SetClientData(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call SetClientData - self->SetClientData((void*)number); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_SetClientObject[] = { &wxluatype_wxCommandEvent, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxCommandEvent_SetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_SetClientObject[1] = {{ wxLua_wxCommandEvent_SetClientObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandEvent_SetClientObject }}; -// void SetClientObject(wxClientData* clientObject); -static int LUACALL wxLua_wxCommandEvent_SetClientObject(lua_State *L) -{ - // wxClientData clientObject - wxClientData * clientObject = (wxClientData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClientData); - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call SetClientObject - self->SetClientObject(clientObject); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_SetExtraLong[] = { &wxluatype_wxCommandEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCommandEvent_SetExtraLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_SetExtraLong[1] = {{ wxLua_wxCommandEvent_SetExtraLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandEvent_SetExtraLong }}; -// void SetExtraLong(int extraLong); -static int LUACALL wxLua_wxCommandEvent_SetExtraLong(lua_State *L) -{ - // int extraLong - int extraLong = (int)wxlua_getnumbertype(L, 2); - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call SetExtraLong - self->SetExtraLong(extraLong); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_SetInt[] = { &wxluatype_wxCommandEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCommandEvent_SetInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_SetInt[1] = {{ wxLua_wxCommandEvent_SetInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandEvent_SetInt }}; -// void SetInt(int intCommand); -static int LUACALL wxLua_wxCommandEvent_SetInt(lua_State *L) -{ - // int intCommand - int intCommand = (int)wxlua_getnumbertype(L, 2); - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call SetInt - self->SetInt(intCommand); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_SetString[] = { &wxluatype_wxCommandEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCommandEvent_SetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_SetString[1] = {{ wxLua_wxCommandEvent_SetString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandEvent_SetString }}; -// void SetString(const wxString &string); -static int LUACALL wxLua_wxCommandEvent_SetString(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxCommandEvent * self = (wxCommandEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandEvent); - // call SetString - self->SetString(string); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_delete[] = { &wxluatype_wxCommandEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCommandEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCommandEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandEvent_constructor[1] = {{ wxLua_wxCommandEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxCommandEvent_constructor }}; -// wxCommandEvent(wxEventType commandEventType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxCommandEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandEventType = wxEVT_NULL - wxEventType commandEventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxCommandEvent* returns = new wxCommandEvent(commandEventType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCommandEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommandEvent); - - return 1; -} - - - -void wxLua_wxCommandEvent_delete_function(void** p) -{ - wxCommandEvent* o = (wxCommandEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCommandEvent_methods[] = { - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetClientData, 1, NULL }, - { "GetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetClientObject, 1, NULL }, - { "GetExtraLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetExtraLong, 1, NULL }, - { "GetInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetInt, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetSelection, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetString, 1, NULL }, - { "GetStringClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_GetStringClientObject, 1, NULL }, - { "IsChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_IsChecked, 1, NULL }, - { "IsSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_IsSelection, 1, NULL }, - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_SetClientData, 1, NULL }, - { "SetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_SetClientObject, 1, NULL }, - { "SetExtraLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_SetExtraLong, 1, NULL }, - { "SetInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_SetInt, 1, NULL }, - { "SetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandEvent_SetString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCommandEvent_delete, 1, NULL }, - { "wxCommandEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCommandEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxCommandEvent_methodCount = sizeof(wxCommandEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxNotifyEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNotifyEvent' -int wxluatype_wxNotifyEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotifyEvent_Allow[] = { &wxluatype_wxNotifyEvent, NULL }; -static int LUACALL wxLua_wxNotifyEvent_Allow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotifyEvent_Allow[1] = {{ wxLua_wxNotifyEvent_Allow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNotifyEvent_Allow }}; -// void Allow(); -static int LUACALL wxLua_wxNotifyEvent_Allow(lua_State *L) -{ - // get this - wxNotifyEvent * self = (wxNotifyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotifyEvent); - // call Allow - self->Allow(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotifyEvent_IsAllowed[] = { &wxluatype_wxNotifyEvent, NULL }; -static int LUACALL wxLua_wxNotifyEvent_IsAllowed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotifyEvent_IsAllowed[1] = {{ wxLua_wxNotifyEvent_IsAllowed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNotifyEvent_IsAllowed }}; -// bool IsAllowed() const; -static int LUACALL wxLua_wxNotifyEvent_IsAllowed(lua_State *L) -{ - // get this - wxNotifyEvent * self = (wxNotifyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotifyEvent); - // call IsAllowed - bool returns = (self->IsAllowed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotifyEvent_Veto[] = { &wxluatype_wxNotifyEvent, NULL }; -static int LUACALL wxLua_wxNotifyEvent_Veto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotifyEvent_Veto[1] = {{ wxLua_wxNotifyEvent_Veto, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNotifyEvent_Veto }}; -// void Veto(); -static int LUACALL wxLua_wxNotifyEvent_Veto(lua_State *L) -{ - // get this - wxNotifyEvent * self = (wxNotifyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotifyEvent); - // call Veto - self->Veto(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotifyEvent_delete[] = { &wxluatype_wxNotifyEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotifyEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxNotifyEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotifyEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxNotifyEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotifyEvent_constructor[1] = {{ wxLua_wxNotifyEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxNotifyEvent_constructor }}; -// wxNotifyEvent(wxEventType eventType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxNotifyEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxNotifyEvent* returns = new wxNotifyEvent(eventType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxNotifyEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNotifyEvent); - - return 1; -} - - - -void wxLua_wxNotifyEvent_delete_function(void** p) -{ - wxNotifyEvent* o = (wxNotifyEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNotifyEvent_methods[] = { - { "Allow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotifyEvent_Allow, 1, NULL }, - { "IsAllowed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotifyEvent_IsAllowed, 1, NULL }, - { "Veto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotifyEvent_Veto, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxNotifyEvent_delete, 1, NULL }, - { "wxNotifyEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNotifyEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxNotifyEvent_methodCount = sizeof(wxNotifyEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxActivateEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxActivateEvent' -int wxluatype_wxActivateEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxActivateEvent_GetActive[] = { &wxluatype_wxActivateEvent, NULL }; -static int LUACALL wxLua_wxActivateEvent_GetActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxActivateEvent_GetActive[1] = {{ wxLua_wxActivateEvent_GetActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxActivateEvent_GetActive }}; -// bool GetActive() const; -static int LUACALL wxLua_wxActivateEvent_GetActive(lua_State *L) -{ - // get this - wxActivateEvent * self = (wxActivateEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxActivateEvent); - // call GetActive - bool returns = (self->GetActive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxActivateEvent_delete[] = { &wxluatype_wxActivateEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxActivateEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxActivateEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxActivateEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxActivateEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxActivateEvent_constructor[1] = {{ wxLua_wxActivateEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxActivateEvent_constructor }}; -// wxActivateEvent(wxEventType eventType = wxEVT_NULL, bool active = true, int id = 0); -static int LUACALL wxLua_wxActivateEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // bool active = true - bool active = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxActivateEvent* returns = new wxActivateEvent(eventType, active, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxActivateEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxActivateEvent); - - return 1; -} - - - -void wxLua_wxActivateEvent_delete_function(void** p) -{ - wxActivateEvent* o = (wxActivateEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxActivateEvent_methods[] = { - { "GetActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxActivateEvent_GetActive, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxActivateEvent_delete, 1, NULL }, - { "wxActivateEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxActivateEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxActivateEvent_methodCount = sizeof(wxActivateEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxCloseEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCloseEvent' -int wxluatype_wxCloseEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_CanVeto[] = { &wxluatype_wxCloseEvent, NULL }; -static int LUACALL wxLua_wxCloseEvent_CanVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_CanVeto[1] = {{ wxLua_wxCloseEvent_CanVeto, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCloseEvent_CanVeto }}; -// bool CanVeto(); -static int LUACALL wxLua_wxCloseEvent_CanVeto(lua_State *L) -{ - // get this - wxCloseEvent * self = (wxCloseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCloseEvent); - // call CanVeto - bool returns = (self->CanVeto()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_GetLoggingOff[] = { &wxluatype_wxCloseEvent, NULL }; -static int LUACALL wxLua_wxCloseEvent_GetLoggingOff(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_GetLoggingOff[1] = {{ wxLua_wxCloseEvent_GetLoggingOff, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCloseEvent_GetLoggingOff }}; -// bool GetLoggingOff() const; -static int LUACALL wxLua_wxCloseEvent_GetLoggingOff(lua_State *L) -{ - // get this - wxCloseEvent * self = (wxCloseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCloseEvent); - // call GetLoggingOff - bool returns = (self->GetLoggingOff()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_SetCanVeto[] = { &wxluatype_wxCloseEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCloseEvent_SetCanVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_SetCanVeto[1] = {{ wxLua_wxCloseEvent_SetCanVeto, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCloseEvent_SetCanVeto }}; -// void SetCanVeto(bool canVeto); -static int LUACALL wxLua_wxCloseEvent_SetCanVeto(lua_State *L) -{ - // bool canVeto - bool canVeto = wxlua_getbooleantype(L, 2); - // get this - wxCloseEvent * self = (wxCloseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCloseEvent); - // call SetCanVeto - self->SetCanVeto(canVeto); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_SetLoggingOff[] = { &wxluatype_wxCloseEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCloseEvent_SetLoggingOff(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_SetLoggingOff[1] = {{ wxLua_wxCloseEvent_SetLoggingOff, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCloseEvent_SetLoggingOff }}; -// void SetLoggingOff(bool loggingOff) const; -static int LUACALL wxLua_wxCloseEvent_SetLoggingOff(lua_State *L) -{ - // bool loggingOff - bool loggingOff = wxlua_getbooleantype(L, 2); - // get this - wxCloseEvent * self = (wxCloseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCloseEvent); - // call SetLoggingOff - self->SetLoggingOff(loggingOff); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_Veto[] = { &wxluatype_wxCloseEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCloseEvent_Veto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_Veto[1] = {{ wxLua_wxCloseEvent_Veto, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxCloseEvent_Veto }}; -// void Veto(bool veto = true); -static int LUACALL wxLua_wxCloseEvent_Veto(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool veto = true - bool veto = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxCloseEvent * self = (wxCloseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCloseEvent); - // call Veto - self->Veto(veto); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_delete[] = { &wxluatype_wxCloseEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCloseEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCloseEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCloseEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCloseEvent_constructor[1] = {{ wxLua_wxCloseEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxCloseEvent_constructor }}; -// wxCloseEvent(wxEventType commandEventType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxCloseEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandEventType = wxEVT_NULL - wxEventType commandEventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxCloseEvent* returns = new wxCloseEvent(commandEventType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCloseEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCloseEvent); - - return 1; -} - - - -void wxLua_wxCloseEvent_delete_function(void** p) -{ - wxCloseEvent* o = (wxCloseEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCloseEvent_methods[] = { - { "CanVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCloseEvent_CanVeto, 1, NULL }, - { "GetLoggingOff", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCloseEvent_GetLoggingOff, 1, NULL }, - { "SetCanVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCloseEvent_SetCanVeto, 1, NULL }, - { "SetLoggingOff", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCloseEvent_SetLoggingOff, 1, NULL }, - { "Veto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCloseEvent_Veto, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCloseEvent_delete, 1, NULL }, - { "wxCloseEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCloseEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxCloseEvent_methodCount = sizeof(wxCloseEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxEraseEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEraseEvent' -int wxluatype_wxEraseEvent = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxDC -static wxLuaArgType s_wxluatypeArray_wxLua_wxEraseEvent_GetDC[] = { &wxluatype_wxEraseEvent, NULL }; -static int LUACALL wxLua_wxEraseEvent_GetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEraseEvent_GetDC[1] = {{ wxLua_wxEraseEvent_GetDC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEraseEvent_GetDC }}; -// wxDC* GetDC() const; -static int LUACALL wxLua_wxEraseEvent_GetDC(lua_State *L) -{ - // get this - wxEraseEvent * self = (wxEraseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEraseEvent); - // call GetDC - wxDC* returns = (wxDC*)self->GetDC(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // wxLUA_USE_wxDC - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEraseEvent_delete[] = { &wxluatype_wxEraseEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEraseEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxEraseEvent_delete }}; - - -#if wxLUA_USE_wxDC -static wxLuaArgType s_wxluatypeArray_wxLua_wxEraseEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxEraseEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEraseEvent_constructor[1] = {{ wxLua_wxEraseEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxEraseEvent_constructor }}; -// wxEraseEvent(int id = 0, wxDC* dc = NULL); -static int LUACALL wxLua_wxEraseEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDC dc = NULL - wxDC * dc = (argCount >= 2 ? (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC) : NULL); - // int id = 0 - int id = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxEraseEvent* returns = new wxEraseEvent(id, dc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxEraseEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEraseEvent); - - return 1; -} - -#endif // wxLUA_USE_wxDC - - - -void wxLua_wxEraseEvent_delete_function(void** p) -{ - wxEraseEvent* o = (wxEraseEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEraseEvent_methods[] = { -#if wxLUA_USE_wxDC - { "GetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEraseEvent_GetDC, 1, NULL }, -#endif // wxLUA_USE_wxDC - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxEraseEvent_delete, 1, NULL }, - -#if wxLUA_USE_wxDC - { "wxEraseEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxEraseEvent_constructor, 1, NULL }, -#endif // wxLUA_USE_wxDC - - { 0, 0, 0, 0 }, -}; - -int wxEraseEvent_methodCount = sizeof(wxEraseEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxFocusEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFocusEvent' -int wxluatype_wxFocusEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFocusEvent_GetWindow[] = { &wxluatype_wxFocusEvent, NULL }; -static int LUACALL wxLua_wxFocusEvent_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFocusEvent_GetWindow[1] = {{ wxLua_wxFocusEvent_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFocusEvent_GetWindow }}; -// wxWindow* GetWindow(); -static int LUACALL wxLua_wxFocusEvent_GetWindow(lua_State *L) -{ - // get this - wxFocusEvent * self = (wxFocusEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFocusEvent); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFocusEvent_SetWindow[] = { &wxluatype_wxFocusEvent, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxFocusEvent_SetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFocusEvent_SetWindow[1] = {{ wxLua_wxFocusEvent_SetWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFocusEvent_SetWindow }}; -// void SetWindow(wxWindow *win); -static int LUACALL wxLua_wxFocusEvent_SetWindow(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxFocusEvent * self = (wxFocusEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFocusEvent); - // call SetWindow - self->SetWindow(win); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFocusEvent_delete[] = { &wxluatype_wxFocusEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFocusEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFocusEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFocusEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFocusEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFocusEvent_constructor[1] = {{ wxLua_wxFocusEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxFocusEvent_constructor }}; -// wxFocusEvent(wxEventType eventType = wxEVT_NULL, int id = 0); -static int LUACALL wxLua_wxFocusEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxFocusEvent* returns = new wxFocusEvent(eventType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFocusEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFocusEvent); - - return 1; -} - - - -void wxLua_wxFocusEvent_delete_function(void** p) -{ - wxFocusEvent* o = (wxFocusEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFocusEvent_methods[] = { - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFocusEvent_GetWindow, 1, NULL }, - { "SetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFocusEvent_SetWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFocusEvent_delete, 1, NULL }, - { "wxFocusEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFocusEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxFocusEvent_methodCount = sizeof(wxFocusEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxChildFocusEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxChildFocusEvent' -int wxluatype_wxChildFocusEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChildFocusEvent_GetWindow[] = { &wxluatype_wxChildFocusEvent, NULL }; -static int LUACALL wxLua_wxChildFocusEvent_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChildFocusEvent_GetWindow[1] = {{ wxLua_wxChildFocusEvent_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxChildFocusEvent_GetWindow }}; -// wxWindow *GetWindow() const; -static int LUACALL wxLua_wxChildFocusEvent_GetWindow(lua_State *L) -{ - // get this - wxChildFocusEvent * self = (wxChildFocusEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChildFocusEvent); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChildFocusEvent_delete[] = { &wxluatype_wxChildFocusEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChildFocusEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxChildFocusEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChildFocusEvent_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxChildFocusEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChildFocusEvent_constructor[1] = {{ wxLua_wxChildFocusEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxChildFocusEvent_constructor }}; -// wxChildFocusEvent(wxWindow *win = NULL); -static int LUACALL wxLua_wxChildFocusEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxChildFocusEvent* returns = new wxChildFocusEvent(win); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxChildFocusEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChildFocusEvent); - - return 1; -} - - - -void wxLua_wxChildFocusEvent_delete_function(void** p) -{ - wxChildFocusEvent* o = (wxChildFocusEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxChildFocusEvent_methods[] = { - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChildFocusEvent_GetWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxChildFocusEvent_delete, 1, NULL }, - { "wxChildFocusEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxChildFocusEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxChildFocusEvent_methodCount = sizeof(wxChildFocusEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxQueryNewPaletteEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxQueryNewPaletteEvent' -int wxluatype_wxQueryNewPaletteEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_GetPaletteRealized[] = { &wxluatype_wxQueryNewPaletteEvent, NULL }; -static int LUACALL wxLua_wxQueryNewPaletteEvent_GetPaletteRealized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryNewPaletteEvent_GetPaletteRealized[1] = {{ wxLua_wxQueryNewPaletteEvent_GetPaletteRealized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_GetPaletteRealized }}; -// bool GetPaletteRealized() const; -static int LUACALL wxLua_wxQueryNewPaletteEvent_GetPaletteRealized(lua_State *L) -{ - // get this - wxQueryNewPaletteEvent * self = (wxQueryNewPaletteEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryNewPaletteEvent); - // call GetPaletteRealized - bool returns = (self->GetPaletteRealized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_SetPaletteRealized[] = { &wxluatype_wxQueryNewPaletteEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxQueryNewPaletteEvent_SetPaletteRealized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryNewPaletteEvent_SetPaletteRealized[1] = {{ wxLua_wxQueryNewPaletteEvent_SetPaletteRealized, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_SetPaletteRealized }}; -// void SetPaletteRealized(bool realized); -static int LUACALL wxLua_wxQueryNewPaletteEvent_SetPaletteRealized(lua_State *L) -{ - // bool realized - bool realized = wxlua_getbooleantype(L, 2); - // get this - wxQueryNewPaletteEvent * self = (wxQueryNewPaletteEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxQueryNewPaletteEvent); - // call SetPaletteRealized - self->SetPaletteRealized(realized); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_delete[] = { &wxluatype_wxQueryNewPaletteEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryNewPaletteEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxQueryNewPaletteEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQueryNewPaletteEvent_constructor[1] = {{ wxLua_wxQueryNewPaletteEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxQueryNewPaletteEvent_constructor }}; -// wxQueryNewPaletteEvent(wxWindowID winid = 0); -static int LUACALL wxLua_wxQueryNewPaletteEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID winid = 0 - wxWindowID winid = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxQueryNewPaletteEvent* returns = new wxQueryNewPaletteEvent(winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxQueryNewPaletteEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxQueryNewPaletteEvent); - - return 1; -} - - - -void wxLua_wxQueryNewPaletteEvent_delete_function(void** p) -{ - wxQueryNewPaletteEvent* o = (wxQueryNewPaletteEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxQueryNewPaletteEvent_methods[] = { - { "GetPaletteRealized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryNewPaletteEvent_GetPaletteRealized, 1, NULL }, - { "SetPaletteRealized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxQueryNewPaletteEvent_SetPaletteRealized, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxQueryNewPaletteEvent_delete, 1, NULL }, - { "wxQueryNewPaletteEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxQueryNewPaletteEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxQueryNewPaletteEvent_methodCount = sizeof(wxQueryNewPaletteEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxPaletteChangedEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPaletteChangedEvent' -int wxluatype_wxPaletteChangedEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaletteChangedEvent_GetChangedWindow[] = { &wxluatype_wxPaletteChangedEvent, NULL }; -static int LUACALL wxLua_wxPaletteChangedEvent_GetChangedWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaletteChangedEvent_GetChangedWindow[1] = {{ wxLua_wxPaletteChangedEvent_GetChangedWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPaletteChangedEvent_GetChangedWindow }}; -// wxWindow* GetChangedWindow() const; -static int LUACALL wxLua_wxPaletteChangedEvent_GetChangedWindow(lua_State *L) -{ - // get this - wxPaletteChangedEvent * self = (wxPaletteChangedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPaletteChangedEvent); - // call GetChangedWindow - wxWindow* returns = (wxWindow*)self->GetChangedWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaletteChangedEvent_SetChangedWindow[] = { &wxluatype_wxPaletteChangedEvent, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPaletteChangedEvent_SetChangedWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaletteChangedEvent_SetChangedWindow[1] = {{ wxLua_wxPaletteChangedEvent_SetChangedWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPaletteChangedEvent_SetChangedWindow }}; -// void SetChangedWindow(wxWindow* win); -static int LUACALL wxLua_wxPaletteChangedEvent_SetChangedWindow(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPaletteChangedEvent * self = (wxPaletteChangedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPaletteChangedEvent); - // call SetChangedWindow - self->SetChangedWindow(win); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaletteChangedEvent_delete[] = { &wxluatype_wxPaletteChangedEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaletteChangedEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPaletteChangedEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaletteChangedEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPaletteChangedEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaletteChangedEvent_constructor[1] = {{ wxLua_wxPaletteChangedEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxPaletteChangedEvent_constructor }}; -// wxPaletteChangedEvent(wxWindowID winid = 0); -static int LUACALL wxLua_wxPaletteChangedEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID winid = 0 - wxWindowID winid = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxPaletteChangedEvent* returns = new wxPaletteChangedEvent(winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPaletteChangedEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPaletteChangedEvent); - - return 1; -} - - - -void wxLua_wxPaletteChangedEvent_delete_function(void** p) -{ - wxPaletteChangedEvent* o = (wxPaletteChangedEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPaletteChangedEvent_methods[] = { - { "GetChangedWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPaletteChangedEvent_GetChangedWindow, 1, NULL }, - { "SetChangedWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPaletteChangedEvent_SetChangedWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPaletteChangedEvent_delete, 1, NULL }, - { "wxPaletteChangedEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPaletteChangedEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxPaletteChangedEvent_methodCount = sizeof(wxPaletteChangedEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxKeyEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxKeyEvent' -int wxluatype_wxKeyEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_AltDown[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_AltDown[1] = {{ wxLua_wxKeyEvent_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_AltDown }}; -// bool AltDown() const; -static int LUACALL wxLua_wxKeyEvent_AltDown(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_CmdDown[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_CmdDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_CmdDown[1] = {{ wxLua_wxKeyEvent_CmdDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_CmdDown }}; -// bool CmdDown() const; -static int LUACALL wxLua_wxKeyEvent_CmdDown(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call CmdDown - bool returns = (self->CmdDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_ControlDown[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_ControlDown[1] = {{ wxLua_wxKeyEvent_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_ControlDown }}; -// bool ControlDown() const; -static int LUACALL wxLua_wxKeyEvent_ControlDown(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetKeyCode[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetKeyCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetKeyCode[1] = {{ wxLua_wxKeyEvent_GetKeyCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetKeyCode }}; -// int GetKeyCode() const; -static int LUACALL wxLua_wxKeyEvent_GetKeyCode(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetKeyCode - int returns = (self->GetKeyCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetModifiers[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetModifiers[1] = {{ wxLua_wxKeyEvent_GetModifiers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetModifiers }}; -// %wxchkver_2_8 int GetModifiers() const; -static int LUACALL wxLua_wxKeyEvent_GetModifiers(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetModifiers - int returns = (self->GetModifiers()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetPosition[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetPosition[1] = {{ wxLua_wxKeyEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxKeyEvent_GetPosition(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetPositionXY[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetPositionXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetPositionXY[1] = {{ wxLua_wxKeyEvent_GetPositionXY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetPositionXY }}; -// %override wxLua_wxKeyEvent_GetPositionXY -static int LUACALL wxLua_wxKeyEvent_GetPositionXY(lua_State *L) -{ - wxCoord y; - wxCoord x; - // get this - wxKeyEvent *self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetPositionXY - self->GetPosition(&x, &y); - // push results - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetRawKeyCode[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetRawKeyCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetRawKeyCode[1] = {{ wxLua_wxKeyEvent_GetRawKeyCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetRawKeyCode }}; -// wxUint32 GetRawKeyCode() const; -static int LUACALL wxLua_wxKeyEvent_GetRawKeyCode(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetRawKeyCode - wxUint32 returns = (self->GetRawKeyCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetRawKeyFlags[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetRawKeyFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetRawKeyFlags[1] = {{ wxLua_wxKeyEvent_GetRawKeyFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetRawKeyFlags }}; -// wxUint32 GetRawKeyFlags() const; -static int LUACALL wxLua_wxKeyEvent_GetRawKeyFlags(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetRawKeyFlags - wxUint32 returns = (self->GetRawKeyFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetUnicodeKey[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetUnicodeKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetUnicodeKey[1] = {{ wxLua_wxKeyEvent_GetUnicodeKey, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetUnicodeKey }}; -// wxChar GetUnicodeKey() const; -static int LUACALL wxLua_wxKeyEvent_GetUnicodeKey(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetUnicodeKey - wxChar returns = (self->GetUnicodeKey()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetX[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetX[1] = {{ wxLua_wxKeyEvent_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetX }}; -// long GetX(); -static int LUACALL wxLua_wxKeyEvent_GetX(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetX - long returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_GetY[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_GetY[1] = {{ wxLua_wxKeyEvent_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_GetY }}; -// long GetY() const; -static int LUACALL wxLua_wxKeyEvent_GetY(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call GetY - long returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_HasModifiers[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_HasModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_HasModifiers[1] = {{ wxLua_wxKeyEvent_HasModifiers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_HasModifiers }}; -// bool HasModifiers() const; -static int LUACALL wxLua_wxKeyEvent_HasModifiers(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call HasModifiers - bool returns = (self->HasModifiers()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_MetaDown[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_MetaDown[1] = {{ wxLua_wxKeyEvent_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_MetaDown }}; -// bool MetaDown() const; -static int LUACALL wxLua_wxKeyEvent_MetaDown(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_ShiftDown[] = { &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxKeyEvent_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_ShiftDown[1] = {{ wxLua_wxKeyEvent_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_ShiftDown }}; -// bool ShiftDown() const; -static int LUACALL wxLua_wxKeyEvent_ShiftDown(lua_State *L) -{ - // get this - wxKeyEvent * self = (wxKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxKeyEvent); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_delete[] = { &wxluatype_wxKeyEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxKeyEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxKeyEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxKeyEvent_constructor[1] = {{ wxLua_wxKeyEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxKeyEvent_constructor }}; -// wxKeyEvent(wxEventType keyEventType); -static int LUACALL wxLua_wxKeyEvent_constructor(lua_State *L) -{ - // wxEventType keyEventType - wxEventType keyEventType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxKeyEvent* returns = new wxKeyEvent(keyEventType); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxKeyEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxKeyEvent); - - return 1; -} - - - -void wxLua_wxKeyEvent_delete_function(void** p) -{ - wxKeyEvent* o = (wxKeyEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxKeyEvent_methods[] = { - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_AltDown, 1, NULL }, - { "CmdDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_CmdDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_ControlDown, 1, NULL }, - { "GetKeyCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetKeyCode, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "GetModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetModifiers, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetPositionXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetPositionXY, 1, NULL }, - { "GetRawKeyCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetRawKeyCode, 1, NULL }, - { "GetRawKeyFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetRawKeyFlags, 1, NULL }, - { "GetUnicodeKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetUnicodeKey, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_GetY, 1, NULL }, - { "HasModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_HasModifiers, 1, NULL }, - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_MetaDown, 1, NULL }, - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxKeyEvent_ShiftDown, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxKeyEvent_delete, 1, NULL }, - { "wxKeyEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxKeyEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxKeyEvent_methodCount = sizeof(wxKeyEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxNavigationKeyEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNavigationKeyEvent' -int wxluatype_wxNavigationKeyEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_GetCurrentFocus[] = { &wxluatype_wxNavigationKeyEvent, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_GetCurrentFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_GetCurrentFocus[1] = {{ wxLua_wxNavigationKeyEvent_GetCurrentFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_GetCurrentFocus }}; -// wxWindow* GetCurrentFocus() const; -static int LUACALL wxLua_wxNavigationKeyEvent_GetCurrentFocus(lua_State *L) -{ - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call GetCurrentFocus - wxWindow* returns = (wxWindow*)self->GetCurrentFocus(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_GetDirection[] = { &wxluatype_wxNavigationKeyEvent, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_GetDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_GetDirection[1] = {{ wxLua_wxNavigationKeyEvent_GetDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_GetDirection }}; -// bool GetDirection() const; -static int LUACALL wxLua_wxNavigationKeyEvent_GetDirection(lua_State *L) -{ - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call GetDirection - bool returns = (self->GetDirection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_IsFromTab[] = { &wxluatype_wxNavigationKeyEvent, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_IsFromTab(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_IsFromTab[1] = {{ wxLua_wxNavigationKeyEvent_IsFromTab, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_IsFromTab }}; -// bool IsFromTab() const; -static int LUACALL wxLua_wxNavigationKeyEvent_IsFromTab(lua_State *L) -{ - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call IsFromTab - bool returns = (self->IsFromTab()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_IsWindowChange[] = { &wxluatype_wxNavigationKeyEvent, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_IsWindowChange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_IsWindowChange[1] = {{ wxLua_wxNavigationKeyEvent_IsWindowChange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_IsWindowChange }}; -// bool IsWindowChange() const; -static int LUACALL wxLua_wxNavigationKeyEvent_IsWindowChange(lua_State *L) -{ - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call IsWindowChange - bool returns = (self->IsWindowChange()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetCurrentFocus[] = { &wxluatype_wxNavigationKeyEvent, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_SetCurrentFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_SetCurrentFocus[1] = {{ wxLua_wxNavigationKeyEvent_SetCurrentFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetCurrentFocus }}; -// void SetCurrentFocus(wxWindow *win); -static int LUACALL wxLua_wxNavigationKeyEvent_SetCurrentFocus(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call SetCurrentFocus - self->SetCurrentFocus(win); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetDirection[] = { &wxluatype_wxNavigationKeyEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_SetDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_SetDirection[1] = {{ wxLua_wxNavigationKeyEvent_SetDirection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetDirection }}; -// void SetDirection(bool bForward); -static int LUACALL wxLua_wxNavigationKeyEvent_SetDirection(lua_State *L) -{ - // bool bForward - bool bForward = wxlua_getbooleantype(L, 2); - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call SetDirection - self->SetDirection(bForward); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetFlags[] = { &wxluatype_wxNavigationKeyEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_SetFlags[1] = {{ wxLua_wxNavigationKeyEvent_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetFlags }}; -// void SetFlags(long flags); -static int LUACALL wxLua_wxNavigationKeyEvent_SetFlags(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetFromTab[] = { &wxluatype_wxNavigationKeyEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_SetFromTab(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_SetFromTab[1] = {{ wxLua_wxNavigationKeyEvent_SetFromTab, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetFromTab }}; -// void SetFromTab(bool bIs); -static int LUACALL wxLua_wxNavigationKeyEvent_SetFromTab(lua_State *L) -{ - // bool bIs - bool bIs = wxlua_getbooleantype(L, 2); - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call SetFromTab - self->SetFromTab(bIs); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetWindowChange[] = { &wxluatype_wxNavigationKeyEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxNavigationKeyEvent_SetWindowChange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_SetWindowChange[1] = {{ wxLua_wxNavigationKeyEvent_SetWindowChange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_SetWindowChange }}; -// void SetWindowChange(bool bIs); -static int LUACALL wxLua_wxNavigationKeyEvent_SetWindowChange(lua_State *L) -{ - // bool bIs - bool bIs = wxlua_getbooleantype(L, 2); - // get this - wxNavigationKeyEvent * self = (wxNavigationKeyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNavigationKeyEvent); - // call SetWindowChange - self->SetWindowChange(bIs); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNavigationKeyEvent_delete[] = { &wxluatype_wxNavigationKeyEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxNavigationKeyEvent_delete }}; - -static int LUACALL wxLua_wxNavigationKeyEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNavigationKeyEvent_constructor[1] = {{ wxLua_wxNavigationKeyEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxNavigationKeyEvent(); -static int LUACALL wxLua_wxNavigationKeyEvent_constructor(lua_State *L) -{ - // call constructor - wxNavigationKeyEvent* returns = new wxNavigationKeyEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxNavigationKeyEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNavigationKeyEvent); - - return 1; -} - - - -void wxLua_wxNavigationKeyEvent_delete_function(void** p) -{ - wxNavigationKeyEvent* o = (wxNavigationKeyEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNavigationKeyEvent_methods[] = { - { "GetCurrentFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_GetCurrentFocus, 1, NULL }, - { "GetDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_GetDirection, 1, NULL }, - { "IsFromTab", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_IsFromTab, 1, NULL }, - { "IsWindowChange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_IsWindowChange, 1, NULL }, - { "SetCurrentFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_SetCurrentFocus, 1, NULL }, - { "SetDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_SetDirection, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_SetFlags, 1, NULL }, - { "SetFromTab", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_SetFromTab, 1, NULL }, - { "SetWindowChange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNavigationKeyEvent_SetWindowChange, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxNavigationKeyEvent_delete, 1, NULL }, - { "wxNavigationKeyEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNavigationKeyEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxNavigationKeyEvent_methodCount = sizeof(wxNavigationKeyEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxNavigationKeyEvent_enums[] = { - { "FromTab", wxNavigationKeyEvent::FromTab }, - { "IsBackward", wxNavigationKeyEvent::IsBackward }, - { "IsForward", wxNavigationKeyEvent::IsForward }, - { "WinChange", wxNavigationKeyEvent::WinChange }, - { NULL, 0, }, -}; -int wxNavigationKeyEvent_enumCount = sizeof(wxNavigationKeyEvent_enums)/sizeof(wxLuaBindNumber) - 1; - -// --------------------------------------------------------------------------- -// Bind class wxIdleEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIdleEvent' -int wxluatype_wxIdleEvent = WXLUA_TUNKNOWN; - -#if !wxCHECK_VERSION(2,9,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIdleEvent_CanSend[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxIdleEvent_CanSend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_CanSend[1] = {{ wxLua_wxIdleEvent_CanSend, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxIdleEvent_CanSend }}; -// !%wxchkver_2_9_2 static bool CanSend(wxWindow* window); -static int LUACALL wxLua_wxIdleEvent_CanSend(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CanSend - bool returns = (wxIdleEvent::CanSend(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,9,2) - -static int LUACALL wxLua_wxIdleEvent_GetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_GetMode[1] = {{ wxLua_wxIdleEvent_GetMode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxIdleMode GetMode(); -static int LUACALL wxLua_wxIdleEvent_GetMode(lua_State *L) -{ - // call GetMode - wxIdleMode returns = (wxIdleEvent::GetMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIdleEvent_MoreRequested[] = { &wxluatype_wxIdleEvent, NULL }; -static int LUACALL wxLua_wxIdleEvent_MoreRequested(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_MoreRequested[1] = {{ wxLua_wxIdleEvent_MoreRequested, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIdleEvent_MoreRequested }}; -// bool MoreRequested() const; -static int LUACALL wxLua_wxIdleEvent_MoreRequested(lua_State *L) -{ - // get this - wxIdleEvent * self = (wxIdleEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIdleEvent); - // call MoreRequested - bool returns = (self->MoreRequested()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIdleEvent_RequestMore[] = { &wxluatype_wxIdleEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxIdleEvent_RequestMore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_RequestMore[1] = {{ wxLua_wxIdleEvent_RequestMore, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxIdleEvent_RequestMore }}; -// void RequestMore(bool needMore = true); -static int LUACALL wxLua_wxIdleEvent_RequestMore(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool needMore = true - bool needMore = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxIdleEvent * self = (wxIdleEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIdleEvent); - // call RequestMore - self->RequestMore(needMore); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIdleEvent_SetMode[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIdleEvent_SetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_SetMode[1] = {{ wxLua_wxIdleEvent_SetMode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxIdleEvent_SetMode }}; -// static void SetMode(wxIdleMode mode); -static int LUACALL wxLua_wxIdleEvent_SetMode(lua_State *L) -{ - // wxIdleMode mode - wxIdleMode mode = (wxIdleMode)wxlua_getenumtype(L, 1); - // call SetMode - wxIdleEvent::SetMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIdleEvent_delete[] = { &wxluatype_wxIdleEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIdleEvent_delete }}; - -static int LUACALL wxLua_wxIdleEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIdleEvent_constructor[1] = {{ wxLua_wxIdleEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxIdleEvent(); -static int LUACALL wxLua_wxIdleEvent_constructor(lua_State *L) -{ - // call constructor - wxIdleEvent* returns = new wxIdleEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIdleEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIdleEvent); - - return 1; -} - - - -void wxLua_wxIdleEvent_delete_function(void** p) -{ - wxIdleEvent* o = (wxIdleEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIdleEvent_methods[] = { -#if !wxCHECK_VERSION(2,9,2) - { "CanSend", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxIdleEvent_CanSend, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,2) - - { "GetMode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxIdleEvent_GetMode, 1, NULL }, - { "MoreRequested", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIdleEvent_MoreRequested, 1, NULL }, - { "RequestMore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIdleEvent_RequestMore, 1, NULL }, - { "SetMode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxIdleEvent_SetMode, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIdleEvent_delete, 1, NULL }, - { "wxIdleEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIdleEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxIdleEvent_methodCount = sizeof(wxIdleEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxInitDialogEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxInitDialogEvent' -int wxluatype_wxInitDialogEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInitDialogEvent_delete[] = { &wxluatype_wxInitDialogEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInitDialogEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxInitDialogEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxInitDialogEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxInitDialogEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxInitDialogEvent_constructor[1] = {{ wxLua_wxInitDialogEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxInitDialogEvent_constructor }}; -// wxInitDialogEvent(int id = 0); -static int LUACALL wxLua_wxInitDialogEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxInitDialogEvent* returns = new wxInitDialogEvent(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxInitDialogEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInitDialogEvent); - - return 1; -} - - - -void wxLua_wxInitDialogEvent_delete_function(void** p) -{ - wxInitDialogEvent* o = (wxInitDialogEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxInitDialogEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxInitDialogEvent_delete, 1, NULL }, - { "wxInitDialogEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxInitDialogEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxInitDialogEvent_methodCount = sizeof(wxInitDialogEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxContextMenuEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxContextMenuEvent' -int wxluatype_wxContextMenuEvent = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextMenuEvent_GetPosition[] = { &wxluatype_wxContextMenuEvent, NULL }; -static int LUACALL wxLua_wxContextMenuEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextMenuEvent_GetPosition[1] = {{ wxLua_wxContextMenuEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxContextMenuEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxContextMenuEvent_GetPosition(lua_State *L) -{ - // get this - wxContextMenuEvent * self = (wxContextMenuEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxContextMenuEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextMenuEvent_SetPosition[] = { &wxluatype_wxContextMenuEvent, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxContextMenuEvent_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextMenuEvent_SetPosition[1] = {{ wxLua_wxContextMenuEvent_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxContextMenuEvent_SetPosition }}; -// void SetPosition(const wxPoint& pos); -static int LUACALL wxLua_wxContextMenuEvent_SetPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxContextMenuEvent * self = (wxContextMenuEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxContextMenuEvent); - // call SetPosition - self->SetPosition(*pos); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextMenuEvent_delete[] = { &wxluatype_wxContextMenuEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextMenuEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxContextMenuEvent_delete }}; - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextMenuEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxContextMenuEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextMenuEvent_constructor[1] = {{ wxLua_wxContextMenuEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxContextMenuEvent_constructor }}; -// wxContextMenuEvent(wxEventType type = wxEVT_NULL, wxWindowID winid = 0, const wxPoint& pt = wxDefaultPosition); -static int LUACALL wxLua_wxContextMenuEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pt = wxDefaultPosition - const wxPoint * pt = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID winid = 0 - wxWindowID winid = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : 0); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxContextMenuEvent* returns = new wxContextMenuEvent(type, winid, *pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxContextMenuEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxContextMenuEvent); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - - - -void wxLua_wxContextMenuEvent_delete_function(void** p) -{ - wxContextMenuEvent* o = (wxContextMenuEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxContextMenuEvent_methods[] = { -#if wxLUA_USE_wxPointSizeRect - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxContextMenuEvent_GetPosition, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxContextMenuEvent_SetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxContextMenuEvent_delete, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxContextMenuEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxContextMenuEvent_constructor, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { 0, 0, 0, 0 }, -}; - -int wxContextMenuEvent_methodCount = sizeof(wxContextMenuEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxMouseEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMouseEvent' -int wxluatype_wxMouseEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_AltDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_AltDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_AltDown[1] = {{ wxLua_wxMouseEvent_AltDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_AltDown }}; -// bool AltDown(); -static int LUACALL wxLua_wxMouseEvent_AltDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call AltDown - bool returns = (self->AltDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Aux1DClick[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Aux1DClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Aux1DClick[1] = {{ wxLua_wxMouseEvent_Aux1DClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Aux1DClick }}; -// %wxchkver_3_0_0 bool Aux1DClick() const; -static int LUACALL wxLua_wxMouseEvent_Aux1DClick(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Aux1DClick - bool returns = (self->Aux1DClick()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Aux1Down[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Aux1Down(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Aux1Down[1] = {{ wxLua_wxMouseEvent_Aux1Down, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Aux1Down }}; -// %wxchkver_3_0_0 bool Aux1Down() const; -static int LUACALL wxLua_wxMouseEvent_Aux1Down(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Aux1Down - bool returns = (self->Aux1Down()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Aux1Up[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Aux1Up(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Aux1Up[1] = {{ wxLua_wxMouseEvent_Aux1Up, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Aux1Up }}; -// %wxchkver_3_0_0 bool Aux1Up() const; -static int LUACALL wxLua_wxMouseEvent_Aux1Up(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Aux1Up - bool returns = (self->Aux1Up()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Aux2DClick[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Aux2DClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Aux2DClick[1] = {{ wxLua_wxMouseEvent_Aux2DClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Aux2DClick }}; -// %wxchkver_3_0_0 bool Aux2DClick() const; -static int LUACALL wxLua_wxMouseEvent_Aux2DClick(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Aux2DClick - bool returns = (self->Aux2DClick()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Aux2Down[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Aux2Down(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Aux2Down[1] = {{ wxLua_wxMouseEvent_Aux2Down, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Aux2Down }}; -// %wxchkver_3_0_0 bool Aux2Down() const; -static int LUACALL wxLua_wxMouseEvent_Aux2Down(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Aux2Down - bool returns = (self->Aux2Down()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Aux2Up[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Aux2Up(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Aux2Up[1] = {{ wxLua_wxMouseEvent_Aux2Up, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Aux2Up }}; -// %wxchkver_3_0_0 bool Aux2Up() const; -static int LUACALL wxLua_wxMouseEvent_Aux2Up(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Aux2Up - bool returns = (self->Aux2Up()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Button[] = { &wxluatype_wxMouseEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseEvent_Button(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Button[1] = {{ wxLua_wxMouseEvent_Button, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseEvent_Button }}; -// bool Button(int button); -static int LUACALL wxLua_wxMouseEvent_Button(lua_State *L) -{ - // int button - int button = (int)wxlua_getnumbertype(L, 2); - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Button - bool returns = (self->Button(button)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_ButtonDClick[] = { &wxluatype_wxMouseEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseEvent_ButtonDClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_ButtonDClick[1] = {{ wxLua_wxMouseEvent_ButtonDClick, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMouseEvent_ButtonDClick }}; -// bool ButtonDClick(int but = wxMOUSE_BTN_ANY); -static int LUACALL wxLua_wxMouseEvent_ButtonDClick(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int but = wxMOUSE_BTN_ANY - int but = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxMOUSE_BTN_ANY); - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call ButtonDClick - bool returns = (self->ButtonDClick(but)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_ButtonDown[] = { &wxluatype_wxMouseEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseEvent_ButtonDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_ButtonDown[1] = {{ wxLua_wxMouseEvent_ButtonDown, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMouseEvent_ButtonDown }}; -// bool ButtonDown(int but = wxMOUSE_BTN_ANY); -static int LUACALL wxLua_wxMouseEvent_ButtonDown(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int but = wxMOUSE_BTN_ANY - int but = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxMOUSE_BTN_ANY); - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call ButtonDown - bool returns = (self->ButtonDown(but)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_ButtonUp[] = { &wxluatype_wxMouseEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseEvent_ButtonUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_ButtonUp[1] = {{ wxLua_wxMouseEvent_ButtonUp, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMouseEvent_ButtonUp }}; -// bool ButtonUp(int but = wxMOUSE_BTN_ANY); -static int LUACALL wxLua_wxMouseEvent_ButtonUp(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int but = wxMOUSE_BTN_ANY - int but = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxMOUSE_BTN_ANY); - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call ButtonUp - bool returns = (self->ButtonUp(but)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_CmdDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_CmdDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_CmdDown[1] = {{ wxLua_wxMouseEvent_CmdDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_CmdDown }}; -// bool CmdDown() const; -static int LUACALL wxLua_wxMouseEvent_CmdDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call CmdDown - bool returns = (self->CmdDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_ControlDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_ControlDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_ControlDown[1] = {{ wxLua_wxMouseEvent_ControlDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_ControlDown }}; -// bool ControlDown(); -static int LUACALL wxLua_wxMouseEvent_ControlDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call ControlDown - bool returns = (self->ControlDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Dragging[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Dragging(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Dragging[1] = {{ wxLua_wxMouseEvent_Dragging, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Dragging }}; -// bool Dragging(); -static int LUACALL wxLua_wxMouseEvent_Dragging(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Dragging - bool returns = (self->Dragging()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Entering[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Entering(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Entering[1] = {{ wxLua_wxMouseEvent_Entering, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Entering }}; -// bool Entering(); -static int LUACALL wxLua_wxMouseEvent_Entering(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Entering - bool returns = (self->Entering()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetClickCount[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetClickCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetClickCount[1] = {{ wxLua_wxMouseEvent_GetClickCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetClickCount }}; -// %wxchkver_2_9_0 int GetClickCount() const; -static int LUACALL wxLua_wxMouseEvent_GetClickCount(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetClickCount - int returns = (self->GetClickCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetColumnsPerAction[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetColumnsPerAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetColumnsPerAction[1] = {{ wxLua_wxMouseEvent_GetColumnsPerAction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetColumnsPerAction }}; -// %wxchkver_2_9_5 int GetColumnsPerAction() const; -static int LUACALL wxLua_wxMouseEvent_GetColumnsPerAction(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetColumnsPerAction - int returns = (self->GetColumnsPerAction()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetLinesPerAction[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetLinesPerAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetLinesPerAction[1] = {{ wxLua_wxMouseEvent_GetLinesPerAction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetLinesPerAction }}; -// int GetLinesPerAction() const; -static int LUACALL wxLua_wxMouseEvent_GetLinesPerAction(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetLinesPerAction - int returns = (self->GetLinesPerAction()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetLogicalPosition[] = { &wxluatype_wxMouseEvent, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetLogicalPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetLogicalPosition[1] = {{ wxLua_wxMouseEvent_GetLogicalPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMouseEvent_GetLogicalPosition }}; -// wxPoint GetLogicalPosition(const wxDC& dc) const; -static int LUACALL wxLua_wxMouseEvent_GetLogicalPosition(lua_State *L) -{ - // const wxDC dc - const wxDC * dc = (const wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetLogicalPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetLogicalPosition(*dc)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetMagnification[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetMagnification(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetMagnification[1] = {{ wxLua_wxMouseEvent_GetMagnification, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetMagnification }}; -// %wxchkver_3_1_0 float GetMagnification() const; -static int LUACALL wxLua_wxMouseEvent_GetMagnification(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetMagnification - float returns = (self->GetMagnification()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetPosition[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetPosition[1] = {{ wxLua_wxMouseEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxMouseEvent_GetPosition(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetPositionXY[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetPositionXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetPositionXY[1] = {{ wxLua_wxMouseEvent_GetPositionXY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetPositionXY }}; -// %override wxLua_wxMouseEvent_GetPositionXY -// void GetPositionXY(wxCoord* x, wxCoord* y) const -static int LUACALL wxLua_wxMouseEvent_GetPositionXY(lua_State *L) -{ - wxCoord y; - wxCoord x; - // get this - wxMouseEvent *self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetPosition - self->GetPosition(&x, &y); - // push results - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - - -#if wxCHECK_VERSION(2,9,4) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetWheelAxis[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetWheelAxis(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetWheelAxis[1] = {{ wxLua_wxMouseEvent_GetWheelAxis, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetWheelAxis }}; -// %wxchkver_2_9_4 wxMouseWheelAxis GetWheelAxis() const; -static int LUACALL wxLua_wxMouseEvent_GetWheelAxis(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetWheelAxis - wxMouseWheelAxis returns = (self->GetWheelAxis()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,4) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetWheelDelta[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetWheelDelta(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetWheelDelta[1] = {{ wxLua_wxMouseEvent_GetWheelDelta, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetWheelDelta }}; -// int GetWheelDelta() const; -static int LUACALL wxLua_wxMouseEvent_GetWheelDelta(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetWheelDelta - int returns = (self->GetWheelDelta()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetWheelRotation[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetWheelRotation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetWheelRotation[1] = {{ wxLua_wxMouseEvent_GetWheelRotation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetWheelRotation }}; -// int GetWheelRotation() const; -static int LUACALL wxLua_wxMouseEvent_GetWheelRotation(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetWheelRotation - int returns = (self->GetWheelRotation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetX[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetX[1] = {{ wxLua_wxMouseEvent_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetX }}; -// long GetX() const; -static int LUACALL wxLua_wxMouseEvent_GetX(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetX - long returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_GetY[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_GetY[1] = {{ wxLua_wxMouseEvent_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_GetY }}; -// long GetY(); -static int LUACALL wxLua_wxMouseEvent_GetY(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call GetY - long returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_IsButton[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_IsButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_IsButton[1] = {{ wxLua_wxMouseEvent_IsButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_IsButton }}; -// bool IsButton() const; -static int LUACALL wxLua_wxMouseEvent_IsButton(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call IsButton - bool returns = (self->IsButton()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_IsPageScroll[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_IsPageScroll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_IsPageScroll[1] = {{ wxLua_wxMouseEvent_IsPageScroll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_IsPageScroll }}; -// bool IsPageScroll() const; -static int LUACALL wxLua_wxMouseEvent_IsPageScroll(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call IsPageScroll - bool returns = (self->IsPageScroll()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,3) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_IsWheelInverted[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_IsWheelInverted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_IsWheelInverted[1] = {{ wxLua_wxMouseEvent_IsWheelInverted, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_IsWheelInverted }}; -// %wxchkver_3_1_3 bool IsWheelInverted() const; -static int LUACALL wxLua_wxMouseEvent_IsWheelInverted(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call IsWheelInverted - bool returns = (self->IsWheelInverted()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,3) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Leaving[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Leaving(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Leaving[1] = {{ wxLua_wxMouseEvent_Leaving, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Leaving }}; -// bool Leaving() const; -static int LUACALL wxLua_wxMouseEvent_Leaving(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Leaving - bool returns = (self->Leaving()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_LeftDClick[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_LeftDClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_LeftDClick[1] = {{ wxLua_wxMouseEvent_LeftDClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_LeftDClick }}; -// bool LeftDClick() const; -static int LUACALL wxLua_wxMouseEvent_LeftDClick(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call LeftDClick - bool returns = (self->LeftDClick()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_LeftDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_LeftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_LeftDown[1] = {{ wxLua_wxMouseEvent_LeftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_LeftDown }}; -// bool LeftDown() const; -static int LUACALL wxLua_wxMouseEvent_LeftDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call LeftDown - bool returns = (self->LeftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_LeftIsDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_LeftIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_LeftIsDown[1] = {{ wxLua_wxMouseEvent_LeftIsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_LeftIsDown }}; -// bool LeftIsDown() const; -static int LUACALL wxLua_wxMouseEvent_LeftIsDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call LeftIsDown - bool returns = (self->LeftIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_LeftUp[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_LeftUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_LeftUp[1] = {{ wxLua_wxMouseEvent_LeftUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_LeftUp }}; -// bool LeftUp() const; -static int LUACALL wxLua_wxMouseEvent_LeftUp(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call LeftUp - bool returns = (self->LeftUp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Magnify[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Magnify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Magnify[1] = {{ wxLua_wxMouseEvent_Magnify, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Magnify }}; -// %wxchkver_3_1_0 bool Magnify() const; -static int LUACALL wxLua_wxMouseEvent_Magnify(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Magnify - bool returns = (self->Magnify()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_MetaDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_MetaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_MetaDown[1] = {{ wxLua_wxMouseEvent_MetaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_MetaDown }}; -// bool MetaDown() const; -static int LUACALL wxLua_wxMouseEvent_MetaDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call MetaDown - bool returns = (self->MetaDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_MiddleDClick[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_MiddleDClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_MiddleDClick[1] = {{ wxLua_wxMouseEvent_MiddleDClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_MiddleDClick }}; -// bool MiddleDClick() const; -static int LUACALL wxLua_wxMouseEvent_MiddleDClick(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call MiddleDClick - bool returns = (self->MiddleDClick()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_MiddleDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_MiddleDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_MiddleDown[1] = {{ wxLua_wxMouseEvent_MiddleDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_MiddleDown }}; -// bool MiddleDown() const; -static int LUACALL wxLua_wxMouseEvent_MiddleDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call MiddleDown - bool returns = (self->MiddleDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_MiddleIsDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_MiddleIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_MiddleIsDown[1] = {{ wxLua_wxMouseEvent_MiddleIsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_MiddleIsDown }}; -// bool MiddleIsDown() const; -static int LUACALL wxLua_wxMouseEvent_MiddleIsDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call MiddleIsDown - bool returns = (self->MiddleIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_MiddleUp[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_MiddleUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_MiddleUp[1] = {{ wxLua_wxMouseEvent_MiddleUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_MiddleUp }}; -// bool MiddleUp() const; -static int LUACALL wxLua_wxMouseEvent_MiddleUp(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call MiddleUp - bool returns = (self->MiddleUp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_Moving[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_Moving(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_Moving[1] = {{ wxLua_wxMouseEvent_Moving, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_Moving }}; -// bool Moving() const; -static int LUACALL wxLua_wxMouseEvent_Moving(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call Moving - bool returns = (self->Moving()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_RightDClick[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_RightDClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_RightDClick[1] = {{ wxLua_wxMouseEvent_RightDClick, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_RightDClick }}; -// bool RightDClick() const; -static int LUACALL wxLua_wxMouseEvent_RightDClick(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call RightDClick - bool returns = (self->RightDClick()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_RightDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_RightDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_RightDown[1] = {{ wxLua_wxMouseEvent_RightDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_RightDown }}; -// bool RightDown() const; -static int LUACALL wxLua_wxMouseEvent_RightDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call RightDown - bool returns = (self->RightDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_RightIsDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_RightIsDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_RightIsDown[1] = {{ wxLua_wxMouseEvent_RightIsDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_RightIsDown }}; -// bool RightIsDown() const; -static int LUACALL wxLua_wxMouseEvent_RightIsDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call RightIsDown - bool returns = (self->RightIsDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_RightUp[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_RightUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_RightUp[1] = {{ wxLua_wxMouseEvent_RightUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_RightUp }}; -// bool RightUp() const; -static int LUACALL wxLua_wxMouseEvent_RightUp(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call RightUp - bool returns = (self->RightUp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_ShiftDown[] = { &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxMouseEvent_ShiftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_ShiftDown[1] = {{ wxLua_wxMouseEvent_ShiftDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_ShiftDown }}; -// bool ShiftDown() const; -static int LUACALL wxLua_wxMouseEvent_ShiftDown(lua_State *L) -{ - // get this - wxMouseEvent * self = (wxMouseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseEvent); - // call ShiftDown - bool returns = (self->ShiftDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_delete[] = { &wxluatype_wxMouseEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMouseEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseEvent_constructor[1] = {{ wxLua_wxMouseEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMouseEvent_constructor }}; -// wxMouseEvent(wxEventType mouseEventType = wxEVT_NULL); -static int LUACALL wxLua_wxMouseEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxEventType mouseEventType = wxEVT_NULL - wxEventType mouseEventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxMouseEvent* returns = new wxMouseEvent(mouseEventType); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMouseEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseEvent); - - return 1; -} - - - -void wxLua_wxMouseEvent_delete_function(void** p) -{ - wxMouseEvent* o = (wxMouseEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMouseEvent_methods[] = { - { "AltDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_AltDown, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "Aux1DClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Aux1DClick, 1, NULL }, - { "Aux1Down", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Aux1Down, 1, NULL }, - { "Aux1Up", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Aux1Up, 1, NULL }, - { "Aux2DClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Aux2DClick, 1, NULL }, - { "Aux2Down", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Aux2Down, 1, NULL }, - { "Aux2Up", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Aux2Up, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "Button", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Button, 1, NULL }, - { "ButtonDClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_ButtonDClick, 1, NULL }, - { "ButtonDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_ButtonDown, 1, NULL }, - { "ButtonUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_ButtonUp, 1, NULL }, - { "CmdDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_CmdDown, 1, NULL }, - { "ControlDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_ControlDown, 1, NULL }, - { "Dragging", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Dragging, 1, NULL }, - { "Entering", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Entering, 1, NULL }, - -#if wxCHECK_VERSION(2,9,0) - { "GetClickCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetClickCount, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,0) - -#if wxCHECK_VERSION(2,9,5) - { "GetColumnsPerAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetColumnsPerAction, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetLinesPerAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetLinesPerAction, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { "GetLogicalPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetLogicalPosition, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) - { "GetMagnification", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetMagnification, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetPositionXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetPositionXY, 1, NULL }, - -#if wxCHECK_VERSION(2,9,4) - { "GetWheelAxis", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetWheelAxis, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,4) - - { "GetWheelDelta", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetWheelDelta, 1, NULL }, - { "GetWheelRotation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetWheelRotation, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_GetY, 1, NULL }, - { "IsButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_IsButton, 1, NULL }, - { "IsPageScroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_IsPageScroll, 1, NULL }, - -#if wxCHECK_VERSION(3,1,3) - { "IsWheelInverted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_IsWheelInverted, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,3) - - { "Leaving", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Leaving, 1, NULL }, - { "LeftDClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_LeftDClick, 1, NULL }, - { "LeftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_LeftDown, 1, NULL }, - { "LeftIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_LeftIsDown, 1, NULL }, - { "LeftUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_LeftUp, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "Magnify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Magnify, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "MetaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_MetaDown, 1, NULL }, - { "MiddleDClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_MiddleDClick, 1, NULL }, - { "MiddleDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_MiddleDown, 1, NULL }, - { "MiddleIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_MiddleIsDown, 1, NULL }, - { "MiddleUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_MiddleUp, 1, NULL }, - { "Moving", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_Moving, 1, NULL }, - { "RightDClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_RightDClick, 1, NULL }, - { "RightDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_RightDown, 1, NULL }, - { "RightIsDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_RightIsDown, 1, NULL }, - { "RightUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_RightUp, 1, NULL }, - { "ShiftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseEvent_ShiftDown, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMouseEvent_delete, 1, NULL }, - { "wxMouseEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMouseEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxMouseEvent_methodCount = sizeof(wxMouseEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxMouseCaptureChangedEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMouseCaptureChangedEvent' -int wxluatype_wxMouseCaptureChangedEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow[] = { &wxluatype_wxMouseCaptureChangedEvent, NULL }; -static int LUACALL wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow[1] = {{ wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow }}; -// wxWindow* GetCapturedWindow() const; -static int LUACALL wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow(lua_State *L) -{ - // get this - wxMouseCaptureChangedEvent * self = (wxMouseCaptureChangedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMouseCaptureChangedEvent); - // call GetCapturedWindow - wxWindow* returns = (wxWindow*)self->GetCapturedWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseCaptureChangedEvent_delete[] = { &wxluatype_wxMouseCaptureChangedEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseCaptureChangedEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMouseCaptureChangedEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseCaptureChangedEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxMouseCaptureChangedEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseCaptureChangedEvent_constructor[1] = {{ wxLua_wxMouseCaptureChangedEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxMouseCaptureChangedEvent_constructor }}; -// wxMouseCaptureChangedEvent(wxWindowID winid = 0, wxWindow* gainedCapture = NULL); -static int LUACALL wxLua_wxMouseCaptureChangedEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow gainedCapture = NULL - wxWindow * gainedCapture = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // wxWindowID winid = 0 - wxWindowID winid = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxMouseCaptureChangedEvent* returns = new wxMouseCaptureChangedEvent(winid, gainedCapture); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMouseCaptureChangedEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseCaptureChangedEvent); - - return 1; -} - - - -void wxLua_wxMouseCaptureChangedEvent_delete_function(void** p) -{ - wxMouseCaptureChangedEvent* o = (wxMouseCaptureChangedEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMouseCaptureChangedEvent_methods[] = { - { "GetCapturedWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMouseCaptureChangedEvent_GetCapturedWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMouseCaptureChangedEvent_delete, 1, NULL }, - { "wxMouseCaptureChangedEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMouseCaptureChangedEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxMouseCaptureChangedEvent_methodCount = sizeof(wxMouseCaptureChangedEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxCHECK_VERSION(2,8,0) -// --------------------------------------------------------------------------- -// Bind class wxMouseCaptureLostEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMouseCaptureLostEvent' -int wxluatype_wxMouseCaptureLostEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseCaptureLostEvent_delete[] = { &wxluatype_wxMouseCaptureLostEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseCaptureLostEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMouseCaptureLostEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMouseCaptureLostEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMouseCaptureLostEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMouseCaptureLostEvent_constructor[1] = {{ wxLua_wxMouseCaptureLostEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMouseCaptureLostEvent_constructor }}; -// wxMouseCaptureLostEvent(wxWindowID winid = 0); -static int LUACALL wxLua_wxMouseCaptureLostEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID winid = 0 - wxWindowID winid = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxMouseCaptureLostEvent* returns = new wxMouseCaptureLostEvent(winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMouseCaptureLostEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseCaptureLostEvent); - - return 1; -} - - - - -void wxLua_wxMouseCaptureLostEvent_delete_function(void** p) -{ - wxMouseCaptureLostEvent* o = (wxMouseCaptureLostEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMouseCaptureLostEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMouseCaptureLostEvent_delete, 1, NULL }, - { "wxMouseCaptureLostEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMouseCaptureLostEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMouseCaptureLostEvent_methodCount = sizeof(wxMouseCaptureLostEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) - -// --------------------------------------------------------------------------- -// Bind class wxMoveEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMoveEvent' -int wxluatype_wxMoveEvent = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxMoveEvent_GetPosition[] = { &wxluatype_wxMoveEvent, NULL }; -static int LUACALL wxLua_wxMoveEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMoveEvent_GetPosition[1] = {{ wxLua_wxMoveEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMoveEvent_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxMoveEvent_GetPosition(lua_State *L) -{ - // get this - wxMoveEvent * self = (wxMoveEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMoveEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMoveEvent_delete[] = { &wxluatype_wxMoveEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMoveEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMoveEvent_delete }}; - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxMoveEvent_constructor[] = { &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMoveEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMoveEvent_constructor[1] = {{ wxLua_wxMoveEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxMoveEvent_constructor }}; -// wxMoveEvent(const wxPoint& pt, int id = 0); -static int LUACALL wxLua_wxMoveEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxMoveEvent* returns = new wxMoveEvent(*pt, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMoveEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMoveEvent); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - - - -void wxLua_wxMoveEvent_delete_function(void** p) -{ - wxMoveEvent* o = (wxMoveEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMoveEvent_methods[] = { -#if wxLUA_USE_wxPointSizeRect - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMoveEvent_GetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMoveEvent_delete, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxMoveEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMoveEvent_constructor, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { 0, 0, 0, 0 }, -}; - -int wxMoveEvent_methodCount = sizeof(wxMoveEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxPaintEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPaintEvent' -int wxluatype_wxPaintEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaintEvent_delete[] = { &wxluatype_wxPaintEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaintEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPaintEvent_delete }}; - - -#if !wxCHECK_VERSION(3,1,4) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaintEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPaintEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaintEvent_constructor[1] = {{ wxLua_wxPaintEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxPaintEvent_constructor }}; -// !%wxchkver_3_1_4 wxPaintEvent(int id = 0); -static int LUACALL wxLua_wxPaintEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxPaintEvent* returns = new wxPaintEvent(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPaintEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPaintEvent); - - return 1; -} - -#endif // !wxCHECK_VERSION(3,1,4) - - - -void wxLua_wxPaintEvent_delete_function(void** p) -{ - wxPaintEvent* o = (wxPaintEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPaintEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPaintEvent_delete, 1, NULL }, - -#if !wxCHECK_VERSION(3,1,4) - { "wxPaintEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPaintEvent_constructor, 1, NULL }, -#endif // !wxCHECK_VERSION(3,1,4) - - { 0, 0, 0, 0 }, -}; - -int wxPaintEvent_methodCount = sizeof(wxPaintEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxProcessEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxProcessEvent' -int wxluatype_wxProcessEvent = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcessEvent_GetExitCode[] = { &wxluatype_wxProcessEvent, NULL }; -static int LUACALL wxLua_wxProcessEvent_GetExitCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcessEvent_GetExitCode[1] = {{ wxLua_wxProcessEvent_GetExitCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcessEvent_GetExitCode }}; -// %wxchkver_2_6 int GetExitCode(); -static int LUACALL wxLua_wxProcessEvent_GetExitCode(lua_State *L) -{ - // get this - wxProcessEvent * self = (wxProcessEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcessEvent); - // call GetExitCode - int returns = (self->GetExitCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,6,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcessEvent_GetPid[] = { &wxluatype_wxProcessEvent, NULL }; -static int LUACALL wxLua_wxProcessEvent_GetPid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcessEvent_GetPid[1] = {{ wxLua_wxProcessEvent_GetPid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProcessEvent_GetPid }}; -// int GetPid() const; -static int LUACALL wxLua_wxProcessEvent_GetPid(lua_State *L) -{ - // get this - wxProcessEvent * self = (wxProcessEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProcessEvent); - // call GetPid - int returns = (self->GetPid()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcessEvent_delete[] = { &wxluatype_wxProcessEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcessEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxProcessEvent_delete }}; - - -#if wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcessEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcessEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcessEvent_constructor1[1] = {{ wxLua_wxProcessEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxProcessEvent_constructor1 }}; -// %wxchkver_2_6 wxProcessEvent(int nId = 0, int pid = 0, int exitcode = 0); -static int LUACALL wxLua_wxProcessEvent_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int exitcode = 0 - int exitcode = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int pid = 0 - int pid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int nId = 0 - int nId = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxProcessEvent* returns = new wxProcessEvent(nId, pid, exitcode); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxProcessEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcessEvent); - - return 1; -} - -#endif // wxCHECK_VERSION(2,6,0) - -#if !wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProcessEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxProcessEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcessEvent_constructor[1] = {{ wxLua_wxProcessEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxProcessEvent_constructor }}; -// !%wxchkver_2_6 wxProcessEvent(int id = 0, int pid = 0); -static int LUACALL wxLua_wxProcessEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pid = 0 - int pid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int id = 0 - int id = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxProcessEvent* returns = new wxProcessEvent(id, pid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxProcessEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProcessEvent); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,6,0) - - - -#if (wxCHECK_VERSION(2,6,0))||(!wxCHECK_VERSION(2,6,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProcessEvent_constructor_overload[] = -{ - -#if wxCHECK_VERSION(2,6,0) - { wxLua_wxProcessEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxProcessEvent_constructor1 }, -#endif // wxCHECK_VERSION(2,6,0) - -#if !wxCHECK_VERSION(2,6,0) - { wxLua_wxProcessEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxProcessEvent_constructor }, -#endif // !wxCHECK_VERSION(2,6,0) -}; -static int s_wxluafunc_wxLua_wxProcessEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxProcessEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,6,0))||(!wxCHECK_VERSION(2,6,0)) - -void wxLua_wxProcessEvent_delete_function(void** p) -{ - wxProcessEvent* o = (wxProcessEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxProcessEvent_methods[] = { -#if wxCHECK_VERSION(2,6,0) - { "GetExitCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcessEvent_GetExitCode, 1, NULL }, -#endif // wxCHECK_VERSION(2,6,0) - - { "GetPid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProcessEvent_GetPid, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxProcessEvent_delete, 1, NULL }, - -#if (wxCHECK_VERSION(2,6,0))||(!wxCHECK_VERSION(2,6,0)) - { "wxProcessEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxProcessEvent_constructor_overload, s_wxluafunc_wxLua_wxProcessEvent_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,6,0))||(!wxCHECK_VERSION(2,6,0)) - - { 0, 0, 0, 0 }, -}; - -int wxProcessEvent_methodCount = sizeof(wxProcessEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxScrollEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxScrollEvent' -int wxluatype_wxScrollEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollEvent_GetOrientation[] = { &wxluatype_wxScrollEvent, NULL }; -static int LUACALL wxLua_wxScrollEvent_GetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollEvent_GetOrientation[1] = {{ wxLua_wxScrollEvent_GetOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollEvent_GetOrientation }}; -// int GetOrientation() const; -static int LUACALL wxLua_wxScrollEvent_GetOrientation(lua_State *L) -{ - // get this - wxScrollEvent * self = (wxScrollEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollEvent); - // call GetOrientation - int returns = (self->GetOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollEvent_GetPosition[] = { &wxluatype_wxScrollEvent, NULL }; -static int LUACALL wxLua_wxScrollEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollEvent_GetPosition[1] = {{ wxLua_wxScrollEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollEvent_GetPosition }}; -// int GetPosition() const; -static int LUACALL wxLua_wxScrollEvent_GetPosition(lua_State *L) -{ - // get this - wxScrollEvent * self = (wxScrollEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollEvent); - // call GetPosition - int returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollEvent_delete[] = { &wxluatype_wxScrollEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxScrollEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollEvent_constructor[1] = {{ wxLua_wxScrollEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxScrollEvent_constructor }}; -// wxScrollEvent(wxEventType commandType = wxEVT_NULL, int id = 0, int pos = 0, int orientation = 0); -static int LUACALL wxLua_wxScrollEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int orientation = 0 - int orientation = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int pos = 0 - int pos = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxScrollEvent* returns = new wxScrollEvent(commandType, id, pos, orientation); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxScrollEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScrollEvent); - - return 1; -} - - - -void wxLua_wxScrollEvent_delete_function(void** p) -{ - wxScrollEvent* o = (wxScrollEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxScrollEvent_methods[] = { - { "GetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollEvent_GetOrientation, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollEvent_GetPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxScrollEvent_delete, 1, NULL }, - { "wxScrollEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxScrollEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxScrollEvent_methodCount = sizeof(wxScrollEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxScrollWinEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxScrollWinEvent' -int wxluatype_wxScrollWinEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollWinEvent_GetOrientation[] = { &wxluatype_wxScrollWinEvent, NULL }; -static int LUACALL wxLua_wxScrollWinEvent_GetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollWinEvent_GetOrientation[1] = {{ wxLua_wxScrollWinEvent_GetOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollWinEvent_GetOrientation }}; -// int GetOrientation() const; -static int LUACALL wxLua_wxScrollWinEvent_GetOrientation(lua_State *L) -{ - // get this - wxScrollWinEvent * self = (wxScrollWinEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollWinEvent); - // call GetOrientation - int returns = (self->GetOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollWinEvent_GetPosition[] = { &wxluatype_wxScrollWinEvent, NULL }; -static int LUACALL wxLua_wxScrollWinEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollWinEvent_GetPosition[1] = {{ wxLua_wxScrollWinEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollWinEvent_GetPosition }}; -// int GetPosition() const; -static int LUACALL wxLua_wxScrollWinEvent_GetPosition(lua_State *L) -{ - // get this - wxScrollWinEvent * self = (wxScrollWinEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollWinEvent); - // call GetPosition - int returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollWinEvent_delete[] = { &wxluatype_wxScrollWinEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollWinEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxScrollWinEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollWinEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollWinEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollWinEvent_constructor[1] = {{ wxLua_wxScrollWinEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxScrollWinEvent_constructor }}; -// wxScrollWinEvent(wxEventType commandType = wxEVT_NULL, int pos = 0, int orientation = 0); -static int LUACALL wxLua_wxScrollWinEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int orientation = 0 - int orientation = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int pos = 0 - int pos = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxScrollWinEvent* returns = new wxScrollWinEvent(commandType, pos, orientation); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxScrollWinEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScrollWinEvent); - - return 1; -} - - - -void wxLua_wxScrollWinEvent_delete_function(void** p) -{ - wxScrollWinEvent* o = (wxScrollWinEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxScrollWinEvent_methods[] = { - { "GetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollWinEvent_GetOrientation, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollWinEvent_GetPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxScrollWinEvent_delete, 1, NULL }, - { "wxScrollWinEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxScrollWinEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxScrollWinEvent_methodCount = sizeof(wxScrollWinEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxSizeEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSizeEvent' -int wxluatype_wxSizeEvent = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizeEvent_GetSize[] = { &wxluatype_wxSizeEvent, NULL }; -static int LUACALL wxLua_wxSizeEvent_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizeEvent_GetSize[1] = {{ wxLua_wxSizeEvent_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizeEvent_GetSize }}; -// wxSize GetSize() const; -static int LUACALL wxLua_wxSizeEvent_GetSize(lua_State *L) -{ - // get this - wxSizeEvent * self = (wxSizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizeEvent); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizeEvent_delete[] = { &wxluatype_wxSizeEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizeEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSizeEvent_delete }}; - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizeEvent_constructor[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizeEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizeEvent_constructor[1] = {{ wxLua_wxSizeEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxSizeEvent_constructor }}; -// wxSizeEvent(const wxSize& sz, int id = 0); -static int LUACALL wxLua_wxSizeEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxSizeEvent* returns = new wxSizeEvent(*sz, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSizeEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizeEvent); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - - - -void wxLua_wxSizeEvent_delete_function(void** p) -{ - wxSizeEvent* o = (wxSizeEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSizeEvent_methods[] = { -#if wxLUA_USE_wxPointSizeRect - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizeEvent_GetSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSizeEvent_delete, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxSizeEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSizeEvent_constructor, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { 0, 0, 0, 0 }, -}; - -int wxSizeEvent_methodCount = sizeof(wxSizeEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxShowEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxShowEvent' -int wxluatype_wxShowEvent = WXLUA_TUNKNOWN; - -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) -static wxLuaArgType s_wxluatypeArray_wxLua_wxShowEvent_GetShow[] = { &wxluatype_wxShowEvent, NULL }; -static int LUACALL wxLua_wxShowEvent_GetShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxShowEvent_GetShow[1] = {{ wxLua_wxShowEvent_GetShow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxShowEvent_GetShow }}; -// !%wxchkver_2_9 || %wxcompat_2_8 bool GetShow() const; -static int LUACALL wxLua_wxShowEvent_GetShow(lua_State *L) -{ - // get this - wxShowEvent * self = (wxShowEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxShowEvent); - // call GetShow - bool returns = (self->GetShow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxShowEvent_IsShown[] = { &wxluatype_wxShowEvent, NULL }; -static int LUACALL wxLua_wxShowEvent_IsShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxShowEvent_IsShown[1] = {{ wxLua_wxShowEvent_IsShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxShowEvent_IsShown }}; -// %wxchkver_2_8 bool IsShown() const -static int LUACALL wxLua_wxShowEvent_IsShown(lua_State *L) -{ - // get this - wxShowEvent * self = (wxShowEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxShowEvent); - // call IsShown - bool returns = (self->IsShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxShowEvent_SetShow[] = { &wxluatype_wxShowEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxShowEvent_SetShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxShowEvent_SetShow[1] = {{ wxLua_wxShowEvent_SetShow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxShowEvent_SetShow }}; -// void SetShow(bool show); -static int LUACALL wxLua_wxShowEvent_SetShow(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxShowEvent * self = (wxShowEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxShowEvent); - // call SetShow - self->SetShow(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxShowEvent_delete[] = { &wxluatype_wxShowEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxShowEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxShowEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxShowEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxShowEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxShowEvent_constructor[1] = {{ wxLua_wxShowEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxShowEvent_constructor }}; -// wxShowEvent(int winid = 0, bool show = false); -static int LUACALL wxLua_wxShowEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = false - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // int winid = 0 - int winid = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxShowEvent* returns = new wxShowEvent(winid, show); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxShowEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxShowEvent); - - return 1; -} - - - -void wxLua_wxShowEvent_delete_function(void** p) -{ - wxShowEvent* o = (wxShowEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxShowEvent_methods[] = { -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - { "GetShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxShowEvent_GetShow, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if wxCHECK_VERSION(2,8,0) - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxShowEvent_IsShown, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "SetShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxShowEvent_SetShow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxShowEvent_delete, 1, NULL }, - { "wxShowEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxShowEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxShowEvent_methodCount = sizeof(wxShowEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxIconizeEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIconizeEvent' -int wxluatype_wxIconizeEvent = WXLUA_TUNKNOWN; - -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconizeEvent_Iconized[] = { &wxluatype_wxIconizeEvent, NULL }; -static int LUACALL wxLua_wxIconizeEvent_Iconized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconizeEvent_Iconized[1] = {{ wxLua_wxIconizeEvent_Iconized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIconizeEvent_Iconized }}; -// !%wxchkver_2_9 || %wxcompat_2_8 bool Iconized() const; -static int LUACALL wxLua_wxIconizeEvent_Iconized(lua_State *L) -{ - // get this - wxIconizeEvent * self = (wxIconizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconizeEvent); - // call Iconized - bool returns = (self->Iconized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconizeEvent_IsIconized[] = { &wxluatype_wxIconizeEvent, NULL }; -static int LUACALL wxLua_wxIconizeEvent_IsIconized(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconizeEvent_IsIconized[1] = {{ wxLua_wxIconizeEvent_IsIconized, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIconizeEvent_IsIconized }}; -// %wxchkver_2_8 bool IsIconized() const; -static int LUACALL wxLua_wxIconizeEvent_IsIconized(lua_State *L) -{ - // get this - wxIconizeEvent * self = (wxIconizeEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconizeEvent); - // call IsIconized - bool returns = (self->IsIconized()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconizeEvent_delete[] = { &wxluatype_wxIconizeEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconizeEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIconizeEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconizeEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxIconizeEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconizeEvent_constructor[1] = {{ wxLua_wxIconizeEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxIconizeEvent_constructor }}; -// wxIconizeEvent(int winid = 0, bool iconized = true); -static int LUACALL wxLua_wxIconizeEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool iconized = true - bool iconized = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // int winid = 0 - int winid = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxIconizeEvent* returns = new wxIconizeEvent(winid, iconized); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconizeEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconizeEvent); - - return 1; -} - - - -void wxLua_wxIconizeEvent_delete_function(void** p) -{ - wxIconizeEvent* o = (wxIconizeEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIconizeEvent_methods[] = { -#if !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - { "Iconized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconizeEvent_Iconized, 1, NULL }, -#endif // !wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - -#if wxCHECK_VERSION(2,8,0) - { "IsIconized", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconizeEvent_IsIconized, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIconizeEvent_delete, 1, NULL }, - { "wxIconizeEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIconizeEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxIconizeEvent_methodCount = sizeof(wxIconizeEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxMaximizeEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMaximizeEvent' -int wxluatype_wxMaximizeEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMaximizeEvent_delete[] = { &wxluatype_wxMaximizeEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMaximizeEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMaximizeEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMaximizeEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMaximizeEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMaximizeEvent_constructor[1] = {{ wxLua_wxMaximizeEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMaximizeEvent_constructor }}; -// wxMaximizeEvent(int winid = 0); -static int LUACALL wxLua_wxMaximizeEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int winid = 0 - int winid = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxMaximizeEvent* returns = new wxMaximizeEvent(winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMaximizeEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMaximizeEvent); - - return 1; -} - - - -void wxLua_wxMaximizeEvent_delete_function(void** p) -{ - wxMaximizeEvent* o = (wxMaximizeEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMaximizeEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMaximizeEvent_delete, 1, NULL }, - { "wxMaximizeEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMaximizeEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxMaximizeEvent_methodCount = sizeof(wxMaximizeEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxWindowCreateEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindowCreateEvent' -int wxluatype_wxWindowCreateEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowCreateEvent_GetWindow[] = { &wxluatype_wxWindowCreateEvent, NULL }; -static int LUACALL wxLua_wxWindowCreateEvent_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowCreateEvent_GetWindow[1] = {{ wxLua_wxWindowCreateEvent_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindowCreateEvent_GetWindow }}; -// wxWindow *GetWindow() const; -static int LUACALL wxLua_wxWindowCreateEvent_GetWindow(lua_State *L) -{ - // get this - wxWindowCreateEvent * self = (wxWindowCreateEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindowCreateEvent); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowCreateEvent_delete[] = { &wxluatype_wxWindowCreateEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowCreateEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWindowCreateEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowCreateEvent_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindowCreateEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowCreateEvent_constructor[1] = {{ wxLua_wxWindowCreateEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxWindowCreateEvent_constructor }}; -// wxWindowCreateEvent(wxWindow *win = NULL); -static int LUACALL wxLua_wxWindowCreateEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxWindowCreateEvent* returns = new wxWindowCreateEvent(win); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWindowCreateEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindowCreateEvent); - - return 1; -} - - - -void wxLua_wxWindowCreateEvent_delete_function(void** p) -{ - wxWindowCreateEvent* o = (wxWindowCreateEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindowCreateEvent_methods[] = { - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindowCreateEvent_GetWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWindowCreateEvent_delete, 1, NULL }, - { "wxWindowCreateEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWindowCreateEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxWindowCreateEvent_methodCount = sizeof(wxWindowCreateEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxWindowDestroyEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindowDestroyEvent' -int wxluatype_wxWindowDestroyEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDestroyEvent_GetWindow[] = { &wxluatype_wxWindowDestroyEvent, NULL }; -static int LUACALL wxLua_wxWindowDestroyEvent_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDestroyEvent_GetWindow[1] = {{ wxLua_wxWindowDestroyEvent_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindowDestroyEvent_GetWindow }}; -// wxWindow *GetWindow() const; -static int LUACALL wxLua_wxWindowDestroyEvent_GetWindow(lua_State *L) -{ - // get this - wxWindowDestroyEvent * self = (wxWindowDestroyEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindowDestroyEvent); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDestroyEvent_delete[] = { &wxluatype_wxWindowDestroyEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDestroyEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWindowDestroyEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDestroyEvent_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindowDestroyEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDestroyEvent_constructor[1] = {{ wxLua_wxWindowDestroyEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxWindowDestroyEvent_constructor }}; -// wxWindowDestroyEvent(wxWindow *win = NULL); -static int LUACALL wxLua_wxWindowDestroyEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxWindowDestroyEvent* returns = new wxWindowDestroyEvent(win); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWindowDestroyEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindowDestroyEvent); - - return 1; -} - - - -void wxLua_wxWindowDestroyEvent_delete_function(void** p) -{ - wxWindowDestroyEvent* o = (wxWindowDestroyEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindowDestroyEvent_methods[] = { - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindowDestroyEvent_GetWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWindowDestroyEvent_delete, 1, NULL }, - { "wxWindowDestroyEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWindowDestroyEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxWindowDestroyEvent_methodCount = sizeof(wxWindowDestroyEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxSysColourChangedEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSysColourChangedEvent' -int wxluatype_wxSysColourChangedEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSysColourChangedEvent_delete[] = { &wxluatype_wxSysColourChangedEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSysColourChangedEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSysColourChangedEvent_delete }}; - -static int LUACALL wxLua_wxSysColourChangedEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSysColourChangedEvent_constructor[1] = {{ wxLua_wxSysColourChangedEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSysColourChangedEvent(); -static int LUACALL wxLua_wxSysColourChangedEvent_constructor(lua_State *L) -{ - // call constructor - wxSysColourChangedEvent* returns = new wxSysColourChangedEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSysColourChangedEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSysColourChangedEvent); - - return 1; -} - - - -void wxLua_wxSysColourChangedEvent_delete_function(void** p) -{ - wxSysColourChangedEvent* o = (wxSysColourChangedEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSysColourChangedEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSysColourChangedEvent_delete, 1, NULL }, - { "wxSysColourChangedEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSysColourChangedEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxSysColourChangedEvent_methodCount = sizeof(wxSysColourChangedEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxDisplayChangedEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDisplayChangedEvent' -int wxluatype_wxDisplayChangedEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplayChangedEvent_delete[] = { &wxluatype_wxDisplayChangedEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplayChangedEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDisplayChangedEvent_delete }}; - -static int LUACALL wxLua_wxDisplayChangedEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplayChangedEvent_constructor[1] = {{ wxLua_wxDisplayChangedEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDisplayChangedEvent(); -static int LUACALL wxLua_wxDisplayChangedEvent_constructor(lua_State *L) -{ - // call constructor - wxDisplayChangedEvent* returns = new wxDisplayChangedEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDisplayChangedEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDisplayChangedEvent); - - return 1; -} - - - -void wxLua_wxDisplayChangedEvent_delete_function(void** p) -{ - wxDisplayChangedEvent* o = (wxDisplayChangedEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDisplayChangedEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDisplayChangedEvent_delete, 1, NULL }, - { "wxDisplayChangedEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDisplayChangedEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxDisplayChangedEvent_methodCount = sizeof(wxDisplayChangedEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxCHECK_VERSION(3,1,3) -// --------------------------------------------------------------------------- -// Bind class wxDPIChangedEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDPIChangedEvent' -int wxluatype_wxDPIChangedEvent = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDPIChangedEvent_GetNewDPI[] = { &wxluatype_wxDPIChangedEvent, NULL }; -static int LUACALL wxLua_wxDPIChangedEvent_GetNewDPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDPIChangedEvent_GetNewDPI[1] = {{ wxLua_wxDPIChangedEvent_GetNewDPI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDPIChangedEvent_GetNewDPI }}; -// wxSize GetNewDPI () const; -static int LUACALL wxLua_wxDPIChangedEvent_GetNewDPI(lua_State *L) -{ - // get this - wxDPIChangedEvent * self = (wxDPIChangedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDPIChangedEvent); - // call GetNewDPI - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetNewDPI()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDPIChangedEvent_GetOldDPI[] = { &wxluatype_wxDPIChangedEvent, NULL }; -static int LUACALL wxLua_wxDPIChangedEvent_GetOldDPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDPIChangedEvent_GetOldDPI[1] = {{ wxLua_wxDPIChangedEvent_GetOldDPI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDPIChangedEvent_GetOldDPI }}; -// wxSize GetOldDPI () const; -static int LUACALL wxLua_wxDPIChangedEvent_GetOldDPI(lua_State *L) -{ - // get this - wxDPIChangedEvent * self = (wxDPIChangedEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDPIChangedEvent); - // call GetOldDPI - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetOldDPI()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDPIChangedEvent_delete[] = { &wxluatype_wxDPIChangedEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDPIChangedEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDPIChangedEvent_delete }}; - -static int LUACALL wxLua_wxDPIChangedEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDPIChangedEvent_constructor[1] = {{ wxLua_wxDPIChangedEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDPIChangedEvent(); -static int LUACALL wxLua_wxDPIChangedEvent_constructor(lua_State *L) -{ - // call constructor - wxDPIChangedEvent* returns = new wxDPIChangedEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDPIChangedEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDPIChangedEvent); - - return 1; -} - - - - -void wxLua_wxDPIChangedEvent_delete_function(void** p) -{ - wxDPIChangedEvent* o = (wxDPIChangedEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDPIChangedEvent_methods[] = { -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) - { "GetNewDPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDPIChangedEvent_GetNewDPI, 1, NULL }, - { "GetOldDPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDPIChangedEvent_GetOldDPI, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDPIChangedEvent_delete, 1, NULL }, - { "wxDPIChangedEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDPIChangedEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDPIChangedEvent_methodCount = sizeof(wxDPIChangedEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(3,1,3) - - -#if (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) -// --------------------------------------------------------------------------- -// Bind class wxPowerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPowerEvent' -int wxluatype_wxPowerEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPowerEvent_IsVetoed[] = { &wxluatype_wxPowerEvent, NULL }; -static int LUACALL wxLua_wxPowerEvent_IsVetoed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPowerEvent_IsVetoed[1] = {{ wxLua_wxPowerEvent_IsVetoed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPowerEvent_IsVetoed }}; -// bool IsVetoed() const; -static int LUACALL wxLua_wxPowerEvent_IsVetoed(lua_State *L) -{ - // get this - wxPowerEvent * self = (wxPowerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPowerEvent); - // call IsVetoed - bool returns = (self->IsVetoed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPowerEvent_Veto[] = { &wxluatype_wxPowerEvent, NULL }; -static int LUACALL wxLua_wxPowerEvent_Veto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPowerEvent_Veto[1] = {{ wxLua_wxPowerEvent_Veto, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPowerEvent_Veto }}; -// void Veto(); -static int LUACALL wxLua_wxPowerEvent_Veto(lua_State *L) -{ - // get this - wxPowerEvent * self = (wxPowerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPowerEvent); - // call Veto - self->Veto(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPowerEvent_delete[] = { &wxluatype_wxPowerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPowerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPowerEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPowerEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPowerEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPowerEvent_constructor[1] = {{ wxLua_wxPowerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPowerEvent_constructor }}; -// wxPowerEvent(wxEventType evtType); -static int LUACALL wxLua_wxPowerEvent_constructor(lua_State *L) -{ - // wxEventType evtType - wxEventType evtType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxPowerEvent* returns = new wxPowerEvent(evtType); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPowerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPowerEvent); - - return 1; -} - - - - -void wxLua_wxPowerEvent_delete_function(void** p) -{ - wxPowerEvent* o = (wxPowerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPowerEvent_methods[] = { - { "IsVetoed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPowerEvent_IsVetoed, 1, NULL }, - { "Veto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPowerEvent_Veto, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPowerEvent_delete, 1, NULL }, - { "wxPowerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPowerEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPowerEvent_methodCount = sizeof(wxPowerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined(wxHAS_POWER_EVENTS)) && (wxCHECK_VERSION(2,8,0)) - -// --------------------------------------------------------------------------- -// Bind class wxSetCursorEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSetCursorEvent' -int wxluatype_wxSetCursorEvent = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxCursor -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_GetCursor[] = { &wxluatype_wxSetCursorEvent, NULL }; -static int LUACALL wxLua_wxSetCursorEvent_GetCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_GetCursor[1] = {{ wxLua_wxSetCursorEvent_GetCursor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSetCursorEvent_GetCursor }}; -// wxCursor GetCursor() const; -static int LUACALL wxLua_wxSetCursorEvent_GetCursor(lua_State *L) -{ - // get this - wxSetCursorEvent * self = (wxSetCursorEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSetCursorEvent); - // call GetCursor - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetCursor()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // wxLUA_USE_wxCursor - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_GetX[] = { &wxluatype_wxSetCursorEvent, NULL }; -static int LUACALL wxLua_wxSetCursorEvent_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_GetX[1] = {{ wxLua_wxSetCursorEvent_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSetCursorEvent_GetX }}; -// wxCoord GetX() const; -static int LUACALL wxLua_wxSetCursorEvent_GetX(lua_State *L) -{ - // get this - wxSetCursorEvent * self = (wxSetCursorEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSetCursorEvent); - // call GetX - wxCoord returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_GetY[] = { &wxluatype_wxSetCursorEvent, NULL }; -static int LUACALL wxLua_wxSetCursorEvent_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_GetY[1] = {{ wxLua_wxSetCursorEvent_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSetCursorEvent_GetY }}; -// wxCoord GetY() const; -static int LUACALL wxLua_wxSetCursorEvent_GetY(lua_State *L) -{ - // get this - wxSetCursorEvent * self = (wxSetCursorEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSetCursorEvent); - // call GetY - wxCoord returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_HasCursor[] = { &wxluatype_wxSetCursorEvent, NULL }; -static int LUACALL wxLua_wxSetCursorEvent_HasCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_HasCursor[1] = {{ wxLua_wxSetCursorEvent_HasCursor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSetCursorEvent_HasCursor }}; -// bool HasCursor() const; -static int LUACALL wxLua_wxSetCursorEvent_HasCursor(lua_State *L) -{ - // get this - wxSetCursorEvent * self = (wxSetCursorEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSetCursorEvent); - // call HasCursor - bool returns = (self->HasCursor()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxCursor -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_SetCursor[] = { &wxluatype_wxSetCursorEvent, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxSetCursorEvent_SetCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_SetCursor[1] = {{ wxLua_wxSetCursorEvent_SetCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSetCursorEvent_SetCursor }}; -// void SetCursor(const wxCursor& cursor); -static int LUACALL wxLua_wxSetCursorEvent_SetCursor(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor); - // get this - wxSetCursorEvent * self = (wxSetCursorEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSetCursorEvent); - // call SetCursor - self->SetCursor(*cursor); - - return 0; -} - -#endif // wxLUA_USE_wxCursor - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_delete[] = { &wxluatype_wxSetCursorEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSetCursorEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSetCursorEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSetCursorEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSetCursorEvent_constructor[1] = {{ wxLua_wxSetCursorEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxSetCursorEvent_constructor }}; -// wxSetCursorEvent(wxCoord x = 0, wxCoord y = 0); -static int LUACALL wxLua_wxSetCursorEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCoord y = 0 - wxCoord y = (argCount >= 2 ? (wxCoord)wxlua_getnumbertype(L, 2) : 0); - // wxCoord x = 0 - wxCoord x = (argCount >= 1 ? (wxCoord)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxSetCursorEvent* returns = new wxSetCursorEvent(x, y); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSetCursorEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSetCursorEvent); - - return 1; -} - - - -void wxLua_wxSetCursorEvent_delete_function(void** p) -{ - wxSetCursorEvent* o = (wxSetCursorEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSetCursorEvent_methods[] = { -#if wxLUA_USE_wxCursor - { "GetCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSetCursorEvent_GetCursor, 1, NULL }, -#endif // wxLUA_USE_wxCursor - - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSetCursorEvent_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSetCursorEvent_GetY, 1, NULL }, - { "HasCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSetCursorEvent_HasCursor, 1, NULL }, - -#if wxLUA_USE_wxCursor - { "SetCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSetCursorEvent_SetCursor, 1, NULL }, -#endif // wxLUA_USE_wxCursor - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSetCursorEvent_delete, 1, NULL }, - { "wxSetCursorEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSetCursorEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxSetCursorEvent_methodCount = sizeof(wxSetCursorEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxUpdateUIEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxUpdateUIEvent' -int wxluatype_wxUpdateUIEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_CanUpdate[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_CanUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_CanUpdate[1] = {{ wxLua_wxUpdateUIEvent_CanUpdate, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_CanUpdate }}; -// static bool CanUpdate(wxWindow* window); -static int LUACALL wxLua_wxUpdateUIEvent_CanUpdate(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CanUpdate - bool returns = (wxUpdateUIEvent::CanUpdate(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_Check[] = { &wxluatype_wxUpdateUIEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_Check(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_Check[1] = {{ wxLua_wxUpdateUIEvent_Check, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxUpdateUIEvent_Check }}; -// void Check(bool check); -static int LUACALL wxLua_wxUpdateUIEvent_Check(lua_State *L) -{ - // bool check - bool check = wxlua_getbooleantype(L, 2); - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call Check - self->Check(check); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_Enable[] = { &wxluatype_wxUpdateUIEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_Enable[1] = {{ wxLua_wxUpdateUIEvent_Enable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxUpdateUIEvent_Enable }}; -// void Enable(bool enable); -static int LUACALL wxLua_wxUpdateUIEvent_Enable(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call Enable - self->Enable(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetChecked[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetChecked[1] = {{ wxLua_wxUpdateUIEvent_GetChecked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetChecked }}; -// bool GetChecked() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetChecked(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetChecked - bool returns = (self->GetChecked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetEnabled[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetEnabled[1] = {{ wxLua_wxUpdateUIEvent_GetEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetEnabled }}; -// bool GetEnabled() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetEnabled(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetEnabled - bool returns = (self->GetEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxUpdateUIEvent_GetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetMode[1] = {{ wxLua_wxUpdateUIEvent_GetMode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxUpdateUIMode GetMode(); -static int LUACALL wxLua_wxUpdateUIEvent_GetMode(lua_State *L) -{ - // call GetMode - wxUpdateUIMode returns = (wxUpdateUIEvent::GetMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetChecked[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetChecked[1] = {{ wxLua_wxUpdateUIEvent_GetSetChecked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetChecked }}; -// bool GetSetChecked() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetChecked(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetSetChecked - bool returns = (self->GetSetChecked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetEnabled[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetEnabled[1] = {{ wxLua_wxUpdateUIEvent_GetSetEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetEnabled }}; -// bool GetSetEnabled() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetEnabled(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetSetEnabled - bool returns = (self->GetSetEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetShown[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetShown[1] = {{ wxLua_wxUpdateUIEvent_GetSetShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetShown }}; -// %wxchkver_2_8 bool GetSetShown() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetShown(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetSetShown - bool returns = (self->GetSetShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetText[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetText[1] = {{ wxLua_wxUpdateUIEvent_GetSetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetSetText }}; -// bool GetSetText() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetSetText(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetSetText - bool returns = (self->GetSetText()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetShown[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetShown[1] = {{ wxLua_wxUpdateUIEvent_GetShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetShown }}; -// %wxchkver_2_8 bool GetShown() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetShown(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetShown - bool returns = (self->GetShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetText[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetText[1] = {{ wxLua_wxUpdateUIEvent_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_GetText }}; -// wxString GetText() const; -static int LUACALL wxLua_wxUpdateUIEvent_GetText(lua_State *L) -{ - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxUpdateUIEvent_GetUpdateInterval(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_GetUpdateInterval[1] = {{ wxLua_wxUpdateUIEvent_GetUpdateInterval, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static long GetUpdateInterval(); -static int LUACALL wxLua_wxUpdateUIEvent_GetUpdateInterval(lua_State *L) -{ - // call GetUpdateInterval - long returns = (wxUpdateUIEvent::GetUpdateInterval()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxUpdateUIEvent_ResetUpdateTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_ResetUpdateTime[1] = {{ wxLua_wxUpdateUIEvent_ResetUpdateTime, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void ResetUpdateTime(); -static int LUACALL wxLua_wxUpdateUIEvent_ResetUpdateTime(lua_State *L) -{ - // call ResetUpdateTime - wxUpdateUIEvent::ResetUpdateTime(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_SetMode[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_SetMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_SetMode[1] = {{ wxLua_wxUpdateUIEvent_SetMode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_SetMode }}; -// static void SetMode(wxUpdateUIMode mode); -static int LUACALL wxLua_wxUpdateUIEvent_SetMode(lua_State *L) -{ - // wxUpdateUIMode mode - wxUpdateUIMode mode = (wxUpdateUIMode)wxlua_getenumtype(L, 1); - // call SetMode - wxUpdateUIEvent::SetMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_SetText[] = { &wxluatype_wxUpdateUIEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_SetText[1] = {{ wxLua_wxUpdateUIEvent_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxUpdateUIEvent_SetText }}; -// void SetText(const wxString& text); -static int LUACALL wxLua_wxUpdateUIEvent_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call SetText - self->SetText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_SetUpdateInterval[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_SetUpdateInterval(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_SetUpdateInterval[1] = {{ wxLua_wxUpdateUIEvent_SetUpdateInterval, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_SetUpdateInterval }}; -// static void SetUpdateInterval(long updateInterval); -static int LUACALL wxLua_wxUpdateUIEvent_SetUpdateInterval(lua_State *L) -{ - // long updateInterval - long updateInterval = (long)wxlua_getnumbertype(L, 1); - // call SetUpdateInterval - wxUpdateUIEvent::SetUpdateInterval(updateInterval); - - return 0; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_Show[] = { &wxluatype_wxUpdateUIEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_Show[1] = {{ wxLua_wxUpdateUIEvent_Show, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxUpdateUIEvent_Show }}; -// %wxchkver_2_8 void Show(bool show); -static int LUACALL wxLua_wxUpdateUIEvent_Show(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxUpdateUIEvent * self = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUpdateUIEvent); - // call Show - self->Show(show); - - return 0; -} - -#endif // wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_delete[] = { &wxluatype_wxUpdateUIEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUpdateUIEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxUpdateUIEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUpdateUIEvent_constructor[1] = {{ wxLua_wxUpdateUIEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxUpdateUIEvent_constructor }}; -// wxUpdateUIEvent(wxWindowID commandId = wxID_ANY); -static int LUACALL wxLua_wxUpdateUIEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID commandId = wxID_ANY - wxWindowID commandId = (argCount >= 1 ? (wxWindowID)wxlua_getnumbertype(L, 1) : wxID_ANY); - // call constructor - wxUpdateUIEvent* returns = new wxUpdateUIEvent(commandId); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxUpdateUIEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxUpdateUIEvent); - - return 1; -} - - - -void wxLua_wxUpdateUIEvent_delete_function(void** p) -{ - wxUpdateUIEvent* o = (wxUpdateUIEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxUpdateUIEvent_methods[] = { - { "CanUpdate", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUpdateUIEvent_CanUpdate, 1, NULL }, - { "Check", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_Check, 1, NULL }, - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_Enable, 1, NULL }, - { "GetChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetChecked, 1, NULL }, - { "GetEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetEnabled, 1, NULL }, - { "GetMode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUpdateUIEvent_GetMode, 1, NULL }, - { "GetSetChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetChecked, 1, NULL }, - { "GetSetEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetEnabled, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "GetSetShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetShown, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "GetSetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetSetText, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "GetShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetShown, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_GetText, 1, NULL }, - { "GetUpdateInterval", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUpdateUIEvent_GetUpdateInterval, 1, NULL }, - { "ResetUpdateTime", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUpdateUIEvent_ResetUpdateTime, 1, NULL }, - { "SetMode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUpdateUIEvent_SetMode, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_SetText, 1, NULL }, - { "SetUpdateInterval", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxUpdateUIEvent_SetUpdateInterval, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUpdateUIEvent_Show, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxUpdateUIEvent_delete, 1, NULL }, - { "wxUpdateUIEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxUpdateUIEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxUpdateUIEvent_methodCount = sizeof(wxUpdateUIEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxHelpEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHelpEvent' -int wxluatype_wxHelpEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_GetLink[] = { &wxluatype_wxHelpEvent, NULL }; -static int LUACALL wxLua_wxHelpEvent_GetLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_GetLink[1] = {{ wxLua_wxHelpEvent_GetLink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpEvent_GetLink }}; -// wxString GetLink(); -static int LUACALL wxLua_wxHelpEvent_GetLink(lua_State *L) -{ - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call GetLink - wxString returns = (self->GetLink()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_GetOrigin[] = { &wxluatype_wxHelpEvent, NULL }; -static int LUACALL wxLua_wxHelpEvent_GetOrigin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_GetOrigin[1] = {{ wxLua_wxHelpEvent_GetOrigin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpEvent_GetOrigin }}; -// %wxchkver_2_8 wxHelpEvent::Origin GetOrigin() const; -static int LUACALL wxLua_wxHelpEvent_GetOrigin(lua_State *L) -{ - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call GetOrigin - wxHelpEvent::Origin returns = (self->GetOrigin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_GetPosition[] = { &wxluatype_wxHelpEvent, NULL }; -static int LUACALL wxLua_wxHelpEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_GetPosition[1] = {{ wxLua_wxHelpEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpEvent_GetPosition }}; -// wxPoint GetPosition(); -static int LUACALL wxLua_wxHelpEvent_GetPosition(lua_State *L) -{ - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_GetTarget[] = { &wxluatype_wxHelpEvent, NULL }; -static int LUACALL wxLua_wxHelpEvent_GetTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_GetTarget[1] = {{ wxLua_wxHelpEvent_GetTarget, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpEvent_GetTarget }}; -// wxString GetTarget(); -static int LUACALL wxLua_wxHelpEvent_GetTarget(lua_State *L) -{ - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call GetTarget - wxString returns = (self->GetTarget()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_SetLink[] = { &wxluatype_wxHelpEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHelpEvent_SetLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_SetLink[1] = {{ wxLua_wxHelpEvent_SetLink, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpEvent_SetLink }}; -// void SetLink(const wxString& link); -static int LUACALL wxLua_wxHelpEvent_SetLink(lua_State *L) -{ - // const wxString link - const wxString link = wxlua_getwxStringtype(L, 2); - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call SetLink - self->SetLink(link); - - return 0; -} - - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_SetOrigin[] = { &wxluatype_wxHelpEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHelpEvent_SetOrigin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_SetOrigin[1] = {{ wxLua_wxHelpEvent_SetOrigin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpEvent_SetOrigin }}; -// %wxchkver_2_8 void SetOrigin(wxHelpEvent::Origin origin); -static int LUACALL wxLua_wxHelpEvent_SetOrigin(lua_State *L) -{ - // wxHelpEvent::Origin origin - wxHelpEvent::Origin origin = (wxHelpEvent::Origin)wxlua_getenumtype(L, 2); - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call SetOrigin - self->SetOrigin(origin); - - return 0; -} - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_SetPosition[] = { &wxluatype_wxHelpEvent, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHelpEvent_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_SetPosition[1] = {{ wxLua_wxHelpEvent_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpEvent_SetPosition }}; -// void SetPosition(const wxPoint& pos); -static int LUACALL wxLua_wxHelpEvent_SetPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call SetPosition - self->SetPosition(*pos); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_SetTarget[] = { &wxluatype_wxHelpEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHelpEvent_SetTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_SetTarget[1] = {{ wxLua_wxHelpEvent_SetTarget, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpEvent_SetTarget }}; -// void SetTarget(const wxString& target); -static int LUACALL wxLua_wxHelpEvent_SetTarget(lua_State *L) -{ - // const wxString target - const wxString target = wxlua_getwxStringtype(L, 2); - // get this - wxHelpEvent * self = (wxHelpEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpEvent); - // call SetTarget - self->SetTarget(target); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_delete[] = { &wxluatype_wxHelpEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHelpEvent_delete }}; - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHelpEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_constructor1[1] = {{ wxLua_wxHelpEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxHelpEvent_constructor1 }}; -// %wxchkver_2_8 wxHelpEvent(wxEventType type = wxEVT_NULL, wxWindowID id = 0, const wxPoint& pt = wxDefaultPosition, wxHelpEvent::Origin origin = wxHelpEvent::Origin_Unknown); -static int LUACALL wxLua_wxHelpEvent_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxHelpEvent::Origin origin = wxHelpEvent::Origin_Unknown - wxHelpEvent::Origin origin = (argCount >= 4 ? (wxHelpEvent::Origin)wxlua_getenumtype(L, 4) : wxHelpEvent::Origin_Unknown); - // const wxPoint pt = wxDefaultPosition - const wxPoint * pt = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = 0 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : 0); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxHelpEvent* returns = new wxHelpEvent(type, id, *pt, origin); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHelpEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpEvent); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHelpEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_constructor[1] = {{ wxLua_wxHelpEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxHelpEvent_constructor }}; -// !%wxchkver_2_8 wxHelpEvent(wxEventType type = wxEVT_NULL, wxWindowID id = 0, const wxPoint& pt = wxDefaultPosition); -static int LUACALL wxLua_wxHelpEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pt = wxDefaultPosition - const wxPoint * pt = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = 0 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : 0); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxHelpEvent* returns = new wxHelpEvent(type, id, *pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHelpEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpEvent); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpEvent_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHelpEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxHelpEvent_constructor1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHelpEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxHelpEvent_constructor }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxHelpEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxHelpEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxHelpEvent_delete_function(void** p) -{ - wxHelpEvent* o = (wxHelpEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHelpEvent_methods[] = { - { "GetLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_GetLink, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "GetOrigin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_GetOrigin, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_GetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_GetTarget, 1, NULL }, - { "SetLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_SetLink, 1, NULL }, - -#if wxCHECK_VERSION(2,8,0) - { "SetOrigin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_SetOrigin, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxPointSizeRect - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_SetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "SetTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpEvent_SetTarget, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHelpEvent_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) - { "wxHelpEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHelpEvent_constructor_overload, s_wxluafunc_wxLua_wxHelpEvent_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) - - { 0, 0, 0, 0 }, -}; - -int wxHelpEvent_methodCount = sizeof(wxHelpEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxHelpEvent_enums[] = { -#if wxCHECK_VERSION(2,8,0) - { "Origin_HelpButton", wxHelpEvent::Origin_HelpButton }, - { "Origin_Keyboard", wxHelpEvent::Origin_Keyboard }, - { "Origin_Unknown", wxHelpEvent::Origin_Unknown }, -#endif // wxCHECK_VERSION(2,8,0) - - { NULL, 0, }, -}; -int wxHelpEvent_enumCount = sizeof(wxHelpEvent_enums)/sizeof(wxLuaBindNumber) - 1; - diff --git a/wxLua/modules/wxbind/src/wxcore_gdi.cpp b/wxLua/modules/wxbind/src/wxcore_gdi.cpp deleted file mode 100644 index 177e9c8e..00000000 --- a/wxLua/modules/wxbind/src/wxcore_gdi.cpp +++ /dev/null @@ -1,20060 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_gdi.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxPointSizeRect -// --------------------------------------------------------------------------- -// Bind class wxPoint -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPoint' -int wxluatype_wxPoint = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_GetX[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_GetX[1] = {{ wxLua_wxPoint_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint_GetX }}; -// %rename X %member_func int x; // GetX() and SetX(int x); -static int LUACALL wxLua_wxPoint_GetX(lua_State *L) -{ - // get this - wxPoint *self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->x) == (double)(self->x)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->x); -} else -#endif -{ - lua_pushnumber(L, self->x); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_GetXY[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_GetXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_GetXY[1] = {{ wxLua_wxPoint_GetXY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint_GetXY }}; -// %override wxLua_wxPoint_GetXY -// int GetXY() -static int LUACALL wxLua_wxPoint_GetXY(lua_State *L) -{ - // get this - wxPoint *self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // push the result number - lua_pushinteger(L, self->x); - lua_pushinteger(L, self->y); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_GetY[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_GetY[1] = {{ wxLua_wxPoint_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint_GetY }}; -// %rename Y %member_func int y; // GetY() and SetY(int y); -static int LUACALL wxLua_wxPoint_GetY(lua_State *L) -{ - // get this - wxPoint *self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->y) == (double)(self->y)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->y); -} else -#endif -{ - lua_pushnumber(L, self->y); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_Set[] = { &wxluatype_wxPoint, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_Set[1] = {{ wxLua_wxPoint_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPoint_Set }}; -// %override wxLua_wxPoint_Set -// void Set(int x, int y) -static int LUACALL wxLua_wxPoint_Set(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxPoint *self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - self->x = x; - self->y = y; - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_SetX[] = { &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_SetX[1] = {{ wxLua_wxPoint_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_SetX }}; -// %rename X %member_func int x; // GetX() and SetX(int x); -static int LUACALL wxLua_wxPoint_SetX(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxPoint *self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - self->x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_SetY[] = { &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_SetY[1] = {{ wxLua_wxPoint_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_SetY }}; -// %rename Y %member_func int y; // GetY() and SetY(int y); -static int LUACALL wxLua_wxPoint_SetY(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxPoint *self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - self->y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_delete[] = { &wxluatype_wxPoint, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPoint_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_add1[] = { &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPoint_op_add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_add1[1] = {{ wxLua_wxPoint_op_add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_add1 }}; -// wxPoint operator+(const wxSize& s) const; //{ return wxPoint(x + s.GetWidth(), y + s.GetHeight()); } -static int LUACALL wxLua_wxPoint_op_add1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_add - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint((*self)+(*s)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_add[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_add[1] = {{ wxLua_wxPoint_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_add }}; -// wxPoint operator+(const wxPoint& p) const; //{ return wxPoint(x + p.x, y + p.y); } -static int LUACALL wxLua_wxPoint_op_add(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_add - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint((*self)+(*p)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_eq[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_eq[1] = {{ wxLua_wxPoint_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_eq }}; -// bool operator==(const wxPoint& p) const; //{ return x == p.x && y == p.y; } -static int LUACALL wxLua_wxPoint_op_eq(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_eq - bool returns = ((*self)==(*p)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_iadd1[] = { &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPoint_op_iadd1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_iadd1[1] = {{ wxLua_wxPoint_op_iadd1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_iadd1 }}; -// wxPoint& operator+=(const wxSize& s); //{ x += s.GetWidth(); y += s.GetHeight(); return *this; } -static int LUACALL wxLua_wxPoint_op_iadd1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_iadd - (*self)+=(*s); - wxPoint* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_iadd[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_iadd(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_iadd[1] = {{ wxLua_wxPoint_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_iadd }}; -// wxPoint& operator+=(const wxPoint& p); //{ x += p.x; y += p.y; return *this; } -static int LUACALL wxLua_wxPoint_op_iadd(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_iadd - (*self)+=(*p); - wxPoint* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_isub1[] = { &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPoint_op_isub1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_isub1[1] = {{ wxLua_wxPoint_op_isub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_isub1 }}; -// wxPoint& operator-=(const wxSize& s); //{ x -= s.GetWidth(); y -= s.GetHeight(); return *this; } -static int LUACALL wxLua_wxPoint_op_isub1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_isub - (*self)-=(*s); - wxPoint* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_isub[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_isub(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_isub[1] = {{ wxLua_wxPoint_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_isub }}; -// wxPoint& operator-=(const wxPoint& p); //{ x -= p.x; y -= p.y; return *this; } -static int LUACALL wxLua_wxPoint_op_isub(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_isub - (*self)-=(*p); - wxPoint* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_ne[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_ne[1] = {{ wxLua_wxPoint_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_ne }}; -// bool operator!=(const wxPoint& p) const; //{ return !(*this == p); } -static int LUACALL wxLua_wxPoint_op_ne(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_ne - bool returns = ((*self)!=(*p)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_neg[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_neg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_neg[1] = {{ wxLua_wxPoint_op_neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint_op_neg }}; -// wxPoint operator-() const; //{ return wxPoint(-x, -y); } -static int LUACALL wxLua_wxPoint_op_neg(lua_State *L) -{ - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_neg - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(-(*self)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_set[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_set[1] = {{ wxLua_wxPoint_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_set }}; -// wxPoint& operator=(const wxPoint& p) const; -static int LUACALL wxLua_wxPoint_op_set(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_set - (*self)=(*p); - wxPoint* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_sub1[] = { &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPoint_op_sub1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_sub1[1] = {{ wxLua_wxPoint_op_sub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_sub1 }}; -// wxPoint operator-(const wxSize& s) const; //{ return wxPoint(x - s.GetWidth(), y - s.GetHeight()); } -static int LUACALL wxLua_wxPoint_op_sub1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_sub - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint((*self)-(*s)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_op_sub[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_op_sub(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_sub[1] = {{ wxLua_wxPoint_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_sub }}; -// wxPoint operator-(const wxPoint& p) const; //{ return wxPoint(x - p.x, y - p.y); } -static int LUACALL wxLua_wxPoint_op_sub(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPoint * self = (wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call op_sub - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint((*self)-(*p)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_constructor1[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_constructor1[1] = {{ wxLua_wxPoint_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint_constructor1 }}; -// wxPoint(const wxPoint& pt); -static int LUACALL wxLua_wxPoint_constructor1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxPoint* returns = new wxPoint(*pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_constructor[1] = {{ wxLua_wxPoint_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPoint_constructor }}; -// wxPoint(int x = 0, int y = 0); -static int LUACALL wxLua_wxPoint_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int y = 0 - int y = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int x = 0 - int x = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxPoint* returns = new wxPoint(x, y); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - - - - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_add_overload[] = -{ - { wxLua_wxPoint_op_add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_add1 }, - { wxLua_wxPoint_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_add }, -}; -static int s_wxluafunc_wxLua_wxPoint_op_add_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint_op_add_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_iadd_overload[] = -{ - { wxLua_wxPoint_op_iadd1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_iadd1 }, - { wxLua_wxPoint_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_iadd }, -}; -static int s_wxluafunc_wxLua_wxPoint_op_iadd_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint_op_iadd_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_isub_overload[] = -{ - { wxLua_wxPoint_op_isub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_isub1 }, - { wxLua_wxPoint_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_isub }, -}; -static int s_wxluafunc_wxLua_wxPoint_op_isub_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint_op_isub_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_sub_overload[] = -{ - { wxLua_wxPoint_op_sub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_sub1 }, - { wxLua_wxPoint_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint_op_sub }, -}; -static int s_wxluafunc_wxLua_wxPoint_op_sub_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint_op_sub_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_constructor_overload[] = -{ - { wxLua_wxPoint_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint_constructor1 }, - { wxLua_wxPoint_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPoint_constructor }, -}; -static int s_wxluafunc_wxLua_wxPoint_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -void wxLua_wxPoint_delete_function(void** p) -{ - wxPoint* o = (wxPoint*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPoint_methods[] = { - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_GetX, 1, NULL }, - { "GetXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_GetXY, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_GetY, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_Set, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_SetY, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPoint_delete, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_add_overload, s_wxluafunc_wxLua_wxPoint_op_add_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_eq, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "op_iadd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_iadd_overload, s_wxluafunc_wxLua_wxPoint_op_iadd_overload_count, 0 }, - { "op_isub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_isub_overload, s_wxluafunc_wxLua_wxPoint_op_isub_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_ne, 1, NULL }, - { "op_neg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_neg, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_set, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "op_sub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint_op_sub_overload, s_wxluafunc_wxLua_wxPoint_op_sub_overload_count, 0 }, - { "wxPoint", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPoint_constructor_overload, s_wxluafunc_wxLua_wxPoint_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { "x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPoint_SetX, 1, NULL }, - { "x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPoint_GetX, 1, NULL }, - { "y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPoint_SetY, 1, NULL }, - { "y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPoint_GetY, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPoint_methodCount = sizeof(wxPoint_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPointSizeRect - - -#if wxLUA_USE_wxPointSizeRect -// --------------------------------------------------------------------------- -// Bind class wxRealPoint -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRealPoint' -int wxluatype_wxRealPoint = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRealPoint_GetX[] = { &wxluatype_wxRealPoint, NULL }; -static int LUACALL wxLua_wxRealPoint_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRealPoint_GetX[1] = {{ wxLua_wxRealPoint_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRealPoint_GetX }}; -// %rename X double x; // GetX() and SetX(int x); -static int LUACALL wxLua_wxRealPoint_GetX(lua_State *L) -{ - // get this - wxRealPoint *self = (wxRealPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRealPoint); - // push the result floating point number - lua_pushnumber(L, self->x); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRealPoint_GetY[] = { &wxluatype_wxRealPoint, NULL }; -static int LUACALL wxLua_wxRealPoint_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRealPoint_GetY[1] = {{ wxLua_wxRealPoint_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRealPoint_GetY }}; -// %rename Y double y; // GetY() and SetY(int y); -static int LUACALL wxLua_wxRealPoint_GetY(lua_State *L) -{ - // get this - wxRealPoint *self = (wxRealPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRealPoint); - // push the result floating point number - lua_pushnumber(L, self->y); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRealPoint_SetX[] = { &wxluatype_wxRealPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRealPoint_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRealPoint_SetX[1] = {{ wxLua_wxRealPoint_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRealPoint_SetX }}; -// %rename X double x; // GetX() and SetX(int x); -static int LUACALL wxLua_wxRealPoint_SetX(lua_State *L) -{ - // get the number value - double val = (double)wxlua_getnumbertype(L, 2); - // get this - wxRealPoint *self = (wxRealPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRealPoint); - self->x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRealPoint_SetY[] = { &wxluatype_wxRealPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRealPoint_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRealPoint_SetY[1] = {{ wxLua_wxRealPoint_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRealPoint_SetY }}; -// %rename Y double y; // GetY() and SetY(int y); -static int LUACALL wxLua_wxRealPoint_SetY(lua_State *L) -{ - // get the number value - double val = (double)wxlua_getnumbertype(L, 2); - // get this - wxRealPoint *self = (wxRealPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRealPoint); - self->y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRealPoint_delete[] = { &wxluatype_wxRealPoint, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRealPoint_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRealPoint_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRealPoint_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRealPoint_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRealPoint_constructor[1] = {{ wxLua_wxRealPoint_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRealPoint_constructor }}; -// wxRealPoint(double xx = 0, double yy = 0); -static int LUACALL wxLua_wxRealPoint_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double yy = 0 - double yy = (argCount >= 2 ? (double)wxlua_getnumbertype(L, 2) : 0); - // double xx = 0 - double xx = (argCount >= 1 ? (double)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxRealPoint* returns = new wxRealPoint(xx, yy); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRealPoint); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRealPoint); - - return 1; -} - - - - -void wxLua_wxRealPoint_delete_function(void** p) -{ - wxRealPoint* o = (wxRealPoint*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRealPoint_methods[] = { - // %member { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRealPoint_GetX, 1, NULL }, - // %member { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRealPoint_GetY, 1, NULL }, - // %member { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRealPoint_SetX, 1, NULL }, - // %member { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRealPoint_SetY, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRealPoint_delete, 1, NULL }, - { "wxRealPoint", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRealPoint_constructor, 1, NULL }, - { "x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRealPoint_SetX, 1, NULL }, - { "x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRealPoint_GetX, 1, NULL }, - { "y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRealPoint_SetY, 1, NULL }, - { "y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRealPoint_GetY, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRealPoint_methodCount = sizeof(wxRealPoint_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPointSizeRect - - -#if wxLUA_USE_wxPointSizeRect -// --------------------------------------------------------------------------- -// Bind class wxSize -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSize' -int wxluatype_wxSize = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_DecBy[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_DecBy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_DecBy[1] = {{ wxLua_wxSize_DecBy, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSize_DecBy }}; -// %wxchkver_2_8 void DecBy(int dx, int dy); -static int LUACALL wxLua_wxSize_DecBy(lua_State *L) -{ - // int dy - int dy = (int)wxlua_getnumbertype(L, 3); - // int dx - int dx = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call DecBy - self->DecBy(dx, dy); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_DecTo[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_DecTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_DecTo[1] = {{ wxLua_wxSize_DecTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_DecTo }}; -// void DecTo(const wxSize& sz); -static int LUACALL wxLua_wxSize_DecTo(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call DecTo - self->DecTo(*sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_GetHeight[] = { &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_GetHeight[1] = {{ wxLua_wxSize_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSize_GetHeight }}; -// int GetHeight() const; -static int LUACALL wxLua_wxSize_GetHeight(lua_State *L) -{ - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_GetWidth[] = { &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_GetWidth[1] = {{ wxLua_wxSize_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSize_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxSize_GetWidth(lua_State *L) -{ - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_IncBy[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_IncBy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_IncBy[1] = {{ wxLua_wxSize_IncBy, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSize_IncBy }}; -// %wxchkver_2_8 void IncBy(int dx, int dy); -static int LUACALL wxLua_wxSize_IncBy(lua_State *L) -{ - // int dy - int dy = (int)wxlua_getnumbertype(L, 3); - // int dx - int dx = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call IncBy - self->IncBy(dx, dy); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_IncTo[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_IncTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_IncTo[1] = {{ wxLua_wxSize_IncTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_IncTo }}; -// void IncTo(const wxSize& sz); -static int LUACALL wxLua_wxSize_IncTo(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call IncTo - self->IncTo(*sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_IsFullySpecified[] = { &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_IsFullySpecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_IsFullySpecified[1] = {{ wxLua_wxSize_IsFullySpecified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSize_IsFullySpecified }}; -// bool IsFullySpecified() const; -static int LUACALL wxLua_wxSize_IsFullySpecified(lua_State *L) -{ - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call IsFullySpecified - bool returns = (self->IsFullySpecified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_Scale[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_Scale[1] = {{ wxLua_wxSize_Scale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSize_Scale }}; -// %wxchkver_2_8 wxSize& Scale(float xscale, float yscale); -static int LUACALL wxLua_wxSize_Scale(lua_State *L) -{ - // float yscale - float yscale = (float)wxlua_getnumbertype(L, 3); - // float xscale - float xscale = (float)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call Scale - wxSize* returns = (wxSize*)&self->Scale(xscale, yscale); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_Set[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_Set[1] = {{ wxLua_wxSize_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSize_Set }}; -// void Set(int width, int height); -static int LUACALL wxLua_wxSize_Set(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call Set - self->Set(width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_SetDefaults[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_SetDefaults(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_SetDefaults[1] = {{ wxLua_wxSize_SetDefaults, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_SetDefaults }}; -// void SetDefaults(const wxSize& size); -static int LUACALL wxLua_wxSize_SetDefaults(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call SetDefaults - self->SetDefaults(*size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_SetHeight[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_SetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_SetHeight[1] = {{ wxLua_wxSize_SetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_SetHeight }}; -// void SetHeight(int height); -static int LUACALL wxLua_wxSize_SetHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call SetHeight - self->SetHeight(height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_SetWidth[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_SetWidth[1] = {{ wxLua_wxSize_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxSize_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_delete[] = { &wxluatype_wxSize, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSize_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_add[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_add[1] = {{ wxLua_wxSize_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_add }}; -// wxSize operator+(const wxSize& sz) const; //{ return wxSize(x + sz.x, y + sz.y); } -static int LUACALL wxLua_wxSize_op_add(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_add - // allocate a new object using the copy constructor - wxSize* returns = new wxSize((*self)+(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_div[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_op_div(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_div[1] = {{ wxLua_wxSize_op_div, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_div }}; -// wxSize operator/(int i) const; //{ return wxSize(x / i, y / i); } -static int LUACALL wxLua_wxSize_op_div(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_div - // allocate a new object using the copy constructor - wxSize* returns = new wxSize((*self)/(i)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_eq[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_eq[1] = {{ wxLua_wxSize_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_eq }}; -// bool operator==(const wxSize& sz) const; //{ return x == sz.x && y == sz.y; } -static int LUACALL wxLua_wxSize_op_eq(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_eq - bool returns = ((*self)==(*sz)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_iadd[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_iadd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_iadd[1] = {{ wxLua_wxSize_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_iadd }}; -// wxSize& operator+=(const wxSize& sz); //{ x += sz.x; y += sz.y; return *this; } -static int LUACALL wxLua_wxSize_op_iadd(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_iadd - (*self)+=(*sz); - wxSize* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_idiv[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_op_idiv(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_idiv[1] = {{ wxLua_wxSize_op_idiv, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_idiv }}; -// wxSize& operator/=(const int i); //{ x /= i; y /= i; return *this; } -static int LUACALL wxLua_wxSize_op_idiv(lua_State *L) -{ - // const int i - const int i = (const int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_idiv - (*self)/=(i); - wxSize* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_imul[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_op_imul(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_imul[1] = {{ wxLua_wxSize_op_imul, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_imul }}; -// wxSize& operator*=(const int i); //{ x *= i; y *= i; return *this; } -static int LUACALL wxLua_wxSize_op_imul(lua_State *L) -{ - // const int i - const int i = (const int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_imul - (*self)*=(i); - wxSize* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_isub[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_isub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_isub[1] = {{ wxLua_wxSize_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_isub }}; -// wxSize& operator-=(const wxSize& sz); //{ x -= sz.x; y -= sz.y; return *this; } -static int LUACALL wxLua_wxSize_op_isub(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_isub - (*self)-=(*sz); - wxSize* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_mul[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_op_mul(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_mul[1] = {{ wxLua_wxSize_op_mul, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_mul }}; -// wxSize operator*(int i) const; //{ return wxSize(x * i, y * i); } -static int LUACALL wxLua_wxSize_op_mul(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_mul - // allocate a new object using the copy constructor - wxSize* returns = new wxSize((*self)*(i)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_ne[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_ne[1] = {{ wxLua_wxSize_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_ne }}; -// bool operator!=(const wxSize& sz) const; //{ return x != sz.x || y != sz.y; } -static int LUACALL wxLua_wxSize_op_ne(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_ne - bool returns = ((*self)!=(*sz)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_set[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_set[1] = {{ wxLua_wxSize_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_set }}; -// wxSize& operator=(const wxSize& s) const; -static int LUACALL wxLua_wxSize_op_set(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_set - (*self)=(*s); - wxSize* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_op_sub[] = { &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_op_sub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_op_sub[1] = {{ wxLua_wxSize_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSize_op_sub }}; -// wxSize operator-(const wxSize& sz) const; //{ return wxSize(x - sz.x, y - sz.y); } -static int LUACALL wxLua_wxSize_op_sub(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSize * self = (wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call op_sub - // allocate a new object using the copy constructor - wxSize* returns = new wxSize((*self)-(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_constructor1[] = { &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSize_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_constructor1[1] = {{ wxLua_wxSize_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxSize_constructor1 }}; -// wxSize(const wxSize& size); -static int LUACALL wxLua_wxSize_constructor1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxSize* returns = new wxSize(*size); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSize_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSize_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_constructor[1] = {{ wxLua_wxSize_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxSize_constructor }}; -// wxSize(int width = 0, int height = 0); -static int LUACALL wxLua_wxSize_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int height = 0 - int height = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int width = 0 - int width = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxSize* returns = new wxSize(width, height); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - - - - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSize_constructor_overload[] = -{ - { wxLua_wxSize_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxSize_constructor1 }, - { wxLua_wxSize_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxSize_constructor }, -}; -static int s_wxluafunc_wxLua_wxSize_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSize_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -void wxLua_wxSize_delete_function(void** p) -{ - wxSize* o = (wxSize*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSize_methods[] = { -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { "DecBy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_DecBy, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - - { "DecTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_DecTo, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_GetHeight, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_GetWidth, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { "IncBy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_IncBy, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - - { "IncTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_IncTo, 1, NULL }, - { "IsFullySpecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_IsFullySpecified, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_Scale, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_Set, 1, NULL }, - { "SetDefaults", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_SetDefaults, 1, NULL }, - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_SetHeight, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSize_delete, 1, NULL }, - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_add, 1, NULL }, - { "op_div", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_div, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_eq, 1, NULL }, - { "op_iadd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_iadd, 1, NULL }, - { "op_idiv", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_idiv, 1, NULL }, - { "op_imul", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_imul, 1, NULL }, - { "op_isub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_isub, 1, NULL }, - { "op_mul", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_mul, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_ne, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_set, 1, NULL }, - { "op_sub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSize_op_sub, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "wxSize", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSize_constructor_overload, s_wxluafunc_wxLua_wxSize_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxSize_methodCount = sizeof(wxSize_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPointSizeRect - - -#if wxLUA_USE_wxPointSizeRect -// --------------------------------------------------------------------------- -// Bind class wxRect -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRect' -int wxluatype_wxRect = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_CentreIn[] = { &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_CentreIn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_CentreIn[1] = {{ wxLua_wxRect_CentreIn, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRect_CentreIn }}; -// wxRect CentreIn(const wxRect& r, int dir = wxBOTH) const; // CenterIn -static int LUACALL wxLua_wxRect_CentreIn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int dir = wxBOTH - int dir = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBOTH); - // const wxRect r - const wxRect * r = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call CentreIn - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->CentreIn(*r, dir)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Contains2[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Contains2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Contains2[1] = {{ wxLua_wxRect_Contains2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Contains2 }}; -// bool Contains(const wxRect& rect) const; -static int LUACALL wxLua_wxRect_Contains2(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Contains - bool returns = (self->Contains(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Contains1[] = { &wxluatype_wxRect, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRect_Contains1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Contains1[1] = {{ wxLua_wxRect_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Contains1 }}; -// bool Contains(const wxPoint& pt) const; -static int LUACALL wxLua_wxRect_Contains1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Contains - bool returns = (self->Contains(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Contains[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Contains(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Contains[1] = {{ wxLua_wxRect_Contains, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect_Contains }}; -// bool Contains(wxCoord dx, wxCoord dy) const; -static int LUACALL wxLua_wxRect_Contains(lua_State *L) -{ - // wxCoord dy - wxCoord dy = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord dx - wxCoord dx = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Contains - bool returns = (self->Contains(dx, dy)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Deflate[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Deflate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Deflate[1] = {{ wxLua_wxRect_Deflate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect_Deflate }}; -// wxRect Deflate(wxCoord dx, wxCoord dy) const; //wxRect& Deflate(wxCoord dx, wxCoord dy); -static int LUACALL wxLua_wxRect_Deflate(lua_State *L) -{ - // wxCoord dy - wxCoord dy = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord dx - wxCoord dx = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Deflate - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->Deflate(dx, dy)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetBottom[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetBottom[1] = {{ wxLua_wxRect_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetBottom }}; -// int GetBottom(); -static int LUACALL wxLua_wxRect_GetBottom(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetBottom - int returns = (self->GetBottom()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetBottomLeft[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetBottomLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetBottomLeft[1] = {{ wxLua_wxRect_GetBottomLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetBottomLeft }}; -// %wxchkver_2_8 wxPoint GetBottomLeft() const; // GetLeftBottom -static int LUACALL wxLua_wxRect_GetBottomLeft(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetBottomLeft - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetBottomLeft()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetBottomRight[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetBottomRight[1] = {{ wxLua_wxRect_GetBottomRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetBottomRight }}; -// wxPoint GetBottomRight() const; // GetRightBottom -static int LUACALL wxLua_wxRect_GetBottomRight(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetBottomRight - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetBottomRight()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetHeight[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetHeight[1] = {{ wxLua_wxRect_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetHeight }}; -// int GetHeight(); -static int LUACALL wxLua_wxRect_GetHeight(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetLeft[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetLeft[1] = {{ wxLua_wxRect_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetLeft }}; -// int GetLeft(); -static int LUACALL wxLua_wxRect_GetLeft(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetLeft - int returns = (self->GetLeft()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetPosition[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetPosition[1] = {{ wxLua_wxRect_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetPosition }}; -// wxPoint GetPosition(); -static int LUACALL wxLua_wxRect_GetPosition(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetRight[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetRight[1] = {{ wxLua_wxRect_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetRight }}; -// int GetRight(); -static int LUACALL wxLua_wxRect_GetRight(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetRight - int returns = (self->GetRight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetSize[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetSize[1] = {{ wxLua_wxRect_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetSize }}; -// wxSize GetSize(); -static int LUACALL wxLua_wxRect_GetSize(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetTop[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetTop[1] = {{ wxLua_wxRect_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetTop }}; -// int GetTop(); -static int LUACALL wxLua_wxRect_GetTop(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetTop - int returns = (self->GetTop()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetTopLeft[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetTopLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetTopLeft[1] = {{ wxLua_wxRect_GetTopLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetTopLeft }}; -// wxPoint GetTopLeft() const; // GetLeftTop -static int LUACALL wxLua_wxRect_GetTopLeft(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetTopLeft - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetTopLeft()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetTopRight[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetTopRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetTopRight[1] = {{ wxLua_wxRect_GetTopRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetTopRight }}; -// %wxchkver_2_8 wxPoint GetTopRight() const; // GetRightTop -static int LUACALL wxLua_wxRect_GetTopRight(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetTopRight - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetTopRight()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetWidth[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetWidth[1] = {{ wxLua_wxRect_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetWidth }}; -// int GetWidth(); -static int LUACALL wxLua_wxRect_GetWidth(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetX[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetX[1] = {{ wxLua_wxRect_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetX }}; -// int GetX(); -static int LUACALL wxLua_wxRect_GetX(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetX - int returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_GetY[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_GetY[1] = {{ wxLua_wxRect_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_GetY }}; -// int GetY(); -static int LUACALL wxLua_wxRect_GetY(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call GetY - int returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Get_height[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Get_height(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Get_height[1] = {{ wxLua_wxRect_Get_height, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_Get_height }}; -// int height; -static int LUACALL wxLua_wxRect_Get_height(lua_State *L) -{ - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->height) == (double)(self->height)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->height); -} else -#endif -{ - lua_pushnumber(L, self->height); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Get_width[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Get_width(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Get_width[1] = {{ wxLua_wxRect_Get_width, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_Get_width }}; -// int width; -static int LUACALL wxLua_wxRect_Get_width(lua_State *L) -{ - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->width) == (double)(self->width)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->width); -} else -#endif -{ - lua_pushnumber(L, self->width); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Get_x[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Get_x(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Get_x[1] = {{ wxLua_wxRect_Get_x, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_Get_x }}; -// int x; -static int LUACALL wxLua_wxRect_Get_x(lua_State *L) -{ - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->x) == (double)(self->x)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->x); -} else -#endif -{ - lua_pushnumber(L, self->x); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Get_y[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Get_y(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Get_y[1] = {{ wxLua_wxRect_Get_y, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_Get_y }}; -// int y; -static int LUACALL wxLua_wxRect_Get_y(lua_State *L) -{ - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->y) == (double)(self->y)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->y); -} else -#endif -{ - lua_pushnumber(L, self->y); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Inflate[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Inflate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Inflate[1] = {{ wxLua_wxRect_Inflate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect_Inflate }}; -// wxRect Inflate(wxCoord dx, wxCoord dy) const; //wxRect& Inflate(wxCoord dx, wxCoord dy); -static int LUACALL wxLua_wxRect_Inflate(lua_State *L) -{ - // wxCoord dy - wxCoord dy = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord dx - wxCoord dx = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Inflate - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->Inflate(dx, dy)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - - -#if ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Inside[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Inside(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Inside[1] = {{ wxLua_wxRect_Inside, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect_Inside }}; -// %wxcompat_2_6 bool Inside(wxCoord cx, wxCoord cy); -static int LUACALL wxLua_wxRect_Inside(lua_State *L) -{ - // wxCoord cy - wxCoord cy = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord cx - wxCoord cx = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Inside - bool returns = (self->Inside(cx, cy)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Intersects[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Intersects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Intersects[1] = {{ wxLua_wxRect_Intersects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Intersects }}; -// bool Intersects(const wxRect& rect) const; -static int LUACALL wxLua_wxRect_Intersects(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Intersects - bool returns = (self->Intersects(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_IsEmpty[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_IsEmpty[1] = {{ wxLua_wxRect_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxRect_IsEmpty(lua_State *L) -{ - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Offset[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Offset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Offset[1] = {{ wxLua_wxRect_Offset, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect_Offset }}; -// void Offset(wxCoord dx, wxCoord dy); //void Offset(const wxPoint& pt); -static int LUACALL wxLua_wxRect_Offset(lua_State *L) -{ - // wxCoord dy - wxCoord dy = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord dx - wxCoord dx = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Offset - self->Offset(dx, dy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetBottom[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetBottom[1] = {{ wxLua_wxRect_SetBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetBottom }}; -// void SetBottom(int bottom); -static int LUACALL wxLua_wxRect_SetBottom(lua_State *L) -{ - // int bottom - int bottom = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetBottom - self->SetBottom(bottom); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetBottomLeft[] = { &wxluatype_wxRect, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRect_SetBottomLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetBottomLeft[1] = {{ wxLua_wxRect_SetBottomLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetBottomLeft }}; -// %wxchkver_2_8 void SetBottomLeft(const wxPoint &p); // SetLeftBottom -static int LUACALL wxLua_wxRect_SetBottomLeft(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetBottomLeft - self->SetBottomLeft(*p); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetBottomRight[] = { &wxluatype_wxRect, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRect_SetBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetBottomRight[1] = {{ wxLua_wxRect_SetBottomRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetBottomRight }}; -// void SetBottomRight(const wxPoint &p); // SetRightBottom -static int LUACALL wxLua_wxRect_SetBottomRight(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetBottomRight - self->SetBottomRight(*p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetHeight[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetHeight[1] = {{ wxLua_wxRect_SetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetHeight }}; -// void SetHeight(int height); -static int LUACALL wxLua_wxRect_SetHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetHeight - self->SetHeight(height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetLeft[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetLeft[1] = {{ wxLua_wxRect_SetLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetLeft }}; -// void SetLeft(int left); -static int LUACALL wxLua_wxRect_SetLeft(lua_State *L) -{ - // int left - int left = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetLeft - self->SetLeft(left); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetPosition[] = { &wxluatype_wxRect, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRect_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetPosition[1] = {{ wxLua_wxRect_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetPosition }}; -// void SetPosition(const wxPoint &p); -static int LUACALL wxLua_wxRect_SetPosition(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetPosition - self->SetPosition(*p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetRight[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetRight[1] = {{ wxLua_wxRect_SetRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetRight }}; -// void SetRight(int right); -static int LUACALL wxLua_wxRect_SetRight(lua_State *L) -{ - // int right - int right = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetRight - self->SetRight(right); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetSize[] = { &wxluatype_wxRect, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRect_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetSize[1] = {{ wxLua_wxRect_SetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetSize }}; -// void SetSize(const wxSize &s); -static int LUACALL wxLua_wxRect_SetSize(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetSize - self->SetSize(*s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetTop[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetTop[1] = {{ wxLua_wxRect_SetTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetTop }}; -// void SetTop(int top); -static int LUACALL wxLua_wxRect_SetTop(lua_State *L) -{ - // int top - int top = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetTop - self->SetTop(top); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetTopRight[] = { &wxluatype_wxRect, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRect_SetTopRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetTopRight[1] = {{ wxLua_wxRect_SetTopRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetTopRight }}; -// %wxchkver_2_8 void SetTopRight(const wxPoint &p); // SetRightTop -static int LUACALL wxLua_wxRect_SetTopRight(lua_State *L) -{ - // const wxPoint p - const wxPoint * p = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetTopRight - self->SetTopRight(*p); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetWidth[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetWidth[1] = {{ wxLua_wxRect_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxRect_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetX[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetX[1] = {{ wxLua_wxRect_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetX }}; -// void SetX(int X); -static int LUACALL wxLua_wxRect_SetX(lua_State *L) -{ - // int X - int X = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetX - self->SetX(X); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_SetY[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_SetY[1] = {{ wxLua_wxRect_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_SetY }}; -// void SetY(int Y); -static int LUACALL wxLua_wxRect_SetY(lua_State *L) -{ - // int Y - int Y = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call SetY - self->SetY(Y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Set_height[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Set_height(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Set_height[1] = {{ wxLua_wxRect_Set_height, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Set_height }}; -// int height; -static int LUACALL wxLua_wxRect_Set_height(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - self->height = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Set_width[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Set_width(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Set_width[1] = {{ wxLua_wxRect_Set_width, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Set_width }}; -// int width; -static int LUACALL wxLua_wxRect_Set_width(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - self->width = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Set_x[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Set_x(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Set_x[1] = {{ wxLua_wxRect_Set_x, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Set_x }}; -// int x; -static int LUACALL wxLua_wxRect_Set_x(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - self->x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Set_y[] = { &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_Set_y(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Set_y[1] = {{ wxLua_wxRect_Set_y, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Set_y }}; -// int y; -static int LUACALL wxLua_wxRect_Set_y(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxRect *self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - self->y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_Union[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_Union(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Union[1] = {{ wxLua_wxRect_Union, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Union }}; -// wxRect Union(const wxRect& rect) const; //wxRect& Union(const wxRect& rect); -static int LUACALL wxLua_wxRect_Union(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call Union - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->Union(*rect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_delete[] = { &wxluatype_wxRect, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRect_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_op_add[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_op_add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_op_add[1] = {{ wxLua_wxRect_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_op_add }}; -// wxRect operator+(const wxRect& rect) const; -static int LUACALL wxLua_wxRect_op_add(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call op_add - // allocate a new object using the copy constructor - wxRect* returns = new wxRect((*self)+(*rect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_op_eq[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_op_eq[1] = {{ wxLua_wxRect_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_op_eq }}; -// bool operator==(const wxRect& rect) const; -static int LUACALL wxLua_wxRect_op_eq(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call op_eq - bool returns = ((*self)==(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_op_iadd[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_op_iadd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_op_iadd[1] = {{ wxLua_wxRect_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_op_iadd }}; -// wxRect& operator+=(const wxRect& rect); -static int LUACALL wxLua_wxRect_op_iadd(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call op_iadd - (*self)+=(*rect); - wxRect* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_op_set[] = { &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_op_set[1] = {{ wxLua_wxRect_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_op_set }}; -// wxRect& operator=(const wxRect& r) const; -static int LUACALL wxLua_wxRect_op_set(lua_State *L) -{ - // const wxRect r - const wxRect * r = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRect * self = (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call op_set - (*self)=(*r); - wxRect* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_constructor4[] = { &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRect_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_constructor4[1] = {{ wxLua_wxRect_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect_constructor4 }}; -// wxRect(const wxSize& size); -static int LUACALL wxLua_wxRect_constructor4(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxRect* returns = new wxRect(*size); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_constructor3[] = { &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRect_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_constructor3[1] = {{ wxLua_wxRect_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect_constructor3 }}; -// wxRect(const wxPoint& pos, const wxSize& size); -static int LUACALL wxLua_wxRect_constructor3(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxRect* returns = new wxRect(*pos, *size); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_constructor2[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRect_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_constructor2[1] = {{ wxLua_wxRect_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect_constructor2 }}; -// wxRect(const wxPoint& topLeft, const wxPoint& bottomRight); -static int LUACALL wxLua_wxRect_constructor2(lua_State *L) -{ - // const wxPoint bottomRight - const wxPoint * bottomRight = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // const wxPoint topLeft - const wxPoint * topLeft = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxRect* returns = new wxRect(*topLeft, *bottomRight); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_constructor1[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_constructor1[1] = {{ wxLua_wxRect_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect_constructor1 }}; -// wxRect(const wxRect& rect); -static int LUACALL wxLua_wxRect_constructor1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call constructor - wxRect* returns = new wxRect(*rect); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_constructor[1] = {{ wxLua_wxRect_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRect_constructor }}; -// wxRect(int x = 0, int y = 0, int w = 0, int h = 0); -static int LUACALL wxLua_wxRect_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int h = 0 - int h = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int w = 0 - int w = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int y = 0 - int y = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int x = 0 - int x = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxRect* returns = new wxRect(x, y, w, h); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_Contains_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect_Contains2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Contains2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect_Contains1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect_Contains, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect_Contains }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxRect_Contains_overload_count = sizeof(s_wxluafunc_wxLua_wxRect_Contains_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect_constructor_overload[] = -{ - { wxLua_wxRect_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect_constructor4 }, - { wxLua_wxRect_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect_constructor3 }, - { wxLua_wxRect_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect_constructor2 }, - { wxLua_wxRect_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect_constructor1 }, - { wxLua_wxRect_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRect_constructor }, -}; -static int s_wxluafunc_wxLua_wxRect_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRect_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -void wxLua_wxRect_delete_function(void** p) -{ - wxRect* o = (wxRect*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRect_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { "CentreIn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_CentreIn, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) - { "Contains", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Contains_overload, s_wxluafunc_wxLua_wxRect_Contains_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) - - { "Deflate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Deflate, 1, NULL }, - { "GetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetBottom, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { "GetBottomLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetBottomLeft, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - - { "GetBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetBottomRight, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetHeight, 1, NULL }, - { "GetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetLeft, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetPosition, 1, NULL }, - { "GetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetRight, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetSize, 1, NULL }, - { "GetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetTop, 1, NULL }, - { "GetTopLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetTopLeft, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { "GetTopRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetTopRight, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetWidth, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_GetY, 1, NULL }, - // %member { "Get_height", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Get_height, 1, NULL }, - // %member { "Get_width", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Get_width, 1, NULL }, - // %member { "Get_x", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Get_x, 1, NULL }, - // %member { "Get_y", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Get_y, 1, NULL }, - { "Inflate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Inflate, 1, NULL }, - -#if ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxPointSizeRect) - { "Inside", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Inside, 1, NULL }, -#endif // ((defined(WXWIN_COMPATIBILITY_2_6) && WXWIN_COMPATIBILITY_2_6)) && (wxLUA_USE_wxPointSizeRect) - - { "Intersects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Intersects, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_IsEmpty, 1, NULL }, - { "Offset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Offset, 1, NULL }, - { "SetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetBottom, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { "SetBottomLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetBottomLeft, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - - { "SetBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetBottomRight, 1, NULL }, - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetHeight, 1, NULL }, - { "SetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetLeft, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetPosition, 1, NULL }, - { "SetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetRight, 1, NULL }, - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetSize, 1, NULL }, - { "SetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetTop, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - { "SetTopRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetTopRight, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPointSizeRect) - - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetWidth, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_SetY, 1, NULL }, - // %member { "Set_height", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Set_height, 1, NULL }, - // %member { "Set_width", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Set_width, 1, NULL }, - // %member { "Set_x", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Set_x, 1, NULL }, - // %member { "Set_y", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Set_y, 1, NULL }, - { "Union", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_Union, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRect_delete, 1, NULL }, - { "height", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect_Set_height, 1, NULL }, - { "height", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect_Get_height, 1, NULL }, - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_op_add, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_op_eq, 1, NULL }, - { "op_iadd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_op_iadd, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect_op_set, 1, NULL }, - { "width", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect_Set_width, 1, NULL }, - { "width", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect_Get_width, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "wxRect", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRect_constructor_overload, s_wxluafunc_wxLua_wxRect_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { "x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect_Set_x, 1, NULL }, - { "x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect_Get_x, 1, NULL }, - { "y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect_Set_y, 1, NULL }, - { "y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect_Get_y, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRect_methodCount = sizeof(wxRect_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPointSizeRect - -// --------------------------------------------------------------------------- -// Bind class wxGDIObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGDIObject' -int wxluatype_wxGDIObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGDIObject_IsNull[] = { &wxluatype_wxGDIObject, NULL }; -static int LUACALL wxLua_wxGDIObject_IsNull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGDIObject_IsNull[1] = {{ wxLua_wxGDIObject_IsNull, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGDIObject_IsNull }}; -// bool IsNull(); -static int LUACALL wxLua_wxGDIObject_IsNull(lua_State *L) -{ - // get this - wxGDIObject * self = (wxGDIObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGDIObject); - // call IsNull - bool returns = (self->IsNull()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGDIObject_delete[] = { &wxluatype_wxGDIObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGDIObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGDIObject_delete }}; - - - -void wxLua_wxGDIObject_delete_function(void** p) -{ - wxGDIObject* o = (wxGDIObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGDIObject_methods[] = { - { "IsNull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGDIObject_IsNull, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGDIObject_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxGDIObject_methodCount = sizeof(wxGDIObject_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxRegion -// --------------------------------------------------------------------------- -// Bind class wxRegion -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRegion' -int wxluatype_wxRegion = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Clear[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Clear[1] = {{ wxLua_wxRegion_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegion_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRegion_Clear(lua_State *L) -{ - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Clear - self->Clear(); - - return 0; -} - - -#if ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Combine2[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRegion_Combine2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Combine2[1] = {{ wxLua_wxRegion_Combine2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Combine2 }}; -// bool Combine(const wxRegion& region, wxRegionOp op); -static int LUACALL wxLua_wxRegion_Combine2(lua_State *L) -{ - // wxRegionOp op - wxRegionOp op = (wxRegionOp)wxlua_getenumtype(L, 3); - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Combine - bool returns = (self->Combine(*region, op)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) - -#if ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Combine1[] = { &wxluatype_wxRegion, &wxluatype_wxRect, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRegion_Combine1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Combine1[1] = {{ wxLua_wxRegion_Combine1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Combine1 }}; -// bool Combine(const wxRect& rect, wxRegionOp op); -static int LUACALL wxLua_wxRegion_Combine1(lua_State *L) -{ - // wxRegionOp op - wxRegionOp op = (wxRegionOp)wxlua_getenumtype(L, 3); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Combine - bool returns = (self->Combine(*rect, op)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect) - -#if (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Combine[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRegion_Combine(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Combine[1] = {{ wxLua_wxRegion_Combine, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRegion_Combine }}; -// bool Combine(wxCoord x, wxCoord y, wxCoord w, wxCoord h, wxRegionOp op); -static int LUACALL wxLua_wxRegion_Combine(lua_State *L) -{ - // wxRegionOp op - wxRegionOp op = (wxRegionOp)wxlua_getenumtype(L, 6); - // wxCoord h - wxCoord h = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord w - wxCoord w = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Combine - bool returns = (self->Combine(x, y, w, h, op)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Contains3[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Contains3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Contains3[1] = {{ wxLua_wxRegion_Contains3, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Contains3 }}; -// wxRegionContain Contains(long x, long y, long w, long h); -static int LUACALL wxLua_wxRegion_Contains3(lua_State *L) -{ - // long h - long h = (long)wxlua_getnumbertype(L, 5); - // long w - long w = (long)wxlua_getnumbertype(L, 4); - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Contains - wxRegionContain returns = (self->Contains(x, y, w, h)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Contains2[] = { &wxluatype_wxRegion, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRegion_Contains2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Contains2[1] = {{ wxLua_wxRegion_Contains2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Contains2 }}; -// wxRegionContain Contains(const wxRect& rect); -static int LUACALL wxLua_wxRegion_Contains2(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Contains - wxRegionContain returns = (self->Contains(*rect)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Contains1[] = { &wxluatype_wxRegion, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRegion_Contains1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Contains1[1] = {{ wxLua_wxRegion_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Contains1 }}; -// wxRegionContain Contains(const wxPoint& pt); -static int LUACALL wxLua_wxRegion_Contains1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Contains - wxRegionContain returns = (self->Contains(*pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Contains[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Contains(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Contains[1] = {{ wxLua_wxRegion_Contains, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Contains }}; -// wxRegionContain Contains(long x, long y); -static int LUACALL wxLua_wxRegion_Contains(lua_State *L) -{ - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Contains - wxRegionContain returns = (self->Contains(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_ConvertToBitmap[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_ConvertToBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_ConvertToBitmap[1] = {{ wxLua_wxRegion_ConvertToBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegion_ConvertToBitmap }}; -// wxBitmap ConvertToBitmap() const; -static int LUACALL wxLua_wxRegion_ConvertToBitmap(lua_State *L) -{ - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call ConvertToBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->ConvertToBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_GetBox[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_GetBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_GetBox[1] = {{ wxLua_wxRegion_GetBox, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegion_GetBox }}; -// wxRect GetBox() const; -static int LUACALL wxLua_wxRegion_GetBox(lua_State *L) -{ - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call GetBox - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetBox()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_GetBoxXYWH[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_GetBoxXYWH(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_GetBoxXYWH[1] = {{ wxLua_wxRegion_GetBoxXYWH, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegion_GetBoxXYWH }}; -// %override wxLua_wxRegion_GetBoxXYWH -// %rename GetBoxCoords void GetBox(int &x, int &y, int &width, int &height) -static int LUACALL wxLua_wxRegion_GetBoxXYWH(lua_State *L) -{ - int height; - int width; - int y; - int x; - // get this - wxRegion *self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call GetBox - self->GetBox(x, y, width, height); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 4; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Intersect2[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_Intersect2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Intersect2[1] = {{ wxLua_wxRegion_Intersect2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Intersect2 }}; -// bool Intersect(const wxRegion& region); -static int LUACALL wxLua_wxRegion_Intersect2(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Intersect - bool returns = (self->Intersect(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Intersect1[] = { &wxluatype_wxRegion, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRegion_Intersect1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Intersect1[1] = {{ wxLua_wxRegion_Intersect1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Intersect1 }}; -// bool Intersect(const wxRect& rect); -static int LUACALL wxLua_wxRegion_Intersect1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Intersect - bool returns = (self->Intersect(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Intersect[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Intersect(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Intersect[1] = {{ wxLua_wxRegion_Intersect, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Intersect }}; -// bool Intersect(long x, long y, long width, long height); -static int LUACALL wxLua_wxRegion_Intersect(lua_State *L) -{ - // long height - long height = (long)wxlua_getnumbertype(L, 5); - // long width - long width = (long)wxlua_getnumbertype(L, 4); - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Intersect - bool returns = (self->Intersect(x, y, width, height)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_IsEmpty[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_IsEmpty[1] = {{ wxLua_wxRegion_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegion_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxRegion_IsEmpty(lua_State *L) -{ - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_IsEqual[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_IsEqual(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_IsEqual[1] = {{ wxLua_wxRegion_IsEqual, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_IsEqual }}; -// %wxchkver_2_8 bool IsEqual(const wxRegion& region) const; -static int LUACALL wxLua_wxRegion_IsEqual(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call IsEqual - bool returns = (self->IsEqual(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Offset[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Offset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Offset[1] = {{ wxLua_wxRegion_Offset, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Offset }}; -// bool Offset(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxRegion_Offset(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Offset - bool returns = (self->Offset(x, y)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Ok[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Ok[1] = {{ wxLua_wxRegion_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegion_Ok }}; -// %wxchkver_2_8 bool Ok() const; -static int LUACALL wxLua_wxRegion_Ok(lua_State *L) -{ - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Subtract2[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_Subtract2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Subtract2[1] = {{ wxLua_wxRegion_Subtract2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Subtract2 }}; -// bool Subtract(const wxRegion& region); -static int LUACALL wxLua_wxRegion_Subtract2(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Subtract - bool returns = (self->Subtract(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Subtract1[] = { &wxluatype_wxRegion, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRegion_Subtract1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Subtract1[1] = {{ wxLua_wxRegion_Subtract1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Subtract1 }}; -// bool Subtract(const wxRect& rect); -static int LUACALL wxLua_wxRegion_Subtract1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Subtract - bool returns = (self->Subtract(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Subtract[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Subtract(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Subtract[1] = {{ wxLua_wxRegion_Subtract, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Subtract }}; -// bool Subtract(long x, long y, long width, long height); -static int LUACALL wxLua_wxRegion_Subtract(lua_State *L) -{ - // long height - long height = (long)wxlua_getnumbertype(L, 5); - // long width - long width = (long)wxlua_getnumbertype(L, 4); - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Subtract - bool returns = (self->Subtract(x, y, width, height)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Union4[] = { &wxluatype_wxRegion, &wxluatype_wxBitmap, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Union4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Union4[1] = {{ wxLua_wxRegion_Union4, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRegion_Union4 }}; -// bool Union(const wxBitmap& bmp, const wxColour& transColour, int tolerance = 0); -static int LUACALL wxLua_wxRegion_Union4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int tolerance = 0 - int tolerance = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxColour transColour - const wxColour * transColour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Union - bool returns = (self->Union(*bmp, *transColour, tolerance)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Union3[] = { &wxluatype_wxRegion, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxRegion_Union3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Union3[1] = {{ wxLua_wxRegion_Union3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Union3 }}; -// bool Union(const wxBitmap& bmp); -static int LUACALL wxLua_wxRegion_Union3(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Union - bool returns = (self->Union(*bmp)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Union2[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_Union2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Union2[1] = {{ wxLua_wxRegion_Union2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Union2 }}; -// bool Union(const wxRegion& region); -static int LUACALL wxLua_wxRegion_Union2(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Union - bool returns = (self->Union(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Union1[] = { &wxluatype_wxRegion, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRegion_Union1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Union1[1] = {{ wxLua_wxRegion_Union1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Union1 }}; -// bool Union(const wxRect& rect); -static int LUACALL wxLua_wxRegion_Union1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Union - bool returns = (self->Union(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Union[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Union(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Union[1] = {{ wxLua_wxRegion_Union, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Union }}; -// bool Union(long x, long y, long width, long height); -static int LUACALL wxLua_wxRegion_Union(lua_State *L) -{ - // long height - long height = (long)wxlua_getnumbertype(L, 5); - // long width - long width = (long)wxlua_getnumbertype(L, 4); - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Union - bool returns = (self->Union(x, y, width, height)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Xor2[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_Xor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Xor2[1] = {{ wxLua_wxRegion_Xor2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Xor2 }}; -// bool Xor(const wxRegion& region); -static int LUACALL wxLua_wxRegion_Xor2(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Xor - bool returns = (self->Xor(*region)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Xor1[] = { &wxluatype_wxRegion, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRegion_Xor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Xor1[1] = {{ wxLua_wxRegion_Xor1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Xor1 }}; -// bool Xor(const wxRect& rect); -static int LUACALL wxLua_wxRegion_Xor1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Xor - bool returns = (self->Xor(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_Xor[] = { &wxluatype_wxRegion, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_Xor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Xor[1] = {{ wxLua_wxRegion_Xor, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Xor }}; -// bool Xor(long x, long y, long width, long height); -static int LUACALL wxLua_wxRegion_Xor(lua_State *L) -{ - // long height - long height = (long)wxlua_getnumbertype(L, 5); - // long width - long width = (long)wxlua_getnumbertype(L, 4); - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call Xor - bool returns = (self->Xor(x, y, width, height)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_delete[] = { &wxluatype_wxRegion, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRegion_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_op_set[] = { &wxluatype_wxRegion, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_op_set[1] = {{ wxLua_wxRegion_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_op_set }}; -// wxRegion& operator=(const wxRegion& r) const; -static int LUACALL wxLua_wxRegion_op_set(lua_State *L) -{ - // const wxRegion r - const wxRegion * r = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxRegion * self = (wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call op_set - (*self)=(*r); - wxRegion* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegion); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_constructor3[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegion_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_constructor3[1] = {{ wxLua_wxRegion_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRegion_constructor3 }}; -// wxRegion(const wxRegion& region); -static int LUACALL wxLua_wxRegion_constructor3(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call constructor - wxRegion* returns = new wxRegion(*region); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegion); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegion); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_constructor2[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRegion_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_constructor2[1] = {{ wxLua_wxRegion_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRegion_constructor2 }}; -// wxRegion(const wxRect& rect); -static int LUACALL wxLua_wxRegion_constructor2(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call constructor - wxRegion* returns = new wxRegion(*rect); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegion); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegion); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_constructor1[] = { &wxluatype_wxPoint, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRegion_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_constructor1[1] = {{ wxLua_wxRegion_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRegion_constructor1 }}; -// wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight); -static int LUACALL wxLua_wxRegion_constructor1(lua_State *L) -{ - // const wxPoint bottomRight - const wxPoint * bottomRight = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // const wxPoint topLeft - const wxPoint * topLeft = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxRegion* returns = new wxRegion(*topLeft, *bottomRight); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegion); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegion); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegion_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRegion_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_constructor[1] = {{ wxLua_wxRegion_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRegion_constructor }}; -// wxRegion(long x = 0, long y = 0, long width = 0, long height = 0); -static int LUACALL wxLua_wxRegion_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long height = 0 - long height = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // long width = 0 - long width = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long y = 0 - long y = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : 0); - // long x = 0 - long x = (argCount >= 1 ? (long)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxRegion* returns = new wxRegion(x, y, width, height); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegion); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegion); - - return 1; -} - - - - -#if (((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion))||(((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect))||((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Combine_overload[] = -{ - -#if ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Combine2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Combine2 }, -#endif // ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) - -#if ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRegion_Combine1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Combine1 }, -#endif // ((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect) - -#if (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Combine, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRegion_Combine }, -#endif // (defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion) -}; -static int s_wxluafunc_wxLua_wxRegion_Combine_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_Combine_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion))||(((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect))||((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Contains_overload[] = -{ - { wxLua_wxRegion_Contains3, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Contains3 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Contains2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Contains2 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Contains1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Contains, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRegion_Contains }, -}; -static int s_wxluafunc_wxLua_wxRegion_Contains_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_Contains_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Intersect_overload[] = -{ - { wxLua_wxRegion_Intersect2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Intersect2 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Intersect1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Intersect1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Intersect, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Intersect }, -}; -static int s_wxluafunc_wxLua_wxRegion_Intersect_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_Intersect_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Subtract_overload[] = -{ - { wxLua_wxRegion_Subtract2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Subtract2 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Subtract1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Subtract1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Subtract, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Subtract }, -}; -static int s_wxluafunc_wxLua_wxRegion_Subtract_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_Subtract_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Union_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Union4, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRegion_Union4 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Union3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Union3 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Union2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Union2 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Union1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Union1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Union, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Union }, -}; -static int s_wxluafunc_wxLua_wxRegion_Union_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_Union_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_Xor_overload[] = -{ - { wxLua_wxRegion_Xor2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Xor2 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Xor1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRegion_Xor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_Xor, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRegion_Xor }, -}; -static int s_wxluafunc_wxLua_wxRegion_Xor_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_Xor_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegion_constructor_overload[] = -{ - { wxLua_wxRegion_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRegion_constructor3 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRegion_constructor2 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRegion_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { wxLua_wxRegion_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRegion_constructor }, -}; -static int s_wxluafunc_wxLua_wxRegion_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRegion_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - -void wxLua_wxRegion_delete_function(void** p) -{ - wxRegion* o = (wxRegion*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRegion_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Clear, 1, NULL }, - -#if (((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion))||(((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect))||((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) - { "Combine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Combine_overload, s_wxluafunc_wxLua_wxRegion_Combine_overload_count, 0 }, -#endif // (((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion))||(((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxPointSizeRect))||((defined (wxHAS_REGION_COMBINE )) && (wxLUA_USE_wxRegion)) - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - { "Contains", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Contains_overload, s_wxluafunc_wxLua_wxRegion_Contains_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) - { "ConvertToBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_ConvertToBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { "GetBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_GetBox, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - - { "GetBoxXYWH", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_GetBoxXYWH, 1, NULL }, - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - { "Intersect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Intersect_overload, s_wxluafunc_wxLua_wxRegion_Intersect_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_IsEmpty, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) - { "IsEqual", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_IsEqual, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion)) && (wxLUA_USE_wxRegion) - - { "Offset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Offset, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion) - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Ok, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRegion) - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - { "Subtract", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Subtract_overload, s_wxluafunc_wxLua_wxRegion_Subtract_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - { "Union", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Union_overload, s_wxluafunc_wxLua_wxRegion_Union_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxRegion))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - { "Xor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_Xor_overload, s_wxluafunc_wxLua_wxRegion_Xor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRegion_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegion_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - { "wxRegion", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRegion_constructor_overload, s_wxluafunc_wxLua_wxRegion_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRegion)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion)) - - { 0, 0, 0, 0 }, -}; - -int wxRegion_methodCount = sizeof(wxRegion_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRegion - - -#if wxLUA_USE_wxRegion -// --------------------------------------------------------------------------- -// Bind class wxRegionIterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRegionIterator' -int wxluatype_wxRegionIterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_GetHeight[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_GetHeight[1] = {{ wxLua_wxRegionIterator_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_GetHeight }}; -// long GetHeight(); // long GetH(); -static int LUACALL wxLua_wxRegionIterator_GetHeight(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call GetHeight - long returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_GetRect[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_GetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_GetRect[1] = {{ wxLua_wxRegionIterator_GetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_GetRect }}; -// wxRect GetRect(); -static int LUACALL wxLua_wxRegionIterator_GetRect(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call GetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_GetWidth[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_GetWidth[1] = {{ wxLua_wxRegionIterator_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_GetWidth }}; -// long GetWidth(); // long GetW(); -static int LUACALL wxLua_wxRegionIterator_GetWidth(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call GetWidth - long returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_GetX[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_GetX[1] = {{ wxLua_wxRegionIterator_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_GetX }}; -// long GetX(); -static int LUACALL wxLua_wxRegionIterator_GetX(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call GetX - long returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_GetY[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_GetY[1] = {{ wxLua_wxRegionIterator_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_GetY }}; -// long GetY(); -static int LUACALL wxLua_wxRegionIterator_GetY(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call GetY - long returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_HaveRects[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_HaveRects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_HaveRects[1] = {{ wxLua_wxRegionIterator_HaveRects, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_HaveRects }}; -// bool HaveRects(); -static int LUACALL wxLua_wxRegionIterator_HaveRects(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call HaveRects - bool returns = (self->HaveRects()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_Next[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_Next(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_Next[1] = {{ wxLua_wxRegionIterator_Next, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_Next }}; -// %override wxLua_wxRegionIterator_Next -// void Next() -static int LUACALL wxLua_wxRegionIterator_Next(lua_State *L) -{ - // get this - wxRegionIterator *self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call Next - (*self)++; - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_Reset[] = { &wxluatype_wxRegionIterator, NULL }; -static int LUACALL wxLua_wxRegionIterator_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_Reset[1] = {{ wxLua_wxRegionIterator_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxRegionIterator_Reset(lua_State *L) -{ - // get this - wxRegionIterator * self = (wxRegionIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegionIterator); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_delete[] = { &wxluatype_wxRegionIterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRegionIterator_constructor[] = { &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxRegionIterator_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRegionIterator_constructor[1] = {{ wxLua_wxRegionIterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRegionIterator_constructor }}; -// wxRegionIterator(const wxRegion& region); -static int LUACALL wxLua_wxRegionIterator_constructor(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRegion); - // call constructor - wxRegionIterator* returns = new wxRegionIterator(*region); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegionIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegionIterator); - - return 1; -} - - - - -void wxLua_wxRegionIterator_delete_function(void** p) -{ - wxRegionIterator* o = (wxRegionIterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRegionIterator_methods[] = { - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_GetHeight, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - { "GetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_GetRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRegion) - - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_GetWidth, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_GetY, 1, NULL }, - { "HaveRects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_HaveRects, 1, NULL }, - { "Next", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_Next, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRegionIterator_Reset, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRegionIterator_delete, 1, NULL }, - { "wxRegionIterator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRegionIterator_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRegionIterator_methodCount = sizeof(wxRegionIterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRegion - - -#if wxLUA_USE_wxFont -// --------------------------------------------------------------------------- -// Bind class wxFontInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontInfo' -int wxluatype_wxFontInfo = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_AllFlags[] = { &wxluatype_wxFontInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontInfo_AllFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_AllFlags[1] = {{ wxLua_wxFontInfo_AllFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontInfo_AllFlags }}; -// %wxchkver_3_0_0 wxFontInfo& AllFlags(int flags); -static int LUACALL wxLua_wxFontInfo_AllFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call AllFlags - wxFontInfo* returns = (wxFontInfo*)&self->AllFlags(flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_AntiAliased[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_AntiAliased(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_AntiAliased[1] = {{ wxLua_wxFontInfo_AntiAliased, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_AntiAliased }}; -// %wxchkver_3_0_0 wxFontInfo& AntiAliased(bool antiAliased = true); -static int LUACALL wxLua_wxFontInfo_AntiAliased(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool antiAliased = true - bool antiAliased = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call AntiAliased - wxFontInfo* returns = (wxFontInfo*)&self->AntiAliased(antiAliased); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Bold[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_Bold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Bold[1] = {{ wxLua_wxFontInfo_Bold, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_Bold }}; -// %wxchkver_3_0_0 wxFontInfo& Bold(bool bold = true); -static int LUACALL wxLua_wxFontInfo_Bold(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool bold = true - bool bold = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Bold - wxFontInfo* returns = (wxFontInfo*)&self->Bold(bold); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Encoding[] = { &wxluatype_wxFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontInfo_Encoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Encoding[1] = {{ wxLua_wxFontInfo_Encoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontInfo_Encoding }}; -// %wxchkver_3_0_0 wxFontInfo& Encoding(wxFontEncoding encoding); -static int LUACALL wxLua_wxFontInfo_Encoding(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 2); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Encoding - wxFontInfo* returns = (wxFontInfo*)&self->Encoding(encoding); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_FaceName[] = { &wxluatype_wxFontInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontInfo_FaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_FaceName[1] = {{ wxLua_wxFontInfo_FaceName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontInfo_FaceName }}; -// %wxchkver_3_0_0 wxFontInfo& FaceName(const wxString& faceName); -static int LUACALL wxLua_wxFontInfo_FaceName(lua_State *L) -{ - // const wxString faceName - const wxString faceName = wxlua_getwxStringtype(L, 2); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call FaceName - wxFontInfo* returns = (wxFontInfo*)&self->FaceName(faceName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Family[] = { &wxluatype_wxFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontInfo_Family(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Family[1] = {{ wxLua_wxFontInfo_Family, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontInfo_Family }}; -// %wxchkver_3_0_0 wxFontInfo& Family(wxFontFamily family); -static int LUACALL wxLua_wxFontInfo_Family(lua_State *L) -{ - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Family - wxFontInfo* returns = (wxFontInfo*)&self->Family(family); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_GetWeightClosestToNumericValue[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontInfo_GetWeightClosestToNumericValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_GetWeightClosestToNumericValue[1] = {{ wxLua_wxFontInfo_GetWeightClosestToNumericValue, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_GetWeightClosestToNumericValue }}; -// %wxchkver_3_1_2 static wxFontWeight GetWeightClosestToNumericValue(int numWeight); -static int LUACALL wxLua_wxFontInfo_GetWeightClosestToNumericValue(lua_State *L) -{ - // int numWeight - int numWeight = (int)wxlua_getnumbertype(L, 1); - // call GetWeightClosestToNumericValue - wxFontWeight returns = (wxFontInfo::GetWeightClosestToNumericValue(numWeight)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Italic[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_Italic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Italic[1] = {{ wxLua_wxFontInfo_Italic, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_Italic }}; -// %wxchkver_3_0_0 wxFontInfo& Italic(bool italic = true); -static int LUACALL wxLua_wxFontInfo_Italic(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool italic = true - bool italic = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Italic - wxFontInfo* returns = (wxFontInfo*)&self->Italic(italic); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Light[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_Light(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Light[1] = {{ wxLua_wxFontInfo_Light, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_Light }}; -// %wxchkver_3_0_0 wxFontInfo& Light(bool light = true); -static int LUACALL wxLua_wxFontInfo_Light(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool light = true - bool light = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Light - wxFontInfo* returns = (wxFontInfo*)&self->Light(light); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Slant[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_Slant(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Slant[1] = {{ wxLua_wxFontInfo_Slant, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_Slant }}; -// %wxchkver_3_0_0 wxFontInfo& Slant(bool slant = true); -static int LUACALL wxLua_wxFontInfo_Slant(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool slant = true - bool slant = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Slant - wxFontInfo* returns = (wxFontInfo*)&self->Slant(slant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Strikethrough[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_Strikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Strikethrough[1] = {{ wxLua_wxFontInfo_Strikethrough, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_Strikethrough }}; -// %wxchkver_3_0_0 wxFontInfo& Strikethrough(bool strikethrough = true); -static int LUACALL wxLua_wxFontInfo_Strikethrough(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool strikethrough = true - bool strikethrough = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Strikethrough - wxFontInfo* returns = (wxFontInfo*)&self->Strikethrough(strikethrough); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Style[] = { &wxluatype_wxFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontInfo_Style(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Style[1] = {{ wxLua_wxFontInfo_Style, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontInfo_Style }}; -// %wxchkver_3_1_2 wxFontInfo& Style(wxFontStyle style); -static int LUACALL wxLua_wxFontInfo_Style(lua_State *L) -{ - // wxFontStyle style - wxFontStyle style = (wxFontStyle)wxlua_getenumtype(L, 2); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Style - wxFontInfo* returns = (wxFontInfo*)&self->Style(style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Underlined[] = { &wxluatype_wxFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontInfo_Underlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Underlined[1] = {{ wxLua_wxFontInfo_Underlined, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontInfo_Underlined }}; -// %wxchkver_3_0_0 wxFontInfo& Underlined(bool underlined = true); -static int LUACALL wxLua_wxFontInfo_Underlined(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool underlined = true - bool underlined = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Underlined - wxFontInfo* returns = (wxFontInfo*)&self->Underlined(underlined); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_Weight[] = { &wxluatype_wxFontInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontInfo_Weight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_Weight[1] = {{ wxLua_wxFontInfo_Weight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontInfo_Weight }}; -// %wxchkver_3_1_2 wxFontInfo& Weight(int weight); -static int LUACALL wxLua_wxFontInfo_Weight(lua_State *L) -{ - // int weight - int weight = (int)wxlua_getnumbertype(L, 2); - // get this - wxFontInfo * self = (wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call Weight - wxFontInfo* returns = (wxFontInfo*)&self->Weight(weight); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_constructor3[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontInfo_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_constructor3[1] = {{ wxLua_wxFontInfo_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_constructor3 }}; -// %wxchkver_3_1_2 wxFontInfo(float pointSize); -static int LUACALL wxLua_wxFontInfo_constructor3(lua_State *L) -{ - // float pointSize - float pointSize = (float)wxlua_getnumbertype(L, 1); - // call constructor - wxFontInfo* returns = new wxFontInfo(pointSize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_constructor2[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontInfo_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_constructor2[1] = {{ wxLua_wxFontInfo_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_constructor2 }}; -// %wxchkver_3_0_0 wxFontInfo(int pointSize); // %override added explicitly -static int LUACALL wxLua_wxFontInfo_constructor2(lua_State *L) -{ - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFontInfo* returns = new wxFontInfo(pointSize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontInfo_constructor1[] = { &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxFontInfo_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_constructor1[1] = {{ wxLua_wxFontInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_constructor1 }}; -// %wxchkver_3_0_0 wxFontInfo(const wxSize& pixelSize); -static int LUACALL wxLua_wxFontInfo_constructor1(lua_State *L) -{ - // const wxSize pixelSize - const wxSize * pixelSize = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxFontInfo* returns = new wxFontInfo(*pixelSize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static int LUACALL wxLua_wxFontInfo_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_constructor[1] = {{ wxLua_wxFontInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxFontInfo(); -static int LUACALL wxLua_wxFontInfo_constructor(lua_State *L) -{ - // call constructor - wxFontInfo* returns = new wxFontInfo(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - - - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontInfo_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFontInfo_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_constructor3 }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFontInfo_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_constructor2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxFontInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFontInfo_constructor1 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFontInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxFontInfo_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFontInfo_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxFontInfo_delete_function(void** p) -{ - wxFontInfo* o = (wxFontInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontInfo_methods[] = { -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "AllFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_AllFlags, 1, NULL }, - { "AntiAliased", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_AntiAliased, 1, NULL }, - { "Bold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Bold, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { "Encoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Encoding, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "FaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_FaceName, 1, NULL }, - { "Family", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Family, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "GetWeightClosestToNumericValue", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontInfo_GetWeightClosestToNumericValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Italic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Italic, 1, NULL }, - { "Light", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Light, 1, NULL }, - { "Slant", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Slant, 1, NULL }, - { "Strikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Strikethrough, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Style", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Style, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Underlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Underlined, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Weight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontInfo_Weight, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) - { "wxFontInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontInfo_constructor_overload, s_wxluafunc_wxLua_wxFontInfo_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) - - { 0, 0, 0, 0 }, -}; - -int wxFontInfo_methodCount = sizeof(wxFontInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFont - - -#if wxLUA_USE_wxFont -// --------------------------------------------------------------------------- -// Bind class wxFont -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFont' -int wxluatype_wxFont = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxFont) && (wxUSE_PRIVATE_FONTS && wxCHECK_VERSION(3,1,2)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_AddPrivateFont[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFont_AddPrivateFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_AddPrivateFont[1] = {{ wxLua_wxFont_AddPrivateFont, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFont_AddPrivateFont }}; -// wxUSE_PRIVATE_FONTS && %wxchkver_3_1_2 static bool AddPrivateFont(const wxString& filename); -static int LUACALL wxLua_wxFont_AddPrivateFont(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call AddPrivateFont - bool returns = (wxFont::AddPrivateFont(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_PRIVATE_FONTS && wxCHECK_VERSION(3,1,2)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Bold[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Bold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Bold[1] = {{ wxLua_wxFont_Bold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Bold }}; -// %wxchkver_3_0_0 wxFont Bold() const; -static int LUACALL wxLua_wxFont_Bold(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Bold - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Bold()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetBaseFont[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetBaseFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetBaseFont[1] = {{ wxLua_wxFont_GetBaseFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetBaseFont }}; -// %wxchkver_3_1_0 wxFont GetBaseFont() const; -static int LUACALL wxLua_wxFont_GetBaseFont(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetBaseFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetBaseFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) -static int LUACALL wxLua_wxFont_GetDefaultEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetDefaultEncoding[1] = {{ wxLua_wxFont_GetDefaultEncoding, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxFontEncoding GetDefaultEncoding(); -static int LUACALL wxLua_wxFont_GetDefaultEncoding(lua_State *L) -{ - // call GetDefaultEncoding - wxFontEncoding returns = (wxFont::GetDefaultEncoding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetEncoding[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetEncoding[1] = {{ wxLua_wxFont_GetEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetEncoding }}; -// %wxchkver_3_0_0 wxFontEncoding GetEncoding() const; -static int LUACALL wxLua_wxFont_GetEncoding(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetEncoding - wxFontEncoding returns = (self->GetEncoding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetFaceName[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetFaceName[1] = {{ wxLua_wxFont_GetFaceName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetFaceName }}; -// wxString GetFaceName() const; -static int LUACALL wxLua_wxFont_GetFaceName(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetFaceName - wxString returns = (self->GetFaceName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetFamily[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetFamily(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetFamily[1] = {{ wxLua_wxFont_GetFamily, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetFamily }}; -// int GetFamily() const; -static int LUACALL wxLua_wxFont_GetFamily(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetFamily - int returns = (self->GetFamily()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetFractionalPointSize[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetFractionalPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetFractionalPointSize[1] = {{ wxLua_wxFont_GetFractionalPointSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetFractionalPointSize }}; -// %wxchkver_3_1_2 float GetFractionalPointSize() const; -static int LUACALL wxLua_wxFont_GetFractionalPointSize(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetFractionalPointSize - float returns = (self->GetFractionalPointSize()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetNativeFontInfo[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetNativeFontInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetNativeFontInfo[1] = {{ wxLua_wxFont_GetNativeFontInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetNativeFontInfo }}; -// %wxchkver_3_0_0 const wxNativeFontInfo *GetNativeFontInfo() const; -static int LUACALL wxLua_wxFont_GetNativeFontInfo(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetNativeFontInfo - const wxNativeFontInfo* returns = (const wxNativeFontInfo*)self->GetNativeFontInfo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNativeFontInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetNativeFontInfoDesc[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetNativeFontInfoDesc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetNativeFontInfoDesc[1] = {{ wxLua_wxFont_GetNativeFontInfoDesc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetNativeFontInfoDesc }}; -// wxString GetNativeFontInfoDesc() const; -static int LUACALL wxLua_wxFont_GetNativeFontInfoDesc(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetNativeFontInfoDesc - wxString returns = (self->GetNativeFontInfoDesc()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetNativeFontInfoUserDesc[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetNativeFontInfoUserDesc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetNativeFontInfoUserDesc[1] = {{ wxLua_wxFont_GetNativeFontInfoUserDesc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetNativeFontInfoUserDesc }}; -// %wxchkver_3_0_0 wxString GetNativeFontInfoUserDesc() const; -static int LUACALL wxLua_wxFont_GetNativeFontInfoUserDesc(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetNativeFontInfoUserDesc - wxString returns = (self->GetNativeFontInfoUserDesc()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetNumericWeight[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetNumericWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetNumericWeight[1] = {{ wxLua_wxFont_GetNumericWeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetNumericWeight }}; -// %wxchkver_3_1_2 int GetNumericWeight() const; -static int LUACALL wxLua_wxFont_GetNumericWeight(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetNumericWeight - int returns = (self->GetNumericWeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetNumericWeightOf[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_GetNumericWeightOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetNumericWeightOf[1] = {{ wxLua_wxFont_GetNumericWeightOf, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetNumericWeightOf }}; -// %wxchkver_3_1_2 static int GetNumericWeightOf(wxFontWeight weight); -static int LUACALL wxLua_wxFont_GetNumericWeightOf(lua_State *L) -{ - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 1); - // call GetNumericWeightOf - int returns = (wxFont::GetNumericWeightOf(weight)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetPixelSize[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetPixelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetPixelSize[1] = {{ wxLua_wxFont_GetPixelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetPixelSize }}; -// %wxchkver_3_0_0 wxSize GetPixelSize() const; -static int LUACALL wxLua_wxFont_GetPixelSize(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetPixelSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPixelSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetPointSize[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetPointSize[1] = {{ wxLua_wxFont_GetPointSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetPointSize }}; -// int GetPointSize() const; -static int LUACALL wxLua_wxFont_GetPointSize(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetPointSize - int returns = (self->GetPointSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetStrikethrough[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetStrikethrough[1] = {{ wxLua_wxFont_GetStrikethrough, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetStrikethrough }}; -// %wxchkver_3_0_0 bool GetStrikethrough() const; -static int LUACALL wxLua_wxFont_GetStrikethrough(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetStrikethrough - bool returns = (self->GetStrikethrough()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetStyle[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetStyle[1] = {{ wxLua_wxFont_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetStyle }}; -// int GetStyle() const; -static int LUACALL wxLua_wxFont_GetStyle(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetStyle - int returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetUnderlined[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetUnderlined[1] = {{ wxLua_wxFont_GetUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetUnderlined }}; -// bool GetUnderlined() const; -static int LUACALL wxLua_wxFont_GetUnderlined(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetUnderlined - bool returns = (self->GetUnderlined()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_GetWeight[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_GetWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_GetWeight[1] = {{ wxLua_wxFont_GetWeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_GetWeight }}; -// int GetWeight() const; -static int LUACALL wxLua_wxFont_GetWeight(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call GetWeight - int returns = (self->GetWeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_IsFixedWidth[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_IsFixedWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_IsFixedWidth[1] = {{ wxLua_wxFont_IsFixedWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_IsFixedWidth }}; -// bool IsFixedWidth() const; -static int LUACALL wxLua_wxFont_IsFixedWidth(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call IsFixedWidth - bool returns = (self->IsFixedWidth()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_IsOk[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_IsOk[1] = {{ wxLua_wxFont_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxFont_IsOk(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Italic[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Italic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Italic[1] = {{ wxLua_wxFont_Italic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Italic }}; -// %wxchkver_3_0_0 wxFont Italic() const; -static int LUACALL wxLua_wxFont_Italic(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Italic - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Italic()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Larger[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Larger(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Larger[1] = {{ wxLua_wxFont_Larger, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Larger }}; -// %wxchkver_3_0_0 wxFont Larger() const; -static int LUACALL wxLua_wxFont_Larger(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Larger - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Larger()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_MakeBold[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_MakeBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_MakeBold[1] = {{ wxLua_wxFont_MakeBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_MakeBold }}; -// %wxchkver_3_0_0 wxFont& MakeBold(); -static int LUACALL wxLua_wxFont_MakeBold(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call MakeBold - wxFont* returns = (wxFont*)&self->MakeBold(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_MakeItalic[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_MakeItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_MakeItalic[1] = {{ wxLua_wxFont_MakeItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_MakeItalic }}; -// %wxchkver_3_0_0 wxFont& MakeItalic(); -static int LUACALL wxLua_wxFont_MakeItalic(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call MakeItalic - wxFont* returns = (wxFont*)&self->MakeItalic(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_MakeLarger[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_MakeLarger(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_MakeLarger[1] = {{ wxLua_wxFont_MakeLarger, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_MakeLarger }}; -// %wxchkver_3_0_0 wxFont& MakeLarger(); -static int LUACALL wxLua_wxFont_MakeLarger(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call MakeLarger - wxFont* returns = (wxFont*)&self->MakeLarger(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_MakeSmaller[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_MakeSmaller(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_MakeSmaller[1] = {{ wxLua_wxFont_MakeSmaller, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_MakeSmaller }}; -// %wxchkver_3_0_0 wxFont& MakeSmaller(); -static int LUACALL wxLua_wxFont_MakeSmaller(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call MakeSmaller - wxFont* returns = (wxFont*)&self->MakeSmaller(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_MakeStrikethrough[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_MakeStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_MakeStrikethrough[1] = {{ wxLua_wxFont_MakeStrikethrough, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_MakeStrikethrough }}; -// %wxchkver_3_0_0 wxFont& MakeStrikethrough(); -static int LUACALL wxLua_wxFont_MakeStrikethrough(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call MakeStrikethrough - wxFont* returns = (wxFont*)&self->MakeStrikethrough(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_MakeUnderlined[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_MakeUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_MakeUnderlined[1] = {{ wxLua_wxFont_MakeUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_MakeUnderlined }}; -// %wxchkver_3_0_0 wxFont& MakeUnderlined(); -static int LUACALL wxLua_wxFont_MakeUnderlined(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call MakeUnderlined - wxFont* returns = (wxFont*)&self->MakeUnderlined(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_New3[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_New3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_New3[1] = {{ wxLua_wxFont_New3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 7, s_wxluatypeArray_wxLua_wxFont_New3 }}; -// static %gc wxFont* New(int pointSize, wxFontFamily family, int style, wxFontWeight weight, const bool underline = false, const wxString& faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_New3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 7 ? (wxFontEncoding)wxlua_getenumtype(L, 7) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const bool underline = false - const bool underline = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 4); - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 1); - // call New - wxFont* returns = (wxFont*)wxFont::New(pointSize, family, style, weight, underline, faceName, encoding); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_New2[] = { &wxluatype_wxSize, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_New2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_New2[1] = {{ wxLua_wxFont_New2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 7, s_wxluatypeArray_wxLua_wxFont_New2 }}; -// static %gc wxFont* New(const wxSize& pixelSize, wxFontFamily family, int style, wxFontWeight weight, const bool underline = false, const wxString& faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_New2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 7 ? (wxFontEncoding)wxlua_getenumtype(L, 7) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const bool underline = false - const bool underline = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 4); - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // const wxSize pixelSize - const wxSize * pixelSize = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call New - wxFont* returns = (wxFont*)wxFont::New(*pixelSize, family, style, weight, underline, faceName, encoding); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_New1[] = { &wxluatype_wxSize, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_New1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_New1[1] = {{ wxLua_wxFont_New1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 5, s_wxluatypeArray_wxLua_wxFont_New1 }}; -// static %gc wxFont* New(const wxSize& pixelSize, wxFontFamily family, int flags = wxFONTFLAG_DEFAULT, const wxString& faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_New1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 5 ? (wxFontEncoding)wxlua_getenumtype(L, 5) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int flags = wxFONTFLAG_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxFONTFLAG_DEFAULT); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // const wxSize pixelSize - const wxSize * pixelSize = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call New - wxFont* returns = (wxFont*)wxFont::New(*pixelSize, family, flags, faceName, encoding); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_New[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_New(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_New[1] = {{ wxLua_wxFont_New, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 5, s_wxluatypeArray_wxLua_wxFont_New }}; -// static %gc wxFont* New(int pointSize, wxFontFamily family, int flags = wxFONTFLAG_DEFAULT, const wxString& faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_New(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 5 ? (wxFontEncoding)wxlua_getenumtype(L, 5) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int flags = wxFONTFLAG_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxFONTFLAG_DEFAULT); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 1); - // call New - wxFont* returns = (wxFont*)wxFont::New(pointSize, family, flags, faceName, encoding); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Ok[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Ok[1] = {{ wxLua_wxFont_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Ok }}; -// bool Ok(); // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxFont_Ok(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Scale[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Scale[1] = {{ wxLua_wxFont_Scale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_Scale }}; -// %wxchkver_3_0_0 wxFont& Scale(float x); -static int LUACALL wxLua_wxFont_Scale(lua_State *L) -{ - // float x - float x = (float)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Scale - wxFont* returns = (wxFont*)&self->Scale(x); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Scaled[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_Scaled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Scaled[1] = {{ wxLua_wxFont_Scaled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_Scaled }}; -// %wxchkver_3_0_0 wxFont Scaled(float x) const; -static int LUACALL wxLua_wxFont_Scaled(lua_State *L) -{ - // float x - float x = (float)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Scaled - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Scaled(x)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetDefaultEncoding[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_SetDefaultEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetDefaultEncoding[1] = {{ wxLua_wxFont_SetDefaultEncoding, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFont_SetDefaultEncoding }}; -// static void SetDefaultEncoding(wxFontEncoding encoding); -static int LUACALL wxLua_wxFont_SetDefaultEncoding(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 1); - // call SetDefaultEncoding - wxFont::SetDefaultEncoding(encoding); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetEncoding[] = { &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_SetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetEncoding[1] = {{ wxLua_wxFont_SetEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetEncoding }}; -// %wxchkver_3_0_0 void SetEncoding(wxFontEncoding encoding); -static int LUACALL wxLua_wxFont_SetEncoding(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetEncoding - self->SetEncoding(encoding); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetFaceName[] = { &wxluatype_wxFont, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFont_SetFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetFaceName[1] = {{ wxLua_wxFont_SetFaceName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetFaceName }}; -// %not_overload %wxchkver_2_8 bool SetFaceName(const wxString& faceName); -static int LUACALL wxLua_wxFont_SetFaceName(lua_State *L) -{ - // const wxString faceName - const wxString faceName = wxlua_getwxStringtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetFaceName - bool returns = (self->SetFaceName(faceName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetFamily1[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetFamily1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetFamily1[1] = {{ wxLua_wxFont_SetFamily1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetFamily1 }}; -// !%wxchkver_3_0_0 void SetFamily(int family); -static int LUACALL wxLua_wxFont_SetFamily1(lua_State *L) -{ - // int family - int family = (int)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetFamily - self->SetFamily(family); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetFamily[] = { &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_SetFamily(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetFamily[1] = {{ wxLua_wxFont_SetFamily, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetFamily }}; -// %wxchkver_3_0_0 void SetFamily(wxFontFamily family); -static int LUACALL wxLua_wxFont_SetFamily(lua_State *L) -{ - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetFamily - self->SetFamily(family); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetFractionalPointSize[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetFractionalPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetFractionalPointSize[1] = {{ wxLua_wxFont_SetFractionalPointSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetFractionalPointSize }}; -// %wxchkver_3_1_2 void SetFractionalPointSize(float pointSize); -static int LUACALL wxLua_wxFont_SetFractionalPointSize(lua_State *L) -{ - // float pointSize - float pointSize = (float)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetFractionalPointSize - self->SetFractionalPointSize(pointSize); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetNativeFontInfo[] = { &wxluatype_wxFont, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFont_SetNativeFontInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetNativeFontInfo[1] = {{ wxLua_wxFont_SetNativeFontInfo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetNativeFontInfo }}; -// %not_overload %wxchkver_2_8 bool SetNativeFontInfo(const wxString& info); -static int LUACALL wxLua_wxFont_SetNativeFontInfo(lua_State *L) -{ - // const wxString info - const wxString info = wxlua_getwxStringtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetNativeFontInfo - bool returns = (self->SetNativeFontInfo(info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetNativeFontInfoUserDesc[] = { &wxluatype_wxFont, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFont_SetNativeFontInfoUserDesc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetNativeFontInfoUserDesc[1] = {{ wxLua_wxFont_SetNativeFontInfoUserDesc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetNativeFontInfoUserDesc }}; -// %wxchkver_2_8 bool SetNativeFontInfoUserDesc(const wxString& info); -static int LUACALL wxLua_wxFont_SetNativeFontInfoUserDesc(lua_State *L) -{ - // const wxString info - const wxString info = wxlua_getwxStringtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetNativeFontInfoUserDesc - bool returns = (self->SetNativeFontInfoUserDesc(info)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetNumericWeight[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetNumericWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetNumericWeight[1] = {{ wxLua_wxFont_SetNumericWeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetNumericWeight }}; -// %wxchkver_3_1_2 void SetNumericWeight(int weight); -static int LUACALL wxLua_wxFont_SetNumericWeight(lua_State *L) -{ - // int weight - int weight = (int)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetNumericWeight - self->SetNumericWeight(weight); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetPixelSize[] = { &wxluatype_wxFont, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxFont_SetPixelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetPixelSize[1] = {{ wxLua_wxFont_SetPixelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetPixelSize }}; -// %wxchkver_3_0_0 void SetPixelSize(const wxSize& pixelSize); -static int LUACALL wxLua_wxFont_SetPixelSize(lua_State *L) -{ - // const wxSize pixelSize - const wxSize * pixelSize = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetPixelSize - self->SetPixelSize(*pixelSize); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetPointSize[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetPointSize[1] = {{ wxLua_wxFont_SetPointSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetPointSize }}; -// void SetPointSize(int pointSize); -static int LUACALL wxLua_wxFont_SetPointSize(lua_State *L) -{ - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetPointSize - self->SetPointSize(pointSize); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetStrikethrough[] = { &wxluatype_wxFont, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFont_SetStrikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetStrikethrough[1] = {{ wxLua_wxFont_SetStrikethrough, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetStrikethrough }}; -// %wxchkver_3_0_0 void SetStrikethrough(bool strikethrough); -static int LUACALL wxLua_wxFont_SetStrikethrough(lua_State *L) -{ - // bool strikethrough - bool strikethrough = wxlua_getbooleantype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetStrikethrough - self->SetStrikethrough(strikethrough); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetStyle1[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetStyle1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetStyle1[1] = {{ wxLua_wxFont_SetStyle1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetStyle1 }}; -// !%wxchkver_3_0_0 void SetStyle(int style); -static int LUACALL wxLua_wxFont_SetStyle1(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetStyle[] = { &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_SetStyle(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetStyle[1] = {{ wxLua_wxFont_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetStyle }}; -// %wxchkver_3_0_0 void SetStyle(wxFontStyle style); -static int LUACALL wxLua_wxFont_SetStyle(lua_State *L) -{ - // wxFontStyle style - wxFontStyle style = (wxFontStyle)wxlua_getenumtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetSymbolicSize[] = { &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_SetSymbolicSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetSymbolicSize[1] = {{ wxLua_wxFont_SetSymbolicSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetSymbolicSize }}; -// %wxchkver_3_0_0 void SetSymbolicSize(wxFontSymbolicSize size); -static int LUACALL wxLua_wxFont_SetSymbolicSize(lua_State *L) -{ - // wxFontSymbolicSize size - wxFontSymbolicSize size = (wxFontSymbolicSize)wxlua_getenumtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetSymbolicSize - self->SetSymbolicSize(size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetSymbolicSizeRelativeTo[] = { &wxluatype_wxFont, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetSymbolicSizeRelativeTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetSymbolicSizeRelativeTo[1] = {{ wxLua_wxFont_SetSymbolicSizeRelativeTo, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFont_SetSymbolicSizeRelativeTo }}; -// %wxchkver_3_0_0 void SetSymbolicSizeRelativeTo(wxFontSymbolicSize size, int base); -static int LUACALL wxLua_wxFont_SetSymbolicSizeRelativeTo(lua_State *L) -{ - // int base - int base = (int)wxlua_getnumbertype(L, 3); - // wxFontSymbolicSize size - wxFontSymbolicSize size = (wxFontSymbolicSize)wxlua_getenumtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetSymbolicSizeRelativeTo - self->SetSymbolicSizeRelativeTo(size, base); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetUnderlined1[] = { &wxluatype_wxFont, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFont_SetUnderlined1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetUnderlined1[1] = {{ wxLua_wxFont_SetUnderlined1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetUnderlined1 }}; -// !%wxchkver_3_0_0 void SetUnderlined(const bool underlined); -static int LUACALL wxLua_wxFont_SetUnderlined1(lua_State *L) -{ - // const bool underlined - const bool underlined = wxlua_getbooleantype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetUnderlined - self->SetUnderlined(underlined); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetUnderlined[] = { &wxluatype_wxFont, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFont_SetUnderlined(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetUnderlined[1] = {{ wxLua_wxFont_SetUnderlined, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetUnderlined }}; -// %wxchkver_3_0_0 void SetUnderlined(bool underlined); -static int LUACALL wxLua_wxFont_SetUnderlined(lua_State *L) -{ - // bool underlined - bool underlined = wxlua_getbooleantype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetUnderlined - self->SetUnderlined(underlined); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetWeight1[] = { &wxluatype_wxFont, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFont_SetWeight1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetWeight1[1] = {{ wxLua_wxFont_SetWeight1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetWeight1 }}; -// !%wxchkver_3_0_0 void SetWeight(int weight); -static int LUACALL wxLua_wxFont_SetWeight1(lua_State *L) -{ - // int weight - int weight = (int)wxlua_getnumbertype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetWeight - self->SetWeight(weight); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_SetWeight[] = { &wxluatype_wxFont, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_SetWeight(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetWeight[1] = {{ wxLua_wxFont_SetWeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetWeight }}; -// %wxchkver_3_0_0 void SetWeight(wxFontWeight weight); -static int LUACALL wxLua_wxFont_SetWeight(lua_State *L) -{ - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 2); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call SetWeight - self->SetWeight(weight); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Smaller[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Smaller(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Smaller[1] = {{ wxLua_wxFont_Smaller, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Smaller }}; -// %wxchkver_3_0_0 wxFont Smaller() const; -static int LUACALL wxLua_wxFont_Smaller(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Smaller - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Smaller()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Strikethrough[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Strikethrough(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Strikethrough[1] = {{ wxLua_wxFont_Strikethrough, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Strikethrough }}; -// %wxchkver_3_0_0 wxFont Strikethrough() const; -static int LUACALL wxLua_wxFont_Strikethrough(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Strikethrough - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Strikethrough()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_Underlined[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_Underlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_Underlined[1] = {{ wxLua_wxFont_Underlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFont_Underlined }}; -// %wxchkver_3_0_0 wxFont Underlined() const; -static int LUACALL wxLua_wxFont_Underlined(lua_State *L) -{ - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call Underlined - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->Underlined()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_delete[] = { &wxluatype_wxFont, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFont_delete }}; - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_op_eq[] = { &wxluatype_wxFont, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_op_eq[1] = {{ wxLua_wxFont_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_op_eq }}; -// %wxchkver_3_0_0 bool operator==(const wxFont& font) const; -static int LUACALL wxLua_wxFont_op_eq(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call op_eq - bool returns = ((*self)==(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_op_ne[] = { &wxluatype_wxFont, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_op_ne[1] = {{ wxLua_wxFont_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_op_ne }}; -// %wxchkver_3_0_0 bool operator!=(const wxFont& font) const; -static int LUACALL wxLua_wxFont_op_ne(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call op_ne - bool returns = ((*self)!=(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_op_set1[] = { &wxluatype_wxFont, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_op_set1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_op_set1[1] = {{ wxLua_wxFont_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_op_set1 }}; -// !%wxchkver_3_0_0 wxFont& operator=(const wxFont& f) const; -static int LUACALL wxLua_wxFont_op_set1(lua_State *L) -{ - // const wxFont f - const wxFont * f = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call op_set - (*self)=(*f); - wxFont* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_op_set[] = { &wxluatype_wxFont, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_op_set(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_op_set[1] = {{ wxLua_wxFont_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_op_set }}; -// wxFont& operator =(const wxFont& font); -static int LUACALL wxLua_wxFont_op_set(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFont * self = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call op_set - (*self)=(*font); - wxFont* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor8[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_constructor8(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor8[1] = {{ wxLua_wxFont_constructor8, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor8 }}; -// !%wxchkver_3_0_0 wxFont(int pointSize, wxFontFamily family, int style, wxFontWeight weight, const bool underline = false, const wxString& faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_constructor8(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 7 ? (wxFontEncoding)wxlua_getenumtype(L, 7) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const bool underline = false - const bool underline = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 4); - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFont* returns = new wxFont(pointSize, family, style, weight, underline, faceName, encoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor7[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_constructor7(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor7[1] = {{ wxLua_wxFont_constructor7, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor7 }}; -// !%wxchkver_3_0_0 wxFont(int pointSize, int family, int style, int weight, const bool underline = false, const wxString& faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_constructor7(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 7 ? (wxFontEncoding)wxlua_getenumtype(L, 7) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const bool underline = false - const bool underline = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // int weight - int weight = (int)wxlua_getnumbertype(L, 4); - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // int family - int family = (int)wxlua_getnumbertype(L, 2); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFont* returns = new wxFont(pointSize, family, style, weight, underline, faceName, encoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor6[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxFont_constructor6(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor6[1] = {{ wxLua_wxFont_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor6 }}; -// %wxchkver_3_0_0 wxFont(const wxNativeFontInfo& nativeInfo); -static int LUACALL wxLua_wxFont_constructor6(lua_State *L) -{ - // const wxNativeFontInfo nativeInfo - const wxNativeFontInfo * nativeInfo = (const wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call constructor - wxFont* returns = new wxFont(*nativeInfo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor5[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFont_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor5[1] = {{ wxLua_wxFont_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor5 }}; -// %wxchkver_3_0_0 wxFont(const wxString& nativeInfoString); -static int LUACALL wxLua_wxFont_constructor5(lua_State *L) -{ - // const wxString nativeInfoString - const wxString nativeInfoString = wxlua_getwxStringtype(L, 1); - // call constructor - wxFont* returns = new wxFont(nativeInfoString); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor4[] = { &wxluatype_wxSize, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor4[1] = {{ wxLua_wxFont_constructor4, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor4 }}; -// %wxchkver_3_0_0 wxFont(const wxSize& pixelSize, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underline = false, const wxString& faceName = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_constructor4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 7 ? (wxFontEncoding)wxlua_getenumtype(L, 7) : wxFONTENCODING_DEFAULT); - // const wxString faceName = wxEmptyString - const wxString faceName = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // bool underline = false - bool underline = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 4); - // wxFontStyle style - wxFontStyle style = (wxFontStyle)wxlua_getenumtype(L, 3); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // const wxSize pixelSize - const wxSize * pixelSize = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxFont* returns = new wxFont(*pixelSize, family, style, weight, underline, faceName, encoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor3[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFont_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor3[1] = {{ wxLua_wxFont_constructor3, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor3 }}; -// %wxchkver_3_0_0 wxFont(int pointSize, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underline = false, const wxString& faceName = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFont_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 7 ? (wxFontEncoding)wxlua_getenumtype(L, 7) : wxFONTENCODING_DEFAULT); - // const wxString faceName = wxEmptyString - const wxString faceName = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // bool underline = false - bool underline = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 4); - // wxFontStyle style - wxFontStyle style = (wxFontStyle)wxlua_getenumtype(L, 3); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFont* returns = new wxFont(pointSize, family, style, weight, underline, faceName, encoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor2[] = { &wxluatype_wxFontInfo, NULL }; -static int LUACALL wxLua_wxFont_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor2[1] = {{ wxLua_wxFont_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor2 }}; -// %wxchkver_3_0_0 wxFont(const wxFontInfo& font); -static int LUACALL wxLua_wxFont_constructor2(lua_State *L) -{ - // const wxFontInfo font - const wxFontInfo * font = (const wxFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontInfo); - // call constructor - wxFont* returns = new wxFont(*font); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFont_constructor1[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFont_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor1[1] = {{ wxLua_wxFont_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor1 }}; -// wxFont(const wxFont& font); -static int LUACALL wxLua_wxFont_constructor1(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call constructor - wxFont* returns = new wxFont(*font); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -static int LUACALL wxLua_wxFont_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor[1] = {{ wxLua_wxFont_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxFont(); -static int LUACALL wxLua_wxFont_constructor(lua_State *L) -{ - // call constructor - wxFont* returns = new wxFont(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - - - -#if ((wxLUA_USE_wxFont) && (wxUSE_INTL))||(((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_New_overload[] = -{ - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) - { wxLua_wxFont_New3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 7, s_wxluatypeArray_wxLua_wxFont_New3 }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - { wxLua_wxFont_New2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 7, s_wxluatypeArray_wxLua_wxFont_New2 }, -#endif // ((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - -#if ((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - { wxLua_wxFont_New1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 5, s_wxluatypeArray_wxLua_wxFont_New1 }, -#endif // ((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) - { wxLua_wxFont_New, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 5, s_wxluatypeArray_wxLua_wxFont_New }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxFont_New_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_New_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFont) && (wxUSE_INTL))||(((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetFamily_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetFamily1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetFamily1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetFamily, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetFamily }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxFont_SetFamily_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_SetFamily_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetStyle_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetStyle1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetStyle1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetStyle }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxFont_SetStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_SetStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetUnderlined_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetUnderlined1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetUnderlined1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetUnderlined, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetUnderlined }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxFont_SetUnderlined_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_SetUnderlined_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_SetWeight_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetWeight1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetWeight1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_SetWeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_SetWeight }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxFont_SetWeight_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_SetWeight_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxFont) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_op_set_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_op_set1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFont_op_set }, -}; -static int s_wxluafunc_wxLua_wxFont_op_set_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_op_set_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxFont) - -#if ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(wxLUA_USE_wxFont) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFont_constructor_overload[] = -{ - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { wxLua_wxFont_constructor8, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor8 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { wxLua_wxFont_constructor7, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor7 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor6 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor5 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - { wxLua_wxFont_constructor4, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor4 }, -#endif // ((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { wxLua_wxFont_constructor3, WXLUAMETHOD_CONSTRUCTOR, 4, 7, s_wxluatypeArray_wxLua_wxFont_constructor3 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxFont_constructor1 }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { wxLua_wxFont_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxFont_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFont_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(wxLUA_USE_wxFont) - -void wxLua_wxFont_delete_function(void** p) -{ - wxFont* o = (wxFont*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFont_methods[] = { -#if (wxLUA_USE_wxFont) && (wxUSE_PRIVATE_FONTS && wxCHECK_VERSION(3,1,2)) - { "AddPrivateFont", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFont_AddPrivateFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_PRIVATE_FONTS && wxCHECK_VERSION(3,1,2)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Bold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Bold, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "GetBaseFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetBaseFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) - { "GetDefaultEncoding", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFont_GetDefaultEncoding, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { "GetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetEncoding, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - - { "GetFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetFaceName, 1, NULL }, - { "GetFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetFamily, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "GetFractionalPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetFractionalPointSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "GetNativeFontInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetNativeFontInfo, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - - { "GetNativeFontInfoDesc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetNativeFontInfoDesc, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { "GetNativeFontInfoUserDesc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetNativeFontInfoUserDesc, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "GetNumericWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetNumericWeight, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "GetNumericWeightOf", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFont_GetNumericWeightOf, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - { "GetPixelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetPixelSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - - { "GetPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetPointSize, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { "GetStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetStrikethrough, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetStyle, 1, NULL }, - { "GetUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetUnderlined, 1, NULL }, - { "GetWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_GetWeight, 1, NULL }, - { "IsFixedWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_IsFixedWidth, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Italic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Italic, 1, NULL }, - { "Larger", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Larger, 1, NULL }, - { "MakeBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_MakeBold, 1, NULL }, - { "MakeItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_MakeItalic, 1, NULL }, - { "MakeLarger", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_MakeLarger, 1, NULL }, - { "MakeSmaller", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_MakeSmaller, 1, NULL }, - { "MakeStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_MakeStrikethrough, 1, NULL }, - { "MakeUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_MakeUnderlined, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if ((wxLUA_USE_wxFont) && (wxUSE_INTL))||(((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL)) - { "New", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFont_New_overload, s_wxluafunc_wxLua_wxFont_New_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFont) && (wxUSE_INTL))||(((wxLUA_USE_wxFont) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL)) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Ok, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Scale, 1, NULL }, - { "Scaled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Scaled, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) - { "SetDefaultEncoding", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFont_SetDefaultEncoding, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { "SetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetEncoding, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - { "SetFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetFaceName, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - { "SetFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetFamily_overload, s_wxluafunc_wxLua_wxFont_SetFamily_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "SetFractionalPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetFractionalPointSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - { "SetNativeFontInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetNativeFontInfo, 1, NULL }, - { "SetNativeFontInfoUserDesc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetNativeFontInfoUserDesc, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - { "SetNumericWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetNumericWeight, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - { "SetPixelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetPixelSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - - { "SetPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetPointSize, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - { "SetStrikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetStrikethrough, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetStyle_overload, s_wxluafunc_wxLua_wxFont_SetStyle_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) - { "SetSymbolicSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetSymbolicSize, 1, NULL }, - { "SetSymbolicSizeRelativeTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetSymbolicSizeRelativeTo, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxFont)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) - { "SetUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetUnderlined_overload, s_wxluafunc_wxLua_wxFont_SetUnderlined_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - { "SetWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_SetWeight_overload, s_wxluafunc_wxLua_wxFont_SetWeight_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "Smaller", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Smaller, 1, NULL }, - { "Strikethrough", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Strikethrough, 1, NULL }, - { "Underlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_Underlined, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFont_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_op_ne, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxFont) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFont_op_set_overload, s_wxluafunc_wxLua_wxFont_op_set_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(wxLUA_USE_wxFont) - -#if ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(wxLUA_USE_wxFont) - { "wxFont", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFont_constructor_overload, s_wxluafunc_wxLua_wxFont_constructor_overload_count, 0 }, -#endif // ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont))||(((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxUSE_INTL))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||(wxLUA_USE_wxFont) - - { 0, 0, 0, 0 }, -}; - -int wxFont_methodCount = sizeof(wxFont_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFont - - -#if wxLUA_USE_wxFont -// --------------------------------------------------------------------------- -// Bind class wxNativeFontInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNativeFontInfo' -int wxluatype_wxNativeFontInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_FromString[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_FromString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_FromString[1] = {{ wxLua_wxNativeFontInfo_FromString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_FromString }}; -// bool FromString(const wxString& s); -static int LUACALL wxLua_wxNativeFontInfo_FromString(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call FromString - bool returns = (self->FromString(s)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_FromUserString[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_FromUserString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_FromUserString[1] = {{ wxLua_wxNativeFontInfo_FromUserString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_FromUserString }}; -// bool FromUserString(const wxString& s); -static int LUACALL wxLua_wxNativeFontInfo_FromUserString(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call FromUserString - bool returns = (self->FromUserString(s)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetEncoding[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetEncoding[1] = {{ wxLua_wxNativeFontInfo_GetEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetEncoding }}; -// wxFontEncoding GetEncoding() const; -static int LUACALL wxLua_wxNativeFontInfo_GetEncoding(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetEncoding - wxFontEncoding returns = (self->GetEncoding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetFaceName[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetFaceName[1] = {{ wxLua_wxNativeFontInfo_GetFaceName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetFaceName }}; -// wxString GetFaceName() const; -static int LUACALL wxLua_wxNativeFontInfo_GetFaceName(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetFaceName - wxString returns = (self->GetFaceName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetFamily[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetFamily(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetFamily[1] = {{ wxLua_wxNativeFontInfo_GetFamily, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetFamily }}; -// wxFontFamily GetFamily() const; -static int LUACALL wxLua_wxNativeFontInfo_GetFamily(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetFamily - wxFontFamily returns = (self->GetFamily()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetPixelSize[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetPixelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetPixelSize[1] = {{ wxLua_wxNativeFontInfo_GetPixelSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetPixelSize }}; -// %msw wxSize GetPixelSize() const; // FIXME wxWidgets has undefined symbol in gtk/mac -static int LUACALL wxLua_wxNativeFontInfo_GetPixelSize(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetPixelSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPixelSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetPointSize[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetPointSize[1] = {{ wxLua_wxNativeFontInfo_GetPointSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetPointSize }}; -// int GetPointSize() const; -static int LUACALL wxLua_wxNativeFontInfo_GetPointSize(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetPointSize - int returns = (self->GetPointSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetStyle[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetStyle[1] = {{ wxLua_wxNativeFontInfo_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetStyle }}; -// wxFontStyle GetStyle() const; -static int LUACALL wxLua_wxNativeFontInfo_GetStyle(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetStyle - wxFontStyle returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetUnderlined[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetUnderlined[1] = {{ wxLua_wxNativeFontInfo_GetUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetUnderlined }}; -// bool GetUnderlined() const; -static int LUACALL wxLua_wxNativeFontInfo_GetUnderlined(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetUnderlined - bool returns = (self->GetUnderlined()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_GetWeight[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_GetWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_GetWeight[1] = {{ wxLua_wxNativeFontInfo_GetWeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_GetWeight }}; -// wxFontWeight GetWeight() const; -static int LUACALL wxLua_wxNativeFontInfo_GetWeight(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call GetWeight - wxFontWeight returns = (self->GetWeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetEncoding[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetEncoding[1] = {{ wxLua_wxNativeFontInfo_SetEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetEncoding }}; -// void SetEncoding(wxFontEncoding encoding); -static int LUACALL wxLua_wxNativeFontInfo_SetEncoding(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetEncoding - self->SetEncoding(encoding); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName2[] = { &wxluatype_wxNativeFontInfo, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetFaceName2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName2[1] = {{ wxLua_wxNativeFontInfo_SetFaceName2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName2 }}; -// %wxchkver_2_8 void SetFaceName(const wxArrayString& facenames); -static int LUACALL wxLua_wxNativeFontInfo_SetFaceName2(lua_State *L) -{ - // const wxArrayString facenames - wxLuaSmartwxArrayString facenames = wxlua_getwxArrayString(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetFaceName - self->SetFaceName(facenames); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName1[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetFaceName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName1[1] = {{ wxLua_wxNativeFontInfo_SetFaceName1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName1 }}; -// !%wxchkver_2_8 void SetFaceName(const wxString& facename); -static int LUACALL wxLua_wxNativeFontInfo_SetFaceName1(lua_State *L) -{ - // const wxString facename - const wxString facename = wxlua_getwxStringtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetFaceName - self->SetFaceName(facename); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetFaceName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName[1] = {{ wxLua_wxNativeFontInfo_SetFaceName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName }}; -// %wxchkver_2_8 bool SetFaceName(const wxString& facename); -static int LUACALL wxLua_wxNativeFontInfo_SetFaceName(lua_State *L) -{ - // const wxString facename - const wxString facename = wxlua_getwxStringtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetFaceName - bool returns = (self->SetFaceName(facename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFamily[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetFamily(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetFamily[1] = {{ wxLua_wxNativeFontInfo_SetFamily, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFamily }}; -// void SetFamily(wxFontFamily family); -static int LUACALL wxLua_wxNativeFontInfo_SetFamily(lua_State *L) -{ - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetFamily - self->SetFamily(family); - - return 0; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetPixelSize[] = { &wxluatype_wxNativeFontInfo, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetPixelSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetPixelSize[1] = {{ wxLua_wxNativeFontInfo_SetPixelSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetPixelSize }}; -// %msw void SetPixelSize(const wxSize& pixelSize); -static int LUACALL wxLua_wxNativeFontInfo_SetPixelSize(lua_State *L) -{ - // const wxSize pixelSize - const wxSize * pixelSize = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetPixelSize - self->SetPixelSize(*pixelSize); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetPointSize[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetPointSize[1] = {{ wxLua_wxNativeFontInfo_SetPointSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetPointSize }}; -// void SetPointSize(int pointsize); -static int LUACALL wxLua_wxNativeFontInfo_SetPointSize(lua_State *L) -{ - // int pointsize - int pointsize = (int)wxlua_getnumbertype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetPointSize - self->SetPointSize(pointsize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetStyle[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetStyle[1] = {{ wxLua_wxNativeFontInfo_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetStyle }}; -// void SetStyle(wxFontStyle style); -static int LUACALL wxLua_wxNativeFontInfo_SetStyle(lua_State *L) -{ - // wxFontStyle style - wxFontStyle style = (wxFontStyle)wxlua_getenumtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetUnderlined[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetUnderlined[1] = {{ wxLua_wxNativeFontInfo_SetUnderlined, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetUnderlined }}; -// void SetUnderlined(bool underlined); -static int LUACALL wxLua_wxNativeFontInfo_SetUnderlined(lua_State *L) -{ - // bool underlined - bool underlined = wxlua_getbooleantype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetUnderlined - self->SetUnderlined(underlined); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_SetWeight[] = { &wxluatype_wxNativeFontInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_SetWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetWeight[1] = {{ wxLua_wxNativeFontInfo_SetWeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetWeight }}; -// void SetWeight(wxFontWeight weight); -static int LUACALL wxLua_wxNativeFontInfo_SetWeight(lua_State *L) -{ - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 2); - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call SetWeight - self->SetWeight(weight); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_ToString[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_ToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_ToString[1] = {{ wxLua_wxNativeFontInfo_ToString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_ToString }}; -// wxString ToString() const; -static int LUACALL wxLua_wxNativeFontInfo_ToString(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call ToString - wxString returns = (self->ToString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_ToUserString[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_ToUserString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_ToUserString[1] = {{ wxLua_wxNativeFontInfo_ToUserString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_ToUserString }}; -// wxString ToUserString() const; -static int LUACALL wxLua_wxNativeFontInfo_ToUserString(lua_State *L) -{ - // get this - wxNativeFontInfo * self = (wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call ToUserString - wxString returns = (self->ToUserString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_delete[] = { &wxluatype_wxNativeFontInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNativeFontInfo_constructor1[] = { &wxluatype_wxNativeFontInfo, NULL }; -static int LUACALL wxLua_wxNativeFontInfo_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_constructor1[1] = {{ wxLua_wxNativeFontInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_constructor1 }}; -// wxNativeFontInfo(const wxNativeFontInfo& info); -static int LUACALL wxLua_wxNativeFontInfo_constructor1(lua_State *L) -{ - // const wxNativeFontInfo info - const wxNativeFontInfo * info = (const wxNativeFontInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNativeFontInfo); - // call constructor - wxNativeFontInfo* returns = new wxNativeFontInfo(*info); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxNativeFontInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNativeFontInfo); - - return 1; -} - -static int LUACALL wxLua_wxNativeFontInfo_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_constructor[1] = {{ wxLua_wxNativeFontInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxNativeFontInfo(); -static int LUACALL wxLua_wxNativeFontInfo_constructor(lua_State *L) -{ - // call constructor - wxNativeFontInfo* returns = new wxNativeFontInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxNativeFontInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNativeFontInfo); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString) - { wxLua_wxNativeFontInfo_SetFaceName2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - { wxLua_wxNativeFontInfo_SetFaceName1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName1 }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) - { wxLua_wxNativeFontInfo_SetFaceName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNativeFontInfo_SetFaceName }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont) -}; -static int s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName_overload_count = sizeof(s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) - -#if (wxLUA_USE_wxFont) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNativeFontInfo_constructor_overload[] = -{ - { wxLua_wxNativeFontInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxNativeFontInfo_constructor1 }, - { wxLua_wxNativeFontInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxNativeFontInfo_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxNativeFontInfo_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxFont) - -void wxLua_wxNativeFontInfo_delete_function(void** p) -{ - wxNativeFontInfo* o = (wxNativeFontInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNativeFontInfo_methods[] = { - { "FromString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_FromString, 1, NULL }, - { "FromUserString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_FromUserString, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) - { "GetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetEncoding, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - - { "GetFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetFaceName, 1, NULL }, - { "GetFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetFamily, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - { "GetPixelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetPixelSize, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - - { "GetPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetPointSize, 1, NULL }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetStyle, 1, NULL }, - { "GetUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetUnderlined, 1, NULL }, - { "GetWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_GetWeight, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxUSE_INTL) - { "SetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetEncoding, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_INTL) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) - { "SetFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName_overload, s_wxluafunc_wxLua_wxNativeFontInfo_SetFaceName_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxArrayString))||((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFont)) - - { "SetFamily", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetFamily, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - { "SetPixelSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetPixelSize, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect) - - { "SetPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetPointSize, 1, NULL }, - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetStyle, 1, NULL }, - { "SetUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetUnderlined, 1, NULL }, - { "SetWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_SetWeight, 1, NULL }, - { "ToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_ToString, 1, NULL }, - { "ToUserString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNativeFontInfo_ToUserString, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxNativeFontInfo_delete, 1, NULL }, - -#if (wxLUA_USE_wxFont) - { "wxNativeFontInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNativeFontInfo_constructor_overload, s_wxluafunc_wxLua_wxNativeFontInfo_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxFont) - - { 0, 0, 0, 0 }, -}; - -int wxNativeFontInfo_methodCount = sizeof(wxNativeFontInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFont - - -#if wxLUA_USE_wxFontEnumerator -// --------------------------------------------------------------------------- -// Bind class wxFontEnumerator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontEnumerator' -int wxluatype_wxFontEnumerator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_EnumerateEncodings[] = { &wxluatype_wxFontEnumerator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontEnumerator_EnumerateEncodings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_EnumerateEncodings[1] = {{ wxLua_wxFontEnumerator_EnumerateEncodings, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontEnumerator_EnumerateEncodings }}; -// virtual bool EnumerateEncodings(const wxString &font = ""); -static int LUACALL wxLua_wxFontEnumerator_EnumerateEncodings(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString font = "" - const wxString font = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxFontEnumerator * self = (wxFontEnumerator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontEnumerator); - // call EnumerateEncodings - bool returns = (self->EnumerateEncodings(font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFontEnumerator) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_EnumerateFacenames[] = { &wxluatype_wxFontEnumerator, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontEnumerator_EnumerateFacenames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_EnumerateFacenames[1] = {{ wxLua_wxFontEnumerator_EnumerateFacenames, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxFontEnumerator_EnumerateFacenames }}; -// virtual bool EnumerateFacenames(wxFontEncoding encoding = wxFONTENCODING_SYSTEM, bool fixedWidthOnly = false); -static int LUACALL wxLua_wxFontEnumerator_EnumerateFacenames(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool fixedWidthOnly = false - bool fixedWidthOnly = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxFontEncoding encoding = wxFONTENCODING_SYSTEM - wxFontEncoding encoding = (argCount >= 2 ? (wxFontEncoding)wxlua_getenumtype(L, 2) : wxFONTENCODING_SYSTEM); - // get this - wxFontEnumerator * self = (wxFontEnumerator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontEnumerator); - // call EnumerateFacenames - bool returns = (self->EnumerateFacenames(encoding, fixedWidthOnly)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFontEnumerator) && (wxUSE_INTL) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_GetEncodings1[] = { &wxluatype_wxFontEnumerator, NULL }; -static int LUACALL wxLua_wxFontEnumerator_GetEncodings1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings1[1] = {{ wxLua_wxFontEnumerator_GetEncodings1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_GetEncodings1 }}; -// !%wxchkver_2_8 wxArrayString* GetEncodings(); -static int LUACALL wxLua_wxFontEnumerator_GetEncodings1(lua_State *L) -{ - // get this - wxFontEnumerator * self = (wxFontEnumerator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontEnumerator); - // call GetEncodings - wxArrayString* returns = (wxArrayString*)self->GetEncodings(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_GetEncodings[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontEnumerator_GetEncodings(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings[1] = {{ wxLua_wxFontEnumerator_GetEncodings, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_GetEncodings }}; -// %wxchkver_2_8 static wxArrayString GetEncodings(const wxString& facename = ""); -static int LUACALL wxLua_wxFontEnumerator_GetEncodings(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString facename = "" - const wxString facename = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call GetEncodings - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(wxFontEnumerator::GetEncodings(facename)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_GetFacenames1[] = { &wxluatype_wxFontEnumerator, NULL }; -static int LUACALL wxLua_wxFontEnumerator_GetFacenames1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames1[1] = {{ wxLua_wxFontEnumerator_GetFacenames1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_GetFacenames1 }}; -// !%wxchkver_2_8 wxArrayString* GetFacenames(); -static int LUACALL wxLua_wxFontEnumerator_GetFacenames1(lua_State *L) -{ - // get this - wxFontEnumerator * self = (wxFontEnumerator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontEnumerator); - // call GetFacenames - wxArrayString* returns = (wxArrayString*)self->GetFacenames(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_GetFacenames[] = { &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontEnumerator_GetFacenames(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames[1] = {{ wxLua_wxFontEnumerator_GetFacenames, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 2, s_wxluatypeArray_wxLua_wxFontEnumerator_GetFacenames }}; -// %wxchkver_2_8 static wxArrayString GetFacenames(wxFontEncoding encoding = wxFONTENCODING_SYSTEM, bool fixedWidthOnly = false); -static int LUACALL wxLua_wxFontEnumerator_GetFacenames(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool fixedWidthOnly = false - bool fixedWidthOnly = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // wxFontEncoding encoding = wxFONTENCODING_SYSTEM - wxFontEncoding encoding = (argCount >= 1 ? (wxFontEncoding)wxlua_getenumtype(L, 1) : wxFONTENCODING_SYSTEM); - // call GetFacenames - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(wxFontEnumerator::GetFacenames(encoding, fixedWidthOnly)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontEnumerator_delete[] = { &wxluatype_wxFontEnumerator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_delete }}; - -static int LUACALL wxLua_wxFontEnumerator_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_constructor[1] = {{ wxLua_wxFontEnumerator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFontEnumerator(); -static int LUACALL wxLua_wxFontEnumerator_constructor(lua_State *L) -{ - // call constructor - wxFontEnumerator* returns = new wxFontEnumerator(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFontEnumerator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontEnumerator); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - { wxLua_wxFontEnumerator_GetEncodings1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_GetEncodings1 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - { wxLua_wxFontEnumerator_GetEncodings, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_GetEncodings }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) -}; -static int s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings_overload_count = sizeof(s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - { wxLua_wxFontEnumerator_GetFacenames1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontEnumerator_GetFacenames1 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL) - { wxLua_wxFontEnumerator_GetFacenames, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 2, s_wxluatypeArray_wxLua_wxFontEnumerator_GetFacenames }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames_overload_count = sizeof(s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL)) - -void wxLua_wxFontEnumerator_delete_function(void** p) -{ - wxFontEnumerator* o = (wxFontEnumerator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontEnumerator_methods[] = { - { "EnumerateEncodings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontEnumerator_EnumerateEncodings, 1, NULL }, - -#if (wxLUA_USE_wxFontEnumerator) && (wxUSE_INTL) - { "EnumerateFacenames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontEnumerator_EnumerateFacenames, 1, NULL }, -#endif // (wxLUA_USE_wxFontEnumerator) && (wxUSE_INTL) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) - { "GetEncodings", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings_overload, s_wxluafunc_wxLua_wxFontEnumerator_GetEncodings_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL)) - { "GetFacenames", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames_overload, s_wxluafunc_wxLua_wxFontEnumerator_GetFacenames_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontEnumerator)) && (wxLUA_USE_wxArrayString)) && (wxUSE_INTL)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFontEnumerator_delete, 1, NULL }, - { "wxFontEnumerator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontEnumerator_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFontEnumerator_methodCount = sizeof(wxFontEnumerator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFontEnumerator - - -#if wxLUA_USE_wxFontList -// --------------------------------------------------------------------------- -// Bind class wxFontList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontList' -int wxluatype_wxFontList = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont2[] = { &wxluatype_wxFontList, &wxluatype_wxFontInfo, NULL }; -static int LUACALL wxLua_wxFontList_FindOrCreateFont2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontList_FindOrCreateFont2[1] = {{ wxLua_wxFontList_FindOrCreateFont2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont2 }}; -// %wxchkver_3_1_1 wxFont *FindOrCreateFont(const wxFontInfo& fontInfo); -static int LUACALL wxLua_wxFontList_FindOrCreateFont2(lua_State *L) -{ - // const wxFontInfo fontInfo - const wxFontInfo * fontInfo = (const wxFontInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFontInfo); - // get this - wxFontList * self = (wxFontList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontList); - // call FindOrCreateFont - wxFont* returns = (wxFont*)self->FindOrCreateFont(*fontInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont1[] = { &wxluatype_wxFontList, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontList_FindOrCreateFont1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontList_FindOrCreateFont1[1] = {{ wxLua_wxFontList_FindOrCreateFont1, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont1 }}; -// %wxchkver_3_0 wxFont *FindOrCreateFont(int pointSize, wxFontFamily family, wxFontStyle style, wxFontWeight weight, bool underline = false, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFontList_FindOrCreateFont1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 8 ? (wxFontEncoding)wxlua_getenumtype(L, 8) : wxFONTENCODING_DEFAULT); - // const wxString face = wxEmptyString - const wxString face = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // bool underline = false - bool underline = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // wxFontWeight weight - wxFontWeight weight = (wxFontWeight)wxlua_getenumtype(L, 5); - // wxFontStyle style - wxFontStyle style = (wxFontStyle)wxlua_getenumtype(L, 4); - // wxFontFamily family - wxFontFamily family = (wxFontFamily)wxlua_getenumtype(L, 3); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxFontList * self = (wxFontList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontList); - // call FindOrCreateFont - wxFont* returns = (wxFont*)self->FindOrCreateFont(pointSize, family, style, weight, underline, face, encoding); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont[] = { &wxluatype_wxFontList, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontList_FindOrCreateFont(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontList_FindOrCreateFont[1] = {{ wxLua_wxFontList_FindOrCreateFont, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont }}; -// !%wxchkver_3_0 wxFont* FindOrCreateFont(int pointSize, int family, int style, int weight, bool underline = false, const wxString &faceName = "", wxFontEncoding encoding = wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxFontList_FindOrCreateFont(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 8 ? (wxFontEncoding)wxlua_getenumtype(L, 8) : wxFONTENCODING_DEFAULT); - // const wxString faceName = "" - const wxString faceName = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // bool underline = false - bool underline = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // int weight - int weight = (int)wxlua_getnumbertype(L, 5); - // int style - int style = (int)wxlua_getnumbertype(L, 4); - // int family - int family = (int)wxlua_getnumbertype(L, 3); - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxFontList * self = (wxFontList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontList); - // call FindOrCreateFont - wxFont* returns = (wxFont*)self->FindOrCreateFont(pointSize, family, style, weight, underline, faceName, encoding); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - - - -#if (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontList_FindOrCreateFont_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont) - { wxLua_wxFontList_FindOrCreateFont2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont2 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { wxLua_wxFontList_FindOrCreateFont1, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont1 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) - { wxLua_wxFontList_FindOrCreateFont, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxFontList_FindOrCreateFont }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL) -}; -static int s_wxluafunc_wxLua_wxFontList_FindOrCreateFont_overload_count = sizeof(s_wxluafunc_wxLua_wxFontList_FindOrCreateFont_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL)) - -void wxLua_wxFontList_delete_function(void** p) -{ - wxFontList* o = (wxFontList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontList_methods[] = { -#if (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL)) - { "FindOrCreateFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontList_FindOrCreateFont_overload, s_wxluafunc_wxLua_wxFontList_FindOrCreateFont_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL))||((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxFontList)) && (wxLUA_USE_wxFont)) && (wxUSE_INTL)) - - { 0, 0, 0, 0 }, -}; - -int wxFontList_methodCount = sizeof(wxFontList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFontList - - -#if wxLUA_USE_wxFontMapper -// --------------------------------------------------------------------------- -// Bind class wxFontMapper -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontMapper' -int wxluatype_wxFontMapper = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_CharsetToEncoding[] = { &wxluatype_wxFontMapper, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontMapper_CharsetToEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_CharsetToEncoding[1] = {{ wxLua_wxFontMapper_CharsetToEncoding, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFontMapper_CharsetToEncoding }}; -// wxFontEncoding CharsetToEncoding(const wxString &charset, bool interactive = true); -static int LUACALL wxLua_wxFontMapper_CharsetToEncoding(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool interactive = true - bool interactive = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString charset - const wxString charset = wxlua_getwxStringtype(L, 2); - // get this - wxFontMapper * self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call CharsetToEncoding - wxFontEncoding returns = (self->CharsetToEncoding(charset, interactive)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - -static int LUACALL wxLua_wxFontMapper_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_Get[1] = {{ wxLua_wxFontMapper_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxFontMapper *Get(); -static int LUACALL wxLua_wxFontMapper_Get(lua_State *L) -{ - // call Get - wxFontMapper* returns = (wxFontMapper*)wxFontMapper::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontMapper); - - return 1; -} - - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_GetAltForEncoding[] = { &wxluatype_wxFontMapper, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFontMapper_GetAltForEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetAltForEncoding[1] = {{ wxLua_wxFontMapper_GetAltForEncoding, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxFontMapper_GetAltForEncoding }}; -// %override wxLua_wxFontMapper_GetAltForEncoding -// bool GetAltForEncoding(wxFontEncoding encoding, wxFontEncoding *altEncoding, const wxString &faceName = wxEmptyString, bool interactive = true) -static int LUACALL wxLua_wxFontMapper_GetAltForEncoding(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool interactive = true - bool interactive = (argCount >= 5 ? wxlua_getbooleantype(L, 4) : true); - // const wxString &faceName = wxEmptyString - wxString faceName = (argCount >= 4 ? wxlua_getwxStringtype(L, 3) : wxString(wxT(""))); - // wxFontEncoding *altEncoding - wxFontEncoding altEncoding; - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 2); - // get this - wxFontMapper *self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call GetAltForEncoding - bool returns = self->GetAltForEncoding(encoding, &altEncoding, faceName, interactive); - // push the result number - lua_pushboolean(L, returns); - // push the result encoding - lua_pushinteger(L, altEncoding); - // return the number of parameters - return 2; -} - - -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - -static int LUACALL wxLua_wxFontMapper_GetDefaultConfigPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetDefaultConfigPath[1] = {{ wxLua_wxFontMapper_GetDefaultConfigPath, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetDefaultConfigPath(); -static int LUACALL wxLua_wxFontMapper_GetDefaultConfigPath(lua_State *L) -{ - // call GetDefaultConfigPath - wxString returns = (wxFontMapper::GetDefaultConfigPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_GetEncoding[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontMapper_GetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetEncoding[1] = {{ wxLua_wxFontMapper_GetEncoding, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFontMapper_GetEncoding }}; -// static wxFontEncoding GetEncoding(size_t n); -static int LUACALL wxLua_wxFontMapper_GetEncoding(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 1); - // call GetEncoding - wxFontEncoding returns = (wxFontMapper::GetEncoding(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_GetEncodingDescription[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontMapper_GetEncodingDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetEncodingDescription[1] = {{ wxLua_wxFontMapper_GetEncodingDescription, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFontMapper_GetEncodingDescription }}; -// static wxString GetEncodingDescription(wxFontEncoding encoding); -static int LUACALL wxLua_wxFontMapper_GetEncodingDescription(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 1); - // call GetEncodingDescription - wxString returns = (wxFontMapper::GetEncodingDescription(encoding)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_GetEncodingFromName[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontMapper_GetEncodingFromName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetEncodingFromName[1] = {{ wxLua_wxFontMapper_GetEncodingFromName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFontMapper_GetEncodingFromName }}; -// static wxFontEncoding GetEncodingFromName(const wxString& encoding); -static int LUACALL wxLua_wxFontMapper_GetEncodingFromName(lua_State *L) -{ - // const wxString encoding - const wxString encoding = wxlua_getwxStringtype(L, 1); - // call GetEncodingFromName - wxFontEncoding returns = (wxFontMapper::GetEncodingFromName(encoding)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_GetEncodingName[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontMapper_GetEncodingName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetEncodingName[1] = {{ wxLua_wxFontMapper_GetEncodingName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxFontMapper_GetEncodingName }}; -// static wxString GetEncodingName(wxFontEncoding encoding); -static int LUACALL wxLua_wxFontMapper_GetEncodingName(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 1); - // call GetEncodingName - wxString returns = (wxFontMapper::GetEncodingName(encoding)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - -static int LUACALL wxLua_wxFontMapper_GetSupportedEncodingsCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_GetSupportedEncodingsCount[1] = {{ wxLua_wxFontMapper_GetSupportedEncodingsCount, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static size_t GetSupportedEncodingsCount(); -static int LUACALL wxLua_wxFontMapper_GetSupportedEncodingsCount(lua_State *L) -{ - // call GetSupportedEncodingsCount - size_t returns = (wxFontMapper::GetSupportedEncodingsCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_IsEncodingAvailable[] = { &wxluatype_wxFontMapper, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontMapper_IsEncodingAvailable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_IsEncodingAvailable[1] = {{ wxLua_wxFontMapper_IsEncodingAvailable, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFontMapper_IsEncodingAvailable }}; -// bool IsEncodingAvailable(wxFontEncoding encoding, const wxString &facename = ""); -static int LUACALL wxLua_wxFontMapper_IsEncodingAvailable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString facename = "" - const wxString facename = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 2); - // get this - wxFontMapper * self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call IsEncodingAvailable - bool returns = (self->IsEncodingAvailable(encoding, facename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper) -static int LUACALL wxLua_wxFontMapper_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_Reset[1] = {{ wxLua_wxFontMapper_Reset, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_2_8 static void Reset(); -static int LUACALL wxLua_wxFontMapper_Reset(lua_State *L) -{ - // call Reset - wxFontMapper::Reset(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_SetConfig[] = { &wxluatype_wxFontMapper, &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxFontMapper_SetConfig(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_SetConfig[1] = {{ wxLua_wxFontMapper_SetConfig, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxFontMapper_SetConfig }}; -// !%wxchkver_2_8 void SetConfig(wxConfigBase *config = NULL); -static int LUACALL wxLua_wxFontMapper_SetConfig(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxConfigBase config = NULL - wxConfigBase * config = (argCount >= 2 ? (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase) : NULL); - // get this - wxFontMapper * self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call SetConfig - self->SetConfig(config); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_SetConfigPath[] = { &wxluatype_wxFontMapper, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontMapper_SetConfigPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_SetConfigPath[1] = {{ wxLua_wxFontMapper_SetConfigPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontMapper_SetConfigPath }}; -// void SetConfigPath(const wxString &prefix); -static int LUACALL wxLua_wxFontMapper_SetConfigPath(lua_State *L) -{ - // const wxString prefix - const wxString prefix = wxlua_getwxStringtype(L, 2); - // get this - wxFontMapper * self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call SetConfigPath - self->SetConfigPath(prefix); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_SetDialogParent[] = { &wxluatype_wxFontMapper, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxFontMapper_SetDialogParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_SetDialogParent[1] = {{ wxLua_wxFontMapper_SetDialogParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontMapper_SetDialogParent }}; -// void SetDialogParent(wxWindow *parent); -static int LUACALL wxLua_wxFontMapper_SetDialogParent(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxFontMapper * self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call SetDialogParent - self->SetDialogParent(parent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontMapper_SetDialogTitle[] = { &wxluatype_wxFontMapper, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontMapper_SetDialogTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontMapper_SetDialogTitle[1] = {{ wxLua_wxFontMapper_SetDialogTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontMapper_SetDialogTitle }}; -// void SetDialogTitle(const wxString &title); -static int LUACALL wxLua_wxFontMapper_SetDialogTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxFontMapper * self = (wxFontMapper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontMapper); - // call SetDialogTitle - self->SetDialogTitle(title); - - return 0; -} - - - - -void wxLua_wxFontMapper_delete_function(void** p) -{ - wxFontMapper* o = (wxFontMapper*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontMapper_methods[] = { -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - { "CharsetToEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_CharsetToEncoding, 1, NULL }, -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_Get, 1, NULL }, - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - { "GetAltForEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_GetAltForEncoding, 1, NULL }, -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - - { "GetDefaultConfigPath", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_GetDefaultConfigPath, 1, NULL }, - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - { "GetEncoding", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_GetEncoding, 1, NULL }, - { "GetEncodingDescription", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_GetEncodingDescription, 1, NULL }, - { "GetEncodingFromName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_GetEncodingFromName, 1, NULL }, - { "GetEncodingName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_GetEncodingName, 1, NULL }, -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - - { "GetSupportedEncodingsCount", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_GetSupportedEncodingsCount, 1, NULL }, - -#if (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - { "IsEncodingAvailable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_IsEncodingAvailable, 1, NULL }, -#endif // (wxLUA_USE_wxFontMapper) && (wxUSE_INTL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper) - { "Reset", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFontMapper_Reset, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "SetConfig", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_SetConfig, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFontMapper)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { "SetConfigPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_SetConfigPath, 1, NULL }, - { "SetDialogParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_SetDialogParent, 1, NULL }, - { "SetDialogTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontMapper_SetDialogTitle, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFontMapper_methodCount = sizeof(wxFontMapper_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFontMapper - - -#if wxLUA_USE_wxColourPenBrush -// --------------------------------------------------------------------------- -// Bind class wxColour -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColour' -int wxluatype_wxColour = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Alpha[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_Alpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Alpha[1] = {{ wxLua_wxColour_Alpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_Alpha }}; -// %wxchkver_2_8 unsigned char Alpha() const; -static int LUACALL wxLua_wxColour_Alpha(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Alpha - unsigned char returns = (self->Alpha()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_AlphaBlend[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxColour_AlphaBlend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_AlphaBlend[1] = {{ wxLua_wxColour_AlphaBlend, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxColour_AlphaBlend }}; -// %wxchkver_3_0_0 static unsigned char AlphaBlend(unsigned char fg, unsigned char bg, double alpha); -static int LUACALL wxLua_wxColour_AlphaBlend(lua_State *L) -{ - // double alpha - double alpha = (double)wxlua_getnumbertype(L, 3); - // unsigned char bg - unsigned char bg = (unsigned char)wxlua_getuintegertype(L, 2); - // unsigned char fg - unsigned char fg = (unsigned char)wxlua_getuintegertype(L, 1); - // call AlphaBlend - unsigned char returns = (wxColour::AlphaBlend(fg, bg, alpha)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Blue[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_Blue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Blue[1] = {{ wxLua_wxColour_Blue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_Blue }}; -// unsigned char Blue() const; -static int LUACALL wxLua_wxColour_Blue(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Blue - unsigned char returns = (self->Blue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_ChangeLightness[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxColour_ChangeLightness(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_ChangeLightness[1] = {{ wxLua_wxColour_ChangeLightness, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_ChangeLightness }}; -// %wxchkver_3_0_0 wxColour ChangeLightness(int ialpha) const; -static int LUACALL wxLua_wxColour_ChangeLightness(lua_State *L) -{ - // int ialpha - int ialpha = (int)wxlua_getnumbertype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call ChangeLightness - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->ChangeLightness(ialpha)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_GetAsString[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxColour_GetAsString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_GetAsString[1] = {{ wxLua_wxColour_GetAsString, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxColour_GetAsString }}; -// %wxchkver_2_8 virtual wxString GetAsString(long flags = wxC2S_NAME | wxC2S_CSS_SYNTAX) const; -static int LUACALL wxLua_wxColour_GetAsString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = wxC2S_NAME | wxC2S_CSS_SYNTAX - long flags = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : wxC2S_NAME | wxC2S_CSS_SYNTAX); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call GetAsString - wxString returns = (self->GetAsString(flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_GetLuminance[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_GetLuminance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_GetLuminance[1] = {{ wxLua_wxColour_GetLuminance, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_GetLuminance }}; -// %wxchkver_3_1_3 double GetLuminance() const; -static int LUACALL wxLua_wxColour_GetLuminance(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call GetLuminance - double returns = (self->GetLuminance()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_GetRGB[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_GetRGB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_GetRGB[1] = {{ wxLua_wxColour_GetRGB, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_GetRGB }}; -// %wxchkver_3_0_0 wxUint32 GetRGB() const; -static int LUACALL wxLua_wxColour_GetRGB(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call GetRGB - wxUint32 returns = (self->GetRGB()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_GetRGBA[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_GetRGBA(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_GetRGBA[1] = {{ wxLua_wxColour_GetRGBA, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_GetRGBA }}; -// %wxchkver_3_0_0 wxUint32 GetRGBA() const; -static int LUACALL wxLua_wxColour_GetRGBA(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call GetRGBA - wxUint32 returns = (self->GetRGBA()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Green[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_Green(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Green[1] = {{ wxLua_wxColour_Green, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_Green }}; -// unsigned char Green() const; -static int LUACALL wxLua_wxColour_Green(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Green - unsigned char returns = (self->Green()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_IsOk[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_IsOk[1] = {{ wxLua_wxColour_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxColour_IsOk(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_IsSolid[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_IsSolid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_IsSolid[1] = {{ wxLua_wxColour_IsSolid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_IsSolid }}; -// %wxchkver_3_1_2 bool IsSolid() const; -static int LUACALL wxLua_wxColour_IsSolid(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call IsSolid - bool returns = (self->IsSolid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_MakeDisabled[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_MakeDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_MakeDisabled[1] = {{ wxLua_wxColour_MakeDisabled, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxColour_MakeDisabled }}; -// %wxchkver_3_0_0 wxColour& MakeDisabled(unsigned char brightness = 255); -static int LUACALL wxLua_wxColour_MakeDisabled(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char brightness = 255 - unsigned char brightness = (argCount >= 2 ? (unsigned char)wxlua_getuintegertype(L, 2) : 255); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call MakeDisabled - wxColour* returns = (wxColour*)&self->MakeDisabled(brightness); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Ok[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Ok[1] = {{ wxLua_wxColour_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_Ok }}; -// bool Ok(); // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxColour_Ok(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Red[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_Red(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Red[1] = {{ wxLua_wxColour_Red, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColour_Red }}; -// unsigned char Red() const; -static int LUACALL wxLua_wxColour_Red(lua_State *L) -{ - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Red - unsigned char returns = (self->Red()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Set3[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_Set3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Set3[1] = {{ wxLua_wxColour_Set3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxColour_Set3 }}; -// !%wxchkver_2_8 void Set(unsigned char red, unsigned char green, unsigned char blue); -static int LUACALL wxLua_wxColour_Set3(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Set - self->Set(red, green, blue); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Set2[] = { &wxluatype_wxColour, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxColour_Set2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Set2[1] = {{ wxLua_wxColour_Set2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_Set2 }}; -// %wxchkver_2_8 bool Set(const wxString &str); -static int LUACALL wxLua_wxColour_Set2(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Set - bool returns = (self->Set(str)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Set1[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_Set1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Set1[1] = {{ wxLua_wxColour_Set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_Set1 }}; -// %wxchkver_2_8 void Set(unsigned long colRGB); -static int LUACALL wxLua_wxColour_Set1(lua_State *L) -{ - // unsigned long colRGB - unsigned long colRGB = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Set - self->Set(colRGB); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_Set[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_Set(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Set[1] = {{ wxLua_wxColour_Set, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxColour_Set }}; -// %wxchkver_2_8 void Set(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha = wxALPHA_OPAQUE); -static int LUACALL wxLua_wxColour_Set(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char alpha = wxALPHA_OPAQUE - unsigned char alpha = (argCount >= 5 ? (unsigned char)wxlua_getuintegertype(L, 5) : wxALPHA_OPAQUE); - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call Set - self->Set(red, green, blue, alpha); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_SetRGB[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_SetRGB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_SetRGB[1] = {{ wxLua_wxColour_SetRGB, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_SetRGB }}; -// %wxchkver_3_0_0 void SetRGB(wxUint32 colRGB); -static int LUACALL wxLua_wxColour_SetRGB(lua_State *L) -{ - // wxUint32 colRGB - wxUint32 colRGB = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call SetRGB - self->SetRGB(colRGB); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_SetRGBA[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_SetRGBA(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_SetRGBA[1] = {{ wxLua_wxColour_SetRGBA, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_SetRGBA }}; -// %wxchkver_3_0_0 void SetRGBA(wxUint32 colRGBA); -static int LUACALL wxLua_wxColour_SetRGBA(lua_State *L) -{ - // wxUint32 colRGBA - wxUint32 colRGBA = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call SetRGBA - self->SetRGBA(colRGBA); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_delete[] = { &wxluatype_wxColour, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxColour_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_op_eq[] = { &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_op_eq[1] = {{ wxLua_wxColour_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_op_eq }}; -// bool operator ==(const wxColour& colour) const; -static int LUACALL wxLua_wxColour_op_eq(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call op_eq - bool returns = ((*self)==(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_op_ne[] = { &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_op_ne[1] = {{ wxLua_wxColour_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_op_ne }}; -// bool operator !=(const wxColour& colour) const; -static int LUACALL wxLua_wxColour_op_ne(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call op_ne - bool returns = ((*self)!=(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_op_set[] = { &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_op_set[1] = {{ wxLua_wxColour_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_op_set }}; -// wxColour& operator=(const wxColour& c) const; -static int LUACALL wxLua_wxColour_op_set(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColour * self = (wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call op_set - (*self)=(*c); - wxColour* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_constructor5[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor5[1] = {{ wxLua_wxColour_constructor5, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxColour_constructor5 }}; -// !%wxchkver_2_8 wxColour(unsigned char red, unsigned char green, unsigned char blue); -static int LUACALL wxLua_wxColour_constructor5(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 2); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 1); - // call constructor - wxColour* returns = new wxColour(red, green, blue); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_constructor4[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColour_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor4[1] = {{ wxLua_wxColour_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColour_constructor4 }}; -// wxColour(const wxColour& colour); -static int LUACALL wxLua_wxColour_constructor4(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxColour* returns = new wxColour(*colour); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_constructor3[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor3[1] = {{ wxLua_wxColour_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColour_constructor3 }}; -// %wxchkver_3_0_0 wxColour(unsigned long colRGB); -static int LUACALL wxLua_wxColour_constructor3(lua_State *L) -{ - // unsigned long colRGB - unsigned long colRGB = (unsigned long)wxlua_getuintegertype(L, 1); - // call constructor - wxColour* returns = new wxColour(colRGB); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_constructor2[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxColour_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor2[1] = {{ wxLua_wxColour_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColour_constructor2 }}; -// wxColour(const wxString& colourName); -static int LUACALL wxLua_wxColour_constructor2(lua_State *L) -{ - // const wxString colourName - const wxString colourName = wxlua_getwxStringtype(L, 1); - // call constructor - wxColour* returns = new wxColour(colourName); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColour_constructor1[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColour_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor1[1] = {{ wxLua_wxColour_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxColour_constructor1 }}; -// %wxchkver_2_8 wxColour(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha = wxALPHA_OPAQUE); -static int LUACALL wxLua_wxColour_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char alpha = wxALPHA_OPAQUE - unsigned char alpha = (argCount >= 4 ? (unsigned char)wxlua_getuintegertype(L, 4) : wxALPHA_OPAQUE); - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 2); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 1); - // call constructor - wxColour* returns = new wxColour(red, green, blue, alpha); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static int LUACALL wxLua_wxColour_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor[1] = {{ wxLua_wxColour_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxColour(); -static int LUACALL wxLua_wxColour_constructor(lua_State *L) -{ - // call constructor - wxColour* returns = new wxColour(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_Set_overload[] = -{ - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_Set3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxColour_Set3 }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_Set2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_Set2 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_Set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColour_Set1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_Set, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxColour_Set }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxColour_Set_overload_count = sizeof(s_wxluafunc_wxLua_wxColour_Set_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColour_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_constructor5, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxColour_constructor5 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColour_constructor4 }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColour_constructor3 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColour_constructor2 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxColour_constructor1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColour_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxColour_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxColour_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - -void wxLua_wxColour_delete_function(void** p) -{ - wxColour* o = (wxColour*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColour_methods[] = { -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "Alpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_Alpha, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "AlphaBlend", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxColour_AlphaBlend, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - - { "Blue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_Blue, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "ChangeLightness", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_ChangeLightness, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "GetAsString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_GetAsString, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxColourPenBrush) - { "GetLuminance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_GetLuminance, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "GetRGB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_GetRGB, 1, NULL }, - { "GetRGBA", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_GetRGBA, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - - { "Green", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_Green, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxColourPenBrush) - { "IsSolid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_IsSolid, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "MakeDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_MakeDisabled, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_Ok, 1, NULL }, - { "Red", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_Red, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_Set_overload, s_wxluafunc_wxLua_wxColour_Set_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "SetRGB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_SetRGB, 1, NULL }, - { "SetRGBA", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_SetRGBA, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxColour_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_op_ne, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColour_op_set, 1, NULL }, - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - { "wxColour", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColour_constructor_overload, s_wxluafunc_wxLua_wxColour_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - - { 0, 0, 0, 0 }, -}; - -int wxColour_methodCount = sizeof(wxColour_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxColourPenBrush - - -#if wxLUA_USE_wxColourPenBrush -// --------------------------------------------------------------------------- -// Bind class wxColourDatabase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourDatabase' -int wxluatype_wxColourDatabase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourDatabase_AddColour[] = { &wxluatype_wxColourDatabase, &wxluatype_TSTRING, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourDatabase_AddColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDatabase_AddColour[1] = {{ wxLua_wxColourDatabase_AddColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxColourDatabase_AddColour }}; -// void AddColour(const wxString& name, const wxColour& colour); -static int LUACALL wxLua_wxColourDatabase_AddColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxColourDatabase * self = (wxColourDatabase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourDatabase); - // call AddColour - self->AddColour(name, *colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourDatabase_Find[] = { &wxluatype_wxColourDatabase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxColourDatabase_Find(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDatabase_Find[1] = {{ wxLua_wxColourDatabase_Find, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourDatabase_Find }}; -// wxColour Find(const wxString& name) const; -static int LUACALL wxLua_wxColourDatabase_Find(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxColourDatabase * self = (wxColourDatabase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourDatabase); - // call Find - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->Find(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourDatabase_FindName[] = { &wxluatype_wxColourDatabase, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourDatabase_FindName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDatabase_FindName[1] = {{ wxLua_wxColourDatabase_FindName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourDatabase_FindName }}; -// wxString FindName(const wxColour& colour) const; -static int LUACALL wxLua_wxColourDatabase_FindName(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColourDatabase * self = (wxColourDatabase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourDatabase); - // call FindName - wxString returns = (self->FindName(*colour)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourDatabase_delete[] = { &wxluatype_wxColourDatabase, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDatabase_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxColourDatabase_delete }}; - -static int LUACALL wxLua_wxColourDatabase_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourDatabase_constructor[1] = {{ wxLua_wxColourDatabase_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxColourDatabase(); -static int LUACALL wxLua_wxColourDatabase_constructor(lua_State *L) -{ - // call constructor - wxColourDatabase* returns = new wxColourDatabase(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourDatabase); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourDatabase); - - return 1; -} - - - - -void wxLua_wxColourDatabase_delete_function(void** p) -{ - wxColourDatabase* o = (wxColourDatabase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourDatabase_methods[] = { - { "AddColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourDatabase_AddColour, 1, NULL }, - { "Find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourDatabase_Find, 1, NULL }, - { "FindName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourDatabase_FindName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxColourDatabase_delete, 1, NULL }, - { "wxColourDatabase", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourDatabase_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxColourDatabase_methodCount = sizeof(wxColourDatabase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxColourPenBrush - - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) -// --------------------------------------------------------------------------- -// Bind class wxPenInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPenInfo' -int wxluatype_wxPenInfo = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_Cap[] = { &wxluatype_wxPenInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPenInfo_Cap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_Cap[1] = {{ wxLua_wxPenInfo_Cap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPenInfo_Cap }}; -// wxPenInfo& Cap(wxPenCap cap); -static int LUACALL wxLua_wxPenInfo_Cap(lua_State *L) -{ - // wxPenCap cap - wxPenCap cap = (wxPenCap)wxlua_getenumtype(L, 2); - // get this - wxPenInfo * self = (wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call Cap - wxPenInfo* returns = (wxPenInfo*)&self->Cap(cap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_Colour[] = { &wxluatype_wxPenInfo, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPenInfo_Colour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_Colour[1] = {{ wxLua_wxPenInfo_Colour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPenInfo_Colour }}; -// wxPenInfo& Colour(const wxColour& col); -static int LUACALL wxLua_wxPenInfo_Colour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPenInfo * self = (wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call Colour - wxPenInfo* returns = (wxPenInfo*)&self->Colour(*col); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_Join[] = { &wxluatype_wxPenInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPenInfo_Join(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_Join[1] = {{ wxLua_wxPenInfo_Join, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPenInfo_Join }}; -// wxPenInfo& Join(wxPenJoin join); -static int LUACALL wxLua_wxPenInfo_Join(lua_State *L) -{ - // wxPenJoin join - wxPenJoin join = (wxPenJoin)wxlua_getenumtype(L, 2); - // get this - wxPenInfo * self = (wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call Join - wxPenInfo* returns = (wxPenInfo*)&self->Join(join); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_Stipple[] = { &wxluatype_wxPenInfo, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPenInfo_Stipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_Stipple[1] = {{ wxLua_wxPenInfo_Stipple, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPenInfo_Stipple }}; -// wxPenInfo& Stipple(const wxBitmap& stipple); -static int LUACALL wxLua_wxPenInfo_Stipple(lua_State *L) -{ - // const wxBitmap stipple - const wxBitmap * stipple = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxPenInfo * self = (wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call Stipple - wxPenInfo* returns = (wxPenInfo*)&self->Stipple(*stipple); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_Style[] = { &wxluatype_wxPenInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPenInfo_Style(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_Style[1] = {{ wxLua_wxPenInfo_Style, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPenInfo_Style }}; -// wxPenInfo& Style(wxPenStyle style); -static int LUACALL wxLua_wxPenInfo_Style(lua_State *L) -{ - // wxPenStyle style - wxPenStyle style = (wxPenStyle)wxlua_getenumtype(L, 2); - // get this - wxPenInfo * self = (wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call Style - wxPenInfo* returns = (wxPenInfo*)&self->Style(style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_Width[] = { &wxluatype_wxPenInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPenInfo_Width(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_Width[1] = {{ wxLua_wxPenInfo_Width, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPenInfo_Width }}; -// wxPenInfo& Width(int width); -static int LUACALL wxLua_wxPenInfo_Width(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxPenInfo * self = (wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call Width - wxPenInfo* returns = (wxPenInfo*)&self->Width(width); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenInfo_constructor[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPenInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenInfo_constructor[1] = {{ wxLua_wxPenInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxPenInfo_constructor }}; -// wxPenInfo(const wxColour& colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID); -static int LUACALL wxLua_wxPenInfo_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPenStyle style = wxPENSTYLE_SOLID - wxPenStyle style = (argCount >= 3 ? (wxPenStyle)wxlua_getenumtype(L, 3) : wxPENSTYLE_SOLID); - // int width = 1 - int width = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxPenInfo* returns = new wxPenInfo(*colour, width, style); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - - -void wxLua_wxPenInfo_delete_function(void** p) -{ - wxPenInfo* o = (wxPenInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPenInfo_methods[] = { -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "Cap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenInfo_Cap, 1, NULL }, - { "Colour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenInfo_Colour, 1, NULL }, - { "Join", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenInfo_Join, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - { "Stipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenInfo_Stipple, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "Style", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenInfo_Style, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - { "Width", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenInfo_Width, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "wxPenInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPenInfo_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - { 0, 0, 0, 0 }, -}; - -int wxPenInfo_methodCount = sizeof(wxPenInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - - -#if wxLUA_USE_wxColourPenBrush -// --------------------------------------------------------------------------- -// Bind class wxPen -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPen' -int wxluatype_wxPen = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetCap[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetCap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetCap[1] = {{ wxLua_wxPen_GetCap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetCap }}; -// wxPenCap GetCap() const; -static int LUACALL wxLua_wxPen_GetCap(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call GetCap - wxPenCap returns = (self->GetCap()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetColour[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetColour[1] = {{ wxLua_wxPen_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetColour }}; -// wxColour GetColour() const; // not wxColur& so we allocate a new one -static int LUACALL wxLua_wxPen_GetColour(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetDashes[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetDashes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetDashes[1] = {{ wxLua_wxPen_GetDashes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetDashes }}; -// %override wxLua_wxPen_GetDashes -// void GetDashes() -static int LUACALL wxLua_wxPen_GetDashes(lua_State *L) -{ - // get this - wxPen *self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // get dashes - wxDash *dashes; - int nb_dashes = self->GetDashes(&dashes); - if (nb_dashes == 0) - return 0; // No dashes are defined - // create a table (which will be the return value) - lua_newtable(L); - for (int idx = 0; idx < nb_dashes; ++idx) { - lua_pushinteger(L, dashes[idx]); - lua_rawseti(L, -2, idx + 1); - } - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetJoin[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetJoin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetJoin[1] = {{ wxLua_wxPen_GetJoin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetJoin }}; -// wxPenJoin GetJoin() const; -static int LUACALL wxLua_wxPen_GetJoin(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call GetJoin - wxPenJoin returns = (self->GetJoin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetStipple[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetStipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetStipple[1] = {{ wxLua_wxPen_GetStipple, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetStipple }}; -// %win wxBitmap* GetStipple() const; -static int LUACALL wxLua_wxPen_GetStipple(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call GetStipple - wxBitmap* returns = (wxBitmap*)self->GetStipple(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetStyle[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetStyle[1] = {{ wxLua_wxPen_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetStyle }}; -// wxPenStyle GetStyle() const; -static int LUACALL wxLua_wxPen_GetStyle(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call GetStyle - wxPenStyle returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_GetWidth[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_GetWidth[1] = {{ wxLua_wxPen_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxPen_GetWidth(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_IsNonTransparent[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_IsNonTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_IsNonTransparent[1] = {{ wxLua_wxPen_IsNonTransparent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_IsNonTransparent }}; -// %wxchkver_3_0_0 bool IsNonTransparent() const; -static int LUACALL wxLua_wxPen_IsNonTransparent(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call IsNonTransparent - bool returns = (self->IsNonTransparent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_IsOk[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_IsOk[1] = {{ wxLua_wxPen_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxPen_IsOk(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_IsTransparent[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_IsTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_IsTransparent[1] = {{ wxLua_wxPen_IsTransparent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_IsTransparent }}; -// %wxchkver_3_0_0 bool IsTransparent() const; -static int LUACALL wxLua_wxPen_IsTransparent(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call IsTransparent - bool returns = (self->IsTransparent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_Ok[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_Ok[1] = {{ wxLua_wxPen_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_Ok }}; -// bool Ok() const; // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxPen_Ok(lua_State *L) -{ - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetCap[] = { &wxluatype_wxPen, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPen_SetCap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetCap[1] = {{ wxLua_wxPen_SetCap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetCap }}; -// void SetCap(wxPenCap capStyle); -static int LUACALL wxLua_wxPen_SetCap(lua_State *L) -{ - // wxPenCap capStyle - wxPenCap capStyle = (wxPenCap)wxlua_getenumtype(L, 2); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetCap - self->SetCap(capStyle); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetColour2[] = { &wxluatype_wxPen, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPen_SetColour2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetColour2[1] = {{ wxLua_wxPen_SetColour2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetColour2 }}; -// !%wxchkver_3_0_0 void SetColour(const wxString& colourName); -static int LUACALL wxLua_wxPen_SetColour2(lua_State *L) -{ - // const wxString colourName - const wxString colourName = wxlua_getwxStringtype(L, 2); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetColour - self->SetColour(colourName); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetColour1[] = { &wxluatype_wxPen, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPen_SetColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetColour1[1] = {{ wxLua_wxPen_SetColour1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPen_SetColour1 }}; -// void SetColour(unsigned char red, unsigned char green, unsigned char blue); -static int LUACALL wxLua_wxPen_SetColour1(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetColour - self->SetColour(red, green, blue); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetColour[] = { &wxluatype_wxPen, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPen_SetColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetColour[1] = {{ wxLua_wxPen_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetColour }}; -// void SetColour(wxColour& colour); -static int LUACALL wxLua_wxPen_SetColour(lua_State *L) -{ - // wxColour colour - wxColour * colour = (wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetDashes[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_SetDashes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetDashes[1] = {{ wxLua_wxPen_SetDashes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPen_SetDashes }}; -// %override wxLua_wxPen_SetDashes -// void SetDashes() -static int LUACALL wxLua_wxPen_SetDashes(lua_State *L) -{ - // get this - wxPen *self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // check if we have a table argument - if (!wxlua_iswxluatype(lua_type(L, 2), WXLUA_TTABLE)) - wxlua_argerror(L, 2, wxT("a 'table'")); - int count = lua_objlen(L, 2); - // allocate an array of wxDashes - // TODO: this memory will leak when wxPen is destroyed. The wxWidgets document states - // that we should not free 'dashes' until we destroy the wxPen. - wxDash *dashes = new wxDash[count]; - for (int idx = 1; idx <= count; idx++) { - lua_rawgeti(L, 2, idx); - dashes[idx - 1] = (wxDash)lua_tonumber(L, -1); - lua_pop(L, 1); - } - self->SetDashes(count, dashes); - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetJoin[] = { &wxluatype_wxPen, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPen_SetJoin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetJoin[1] = {{ wxLua_wxPen_SetJoin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetJoin }}; -// void SetJoin(wxPenJoin join_style); -static int LUACALL wxLua_wxPen_SetJoin(lua_State *L) -{ - // wxPenJoin join_style - wxPenJoin join_style = (wxPenJoin)wxlua_getenumtype(L, 2); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetJoin - self->SetJoin(join_style); - - return 0; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetStipple[] = { &wxluatype_wxPen, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPen_SetStipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetStipple[1] = {{ wxLua_wxPen_SetStipple, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetStipple }}; -// %win void SetStipple(const wxBitmap& stipple); -static int LUACALL wxLua_wxPen_SetStipple(lua_State *L) -{ - // const wxBitmap stipple - const wxBitmap * stipple = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetStipple - self->SetStipple(*stipple); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetStyle[] = { &wxluatype_wxPen, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPen_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetStyle[1] = {{ wxLua_wxPen_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetStyle }}; -// void SetStyle(wxPenStyle style); -static int LUACALL wxLua_wxPen_SetStyle(lua_State *L) -{ - // wxPenStyle style - wxPenStyle style = (wxPenStyle)wxlua_getenumtype(L, 2); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_SetWidth[] = { &wxluatype_wxPen, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPen_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetWidth[1] = {{ wxLua_wxPen_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxPen_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_delete[] = { &wxluatype_wxPen, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPen_delete }}; - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_op_eq[] = { &wxluatype_wxPen, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_op_eq[1] = {{ wxLua_wxPen_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_op_eq }}; -// %wxchkver_3_0_0 bool operator==(const wxPen& pen) const; -static int LUACALL wxLua_wxPen_op_eq(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call op_eq - bool returns = ((*self)==(*pen)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_op_ne[] = { &wxluatype_wxPen, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_op_ne[1] = {{ wxLua_wxPen_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_op_ne }}; -// %wxchkver_3_0_0 bool operator!=(const wxPen& pen) const; -static int LUACALL wxLua_wxPen_op_ne(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call op_ne - bool returns = ((*self)!=(*pen)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_op_set[] = { &wxluatype_wxPen, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_op_set[1] = {{ wxLua_wxPen_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_op_set }}; -// wxPen& operator=(const wxPen& p) const; -static int LUACALL wxLua_wxPen_op_set(lua_State *L) -{ - // const wxPen p - const wxPen * p = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxPen * self = (wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call op_set - (*self)=(*p); - wxPen* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_constructor5[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPen_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor5[1] = {{ wxLua_wxPen_constructor5, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxPen_constructor5 }}; -// !%wxchkver_3_0_0 wxPen(const wxString& colourName, int width, wxPenStyle style); -static int LUACALL wxLua_wxPen_constructor5(lua_State *L) -{ - // wxPenStyle style - wxPenStyle style = (wxPenStyle)wxlua_getenumtype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // const wxString colourName - const wxString colourName = wxlua_getwxStringtype(L, 1); - // call constructor - wxPen* returns = new wxPen(colourName, width, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_constructor4[] = { &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxPen_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor4[1] = {{ wxLua_wxPen_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPen_constructor4 }}; -// wxPen(const wxPen& pen); -static int LUACALL wxLua_wxPen_constructor4(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPen); - // call constructor - wxPen* returns = new wxPen(*pen); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - - -#if (((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_constructor3[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPen_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor3[1] = {{ wxLua_wxPen_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxPen_constructor3 }}; -// %win wxPen(const wxBitmap& stipple, int width); -static int LUACALL wxLua_wxPen_constructor3(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // const wxBitmap stipple - const wxBitmap * stipple = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxPen* returns = new wxPen(*stipple, width); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -#endif // (((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_constructor2[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPen_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor2[1] = {{ wxLua_wxPen_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxPen_constructor2 }}; -// wxPen(const wxColour& colour, int width, wxPenStyle style); -static int LUACALL wxLua_wxPen_constructor2(lua_State *L) -{ - // wxPenStyle style - wxPenStyle style = (wxPenStyle)wxlua_getenumtype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxPen* returns = new wxPen(*colour, width, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPen_constructor1[] = { &wxluatype_wxPenInfo, NULL }; -static int LUACALL wxLua_wxPen_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor1[1] = {{ wxLua_wxPen_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPen_constructor1 }}; -// %wxchkver_3_1_1 wxPen(const wxPenInfo& info); -static int LUACALL wxLua_wxPen_constructor1(lua_State *L) -{ - // const wxPenInfo info - const wxPenInfo * info = (const wxPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenInfo); - // call constructor - wxPen* returns = new wxPen(*info); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static int LUACALL wxLua_wxPen_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor[1] = {{ wxLua_wxPen_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPen(); -static int LUACALL wxLua_wxPen_constructor(lua_State *L) -{ - // call constructor - wxPen* returns = new wxPen(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - - - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_SetColour_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_SetColour2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetColour2 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_SetColour1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPen_SetColour1 }, - { wxLua_wxPen_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPen_SetColour }, -}; -static int s_wxluafunc_wxLua_wxPen_SetColour_overload_count = sizeof(s_wxluafunc_wxLua_wxPen_SetColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPen_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_constructor5, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxPen_constructor5 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPen_constructor4 }, - -#if (((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxPen_constructor3 }, -#endif // (((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxPen_constructor2 }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPen_constructor1 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPen_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPen_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPen_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - -void wxLua_wxPen_delete_function(void** p) -{ - wxPen* o = (wxPen*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPen_methods[] = { - { "GetCap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetCap, 1, NULL }, - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetColour, 1, NULL }, - { "GetDashes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetDashes, 1, NULL }, - { "GetJoin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetJoin, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - { "GetStipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetStipple, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetStyle, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_GetWidth, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "IsNonTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_IsNonTransparent, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_IsOk, 1, NULL }, - { "IsTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_IsTransparent, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_Ok, 1, NULL }, - { "SetCap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetCap, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetColour_overload, s_wxluafunc_wxLua_wxPen_SetColour_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush) - - { "SetDashes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetDashes, 1, NULL }, - { "SetJoin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetJoin, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - { "SetStipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetStipple, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap) - - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetStyle, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPen_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_op_ne, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPen_op_set, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - { "wxPen", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPen_constructor_overload, s_wxluafunc_wxLua_wxPen_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((((defined(__WXMSW__)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - - { 0, 0, 0, 0 }, -}; - -int wxPen_methodCount = sizeof(wxPen_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxColourPenBrush - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) -// --------------------------------------------------------------------------- -// Bind class wxPenList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPenList' -int wxluatype_wxPenList = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenList_FindOrCreatePen1[] = { &wxluatype_wxPenList, &wxluatype_wxColour, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPenList_FindOrCreatePen1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenList_FindOrCreatePen1[1] = {{ wxLua_wxPenList_FindOrCreatePen1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPenList_FindOrCreatePen1 }}; -// %wxchkver_3_0 wxPen *FindOrCreatePen(const wxColour& colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID); -static int LUACALL wxLua_wxPenList_FindOrCreatePen1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPenStyle style = wxPENSTYLE_SOLID - wxPenStyle style = (argCount >= 4 ? (wxPenStyle)wxlua_getenumtype(L, 4) : wxPENSTYLE_SOLID); - // int width = 1 - int width = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPenList * self = (wxPenList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenList); - // call FindOrCreatePen - wxPen* returns = (wxPen*)self->FindOrCreatePen(*colour, width, style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -#endif // (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPenList_FindOrCreatePen[] = { &wxluatype_wxPenList, &wxluatype_wxColour, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPenList_FindOrCreatePen(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenList_FindOrCreatePen[1] = {{ wxLua_wxPenList_FindOrCreatePen, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPenList_FindOrCreatePen }}; -// !%wxchkver_3_0 wxPen* FindOrCreatePen(const wxColour& colour, int width, int style); -static int LUACALL wxLua_wxPenList_FindOrCreatePen(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 4); - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPenList * self = (wxPenList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPenList); - // call FindOrCreatePen - wxPen* returns = (wxPen*)self->FindOrCreatePen(*colour, width, style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush) - - - -#if ((((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPenList_FindOrCreatePen_overload[] = -{ - -#if (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPenList_FindOrCreatePen1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPenList_FindOrCreatePen1 }, -#endif // (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxPenList_FindOrCreatePen, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPenList_FindOrCreatePen }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxPenList_FindOrCreatePen_overload_count = sizeof(s_wxluafunc_wxLua_wxPenList_FindOrCreatePen_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush)) - -void wxLua_wxPenList_delete_function(void** p) -{ - wxPenList* o = (wxPenList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPenList_methods[] = { -#if ((((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush)) - { "FindOrCreatePen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPenList_FindOrCreatePen_overload, s_wxluafunc_wxLua_wxPenList_FindOrCreatePen_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList))) && (wxLUA_USE_wxColourPenBrush)) - - { 0, 0, 0, 0 }, -}; - -int wxPenList_methodCount = sizeof(wxPenList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPenList) - - -#if wxLUA_USE_wxColourPenBrush -// --------------------------------------------------------------------------- -// Bind class wxBrush -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBrush' -int wxluatype_wxBrush = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_GetColour[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_GetColour[1] = {{ wxLua_wxBrush_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_GetColour }}; -// wxColour GetColour() const; -static int LUACALL wxLua_wxBrush_GetColour(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_GetStipple[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_GetStipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_GetStipple[1] = {{ wxLua_wxBrush_GetStipple, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_GetStipple }}; -// wxBitmap* GetStipple() const; -static int LUACALL wxLua_wxBrush_GetStipple(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call GetStipple - wxBitmap* returns = (wxBitmap*)self->GetStipple(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_GetStyle[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_GetStyle[1] = {{ wxLua_wxBrush_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_GetStyle }}; -// int GetStyle() const; -static int LUACALL wxLua_wxBrush_GetStyle(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call GetStyle - int returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_IsHatch[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_IsHatch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_IsHatch[1] = {{ wxLua_wxBrush_IsHatch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_IsHatch }}; -// bool IsHatch() const; -static int LUACALL wxLua_wxBrush_IsHatch(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call IsHatch - bool returns = (self->IsHatch()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_IsNonTransparent[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_IsNonTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_IsNonTransparent[1] = {{ wxLua_wxBrush_IsNonTransparent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_IsNonTransparent }}; -// %wxchkver_3_0_0 bool IsNonTransparent() const; -static int LUACALL wxLua_wxBrush_IsNonTransparent(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call IsNonTransparent - bool returns = (self->IsNonTransparent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_IsOk[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_IsOk[1] = {{ wxLua_wxBrush_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxBrush_IsOk(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_IsTransparent[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_IsTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_IsTransparent[1] = {{ wxLua_wxBrush_IsTransparent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_IsTransparent }}; -// %wxchkver_3_0_0 bool IsTransparent() const; -static int LUACALL wxLua_wxBrush_IsTransparent(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call IsTransparent - bool returns = (self->IsTransparent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_Ok[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_Ok[1] = {{ wxLua_wxBrush_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBrush_Ok }}; -// bool Ok() const; // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxBrush_Ok(lua_State *L) -{ - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetColour4[] = { &wxluatype_wxBrush, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxBrush_SetColour4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetColour4[1] = {{ wxLua_wxBrush_SetColour4, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetColour4 }}; -// !%wxchkver_3_0_0 void SetColour(wxColour& colour); -static int LUACALL wxLua_wxBrush_SetColour4(lua_State *L) -{ - // wxColour colour - wxColour * colour = (wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetColour3[] = { &wxluatype_wxBrush, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBrush_SetColour3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetColour3[1] = {{ wxLua_wxBrush_SetColour3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetColour3 }}; -// !%wxchkver_3_0_0 void SetColour(const wxString& colourName); -static int LUACALL wxLua_wxBrush_SetColour3(lua_State *L) -{ - // const wxString colourName - const wxString colourName = wxlua_getwxStringtype(L, 2); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetColour - self->SetColour(colourName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetColour2[] = { &wxluatype_wxBrush, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBrush_SetColour2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetColour2[1] = {{ wxLua_wxBrush_SetColour2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBrush_SetColour2 }}; -// !%wxchkver_3_0_0 void SetColour(const unsigned char red, const unsigned char green, const unsigned char blue); -static int LUACALL wxLua_wxBrush_SetColour2(lua_State *L) -{ - // const unsigned char blue - const unsigned char blue = (const unsigned char)wxlua_getuintegertype(L, 4); - // const unsigned char green - const unsigned char green = (const unsigned char)wxlua_getuintegertype(L, 3); - // const unsigned char red - const unsigned char red = (const unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetColour - self->SetColour(red, green, blue); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetColour1[] = { &wxluatype_wxBrush, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBrush_SetColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetColour1[1] = {{ wxLua_wxBrush_SetColour1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBrush_SetColour1 }}; -// %wxchkver_3_0_0 void SetColour(unsigned char red, unsigned char green, unsigned char blue); -static int LUACALL wxLua_wxBrush_SetColour1(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetColour - self->SetColour(red, green, blue); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetColour[] = { &wxluatype_wxBrush, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxBrush_SetColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetColour[1] = {{ wxLua_wxBrush_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetColour }}; -// %wxchkver_3_0_0 void SetColour(const wxColour& colour); -static int LUACALL wxLua_wxBrush_SetColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetStipple[] = { &wxluatype_wxBrush, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBrush_SetStipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetStipple[1] = {{ wxLua_wxBrush_SetStipple, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetStipple }}; -// void SetStipple(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBrush_SetStipple(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetStipple - self->SetStipple(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetStyle1[] = { &wxluatype_wxBrush, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBrush_SetStyle1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetStyle1[1] = {{ wxLua_wxBrush_SetStyle1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetStyle1 }}; -// !%wxchkver_3_0_0 void SetStyle(int style); -static int LUACALL wxLua_wxBrush_SetStyle1(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_SetStyle[] = { &wxluatype_wxBrush, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBrush_SetStyle(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetStyle[1] = {{ wxLua_wxBrush_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetStyle }}; -// %wxchkver_3_0_0 void SetStyle(wxBrushStyle style); -static int LUACALL wxLua_wxBrush_SetStyle(lua_State *L) -{ - // wxBrushStyle style - wxBrushStyle style = (wxBrushStyle)wxlua_getenumtype(L, 2); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_delete[] = { &wxluatype_wxBrush, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBrush_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_op_eq[] = { &wxluatype_wxBrush, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_op_eq[1] = {{ wxLua_wxBrush_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_op_eq }}; -// bool operator ==(const wxBrush& brush) const; -static int LUACALL wxLua_wxBrush_op_eq(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call op_eq - bool returns = ((*self)==(*brush)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_op_ne[] = { &wxluatype_wxBrush, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_op_ne[1] = {{ wxLua_wxBrush_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_op_ne }}; -// bool operator !=(const wxBrush& brush) const; -static int LUACALL wxLua_wxBrush_op_ne(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call op_ne - bool returns = ((*self)!=(*brush)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_op_set[] = { &wxluatype_wxBrush, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_op_set[1] = {{ wxLua_wxBrush_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_op_set }}; -// !%wxchkver_3_0_0 wxBrush& operator=(const wxBrush& b) const; -static int LUACALL wxLua_wxBrush_op_set(lua_State *L) -{ - // const wxBrush b - const wxBrush * b = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxBrush * self = (wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call op_set - (*self)=(*b); - wxBrush* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_constructor5[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBrush_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor5[1] = {{ wxLua_wxBrush_constructor5, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxBrush_constructor5 }}; -// !%wxchkver_3_0_0 wxBrush(const wxString& colourName, int style); -static int LUACALL wxLua_wxBrush_constructor5(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // const wxString colourName - const wxString colourName = wxlua_getwxStringtype(L, 1); - // call constructor - wxBrush* returns = new wxBrush(colourName, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_constructor4[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBrush_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor4[1] = {{ wxLua_wxBrush_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxBrush_constructor4 }}; -// !%wxchkver_3_0_0 wxBrush(const wxColour& colour, int style); -static int LUACALL wxLua_wxBrush_constructor4(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxBrush* returns = new wxBrush(*colour, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_constructor3[] = { &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxBrush_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor3[1] = {{ wxLua_wxBrush_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBrush_constructor3 }}; -// wxBrush(const wxBrush& brush); -static int LUACALL wxLua_wxBrush_constructor3(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrush); - // call constructor - wxBrush* returns = new wxBrush(*brush); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_constructor2[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBrush_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor2[1] = {{ wxLua_wxBrush_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBrush_constructor2 }}; -// wxBrush(const wxBitmap& stippleBitmap); -static int LUACALL wxLua_wxBrush_constructor2(lua_State *L) -{ - // const wxBitmap stippleBitmap - const wxBitmap * stippleBitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxBrush* returns = new wxBrush(*stippleBitmap); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrush_constructor1[] = { &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBrush_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor1[1] = {{ wxLua_wxBrush_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBrush_constructor1 }}; -// %wxchkver_3_0_0 wxBrush(const wxColour& colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID); -static int LUACALL wxLua_wxBrush_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBrushStyle style = wxBRUSHSTYLE_SOLID - wxBrushStyle style = (argCount >= 2 ? (wxBrushStyle)wxlua_getenumtype(L, 2) : wxBRUSHSTYLE_SOLID); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxBrush* returns = new wxBrush(*colour, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static int LUACALL wxLua_wxBrush_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor[1] = {{ wxLua_wxBrush_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxBrush(); -static int LUACALL wxLua_wxBrush_constructor(lua_State *L) -{ - // call constructor - wxBrush* returns = new wxBrush(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetColour_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetColour4, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetColour4 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetColour3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetColour3 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetColour2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBrush_SetColour2 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetColour1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBrush_SetColour1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetColour }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxBrush_SetColour_overload_count = sizeof(s_wxluafunc_wxLua_wxBrush_SetColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_SetStyle_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetStyle1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetStyle1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBrush_SetStyle }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxBrush_SetStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxBrush_SetStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrush_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_constructor5, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxBrush_constructor5 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxBrush_constructor4 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBrush_constructor3 }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBrush_constructor2 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBrush_constructor1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrush_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxBrush_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBrush_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - -void wxLua_wxBrush_delete_function(void** p) -{ - wxBrush* o = (wxBrush*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBrush_methods[] = { - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_GetColour, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - { "GetStipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_GetStipple, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_GetStyle, 1, NULL }, - { "IsHatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_IsHatch, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - { "IsNonTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_IsNonTransparent, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_IsOk, 1, NULL }, - { "IsTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_IsTransparent, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_Ok, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_SetColour_overload, s_wxluafunc_wxLua_wxBrush_SetColour_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - { "SetStipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_SetStipple, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_SetStyle_overload, s_wxluafunc_wxLua_wxBrush_SetStyle_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBrush_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_op_ne, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrush_op_set, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - { "wxBrush", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBrush_constructor_overload, s_wxluafunc_wxLua_wxBrush_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush))||(wxLUA_USE_wxColourPenBrush)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush)) - - { 0, 0, 0, 0 }, -}; - -int wxBrush_methodCount = sizeof(wxBrush_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxColourPenBrush - - -#if (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) -// --------------------------------------------------------------------------- -// Bind class wxBrushList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBrushList' -int wxluatype_wxBrushList = WXLUA_TUNKNOWN; - -#if ((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrushList_FindOrCreateBrush1[] = { &wxluatype_wxBrushList, &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBrushList_FindOrCreateBrush1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush1[1] = {{ wxLua_wxBrushList_FindOrCreateBrush1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBrushList_FindOrCreateBrush1 }}; -// %wxchkver_3_0_0 wxBrush *FindOrCreateBrush(const wxColour& colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID); -static int LUACALL wxLua_wxBrushList_FindOrCreateBrush1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBrushStyle style = wxBRUSHSTYLE_SOLID - wxBrushStyle style = (argCount >= 3 ? (wxBrushStyle)wxlua_getenumtype(L, 3) : wxBRUSHSTYLE_SOLID); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxBrushList * self = (wxBrushList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrushList); - // call FindOrCreateBrush - wxBrush* returns = (wxBrush*)self->FindOrCreateBrush(*colour, style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // ((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBrushList_FindOrCreateBrush[] = { &wxluatype_wxBrushList, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBrushList_FindOrCreateBrush(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush[1] = {{ wxLua_wxBrushList_FindOrCreateBrush, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBrushList_FindOrCreateBrush }}; -// !%wxchkver_3_0_0 wxBrush* FindOrCreateBrush(const wxColour& colour, int style); -static int LUACALL wxLua_wxBrushList_FindOrCreateBrush(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxBrushList * self = (wxBrushList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBrushList); - // call FindOrCreateBrush - wxBrush* returns = (wxBrush*)self->FindOrCreateBrush(*colour, style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) - - - -#if (((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush_overload[] = -{ - -#if ((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrushList_FindOrCreateBrush1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBrushList_FindOrCreateBrush1 }, -#endif // ((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) - -#if ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxBrushList_FindOrCreateBrush, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBrushList_FindOrCreateBrush }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush_overload_count = sizeof(s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush)) - -void wxLua_wxBrushList_delete_function(void** p) -{ - wxBrushList* o = (wxBrushList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBrushList_methods[] = { -#if (((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush)) - { "FindOrCreateBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush_overload, s_wxluafunc_wxLua_wxBrushList_FindOrCreateBrush_overload_count, 0 }, -#endif // (((((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush)) && (wxCHECK_VERSION(3,0,0))) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush))||(((!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush))) && (wxLUA_USE_wxColourPenBrush)) - - { 0, 0, 0, 0 }, -}; - -int wxBrushList_methodCount = sizeof(wxBrushList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxBrushList) && (wxLUA_USE_wxColourPenBrush) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -// --------------------------------------------------------------------------- -// Bind class wxStockGDI -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStockGDI' -int wxluatype_wxStockGDI = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStockGDI_GetBrush[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStockGDI_GetBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStockGDI_GetBrush[1] = {{ wxLua_wxStockGDI_GetBrush, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxStockGDI_GetBrush }}; -// static const wxBrush* GetBrush(wxStockGDI::Item item); -static int LUACALL wxLua_wxStockGDI_GetBrush(lua_State *L) -{ - // wxStockGDI::Item item - wxStockGDI::Item item = (wxStockGDI::Item)wxlua_getenumtype(L, 1); - // call GetBrush - const wxBrush* returns = (const wxBrush*)wxStockGDI::GetBrush(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStockGDI_GetColour[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStockGDI_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStockGDI_GetColour[1] = {{ wxLua_wxStockGDI_GetColour, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxStockGDI_GetColour }}; -// static const wxColour* GetColour(wxStockGDI::Item item); -static int LUACALL wxLua_wxStockGDI_GetColour(lua_State *L) -{ - // wxStockGDI::Item item - wxStockGDI::Item item = (wxStockGDI::Item)wxlua_getenumtype(L, 1); - // call GetColour - const wxColour* returns = (const wxColour*)wxStockGDI::GetColour(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStockGDI_GetCursor[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStockGDI_GetCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStockGDI_GetCursor[1] = {{ wxLua_wxStockGDI_GetCursor, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxStockGDI_GetCursor }}; -// static const wxCursor* GetCursor(wxStockGDI::Item item); -static int LUACALL wxLua_wxStockGDI_GetCursor(lua_State *L) -{ - // wxStockGDI::Item item - wxStockGDI::Item item = (wxStockGDI::Item)wxlua_getenumtype(L, 1); - // call GetCursor - const wxCursor* returns = (const wxCursor*)wxStockGDI::GetCursor(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStockGDI_GetFont[] = { &wxluatype_wxStockGDI, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStockGDI_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStockGDI_GetFont[1] = {{ wxLua_wxStockGDI_GetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStockGDI_GetFont }}; -// virtual const wxFont* GetFont(wxStockGDI::Item item); -static int LUACALL wxLua_wxStockGDI_GetFont(lua_State *L) -{ - // wxStockGDI::Item item - wxStockGDI::Item item = (wxStockGDI::Item)wxlua_getenumtype(L, 2); - // get this - wxStockGDI * self = (wxStockGDI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStockGDI); - // call GetFont - const wxFont* returns = (const wxFont*)self->GetFont(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStockGDI_GetPen[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStockGDI_GetPen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStockGDI_GetPen[1] = {{ wxLua_wxStockGDI_GetPen, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxStockGDI_GetPen }}; -// static const wxPen* GetPen(wxStockGDI::Item item); -static int LUACALL wxLua_wxStockGDI_GetPen(lua_State *L) -{ - // wxStockGDI::Item item - wxStockGDI::Item item = (wxStockGDI::Item)wxlua_getenumtype(L, 1); - // call GetPen - const wxPen* returns = (const wxPen*)wxStockGDI::GetPen(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -static int LUACALL wxLua_wxStockGDI_instance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStockGDI_instance[1] = {{ wxLua_wxStockGDI_instance, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxStockGDI& instance(); -static int LUACALL wxLua_wxStockGDI_instance(lua_State *L) -{ - // call instance - wxStockGDI* returns = (wxStockGDI*)&wxStockGDI::instance(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStockGDI); - - return 1; -} - - - - -void wxLua_wxStockGDI_delete_function(void** p) -{ - wxStockGDI* o = (wxStockGDI*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStockGDI_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "GetBrush", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStockGDI_GetBrush, 1, NULL }, - { "GetColour", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStockGDI_GetColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxCursor) - { "GetCursor", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStockGDI_GetCursor, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStockGDI_GetFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - { "GetPen", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStockGDI_GetPen, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxColourPenBrush) - - { "instance", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStockGDI_instance, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStockGDI_methodCount = sizeof(wxStockGDI_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxStockGDI_enums[] = { -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "BRUSH_BLACK", wxStockGDI::BRUSH_BLACK }, - { "BRUSH_BLUE", wxStockGDI::BRUSH_BLUE }, - { "BRUSH_CYAN", wxStockGDI::BRUSH_CYAN }, - { "BRUSH_GREEN", wxStockGDI::BRUSH_GREEN }, - { "BRUSH_GREY", wxStockGDI::BRUSH_GREY }, - { "BRUSH_LIGHTGREY", wxStockGDI::BRUSH_LIGHTGREY }, - { "BRUSH_MEDIUMGREY", wxStockGDI::BRUSH_MEDIUMGREY }, - { "BRUSH_RED", wxStockGDI::BRUSH_RED }, - { "BRUSH_TRANSPARENT", wxStockGDI::BRUSH_TRANSPARENT }, - { "BRUSH_WHITE", wxStockGDI::BRUSH_WHITE }, - { "COLOUR_BLACK", wxStockGDI::COLOUR_BLACK }, - { "COLOUR_BLUE", wxStockGDI::COLOUR_BLUE }, - { "COLOUR_CYAN", wxStockGDI::COLOUR_CYAN }, - { "COLOUR_GREEN", wxStockGDI::COLOUR_GREEN }, - { "COLOUR_LIGHTGREY", wxStockGDI::COLOUR_LIGHTGREY }, - { "COLOUR_RED", wxStockGDI::COLOUR_RED }, - { "COLOUR_WHITE", wxStockGDI::COLOUR_WHITE }, - { "CURSOR_CROSS", wxStockGDI::CURSOR_CROSS }, - { "CURSOR_HOURGLASS", wxStockGDI::CURSOR_HOURGLASS }, - { "CURSOR_STANDARD", wxStockGDI::CURSOR_STANDARD }, - { "FONT_ITALIC", wxStockGDI::FONT_ITALIC }, - { "FONT_NORMAL", wxStockGDI::FONT_NORMAL }, - { "FONT_SMALL", wxStockGDI::FONT_SMALL }, - { "FONT_SWISS", wxStockGDI::FONT_SWISS }, - { "ITEMCOUNT", wxStockGDI::ITEMCOUNT }, - { "PEN_BLACK", wxStockGDI::PEN_BLACK }, - { "PEN_BLACKDASHED", wxStockGDI::PEN_BLACKDASHED }, - { "PEN_CYAN", wxStockGDI::PEN_CYAN }, - { "PEN_GREEN", wxStockGDI::PEN_GREEN }, - { "PEN_GREY", wxStockGDI::PEN_GREY }, - { "PEN_LIGHTGREY", wxStockGDI::PEN_LIGHTGREY }, - { "PEN_MEDIUMGREY", wxStockGDI::PEN_MEDIUMGREY }, - { "PEN_RED", wxStockGDI::PEN_RED }, - { "PEN_TRANSPARENT", wxStockGDI::PEN_TRANSPARENT }, - { "PEN_WHITE", wxStockGDI::PEN_WHITE }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - - { NULL, 0, }, -}; -int wxStockGDI_enumCount = sizeof(wxStockGDI_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - - -#if wxLUA_USE_wxPalette && wxUSE_PALETTE -// --------------------------------------------------------------------------- -// Bind class wxPalette -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPalette' -int wxluatype_wxPalette = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_Create[] = { &wxluatype_wxPalette, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPalette_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_Create[1] = {{ wxLua_wxPalette_Create, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPalette_Create }}; -// %override wxLua_wxPalette_Create -// bool Create(int n, const unsigned char* red, const unsigned char* green, const unsigned char* blue) -static int LUACALL wxLua_wxPalette_Create(lua_State *L) -{ - // const unsigned char* blue - size_t blue_len = 0; - const unsigned char *blue = (unsigned char *)lua_tolstring(L, 5, &blue_len); - // const unsigned char* green - size_t green_len = 0; - const unsigned char *green = (unsigned char *)lua_tolstring(L, 4, &green_len); - // const unsigned char* red - size_t red_len = 0; - const unsigned char *red = (unsigned char *)lua_tolstring(L, 3, &red_len); - // int n - int n = (int)wxlua_getintegertype(L, 2); - size_t nn = (size_t)n; - if ((nn > blue_len)||(nn > green_len)||(nn > red_len)) - wxlua_argerrormsg(L, wxT("Invalid palette lengths for wxPalette constructor.")); - // get this - wxPalette *self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call Create -#if wxCHECK_VERSION(2,9,0) && defined(__WXMSW__) && !wxCHECK_VERSION(2,9,5) - bool returns = self->Create(n, (unsigned char*)red, (unsigned char*)green, (unsigned char*)blue); // NOTE: wxMSW does not modify these, see SVN rev 50727 -#else - bool returns = self->Create(n, red, green, blue); -#endif - // push the result number - lua_pushboolean(L, returns); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_GetColoursCount[] = { &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxPalette_GetColoursCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_GetColoursCount[1] = {{ wxLua_wxPalette_GetColoursCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPalette_GetColoursCount }}; -// int GetColoursCount() const; -static int LUACALL wxLua_wxPalette_GetColoursCount(lua_State *L) -{ - // get this - wxPalette * self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call GetColoursCount - int returns = (self->GetColoursCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_GetPixel[] = { &wxluatype_wxPalette, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPalette_GetPixel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_GetPixel[1] = {{ wxLua_wxPalette_GetPixel, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPalette_GetPixel }}; -// int GetPixel(unsigned char red, unsigned char green, unsigned char blue) const; -static int LUACALL wxLua_wxPalette_GetPixel(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxPalette * self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call GetPixel - int returns = (self->GetPixel(red, green, blue)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_GetRGB[] = { &wxluatype_wxPalette, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPalette_GetRGB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_GetRGB[1] = {{ wxLua_wxPalette_GetRGB, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPalette_GetRGB }}; -// %override wxLua_wxPalette_GetRGB -// bool GetRGB(int pixel, unsigned char* red, unsigned char* green, unsigned char* blue) const -static int LUACALL wxLua_wxPalette_GetRGB(lua_State *L) -{ - // int pixel - int pixel = (int)wxlua_getintegertype(L, 2); - // get this - wxPalette *self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call GetRGB - unsigned char red = 0, green = 0, blue = 0; - bool returns = self->GetRGB(pixel, &red, &green, &blue); - // push the result number - lua_pushboolean(L, returns); - lua_pushinteger(L, red); - lua_pushinteger(L, green); - lua_pushinteger(L, blue); - // return the number of parameters - return 4; -} - - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_IsOk[] = { &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxPalette_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_IsOk[1] = {{ wxLua_wxPalette_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPalette_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxPalette_IsOk(lua_State *L) -{ - // get this - wxPalette * self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_Ok[] = { &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxPalette_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_Ok[1] = {{ wxLua_wxPalette_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPalette_Ok }}; -// bool Ok() const; // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxPalette_Ok(lua_State *L) -{ - // get this - wxPalette * self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_delete[] = { &wxluatype_wxPalette, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPalette_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_op_set[] = { &wxluatype_wxPalette, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxPalette_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_op_set[1] = {{ wxLua_wxPalette_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPalette_op_set }}; -// wxPalette& operator =(const wxPalette& palette); -static int LUACALL wxLua_wxPalette_op_set(lua_State *L) -{ - // const wxPalette palette - const wxPalette * palette = (const wxPalette *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPalette); - // get this - wxPalette * self = (wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call op_set - (*self)=(*palette); - wxPalette* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPalette); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_constructor2[] = { &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPalette_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_constructor2[1] = {{ wxLua_wxPalette_constructor2, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxPalette_constructor2 }}; -// %wxchkver_3_0_0 wxPalette(int n, const unsigned char* red, const unsigned char* green, const unsigned char* blue); -static int LUACALL wxLua_wxPalette_constructor2(lua_State *L) -{ - // const unsigned char blue - const unsigned char * blue = (const unsigned char *)wxlua_getstringtype(L, 4); - // const unsigned char green - const unsigned char * green = (const unsigned char *)wxlua_getstringtype(L, 3); - // const unsigned char red - const unsigned char * red = (const unsigned char *)wxlua_getstringtype(L, 2); - // int n - int n = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxPalette* returns = new wxPalette(n, red, green, blue); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPalette); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPalette); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPalette_constructor1[] = { &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxPalette_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_constructor1[1] = {{ wxLua_wxPalette_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPalette_constructor1 }}; -// wxPalette(const wxPalette& palette); -static int LUACALL wxLua_wxPalette_constructor1(lua_State *L) -{ - // const wxPalette palette - const wxPalette * palette = (const wxPalette *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPalette); - // call constructor - wxPalette* returns = new wxPalette(*palette); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPalette); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPalette); - - return 1; -} - -static int LUACALL wxLua_wxPalette_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_constructor[1] = {{ wxLua_wxPalette_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPalette(); -static int LUACALL wxLua_wxPalette_constructor(lua_State *L) -{ - // call constructor - wxPalette* returns = new wxPalette(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPalette); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPalette); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(wxLUA_USE_wxPalette && wxUSE_PALETTE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPalette_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { wxLua_wxPalette_constructor2, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxPalette_constructor2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { wxLua_wxPalette_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPalette_constructor1 }, - { wxLua_wxPalette_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPalette_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPalette_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(wxLUA_USE_wxPalette && wxUSE_PALETTE) - -void wxLua_wxPalette_delete_function(void** p) -{ - wxPalette* o = (wxPalette*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPalette_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_Create, 1, NULL }, - { "GetColoursCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_GetColoursCount, 1, NULL }, - { "GetPixel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_GetPixel, 1, NULL }, - { "GetRGB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_GetRGB, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_Ok, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPalette_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPalette_op_set, 1, NULL }, - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "wxPalette", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPalette_constructor_overload, s_wxluafunc_wxLua_wxPalette_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(wxLUA_USE_wxPalette && wxUSE_PALETTE) - - { 0, 0, 0, 0 }, -}; - -int wxPalette_methodCount = sizeof(wxPalette_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPalette && wxUSE_PALETTE - - -#if wxLUA_USE_wxIcon -// --------------------------------------------------------------------------- -// Bind class wxIcon -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIcon' -int wxluatype_wxIcon = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_CopyFromBitmap[] = { &wxluatype_wxIcon, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxIcon_CopyFromBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_CopyFromBitmap[1] = {{ wxLua_wxIcon_CopyFromBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIcon_CopyFromBitmap }}; -// %wxchkver_2_9_5 void CopyFromBitmap(const wxBitmap& bmp); -static int LUACALL wxLua_wxIcon_CopyFromBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call CopyFromBitmap - self->CopyFromBitmap(*bmp); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_GetDepth[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_GetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_GetDepth[1] = {{ wxLua_wxIcon_GetDepth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIcon_GetDepth }}; -// int GetDepth(); -static int LUACALL wxLua_wxIcon_GetDepth(lua_State *L) -{ - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call GetDepth - int returns = (self->GetDepth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_GetHeight[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_GetHeight[1] = {{ wxLua_wxIcon_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIcon_GetHeight }}; -// int GetHeight(); -static int LUACALL wxLua_wxIcon_GetHeight(lua_State *L) -{ - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_GetWidth[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_GetWidth[1] = {{ wxLua_wxIcon_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIcon_GetWidth }}; -// int GetWidth(); -static int LUACALL wxLua_wxIcon_GetWidth(lua_State *L) -{ - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_IsOk[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_IsOk[1] = {{ wxLua_wxIcon_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIcon_IsOk }}; -// %wxchkver_2_9_5 bool IsOk() const; -static int LUACALL wxLua_wxIcon_IsOk(lua_State *L) -{ - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - -#if (!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_LoadFile1[] = { &wxluatype_wxIcon, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIcon_LoadFile1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_LoadFile1[1] = {{ wxLua_wxIcon_LoadFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxIcon_LoadFile1 }}; -// !%wxchkver_2_9_5 bool LoadFile(const wxString& name, wxBitmapType flag); -static int LUACALL wxLua_wxIcon_LoadFile1(lua_State *L) -{ - // wxBitmapType flag - wxBitmapType flag = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call LoadFile - bool returns = (self->LoadFile(name, flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_LoadFile[] = { &wxluatype_wxIcon, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIcon_LoadFile(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_LoadFile[1] = {{ wxLua_wxIcon_LoadFile, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxIcon_LoadFile }}; -// %wxchkver_2_9_5 bool LoadFile(const wxString& name, wxBitmapType type = wxICON_DEFAULT_TYPE, int desiredWidth = -1, int desiredHeight = -1); -static int LUACALL wxLua_wxIcon_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int desiredHeight = -1 - int desiredHeight = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int desiredWidth = -1 - int desiredWidth = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxBitmapType type = wxICON_DEFAULT_TYPE - wxBitmapType type = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxICON_DEFAULT_TYPE); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call LoadFile - bool returns = (self->LoadFile(name, type, desiredWidth, desiredHeight)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_Ok[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_Ok[1] = {{ wxLua_wxIcon_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIcon_Ok }}; -// bool Ok(); // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxIcon_Ok(lua_State *L) -{ - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_SetDepth[] = { &wxluatype_wxIcon, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIcon_SetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_SetDepth[1] = {{ wxLua_wxIcon_SetDepth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIcon_SetDepth }}; -// void SetDepth(int d); -static int LUACALL wxLua_wxIcon_SetDepth(lua_State *L) -{ - // int d - int d = (int)wxlua_getnumbertype(L, 2); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call SetDepth - self->SetDepth(d); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_SetHeight[] = { &wxluatype_wxIcon, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIcon_SetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_SetHeight[1] = {{ wxLua_wxIcon_SetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIcon_SetHeight }}; -// void SetHeight(int h); -static int LUACALL wxLua_wxIcon_SetHeight(lua_State *L) -{ - // int h - int h = (int)wxlua_getnumbertype(L, 2); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call SetHeight - self->SetHeight(h); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_SetWidth[] = { &wxluatype_wxIcon, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIcon_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_SetWidth[1] = {{ wxLua_wxIcon_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIcon_SetWidth }}; -// void SetWidth(int w); -static int LUACALL wxLua_wxIcon_SetWidth(lua_State *L) -{ - // int w - int w = (int)wxlua_getnumbertype(L, 2); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call SetWidth - self->SetWidth(w); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_delete[] = { &wxluatype_wxIcon, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIcon_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_op_set[] = { &wxluatype_wxIcon, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_op_set[1] = {{ wxLua_wxIcon_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIcon_op_set }}; -// wxIcon& operator=(const wxIcon& i) const; -static int LUACALL wxLua_wxIcon_op_set(lua_State *L) -{ - // const wxIcon i - const wxIcon * i = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxIcon * self = (wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call op_set - (*self)=(*i); - wxIcon* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_constructor3[] = { &wxluatype_wxIconLocation, NULL }; -static int LUACALL wxLua_wxIcon_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_constructor3[1] = {{ wxLua_wxIcon_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIcon_constructor3 }}; -// %wxchkver_2_9_5 wxIcon(const wxIconLocation& loc); -static int LUACALL wxLua_wxIcon_constructor3(lua_State *L) -{ - // const wxIconLocation loc - const wxIconLocation * loc = (const wxIconLocation *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconLocation); - // call constructor - wxIcon* returns = new wxIcon(*loc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIcon_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_constructor2[1] = {{ wxLua_wxIcon_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxIcon_constructor2 }}; -// wxIcon(const wxString& name, wxBitmapType type = wxICON_DEFAULT_TYPE, int desiredWidth = -1, int desiredHeight = -1); -static int LUACALL wxLua_wxIcon_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int desiredHeight = -1 - int desiredHeight = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int desiredWidth = -1 - int desiredWidth = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxBitmapType type = wxICON_DEFAULT_TYPE - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxICON_DEFAULT_TYPE); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxIcon* returns = new wxIcon(name, type, desiredWidth, desiredHeight); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIcon_constructor1[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIcon_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_constructor1[1] = {{ wxLua_wxIcon_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIcon_constructor1 }}; -// %wxchkver_2_9_5 wxIcon(const wxIcon& icon); -static int LUACALL wxLua_wxIcon_constructor1(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call constructor - wxIcon* returns = new wxIcon(*icon); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - -static int LUACALL wxLua_wxIcon_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_constructor[1] = {{ wxLua_wxIcon_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxIcon(); -static int LUACALL wxLua_wxIcon_constructor(lua_State *L) -{ - // call constructor - wxIcon* returns = new wxIcon(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - - - - -#if ((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon))||((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_LoadFile_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - { wxLua_wxIcon_LoadFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxIcon_LoadFile1 }, -#endif // (!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - { wxLua_wxIcon_LoadFile, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxIcon_LoadFile }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxIcon_LoadFile_overload_count = sizeof(s_wxluafunc_wxLua_wxIcon_LoadFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon))||((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) - -#if (((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIcon_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - { wxLua_wxIcon_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIcon_constructor3 }, -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - { wxLua_wxIcon_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxIcon_constructor2 }, - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - { wxLua_wxIcon_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIcon_constructor1 }, -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - { wxLua_wxIcon_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxIcon_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxIcon_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon) - -void wxLua_wxIcon_delete_function(void** p) -{ - wxIcon* o = (wxIcon*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIcon_methods[] = { -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxBitmap) - { "CopyFromBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_CopyFromBitmap, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxBitmap) - - { "GetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_GetDepth, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_GetHeight, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_GetWidth, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon) - -#if ((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon))||((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_LoadFile_overload, s_wxluafunc_wxLua_wxIcon_LoadFile_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon))||((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_Ok, 1, NULL }, - { "SetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_SetDepth, 1, NULL }, - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_SetHeight, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIcon_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIcon_op_set, 1, NULL }, - -#if (((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon) - { "wxIcon", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIcon_constructor_overload, s_wxluafunc_wxLua_wxIcon_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon) - - { 0, 0, 0, 0 }, -}; - -int wxIcon_methodCount = sizeof(wxIcon_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxIcon - - -#if wxLUA_USE_wxIcon -// --------------------------------------------------------------------------- -// Bind class wxIconBundle -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIconBundle' -int wxluatype_wxIconBundle = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_AddIcon3[] = { &wxluatype_wxIconBundle, &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIconBundle_AddIcon3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_AddIcon3[1] = {{ wxLua_wxIconBundle_AddIcon3, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon3 }}; -// void AddIcon(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxIconBundle_AddIcon3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxIconBundle * self = (wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call AddIcon - self->AddIcon(*stream, type); - - return 0; -} - -#endif // ((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if (wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_AddIcon2[] = { &wxluatype_wxIconBundle, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIconBundle_AddIcon2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_AddIcon2[1] = {{ wxLua_wxIconBundle_AddIcon2, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon2 }}; -// void AddIcon(const wxString& file, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxIconBundle_AddIcon2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_ANY); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxIconBundle * self = (wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call AddIcon - self->AddIcon(file, type); - - return 0; -} - -#endif // (wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_AddIcon1[] = { &wxluatype_wxIconBundle, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIconBundle_AddIcon1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_AddIcon1[1] = {{ wxLua_wxIconBundle_AddIcon1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon1 }}; -// void AddIcon(const wxIcon& icon); -static int LUACALL wxLua_wxIconBundle_AddIcon1(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxIconBundle * self = (wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call AddIcon - self->AddIcon(*icon); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_AddIcon[] = { &wxluatype_wxIconBundle, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIconBundle_AddIcon(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_AddIcon[1] = {{ wxLua_wxIconBundle_AddIcon, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void AddIcon(const wxString& file, long type); -static int LUACALL wxLua_wxIconBundle_AddIcon(lua_State *L) -{ - // long type - long type = (long)wxlua_getnumbertype(L, 3); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxIconBundle * self = (wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call AddIcon - self->AddIcon(file, type); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_GetIcon1[] = { &wxluatype_wxIconBundle, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIconBundle_GetIcon1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_GetIcon1[1] = {{ wxLua_wxIconBundle_GetIcon1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxIconBundle_GetIcon1 }}; -// wxIcon GetIcon(int size = wxDefaultCoord) const; -static int LUACALL wxLua_wxIconBundle_GetIcon1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int size = wxDefaultCoord - int size = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxDefaultCoord); - // get this - wxIconBundle * self = (wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon(size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_GetIcon[] = { &wxluatype_wxIconBundle, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxIconBundle_GetIcon(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_GetIcon[1] = {{ wxLua_wxIconBundle_GetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIconBundle_GetIcon }}; -// wxIcon GetIcon(const wxSize& size) const; -static int LUACALL wxLua_wxIconBundle_GetIcon(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxIconBundle * self = (wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon(*size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_delete[] = { &wxluatype_wxIconBundle, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIconBundle_delete }}; - - -#if (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_constructor5[] = { &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIconBundle_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor5[1] = {{ wxLua_wxIconBundle_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxIconBundle_constructor5 }}; -// wxIconBundle(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxIconBundle_constructor5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call constructor - wxIconBundle* returns = new wxIconBundle(*stream, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconBundle); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - -#endif // (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_constructor4[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIconBundle_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor4[1] = {{ wxLua_wxIconBundle_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxIconBundle_constructor4 }}; -// wxIconBundle(const wxString& file, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxIconBundle_constructor4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call constructor - wxIconBundle* returns = new wxIconBundle(file, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconBundle); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - -#endif // ((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_constructor3[] = { &wxluatype_wxIconBundle, NULL }; -static int LUACALL wxLua_wxIconBundle_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor3[1] = {{ wxLua_wxIconBundle_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIconBundle_constructor3 }}; -// wxIconBundle(const wxIconBundle& ic); -static int LUACALL wxLua_wxIconBundle_constructor3(lua_State *L) -{ - // const wxIconBundle ic - const wxIconBundle * ic = (const wxIconBundle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIconBundle); - // call constructor - wxIconBundle* returns = new wxIconBundle(*ic); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconBundle); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_constructor2[] = { &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxIconBundle_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor2[1] = {{ wxLua_wxIconBundle_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIconBundle_constructor2 }}; -// wxIconBundle(const wxIcon& icon); -static int LUACALL wxLua_wxIconBundle_constructor2(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIcon); - // call constructor - wxIconBundle* returns = new wxIconBundle(*icon); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconBundle); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIconBundle_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIconBundle_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor1[1] = {{ wxLua_wxIconBundle_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxIconBundle_constructor1 }}; -// !%wxchkver_2_9 || %wxcompat_2_8 wxIconBundle(const wxString& file, long type); -static int LUACALL wxLua_wxIconBundle_constructor1(lua_State *L) -{ - // long type - long type = (long)wxlua_getnumbertype(L, 2); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 1); - // call constructor - wxIconBundle* returns = new wxIconBundle(file, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconBundle); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - -static int LUACALL wxLua_wxIconBundle_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor[1] = {{ wxLua_wxIconBundle_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxIconBundle(); -static int LUACALL wxLua_wxIconBundle_constructor(lua_State *L) -{ - // call constructor - wxIconBundle* returns = new wxIconBundle(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIconBundle); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIconBundle); - - return 1; -} - - - - -#if (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE))||(wxLUA_USE_wxIcon)||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_AddIcon_overload[] = -{ - -#if ((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxIconBundle_AddIcon3, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon3 }, -#endif // ((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if (wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE) - { wxLua_wxIconBundle_AddIcon2, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon2 }, -#endif // (wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE) - { wxLua_wxIconBundle_AddIcon1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon1 }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon) - { wxLua_wxIconBundle_AddIcon, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxIconBundle_AddIcon }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon) -}; -static int s_wxluafunc_wxLua_wxIconBundle_AddIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxIconBundle_AddIcon_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE))||(wxLUA_USE_wxIcon)||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) - -#if (wxLUA_USE_wxIcon)||((wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_GetIcon_overload[] = -{ - { wxLua_wxIconBundle_GetIcon1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxIconBundle_GetIcon1 }, - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxIconBundle_GetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIconBundle_GetIcon }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxIconBundle_GetIcon_overload_count = sizeof(s_wxluafunc_wxLua_wxIconBundle_GetIcon_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxIcon)||((wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect)) - -#if ((((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon)||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIconBundle_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS) - { wxLua_wxIconBundle_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxIconBundle_constructor5 }, -#endif // (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon) - { wxLua_wxIconBundle_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxIconBundle_constructor4 }, -#endif // ((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon) - { wxLua_wxIconBundle_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIconBundle_constructor3 }, - { wxLua_wxIconBundle_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIconBundle_constructor2 }, - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - { wxLua_wxIconBundle_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxIconBundle_constructor1 }, -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon) - { wxLua_wxIconBundle_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxIconBundle_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxIconBundle_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon)||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon)) - -void wxLua_wxIconBundle_delete_function(void** p) -{ - wxIconBundle* o = (wxIconBundle*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIconBundle_methods[] = { -#if (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE))||(wxLUA_USE_wxIcon)||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) - { "AddIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconBundle_AddIcon_overload, s_wxluafunc_wxLua_wxIconBundle_AddIcon_overload_count, 0 }, -#endif // (((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE))||(wxLUA_USE_wxIcon)||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) - -#if (wxLUA_USE_wxIcon)||((wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect)) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIconBundle_GetIcon_overload, s_wxluafunc_wxLua_wxIconBundle_GetIcon_overload_count, 0 }, -#endif // (wxLUA_USE_wxIcon)||((wxLUA_USE_wxIcon) && (wxLUA_USE_wxPointSizeRect)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIconBundle_delete, 1, NULL }, - -#if ((((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon)||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon)) - { "wxIconBundle", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIconBundle_constructor_overload, s_wxluafunc_wxLua_wxIconBundle_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxIcon) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxIcon) && (wxUSE_FFILE || wxUSE_FILE) && (wxUSE_STREAMS && wxUSE_IMAGE)) && (wxLUA_USE_wxIcon))||(wxLUA_USE_wxIcon)||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxIcon)) - - { 0, 0, 0, 0 }, -}; - -int wxIconBundle_methodCount = sizeof(wxIconBundle_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxIcon - - -#if wxLUA_USE_wxBitmap -// --------------------------------------------------------------------------- -// Bind class wxBitmap -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBitmap' -int wxluatype_wxBitmap = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_ConvertToDisabled[] = { &wxluatype_wxBitmap, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmap_ConvertToDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_ConvertToDisabled[1] = {{ wxLua_wxBitmap_ConvertToDisabled, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_ConvertToDisabled }}; -// %wxchkver_3_0_0 wxBitmap ConvertToDisabled(unsigned char brightness = 255) const; -static int LUACALL wxLua_wxBitmap_ConvertToDisabled(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char brightness = 255 - unsigned char brightness = (argCount >= 2 ? (unsigned char)wxlua_getuintegertype(L, 2) : 255); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call ConvertToDisabled - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->ConvertToDisabled(brightness)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_ConvertToImage[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_ConvertToImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_ConvertToImage[1] = {{ wxLua_wxBitmap_ConvertToImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_ConvertToImage }}; -// wxImage ConvertToImage(); -static int LUACALL wxLua_wxBitmap_ConvertToImage(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call ConvertToImage - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ConvertToImage()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_CopyFromIcon[] = { &wxluatype_wxBitmap, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxBitmap_CopyFromIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_CopyFromIcon[1] = {{ wxLua_wxBitmap_CopyFromIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_CopyFromIcon }}; -// bool CopyFromIcon(const wxIcon& icon); -static int LUACALL wxLua_wxBitmap_CopyFromIcon(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call CopyFromIcon - bool returns = (self->CopyFromIcon(*icon)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxIcon) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_Create2[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxBitmap_Create2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_Create2[1] = {{ wxLua_wxBitmap_Create2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmap_Create2 }}; -// %wxchkver_3_0_0 bool Create(int width, int height, const wxDC& dc); -static int LUACALL wxLua_wxBitmap_Create2(lua_State *L) -{ - // const wxDC dc - const wxDC * dc = (const wxDC *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDC); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call Create - bool returns = (self->Create(width, height, *dc)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_Create1[] = { &wxluatype_wxBitmap, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_Create1[1] = {{ wxLua_wxBitmap_Create1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBitmap_Create1 }}; -// %wxchkver_3_0_0 bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH); -static int LUACALL wxLua_wxBitmap_Create1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = wxBITMAP_SCREEN_DEPTH - int depth = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBITMAP_SCREEN_DEPTH); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call Create - bool returns = (self->Create(*sz, depth)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_Create[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_Create[1] = {{ wxLua_wxBitmap_Create, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_Create }}; -// virtual bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); -static int LUACALL wxLua_wxBitmap_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = wxBITMAP_SCREEN_DEPTH - int depth = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxBITMAP_SCREEN_DEPTH); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call Create - bool returns = (self->Create(width, height, depth)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_CreateScaled[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_CreateScaled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_CreateScaled[1] = {{ wxLua_wxBitmap_CreateScaled, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxBitmap_CreateScaled }}; -// %wxchkver_3_0_0 bool CreateScaled(int logwidth, int logheight, int depth, double logicalScale); -static int LUACALL wxLua_wxBitmap_CreateScaled(lua_State *L) -{ - // double logicalScale - double logicalScale = (double)wxlua_getnumbertype(L, 5); - // int depth - int depth = (int)wxlua_getnumbertype(L, 4); - // int logheight - int logheight = (int)wxlua_getnumbertype(L, 3); - // int logwidth - int logwidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call CreateScaled - bool returns = (self->CreateScaled(logwidth, logheight, depth, logicalScale)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetDepth[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetDepth[1] = {{ wxLua_wxBitmap_GetDepth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetDepth }}; -// int GetDepth() const; -static int LUACALL wxLua_wxBitmap_GetDepth(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetDepth - int returns = (self->GetDepth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetHeight[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetHeight[1] = {{ wxLua_wxBitmap_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetHeight }}; -// int GetHeight() const; -static int LUACALL wxLua_wxBitmap_GetHeight(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetMask[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetMask[1] = {{ wxLua_wxBitmap_GetMask, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetMask }}; -// wxMask* GetMask() const; -static int LUACALL wxLua_wxBitmap_GetMask(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetMask - wxMask* returns = (wxMask*)self->GetMask(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMask); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetPalette[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetPalette(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetPalette[1] = {{ wxLua_wxBitmap_GetPalette, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetPalette }}; -// wxPalette* GetPalette() const; -static int LUACALL wxLua_wxBitmap_GetPalette(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetPalette - wxPalette* returns = (wxPalette*)self->GetPalette(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPalette); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetScaleFactor[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetScaleFactor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetScaleFactor[1] = {{ wxLua_wxBitmap_GetScaleFactor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetScaleFactor }}; -// %wxchkver_2_9_5 double GetScaleFactor() const; -static int LUACALL wxLua_wxBitmap_GetScaleFactor(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetScaleFactor - double returns = (self->GetScaleFactor()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetScaledHeight[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetScaledHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetScaledHeight[1] = {{ wxLua_wxBitmap_GetScaledHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetScaledHeight }}; -// %wxchkver_2_9_5 double GetScaledHeight() const; -static int LUACALL wxLua_wxBitmap_GetScaledHeight(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetScaledHeight - double returns = (self->GetScaledHeight()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetScaledSize[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetScaledSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetScaledSize[1] = {{ wxLua_wxBitmap_GetScaledSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetScaledSize }}; -// %wxchkver_2_9_5 wxSize GetScaledSize() const; -static int LUACALL wxLua_wxBitmap_GetScaledSize(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetScaledSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetScaledSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetScaledWidth[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetScaledWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetScaledWidth[1] = {{ wxLua_wxBitmap_GetScaledWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetScaledWidth }}; -// %wxchkver_2_9_5 double GetScaledWidth() const; -static int LUACALL wxLua_wxBitmap_GetScaledWidth(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetScaledWidth - double returns = (self->GetScaledWidth()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetSize[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetSize[1] = {{ wxLua_wxBitmap_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetSize }}; -// %wxchkver_3_0_0 wxSize GetSize() const; -static int LUACALL wxLua_wxBitmap_GetSize(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetSubBitmap[] = { &wxluatype_wxBitmap, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxBitmap_GetSubBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetSubBitmap[1] = {{ wxLua_wxBitmap_GetSubBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_GetSubBitmap }}; -// wxBitmap GetSubBitmap(const wxRect&rect) const; -static int LUACALL wxLua_wxBitmap_GetSubBitmap(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetSubBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetSubBitmap(*rect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_GetWidth[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_GetWidth[1] = {{ wxLua_wxBitmap_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxBitmap_GetWidth(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_IsOk[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_IsOk[1] = {{ wxLua_wxBitmap_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxBitmap_IsOk(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_LoadFile[] = { &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmap_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_LoadFile[1] = {{ wxLua_wxBitmap_LoadFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBitmap_LoadFile }}; -// bool LoadFile(const wxString& name, wxBitmapType type); -static int LUACALL wxLua_wxBitmap_LoadFile(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call LoadFile - bool returns = (self->LoadFile(name, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_NewFromPNGData[] = { &wxluatype_TLIGHTUSERDATA, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmap_NewFromPNGData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_NewFromPNGData[1] = {{ wxLua_wxBitmap_NewFromPNGData, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_NewFromPNGData }}; -// %wxchkver_3_0_0 static wxBitmap NewFromPNGData(const void* data, size_t size); -static int LUACALL wxLua_wxBitmap_NewFromPNGData(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 2); - // const void data - const void * data = (const void *)wxlua_touserdata(L, 1); - // call NewFromPNGData - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(wxBitmap::NewFromPNGData(data, size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_Ok[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_Ok[1] = {{ wxLua_wxBitmap_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_Ok }}; -// bool Ok() const; // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxBitmap_Ok(lua_State *L) -{ - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SaveFile1[] = { &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxBitmap_SaveFile1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SaveFile1[1] = {{ wxLua_wxBitmap_SaveFile1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_SaveFile1 }}; -// !%wxchkver_3_0_0 bool SaveFile(const wxString& name, wxBitmapType type, wxPalette* palette = NULL); -static int LUACALL wxLua_wxBitmap_SaveFile1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPalette palette = NULL - wxPalette * palette = (argCount >= 4 ? (wxPalette *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPalette) : NULL); - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SaveFile - bool returns = (self->SaveFile(name, type, palette)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SaveFile[] = { &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxBitmap_SaveFile(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SaveFile[1] = {{ wxLua_wxBitmap_SaveFile, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_SaveFile }}; -// %wxchkver_3_0_0 bool SaveFile(const wxString& name, wxBitmapType type, const wxPalette* palette = NULL) const; -static int LUACALL wxLua_wxBitmap_SaveFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = NULL - const wxPalette * palette = (argCount >= 4 ? (const wxPalette *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPalette) : NULL); - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SaveFile - bool returns = (self->SaveFile(name, type, palette)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SetDepth[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_SetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SetDepth[1] = {{ wxLua_wxBitmap_SetDepth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_SetDepth }}; -// void SetDepth(int depth); -static int LUACALL wxLua_wxBitmap_SetDepth(lua_State *L) -{ - // int depth - int depth = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SetDepth - self->SetDepth(depth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SetHeight[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_SetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SetHeight[1] = {{ wxLua_wxBitmap_SetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_SetHeight }}; -// void SetHeight(int height); -static int LUACALL wxLua_wxBitmap_SetHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SetHeight - self->SetHeight(height); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SetMask[] = { &wxluatype_wxBitmap, &wxluatype_wxMask, NULL }; -static int LUACALL wxLua_wxBitmap_SetMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SetMask[1] = {{ wxLua_wxBitmap_SetMask, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_SetMask }}; -// void SetMask(%ungc wxMask* mask); -static int LUACALL wxLua_wxBitmap_SetMask(lua_State *L) -{ - // wxMask mask - wxMask * mask = (wxMask *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMask); - if (wxluaO_isgcobject(L, mask)) wxluaO_undeletegcobject(L, mask); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SetMask - self->SetMask(mask); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SetPalette[] = { &wxluatype_wxBitmap, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxBitmap_SetPalette(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SetPalette[1] = {{ wxLua_wxBitmap_SetPalette, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_SetPalette }}; -// %win void SetPalette(const wxPalette& palette); -static int LUACALL wxLua_wxBitmap_SetPalette(lua_State *L) -{ - // const wxPalette palette - const wxPalette * palette = (const wxPalette *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPalette); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SetPalette - self->SetPalette(*palette); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_SetWidth[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SetWidth[1] = {{ wxLua_wxBitmap_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_SetWidth }}; -// void SetWidth(int width); -static int LUACALL wxLua_wxBitmap_SetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call SetWidth - self->SetWidth(width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_delete[] = { &wxluatype_wxBitmap, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_delete }}; - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_op_set[] = { &wxluatype_wxBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_op_set[1] = {{ wxLua_wxBitmap_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBitmap_op_set }}; -// !%wxchkver_3_0_0 wxBitmap& operator=(const wxBitmap& b) const; -static int LUACALL wxLua_wxBitmap_op_set(lua_State *L) -{ - // const wxBitmap b - const wxBitmap * b = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxBitmap * self = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call op_set - (*self)=(*b); - wxBitmap* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -#define wxLua_wxBitmap_constructor12 wxLua_wxBitmapFromXPMData_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor12[] = { &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxBitmap_constructor12(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor12[1] = {{ wxLua_wxBitmap_constructor12, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_constructor12 }}; -// %override wxLua_wxBitmapFromXPMData_constructor -// %constructor wxXmlResourceGetDefault() -static int LUACALL wxLua_wxBitmapFromXPMData_constructor(lua_State *L) -{ - int count = 0; - - const char **sizeArray = wxlua_getchararray(L, 1, count); - if (sizeArray != NULL) - { - // call constructor - wxBitmap *returns = new wxBitmap(sizeArray); - delete [] sizeArray; - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - // return the number of parameters - return 1; - } - - return 0; -} - - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) -#define wxLua_wxBitmap_constructor11 wxLua_wxBitmapFromData_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor11[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor11(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor11[1] = {{ wxLua_wxBitmap_constructor11, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxBitmap_constructor11 }}; -// %override wxLua_wxBitmapFromData_constructor -// %win wxBitmap(void* data, wxBitmapType type, int width, int height, int depth = -1) -#ifdef __WXMSW__ -static int LUACALL wxLua_wxBitmapFromData_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = -1 - int depth = (argCount >= 5 ? (int)wxlua_getintegertype(L, 5) : -1); - // int height - int height = (int)wxlua_getintegertype(L, 4); - // int width - int width = (int)wxlua_getintegertype(L, 3); - // int type - wxBitmapType type = (wxBitmapType)wxlua_getintegertype(L, 2); - // void* data - void *data = (void *)lua_tostring(L, 1); - // call constructor - wxBitmap *returns = new wxBitmap(data, type, width, height, depth); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - // return the number of parameters - return 1; -} -#endif - - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -#define wxLua_wxBitmap_constructor10 wxLua_wxBitmapFromBits_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor10[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor10(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor10[1] = {{ wxLua_wxBitmap_constructor10, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxBitmap_constructor10 }}; -// %override wxLua_wxBitmapFromBits_constructor -// %win wxBitmap(const char* bits, int width, int height, int depth = -1) -static int LUACALL wxLua_wxBitmapFromBits_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = -1 - int depth = (argCount >= 4 ? (int)wxlua_getintegertype(L, 4) : -1); - // int height - int height = (int)wxlua_getintegertype(L, 3); - // int width - int width = (int)wxlua_getintegertype(L, 2); - // const char* bits - const char *bits = (const char *)lua_tostring(L, 1); - // call constructor - wxBitmap *returns = new wxBitmap(bits, width, height, depth); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - // return the number of parameters - return 1; -} - - -#define wxLua_wxBitmap_constructor9 wxLua_wxBitmapFromBitTable_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor9[] = { &wxluatype_TTABLE, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor9(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor9[1] = {{ wxLua_wxBitmap_constructor9, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxBitmap_constructor9 }}; -// %override wxLua_wxBitmapFromBitTable_constructor -// %win wxBitmap(LuaTable charTable, int width, int height, int depth = -1) -static int LUACALL wxLua_wxBitmapFromBitTable_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = -1 - int depth = (argCount >= 4 ? (int)wxlua_getintegertype(L, 4) : -1); - // int height - int height = (int)wxlua_getintegertype(L, 3); - // int width - int width = (int)wxlua_getintegertype(L, 2); - - if (!wxlua_iswxluatype(lua_type(L, 1), WXLUA_TTABLE)) - wxlua_argerror(L, 1, wxT("a 'table'")); - - // const char* bits - int size = height*width/8; - char *bits = (char*)malloc(size); - - for (int n = 0; n < size; ++n) - { - lua_rawgeti(L, 1, n+1); // Lua array starts at 1 - - if (!wxlua_iswxluatype(lua_type(L, -1), WXLUA_TINTEGER)) - { - free(bits); - wxlua_argerror(L, 1, wxT("a 'table of chars of size width*height/8'")); - } - - bits[n] = (char)lua_tonumber(L, -1); - lua_pop(L, 1); - } - - // call constructor - wxBitmap *returns = new wxBitmap(bits, width, height, depth); - free(bits); - - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - // return the number of parameters - return 1; -} - - - -#if (((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor8[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor8(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor8[1] = {{ wxLua_wxBitmap_constructor8, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_constructor8 }}; -// !%wxchkver_3_1_2 wxBitmap(const wxImage &image, int depth = wxBITMAP_SCREEN_DEPTH); -static int LUACALL wxLua_wxBitmap_constructor8(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = wxBITMAP_SCREEN_DEPTH - int depth = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBITMAP_SCREEN_DEPTH); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call constructor - wxBitmap* returns = new wxBitmap(*image, depth); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor7[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxBitmap_constructor7(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor7[1] = {{ wxLua_wxBitmap_constructor7, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_constructor7 }}; -// %wxchkver_3_1_0 & %win wxBitmap(const wxCursor& cursor); // %override windows only -static int LUACALL wxLua_wxBitmap_constructor7(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call constructor - wxBitmap* returns = new wxBitmap(*cursor); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor) - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor6[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor6(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor6[1] = {{ wxLua_wxBitmap_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxBitmap_constructor6 }}; -// %wxchkver_3_1_2 wxBitmap(const wxImage &image, int depth = wxBITMAP_SCREEN_DEPTH, double scale = 1.0); -static int LUACALL wxLua_wxBitmap_constructor6(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double scale = 1.0 - double scale = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 1.0); - // int depth = wxBITMAP_SCREEN_DEPTH - int depth = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBITMAP_SCREEN_DEPTH); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call constructor - wxBitmap* returns = new wxBitmap(*image, depth, scale); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor5[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor5[1] = {{ wxLua_wxBitmap_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_constructor5 }}; -// wxBitmap(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxBitmap_constructor5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxBitmap* returns = new wxBitmap(name, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor4[] = { &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor4[1] = {{ wxLua_wxBitmap_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_constructor4 }}; -// %wxchkver_3_0_0 wxBitmap(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH); -static int LUACALL wxLua_wxBitmap_constructor4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = wxBITMAP_SCREEN_DEPTH - int depth = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBITMAP_SCREEN_DEPTH); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxBitmap* returns = new wxBitmap(*sz, depth); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor3[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor3[1] = {{ wxLua_wxBitmap_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBitmap_constructor3 }}; -// wxBitmap(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH); -static int LUACALL wxLua_wxBitmap_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = wxBITMAP_SCREEN_DEPTH - int depth = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBITMAP_SCREEN_DEPTH); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // int width - int width = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxBitmap* returns = new wxBitmap(width, height, depth); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor2[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBitmap_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor2[1] = {{ wxLua_wxBitmap_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_constructor2 }}; -// %wxchkver_3_0_0 wxBitmap(const char bits[], int width, int height, int depth = 1); -static int LUACALL wxLua_wxBitmap_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int depth = 1 - int depth = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // const char bits - const char * bits = (const char *)lua_tostring(L, 1); - // call constructor - wxBitmap* returns = new wxBitmap(bits, width, height, depth); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBitmap_constructor1[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxBitmap_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor1[1] = {{ wxLua_wxBitmap_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_constructor1 }}; -// wxBitmap(const wxBitmap& bitmap); -static int LUACALL wxLua_wxBitmap_constructor1(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxBitmap* returns = new wxBitmap(*bitmap); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static int LUACALL wxLua_wxBitmap_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor[1] = {{ wxLua_wxBitmap_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxBitmap(); -static int LUACALL wxLua_wxBitmap_constructor(lua_State *L) -{ - // call constructor - wxBitmap* returns = new wxBitmap(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxBitmap) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_Create_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC) - { wxLua_wxBitmap_Create2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxBitmap_Create2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBitmap_Create1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBitmap_Create1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBitmap_Create, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_Create }, -}; -static int s_wxluafunc_wxLua_wxBitmap_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmap_Create_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxBitmap) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_SaveFile_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { wxLua_wxBitmap_SaveFile1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_SaveFile1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { wxLua_wxBitmap_SaveFile, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_SaveFile }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -}; -static int s_wxluafunc_wxLua_wxBitmap_SaveFile_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmap_SaveFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) - -#if (wxLUA_USE_wxBitmap)||(((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap))||((((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBitmap_constructor_overload[] = -{ - { wxLua_wxBitmap_constructor12, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_constructor12 }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { wxLua_wxBitmap_constructor11, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxBitmap_constructor11 }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { wxLua_wxBitmap_constructor10, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxBitmap_constructor10 }, - { wxLua_wxBitmap_constructor9, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxBitmap_constructor9 }, - -#if (((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxBitmap_constructor8, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_constructor8 }, -#endif // (((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor) - { wxLua_wxBitmap_constructor7, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_constructor7 }, -#endif // (((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor) - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxBitmap_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxBitmap_constructor6 }, -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxBitmap_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_constructor5 }, - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBitmap_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBitmap_constructor4 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBitmap_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBitmap_constructor3 }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { wxLua_wxBitmap_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxBitmap_constructor2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { wxLua_wxBitmap_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBitmap_constructor1 }, - { wxLua_wxBitmap_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxBitmap_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBitmap_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxBitmap)||(((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap))||((((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) - -void wxLua_wxBitmap_delete_function(void** p) -{ - wxBitmap* o = (wxBitmap*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBitmap_methods[] = { -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { "ConvertToDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_ConvertToDisabled, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ConvertToImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_ConvertToImage, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxIcon) - { "CopyFromIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_CopyFromIcon, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxIcon) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxBitmap) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_Create_overload, s_wxluafunc_wxLua_wxBitmap_Create_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxBitmap) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) - { "CreateScaled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_CreateScaled, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) - - { "GetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetDepth, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetHeight, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - { "GetMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetMask, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "GetPalette", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetPalette, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) - { "GetScaleFactor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetScaleFactor, 1, NULL }, - { "GetScaledHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetScaledHeight, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { "GetScaledSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetScaledSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) - { "GetScaledWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetScaledWidth, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect) - { "GetSubBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetSubBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect) - - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_GetWidth, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap) - - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_LoadFile, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { "NewFromPNGData", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxBitmap_NewFromPNGData, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_Ok, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_SaveFile_overload, s_wxluafunc_wxLua_wxBitmap_SaveFile_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) - - { "SetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_SetDepth, 1, NULL }, - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_SetHeight, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - { "SetMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_SetMask, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "SetPalette", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_SetPalette, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_SetWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBitmap_delete, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBitmap_op_set, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap) - -#if (wxLUA_USE_wxBitmap)||(((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap))||((((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) - { "wxBitmap", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBitmap_constructor_overload, s_wxluafunc_wxLua_wxBitmap_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxBitmap)||(((defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap))||((((!wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,1,0) && defined(__WXMSW__)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxCursor))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxBitmap)) - - { 0, 0, 0, 0 }, -}; - -int wxBitmap_methodCount = sizeof(wxBitmap_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxBitmap - - -#if wxLUA_USE_wxCursor -// --------------------------------------------------------------------------- -// Bind class wxCursor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCursor' -int wxluatype_wxCursor = WXLUA_TUNKNOWN; - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_GetDepth[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_GetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_GetDepth[1] = {{ wxLua_wxCursor_GetDepth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCursor_GetDepth }}; -// %win int GetDepth(); // %add only for windows -static int LUACALL wxLua_wxCursor_GetDepth(lua_State *L) -{ - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call GetDepth - int returns = (self->GetDepth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_GetHeight[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_GetHeight[1] = {{ wxLua_wxCursor_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCursor_GetHeight }}; -// %win int GetHeight(); // %add only for windows -static int LUACALL wxLua_wxCursor_GetHeight(lua_State *L) -{ - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_GetHotSpot[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_GetHotSpot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_GetHotSpot[1] = {{ wxLua_wxCursor_GetHotSpot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCursor_GetHotSpot }}; -// %wxchkver_3_1_0 wxPoint GetHotSpot() const; -static int LUACALL wxLua_wxCursor_GetHotSpot(lua_State *L) -{ - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call GetHotSpot - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetHotSpot()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_GetWidth[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_GetWidth[1] = {{ wxLua_wxCursor_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCursor_GetWidth }}; -// %win int GetWidth(); // %add only for windows -static int LUACALL wxLua_wxCursor_GetWidth(lua_State *L) -{ - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_IsOk[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_IsOk[1] = {{ wxLua_wxCursor_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCursor_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxCursor_IsOk(lua_State *L) -{ - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_Ok[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_Ok[1] = {{ wxLua_wxCursor_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCursor_Ok }}; -// bool Ok(); // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxCursor_Ok(lua_State *L) -{ - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_delete[] = { &wxluatype_wxCursor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCursor_delete }}; - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_op_set1[] = { &wxluatype_wxCursor, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_op_set1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_op_set1[1] = {{ wxLua_wxCursor_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCursor_op_set1 }}; -// !%wxchkver_3_0_0 wxCursor& operator=(const wxCursor& c) const; -static int LUACALL wxLua_wxCursor_op_set1(lua_State *L) -{ - // const wxCursor c - const wxCursor * c = (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor); - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call op_set - (*self)=(*c); - wxCursor* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_op_set[] = { &wxluatype_wxCursor, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_op_set(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_op_set[1] = {{ wxLua_wxCursor_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCursor_op_set }}; -// wxCursor& operator =(const wxCursor& cursor); -static int LUACALL wxLua_wxCursor_op_set(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor); - // get this - wxCursor * self = (wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call op_set - (*self)=(*cursor); - wxCursor* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_constructor5[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCursor_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor5[1] = {{ wxLua_wxCursor_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor5 }}; -// !%wxchkver_3_0_0 wxCursor(int id); -static int LUACALL wxLua_wxCursor_constructor5(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxCursor* returns = new wxCursor(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_constructor4[] = { &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxCursor_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor4[1] = {{ wxLua_wxCursor_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor4 }}; -// %wxchkver_3_0_0 wxCursor(const wxCursor& cursor); -static int LUACALL wxLua_wxCursor_constructor4(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursor); - // call constructor - wxCursor* returns = new wxCursor(*cursor); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_constructor3[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxCursor_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor3[1] = {{ wxLua_wxCursor_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor3 }}; -// wxCursor(const wxImage& image); -static int LUACALL wxLua_wxCursor_constructor3(lua_State *L) -{ - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call constructor - wxCursor* returns = new wxCursor(*image); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_constructor2[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxCursor_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor2[1] = {{ wxLua_wxCursor_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor2 }}; -// %wxchkver_3_0_0 wxCursor(wxStockCursor cursorId); -static int LUACALL wxLua_wxCursor_constructor2(lua_State *L) -{ - // wxStockCursor cursorId - wxStockCursor cursorId = (wxStockCursor)wxlua_getenumtype(L, 1); - // call constructor - wxCursor* returns = new wxCursor(cursorId); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursor_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCursor_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor1[1] = {{ wxLua_wxCursor_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxCursor_constructor1 }}; -// %wxchkver_2_9_0 wxCursor(const wxString& cursorName, wxBitmapType type, int hotSpotX = 0, int hotSpotY = 0); -static int LUACALL wxLua_wxCursor_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int hotSpotY = 0 - int hotSpotY = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int hotSpotX = 0 - int hotSpotX = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 2); - // const wxString cursorName - const wxString cursorName = wxlua_getwxStringtype(L, 1); - // call constructor - wxCursor* returns = new wxCursor(cursorName, type, hotSpotX, hotSpotY); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -static int LUACALL wxLua_wxCursor_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor[1] = {{ wxLua_wxCursor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCursor(); -static int LUACALL wxLua_wxCursor_constructor(lua_State *L) -{ - // call constructor - wxCursor* returns = new wxCursor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_op_set_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCursor_op_set1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCursor_op_set }, -}; -static int s_wxluafunc_wxLua_wxCursor_op_set_overload_count = sizeof(s_wxluafunc_wxLua_wxCursor_op_set_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||((wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursor_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor5 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor4 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxCursor_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor3 }, -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxCursor_constructor2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxCursor_constructor1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor) - { wxLua_wxCursor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCursor_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCursor_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||((wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) - -void wxLua_wxCursor_delete_function(void** p) -{ - wxCursor* o = (wxCursor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCursor_methods[] = { -#if (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) - { "GetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_GetDepth, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_GetHeight, 1, NULL }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) - { "GetHotSpot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_GetHotSpot, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_GetWidth, 1, NULL }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxCursor) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_Ok, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCursor_delete, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursor_op_set_overload, s_wxluafunc_wxLua_wxCursor_op_set_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||((wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) - { "wxCursor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCursor_constructor_overload, s_wxluafunc_wxLua_wxCursor_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||((wxLUA_USE_wxCursor) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxCursor))||(wxLUA_USE_wxCursor) - - { 0, 0, 0, 0 }, -}; - -int wxCursor_methodCount = sizeof(wxCursor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCursor - - -#if wxLUA_USE_wxMask -// --------------------------------------------------------------------------- -// Bind class wxMask -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMask' -int wxluatype_wxMask = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_Create2[] = { &wxluatype_wxMask, &wxluatype_wxBitmap, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxMask_Create2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_Create2[1] = {{ wxLua_wxMask_Create2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMask_Create2 }}; -// bool Create(const wxBitmap& bitmap, const wxColour& colour); -static int LUACALL wxLua_wxMask_Create2(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMask * self = (wxMask *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMask); - // call Create - bool returns = (self->Create(*bitmap, *colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_Create1[] = { &wxluatype_wxMask, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMask_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_Create1[1] = {{ wxLua_wxMask_Create1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMask_Create1 }}; -// bool Create(const wxBitmap& bitmap); -static int LUACALL wxLua_wxMask_Create1(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMask * self = (wxMask *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMask); - // call Create - bool returns = (self->Create(*bitmap)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_Create[] = { &wxluatype_wxMask, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMask_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_Create[1] = {{ wxLua_wxMask_Create, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMask_Create }}; -// %win bool Create(const wxBitmap& bitmap, int index); -static int LUACALL wxLua_wxMask_Create(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMask * self = (wxMask *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMask); - // call Create - bool returns = (self->Create(*bitmap, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_GetBitmap[] = { &wxluatype_wxMask, NULL }; -static int LUACALL wxLua_wxMask_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_GetBitmap[1] = {{ wxLua_wxMask_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMask_GetBitmap }}; -// %wxchkver_3_0_0 wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxMask_GetBitmap(lua_State *L) -{ - // get this - wxMask * self = (wxMask *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMask); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_delete[] = { &wxluatype_wxMask, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMask_delete }}; - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_op_set[] = { &wxluatype_wxMask, &wxluatype_wxMask, NULL }; -static int LUACALL wxLua_wxMask_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_op_set[1] = {{ wxLua_wxMask_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMask_op_set }}; -// !%wxchkver_3_0_0 wxMask& operator=(const wxMask& m) const; -static int LUACALL wxLua_wxMask_op_set(lua_State *L) -{ - // const wxMask m - const wxMask * m = (const wxMask *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMask); - // get this - wxMask * self = (wxMask *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMask); - // call op_set - (*self)=(*m); - wxMask* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMask); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxMask) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_constructor3[] = { &wxluatype_wxBitmap, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxMask_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_constructor3[1] = {{ wxLua_wxMask_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMask_constructor3 }}; -// wxMask(const wxBitmap& bitmap, const wxColour& colour); -static int LUACALL wxLua_wxMask_constructor3(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxMask* returns = new wxMask(*bitmap, *colour); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMask); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMask); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_constructor2[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMask_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_constructor2[1] = {{ wxLua_wxMask_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMask_constructor2 }}; -// wxMask(const wxBitmap& bitmap); -static int LUACALL wxLua_wxMask_constructor2(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxMask* returns = new wxMask(*bitmap); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMask); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMask); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if (((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMask_constructor1[] = { &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMask_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_constructor1[1] = {{ wxLua_wxMask_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMask_constructor1 }}; -// %win wxMask(const wxBitmap& bitmap, int index); -static int LUACALL wxLua_wxMask_constructor1(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxMask* returns = new wxMask(*bitmap, index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMask); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMask); - - return 1; -} - -#endif // (((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask) - -static int LUACALL wxLua_wxMask_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_constructor[1] = {{ wxLua_wxMask_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMask(); -static int LUACALL wxLua_wxMask_constructor(lua_State *L) -{ - // call constructor - wxMask* returns = new wxMask(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMask); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMask); - - return 1; -} - - - - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||(((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_Create_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) - { wxLua_wxMask_Create2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMask_Create2 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - { wxLua_wxMask_Create1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMask_Create1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) - { wxLua_wxMask_Create, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMask_Create }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxMask_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxMask_Create_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||(((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||((((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask))||(wxLUA_USE_wxMask) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMask_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) - { wxLua_wxMask_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMask_constructor3 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - { wxLua_wxMask_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMask_constructor2 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask) - -#if (((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask) - { wxLua_wxMask_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMask_constructor1 }, -#endif // (((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask) - { wxLua_wxMask_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxMask_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMask_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||((((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask))||(wxLUA_USE_wxMask) - -void wxLua_wxMask_delete_function(void** p) -{ - wxMask* o = (wxMask*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMask_methods[] = { -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||(((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMask_Create_overload, s_wxluafunc_wxLua_wxMask_Create_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||(((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMask_GetBitmap, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMask_delete, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxMask) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMask_op_set, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxMask) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||((((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask))||(wxLUA_USE_wxMask) - { "wxMask", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMask_constructor_overload, s_wxluafunc_wxLua_wxMask_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxMask))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMask))||((((defined(__WXMSW__)) && (wxLUA_USE_wxMask)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxMask))||(wxLUA_USE_wxMask) - - { 0, 0, 0, 0 }, -}; - -int wxMask_methodCount = sizeof(wxMask_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMask - - -#if wxLUA_USE_wxImageList -// --------------------------------------------------------------------------- -// Bind class wxImageList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImageList' -int wxluatype_wxImageList = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Add2[] = { &wxluatype_wxImageList, &wxluatype_wxIcon, NULL }; -static int LUACALL wxLua_wxImageList_Add2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Add2[1] = {{ wxLua_wxImageList_Add2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageList_Add2 }}; -// int Add(const wxIcon& icon); -static int LUACALL wxLua_wxImageList_Add2(lua_State *L) -{ - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Add - int returns = (self->Add(*icon)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Add1[] = { &wxluatype_wxImageList, &wxluatype_wxBitmap, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxImageList_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Add1[1] = {{ wxLua_wxImageList_Add1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImageList_Add1 }}; -// int Add(const wxBitmap& bitmap, const wxColour& maskColour); -static int LUACALL wxLua_wxImageList_Add1(lua_State *L) -{ - // const wxColour maskColour - const wxColour * maskColour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Add - int returns = (self->Add(*bitmap, *maskColour)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Add[] = { &wxluatype_wxImageList, &wxluatype_wxBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxImageList_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Add[1] = {{ wxLua_wxImageList_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxImageList_Add }}; -// int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap); -static int LUACALL wxLua_wxImageList_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap mask = wxNullBitmap - const wxBitmap * mask = (argCount >= 3 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Add - int returns = (self->Add(*bitmap, *mask)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Draw[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImageList_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Draw[1] = {{ wxLua_wxImageList_Draw, WXLUAMETHOD_METHOD, 5, 7, s_wxluatypeArray_wxLua_wxImageList_Draw }}; -// bool Draw(int index, wxDC& dc, int x, int y, int flags = wxIMAGELIST_DRAW_NORMAL, bool solidBackground = false); -static int LUACALL wxLua_wxImageList_Draw(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool solidBackground = false - bool solidBackground = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : false); - // int flags = wxIMAGELIST_DRAW_NORMAL - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxIMAGELIST_DRAW_NORMAL); - // int y - int y = (int)wxlua_getnumbertype(L, 5); - // int x - int x = (int)wxlua_getnumbertype(L, 4); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Draw - bool returns = (self->Draw(index, *dc, x, y, flags, solidBackground)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_GetBitmap[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageList_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_GetBitmap[1] = {{ wxLua_wxImageList_GetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageList_GetBitmap }}; -// wxBitmap GetBitmap(int index) const; -static int LUACALL wxLua_wxImageList_GetBitmap(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_GetIcon[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageList_GetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_GetIcon[1] = {{ wxLua_wxImageList_GetIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageList_GetIcon }}; -// wxIcon GetIcon(int index) const; -static int LUACALL wxLua_wxImageList_GetIcon(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIcon(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_GetImageCount[] = { &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxImageList_GetImageCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_GetImageCount[1] = {{ wxLua_wxImageList_GetImageCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageList_GetImageCount }}; -// int GetImageCount(); -static int LUACALL wxLua_wxImageList_GetImageCount(lua_State *L) -{ - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call GetImageCount - int returns = (self->GetImageCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_GetSize[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageList_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_GetSize[1] = {{ wxLua_wxImageList_GetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageList_GetSize }}; -// %override wxLua_wxImageList_GetSize -// void GetSize(int index, int& width, int& height) -static int LUACALL wxLua_wxImageList_GetSize(lua_State *L) -{ - // int& height - int height; - // int& width - int width; - // int index - int index = (int)wxlua_getintegertype(L, 2); - // get this - wxImageList *self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call GetSize - self->GetSize(index, width, height); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Remove[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageList_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Remove[1] = {{ wxLua_wxImageList_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageList_Remove }}; -// bool Remove(int index); -static int LUACALL wxLua_wxImageList_Remove(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Remove - bool returns = (self->Remove(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_RemoveAll[] = { &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxImageList_RemoveAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_RemoveAll[1] = {{ wxLua_wxImageList_RemoveAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageList_RemoveAll }}; -// bool RemoveAll(); -static int LUACALL wxLua_wxImageList_RemoveAll(lua_State *L) -{ - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call RemoveAll - bool returns = (self->RemoveAll()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Replace1[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxImageList_Replace1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Replace1[1] = {{ wxLua_wxImageList_Replace1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImageList_Replace1 }}; -// %gtk|%mac bool Replace(int index, const wxBitmap& bitmap); -static int LUACALL wxLua_wxImageList_Replace1(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Replace - bool returns = (self->Replace(index, *bitmap)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_Replace[] = { &wxluatype_wxImageList, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxImageList_Replace(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Replace[1] = {{ wxLua_wxImageList_Replace, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImageList_Replace }}; -// %win bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap); -static int LUACALL wxLua_wxImageList_Replace(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap mask = wxNullBitmap - const wxBitmap * mask = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageList * self = (wxImageList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageList); - // call Replace - bool returns = (self->Replace(index, *bitmap, *mask)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_delete[] = { &wxluatype_wxImageList, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxImageList_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageList_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageList_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_constructor[1] = {{ wxLua_wxImageList_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxImageList_constructor }}; -// wxImageList(int width, int height, bool mask = true, int initialCount = 1); -static int LUACALL wxLua_wxImageList_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int initialCount = 1 - int initialCount = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // bool mask = true - bool mask = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // int width - int width = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxImageList* returns = new wxImageList(width, height, mask, initialCount); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImageList); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - - - - -#if ((wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Add_overload[] = -{ - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) - { wxLua_wxImageList_Add2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageList_Add2 }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList) - { wxLua_wxImageList_Add1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImageList_Add1 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) - { wxLua_wxImageList_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxImageList_Add }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) -}; -static int s_wxluafunc_wxLua_wxImageList_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxImageList_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList)) - -#if (((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap))||(((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageList_Replace_overload[] = -{ - -#if ((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) - { wxLua_wxImageList_Replace1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImageList_Replace1 }, -#endif // ((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) - { wxLua_wxImageList_Replace, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImageList_Replace }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxImageList_Replace_overload_count = sizeof(s_wxluafunc_wxLua_wxImageList_Replace_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap))||(((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap)) - -void wxLua_wxImageList_delete_function(void** p) -{ - wxImageList* o = (wxImageList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImageList_methods[] = { -#if ((wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_Add_overload, s_wxluafunc_wxLua_wxImageList_Add_overload_count, 0 }, -#endif // ((wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxImageList))||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList)) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxImageList) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_Draw, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_GetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImageList) - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) - { "GetIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_GetIcon, 1, NULL }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxImageList) - - { "GetImageCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_GetImageCount, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_GetSize, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_Remove, 1, NULL }, - { "RemoveAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_RemoveAll, 1, NULL }, - -#if (((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap))||(((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap)) - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageList_Replace_overload, s_wxluafunc_wxLua_wxImageList_Replace_overload_count, 0 }, -#endif // (((defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap))||(((defined(__WXMSW__)) && (wxLUA_USE_wxImageList)) && (wxLUA_USE_wxBitmap)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxImageList_delete, 1, NULL }, - { "wxImageList", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxImageList_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxImageList_methodCount = sizeof(wxImageList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImageList - - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) -// --------------------------------------------------------------------------- -// Bind struct wxMatrix2D -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMatrix2D' -int wxluatype_wxMatrix2D = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMatrix2D_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMatrix2D_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMatrix2D_constructor[1] = {{ wxLua_wxMatrix2D_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxMatrix2D_constructor }}; -// wxMatrix2D(wxDouble v11 = 1, wxDouble v12 = 0, wxDouble v21 = 0, wxDouble v22 = 1); -static int LUACALL wxLua_wxMatrix2D_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble v22 = 1 - wxDouble v22 = (argCount >= 4 ? (wxDouble)wxlua_getnumbertype(L, 4) : 1); - // wxDouble v21 = 0 - wxDouble v21 = (argCount >= 3 ? (wxDouble)wxlua_getnumbertype(L, 3) : 0); - // wxDouble v12 = 0 - wxDouble v12 = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 0); - // wxDouble v11 = 1 - wxDouble v11 = (argCount >= 1 ? (wxDouble)wxlua_getnumbertype(L, 1) : 1); - // call constructor - wxMatrix2D* returns = new wxMatrix2D(v11, v12, v21, v22); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMatrix2D); - - return 1; -} - - - - -void wxLua_wxMatrix2D_delete_function(void** p) -{ - wxMatrix2D* o = (wxMatrix2D*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMatrix2D_methods[] = { - { "wxMatrix2D", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMatrix2D_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMatrix2D_methodCount = sizeof(wxMatrix2D_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - - -#if (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) -// --------------------------------------------------------------------------- -// Bind class wxAffineMatrix2D -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAffineMatrix2D' -int wxluatype_wxAffineMatrix2D = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Concat[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_wxAffineMatrix2D, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Concat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Concat[1] = {{ wxLua_wxAffineMatrix2D_Concat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Concat }}; -// void Concat(const wxAffineMatrix2D& t); -static int LUACALL wxLua_wxAffineMatrix2D_Concat(lua_State *L) -{ - // const wxAffineMatrix2D t - const wxAffineMatrix2D * t = (const wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAffineMatrix2D); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Concat - self->Concat(*t); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Get[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_wxMatrix2D, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Get[1] = {{ wxLua_wxAffineMatrix2D_Get, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Get }}; -// void Get(wxMatrix2D* mat2D, wxPoint2DDouble* tr) const; -static int LUACALL wxLua_wxAffineMatrix2D_Get(lua_State *L) -{ - // wxPoint2DDouble tr - wxPoint2DDouble * tr = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint2DDouble); - // wxMatrix2D mat2D - wxMatrix2D * mat2D = (wxMatrix2D *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMatrix2D); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Get - self->Get(mat2D, tr); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Invert[] = { &wxluatype_wxAffineMatrix2D, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Invert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Invert[1] = {{ wxLua_wxAffineMatrix2D_Invert, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Invert }}; -// bool Invert(); -static int LUACALL wxLua_wxAffineMatrix2D_Invert(lua_State *L) -{ - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Invert - bool returns = (self->Invert()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_IsEqual[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_wxAffineMatrix2D, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_IsEqual(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_IsEqual[1] = {{ wxLua_wxAffineMatrix2D_IsEqual, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_IsEqual }}; -// void IsEqual(const wxAffineMatrix2D& t); -static int LUACALL wxLua_wxAffineMatrix2D_IsEqual(lua_State *L) -{ - // const wxAffineMatrix2D t - const wxAffineMatrix2D * t = (const wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAffineMatrix2D); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call IsEqual - self->IsEqual(*t); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_IsIdentity[] = { &wxluatype_wxAffineMatrix2D, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_IsIdentity(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_IsIdentity[1] = {{ wxLua_wxAffineMatrix2D_IsIdentity, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAffineMatrix2D_IsIdentity }}; -// bool IsIdentity() const; -static int LUACALL wxLua_wxAffineMatrix2D_IsIdentity(lua_State *L) -{ - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call IsIdentity - bool returns = (self->IsIdentity()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Mirror[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Mirror(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Mirror[1] = {{ wxLua_wxAffineMatrix2D_Mirror, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Mirror }}; -// void Mirror(int direction = wxHORIZONTAL); -static int LUACALL wxLua_wxAffineMatrix2D_Mirror(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxHORIZONTAL - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxHORIZONTAL); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Mirror - self->Mirror(direction); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Rotate[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Rotate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Rotate[1] = {{ wxLua_wxAffineMatrix2D_Rotate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Rotate }}; -// void Rotate(wxDouble cRadians); -static int LUACALL wxLua_wxAffineMatrix2D_Rotate(lua_State *L) -{ - // wxDouble cRadians - wxDouble cRadians = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Rotate - self->Rotate(cRadians); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Scale[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Scale[1] = {{ wxLua_wxAffineMatrix2D_Scale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Scale }}; -// void Scale(wxDouble xScale, wxDouble yScale); -static int LUACALL wxLua_wxAffineMatrix2D_Scale(lua_State *L) -{ - // wxDouble yScale - wxDouble yScale = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble xScale - wxDouble xScale = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Scale - self->Scale(xScale, yScale); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Set[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_wxMatrix2D, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Set[1] = {{ wxLua_wxAffineMatrix2D_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Set }}; -// void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr); -static int LUACALL wxLua_wxAffineMatrix2D_Set(lua_State *L) -{ - // const wxPoint2DDouble tr - const wxPoint2DDouble * tr = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint2DDouble); - // const wxMatrix2D mat2D - const wxMatrix2D * mat2D = (const wxMatrix2D *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMatrix2D); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Set - self->Set(*mat2D, *tr); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformDistance1[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_TransformDistance1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance1[1] = {{ wxLua_wxAffineMatrix2D_TransformDistance1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformDistance1 }}; -// void TransformDistance(wxDouble* dx, wxDouble* dy) const; -static int LUACALL wxLua_wxAffineMatrix2D_TransformDistance1(lua_State *L) -{ - // wxDouble dy - wxDouble * dy = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble dx - wxDouble * dx = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call TransformDistance - self->TransformDistance(dx, dy); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformDistance[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_TransformDistance(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance[1] = {{ wxLua_wxAffineMatrix2D_TransformDistance, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformDistance }}; -// wxPoint2DDouble TransformDistance(const wxPoint2DDouble& p) const; -static int LUACALL wxLua_wxAffineMatrix2D_TransformDistance(lua_State *L) -{ - // const wxPoint2DDouble p - const wxPoint2DDouble * p = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call TransformDistance - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->TransformDistance(*p)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformPoint1[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_TransformPoint1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint1[1] = {{ wxLua_wxAffineMatrix2D_TransformPoint1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformPoint1 }}; -// void TransformPoint(wxDouble* x, wxDouble* y) const; -static int LUACALL wxLua_wxAffineMatrix2D_TransformPoint1(lua_State *L) -{ - // wxDouble y - wxDouble * y = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble x - wxDouble * x = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call TransformPoint - self->TransformPoint(x, y); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformPoint[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_TransformPoint(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint[1] = {{ wxLua_wxAffineMatrix2D_TransformPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformPoint }}; -// wxPoint2DDouble TransformPoint(const wxPoint2DDouble& p) const; -static int LUACALL wxLua_wxAffineMatrix2D_TransformPoint(lua_State *L) -{ - // const wxPoint2DDouble p - const wxPoint2DDouble * p = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call TransformPoint - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->TransformPoint(*p)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_Translate[] = { &wxluatype_wxAffineMatrix2D, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxAffineMatrix2D_Translate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_Translate[1] = {{ wxLua_wxAffineMatrix2D_Translate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_Translate }}; -// void Translate(wxDouble dx, wxDouble dy); -static int LUACALL wxLua_wxAffineMatrix2D_Translate(lua_State *L) -{ - // wxDouble dy - wxDouble dy = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble dx - wxDouble dx = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxAffineMatrix2D * self = (wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAffineMatrix2D); - // call Translate - self->Translate(dx, dy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAffineMatrix2D_delete[] = { &wxluatype_wxAffineMatrix2D, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAffineMatrix2D_delete }}; - -static int LUACALL wxLua_wxAffineMatrix2D_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_constructor[1] = {{ wxLua_wxAffineMatrix2D_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxAffineMatrix2D(); -static int LUACALL wxLua_wxAffineMatrix2D_constructor(lua_State *L) -{ - // call constructor - wxAffineMatrix2D* returns = new wxAffineMatrix2D(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAffineMatrix2D); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAffineMatrix2D); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY))||(((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance_overload[] = -{ - { wxLua_wxAffineMatrix2D_TransformDistance1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformDistance1 }, - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { wxLua_wxAffineMatrix2D_TransformDistance, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformDistance }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -}; -static int s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance_overload_count = sizeof(s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint_overload[] = -{ - { wxLua_wxAffineMatrix2D_TransformPoint1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformPoint1 }, - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { wxLua_wxAffineMatrix2D_TransformPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAffineMatrix2D_TransformPoint }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -}; -static int s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint_overload_count = sizeof(s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY))||(((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY)) - -void wxLua_wxAffineMatrix2D_delete_function(void** p) -{ - wxAffineMatrix2D* o = (wxAffineMatrix2D*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAffineMatrix2D_methods[] = { - { "Concat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Concat, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "Get", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Get, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "Invert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Invert, 1, NULL }, - { "IsEqual", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_IsEqual, 1, NULL }, - { "IsIdentity", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_IsIdentity, 1, NULL }, - { "Mirror", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Mirror, 1, NULL }, - { "Rotate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Rotate, 1, NULL }, - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Scale, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Set, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY))||(((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY)) - { "TransformDistance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance_overload, s_wxluafunc_wxLua_wxAffineMatrix2D_TransformDistance_overload_count, 0 }, - { "TransformPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint_overload, s_wxluafunc_wxLua_wxAffineMatrix2D_TransformPoint_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY))||(((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) && (wxLUA_USE_Geometry && wxUSE_GEOMETRY)) - - { "Translate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAffineMatrix2D_Translate, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAffineMatrix2D_delete, 1, NULL }, - { "wxAffineMatrix2D", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAffineMatrix2D_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAffineMatrix2D_methodCount = sizeof(wxAffineMatrix2D_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY) - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDC' -int wxluatype_wxDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_Blit[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDC_Blit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_Blit[1] = {{ wxLua_wxDC_Blit, WXLUAMETHOD_METHOD, 8, 10, s_wxluatypeArray_wxLua_wxDC_Blit }}; -// bool Blit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, wxDC* source, wxCoord xsrc, wxCoord ysrc, wxRasterOperationMode logicalFunc = wxCOPY, bool useMask = false); -static int LUACALL wxLua_wxDC_Blit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool useMask = false - bool useMask = (argCount >= 10 ? wxlua_getbooleantype(L, 10) : false); - // wxRasterOperationMode logicalFunc = wxCOPY - wxRasterOperationMode logicalFunc = (argCount >= 9 ? (wxRasterOperationMode)wxlua_getenumtype(L, 9) : wxCOPY); - // wxCoord ysrc - wxCoord ysrc = (wxCoord)wxlua_getnumbertype(L, 8); - // wxCoord xsrc - wxCoord xsrc = (wxCoord)wxlua_getnumbertype(L, 7); - // wxDC source - wxDC * source = (wxDC *)wxluaT_getuserdatatype(L, 6, wxluatype_wxDC); - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord ydest - wxCoord ydest = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord xdest - wxCoord xdest = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call Blit - bool returns = (self->Blit(xdest, ydest, width, height, source, xsrc, ysrc, logicalFunc, useMask)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_CalcBoundingBox[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_CalcBoundingBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_CalcBoundingBox[1] = {{ wxLua_wxDC_CalcBoundingBox, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_CalcBoundingBox }}; -// void CalcBoundingBox(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxDC_CalcBoundingBox(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call CalcBoundingBox - self->CalcBoundingBox(x, y); - - return 0; -} - - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_CanUseTransformMatrix[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_CanUseTransformMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_CanUseTransformMatrix[1] = {{ wxLua_wxDC_CanUseTransformMatrix, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_CanUseTransformMatrix }}; -// %wxchkver_2_9_2 bool CanUseTransformMatrix() const; -static int LUACALL wxLua_wxDC_CanUseTransformMatrix(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call CanUseTransformMatrix - bool returns = (self->CanUseTransformMatrix()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_Clear[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_Clear[1] = {{ wxLua_wxDC_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxDC_Clear(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_CrossHair[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_CrossHair(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_CrossHair[1] = {{ wxLua_wxDC_CrossHair, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_CrossHair }}; -// void CrossHair(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxDC_CrossHair(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call CrossHair - self->CrossHair(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DestroyClippingRegion[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_DestroyClippingRegion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DestroyClippingRegion[1] = {{ wxLua_wxDC_DestroyClippingRegion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_DestroyClippingRegion }}; -// void DestroyClippingRegion(); -static int LUACALL wxLua_wxDC_DestroyClippingRegion(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DestroyClippingRegion - self->DestroyClippingRegion(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalX[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DeviceToLogicalX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DeviceToLogicalX[1] = {{ wxLua_wxDC_DeviceToLogicalX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalX }}; -// wxCoord DeviceToLogicalX(wxCoord x); -static int LUACALL wxLua_wxDC_DeviceToLogicalX(lua_State *L) -{ - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DeviceToLogicalX - wxCoord returns = (self->DeviceToLogicalX(x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalXRel[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DeviceToLogicalXRel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DeviceToLogicalXRel[1] = {{ wxLua_wxDC_DeviceToLogicalXRel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalXRel }}; -// wxCoord DeviceToLogicalXRel(wxCoord x); -static int LUACALL wxLua_wxDC_DeviceToLogicalXRel(lua_State *L) -{ - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DeviceToLogicalXRel - wxCoord returns = (self->DeviceToLogicalXRel(x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalY[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DeviceToLogicalY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DeviceToLogicalY[1] = {{ wxLua_wxDC_DeviceToLogicalY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalY }}; -// wxCoord DeviceToLogicalY(wxCoord y); -static int LUACALL wxLua_wxDC_DeviceToLogicalY(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DeviceToLogicalY - wxCoord returns = (self->DeviceToLogicalY(y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalYRel[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DeviceToLogicalYRel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DeviceToLogicalYRel[1] = {{ wxLua_wxDC_DeviceToLogicalYRel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DeviceToLogicalYRel }}; -// wxCoord DeviceToLogicalYRel(wxCoord y); -static int LUACALL wxLua_wxDC_DeviceToLogicalYRel(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DeviceToLogicalYRel - wxCoord returns = (self->DeviceToLogicalYRel(y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawArc[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawArc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawArc[1] = {{ wxLua_wxDC_DrawArc, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxDC_DrawArc }}; -// void DrawArc(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2, wxCoord xc, wxCoord yc); -static int LUACALL wxLua_wxDC_DrawArc(lua_State *L) -{ - // wxCoord yc - wxCoord yc = (wxCoord)wxlua_getnumbertype(L, 7); - // wxCoord xc - wxCoord xc = (wxCoord)wxlua_getnumbertype(L, 6); - // wxCoord y2 - wxCoord y2 = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord x2 - wxCoord x2 = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y1 - wxCoord y1 = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x1 - wxCoord x1 = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawArc - self->DrawArc(x1, y1, x2, y2, xc, yc); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawBitmap[] = { &wxluatype_wxDC, &wxluatype_wxBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDC_DrawBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawBitmap[1] = {{ wxLua_wxDC_DrawBitmap, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawBitmap }}; -// void DrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool transparent); -static int LUACALL wxLua_wxDC_DrawBitmap(lua_State *L) -{ - // bool transparent - bool transparent = wxlua_getbooleantype(L, 5); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 3); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawBitmap - self->DrawBitmap(*bitmap, x, y, transparent); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawCheckMark1[] = { &wxluatype_wxDC, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxDC_DrawCheckMark1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawCheckMark1[1] = {{ wxLua_wxDC_DrawCheckMark1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DrawCheckMark1 }}; -// void DrawCheckMark(const wxRect &rect); -static int LUACALL wxLua_wxDC_DrawCheckMark1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawCheckMark - self->DrawCheckMark(*rect); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawCheckMark[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawCheckMark(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawCheckMark[1] = {{ wxLua_wxDC_DrawCheckMark, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawCheckMark }}; -// void DrawCheckMark(wxCoord x, wxCoord y, wxCoord width, wxCoord height); -static int LUACALL wxLua_wxDC_DrawCheckMark(lua_State *L) -{ - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawCheckMark - self->DrawCheckMark(x, y, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawCircle[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawCircle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawCircle[1] = {{ wxLua_wxDC_DrawCircle, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDC_DrawCircle }}; -// void DrawCircle(wxCoord x, wxCoord y, wxCoord radius); -static int LUACALL wxLua_wxDC_DrawCircle(lua_State *L) -{ - // wxCoord radius - wxCoord radius = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawCircle - self->DrawCircle(x, y, radius); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawEllipse[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawEllipse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawEllipse[1] = {{ wxLua_wxDC_DrawEllipse, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawEllipse }}; -// void DrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height); -static int LUACALL wxLua_wxDC_DrawEllipse(lua_State *L) -{ - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawEllipse - self->DrawEllipse(x, y, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawEllipticArc[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawEllipticArc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawEllipticArc[1] = {{ wxLua_wxDC_DrawEllipticArc, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxDC_DrawEllipticArc }}; -// void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double start, double end); -static int LUACALL wxLua_wxDC_DrawEllipticArc(lua_State *L) -{ - // double end - double end = (double)wxlua_getnumbertype(L, 7); - // double start - double start = (double)wxlua_getnumbertype(L, 6); - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawEllipticArc - self->DrawEllipticArc(x, y, width, height, start, end); - - return 0; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawIcon[] = { &wxluatype_wxDC, &wxluatype_wxIcon, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawIcon[1] = {{ wxLua_wxDC_DrawIcon, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDC_DrawIcon }}; -// void DrawIcon(const wxIcon& icon, wxCoord x, wxCoord y); -static int LUACALL wxLua_wxDC_DrawIcon(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 3); - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawIcon - self->DrawIcon(*icon, x, y); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxIcon) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawLabel1[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawLabel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawLabel1[1] = {{ wxLua_wxDC_DrawLabel1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxDC_DrawLabel1 }}; -// void DrawLabel(const wxString& text, const wxRect& rect, int alignment = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1); -static int LUACALL wxLua_wxDC_DrawLabel1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int indexAccel = -1 - int indexAccel = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int alignment = wxALIGN_LEFT | wxALIGN_TOP - int alignment = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxALIGN_LEFT | wxALIGN_TOP); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawLabel - self->DrawLabel(text, *rect, alignment, indexAccel); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawLabel[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawLabel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawLabel[1] = {{ wxLua_wxDC_DrawLabel, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxDC_DrawLabel }}; -// void DrawLabel(const wxString& text, const wxBitmap& image, const wxRect& rect, int alignment = wxALIGN_LEFT | wxALIGN_TOP, int indexAccel = -1); //, wxRect *rectBounding = NULL); -static int LUACALL wxLua_wxDC_DrawLabel(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int indexAccel = -1 - int indexAccel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int alignment = wxALIGN_LEFT | wxALIGN_TOP - int alignment = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxALIGN_LEFT | wxALIGN_TOP); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // const wxBitmap image - const wxBitmap * image = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawLabel - self->DrawLabel(text, *image, *rect, alignment, indexAccel); - - return 0; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawLine[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawLine[1] = {{ wxLua_wxDC_DrawLine, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawLine }}; -// void DrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2); -static int LUACALL wxLua_wxDC_DrawLine(lua_State *L) -{ - // wxCoord y2 - wxCoord y2 = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord x2 - wxCoord x2 = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y1 - wxCoord y1 = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x1 - wxCoord x1 = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawLine - self->DrawLine(x1, y1, x2, y2); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawLines[] = { &wxluatype_wxDC, &wxluatype_TTABLE, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawLines[1] = {{ wxLua_wxDC_DrawLines, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxDC_DrawLines }}; -// void DrawLines(wxPointArray_FromLuaTable points, wxCoord xoffset = 0, wxCoord yoffset = 0); -static int LUACALL wxLua_wxDC_DrawLines(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxCoord yoffset = 0 - wxCoord yoffset = (argCount >= 4 ? (wxCoord)wxlua_getnumbertype(L, 4) : 0); - // wxCoord xoffset = 0 - wxCoord xoffset = (argCount >= 3 ? (wxCoord)wxlua_getnumbertype(L, 3) : 0); - // wxPointArray_FromLuaTable points - wxLuaSharedPtr > points = wxlua_getwxPointArray(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawLines - self->DrawLines((int)(points ? points->size() : 0), (points && (!points->empty())) ? &points->at(0) : NULL, xoffset, yoffset); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawPoint[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawPoint[1] = {{ wxLua_wxDC_DrawPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_DrawPoint }}; -// void DrawPoint(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxDC_DrawPoint(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawPoint - self->DrawPoint(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawPolygon[] = { &wxluatype_wxDC, &wxluatype_TTABLE, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDC_DrawPolygon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawPolygon[1] = {{ wxLua_wxDC_DrawPolygon, WXLUAMETHOD_METHOD, 2, 5, s_wxluatypeArray_wxLua_wxDC_DrawPolygon }}; -// void DrawPolygon(wxPointArray_FromLuaTable points, wxCoord xoffset = 0, wxCoord yoffset = 0, wxPolygonFillMode fill_style = wxODDEVEN_RULE); -static int LUACALL wxLua_wxDC_DrawPolygon(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPolygonFillMode fill_style = wxODDEVEN_RULE - wxPolygonFillMode fill_style = (argCount >= 5 ? (wxPolygonFillMode)wxlua_getenumtype(L, 5) : wxODDEVEN_RULE); - // wxCoord yoffset = 0 - wxCoord yoffset = (argCount >= 4 ? (wxCoord)wxlua_getnumbertype(L, 4) : 0); - // wxCoord xoffset = 0 - wxCoord xoffset = (argCount >= 3 ? (wxCoord)wxlua_getnumbertype(L, 3) : 0); - // wxPointArray_FromLuaTable points - wxLuaSharedPtr > points = wxlua_getwxPointArray(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawPolygon - self->DrawPolygon((int)(points ? points->size() : 0), (points && (!points->empty())) ? &points->at(0) : NULL, xoffset, yoffset, fill_style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawRectangle[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawRectangle[1] = {{ wxLua_wxDC_DrawRectangle, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawRectangle }}; -// void DrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height); -static int LUACALL wxLua_wxDC_DrawRectangle(lua_State *L) -{ - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawRectangle - self->DrawRectangle(x, y, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawRotatedText[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawRotatedText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawRotatedText[1] = {{ wxLua_wxDC_DrawRotatedText, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawRotatedText }}; -// void DrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle); -static int LUACALL wxLua_wxDC_DrawRotatedText(lua_State *L) -{ - // double angle - double angle = (double)wxlua_getnumbertype(L, 5); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 3); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawRotatedText - self->DrawRotatedText(text, x, y, angle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawRoundedRectangle[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawRoundedRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawRoundedRectangle[1] = {{ wxLua_wxDC_DrawRoundedRectangle, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxDC_DrawRoundedRectangle }}; -// void DrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20); -static int LUACALL wxLua_wxDC_DrawRoundedRectangle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double radius = 20 - double radius = (argCount >= 6 ? (double)wxlua_getnumbertype(L, 6) : 20); - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawRoundedRectangle - self->DrawRoundedRectangle(x, y, width, height, radius); - - return 0; -} - - -#if (wxLUA_USE_wxDC) && (wxUSE_SPLINES) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawSpline[] = { &wxluatype_wxDC, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxDC_DrawSpline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawSpline[1] = {{ wxLua_wxDC_DrawSpline, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DrawSpline }}; -// void DrawSpline(wxPointArray_FromLuaTable points); -static int LUACALL wxLua_wxDC_DrawSpline(lua_State *L) -{ - // wxPointArray_FromLuaTable points - wxLuaSharedPtr > points = wxlua_getwxPointArray(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawSpline - self->DrawSpline((int)(points ? points->size() : 0), (points && (!points->empty())) ? &points->at(0) : NULL); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_SPLINES) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_DrawText[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_DrawText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawText[1] = {{ wxLua_wxDC_DrawText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDC_DrawText }}; -// void DrawText(const wxString& text, wxCoord x, wxCoord y); -static int LUACALL wxLua_wxDC_DrawText(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 3); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawText - self->DrawText(text, x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_EndDoc[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_EndDoc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_EndDoc[1] = {{ wxLua_wxDC_EndDoc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_EndDoc }}; -// void EndDoc(); -static int LUACALL wxLua_wxDC_EndDoc(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call EndDoc - self->EndDoc(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_EndPage[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_EndPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_EndPage[1] = {{ wxLua_wxDC_EndPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_EndPage }}; -// void EndPage(); -static int LUACALL wxLua_wxDC_EndPage(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call EndPage - self->EndPage(); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_FloodFill[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDC_FloodFill(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_FloodFill[1] = {{ wxLua_wxDC_FloodFill, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxDC_FloodFill }}; -// void FloodFill(wxCoord x, wxCoord y, const wxColour& colour, wxFloodFillStyle style=wxFLOOD_SURFACE); -static int LUACALL wxLua_wxDC_FloodFill(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFloodFillStyle style = wxFLOOD_SURFACE - wxFloodFillStyle style = (argCount >= 5 ? (wxFloodFillStyle)wxlua_getenumtype(L, 5) : wxFLOOD_SURFACE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call FloodFill - self->FloodFill(x, y, *colour, style); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetAsBitmap[] = { &wxluatype_wxDC, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxDC_GetAsBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetAsBitmap[1] = {{ wxLua_wxDC_GetAsBitmap, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDC_GetAsBitmap }}; -// wxBitmap GetAsBitmap(const wxRect *subrect = NULL) const; -static int LUACALL wxLua_wxDC_GetAsBitmap(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRect subrect = NULL - const wxRect * subrect = (argCount >= 2 ? (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect) : NULL); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetAsBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetAsBitmap(subrect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetBackground[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetBackground[1] = {{ wxLua_wxDC_GetBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetBackground }}; -// const wxBrush& GetBackground(); -static int LUACALL wxLua_wxDC_GetBackground(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetBackground - const wxBrush* returns = (const wxBrush*)&self->GetBackground(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetBackgroundMode[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetBackgroundMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetBackgroundMode[1] = {{ wxLua_wxDC_GetBackgroundMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetBackgroundMode }}; -// int GetBackgroundMode() const; -static int LUACALL wxLua_wxDC_GetBackgroundMode(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetBackgroundMode - int returns = (self->GetBackgroundMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetBrush[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetBrush[1] = {{ wxLua_wxDC_GetBrush, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetBrush }}; -// const wxBrush& GetBrush(); -static int LUACALL wxLua_wxDC_GetBrush(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetBrush - const wxBrush* returns = (const wxBrush*)&self->GetBrush(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetCharHeight[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetCharHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetCharHeight[1] = {{ wxLua_wxDC_GetCharHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetCharHeight }}; -// wxCoord GetCharHeight(); -static int LUACALL wxLua_wxDC_GetCharHeight(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetCharHeight - wxCoord returns = (self->GetCharHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetCharWidth[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetCharWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetCharWidth[1] = {{ wxLua_wxDC_GetCharWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetCharWidth }}; -// wxCoord GetCharWidth(); -static int LUACALL wxLua_wxDC_GetCharWidth(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetCharWidth - wxCoord returns = (self->GetCharWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetClippingBox[] = { &wxluatype_wxDC, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxDC_GetClippingBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetClippingBox[1] = {{ wxLua_wxDC_GetClippingBox, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_GetClippingBox }}; -// %override wxLua_wxDC_GetClippingBox -// void GetClippingBox(wxCoord *x, wxCoord *y, wxCoord *width, wxCoord *height) -static int LUACALL wxLua_wxDC_GetClippingBox(lua_State *L) -{ - wxCoord height; - wxCoord width; - wxCoord y; - wxCoord x; - // get this - wxDC *self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetClippingBox - self->GetClippingBox(&x, &y, &width, &height); - // push results - lua_pushinteger(L, x); - lua_pushinteger(L, y); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 4; -} - - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetContentScaleFactor[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetContentScaleFactor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetContentScaleFactor[1] = {{ wxLua_wxDC_GetContentScaleFactor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetContentScaleFactor }}; -// %wxchkver_2_9_5 virtual double GetContentScaleFactor() const; -static int LUACALL wxLua_wxDC_GetContentScaleFactor(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetContentScaleFactor - double returns = (self->GetContentScaleFactor()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetFont[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetFont[1] = {{ wxLua_wxDC_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetFont }}; -// const wxFont& GetFont(); -static int LUACALL wxLua_wxDC_GetFont(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetFont - const wxFont* returns = (const wxFont*)&self->GetFont(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetLayoutDirection[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetLayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetLayoutDirection[1] = {{ wxLua_wxDC_GetLayoutDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetLayoutDirection }}; -// %wxchkver_2_8 wxLayoutDirection GetLayoutDirection() const; -static int LUACALL wxLua_wxDC_GetLayoutDirection(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetLayoutDirection - wxLayoutDirection returns = (self->GetLayoutDirection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetLogicalFunction[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetLogicalFunction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetLogicalFunction[1] = {{ wxLua_wxDC_GetLogicalFunction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetLogicalFunction }}; -// int GetLogicalFunction(); -static int LUACALL wxLua_wxDC_GetLogicalFunction(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetLogicalFunction - int returns = (self->GetLogicalFunction()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetMapMode[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetMapMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetMapMode[1] = {{ wxLua_wxDC_GetMapMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetMapMode }}; -// int GetMapMode(); -static int LUACALL wxLua_wxDC_GetMapMode(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetMapMode - int returns = (self->GetMapMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetMultiLineTextExtent[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxDC_GetMultiLineTextExtent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetMultiLineTextExtent[1] = {{ wxLua_wxDC_GetMultiLineTextExtent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDC_GetMultiLineTextExtent }}; -// %override wxLua_wxDC_GetMultiLineTextExtent -// void GetMultiLineTextExtent(const wxString& string, wxCoord *w, wxCoord *h, wxCoord *heightLine = NULL, wxFont *font = NULL) -static int LUACALL wxLua_wxDC_GetMultiLineTextExtent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFont *font = NULL - wxFont *font = (argCount >= 3 ? (wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : NULL); - - wxCoord heightLine; - wxCoord h; - wxCoord w; - - wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxDC *self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTextExtent - self->GetMultiLineTextExtent(string, &w, &h, &heightLine, font); - lua_pushinteger(L, w); - lua_pushinteger(L, h); - lua_pushinteger(L, heightLine); - // return the number of parameters - return 4; -} - - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetMultiLineTextExtentSize[] = { &wxluatype_wxDC, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDC_GetMultiLineTextExtentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetMultiLineTextExtentSize[1] = {{ wxLua_wxDC_GetMultiLineTextExtentSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_GetMultiLineTextExtentSize }}; -// %wxchkver_2_8 %rename GetMultiLineTextExtentSize wxSize GetMultiLineTextExtent(const wxString& string) const; -static int LUACALL wxLua_wxDC_GetMultiLineTextExtentSize(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetMultiLineTextExtent - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMultiLineTextExtent(string)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetPPI[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetPPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetPPI[1] = {{ wxLua_wxDC_GetPPI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetPPI }}; -// wxSize GetPPI() const; -static int LUACALL wxLua_wxDC_GetPPI(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetPPI - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPPI()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetPartialTextExtents[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxDC_GetPartialTextExtents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetPartialTextExtents[1] = {{ wxLua_wxDC_GetPartialTextExtents, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_GetPartialTextExtents }}; -// bool GetPartialTextExtents(const wxString& text, wxArrayInt& widths) const; -static int LUACALL wxLua_wxDC_GetPartialTextExtents(lua_State *L) -{ - // wxArrayInt widths - wxArrayInt * widths = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetPartialTextExtents - bool returns = (self->GetPartialTextExtents(text, *widths)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetPen[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetPen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetPen[1] = {{ wxLua_wxDC_GetPen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetPen }}; -// const wxPen& GetPen(); -static int LUACALL wxLua_wxDC_GetPen(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetPen - const wxPen* returns = (const wxPen*)&self->GetPen(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPen); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetPixel[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxDC_GetPixel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetPixel[1] = {{ wxLua_wxDC_GetPixel, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDC_GetPixel }}; -// bool GetPixel(wxCoord x, wxCoord y, wxColour *colour); -static int LUACALL wxLua_wxDC_GetPixel(lua_State *L) -{ - // wxColour colour - wxColour * colour = (wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetPixel - bool returns = (self->GetPixel(x, y, colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetSize[] = { &wxluatype_wxDC, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxDC_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetSize[1] = {{ wxLua_wxDC_GetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_GetSize }}; -// %override wxLua_wxDC_GetSize -// void GetSize(wxCoord *width, wxCoord *height) -static int LUACALL wxLua_wxDC_GetSize(lua_State *L) -{ - wxCoord width; - wxCoord height; - // get this - wxDC *self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetSize - self->GetSize(&width, &height); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetTextBackground[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetTextBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetTextBackground[1] = {{ wxLua_wxDC_GetTextBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetTextBackground }}; -// const wxColour& GetTextBackground() const; -static int LUACALL wxLua_wxDC_GetTextBackground(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTextBackground - const wxColour* returns = (const wxColour*)&self->GetTextBackground(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetTextExtent[] = { &wxluatype_wxDC, &wxluatype_TSTRING, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxDC_GetTextExtent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetTextExtent[1] = {{ wxLua_wxDC_GetTextExtent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDC_GetTextExtent }}; -// %override wxLua_wxDC_GetTextExtent -// void GetTextExtent(const wxString& string, wxCoord *w, wxCoord *h, wxCoord *descent = NULL, wxCoord *externalLeading = NULL, wxFont *font = NULL) -static int LUACALL wxLua_wxDC_GetTextExtent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFont *font = NULL - wxFont *font = (argCount >= 3 ? (wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : NULL); - - wxCoord externalLeading; - wxCoord descent; - wxCoord h; - wxCoord w; - - wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxDC *self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTextExtent - self->GetTextExtent(string, &w, &h, &descent, &externalLeading, font); - lua_pushinteger(L, w); - lua_pushinteger(L, h); - lua_pushinteger(L, descent); - lua_pushinteger(L, externalLeading); - // return the number of parameters - return 4; -} - - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetTextExtentSize[] = { &wxluatype_wxDC, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDC_GetTextExtentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetTextExtentSize[1] = {{ wxLua_wxDC_GetTextExtentSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_GetTextExtentSize }}; -// %wxchkver_2_8 %rename GetTextExtentSize wxSize GetTextExtent(const wxString& string) const; -static int LUACALL wxLua_wxDC_GetTextExtentSize(lua_State *L) -{ - // const wxString string - const wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTextExtent - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetTextExtent(string)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetTextForeground[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetTextForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetTextForeground[1] = {{ wxLua_wxDC_GetTextForeground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetTextForeground }}; -// const wxColour& GetTextForeground(); -static int LUACALL wxLua_wxDC_GetTextForeground(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTextForeground - const wxColour* returns = (const wxColour*)&self->GetTextForeground(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetTransformMatrix[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetTransformMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetTransformMatrix[1] = {{ wxLua_wxDC_GetTransformMatrix, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetTransformMatrix }}; -// %wxchkver_2_9_2 wxAffineMatrix2D GetTransformMatrix() const; -static int LUACALL wxLua_wxDC_GetTransformMatrix(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTransformMatrix - // allocate a new object using the copy constructor - wxAffineMatrix2D* returns = new wxAffineMatrix2D(self->GetTransformMatrix()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAffineMatrix2D); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAffineMatrix2D); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GetUserScale[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_GetUserScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GetUserScale[1] = {{ wxLua_wxDC_GetUserScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_GetUserScale }}; -// %override wxLua_wxDC_GetUserScale -// void GetUserScale(double *x, double *y) -static int LUACALL wxLua_wxDC_GetUserScale(lua_State *L) -{ - double y = 0; - double x = 0; - // get this - wxDC *self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetUserScale - self->GetUserScale(&x, &y); - lua_pushnumber(L, x); - lua_pushnumber(L, y); - // return the number of parameters - return 2; -} - - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GradientFillConcentric[] = { &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxDC_GradientFillConcentric(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GradientFillConcentric[1] = {{ wxLua_wxDC_GradientFillConcentric, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_GradientFillConcentric }}; -// void GradientFillConcentric(const wxRect& rect, const wxColour& initialColour, const wxColour& destColour, const wxPoint& circleCenter); -static int LUACALL wxLua_wxDC_GradientFillConcentric(lua_State *L) -{ - // const wxPoint circleCenter - const wxPoint * circleCenter = (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // const wxColour destColour - const wxColour * destColour = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // const wxColour initialColour - const wxColour * initialColour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GradientFillConcentric - self->GradientFillConcentric(*rect, *initialColour, *destColour, *circleCenter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_GradientFillLinear[] = { &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDC_GradientFillLinear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_GradientFillLinear[1] = {{ wxLua_wxDC_GradientFillLinear, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxDC_GradientFillLinear }}; -// void GradientFillLinear(const wxRect& rect, const wxColour& initialColour, const wxColour& destColour, wxDirection nDirection = wxEAST); -static int LUACALL wxLua_wxDC_GradientFillLinear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDirection nDirection = wxEAST - wxDirection nDirection = (argCount >= 5 ? (wxDirection)wxlua_getenumtype(L, 5) : wxEAST); - // const wxColour destColour - const wxColour * destColour = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // const wxColour initialColour - const wxColour * initialColour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GradientFillLinear - self->GradientFillLinear(*rect, *initialColour, *destColour, nDirection); - - return 0; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_IsOk[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_IsOk[1] = {{ wxLua_wxDC_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_IsOk }}; -// bool IsOk(); -static int LUACALL wxLua_wxDC_IsOk(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceX[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_LogicalToDeviceX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_LogicalToDeviceX[1] = {{ wxLua_wxDC_LogicalToDeviceX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceX }}; -// wxCoord LogicalToDeviceX(wxCoord x); -static int LUACALL wxLua_wxDC_LogicalToDeviceX(lua_State *L) -{ - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call LogicalToDeviceX - wxCoord returns = (self->LogicalToDeviceX(x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceXRel[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_LogicalToDeviceXRel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_LogicalToDeviceXRel[1] = {{ wxLua_wxDC_LogicalToDeviceXRel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceXRel }}; -// wxCoord LogicalToDeviceXRel(wxCoord x); -static int LUACALL wxLua_wxDC_LogicalToDeviceXRel(lua_State *L) -{ - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call LogicalToDeviceXRel - wxCoord returns = (self->LogicalToDeviceXRel(x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceY[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_LogicalToDeviceY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_LogicalToDeviceY[1] = {{ wxLua_wxDC_LogicalToDeviceY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceY }}; -// wxCoord LogicalToDeviceY(wxCoord y); -static int LUACALL wxLua_wxDC_LogicalToDeviceY(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call LogicalToDeviceY - wxCoord returns = (self->LogicalToDeviceY(y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceYRel[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_LogicalToDeviceYRel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_LogicalToDeviceYRel[1] = {{ wxLua_wxDC_LogicalToDeviceYRel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_LogicalToDeviceYRel }}; -// wxCoord LogicalToDeviceYRel(wxCoord y); -static int LUACALL wxLua_wxDC_LogicalToDeviceYRel(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call LogicalToDeviceYRel - wxCoord returns = (self->LogicalToDeviceYRel(y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_MaxX[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_MaxX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_MaxX[1] = {{ wxLua_wxDC_MaxX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_MaxX }}; -// wxCoord MaxX(); -static int LUACALL wxLua_wxDC_MaxX(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call MaxX - wxCoord returns = (self->MaxX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_MaxY[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_MaxY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_MaxY[1] = {{ wxLua_wxDC_MaxY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_MaxY }}; -// wxCoord MaxY(); -static int LUACALL wxLua_wxDC_MaxY(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call MaxY - wxCoord returns = (self->MaxY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_MinX[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_MinX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_MinX[1] = {{ wxLua_wxDC_MinX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_MinX }}; -// wxCoord MinX(); -static int LUACALL wxLua_wxDC_MinX(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call MinX - wxCoord returns = (self->MinX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_MinY[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_MinY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_MinY[1] = {{ wxLua_wxDC_MinY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_MinY }}; -// wxCoord MinY(); -static int LUACALL wxLua_wxDC_MinY(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call MinY - wxCoord returns = (self->MinY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_ResetBoundingBox[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_ResetBoundingBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_ResetBoundingBox[1] = {{ wxLua_wxDC_ResetBoundingBox, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_ResetBoundingBox }}; -// void ResetBoundingBox(); -static int LUACALL wxLua_wxDC_ResetBoundingBox(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call ResetBoundingBox - self->ResetBoundingBox(); - - return 0; -} - - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_ResetTransformMatrix[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_ResetTransformMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_ResetTransformMatrix[1] = {{ wxLua_wxDC_ResetTransformMatrix, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_ResetTransformMatrix }}; -// %wxchkver_2_9_2 void ResetTransformMatrix(); -static int LUACALL wxLua_wxDC_ResetTransformMatrix(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call ResetTransformMatrix - self->ResetTransformMatrix(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetAxisOrientation[] = { &wxluatype_wxDC, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDC_SetAxisOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetAxisOrientation[1] = {{ wxLua_wxDC_SetAxisOrientation, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_SetAxisOrientation }}; -// void SetAxisOrientation(bool xLeftRight, bool yBottomUp); -static int LUACALL wxLua_wxDC_SetAxisOrientation(lua_State *L) -{ - // bool yBottomUp - bool yBottomUp = wxlua_getbooleantype(L, 3); - // bool xLeftRight - bool xLeftRight = wxlua_getbooleantype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetAxisOrientation - self->SetAxisOrientation(xLeftRight, yBottomUp); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetBackground[] = { &wxluatype_wxDC, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxDC_SetBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetBackground[1] = {{ wxLua_wxDC_SetBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetBackground }}; -// void SetBackground(const wxBrush& brush); -static int LUACALL wxLua_wxDC_SetBackground(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetBackground - self->SetBackground(*brush); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetBackgroundMode[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_SetBackgroundMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetBackgroundMode[1] = {{ wxLua_wxDC_SetBackgroundMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetBackgroundMode }}; -// void SetBackgroundMode(int mode); -static int LUACALL wxLua_wxDC_SetBackgroundMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetBackgroundMode - self->SetBackgroundMode(mode); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetBrush[] = { &wxluatype_wxDC, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxDC_SetBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetBrush[1] = {{ wxLua_wxDC_SetBrush, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetBrush }}; -// void SetBrush(const wxBrush& brush); -static int LUACALL wxLua_wxDC_SetBrush(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetBrush - self->SetBrush(*brush); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetClippingRegion3[] = { &wxluatype_wxDC, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxDC_SetClippingRegion3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetClippingRegion3[1] = {{ wxLua_wxDC_SetClippingRegion3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion3 }}; -// void SetClippingRegion(const wxRect& rect); -static int LUACALL wxLua_wxDC_SetClippingRegion3(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetClippingRegion - self->SetClippingRegion(*rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetClippingRegion2[] = { &wxluatype_wxDC, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxDC_SetClippingRegion2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetClippingRegion2[1] = {{ wxLua_wxDC_SetClippingRegion2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion2 }}; -// void SetClippingRegion(const wxPoint& pt, const wxSize& sz); -static int LUACALL wxLua_wxDC_SetClippingRegion2(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetClippingRegion - self->SetClippingRegion(*pt, *sz); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetClippingRegion1[] = { &wxluatype_wxDC, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxDC_SetClippingRegion1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetClippingRegion1[1] = {{ wxLua_wxDC_SetClippingRegion1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion1 }}; -// !%wxchkver_3_0 void SetClippingRegion(const wxRegion& region); -static int LUACALL wxLua_wxDC_SetClippingRegion1(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetClippingRegion - self->SetClippingRegion(*region); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetClippingRegion[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_SetClippingRegion(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetClippingRegion[1] = {{ wxLua_wxDC_SetClippingRegion, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion }}; -// void SetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height); -static int LUACALL wxLua_wxDC_SetClippingRegion(lua_State *L) -{ - // wxCoord height - wxCoord height = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetClippingRegion - self->SetClippingRegion(x, y, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetDeviceOrigin[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_SetDeviceOrigin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetDeviceOrigin[1] = {{ wxLua_wxDC_SetDeviceOrigin, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_SetDeviceOrigin }}; -// void SetDeviceOrigin(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxDC_SetDeviceOrigin(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetDeviceOrigin - self->SetDeviceOrigin(x, y); - - return 0; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetFont[] = { &wxluatype_wxDC, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxDC_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetFont[1] = {{ wxLua_wxDC_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxDC_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetLayoutDirection[] = { &wxluatype_wxDC, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDC_SetLayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetLayoutDirection[1] = {{ wxLua_wxDC_SetLayoutDirection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetLayoutDirection }}; -// %wxchkver_2_8 void SetLayoutDirection(wxLayoutDirection dir); -static int LUACALL wxLua_wxDC_SetLayoutDirection(lua_State *L) -{ - // wxLayoutDirection dir - wxLayoutDirection dir = (wxLayoutDirection)wxlua_getenumtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetLayoutDirection - self->SetLayoutDirection(dir); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetLogicalFunction[] = { &wxluatype_wxDC, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDC_SetLogicalFunction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetLogicalFunction[1] = {{ wxLua_wxDC_SetLogicalFunction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetLogicalFunction }}; -// void SetLogicalFunction(wxRasterOperationMode function); -static int LUACALL wxLua_wxDC_SetLogicalFunction(lua_State *L) -{ - // wxRasterOperationMode function - wxRasterOperationMode function = (wxRasterOperationMode)wxlua_getenumtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetLogicalFunction - self->SetLogicalFunction(function); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetMapMode[] = { &wxluatype_wxDC, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDC_SetMapMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetMapMode[1] = {{ wxLua_wxDC_SetMapMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetMapMode }}; -// void SetMapMode(wxMappingMode unit); -static int LUACALL wxLua_wxDC_SetMapMode(lua_State *L) -{ - // wxMappingMode unit - wxMappingMode unit = (wxMappingMode)wxlua_getenumtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetMapMode - self->SetMapMode(unit); - - return 0; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetPalette[] = { &wxluatype_wxDC, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxDC_SetPalette(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetPalette[1] = {{ wxLua_wxDC_SetPalette, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetPalette }}; -// void SetPalette(const wxPalette& palette); -static int LUACALL wxLua_wxDC_SetPalette(lua_State *L) -{ - // const wxPalette palette - const wxPalette * palette = (const wxPalette *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPalette); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetPalette - self->SetPalette(*palette); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetPen[] = { &wxluatype_wxDC, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxDC_SetPen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetPen[1] = {{ wxLua_wxDC_SetPen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetPen }}; -// void SetPen(const wxPen& pen); -static int LUACALL wxLua_wxDC_SetPen(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetPen - self->SetPen(*pen); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetTextBackground[] = { &wxluatype_wxDC, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxDC_SetTextBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetTextBackground[1] = {{ wxLua_wxDC_SetTextBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetTextBackground }}; -// void SetTextBackground(const wxColour& colour); -static int LUACALL wxLua_wxDC_SetTextBackground(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetTextBackground - self->SetTextBackground(*colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetTextForeground[] = { &wxluatype_wxDC, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxDC_SetTextForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetTextForeground[1] = {{ wxLua_wxDC_SetTextForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetTextForeground }}; -// void SetTextForeground(const wxColour& colour); -static int LUACALL wxLua_wxDC_SetTextForeground(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetTextForeground - self->SetTextForeground(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetTransformMatrix[] = { &wxluatype_wxDC, &wxluatype_wxAffineMatrix2D, NULL }; -static int LUACALL wxLua_wxDC_SetTransformMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetTransformMatrix[1] = {{ wxLua_wxDC_SetTransformMatrix, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetTransformMatrix }}; -// %wxchkver_2_9_2 bool SetTransformMatrix(const wxAffineMatrix2D& matrix); -static int LUACALL wxLua_wxDC_SetTransformMatrix(lua_State *L) -{ - // const wxAffineMatrix2D matrix - const wxAffineMatrix2D * matrix = (const wxAffineMatrix2D *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAffineMatrix2D); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetTransformMatrix - bool returns = (self->SetTransformMatrix(*matrix)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_SetUserScale[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDC_SetUserScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetUserScale[1] = {{ wxLua_wxDC_SetUserScale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_SetUserScale }}; -// void SetUserScale(double xScale, double yScale); -static int LUACALL wxLua_wxDC_SetUserScale(lua_State *L) -{ - // double yScale - double yScale = (double)wxlua_getnumbertype(L, 3); - // double xScale - double xScale = (double)wxlua_getnumbertype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call SetUserScale - self->SetUserScale(xScale, yScale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_StartDoc[] = { &wxluatype_wxDC, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDC_StartDoc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_StartDoc[1] = {{ wxLua_wxDC_StartDoc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_StartDoc }}; -// bool StartDoc(const wxString& message); -static int LUACALL wxLua_wxDC_StartDoc(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call StartDoc - bool returns = (self->StartDoc(message)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_StartPage[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxDC_StartPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_StartPage[1] = {{ wxLua_wxDC_StartPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDC_StartPage }}; -// void StartPage(); -static int LUACALL wxLua_wxDC_StartPage(lua_State *L) -{ - // get this - wxDC * self = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call StartPage - self->StartPage(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDC_delete[] = { &wxluatype_wxDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDC_delete }}; - - - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawCheckMark_overload[] = -{ - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDC_DrawCheckMark1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_DrawCheckMark1 }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDC_DrawCheckMark, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_DrawCheckMark }, -}; -static int s_wxluafunc_wxLua_wxDC_DrawCheckMark_overload_count = sizeof(s_wxluafunc_wxLua_wxDC_DrawCheckMark_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_DrawLabel_overload[] = -{ - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDC_DrawLabel1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxDC_DrawLabel1 }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDC_DrawLabel, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxDC_DrawLabel }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxDC_DrawLabel_overload_count = sizeof(s_wxluafunc_wxLua_wxDC_DrawLabel_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxDC) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDC_SetClippingRegion_overload[] = -{ - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDC_SetClippingRegion3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion3 }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDC_SetClippingRegion2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion2 }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion) - { wxLua_wxDC_SetClippingRegion1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion1 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion) - { wxLua_wxDC_SetClippingRegion, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxDC_SetClippingRegion }, -}; -static int s_wxluafunc_wxLua_wxDC_SetClippingRegion_overload_count = sizeof(s_wxluafunc_wxLua_wxDC_SetClippingRegion_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxDC) - -void wxLua_wxDC_delete_function(void** p) -{ - wxDC* o = (wxDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDC_methods[] = { - { "Blit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_Blit, 1, NULL }, - { "CalcBoundingBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_CalcBoundingBox, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - { "CanUseTransformMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_CanUseTransformMatrix, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_Clear, 1, NULL }, - { "CrossHair", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_CrossHair, 1, NULL }, - { "DestroyClippingRegion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DestroyClippingRegion, 1, NULL }, - { "DeviceToLogicalX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DeviceToLogicalX, 1, NULL }, - { "DeviceToLogicalXRel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DeviceToLogicalXRel, 1, NULL }, - { "DeviceToLogicalY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DeviceToLogicalY, 1, NULL }, - { "DeviceToLogicalYRel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DeviceToLogicalYRel, 1, NULL }, - { "DrawArc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawArc, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - { "DrawBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - { "DrawCheckMark", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawCheckMark_overload, s_wxluafunc_wxLua_wxDC_DrawCheckMark_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - - { "DrawCircle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawCircle, 1, NULL }, - { "DrawEllipse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawEllipse, 1, NULL }, - { "DrawEllipticArc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawEllipticArc, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxIcon) - { "DrawIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawIcon, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxIcon) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) - { "DrawLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawLabel_overload, s_wxluafunc_wxLua_wxDC_DrawLabel_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) - - { "DrawLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawLine, 1, NULL }, - { "DrawLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawLines, 1, NULL }, - { "DrawPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawPoint, 1, NULL }, - { "DrawPolygon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawPolygon, 1, NULL }, - { "DrawRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawRectangle, 1, NULL }, - { "DrawRotatedText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawRotatedText, 1, NULL }, - { "DrawRoundedRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawRoundedRectangle, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxUSE_SPLINES) - { "DrawSpline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawSpline, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_SPLINES) - - { "DrawText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_DrawText, 1, NULL }, - { "EndDoc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_EndDoc, 1, NULL }, - { "EndPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_EndPage, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "FloodFill", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_FloodFill, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { "GetAsBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetAsBitmap, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "GetBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetBackground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - - { "GetBackgroundMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetBackgroundMode, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "GetBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetBrush, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - - { "GetCharHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetCharHeight, 1, NULL }, - { "GetCharWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetCharWidth, 1, NULL }, - { "GetClippingBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetClippingBox, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxDC) - { "GetContentScaleFactor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetContentScaleFactor, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) - { "GetLayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetLayoutDirection, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) - - { "GetLogicalFunction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetLogicalFunction, 1, NULL }, - { "GetMapMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetMapMode, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxFont) - { "GetMultiLineTextExtent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetMultiLineTextExtent, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "GetMultiLineTextExtentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetMultiLineTextExtentSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { "GetPPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetPPI, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC) - { "GetPartialTextExtents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetPartialTextExtents, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "GetPen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetPen, 1, NULL }, - { "GetPixel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetPixel, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetSize, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "GetTextBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetTextBackground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - { "GetTextExtent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetTextExtent, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "GetTextExtentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetTextExtentSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "GetTextForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetTextForeground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) - { "GetTransformMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetTransformMatrix, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) - - { "GetUserScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GetUserScale, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect) - { "GradientFillConcentric", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GradientFillConcentric, 1, NULL }, - { "GradientFillLinear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_GradientFillLinear, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect) - - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_IsOk, 1, NULL }, - { "LogicalToDeviceX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_LogicalToDeviceX, 1, NULL }, - { "LogicalToDeviceXRel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_LogicalToDeviceXRel, 1, NULL }, - { "LogicalToDeviceY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_LogicalToDeviceY, 1, NULL }, - { "LogicalToDeviceYRel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_LogicalToDeviceYRel, 1, NULL }, - { "MaxX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_MaxX, 1, NULL }, - { "MaxY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_MaxY, 1, NULL }, - { "MinX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_MinX, 1, NULL }, - { "MinY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_MinY, 1, NULL }, - { "ResetBoundingBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_ResetBoundingBox, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - { "ResetTransformMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_ResetTransformMatrix, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC) - - { "SetAxisOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetAxisOrientation, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "SetBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetBackground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - - { "SetBackgroundMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetBackgroundMode, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "SetBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetBrush, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxDC) - { "SetClippingRegion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetClippingRegion_overload, s_wxluafunc_wxLua_wxDC_SetClippingRegion_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRegion))||(wxLUA_USE_wxDC) - - { "SetDeviceOrigin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetDeviceOrigin, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxFont) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) - { "SetLayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetLayoutDirection, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) - - { "SetLogicalFunction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetLogicalFunction, 1, NULL }, - { "SetMapMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetMapMode, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "SetPalette", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetPalette, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - { "SetPen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetPen, 1, NULL }, - { "SetTextBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetTextBackground, 1, NULL }, - { "SetTextForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetTextForeground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) - { "SetTransformMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetTransformMatrix, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxDC)) && ((wxCHECK_VERSION(2,9,2)) && (wxUSE_GEOMETRY)) - - { "SetUserScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_SetUserScale, 1, NULL }, - { "StartDoc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_StartDoc, 1, NULL }, - { "StartPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDC_StartPage, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDC_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDC_methodCount = sizeof(wxDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxMemoryDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMemoryDC' -int wxluatype_wxMemoryDC = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryDC_SelectObject[] = { &wxluatype_wxMemoryDC, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMemoryDC_SelectObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryDC_SelectObject[1] = {{ wxLua_wxMemoryDC_SelectObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryDC_SelectObject }}; -// void SelectObject(wxBitmap& bitmap); // not const in >=2.8 -static int LUACALL wxLua_wxMemoryDC_SelectObject(lua_State *L) -{ - // wxBitmap bitmap - wxBitmap * bitmap = (wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMemoryDC * self = (wxMemoryDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryDC); - // call SelectObject - self->SelectObject(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryDC_SelectObjectAsSource[] = { &wxluatype_wxMemoryDC, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMemoryDC_SelectObjectAsSource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryDC_SelectObjectAsSource[1] = {{ wxLua_wxMemoryDC_SelectObjectAsSource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMemoryDC_SelectObjectAsSource }}; -// %wxchkver_2_8 virtual void SelectObjectAsSource(const wxBitmap& bmp); -static int LUACALL wxLua_wxMemoryDC_SelectObjectAsSource(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMemoryDC * self = (wxMemoryDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryDC); - // call SelectObjectAsSource - self->SelectObjectAsSource(*bmp); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMemoryDC_delete[] = { &wxluatype_wxMemoryDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMemoryDC_delete }}; - -static int LUACALL wxLua_wxMemoryDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMemoryDC_constructor[1] = {{ wxLua_wxMemoryDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMemoryDC(); -static int LUACALL wxLua_wxMemoryDC_constructor(lua_State *L) -{ - // call constructor - wxMemoryDC* returns = new wxMemoryDC(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryDC); - - return 1; -} - - - - -void wxLua_wxMemoryDC_delete_function(void** p) -{ - wxMemoryDC* o = (wxMemoryDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMemoryDC_methods[] = { -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - { "SelectObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryDC_SelectObject, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap) - { "SelectObjectAsSource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMemoryDC_SelectObjectAsSource, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxBitmap) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMemoryDC_delete, 1, NULL }, - { "wxMemoryDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMemoryDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMemoryDC_methodCount = sizeof(wxMemoryDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxWindowDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindowDC' -int wxluatype_wxWindowDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDC_delete[] = { &wxluatype_wxWindowDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWindowDC_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDC_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindowDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDC_constructor[1] = {{ wxLua_wxWindowDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxWindowDC_constructor }}; -// wxWindowDC(wxWindow* window); -static int LUACALL wxLua_wxWindowDC_constructor(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxWindowDC* returns = new wxWindowDC(window); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWindowDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindowDC); - - return 1; -} - - - - -void wxLua_wxWindowDC_delete_function(void** p) -{ - wxWindowDC* o = (wxWindowDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindowDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWindowDC_delete, 1, NULL }, - { "wxWindowDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWindowDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWindowDC_methodCount = sizeof(wxWindowDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxClientDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxClientDC' -int wxluatype_wxClientDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClientDC_delete[] = { &wxluatype_wxClientDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxClientDC_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxClientDC_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxClientDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxClientDC_constructor[1] = {{ wxLua_wxClientDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxClientDC_constructor }}; -// wxClientDC(wxWindow* window); -static int LUACALL wxLua_wxClientDC_constructor(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxClientDC* returns = new wxClientDC(window); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxClientDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientDC); - - return 1; -} - - - - -void wxLua_wxClientDC_delete_function(void** p) -{ - wxClientDC* o = (wxClientDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxClientDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxClientDC_delete, 1, NULL }, - { "wxClientDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxClientDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxClientDC_methodCount = sizeof(wxClientDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxPaintDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPaintDC' -int wxluatype_wxPaintDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaintDC_delete[] = { &wxluatype_wxPaintDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaintDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPaintDC_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPaintDC_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPaintDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPaintDC_constructor[1] = {{ wxLua_wxPaintDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPaintDC_constructor }}; -// wxPaintDC(wxWindow* window); -static int LUACALL wxLua_wxPaintDC_constructor(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPaintDC* returns = new wxPaintDC(window); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPaintDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPaintDC); - - return 1; -} - - - - -void wxLua_wxPaintDC_delete_function(void** p) -{ - wxPaintDC* o = (wxPaintDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPaintDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPaintDC_delete, 1, NULL }, - { "wxPaintDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPaintDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPaintDC_methodCount = sizeof(wxPaintDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxScreenDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxScreenDC' -int wxluatype_wxScreenDC = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxScreenDC_EndDrawingOnTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScreenDC_EndDrawingOnTop[1] = {{ wxLua_wxScreenDC_EndDrawingOnTop, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool EndDrawingOnTop(); -static int LUACALL wxLua_wxScreenDC_EndDrawingOnTop(lua_State *L) -{ - // call EndDrawingOnTop - bool returns = (wxScreenDC::EndDrawingOnTop()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScreenDC_StartDrawingOnTop1[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxScreenDC_StartDrawingOnTop1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop1[1] = {{ wxLua_wxScreenDC_StartDrawingOnTop1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxScreenDC_StartDrawingOnTop1 }}; -// static bool StartDrawingOnTop(wxRect* rect = NULL); -static int LUACALL wxLua_wxScreenDC_StartDrawingOnTop1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRect rect = NULL - wxRect * rect = (argCount >= 1 ? (wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect) : NULL); - // call StartDrawingOnTop - bool returns = (wxScreenDC::StartDrawingOnTop(rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScreenDC_StartDrawingOnTop[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxScreenDC_StartDrawingOnTop(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop[1] = {{ wxLua_wxScreenDC_StartDrawingOnTop, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxScreenDC_StartDrawingOnTop }}; -// static bool StartDrawingOnTop(wxWindow* window); -static int LUACALL wxLua_wxScreenDC_StartDrawingOnTop(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call StartDrawingOnTop - bool returns = (wxScreenDC::StartDrawingOnTop(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScreenDC_delete[] = { &wxluatype_wxScreenDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScreenDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxScreenDC_delete }}; - -static int LUACALL wxLua_wxScreenDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScreenDC_constructor[1] = {{ wxLua_wxScreenDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxScreenDC(); -static int LUACALL wxLua_wxScreenDC_constructor(lua_State *L) -{ - // call constructor - wxScreenDC* returns = new wxScreenDC(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxScreenDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScreenDC); - - return 1; -} - - - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop_overload[] = -{ - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxScreenDC_StartDrawingOnTop1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxScreenDC_StartDrawingOnTop1 }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxScreenDC_StartDrawingOnTop, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxScreenDC_StartDrawingOnTop }, -}; -static int s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop_overload_count = sizeof(s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - -void wxLua_wxScreenDC_delete_function(void** p) -{ - wxScreenDC* o = (wxScreenDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxScreenDC_methods[] = { - { "EndDrawingOnTop", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxScreenDC_EndDrawingOnTop, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - { "StartDrawingOnTop", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop_overload, s_wxluafunc_wxLua_wxScreenDC_StartDrawingOnTop_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxScreenDC_delete, 1, NULL }, - { "wxScreenDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxScreenDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxScreenDC_methodCount = sizeof(wxScreenDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxBufferedDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBufferedDC' -int wxluatype_wxBufferedDC = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedDC_Init1[] = { &wxluatype_wxBufferedDC, &wxluatype_wxDC, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBufferedDC_Init1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_Init1[1] = {{ wxLua_wxBufferedDC_Init1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBufferedDC_Init1 }}; -// void Init(wxDC *dc, wxBitmap& buffer, int style = wxBUFFER_CLIENT_AREA); // not const bitmap in >= 2.8 -static int LUACALL wxLua_wxBufferedDC_Init1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxBUFFER_CLIENT_AREA - int style = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxBUFFER_CLIENT_AREA); - // wxBitmap buffer - wxBitmap * buffer = (wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxBufferedDC * self = (wxBufferedDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBufferedDC); - // call Init - self->Init(dc, *buffer, style); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedDC_Init[] = { &wxluatype_wxBufferedDC, &wxluatype_wxDC, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBufferedDC_Init(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_Init[1] = {{ wxLua_wxBufferedDC_Init, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBufferedDC_Init }}; -// void Init(wxDC *dc, const wxSize& area, int style = wxBUFFER_CLIENT_AREA); -static int LUACALL wxLua_wxBufferedDC_Init(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxBUFFER_CLIENT_AREA - int style = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxBUFFER_CLIENT_AREA); - // const wxSize area - const wxSize * area = (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxBufferedDC * self = (wxBufferedDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBufferedDC); - // call Init - self->Init(dc, *area, style); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedDC_delete[] = { &wxluatype_wxBufferedDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBufferedDC_delete }}; - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedDC_constructor2[] = { &wxluatype_wxDC, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBufferedDC_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_constructor2[1] = {{ wxLua_wxBufferedDC_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBufferedDC_constructor2 }}; -// wxBufferedDC(wxDC *dc, wxBitmap& buffer, int style = wxBUFFER_CLIENT_AREA); // not const bitmap >= 2.8 -static int LUACALL wxLua_wxBufferedDC_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxBUFFER_CLIENT_AREA - int style = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBUFFER_CLIENT_AREA); - // wxBitmap buffer - wxBitmap * buffer = (wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call constructor - wxBufferedDC* returns = new wxBufferedDC(dc, *buffer, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBufferedDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBufferedDC); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedDC_constructor1[] = { &wxluatype_wxDC, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBufferedDC_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_constructor1[1] = {{ wxLua_wxBufferedDC_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBufferedDC_constructor1 }}; -// wxBufferedDC(wxDC *dc, const wxSize& area, int style = wxBUFFER_CLIENT_AREA); -static int LUACALL wxLua_wxBufferedDC_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxBUFFER_CLIENT_AREA - int style = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBUFFER_CLIENT_AREA); - // const wxSize area - const wxSize * area = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call constructor - wxBufferedDC* returns = new wxBufferedDC(dc, *area, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBufferedDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBufferedDC); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxBufferedDC_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_constructor[1] = {{ wxLua_wxBufferedDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxBufferedDC(); -static int LUACALL wxLua_wxBufferedDC_constructor(lua_State *L) -{ - // call constructor - wxBufferedDC* returns = new wxBufferedDC(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBufferedDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBufferedDC); - - return 1; -} - - - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_Init_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - { wxLua_wxBufferedDC_Init1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBufferedDC_Init1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBufferedDC_Init, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBufferedDC_Init }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxBufferedDC_Init_overload_count = sizeof(s_wxluafunc_wxLua_wxBufferedDC_Init_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedDC_constructor_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - { wxLua_wxBufferedDC_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBufferedDC_constructor2 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBufferedDC_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBufferedDC_constructor1 }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxBufferedDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxBufferedDC_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBufferedDC_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - -void wxLua_wxBufferedDC_delete_function(void** p) -{ - wxBufferedDC* o = (wxBufferedDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBufferedDC_methods[] = { -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBufferedDC_Init_overload, s_wxluafunc_wxLua_wxBufferedDC_Init_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBufferedDC_delete, 1, NULL }, - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - { "wxBufferedDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBufferedDC_constructor_overload, s_wxluafunc_wxLua_wxBufferedDC_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxDC) - - { 0, 0, 0, 0 }, -}; - -int wxBufferedDC_methodCount = sizeof(wxBufferedDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxBufferedPaintDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBufferedPaintDC' -int wxluatype_wxBufferedPaintDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedPaintDC_delete[] = { &wxluatype_wxBufferedPaintDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedPaintDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBufferedPaintDC_delete }}; - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedPaintDC_constructor1[] = { &wxluatype_wxWindow, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBufferedPaintDC_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedPaintDC_constructor1[1] = {{ wxLua_wxBufferedPaintDC_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBufferedPaintDC_constructor1 }}; -// wxBufferedPaintDC(wxWindow *window, wxBitmap& buffer, int style = wxBUFFER_CLIENT_AREA); // not const bitmap in >= 2.8 -static int LUACALL wxLua_wxBufferedPaintDC_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxBUFFER_CLIENT_AREA - int style = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBUFFER_CLIENT_AREA); - // wxBitmap buffer - wxBitmap * buffer = (wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxBufferedPaintDC* returns = new wxBufferedPaintDC(window, *buffer, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBufferedPaintDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBufferedPaintDC); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBufferedPaintDC_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBufferedPaintDC_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedPaintDC_constructor[1] = {{ wxLua_wxBufferedPaintDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBufferedPaintDC_constructor }}; -// wxBufferedPaintDC(wxWindow *window, int style = wxBUFFER_CLIENT_AREA); -static int LUACALL wxLua_wxBufferedPaintDC_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxBUFFER_CLIENT_AREA - int style = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBUFFER_CLIENT_AREA); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxBufferedPaintDC* returns = new wxBufferedPaintDC(window, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBufferedPaintDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBufferedPaintDC); - - return 1; -} - - - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||(wxLUA_USE_wxDC) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBufferedPaintDC_constructor_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - { wxLua_wxBufferedPaintDC_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxBufferedPaintDC_constructor1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC) - { wxLua_wxBufferedPaintDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxBufferedPaintDC_constructor }, -}; -static int s_wxluafunc_wxLua_wxBufferedPaintDC_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxBufferedPaintDC_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||(wxLUA_USE_wxDC) - -void wxLua_wxBufferedPaintDC_delete_function(void** p) -{ - wxBufferedPaintDC* o = (wxBufferedPaintDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBufferedPaintDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBufferedPaintDC_delete, 1, NULL }, - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||(wxLUA_USE_wxDC) - { "wxBufferedPaintDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBufferedPaintDC_constructor_overload, s_wxluafunc_wxLua_wxBufferedPaintDC_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxDC))||(wxLUA_USE_wxDC) - - { 0, 0, 0, 0 }, -}; - -int wxBufferedPaintDC_methodCount = sizeof(wxBufferedPaintDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) -// --------------------------------------------------------------------------- -// Bind class wxAutoBufferedPaintDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAutoBufferedPaintDC' -int wxluatype_wxAutoBufferedPaintDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAutoBufferedPaintDC_delete[] = { &wxluatype_wxAutoBufferedPaintDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAutoBufferedPaintDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAutoBufferedPaintDC_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAutoBufferedPaintDC_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxAutoBufferedPaintDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAutoBufferedPaintDC_constructor[1] = {{ wxLua_wxAutoBufferedPaintDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAutoBufferedPaintDC_constructor }}; -// wxAutoBufferedPaintDC(wxWindow *window); -static int LUACALL wxLua_wxAutoBufferedPaintDC_constructor(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxAutoBufferedPaintDC* returns = new wxAutoBufferedPaintDC(window); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAutoBufferedPaintDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAutoBufferedPaintDC); - - return 1; -} - - - - -void wxLua_wxAutoBufferedPaintDC_delete_function(void** p) -{ - wxAutoBufferedPaintDC* o = (wxAutoBufferedPaintDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAutoBufferedPaintDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAutoBufferedPaintDC_delete, 1, NULL }, - { "wxAutoBufferedPaintDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAutoBufferedPaintDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxAutoBufferedPaintDC_methodCount = sizeof(wxAutoBufferedPaintDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDC) - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxMirrorDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMirrorDC' -int wxluatype_wxMirrorDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMirrorDC_delete[] = { &wxluatype_wxMirrorDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMirrorDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMirrorDC_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMirrorDC_constructor[] = { &wxluatype_wxDC, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMirrorDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMirrorDC_constructor[1] = {{ wxLua_wxMirrorDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxMirrorDC_constructor }}; -// wxMirrorDC(wxDC& dc, bool mirror); -static int LUACALL wxLua_wxMirrorDC_constructor(lua_State *L) -{ - // bool mirror - bool mirror = wxlua_getbooleantype(L, 2); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call constructor - wxMirrorDC* returns = new wxMirrorDC(*dc, mirror); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMirrorDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMirrorDC); - - return 1; -} - - - - -void wxLua_wxMirrorDC_delete_function(void** p) -{ - wxMirrorDC* o = (wxMirrorDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMirrorDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMirrorDC_delete, 1, NULL }, - { "wxMirrorDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMirrorDC_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMirrorDC_methodCount = sizeof(wxMirrorDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxDC -// --------------------------------------------------------------------------- -// Bind class wxDCClipper -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDCClipper' -int wxluatype_wxDCClipper = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDCClipper_delete[] = { &wxluatype_wxDCClipper, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDCClipper_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDCClipper_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDCClipper_constructor1[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDCClipper_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDCClipper_constructor1[1] = {{ wxLua_wxDCClipper_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxDCClipper_constructor1 }}; -// wxDCClipper(wxDC& dc, wxCoord x, wxCoord y, wxCoord w, wxCoord h); -static int LUACALL wxLua_wxDCClipper_constructor1(lua_State *L) -{ - // wxCoord h - wxCoord h = (wxCoord)wxlua_getnumbertype(L, 5); - // wxCoord w - wxCoord w = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call constructor - wxDCClipper* returns = new wxDCClipper(*dc, x, y, w, h); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDCClipper); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDCClipper); - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDCClipper_constructor[] = { &wxluatype_wxDC, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxDCClipper_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDCClipper_constructor[1] = {{ wxLua_wxDCClipper_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxDCClipper_constructor }}; -// wxDCClipper(wxDC& dc, const wxRect& r); -static int LUACALL wxLua_wxDCClipper_constructor(lua_State *L) -{ - // const wxRect r - const wxRect * r = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call constructor - wxDCClipper* returns = new wxDCClipper(*dc, *r); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDCClipper); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDCClipper); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - - - -#if (wxLUA_USE_wxDC)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDCClipper_constructor_overload[] = -{ - { wxLua_wxDCClipper_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxDCClipper_constructor1 }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDCClipper_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxDCClipper_constructor }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxDCClipper_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDCClipper_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDC)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxDCClipper_delete_function(void** p) -{ - wxDCClipper* o = (wxDCClipper*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDCClipper_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDCClipper_delete, 1, NULL }, - -#if (wxLUA_USE_wxDC)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) - { "wxDCClipper", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDCClipper_constructor_overload, s_wxluafunc_wxLua_wxDCClipper_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxDC)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) - - { 0, 0, 0, 0 }, -}; - -int wxDCClipper_methodCount = sizeof(wxDCClipper_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDC - - -#if wxLUA_USE_wxCaret && wxUSE_CARET -// --------------------------------------------------------------------------- -// Bind class wxCaret -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCaret' -int wxluatype_wxCaret = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_Create1[] = { &wxluatype_wxCaret, &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxCaret_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Create1[1] = {{ wxLua_wxCaret_Create1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCaret_Create1 }}; -// bool Create(wxWindow* window, const wxSize& size); -static int LUACALL wxLua_wxCaret_Create1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call Create - bool returns = (self->Create(window, *size)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_Create[] = { &wxluatype_wxCaret, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCaret_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Create[1] = {{ wxLua_wxCaret_Create, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxCaret_Create }}; -// bool Create(wxWindow* window, int width, int height); -static int LUACALL wxLua_wxCaret_Create(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 4); - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call Create - bool returns = (self->Create(window, width, height)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxCaret_GetBlinkTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_GetBlinkTime[1] = {{ wxLua_wxCaret_GetBlinkTime, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static int GetBlinkTime(); -static int LUACALL wxLua_wxCaret_GetBlinkTime(lua_State *L) -{ - // call GetBlinkTime - int returns = (wxCaret::GetBlinkTime()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_GetPosition[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_GetPosition[1] = {{ wxLua_wxCaret_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_GetPosition }}; -// wxPoint GetPosition(); -static int LUACALL wxLua_wxCaret_GetPosition(lua_State *L) -{ - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_GetPositionXY[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_GetPositionXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_GetPositionXY[1] = {{ wxLua_wxCaret_GetPositionXY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_GetPositionXY }}; -// %override wxLua_wxCaret_GetPositionXY -// %rename GetPositionXY void GetPosition(int *x, int *y) -static int LUACALL wxLua_wxCaret_GetPositionXY(lua_State *L) -{ - int x; - int y; - // get this - wxCaret *self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call GetPosition - self->GetPosition(&x, &y); - // return the number of parameters - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_GetSize[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_GetSize[1] = {{ wxLua_wxCaret_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_GetSize }}; -// wxSize GetSize(); -static int LUACALL wxLua_wxCaret_GetSize(lua_State *L) -{ - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_GetSizeWH[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_GetSizeWH(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_GetSizeWH[1] = {{ wxLua_wxCaret_GetSizeWH, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_GetSizeWH }}; -// %override wxLua_wxCaret_GetSizeWH -// %rename GetSizeWH void GetSize(int *x, int *y) -static int LUACALL wxLua_wxCaret_GetSizeWH(lua_State *L) -{ - int x; - int y; - // get this - wxCaret *self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call GetSize - self->GetSize(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_GetWindow[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_GetWindow[1] = {{ wxLua_wxCaret_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_GetWindow }}; -// wxWindow *GetWindow(); -static int LUACALL wxLua_wxCaret_GetWindow(lua_State *L) -{ - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_Hide[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_Hide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Hide[1] = {{ wxLua_wxCaret_Hide, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_Hide }}; -// void Hide(); -static int LUACALL wxLua_wxCaret_Hide(lua_State *L) -{ - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call Hide - self->Hide(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_IsOk[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_IsOk[1] = {{ wxLua_wxCaret_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_IsOk }}; -// bool IsOk(); -static int LUACALL wxLua_wxCaret_IsOk(lua_State *L) -{ - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_IsVisible[] = { &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxCaret_IsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_IsVisible[1] = {{ wxLua_wxCaret_IsVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCaret_IsVisible }}; -// bool IsVisible(); -static int LUACALL wxLua_wxCaret_IsVisible(lua_State *L) -{ - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call IsVisible - bool returns = (self->IsVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_Move1[] = { &wxluatype_wxCaret, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxCaret_Move1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Move1[1] = {{ wxLua_wxCaret_Move1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCaret_Move1 }}; -// void Move(const wxPoint& pt); -static int LUACALL wxLua_wxCaret_Move1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call Move - self->Move(*pt); - - return 0; -} - -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_Move[] = { &wxluatype_wxCaret, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCaret_Move(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Move[1] = {{ wxLua_wxCaret_Move, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCaret_Move }}; -// void Move(int x, int y); -static int LUACALL wxLua_wxCaret_Move(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call Move - self->Move(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_SetBlinkTime[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCaret_SetBlinkTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_SetBlinkTime[1] = {{ wxLua_wxCaret_SetBlinkTime, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxCaret_SetBlinkTime }}; -// static void SetBlinkTime(int ms); -static int LUACALL wxLua_wxCaret_SetBlinkTime(lua_State *L) -{ - // int ms - int ms = (int)wxlua_getnumbertype(L, 1); - // call SetBlinkTime - wxCaret::SetBlinkTime(ms); - - return 0; -} - - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_SetSize1[] = { &wxluatype_wxCaret, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxCaret_SetSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_SetSize1[1] = {{ wxLua_wxCaret_SetSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCaret_SetSize1 }}; -// void SetSize(const wxSize& size); -static int LUACALL wxLua_wxCaret_SetSize1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call SetSize - self->SetSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_SetSize[] = { &wxluatype_wxCaret, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCaret_SetSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_SetSize[1] = {{ wxLua_wxCaret_SetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCaret_SetSize }}; -// void SetSize(int width, int height); -static int LUACALL wxLua_wxCaret_SetSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call SetSize - self->SetSize(width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_Show[] = { &wxluatype_wxCaret, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCaret_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Show[1] = {{ wxLua_wxCaret_Show, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxCaret_Show }}; -// void Show(bool show = true); -static int LUACALL wxLua_wxCaret_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxCaret * self = (wxCaret *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCaret); - // call Show - self->Show(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_delete[] = { &wxluatype_wxCaret, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCaret_delete }}; - - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_constructor2[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxCaret_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_constructor2[1] = {{ wxLua_wxCaret_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxCaret_constructor2 }}; -// wxCaret(wxWindow* window, const wxSize& size); -static int LUACALL wxLua_wxCaret_constructor2(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCaret* returns = new wxCaret(window, *size); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCaret); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCaret); - - return 1; -} - -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaret_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCaret_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_constructor1[1] = {{ wxLua_wxCaret_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxCaret_constructor1 }}; -// wxCaret(wxWindow* window, int width, int height); -static int LUACALL wxLua_wxCaret_constructor1(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCaret* returns = new wxCaret(window, width, height); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCaret); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCaret); - - return 1; -} - -static int LUACALL wxLua_wxCaret_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_constructor[1] = {{ wxLua_wxCaret_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCaret(); -static int LUACALL wxLua_wxCaret_constructor(lua_State *L) -{ - // call constructor - wxCaret* returns = new wxCaret(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCaret); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCaret); - - return 1; -} - - - - -#if ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Create_overload[] = -{ - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_Create1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCaret_Create1 }, -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_Create, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxCaret_Create }, -}; -static int s_wxluafunc_wxLua_wxCaret_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxCaret_Create_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_Move_overload[] = -{ - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_Move1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCaret_Move1 }, -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_Move, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCaret_Move }, -}; -static int s_wxluafunc_wxLua_wxCaret_Move_overload_count = sizeof(s_wxluafunc_wxLua_wxCaret_Move_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_SetSize_overload[] = -{ - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_SetSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCaret_SetSize1 }, -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_SetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxCaret_SetSize }, -}; -static int s_wxluafunc_wxLua_wxCaret_SetSize_overload_count = sizeof(s_wxluafunc_wxLua_wxCaret_SetSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaret_constructor_overload[] = -{ - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxCaret_constructor2 }, -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxCaret_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxCaret_constructor1 }, - { wxLua_wxCaret_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCaret_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCaret_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - -void wxLua_wxCaret_delete_function(void** p) -{ - wxCaret* o = (wxCaret*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCaret_methods[] = { -#if ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_Create_overload, s_wxluafunc_wxLua_wxCaret_Create_overload_count, 0 }, -#endif // ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - - { "GetBlinkTime", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxCaret_GetBlinkTime, 1, NULL }, - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - - { "GetPositionXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_GetPositionXY, 1, NULL }, - -#if (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_GetSize, 1, NULL }, -#endif // (wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect) - - { "GetSizeWH", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_GetSizeWH, 1, NULL }, - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_GetWindow, 1, NULL }, - { "Hide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_Hide, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_IsOk, 1, NULL }, - { "IsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_IsVisible, 1, NULL }, - -#if ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - { "Move", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_Move_overload, s_wxluafunc_wxLua_wxCaret_Move_overload_count, 0 }, -#endif // ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - - { "SetBlinkTime", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxCaret_SetBlinkTime, 1, NULL }, - -#if ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_SetSize_overload, s_wxluafunc_wxLua_wxCaret_SetSize_overload_count, 0 }, -#endif // ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCaret_Show, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCaret_delete, 1, NULL }, - -#if ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - { "wxCaret", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCaret_constructor_overload, s_wxluafunc_wxLua_wxCaret_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxCaret && wxUSE_CARET) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxCaret && wxUSE_CARET) - - { 0, 0, 0, 0 }, -}; - -int wxCaret_methodCount = sizeof(wxCaret_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - - -#if wxLUA_USE_wxCaret && wxUSE_CARET -// --------------------------------------------------------------------------- -// Bind class wxCaretSuspend -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCaretSuspend' -int wxluatype_wxCaretSuspend = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaretSuspend_delete[] = { &wxluatype_wxCaretSuspend, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaretSuspend_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCaretSuspend_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCaretSuspend_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxCaretSuspend_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCaretSuspend_constructor[1] = {{ wxLua_wxCaretSuspend_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxCaretSuspend_constructor }}; -// wxCaretSuspend(wxWindow *win = NULL); -static int LUACALL wxLua_wxCaretSuspend_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxCaretSuspend* returns = new wxCaretSuspend(win); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCaretSuspend); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCaretSuspend); - - return 1; -} - - - - -void wxLua_wxCaretSuspend_delete_function(void** p) -{ - wxCaretSuspend* o = (wxCaretSuspend*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCaretSuspend_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCaretSuspend_delete, 1, NULL }, - { "wxCaretSuspend", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCaretSuspend_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCaretSuspend_methodCount = sizeof(wxCaretSuspend_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY -// --------------------------------------------------------------------------- -// Bind class wxVideoMode -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxVideoMode' -int wxluatype_wxVideoMode = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_GetDepth[] = { &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxVideoMode_GetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_GetDepth[1] = {{ wxLua_wxVideoMode_GetDepth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVideoMode_GetDepth }}; -// int GetDepth() const; -static int LUACALL wxLua_wxVideoMode_GetDepth(lua_State *L) -{ - // get this - wxVideoMode * self = (wxVideoMode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVideoMode); - // call GetDepth - int returns = (self->GetDepth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_GetHeight[] = { &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxVideoMode_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_GetHeight[1] = {{ wxLua_wxVideoMode_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVideoMode_GetHeight }}; -// int GetHeight() const; -static int LUACALL wxLua_wxVideoMode_GetHeight(lua_State *L) -{ - // get this - wxVideoMode * self = (wxVideoMode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVideoMode); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_GetWidth[] = { &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxVideoMode_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_GetWidth[1] = {{ wxLua_wxVideoMode_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVideoMode_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxVideoMode_GetWidth(lua_State *L) -{ - // get this - wxVideoMode * self = (wxVideoMode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVideoMode); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_IsOk[] = { &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxVideoMode_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_IsOk[1] = {{ wxLua_wxVideoMode_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVideoMode_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxVideoMode_IsOk(lua_State *L) -{ - // get this - wxVideoMode * self = (wxVideoMode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVideoMode); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_Matches[] = { &wxluatype_wxVideoMode, &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxVideoMode_Matches(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_Matches[1] = {{ wxLua_wxVideoMode_Matches, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVideoMode_Matches }}; -// bool Matches(const wxVideoMode& other) const; -static int LUACALL wxLua_wxVideoMode_Matches(lua_State *L) -{ - // const wxVideoMode other - const wxVideoMode * other = (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode); - // get this - wxVideoMode * self = (wxVideoMode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVideoMode); - // call Matches - bool returns = (self->Matches(*other)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_delete[] = { &wxluatype_wxVideoMode, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxVideoMode_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_op_eq[] = { &wxluatype_wxVideoMode, &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxVideoMode_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_op_eq[1] = {{ wxLua_wxVideoMode_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVideoMode_op_eq }}; -// bool operator==(const wxVideoMode& v) const; -static int LUACALL wxLua_wxVideoMode_op_eq(lua_State *L) -{ - // const wxVideoMode v - const wxVideoMode * v = (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode); - // get this - wxVideoMode * self = (wxVideoMode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVideoMode); - // call op_eq - bool returns = ((*self)==(*v)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVideoMode_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxVideoMode_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVideoMode_constructor[1] = {{ wxLua_wxVideoMode_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxVideoMode_constructor }}; -// wxVideoMode(int width = 0, int height = 0, int depth = 0, int freq = 0); -static int LUACALL wxLua_wxVideoMode_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int freq = 0 - int freq = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int depth = 0 - int depth = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int height = 0 - int height = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int width = 0 - int width = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxVideoMode* returns = new wxVideoMode(width, height, depth, freq); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVideoMode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); - - return 1; -} - - - - -void wxLua_wxVideoMode_delete_function(void** p) -{ - wxVideoMode* o = (wxVideoMode*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxVideoMode_methods[] = { - { "GetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVideoMode_GetDepth, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVideoMode_GetHeight, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVideoMode_GetWidth, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVideoMode_IsOk, 1, NULL }, - { "Matches", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVideoMode_Matches, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxVideoMode_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVideoMode_op_eq, 1, NULL }, - { "wxVideoMode", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxVideoMode_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxVideoMode_methodCount = sizeof(wxVideoMode_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY -// --------------------------------------------------------------------------- -// Bind class wxArrayVideoModes -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArrayVideoModes' -int wxluatype_wxArrayVideoModes = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Add[] = { &wxluatype_wxArrayVideoModes, &wxluatype_wxVideoMode, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Add[1] = {{ wxLua_wxArrayVideoModes_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayVideoModes_Add }}; -// void Add(const wxVideoMode& vm, size_t copies = 1); -static int LUACALL wxLua_wxArrayVideoModes_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t copies = 1 - size_t copies = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // const wxVideoMode vm - const wxVideoMode * vm = (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode); - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Add - self->Add(*vm, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Alloc[] = { &wxluatype_wxArrayVideoModes, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Alloc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Alloc[1] = {{ wxLua_wxArrayVideoModes_Alloc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayVideoModes_Alloc }}; -// void Alloc(size_t nCount); -static int LUACALL wxLua_wxArrayVideoModes_Alloc(lua_State *L) -{ - // size_t nCount - size_t nCount = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Alloc - self->Alloc(nCount); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Clear[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Clear[1] = {{ wxLua_wxArrayVideoModes_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxArrayVideoModes_Clear(lua_State *L) -{ - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Empty[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Empty[1] = {{ wxLua_wxArrayVideoModes_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_Empty }}; -// void Empty(); -static int LUACALL wxLua_wxArrayVideoModes_Empty(lua_State *L) -{ - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Empty - self->Empty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_GetCount[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_GetCount[1] = {{ wxLua_wxArrayVideoModes_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxArrayVideoModes_GetCount(lua_State *L) -{ - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Insert[] = { &wxluatype_wxArrayVideoModes, &wxluatype_wxVideoMode, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Insert[1] = {{ wxLua_wxArrayVideoModes_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxArrayVideoModes_Insert }}; -// void Insert(const wxVideoMode& vm, int nIndex, size_t copies = 1); -static int LUACALL wxLua_wxArrayVideoModes_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t copies = 1 - size_t copies = (argCount >= 4 ? (size_t)wxlua_getuintegertype(L, 4) : 1); - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxVideoMode vm - const wxVideoMode * vm = (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode); - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Insert - self->Insert(*vm, nIndex, copies); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_IsEmpty[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_IsEmpty[1] = {{ wxLua_wxArrayVideoModes_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxArrayVideoModes_IsEmpty(lua_State *L) -{ - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Item[] = { &wxluatype_wxArrayVideoModes, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Item[1] = {{ wxLua_wxArrayVideoModes_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayVideoModes_Item }}; -// wxVideoMode Item(size_t nIndex) const; -static int LUACALL wxLua_wxArrayVideoModes_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Item - // allocate a new object using the copy constructor - wxVideoMode* returns = new wxVideoMode(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVideoMode); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Last[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Last(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Last[1] = {{ wxLua_wxArrayVideoModes_Last, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_Last }}; -// wxVideoMode Last(); -static int LUACALL wxLua_wxArrayVideoModes_Last(lua_State *L) -{ - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Last - // allocate a new object using the copy constructor - wxVideoMode* returns = new wxVideoMode(self->Last()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVideoMode); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_RemoveAt[] = { &wxluatype_wxArrayVideoModes, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_RemoveAt[1] = {{ wxLua_wxArrayVideoModes_RemoveAt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayVideoModes_RemoveAt }}; -// void RemoveAt(size_t nIndex, size_t count = 1); -static int LUACALL wxLua_wxArrayVideoModes_RemoveAt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t count = 1 - size_t count = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call RemoveAt - self->RemoveAt(nIndex, count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_Shrink[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_Shrink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_Shrink[1] = {{ wxLua_wxArrayVideoModes_Shrink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_Shrink }}; -// void Shrink(); -static int LUACALL wxLua_wxArrayVideoModes_Shrink(lua_State *L) -{ - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call Shrink - self->Shrink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_delete[] = { &wxluatype_wxArrayVideoModes, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_op_index[] = { &wxluatype_wxArrayVideoModes, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_op_index[1] = {{ wxLua_wxArrayVideoModes_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxArrayVideoModes_op_index }}; -// wxVideoMode& operator[](size_t nIndex); -static int LUACALL wxLua_wxArrayVideoModes_op_index(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxArrayVideoModes * self = (wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call op_index - wxVideoMode* returns = (wxVideoMode*)&((*self)[(nIndex)]); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayVideoModes_constructor1[] = { &wxluatype_wxArrayVideoModes, NULL }; -static int LUACALL wxLua_wxArrayVideoModes_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_constructor1[1] = {{ wxLua_wxArrayVideoModes_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_constructor1 }}; -// wxArrayVideoModes(const wxArrayVideoModes& array); -static int LUACALL wxLua_wxArrayVideoModes_constructor1(lua_State *L) -{ - // const wxArrayVideoModes array - const wxArrayVideoModes * array = (const wxArrayVideoModes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayVideoModes); - // call constructor - wxArrayVideoModes* returns = new wxArrayVideoModes(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayVideoModes); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayVideoModes); - - return 1; -} - -static int LUACALL wxLua_wxArrayVideoModes_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_constructor[1] = {{ wxLua_wxArrayVideoModes_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxArrayVideoModes(); -static int LUACALL wxLua_wxArrayVideoModes_constructor(lua_State *L) -{ - // call constructor - wxArrayVideoModes* returns = new wxArrayVideoModes(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayVideoModes); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayVideoModes); - - return 1; -} - - - - -#if (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayVideoModes_constructor_overload[] = -{ - { wxLua_wxArrayVideoModes_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxArrayVideoModes_constructor1 }, - { wxLua_wxArrayVideoModes_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxArrayVideoModes_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxArrayVideoModes_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -void wxLua_wxArrayVideoModes_delete_function(void** p) -{ - wxArrayVideoModes* o = (wxArrayVideoModes*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArrayVideoModes_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Add, 1, NULL }, - { "Alloc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Alloc, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Clear, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Empty, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Item, 1, NULL }, - { "Last", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Last, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_RemoveAt, 1, NULL }, - { "Shrink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_Shrink, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxArrayVideoModes_delete, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayVideoModes_op_index, 1, NULL }, - -#if (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { "wxArrayVideoModes", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxArrayVideoModes_constructor_overload, s_wxluafunc_wxLua_wxArrayVideoModes_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - - { 0, 0, 0, 0 }, -}; - -int wxArrayVideoModes_methodCount = sizeof(wxArrayVideoModes_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - - -#if wxLUA_USE_wxDisplay && wxUSE_DISPLAY -// --------------------------------------------------------------------------- -// Bind class wxDisplay -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDisplay' -int wxluatype_wxDisplay = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_ChangeMode[] = { &wxluatype_wxDisplay, &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxDisplay_ChangeMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_ChangeMode[1] = {{ wxLua_wxDisplay_ChangeMode, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDisplay_ChangeMode }}; -// bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode); -static int LUACALL wxLua_wxDisplay_ChangeMode(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxVideoMode mode = wxDefaultVideoMode - const wxVideoMode * mode = (argCount >= 2 ? (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode) : &wxDefaultVideoMode); - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call ChangeMode - bool returns = (self->ChangeMode(*mode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetClientArea[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_GetClientArea(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetClientArea[1] = {{ wxLua_wxDisplay_GetClientArea, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetClientArea }}; -// %wxchkver_2_8 wxRect GetClientArea() const; -static int LUACALL wxLua_wxDisplay_GetClientArea(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetClientArea - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetClientArea()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxDisplay_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetCount[1] = {{ wxLua_wxDisplay_GetCount, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static size_t GetCount(); -static int LUACALL wxLua_wxDisplay_GetCount(lua_State *L) -{ - // call GetCount - size_t returns = (wxDisplay::GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetCurrentMode[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_GetCurrentMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetCurrentMode[1] = {{ wxLua_wxDisplay_GetCurrentMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetCurrentMode }}; -// wxVideoMode GetCurrentMode() const; -static int LUACALL wxLua_wxDisplay_GetCurrentMode(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetCurrentMode - // allocate a new object using the copy constructor - wxVideoMode* returns = new wxVideoMode(self->GetCurrentMode()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVideoMode); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVideoMode); - - return 1; -} - - -#if (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetFromPoint[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxDisplay_GetFromPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetFromPoint[1] = {{ wxLua_wxDisplay_GetFromPoint, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetFromPoint }}; -// static int GetFromPoint(const wxPoint& pt); -static int LUACALL wxLua_wxDisplay_GetFromPoint(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call GetFromPoint - int returns = (wxDisplay::GetFromPoint(*pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetFromWindow[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxDisplay_GetFromWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetFromWindow[1] = {{ wxLua_wxDisplay_GetFromWindow, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetFromWindow }}; -// static int GetFromWindow(const wxWindow* win); -static int LUACALL wxLua_wxDisplay_GetFromWindow(lua_State *L) -{ - // const wxWindow win - const wxWindow * win = (const wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetFromWindow - int returns = (wxDisplay::GetFromWindow(win)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetGeometry[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_GetGeometry(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetGeometry[1] = {{ wxLua_wxDisplay_GetGeometry, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetGeometry }}; -// wxRect GetGeometry() const; -static int LUACALL wxLua_wxDisplay_GetGeometry(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetGeometry - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetGeometry()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetModes[] = { &wxluatype_wxDisplay, &wxluatype_wxVideoMode, NULL }; -static int LUACALL wxLua_wxDisplay_GetModes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetModes[1] = {{ wxLua_wxDisplay_GetModes, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDisplay_GetModes }}; -// wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode) const; -static int LUACALL wxLua_wxDisplay_GetModes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxVideoMode mode = wxDefaultVideoMode - const wxVideoMode * mode = (argCount >= 2 ? (const wxVideoMode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVideoMode) : &wxDefaultVideoMode); - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetModes - // allocate a new object using the copy constructor - wxArrayVideoModes* returns = new wxArrayVideoModes(self->GetModes(*mode)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayVideoModes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayVideoModes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetName[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetName[1] = {{ wxLua_wxDisplay_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxDisplay_GetName(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetPPI[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_GetPPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetPPI[1] = {{ wxLua_wxDisplay_GetPPI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetPPI }}; -// %wxchkver_3_1_2 wxSize GetPPI() const; -static int LUACALL wxLua_wxDisplay_GetPPI(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetPPI - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPPI()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_GetScaleFactor[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_GetScaleFactor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetScaleFactor[1] = {{ wxLua_wxDisplay_GetScaleFactor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_GetScaleFactor }}; -// %wxchkver_3_1_5 double GetScaleFactor() const; -static int LUACALL wxLua_wxDisplay_GetScaleFactor(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call GetScaleFactor - double returns = (self->GetScaleFactor()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) -static int LUACALL wxLua_wxDisplay_GetStdPPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetStdPPI[1] = {{ wxLua_wxDisplay_GetStdPPI, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_1_5 static wxSize GetStdPPI(); -static int LUACALL wxLua_wxDisplay_GetStdPPI(lua_State *L) -{ - // call GetStdPPI - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxDisplay::GetStdPPI()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static int LUACALL wxLua_wxDisplay_GetStdPPIValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_GetStdPPIValue[1] = {{ wxLua_wxDisplay_GetStdPPIValue, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_1_5 static int GetStdPPIValue(); -static int LUACALL wxLua_wxDisplay_GetStdPPIValue(lua_State *L) -{ - // call GetStdPPIValue - int returns = (wxDisplay::GetStdPPIValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_IsOk[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_IsOk[1] = {{ wxLua_wxDisplay_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_IsOk }}; -// !%wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxDisplay_IsOk(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_IsPrimary[] = { &wxluatype_wxDisplay, NULL }; -static int LUACALL wxLua_wxDisplay_IsPrimary(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_IsPrimary[1] = {{ wxLua_wxDisplay_IsPrimary, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_IsPrimary }}; -// bool IsPrimary(); -static int LUACALL wxLua_wxDisplay_IsPrimary(lua_State *L) -{ - // get this - wxDisplay * self = (wxDisplay *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDisplay); - // call IsPrimary - bool returns = (self->IsPrimary()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_delete[] = { &wxluatype_wxDisplay, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_delete }}; - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_constructor2[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDisplay_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_constructor2[1] = {{ wxLua_wxDisplay_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDisplay_constructor2 }}; -// !%wxchkver_3_0_0 wxDisplay(size_t index = 0); -static int LUACALL wxLua_wxDisplay_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t index = 0 - size_t index = (argCount >= 1 ? (size_t)wxlua_getuintegertype(L, 1) : 0); - // call constructor - wxDisplay* returns = new wxDisplay(index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDisplay); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDisplay); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_constructor1[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxDisplay_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_constructor1[1] = {{ wxLua_wxDisplay_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_constructor1 }}; -// %wxchkver_3_1_2 wxDisplay(const wxWindow* window); -static int LUACALL wxLua_wxDisplay_constructor1(lua_State *L) -{ - // const wxWindow window - const wxWindow * window = (const wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDisplay* returns = new wxDisplay(window); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDisplay); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDisplay); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDisplay_constructor[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxDisplay_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_constructor[1] = {{ wxLua_wxDisplay_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDisplay_constructor }}; -// %wxchkver_3_0_0 wxDisplay(unsigned int index = 0); -static int LUACALL wxLua_wxDisplay_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int index = 0 - unsigned int index = (argCount >= 1 ? (unsigned int)wxlua_getuintegertype(L, 1) : 0); - // call constructor - wxDisplay* returns = new wxDisplay(index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDisplay); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDisplay); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - - - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDisplay_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { wxLua_wxDisplay_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDisplay_constructor2 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { wxLua_wxDisplay_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxDisplay_constructor1 }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { wxLua_wxDisplay_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxDisplay_constructor }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) -}; -static int s_wxluafunc_wxLua_wxDisplay_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDisplay_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) - -void wxLua_wxDisplay_delete_function(void** p) -{ - wxDisplay* o = (wxDisplay*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDisplay_methods[] = { - { "ChangeMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_ChangeMode, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - { "GetClientArea", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetClientArea, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - - { "GetCount", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDisplay_GetCount, 1, NULL }, - { "GetCurrentMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetCurrentMode, 1, NULL }, - -#if (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) - { "GetFromPoint", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDisplay_GetFromPoint, 1, NULL }, -#endif // (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) - - { "GetFromWindow", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDisplay_GetFromWindow, 1, NULL }, - -#if (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) - { "GetGeometry", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetGeometry, 1, NULL }, -#endif // (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) && (wxLUA_USE_wxPointSizeRect) - - { "GetModes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetModes, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetName, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - { "GetPPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetPPI, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { "GetScaleFactor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_GetScaleFactor, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - { "GetStdPPI", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDisplay_GetStdPPI, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { "GetStdPPIValue", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxDisplay_GetStdPPIValue, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,5)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_IsOk, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY) - - { "IsPrimary", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDisplay_IsPrimary, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxDisplay_delete, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) - { "wxDisplay", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDisplay_constructor_overload, s_wxluafunc_wxLua_wxDisplay_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) && (wxLUA_USE_wxDisplay && wxUSE_DISPLAY)) - - { 0, 0, 0, 0 }, -}; - -int wxDisplay_methodCount = sizeof(wxDisplay_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxDisplay && wxUSE_DISPLAY - - -#if (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) -// --------------------------------------------------------------------------- -// Bind class wxEffects -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEffects' -int wxluatype_wxEffects = WXLUA_TUNKNOWN; - -#if (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_DrawSunkenEdge[] = { &wxluatype_wxEffects, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEffects_DrawSunkenEdge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_DrawSunkenEdge[1] = {{ wxLua_wxEffects_DrawSunkenEdge, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxEffects_DrawSunkenEdge }}; -// void DrawSunkenEdge(wxDC& dc, const wxRect& rect, int borderSize = 1); -static int LUACALL wxLua_wxEffects_DrawSunkenEdge(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int borderSize = 1 - int borderSize = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call DrawSunkenEdge - self->DrawSunkenEdge(*dc, *rect, borderSize); - - return 0; -} - -#endif // (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_GetDarkShadow[] = { &wxluatype_wxEffects, NULL }; -static int LUACALL wxLua_wxEffects_GetDarkShadow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_GetDarkShadow[1] = {{ wxLua_wxEffects_GetDarkShadow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEffects_GetDarkShadow }}; -// wxColour GetDarkShadow() const; -static int LUACALL wxLua_wxEffects_GetDarkShadow(lua_State *L) -{ - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call GetDarkShadow - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetDarkShadow()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_GetFaceColour[] = { &wxluatype_wxEffects, NULL }; -static int LUACALL wxLua_wxEffects_GetFaceColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_GetFaceColour[1] = {{ wxLua_wxEffects_GetFaceColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEffects_GetFaceColour }}; -// wxColour GetFaceColour() const; -static int LUACALL wxLua_wxEffects_GetFaceColour(lua_State *L) -{ - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call GetFaceColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetFaceColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_GetHighlightColour[] = { &wxluatype_wxEffects, NULL }; -static int LUACALL wxLua_wxEffects_GetHighlightColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_GetHighlightColour[1] = {{ wxLua_wxEffects_GetHighlightColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEffects_GetHighlightColour }}; -// wxColour GetHighlightColour() const; -static int LUACALL wxLua_wxEffects_GetHighlightColour(lua_State *L) -{ - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call GetHighlightColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHighlightColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_GetLightShadow[] = { &wxluatype_wxEffects, NULL }; -static int LUACALL wxLua_wxEffects_GetLightShadow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_GetLightShadow[1] = {{ wxLua_wxEffects_GetLightShadow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEffects_GetLightShadow }}; -// wxColour GetLightShadow() const; -static int LUACALL wxLua_wxEffects_GetLightShadow(lua_State *L) -{ - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call GetLightShadow - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetLightShadow()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_GetMediumShadow[] = { &wxluatype_wxEffects, NULL }; -static int LUACALL wxLua_wxEffects_GetMediumShadow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_GetMediumShadow[1] = {{ wxLua_wxEffects_GetMediumShadow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEffects_GetMediumShadow }}; -// wxColour GetMediumShadow() const; -static int LUACALL wxLua_wxEffects_GetMediumShadow(lua_State *L) -{ - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call GetMediumShadow - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetMediumShadow()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_Set[] = { &wxluatype_wxEffects, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_Set[1] = {{ wxLua_wxEffects_Set, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxEffects_Set }}; -// void Set(const wxColour& highlightColour, const wxColour& lightShadow, const wxColour& faceColour, const wxColour& mediumShadow, const wxColour& darkShadow); -static int LUACALL wxLua_wxEffects_Set(lua_State *L) -{ - // const wxColour darkShadow - const wxColour * darkShadow = (const wxColour *)wxluaT_getuserdatatype(L, 6, wxluatype_wxColour); - // const wxColour mediumShadow - const wxColour * mediumShadow = (const wxColour *)wxluaT_getuserdatatype(L, 5, wxluatype_wxColour); - // const wxColour faceColour - const wxColour * faceColour = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // const wxColour lightShadow - const wxColour * lightShadow = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxColour highlightColour - const wxColour * highlightColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call Set - self->Set(*highlightColour, *lightShadow, *faceColour, *mediumShadow, *darkShadow); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_SetDarkShadow[] = { &wxluatype_wxEffects, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_SetDarkShadow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_SetDarkShadow[1] = {{ wxLua_wxEffects_SetDarkShadow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEffects_SetDarkShadow }}; -// void SetDarkShadow(const wxColour& c); -static int LUACALL wxLua_wxEffects_SetDarkShadow(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call SetDarkShadow - self->SetDarkShadow(*c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_SetFaceColour[] = { &wxluatype_wxEffects, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_SetFaceColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_SetFaceColour[1] = {{ wxLua_wxEffects_SetFaceColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEffects_SetFaceColour }}; -// void SetFaceColour(const wxColour& c); -static int LUACALL wxLua_wxEffects_SetFaceColour(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call SetFaceColour - self->SetFaceColour(*c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_SetHighlightColour[] = { &wxluatype_wxEffects, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_SetHighlightColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_SetHighlightColour[1] = {{ wxLua_wxEffects_SetHighlightColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEffects_SetHighlightColour }}; -// void SetHighlightColour(const wxColour& c); -static int LUACALL wxLua_wxEffects_SetHighlightColour(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call SetHighlightColour - self->SetHighlightColour(*c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_SetLightShadow[] = { &wxluatype_wxEffects, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_SetLightShadow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_SetLightShadow[1] = {{ wxLua_wxEffects_SetLightShadow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEffects_SetLightShadow }}; -// void SetLightShadow(const wxColour& c); -static int LUACALL wxLua_wxEffects_SetLightShadow(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call SetLightShadow - self->SetLightShadow(*c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_SetMediumShadow[] = { &wxluatype_wxEffects, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_SetMediumShadow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_SetMediumShadow[1] = {{ wxLua_wxEffects_SetMediumShadow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEffects_SetMediumShadow }}; -// void SetMediumShadow(const wxColour& c); -static int LUACALL wxLua_wxEffects_SetMediumShadow(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call SetMediumShadow - self->SetMediumShadow(*c); - - return 0; -} - -#endif // ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) - -#if ((((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_TileBitmap[] = { &wxluatype_wxEffects, &wxluatype_wxRect, &wxluatype_wxDC, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxEffects_TileBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_TileBitmap[1] = {{ wxLua_wxEffects_TileBitmap, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxEffects_TileBitmap }}; -// bool TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap); -static int LUACALL wxLua_wxEffects_TileBitmap(lua_State *L) -{ - // wxBitmap bitmap - wxBitmap * bitmap = (wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxEffects * self = (wxEffects *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEffects); - // call TileBitmap - bool returns = (self->TileBitmap(*rect, *dc, *bitmap)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_delete[] = { &wxluatype_wxEffects, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxEffects_delete }}; - - -#if ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEffects_constructor1[] = { &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxEffects_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_constructor1[1] = {{ wxLua_wxEffects_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxEffects_constructor1 }}; -// wxEffects(const wxColour& highlightColour, const wxColour& lightShadow, const wxColour& faceColour, const wxColour& mediumShadow, const wxColour& darkShadow); -static int LUACALL wxLua_wxEffects_constructor1(lua_State *L) -{ - // const wxColour darkShadow - const wxColour * darkShadow = (const wxColour *)wxluaT_getuserdatatype(L, 5, wxluatype_wxColour); - // const wxColour mediumShadow - const wxColour * mediumShadow = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // const wxColour faceColour - const wxColour * faceColour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxColour lightShadow - const wxColour * lightShadow = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // const wxColour highlightColour - const wxColour * highlightColour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxEffects* returns = new wxEffects(*highlightColour, *lightShadow, *faceColour, *mediumShadow, *darkShadow); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxEffects); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEffects); - - return 1; -} - -#endif // ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) - -static int LUACALL wxLua_wxEffects_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_constructor[1] = {{ wxLua_wxEffects_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxEffects(); // use system default colours -static int LUACALL wxLua_wxEffects_constructor(lua_State *L) -{ - // call constructor - wxEffects* returns = new wxEffects(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxEffects); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEffects); - - return 1; -} - - - - -#if (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush))||((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEffects_constructor_overload[] = -{ - -#if ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxEffects_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxEffects_constructor1 }, -#endif // ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxEffects_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxEffects_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxEffects_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush))||((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) - -void wxLua_wxEffects_delete_function(void** p) -{ - wxEffects* o = (wxEffects*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEffects_methods[] = { -#if (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "DrawSunkenEdge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_DrawSunkenEdge, 1, NULL }, -#endif // (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -#if ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) - { "GetDarkShadow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_GetDarkShadow, 1, NULL }, - { "GetFaceColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_GetFaceColour, 1, NULL }, - { "GetHighlightColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_GetHighlightColour, 1, NULL }, - { "GetLightShadow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_GetLightShadow, 1, NULL }, - { "GetMediumShadow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_GetMediumShadow, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_Set, 1, NULL }, - { "SetDarkShadow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_SetDarkShadow, 1, NULL }, - { "SetFaceColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_SetFaceColour, 1, NULL }, - { "SetHighlightColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_SetHighlightColour, 1, NULL }, - { "SetLightShadow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_SetLightShadow, 1, NULL }, - { "SetMediumShadow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_SetMediumShadow, 1, NULL }, -#endif // ((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush) - -#if ((((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { "TileBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEffects_TileBitmap, 1, NULL }, -#endif // ((((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxEffects_delete, 1, NULL }, - -#if (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush))||((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) - { "wxEffects", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxEffects_constructor_overload, s_wxluafunc_wxLua_wxEffects_constructor_overload_count, 0 }, -#endif // (((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxColourPenBrush))||((defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) - - { 0, 0, 0, 0 }, -}; - -int wxEffects_methodCount = sizeof(wxEffects_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8) - - -#if wxLUA_USE_wxRenderer -// --------------------------------------------------------------------------- -// Bind struct wxSplitterRenderParams -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSplitterRenderParams' -int wxluatype_wxSplitterRenderParams = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterRenderParams_Get_border[] = { &wxluatype_wxSplitterRenderParams, NULL }; -static int LUACALL wxLua_wxSplitterRenderParams_Get_border(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterRenderParams_Get_border[1] = {{ wxLua_wxSplitterRenderParams_Get_border, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterRenderParams_Get_border }}; -// const wxCoord border; // the width of the border of the splitter window -static int LUACALL wxLua_wxSplitterRenderParams_Get_border(lua_State *L) -{ - // get this - wxSplitterRenderParams *self = (wxSplitterRenderParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterRenderParams); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->border) == (double)(self->border)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->border); -} else -#endif -{ - lua_pushnumber(L, self->border); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterRenderParams_Get_isHotSensitive[] = { &wxluatype_wxSplitterRenderParams, NULL }; -static int LUACALL wxLua_wxSplitterRenderParams_Get_isHotSensitive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterRenderParams_Get_isHotSensitive[1] = {{ wxLua_wxSplitterRenderParams_Get_isHotSensitive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterRenderParams_Get_isHotSensitive }}; -// const bool isHotSensitive; // true if the splitter changes its appearance when the mouse is over it -static int LUACALL wxLua_wxSplitterRenderParams_Get_isHotSensitive(lua_State *L) -{ - // get this - wxSplitterRenderParams *self = (wxSplitterRenderParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterRenderParams); - // push the result flag - lua_pushboolean(L, self->isHotSensitive); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterRenderParams_Get_widthSash[] = { &wxluatype_wxSplitterRenderParams, NULL }; -static int LUACALL wxLua_wxSplitterRenderParams_Get_widthSash(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterRenderParams_Get_widthSash[1] = {{ wxLua_wxSplitterRenderParams_Get_widthSash, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterRenderParams_Get_widthSash }}; -// const wxCoord widthSash; // the width of the splitter sash -static int LUACALL wxLua_wxSplitterRenderParams_Get_widthSash(lua_State *L) -{ - // get this - wxSplitterRenderParams *self = (wxSplitterRenderParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterRenderParams); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->widthSash) == (double)(self->widthSash)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->widthSash); -} else -#endif -{ - lua_pushnumber(L, self->widthSash); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterRenderParams_delete[] = { &wxluatype_wxSplitterRenderParams, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterRenderParams_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSplitterRenderParams_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterRenderParams_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSplitterRenderParams_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterRenderParams_constructor[1] = {{ wxLua_wxSplitterRenderParams_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxSplitterRenderParams_constructor }}; -// wxSplitterRenderParams(wxCoord widthSash_, wxCoord border_, bool isSens_); -static int LUACALL wxLua_wxSplitterRenderParams_constructor(lua_State *L) -{ - // bool isSens_ - bool isSens_ = wxlua_getbooleantype(L, 3); - // wxCoord border_ - wxCoord border_ = (wxCoord)wxlua_getnumbertype(L, 2); - // wxCoord widthSash_ - wxCoord widthSash_ = (wxCoord)wxlua_getnumbertype(L, 1); - // call constructor - wxSplitterRenderParams* returns = new wxSplitterRenderParams(widthSash_, border_, isSens_); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSplitterRenderParams); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplitterRenderParams); - - return 1; -} - - - - -void wxLua_wxSplitterRenderParams_delete_function(void** p) -{ - wxSplitterRenderParams* o = (wxSplitterRenderParams*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSplitterRenderParams_methods[] = { - // %member { "Get_border", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterRenderParams_Get_border, 1, NULL }, - // %member { "Get_isHotSensitive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterRenderParams_Get_isHotSensitive, 1, NULL }, - // %member { "Get_widthSash", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterRenderParams_Get_widthSash, 1, NULL }, - { "border", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSplitterRenderParams_Get_border, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSplitterRenderParams_delete, 1, NULL }, - { "isHotSensitive", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSplitterRenderParams_Get_isHotSensitive, 1, NULL }, - { "widthSash", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSplitterRenderParams_Get_widthSash, 1, NULL }, - { "wxSplitterRenderParams", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSplitterRenderParams_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSplitterRenderParams_methodCount = sizeof(wxSplitterRenderParams_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRenderer - - -#if wxLUA_USE_wxRenderer -// --------------------------------------------------------------------------- -// Bind struct wxHeaderButtonParams -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHeaderButtonParams' -int wxluatype_wxHeaderButtonParams = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_arrowColour[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_arrowColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_arrowColour[1] = {{ wxLua_wxHeaderButtonParams_Get_m_arrowColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_arrowColour }}; -// wxColour m_arrowColour; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_arrowColour(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_arrowColour, wxluatype_wxColour); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelAlignment[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelAlignment[1] = {{ wxLua_wxHeaderButtonParams_Get_m_labelAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelAlignment }}; -// int m_labelAlignment; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelAlignment(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_labelAlignment) == (double)(self->m_labelAlignment)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_labelAlignment); -} else -#endif -{ - lua_pushnumber(L, self->m_labelAlignment); -} - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelBitmap[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelBitmap[1] = {{ wxLua_wxHeaderButtonParams_Get_m_labelBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelBitmap }}; -// wxBitmap m_labelBitmap; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelBitmap(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_labelBitmap, wxluatype_wxBitmap); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelColour[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelColour[1] = {{ wxLua_wxHeaderButtonParams_Get_m_labelColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelColour }}; -// wxColour m_labelColour; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelColour(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_labelColour, wxluatype_wxColour); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelFont[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelFont[1] = {{ wxLua_wxHeaderButtonParams_Get_m_labelFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelFont }}; -// wxFont m_labelFont; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelFont(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_labelFont, wxluatype_wxFont); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelText[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelText[1] = {{ wxLua_wxHeaderButtonParams_Get_m_labelText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_labelText }}; -// wxString m_labelText; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_labelText(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result string - wxlua_pushwxString(L, self->m_labelText); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_selectionColour[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_selectionColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_selectionColour[1] = {{ wxLua_wxHeaderButtonParams_Get_m_selectionColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Get_m_selectionColour }}; -// wxColour m_selectionColour; -static int LUACALL wxLua_wxHeaderButtonParams_Get_m_selectionColour(lua_State *L) -{ - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_selectionColour, wxluatype_wxColour); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_arrowColour[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_arrowColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_arrowColour[1] = {{ wxLua_wxHeaderButtonParams_Set_m_arrowColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_arrowColour }}; -// wxColour m_arrowColour; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_arrowColour(lua_State *L) -{ - // get the data type value - wxColour* val = (wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_arrowColour = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelAlignment[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelAlignment[1] = {{ wxLua_wxHeaderButtonParams_Set_m_labelAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelAlignment }}; -// int m_labelAlignment; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelAlignment(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_labelAlignment = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelBitmap[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelBitmap[1] = {{ wxLua_wxHeaderButtonParams_Set_m_labelBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelBitmap }}; -// wxBitmap m_labelBitmap; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelBitmap(lua_State *L) -{ - // get the data type value - wxBitmap* val = (wxBitmap*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_labelBitmap = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelColour[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelColour[1] = {{ wxLua_wxHeaderButtonParams_Set_m_labelColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelColour }}; -// wxColour m_labelColour; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelColour(lua_State *L) -{ - // get the data type value - wxColour* val = (wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_labelColour = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelFont[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelFont[1] = {{ wxLua_wxHeaderButtonParams_Set_m_labelFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelFont }}; -// wxFont m_labelFont; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelFont(lua_State *L) -{ - // get the data type value - wxFont* val = (wxFont*)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_labelFont = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelText[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelText[1] = {{ wxLua_wxHeaderButtonParams_Set_m_labelText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_labelText }}; -// wxString m_labelText; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_labelText(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_labelText = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_selectionColour[] = { &wxluatype_wxHeaderButtonParams, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_selectionColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_selectionColour[1] = {{ wxLua_wxHeaderButtonParams_Set_m_selectionColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHeaderButtonParams_Set_m_selectionColour }}; -// wxColour m_selectionColour; -static int LUACALL wxLua_wxHeaderButtonParams_Set_m_selectionColour(lua_State *L) -{ - // get the data type value - wxColour* val = (wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHeaderButtonParams *self = (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHeaderButtonParams); - self->m_selectionColour = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHeaderButtonParams_delete[] = { &wxluatype_wxHeaderButtonParams, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHeaderButtonParams_delete }}; - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -static int LUACALL wxLua_wxHeaderButtonParams_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHeaderButtonParams_constructor[1] = {{ wxLua_wxHeaderButtonParams_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHeaderButtonParams(); -static int LUACALL wxLua_wxHeaderButtonParams_constructor(lua_State *L) -{ - // call constructor - wxHeaderButtonParams* returns = new wxHeaderButtonParams(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHeaderButtonParams); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHeaderButtonParams); - - return 1; -} - - - - -void wxLua_wxHeaderButtonParams_delete_function(void** p) -{ - wxHeaderButtonParams* o = (wxHeaderButtonParams*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHeaderButtonParams_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - // %member { "Get_m_arrowColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_arrowColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - - // %member { "Get_m_labelAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelAlignment, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - // %member { "Get_m_labelBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - // %member { "Get_m_labelColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - // %member { "Get_m_labelFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - - // %member { "Get_m_labelText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - // %member { "Get_m_selectionColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_selectionColour, 1, NULL }, - // %member { "Set_m_arrowColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_arrowColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - - // %member { "Set_m_labelAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelAlignment, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - // %member { "Set_m_labelBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - // %member { "Set_m_labelColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - // %member { "Set_m_labelFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - - // %member { "Set_m_labelText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - // %member { "Set_m_selectionColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_selectionColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHeaderButtonParams_delete, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - { "m_arrowColour", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_arrowColour, 1, NULL }, - { "m_arrowColour", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_arrowColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - - { "m_labelAlignment", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelAlignment, 1, NULL }, - { "m_labelAlignment", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelAlignment, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - { "m_labelBitmap", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelBitmap, 1, NULL }, - { "m_labelBitmap", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - { "m_labelColour", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelColour, 1, NULL }, - { "m_labelColour", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - { "m_labelFont", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelFont, 1, NULL }, - { "m_labelFont", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRenderer) - - { "m_labelText", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_labelText, 1, NULL }, - { "m_labelText", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_labelText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - { "m_selectionColour", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Set_m_selectionColour, 1, NULL }, - { "m_selectionColour", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxHeaderButtonParams_Get_m_selectionColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRenderer) - - { "wxHeaderButtonParams", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHeaderButtonParams_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHeaderButtonParams_methodCount = sizeof(wxHeaderButtonParams_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRenderer - - -#if wxLUA_USE_wxRenderer -// --------------------------------------------------------------------------- -// Bind struct wxRendererVersion -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRendererVersion' -int wxluatype_wxRendererVersion = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererVersion_Get_age[] = { &wxluatype_wxRendererVersion, NULL }; -static int LUACALL wxLua_wxRendererVersion_Get_age(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererVersion_Get_age[1] = {{ wxLua_wxRendererVersion_Get_age, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRendererVersion_Get_age }}; -// const int age; -static int LUACALL wxLua_wxRendererVersion_Get_age(lua_State *L) -{ - // get this - wxRendererVersion *self = (wxRendererVersion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererVersion); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->age) == (double)(self->age)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->age); -} else -#endif -{ - lua_pushnumber(L, self->age); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererVersion_Get_version[] = { &wxluatype_wxRendererVersion, NULL }; -static int LUACALL wxLua_wxRendererVersion_Get_version(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererVersion_Get_version[1] = {{ wxLua_wxRendererVersion_Get_version, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRendererVersion_Get_version }}; -// const int version; -static int LUACALL wxLua_wxRendererVersion_Get_version(lua_State *L) -{ - // get this - wxRendererVersion *self = (wxRendererVersion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererVersion); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->version) == (double)(self->version)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->version); -} else -#endif -{ - lua_pushnumber(L, self->version); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererVersion_IsCompatible[] = { &wxluatype_wxRendererVersion, NULL }; -static int LUACALL wxLua_wxRendererVersion_IsCompatible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererVersion_IsCompatible[1] = {{ wxLua_wxRendererVersion_IsCompatible, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRendererVersion_IsCompatible }}; -// static bool IsCompatible(const wxRendererVersion& ver); -static int LUACALL wxLua_wxRendererVersion_IsCompatible(lua_State *L) -{ - // const wxRendererVersion ver - const wxRendererVersion * ver = (const wxRendererVersion *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererVersion); - // call IsCompatible - bool returns = (wxRendererVersion::IsCompatible(*ver)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererVersion_delete[] = { &wxluatype_wxRendererVersion, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererVersion_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRendererVersion_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererVersion_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererVersion_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererVersion_constructor[1] = {{ wxLua_wxRendererVersion_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRendererVersion_constructor }}; -// wxRendererVersion(int version_, int age_); -static int LUACALL wxLua_wxRendererVersion_constructor(lua_State *L) -{ - // int age_ - int age_ = (int)wxlua_getnumbertype(L, 2); - // int version_ - int version_ = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxRendererVersion* returns = new wxRendererVersion(version_, age_); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRendererVersion); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererVersion); - - return 1; -} - - - - -void wxLua_wxRendererVersion_delete_function(void** p) -{ - wxRendererVersion* o = (wxRendererVersion*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRendererVersion_methods[] = { - // %member { "Get_age", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererVersion_Get_age, 1, NULL }, - // %member { "Get_version", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererVersion_Get_version, 1, NULL }, - { "IsCompatible", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRendererVersion_IsCompatible, 1, NULL }, - { "age", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRendererVersion_Get_age, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRendererVersion_delete, 1, NULL }, - { "version", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRendererVersion_Get_version, 1, NULL }, - { "wxRendererVersion", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRendererVersion_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRendererVersion_methodCount = sizeof(wxRendererVersion_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxRendererVersion_enums[] = { -#if wxLUA_USE_wxRenderer - { "Current_Age", wxRendererVersion::Current_Age }, - { "Current_Version", wxRendererVersion::Current_Version }, -#endif // wxLUA_USE_wxRenderer - - { NULL, 0, }, -}; -int wxRendererVersion_enumCount = sizeof(wxRendererVersion_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxRenderer - - -#if wxLUA_USE_wxRenderer -// --------------------------------------------------------------------------- -// Bind class wxRendererNative -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRendererNative' -int wxluatype_wxRendererNative = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawCheckBox[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawCheckBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawCheckBox[1] = {{ wxLua_wxRendererNative_DrawCheckBox, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawCheckBox }}; -// virtual void DrawCheckBox(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawCheckBox(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawCheckBox - self->DrawCheckBox(win, *dc, *rect, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawComboBoxDropButton[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawComboBoxDropButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawComboBoxDropButton[1] = {{ wxLua_wxRendererNative_DrawComboBoxDropButton, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawComboBoxDropButton }}; -// virtual void DrawComboBoxDropButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawComboBoxDropButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawComboBoxDropButton - self->DrawComboBoxDropButton(win, *dc, *rect, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawDropArrow[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawDropArrow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawDropArrow[1] = {{ wxLua_wxRendererNative_DrawDropArrow, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawDropArrow }}; -// virtual void DrawDropArrow(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawDropArrow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawDropArrow - self->DrawDropArrow(win, *dc, *rect, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawHeaderButton[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawHeaderButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawHeaderButton[1] = {{ wxLua_wxRendererNative_DrawHeaderButton, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxRendererNative_DrawHeaderButton }}; -// virtual int DrawHeaderButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0, wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE, wxHeaderButtonParams* params=NULL); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawHeaderButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxHeaderButtonParams params = NULL - wxHeaderButtonParams * params = (argCount >= 7 ? (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 7, wxluatype_wxHeaderButtonParams) : NULL); - // wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE - wxHeaderSortIconType sortArrow = (argCount >= 6 ? (wxHeaderSortIconType)wxlua_getenumtype(L, 6) : wxHDR_SORT_ICON_NONE); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawHeaderButton - int returns = (self->DrawHeaderButton(win, *dc, *rect, flags, sortArrow, params)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawHeaderButtonContents[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_wxHeaderButtonParams, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawHeaderButtonContents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawHeaderButtonContents[1] = {{ wxLua_wxRendererNative_DrawHeaderButtonContents, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxRendererNative_DrawHeaderButtonContents }}; -// virtual int DrawHeaderButtonContents(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0, wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE, wxHeaderButtonParams* params=NULL); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawHeaderButtonContents(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxHeaderButtonParams params = NULL - wxHeaderButtonParams * params = (argCount >= 7 ? (wxHeaderButtonParams *)wxluaT_getuserdatatype(L, 7, wxluatype_wxHeaderButtonParams) : NULL); - // wxHeaderSortIconType sortArrow = wxHDR_SORT_ICON_NONE - wxHeaderSortIconType sortArrow = (argCount >= 6 ? (wxHeaderSortIconType)wxlua_getenumtype(L, 6) : wxHDR_SORT_ICON_NONE); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawHeaderButtonContents - int returns = (self->DrawHeaderButtonContents(win, *dc, *rect, flags, sortArrow, params)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawItemSelectionRect[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawItemSelectionRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawItemSelectionRect[1] = {{ wxLua_wxRendererNative_DrawItemSelectionRect, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawItemSelectionRect }}; -// virtual void DrawItemSelectionRect(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawItemSelectionRect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawItemSelectionRect - self->DrawItemSelectionRect(win, *dc, *rect, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawPushButton[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawPushButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawPushButton[1] = {{ wxLua_wxRendererNative_DrawPushButton, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawPushButton }}; -// virtual void DrawPushButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawPushButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawPushButton - self->DrawPushButton(win, *dc, *rect, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawSplitterBorder[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawSplitterBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawSplitterBorder[1] = {{ wxLua_wxRendererNative_DrawSplitterBorder, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawSplitterBorder }}; -// virtual void DrawSplitterBorder(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawSplitterBorder(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawSplitterBorder - self->DrawSplitterBorder(win, *dc, *rect, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawSplitterSash[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawSplitterSash(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawSplitterSash[1] = {{ wxLua_wxRendererNative_DrawSplitterSash, WXLUAMETHOD_METHOD, 6, 7, s_wxluatypeArray_wxLua_wxRendererNative_DrawSplitterSash }}; -// virtual void DrawSplitterSash(wxWindow *win, wxDC& dc, const wxSize& size, wxCoord position, wxOrientation orient, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawSplitterSash(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // wxOrientation orient - wxOrientation orient = (wxOrientation)wxlua_getenumtype(L, 6); - // wxCoord position - wxCoord position = (wxCoord)wxlua_getnumbertype(L, 5); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawSplitterSash - self->DrawSplitterSash(win, *dc, *size, position, orient, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_DrawTreeItemButton[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRendererNative_DrawTreeItemButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_DrawTreeItemButton[1] = {{ wxLua_wxRendererNative_DrawTreeItemButton, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRendererNative_DrawTreeItemButton }}; -// virtual void DrawTreeItemButton(wxWindow *win, wxDC& dc, const wxRect& rect, int flags = 0); //= 0; -static int LUACALL wxLua_wxRendererNative_DrawTreeItemButton(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call DrawTreeItemButton - self->DrawTreeItemButton(win, *dc, *rect, flags); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRenderer) - -static int LUACALL wxLua_wxRendererNative_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_Get[1] = {{ wxLua_wxRendererNative_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxRendererNative& Get(); -static int LUACALL wxLua_wxRendererNative_Get(lua_State *L) -{ - // call Get - wxRendererNative* returns = (wxRendererNative*)&wxRendererNative::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererNative); - - return 1; -} - -static int LUACALL wxLua_wxRendererNative_GetDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_GetDefault[1] = {{ wxLua_wxRendererNative_GetDefault, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxRendererNative& GetDefault(); -static int LUACALL wxLua_wxRendererNative_GetDefault(lua_State *L) -{ - // call GetDefault - wxRendererNative* returns = (wxRendererNative*)&wxRendererNative::GetDefault(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererNative); - - return 1; -} - -static int LUACALL wxLua_wxRendererNative_GetGeneric(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_GetGeneric[1] = {{ wxLua_wxRendererNative_GetGeneric, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxRendererNative& GetGeneric(); -static int LUACALL wxLua_wxRendererNative_GetGeneric(lua_State *L) -{ - // call GetGeneric - wxRendererNative* returns = (wxRendererNative*)&wxRendererNative::GetGeneric(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererNative); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_GetHeaderButtonHeight[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRendererNative_GetHeaderButtonHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_GetHeaderButtonHeight[1] = {{ wxLua_wxRendererNative_GetHeaderButtonHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRendererNative_GetHeaderButtonHeight }}; -// virtual int GetHeaderButtonHeight(wxWindow *win); //= 0; -static int LUACALL wxLua_wxRendererNative_GetHeaderButtonHeight(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call GetHeaderButtonHeight - int returns = (self->GetHeaderButtonHeight(win)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_GetSplitterParams[] = { &wxluatype_wxRendererNative, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRendererNative_GetSplitterParams(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_GetSplitterParams[1] = {{ wxLua_wxRendererNative_GetSplitterParams, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRendererNative_GetSplitterParams }}; -// virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win); //= 0; -static int LUACALL wxLua_wxRendererNative_GetSplitterParams(lua_State *L) -{ - // const wxWindow win - const wxWindow * win = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call GetSplitterParams - // allocate a new object using the copy constructor - wxSplitterRenderParams* returns = new wxSplitterRenderParams(self->GetSplitterParams(win)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSplitterRenderParams); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplitterRenderParams); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_GetVersion[] = { &wxluatype_wxRendererNative, NULL }; -static int LUACALL wxLua_wxRendererNative_GetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_GetVersion[1] = {{ wxLua_wxRendererNative_GetVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRendererNative_GetVersion }}; -// virtual wxRendererVersion GetVersion() const; //= 0; -static int LUACALL wxLua_wxRendererNative_GetVersion(lua_State *L) -{ - // get this - wxRendererNative * self = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - // call GetVersion - // allocate a new object using the copy constructor - wxRendererVersion* returns = new wxRendererVersion(self->GetVersion()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRendererVersion); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererVersion); - - return 1; -} - - -#if ((wxLUA_USE_wxRenderer) && (wxUSE_DYNLIB_CLASS)) && (wxLUA_USE_wxRenderer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_Load[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRendererNative_Load(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_Load[1] = {{ wxLua_wxRendererNative_Load, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRendererNative_Load }}; -// static %gc wxRendererNative *Load(const wxString& name); -static int LUACALL wxLua_wxRendererNative_Load(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call Load - wxRendererNative* returns = (wxRendererNative*)wxRendererNative::Load(name); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxRendererNative); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererNative); - - return 1; -} - -#endif // ((wxLUA_USE_wxRenderer) && (wxUSE_DYNLIB_CLASS)) && (wxLUA_USE_wxRenderer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_Set[] = { &wxluatype_wxRendererNative, NULL }; -static int LUACALL wxLua_wxRendererNative_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_Set[1] = {{ wxLua_wxRendererNative_Set, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRendererNative_Set }}; -// static %gc wxRendererNative *Set(%ungc wxRendererNative *renderer); -static int LUACALL wxLua_wxRendererNative_Set(lua_State *L) -{ - // wxRendererNative renderer - wxRendererNative * renderer = (wxRendererNative *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRendererNative); - if (wxluaO_isgcobject(L, renderer)) wxluaO_undeletegcobject(L, renderer); - // call Set - wxRendererNative* returns = (wxRendererNative*)wxRendererNative::Set(renderer); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxRendererNative); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRendererNative); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRendererNative_delete[] = { &wxluatype_wxRendererNative, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRendererNative_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRendererNative_delete }}; - - - - -void wxLua_wxRendererNative_delete_function(void** p) -{ - wxRendererNative* o = (wxRendererNative*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRendererNative_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRenderer) - { "DrawCheckBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawCheckBox, 1, NULL }, - { "DrawComboBoxDropButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawComboBoxDropButton, 1, NULL }, - { "DrawDropArrow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawDropArrow, 1, NULL }, - { "DrawHeaderButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawHeaderButton, 1, NULL }, - { "DrawHeaderButtonContents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawHeaderButtonContents, 1, NULL }, - { "DrawItemSelectionRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawItemSelectionRect, 1, NULL }, - { "DrawPushButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawPushButton, 1, NULL }, - { "DrawSplitterBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawSplitterBorder, 1, NULL }, - { "DrawSplitterSash", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawSplitterSash, 1, NULL }, - { "DrawTreeItemButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_DrawTreeItemButton, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRenderer) - - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRendererNative_Get, 1, NULL }, - { "GetDefault", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRendererNative_GetDefault, 1, NULL }, - { "GetGeneric", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRendererNative_GetGeneric, 1, NULL }, - { "GetHeaderButtonHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_GetHeaderButtonHeight, 1, NULL }, - { "GetSplitterParams", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_GetSplitterParams, 1, NULL }, - { "GetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRendererNative_GetVersion, 1, NULL }, - -#if ((wxLUA_USE_wxRenderer) && (wxUSE_DYNLIB_CLASS)) && (wxLUA_USE_wxRenderer) - { "Load", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRendererNative_Load, 1, NULL }, -#endif // ((wxLUA_USE_wxRenderer) && (wxUSE_DYNLIB_CLASS)) && (wxLUA_USE_wxRenderer) - - { "Set", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRendererNative_Set, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRendererNative_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRendererNative_methodCount = sizeof(wxRendererNative_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRenderer - diff --git a/wxLua/modules/wxbind/src/wxcore_geometry.cpp b/wxLua/modules/wxbind/src/wxcore_geometry.cpp deleted file mode 100644 index 6d735524..00000000 --- a/wxLua/modules/wxbind/src/wxcore_geometry.cpp +++ /dev/null @@ -1,3873 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_geometry.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY -// --------------------------------------------------------------------------- -// Bind class wxPoint2DInt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPoint2DInt' -int wxluatype_wxPoint2DInt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetCrossProduct[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetCrossProduct(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetCrossProduct[1] = {{ wxLua_wxPoint2DInt_GetCrossProduct, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_GetCrossProduct }}; -// wxInt32 GetCrossProduct(const wxPoint2DInt &vec) const; -static int LUACALL wxLua_wxPoint2DInt_GetCrossProduct(lua_State *L) -{ - // const wxPoint2DInt vec - const wxPoint2DInt * vec = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call GetCrossProduct - wxInt32 returns = (self->GetCrossProduct(*vec)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetDistance[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetDistance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetDistance[1] = {{ wxLua_wxPoint2DInt_GetDistance, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_GetDistance }}; -// wxDouble GetDistance(const wxPoint2DInt &pt) const; -static int LUACALL wxLua_wxPoint2DInt_GetDistance(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call GetDistance - wxDouble returns = (self->GetDistance(*pt)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetDistanceSquare[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetDistanceSquare(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetDistanceSquare[1] = {{ wxLua_wxPoint2DInt_GetDistanceSquare, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_GetDistanceSquare }}; -// wxDouble GetDistanceSquare(const wxPoint2DInt &pt) const; -static int LUACALL wxLua_wxPoint2DInt_GetDistanceSquare(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call GetDistanceSquare - wxDouble returns = (self->GetDistanceSquare(*pt)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetDotProduct[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetDotProduct(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetDotProduct[1] = {{ wxLua_wxPoint2DInt_GetDotProduct, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_GetDotProduct }}; -// wxInt32 GetDotProduct(const wxPoint2DInt &vec) const; -static int LUACALL wxLua_wxPoint2DInt_GetDotProduct(lua_State *L) -{ - // const wxPoint2DInt vec - const wxPoint2DInt * vec = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call GetDotProduct - wxInt32 returns = (self->GetDotProduct(*vec)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetVectorAngle[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetVectorAngle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetVectorAngle[1] = {{ wxLua_wxPoint2DInt_GetVectorAngle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_GetVectorAngle }}; -// wxDouble GetVectorAngle() const; -static int LUACALL wxLua_wxPoint2DInt_GetVectorAngle(lua_State *L) -{ - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call GetVectorAngle - wxDouble returns = (self->GetVectorAngle()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetVectorLength[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetVectorLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetVectorLength[1] = {{ wxLua_wxPoint2DInt_GetVectorLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_GetVectorLength }}; -// wxDouble GetVectorLength() const; -static int LUACALL wxLua_wxPoint2DInt_GetVectorLength(lua_State *L) -{ - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call GetVectorLength - wxDouble returns = (self->GetVectorLength()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetX[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetX[1] = {{ wxLua_wxPoint2DInt_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_GetX }}; -// %rename X %member_func wxInt32 m_x; -static int LUACALL wxLua_wxPoint2DInt_GetX(lua_State *L) -{ - // get this - wxPoint2DInt *self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_x) == (double)(self->m_x)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_x); -} else -#endif -{ - lua_pushnumber(L, self->m_x); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_GetY[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_GetY[1] = {{ wxLua_wxPoint2DInt_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_GetY }}; -// %rename Y %member_func wxInt32 m_y; -static int LUACALL wxLua_wxPoint2DInt_GetY(lua_State *L) -{ - // get this - wxPoint2DInt *self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_y) == (double)(self->m_y)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_y); -} else -#endif -{ - lua_pushnumber(L, self->m_y); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_Normalize[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_Normalize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_Normalize[1] = {{ wxLua_wxPoint2DInt_Normalize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_Normalize }}; -// void Normalize(); -static int LUACALL wxLua_wxPoint2DInt_Normalize(lua_State *L) -{ - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call Normalize - self->Normalize(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_SetVectorAngle[] = { &wxluatype_wxPoint2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DInt_SetVectorAngle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_SetVectorAngle[1] = {{ wxLua_wxPoint2DInt_SetVectorAngle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_SetVectorAngle }}; -// void SetVectorAngle(wxDouble degrees); -static int LUACALL wxLua_wxPoint2DInt_SetVectorAngle(lua_State *L) -{ - // wxDouble degrees - wxDouble degrees = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call SetVectorAngle - self->SetVectorAngle(degrees); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_SetVectorLength[] = { &wxluatype_wxPoint2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DInt_SetVectorLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_SetVectorLength[1] = {{ wxLua_wxPoint2DInt_SetVectorLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_SetVectorLength }}; -// void SetVectorLength(wxDouble length); -static int LUACALL wxLua_wxPoint2DInt_SetVectorLength(lua_State *L) -{ - // wxDouble length - wxDouble length = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call SetVectorLength - self->SetVectorLength(length); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_SetX[] = { &wxluatype_wxPoint2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DInt_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_SetX[1] = {{ wxLua_wxPoint2DInt_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_SetX }}; -// %rename X %member_func wxInt32 m_x; -static int LUACALL wxLua_wxPoint2DInt_SetX(lua_State *L) -{ - // get the number value - wxInt32 val = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DInt *self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - self->m_x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_SetY[] = { &wxluatype_wxPoint2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DInt_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_SetY[1] = {{ wxLua_wxPoint2DInt_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_SetY }}; -// %rename Y %member_func wxInt32 m_y; -static int LUACALL wxLua_wxPoint2DInt_SetY(lua_State *L) -{ - // get the number value - wxInt32 val = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DInt *self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - self->m_y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_delete[] = { &wxluatype_wxPoint2DInt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_eq[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_eq[1] = {{ wxLua_wxPoint2DInt_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_eq }}; -// bool operator==(const wxPoint2DInt& pt) const; -static int LUACALL wxLua_wxPoint2DInt_op_eq(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_eq - bool returns = ((*self)==(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_iadd[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_iadd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_iadd[1] = {{ wxLua_wxPoint2DInt_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_iadd }}; -// wxPoint2DInt& operator+=(const wxPoint2DInt& pt); -static int LUACALL wxLua_wxPoint2DInt_op_iadd(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_iadd - (*self)+=(*pt); - wxPoint2DInt* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_idiv[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_idiv(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_idiv[1] = {{ wxLua_wxPoint2DInt_op_idiv, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_idiv }}; -// wxPoint2DInt& operator/=(const wxPoint2DInt& pt); -static int LUACALL wxLua_wxPoint2DInt_op_idiv(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_idiv - (*self)/=(*pt); - wxPoint2DInt* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_imul[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_imul(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_imul[1] = {{ wxLua_wxPoint2DInt_op_imul, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_imul }}; -// wxPoint2DInt& operator*=(const wxPoint2DInt& pt); -static int LUACALL wxLua_wxPoint2DInt_op_imul(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_imul - (*self)*=(*pt); - wxPoint2DInt* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_isub[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_isub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_isub[1] = {{ wxLua_wxPoint2DInt_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_isub }}; -// wxPoint2DInt& operator-=(const wxPoint2DInt& pt); -static int LUACALL wxLua_wxPoint2DInt_op_isub(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_isub - (*self)-=(*pt); - wxPoint2DInt* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_mul[] = { &wxluatype_wxPoint2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_mul(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_mul[1] = {{ wxLua_wxPoint2DInt_op_mul, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_mul }}; -// wxPoint2DInt operator*(wxInt32 n); -static int LUACALL wxLua_wxPoint2DInt_op_mul(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_mul - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt((*self)*(n)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_neg[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_neg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_neg[1] = {{ wxLua_wxPoint2DInt_op_neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_op_neg }}; -// wxPoint2DInt operator-(); -static int LUACALL wxLua_wxPoint2DInt_op_neg(lua_State *L) -{ - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_neg - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(-(*self)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_op_set[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_op_set[1] = {{ wxLua_wxPoint2DInt_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_op_set }}; -// wxPoint2DInt& operator=(const wxPoint2DInt& pt); -static int LUACALL wxLua_wxPoint2DInt_op_set(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxPoint2DInt * self = (wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call op_set - (*self)=(*pt); - wxPoint2DInt* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_constructor2[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint2DInt_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_constructor2[1] = {{ wxLua_wxPoint2DInt_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_constructor2 }}; -// wxPoint2DInt(const wxPoint &pt); -static int LUACALL wxLua_wxPoint2DInt_constructor2(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxPoint2DInt* returns = new wxPoint2DInt(*pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_constructor1[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DInt_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_constructor1[1] = {{ wxLua_wxPoint2DInt_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_constructor1 }}; -// wxPoint2DInt(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxPoint2DInt_constructor1(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call constructor - wxPoint2DInt* returns = new wxPoint2DInt(*pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DInt_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DInt_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_constructor[1] = {{ wxLua_wxPoint2DInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_constructor }}; -// wxPoint2DInt(wxInt32 x=0, wxInt32 y=0); -static int LUACALL wxLua_wxPoint2DInt_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxInt32 y = 0 - wxInt32 y = (argCount >= 2 ? (wxInt32)wxlua_getnumbertype(L, 2) : 0); - // wxInt32 x = 0 - wxInt32 x = (argCount >= 1 ? (wxInt32)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxPoint2DInt* returns = new wxPoint2DInt(x, y); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - - - - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DInt_constructor_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPoint2DInt_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_constructor2 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPoint2DInt_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DInt_constructor1 }, - { wxLua_wxPoint2DInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPoint2DInt_constructor }, -}; -static int s_wxluafunc_wxLua_wxPoint2DInt_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint2DInt_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -void wxLua_wxPoint2DInt_delete_function(void** p) -{ - wxPoint2DInt* o = (wxPoint2DInt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPoint2DInt_methods[] = { - { "GetCrossProduct", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetCrossProduct, 1, NULL }, - { "GetDistance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetDistance, 1, NULL }, - { "GetDistanceSquare", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetDistanceSquare, 1, NULL }, - { "GetDotProduct", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetDotProduct, 1, NULL }, - { "GetVectorAngle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetVectorAngle, 1, NULL }, - { "GetVectorLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetVectorLength, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_GetY, 1, NULL }, - { "Normalize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_Normalize, 1, NULL }, - { "SetVectorAngle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_SetVectorAngle, 1, NULL }, - { "SetVectorLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_SetVectorLength, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_SetY, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPoint2DInt_delete, 1, NULL }, - { "m_x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPoint2DInt_SetX, 1, NULL }, - { "m_x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPoint2DInt_GetX, 1, NULL }, - { "m_y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPoint2DInt_SetY, 1, NULL }, - { "m_y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPoint2DInt_GetY, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_eq, 1, NULL }, - { "op_iadd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_iadd, 1, NULL }, - { "op_idiv", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_idiv, 1, NULL }, - { "op_imul", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_imul, 1, NULL }, - { "op_isub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_isub, 1, NULL }, - { "op_mul", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_mul, 1, NULL }, - { "op_neg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_neg, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DInt_op_set, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "wxPoint2DInt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPoint2DInt_constructor_overload, s_wxluafunc_wxLua_wxPoint2DInt_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { 0, 0, 0, 0 }, -}; - -int wxPoint2DInt_methodCount = sizeof(wxPoint2DInt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY -// --------------------------------------------------------------------------- -// Bind class wxPoint2DDouble -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPoint2DDouble' -int wxluatype_wxPoint2DDouble = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetCrossProduct[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetCrossProduct(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetCrossProduct[1] = {{ wxLua_wxPoint2DDouble_GetCrossProduct, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetCrossProduct }}; -// wxDouble GetCrossProduct(const wxPoint2DDouble &vec) const; -static int LUACALL wxLua_wxPoint2DDouble_GetCrossProduct(lua_State *L) -{ - // const wxPoint2DDouble vec - const wxPoint2DDouble * vec = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call GetCrossProduct - wxDouble returns = (self->GetCrossProduct(*vec)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetDistance[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetDistance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetDistance[1] = {{ wxLua_wxPoint2DDouble_GetDistance, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetDistance }}; -// wxDouble GetDistance(const wxPoint2DDouble &pt) const; -static int LUACALL wxLua_wxPoint2DDouble_GetDistance(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call GetDistance - wxDouble returns = (self->GetDistance(*pt)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetDistanceSquare[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetDistanceSquare(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetDistanceSquare[1] = {{ wxLua_wxPoint2DDouble_GetDistanceSquare, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetDistanceSquare }}; -// wxDouble GetDistanceSquare(const wxPoint2DDouble &pt) const; -static int LUACALL wxLua_wxPoint2DDouble_GetDistanceSquare(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call GetDistanceSquare - wxDouble returns = (self->GetDistanceSquare(*pt)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetDotProduct[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetDotProduct(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetDotProduct[1] = {{ wxLua_wxPoint2DDouble_GetDotProduct, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetDotProduct }}; -// wxDouble GetDotProduct(const wxPoint2DDouble &vec) const; -static int LUACALL wxLua_wxPoint2DDouble_GetDotProduct(lua_State *L) -{ - // const wxPoint2DDouble vec - const wxPoint2DDouble * vec = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call GetDotProduct - wxDouble returns = (self->GetDotProduct(*vec)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetVectorAngle[] = { &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetVectorAngle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetVectorAngle[1] = {{ wxLua_wxPoint2DDouble_GetVectorAngle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetVectorAngle }}; -// wxDouble GetVectorAngle() const; -static int LUACALL wxLua_wxPoint2DDouble_GetVectorAngle(lua_State *L) -{ - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call GetVectorAngle - wxDouble returns = (self->GetVectorAngle()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetVectorLength[] = { &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetVectorLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetVectorLength[1] = {{ wxLua_wxPoint2DDouble_GetVectorLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetVectorLength }}; -// wxDouble GetVectorLength() const; -static int LUACALL wxLua_wxPoint2DDouble_GetVectorLength(lua_State *L) -{ - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call GetVectorLength - wxDouble returns = (self->GetVectorLength()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetX[] = { &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetX[1] = {{ wxLua_wxPoint2DDouble_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetX }}; -// %rename X %member_func wxDouble m_x; -static int LUACALL wxLua_wxPoint2DDouble_GetX(lua_State *L) -{ - // get this - wxPoint2DDouble *self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // push the result floating point number - lua_pushnumber(L, self->m_x); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_GetY[] = { &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_GetY[1] = {{ wxLua_wxPoint2DDouble_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_GetY }}; -// %rename Y %member_func wxDouble m_y; -static int LUACALL wxLua_wxPoint2DDouble_GetY(lua_State *L) -{ - // get this - wxPoint2DDouble *self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // push the result floating point number - lua_pushnumber(L, self->m_y); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_SetVectorAngle[] = { &wxluatype_wxPoint2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_SetVectorAngle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_SetVectorAngle[1] = {{ wxLua_wxPoint2DDouble_SetVectorAngle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_SetVectorAngle }}; -// void SetVectorAngle(wxDouble degrees); -static int LUACALL wxLua_wxPoint2DDouble_SetVectorAngle(lua_State *L) -{ - // wxDouble degrees - wxDouble degrees = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call SetVectorAngle - self->SetVectorAngle(degrees); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_SetVectorLength[] = { &wxluatype_wxPoint2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_SetVectorLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_SetVectorLength[1] = {{ wxLua_wxPoint2DDouble_SetVectorLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_SetVectorLength }}; -// void SetVectorLength(wxDouble length); -static int LUACALL wxLua_wxPoint2DDouble_SetVectorLength(lua_State *L) -{ - // wxDouble length - wxDouble length = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call SetVectorLength - self->SetVectorLength(length); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_SetX[] = { &wxluatype_wxPoint2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_SetX[1] = {{ wxLua_wxPoint2DDouble_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_SetX }}; -// %rename X %member_func wxDouble m_x; -static int LUACALL wxLua_wxPoint2DDouble_SetX(lua_State *L) -{ - // get the number value - wxDouble val = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DDouble *self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - self->m_x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_SetY[] = { &wxluatype_wxPoint2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_SetY[1] = {{ wxLua_wxPoint2DDouble_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_SetY }}; -// %rename Y %member_func wxDouble m_y; -static int LUACALL wxLua_wxPoint2DDouble_SetY(lua_State *L) -{ - // get the number value - wxDouble val = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxPoint2DDouble *self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - self->m_y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_delete[] = { &wxluatype_wxPoint2DDouble, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_eq[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_eq[1] = {{ wxLua_wxPoint2DDouble_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_eq }}; -// bool operator==(const wxPoint2DDouble& pt) const; -static int LUACALL wxLua_wxPoint2DDouble_op_eq(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_eq - bool returns = ((*self)==(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_iadd[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_iadd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_iadd[1] = {{ wxLua_wxPoint2DDouble_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_iadd }}; -// wxPoint2DDouble& operator+=(const wxPoint2DDouble& pt); -static int LUACALL wxLua_wxPoint2DDouble_op_iadd(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_iadd - (*self)+=(*pt); - wxPoint2DDouble* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_idiv[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_idiv(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_idiv[1] = {{ wxLua_wxPoint2DDouble_op_idiv, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_idiv }}; -// wxPoint2DDouble& operator/=(const wxPoint2DDouble& pt); -static int LUACALL wxLua_wxPoint2DDouble_op_idiv(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_idiv - (*self)/=(*pt); - wxPoint2DDouble* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_imul[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_imul(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_imul[1] = {{ wxLua_wxPoint2DDouble_op_imul, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_imul }}; -// wxPoint2DDouble& operator*=(const wxPoint2DDouble& pt); -static int LUACALL wxLua_wxPoint2DDouble_op_imul(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_imul - (*self)*=(*pt); - wxPoint2DDouble* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_isub[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_isub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_isub[1] = {{ wxLua_wxPoint2DDouble_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_isub }}; -// wxPoint2DDouble& operator-=(const wxPoint2DDouble& pt); -static int LUACALL wxLua_wxPoint2DDouble_op_isub(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_isub - (*self)-=(*pt); - wxPoint2DDouble* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_neg[] = { &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_neg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_neg[1] = {{ wxLua_wxPoint2DDouble_op_neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_neg }}; -// wxPoint2DDouble operator-(); -static int LUACALL wxLua_wxPoint2DDouble_op_neg(lua_State *L) -{ - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_neg - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(-(*self)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_op_set[] = { &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_op_set[1] = {{ wxLua_wxPoint2DDouble_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_op_set }}; -// wxPoint2DDouble& operator=(const wxPoint2DDouble& pt); -static int LUACALL wxLua_wxPoint2DDouble_op_set(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxPoint2DDouble * self = (wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call op_set - (*self)=(*pt); - wxPoint2DDouble* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor3[] = { &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_constructor3[1] = {{ wxLua_wxPoint2DDouble_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor3 }}; -// wxPoint2DDouble(const wxPoint &pt); -static int LUACALL wxLua_wxPoint2DDouble_constructor3(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(*pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor2[] = { &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_constructor2[1] = {{ wxLua_wxPoint2DDouble_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor2 }}; -// wxPoint2DDouble(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxPoint2DDouble_constructor2(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(*pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor1[] = { &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_constructor1[1] = {{ wxLua_wxPoint2DDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor1 }}; -// wxPoint2DDouble(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxPoint2DDouble_constructor1(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DDouble); - // call constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(*pt); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPoint2DDouble_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_constructor[1] = {{ wxLua_wxPoint2DDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor }}; -// wxPoint2DDouble(wxDouble x=0, wxDouble y=0); -static int LUACALL wxLua_wxPoint2DDouble_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble y = 0 - wxDouble y = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 0); - // wxDouble x = 0 - wxDouble x = (argCount >= 1 ? (wxDouble)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(x, y); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - - - - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint2DDouble_constructor_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPoint2DDouble_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor3 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPoint2DDouble_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor2 }, - { wxLua_wxPoint2DDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor1 }, - { wxLua_wxPoint2DDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPoint2DDouble_constructor }, -}; -static int s_wxluafunc_wxLua_wxPoint2DDouble_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPoint2DDouble_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -void wxLua_wxPoint2DDouble_delete_function(void** p) -{ - wxPoint2DDouble* o = (wxPoint2DDouble*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPoint2DDouble_methods[] = { - { "GetCrossProduct", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetCrossProduct, 1, NULL }, - { "GetDistance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetDistance, 1, NULL }, - { "GetDistanceSquare", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetDistanceSquare, 1, NULL }, - { "GetDotProduct", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetDotProduct, 1, NULL }, - { "GetVectorAngle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetVectorAngle, 1, NULL }, - { "GetVectorLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetVectorLength, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_GetY, 1, NULL }, - { "SetVectorAngle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_SetVectorAngle, 1, NULL }, - { "SetVectorLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_SetVectorLength, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_SetY, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPoint2DDouble_delete, 1, NULL }, - { "m_x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPoint2DDouble_SetX, 1, NULL }, - { "m_x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPoint2DDouble_GetX, 1, NULL }, - { "m_y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPoint2DDouble_SetY, 1, NULL }, - { "m_y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPoint2DDouble_GetY, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_eq, 1, NULL }, - { "op_iadd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_iadd, 1, NULL }, - { "op_idiv", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_idiv, 1, NULL }, - { "op_imul", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_imul, 1, NULL }, - { "op_isub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_isub, 1, NULL }, - { "op_neg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_neg, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPoint2DDouble_op_set, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "wxPoint2DDouble", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPoint2DDouble_constructor_overload, s_wxluafunc_wxLua_wxPoint2DDouble_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { 0, 0, 0, 0 }, -}; - -int wxPoint2DDouble_methodCount = sizeof(wxPoint2DDouble_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY -// --------------------------------------------------------------------------- -// Bind class wxRect2DDouble -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRect2DDouble' -int wxluatype_wxRect2DDouble = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_ConstrainTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_ConstrainTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_ConstrainTo[1] = {{ wxLua_wxRect2DDouble_ConstrainTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_ConstrainTo }}; -// void ConstrainTo(const wxRect2DDouble &rect); -static int LUACALL wxLua_wxRect2DDouble_ConstrainTo(lua_State *L) -{ - // const wxRect2DDouble rect - const wxRect2DDouble * rect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call ConstrainTo - self->ConstrainTo(*rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Contains1[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Contains1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Contains1[1] = {{ wxLua_wxRect2DDouble_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Contains1 }}; -// bool Contains(const wxRect2DDouble &rect) const; -static int LUACALL wxLua_wxRect2DDouble_Contains1(lua_State *L) -{ - // const wxRect2DDouble rect - const wxRect2DDouble * rect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Contains - bool returns = (self->Contains(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Contains[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Contains(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Contains[1] = {{ wxLua_wxRect2DDouble_Contains, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Contains }}; -// bool Contains(const wxPoint2DDouble &pt) const; -static int LUACALL wxLua_wxRect2DDouble_Contains(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Contains - bool returns = (self->Contains(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_CreateIntersection[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_CreateIntersection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_CreateIntersection[1] = {{ wxLua_wxRect2DDouble_CreateIntersection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_CreateIntersection }}; -// wxRect2DDouble CreateIntersection(const wxRect2DDouble &otherRect) const; -static int LUACALL wxLua_wxRect2DDouble_CreateIntersection(lua_State *L) -{ - // const wxRect2DDouble otherRect - const wxRect2DDouble * otherRect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call CreateIntersection - // allocate a new object using the copy constructor - wxRect2DDouble* returns = new wxRect2DDouble(self->CreateIntersection(*otherRect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_CreateUnion[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_CreateUnion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_CreateUnion[1] = {{ wxLua_wxRect2DDouble_CreateUnion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_CreateUnion }}; -// wxRect2DDouble CreateUnion(const wxRect2DDouble &otherRect) const; -static int LUACALL wxLua_wxRect2DDouble_CreateUnion(lua_State *L) -{ - // const wxRect2DDouble otherRect - const wxRect2DDouble * otherRect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call CreateUnion - // allocate a new object using the copy constructor - wxRect2DDouble* returns = new wxRect2DDouble(self->CreateUnion(*otherRect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetBottom[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetBottom[1] = {{ wxLua_wxRect2DDouble_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetBottom }}; -// wxDouble GetBottom() const; -static int LUACALL wxLua_wxRect2DDouble_GetBottom(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetBottom - wxDouble returns = (self->GetBottom()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetCentre[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetCentre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetCentre[1] = {{ wxLua_wxRect2DDouble_GetCentre, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetCentre }}; -// wxPoint2DDouble GetCentre() const; -static int LUACALL wxLua_wxRect2DDouble_GetCentre(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetCentre - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetCentre()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetHeight[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetHeight[1] = {{ wxLua_wxRect2DDouble_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetHeight }}; -// %rename Height %member_func wxDouble m_height; -static int LUACALL wxLua_wxRect2DDouble_GetHeight(lua_State *L) -{ - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // push the result floating point number - lua_pushnumber(L, self->m_height); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetLeft[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetLeft[1] = {{ wxLua_wxRect2DDouble_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetLeft }}; -// wxDouble GetLeft() const; -static int LUACALL wxLua_wxRect2DDouble_GetLeft(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetLeft - wxDouble returns = (self->GetLeft()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetLeftBottom[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetLeftBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetLeftBottom[1] = {{ wxLua_wxRect2DDouble_GetLeftBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetLeftBottom }}; -// wxPoint2DDouble GetLeftBottom() const; -static int LUACALL wxLua_wxRect2DDouble_GetLeftBottom(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetLeftBottom - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetLeftBottom()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetLeftTop[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetLeftTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetLeftTop[1] = {{ wxLua_wxRect2DDouble_GetLeftTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetLeftTop }}; -// wxPoint2DDouble GetLeftTop() const; -static int LUACALL wxLua_wxRect2DDouble_GetLeftTop(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetLeftTop - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetLeftTop()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetOutCode[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetOutCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetOutCode[1] = {{ wxLua_wxRect2DDouble_GetOutCode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_GetOutCode }}; -// wxOutCode GetOutCode(const wxPoint2DDouble &pt) const; -static int LUACALL wxLua_wxRect2DDouble_GetOutCode(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetOutCode - wxOutCode returns = (self->GetOutCode(*pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetPosition[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetPosition[1] = {{ wxLua_wxRect2DDouble_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetPosition }}; -// wxPoint2DDouble GetPosition(); -static int LUACALL wxLua_wxRect2DDouble_GetPosition(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetRight[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetRight[1] = {{ wxLua_wxRect2DDouble_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetRight }}; -// wxDouble GetRight() const; -static int LUACALL wxLua_wxRect2DDouble_GetRight(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetRight - wxDouble returns = (self->GetRight()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetRightBottom[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetRightBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetRightBottom[1] = {{ wxLua_wxRect2DDouble_GetRightBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetRightBottom }}; -// wxPoint2DDouble GetRightBottom() const; -static int LUACALL wxLua_wxRect2DDouble_GetRightBottom(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetRightBottom - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetRightBottom()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetRightTop[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetRightTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetRightTop[1] = {{ wxLua_wxRect2DDouble_GetRightTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetRightTop }}; -// wxPoint2DDouble GetRightTop() const; -static int LUACALL wxLua_wxRect2DDouble_GetRightTop(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetRightTop - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetRightTop()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetSize[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetSize[1] = {{ wxLua_wxRect2DDouble_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetSize }}; -// wxSize GetSize(); -static int LUACALL wxLua_wxRect2DDouble_GetSize(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetTop[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetTop[1] = {{ wxLua_wxRect2DDouble_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetTop }}; -// wxDouble GetTop() const; -static int LUACALL wxLua_wxRect2DDouble_GetTop(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call GetTop - wxDouble returns = (self->GetTop()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetWidth[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetWidth[1] = {{ wxLua_wxRect2DDouble_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetWidth }}; -// %rename Width %member_func wxDouble m_width; -static int LUACALL wxLua_wxRect2DDouble_GetWidth(lua_State *L) -{ - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // push the result floating point number - lua_pushnumber(L, self->m_width); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetX[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetX[1] = {{ wxLua_wxRect2DDouble_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetX }}; -// %rename X %member_func wxDouble m_x; -static int LUACALL wxLua_wxRect2DDouble_GetX(lua_State *L) -{ - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // push the result floating point number - lua_pushnumber(L, self->m_x); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_GetY[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_GetY[1] = {{ wxLua_wxRect2DDouble_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_GetY }}; -// %rename Y %member_func wxDouble m_y; -static int LUACALL wxLua_wxRect2DDouble_GetY(lua_State *L) -{ - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // push the result floating point number - lua_pushnumber(L, self->m_y); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_HaveEqualSize[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_HaveEqualSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_HaveEqualSize[1] = {{ wxLua_wxRect2DDouble_HaveEqualSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_HaveEqualSize }}; -// bool HaveEqualSize(const wxRect2DDouble &rect) const; -static int LUACALL wxLua_wxRect2DDouble_HaveEqualSize(lua_State *L) -{ - // const wxRect2DDouble rect - const wxRect2DDouble * rect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call HaveEqualSize - bool returns = (self->HaveEqualSize(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Inset[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Inset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Inset[1] = {{ wxLua_wxRect2DDouble_Inset, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRect2DDouble_Inset }}; -// void Inset(wxDouble left, wxDouble top, wxDouble right, wxDouble bottom ); -static int LUACALL wxLua_wxRect2DDouble_Inset(lua_State *L) -{ - // wxDouble bottom - wxDouble bottom = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble right - wxDouble right = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble top - wxDouble top = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble left - wxDouble left = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Inset - self->Inset(left, top, right, bottom); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Interpolate[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Interpolate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Interpolate[1] = {{ wxLua_wxRect2DDouble_Interpolate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect2DDouble_Interpolate }}; -// wxPoint2DDouble Interpolate(wxInt32 widthfactor , wxInt32 heightfactor); -static int LUACALL wxLua_wxRect2DDouble_Interpolate(lua_State *L) -{ - // wxInt32 heightfactor - wxInt32 heightfactor = (wxInt32)wxlua_getnumbertype(L, 3); - // wxInt32 widthfactor - wxInt32 widthfactor = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Interpolate - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->Interpolate(widthfactor, heightfactor)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Intersect[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Intersect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Intersect[1] = {{ wxLua_wxRect2DDouble_Intersect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Intersect }}; -// void Intersect(const wxRect2DDouble &otherRect); -static int LUACALL wxLua_wxRect2DDouble_Intersect(lua_State *L) -{ - // const wxRect2DDouble otherRect - const wxRect2DDouble * otherRect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Intersect - self->Intersect(*otherRect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Intersects[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Intersects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Intersects[1] = {{ wxLua_wxRect2DDouble_Intersects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Intersects }}; -// bool Intersects(const wxRect2DDouble &rect) const; -static int LUACALL wxLua_wxRect2DDouble_Intersects(lua_State *L) -{ - // const wxRect2DDouble rect - const wxRect2DDouble * rect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Intersects - bool returns = (self->Intersects(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_IsEmpty[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_IsEmpty[1] = {{ wxLua_wxRect2DDouble_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxRect2DDouble_IsEmpty(lua_State *L) -{ - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveBottomTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveBottomTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveBottomTo[1] = {{ wxLua_wxRect2DDouble_MoveBottomTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveBottomTo }}; -// void MoveBottomTo(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_MoveBottomTo(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveBottomTo - self->MoveBottomTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveCentreTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveCentreTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveCentreTo[1] = {{ wxLua_wxRect2DDouble_MoveCentreTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveCentreTo }}; -// void MoveCentreTo(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_MoveCentreTo(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveCentreTo - self->MoveCentreTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveLeftBottomTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveLeftBottomTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveLeftBottomTo[1] = {{ wxLua_wxRect2DDouble_MoveLeftBottomTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveLeftBottomTo }}; -// void MoveLeftBottomTo(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_MoveLeftBottomTo(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveLeftBottomTo - self->MoveLeftBottomTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveLeftTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveLeftTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveLeftTo[1] = {{ wxLua_wxRect2DDouble_MoveLeftTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveLeftTo }}; -// void MoveLeftTo(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_MoveLeftTo(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveLeftTo - self->MoveLeftTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveLeftTopTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveLeftTopTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveLeftTopTo[1] = {{ wxLua_wxRect2DDouble_MoveLeftTopTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveLeftTopTo }}; -// void MoveLeftTopTo(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_MoveLeftTopTo(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveLeftTopTo - self->MoveLeftTopTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveRightBottomTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveRightBottomTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveRightBottomTo[1] = {{ wxLua_wxRect2DDouble_MoveRightBottomTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveRightBottomTo }}; -// void MoveRightBottomTo(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_MoveRightBottomTo(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveRightBottomTo - self->MoveRightBottomTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveRightTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveRightTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveRightTo[1] = {{ wxLua_wxRect2DDouble_MoveRightTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveRightTo }}; -// void MoveRightTo(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_MoveRightTo(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveRightTo - self->MoveRightTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveRightTopTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveRightTopTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveRightTopTo[1] = {{ wxLua_wxRect2DDouble_MoveRightTopTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveRightTopTo }}; -// void MoveRightTopTo(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_MoveRightTopTo(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveRightTopTo - self->MoveRightTopTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_MoveTopTo[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_MoveTopTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_MoveTopTo[1] = {{ wxLua_wxRect2DDouble_MoveTopTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_MoveTopTo }}; -// void MoveTopTo(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_MoveTopTo(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call MoveTopTo - self->MoveTopTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Offset[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Offset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Offset[1] = {{ wxLua_wxRect2DDouble_Offset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Offset }}; -// void Offset(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_Offset(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Offset - self->Offset(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Scale[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Scale[1] = {{ wxLua_wxRect2DDouble_Scale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Scale }}; -// void Scale(wxDouble f); -static int LUACALL wxLua_wxRect2DDouble_Scale(lua_State *L) -{ - // wxDouble f - wxDouble f = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Scale - self->Scale(f); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetBottom[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetBottom[1] = {{ wxLua_wxRect2DDouble_SetBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetBottom }}; -// void SetBottom(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_SetBottom(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetBottom - self->SetBottom(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetCentre[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetCentre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetCentre[1] = {{ wxLua_wxRect2DDouble_SetCentre, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetCentre }}; -// void SetCentre(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_SetCentre(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetCentre - self->SetCentre(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetHeight[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetHeight[1] = {{ wxLua_wxRect2DDouble_SetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetHeight }}; -// %rename Height %member_func wxDouble m_height; -static int LUACALL wxLua_wxRect2DDouble_SetHeight(lua_State *L) -{ - // get the number value - wxDouble val = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - self->m_height = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetLeft[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetLeft[1] = {{ wxLua_wxRect2DDouble_SetLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetLeft }}; -// void SetLeft(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_SetLeft(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetLeft - self->SetLeft(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetLeftBottom[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetLeftBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetLeftBottom[1] = {{ wxLua_wxRect2DDouble_SetLeftBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetLeftBottom }}; -// void SetLeftBottom(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_SetLeftBottom(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetLeftBottom - self->SetLeftBottom(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetLeftTop[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetLeftTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetLeftTop[1] = {{ wxLua_wxRect2DDouble_SetLeftTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetLeftTop }}; -// void SetLeftTop(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_SetLeftTop(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetLeftTop - self->SetLeftTop(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetRight[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetRight[1] = {{ wxLua_wxRect2DDouble_SetRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetRight }}; -// void SetRight(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_SetRight(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetRight - self->SetRight(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetRightBottom[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetRightBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetRightBottom[1] = {{ wxLua_wxRect2DDouble_SetRightBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetRightBottom }}; -// void SetRightBottom(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_SetRightBottom(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetRightBottom - self->SetRightBottom(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetRightTop[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetRightTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetRightTop[1] = {{ wxLua_wxRect2DDouble_SetRightTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetRightTop }}; -// void SetRightTop(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_SetRightTop(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetRightTop - self->SetRightTop(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetTop[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetTop[1] = {{ wxLua_wxRect2DDouble_SetTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetTop }}; -// void SetTop(wxDouble n); -static int LUACALL wxLua_wxRect2DDouble_SetTop(lua_State *L) -{ - // wxDouble n - wxDouble n = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call SetTop - self->SetTop(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetWidth[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetWidth[1] = {{ wxLua_wxRect2DDouble_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetWidth }}; -// %rename Width %member_func wxDouble m_width; -static int LUACALL wxLua_wxRect2DDouble_SetWidth(lua_State *L) -{ - // get the number value - wxDouble val = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - self->m_width = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetX[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetX[1] = {{ wxLua_wxRect2DDouble_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetX }}; -// %rename X %member_func wxDouble m_x; -static int LUACALL wxLua_wxRect2DDouble_SetX(lua_State *L) -{ - // get the number value - wxDouble val = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - self->m_x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_SetY[] = { &wxluatype_wxRect2DDouble, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_SetY[1] = {{ wxLua_wxRect2DDouble_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_SetY }}; -// %rename Y %member_func wxDouble m_y; -static int LUACALL wxLua_wxRect2DDouble_SetY(lua_State *L) -{ - // get the number value - wxDouble val = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxRect2DDouble *self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - self->m_y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Union1[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Union1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Union1[1] = {{ wxLua_wxRect2DDouble_Union1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Union1 }}; -// void Union(const wxPoint2DDouble &pt); -static int LUACALL wxLua_wxRect2DDouble_Union1(lua_State *L) -{ - // const wxPoint2DDouble pt - const wxPoint2DDouble * pt = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Union - self->Union(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_Union[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_Union(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Union[1] = {{ wxLua_wxRect2DDouble_Union, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Union }}; -// void Union(const wxRect2DDouble &otherRect); -static int LUACALL wxLua_wxRect2DDouble_Union(lua_State *L) -{ - // const wxRect2DDouble otherRect - const wxRect2DDouble * otherRect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call Union - self->Union(*otherRect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_delete[] = { &wxluatype_wxRect2DDouble, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_op_eq[] = { &wxluatype_wxRect2DDouble, &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_op_eq[1] = {{ wxLua_wxRect2DDouble_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_op_eq }}; -// bool operator==(const wxRect2DDouble& rect); -static int LUACALL wxLua_wxRect2DDouble_op_eq(lua_State *L) -{ - // const wxRect2DDouble rect - const wxRect2DDouble * rect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DDouble); - // get this - wxRect2DDouble * self = (wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call op_eq - bool returns = ((*self)==(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_constructor1[] = { &wxluatype_wxRect2DDouble, NULL }; -static int LUACALL wxLua_wxRect2DDouble_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_constructor1[1] = {{ wxLua_wxRect2DDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_constructor1 }}; -// wxRect2DDouble(const wxRect2DDouble& rect); -static int LUACALL wxLua_wxRect2DDouble_constructor1(lua_State *L) -{ - // const wxRect2DDouble rect - const wxRect2DDouble * rect = (const wxRect2DDouble *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DDouble); - // call constructor - wxRect2DDouble* returns = new wxRect2DDouble(*rect); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DDouble); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DDouble_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DDouble_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_constructor[1] = {{ wxLua_wxRect2DDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRect2DDouble_constructor }}; -// wxRect2DDouble(wxDouble x=0, wxDouble y=0, wxDouble w=0, wxDouble h=0); -static int LUACALL wxLua_wxRect2DDouble_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble h = 0 - wxDouble h = (argCount >= 4 ? (wxDouble)wxlua_getnumbertype(L, 4) : 0); - // wxDouble w = 0 - wxDouble w = (argCount >= 3 ? (wxDouble)wxlua_getnumbertype(L, 3) : 0); - // wxDouble y = 0 - wxDouble y = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 0); - // wxDouble x = 0 - wxDouble x = (argCount >= 1 ? (wxDouble)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxRect2DDouble* returns = new wxRect2DDouble(x, y, w, h); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DDouble); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DDouble); - - return 1; -} - - - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Contains_overload[] = -{ - { wxLua_wxRect2DDouble_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Contains1 }, - { wxLua_wxRect2DDouble_Contains, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Contains }, -}; -static int s_wxluafunc_wxLua_wxRect2DDouble_Contains_overload_count = sizeof(s_wxluafunc_wxLua_wxRect2DDouble_Contains_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_Union_overload[] = -{ - { wxLua_wxRect2DDouble_Union1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Union1 }, - { wxLua_wxRect2DDouble_Union, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DDouble_Union }, -}; -static int s_wxluafunc_wxLua_wxRect2DDouble_Union_overload_count = sizeof(s_wxluafunc_wxLua_wxRect2DDouble_Union_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DDouble_constructor_overload[] = -{ - { wxLua_wxRect2DDouble_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect2DDouble_constructor1 }, - { wxLua_wxRect2DDouble_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRect2DDouble_constructor }, -}; -static int s_wxluafunc_wxLua_wxRect2DDouble_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRect2DDouble_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -void wxLua_wxRect2DDouble_delete_function(void** p) -{ - wxRect2DDouble* o = (wxRect2DDouble*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRect2DDouble_methods[] = { - { "ConstrainTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_ConstrainTo, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "Contains", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Contains_overload, s_wxluafunc_wxLua_wxRect2DDouble_Contains_overload_count, 0 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "CreateIntersection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_CreateIntersection, 1, NULL }, - { "CreateUnion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_CreateUnion, 1, NULL }, - { "GetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetBottom, 1, NULL }, - { "GetCentre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetCentre, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetHeight, 1, NULL }, - { "GetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetLeft, 1, NULL }, - { "GetLeftBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetLeftBottom, 1, NULL }, - { "GetLeftTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetLeftTop, 1, NULL }, - { "GetOutCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetOutCode, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetPosition, 1, NULL }, - { "GetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetRight, 1, NULL }, - { "GetRightBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetRightBottom, 1, NULL }, - { "GetRightTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetRightTop, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetSize, 1, NULL }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - - { "GetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetTop, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetWidth, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_GetY, 1, NULL }, - { "HaveEqualSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_HaveEqualSize, 1, NULL }, - { "Inset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Inset, 1, NULL }, - { "Interpolate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Interpolate, 1, NULL }, - { "Intersect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Intersect, 1, NULL }, - { "Intersects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Intersects, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_IsEmpty, 1, NULL }, - { "MoveBottomTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveBottomTo, 1, NULL }, - { "MoveCentreTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveCentreTo, 1, NULL }, - { "MoveLeftBottomTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveLeftBottomTo, 1, NULL }, - { "MoveLeftTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveLeftTo, 1, NULL }, - { "MoveLeftTopTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveLeftTopTo, 1, NULL }, - { "MoveRightBottomTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveRightBottomTo, 1, NULL }, - { "MoveRightTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveRightTo, 1, NULL }, - { "MoveRightTopTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveRightTopTo, 1, NULL }, - { "MoveTopTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_MoveTopTo, 1, NULL }, - { "Offset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Offset, 1, NULL }, - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Scale, 1, NULL }, - { "SetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetBottom, 1, NULL }, - { "SetCentre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetCentre, 1, NULL }, - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetHeight, 1, NULL }, - { "SetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetLeft, 1, NULL }, - { "SetLeftBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetLeftBottom, 1, NULL }, - { "SetLeftTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetLeftTop, 1, NULL }, - { "SetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetRight, 1, NULL }, - { "SetRightBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetRightBottom, 1, NULL }, - { "SetRightTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetRightTop, 1, NULL }, - { "SetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetTop, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetWidth, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_SetY, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "Union", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_Union_overload, s_wxluafunc_wxLua_wxRect2DDouble_Union_overload_count, 0 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRect2DDouble_delete, 1, NULL }, - { "m_height", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DDouble_SetHeight, 1, NULL }, - { "m_height", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DDouble_GetHeight, 1, NULL }, - { "m_width", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DDouble_SetWidth, 1, NULL }, - { "m_width", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DDouble_GetWidth, 1, NULL }, - { "m_x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DDouble_SetX, 1, NULL }, - { "m_x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DDouble_GetX, 1, NULL }, - { "m_y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DDouble_SetY, 1, NULL }, - { "m_y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DDouble_GetY, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DDouble_op_eq, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "wxRect2DDouble", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRect2DDouble_constructor_overload, s_wxluafunc_wxLua_wxRect2DDouble_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { 0, 0, 0, 0 }, -}; - -int wxRect2DDouble_methodCount = sizeof(wxRect2DDouble_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY -// --------------------------------------------------------------------------- -// Bind class wxRect2DInt -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRect2DInt' -int wxluatype_wxRect2DInt = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_ConstrainTo[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_ConstrainTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_ConstrainTo[1] = {{ wxLua_wxRect2DInt_ConstrainTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_ConstrainTo }}; -// void ConstrainTo(const wxRect2DInt &rect); -static int LUACALL wxLua_wxRect2DInt_ConstrainTo(lua_State *L) -{ - // const wxRect2DInt rect - const wxRect2DInt * rect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call ConstrainTo - self->ConstrainTo(*rect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Contains1[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Contains1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Contains1[1] = {{ wxLua_wxRect2DInt_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Contains1 }}; -// bool Contains(const wxRect2DInt &rect) const; -static int LUACALL wxLua_wxRect2DInt_Contains1(lua_State *L) -{ - // const wxRect2DInt rect - const wxRect2DInt * rect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Contains - bool returns = (self->Contains(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Contains[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Contains(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Contains[1] = {{ wxLua_wxRect2DInt_Contains, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Contains }}; -// bool Contains(const wxPoint2DInt &pt) const; -static int LUACALL wxLua_wxRect2DInt_Contains(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Contains - bool returns = (self->Contains(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_CreateIntersection[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_CreateIntersection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_CreateIntersection[1] = {{ wxLua_wxRect2DInt_CreateIntersection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_CreateIntersection }}; -// wxRect2DInt CreateIntersection(const wxRect2DInt &otherRect) const; -static int LUACALL wxLua_wxRect2DInt_CreateIntersection(lua_State *L) -{ - // const wxRect2DInt otherRect - const wxRect2DInt * otherRect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call CreateIntersection - // allocate a new object using the copy constructor - wxRect2DInt* returns = new wxRect2DInt(self->CreateIntersection(*otherRect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_CreateUnion[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_CreateUnion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_CreateUnion[1] = {{ wxLua_wxRect2DInt_CreateUnion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_CreateUnion }}; -// wxRect2DInt CreateUnion(const wxRect2DInt &otherRect) const; -static int LUACALL wxLua_wxRect2DInt_CreateUnion(lua_State *L) -{ - // const wxRect2DInt otherRect - const wxRect2DInt * otherRect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call CreateUnion - // allocate a new object using the copy constructor - wxRect2DInt* returns = new wxRect2DInt(self->CreateUnion(*otherRect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetBottom[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetBottom[1] = {{ wxLua_wxRect2DInt_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetBottom }}; -// wxInt32 GetBottom() const; -static int LUACALL wxLua_wxRect2DInt_GetBottom(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetBottom - wxInt32 returns = (self->GetBottom()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetCentre[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetCentre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetCentre[1] = {{ wxLua_wxRect2DInt_GetCentre, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetCentre }}; -// wxPoint2DInt GetCentre() const; -static int LUACALL wxLua_wxRect2DInt_GetCentre(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetCentre - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->GetCentre()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetHeight[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetHeight[1] = {{ wxLua_wxRect2DInt_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetHeight }}; -// %rename Height %member_func wxInt32 m_height; -static int LUACALL wxLua_wxRect2DInt_GetHeight(lua_State *L) -{ - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_height) == (double)(self->m_height)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_height); -} else -#endif -{ - lua_pushnumber(L, self->m_height); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetLeft[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetLeft[1] = {{ wxLua_wxRect2DInt_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetLeft }}; -// wxInt32 GetLeft() const; -static int LUACALL wxLua_wxRect2DInt_GetLeft(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetLeft - wxInt32 returns = (self->GetLeft()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetLeftBottom[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetLeftBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetLeftBottom[1] = {{ wxLua_wxRect2DInt_GetLeftBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetLeftBottom }}; -// wxPoint2DInt GetLeftBottom() const; -static int LUACALL wxLua_wxRect2DInt_GetLeftBottom(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetLeftBottom - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->GetLeftBottom()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetLeftTop[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetLeftTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetLeftTop[1] = {{ wxLua_wxRect2DInt_GetLeftTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetLeftTop }}; -// wxPoint2DInt GetLeftTop() const; -static int LUACALL wxLua_wxRect2DInt_GetLeftTop(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetLeftTop - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->GetLeftTop()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetOutCode[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetOutCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetOutCode[1] = {{ wxLua_wxRect2DInt_GetOutCode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_GetOutCode }}; -// wxOutCode GetOutCode(const wxPoint2DInt &pt) const; -static int LUACALL wxLua_wxRect2DInt_GetOutCode(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetOutCode - wxOutCode returns = (self->GetOutCode(*pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetPosition[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetPosition[1] = {{ wxLua_wxRect2DInt_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetPosition }}; -// wxPoint2DInt GetPosition(); -static int LUACALL wxLua_wxRect2DInt_GetPosition(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetRight[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetRight[1] = {{ wxLua_wxRect2DInt_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetRight }}; -// wxInt32 GetRight() const; -static int LUACALL wxLua_wxRect2DInt_GetRight(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetRight - wxInt32 returns = (self->GetRight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetRightBottom[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetRightBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetRightBottom[1] = {{ wxLua_wxRect2DInt_GetRightBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetRightBottom }}; -// wxPoint2DInt GetRightBottom() const; -static int LUACALL wxLua_wxRect2DInt_GetRightBottom(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetRightBottom - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->GetRightBottom()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetRightTop[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetRightTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetRightTop[1] = {{ wxLua_wxRect2DInt_GetRightTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetRightTop }}; -// wxPoint2DInt GetRightTop() const; -static int LUACALL wxLua_wxRect2DInt_GetRightTop(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetRightTop - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->GetRightTop()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetSize[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetSize[1] = {{ wxLua_wxRect2DInt_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetSize }}; -// wxSize GetSize(); -static int LUACALL wxLua_wxRect2DInt_GetSize(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetTop[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetTop[1] = {{ wxLua_wxRect2DInt_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetTop }}; -// wxInt32 GetTop() const; -static int LUACALL wxLua_wxRect2DInt_GetTop(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call GetTop - wxInt32 returns = (self->GetTop()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetWidth[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetWidth[1] = {{ wxLua_wxRect2DInt_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetWidth }}; -// %rename Width %member_func wxInt32 m_width; -static int LUACALL wxLua_wxRect2DInt_GetWidth(lua_State *L) -{ - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_width) == (double)(self->m_width)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_width); -} else -#endif -{ - lua_pushnumber(L, self->m_width); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetX[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetX[1] = {{ wxLua_wxRect2DInt_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetX }}; -// %rename X %member_func wxInt32 m_x; -static int LUACALL wxLua_wxRect2DInt_GetX(lua_State *L) -{ - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_x) == (double)(self->m_x)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_x); -} else -#endif -{ - lua_pushnumber(L, self->m_x); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_GetY[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_GetY[1] = {{ wxLua_wxRect2DInt_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_GetY }}; -// %rename Y %member_func wxInt32 m_y; -static int LUACALL wxLua_wxRect2DInt_GetY(lua_State *L) -{ - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_y) == (double)(self->m_y)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_y); -} else -#endif -{ - lua_pushnumber(L, self->m_y); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_HaveEqualSize[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_HaveEqualSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_HaveEqualSize[1] = {{ wxLua_wxRect2DInt_HaveEqualSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_HaveEqualSize }}; -// bool HaveEqualSize(const wxRect2DInt &rect) const; -static int LUACALL wxLua_wxRect2DInt_HaveEqualSize(lua_State *L) -{ - // const wxRect2DInt rect - const wxRect2DInt * rect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call HaveEqualSize - bool returns = (self->HaveEqualSize(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Inset[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_Inset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Inset[1] = {{ wxLua_wxRect2DInt_Inset, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRect2DInt_Inset }}; -// void Inset(wxInt32 left, wxInt32 top, wxInt32 right, wxInt32 bottom ); -static int LUACALL wxLua_wxRect2DInt_Inset(lua_State *L) -{ - // wxInt32 bottom - wxInt32 bottom = (wxInt32)wxlua_getnumbertype(L, 5); - // wxInt32 right - wxInt32 right = (wxInt32)wxlua_getnumbertype(L, 4); - // wxInt32 top - wxInt32 top = (wxInt32)wxlua_getnumbertype(L, 3); - // wxInt32 left - wxInt32 left = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Inset - self->Inset(left, top, right, bottom); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Interpolate[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_Interpolate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Interpolate[1] = {{ wxLua_wxRect2DInt_Interpolate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRect2DInt_Interpolate }}; -// wxPoint2DInt Interpolate(wxInt32 widthfactor , wxInt32 heightfactor); -static int LUACALL wxLua_wxRect2DInt_Interpolate(lua_State *L) -{ - // wxInt32 heightfactor - wxInt32 heightfactor = (wxInt32)wxlua_getnumbertype(L, 3); - // wxInt32 widthfactor - wxInt32 widthfactor = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Interpolate - // allocate a new object using the copy constructor - wxPoint2DInt* returns = new wxPoint2DInt(self->Interpolate(widthfactor, heightfactor)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Intersect[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Intersect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Intersect[1] = {{ wxLua_wxRect2DInt_Intersect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Intersect }}; -// void Intersect(const wxRect2DInt &otherRect); -static int LUACALL wxLua_wxRect2DInt_Intersect(lua_State *L) -{ - // const wxRect2DInt otherRect - const wxRect2DInt * otherRect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Intersect - self->Intersect(*otherRect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Intersects[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Intersects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Intersects[1] = {{ wxLua_wxRect2DInt_Intersects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Intersects }}; -// bool Intersects(const wxRect2DInt &rect) const; -static int LUACALL wxLua_wxRect2DInt_Intersects(lua_State *L) -{ - // const wxRect2DInt rect - const wxRect2DInt * rect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Intersects - bool returns = (self->Intersects(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_IsEmpty[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_IsEmpty[1] = {{ wxLua_wxRect2DInt_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxRect2DInt_IsEmpty(lua_State *L) -{ - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveBottomTo[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveBottomTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveBottomTo[1] = {{ wxLua_wxRect2DInt_MoveBottomTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveBottomTo }}; -// void MoveBottomTo(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_MoveBottomTo(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveBottomTo - self->MoveBottomTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveCentreTo[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveCentreTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveCentreTo[1] = {{ wxLua_wxRect2DInt_MoveCentreTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveCentreTo }}; -// void MoveCentreTo(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_MoveCentreTo(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveCentreTo - self->MoveCentreTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveLeftBottomTo[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveLeftBottomTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveLeftBottomTo[1] = {{ wxLua_wxRect2DInt_MoveLeftBottomTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveLeftBottomTo }}; -// void MoveLeftBottomTo(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_MoveLeftBottomTo(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveLeftBottomTo - self->MoveLeftBottomTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveLeftTo[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveLeftTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveLeftTo[1] = {{ wxLua_wxRect2DInt_MoveLeftTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveLeftTo }}; -// void MoveLeftTo(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_MoveLeftTo(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveLeftTo - self->MoveLeftTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveLeftTopTo[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveLeftTopTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveLeftTopTo[1] = {{ wxLua_wxRect2DInt_MoveLeftTopTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveLeftTopTo }}; -// void MoveLeftTopTo(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_MoveLeftTopTo(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveLeftTopTo - self->MoveLeftTopTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveRightBottomTo[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveRightBottomTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveRightBottomTo[1] = {{ wxLua_wxRect2DInt_MoveRightBottomTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveRightBottomTo }}; -// void MoveRightBottomTo(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_MoveRightBottomTo(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveRightBottomTo - self->MoveRightBottomTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveRightTo[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveRightTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveRightTo[1] = {{ wxLua_wxRect2DInt_MoveRightTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveRightTo }}; -// void MoveRightTo(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_MoveRightTo(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveRightTo - self->MoveRightTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveRightTopTo[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveRightTopTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveRightTopTo[1] = {{ wxLua_wxRect2DInt_MoveRightTopTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveRightTopTo }}; -// void MoveRightTopTo(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_MoveRightTopTo(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveRightTopTo - self->MoveRightTopTo(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_MoveTopTo[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_MoveTopTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_MoveTopTo[1] = {{ wxLua_wxRect2DInt_MoveTopTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_MoveTopTo }}; -// void MoveTopTo(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_MoveTopTo(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call MoveTopTo - self->MoveTopTo(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Offset[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Offset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Offset[1] = {{ wxLua_wxRect2DInt_Offset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Offset }}; -// void Offset(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_Offset(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Offset - self->Offset(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Scale[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Scale[1] = {{ wxLua_wxRect2DInt_Scale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Scale }}; -// void Scale(wxInt32 f); -static int LUACALL wxLua_wxRect2DInt_Scale(lua_State *L) -{ - // wxInt32 f - wxInt32 f = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Scale - self->Scale(f); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetBottom[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetBottom[1] = {{ wxLua_wxRect2DInt_SetBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetBottom }}; -// void SetBottom(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_SetBottom(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetBottom - self->SetBottom(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetCentre[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetCentre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetCentre[1] = {{ wxLua_wxRect2DInt_SetCentre, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetCentre }}; -// void SetCentre(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_SetCentre(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetCentre - self->SetCentre(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetHeight[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetHeight[1] = {{ wxLua_wxRect2DInt_SetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetHeight }}; -// %rename Height %member_func wxInt32 m_height; -static int LUACALL wxLua_wxRect2DInt_SetHeight(lua_State *L) -{ - // get the number value - wxInt32 val = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - self->m_height = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetLeft[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetLeft[1] = {{ wxLua_wxRect2DInt_SetLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetLeft }}; -// void SetLeft(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_SetLeft(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetLeft - self->SetLeft(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetLeftBottom[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetLeftBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetLeftBottom[1] = {{ wxLua_wxRect2DInt_SetLeftBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetLeftBottom }}; -// void SetLeftBottom(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_SetLeftBottom(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetLeftBottom - self->SetLeftBottom(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetLeftTop[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetLeftTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetLeftTop[1] = {{ wxLua_wxRect2DInt_SetLeftTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetLeftTop }}; -// void SetLeftTop(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_SetLeftTop(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetLeftTop - self->SetLeftTop(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetRight[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetRight[1] = {{ wxLua_wxRect2DInt_SetRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetRight }}; -// void SetRight(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_SetRight(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetRight - self->SetRight(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetRightBottom[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetRightBottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetRightBottom[1] = {{ wxLua_wxRect2DInt_SetRightBottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetRightBottom }}; -// void SetRightBottom(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_SetRightBottom(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetRightBottom - self->SetRightBottom(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetRightTop[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetRightTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetRightTop[1] = {{ wxLua_wxRect2DInt_SetRightTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetRightTop }}; -// void SetRightTop(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_SetRightTop(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetRightTop - self->SetRightTop(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetTop[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetTop[1] = {{ wxLua_wxRect2DInt_SetTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetTop }}; -// void SetTop(wxInt32 n); -static int LUACALL wxLua_wxRect2DInt_SetTop(lua_State *L) -{ - // wxInt32 n - wxInt32 n = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call SetTop - self->SetTop(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetWidth[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetWidth[1] = {{ wxLua_wxRect2DInt_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetWidth }}; -// %rename Width %member_func wxInt32 m_width; -static int LUACALL wxLua_wxRect2DInt_SetWidth(lua_State *L) -{ - // get the number value - wxInt32 val = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - self->m_width = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetX[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetX[1] = {{ wxLua_wxRect2DInt_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetX }}; -// %rename X %member_func wxInt32 m_x; -static int LUACALL wxLua_wxRect2DInt_SetX(lua_State *L) -{ - // get the number value - wxInt32 val = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - self->m_x = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_SetY[] = { &wxluatype_wxRect2DInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_SetY[1] = {{ wxLua_wxRect2DInt_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_SetY }}; -// %rename Y %member_func wxInt32 m_y; -static int LUACALL wxLua_wxRect2DInt_SetY(lua_State *L) -{ - // get the number value - wxInt32 val = (wxInt32)wxlua_getnumbertype(L, 2); - // get this - wxRect2DInt *self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - self->m_y = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Union1[] = { &wxluatype_wxRect2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Union1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Union1[1] = {{ wxLua_wxRect2DInt_Union1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Union1 }}; -// void Union(const wxPoint2DInt &pt); -static int LUACALL wxLua_wxRect2DInt_Union1(lua_State *L) -{ - // const wxPoint2DInt pt - const wxPoint2DInt * pt = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Union - self->Union(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_Union[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_Union(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Union[1] = {{ wxLua_wxRect2DInt_Union, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Union }}; -// void Union(const wxRect2DInt &otherRect); -static int LUACALL wxLua_wxRect2DInt_Union(lua_State *L) -{ - // const wxRect2DInt otherRect - const wxRect2DInt * otherRect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call Union - self->Union(*otherRect); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_delete[] = { &wxluatype_wxRect2DInt, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_op_eq[] = { &wxluatype_wxRect2DInt, &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_op_eq[1] = {{ wxLua_wxRect2DInt_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_op_eq }}; -// bool operator == (const wxRect2DInt& rect) const; -static int LUACALL wxLua_wxRect2DInt_op_eq(lua_State *L) -{ - // const wxRect2DInt rect - const wxRect2DInt * rect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect2DInt); - // get this - wxRect2DInt * self = (wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call op_eq - bool returns = ((*self)==(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_constructor4[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRect2DInt_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_constructor4[1] = {{ wxLua_wxRect2DInt_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_constructor4 }}; -// wxRect2DInt(const wxPoint2DInt& pos, const wxSize& size); -static int LUACALL wxLua_wxRect2DInt_constructor4(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // const wxPoint2DInt pos - const wxPoint2DInt * pos = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call constructor - wxRect2DInt* returns = new wxRect2DInt(*pos, *size); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_constructor3[] = { &wxluatype_wxPoint2DInt, &wxluatype_wxPoint2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_constructor3[1] = {{ wxLua_wxRect2DInt_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_constructor3 }}; -// wxRect2DInt(const wxPoint2DInt& topLeft, const wxPoint2DInt& bottomRight); -static int LUACALL wxLua_wxRect2DInt_constructor3(lua_State *L) -{ - // const wxPoint2DInt bottomRight - const wxPoint2DInt * bottomRight = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DInt); - // const wxPoint2DInt topLeft - const wxPoint2DInt * topLeft = (const wxPoint2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint2DInt); - // call constructor - wxRect2DInt* returns = new wxRect2DInt(*topLeft, *bottomRight); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_constructor2[] = { &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRect2DInt_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_constructor2[1] = {{ wxLua_wxRect2DInt_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_constructor2 }}; -// wxRect2DInt(const wxRect& r); -static int LUACALL wxLua_wxRect2DInt_constructor2(lua_State *L) -{ - // const wxRect r - const wxRect * r = (const wxRect *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect); - // call constructor - wxRect2DInt* returns = new wxRect2DInt(*r); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_constructor1[] = { &wxluatype_wxRect2DInt, NULL }; -static int LUACALL wxLua_wxRect2DInt_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_constructor1[1] = {{ wxLua_wxRect2DInt_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_constructor1 }}; -// wxRect2DInt(const wxRect2DInt& rect); -static int LUACALL wxLua_wxRect2DInt_constructor1(lua_State *L) -{ - // const wxRect2DInt rect - const wxRect2DInt * rect = (const wxRect2DInt *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRect2DInt); - // call constructor - wxRect2DInt* returns = new wxRect2DInt(*rect); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRect2DInt_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRect2DInt_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_constructor[1] = {{ wxLua_wxRect2DInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRect2DInt_constructor }}; -// wxRect2DInt(wxInt32 x=0, wxInt32 y=0, wxInt32 w=0, wxInt32 h=0); -static int LUACALL wxLua_wxRect2DInt_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxInt32 h = 0 - wxInt32 h = (argCount >= 4 ? (wxInt32)wxlua_getnumbertype(L, 4) : 0); - // wxInt32 w = 0 - wxInt32 w = (argCount >= 3 ? (wxInt32)wxlua_getnumbertype(L, 3) : 0); - // wxInt32 y = 0 - wxInt32 y = (argCount >= 2 ? (wxInt32)wxlua_getnumbertype(L, 2) : 0); - // wxInt32 x = 0 - wxInt32 x = (argCount >= 1 ? (wxInt32)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxRect2DInt* returns = new wxRect2DInt(x, y, w, h); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DInt); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DInt); - - return 1; -} - - - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Contains_overload[] = -{ - { wxLua_wxRect2DInt_Contains1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Contains1 }, - { wxLua_wxRect2DInt_Contains, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Contains }, -}; -static int s_wxluafunc_wxLua_wxRect2DInt_Contains_overload_count = sizeof(s_wxluafunc_wxLua_wxRect2DInt_Contains_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_Union_overload[] = -{ - { wxLua_wxRect2DInt_Union1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Union1 }, - { wxLua_wxRect2DInt_Union, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_Union }, -}; -static int s_wxluafunc_wxLua_wxRect2DInt_Union_overload_count = sizeof(s_wxluafunc_wxLua_wxRect2DInt_Union_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRect2DInt_constructor_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect2DInt_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_constructor4 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect2DInt_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRect2DInt_constructor3 }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect2DInt_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_constructor2 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRect2DInt_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRect2DInt_constructor1 }, - { wxLua_wxRect2DInt_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxRect2DInt_constructor }, -}; -static int s_wxluafunc_wxLua_wxRect2DInt_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRect2DInt_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -void wxLua_wxRect2DInt_delete_function(void** p) -{ - wxRect2DInt* o = (wxRect2DInt*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRect2DInt_methods[] = { - { "ConstrainTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_ConstrainTo, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "Contains", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Contains_overload, s_wxluafunc_wxLua_wxRect2DInt_Contains_overload_count, 0 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "CreateIntersection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_CreateIntersection, 1, NULL }, - { "CreateUnion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_CreateUnion, 1, NULL }, - { "GetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetBottom, 1, NULL }, - { "GetCentre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetCentre, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetHeight, 1, NULL }, - { "GetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetLeft, 1, NULL }, - { "GetLeftBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetLeftBottom, 1, NULL }, - { "GetLeftTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetLeftTop, 1, NULL }, - { "GetOutCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetOutCode, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetPosition, 1, NULL }, - { "GetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetRight, 1, NULL }, - { "GetRightBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetRightBottom, 1, NULL }, - { "GetRightTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetRightTop, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetSize, 1, NULL }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - - { "GetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetTop, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetWidth, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_GetY, 1, NULL }, - { "HaveEqualSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_HaveEqualSize, 1, NULL }, - { "Inset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Inset, 1, NULL }, - { "Interpolate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Interpolate, 1, NULL }, - { "Intersect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Intersect, 1, NULL }, - { "Intersects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Intersects, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_IsEmpty, 1, NULL }, - { "MoveBottomTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveBottomTo, 1, NULL }, - { "MoveCentreTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveCentreTo, 1, NULL }, - { "MoveLeftBottomTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveLeftBottomTo, 1, NULL }, - { "MoveLeftTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveLeftTo, 1, NULL }, - { "MoveLeftTopTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveLeftTopTo, 1, NULL }, - { "MoveRightBottomTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveRightBottomTo, 1, NULL }, - { "MoveRightTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveRightTo, 1, NULL }, - { "MoveRightTopTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveRightTopTo, 1, NULL }, - { "MoveTopTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_MoveTopTo, 1, NULL }, - { "Offset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Offset, 1, NULL }, - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Scale, 1, NULL }, - { "SetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetBottom, 1, NULL }, - { "SetCentre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetCentre, 1, NULL }, - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetHeight, 1, NULL }, - { "SetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetLeft, 1, NULL }, - { "SetLeftBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetLeftBottom, 1, NULL }, - { "SetLeftTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetLeftTop, 1, NULL }, - { "SetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetRight, 1, NULL }, - { "SetRightBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetRightBottom, 1, NULL }, - { "SetRightTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetRightTop, 1, NULL }, - { "SetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetTop, 1, NULL }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetWidth, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_SetY, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "Union", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_Union_overload, s_wxluafunc_wxLua_wxRect2DInt_Union_overload_count, 0 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRect2DInt_delete, 1, NULL }, - { "m_height", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DInt_SetHeight, 1, NULL }, - { "m_height", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DInt_GetHeight, 1, NULL }, - { "m_width", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DInt_SetWidth, 1, NULL }, - { "m_width", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DInt_GetWidth, 1, NULL }, - { "m_x", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DInt_SetX, 1, NULL }, - { "m_x", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DInt_GetX, 1, NULL }, - { "m_y", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRect2DInt_SetY, 1, NULL }, - { "m_y", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRect2DInt_GetY, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRect2DInt_op_eq, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "wxRect2DInt", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRect2DInt_constructor_overload, s_wxluafunc_wxLua_wxRect2DInt_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { 0, 0, 0, 0 }, -}; - -int wxRect2DInt_methodCount = sizeof(wxRect2DInt_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - - -#if wxLUA_USE_Geometry && wxUSE_GEOMETRY -// --------------------------------------------------------------------------- -// Bind class wxPosition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPosition' -int wxluatype_wxPosition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_GetCol[] = { &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_GetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_GetCol[1] = {{ wxLua_wxPosition_GetCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPosition_GetCol }}; -// int GetCol() const; -static int LUACALL wxLua_wxPosition_GetCol(lua_State *L) -{ - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call GetCol - int returns = (self->GetCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_GetColumn[] = { &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_GetColumn[1] = {{ wxLua_wxPosition_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPosition_GetColumn }}; -// int GetColumn() const; -static int LUACALL wxLua_wxPosition_GetColumn(lua_State *L) -{ - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call GetColumn - int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_GetRow[] = { &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_GetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_GetRow[1] = {{ wxLua_wxPosition_GetRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPosition_GetRow }}; -// int GetRow() const; -static int LUACALL wxLua_wxPosition_GetRow(lua_State *L) -{ - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call GetRow - int returns = (self->GetRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_SetCol[] = { &wxluatype_wxPosition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPosition_SetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_SetCol[1] = {{ wxLua_wxPosition_SetCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_SetCol }}; -// void SetCol(int column); -static int LUACALL wxLua_wxPosition_SetCol(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call SetCol - self->SetCol(column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_SetColumn[] = { &wxluatype_wxPosition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPosition_SetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_SetColumn[1] = {{ wxLua_wxPosition_SetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_SetColumn }}; -// void SetColumn(int column); -static int LUACALL wxLua_wxPosition_SetColumn(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call SetColumn - self->SetColumn(column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_SetRow[] = { &wxluatype_wxPosition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPosition_SetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_SetRow[1] = {{ wxLua_wxPosition_SetRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_SetRow }}; -// void SetRow(int row); -static int LUACALL wxLua_wxPosition_SetRow(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call SetRow - self->SetRow(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_delete[] = { &wxluatype_wxPosition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPosition_delete }}; - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_add1[] = { &wxluatype_wxPosition, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPosition_op_add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_add1[1] = {{ wxLua_wxPosition_op_add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_add1 }}; -// wxPosition operator+(const wxSize& s) const; -static int LUACALL wxLua_wxPosition_op_add1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_add - // allocate a new object using the copy constructor - wxPosition* returns = new wxPosition((*self)+(*s)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_add[] = { &wxluatype_wxPosition, &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_op_add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_add[1] = {{ wxLua_wxPosition_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_add }}; -// wxPosition operator+(const wxPosition& p) const; -static int LUACALL wxLua_wxPosition_op_add(lua_State *L) -{ - // const wxPosition p - const wxPosition * p = (const wxPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPosition); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_add - // allocate a new object using the copy constructor - wxPosition* returns = new wxPosition((*self)+(*p)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_eq[] = { &wxluatype_wxPosition, &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_eq[1] = {{ wxLua_wxPosition_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_eq }}; -// bool operator==(const wxPosition& p) const; -static int LUACALL wxLua_wxPosition_op_eq(lua_State *L) -{ - // const wxPosition p - const wxPosition * p = (const wxPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPosition); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_eq - bool returns = ((*self)==(*p)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_iadd1[] = { &wxluatype_wxPosition, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPosition_op_iadd1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_iadd1[1] = {{ wxLua_wxPosition_op_iadd1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_iadd1 }}; -// wxPosition& operator+=(const wxSize& s); -static int LUACALL wxLua_wxPosition_op_iadd1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_iadd - (*self)+=(*s); - wxPosition* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_iadd[] = { &wxluatype_wxPosition, &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_op_iadd(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_iadd[1] = {{ wxLua_wxPosition_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_iadd }}; -// wxPosition& operator+=(const wxPosition& p); -static int LUACALL wxLua_wxPosition_op_iadd(lua_State *L) -{ - // const wxPosition p - const wxPosition * p = (const wxPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPosition); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_iadd - (*self)+=(*p); - wxPosition* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_isub1[] = { &wxluatype_wxPosition, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPosition_op_isub1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_isub1[1] = {{ wxLua_wxPosition_op_isub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_isub1 }}; -// wxPosition& operator-=(const wxSize& s); -static int LUACALL wxLua_wxPosition_op_isub1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_isub - (*self)-=(*s); - wxPosition* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_isub[] = { &wxluatype_wxPosition, &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_op_isub(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_isub[1] = {{ wxLua_wxPosition_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_isub }}; -// wxPosition& operator-=(const wxPosition& p); -static int LUACALL wxLua_wxPosition_op_isub(lua_State *L) -{ - // const wxPosition p - const wxPosition * p = (const wxPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPosition); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_isub - (*self)-=(*p); - wxPosition* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_ne[] = { &wxluatype_wxPosition, &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_ne[1] = {{ wxLua_wxPosition_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_ne }}; -// bool operator!=(const wxPosition& p) const; -static int LUACALL wxLua_wxPosition_op_ne(lua_State *L) -{ - // const wxPosition p - const wxPosition * p = (const wxPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPosition); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_ne - bool returns = ((*self)!=(*p)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_sub1[] = { &wxluatype_wxPosition, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPosition_op_sub1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_sub1[1] = {{ wxLua_wxPosition_op_sub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_sub1 }}; -// wxPosition operator-(const wxSize& s) const; -static int LUACALL wxLua_wxPosition_op_sub1(lua_State *L) -{ - // const wxSize s - const wxSize * s = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_sub - // allocate a new object using the copy constructor - wxPosition* returns = new wxPosition((*self)-(*s)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_op_sub[] = { &wxluatype_wxPosition, &wxluatype_wxPosition, NULL }; -static int LUACALL wxLua_wxPosition_op_sub(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_sub[1] = {{ wxLua_wxPosition_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_sub }}; -// wxPosition operator-(const wxPosition& p) const; -static int LUACALL wxLua_wxPosition_op_sub(lua_State *L) -{ - // const wxPosition p - const wxPosition * p = (const wxPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPosition); - // get this - wxPosition * self = (wxPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPosition); - // call op_sub - // allocate a new object using the copy constructor - wxPosition* returns = new wxPosition((*self)-(*p)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPosition_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPosition_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_constructor1[1] = {{ wxLua_wxPosition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxPosition_constructor1 }}; -// wxPosition(int row, int col); -static int LUACALL wxLua_wxPosition_constructor1(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // int row - int row = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxPosition* returns = new wxPosition(row, col); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -static int LUACALL wxLua_wxPosition_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_constructor[1] = {{ wxLua_wxPosition_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPosition(); -static int LUACALL wxLua_wxPosition_constructor(lua_State *L) -{ - // call constructor - wxPosition* returns = new wxPosition(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - - - - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_add_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_add1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_add1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_add }, -}; -static int s_wxluafunc_wxLua_wxPosition_op_add_overload_count = sizeof(s_wxluafunc_wxLua_wxPosition_op_add_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_iadd_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_iadd1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_iadd1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_iadd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_iadd }, -}; -static int s_wxluafunc_wxLua_wxPosition_op_iadd_overload_count = sizeof(s_wxluafunc_wxLua_wxPosition_op_iadd_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_isub_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_isub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_isub1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_isub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_isub }, -}; -static int s_wxluafunc_wxLua_wxPosition_op_isub_overload_count = sizeof(s_wxluafunc_wxLua_wxPosition_op_isub_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_op_sub_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_sub1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_sub1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxPosition_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPosition_op_sub }, -}; -static int s_wxluafunc_wxLua_wxPosition_op_sub_overload_count = sizeof(s_wxluafunc_wxLua_wxPosition_op_sub_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPosition_constructor_overload[] = -{ - { wxLua_wxPosition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxPosition_constructor1 }, - { wxLua_wxPosition_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPosition_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPosition_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -void wxLua_wxPosition_delete_function(void** p) -{ - wxPosition* o = (wxPosition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPosition_methods[] = { - { "GetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_GetCol, 1, NULL }, - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_GetColumn, 1, NULL }, - { "GetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_GetRow, 1, NULL }, - { "SetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_SetCol, 1, NULL }, - { "SetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_SetColumn, 1, NULL }, - { "SetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_SetRow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPosition_delete, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_op_add_overload, s_wxluafunc_wxLua_wxPosition_op_add_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_op_eq, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "op_iadd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_op_iadd_overload, s_wxluafunc_wxLua_wxPosition_op_iadd_overload_count, 0 }, - { "op_isub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_op_isub_overload, s_wxluafunc_wxLua_wxPosition_op_isub_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_op_ne, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "op_sub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPosition_op_sub_overload, s_wxluafunc_wxLua_wxPosition_op_sub_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_Geometry && wxUSE_GEOMETRY) - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - { "wxPosition", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPosition_constructor_overload, s_wxluafunc_wxLua_wxPosition_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) - - { 0, 0, 0, 0 }, -}; - -int wxPosition_methodCount = sizeof(wxPosition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_Geometry && wxUSE_GEOMETRY - diff --git a/wxLua/modules/wxbind/src/wxcore_graphics.cpp b/wxLua/modules/wxbind/src/wxcore_graphics.cpp deleted file mode 100644 index 2a7c243f..00000000 --- a/wxLua/modules/wxbind/src/wxcore_graphics.cpp +++ /dev/null @@ -1,5487 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_graphics.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsObject' -int wxluatype_wxGraphicsObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsObject_GetRenderer[] = { &wxluatype_wxGraphicsObject, NULL }; -static int LUACALL wxLua_wxGraphicsObject_GetRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsObject_GetRenderer[1] = {{ wxLua_wxGraphicsObject_GetRenderer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsObject_GetRenderer }}; -// wxGraphicsRenderer* GetRenderer() const; -static int LUACALL wxLua_wxGraphicsObject_GetRenderer(lua_State *L) -{ - // get this - wxGraphicsObject * self = (wxGraphicsObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsObject); - // call GetRenderer - wxGraphicsRenderer* returns = (wxGraphicsRenderer*)self->GetRenderer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsObject_IsNull[] = { &wxluatype_wxGraphicsObject, NULL }; -static int LUACALL wxLua_wxGraphicsObject_IsNull(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsObject_IsNull[1] = {{ wxLua_wxGraphicsObject_IsNull, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsObject_IsNull }}; -// bool IsNull() const; -static int LUACALL wxLua_wxGraphicsObject_IsNull(lua_State *L) -{ - // get this - wxGraphicsObject * self = (wxGraphicsObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsObject); - // call IsNull - bool returns = (self->IsNull()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsObject_delete[] = { &wxluatype_wxGraphicsObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsObject_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsObject_constructor1[] = { &wxluatype_wxGraphicsRenderer, NULL }; -static int LUACALL wxLua_wxGraphicsObject_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsObject_constructor1[1] = {{ wxLua_wxGraphicsObject_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsObject_constructor1 }}; -// wxGraphicsObject( wxGraphicsRenderer* renderer ); -static int LUACALL wxLua_wxGraphicsObject_constructor1(lua_State *L) -{ - // wxGraphicsRenderer renderer - wxGraphicsRenderer * renderer = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call constructor - wxGraphicsObject* returns = new wxGraphicsObject(renderer); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsObject); - - return 1; -} - -static int LUACALL wxLua_wxGraphicsObject_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsObject_constructor[1] = {{ wxLua_wxGraphicsObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsObject(); -static int LUACALL wxLua_wxGraphicsObject_constructor(lua_State *L) -{ - // call constructor - wxGraphicsObject* returns = new wxGraphicsObject(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsObject); - - return 1; -} - - - - -#if (wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsObject_constructor_overload[] = -{ - { wxLua_wxGraphicsObject_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsObject_constructor1 }, - { wxLua_wxGraphicsObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGraphicsObject_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsObject_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT) - -void wxLua_wxGraphicsObject_delete_function(void** p) -{ - wxGraphicsObject* o = (wxGraphicsObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsObject_methods[] = { - { "GetRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsObject_GetRenderer, 1, NULL }, - { "IsNull", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsObject_IsNull, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsObject_delete, 1, NULL }, - -#if (wxUSE_GRAPHICS_CONTEXT) - { "wxGraphicsObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsObject_constructor_overload, s_wxluafunc_wxLua_wxGraphicsObject_constructor_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsObject_methodCount = sizeof(wxGraphicsObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) -// --------------------------------------------------------------------------- -// Bind class wxGraphicsPenInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsPenInfo' -int wxluatype_wxGraphicsPenInfo = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Cap[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Cap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Cap[1] = {{ wxLua_wxGraphicsPenInfo_Cap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Cap }}; -// wxGraphicsPenInfo& Cap(wxPenCap cap); -static int LUACALL wxLua_wxGraphicsPenInfo_Cap(lua_State *L) -{ - // wxPenCap cap - wxPenCap cap = (wxPenCap)wxlua_getenumtype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call Cap - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->Cap(cap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Colour[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Colour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Colour[1] = {{ wxLua_wxGraphicsPenInfo_Colour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Colour }}; -// wxGraphicsPenInfo& Colour(const wxColour& colour); -static int LUACALL wxLua_wxGraphicsPenInfo_Colour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call Colour - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->Colour(*colour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Dashes[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Dashes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Dashes[1] = {{ wxLua_wxGraphicsPenInfo_Dashes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Dashes }}; -// %override wxLua_wxGraphicsPenInfo_Dashes -// wxGraphicsPenInfo& Dashes() -static int LUACALL wxLua_wxGraphicsPenInfo_Dashes(lua_State *L) -{ - // get this - wxGraphicsPenInfo *self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // check if we have a table argument - if (!wxlua_iswxluatype(lua_type(L, 2), WXLUA_TTABLE)) - wxlua_argerror(L, 2, wxT("a 'table'")); - int count = lua_objlen(L, 2); - // allocate an array of wxDashes - // TODO: this memory will leak when wxGraphicsPenInfo is destroyed. - wxDash *dashes = new wxDash[count]; - for (int idx = 1; idx <= count; idx++) { - lua_rawgeti(L, 2, idx); - dashes[idx - 1] = (wxDash)lua_tonumber(L, -1); - lua_pop(L, 1); - } - wxGraphicsPenInfo *returns = &(self->Dashes(count, dashes)); - // push the result data - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - return 1; -} - - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetCap[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetCap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetCap[1] = {{ wxLua_wxGraphicsPenInfo_GetCap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetCap }}; -// wxPenCap GetCap() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetCap(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetCap - wxPenCap returns = (self->GetCap()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetColour[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetColour[1] = {{ wxLua_wxGraphicsPenInfo_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetColour }}; -// wxColour GetColour() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetColour(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetDashCount[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetDashCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetDashCount[1] = {{ wxLua_wxGraphicsPenInfo_GetDashCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetDashCount }}; -// int GetDashCount() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetDashCount(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetDashCount - int returns = (self->GetDashCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetDashes[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetDashes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetDashes[1] = {{ wxLua_wxGraphicsPenInfo_GetDashes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetDashes }}; -// %override wxLua_wxGraphicsPenInfo_GetDashes -// void GetDashes() -static int LUACALL wxLua_wxGraphicsPenInfo_GetDashes(lua_State *L) -{ - // get this - wxGraphicsPenInfo *self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // get dashes - wxDash *dashes; - int nb_dashes = self->GetDashes(&dashes); - if (nb_dashes == 0) - return 0; // No dashes are defined - // create a table (which will be the return value) - lua_newtable(L); - for (int idx = 0; idx < nb_dashes; ++idx) { - lua_pushinteger(L, dashes[idx]); - lua_rawseti(L, -2, idx + 1); - } - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetEndX[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetEndX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetEndX[1] = {{ wxLua_wxGraphicsPenInfo_GetEndX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetEndX }}; -// wxDouble GetEndX() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetEndX(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetEndX - wxDouble returns = (self->GetEndX()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetEndY[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetEndY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetEndY[1] = {{ wxLua_wxGraphicsPenInfo_GetEndY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetEndY }}; -// wxDouble GetEndY() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetEndY(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetEndY - wxDouble returns = (self->GetEndY()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetGradientType[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetGradientType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetGradientType[1] = {{ wxLua_wxGraphicsPenInfo_GetGradientType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetGradientType }}; -// wxGradientType GetGradientType() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetGradientType(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetGradientType - wxGradientType returns = (self->GetGradientType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetJoin[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetJoin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetJoin[1] = {{ wxLua_wxGraphicsPenInfo_GetJoin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetJoin }}; -// wxPenJoin GetJoin() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetJoin(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetJoin - wxPenJoin returns = (self->GetJoin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetMatrix[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetMatrix[1] = {{ wxLua_wxGraphicsPenInfo_GetMatrix, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetMatrix }}; -// const wxGraphicsMatrix& GetMatrix() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetMatrix(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetMatrix - const wxGraphicsMatrix* returns = (const wxGraphicsMatrix*)&self->GetMatrix(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsMatrix); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetRadius[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetRadius(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetRadius[1] = {{ wxLua_wxGraphicsPenInfo_GetRadius, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetRadius }}; -// wxDouble GetRadius() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetRadius(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetRadius - wxDouble returns = (self->GetRadius()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStartX[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStartX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStartX[1] = {{ wxLua_wxGraphicsPenInfo_GetStartX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStartX }}; -// wxDouble GetStartX() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStartX(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetStartX - wxDouble returns = (self->GetStartX()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStartY[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStartY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStartY[1] = {{ wxLua_wxGraphicsPenInfo_GetStartY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStartY }}; -// wxDouble GetStartY() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStartY(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetStartY - wxDouble returns = (self->GetStartY()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStipple[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStipple[1] = {{ wxLua_wxGraphicsPenInfo_GetStipple, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStipple }}; -// wxBitmap GetStipple() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStipple(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetStipple - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetStipple()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStops[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStops(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStops[1] = {{ wxLua_wxGraphicsPenInfo_GetStops, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStops }}; -// const wxGraphicsGradientStops& GetStops() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStops(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetStops - const wxGraphicsGradientStops* returns = (const wxGraphicsGradientStops*)&self->GetStops(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsGradientStops); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStyle[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStyle[1] = {{ wxLua_wxGraphicsPenInfo_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetStyle }}; -// wxPenStyle GetStyle() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetStyle(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetStyle - wxPenStyle returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetWidth[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetWidth[1] = {{ wxLua_wxGraphicsPenInfo_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetWidth }}; -// wxDouble GetWidth() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetWidth(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetWidth - wxDouble returns = (self->GetWidth()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetX1[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetX1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetX1[1] = {{ wxLua_wxGraphicsPenInfo_GetX1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetX1 }}; -// wxDouble GetX1() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetX1(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetX1 - wxDouble returns = (self->GetX1()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetX2[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetX2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetX2[1] = {{ wxLua_wxGraphicsPenInfo_GetX2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetX2 }}; -// wxDouble GetX2() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetX2(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetX2 - wxDouble returns = (self->GetX2()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetY1[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetY1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetY1[1] = {{ wxLua_wxGraphicsPenInfo_GetY1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetY1 }}; -// wxDouble GetY1() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetY1(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetY1 - wxDouble returns = (self->GetY1()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetY2[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_GetY2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_GetY2[1] = {{ wxLua_wxGraphicsPenInfo_GetY2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_GetY2 }}; -// wxDouble GetY2() const; -static int LUACALL wxLua_wxGraphicsPenInfo_GetY2(lua_State *L) -{ - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call GetY2 - wxDouble returns = (self->GetY2()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Join[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Join(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Join[1] = {{ wxLua_wxGraphicsPenInfo_Join, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Join }}; -// wxGraphicsPenInfo& Join(wxPenJoin join); -static int LUACALL wxLua_wxGraphicsPenInfo_Join(lua_State *L) -{ - // wxPenJoin join - wxPenJoin join = (wxPenJoin)wxlua_getenumtype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call Join - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->Join(join); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_LinearGradient1[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsGradientStops, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_LinearGradient1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient1[1] = {{ wxLua_wxGraphicsPenInfo_LinearGradient1, WXLUAMETHOD_METHOD, 6, 7, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_LinearGradient1 }}; -// const wxGraphicsMatrix& matrix = wxNullGraphicsMatrix); -static int LUACALL wxLua_wxGraphicsPenInfo_LinearGradient1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxGraphicsMatrix matrix = wxNullGraphicsMatrix - const wxGraphicsMatrix * matrix = (argCount >= 7 ? (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 7, wxluatype_wxGraphicsMatrix) : &wxNullGraphicsMatrix); - // const wxGraphicsGradientStops stops - const wxGraphicsGradientStops * stops = (const wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 6, wxluatype_wxGraphicsGradientStops); - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call LinearGradient - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->LinearGradient(x1, y1, x2, y2, *stops, *matrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_LinearGradient[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_LinearGradient(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient[1] = {{ wxLua_wxGraphicsPenInfo_LinearGradient, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_LinearGradient }}; -// const wxGraphicsMatrix& matrix = wxNullGraphicsMatrix); -static int LUACALL wxLua_wxGraphicsPenInfo_LinearGradient(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxGraphicsMatrix matrix = wxNullGraphicsMatrix - const wxGraphicsMatrix * matrix = (argCount >= 8 ? (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 8, wxluatype_wxGraphicsMatrix) : &wxNullGraphicsMatrix); - // const wxColour c2 - const wxColour * c2 = (const wxColour *)wxluaT_getuserdatatype(L, 7, wxluatype_wxColour); - // const wxColour c1 - const wxColour * c1 = (const wxColour *)wxluaT_getuserdatatype(L, 6, wxluatype_wxColour); - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call LinearGradient - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->LinearGradient(x1, y1, x2, y2, *c1, *c2, *matrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_RadialGradient1[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsGradientStops, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_RadialGradient1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient1[1] = {{ wxLua_wxGraphicsPenInfo_RadialGradient1, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_RadialGradient1 }}; -// const wxGraphicsMatrix& matrix = wxNullGraphicsMatrix); -static int LUACALL wxLua_wxGraphicsPenInfo_RadialGradient1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxGraphicsMatrix matrix = wxNullGraphicsMatrix - const wxGraphicsMatrix * matrix = (argCount >= 8 ? (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 8, wxluatype_wxGraphicsMatrix) : &wxNullGraphicsMatrix); - // const wxGraphicsGradientStops stops - const wxGraphicsGradientStops * stops = (const wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 7, wxluatype_wxGraphicsGradientStops); - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble endY - wxDouble endY = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble endX - wxDouble endX = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble startY - wxDouble startY = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble startX - wxDouble startX = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call RadialGradient - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->RadialGradient(startX, startY, endX, endY, radius, *stops, *matrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_RadialGradient[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxColour, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_RadialGradient(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient[1] = {{ wxLua_wxGraphicsPenInfo_RadialGradient, WXLUAMETHOD_METHOD, 8, 9, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_RadialGradient }}; -// const wxGraphicsMatrix& matrix = wxNullGraphicsMatrix); -static int LUACALL wxLua_wxGraphicsPenInfo_RadialGradient(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxGraphicsMatrix matrix = wxNullGraphicsMatrix - const wxGraphicsMatrix * matrix = (argCount >= 9 ? (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 9, wxluatype_wxGraphicsMatrix) : &wxNullGraphicsMatrix); - // const wxColour cColor - const wxColour * cColor = (const wxColour *)wxluaT_getuserdatatype(L, 8, wxluatype_wxColour); - // const wxColour oColor - const wxColour * oColor = (const wxColour *)wxluaT_getuserdatatype(L, 7, wxluatype_wxColour); - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble endY - wxDouble endY = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble endX - wxDouble endX = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble startY - wxDouble startY = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble startX - wxDouble startX = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call RadialGradient - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->RadialGradient(startX, startY, endX, endY, radius, *oColor, *cColor, *matrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Stipple[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Stipple(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Stipple[1] = {{ wxLua_wxGraphicsPenInfo_Stipple, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Stipple }}; -// wxGraphicsPenInfo& Stipple(const wxBitmap& stipple); -static int LUACALL wxLua_wxGraphicsPenInfo_Stipple(lua_State *L) -{ - // const wxBitmap stipple - const wxBitmap * stipple = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call Stipple - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->Stipple(*stipple); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Style[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Style(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Style[1] = {{ wxLua_wxGraphicsPenInfo_Style, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Style }}; -// wxGraphicsPenInfo& Style(wxPenStyle style); -static int LUACALL wxLua_wxGraphicsPenInfo_Style(lua_State *L) -{ - // wxPenStyle style - wxPenStyle style = (wxPenStyle)wxlua_getenumtype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call Style - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->Style(style); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Width[] = { &wxluatype_wxGraphicsPenInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_Width(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_Width[1] = {{ wxLua_wxGraphicsPenInfo_Width, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_Width }}; -// wxGraphicsPenInfo& Width(wxDouble width); -static int LUACALL wxLua_wxGraphicsPenInfo_Width(lua_State *L) -{ - // wxDouble width - wxDouble width = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPenInfo * self = (wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPenInfo); - // call Width - wxGraphicsPenInfo* returns = (wxGraphicsPenInfo*)&self->Width(width); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_delete[] = { &wxluatype_wxGraphicsPenInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_delete }}; - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPenInfo_constructor1[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsPenInfo_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor1[1] = {{ wxLua_wxGraphicsPenInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_constructor1 }}; -// wxPenStyle style = wxPENSTYLE_SOLID); -static int LUACALL wxLua_wxGraphicsPenInfo_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPenStyle style = wxPENSTYLE_SOLID - wxPenStyle style = (argCount >= 3 ? (wxPenStyle)wxlua_getenumtype(L, 3) : wxPENSTYLE_SOLID); - // wxDouble width = 1.0 - wxDouble width = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 1.0); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxGraphicsPenInfo* returns = new wxGraphicsPenInfo(*colour, width, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPenInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -static int LUACALL wxLua_wxGraphicsPenInfo_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor[1] = {{ wxLua_wxGraphicsPenInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsPenInfo(); -static int LUACALL wxLua_wxGraphicsPenInfo_constructor(lua_State *L) -{ - // call constructor - wxGraphicsPenInfo* returns = new wxGraphicsPenInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPenInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPenInfo); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPenInfo_LinearGradient1, WXLUAMETHOD_METHOD, 6, 7, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_LinearGradient1 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPenInfo_LinearGradient, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_LinearGradient }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPenInfo_RadialGradient1, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_RadialGradient1 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPenInfo_RadialGradient, WXLUAMETHOD_METHOD, 8, 9, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_RadialGradient }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxGraphicsPenInfo_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxGraphicsPenInfo_constructor1 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxGraphicsPenInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) - -void wxLua_wxGraphicsPenInfo_delete_function(void** p) -{ - wxGraphicsPenInfo* o = (wxGraphicsPenInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsPenInfo_methods[] = { -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { "Cap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Cap, 1, NULL }, - { "Colour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Colour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - - { "Dashes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Dashes, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { "GetCap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetCap, 1, NULL }, - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - - { "GetDashCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetDashCount, 1, NULL }, - { "GetDashes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetDashes, 1, NULL }, - { "GetEndX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetEndX, 1, NULL }, - { "GetEndY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetEndY, 1, NULL }, - { "GetGradientType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetGradientType, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { "GetJoin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetJoin, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - { "GetMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetMatrix, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - - { "GetRadius", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetRadius, 1, NULL }, - { "GetStartX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStartX, 1, NULL }, - { "GetStartY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStartY, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) - { "GetStipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStipple, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - { "GetStops", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStops, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetStyle, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetWidth, 1, NULL }, - { "GetX1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetX1, 1, NULL }, - { "GetX2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetX2, 1, NULL }, - { "GetY1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetY1, 1, NULL }, - { "GetY2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_GetY2, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { "Join", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Join, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT)) - { "LinearGradient", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient_overload, s_wxluafunc_wxLua_wxGraphicsPenInfo_LinearGradient_overload_count, 0 }, - { "RadialGradient", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient_overload, s_wxluafunc_wxLua_wxGraphicsPenInfo_RadialGradient_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush)) && (wxUSE_GRAPHICS_CONTEXT)) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) - { "Stipple", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Stipple, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxBitmap) - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - { "Style", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Style, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush) - - { "Width", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPenInfo_Width, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsPenInfo_delete, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) - { "wxGraphicsPenInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor_overload, s_wxluafunc_wxLua_wxGraphicsPenInfo_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxColourPenBrush))||((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsPenInfo_methodCount = sizeof(wxGraphicsPenInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsPen -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsPen' -int wxluatype_wxGraphicsPen = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPen_delete[] = { &wxluatype_wxGraphicsPen, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPen_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPen_delete }}; - -static int LUACALL wxLua_wxGraphicsPen_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPen_constructor[1] = {{ wxLua_wxGraphicsPen_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsPen(); -static int LUACALL wxLua_wxGraphicsPen_constructor(lua_State *L) -{ - // call constructor - wxGraphicsPen* returns = new wxGraphicsPen(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPen); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPen); - - return 1; -} - - - - -void wxLua_wxGraphicsPen_delete_function(void** p) -{ - wxGraphicsPen* o = (wxGraphicsPen*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsPen_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsPen_delete, 1, NULL }, - { "wxGraphicsPen", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsPen_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsPen_methodCount = sizeof(wxGraphicsPen_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsBrush -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsBrush' -int wxluatype_wxGraphicsBrush = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsBrush_delete[] = { &wxluatype_wxGraphicsBrush, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsBrush_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsBrush_delete }}; - -static int LUACALL wxLua_wxGraphicsBrush_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsBrush_constructor[1] = {{ wxLua_wxGraphicsBrush_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsBrush(); -static int LUACALL wxLua_wxGraphicsBrush_constructor(lua_State *L) -{ - // call constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - - - - -void wxLua_wxGraphicsBrush_delete_function(void** p) -{ - wxGraphicsBrush* o = (wxGraphicsBrush*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsBrush_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsBrush_delete, 1, NULL }, - { "wxGraphicsBrush", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsBrush_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsBrush_methodCount = sizeof(wxGraphicsBrush_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsFont -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsFont' -int wxluatype_wxGraphicsFont = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsFont_delete[] = { &wxluatype_wxGraphicsFont, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsFont_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsFont_delete }}; - -static int LUACALL wxLua_wxGraphicsFont_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsFont_constructor[1] = {{ wxLua_wxGraphicsFont_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsFont(); -static int LUACALL wxLua_wxGraphicsFont_constructor(lua_State *L) -{ - // call constructor - wxGraphicsFont* returns = new wxGraphicsFont(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsFont); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsFont); - - return 1; -} - - - - -void wxLua_wxGraphicsFont_delete_function(void** p) -{ - wxGraphicsFont* o = (wxGraphicsFont*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsFont_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsFont_delete, 1, NULL }, - { "wxGraphicsFont", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsFont_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsFont_methodCount = sizeof(wxGraphicsFont_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsBitmap -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsBitmap' -int wxluatype_wxGraphicsBitmap = WXLUA_TUNKNOWN; - -#if ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsBitmap_ConvertToImage[] = { &wxluatype_wxGraphicsBitmap, NULL }; -static int LUACALL wxLua_wxGraphicsBitmap_ConvertToImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsBitmap_ConvertToImage[1] = {{ wxLua_wxGraphicsBitmap_ConvertToImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsBitmap_ConvertToImage }}; -// wxImage ConvertToImage() const; -static int LUACALL wxLua_wxGraphicsBitmap_ConvertToImage(lua_State *L) -{ - // get this - wxGraphicsBitmap * self = (wxGraphicsBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsBitmap); - // call ConvertToImage - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ConvertToImage()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsBitmap_GetNativeBitmap[] = { &wxluatype_wxGraphicsBitmap, NULL }; -static int LUACALL wxLua_wxGraphicsBitmap_GetNativeBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsBitmap_GetNativeBitmap[1] = {{ wxLua_wxGraphicsBitmap_GetNativeBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsBitmap_GetNativeBitmap }}; -// void* GetNativeBitmap() const; -static int LUACALL wxLua_wxGraphicsBitmap_GetNativeBitmap(lua_State *L) -{ - // get this - wxGraphicsBitmap * self = (wxGraphicsBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsBitmap); - // call GetNativeBitmap - void* returns = (void*)self->GetNativeBitmap(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsBitmap_delete[] = { &wxluatype_wxGraphicsBitmap, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsBitmap_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsBitmap_delete }}; - -static int LUACALL wxLua_wxGraphicsBitmap_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsBitmap_constructor[1] = {{ wxLua_wxGraphicsBitmap_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsBitmap(); -static int LUACALL wxLua_wxGraphicsBitmap_constructor(lua_State *L) -{ - // call constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - - - - -void wxLua_wxGraphicsBitmap_delete_function(void** p) -{ - wxGraphicsBitmap* o = (wxGraphicsBitmap*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsBitmap_methods[] = { -#if ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ConvertToImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsBitmap_ConvertToImage, 1, NULL }, -#endif // ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetNativeBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsBitmap_GetNativeBitmap, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsBitmap_delete, 1, NULL }, - { "wxGraphicsBitmap", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsBitmap_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsBitmap_methodCount = sizeof(wxGraphicsBitmap_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsMatrix -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsMatrix' -int wxluatype_wxGraphicsMatrix = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Concat1[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Concat1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Concat1[1] = {{ wxLua_wxGraphicsMatrix_Concat1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Concat1 }}; -// void Concat( const wxGraphicsMatrix &t ); -static int LUACALL wxLua_wxGraphicsMatrix_Concat1(lua_State *L) -{ - // const wxGraphicsMatrix t - const wxGraphicsMatrix * t = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Concat - self->Concat(*t); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Concat[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Concat(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Concat[1] = {{ wxLua_wxGraphicsMatrix_Concat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Concat }}; -// virtual void Concat( const wxGraphicsMatrix *t ); -static int LUACALL wxLua_wxGraphicsMatrix_Concat(lua_State *L) -{ - // const wxGraphicsMatrix t - const wxGraphicsMatrix * t = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Concat - self->Concat(t); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Get[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Get[1] = {{ wxLua_wxGraphicsMatrix_Get, WXLUAMETHOD_METHOD, 1, 7, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Get }}; -// wxDouble* d=NULL, wxDouble* tx=NULL, wxDouble* ty=NULL) const; -static int LUACALL wxLua_wxGraphicsMatrix_Get(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble ty = NULL - wxDouble * ty = (argCount >= 7 ? (wxDouble *)wxlua_touserdata(L, 7) : NULL); - // wxDouble tx = NULL - wxDouble * tx = (argCount >= 6 ? (wxDouble *)wxlua_touserdata(L, 6) : NULL); - // wxDouble d = NULL - wxDouble * d = (argCount >= 5 ? (wxDouble *)wxlua_touserdata(L, 5) : NULL); - // wxDouble c = NULL - wxDouble * c = (argCount >= 4 ? (wxDouble *)wxlua_touserdata(L, 4) : NULL); - // wxDouble b = NULL - wxDouble * b = (argCount >= 3 ? (wxDouble *)wxlua_touserdata(L, 3) : NULL); - // wxDouble a = NULL - wxDouble * a = (argCount >= 2 ? (wxDouble *)wxlua_touserdata(L, 2) : NULL); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Get - self->Get(a, b, c, d, tx, ty); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_GetNativeMatrix[] = { &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_GetNativeMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_GetNativeMatrix[1] = {{ wxLua_wxGraphicsMatrix_GetNativeMatrix, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsMatrix_GetNativeMatrix }}; -// virtual void * GetNativeMatrix() const; -static int LUACALL wxLua_wxGraphicsMatrix_GetNativeMatrix(lua_State *L) -{ - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call GetNativeMatrix - void* returns = (void*)self->GetNativeMatrix(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Invert[] = { &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Invert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Invert[1] = {{ wxLua_wxGraphicsMatrix_Invert, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Invert }}; -// virtual void Invert(); -static int LUACALL wxLua_wxGraphicsMatrix_Invert(lua_State *L) -{ - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Invert - self->Invert(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsEqual1[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_IsEqual1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual1[1] = {{ wxLua_wxGraphicsMatrix_IsEqual1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsEqual1 }}; -// bool IsEqual( const wxGraphicsMatrix& t) const; -static int LUACALL wxLua_wxGraphicsMatrix_IsEqual1(lua_State *L) -{ - // const wxGraphicsMatrix t - const wxGraphicsMatrix * t = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call IsEqual - bool returns = (self->IsEqual(*t)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsEqual[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_IsEqual(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual[1] = {{ wxLua_wxGraphicsMatrix_IsEqual, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsEqual }}; -// virtual bool IsEqual( const wxGraphicsMatrix* t) const; -static int LUACALL wxLua_wxGraphicsMatrix_IsEqual(lua_State *L) -{ - // const wxGraphicsMatrix t - const wxGraphicsMatrix * t = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call IsEqual - bool returns = (self->IsEqual(t)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsIdentity[] = { &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_IsIdentity(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_IsIdentity[1] = {{ wxLua_wxGraphicsMatrix_IsIdentity, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsIdentity }}; -// virtual bool IsIdentity() const; -static int LUACALL wxLua_wxGraphicsMatrix_IsIdentity(lua_State *L) -{ - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call IsIdentity - bool returns = (self->IsIdentity()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Rotate[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Rotate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Rotate[1] = {{ wxLua_wxGraphicsMatrix_Rotate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Rotate }}; -// virtual void Rotate( wxDouble angle ); -static int LUACALL wxLua_wxGraphicsMatrix_Rotate(lua_State *L) -{ - // wxDouble angle - wxDouble angle = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Rotate - self->Rotate(angle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Scale[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Scale[1] = {{ wxLua_wxGraphicsMatrix_Scale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Scale }}; -// virtual void Scale( wxDouble xScale , wxDouble yScale ); -static int LUACALL wxLua_wxGraphicsMatrix_Scale(lua_State *L) -{ - // wxDouble yScale - wxDouble yScale = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble xScale - wxDouble xScale = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Scale - self->Scale(xScale, yScale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Set[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Set[1] = {{ wxLua_wxGraphicsMatrix_Set, WXLUAMETHOD_METHOD, 1, 7, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Set }}; -// wxDouble tx=0.0, wxDouble ty=0.0); -static int LUACALL wxLua_wxGraphicsMatrix_Set(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble ty = 0.0 - wxDouble ty = (argCount >= 7 ? (wxDouble)wxlua_getnumbertype(L, 7) : 0.0); - // wxDouble tx = 0.0 - wxDouble tx = (argCount >= 6 ? (wxDouble)wxlua_getnumbertype(L, 6) : 0.0); - // wxDouble d = 1.0 - wxDouble d = (argCount >= 5 ? (wxDouble)wxlua_getnumbertype(L, 5) : 1.0); - // wxDouble c = 0.0 - wxDouble c = (argCount >= 4 ? (wxDouble)wxlua_getnumbertype(L, 4) : 0.0); - // wxDouble b = 0.0 - wxDouble b = (argCount >= 3 ? (wxDouble)wxlua_getnumbertype(L, 3) : 0.0); - // wxDouble a = 1.0 - wxDouble a = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 1.0); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Set - self->Set(a, b, c, d, tx, ty); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_TransformDistance[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_TransformDistance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_TransformDistance[1] = {{ wxLua_wxGraphicsMatrix_TransformDistance, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsMatrix_TransformDistance }}; -// virtual void TransformDistance( wxDouble *dx, wxDouble *dy ) const; -static int LUACALL wxLua_wxGraphicsMatrix_TransformDistance(lua_State *L) -{ - // wxDouble dy - wxDouble * dy = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble dx - wxDouble * dx = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call TransformDistance - self->TransformDistance(dx, dy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_TransformPoint[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_TransformPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_TransformPoint[1] = {{ wxLua_wxGraphicsMatrix_TransformPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsMatrix_TransformPoint }}; -// virtual void TransformPoint( wxDouble *x, wxDouble *y ) const; -static int LUACALL wxLua_wxGraphicsMatrix_TransformPoint(lua_State *L) -{ - // wxDouble y - wxDouble * y = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble x - wxDouble * x = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call TransformPoint - self->TransformPoint(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_Translate[] = { &wxluatype_wxGraphicsMatrix, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsMatrix_Translate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Translate[1] = {{ wxLua_wxGraphicsMatrix_Translate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Translate }}; -// virtual void Translate( wxDouble dx , wxDouble dy ); -static int LUACALL wxLua_wxGraphicsMatrix_Translate(lua_State *L) -{ - // wxDouble dy - wxDouble dy = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble dx - wxDouble dx = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsMatrix * self = (wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsMatrix); - // call Translate - self->Translate(dx, dy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsMatrix_delete[] = { &wxluatype_wxGraphicsMatrix, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsMatrix_delete }}; - -static int LUACALL wxLua_wxGraphicsMatrix_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_constructor[1] = {{ wxLua_wxGraphicsMatrix_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsMatrix(); -static int LUACALL wxLua_wxGraphicsMatrix_constructor(lua_State *L) -{ - // call constructor - wxGraphicsMatrix* returns = new wxGraphicsMatrix(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsMatrix); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsMatrix); - - return 1; -} - - - - -#if (wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_Concat_overload[] = -{ - { wxLua_wxGraphicsMatrix_Concat1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Concat1 }, - { wxLua_wxGraphicsMatrix_Concat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_Concat }, -}; -static int s_wxluafunc_wxLua_wxGraphicsMatrix_Concat_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsMatrix_Concat_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual_overload[] = -{ - { wxLua_wxGraphicsMatrix_IsEqual1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsEqual1 }, - { wxLua_wxGraphicsMatrix_IsEqual, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsMatrix_IsEqual }, -}; -static int s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT) - -void wxLua_wxGraphicsMatrix_delete_function(void** p) -{ - wxGraphicsMatrix* o = (wxGraphicsMatrix*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsMatrix_methods[] = { -#if (wxUSE_GRAPHICS_CONTEXT) - { "Concat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Concat_overload, s_wxluafunc_wxLua_wxGraphicsMatrix_Concat_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT) - - { "Get", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Get, 1, NULL }, - { "GetNativeMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_GetNativeMatrix, 1, NULL }, - { "Invert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Invert, 1, NULL }, - -#if (wxUSE_GRAPHICS_CONTEXT) - { "IsEqual", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual_overload, s_wxluafunc_wxLua_wxGraphicsMatrix_IsEqual_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT) - - { "IsIdentity", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_IsIdentity, 1, NULL }, - { "Rotate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Rotate, 1, NULL }, - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Scale, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Set, 1, NULL }, - { "TransformDistance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_TransformDistance, 1, NULL }, - { "TransformPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_TransformPoint, 1, NULL }, - { "Translate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsMatrix_Translate, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsMatrix_delete, 1, NULL }, - { "wxGraphicsMatrix", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsMatrix_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsMatrix_methodCount = sizeof(wxGraphicsMatrix_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsPath -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsPath' -int wxluatype_wxGraphicsPath = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddArc1[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxPoint2DDouble, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddArc1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddArc1[1] = {{ wxLua_wxGraphicsPath_AddArc1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsPath_AddArc1 }}; -// void AddArc( const wxPoint2DDouble& c, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise); -static int LUACALL wxLua_wxGraphicsPath_AddArc1(lua_State *L) -{ - // bool clockwise - bool clockwise = wxlua_getbooleantype(L, 6); - // wxDouble endAngle - wxDouble endAngle = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble startAngle - wxDouble startAngle = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble r - wxDouble r = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxPoint2DDouble c - const wxPoint2DDouble * c = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddArc - self->AddArc(*c, r, startAngle, endAngle, clockwise); - - return 0; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddArc[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddArc(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddArc[1] = {{ wxLua_wxGraphicsPath_AddArc, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsPath_AddArc }}; -// virtual void AddArc( wxDouble x, wxDouble y, wxDouble r, wxDouble startAngle, wxDouble endAngle, bool clockwise ); -static int LUACALL wxLua_wxGraphicsPath_AddArc(lua_State *L) -{ - // bool clockwise - bool clockwise = wxlua_getbooleantype(L, 7); - // wxDouble endAngle - wxDouble endAngle = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble startAngle - wxDouble startAngle = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble r - wxDouble r = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddArc - self->AddArc(x, y, r, startAngle, endAngle, clockwise); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddArcToPoint[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddArcToPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddArcToPoint[1] = {{ wxLua_wxGraphicsPath_AddArcToPoint, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsPath_AddArcToPoint }}; -// virtual void AddArcToPoint( wxDouble x1, wxDouble y1 , wxDouble x2, wxDouble y2, wxDouble r ); -static int LUACALL wxLua_wxGraphicsPath_AddArcToPoint(lua_State *L) -{ - // wxDouble r - wxDouble r = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddArcToPoint - self->AddArcToPoint(x1, y1, x2, y2, r); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddCircle[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddCircle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddCircle[1] = {{ wxLua_wxGraphicsPath_AddCircle, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGraphicsPath_AddCircle }}; -// virtual void AddCircle( wxDouble x, wxDouble y, wxDouble r ); -static int LUACALL wxLua_wxGraphicsPath_AddCircle(lua_State *L) -{ - // wxDouble r - wxDouble r = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddCircle - self->AddCircle(x, y, r); - - return 0; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddCurveToPoint1[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddCurveToPoint1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint1[1] = {{ wxLua_wxGraphicsPath_AddCurveToPoint1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGraphicsPath_AddCurveToPoint1 }}; -// void AddCurveToPoint( const wxPoint2DDouble& c1, const wxPoint2DDouble& c2, const wxPoint2DDouble& e); -static int LUACALL wxLua_wxGraphicsPath_AddCurveToPoint1(lua_State *L) -{ - // const wxPoint2DDouble e - const wxPoint2DDouble * e = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint2DDouble); - // const wxPoint2DDouble c2 - const wxPoint2DDouble * c2 = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint2DDouble); - // const wxPoint2DDouble c1 - const wxPoint2DDouble * c1 = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddCurveToPoint - self->AddCurveToPoint(*c1, *c2, *e); - - return 0; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddCurveToPoint[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddCurveToPoint(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint[1] = {{ wxLua_wxGraphicsPath_AddCurveToPoint, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsPath_AddCurveToPoint }}; -// virtual void AddCurveToPoint( wxDouble cx1, wxDouble cy1, wxDouble cx2, wxDouble cy2, wxDouble x, wxDouble y ); -static int LUACALL wxLua_wxGraphicsPath_AddCurveToPoint(lua_State *L) -{ - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 7); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble cy2 - wxDouble cy2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble cx2 - wxDouble cx2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble cy1 - wxDouble cy1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble cx1 - wxDouble cx1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddCurveToPoint - self->AddCurveToPoint(cx1, cy1, cx2, cy2, x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddEllipse[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddEllipse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddEllipse[1] = {{ wxLua_wxGraphicsPath_AddEllipse, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsPath_AddEllipse }}; -// virtual void AddEllipse( wxDouble x, wxDouble y, wxDouble w, wxDouble h); -static int LUACALL wxLua_wxGraphicsPath_AddEllipse(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddEllipse - self->AddEllipse(x, y, w, h); - - return 0; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddLineToPoint1[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddLineToPoint1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint1[1] = {{ wxLua_wxGraphicsPath_AddLineToPoint1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_AddLineToPoint1 }}; -// void AddLineToPoint( const wxPoint2DDouble& p); -static int LUACALL wxLua_wxGraphicsPath_AddLineToPoint1(lua_State *L) -{ - // const wxPoint2DDouble p - const wxPoint2DDouble * p = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddLineToPoint - self->AddLineToPoint(*p); - - return 0; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddLineToPoint[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddLineToPoint(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint[1] = {{ wxLua_wxGraphicsPath_AddLineToPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_AddLineToPoint }}; -// virtual void AddLineToPoint( wxDouble x, wxDouble y ); -static int LUACALL wxLua_wxGraphicsPath_AddLineToPoint(lua_State *L) -{ - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddLineToPoint - self->AddLineToPoint(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddPath[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxGraphicsPath, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddPath[1] = {{ wxLua_wxGraphicsPath_AddPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_AddPath }}; -// virtual void AddPath( const wxGraphicsPath& path ); -static int LUACALL wxLua_wxGraphicsPath_AddPath(lua_State *L) -{ - // const wxGraphicsPath path - const wxGraphicsPath * path = (const wxGraphicsPath *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPath); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddPath - self->AddPath(*path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddQuadCurveToPoint[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddQuadCurveToPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddQuadCurveToPoint[1] = {{ wxLua_wxGraphicsPath_AddQuadCurveToPoint, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsPath_AddQuadCurveToPoint }}; -// virtual void AddQuadCurveToPoint( wxDouble cx, wxDouble cy, wxDouble x, wxDouble y ); -static int LUACALL wxLua_wxGraphicsPath_AddQuadCurveToPoint(lua_State *L) -{ - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble cy - wxDouble cy = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble cx - wxDouble cx = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddQuadCurveToPoint - self->AddQuadCurveToPoint(cx, cy, x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddRectangle[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddRectangle[1] = {{ wxLua_wxGraphicsPath_AddRectangle, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsPath_AddRectangle }}; -// virtual void AddRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h ); -static int LUACALL wxLua_wxGraphicsPath_AddRectangle(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddRectangle - self->AddRectangle(x, y, w, h); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_AddRoundedRectangle[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_AddRoundedRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddRoundedRectangle[1] = {{ wxLua_wxGraphicsPath_AddRoundedRectangle, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsPath_AddRoundedRectangle }}; -// virtual void AddRoundedRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h, wxDouble radius); -static int LUACALL wxLua_wxGraphicsPath_AddRoundedRectangle(lua_State *L) -{ - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call AddRoundedRectangle - self->AddRoundedRectangle(x, y, w, h, radius); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_CloseSubpath[] = { &wxluatype_wxGraphicsPath, NULL }; -static int LUACALL wxLua_wxGraphicsPath_CloseSubpath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_CloseSubpath[1] = {{ wxLua_wxGraphicsPath_CloseSubpath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_CloseSubpath }}; -// virtual void CloseSubpath(); -static int LUACALL wxLua_wxGraphicsPath_CloseSubpath(lua_State *L) -{ - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call CloseSubpath - self->CloseSubpath(); - - return 0; -} - - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_Contains1[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxPoint2DDouble, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_Contains1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_Contains1[1] = {{ wxLua_wxGraphicsPath_Contains1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_Contains1 }}; -// bool Contains( const wxPoint2DDouble& c, wxPolygonFillMode fillStyle = wxODDEVEN_RULE) const; -static int LUACALL wxLua_wxGraphicsPath_Contains1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPolygonFillMode fillStyle = wxODDEVEN_RULE - wxPolygonFillMode fillStyle = (argCount >= 3 ? (wxPolygonFillMode)wxlua_getenumtype(L, 3) : wxODDEVEN_RULE); - // const wxPoint2DDouble c - const wxPoint2DDouble * c = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call Contains - bool returns = (self->Contains(*c, fillStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_Contains[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_Contains(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_Contains[1] = {{ wxLua_wxGraphicsPath_Contains, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGraphicsPath_Contains }}; -// virtual bool Contains( wxDouble x, wxDouble y, wxPolygonFillMode fillStyle = wxODDEVEN_RULE) const; -static int LUACALL wxLua_wxGraphicsPath_Contains(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPolygonFillMode fillStyle = wxODDEVEN_RULE - wxPolygonFillMode fillStyle = (argCount >= 4 ? (wxPolygonFillMode)wxlua_getenumtype(L, 4) : wxODDEVEN_RULE); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call Contains - bool returns = (self->Contains(x, y, fillStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_GetBox1[] = { &wxluatype_wxGraphicsPath, NULL }; -static int LUACALL wxLua_wxGraphicsPath_GetBox1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetBox1[1] = {{ wxLua_wxGraphicsPath_GetBox1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_GetBox1 }}; -// wxRect2DDouble GetBox() const; -static int LUACALL wxLua_wxGraphicsPath_GetBox1(lua_State *L) -{ - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call GetBox - // allocate a new object using the copy constructor - wxRect2DDouble* returns = new wxRect2DDouble(self->GetBox()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect2DDouble); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_GetBox[] = { &wxluatype_wxGraphicsPath, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsPath_GetBox(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetBox[1] = {{ wxLua_wxGraphicsPath_GetBox, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsPath_GetBox }}; -// virtual void GetBox(wxDouble *x, wxDouble *y, wxDouble *w, wxDouble *h) const; -static int LUACALL wxLua_wxGraphicsPath_GetBox(lua_State *L) -{ - // wxDouble h - wxDouble * h = (wxDouble *)wxlua_touserdata(L, 5); - // wxDouble w - wxDouble * w = (wxDouble *)wxlua_touserdata(L, 4); - // wxDouble y - wxDouble * y = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble x - wxDouble * x = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call GetBox - self->GetBox(x, y, w, h); - - return 0; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_GetCurrentPoint1[] = { &wxluatype_wxGraphicsPath, NULL }; -static int LUACALL wxLua_wxGraphicsPath_GetCurrentPoint1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint1[1] = {{ wxLua_wxGraphicsPath_GetCurrentPoint1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_GetCurrentPoint1 }}; -// wxPoint2DDouble GetCurrentPoint() const; -static int LUACALL wxLua_wxGraphicsPath_GetCurrentPoint1(lua_State *L) -{ - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call GetCurrentPoint - // allocate a new object using the copy constructor - wxPoint2DDouble* returns = new wxPoint2DDouble(self->GetCurrentPoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint2DDouble); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint2DDouble); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_GetCurrentPoint[] = { &wxluatype_wxGraphicsPath, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsPath_GetCurrentPoint(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint[1] = {{ wxLua_wxGraphicsPath_GetCurrentPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_GetCurrentPoint }}; -// virtual void GetCurrentPoint( wxDouble* x, wxDouble* y) const; -static int LUACALL wxLua_wxGraphicsPath_GetCurrentPoint(lua_State *L) -{ - // wxDouble y - wxDouble * y = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble x - wxDouble * x = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call GetCurrentPoint - self->GetCurrentPoint(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_GetNativePath[] = { &wxluatype_wxGraphicsPath, NULL }; -static int LUACALL wxLua_wxGraphicsPath_GetNativePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetNativePath[1] = {{ wxLua_wxGraphicsPath_GetNativePath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_GetNativePath }}; -// virtual void * GetNativePath() const; -static int LUACALL wxLua_wxGraphicsPath_GetNativePath(lua_State *L) -{ - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call GetNativePath - void* returns = (void*)self->GetNativePath(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_MoveToPoint1[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxPoint2DDouble, NULL }; -static int LUACALL wxLua_wxGraphicsPath_MoveToPoint1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint1[1] = {{ wxLua_wxGraphicsPath_MoveToPoint1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_MoveToPoint1 }}; -// void MoveToPoint( const wxPoint2DDouble& p); -static int LUACALL wxLua_wxGraphicsPath_MoveToPoint1(lua_State *L) -{ - // const wxPoint2DDouble p - const wxPoint2DDouble * p = (const wxPoint2DDouble *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint2DDouble); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call MoveToPoint - self->MoveToPoint(*p); - - return 0; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_MoveToPoint[] = { &wxluatype_wxGraphicsPath, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsPath_MoveToPoint(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint[1] = {{ wxLua_wxGraphicsPath_MoveToPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_MoveToPoint }}; -// virtual void MoveToPoint( wxDouble x, wxDouble y ); -static int LUACALL wxLua_wxGraphicsPath_MoveToPoint(lua_State *L) -{ - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call MoveToPoint - self->MoveToPoint(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_Transform[] = { &wxluatype_wxGraphicsPath, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsPath_Transform(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_Transform[1] = {{ wxLua_wxGraphicsPath_Transform, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_Transform }}; -// virtual void Transform( const wxGraphicsMatrix& matrix ); -static int LUACALL wxLua_wxGraphicsPath_Transform(lua_State *L) -{ - // const wxGraphicsMatrix matrix - const wxGraphicsMatrix * matrix = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call Transform - self->Transform(*matrix); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_UnGetNativePath[] = { &wxluatype_wxGraphicsPath, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsPath_UnGetNativePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_UnGetNativePath[1] = {{ wxLua_wxGraphicsPath_UnGetNativePath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_UnGetNativePath }}; -// virtual void UnGetNativePath(void *p) const; -static int LUACALL wxLua_wxGraphicsPath_UnGetNativePath(lua_State *L) -{ - // void p - void * p = (void *)wxlua_touserdata(L, 2); - // get this - wxGraphicsPath * self = (wxGraphicsPath *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsPath); - // call UnGetNativePath - self->UnGetNativePath(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsPath_delete[] = { &wxluatype_wxGraphicsPath, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_delete }}; - -static int LUACALL wxLua_wxGraphicsPath_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_constructor[1] = {{ wxLua_wxGraphicsPath_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGraphicsPath(); -static int LUACALL wxLua_wxGraphicsPath_constructor(lua_State *L) -{ - // call constructor - wxGraphicsPath* returns = new wxGraphicsPath(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPath); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPath); - - return 1; -} - - - - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddArc_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_AddArc1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsPath_AddArc1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_AddArc, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsPath_AddArc }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_AddArc_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_AddArc_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_AddCurveToPoint1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGraphicsPath_AddCurveToPoint1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_AddCurveToPoint, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsPath_AddCurveToPoint }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_AddLineToPoint1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_AddLineToPoint1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_AddLineToPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_AddLineToPoint }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -#if (((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_Contains_overload[] = -{ - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_Contains1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_Contains1 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_Contains, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGraphicsPath_Contains }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_Contains_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_Contains_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetBox_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_GetBox1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_GetBox1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_GetBox, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsPath_GetBox }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_GetBox_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_GetBox_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_GetCurrentPoint1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsPath_GetCurrentPoint1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_GetCurrentPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_GetCurrentPoint }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint_overload[] = -{ - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_MoveToPoint1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsPath_MoveToPoint1 }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsPath_MoveToPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsPath_MoveToPoint }, -}; -static int s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -void wxLua_wxGraphicsPath_delete_function(void** p) -{ - wxGraphicsPath* o = (wxGraphicsPath*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsPath_methods[] = { -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "AddArc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddArc_overload, s_wxluafunc_wxLua_wxGraphicsPath_AddArc_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "AddArcToPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddArcToPoint, 1, NULL }, - { "AddCircle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddCircle, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "AddCurveToPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint_overload, s_wxluafunc_wxLua_wxGraphicsPath_AddCurveToPoint_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "AddEllipse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddEllipse, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "AddLineToPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint_overload, s_wxluafunc_wxLua_wxGraphicsPath_AddLineToPoint_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "AddPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddPath, 1, NULL }, - { "AddQuadCurveToPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddQuadCurveToPoint, 1, NULL }, - { "AddRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddRectangle, 1, NULL }, - { "AddRoundedRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_AddRoundedRectangle, 1, NULL }, - { "CloseSubpath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_CloseSubpath, 1, NULL }, - -#if (((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - { "Contains", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_Contains_overload, s_wxluafunc_wxLua_wxGraphicsPath_Contains_overload_count, 0 }, -#endif // (((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "GetBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_GetBox_overload, s_wxluafunc_wxLua_wxGraphicsPath_GetBox_overload_count, 0 }, - { "GetCurrentPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint_overload, s_wxluafunc_wxLua_wxGraphicsPath_GetCurrentPoint_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "GetNativePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_GetNativePath, 1, NULL }, - -#if ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "MoveToPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint_overload, s_wxluafunc_wxLua_wxGraphicsPath_MoveToPoint_overload_count, 0 }, -#endif // ((wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "Transform", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_Transform, 1, NULL }, - { "UnGetNativePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsPath_UnGetNativePath, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsPath_delete, 1, NULL }, - { "wxGraphicsPath", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsPath_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsPath_methodCount = sizeof(wxGraphicsPath_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsGradientStop -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsGradientStop' -int wxluatype_wxGraphicsGradientStop = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStop_GetColour[] = { &wxluatype_wxGraphicsGradientStop, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStop_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStop_GetColour[1] = {{ wxLua_wxGraphicsGradientStop_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStop_GetColour }}; -// const wxColour& GetColour() const; -static int LUACALL wxLua_wxGraphicsGradientStop_GetColour(lua_State *L) -{ - // get this - wxGraphicsGradientStop * self = (wxGraphicsGradientStop *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStop); - // call GetColour - const wxColour* returns = (const wxColour*)&self->GetColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStop_GetPosition[] = { &wxluatype_wxGraphicsGradientStop, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStop_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStop_GetPosition[1] = {{ wxLua_wxGraphicsGradientStop_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStop_GetPosition }}; -// float GetPosition() const; -static int LUACALL wxLua_wxGraphicsGradientStop_GetPosition(lua_State *L) -{ - // get this - wxGraphicsGradientStop * self = (wxGraphicsGradientStop *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStop); - // call GetPosition - float returns = (self->GetPosition()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStop_SetColour[] = { &wxluatype_wxGraphicsGradientStop, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStop_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStop_SetColour[1] = {{ wxLua_wxGraphicsGradientStop_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStop_SetColour }}; -// void SetColour(const wxColour& col); -static int LUACALL wxLua_wxGraphicsGradientStop_SetColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGraphicsGradientStop * self = (wxGraphicsGradientStop *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStop); - // call SetColour - self->SetColour(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStop_SetPosition[] = { &wxluatype_wxGraphicsGradientStop, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStop_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStop_SetPosition[1] = {{ wxLua_wxGraphicsGradientStop_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStop_SetPosition }}; -// void SetPosition(float pos); -static int LUACALL wxLua_wxGraphicsGradientStop_SetPosition(lua_State *L) -{ - // float pos - float pos = (float)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsGradientStop * self = (wxGraphicsGradientStop *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStop); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStop_delete[] = { &wxluatype_wxGraphicsGradientStop, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStop_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStop_delete }}; - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStop_constructor[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStop_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStop_constructor[1] = {{ wxLua_wxGraphicsGradientStop_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStop_constructor }}; -// wxGraphicsGradientStop(wxColour col = wxTransparentColour, float pos = 0.0); -static int LUACALL wxLua_wxGraphicsGradientStop_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // float pos = 0.0 - float pos = (argCount >= 2 ? (float)wxlua_getnumbertype(L, 2) : 0.0); - // wxColour col = wxTransparentColour - wxColour col = (argCount >= 1 ? *(wxColour*)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour) : wxTransparentColour); - // call constructor - wxGraphicsGradientStop* returns = new wxGraphicsGradientStop(col, pos); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsGradientStop); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsGradientStop); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - - -void wxLua_wxGraphicsGradientStop_delete_function(void** p) -{ - wxGraphicsGradientStop* o = (wxGraphicsGradientStop*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsGradientStop_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStop_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStop_GetPosition, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStop_SetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStop_SetPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsGradientStop_delete, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "wxGraphicsGradientStop", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsGradientStop_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsGradientStop_methodCount = sizeof(wxGraphicsGradientStop_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsGradientStops -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsGradientStops' -int wxluatype_wxGraphicsGradientStops = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_Add1[] = { &wxluatype_wxGraphicsGradientStops, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_Add1[1] = {{ wxLua_wxGraphicsGradientStops_Add1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_Add1 }}; -// void Add(wxColour col, float pos); -static int LUACALL wxLua_wxGraphicsGradientStops_Add1(lua_State *L) -{ - // float pos - float pos = (float)wxlua_getnumbertype(L, 3); - // wxColour col - wxColour col = *(wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call Add - self->Add(col, pos); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_Add[] = { &wxluatype_wxGraphicsGradientStops, &wxluatype_wxGraphicsGradientStop, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_Add[1] = {{ wxLua_wxGraphicsGradientStops_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_Add }}; -// void Add(const wxGraphicsGradientStop& stop); -static int LUACALL wxLua_wxGraphicsGradientStops_Add(lua_State *L) -{ - // const wxGraphicsGradientStop stop - const wxGraphicsGradientStop * stop = (const wxGraphicsGradientStop *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsGradientStop); - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call Add - self->Add(*stop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_GetCount[] = { &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_GetCount[1] = {{ wxLua_wxGraphicsGradientStops_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_GetCount }}; -// size_t GetCount() const; -static int LUACALL wxLua_wxGraphicsGradientStops_GetCount(lua_State *L) -{ - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call GetCount - size_t returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_GetEndColour[] = { &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_GetEndColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_GetEndColour[1] = {{ wxLua_wxGraphicsGradientStops_GetEndColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_GetEndColour }}; -// wxColour GetEndColour() const; -static int LUACALL wxLua_wxGraphicsGradientStops_GetEndColour(lua_State *L) -{ - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call GetEndColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetEndColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_GetStartColour[] = { &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_GetStartColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_GetStartColour[1] = {{ wxLua_wxGraphicsGradientStops_GetStartColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_GetStartColour }}; -// wxColour GetStartColour() const; -static int LUACALL wxLua_wxGraphicsGradientStops_GetStartColour(lua_State *L) -{ - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call GetStartColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetStartColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_SetEndColour[] = { &wxluatype_wxGraphicsGradientStops, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_SetEndColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_SetEndColour[1] = {{ wxLua_wxGraphicsGradientStops_SetEndColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_SetEndColour }}; -// void SetEndColour(wxColour col); -static int LUACALL wxLua_wxGraphicsGradientStops_SetEndColour(lua_State *L) -{ - // wxColour col - wxColour col = *(wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call SetEndColour - self->SetEndColour(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_SetStartColour[] = { &wxluatype_wxGraphicsGradientStops, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_SetStartColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_SetStartColour[1] = {{ wxLua_wxGraphicsGradientStops_SetStartColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_SetStartColour }}; -// void SetStartColour(wxColour col); -static int LUACALL wxLua_wxGraphicsGradientStops_SetStartColour(lua_State *L) -{ - // wxColour col - wxColour col = *(wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxGraphicsGradientStops * self = (wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsGradientStops); - // call SetStartColour - self->SetStartColour(col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_delete[] = { &wxluatype_wxGraphicsGradientStops, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_delete }}; - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsGradientStops_constructor[] = { &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsGradientStops_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_constructor[1] = {{ wxLua_wxGraphicsGradientStops_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_constructor }}; -// wxColour endCol = wxTransparentColour); -static int LUACALL wxLua_wxGraphicsGradientStops_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxColour endCol = wxTransparentColour - wxColour endCol = (argCount >= 2 ? *(wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour) : wxTransparentColour); - // wxColour startCol = wxTransparentColour - wxColour startCol = (argCount >= 1 ? *(wxColour*)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour) : wxTransparentColour); - // call constructor - wxGraphicsGradientStops* returns = new wxGraphicsGradientStops(startCol, endCol); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsGradientStops); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsGradientStops); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsGradientStops_Add_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsGradientStops_Add1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_Add1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsGradientStops_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsGradientStops_Add }, -}; -static int s_wxluafunc_wxLua_wxGraphicsGradientStops_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsGradientStops_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -void wxLua_wxGraphicsGradientStops_delete_function(void** p) -{ - wxGraphicsGradientStops* o = (wxGraphicsGradientStops*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsGradientStops_methods[] = { -#if ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStops_Add_overload, s_wxluafunc_wxLua_wxGraphicsGradientStops_Add_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStops_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "GetEndColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStops_GetEndColour, 1, NULL }, - { "GetStartColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStops_GetStartColour, 1, NULL }, - { "SetEndColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStops_SetEndColour, 1, NULL }, - { "SetStartColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsGradientStops_SetStartColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsGradientStops_delete, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "wxGraphicsGradientStops", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGraphicsGradientStops_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsGradientStops_methodCount = sizeof(wxGraphicsGradientStops_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsContext -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsContext' -int wxluatype_wxGraphicsContext = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_BeginLayer[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_BeginLayer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_BeginLayer[1] = {{ wxLua_wxGraphicsContext_BeginLayer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_BeginLayer }}; -// virtual void BeginLayer(wxDouble opacity);// = 0; -static int LUACALL wxLua_wxGraphicsContext_BeginLayer(lua_State *L) -{ - // wxDouble opacity - wxDouble opacity = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call BeginLayer - self->BeginLayer(opacity); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_ClearRectangle[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_ClearRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_ClearRectangle[1] = {{ wxLua_wxGraphicsContext_ClearRectangle, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_ClearRectangle }}; -// %wxchkver_3_1_1 virtual void ClearRectangle(wxDouble x, wxDouble y, wxDouble w, wxDouble h); -static int LUACALL wxLua_wxGraphicsContext_ClearRectangle(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call ClearRectangle - self->ClearRectangle(x, y, w, h); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Clip1[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Clip1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Clip1[1] = {{ wxLua_wxGraphicsContext_Clip1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_Clip1 }}; -// virtual void Clip( wxDouble x, wxDouble y, wxDouble w, wxDouble h );// = 0; -static int LUACALL wxLua_wxGraphicsContext_Clip1(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call Clip - self->Clip(x, y, w, h); - - return 0; -} - - -#if (wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Clip[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxRegion, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Clip(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Clip[1] = {{ wxLua_wxGraphicsContext_Clip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_Clip }}; -// virtual void Clip( const wxRegion ®ion );// = 0; -static int LUACALL wxLua_wxGraphicsContext_Clip(lua_State *L) -{ - // const wxRegion region - const wxRegion * region = (const wxRegion *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRegion); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call Clip - self->Clip(*region); - - return 0; -} - -#endif // (wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_ConcatTransform[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsContext_ConcatTransform(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_ConcatTransform[1] = {{ wxLua_wxGraphicsContext_ConcatTransform, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_ConcatTransform }}; -// virtual void ConcatTransform( const wxGraphicsMatrix& matrix );// = 0; -static int LUACALL wxLua_wxGraphicsContext_ConcatTransform(lua_State *L) -{ - // const wxGraphicsMatrix matrix - const wxGraphicsMatrix * matrix = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call ConcatTransform - self->ConcatTransform(*matrix); - - return 0; -} - -static int LUACALL wxLua_wxGraphicsContext_Create5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create5[1] = {{ wxLua_wxGraphicsContext_Create5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static %gc wxGraphicsContext* Create(); -static int LUACALL wxLua_wxGraphicsContext_Create5(lua_State *L) -{ - // call Create - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::Create(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Create4[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Create4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create4[1] = {{ wxLua_wxGraphicsContext_Create4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create4 }}; -// static %gc wxGraphicsContext* Create(wxImage& image); -static int LUACALL wxLua_wxGraphicsContext_Create4(lua_State *L) -{ - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::Create(*image); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Create3[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Create3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create3[1] = {{ wxLua_wxGraphicsContext_Create3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create3 }}; -// static %gc wxGraphicsContext* Create( wxWindow* window ); -static int LUACALL wxLua_wxGraphicsContext_Create3(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Create - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::Create(window); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Create2[] = { &wxluatype_wxPrinterDC, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Create2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create2[1] = {{ wxLua_wxGraphicsContext_Create2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create2 }}; -// static %gc wxGraphicsContext* Create( const wxPrinterDC& dc); -static int LUACALL wxLua_wxGraphicsContext_Create2(lua_State *L) -{ - // const wxPrinterDC dc - const wxPrinterDC * dc = (const wxPrinterDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinterDC); - // call Create - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::Create(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Create1[] = { &wxluatype_wxMemoryDC, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create1[1] = {{ wxLua_wxGraphicsContext_Create1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create1 }}; -// static %gc wxGraphicsContext* Create( const wxMemoryDC& dc); -static int LUACALL wxLua_wxGraphicsContext_Create1(lua_State *L) -{ - // const wxMemoryDC dc - const wxMemoryDC * dc = (const wxMemoryDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryDC); - // call Create - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::Create(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Create[] = { &wxluatype_wxWindowDC, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create[1] = {{ wxLua_wxGraphicsContext_Create, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create }}; -// static %gc wxGraphicsContext* Create( const wxWindowDC& dc); -static int LUACALL wxLua_wxGraphicsContext_Create(lua_State *L) -{ - // const wxWindowDC dc - const wxWindowDC * dc = (const wxWindowDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindowDC); - // call Create - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::Create(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateBitmap[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateBitmap[1] = {{ wxLua_wxGraphicsContext_CreateBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateBitmap }}; -// virtual wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap ) const; -static int LUACALL wxLua_wxGraphicsContext_CreateBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateBitmap - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateBitmap(*bitmap)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateBitmapFromImage[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateBitmapFromImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateBitmapFromImage[1] = {{ wxLua_wxGraphicsContext_CreateBitmapFromImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateBitmapFromImage }}; -// wxGraphicsBitmap CreateBitmapFromImage(const wxImage& image) const; -static int LUACALL wxLua_wxGraphicsContext_CreateBitmapFromImage(lua_State *L) -{ - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateBitmapFromImage - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateBitmapFromImage(*image)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateBrush[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateBrush[1] = {{ wxLua_wxGraphicsContext_CreateBrush, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateBrush }}; -// virtual wxGraphicsBrush CreateBrush(const wxBrush& brush ) const; -static int LUACALL wxLua_wxGraphicsContext_CreateBrush(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateBrush(*brush)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont2[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateFont2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFont2[1] = {{ wxLua_wxGraphicsContext_CreateFont2, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont2 }}; -// int flags = wxFONTFLAG_DEFAULT) const; -static int LUACALL wxLua_wxGraphicsContext_CreateFont2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxFONTFLAG_DEFAULT - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxFONTFLAG_DEFAULT); - // const wxString facename - const wxString facename = wxlua_getwxStringtype(L, 3); - // double sizeInPixels - double sizeInPixels = (double)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateFont - // allocate a new object using the copy constructor - wxGraphicsFont* returns = new wxGraphicsFont(self->CreateFont(sizeInPixels, facename, flags)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsFont); - - return 1; -} - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont1[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxFont, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateFont1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFont1[1] = {{ wxLua_wxGraphicsContext_CreateFont1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont1 }}; -// virtual wxGraphicsFont CreateFont( const wxFont &font, const wxColour &col) const; -static int LUACALL wxLua_wxGraphicsContext_CreateFont1(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateFont - // allocate a new object using the copy constructor - wxGraphicsFont* returns = new wxGraphicsFont(self->CreateFont(*font, *col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsFont); - - return 1; -} - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateFont(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFont[1] = {{ wxLua_wxGraphicsContext_CreateFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont }}; -// virtual wxGraphicsFont CreateFont( const wxFont &font) const;// , const wxColour &col = *wxBLACK ) const; -static int LUACALL wxLua_wxGraphicsContext_CreateFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateFont - // allocate a new object using the copy constructor - wxGraphicsFont* returns = new wxGraphicsFont(self->CreateFont(*font)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFromNative[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateFromNative(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFromNative[1] = {{ wxLua_wxGraphicsContext_CreateFromNative, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFromNative }}; -// static %gc wxGraphicsContext* CreateFromNative( void * context ); -static int LUACALL wxLua_wxGraphicsContext_CreateFromNative(lua_State *L) -{ - // void context - void * context = (void *)wxlua_touserdata(L, 1); - // call CreateFromNative - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::CreateFromNative(context); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFromNativeWindow[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateFromNativeWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFromNativeWindow[1] = {{ wxLua_wxGraphicsContext_CreateFromNativeWindow, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFromNativeWindow }}; -// static %gc wxGraphicsContext* CreateFromNativeWindow( void * window ); -static int LUACALL wxLua_wxGraphicsContext_CreateFromNativeWindow(lua_State *L) -{ - // void window - void * window = (void *)wxlua_touserdata(L, 1); - // call CreateFromNativeWindow - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::CreateFromNativeWindow(window); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFromUnknownDC[] = { &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateFromUnknownDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFromUnknownDC[1] = {{ wxLua_wxGraphicsContext_CreateFromUnknownDC, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFromUnknownDC }}; -// %wxchkver_3_1_1 static %gc wxGraphicsContext* CreateFromUnknownDC(const wxDC& dc); -static int LUACALL wxLua_wxGraphicsContext_CreateFromUnknownDC(lua_State *L) -{ - // const wxDC dc - const wxDC * dc = (const wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call CreateFromUnknownDC - wxGraphicsContext* returns = (wxGraphicsContext*)wxGraphicsContext::CreateFromUnknownDC(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateLinearGradientBrush1[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateLinearGradientBrush1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush1[1] = {{ wxLua_wxGraphicsContext_CreateLinearGradientBrush1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateLinearGradientBrush1 }}; -// const wxGraphicsGradientStops& stops) const; -static int LUACALL wxLua_wxGraphicsContext_CreateLinearGradientBrush1(lua_State *L) -{ - // const wxGraphicsGradientStops stops - const wxGraphicsGradientStops * stops = (const wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 6, wxluatype_wxGraphicsGradientStops); - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateLinearGradientBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateLinearGradientBrush(x1, y1, x2, y2, *stops)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateLinearGradientBrush[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateLinearGradientBrush(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush[1] = {{ wxLua_wxGraphicsContext_CreateLinearGradientBrush, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateLinearGradientBrush }}; -// const wxColour& c1, const wxColour& c2) const; -static int LUACALL wxLua_wxGraphicsContext_CreateLinearGradientBrush(lua_State *L) -{ - // const wxColour c2 - const wxColour * c2 = (const wxColour *)wxluaT_getuserdatatype(L, 7, wxluatype_wxColour); - // const wxColour c1 - const wxColour * c1 = (const wxColour *)wxluaT_getuserdatatype(L, 6, wxluatype_wxColour); - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateLinearGradientBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateLinearGradientBrush(x1, y1, x2, y2, *c1, *c2)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateMatrix[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateMatrix[1] = {{ wxLua_wxGraphicsContext_CreateMatrix, WXLUAMETHOD_METHOD, 1, 7, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateMatrix }}; -// wxDouble tx=0.0, wxDouble ty=0.0) const; -static int LUACALL wxLua_wxGraphicsContext_CreateMatrix(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble ty = 0.0 - wxDouble ty = (argCount >= 7 ? (wxDouble)wxlua_getnumbertype(L, 7) : 0.0); - // wxDouble tx = 0.0 - wxDouble tx = (argCount >= 6 ? (wxDouble)wxlua_getnumbertype(L, 6) : 0.0); - // wxDouble d = 1.0 - wxDouble d = (argCount >= 5 ? (wxDouble)wxlua_getnumbertype(L, 5) : 1.0); - // wxDouble c = 0.0 - wxDouble c = (argCount >= 4 ? (wxDouble)wxlua_getnumbertype(L, 4) : 0.0); - // wxDouble b = 0.0 - wxDouble b = (argCount >= 3 ? (wxDouble)wxlua_getnumbertype(L, 3) : 0.0); - // wxDouble a = 1.0 - wxDouble a = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 1.0); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateMatrix - // allocate a new object using the copy constructor - wxGraphicsMatrix* returns = new wxGraphicsMatrix(self->CreateMatrix(a, b, c, d, tx, ty)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsMatrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsMatrix); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePath[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreatePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreatePath[1] = {{ wxLua_wxGraphicsContext_CreatePath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePath }}; -// wxGraphicsPath CreatePath() const; -static int LUACALL wxLua_wxGraphicsContext_CreatePath(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreatePath - // allocate a new object using the copy constructor - wxGraphicsPath* returns = new wxGraphicsPath(self->CreatePath()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPath); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPath); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePen1[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreatePen1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreatePen1[1] = {{ wxLua_wxGraphicsContext_CreatePen1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePen1 }}; -// %wxchkver_3_1_1 wxGraphicsPen CreatePen(const wxGraphicsPenInfo& info) const; -static int LUACALL wxLua_wxGraphicsContext_CreatePen1(lua_State *L) -{ - // const wxGraphicsPenInfo info - const wxGraphicsPenInfo * info = (const wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPenInfo); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreatePen - // allocate a new object using the copy constructor - wxGraphicsPen* returns = new wxGraphicsPen(self->CreatePen(*info)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPen); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPen); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePen[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreatePen(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreatePen[1] = {{ wxLua_wxGraphicsContext_CreatePen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePen }}; -// wxGraphicsPen CreatePen(const wxPen& pen) const; -static int LUACALL wxLua_wxGraphicsContext_CreatePen(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreatePen - // allocate a new object using the copy constructor - wxGraphicsPen* returns = new wxGraphicsPen(self->CreatePen(*pen)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPen); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPen); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateRadialGradientBrush1[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateRadialGradientBrush1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush1[1] = {{ wxLua_wxGraphicsContext_CreateRadialGradientBrush1, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateRadialGradientBrush1 }}; -// const wxGraphicsGradientStops& stops) const; -static int LUACALL wxLua_wxGraphicsContext_CreateRadialGradientBrush1(lua_State *L) -{ - // const wxGraphicsGradientStops stops - const wxGraphicsGradientStops * stops = (const wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 7, wxluatype_wxGraphicsGradientStops); - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble yc - wxDouble yc = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble xc - wxDouble xc = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble yo - wxDouble yo = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble xo - wxDouble xo = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateRadialGradientBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateRadialGradientBrush(xo, yo, xc, yc, radius, *stops)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateRadialGradientBrush[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateRadialGradientBrush(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush[1] = {{ wxLua_wxGraphicsContext_CreateRadialGradientBrush, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateRadialGradientBrush }}; -// const wxColour& oColor, const wxColour& cColor) const; -static int LUACALL wxLua_wxGraphicsContext_CreateRadialGradientBrush(lua_State *L) -{ - // const wxColour cColor - const wxColour * cColor = (const wxColour *)wxluaT_getuserdatatype(L, 8, wxluatype_wxColour); - // const wxColour oColor - const wxColour * oColor = (const wxColour *)wxluaT_getuserdatatype(L, 7, wxluatype_wxColour); - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble yc - wxDouble yc = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble xc - wxDouble xc = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble yo - wxDouble yo = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble xo - wxDouble xo = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateRadialGradientBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateRadialGradientBrush(xo, yo, xc, yc, radius, *oColor, *cColor)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_CreateSubBitmap[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_CreateSubBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateSubBitmap[1] = {{ wxLua_wxGraphicsContext_CreateSubBitmap, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateSubBitmap }}; -// virtual wxGraphicsBitmap CreateSubBitmap( const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h ) const; -static int LUACALL wxLua_wxGraphicsContext_CreateSubBitmap(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxGraphicsBitmap bitmap - const wxGraphicsBitmap * bitmap = (const wxGraphicsBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsBitmap); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call CreateSubBitmap - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateSubBitmap(*bitmap, x, y, w, h)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DisableOffset[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DisableOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DisableOffset[1] = {{ wxLua_wxGraphicsContext_DisableOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_DisableOffset }}; -// void DisableOffset(); -static int LUACALL wxLua_wxGraphicsContext_DisableOffset(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DisableOffset - self->DisableOffset(); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawBitmap1[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawBitmap1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap1[1] = {{ wxLua_wxGraphicsContext_DrawBitmap1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawBitmap1 }}; -// virtual void DrawBitmap( const wxBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h );// = 0; -static int LUACALL wxLua_wxGraphicsContext_DrawBitmap1(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawBitmap - self->DrawBitmap(*bmp, x, y, w, h); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawBitmap[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawBitmap(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap[1] = {{ wxLua_wxGraphicsContext_DrawBitmap, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawBitmap }}; -// virtual void DrawBitmap( const wxGraphicsBitmap &bmp, wxDouble x, wxDouble y, wxDouble w, wxDouble h );// = 0; -static int LUACALL wxLua_wxGraphicsContext_DrawBitmap(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxGraphicsBitmap bmp - const wxGraphicsBitmap * bmp = (const wxGraphicsBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsBitmap); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawBitmap - self->DrawBitmap(*bmp, x, y, w, h); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawEllipse[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawEllipse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawEllipse[1] = {{ wxLua_wxGraphicsContext_DrawEllipse, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawEllipse }}; -// virtual void DrawEllipse( wxDouble x, wxDouble y, wxDouble w, wxDouble h); -static int LUACALL wxLua_wxGraphicsContext_DrawEllipse(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawEllipse - self->DrawEllipse(x, y, w, h); - - return 0; -} - - -#if (wxLUA_USE_wxIcon) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawIcon[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxIcon, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawIcon[1] = {{ wxLua_wxGraphicsContext_DrawIcon, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawIcon }}; -// virtual void DrawIcon( const wxIcon &icon, wxDouble x, wxDouble y, wxDouble w, wxDouble h );// = 0; -static int LUACALL wxLua_wxGraphicsContext_DrawIcon(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxIcon icon - const wxIcon * icon = (const wxIcon *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIcon); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawIcon - self->DrawIcon(*icon, x, y, w, h); - - return 0; -} - -#endif // (wxLUA_USE_wxIcon) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawLines[] = { &wxluatype_wxGraphicsContext, &wxluatype_TTABLE, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawLines[1] = {{ wxLua_wxGraphicsContext_DrawLines, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawLines }}; -// virtual void DrawLines(wxPoint2DDoubleArray_FromLuaTable points, wxPolygonFillMode fillStyle = wxODDEVEN_RULE ); -static int LUACALL wxLua_wxGraphicsContext_DrawLines(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPolygonFillMode fillStyle = wxODDEVEN_RULE - wxPolygonFillMode fillStyle = (argCount >= 3 ? (wxPolygonFillMode)wxlua_getenumtype(L, 3) : wxODDEVEN_RULE); - // wxPoint2DDoubleArray_FromLuaTable points - wxLuaSharedPtr > points = wxlua_getwxPoint2DDoubleArray(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawLines - self->DrawLines((size_t)(points ? points->size() : 0), (points && (!points->empty())) ? &points->at(0) : NULL, fillStyle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawPath[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsPath, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawPath[1] = {{ wxLua_wxGraphicsContext_DrawPath, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawPath }}; -// virtual void DrawPath( const wxGraphicsPath& path, wxPolygonFillMode fillStyle = wxODDEVEN_RULE ); -static int LUACALL wxLua_wxGraphicsContext_DrawPath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPolygonFillMode fillStyle = wxODDEVEN_RULE - wxPolygonFillMode fillStyle = (argCount >= 3 ? (wxPolygonFillMode)wxlua_getenumtype(L, 3) : wxODDEVEN_RULE); - // const wxGraphicsPath path - const wxGraphicsPath * path = (const wxGraphicsPath *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPath); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawPath - self->DrawPath(*path, fillStyle); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawRectangle[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawRectangle[1] = {{ wxLua_wxGraphicsContext_DrawRectangle, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawRectangle }}; -// virtual void DrawRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h); -static int LUACALL wxLua_wxGraphicsContext_DrawRectangle(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawRectangle - self->DrawRectangle(x, y, w, h); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawRoundedRectangle[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawRoundedRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawRoundedRectangle[1] = {{ wxLua_wxGraphicsContext_DrawRoundedRectangle, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawRoundedRectangle }}; -// virtual void DrawRoundedRectangle( wxDouble x, wxDouble y, wxDouble w, wxDouble h, wxDouble radius); -static int LUACALL wxLua_wxGraphicsContext_DrawRoundedRectangle(lua_State *L) -{ - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawRoundedRectangle - self->DrawRoundedRectangle(x, y, w, h, radius); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText3[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsBrush, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawText3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawText3[1] = {{ wxLua_wxGraphicsContext_DrawText3, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText3 }}; -// wxDouble angle, const wxGraphicsBrush& backgroundBrush ); -static int LUACALL wxLua_wxGraphicsContext_DrawText3(lua_State *L) -{ - // const wxGraphicsBrush backgroundBrush - const wxGraphicsBrush * backgroundBrush = (const wxGraphicsBrush *)wxluaT_getuserdatatype(L, 6, wxluatype_wxGraphicsBrush); - // wxDouble angle - wxDouble angle = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawText - self->DrawText(str, x, y, angle, *backgroundBrush); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText2[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsBrush, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawText2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawText2[1] = {{ wxLua_wxGraphicsContext_DrawText2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText2 }}; -// const wxGraphicsBrush& backgroundBrush ); -static int LUACALL wxLua_wxGraphicsContext_DrawText2(lua_State *L) -{ - // const wxGraphicsBrush backgroundBrush - const wxGraphicsBrush * backgroundBrush = (const wxGraphicsBrush *)wxluaT_getuserdatatype(L, 5, wxluatype_wxGraphicsBrush); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawText - self->DrawText(str, x, y, *backgroundBrush); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText1[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawText1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawText1[1] = {{ wxLua_wxGraphicsContext_DrawText1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText1 }}; -// void DrawText( const wxString &str, wxDouble x, wxDouble y, wxDouble angle ); -static int LUACALL wxLua_wxGraphicsContext_DrawText1(lua_State *L) -{ - // wxDouble angle - wxDouble angle = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawText - self->DrawText(str, x, y, angle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_DrawText(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawText[1] = {{ wxLua_wxGraphicsContext_DrawText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText }}; -// void DrawText( const wxString &str, wxDouble x, wxDouble y ); -static int LUACALL wxLua_wxGraphicsContext_DrawText(lua_State *L) -{ - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call DrawText - self->DrawText(str, x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_EnableOffset[] = { &wxluatype_wxGraphicsContext, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGraphicsContext_EnableOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_EnableOffset[1] = {{ wxLua_wxGraphicsContext_EnableOffset, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_EnableOffset }}; -// virtual void EnableOffset(bool enable = true); -static int LUACALL wxLua_wxGraphicsContext_EnableOffset(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call EnableOffset - self->EnableOffset(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_EndDoc[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_EndDoc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_EndDoc[1] = {{ wxLua_wxGraphicsContext_EndDoc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_EndDoc }}; -// virtual void EndDoc(); -static int LUACALL wxLua_wxGraphicsContext_EndDoc(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call EndDoc - self->EndDoc(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_EndLayer[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_EndLayer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_EndLayer[1] = {{ wxLua_wxGraphicsContext_EndLayer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_EndLayer }}; -// virtual void EndLayer();// = 0; -static int LUACALL wxLua_wxGraphicsContext_EndLayer(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call EndLayer - self->EndLayer(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_EndPage[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_EndPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_EndPage[1] = {{ wxLua_wxGraphicsContext_EndPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_EndPage }}; -// virtual void EndPage(); -static int LUACALL wxLua_wxGraphicsContext_EndPage(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call EndPage - self->EndPage(); - - return 0; -} - - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_FillPath[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsPath, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_FillPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_FillPath[1] = {{ wxLua_wxGraphicsContext_FillPath, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_FillPath }}; -// virtual void FillPath( const wxGraphicsPath& path, wxPolygonFillMode fillStyle = wxODDEVEN_RULE );// = 0; -static int LUACALL wxLua_wxGraphicsContext_FillPath(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPolygonFillMode fillStyle = wxODDEVEN_RULE - wxPolygonFillMode fillStyle = (argCount >= 3 ? (wxPolygonFillMode)wxlua_getenumtype(L, 3) : wxODDEVEN_RULE); - // const wxGraphicsPath path - const wxGraphicsPath * path = (const wxGraphicsPath *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPath); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call FillPath - self->FillPath(*path, fillStyle); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Flush[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Flush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Flush[1] = {{ wxLua_wxGraphicsContext_Flush, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Flush }}; -// virtual void Flush(); -static int LUACALL wxLua_wxGraphicsContext_Flush(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call Flush - self->Flush(); - - return 0; -} - - -#if (0) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetAlpha[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetAlpha[1] = {{ wxLua_wxGraphicsContext_GetAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_GetAlpha }}; -// virtual wxDouble GetAlpha() const; -static int LUACALL wxLua_wxGraphicsContext_GetAlpha(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetAlpha - wxDouble returns = (self->GetAlpha()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // (0) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetAntialiasMode[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetAntialiasMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetAntialiasMode[1] = {{ wxLua_wxGraphicsContext_GetAntialiasMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_GetAntialiasMode }}; -// virtual wxAntialiasMode GetAntialiasMode() const; -static int LUACALL wxLua_wxGraphicsContext_GetAntialiasMode(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetAntialiasMode - wxAntialiasMode returns = (self->GetAntialiasMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetClipBox[] = { &wxluatype_wxGraphicsContext, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetClipBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetClipBox[1] = {{ wxLua_wxGraphicsContext_GetClipBox, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_GetClipBox }}; -// %wxchkver_3_1_1 virtual void GetClipBox(wxDouble* x, wxDouble* y, wxDouble* w, wxDouble* h);// = 0; -static int LUACALL wxLua_wxGraphicsContext_GetClipBox(lua_State *L) -{ - // wxDouble h - wxDouble * h = (wxDouble *)wxlua_touserdata(L, 5); - // wxDouble w - wxDouble * w = (wxDouble *)wxlua_touserdata(L, 4); - // wxDouble y - wxDouble * y = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble x - wxDouble * x = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetClipBox - self->GetClipBox(x, y, w, h); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetCompositionMode[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetCompositionMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetCompositionMode[1] = {{ wxLua_wxGraphicsContext_GetCompositionMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_GetCompositionMode }}; -// virtual wxCompositionMode GetCompositionMode() const; -static int LUACALL wxLua_wxGraphicsContext_GetCompositionMode(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetCompositionMode - wxCompositionMode returns = (self->GetCompositionMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetDPI[] = { &wxluatype_wxGraphicsContext, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetDPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetDPI[1] = {{ wxLua_wxGraphicsContext_GetDPI, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_GetDPI }}; -// virtual void GetDPI( wxDouble* dpiX, wxDouble* dpiY); -static int LUACALL wxLua_wxGraphicsContext_GetDPI(lua_State *L) -{ - // wxDouble dpiY - wxDouble * dpiY = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble dpiX - wxDouble * dpiX = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetDPI - self->GetDPI(dpiX, dpiY); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetInterpolationQuality[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetInterpolationQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetInterpolationQuality[1] = {{ wxLua_wxGraphicsContext_GetInterpolationQuality, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_GetInterpolationQuality }}; -// virtual wxInterpolationQuality GetInterpolationQuality() const; -static int LUACALL wxLua_wxGraphicsContext_GetInterpolationQuality(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetInterpolationQuality - wxInterpolationQuality returns = (self->GetInterpolationQuality()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetNativeContext[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetNativeContext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetNativeContext[1] = {{ wxLua_wxGraphicsContext_GetNativeContext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_GetNativeContext }}; -// virtual void * GetNativeContext();// = 0; -static int LUACALL wxLua_wxGraphicsContext_GetNativeContext(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetNativeContext - void* returns = (void*)self->GetNativeContext(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayDouble) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetPartialTextExtents[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, &wxluatype_wxArrayDouble, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetPartialTextExtents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetPartialTextExtents[1] = {{ wxLua_wxGraphicsContext_GetPartialTextExtents, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_GetPartialTextExtents }}; -// virtual void GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const;// = 0; -static int LUACALL wxLua_wxGraphicsContext_GetPartialTextExtents(lua_State *L) -{ - // wxArrayDouble widths - wxArrayDouble * widths = (wxArrayDouble *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayDouble); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetPartialTextExtents - self->GetPartialTextExtents(text, *widths); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayDouble) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetSize[] = { &wxluatype_wxGraphicsContext, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetSize[1] = {{ wxLua_wxGraphicsContext_GetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_GetSize }}; -// void GetSize(wxDouble* width, wxDouble* height) const; -static int LUACALL wxLua_wxGraphicsContext_GetSize(lua_State *L) -{ - // wxDouble height - wxDouble * height = (wxDouble *)wxlua_touserdata(L, 3); - // wxDouble width - wxDouble * width = (wxDouble *)wxlua_touserdata(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetSize - self->GetSize(width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetTextExtent[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetTextExtent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetTextExtent[1] = {{ wxLua_wxGraphicsContext_GetTextExtent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_GetTextExtent }}; -// %override wxLua_wxGraphicsContext_GetTextExtent -// void GetTextExtent(const wxString& string, wxCoord *w, wxCoord *h, wxCoord *descent = NULL, wxCoord *externalLeading = NULL, wxFont *font = NULL) -static int LUACALL wxLua_wxGraphicsContext_GetTextExtent(lua_State *L) -{ - wxDouble externalLeading; - wxDouble descent; - wxDouble h; - wxDouble w; - - wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext *self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetTextExtent - self->GetTextExtent(string, &w, &h, &descent, &externalLeading); - lua_pushnumber(L, w); - lua_pushnumber(L, h); - lua_pushnumber(L, descent); - lua_pushnumber(L, externalLeading); - // return the number of parameters - return 4; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_GetTransform[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_GetTransform(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_GetTransform[1] = {{ wxLua_wxGraphicsContext_GetTransform, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_GetTransform }}; -// virtual wxGraphicsMatrix GetTransform() const;// = 0; -static int LUACALL wxLua_wxGraphicsContext_GetTransform(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call GetTransform - // allocate a new object using the copy constructor - wxGraphicsMatrix* returns = new wxGraphicsMatrix(self->GetTransform()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsMatrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsMatrix); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_OffsetEnabled[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_OffsetEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_OffsetEnabled[1] = {{ wxLua_wxGraphicsContext_OffsetEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_OffsetEnabled }}; -// bool OffsetEnabled(); -static int LUACALL wxLua_wxGraphicsContext_OffsetEnabled(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call OffsetEnabled - bool returns = (self->OffsetEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_PopState[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_PopState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_PopState[1] = {{ wxLua_wxGraphicsContext_PopState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_PopState }}; -// virtual void PopState();// = 0; -static int LUACALL wxLua_wxGraphicsContext_PopState(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call PopState - self->PopState(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_PushState[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_PushState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_PushState[1] = {{ wxLua_wxGraphicsContext_PushState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_PushState }}; -// virtual void PushState();// = 0; -static int LUACALL wxLua_wxGraphicsContext_PushState(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call PushState - self->PushState(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_ResetClip[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_ResetClip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_ResetClip[1] = {{ wxLua_wxGraphicsContext_ResetClip, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_ResetClip }}; -// virtual void ResetClip();// = 0; -static int LUACALL wxLua_wxGraphicsContext_ResetClip(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call ResetClip - self->ResetClip(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Rotate[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Rotate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Rotate[1] = {{ wxLua_wxGraphicsContext_Rotate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_Rotate }}; -// virtual void Rotate( wxDouble angle );// = 0; -static int LUACALL wxLua_wxGraphicsContext_Rotate(lua_State *L) -{ - // wxDouble angle - wxDouble angle = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call Rotate - self->Rotate(angle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Scale[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Scale[1] = {{ wxLua_wxGraphicsContext_Scale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_Scale }}; -// virtual void Scale( wxDouble xScale , wxDouble yScale );// = 0; -static int LUACALL wxLua_wxGraphicsContext_Scale(lua_State *L) -{ - // wxDouble yScale - wxDouble yScale = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble xScale - wxDouble xScale = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call Scale - self->Scale(xScale, yScale); - - return 0; -} - - -#if (0) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetAlpha[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetAlpha[1] = {{ wxLua_wxGraphicsContext_SetAlpha, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetAlpha }}; -// virtual void SetAlpha( wxDouble alpha ); -static int LUACALL wxLua_wxGraphicsContext_SetAlpha(lua_State *L) -{ - // wxDouble alpha - wxDouble alpha = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetAlpha - self->SetAlpha(alpha); - - return 0; -} - -#endif // (0) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetAntialiasMode[] = { &wxluatype_wxGraphicsContext, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetAntialiasMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetAntialiasMode[1] = {{ wxLua_wxGraphicsContext_SetAntialiasMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetAntialiasMode }}; -// virtual bool SetAntialiasMode(wxAntialiasMode antialias);// = 0; -static int LUACALL wxLua_wxGraphicsContext_SetAntialiasMode(lua_State *L) -{ - // wxAntialiasMode antialias - wxAntialiasMode antialias = (wxAntialiasMode)wxlua_getenumtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetAntialiasMode - bool returns = (self->SetAntialiasMode(antialias)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetBrush1[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetBrush1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetBrush1[1] = {{ wxLua_wxGraphicsContext_SetBrush1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetBrush1 }}; -// void SetBrush( const wxBrush& brush ); -static int LUACALL wxLua_wxGraphicsContext_SetBrush1(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetBrush - self->SetBrush(*brush); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetBrush[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsBrush, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetBrush(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetBrush[1] = {{ wxLua_wxGraphicsContext_SetBrush, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetBrush }}; -// virtual void SetBrush( const wxGraphicsBrush& brush ); -static int LUACALL wxLua_wxGraphicsContext_SetBrush(lua_State *L) -{ - // const wxGraphicsBrush brush - const wxGraphicsBrush * brush = (const wxGraphicsBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsBrush); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetBrush - self->SetBrush(*brush); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetCompositionMode[] = { &wxluatype_wxGraphicsContext, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetCompositionMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetCompositionMode[1] = {{ wxLua_wxGraphicsContext_SetCompositionMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetCompositionMode }}; -// virtual bool SetCompositionMode(wxCompositionMode op);// = 0; -static int LUACALL wxLua_wxGraphicsContext_SetCompositionMode(lua_State *L) -{ - // wxCompositionMode op - wxCompositionMode op = (wxCompositionMode)wxlua_getenumtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetCompositionMode - bool returns = (self->SetCompositionMode(op)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetFont1[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxFont, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetFont1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetFont1[1] = {{ wxLua_wxGraphicsContext_SetFont1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_SetFont1 }}; -// void SetFont( const wxFont& font, const wxColour& colour ); -static int LUACALL wxLua_wxGraphicsContext_SetFont1(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetFont - self->SetFont(*font, *colour); - - return 0; -} - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetFont[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsFont, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetFont(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetFont[1] = {{ wxLua_wxGraphicsContext_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetFont }}; -// virtual void SetFont( const wxGraphicsFont& font ); -static int LUACALL wxLua_wxGraphicsContext_SetFont(lua_State *L) -{ - // const wxGraphicsFont font - const wxGraphicsFont * font = (const wxGraphicsFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsFont); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetFont - self->SetFont(*font); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetInterpolationQuality[] = { &wxluatype_wxGraphicsContext, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetInterpolationQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetInterpolationQuality[1] = {{ wxLua_wxGraphicsContext_SetInterpolationQuality, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetInterpolationQuality }}; -// virtual bool SetInterpolationQuality(wxInterpolationQuality interpolation);// = 0; -static int LUACALL wxLua_wxGraphicsContext_SetInterpolationQuality(lua_State *L) -{ - // wxInterpolationQuality interpolation - wxInterpolationQuality interpolation = (wxInterpolationQuality)wxlua_getenumtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetInterpolationQuality - bool returns = (self->SetInterpolationQuality(interpolation)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetPen1[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxPen, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetPen1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetPen1[1] = {{ wxLua_wxGraphicsContext_SetPen1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetPen1 }}; -// void SetPen( const wxPen& pen ); -static int LUACALL wxLua_wxGraphicsContext_SetPen1(lua_State *L) -{ - // const wxPen pen - const wxPen * pen = (const wxPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPen); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetPen - self->SetPen(*pen); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetPen[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsPen, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetPen(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetPen[1] = {{ wxLua_wxGraphicsContext_SetPen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetPen }}; -// virtual void SetPen( const wxGraphicsPen& pen ); -static int LUACALL wxLua_wxGraphicsContext_SetPen(lua_State *L) -{ - // const wxGraphicsPen pen - const wxGraphicsPen * pen = (const wxGraphicsPen *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPen); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetPen - self->SetPen(*pen); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_SetTransform[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsMatrix, NULL }; -static int LUACALL wxLua_wxGraphicsContext_SetTransform(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetTransform[1] = {{ wxLua_wxGraphicsContext_SetTransform, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetTransform }}; -// virtual void SetTransform( const wxGraphicsMatrix& matrix );// = 0; -static int LUACALL wxLua_wxGraphicsContext_SetTransform(lua_State *L) -{ - // const wxGraphicsMatrix matrix - const wxGraphicsMatrix * matrix = (const wxGraphicsMatrix *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsMatrix); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call SetTransform - self->SetTransform(*matrix); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_ShouldOffset[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGraphicsContext_ShouldOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_ShouldOffset[1] = {{ wxLua_wxGraphicsContext_ShouldOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_ShouldOffset }}; -// virtual bool ShouldOffset() const; -static int LUACALL wxLua_wxGraphicsContext_ShouldOffset(lua_State *L) -{ - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call ShouldOffset - bool returns = (self->ShouldOffset()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_StartDoc[] = { &wxluatype_wxGraphicsContext, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGraphicsContext_StartDoc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StartDoc[1] = {{ wxLua_wxGraphicsContext_StartDoc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_StartDoc }}; -// virtual bool StartDoc( const wxString& message ); -static int LUACALL wxLua_wxGraphicsContext_StartDoc(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call StartDoc - bool returns = (self->StartDoc(message)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_StartPage[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_StartPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StartPage[1] = {{ wxLua_wxGraphicsContext_StartPage, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_StartPage }}; -// virtual void StartPage( wxDouble width = 0, wxDouble height = 0 ); -static int LUACALL wxLua_wxGraphicsContext_StartPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble height = 0 - wxDouble height = (argCount >= 3 ? (wxDouble)wxlua_getnumbertype(L, 3) : 0); - // wxDouble width = 0 - wxDouble width = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 0); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call StartPage - self->StartPage(width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLine[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_StrokeLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StrokeLine[1] = {{ wxLua_wxGraphicsContext_StrokeLine, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLine }}; -// virtual void StrokeLine( wxDouble x1, wxDouble y1, wxDouble x2, wxDouble y2); -static int LUACALL wxLua_wxGraphicsContext_StrokeLine(lua_State *L) -{ - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call StrokeLine - self->StrokeLine(x1, y1, x2, y2); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLines1[] = { &wxluatype_wxGraphicsContext, &wxluatype_TTABLE, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxGraphicsContext_StrokeLines1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines1[1] = {{ wxLua_wxGraphicsContext_StrokeLines1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLines1 }}; -// %override wxLua_wxGraphicsContext_StrokeLines1 -// virtual void StrokeLines( wxPoint2DDoubleArray_FromLuaTable beginPoints, wxPoint2DDoubleArray_FromLuaTable endPoints ); -static int LUACALL wxLua_wxGraphicsContext_StrokeLines1(lua_State *L) -{ - // wxPoint2DDoubleArray_FromLuaTable endPoints - wxLuaSharedPtr > endPoints = wxlua_getwxPoint2DDoubleArray(L, 3); - // wxPoint2DDoubleArray_FromLuaTable beginPoints - wxLuaSharedPtr > beginPoints = wxlua_getwxPoint2DDoubleArray(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call StrokeLines - self->StrokeLines((size_t)(beginPoints ? beginPoints->size() : 0), (beginPoints && (!beginPoints->empty())) ? &beginPoints->at(0) : NULL, (endPoints && (!endPoints->empty())) ? &endPoints->at(0) : NULL); - - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLines[] = { &wxluatype_wxGraphicsContext, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxGraphicsContext_StrokeLines(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines[1] = {{ wxLua_wxGraphicsContext_StrokeLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLines }}; -// virtual void StrokeLines( wxPoint2DDoubleArray_FromLuaTable points ); -static int LUACALL wxLua_wxGraphicsContext_StrokeLines(lua_State *L) -{ - // wxPoint2DDoubleArray_FromLuaTable points - wxLuaSharedPtr > points = wxlua_getwxPoint2DDoubleArray(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call StrokeLines - self->StrokeLines((size_t)(points ? points->size() : 0), (points && (!points->empty())) ? &points->at(0) : NULL); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_StrokePath[] = { &wxluatype_wxGraphicsContext, &wxluatype_wxGraphicsPath, NULL }; -static int LUACALL wxLua_wxGraphicsContext_StrokePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StrokePath[1] = {{ wxLua_wxGraphicsContext_StrokePath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_StrokePath }}; -// virtual void StrokePath( const wxGraphicsPath& path );// = 0; -static int LUACALL wxLua_wxGraphicsContext_StrokePath(lua_State *L) -{ - // const wxGraphicsPath path - const wxGraphicsPath * path = (const wxGraphicsPath *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPath); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call StrokePath - self->StrokePath(*path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_Translate[] = { &wxluatype_wxGraphicsContext, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsContext_Translate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Translate[1] = {{ wxLua_wxGraphicsContext_Translate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_Translate }}; -// virtual void Translate( wxDouble dx , wxDouble dy );// = 0; -static int LUACALL wxLua_wxGraphicsContext_Translate(lua_State *L) -{ - // wxDouble dy - wxDouble dy = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble dx - wxDouble dx = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsContext * self = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call Translate - self->Translate(dx, dy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsContext_delete[] = { &wxluatype_wxGraphicsContext, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_delete }}; - - - - -#if (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Clip_overload[] = -{ - { wxLua_wxGraphicsContext_Clip1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_Clip1 }, - -#if (wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_Clip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_Clip }, -#endif // (wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_Clip_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_Clip_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (wxUSE_GRAPHICS_CONTEXT)||((((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_Create_overload[] = -{ - { wxLua_wxGraphicsContext_Create5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }, - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_Create4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create4 }, -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_Create3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create3 }, - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_Create2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create2 }, -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_Create1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create1 }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_Create, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsContext_Create }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_Create_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT)||((((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (wxUSE_GRAPHICS_CONTEXT)||(((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateFont_overload[] = -{ - { wxLua_wxGraphicsContext_CreateFont2, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont2 }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_CreateFont1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont1 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_CreateFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateFont }, -#endif // (wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_CreateFont_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_CreateFont_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT)||(((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush_overload[] = -{ - { wxLua_wxGraphicsContext_CreateLinearGradientBrush1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateLinearGradientBrush1 }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_CreateLinearGradientBrush, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateLinearGradientBrush }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreatePen_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_CreatePen1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePen1 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_CreatePen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_CreatePen }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_CreatePen_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_CreatePen_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush_overload[] = -{ - { wxLua_wxGraphicsContext_CreateRadialGradientBrush1, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateRadialGradientBrush1 }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_CreateRadialGradientBrush, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxGraphicsContext_CreateRadialGradientBrush }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - -#if ((wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_DrawBitmap1, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawBitmap1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_DrawBitmap, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawBitmap }, -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -#if (wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_DrawText_overload[] = -{ - { wxLua_wxGraphicsContext_DrawText3, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText3 }, - { wxLua_wxGraphicsContext_DrawText2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText2 }, - { wxLua_wxGraphicsContext_DrawText1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText1 }, - { wxLua_wxGraphicsContext_DrawText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxGraphicsContext_DrawText }, -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_DrawText_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_DrawText_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetBrush_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_SetBrush1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetBrush1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_SetBrush, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetBrush }, -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_SetBrush_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_SetBrush_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -#if (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetFont_overload[] = -{ - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_SetFont1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_SetFont1 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetFont }, -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_SetFont_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_SetFont_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_SetPen_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_SetPen1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetPen1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsContext_SetPen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_SetPen }, -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_SetPen_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_SetPen_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - -#if (wxUSE_GRAPHICS_CONTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines_overload[] = -{ - { wxLua_wxGraphicsContext_StrokeLines1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLines1 }, - { wxLua_wxGraphicsContext_StrokeLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsContext_StrokeLines }, -}; -static int s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT) - -void wxLua_wxGraphicsContext_delete_function(void** p) -{ - wxGraphicsContext* o = (wxGraphicsContext*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsContext_methods[] = { - { "BeginLayer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_BeginLayer, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - { "ClearRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_ClearRectangle, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT)) - { "Clip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_Clip_overload, s_wxluafunc_wxLua_wxGraphicsContext_Clip_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxRegion) && (wxUSE_GRAPHICS_CONTEXT)) - - { "ConcatTransform", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_ConcatTransform, 1, NULL }, - -#if (wxUSE_GRAPHICS_CONTEXT)||((((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - { "Create", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGraphicsContext_Create_overload, s_wxluafunc_wxLua_wxGraphicsContext_Create_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT)||((((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT))||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateBitmapFromImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateBitmapFromImage, 1, NULL }, -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateBrush, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxUSE_GRAPHICS_CONTEXT)||(((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT)) - { "CreateFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateFont_overload, s_wxluafunc_wxLua_wxGraphicsContext_CreateFont_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT)||(((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxFont) && (wxUSE_GRAPHICS_CONTEXT)) - - { "CreateFromNative", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGraphicsContext_CreateFromNative, 1, NULL }, - { "CreateFromNativeWindow", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGraphicsContext_CreateFromNativeWindow, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateFromUnknownDC", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGraphicsContext_CreateFromUnknownDC, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxLUA_USE_wxDC)) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - { "CreateLinearGradientBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush_overload, s_wxluafunc_wxLua_wxGraphicsContext_CreateLinearGradientBrush_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - - { "CreateMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateMatrix, 1, NULL }, - { "CreatePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreatePath, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - { "CreatePen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreatePen_overload, s_wxluafunc_wxLua_wxGraphicsContext_CreatePen_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - { "CreateRadialGradientBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush_overload, s_wxluafunc_wxLua_wxGraphicsContext_CreateRadialGradientBrush_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT)||((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT)) - - { "CreateSubBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_CreateSubBitmap, 1, NULL }, - { "DisableOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DisableOffset, 1, NULL }, - -#if ((wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "DrawBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap_overload, s_wxluafunc_wxLua_wxGraphicsContext_DrawBitmap_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "DrawEllipse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawEllipse, 1, NULL }, - -#if (wxLUA_USE_wxIcon) && (wxUSE_GRAPHICS_CONTEXT) - { "DrawIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawIcon, 1, NULL }, -#endif // (wxLUA_USE_wxIcon) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { "DrawLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawLines, 1, NULL }, - { "DrawPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawPath, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - - { "DrawRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawRectangle, 1, NULL }, - { "DrawRoundedRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawRoundedRectangle, 1, NULL }, - -#if (wxUSE_GRAPHICS_CONTEXT) - { "DrawText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_DrawText_overload, s_wxluafunc_wxLua_wxGraphicsContext_DrawText_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT) - - { "EnableOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_EnableOffset, 1, NULL }, - { "EndDoc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_EndDoc, 1, NULL }, - { "EndLayer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_EndLayer, 1, NULL }, - { "EndPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_EndPage, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { "FillPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_FillPath, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - - { "Flush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_Flush, 1, NULL }, - -#if (0) && (wxUSE_GRAPHICS_CONTEXT) - { "GetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetAlpha, 1, NULL }, -#endif // (0) && (wxUSE_GRAPHICS_CONTEXT) - - { "GetAntialiasMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetAntialiasMode, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - { "GetClipBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetClipBox, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT) - - { "GetCompositionMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetCompositionMode, 1, NULL }, - { "GetDPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetDPI, 1, NULL }, - { "GetInterpolationQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetInterpolationQuality, 1, NULL }, - { "GetNativeContext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetNativeContext, 1, NULL }, - -#if (wxLUA_USE_wxArrayDouble) && (wxUSE_GRAPHICS_CONTEXT) - { "GetPartialTextExtents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetPartialTextExtents, 1, NULL }, -#endif // (wxLUA_USE_wxArrayDouble) && (wxUSE_GRAPHICS_CONTEXT) - - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetSize, 1, NULL }, - { "GetTextExtent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetTextExtent, 1, NULL }, - { "GetTransform", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_GetTransform, 1, NULL }, - { "OffsetEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_OffsetEnabled, 1, NULL }, - { "PopState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_PopState, 1, NULL }, - { "PushState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_PushState, 1, NULL }, - { "ResetClip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_ResetClip, 1, NULL }, - { "Rotate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_Rotate, 1, NULL }, - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_Scale, 1, NULL }, - -#if (0) && (wxUSE_GRAPHICS_CONTEXT) - { "SetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetAlpha, 1, NULL }, -#endif // (0) && (wxUSE_GRAPHICS_CONTEXT) - - { "SetAntialiasMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetAntialiasMode, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "SetBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetBrush_overload, s_wxluafunc_wxLua_wxGraphicsContext_SetBrush_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "SetCompositionMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetCompositionMode, 1, NULL }, - -#if (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetFont_overload, s_wxluafunc_wxLua_wxGraphicsContext_SetFont_overload_count, 0 }, -#endif // (((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxFont)) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "SetInterpolationQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetInterpolationQuality, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - { "SetPen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetPen_overload, s_wxluafunc_wxLua_wxGraphicsContext_SetPen_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT))||(wxUSE_GRAPHICS_CONTEXT) - - { "SetTransform", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_SetTransform, 1, NULL }, - { "ShouldOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_ShouldOffset, 1, NULL }, - { "StartDoc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_StartDoc, 1, NULL }, - { "StartPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_StartPage, 1, NULL }, - { "StrokeLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_StrokeLine, 1, NULL }, - -#if (wxUSE_GRAPHICS_CONTEXT) - { "StrokeLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines_overload, s_wxluafunc_wxLua_wxGraphicsContext_StrokeLines_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT) - - { "StrokePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_StrokePath, 1, NULL }, - { "Translate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsContext_Translate, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsContext_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsContext_methodCount = sizeof(wxGraphicsContext_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGraphicsRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGraphicsRenderer' -int wxluatype_wxGraphicsRenderer = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBitmap[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBitmap[1] = {{ wxLua_wxGraphicsRenderer_CreateBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBitmap }}; -// virtual wxGraphicsBitmap CreateBitmap( const wxBitmap &bitmap );// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateBitmap - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateBitmap(*bitmap)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBitmapFromImage[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBitmapFromImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBitmapFromImage[1] = {{ wxLua_wxGraphicsRenderer_CreateBitmapFromImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBitmapFromImage }}; -// virtual wxGraphicsBitmap CreateBitmapFromImage(const wxImage& image);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBitmapFromImage(lua_State *L) -{ - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateBitmapFromImage - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateBitmapFromImage(*image)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap[1] = {{ wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap }}; -// virtual wxGraphicsBitmap CreateBitmapFromNativeBitmap( void* bitmap );// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap(lua_State *L) -{ - // void bitmap - void * bitmap = (void *)wxlua_touserdata(L, 2); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateBitmapFromNativeBitmap - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateBitmapFromNativeBitmap(bitmap)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBrush[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxBrush, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBrush[1] = {{ wxLua_wxGraphicsRenderer_CreateBrush, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateBrush }}; -// virtual wxGraphicsBrush CreateBrush(const wxBrush& brush );// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateBrush(lua_State *L) -{ - // const wxBrush brush - const wxBrush * brush = (const wxBrush *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBrush); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateBrush(*brush)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext2[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxPrinterDC, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContext2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext2[1] = {{ wxLua_wxGraphicsRenderer_CreateContext2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext2 }}; -// virtual %gc wxGraphicsContext* CreateContext( const wxPrinterDC& dc);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContext2(lua_State *L) -{ - // const wxPrinterDC dc - const wxPrinterDC * dc = (const wxPrinterDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrinterDC); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateContext - wxGraphicsContext* returns = (wxGraphicsContext*)self->CreateContext(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext1[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxMemoryDC, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContext1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext1[1] = {{ wxLua_wxGraphicsRenderer_CreateContext1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext1 }}; -// virtual %gc wxGraphicsContext* CreateContext( const wxMemoryDC& dc);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContext1(lua_State *L) -{ - // const wxMemoryDC dc - const wxMemoryDC * dc = (const wxMemoryDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMemoryDC); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateContext - wxGraphicsContext* returns = (wxGraphicsContext*)self->CreateContext(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxWindowDC, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContext(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext[1] = {{ wxLua_wxGraphicsRenderer_CreateContext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext }}; -// virtual %gc wxGraphicsContext* CreateContext( const wxWindowDC& dc);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContext(lua_State *L) -{ - // const wxWindowDC dc - const wxWindowDC * dc = (const wxWindowDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindowDC); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateContext - wxGraphicsContext* returns = (wxGraphicsContext*)self->CreateContext(*dc); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContextFromImage[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContextFromImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContextFromImage[1] = {{ wxLua_wxGraphicsRenderer_CreateContextFromImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContextFromImage }}; -// virtual %gc wxGraphicsContext* CreateContextFromImage(wxImage& image);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateContextFromImage(lua_State *L) -{ - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateContextFromImage - wxGraphicsContext* returns = (wxGraphicsContext*)self->CreateContextFromImage(*image); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateImageFromBitmap[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxGraphicsBitmap, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateImageFromBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateImageFromBitmap[1] = {{ wxLua_wxGraphicsRenderer_CreateImageFromBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateImageFromBitmap }}; -// virtual wxImage CreateImageFromBitmap(const wxGraphicsBitmap& bmp);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateImageFromBitmap(lua_State *L) -{ - // const wxGraphicsBitmap bmp - const wxGraphicsBitmap * bmp = (const wxGraphicsBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsBitmap); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateImageFromBitmap - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->CreateImageFromBitmap(*bmp)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateLinearGradientBrush[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateLinearGradientBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateLinearGradientBrush[1] = {{ wxLua_wxGraphicsRenderer_CreateLinearGradientBrush, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateLinearGradientBrush }}; -// const wxGraphicsGradientStops& stops);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateLinearGradientBrush(lua_State *L) -{ - // const wxGraphicsGradientStops stops - const wxGraphicsGradientStops * stops = (const wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 6, wxluatype_wxGraphicsGradientStops); - // wxDouble y2 - wxDouble y2 = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble x2 - wxDouble x2 = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble y1 - wxDouble y1 = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble x1 - wxDouble x1 = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateLinearGradientBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateLinearGradientBrush(x1, y1, x2, y2, *stops)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateMatrix[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateMatrix(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateMatrix[1] = {{ wxLua_wxGraphicsRenderer_CreateMatrix, WXLUAMETHOD_METHOD, 1, 7, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateMatrix }}; -// wxDouble tx=0.0, wxDouble ty=0.0);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateMatrix(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDouble ty = 0.0 - wxDouble ty = (argCount >= 7 ? (wxDouble)wxlua_getnumbertype(L, 7) : 0.0); - // wxDouble tx = 0.0 - wxDouble tx = (argCount >= 6 ? (wxDouble)wxlua_getnumbertype(L, 6) : 0.0); - // wxDouble d = 1.0 - wxDouble d = (argCount >= 5 ? (wxDouble)wxlua_getnumbertype(L, 5) : 1.0); - // wxDouble c = 0.0 - wxDouble c = (argCount >= 4 ? (wxDouble)wxlua_getnumbertype(L, 4) : 0.0); - // wxDouble b = 0.0 - wxDouble b = (argCount >= 3 ? (wxDouble)wxlua_getnumbertype(L, 3) : 0.0); - // wxDouble a = 1.0 - wxDouble a = (argCount >= 2 ? (wxDouble)wxlua_getnumbertype(L, 2) : 1.0); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateMatrix - // allocate a new object using the copy constructor - wxGraphicsMatrix* returns = new wxGraphicsMatrix(self->CreateMatrix(a, b, c, d, tx, ty)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsMatrix); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsMatrix); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateMeasuringContext[] = { &wxluatype_wxGraphicsRenderer, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateMeasuringContext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateMeasuringContext[1] = {{ wxLua_wxGraphicsRenderer_CreateMeasuringContext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateMeasuringContext }}; -// virtual %gc wxGraphicsContext* CreateMeasuringContext();// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateMeasuringContext(lua_State *L) -{ - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateMeasuringContext - wxGraphicsContext* returns = (wxGraphicsContext*)self->CreateMeasuringContext(); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsContext); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsContext); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreatePath[] = { &wxluatype_wxGraphicsRenderer, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreatePath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreatePath[1] = {{ wxLua_wxGraphicsRenderer_CreatePath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreatePath }}; -// virtual wxGraphicsPath CreatePath();// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreatePath(lua_State *L) -{ - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreatePath - // allocate a new object using the copy constructor - wxGraphicsPath* returns = new wxGraphicsPath(self->CreatePath()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPath); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPath); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreatePen[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxGraphicsPenInfo, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreatePen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreatePen[1] = {{ wxLua_wxGraphicsRenderer_CreatePen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreatePen }}; -// %wxchkver_3_1_1 virtual wxGraphicsPen CreatePen(const wxGraphicsPenInfo& info);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreatePen(lua_State *L) -{ - // const wxGraphicsPenInfo info - const wxGraphicsPenInfo * info = (const wxGraphicsPenInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsPenInfo); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreatePen - // allocate a new object using the copy constructor - wxGraphicsPen* returns = new wxGraphicsPen(self->CreatePen(*info)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsPen); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsPen); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateRadialGradientBrush[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGraphicsGradientStops, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateRadialGradientBrush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateRadialGradientBrush[1] = {{ wxLua_wxGraphicsRenderer_CreateRadialGradientBrush, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateRadialGradientBrush }}; -// const wxGraphicsGradientStops& stops);// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateRadialGradientBrush(lua_State *L) -{ - // const wxGraphicsGradientStops stops - const wxGraphicsGradientStops * stops = (const wxGraphicsGradientStops *)wxluaT_getuserdatatype(L, 7, wxluatype_wxGraphicsGradientStops); - // wxDouble radius - wxDouble radius = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble yc - wxDouble yc = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble xc - wxDouble xc = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble yo - wxDouble yo = (wxDouble)wxlua_getnumbertype(L, 3); - // wxDouble xo - wxDouble xo = (wxDouble)wxlua_getnumbertype(L, 2); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateRadialGradientBrush - // allocate a new object using the copy constructor - wxGraphicsBrush* returns = new wxGraphicsBrush(self->CreateRadialGradientBrush(xo, yo, xc, yc, radius, *stops)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBrush); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBrush); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateSubBitmap[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_wxGraphicsBitmap, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_CreateSubBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateSubBitmap[1] = {{ wxLua_wxGraphicsRenderer_CreateSubBitmap, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateSubBitmap }}; -// virtual wxGraphicsBitmap CreateSubBitmap( const wxGraphicsBitmap &bitmap, wxDouble x, wxDouble y, wxDouble w, wxDouble h );// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_CreateSubBitmap(lua_State *L) -{ - // wxDouble h - wxDouble h = (wxDouble)wxlua_getnumbertype(L, 6); - // wxDouble w - wxDouble w = (wxDouble)wxlua_getnumbertype(L, 5); - // wxDouble y - wxDouble y = (wxDouble)wxlua_getnumbertype(L, 4); - // wxDouble x - wxDouble x = (wxDouble)wxlua_getnumbertype(L, 3); - // const wxGraphicsBitmap bitmap - const wxGraphicsBitmap * bitmap = (const wxGraphicsBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGraphicsBitmap); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call CreateSubBitmap - // allocate a new object using the copy constructor - wxGraphicsBitmap* returns = new wxGraphicsBitmap(self->CreateSubBitmap(*bitmap, x, y, w, h)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGraphicsBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsBitmap); - - return 1; -} - -static int LUACALL wxLua_wxGraphicsRenderer_GetCairoRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_GetCairoRenderer[1] = {{ wxLua_wxGraphicsRenderer_GetCairoRenderer, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxGraphicsRenderer* GetCairoRenderer(); -static int LUACALL wxLua_wxGraphicsRenderer_GetCairoRenderer(lua_State *L) -{ - // call GetCairoRenderer - wxGraphicsRenderer* returns = (wxGraphicsRenderer*)wxGraphicsRenderer::GetCairoRenderer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsRenderer); - - return 1; -} - -static int LUACALL wxLua_wxGraphicsRenderer_GetDefaultRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_GetDefaultRenderer[1] = {{ wxLua_wxGraphicsRenderer_GetDefaultRenderer, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxGraphicsRenderer* GetDefaultRenderer(); -static int LUACALL wxLua_wxGraphicsRenderer_GetDefaultRenderer(lua_State *L) -{ - // call GetDefaultRenderer - wxGraphicsRenderer* returns = (wxGraphicsRenderer*)wxGraphicsRenderer::GetDefaultRenderer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGraphicsRenderer); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0)) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_GetName[] = { &wxluatype_wxGraphicsRenderer, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_GetName[1] = {{ wxLua_wxGraphicsRenderer_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsRenderer_GetName }}; -// %wxchkver_3_1_0 virtual wxString GetName() const;// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_GetName(lua_State *L) -{ - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_GetVersion[] = { &wxluatype_wxGraphicsRenderer, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGraphicsRenderer_GetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_GetVersion[1] = {{ wxLua_wxGraphicsRenderer_GetVersion, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxGraphicsRenderer_GetVersion }}; -// %wxchkver_3_1_0 virtual void GetVersion(int* major, int* minor = NULL, int* micro = NULL) const;// = 0; -static int LUACALL wxLua_wxGraphicsRenderer_GetVersion(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int micro = NULL - int * micro = (argCount >= 4 ? (int *)wxlua_touserdata(L, 4) : NULL); - // int minor = NULL - int * minor = (argCount >= 3 ? (int *)wxlua_touserdata(L, 3) : NULL); - // int major - int * major = (int *)wxlua_touserdata(L, 2); - // get this - wxGraphicsRenderer * self = (wxGraphicsRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsRenderer); - // call GetVersion - self->GetVersion(major, minor, micro); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxUSE_GRAPHICS_CONTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGraphicsRenderer_delete[] = { &wxluatype_wxGraphicsRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGraphicsRenderer_delete }}; - - - - -#if ((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext_overload[] = -{ - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsRenderer_CreateContext2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext2 }, -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsRenderer_CreateContext1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext1 }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGraphicsRenderer_CreateContext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGraphicsRenderer_CreateContext }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext_overload_count = sizeof(s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -void wxLua_wxGraphicsRenderer_delete_function(void** p) -{ - wxGraphicsRenderer* o = (wxGraphicsRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGraphicsRenderer_methods[] = { -#if (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxUSE_GRAPHICS_CONTEXT) - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateBitmapFromImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBitmapFromImage, 1, NULL }, -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - - { "CreateBitmapFromNativeBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBitmapFromNativeBitmap, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateBrush, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxUSE_GRAPHICS_CONTEXT) - -#if ((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - { "CreateContext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext_overload, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContext_overload_count, 0 }, -#endif // ((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -#if (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - { "CreateContextFromImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateContextFromImage, 1, NULL }, - { "CreateImageFromBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateImageFromBitmap, 1, NULL }, -#endif // (((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_GRAPHICS_CONTEXT) - - { "CreateLinearGradientBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateLinearGradientBrush, 1, NULL }, - { "CreateMatrix", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateMatrix, 1, NULL }, - { "CreateMeasuringContext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateMeasuringContext, 1, NULL }, - { "CreatePath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreatePath, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - { "CreatePen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreatePen, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxUSE_GRAPHICS_CONTEXT)) && (wxUSE_GRAPHICS_CONTEXT) - - { "CreateRadialGradientBrush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateRadialGradientBrush, 1, NULL }, - { "CreateSubBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_CreateSubBitmap, 1, NULL }, - { "GetCairoRenderer", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGraphicsRenderer_GetCairoRenderer, 1, NULL }, - { "GetDefaultRenderer", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGraphicsRenderer_GetDefaultRenderer, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxUSE_GRAPHICS_CONTEXT) - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_GetName, 1, NULL }, - { "GetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGraphicsRenderer_GetVersion, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxUSE_GRAPHICS_CONTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGraphicsRenderer_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGraphicsRenderer_methodCount = sizeof(wxGraphicsRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - - -#if wxUSE_GRAPHICS_CONTEXT -// --------------------------------------------------------------------------- -// Bind class wxGCDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGCDC' -int wxluatype_wxGCDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGCDC_delete[] = { &wxluatype_wxGCDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_delete }}; - -static int LUACALL wxLua_wxGCDC_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_constructor4[1] = {{ wxLua_wxGCDC_constructor4, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGCDC(); -static int LUACALL wxLua_wxGCDC_constructor4(lua_State *L) -{ - // call constructor - wxGCDC* returns = new wxGCDC(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGCDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGCDC); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGCDC_constructor3[] = { &wxluatype_wxGraphicsContext, NULL }; -static int LUACALL wxLua_wxGCDC_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_constructor3[1] = {{ wxLua_wxGCDC_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor3 }}; -// wxGCDC(wxGraphicsContext* context); -static int LUACALL wxLua_wxGCDC_constructor3(lua_State *L) -{ - // wxGraphicsContext context - wxGraphicsContext * context = (wxGraphicsContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGraphicsContext); - // call constructor - wxGCDC* returns = new wxGCDC(context); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGCDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGCDC); - - return 1; -} - - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGCDC_constructor2[] = { &wxluatype_wxPrinterDC, NULL }; -static int LUACALL wxLua_wxGCDC_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_constructor2[1] = {{ wxLua_wxGCDC_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor2 }}; -// wxGCDC( const wxPrinterDC& dc ); -static int LUACALL wxLua_wxGCDC_constructor2(lua_State *L) -{ - // const wxPrinterDC dc - const wxPrinterDC * dc = (const wxPrinterDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinterDC); - // call constructor - wxGCDC* returns = new wxGCDC(*dc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGCDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGCDC); - - return 1; -} - -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGCDC_constructor1[] = { &wxluatype_wxMemoryDC, NULL }; -static int LUACALL wxLua_wxGCDC_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_constructor1[1] = {{ wxLua_wxGCDC_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor1 }}; -// wxGCDC( const wxMemoryDC& dc ); -static int LUACALL wxLua_wxGCDC_constructor1(lua_State *L) -{ - // const wxMemoryDC dc - const wxMemoryDC * dc = (const wxMemoryDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMemoryDC); - // call constructor - wxGCDC* returns = new wxGCDC(*dc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGCDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGCDC); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGCDC_constructor[] = { &wxluatype_wxWindowDC, NULL }; -static int LUACALL wxLua_wxGCDC_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_constructor[1] = {{ wxLua_wxGCDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor }}; -// wxGCDC( const wxWindowDC& dc ); -static int LUACALL wxLua_wxGCDC_constructor(lua_State *L) -{ - // const wxWindowDC dc - const wxWindowDC * dc = (const wxWindowDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindowDC); - // call constructor - wxGCDC* returns = new wxGCDC(*dc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGCDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGCDC); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - - - -#if (wxUSE_GRAPHICS_CONTEXT)||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGCDC_constructor_overload[] = -{ - { wxLua_wxGCDC_constructor4, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxGCDC_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor3 }, - -#if (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGCDC_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor2 }, -#endif // (((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGCDC_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor1 }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - -#if (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) - { wxLua_wxGCDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGCDC_constructor }, -#endif // (wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT) -}; -static int s_wxluafunc_wxLua_wxGCDC_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGCDC_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_GRAPHICS_CONTEXT)||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - -void wxLua_wxGCDC_delete_function(void** p) -{ - wxGCDC* o = (wxGCDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGCDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGCDC_delete, 1, NULL }, - -#if (wxUSE_GRAPHICS_CONTEXT)||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - { "wxGCDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGCDC_constructor_overload, s_wxluafunc_wxLua_wxGCDC_constructor_overload_count, 0 }, -#endif // (wxUSE_GRAPHICS_CONTEXT)||((((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && ((wxUSE_GRAPHICS_CONTEXT) && (wxUSE_PRINTING_ARCHITECTURE))) && (wxUSE_GRAPHICS_CONTEXT))||((wxLUA_USE_wxDC) && (wxUSE_GRAPHICS_CONTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxGCDC_methodCount = sizeof(wxGCDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_GRAPHICS_CONTEXT - diff --git a/wxLua/modules/wxbind/src/wxcore_help.cpp b/wxLua/modules/wxbind/src/wxcore_help.cpp deleted file mode 100644 index 34a5a5aa..00000000 --- a/wxLua/modules/wxbind/src/wxcore_help.cpp +++ /dev/null @@ -1,1068 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_help.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxHelpController && wxUSE_HELP -// --------------------------------------------------------------------------- -// Bind class wxContextHelp -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxContextHelp' -int wxluatype_wxContextHelp = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextHelp_BeginContextHelp[] = { &wxluatype_wxContextHelp, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxContextHelp_BeginContextHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextHelp_BeginContextHelp[1] = {{ wxLua_wxContextHelp_BeginContextHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxContextHelp_BeginContextHelp }}; -// bool BeginContextHelp(wxWindow* win); -static int LUACALL wxLua_wxContextHelp_BeginContextHelp(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxContextHelp * self = (wxContextHelp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxContextHelp); - // call BeginContextHelp - bool returns = (self->BeginContextHelp(win)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextHelp_EndContextHelp[] = { &wxluatype_wxContextHelp, NULL }; -static int LUACALL wxLua_wxContextHelp_EndContextHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextHelp_EndContextHelp[1] = {{ wxLua_wxContextHelp_EndContextHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxContextHelp_EndContextHelp }}; -// bool EndContextHelp(); -static int LUACALL wxLua_wxContextHelp_EndContextHelp(lua_State *L) -{ - // get this - wxContextHelp * self = (wxContextHelp *)wxluaT_getuserdatatype(L, 1, wxluatype_wxContextHelp); - // call EndContextHelp - bool returns = (self->EndContextHelp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextHelp_delete[] = { &wxluatype_wxContextHelp, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextHelp_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxContextHelp_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextHelp_constructor[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxContextHelp_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextHelp_constructor[1] = {{ wxLua_wxContextHelp_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxContextHelp_constructor }}; -// wxContextHelp(wxWindow* win = NULL, bool beginHelp = true); -static int LUACALL wxLua_wxContextHelp_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool beginHelp = true - bool beginHelp = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // wxWindow win = NULL - wxWindow * win = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxContextHelp* returns = new wxContextHelp(win, beginHelp); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxContextHelp); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxContextHelp); - - return 1; -} - - - - -void wxLua_wxContextHelp_delete_function(void** p) -{ - wxContextHelp* o = (wxContextHelp*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxContextHelp_methods[] = { - { "BeginContextHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxContextHelp_BeginContextHelp, 1, NULL }, - { "EndContextHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxContextHelp_EndContextHelp, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxContextHelp_delete, 1, NULL }, - { "wxContextHelp", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxContextHelp_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxContextHelp_methodCount = sizeof(wxContextHelp_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - -#if (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -// --------------------------------------------------------------------------- -// Bind class wxContextHelpButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxContextHelpButton' -int wxluatype_wxContextHelpButton = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxContextHelpButton_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxContextHelpButton_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxContextHelpButton_constructor[1] = {{ wxLua_wxContextHelpButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxContextHelpButton_constructor }}; -// wxContextHelpButton(wxWindow* parent, wxWindowID id = wxID_CONTEXT_HELP, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW); -static int LUACALL wxLua_wxContextHelpButton_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxBU_AUTODRAW - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxBU_AUTODRAW); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_CONTEXT_HELP - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_CONTEXT_HELP); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxContextHelpButton* returns = new wxContextHelpButton(parent, id, *pos, *size, style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxContextHelpButton); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxContextHelpButton_delete_function(void** p) -{ - wxContextHelpButton* o = (wxContextHelpButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxContextHelpButton_methods[] = { -#if ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxLUA_USE_wxPointSizeRect) - { "wxContextHelpButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxContextHelpButton_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxContextHelpButton_methodCount = sizeof(wxContextHelpButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxBitmapButton && wxUSE_BMPBUTTON) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - -#if wxLUA_USE_wxHelpController && wxUSE_HELP -// --------------------------------------------------------------------------- -// Bind class wxHelpProvider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHelpProvider' -int wxluatype_wxHelpProvider = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_AddHelp[] = { &wxluatype_wxHelpProvider, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHelpProvider_AddHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_AddHelp[1] = {{ wxLua_wxHelpProvider_AddHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHelpProvider_AddHelp }}; -// virtual void AddHelp(wxWindow *window, const wxString& text); -static int LUACALL wxLua_wxHelpProvider_AddHelp(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHelpProvider * self = (wxHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpProvider); - // call AddHelp - self->AddHelp(window, text); - - return 0; -} - -static int LUACALL wxLua_wxHelpProvider_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_Get[1] = {{ wxLua_wxHelpProvider_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxHelpProvider *Get(); -static int LUACALL wxLua_wxHelpProvider_Get(lua_State *L) -{ - // call Get - wxHelpProvider* returns = (wxHelpProvider*)wxHelpProvider::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpProvider); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_GetHelp[] = { &wxluatype_wxHelpProvider, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxHelpProvider_GetHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_GetHelp[1] = {{ wxLua_wxHelpProvider_GetHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpProvider_GetHelp }}; -// virtual wxString GetHelp(const wxWindow *window); // pure virtual -static int LUACALL wxLua_wxHelpProvider_GetHelp(lua_State *L) -{ - // const wxWindow window - const wxWindow * window = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHelpProvider * self = (wxHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpProvider); - // call GetHelp - wxString returns = (self->GetHelp(window)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_RemoveHelp[] = { &wxluatype_wxHelpProvider, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxHelpProvider_RemoveHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_RemoveHelp[1] = {{ wxLua_wxHelpProvider_RemoveHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpProvider_RemoveHelp }}; -// virtual void RemoveHelp(wxWindow* window); -static int LUACALL wxLua_wxHelpProvider_RemoveHelp(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHelpProvider * self = (wxHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpProvider); - // call RemoveHelp - self->RemoveHelp(window); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_Set[] = { &wxluatype_wxHelpProvider, NULL }; -static int LUACALL wxLua_wxHelpProvider_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_Set[1] = {{ wxLua_wxHelpProvider_Set, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxHelpProvider_Set }}; -// static %gc wxHelpProvider *Set(%ungc wxHelpProvider *helpProvider); -static int LUACALL wxLua_wxHelpProvider_Set(lua_State *L) -{ - // wxHelpProvider helpProvider - wxHelpProvider * helpProvider = (wxHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpProvider); - if (wxluaO_isgcobject(L, helpProvider)) wxluaO_undeletegcobject(L, helpProvider); - // call Set - wxHelpProvider* returns = (wxHelpProvider*)wxHelpProvider::Set(helpProvider); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxHelpProvider); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpProvider); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_ShowHelp[] = { &wxluatype_wxHelpProvider, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxHelpProvider_ShowHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_ShowHelp[1] = {{ wxLua_wxHelpProvider_ShowHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpProvider_ShowHelp }}; -// virtual bool ShowHelp(wxWindow *window); -static int LUACALL wxLua_wxHelpProvider_ShowHelp(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHelpProvider * self = (wxHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpProvider); - // call ShowHelp - bool returns = (self->ShowHelp(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_ShowHelpAtPoint[] = { &wxluatype_wxHelpProvider, &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHelpProvider_ShowHelpAtPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_ShowHelpAtPoint[1] = {{ wxLua_wxHelpProvider_ShowHelpAtPoint, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxHelpProvider_ShowHelpAtPoint }}; -// %wxchkver_2_8 virtual bool ShowHelpAtPoint(wxWindow *window, const wxPoint& pt, wxHelpEvent::Origin origin); -static int LUACALL wxLua_wxHelpProvider_ShowHelpAtPoint(lua_State *L) -{ - // wxHelpEvent::Origin origin - wxHelpEvent::Origin origin = (wxHelpEvent::Origin)wxlua_getenumtype(L, 4); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHelpProvider * self = (wxHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpProvider); - // call ShowHelpAtPoint - bool returns = (self->ShowHelpAtPoint(window, *pt, origin)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpProvider_delete[] = { &wxluatype_wxHelpProvider, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpProvider_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHelpProvider_delete }}; - - - - -void wxLua_wxHelpProvider_delete_function(void** p) -{ - wxHelpProvider* o = (wxHelpProvider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHelpProvider_methods[] = { - { "AddHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpProvider_AddHelp, 1, NULL }, - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxHelpProvider_Get, 1, NULL }, - { "GetHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpProvider_GetHelp, 1, NULL }, - { "RemoveHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpProvider_RemoveHelp, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxHelpProvider_Set, 1, NULL }, - { "ShowHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpProvider_ShowHelp, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) - { "ShowHelpAtPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpProvider_ShowHelpAtPoint, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP)) && (wxCHECK_VERSION(2,8,0))) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHelpProvider_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHelpProvider_methodCount = sizeof(wxHelpProvider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - -#if wxLUA_USE_wxHelpController && wxUSE_HELP -// --------------------------------------------------------------------------- -// Bind class wxSimpleHelpProvider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSimpleHelpProvider' -int wxluatype_wxSimpleHelpProvider = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHelpProvider_delete[] = { &wxluatype_wxSimpleHelpProvider, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHelpProvider_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSimpleHelpProvider_delete }}; - -static int LUACALL wxLua_wxSimpleHelpProvider_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHelpProvider_constructor[1] = {{ wxLua_wxSimpleHelpProvider_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSimpleHelpProvider(); -static int LUACALL wxLua_wxSimpleHelpProvider_constructor(lua_State *L) -{ - // call constructor - wxSimpleHelpProvider* returns = new wxSimpleHelpProvider(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSimpleHelpProvider); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSimpleHelpProvider); - - return 1; -} - - - - -void wxLua_wxSimpleHelpProvider_delete_function(void** p) -{ - wxSimpleHelpProvider* o = (wxSimpleHelpProvider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSimpleHelpProvider_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSimpleHelpProvider_delete, 1, NULL }, - { "wxSimpleHelpProvider", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSimpleHelpProvider_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSimpleHelpProvider_methodCount = sizeof(wxSimpleHelpProvider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - -#if wxLUA_USE_wxHelpController && wxUSE_HELP -// --------------------------------------------------------------------------- -// Bind class wxHelpControllerHelpProvider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHelpControllerHelpProvider' -int wxluatype_wxHelpControllerHelpProvider = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_GetHelpController[] = { &wxluatype_wxHelpControllerHelpProvider, NULL }; -static int LUACALL wxLua_wxHelpControllerHelpProvider_GetHelpController(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerHelpProvider_GetHelpController[1] = {{ wxLua_wxHelpControllerHelpProvider_GetHelpController, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_GetHelpController }}; -// wxHelpController* GetHelpController() const; -static int LUACALL wxLua_wxHelpControllerHelpProvider_GetHelpController(lua_State *L) -{ - // get this - wxHelpControllerHelpProvider * self = (wxHelpControllerHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerHelpProvider); - // call GetHelpController - wxHelpController* returns = (wxHelpController*)self->GetHelpController(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpController); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_SetHelpController[] = { &wxluatype_wxHelpControllerHelpProvider, &wxluatype_wxHelpController, NULL }; -static int LUACALL wxLua_wxHelpControllerHelpProvider_SetHelpController(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerHelpProvider_SetHelpController[1] = {{ wxLua_wxHelpControllerHelpProvider_SetHelpController, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_SetHelpController }}; -// void SetHelpController(wxHelpController* hc); -static int LUACALL wxLua_wxHelpControllerHelpProvider_SetHelpController(lua_State *L) -{ - // wxHelpController hc - wxHelpController * hc = (wxHelpController *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHelpController); - // get this - wxHelpControllerHelpProvider * self = (wxHelpControllerHelpProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerHelpProvider); - // call SetHelpController - self->SetHelpController(hc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_delete[] = { &wxluatype_wxHelpControllerHelpProvider, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerHelpProvider_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_constructor[] = { &wxluatype_wxHelpController, NULL }; -static int LUACALL wxLua_wxHelpControllerHelpProvider_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerHelpProvider_constructor[1] = {{ wxLua_wxHelpControllerHelpProvider_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxHelpControllerHelpProvider_constructor }}; -// wxHelpControllerHelpProvider(wxHelpController* hc = NULL); -static int LUACALL wxLua_wxHelpControllerHelpProvider_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxHelpController hc = NULL - wxHelpController * hc = (argCount >= 1 ? (wxHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpController) : NULL); - // call constructor - wxHelpControllerHelpProvider* returns = new wxHelpControllerHelpProvider(hc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHelpControllerHelpProvider); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpControllerHelpProvider); - - return 1; -} - - - - -void wxLua_wxHelpControllerHelpProvider_delete_function(void** p) -{ - wxHelpControllerHelpProvider* o = (wxHelpControllerHelpProvider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHelpControllerHelpProvider_methods[] = { - { "GetHelpController", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerHelpProvider_GetHelpController, 1, NULL }, - { "SetHelpController", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerHelpProvider_SetHelpController, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHelpControllerHelpProvider_delete, 1, NULL }, - { "wxHelpControllerHelpProvider", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHelpControllerHelpProvider_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHelpControllerHelpProvider_methodCount = sizeof(wxHelpControllerHelpProvider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - -#if wxLUA_USE_wxHelpController && wxUSE_HELP -// --------------------------------------------------------------------------- -// Bind class wxHelpControllerBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHelpControllerBase' -int wxluatype_wxHelpControllerBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayBlock[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_DisplayBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplayBlock[1] = {{ wxLua_wxHelpControllerBase_DisplayBlock, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayBlock }}; -// virtual bool DisplayBlock(long blockNo); -static int LUACALL wxLua_wxHelpControllerBase_DisplayBlock(lua_State *L) -{ - // long blockNo - long blockNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call DisplayBlock - bool returns = (self->DisplayBlock(blockNo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayContents[] = { &wxluatype_wxHelpControllerBase, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_DisplayContents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplayContents[1] = {{ wxLua_wxHelpControllerBase_DisplayContents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayContents }}; -// virtual bool DisplayContents(); -static int LUACALL wxLua_wxHelpControllerBase_DisplayContents(lua_State *L) -{ - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call DisplayContents - bool returns = (self->DisplayContents()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayContextPopup[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_DisplayContextPopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplayContextPopup[1] = {{ wxLua_wxHelpControllerBase_DisplayContextPopup, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayContextPopup }}; -// virtual bool DisplayContextPopup(int contextId); -static int LUACALL wxLua_wxHelpControllerBase_DisplayContextPopup(lua_State *L) -{ - // int contextId - int contextId = (int)wxlua_getnumbertype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call DisplayContextPopup - bool returns = (self->DisplayContextPopup(contextId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplaySection1[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_DisplaySection1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection1[1] = {{ wxLua_wxHelpControllerBase_DisplaySection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplaySection1 }}; -// virtual bool DisplaySection(const wxString §ion); -static int LUACALL wxLua_wxHelpControllerBase_DisplaySection1(lua_State *L) -{ - // const wxString section - const wxString section = wxlua_getwxStringtype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call DisplaySection - bool returns = (self->DisplaySection(section)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplaySection[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_DisplaySection(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection[1] = {{ wxLua_wxHelpControllerBase_DisplaySection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplaySection }}; -// virtual bool DisplaySection(int sectionNo); -static int LUACALL wxLua_wxHelpControllerBase_DisplaySection(lua_State *L) -{ - // int sectionNo - int sectionNo = (int)wxlua_getnumbertype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call DisplaySection - bool returns = (self->DisplaySection(sectionNo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayTextPopup[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_DisplayTextPopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplayTextPopup[1] = {{ wxLua_wxHelpControllerBase_DisplayTextPopup, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplayTextPopup }}; -// virtual bool DisplayTextPopup(const wxString& text, const wxPoint& pos); -static int LUACALL wxLua_wxHelpControllerBase_DisplayTextPopup(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call DisplayTextPopup - bool returns = (self->DisplayTextPopup(text, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_GetFrameParameters[] = { &wxluatype_wxHelpControllerBase, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_GetFrameParameters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_GetFrameParameters[1] = {{ wxLua_wxHelpControllerBase_GetFrameParameters, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerBase_GetFrameParameters }}; -// %override wxLua_wxHelpControllerBase_GetFrameParameters -// virtual wxFrame* GetFrameParameters(wxSize* size = NULL, wxPoint* pos = NULL, bool *newFrameEachTime = NULL) -static int LUACALL wxLua_wxHelpControllerBase_GetFrameParameters(lua_State *L) -{ - bool newFrameEachTime = false; - wxPoint *pos = new wxPoint(); - wxSize *size = new wxSize(); - // get this - wxHelpControllerBase *self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call GetFrameParameters - wxFrame *returns = self->GetFrameParameters(size, pos, &newFrameEachTime); - // push the result datatype - - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - wxluaT_pushuserdatatype(L, size, wxluatype_wxSize); - wxluaT_pushuserdatatype(L, pos, wxluatype_wxPoint); - lua_pushboolean(L, newFrameEachTime); - // return the number of parameters - return 4; -} - - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_GetParentWindow[] = { &wxluatype_wxHelpControllerBase, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_GetParentWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_GetParentWindow[1] = {{ wxLua_wxHelpControllerBase_GetParentWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerBase_GetParentWindow }}; -// %wxchkver_2_8 virtual wxWindow* GetParentWindow() const; -static int LUACALL wxLua_wxHelpControllerBase_GetParentWindow(lua_State *L) -{ - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call GetParentWindow - wxWindow* returns = (wxWindow*)self->GetParentWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_Initialize[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_Initialize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_Initialize[1] = {{ wxLua_wxHelpControllerBase_Initialize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_Initialize }}; -// virtual void Initialize(const wxString& file); -static int LUACALL wxLua_wxHelpControllerBase_Initialize(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call Initialize - self->Initialize(file); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_KeywordSearch[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_KeywordSearch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_KeywordSearch[1] = {{ wxLua_wxHelpControllerBase_KeywordSearch, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHelpControllerBase_KeywordSearch }}; -// virtual bool KeywordSearch(const wxString& keyWord, wxHelpSearchMode mode = wxHELP_SEARCH_ALL); -static int LUACALL wxLua_wxHelpControllerBase_KeywordSearch(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxHelpSearchMode mode = wxHELP_SEARCH_ALL - wxHelpSearchMode mode = (argCount >= 3 ? (wxHelpSearchMode)wxlua_getenumtype(L, 3) : wxHELP_SEARCH_ALL); - // const wxString keyWord - const wxString keyWord = wxlua_getwxStringtype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call KeywordSearch - bool returns = (self->KeywordSearch(keyWord, mode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_LoadFile[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_LoadFile[1] = {{ wxLua_wxHelpControllerBase_LoadFile, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_LoadFile }}; -// virtual bool LoadFile(const wxString& file = ""); -static int LUACALL wxLua_wxHelpControllerBase_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString file = "" - const wxString file = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call LoadFile - bool returns = (self->LoadFile(file)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_Quit[] = { &wxluatype_wxHelpControllerBase, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_Quit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_Quit[1] = {{ wxLua_wxHelpControllerBase_Quit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerBase_Quit }}; -// virtual bool Quit(); -static int LUACALL wxLua_wxHelpControllerBase_Quit(lua_State *L) -{ - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call Quit - bool returns = (self->Quit()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_SetFrameParameters[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, &wxluatype_wxSize, &wxluatype_wxPoint, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_SetFrameParameters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_SetFrameParameters[1] = {{ wxLua_wxHelpControllerBase_SetFrameParameters, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxHelpControllerBase_SetFrameParameters }}; -// virtual void SetFrameParameters(const wxString& title, const wxSize& size, const wxPoint& pos = wxDefaultPosition, bool newFrameEachTime = false); -static int LUACALL wxLua_wxHelpControllerBase_SetFrameParameters(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool newFrameEachTime = false - bool newFrameEachTime = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call SetFrameParameters - self->SetFrameParameters(title, *size, *pos, newFrameEachTime); - - return 0; -} - -#endif // (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_SetParentWindow[] = { &wxluatype_wxHelpControllerBase, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_SetParentWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_SetParentWindow[1] = {{ wxLua_wxHelpControllerBase_SetParentWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_SetParentWindow }}; -// %wxchkver_2_8 virtual void SetParentWindow(wxWindow* win); -static int LUACALL wxLua_wxHelpControllerBase_SetParentWindow(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call SetParentWindow - self->SetParentWindow(win); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_SetViewer[] = { &wxluatype_wxHelpControllerBase, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHelpControllerBase_SetViewer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_SetViewer[1] = {{ wxLua_wxHelpControllerBase_SetViewer, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHelpControllerBase_SetViewer }}; -// virtual void SetViewer(const wxString& viewer, long flags); -static int LUACALL wxLua_wxHelpControllerBase_SetViewer(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 3); - // const wxString viewer - const wxString viewer = wxlua_getwxStringtype(L, 2); - // get this - wxHelpControllerBase * self = (wxHelpControllerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHelpControllerBase); - // call SetViewer - self->SetViewer(viewer, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpControllerBase_delete[] = { &wxluatype_wxHelpControllerBase, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHelpControllerBase_delete }}; - - - - -#if (wxLUA_USE_wxHelpController && wxUSE_HELP) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection_overload[] = -{ - { wxLua_wxHelpControllerBase_DisplaySection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplaySection1 }, - { wxLua_wxHelpControllerBase_DisplaySection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHelpControllerBase_DisplaySection }, -}; -static int s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection_overload_count = sizeof(s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxHelpController && wxUSE_HELP) - -void wxLua_wxHelpControllerBase_delete_function(void** p) -{ - wxHelpControllerBase* o = (wxHelpControllerBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHelpControllerBase_methods[] = { - { "DisplayBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_DisplayBlock, 1, NULL }, - { "DisplayContents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_DisplayContents, 1, NULL }, - { "DisplayContextPopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_DisplayContextPopup, 1, NULL }, - -#if (wxLUA_USE_wxHelpController && wxUSE_HELP) - { "DisplaySection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection_overload, s_wxluafunc_wxLua_wxHelpControllerBase_DisplaySection_overload_count, 0 }, -#endif // (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) - { "DisplayTextPopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_DisplayTextPopup, 1, NULL }, -#endif // (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { "GetFrameParameters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_GetFrameParameters, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { "GetParentWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_GetParentWindow, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - { "Initialize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_Initialize, 1, NULL }, - { "KeywordSearch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_KeywordSearch, 1, NULL }, - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_LoadFile, 1, NULL }, - { "Quit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_Quit, 1, NULL }, - -#if (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) - { "SetFrameParameters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_SetFrameParameters, 1, NULL }, -#endif // (wxLUA_USE_wxHelpController && wxUSE_HELP) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - { "SetParentWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_SetParentWindow, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - { "SetViewer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHelpControllerBase_SetViewer, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHelpControllerBase_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHelpControllerBase_methodCount = sizeof(wxHelpControllerBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - -#if wxLUA_USE_wxHelpController && wxUSE_HELP -// --------------------------------------------------------------------------- -// Bind class wxHelpController -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHelpController' -int wxluatype_wxHelpController = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHelpController_delete[] = { &wxluatype_wxHelpController, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpController_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHelpController_delete }}; - -static int LUACALL wxLua_wxHelpController_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHelpController_constructor[1] = {{ wxLua_wxHelpController_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHelpController(); -static int LUACALL wxLua_wxHelpController_constructor(lua_State *L) -{ - // call constructor - wxHelpController* returns = new wxHelpController(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHelpController); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHelpController); - - return 1; -} - - - - -void wxLua_wxHelpController_delete_function(void** p) -{ - wxHelpController* o = (wxHelpController*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHelpController_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHelpController_delete, 1, NULL }, - { "wxHelpController", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHelpController_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHelpController_methodCount = sizeof(wxHelpController_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHelpController && wxUSE_HELP - - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -// --------------------------------------------------------------------------- -// Bind class wxWinHelpController -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWinHelpController' -int wxluatype_wxWinHelpController = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWinHelpController_delete[] = { &wxluatype_wxWinHelpController, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWinHelpController_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWinHelpController_delete }}; - -static int LUACALL wxLua_wxWinHelpController_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWinHelpController_constructor[1] = {{ wxLua_wxWinHelpController_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxWinHelpController(); -static int LUACALL wxLua_wxWinHelpController_constructor(lua_State *L) -{ - // call constructor - wxWinHelpController* returns = new wxWinHelpController(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWinHelpController); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWinHelpController); - - return 1; -} - - - - -void wxLua_wxWinHelpController_delete_function(void** p) -{ - wxWinHelpController* o = (wxWinHelpController*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWinHelpController_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWinHelpController_delete, 1, NULL }, - { "wxWinHelpController", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWinHelpController_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWinHelpController_methodCount = sizeof(wxWinHelpController_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -// --------------------------------------------------------------------------- -// Bind class wxBestHelpController -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBestHelpController' -int wxluatype_wxBestHelpController = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBestHelpController_delete[] = { &wxluatype_wxBestHelpController, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBestHelpController_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBestHelpController_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBestHelpController_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBestHelpController_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBestHelpController_constructor[1] = {{ wxLua_wxBestHelpController_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxBestHelpController_constructor }}; -// wxBestHelpController(wxWindow* parentWindow = NULL, int style = wxHF_DEFAULT_STYLE); -static int LUACALL wxLua_wxBestHelpController_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxHF_DEFAULT_STYLE - int style = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxHF_DEFAULT_STYLE); - // wxWindow parentWindow = NULL - wxWindow * parentWindow = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxBestHelpController* returns = new wxBestHelpController(parentWindow, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBestHelpController); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBestHelpController); - - return 1; -} - - - - -void wxLua_wxBestHelpController_delete_function(void** p) -{ - wxBestHelpController* o = (wxBestHelpController*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBestHelpController_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBestHelpController_delete, 1, NULL }, - { "wxBestHelpController", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBestHelpController_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBestHelpController_methodCount = sizeof(wxBestHelpController_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - - -#if (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) -// --------------------------------------------------------------------------- -// Bind class wxExtHelpController -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxExtHelpController' -int wxluatype_wxExtHelpController = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxExtHelpController_delete[] = { &wxluatype_wxExtHelpController, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxExtHelpController_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxExtHelpController_delete }}; - -static int LUACALL wxLua_wxExtHelpController_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxExtHelpController_constructor[1] = {{ wxLua_wxExtHelpController_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxExtHelpController(); -static int LUACALL wxLua_wxExtHelpController_constructor(lua_State *L) -{ - // call constructor - wxExtHelpController* returns = new wxExtHelpController(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxExtHelpController); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxExtHelpController); - - return 1; -} - - - - -void wxLua_wxExtHelpController_delete_function(void** p) -{ - wxExtHelpController* o = (wxExtHelpController*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxExtHelpController_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxExtHelpController_delete, 1, NULL }, - { "wxExtHelpController", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxExtHelpController_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxExtHelpController_methodCount = sizeof(wxExtHelpController_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (!defined(__WXMSW__)) && (wxLUA_USE_wxHelpController && wxUSE_HELP) - diff --git a/wxLua/modules/wxbind/src/wxcore_image.cpp b/wxLua/modules/wxbind/src/wxcore_image.cpp deleted file mode 100644 index 4ae6963d..00000000 --- a/wxLua/modules/wxbind/src/wxcore_image.cpp +++ /dev/null @@ -1,5288 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_image.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxImage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImage' -int wxluatype_wxImage = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_AddHandler[] = { &wxluatype_wxImageHandler, NULL }; -static int LUACALL wxLua_wxImage_AddHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_AddHandler[1] = {{ wxLua_wxImage_AddHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_AddHandler }}; -// static void AddHandler(%ungc wxImageHandler* handler); -static int LUACALL wxLua_wxImage_AddHandler(lua_State *L) -{ - // wxImageHandler handler - wxImageHandler * handler = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - if (wxluaO_isgcobject(L, handler)) wxluaO_undeletegcobject(L, handler); - // call AddHandler - wxImage::AddHandler(handler); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Blur[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_Blur(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Blur[1] = {{ wxLua_wxImage_Blur, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_Blur }}; -// %wxchkver_2_8 wxImage Blur(int radius); -static int LUACALL wxLua_wxImage_Blur(lua_State *L) -{ - // int radius - int radius = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Blur - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Blur(radius)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_BlurHorizontal[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_BlurHorizontal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_BlurHorizontal[1] = {{ wxLua_wxImage_BlurHorizontal, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_BlurHorizontal }}; -// %wxchkver_2_8 wxImage BlurHorizontal(int radius); -static int LUACALL wxLua_wxImage_BlurHorizontal(lua_State *L) -{ - // int radius - int radius = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call BlurHorizontal - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->BlurHorizontal(radius)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_BlurVertical[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_BlurVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_BlurVertical[1] = {{ wxLua_wxImage_BlurVertical, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_BlurVertical }}; -// %wxchkver_2_8 wxImage BlurVertical(int radius); -static int LUACALL wxLua_wxImage_BlurVertical(lua_State *L) -{ - // int radius - int radius = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call BlurVertical - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->BlurVertical(radius)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_CanRead1[] = { &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxImage_CanRead1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_CanRead1[1] = {{ wxLua_wxImage_CanRead1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_CanRead1 }}; -// %wxchkver_3_0_0 static bool CanRead(wxInputStream& stream); -static int LUACALL wxLua_wxImage_CanRead1(lua_State *L) -{ - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call CanRead - bool returns = (wxImage::CanRead(*stream)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_CanRead[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_CanRead(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_CanRead[1] = {{ wxLua_wxImage_CanRead, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_CanRead }}; -// %wxchkver_3_0_0 static bool CanRead(const wxString& filename); -static int LUACALL wxLua_wxImage_CanRead(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call CanRead - bool returns = (wxImage::CanRead(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static int LUACALL wxLua_wxImage_CleanUpHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_CleanUpHandlers[1] = {{ wxLua_wxImage_CleanUpHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void CleanUpHandlers(); -static int LUACALL wxLua_wxImage_CleanUpHandlers(lua_State *L) -{ - // call CleanUpHandlers - wxImage::CleanUpHandlers(); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Clear[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Clear[1] = {{ wxLua_wxImage_Clear, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_Clear }}; -// %wxchkver_3_0_0 void Clear(unsigned char value = 0); -static int LUACALL wxLua_wxImage_Clear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char value = 0 - unsigned char value = (argCount >= 2 ? (unsigned char)wxlua_getuintegertype(L, 2) : 0); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Clear - self->Clear(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ClearAlpha[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_ClearAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ClearAlpha[1] = {{ wxLua_wxImage_ClearAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_ClearAlpha }}; -// %wxchkver_3_0_0 void ClearAlpha(); -static int LUACALL wxLua_wxImage_ClearAlpha(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ClearAlpha - self->ClearAlpha(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ComputeHistogram[] = { &wxluatype_wxImage, &wxluatype_wxImageHistogram, NULL }; -static int LUACALL wxLua_wxImage_ComputeHistogram(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ComputeHistogram[1] = {{ wxLua_wxImage_ComputeHistogram, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_ComputeHistogram }}; -// unsigned long ComputeHistogram(wxImageHistogram& histogram) const; -static int LUACALL wxLua_wxImage_ComputeHistogram(lua_State *L) -{ - // wxImageHistogram histogram - wxImageHistogram * histogram = (wxImageHistogram *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageHistogram); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ComputeHistogram - unsigned long returns = (self->ComputeHistogram(*histogram)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ConvertAlphaToMask1[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_ConvertAlphaToMask1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask1[1] = {{ wxLua_wxImage_ConvertAlphaToMask1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxImage_ConvertAlphaToMask1 }}; -// %wxchkver_3_0_0 bool ConvertAlphaToMask(unsigned char mr, unsigned char mg, unsigned char mb, unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD); -static int LUACALL wxLua_wxImage_ConvertAlphaToMask1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD - unsigned char threshold = (argCount >= 5 ? (unsigned char)wxlua_getuintegertype(L, 5) : wxIMAGE_ALPHA_THRESHOLD); - // unsigned char mb - unsigned char mb = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char mg - unsigned char mg = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char mr - unsigned char mr = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ConvertAlphaToMask - bool returns = (self->ConvertAlphaToMask(mr, mg, mb, threshold)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ConvertAlphaToMask[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_ConvertAlphaToMask(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask[1] = {{ wxLua_wxImage_ConvertAlphaToMask, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_ConvertAlphaToMask }}; -// %wxchkver_3_0_0 bool ConvertAlphaToMask(unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD); -static int LUACALL wxLua_wxImage_ConvertAlphaToMask(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char threshold = wxIMAGE_ALPHA_THRESHOLD - unsigned char threshold = (argCount >= 2 ? (unsigned char)wxlua_getuintegertype(L, 2) : wxIMAGE_ALPHA_THRESHOLD); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ConvertAlphaToMask - bool returns = (self->ConvertAlphaToMask(threshold)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ConvertToDisabled[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_ConvertToDisabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ConvertToDisabled[1] = {{ wxLua_wxImage_ConvertToDisabled, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_ConvertToDisabled }}; -// %wxchkver_3_0_0 wxImage ConvertToDisabled(unsigned char brightness = 255) const; -static int LUACALL wxLua_wxImage_ConvertToDisabled(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char brightness = 255 - unsigned char brightness = (argCount >= 2 ? (unsigned char)wxlua_getuintegertype(L, 2) : 255); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ConvertToDisabled - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ConvertToDisabled(brightness)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ConvertToGreyscale[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_ConvertToGreyscale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ConvertToGreyscale[1] = {{ wxLua_wxImage_ConvertToGreyscale, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxImage_ConvertToGreyscale }}; -// %wxchkver_2_8 wxImage ConvertToGreyscale(double lr = 0.299, double lg = 0.587, double lb = 0.114) const; // %override parameter initialization -static int LUACALL wxLua_wxImage_ConvertToGreyscale(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double lb = 0.114 - double lb = (argCount >= 4 ? (double)wxlua_getnumbertype(L, 4) : 0.114); - // double lg = 0.587 - double lg = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 0.587); - // double lr = 0.299 - double lr = (argCount >= 2 ? (double)wxlua_getnumbertype(L, 2) : 0.299); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ConvertToGreyscale - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ConvertToGreyscale(lr, lg, lb)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ConvertToMono[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_ConvertToMono(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ConvertToMono[1] = {{ wxLua_wxImage_ConvertToMono, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxImage_ConvertToMono }}; -// wxImage ConvertToMono(unsigned char r, unsigned char g, unsigned char b) const; -static int LUACALL wxLua_wxImage_ConvertToMono(lua_State *L) -{ - // unsigned char b - unsigned char b = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char g - unsigned char g = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char r - unsigned char r = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ConvertToMono - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ConvertToMono(r, g, b)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Copy[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Copy[1] = {{ wxLua_wxImage_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_Copy }}; -// wxImage Copy() const; -static int LUACALL wxLua_wxImage_Copy(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Copy - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Copy()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Create5[] = { &wxluatype_wxImage, &wxluatype_wxSize, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Create5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create5[1] = {{ wxLua_wxImage_Create5, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxImage_Create5 }}; -// %wxchkver_3_0_0 bool Create(const wxSize& sz, unsigned char* data, unsigned char* alpha, bool static_data = false); -static int LUACALL wxLua_wxImage_Create5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // unsigned char alpha - unsigned char * alpha = (unsigned char *)wxlua_getstringtype(L, 4); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 3); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - bool returns = (self->Create(*sz, data, alpha, static_data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Create4[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Create4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create4[1] = {{ wxLua_wxImage_Create4, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxImage_Create4 }}; -// %wxchkver_3_0_0 bool Create(int width, int height, unsigned char* data, unsigned char* alpha, bool static_data = false); -static int LUACALL wxLua_wxImage_Create4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // unsigned char alpha - unsigned char * alpha = (unsigned char *)wxlua_getstringtype(L, 5); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 4); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - bool returns = (self->Create(width, height, data, alpha, static_data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Create3[] = { &wxluatype_wxImage, &wxluatype_wxSize, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Create3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create3[1] = {{ wxLua_wxImage_Create3, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Create3 }}; -// %wxchkver_3_0_0 bool Create(const wxSize& sz, unsigned char* data, bool static_data = false); -static int LUACALL wxLua_wxImage_Create3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 3); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - bool returns = (self->Create(*sz, data, static_data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Create2[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Create2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create2[1] = {{ wxLua_wxImage_Create2, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxImage_Create2 }}; -// %wxchkver_3_0_0 bool Create(int width, int height, unsigned char* data, bool static_data = false); -static int LUACALL wxLua_wxImage_Create2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 4); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - bool returns = (self->Create(width, height, data, static_data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Create1[] = { &wxluatype_wxImage, &wxluatype_wxSize, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create1[1] = {{ wxLua_wxImage_Create1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxImage_Create1 }}; -// %wxchkver_3_0_0 bool Create(const wxSize& sz, bool clear = true); -static int LUACALL wxLua_wxImage_Create1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool clear = true - bool clear = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - bool returns = (self->Create(*sz, clear)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Create[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create[1] = {{ wxLua_wxImage_Create, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Create }}; -// void Create(int width, int height, bool clear=true); -static int LUACALL wxLua_wxImage_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool clear = true - bool clear = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Create - self->Create(width, height, clear); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Destroy[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_Destroy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Destroy[1] = {{ wxLua_wxImage_Destroy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_Destroy }}; -// void Destroy(); -static int LUACALL wxLua_wxImage_Destroy(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Destroy - self->Destroy(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindFirstUnusedColour[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_FindFirstUnusedColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindFirstUnusedColour[1] = {{ wxLua_wxImage_FindFirstUnusedColour, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxImage_FindFirstUnusedColour }}; -// %override wxLua_wxImage_FindFirstUnusedColour -// bool FindFirstUnusedColour(unsigned char* r, unsigned char* g, unsigned char* b, unsigned char startR = 1, unsigned char startG = 0, unsigned char startB = 0) -static int LUACALL wxLua_wxImage_FindFirstUnusedColour(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char startB = 0 - unsigned char startB = (argCount >= 4 ? (char)wxlua_getnumbertype(L, 4) : 0); - // unsigned char startG = 0 - unsigned char startG = (argCount >= 3 ? (char)wxlua_getnumbertype(L, 3) : 0); - // unsigned char startR = 1 - unsigned char startR = (argCount >= 2 ? (char)wxlua_getnumbertype(L, 2) : 1); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call FindFirstUnusedColour - unsigned char r = 0, g = 0, b = 0; - bool returns = self->FindFirstUnusedColour(&r, &g, &b, startR, startG, startB); - // push the result flag - lua_pushboolean(L, returns); - lua_pushinteger(L, r); - lua_pushinteger(L, g); - lua_pushinteger(L, b); - - return 4; -} - - - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindHandler4[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_FindHandler4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandler4[1] = {{ wxLua_wxImage_FindHandler4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandler4 }}; -// !%wxchkver_3_0_0 static wxImageHandler* FindHandler(long imageType); -static int LUACALL wxLua_wxImage_FindHandler4(lua_State *L) -{ - // long imageType - long imageType = (long)wxlua_getnumbertype(L, 1); - // call FindHandler - wxImageHandler* returns = (wxImageHandler*)wxImage::FindHandler(imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindHandler3[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_FindHandler3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandler3[1] = {{ wxLua_wxImage_FindHandler3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxImage_FindHandler3 }}; -// !%wxchkver_3_0_0 static wxImageHandler* FindHandler(const wxString& extension, long imageType); -static int LUACALL wxLua_wxImage_FindHandler3(lua_State *L) -{ - // long imageType - long imageType = (long)wxlua_getnumbertype(L, 2); - // const wxString extension - const wxString extension = wxlua_getwxStringtype(L, 1); - // call FindHandler - wxImageHandler* returns = (wxImageHandler*)wxImage::FindHandler(extension, imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHandler); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindHandler2[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_FindHandler2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandler2[1] = {{ wxLua_wxImage_FindHandler2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandler2 }}; -// %wxchkver_3_0_0 static wxImageHandler* FindHandler(wxBitmapType imageType); -static int LUACALL wxLua_wxImage_FindHandler2(lua_State *L) -{ - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 1); - // call FindHandler - wxImageHandler* returns = (wxImageHandler*)wxImage::FindHandler(imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindHandler1[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_FindHandler1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandler1[1] = {{ wxLua_wxImage_FindHandler1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxImage_FindHandler1 }}; -// %wxchkver_3_0_0 static wxImageHandler* FindHandler(const wxString& extension, wxBitmapType imageType); -static int LUACALL wxLua_wxImage_FindHandler1(lua_State *L) -{ - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 2); - // const wxString extension - const wxString extension = wxlua_getwxStringtype(L, 1); - // call FindHandler - wxImageHandler* returns = (wxImageHandler*)wxImage::FindHandler(extension, imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHandler); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindHandler[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_FindHandler(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandler[1] = {{ wxLua_wxImage_FindHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandler }}; -// static wxImageHandler* FindHandler(const wxString& name); -static int LUACALL wxLua_wxImage_FindHandler(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindHandler - wxImageHandler* returns = (wxImageHandler*)wxImage::FindHandler(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_FindHandlerMime[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_FindHandlerMime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandlerMime[1] = {{ wxLua_wxImage_FindHandlerMime, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandlerMime }}; -// static wxImageHandler* FindHandlerMime(const wxString& mimetype); -static int LUACALL wxLua_wxImage_FindHandlerMime(lua_State *L) -{ - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 1); - // call FindHandlerMime - wxImageHandler* returns = (wxImageHandler*)wxImage::FindHandlerMime(mimetype); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHandler); - - return 1; -} - -#define wxLua_wxImage_GetAlpha1 wxLua_wxImage_GetAlphaData -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetAlpha1[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetAlpha1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetAlpha1[1] = {{ wxLua_wxImage_GetAlpha1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetAlpha1 }}; -// %override wxLua_wxImage_GetAlphaData -// unsigned char* GetAlpha() const -static int LUACALL wxLua_wxImage_GetAlphaData(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetAlpha - char* returns = (char*)self->GetAlpha(); - - if(returns) { - // push the result pointer - lua_pushlstring(L, returns, self->GetWidth()*self->GetHeight()); - } else { - lua_pushnil(L); - } - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetAlpha[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_GetAlpha(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetAlpha[1] = {{ wxLua_wxImage_GetAlpha, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_GetAlpha }}; -// unsigned char GetAlpha(int x, int y) const; -static int LUACALL wxLua_wxImage_GetAlpha(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetAlpha - unsigned char returns = (self->GetAlpha(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetBlue[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_GetBlue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetBlue[1] = {{ wxLua_wxImage_GetBlue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_GetBlue }}; -// unsigned char GetBlue(int x, int y) const; -static int LUACALL wxLua_wxImage_GetBlue(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetBlue - unsigned char returns = (self->GetBlue(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetData[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetData[1] = {{ wxLua_wxImage_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetData }}; -// %override wxLua_wxImage_GetData -// unsigned char* GetData() const -static int LUACALL wxLua_wxImage_GetData(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetData - char* returns = (char*)self->GetData(); - // push the result pointer - lua_pushlstring(L, returns, self->GetWidth()*self->GetHeight()*3); - - return 1; -} - - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static int LUACALL wxLua_wxImage_GetDefaultLoadFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetDefaultLoadFlags[1] = {{ wxLua_wxImage_GetDefaultLoadFlags, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_1_0 static int GetDefaultLoadFlags(); -static int LUACALL wxLua_wxImage_GetDefaultLoadFlags(lua_State *L) -{ - // call GetDefaultLoadFlags - int returns = (wxImage::GetDefaultLoadFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetGreen[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_GetGreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetGreen[1] = {{ wxLua_wxImage_GetGreen, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_GetGreen }}; -// unsigned char GetGreen(int x, int y) const; -static int LUACALL wxLua_wxImage_GetGreen(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetGreen - unsigned char returns = (self->GetGreen(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxList && !wxUSE_STL) -static int LUACALL wxLua_wxImage_GetHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetHandlers[1] = {{ wxLua_wxImage_GetHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxList& GetHandlers(); -static int LUACALL wxLua_wxImage_GetHandlers(lua_State *L) -{ - // call GetHandlers - wxList* returns = (wxList*)&wxImage::GetHandlers(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxList && !wxUSE_STL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetHeight[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetHeight[1] = {{ wxLua_wxImage_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetHeight }}; -// int GetHeight() const; -static int LUACALL wxLua_wxImage_GetHeight(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetImageCount1[] = { &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_GetImageCount1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetImageCount1[1] = {{ wxLua_wxImage_GetImageCount1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxImage_GetImageCount1 }}; -// static int GetImageCount(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxImage_GetImageCount1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call GetImageCount - int returns = (wxImage::GetImageCount(*stream, type)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetImageCount[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_GetImageCount(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetImageCount[1] = {{ wxLua_wxImage_GetImageCount, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxImage_GetImageCount }}; -// static int GetImageCount(const wxString& filename, wxBitmapType type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxImage_GetImageCount(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call GetImageCount - int returns = (wxImage::GetImageCount(filename, type)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxImage_GetImageExtWildcard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetImageExtWildcard[1] = {{ wxLua_wxImage_GetImageExtWildcard, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetImageExtWildcard(); -static int LUACALL wxLua_wxImage_GetImageExtWildcard(lua_State *L) -{ - // call GetImageExtWildcard - wxString returns = (wxImage::GetImageExtWildcard()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetLoadFlags[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetLoadFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetLoadFlags[1] = {{ wxLua_wxImage_GetLoadFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetLoadFlags }}; -// %wxchkver_3_1_0 int GetLoadFlags() const; -static int LUACALL wxLua_wxImage_GetLoadFlags(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetLoadFlags - int returns = (self->GetLoadFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetMaskBlue[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetMaskBlue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetMaskBlue[1] = {{ wxLua_wxImage_GetMaskBlue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetMaskBlue }}; -// unsigned char GetMaskBlue() const; -static int LUACALL wxLua_wxImage_GetMaskBlue(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetMaskBlue - unsigned char returns = (self->GetMaskBlue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetMaskGreen[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetMaskGreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetMaskGreen[1] = {{ wxLua_wxImage_GetMaskGreen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetMaskGreen }}; -// unsigned char GetMaskGreen() const; -static int LUACALL wxLua_wxImage_GetMaskGreen(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetMaskGreen - unsigned char returns = (self->GetMaskGreen()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetMaskRed[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetMaskRed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetMaskRed[1] = {{ wxLua_wxImage_GetMaskRed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetMaskRed }}; -// unsigned char GetMaskRed() const; -static int LUACALL wxLua_wxImage_GetMaskRed(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetMaskRed - unsigned char returns = (self->GetMaskRed()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetOption[] = { &wxluatype_wxImage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_GetOption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetOption[1] = {{ wxLua_wxImage_GetOption, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_GetOption }}; -// wxString GetOption(const wxString &name) const; -static int LUACALL wxLua_wxImage_GetOption(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetOption - wxString returns = (self->GetOption(name)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetOptionInt[] = { &wxluatype_wxImage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_GetOptionInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetOptionInt[1] = {{ wxLua_wxImage_GetOptionInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_GetOptionInt }}; -// int GetOptionInt(const wxString &name) const; -static int LUACALL wxLua_wxImage_GetOptionInt(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetOptionInt - int returns = (self->GetOptionInt(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetOrFindMaskColour[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetOrFindMaskColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetOrFindMaskColour[1] = {{ wxLua_wxImage_GetOrFindMaskColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetOrFindMaskColour }}; -// %override wxLua_wxImage_GetOrFindMaskColour -// bool GetOrFindMaskColour(unsigned char *r, unsigned char *g, unsigned char *b) const -static int LUACALL wxLua_wxImage_GetOrFindMaskColour(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call FindFirstUnusedColour - unsigned char r = 0, g = 0, b = 0; - bool returns = self->GetOrFindMaskColour(&r, &g, &b); - // push the result flag - lua_pushboolean(L, returns); - lua_pushinteger(L, r); - lua_pushinteger(L, g); - lua_pushinteger(L, b); - - return 4; -} - - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetPalette[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetPalette(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetPalette[1] = {{ wxLua_wxImage_GetPalette, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetPalette }}; -// wxPalette GetPalette() const; -static int LUACALL wxLua_wxImage_GetPalette(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetPalette - // allocate a new object using the copy constructor - wxPalette* returns = new wxPalette(self->GetPalette()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPalette); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPalette); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetRed[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_GetRed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetRed[1] = {{ wxLua_wxImage_GetRed, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_GetRed }}; -// unsigned char GetRed(int x, int y) const; -static int LUACALL wxLua_wxImage_GetRed(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetRed - unsigned char returns = (self->GetRed(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetSize[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetSize[1] = {{ wxLua_wxImage_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetSize }}; -// %wxchkver_3_0_0 wxSize GetSize() const; -static int LUACALL wxLua_wxImage_GetSize(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetSubImage[] = { &wxluatype_wxImage, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxImage_GetSubImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetSubImage[1] = {{ wxLua_wxImage_GetSubImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_GetSubImage }}; -// wxImage GetSubImage(const wxRect& rect) const; -static int LUACALL wxLua_wxImage_GetSubImage(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetSubImage - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->GetSubImage(*rect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetType[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetType[1] = {{ wxLua_wxImage_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetType }}; -// %wxchkver_3_0_0 wxBitmapType GetType() const; -static int LUACALL wxLua_wxImage_GetType(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetType - wxBitmapType returns = (self->GetType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_GetWidth[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetWidth[1] = {{ wxLua_wxImage_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxImage_GetWidth(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_HSVtoRGB[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_HSVtoRGB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_HSVtoRGB[1] = {{ wxLua_wxImage_HSVtoRGB, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxImage_HSVtoRGB }}; -// %override wxLua_wxImage_HSVtoRGB -// static int HSVtoRGB(double h, double s, double v) -static int LUACALL wxLua_wxImage_HSVtoRGB(lua_State *L) -{ - // double v - double v = (double)wxlua_getnumbertype(L, 4); - // double s - double s = (double)wxlua_getnumbertype(L, 3); - // double h - double h = (double)wxlua_getnumbertype(L, 2); - // call HSVtoRGB - wxImage::RGBValue rgbValue = wxImage::HSVtoRGB(wxImage::HSVValue(h, s, v)); - // push the result number - lua_pushinteger(L, rgbValue.red); - lua_pushinteger(L, rgbValue.green); - lua_pushinteger(L, rgbValue.blue); - - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_HasAlpha[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_HasAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_HasAlpha[1] = {{ wxLua_wxImage_HasAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_HasAlpha }}; -// bool HasAlpha() const; -static int LUACALL wxLua_wxImage_HasAlpha(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call HasAlpha - bool returns = (self->HasAlpha()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_HasMask[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_HasMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_HasMask[1] = {{ wxLua_wxImage_HasMask, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_HasMask }}; -// bool HasMask() const; -static int LUACALL wxLua_wxImage_HasMask(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call HasMask - bool returns = (self->HasMask()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_HasOption[] = { &wxluatype_wxImage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_HasOption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_HasOption[1] = {{ wxLua_wxImage_HasOption, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_HasOption }}; -// int HasOption(const wxString &name) const; -static int LUACALL wxLua_wxImage_HasOption(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call HasOption - int returns = (self->HasOption(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_InitAlpha[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_InitAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_InitAlpha[1] = {{ wxLua_wxImage_InitAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_InitAlpha }}; -// void InitAlpha(); -static int LUACALL wxLua_wxImage_InitAlpha(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call InitAlpha - self->InitAlpha(); - - return 0; -} - -static int LUACALL wxLua_wxImage_InitStandardHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_InitStandardHandlers[1] = {{ wxLua_wxImage_InitStandardHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void InitStandardHandlers(); -static int LUACALL wxLua_wxImage_InitStandardHandlers(lua_State *L) -{ - // call InitStandardHandlers - wxImage::InitStandardHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_InsertHandler[] = { &wxluatype_wxImageHandler, NULL }; -static int LUACALL wxLua_wxImage_InsertHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_InsertHandler[1] = {{ wxLua_wxImage_InsertHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_InsertHandler }}; -// static void InsertHandler(%ungc wxImageHandler* handler); -static int LUACALL wxLua_wxImage_InsertHandler(lua_State *L) -{ - // wxImageHandler handler - wxImageHandler * handler = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - if (wxluaO_isgcobject(L, handler)) wxluaO_undeletegcobject(L, handler); - // call InsertHandler - wxImage::InsertHandler(handler); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_IsOk[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_IsOk[1] = {{ wxLua_wxImage_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_IsOk }}; -// %wxchkver_3_0_0 bool IsOk() const; -static int LUACALL wxLua_wxImage_IsOk(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_IsTransparent[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_IsTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_IsTransparent[1] = {{ wxLua_wxImage_IsTransparent, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_IsTransparent }}; -// bool IsTransparent(int x, int y, unsigned char threshold = 128) const; -static int LUACALL wxLua_wxImage_IsTransparent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned char threshold = 128 - unsigned char threshold = (argCount >= 4 ? (unsigned char)wxlua_getuintegertype(L, 4) : 128); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call IsTransparent - bool returns = (self->IsTransparent(x, y, threshold)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_LoadFile3[] = { &wxluatype_wxImage, &wxluatype_wxInputStream, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_LoadFile3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_LoadFile3[1] = {{ wxLua_wxImage_LoadFile3, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile3 }}; -// bool LoadFile(wxInputStream& stream, const wxString& mimetype, int index = -1); -static int LUACALL wxLua_wxImage_LoadFile3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 3); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call LoadFile - bool returns = (self->LoadFile(*stream, mimetype, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_LoadFile2[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_LoadFile2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_LoadFile2[1] = {{ wxLua_wxImage_LoadFile2, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile2 }}; -// bool LoadFile(const wxString& name, const wxString& mimetype, int index = -1); -static int LUACALL wxLua_wxImage_LoadFile2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call LoadFile - bool returns = (self->LoadFile(name, mimetype, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_LoadFile1[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_LoadFile1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_LoadFile1[1] = {{ wxLua_wxImage_LoadFile1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile1 }}; -// bool LoadFile(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_ANY, int index = -1); -static int LUACALL wxLua_wxImage_LoadFile1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_ANY); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call LoadFile - bool returns = (self->LoadFile(name, type, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_LoadFile[] = { &wxluatype_wxImage, &wxluatype_wxInputStream, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_LoadFile(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_LoadFile[1] = {{ wxLua_wxImage_LoadFile, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile }}; -// bool LoadFile(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY, int index = -1); -static int LUACALL wxLua_wxImage_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call LoadFile - bool returns = (self->LoadFile(*stream, type, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Mirror[] = { &wxluatype_wxImage, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Mirror(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Mirror[1] = {{ wxLua_wxImage_Mirror, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_Mirror }}; -// wxImage Mirror(bool horizontally = true) const; -static int LUACALL wxLua_wxImage_Mirror(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool horizontally = true - bool horizontally = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Mirror - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Mirror(horizontally)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Ok[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Ok[1] = {{ wxLua_wxImage_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_Ok }}; -// bool Ok() const; // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxImage_Ok(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Paste[] = { &wxluatype_wxImage, &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Paste[1] = {{ wxLua_wxImage_Paste, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxImage_Paste }}; -// %wxchkver_3_0_0 void Paste(const wxImage& image, int x, int y); -static int LUACALL wxLua_wxImage_Paste(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 4); - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Paste - self->Paste(*image, x, y); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_RGBtoHSV[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_RGBtoHSV(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_RGBtoHSV[1] = {{ wxLua_wxImage_RGBtoHSV, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxImage_RGBtoHSV }}; -// %override wxLua_wxImage_RGBtoHSV -// static int RGBtoHSV(unsigned char r, unsigned char g, unsigned char b) -static int LUACALL wxLua_wxImage_RGBtoHSV(lua_State *L) -{ - // unsigned char b - unsigned char b = (char)wxlua_getnumbertype(L, 4); - // unsigned char g - unsigned char g = (char)wxlua_getnumbertype(L, 3); - // unsigned char r - unsigned char r = (char)wxlua_getnumbertype(L, 2); - // call HSVtoRGB - wxImage::HSVValue hsvValue = wxImage::RGBtoHSV(wxImage::RGBValue(r, g, b)); - // push the result number - lua_pushinteger(L, hsvValue.hue); - lua_pushinteger(L, hsvValue.saturation); - lua_pushinteger(L, hsvValue.value); - - return 3; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_RemoveHandler[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_RemoveHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_RemoveHandler[1] = {{ wxLua_wxImage_RemoveHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_RemoveHandler }}; -// static bool RemoveHandler(const wxString& name); -static int LUACALL wxLua_wxImage_RemoveHandler(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call RemoveHandler - bool returns = (wxImage::RemoveHandler(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Replace[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Replace[1] = {{ wxLua_wxImage_Replace, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxImage_Replace }}; -// void Replace(unsigned char r1, unsigned char g1, unsigned char b1, unsigned char r2, unsigned char g2, unsigned char b2); -static int LUACALL wxLua_wxImage_Replace(lua_State *L) -{ - // unsigned char b2 - unsigned char b2 = (unsigned char)wxlua_getuintegertype(L, 7); - // unsigned char g2 - unsigned char g2 = (unsigned char)wxlua_getuintegertype(L, 6); - // unsigned char r2 - unsigned char r2 = (unsigned char)wxlua_getuintegertype(L, 5); - // unsigned char b1 - unsigned char b1 = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char g1 - unsigned char g1 = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char r1 - unsigned char r1 = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Replace - self->Replace(r1, g1, b1, r2, g2, b2); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ResampleBicubic[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_ResampleBicubic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ResampleBicubic[1] = {{ wxLua_wxImage_ResampleBicubic, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_ResampleBicubic }}; -// %wxchkver_2_8 wxImage ResampleBicubic(int width, int height) const; // %add missing in interface description -static int LUACALL wxLua_wxImage_ResampleBicubic(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ResampleBicubic - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ResampleBicubic(width, height)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ResampleBilinear[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_ResampleBilinear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ResampleBilinear[1] = {{ wxLua_wxImage_ResampleBilinear, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_ResampleBilinear }}; -// %wxchkver_3_1 wxImage ResampleBilinear(int width, int height) const; // %add missing in interface description -static int LUACALL wxLua_wxImage_ResampleBilinear(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ResampleBilinear - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ResampleBilinear(width, height)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ResampleBox[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_ResampleBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ResampleBox[1] = {{ wxLua_wxImage_ResampleBox, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_ResampleBox }}; -// %wxchkver_2_8 wxImage ResampleBox(int width, int height) const; // %add missing in interface description -static int LUACALL wxLua_wxImage_ResampleBox(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ResampleBox - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ResampleBox(width, height)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_ResampleNearest[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_ResampleNearest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ResampleNearest[1] = {{ wxLua_wxImage_ResampleNearest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_ResampleNearest }}; -// %wxchkver_3_1 wxImage ResampleNearest(int width, int height) const; // %add missing in interface description -static int LUACALL wxLua_wxImage_ResampleNearest(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call ResampleNearest - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->ResampleNearest(width, height)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Rescale1[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_Rescale1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Rescale1[1] = {{ wxLua_wxImage_Rescale1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_Rescale1 }}; -// !%wxchkver_2_8 wxImage& Rescale(int width, int height); -static int LUACALL wxLua_wxImage_Rescale1(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Rescale - wxImage* returns = (wxImage*)&self->Rescale(width, height); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Rescale[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_Rescale(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Rescale[1] = {{ wxLua_wxImage_Rescale, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Rescale }}; -// %wxchkver_2_8 wxImage& Rescale(int width, int height, wxImageResizeQuality quality = wxIMAGE_QUALITY_NORMAL); -static int LUACALL wxLua_wxImage_Rescale(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxImageResizeQuality quality = wxIMAGE_QUALITY_NORMAL - wxImageResizeQuality quality = (argCount >= 4 ? (wxImageResizeQuality)wxlua_getenumtype(L, 4) : wxIMAGE_QUALITY_NORMAL); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Rescale - wxImage* returns = (wxImage*)&self->Rescale(width, height, quality); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Resize[] = { &wxluatype_wxImage, &wxluatype_wxSize, &wxluatype_wxPoint, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_Resize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Resize[1] = {{ wxLua_wxImage_Resize, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxImage_Resize }}; -// wxImage& Resize(const wxSize& size, const wxPoint& pos, int red = -1, int green = -1, int blue = -1); -static int LUACALL wxLua_wxImage_Resize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int blue = -1 - int blue = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int green = -1 - int green = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int red = -1 - int red = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Resize - wxImage* returns = (wxImage*)&self->Resize(*size, *pos, red, green, blue); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Rotate[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TBOOLEAN, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxImage_Rotate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Rotate[1] = {{ wxLua_wxImage_Rotate, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxImage_Rotate }}; -// wxImage Rotate(double angle, const wxPoint& rotationCentre, bool interpolating = true, wxPoint* offsetAfterRotation = NULL); -static int LUACALL wxLua_wxImage_Rotate(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPoint offsetAfterRotation = NULL - wxPoint * offsetAfterRotation = (argCount >= 5 ? (wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : NULL); - // bool interpolating = true - bool interpolating = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxPoint rotationCentre - const wxPoint * rotationCentre = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // double angle - double angle = (double)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Rotate - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Rotate(angle, *rotationCentre, interpolating, offsetAfterRotation)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Rotate180[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_Rotate180(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Rotate180[1] = {{ wxLua_wxImage_Rotate180, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_Rotate180 }}; -// %wxchkver_3_0_0 wxImage Rotate180() const; -static int LUACALL wxLua_wxImage_Rotate180(lua_State *L) -{ - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Rotate180 - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Rotate180()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Rotate90[] = { &wxluatype_wxImage, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_Rotate90(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Rotate90[1] = {{ wxLua_wxImage_Rotate90, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_Rotate90 }}; -// wxImage Rotate90(bool clockwise = true) const; -static int LUACALL wxLua_wxImage_Rotate90(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool clockwise = true - bool clockwise = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Rotate90 - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Rotate90(clockwise)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_RotateHue[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_RotateHue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_RotateHue[1] = {{ wxLua_wxImage_RotateHue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_RotateHue }}; -// void RotateHue(double angle); -static int LUACALL wxLua_wxImage_RotateHue(lua_State *L) -{ - // double angle - double angle = (double)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call RotateHue - self->RotateHue(angle); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SaveFile5[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_SaveFile5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile5[1] = {{ wxLua_wxImage_SaveFile5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile5 }}; -// !%wxchkver_3_0_0 bool SaveFile(const wxString& name, int type); -static int LUACALL wxLua_wxImage_SaveFile5(lua_State *L) -{ - // int type - int type = (int)wxlua_getnumbertype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SaveFile - bool returns = (self->SaveFile(name, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SaveFile4[] = { &wxluatype_wxImage, &wxluatype_wxOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SaveFile4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile4[1] = {{ wxLua_wxImage_SaveFile4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile4 }}; -// %wxchkver_3_0_0 bool SaveFile(wxOutputStream& stream, wxBitmapType type) const; -static int LUACALL wxLua_wxImage_SaveFile4(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SaveFile - bool returns = (self->SaveFile(*stream, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SaveFile3[] = { &wxluatype_wxImage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_SaveFile3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile3[1] = {{ wxLua_wxImage_SaveFile3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SaveFile3 }}; -// bool SaveFile(const wxString& name); -static int LUACALL wxLua_wxImage_SaveFile3(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SaveFile - bool returns = (self->SaveFile(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SaveFile2[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_SaveFile2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile2[1] = {{ wxLua_wxImage_SaveFile2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile2 }}; -// bool SaveFile(const wxString& name, const wxString& mimetype); -static int LUACALL wxLua_wxImage_SaveFile2(lua_State *L) -{ - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SaveFile - bool returns = (self->SaveFile(name, mimetype)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SaveFile1[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SaveFile1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile1[1] = {{ wxLua_wxImage_SaveFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile1 }}; -// %wxchkver_3_0_0 bool SaveFile(const wxString& name, wxBitmapType type) const; -static int LUACALL wxLua_wxImage_SaveFile1(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SaveFile - bool returns = (self->SaveFile(name, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SaveFile[] = { &wxluatype_wxImage, &wxluatype_wxOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_SaveFile(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile[1] = {{ wxLua_wxImage_SaveFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile }}; -// %wxchkver_3_0_0 bool SaveFile(wxOutputStream& stream, const wxString& mimetype) const; -static int LUACALL wxLua_wxImage_SaveFile(lua_State *L) -{ - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SaveFile - bool returns = (self->SaveFile(*stream, mimetype)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Scale1[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_Scale1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Scale1[1] = {{ wxLua_wxImage_Scale1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_Scale1 }}; -// !%wxchkver_2_8 wxImage Scale(int width, int height) const; -static int LUACALL wxLua_wxImage_Scale1(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Scale - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Scale(width, height)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Scale[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_Scale(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Scale[1] = {{ wxLua_wxImage_Scale, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Scale }}; -// %wxchkver_2_8 wxImage Scale(int width, int height, wxImageResizeQuality quality = wxIMAGE_QUALITY_NORMAL) const; -static int LUACALL wxLua_wxImage_Scale(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxImageResizeQuality quality = wxIMAGE_QUALITY_NORMAL - wxImageResizeQuality quality = (argCount >= 4 ? (wxImageResizeQuality)wxlua_getenumtype(L, 4) : wxIMAGE_QUALITY_NORMAL); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Scale - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Scale(width, height, quality)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#define wxLua_wxImage_SetAlpha2 wxLua_wxImage_SetAlphaData -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetAlpha2[] = { &wxluatype_wxImage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_SetAlpha2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetAlpha2[1] = {{ wxLua_wxImage_SetAlpha2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SetAlpha2 }}; -// %override wxLua_wxImage_SetAlphaData -// void SetAlpha(unsigned char *alpha = NULL,bool static_data = false) -static int LUACALL wxLua_wxImage_SetAlphaData(lua_State *L) -{ - // unsigned char *data - size_t len = 0; - unsigned char *data = (unsigned char *)wxlua_getstringtypelen(L, 2, &len); - // get this - wxImage *self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetData - if ((len == 0) || !self->Ok()) wxlua_argerrormsg(L, wxT("Invalid data or wxImage to call SetAlphaData() to.")); - // don't actually call SetAlpha since it takes ownership of data - // just copy it to the image - self->SetAlpha(NULL); // the wxImage will create the alpha channel for us - size_t size = self->GetWidth()*self->GetHeight(); - memcpy(self->GetAlpha(), data, wxMin(len, size)); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetAlpha1[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetAlpha1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetAlpha1[1] = {{ wxLua_wxImage_SetAlpha1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxImage_SetAlpha1 }}; -// void SetAlpha(int x, int y, unsigned char alpha); -static int LUACALL wxLua_wxImage_SetAlpha1(lua_State *L) -{ - // unsigned char alpha - unsigned char alpha = (unsigned char)wxlua_getuintegertype(L, 4); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetAlpha - self->SetAlpha(x, y, alpha); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetAlpha[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_SetAlpha(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetAlpha[1] = {{ wxLua_wxImage_SetAlpha, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxImage_SetAlpha }}; -// %wxchkver_3_0_0 void SetAlpha(unsigned char* alpha = NULL, bool static_data = false); -static int LUACALL wxLua_wxImage_SetAlpha(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // unsigned char alpha = NULL - unsigned char * alpha = (argCount >= 2 ? (unsigned char *)wxlua_getstringtype(L, 2) : NULL); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetAlpha - self->SetAlpha(alpha, static_data); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetData[] = { &wxluatype_wxImage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetData[1] = {{ wxLua_wxImage_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SetData }}; -// %override wxLua_wxImage_SetData -// void SetData(unsigned char *data) -static int LUACALL wxLua_wxImage_SetData(lua_State *L) -{ - // unsigned char *data - size_t len = 0; - unsigned char *data = (unsigned char *)wxlua_getstringtypelen(L, 2, &len); - // get this - wxImage *self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetData - if ((len == 0) || !self->Ok()) wxlua_argerrormsg(L, wxT("Invalid data or wxImage to call SetData() on.")); - // don't actually call SetData since it takes ownership of data - // just copy it to the image - size_t size = 3*self->GetWidth()*self->GetHeight(); - memcpy(self->GetData(), data, wxMin(len, size)); - // return the number of parameters - return 0; -} - - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetDefaultLoadFlags[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_SetDefaultLoadFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetDefaultLoadFlags[1] = {{ wxLua_wxImage_SetDefaultLoadFlags, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_SetDefaultLoadFlags }}; -// %wxchkver_3_1_0 static void SetDefaultLoadFlags(int flags); -static int LUACALL wxLua_wxImage_SetDefaultLoadFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 1); - // call SetDefaultLoadFlags - wxImage::SetDefaultLoadFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetLoadFlags[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_SetLoadFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetLoadFlags[1] = {{ wxLua_wxImage_SetLoadFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SetLoadFlags }}; -// %wxchkver_3_1_0 void SetLoadFlags(int flags); -static int LUACALL wxLua_wxImage_SetLoadFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetLoadFlags - self->SetLoadFlags(flags); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetMask[] = { &wxluatype_wxImage, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_SetMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetMask[1] = {{ wxLua_wxImage_SetMask, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_SetMask }}; -// void SetMask(bool hasMask = true); -static int LUACALL wxLua_wxImage_SetMask(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool hasMask = true - bool hasMask = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetMask - self->SetMask(hasMask); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetMaskColour[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetMaskColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetMaskColour[1] = {{ wxLua_wxImage_SetMaskColour, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxImage_SetMaskColour }}; -// void SetMaskColour(unsigned char red, unsigned char blue, unsigned char green); -static int LUACALL wxLua_wxImage_SetMaskColour(lua_State *L) -{ - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetMaskColour - self->SetMaskColour(red, blue, green); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetMaskFromImage[] = { &wxluatype_wxImage, &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetMaskFromImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetMaskFromImage[1] = {{ wxLua_wxImage_SetMaskFromImage, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxImage_SetMaskFromImage }}; -// bool SetMaskFromImage(const wxImage& mask, unsigned char mr, unsigned char mg, unsigned char mb); -static int LUACALL wxLua_wxImage_SetMaskFromImage(lua_State *L) -{ - // unsigned char mb - unsigned char mb = (unsigned char)wxlua_getuintegertype(L, 5); - // unsigned char mg - unsigned char mg = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char mr - unsigned char mr = (unsigned char)wxlua_getuintegertype(L, 3); - // const wxImage mask - const wxImage * mask = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetMaskFromImage - bool returns = (self->SetMaskFromImage(*mask, mr, mg, mb)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetOption1[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_SetOption1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetOption1[1] = {{ wxLua_wxImage_SetOption1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SetOption1 }}; -// void SetOption(const wxString &name, int value); -static int LUACALL wxLua_wxImage_SetOption1(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetOption - self->SetOption(name, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetOption[] = { &wxluatype_wxImage, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImage_SetOption(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetOption[1] = {{ wxLua_wxImage_SetOption, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SetOption }}; -// void SetOption(const wxString &name, const wxString &value); -static int LUACALL wxLua_wxImage_SetOption(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetOption - self->SetOption(name, value); - - return 0; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetPalette[] = { &wxluatype_wxImage, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxImage_SetPalette(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetPalette[1] = {{ wxLua_wxImage_SetPalette, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SetPalette }}; -// void SetPalette(const wxPalette& palette); -static int LUACALL wxLua_wxImage_SetPalette(lua_State *L) -{ - // const wxPalette palette - const wxPalette * palette = (const wxPalette *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPalette); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetPalette - self->SetPalette(*palette); - - return 0; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetRGB2[] = { &wxluatype_wxImage, &wxluatype_wxRect, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetRGB2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetRGB2[1] = {{ wxLua_wxImage_SetRGB2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxImage_SetRGB2 }}; -// !%wxchkver_3_0_0 void SetRGB(wxRect& rect, unsigned char red, unsigned char green, unsigned char blue); -static int LUACALL wxLua_wxImage_SetRGB2(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 5); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 3); - // wxRect rect - wxRect * rect = (wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetRGB - self->SetRGB(*rect, red, green, blue); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetRGB1[] = { &wxluatype_wxImage, &wxluatype_wxRect, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetRGB1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetRGB1[1] = {{ wxLua_wxImage_SetRGB1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxImage_SetRGB1 }}; -// %wxchkver_3_0_0 void SetRGB(const wxRect& rect, unsigned char red, unsigned char green, unsigned char blue); -static int LUACALL wxLua_wxImage_SetRGB1(lua_State *L) -{ - // unsigned char blue - unsigned char blue = (unsigned char)wxlua_getuintegertype(L, 5); - // unsigned char green - unsigned char green = (unsigned char)wxlua_getuintegertype(L, 4); - // unsigned char red - unsigned char red = (unsigned char)wxlua_getuintegertype(L, 3); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetRGB - self->SetRGB(*rect, red, green, blue); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetRGB[] = { &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetRGB(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetRGB[1] = {{ wxLua_wxImage_SetRGB, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxImage_SetRGB }}; -// void SetRGB(int x, int y, unsigned char r, unsigned char g, unsigned char b); -static int LUACALL wxLua_wxImage_SetRGB(lua_State *L) -{ - // unsigned char b - unsigned char b = (unsigned char)wxlua_getuintegertype(L, 6); - // unsigned char g - unsigned char g = (unsigned char)wxlua_getuintegertype(L, 5); - // unsigned char r - unsigned char r = (unsigned char)wxlua_getuintegertype(L, 4); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetRGB - self->SetRGB(x, y, r, g, b); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_SetType[] = { &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImage_SetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetType[1] = {{ wxLua_wxImage_SetType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SetType }}; -// %wxchkver_3_0_0 void SetType(wxBitmapType type); -static int LUACALL wxLua_wxImage_SetType(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 2); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call SetType - self->SetType(type); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_Size[] = { &wxluatype_wxImage, &wxluatype_wxSize, &wxluatype_wxPoint, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_Size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Size[1] = {{ wxLua_wxImage_Size, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxImage_Size }}; -// wxImage Size(const wxSize& size, const wxPoint& pos, int red = -1, int green = -1, int blue = -1) const; -static int LUACALL wxLua_wxImage_Size(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int blue = -1 - int blue = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int green = -1 - int green = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int red = -1 - int red = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Size - // allocate a new object using the copy constructor - wxImage* returns = new wxImage(self->Size(*size, *pos, red, green, blue)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_delete[] = { &wxluatype_wxImage, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxImage_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_op_set[] = { &wxluatype_wxImage, &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_op_set[1] = {{ wxLua_wxImage_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_op_set }}; -// wxImage& operator=(const wxImage& image); -static int LUACALL wxLua_wxImage_op_set(lua_State *L) -{ - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxImage * self = (wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call op_set - (*self)=(*image); - wxImage* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#define wxLua_wxImage_constructor13 wxLua_wxImageFromData_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor13[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_constructor13(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor13[1] = {{ wxLua_wxImage_constructor13, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxImage_constructor13 }}; -// %override wxLua_wxImageFromData_constructor -// %constructor wxImageFromData(int width, int height, unsigned char* data, bool static_data = false) -static int LUACALL wxLua_wxImageFromData_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // unsigned char* data - unsigned char *data = (unsigned char *)wxlua_getstringtype(L, 3); - // int height - int height = (int)wxlua_getintegertype(L, 2); - // int width - int width = (int)wxlua_getintegertype(L, 1); - // call constructor - wxImage *returns = new wxImage(width, height, data, static_data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - // return the number of parameters - return 1; -} - - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -#define wxLua_wxImage_constructor12 wxLua_wxImageFromBitmap_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor12[] = { &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxImage_constructor12(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor12[1] = {{ wxLua_wxImage_constructor12, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxImage_constructor12 }}; -// %override wxLua_wxImageFromBitmap_constructor -// %constructor wxImageFromBitmap(const wxBitmap& bitmap) -static int LUACALL wxLua_wxImageFromBitmap_constructor(lua_State *L) -{ - // const wxBitmap& bitmap - const wxBitmap *bitmap = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call constructor - wxImage *returns = new wxImage(bitmap->ConvertToImage()); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - // return the number of parameters - return 1; -} - - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor11[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_constructor11(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor11[1] = {{ wxLua_wxImage_constructor11, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxImage_constructor11 }}; -// !%wxchkver_3_0_0 wxImage(const wxString& name, long type = wxBITMAP_TYPE_ANY); -static int LUACALL wxLua_wxImage_constructor11(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long type = wxBITMAP_TYPE_ANY - long type = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : wxBITMAP_TYPE_ANY); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxImage* returns = new wxImage(name, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor10[] = { &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxImage_constructor10(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor10[1] = {{ wxLua_wxImage_constructor10, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxImage_constructor10 }}; -// !%wxchkver_3_0_0 wxImage(const wxImage& image); -static int LUACALL wxLua_wxImage_constructor10(lua_State *L) -{ - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call constructor - wxImage* returns = new wxImage(*image); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor9[] = { &wxluatype_wxInputStream, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_constructor9(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor9[1] = {{ wxLua_wxImage_constructor9, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor9 }}; -// %wxchkver_3_0_0 wxImage(wxInputStream& stream, const wxString& mimetype, int index = -1); -static int LUACALL wxLua_wxImage_constructor9(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 2); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call constructor - wxImage* returns = new wxImage(*stream, mimetype, index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor8[] = { &wxluatype_wxInputStream, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_constructor8(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor8[1] = {{ wxLua_wxImage_constructor8, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxImage_constructor8 }}; -// %wxchkver_3_0_0 wxImage(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY, int index = -1); -static int LUACALL wxLua_wxImage_constructor8(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call constructor - wxImage* returns = new wxImage(*stream, type, index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor7[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_constructor7(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor7[1] = {{ wxLua_wxImage_constructor7, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor7 }}; -// %wxchkver_3_0_0 wxImage(const wxString& name, const wxString& mimetype, int index = -1); -static int LUACALL wxLua_wxImage_constructor7(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxImage* returns = new wxImage(name, mimetype, index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor6[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImage_constructor6(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor6[1] = {{ wxLua_wxImage_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxImage_constructor6 }}; -// %wxchkver_3_0_0 wxImage(const wxString& name, wxBitmapType type = wxBITMAP_TYPE_ANY, int index = -1); -static int LUACALL wxLua_wxImage_constructor6(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = -1 - int index = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxBitmapType type = wxBITMAP_TYPE_ANY - wxBitmapType type = (argCount >= 2 ? (wxBitmapType)wxlua_getenumtype(L, 2) : wxBITMAP_TYPE_ANY); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxImage* returns = new wxImage(name, type, index); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor5[] = { &wxluatype_wxSize, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor5[1] = {{ wxLua_wxImage_constructor5, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxImage_constructor5 }}; -// %wxchkver_3_0_0 wxImage(const wxSize& sz, unsigned char* data, unsigned char* alpha, bool static_data = false); -static int LUACALL wxLua_wxImage_constructor5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // unsigned char alpha - unsigned char * alpha = (unsigned char *)wxlua_getstringtype(L, 3); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 2); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxImage* returns = new wxImage(*sz, data, alpha, static_data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor4[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor4[1] = {{ wxLua_wxImage_constructor4, WXLUAMETHOD_CONSTRUCTOR, 4, 5, s_wxluatypeArray_wxLua_wxImage_constructor4 }}; -// %wxchkver_3_0_0 wxImage(int width, int height, unsigned char* data, unsigned char* alpha, bool static_data = false); -static int LUACALL wxLua_wxImage_constructor4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // unsigned char alpha - unsigned char * alpha = (unsigned char *)wxlua_getstringtype(L, 4); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 3); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // int width - int width = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxImage* returns = new wxImage(width, height, data, alpha, static_data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor3[] = { &wxluatype_wxSize, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor3[1] = {{ wxLua_wxImage_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor3 }}; -// %wxchkver_3_0_0 wxImage(const wxSize& sz, unsigned char* data, bool static_data = false); -static int LUACALL wxLua_wxImage_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool static_data = false - bool static_data = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // unsigned char data - unsigned char * data = (unsigned char *)wxlua_getstringtype(L, 2); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxImage* returns = new wxImage(*sz, data, static_data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor2[] = { &wxluatype_wxSize, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor2[1] = {{ wxLua_wxImage_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxImage_constructor2 }}; -// %wxchkver_3_0_0 wxImage(const wxSize& sz, bool clear = true); -static int LUACALL wxLua_wxImage_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool clear = true - bool clear = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call constructor - wxImage* returns = new wxImage(*sz, clear); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImage_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxImage_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor1[1] = {{ wxLua_wxImage_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor1 }}; -// wxImage(int width, int height, bool clear=true); -static int LUACALL wxLua_wxImage_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool clear = true - bool clear = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // int width - int width = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxImage* returns = new wxImage(width, height, clear); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - -static int LUACALL wxLua_wxImage_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor[1] = {{ wxLua_wxImage_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxImage(); -static int LUACALL wxLua_wxImage_constructor(lua_State *L) -{ - // call constructor - wxImage* returns = new wxImage(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImage); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_CanRead_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxImage_CanRead1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_CanRead1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_CanRead, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_CanRead }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -}; -static int s_wxluafunc_wxLua_wxImage_CanRead_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_CanRead_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_ConvertAlphaToMask1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxImage_ConvertAlphaToMask1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_ConvertAlphaToMask, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxImage_ConvertAlphaToMask }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -}; -static int s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Create_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_Create5, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxImage_Create5 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_Create4, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxImage_Create4 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_Create3, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Create3 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_Create2, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxImage_Create2 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_Create1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxImage_Create1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_Create, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Create }, -}; -static int s_wxluafunc_wxLua_wxImage_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_Create_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_FindHandler_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_FindHandler4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandler4 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_FindHandler3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxImage_FindHandler3 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_FindHandler2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandler2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_FindHandler1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxImage_FindHandler1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_FindHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxImage_FindHandler }, -}; -static int s_wxluafunc_wxLua_wxImage_FindHandler_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_FindHandler_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetAlpha_overload[] = -{ - { wxLua_wxImage_GetAlpha1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImage_GetAlpha1 }, - { wxLua_wxImage_GetAlpha, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_GetAlpha }, -}; -static int s_wxluafunc_wxLua_wxImage_GetAlpha_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_GetAlpha_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_GetImageCount_overload[] = -{ - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { wxLua_wxImage_GetImageCount1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxImage_GetImageCount1 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { wxLua_wxImage_GetImageCount, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxImage_GetImageCount }, -}; -static int s_wxluafunc_wxLua_wxImage_GetImageCount_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_GetImageCount_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_LoadFile_overload[] = -{ - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { wxLua_wxImage_LoadFile3, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile3 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { wxLua_wxImage_LoadFile2, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile2 }, - { wxLua_wxImage_LoadFile1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile1 }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { wxLua_wxImage_LoadFile, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxImage_LoadFile }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxImage_LoadFile_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_LoadFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Rescale_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_Rescale1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_Rescale1 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_Rescale, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Rescale }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -}; -static int s_wxluafunc_wxLua_wxImage_Rescale_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_Rescale_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SaveFile_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_SaveFile5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile5 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxImage_SaveFile4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile4 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxImage_SaveFile3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SaveFile3 }, - { wxLua_wxImage_SaveFile2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile2 }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_SaveFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxImage_SaveFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SaveFile }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxImage_SaveFile_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_SaveFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_Scale_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_Scale1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_Scale1 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_Scale, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxImage_Scale }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -}; -static int s_wxluafunc_wxLua_wxImage_Scale_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_Scale_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetAlpha_overload[] = -{ - { wxLua_wxImage_SetAlpha2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImage_SetAlpha2 }, - { wxLua_wxImage_SetAlpha1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxImage_SetAlpha1 }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_SetAlpha, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxImage_SetAlpha }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -}; -static int s_wxluafunc_wxLua_wxImage_SetAlpha_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_SetAlpha_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetOption_overload[] = -{ - { wxLua_wxImage_SetOption1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SetOption1 }, - { wxLua_wxImage_SetOption, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImage_SetOption }, -}; -static int s_wxluafunc_wxLua_wxImage_SetOption_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_SetOption_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxImage && wxUSE_IMAGE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_SetRGB_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_SetRGB2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxImage_SetRGB2 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_SetRGB1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxImage_SetRGB1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_SetRGB, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxImage_SetRGB }, -}; -static int s_wxluafunc_wxLua_wxImage_SetRGB_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_SetRGB_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImage_constructor_overload[] = -{ - { wxLua_wxImage_constructor13, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxImage_constructor13 }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_constructor12, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxImage_constructor12 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_constructor11, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxImage_constructor11 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_constructor10, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxImage_constructor10 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxImage_constructor9, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor9 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - { wxLua_wxImage_constructor8, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxImage_constructor8 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_constructor7, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor7 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_constructor6, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxImage_constructor6 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_constructor5, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxImage_constructor5 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImage_constructor4, WXLUAMETHOD_CONSTRUCTOR, 4, 5, s_wxluatypeArray_wxLua_wxImage_constructor4 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor3 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxImage_constructor2 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxImage_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxImage_constructor1 }, - { wxLua_wxImage_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxImage_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxImage_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxImage_delete_function(void** p) -{ - wxImage* o = (wxImage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImage_methods[] = { - { "AddHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_AddHandler, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "Blur", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Blur, 1, NULL }, - { "BlurHorizontal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_BlurHorizontal, 1, NULL }, - { "BlurVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_BlurVertical, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "CanRead", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_CanRead_overload, s_wxluafunc_wxLua_wxImage_CanRead_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - - { "CleanUpHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_CleanUpHandlers, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Clear, 1, NULL }, - { "ClearAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ClearAlpha, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "ComputeHistogram", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ComputeHistogram, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "ConvertAlphaToMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask_overload, s_wxluafunc_wxLua_wxImage_ConvertAlphaToMask_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ConvertToDisabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ConvertToDisabled, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ConvertToGreyscale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ConvertToGreyscale, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "ConvertToMono", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ConvertToMono, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Copy, 1, NULL }, - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Create_overload, s_wxluafunc_wxLua_wxImage_Create_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "Destroy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Destroy, 1, NULL }, - { "FindFirstUnusedColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_FindFirstUnusedColour, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - { "FindHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_FindHandler_overload, s_wxluafunc_wxLua_wxImage_FindHandler_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "FindHandlerMime", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_FindHandlerMime, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "GetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetAlpha_overload, s_wxluafunc_wxLua_wxImage_GetAlpha_overload_count, 0 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetBlue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetBlue, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetData, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "GetDefaultLoadFlags", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_GetDefaultLoadFlags, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetGreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetGreen, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxList && !wxUSE_STL) - { "GetHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_GetHandlers, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxList && !wxUSE_STL) - - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetHeight, 1, NULL }, - -#if ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - { "GetImageCount", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_GetImageCount_overload, s_wxluafunc_wxLua_wxImage_GetImageCount_overload_count, 0 }, -#endif // ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetImageExtWildcard", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_GetImageExtWildcard, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "GetLoadFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetLoadFlags, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetMaskBlue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetMaskBlue, 1, NULL }, - { "GetMaskGreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetMaskGreen, 1, NULL }, - { "GetMaskRed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetMaskRed, 1, NULL }, - { "GetOption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetOption, 1, NULL }, - { "GetOptionInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetOptionInt, 1, NULL }, - { "GetOrFindMaskColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetOrFindMaskColour, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "GetPalette", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetPalette, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - - { "GetRed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetRed, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - { "GetSubImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetSubImage, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetType, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_GetWidth, 1, NULL }, - { "HSVtoRGB", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_HSVtoRGB, 1, NULL }, - { "HasAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_HasAlpha, 1, NULL }, - { "HasMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_HasMask, 1, NULL }, - { "HasOption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_HasOption, 1, NULL }, - { "InitAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_InitAlpha, 1, NULL }, - { "InitStandardHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_InitStandardHandlers, 1, NULL }, - { "InsertHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_InsertHandler, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "IsTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_IsTransparent, 1, NULL }, - -#if ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_LoadFile_overload, s_wxluafunc_wxLua_wxImage_LoadFile_overload_count, 0 }, -#endif // ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "Mirror", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Mirror, 1, NULL }, - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Ok, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Paste, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "RGBtoHSV", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_RGBtoHSV, 1, NULL }, - { "RemoveHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_RemoveHandler, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Replace, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ResampleBicubic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ResampleBicubic, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ResampleBilinear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ResampleBilinear, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ResampleBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ResampleBox, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "ResampleNearest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_ResampleNearest, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "Rescale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Rescale_overload, s_wxluafunc_wxLua_wxImage_Rescale_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - { "Resize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Resize, 1, NULL }, - { "Rotate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Rotate, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "Rotate180", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Rotate180, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "Rotate90", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Rotate90, 1, NULL }, - { "RotateHue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_RotateHue, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SaveFile_overload, s_wxluafunc_wxLua_wxImage_SaveFile_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "Scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Scale_overload, s_wxluafunc_wxLua_wxImage_Scale_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "SetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetAlpha_overload, s_wxluafunc_wxLua_wxImage_SetAlpha_overload_count, 0 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetData, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "SetDefaultLoadFlags", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImage_SetDefaultLoadFlags, 1, NULL }, - { "SetLoadFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetLoadFlags, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - { "SetMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetMask, 1, NULL }, - { "SetMaskColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetMaskColour, 1, NULL }, - { "SetMaskFromImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetMaskFromImage, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "SetOption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetOption_overload, s_wxluafunc_wxLua_wxImage_SetOption_overload_count, 0 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "SetPalette", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetPalette, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - { "SetRGB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetRGB_overload, s_wxluafunc_wxLua_wxImage_SetRGB_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { "SetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_SetType, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - { "Size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_Size, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxImage_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImage_op_set, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect)) - { "wxImage", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxImage_constructor_overload, s_wxluafunc_wxLua_wxImage_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||(((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxUSE_STREAMS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) && (wxLUA_USE_wxPointSizeRect)) - - { 0, 0, 0, 0 }, -}; - -int wxImage_methodCount = sizeof(wxImage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxImageHistogramEntry -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImageHistogramEntry' -int wxluatype_wxImageHistogramEntry = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogramEntry_Get_index[] = { &wxluatype_wxImageHistogramEntry, NULL }; -static int LUACALL wxLua_wxImageHistogramEntry_Get_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_Get_index[1] = {{ wxLua_wxImageHistogramEntry_Get_index, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogramEntry_Get_index }}; -// unsigned long index; // GetIndex() only, SetIndex(idx) is not allowed -static int LUACALL wxLua_wxImageHistogramEntry_Get_index(lua_State *L) -{ - // get this - wxImageHistogramEntry *self = (wxImageHistogramEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogramEntry); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->index) == (double)(self->index)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->index); -} else -#endif -{ - lua_pushnumber(L, self->index); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogramEntry_Get_value[] = { &wxluatype_wxImageHistogramEntry, NULL }; -static int LUACALL wxLua_wxImageHistogramEntry_Get_value(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_Get_value[1] = {{ wxLua_wxImageHistogramEntry_Get_value, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogramEntry_Get_value }}; -// unsigned long value; // GetValue() and SetValue(val); -static int LUACALL wxLua_wxImageHistogramEntry_Get_value(lua_State *L) -{ - // get this - wxImageHistogramEntry *self = (wxImageHistogramEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogramEntry); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->value) == (double)(self->value)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->value); -} else -#endif -{ - lua_pushnumber(L, self->value); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogramEntry_Set_index[] = { &wxluatype_wxImageHistogramEntry, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHistogramEntry_Set_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_Set_index[1] = {{ wxLua_wxImageHistogramEntry_Set_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogramEntry_Set_index }}; -// unsigned long index; // GetIndex() only, SetIndex(idx) is not allowed -static int LUACALL wxLua_wxImageHistogramEntry_Set_index(lua_State *L) -{ - // get the number value - long val = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHistogramEntry *self = (wxImageHistogramEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogramEntry); - self->index = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogramEntry_Set_value[] = { &wxluatype_wxImageHistogramEntry, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHistogramEntry_Set_value(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_Set_value[1] = {{ wxLua_wxImageHistogramEntry_Set_value, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogramEntry_Set_value }}; -// unsigned long value; // GetValue() and SetValue(val); -static int LUACALL wxLua_wxImageHistogramEntry_Set_value(lua_State *L) -{ - // get the number value - long val = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHistogramEntry *self = (wxImageHistogramEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogramEntry); - self->value = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogramEntry_delete[] = { &wxluatype_wxImageHistogramEntry, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogramEntry_delete }}; - -static int LUACALL wxLua_wxImageHistogramEntry_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogramEntry_constructor[1] = {{ wxLua_wxImageHistogramEntry_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxImageHistogramEntry(); -static int LUACALL wxLua_wxImageHistogramEntry_constructor(lua_State *L) -{ - // call constructor - wxImageHistogramEntry* returns = new wxImageHistogramEntry(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImageHistogramEntry); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogramEntry); - - return 1; -} - - - - -void wxLua_wxImageHistogramEntry_delete_function(void** p) -{ - wxImageHistogramEntry* o = (wxImageHistogramEntry*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImageHistogramEntry_methods[] = { - // %member { "Get_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogramEntry_Get_index, 1, NULL }, - // %member { "Get_value", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogramEntry_Get_value, 1, NULL }, - // %member { "Set_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogramEntry_Set_index, 1, NULL }, - // %member { "Set_value", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogramEntry_Set_value, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxImageHistogramEntry_delete, 1, NULL }, - { "index", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxImageHistogramEntry_Set_index, 1, NULL }, - { "index", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxImageHistogramEntry_Get_index, 1, NULL }, - { "value", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxImageHistogramEntry_Set_value, 1, NULL }, - { "value", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxImageHistogramEntry_Get_value, 1, NULL }, - { "wxImageHistogramEntry", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxImageHistogramEntry_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxImageHistogramEntry_methodCount = sizeof(wxImageHistogramEntry_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxImageHistogram::iterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImageHistogram::iterator' -int wxluatype_wxImageHistogram_iterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Get_first[] = { &wxluatype_wxImageHistogram_iterator, NULL }; -static int LUACALL wxLua_wxImageHistogram_iterator_Get_first(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_Get_first[1] = {{ wxLua_wxImageHistogram_iterator_Get_first, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Get_first }}; -// %override wxLua_wxImageHistogram_iterator_Get_first -// %member long first -static int LUACALL wxLua_wxImageHistogram_iterator_Get_first(lua_State *L) -{ - // get this - wxImageHistogram::iterator *self = (wxImageHistogram::iterator *) wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); - // push the result number - lua_pushnumber(L, (*self)->first); // *** need to cast self to object from pointer - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Get_second[] = { &wxluatype_wxImageHistogram_iterator, NULL }; -static int LUACALL wxLua_wxImageHistogram_iterator_Get_second(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_Get_second[1] = {{ wxLua_wxImageHistogram_iterator_Get_second, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Get_second }}; -// %override wxLua_wxImageHistogram_iterator_Get_second -// %member wxImageHistogramEntry second -static int LUACALL wxLua_wxImageHistogram_iterator_Get_second(lua_State *L) -{ - // get this - wxImageHistogram::iterator *self = (wxImageHistogram::iterator *) wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, &(*self)->second, wxluatype_wxImageHistogramEntry); // *** need to cast self to object from pointer - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Set_first[] = { &wxluatype_wxImageHistogram_iterator, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHistogram_iterator_Set_first(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_Set_first[1] = {{ wxLua_wxImageHistogram_iterator_Set_first, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Set_first }}; -// %override wxLua_wxImageHistogram_iterator_Set_first -// %member long first -static int LUACALL wxLua_wxImageHistogram_iterator_Set_first(lua_State *L) -{ - wxlua_argerrormsg(L, wxT("You cannot set the first element of a wxHashTable, do not use wxImageHistogram::iterator::SetFirst().")); - return 0; -/* - // get the number value - long val = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHistogram::iterator *self = (wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); - (*self)->first = val; // *** need to cast self to object from pointer - // return the number of parameters - return 0; -*/ -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Set_second[] = { &wxluatype_wxImageHistogram_iterator, &wxluatype_wxImageHistogramEntry, NULL }; -static int LUACALL wxLua_wxImageHistogram_iterator_Set_second(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_Set_second[1] = {{ wxLua_wxImageHistogram_iterator_Set_second, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_Set_second }}; -// %override wxLua_wxImageHistogram_iterator_Set_second -// %member wxImageHistogramEntry second -static int LUACALL wxLua_wxImageHistogram_iterator_Set_second(lua_State *L) -{ - // get the data type value - wxImageHistogramEntry* val = (wxImageHistogramEntry*)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageHistogramEntry); - // get this - wxImageHistogram::iterator *self = (wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); - (*self)->second = *val; // *** need to cast self to object from pointer - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_delete[] = { &wxluatype_wxImageHistogram_iterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_op_eq[] = { &wxluatype_wxImageHistogram_iterator, &wxluatype_wxImageHistogram_iterator, NULL }; -static int LUACALL wxLua_wxImageHistogram_iterator_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_op_eq[1] = {{ wxLua_wxImageHistogram_iterator_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_op_eq }}; -// bool operator==(const wxImageHistogram::iterator& other) const; -static int LUACALL wxLua_wxImageHistogram_iterator_op_eq(lua_State *L) -{ - // const wxImageHistogram::iterator other - const wxImageHistogram::iterator * other = (const wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageHistogram_iterator); - // get this - wxImageHistogram::iterator * self = (wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); - // call op_eq - bool returns = ((*self)==(*other)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_iterator_op_inc[] = { &wxluatype_wxImageHistogram_iterator, NULL }; -static int LUACALL wxLua_wxImageHistogram_iterator_op_inc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_iterator_op_inc[1] = {{ wxLua_wxImageHistogram_iterator_op_inc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_iterator_op_inc }}; -// void operator++(); // it's best if we don't return the iterator -static int LUACALL wxLua_wxImageHistogram_iterator_op_inc(lua_State *L) -{ - // get this - wxImageHistogram::iterator * self = (wxImageHistogram::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram_iterator); - // call op_inc - (*self)++; - - return 0; -} - - - - -void wxLua_wxImageHistogram_iterator_delete_function(void** p) -{ - wxImageHistogram::iterator* o = (wxImageHistogram::iterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImageHistogram_iterator_methods[] = { - // %member { "Get_first", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_iterator_Get_first, 1, NULL }, - // %member { "Get_second", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_iterator_Get_second, 1, NULL }, - // %member { "Set_first", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_iterator_Set_first, 1, NULL }, - // %member { "Set_second", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_iterator_Set_second, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxImageHistogram_iterator_delete, 1, NULL }, - { "first", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxImageHistogram_iterator_Set_first, 1, NULL }, - { "first", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxImageHistogram_iterator_Get_first, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_iterator_op_eq, 1, NULL }, - { "op_inc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_iterator_op_inc, 1, NULL }, - { "second", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxImageHistogram_iterator_Set_second, 1, NULL }, - { "second", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxImageHistogram_iterator_Get_second, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxImageHistogram_iterator_methodCount = sizeof(wxImageHistogram_iterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxImageHistogram -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImageHistogram' -int wxluatype_wxImageHistogram = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_MakeKey[] = { &wxluatype_TINTEGER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImageHistogram_MakeKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_MakeKey[1] = {{ wxLua_wxImageHistogram_MakeKey, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxImageHistogram_MakeKey }}; -// static unsigned long MakeKey(unsigned char r, unsigned char g, unsigned char b); -static int LUACALL wxLua_wxImageHistogram_MakeKey(lua_State *L) -{ - // unsigned char b - unsigned char b = (unsigned char)wxlua_getuintegertype(L, 3); - // unsigned char g - unsigned char g = (unsigned char)wxlua_getuintegertype(L, 2); - // unsigned char r - unsigned char r = (unsigned char)wxlua_getuintegertype(L, 1); - // call MakeKey - unsigned long returns = (wxImageHistogram::MakeKey(r, g, b)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_begin[] = { &wxluatype_wxImageHistogram, NULL }; -static int LUACALL wxLua_wxImageHistogram_begin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_begin[1] = {{ wxLua_wxImageHistogram_begin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_begin }}; -// wxImageHistogram::iterator begin() const; // not const iterator since we create a new copy of it -static int LUACALL wxLua_wxImageHistogram_begin(lua_State *L) -{ - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call begin - // allocate a new object using the copy constructor - wxImageHistogram::iterator* returns = new wxImageHistogram::iterator(self->begin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImageHistogram_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_clear[] = { &wxluatype_wxImageHistogram, NULL }; -static int LUACALL wxLua_wxImageHistogram_clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_clear[1] = {{ wxLua_wxImageHistogram_clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_clear }}; -// void clear(); -static int LUACALL wxLua_wxImageHistogram_clear(lua_State *L) -{ - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call clear - self->clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_count[] = { &wxluatype_wxImageHistogram, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHistogram_count(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_count[1] = {{ wxLua_wxImageHistogram_count, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogram_count }}; -// size_t count(long key) const; -static int LUACALL wxLua_wxImageHistogram_count(lua_State *L) -{ - // long key - long key = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call count - size_t returns = (self->count(key)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_delete[] = { &wxluatype_wxImageHistogram, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_empty[] = { &wxluatype_wxImageHistogram, NULL }; -static int LUACALL wxLua_wxImageHistogram_empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_empty[1] = {{ wxLua_wxImageHistogram_empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_empty }}; -// bool empty() const; -static int LUACALL wxLua_wxImageHistogram_empty(lua_State *L) -{ - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call empty - bool returns = (self->empty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_end[] = { &wxluatype_wxImageHistogram, NULL }; -static int LUACALL wxLua_wxImageHistogram_end(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_end[1] = {{ wxLua_wxImageHistogram_end, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_end }}; -// wxImageHistogram::iterator end() const; // not const iterator since we create a new copy of it -static int LUACALL wxLua_wxImageHistogram_end(lua_State *L) -{ - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call end - // allocate a new object using the copy constructor - wxImageHistogram::iterator* returns = new wxImageHistogram::iterator(self->end()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImageHistogram_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_erase[] = { &wxluatype_wxImageHistogram, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHistogram_erase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_erase[1] = {{ wxLua_wxImageHistogram_erase, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogram_erase }}; -// size_t erase(long key); -static int LUACALL wxLua_wxImageHistogram_erase(lua_State *L) -{ - // long key - long key = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call erase - size_t returns = (self->erase(key)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_find[] = { &wxluatype_wxImageHistogram, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHistogram_find(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_find[1] = {{ wxLua_wxImageHistogram_find, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHistogram_find }}; -// wxImageHistogram::iterator find(long key); -static int LUACALL wxLua_wxImageHistogram_find(lua_State *L) -{ - // long key - long key = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call find - // allocate a new object using the copy constructor - wxImageHistogram::iterator* returns = new wxImageHistogram::iterator(self->find(key)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImageHistogram_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHistogram_size[] = { &wxluatype_wxImageHistogram, NULL }; -static int LUACALL wxLua_wxImageHistogram_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_size[1] = {{ wxLua_wxImageHistogram_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHistogram_size }}; -// size_t size() const; -static int LUACALL wxLua_wxImageHistogram_size(lua_State *L) -{ - // get this - wxImageHistogram * self = (wxImageHistogram *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHistogram); - // call size - size_t returns = (self->size()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxImageHistogram_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHistogram_constructor[1] = {{ wxLua_wxImageHistogram_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxImageHistogram(); -static int LUACALL wxLua_wxImageHistogram_constructor(lua_State *L) -{ - // call constructor - wxImageHistogram* returns = new wxImageHistogram(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxImageHistogram); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageHistogram); - - return 1; -} - - - - -void wxLua_wxImageHistogram_delete_function(void** p) -{ - wxImageHistogram* o = (wxImageHistogram*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImageHistogram_methods[] = { - { "MakeKey", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxImageHistogram_MakeKey, 1, NULL }, - { "begin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_begin, 1, NULL }, - { "clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_clear, 1, NULL }, - { "count", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_count, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxImageHistogram_delete, 1, NULL }, - { "empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_empty, 1, NULL }, - { "end", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_end, 1, NULL }, - { "erase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_erase, 1, NULL }, - { "find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_find, 1, NULL }, - { "size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHistogram_size, 1, NULL }, - { "wxImageHistogram", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxImageHistogram_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxImageHistogram_methodCount = sizeof(wxImageHistogram_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxQuantize -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxQuantize' -int wxluatype_wxQuantize = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxQuantize_Quantize[] = { &wxluatype_wxImage, &wxluatype_wxImage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxQuantize_Quantize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxQuantize_Quantize[1] = {{ wxLua_wxQuantize_Quantize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 4, s_wxluatypeArray_wxLua_wxQuantize_Quantize }}; -// %override wxLua_wxQuantize_Quantize -// static bool Quantize(const wxImage& src, wxImage& dest, wxPalette** pPalette, int desiredNoColours = 236, unsigned char** eightBitData = 0, int flags = wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE|wxQUANTIZE_RETURN_8BIT_DATA); -static int LUACALL wxLua_wxQuantize_Quantize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxQUANTIZE_INCLUDE_WINDOWS_COLOURS | wxQUANTIZE_FILL_DESTINATION_IMAGE | wxQUANTIZE_RETURN_8BIT_DATA - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 4) : wxQUANTIZE_INCLUDE_WINDOWS_COLOURS | wxQUANTIZE_FILL_DESTINATION_IMAGE | wxQUANTIZE_RETURN_8BIT_DATA); - // int desiredNoColours = 236 - int desiredNoColours = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 3) : 236); - // wxImage dest - wxImage * dest = (wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // const wxImage src - const wxImage * src = (const wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call Quantize - bool returns = (wxQuantize::Quantize(*src, *dest, NULL, desiredNoColours, NULL, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - - -void wxLua_wxQuantize_delete_function(void** p) -{ - wxQuantize* o = (wxQuantize*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxQuantize_methods[] = { - { "Quantize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxQuantize_Quantize, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxQuantize_methodCount = sizeof(wxQuantize_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxImageHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImageHandler' -int wxluatype_wxImageHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_GetExtension[] = { &wxluatype_wxImageHandler, NULL }; -static int LUACALL wxLua_wxImageHandler_GetExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_GetExtension[1] = {{ wxLua_wxImageHandler_GetExtension, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHandler_GetExtension }}; -// wxString GetExtension() const; -static int LUACALL wxLua_wxImageHandler_GetExtension(lua_State *L) -{ - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call GetExtension - wxString returns = (self->GetExtension()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_GetImageCount[] = { &wxluatype_wxImageHandler, &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxImageHandler_GetImageCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_GetImageCount[1] = {{ wxLua_wxImageHandler_GetImageCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_GetImageCount }}; -// int GetImageCount(wxInputStream& stream); -static int LUACALL wxLua_wxImageHandler_GetImageCount(lua_State *L) -{ - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call GetImageCount - int returns = (self->GetImageCount(*stream)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_GetMimeType[] = { &wxluatype_wxImageHandler, NULL }; -static int LUACALL wxLua_wxImageHandler_GetMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_GetMimeType[1] = {{ wxLua_wxImageHandler_GetMimeType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHandler_GetMimeType }}; -// wxString GetMimeType() const; -static int LUACALL wxLua_wxImageHandler_GetMimeType(lua_State *L) -{ - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call GetMimeType - wxString returns = (self->GetMimeType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_GetName[] = { &wxluatype_wxImageHandler, NULL }; -static int LUACALL wxLua_wxImageHandler_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_GetName[1] = {{ wxLua_wxImageHandler_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHandler_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxImageHandler_GetName(lua_State *L) -{ - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_GetType[] = { &wxluatype_wxImageHandler, NULL }; -static int LUACALL wxLua_wxImageHandler_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_GetType[1] = {{ wxLua_wxImageHandler_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageHandler_GetType }}; -// long GetType() const; -static int LUACALL wxLua_wxImageHandler_GetType(lua_State *L) -{ - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call GetType - long returns = (self->GetType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_LoadFile[] = { &wxluatype_wxImageHandler, &wxluatype_wxImage, &wxluatype_wxInputStream, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHandler_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_LoadFile[1] = {{ wxLua_wxImageHandler_LoadFile, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxImageHandler_LoadFile }}; -// bool LoadFile(wxImage* image, wxInputStream& stream, bool verbose=true, int index=0); -static int LUACALL wxLua_wxImageHandler_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int index = 0 - int index = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // bool verbose = true - bool verbose = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 3, wxluatype_wxInputStream); - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call LoadFile - bool returns = (self->LoadFile(image, *stream, verbose, index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_SaveFile[] = { &wxluatype_wxImageHandler, &wxluatype_wxImage, &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxImageHandler_SaveFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SaveFile[1] = {{ wxLua_wxImageHandler_SaveFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxImageHandler_SaveFile }}; -// bool SaveFile(wxImage* image, wxOutputStream& stream); -static int LUACALL wxLua_wxImageHandler_SaveFile(lua_State *L) -{ - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 3, wxluatype_wxOutputStream); - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call SaveFile - bool returns = (self->SaveFile(image, *stream)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_SetExtension[] = { &wxluatype_wxImageHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImageHandler_SetExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SetExtension[1] = {{ wxLua_wxImageHandler_SetExtension, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetExtension }}; -// void SetExtension(const wxString& extension); -static int LUACALL wxLua_wxImageHandler_SetExtension(lua_State *L) -{ - // const wxString extension - const wxString extension = wxlua_getwxStringtype(L, 2); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call SetExtension - self->SetExtension(extension); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_SetMimeType[] = { &wxluatype_wxImageHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImageHandler_SetMimeType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SetMimeType[1] = {{ wxLua_wxImageHandler_SetMimeType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetMimeType }}; -// void SetMimeType(const wxString& mimetype); -static int LUACALL wxLua_wxImageHandler_SetMimeType(lua_State *L) -{ - // const wxString mimetype - const wxString mimetype = wxlua_getwxStringtype(L, 2); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call SetMimeType - self->SetMimeType(mimetype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_SetName[] = { &wxluatype_wxImageHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImageHandler_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SetName[1] = {{ wxLua_wxImageHandler_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxImageHandler_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call SetName - self->SetName(name); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_SetType1[] = { &wxluatype_wxImageHandler, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxImageHandler_SetType1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SetType1[1] = {{ wxLua_wxImageHandler_SetType1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetType1 }}; -// %wxchkver_2_8 void SetType(wxBitmapType type); -static int LUACALL wxLua_wxImageHandler_SetType1(lua_State *L) -{ - // wxBitmapType type - wxBitmapType type = (wxBitmapType)wxlua_getenumtype(L, 2); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call SetType - self->SetType(type); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_SetType[] = { &wxluatype_wxImageHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageHandler_SetType(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SetType[1] = {{ wxLua_wxImageHandler_SetType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetType }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetType(long type); -static int LUACALL wxLua_wxImageHandler_SetType(lua_State *L) -{ - // long type - long type = (long)wxlua_getnumbertype(L, 2); - // get this - wxImageHandler * self = (wxImageHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageHandler); - // call SetType - self->SetType(type); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageHandler_delete[] = { &wxluatype_wxImageHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxImageHandler_delete }}; - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageHandler_SetType_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImageHandler_SetType1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetType1 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - { wxLua_wxImageHandler_SetType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageHandler_SetType }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -}; -static int s_wxluafunc_wxLua_wxImageHandler_SetType_overload_count = sizeof(s_wxluafunc_wxLua_wxImageHandler_SetType_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - -void wxLua_wxImageHandler_delete_function(void** p) -{ - wxImageHandler* o = (wxImageHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImageHandler_methods[] = { - { "GetExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_GetExtension, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { "GetImageCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_GetImageCount, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - - { "GetMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_GetMimeType, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_GetName, 1, NULL }, - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_GetType, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_LoadFile, 1, NULL }, - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_SaveFile, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_STREAMS) - - { "SetExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_SetExtension, 1, NULL }, - { "SetMimeType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_SetMimeType, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_SetName, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - { "SetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageHandler_SetType_overload, s_wxluafunc_wxLua_wxImageHandler_SetType_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxImage && wxUSE_IMAGE))||((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxImage && wxUSE_IMAGE)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxImageHandler_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxImageHandler_methodCount = sizeof(wxImageHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxBMPHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBMPHandler' -int wxluatype_wxBMPHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBMPHandler_delete[] = { &wxluatype_wxBMPHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBMPHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBMPHandler_delete }}; - -static int LUACALL wxLua_wxBMPHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBMPHandler_constructor[1] = {{ wxLua_wxBMPHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxBMPHandler(); -static int LUACALL wxLua_wxBMPHandler_constructor(lua_State *L) -{ - // call constructor - wxBMPHandler* returns = new wxBMPHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBMPHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBMPHandler); - - return 1; -} - - - - -void wxLua_wxBMPHandler_delete_function(void** p) -{ - wxBMPHandler* o = (wxBMPHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBMPHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBMPHandler_delete, 1, NULL }, - { "wxBMPHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBMPHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBMPHandler_methodCount = sizeof(wxBMPHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) -// --------------------------------------------------------------------------- -// Bind class wxICOHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxICOHandler' -int wxluatype_wxICOHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxICOHandler_delete[] = { &wxluatype_wxICOHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxICOHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxICOHandler_delete }}; - -static int LUACALL wxLua_wxICOHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxICOHandler_constructor[1] = {{ wxLua_wxICOHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxICOHandler(); -static int LUACALL wxLua_wxICOHandler_constructor(lua_State *L) -{ - // call constructor - wxICOHandler* returns = new wxICOHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxICOHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxICOHandler); - - return 1; -} - - - - -void wxLua_wxICOHandler_delete_function(void** p) -{ - wxICOHandler* o = (wxICOHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxICOHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxICOHandler_delete, 1, NULL }, - { "wxICOHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxICOHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxICOHandler_methodCount = sizeof(wxICOHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) -// --------------------------------------------------------------------------- -// Bind class wxCURHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCURHandler' -int wxluatype_wxCURHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCURHandler_delete[] = { &wxluatype_wxCURHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCURHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCURHandler_delete }}; - -static int LUACALL wxLua_wxCURHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCURHandler_constructor[1] = {{ wxLua_wxCURHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCURHandler(); -static int LUACALL wxLua_wxCURHandler_constructor(lua_State *L) -{ - // call constructor - wxCURHandler* returns = new wxCURHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCURHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCURHandler); - - return 1; -} - - - - -void wxLua_wxCURHandler_delete_function(void** p) -{ - wxCURHandler* o = (wxCURHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCURHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCURHandler_delete, 1, NULL }, - { "wxCURHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCURHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCURHandler_methodCount = sizeof(wxCURHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) -// --------------------------------------------------------------------------- -// Bind class wxANIHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxANIHandler' -int wxluatype_wxANIHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxANIHandler_delete[] = { &wxluatype_wxANIHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxANIHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxANIHandler_delete }}; - -static int LUACALL wxLua_wxANIHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxANIHandler_constructor[1] = {{ wxLua_wxANIHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxANIHandler(); -static int LUACALL wxLua_wxANIHandler_constructor(lua_State *L) -{ - // call constructor - wxANIHandler* returns = new wxANIHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxANIHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxANIHandler); - - return 1; -} - - - - -void wxLua_wxANIHandler_delete_function(void** p) -{ - wxANIHandler* o = (wxANIHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxANIHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxANIHandler_delete, 1, NULL }, - { "wxANIHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxANIHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxANIHandler_methodCount = sizeof(wxANIHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_ICO_CUR) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) -// --------------------------------------------------------------------------- -// Bind class wxIFFHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIFFHandler' -int wxluatype_wxIFFHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIFFHandler_delete[] = { &wxluatype_wxIFFHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIFFHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIFFHandler_delete }}; - -static int LUACALL wxLua_wxIFFHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIFFHandler_constructor[1] = {{ wxLua_wxIFFHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxIFFHandler(); -static int LUACALL wxLua_wxIFFHandler_constructor(lua_State *L) -{ - // call constructor - wxIFFHandler* returns = new wxIFFHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIFFHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIFFHandler); - - return 1; -} - - - - -void wxLua_wxIFFHandler_delete_function(void** p) -{ - wxIFFHandler* o = (wxIFFHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIFFHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIFFHandler_delete, 1, NULL }, - { "wxIFFHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIFFHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxIFFHandler_methodCount = sizeof(wxIFFHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_IFF) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) -// --------------------------------------------------------------------------- -// Bind class wxGIFHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGIFHandler' -int wxluatype_wxGIFHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGIFHandler_delete[] = { &wxluatype_wxGIFHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGIFHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGIFHandler_delete }}; - -static int LUACALL wxLua_wxGIFHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGIFHandler_constructor[1] = {{ wxLua_wxGIFHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGIFHandler(); -static int LUACALL wxLua_wxGIFHandler_constructor(lua_State *L) -{ - // call constructor - wxGIFHandler* returns = new wxGIFHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGIFHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGIFHandler); - - return 1; -} - - - - -void wxLua_wxGIFHandler_delete_function(void** p) -{ - wxGIFHandler* o = (wxGIFHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGIFHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGIFHandler_delete, 1, NULL }, - { "wxGIFHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGIFHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGIFHandler_methodCount = sizeof(wxGIFHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_GIF) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) -// --------------------------------------------------------------------------- -// Bind class wxJPEGHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxJPEGHandler' -int wxluatype_wxJPEGHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxJPEGHandler_delete[] = { &wxluatype_wxJPEGHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJPEGHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxJPEGHandler_delete }}; - -static int LUACALL wxLua_wxJPEGHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxJPEGHandler_constructor[1] = {{ wxLua_wxJPEGHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxJPEGHandler(); -static int LUACALL wxLua_wxJPEGHandler_constructor(lua_State *L) -{ - // call constructor - wxJPEGHandler* returns = new wxJPEGHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxJPEGHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxJPEGHandler); - - return 1; -} - - - - -void wxLua_wxJPEGHandler_delete_function(void** p) -{ - wxJPEGHandler* o = (wxJPEGHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxJPEGHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxJPEGHandler_delete, 1, NULL }, - { "wxJPEGHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxJPEGHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxJPEGHandler_methodCount = sizeof(wxJPEGHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBJPEG) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) -// --------------------------------------------------------------------------- -// Bind class wxPCXHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPCXHandler' -int wxluatype_wxPCXHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPCXHandler_delete[] = { &wxluatype_wxPCXHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPCXHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPCXHandler_delete }}; - -static int LUACALL wxLua_wxPCXHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPCXHandler_constructor[1] = {{ wxLua_wxPCXHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPCXHandler(); -static int LUACALL wxLua_wxPCXHandler_constructor(lua_State *L) -{ - // call constructor - wxPCXHandler* returns = new wxPCXHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPCXHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPCXHandler); - - return 1; -} - - - - -void wxLua_wxPCXHandler_delete_function(void** p) -{ - wxPCXHandler* o = (wxPCXHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPCXHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPCXHandler_delete, 1, NULL }, - { "wxPCXHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPCXHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPCXHandler_methodCount = sizeof(wxPCXHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PCX) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) -// --------------------------------------------------------------------------- -// Bind class wxPNGHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPNGHandler' -int wxluatype_wxPNGHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPNGHandler_delete[] = { &wxluatype_wxPNGHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPNGHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPNGHandler_delete }}; - -static int LUACALL wxLua_wxPNGHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPNGHandler_constructor[1] = {{ wxLua_wxPNGHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPNGHandler(); -static int LUACALL wxLua_wxPNGHandler_constructor(lua_State *L) -{ - // call constructor - wxPNGHandler* returns = new wxPNGHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPNGHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPNGHandler); - - return 1; -} - - - - -void wxLua_wxPNGHandler_delete_function(void** p) -{ - wxPNGHandler* o = (wxPNGHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPNGHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPNGHandler_delete, 1, NULL }, - { "wxPNGHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPNGHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPNGHandler_methodCount = sizeof(wxPNGHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBPNG) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) -// --------------------------------------------------------------------------- -// Bind class wxPNMHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPNMHandler' -int wxluatype_wxPNMHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPNMHandler_delete[] = { &wxluatype_wxPNMHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPNMHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPNMHandler_delete }}; - -static int LUACALL wxLua_wxPNMHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPNMHandler_constructor[1] = {{ wxLua_wxPNMHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPNMHandler(); -static int LUACALL wxLua_wxPNMHandler_constructor(lua_State *L) -{ - // call constructor - wxPNMHandler* returns = new wxPNMHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPNMHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPNMHandler); - - return 1; -} - - - - -void wxLua_wxPNMHandler_delete_function(void** p) -{ - wxPNMHandler* o = (wxPNMHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPNMHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPNMHandler_delete, 1, NULL }, - { "wxPNMHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPNMHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPNMHandler_methodCount = sizeof(wxPNMHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_PNM) - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) -// --------------------------------------------------------------------------- -// Bind class wxTIFFHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTIFFHandler' -int wxluatype_wxTIFFHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTIFFHandler_delete[] = { &wxluatype_wxTIFFHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTIFFHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTIFFHandler_delete }}; - -static int LUACALL wxLua_wxTIFFHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTIFFHandler_constructor[1] = {{ wxLua_wxTIFFHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTIFFHandler(); -static int LUACALL wxLua_wxTIFFHandler_constructor(lua_State *L) -{ - // call constructor - wxTIFFHandler* returns = new wxTIFFHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTIFFHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTIFFHandler); - - return 1; -} - - - - -void wxLua_wxTIFFHandler_delete_function(void** p) -{ - wxTIFFHandler* o = (wxTIFFHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTIFFHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTIFFHandler_delete, 1, NULL }, - { "wxTIFFHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTIFFHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTIFFHandler_methodCount = sizeof(wxTIFFHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxUSE_LIBTIFF) - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) -// --------------------------------------------------------------------------- -// Bind class wxTGAHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTGAHandler' -int wxluatype_wxTGAHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTGAHandler_delete[] = { &wxluatype_wxTGAHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTGAHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTGAHandler_delete }}; - -static int LUACALL wxLua_wxTGAHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTGAHandler_constructor[1] = {{ wxLua_wxTGAHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTGAHandler(); -static int LUACALL wxLua_wxTGAHandler_constructor(lua_State *L) -{ - // call constructor - wxTGAHandler* returns = new wxTGAHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTGAHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTGAHandler); - - return 1; -} - - - - -void wxLua_wxTGAHandler_delete_function(void** p) -{ - wxTGAHandler* o = (wxTGAHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTGAHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTGAHandler_delete, 1, NULL }, - { "wxTGAHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTGAHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTGAHandler_methodCount = sizeof(wxTGAHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TGA) && (wxLUA_USE_wxImage && wxUSE_IMAGE) - - -#if wxLUA_USE_wxImage && wxUSE_IMAGE -// --------------------------------------------------------------------------- -// Bind class wxXPMHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXPMHandler' -int wxluatype_wxXPMHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXPMHandler_delete[] = { &wxluatype_wxXPMHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXPMHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxXPMHandler_delete }}; - -static int LUACALL wxLua_wxXPMHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXPMHandler_constructor[1] = {{ wxLua_wxXPMHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxXPMHandler(); -static int LUACALL wxLua_wxXPMHandler_constructor(lua_State *L) -{ - // call constructor - wxXPMHandler* returns = new wxXPMHandler(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXPMHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXPMHandler); - - return 1; -} - - - - -void wxLua_wxXPMHandler_delete_function(void** p) -{ - wxXPMHandler* o = (wxXPMHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXPMHandler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxXPMHandler_delete, 1, NULL }, - { "wxXPMHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXPMHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxXPMHandler_methodCount = sizeof(wxXPMHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxImage && wxUSE_IMAGE - - -#if wxLUA_USE_wxArtProvider -// --------------------------------------------------------------------------- -// Bind class wxArtProvider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArtProvider' -int wxluatype_wxArtProvider = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_Delete[] = { &wxluatype_wxArtProvider, NULL }; -static int LUACALL wxLua_wxArtProvider_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_Delete[1] = {{ wxLua_wxArtProvider_Delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxArtProvider_Delete }}; -// static bool Delete(%ungc wxArtProvider *provider); -static int LUACALL wxLua_wxArtProvider_Delete(lua_State *L) -{ - // wxArtProvider provider - wxArtProvider * provider = (wxArtProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArtProvider); - if (wxluaO_isgcobject(L, provider)) wxluaO_undeletegcobject(L, provider); - // call Delete - bool returns = (wxArtProvider::Delete(provider)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) - -#if ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_GetBitmap[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxArtProvider_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_GetBitmap[1] = {{ wxLua_wxArtProvider_GetBitmap, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxArtProvider_GetBitmap }}; -// static wxBitmap GetBitmap(const wxString& id, const wxString& client = wxART_OTHER, const wxSize& size = wxDefaultSize); -static int LUACALL wxLua_wxArtProvider_GetBitmap(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // const wxString client = wxART_OTHER - const wxString client = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxART_OTHER)); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 1); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(wxArtProvider::GetBitmap(id, client, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_GetIcon[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxArtProvider_GetIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_GetIcon[1] = {{ wxLua_wxArtProvider_GetIcon, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 3, s_wxluatypeArray_wxLua_wxArtProvider_GetIcon }}; -// static wxIcon GetIcon(const wxString& id, const wxString& client = wxART_OTHER, const wxSize& size = wxDefaultSize); -static int LUACALL wxLua_wxArtProvider_GetIcon(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // const wxString client = wxART_OTHER - const wxString client = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxART_OTHER)); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 1); - // call GetIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(wxArtProvider::GetIcon(id, client, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_GetSizeHint[] = { &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxArtProvider_GetSizeHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_GetSizeHint[1] = {{ wxLua_wxArtProvider_GetSizeHint, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxArtProvider_GetSizeHint }}; -// static wxSize GetSizeHint(const wxString& client, bool platform_dependent = false); -static int LUACALL wxLua_wxArtProvider_GetSizeHint(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool platform_dependent = false - bool platform_dependent = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // const wxString client - const wxString client = wxlua_getwxStringtype(L, 1); - // call GetSizeHint - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxArtProvider::GetSizeHint(client, platform_dependent)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider))) && (wxLUA_USE_wxArtProvider) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_Insert[] = { &wxluatype_wxArtProvider, NULL }; -static int LUACALL wxLua_wxArtProvider_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_Insert[1] = {{ wxLua_wxArtProvider_Insert, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxArtProvider_Insert }}; -// !%wxchkver_2_9 || %wxcompat_2_8 static void Insert(%ungc wxArtProvider *provider); -static int LUACALL wxLua_wxArtProvider_Insert(lua_State *L) -{ - // wxArtProvider provider - wxArtProvider * provider = (wxArtProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArtProvider); - if (wxluaO_isgcobject(L, provider)) wxluaO_undeletegcobject(L, provider); - // call Insert - wxArtProvider::Insert(provider); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider))) && (wxLUA_USE_wxArtProvider) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider) -static int LUACALL wxLua_wxArtProvider_Pop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_Pop[1] = {{ wxLua_wxArtProvider_Pop, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool Pop(); -static int LUACALL wxLua_wxArtProvider_Pop(lua_State *L) -{ - // call Pop - bool returns = (wxArtProvider::Pop()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_Push[] = { &wxluatype_wxArtProvider, NULL }; -static int LUACALL wxLua_wxArtProvider_Push(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_Push[1] = {{ wxLua_wxArtProvider_Push, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxArtProvider_Push }}; -// static void Push(%ungc wxArtProvider *provider); -static int LUACALL wxLua_wxArtProvider_Push(lua_State *L) -{ - // wxArtProvider provider - wxArtProvider * provider = (wxArtProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArtProvider); - if (wxluaO_isgcobject(L, provider)) wxluaO_undeletegcobject(L, provider); - // call Push - wxArtProvider::Push(provider); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_Remove[] = { &wxluatype_wxArtProvider, NULL }; -static int LUACALL wxLua_wxArtProvider_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_Remove[1] = {{ wxLua_wxArtProvider_Remove, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxArtProvider_Remove }}; -// static bool Remove(%gc wxArtProvider *provider); // FIXME - mem leak if not found -static int LUACALL wxLua_wxArtProvider_Remove(lua_State *L) -{ - // wxArtProvider provider - wxArtProvider * provider = (wxArtProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArtProvider); - if (!wxluaO_isgcobject(L, provider)) wxluaO_addgcobject(L, provider, wxluatype_wxArtProvider); - // call Remove - bool returns = (wxArtProvider::Remove(provider)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) - -#if (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArtProvider_RescaleBitmap[] = { &wxluatype_wxBitmap, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxArtProvider_RescaleBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArtProvider_RescaleBitmap[1] = {{ wxLua_wxArtProvider_RescaleBitmap, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxArtProvider_RescaleBitmap }}; -// %wxchkver_3_1 static void RescaleBitmap(wxBitmap& bmp, const wxSize& sizeNeeded); -static int LUACALL wxLua_wxArtProvider_RescaleBitmap(lua_State *L) -{ - // const wxSize sizeNeeded - const wxSize * sizeNeeded = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // wxBitmap bmp - wxBitmap * bmp = (wxBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBitmap); - // call RescaleBitmap - wxArtProvider::RescaleBitmap(*bmp, *sizeNeeded); - - return 0; -} - -#endif // (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxArtProvider_delete_function(void** p) -{ - wxArtProvider* o = (wxArtProvider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArtProvider_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) - { "Delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_Delete, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) - -#if ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { "GetBitmap", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_GetBitmap, 1, NULL }, -#endif // ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxPointSizeRect) - { "GetIcon", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_GetIcon, 1, NULL }, -#endif // ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxIcon)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) - { "GetSizeHint", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_GetSizeHint, 1, NULL }, -#endif // (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider))) && (wxLUA_USE_wxArtProvider) - { "Insert", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_Insert, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider))) && (wxLUA_USE_wxArtProvider) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider) - { "Pop", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_Pop, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) - { "Push", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_Push, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_Remove, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxArtProvider) - -#if (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { "RescaleBitmap", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArtProvider_RescaleBitmap, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxArtProvider)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxArtProvider_methodCount = sizeof(wxArtProvider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxArtProvider - - -#if wxLUA_USE_wxArtProvider -// --------------------------------------------------------------------------- -// Bind class wxLuaArtProvider -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaArtProvider' -int wxluatype_wxLuaArtProvider = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaArtProvider_CreateBitmap[] = { &wxluatype_wxLuaArtProvider, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxLuaArtProvider_CreateBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaArtProvider_CreateBitmap[1] = {{ wxLua_wxLuaArtProvider_CreateBitmap, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxLuaArtProvider_CreateBitmap }}; -// virtual wxBitmap CreateBitmap(const wxString& id, const wxString& client, const wxSize& size); -static int LUACALL wxLua_wxLuaArtProvider_CreateBitmap(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // const wxString client - const wxString client = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxLuaArtProvider * self = (wxLuaArtProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaArtProvider); - // call CreateBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->CreateBitmap(id, client, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaArtProvider_DoGetSizeHint[] = { &wxluatype_wxLuaArtProvider, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaArtProvider_DoGetSizeHint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaArtProvider_DoGetSizeHint[1] = {{ wxLua_wxLuaArtProvider_DoGetSizeHint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLuaArtProvider_DoGetSizeHint }}; -// virtual wxSize DoGetSizeHint(const wxString& client); // { return GetSizeHint(client, true); } -static int LUACALL wxLua_wxLuaArtProvider_DoGetSizeHint(lua_State *L) -{ - // const wxString client - const wxString client = wxlua_getwxStringtype(L, 2); - // get this - wxLuaArtProvider * self = (wxLuaArtProvider *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaArtProvider); - // call DoGetSizeHint - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->DoGetSizeHint(client)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaArtProvider_delete[] = { &wxluatype_wxLuaArtProvider, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaArtProvider_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaArtProvider_delete }}; - -static int LUACALL wxLua_wxLuaArtProvider_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaArtProvider_constructor[1] = {{ wxLua_wxLuaArtProvider_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxLuaArtProvider_constructor -// wxLuaArtprovider() -static int LUACALL wxLua_wxLuaArtProvider_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // call constructor - wxLuaArtProvider *returns = new wxLuaArtProvider(wxlState); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaArtProvider); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaArtProvider); - - return 1; -} - - - - - -void wxLua_wxLuaArtProvider_delete_function(void** p) -{ - wxLuaArtProvider* o = (wxLuaArtProvider*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaArtProvider_methods[] = { -#if ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - { "CreateBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaArtProvider_CreateBitmap, 1, NULL }, -#endif // ((wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) - { "DoGetSizeHint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaArtProvider_DoGetSizeHint, 1, NULL }, -#endif // (wxLUA_USE_wxArtProvider) && (wxLUA_USE_wxPointSizeRect) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaArtProvider_delete, 1, NULL }, - { "wxLuaArtProvider", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaArtProvider_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaArtProvider_methodCount = sizeof(wxLuaArtProvider_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxArtProvider - diff --git a/wxLua/modules/wxbind/src/wxcore_mdi.cpp b/wxLua/modules/wxbind/src/wxcore_mdi.cpp deleted file mode 100644 index 6832e2a4..00000000 --- a/wxLua/modules/wxbind/src/wxcore_mdi.cpp +++ /dev/null @@ -1,4261 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_mdi.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxMDIClientWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMDIClientWindow' -int wxluatype_wxMDIClientWindow = WXLUA_TUNKNOWN; - - - -void wxLua_wxMDIClientWindow_delete_function(void** p) -{ - wxMDIClientWindow* o = (wxMDIClientWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMDIClientWindow_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxMDIClientWindow_methodCount = sizeof(wxMDIClientWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxMDIParentFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMDIParentFrame' -int wxluatype_wxMDIParentFrame = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_ActivateNext[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_ActivateNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_ActivateNext[1] = {{ wxLua_wxMDIParentFrame_ActivateNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_ActivateNext }}; -// void ActivateNext(); -static int LUACALL wxLua_wxMDIParentFrame_ActivateNext(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call ActivateNext - self->ActivateNext(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_ActivatePrevious[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_ActivatePrevious(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_ActivatePrevious[1] = {{ wxLua_wxMDIParentFrame_ActivatePrevious, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_ActivatePrevious }}; -// void ActivatePrevious(); -static int LUACALL wxLua_wxMDIParentFrame_ActivatePrevious(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call ActivatePrevious - self->ActivatePrevious(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_ArrangeIcons[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_ArrangeIcons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_ArrangeIcons[1] = {{ wxLua_wxMDIParentFrame_ArrangeIcons, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_ArrangeIcons }}; -// void ArrangeIcons(); -static int LUACALL wxLua_wxMDIParentFrame_ArrangeIcons(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call ArrangeIcons - self->ArrangeIcons(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_Cascade[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_Cascade(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_Cascade[1] = {{ wxLua_wxMDIParentFrame_Cascade, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_Cascade }}; -// void Cascade(); -static int LUACALL wxLua_wxMDIParentFrame_Cascade(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call Cascade - self->Cascade(); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_Create[] = { &wxluatype_wxMDIParentFrame, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_Create[1] = {{ wxLua_wxMDIParentFrame_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxMDIParentFrame_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = "wxMDIParentFrame"); -static int LUACALL wxLua_wxMDIParentFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMDIParentFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxMDIParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call Create - bool returns = (self->Create(parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_GetActiveChild[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_GetActiveChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_GetActiveChild[1] = {{ wxLua_wxMDIParentFrame_GetActiveChild, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_GetActiveChild }}; -// wxMDIChildFrame* GetActiveChild() const; -static int LUACALL wxLua_wxMDIParentFrame_GetActiveChild(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call GetActiveChild - wxMDIChildFrame* returns = (wxMDIChildFrame*)self->GetActiveChild(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMDIChildFrame); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_GetClientWindow[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_GetClientWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_GetClientWindow[1] = {{ wxLua_wxMDIParentFrame_GetClientWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_GetClientWindow }}; -// wxMDIClientWindow* GetClientWindow() const; -static int LUACALL wxLua_wxMDIParentFrame_GetClientWindow(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call GetClientWindow - wxMDIClientWindow* returns = (wxMDIClientWindow*)self->GetClientWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMDIClientWindow); - - return 1; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_GetWindowMenu[] = { &wxluatype_wxMDIParentFrame, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_GetWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_GetWindowMenu[1] = {{ wxLua_wxMDIParentFrame_GetWindowMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIParentFrame_GetWindowMenu }}; -// %win wxMenu* GetWindowMenu() const; -static int LUACALL wxLua_wxMDIParentFrame_GetWindowMenu(lua_State *L) -{ - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call GetWindowMenu - wxMenu* returns = (wxMenu*)self->GetWindowMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_SetWindowMenu[] = { &wxluatype_wxMDIParentFrame, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_SetWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_SetWindowMenu[1] = {{ wxLua_wxMDIParentFrame_SetWindowMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMDIParentFrame_SetWindowMenu }}; -// %win void SetWindowMenu(%ungc wxMenu* menu); -static int LUACALL wxLua_wxMDIParentFrame_SetWindowMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - if (wxluaO_isgcobject(L, menu)) wxluaO_undeletegcobject(L, menu); - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call SetWindowMenu - self->SetWindowMenu(menu); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_Tile[] = { &wxluatype_wxMDIParentFrame, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_Tile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_Tile[1] = {{ wxLua_wxMDIParentFrame_Tile, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMDIParentFrame_Tile }}; -// void Tile(wxOrientation orient = wxHORIZONTAL); -static int LUACALL wxLua_wxMDIParentFrame_Tile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxOrientation orient = wxHORIZONTAL - wxOrientation orient = (argCount >= 2 ? (wxOrientation)wxlua_getenumtype(L, 2) : wxHORIZONTAL); - // get this - wxMDIParentFrame * self = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call Tile - self->Tile(orient); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIParentFrame_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMDIParentFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_constructor1[1] = {{ wxLua_wxMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxMDIParentFrame_constructor1 }}; -// wxMDIParentFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL, const wxString& name = "wxMDIParentFrame"); -static int LUACALL wxLua_wxMDIParentFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMDIParentFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxMDIParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxMDIParentFrame* returns = new wxMDIParentFrame(parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMDIParentFrame); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxMDIParentFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_constructor[1] = {{ wxLua_wxMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMDIParentFrame(); -static int LUACALL wxLua_wxMDIParentFrame_constructor(lua_State *L) -{ - // call constructor - wxMDIParentFrame* returns = new wxMDIParentFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMDIParentFrame); - - return 1; -} - - - - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIParentFrame_constructor_overload[] = -{ - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxMDIParentFrame_constructor1 }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxMDIParentFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMDIParentFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -void wxLua_wxMDIParentFrame_delete_function(void** p) -{ - wxMDIParentFrame* o = (wxMDIParentFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMDIParentFrame_methods[] = { - { "ActivateNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_ActivateNext, 1, NULL }, - { "ActivatePrevious", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_ActivatePrevious, 1, NULL }, - { "ArrangeIcons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_ArrangeIcons, 1, NULL }, - { "Cascade", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_Cascade, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_Create, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - - { "GetActiveChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_GetActiveChild, 1, NULL }, - { "GetClientWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_GetClientWindow, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetWindowMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_GetWindowMenu, 1, NULL }, - { "SetWindowMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_SetWindowMenu, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Tile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIParentFrame_Tile, 1, NULL }, - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "wxMDIParentFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMDIParentFrame_constructor_overload, s_wxluafunc_wxLua_wxMDIParentFrame_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxMDIParentFrame_methodCount = sizeof(wxMDIParentFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxMDIChildFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMDIChildFrame' -int wxluatype_wxMDIChildFrame = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIChildFrame_Activate[] = { &wxluatype_wxMDIChildFrame, NULL }; -static int LUACALL wxLua_wxMDIChildFrame_Activate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_Activate[1] = {{ wxLua_wxMDIChildFrame_Activate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIChildFrame_Activate }}; -// void Activate(); -static int LUACALL wxLua_wxMDIChildFrame_Activate(lua_State *L) -{ - // get this - wxMDIChildFrame * self = (wxMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIChildFrame); - // call Activate - self->Activate(); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIChildFrame_Create[] = { &wxluatype_wxMDIChildFrame, &wxluatype_wxMDIParentFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMDIChildFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_Create[1] = {{ wxLua_wxMDIChildFrame_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxMDIChildFrame_Create }}; -// bool Create(wxMDIParentFrame* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxMDIChildFrame"); -static int LUACALL wxLua_wxMDIChildFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMDIChildFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxMDIChildFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxMDIParentFrame parent - wxMDIParentFrame * parent = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMDIParentFrame); - // get this - wxMDIChildFrame * self = (wxMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIChildFrame); - // call Create - bool returns = (self->Create(parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -#if (defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIChildFrame_Maximize[] = { &wxluatype_wxMDIChildFrame, NULL }; -static int LUACALL wxLua_wxMDIChildFrame_Maximize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_Maximize[1] = {{ wxLua_wxMDIChildFrame_Maximize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIChildFrame_Maximize }}; -// %win void Maximize(); -static int LUACALL wxLua_wxMDIChildFrame_Maximize(lua_State *L) -{ - // get this - wxMDIChildFrame * self = (wxMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIChildFrame); - // call Maximize - self->Maximize(); - - return 0; -} - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIChildFrame_Restore[] = { &wxluatype_wxMDIChildFrame, NULL }; -static int LUACALL wxLua_wxMDIChildFrame_Restore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_Restore[1] = {{ wxLua_wxMDIChildFrame_Restore, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMDIChildFrame_Restore }}; -// void Restore(); -static int LUACALL wxLua_wxMDIChildFrame_Restore(lua_State *L) -{ - // get this - wxMDIChildFrame * self = (wxMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIChildFrame); - // call Restore - self->Restore(); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMDIChildFrame_constructor1[] = { &wxluatype_wxMDIParentFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMDIChildFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_constructor1[1] = {{ wxLua_wxMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxMDIChildFrame_constructor1 }}; -// wxMDIChildFrame(wxMDIParentFrame* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxMDIChildFrame"); -static int LUACALL wxLua_wxMDIChildFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMDIChildFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxMDIChildFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxMDIParentFrame parent - wxMDIParentFrame * parent = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMDIParentFrame); - // call constructor - wxMDIChildFrame* returns = new wxMDIChildFrame(parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMDIChildFrame); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxMDIChildFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_constructor[1] = {{ wxLua_wxMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMDIChildFrame(); -static int LUACALL wxLua_wxMDIChildFrame_constructor(lua_State *L) -{ - // call constructor - wxMDIChildFrame* returns = new wxMDIChildFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMDIChildFrame); - - return 1; -} - - - - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMDIChildFrame_constructor_overload[] = -{ - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxMDIChildFrame_constructor1 }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxMDIChildFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMDIChildFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -void wxLua_wxMDIChildFrame_delete_function(void** p) -{ - wxMDIChildFrame* o = (wxMDIChildFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMDIChildFrame_methods[] = { - { "Activate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIChildFrame_Activate, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIChildFrame_Create, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -#if (defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "Maximize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIChildFrame_Maximize, 1, NULL }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { "Restore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMDIChildFrame_Restore, 1, NULL }, - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "wxMDIChildFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMDIChildFrame_constructor_overload, s_wxluafunc_wxLua_wxMDIChildFrame_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxMDIChildFrame_methodCount = sizeof(wxMDIChildFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocMDIParentFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocMDIParentFrame' -int wxluatype_wxDocMDIParentFrame = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIParentFrame_Create[] = { &wxluatype_wxDocMDIParentFrame, &wxluatype_wxDocManager, &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocMDIParentFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_Create[1] = {{ wxLua_wxDocMDIParentFrame_Create, WXLUAMETHOD_METHOD, 5, 9, s_wxluatypeArray_wxLua_wxDocMDIParentFrame_Create }}; -// bool Create(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIParentFrame"); -static int LUACALL wxLua_wxDocMDIParentFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDocMDIParentFrame" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxDocMDIParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 5); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 4); - // wxFrame parent - wxFrame * parent = (wxFrame *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFrame); - // wxDocManager manager - wxDocManager * manager = (wxDocManager *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocManager); - // get this - wxDocMDIParentFrame * self = (wxDocMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIParentFrame); - // call Create - bool returns = (self->Create(manager, parent, id, title, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIParentFrame_GetDocumentManager[] = { &wxluatype_wxDocMDIParentFrame, NULL }; -static int LUACALL wxLua_wxDocMDIParentFrame_GetDocumentManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_GetDocumentManager[1] = {{ wxLua_wxDocMDIParentFrame_GetDocumentManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocMDIParentFrame_GetDocumentManager }}; -// wxDocManager *GetDocumentManager() const; -static int LUACALL wxLua_wxDocMDIParentFrame_GetDocumentManager(lua_State *L) -{ - // get this - wxDocMDIParentFrame * self = (wxDocMDIParentFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIParentFrame); - // call GetDocumentManager - wxDocManager* returns = (wxDocManager*)self->GetDocumentManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocManager); - - return 1; -} - - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIParentFrame_constructor1[] = { &wxluatype_wxDocManager, &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocMDIParentFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor1[1] = {{ wxLua_wxDocMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatypeArray_wxLua_wxDocMDIParentFrame_constructor1 }}; -// wxDocMDIParentFrame(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIParentFrame"); -static int LUACALL wxLua_wxDocMDIParentFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDocMDIParentFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxDocMDIParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxFrame parent - wxFrame * parent = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // wxDocManager manager - wxDocManager * manager = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call constructor - wxDocMDIParentFrame* returns = new wxDocMDIParentFrame(manager, parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocMDIParentFrame); - - return 1; -} - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxDocMDIParentFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor[1] = {{ wxLua_wxDocMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDocMDIParentFrame(); -static int LUACALL wxLua_wxDocMDIParentFrame_constructor(lua_State *L) -{ - // call constructor - wxDocMDIParentFrame* returns = new wxDocMDIParentFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocMDIParentFrame); - - return 1; -} - - - - -#if (((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload[] = -{ - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDocMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatypeArray_wxLua_wxDocMDIParentFrame_constructor1 }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDocMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -void wxLua_wxDocMDIParentFrame_delete_function(void** p) -{ - wxDocMDIParentFrame* o = (wxDocMDIParentFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocMDIParentFrame_methods[] = { -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIParentFrame_Create, 1, NULL }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - { "GetDocumentManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIParentFrame_GetDocumentManager, 1, NULL }, - -#if (((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "wxDocMDIParentFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload, s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxDocMDIParentFrame_methodCount = sizeof(wxDocMDIParentFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocMDIChildFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocMDIChildFrame' -int wxluatype_wxDocMDIChildFrame = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIChildFrame_Create[] = { &wxluatype_wxDocMDIChildFrame, &wxluatype_wxDocument, &wxluatype_wxView, &wxluatype_wxMDIParentFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocMDIChildFrame_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_Create[1] = {{ wxLua_wxDocMDIChildFrame_Create, WXLUAMETHOD_METHOD, 6, 10, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_Create }}; -// bool Create(wxDocument *doc, wxView *view, wxMDIParentFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long type = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIChildFrame"); -static int LUACALL wxLua_wxDocMDIChildFrame_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDocMDIChildFrame" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxDocMDIChildFrame"))); - // long type = wxDEFAULT_FRAME_STYLE - long type = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 8 ? (const wxSize *)wxluaT_getuserdatatype(L, 8, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 6); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 5); - // wxMDIParentFrame frame - wxMDIParentFrame * frame = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 4, wxluatype_wxMDIParentFrame); - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 3, wxluatype_wxView); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIChildFrame); - // call Create - bool returns = (self->Create(doc, view, frame, id, title, *pos, *size, type, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIChildFrame_GetDocument[] = { &wxluatype_wxDocMDIChildFrame, NULL }; -static int LUACALL wxLua_wxDocMDIChildFrame_GetDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_GetDocument[1] = {{ wxLua_wxDocMDIChildFrame_GetDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_GetDocument }}; -// wxDocument *GetDocument() const; -static int LUACALL wxLua_wxDocMDIChildFrame_GetDocument(lua_State *L) -{ - // get this - wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIChildFrame); - // call GetDocument - wxDocument* returns = (wxDocument*)self->GetDocument(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIChildFrame_GetView[] = { &wxluatype_wxDocMDIChildFrame, NULL }; -static int LUACALL wxLua_wxDocMDIChildFrame_GetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_GetView[1] = {{ wxLua_wxDocMDIChildFrame_GetView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_GetView }}; -// wxView *GetView() const; -static int LUACALL wxLua_wxDocMDIChildFrame_GetView(lua_State *L) -{ - // get this - wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIChildFrame); - // call GetView - wxView* returns = (wxView*)self->GetView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxView); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIChildFrame_SetDocument[] = { &wxluatype_wxDocMDIChildFrame, &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocMDIChildFrame_SetDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_SetDocument[1] = {{ wxLua_wxDocMDIChildFrame_SetDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_SetDocument }}; -// void SetDocument(wxDocument *doc); -static int LUACALL wxLua_wxDocMDIChildFrame_SetDocument(lua_State *L) -{ - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIChildFrame); - // call SetDocument - self->SetDocument(doc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIChildFrame_SetView[] = { &wxluatype_wxDocMDIChildFrame, &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxDocMDIChildFrame_SetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_SetView[1] = {{ wxLua_wxDocMDIChildFrame_SetView, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_SetView }}; -// void SetView(wxView *view); -static int LUACALL wxLua_wxDocMDIChildFrame_SetView(lua_State *L) -{ - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocMDIChildFrame); - // call SetView - self->SetView(view); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocMDIChildFrame_constructor1[] = { &wxluatype_wxDocument, &wxluatype_wxView, &wxluatype_wxMDIParentFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocMDIChildFrame_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor1[1] = {{ wxLua_wxDocMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 9, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_constructor1 }}; -// wxDocMDIChildFrame(wxDocument *doc, wxView *view, wxMDIParentFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,long type = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIChildFrame"); -static int LUACALL wxLua_wxDocMDIChildFrame_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDocMDIChildFrame" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxDocMDIChildFrame"))); - // long type = wxDEFAULT_FRAME_STYLE - long type = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 5); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 4); - // wxMDIParentFrame frame - wxMDIParentFrame * frame = (wxMDIParentFrame *)wxluaT_getuserdatatype(L, 3, wxluatype_wxMDIParentFrame); - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call constructor - wxDocMDIChildFrame* returns = new wxDocMDIChildFrame(doc, view, frame, id, title, *pos, *size, type, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocMDIChildFrame); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxDocMDIChildFrame_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor[1] = {{ wxLua_wxDocMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDocMDIChildFrame(); -static int LUACALL wxLua_wxDocMDIChildFrame_constructor(lua_State *L) -{ - // call constructor - wxDocMDIChildFrame* returns = new wxDocMDIChildFrame(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocMDIChildFrame); - - return 1; -} - - - - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload[] = -{ - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDocMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 9, s_wxluatypeArray_wxLua_wxDocMDIChildFrame_constructor1 }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxDocMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -void wxLua_wxDocMDIChildFrame_delete_function(void** p) -{ - wxDocMDIChildFrame* o = (wxDocMDIChildFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocMDIChildFrame_methods[] = { -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_Create, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) - - { "GetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_GetDocument, 1, NULL }, - { "GetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_GetView, 1, NULL }, - { "SetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_SetDocument, 1, NULL }, - { "SetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_SetView, 1, NULL }, - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "wxDocMDIChildFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload, s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxDocMDIChildFrame_methodCount = sizeof(wxDocMDIChildFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocChildFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocChildFrame' -int wxluatype_wxDocChildFrame = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocChildFrame_GetDocument[] = { &wxluatype_wxDocChildFrame, NULL }; -static int LUACALL wxLua_wxDocChildFrame_GetDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocChildFrame_GetDocument[1] = {{ wxLua_wxDocChildFrame_GetDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocChildFrame_GetDocument }}; -// wxDocument* GetDocument() const; -static int LUACALL wxLua_wxDocChildFrame_GetDocument(lua_State *L) -{ - // get this - wxDocChildFrame * self = (wxDocChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocChildFrame); - // call GetDocument - wxDocument* returns = (wxDocument*)self->GetDocument(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocChildFrame_GetView[] = { &wxluatype_wxDocChildFrame, NULL }; -static int LUACALL wxLua_wxDocChildFrame_GetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocChildFrame_GetView[1] = {{ wxLua_wxDocChildFrame_GetView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocChildFrame_GetView }}; -// wxView* GetView() const; -static int LUACALL wxLua_wxDocChildFrame_GetView(lua_State *L) -{ - // get this - wxDocChildFrame * self = (wxDocChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocChildFrame); - // call GetView - wxView* returns = (wxView*)self->GetView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxView); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocChildFrame_SetDocument[] = { &wxluatype_wxDocChildFrame, &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocChildFrame_SetDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocChildFrame_SetDocument[1] = {{ wxLua_wxDocChildFrame_SetDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocChildFrame_SetDocument }}; -// void SetDocument(wxDocument *doc); -static int LUACALL wxLua_wxDocChildFrame_SetDocument(lua_State *L) -{ - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocChildFrame * self = (wxDocChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocChildFrame); - // call SetDocument - self->SetDocument(doc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocChildFrame_SetView[] = { &wxluatype_wxDocChildFrame, &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxDocChildFrame_SetView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocChildFrame_SetView[1] = {{ wxLua_wxDocChildFrame_SetView, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocChildFrame_SetView }}; -// void SetView(wxView *view); -static int LUACALL wxLua_wxDocChildFrame_SetView(lua_State *L) -{ - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxDocChildFrame * self = (wxDocChildFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocChildFrame); - // call SetView - self->SetView(view); - - return 0; -} - - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocChildFrame_constructor[] = { &wxluatype_wxDocument, &wxluatype_wxView, &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocChildFrame_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocChildFrame_constructor[1] = {{ wxLua_wxDocChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 9, s_wxluatypeArray_wxLua_wxDocChildFrame_constructor }}; -// wxDocChildFrame(wxDocument* doc, wxView* view, wxFrame* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocChildFrame"); -static int LUACALL wxLua_wxDocChildFrame_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDocChildFrame" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxDocChildFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 5); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 4); - // wxFrame parent - wxFrame * parent = (wxFrame *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFrame); - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call constructor - wxDocChildFrame* returns = new wxDocChildFrame(doc, view, parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocChildFrame); - - return 1; -} - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxDocChildFrame_delete_function(void** p) -{ - wxDocChildFrame* o = (wxDocChildFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocChildFrame_methods[] = { - { "GetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocChildFrame_GetDocument, 1, NULL }, - { "GetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocChildFrame_GetView, 1, NULL }, - { "SetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocChildFrame_SetDocument, 1, NULL }, - { "SetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocChildFrame_SetView, 1, NULL }, - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - { "wxDocChildFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocChildFrame_constructor, 1, NULL }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxDocChildFrame_methodCount = sizeof(wxDocChildFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocManager -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocManager' -int wxluatype_wxDocManager = WXLUA_TUNKNOWN; - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_ActivateView1[] = { &wxluatype_wxDocManager, &wxluatype_wxView, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDocManager_ActivateView1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView1[1] = {{ wxLua_wxDocManager_ActivateView1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDocManager_ActivateView1 }}; -// !%wxchkver_2_6 void ActivateView(wxView* view, bool activate, bool deleting); -static int LUACALL wxLua_wxDocManager_ActivateView1(lua_State *L) -{ - // bool deleting - bool deleting = wxlua_getbooleantype(L, 4); - // bool activate - bool activate = wxlua_getbooleantype(L, 3); - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call ActivateView - self->ActivateView(view, activate, deleting); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_ActivateView[] = { &wxluatype_wxDocManager, &wxluatype_wxView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDocManager_ActivateView(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView[1] = {{ wxLua_wxDocManager_ActivateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDocManager_ActivateView }}; -// %wxchkver_2_6 void ActivateView(wxView* view, bool activate); -static int LUACALL wxLua_wxDocManager_ActivateView(lua_State *L) -{ - // bool activate - bool activate = wxlua_getbooleantype(L, 3); - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call ActivateView - self->ActivateView(view, activate); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_AddDocument[] = { &wxluatype_wxDocManager, &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocManager_AddDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_AddDocument[1] = {{ wxLua_wxDocManager_AddDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_AddDocument }}; -// void AddDocument(wxDocument *doc); -static int LUACALL wxLua_wxDocManager_AddDocument(lua_State *L) -{ - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call AddDocument - self->AddDocument(doc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_AddFileToHistory[] = { &wxluatype_wxDocManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocManager_AddFileToHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_AddFileToHistory[1] = {{ wxLua_wxDocManager_AddFileToHistory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_AddFileToHistory }}; -// void AddFileToHistory(const wxString& filename); -static int LUACALL wxLua_wxDocManager_AddFileToHistory(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call AddFileToHistory - self->AddFileToHistory(filename); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_AssociateTemplate[] = { &wxluatype_wxDocManager, &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocManager_AssociateTemplate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_AssociateTemplate[1] = {{ wxLua_wxDocManager_AssociateTemplate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_AssociateTemplate }}; -// void AssociateTemplate(wxDocTemplate *temp); -static int LUACALL wxLua_wxDocManager_AssociateTemplate(lua_State *L) -{ - // wxDocTemplate temp - wxDocTemplate * temp = (wxDocTemplate *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocTemplate); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call AssociateTemplate - self->AssociateTemplate(temp); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_CloseDocuments[] = { &wxluatype_wxDocManager, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDocManager_CloseDocuments(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_CloseDocuments[1] = {{ wxLua_wxDocManager_CloseDocuments, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxDocManager_CloseDocuments }}; -// bool CloseDocuments(bool force = true); -static int LUACALL wxLua_wxDocManager_CloseDocuments(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool force = true - bool force = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call CloseDocuments - bool returns = (self->CloseDocuments(force)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_CreateDocument[] = { &wxluatype_wxDocManager, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocManager_CreateDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_CreateDocument[1] = {{ wxLua_wxDocManager_CreateDocument, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDocManager_CreateDocument }}; -// wxDocument* CreateDocument(const wxString& path, long flags); -static int LUACALL wxLua_wxDocManager_CreateDocument(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 3); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call CreateDocument - wxDocument* returns = (wxDocument*)self->CreateDocument(path, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_CreateView[] = { &wxluatype_wxDocManager, &wxluatype_wxDocument, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocManager_CreateView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_CreateView[1] = {{ wxLua_wxDocManager_CreateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDocManager_CreateView }}; -// wxView* CreateView(wxDocument*doc, long flags); -static int LUACALL wxLua_wxDocManager_CreateView(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 3); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call CreateView - wxView* returns = (wxView*)self->CreateView(doc, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxView); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_DisassociateTemplate[] = { &wxluatype_wxDocManager, &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocManager_DisassociateTemplate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_DisassociateTemplate[1] = {{ wxLua_wxDocManager_DisassociateTemplate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_DisassociateTemplate }}; -// void DisassociateTemplate(wxDocTemplate *temp); -static int LUACALL wxLua_wxDocManager_DisassociateTemplate(lua_State *L) -{ - // wxDocTemplate temp - wxDocTemplate * temp = (wxDocTemplate *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocTemplate); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call DisassociateTemplate - self->DisassociateTemplate(temp); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FileHistoryAddFilesToMenu1[] = { &wxluatype_wxDocManager, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxDocManager_FileHistoryAddFilesToMenu1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu1[1] = {{ wxLua_wxDocManager_FileHistoryAddFilesToMenu1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryAddFilesToMenu1 }}; -// void FileHistoryAddFilesToMenu(wxMenu* menu); -static int LUACALL wxLua_wxDocManager_FileHistoryAddFilesToMenu1(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FileHistoryAddFilesToMenu - self->FileHistoryAddFilesToMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FileHistoryAddFilesToMenu[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_FileHistoryAddFilesToMenu(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu[1] = {{ wxLua_wxDocManager_FileHistoryAddFilesToMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryAddFilesToMenu }}; -// void FileHistoryAddFilesToMenu(); -static int LUACALL wxLua_wxDocManager_FileHistoryAddFilesToMenu(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FileHistoryAddFilesToMenu - self->FileHistoryAddFilesToMenu(); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FileHistoryLoad[] = { &wxluatype_wxDocManager, &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxDocManager_FileHistoryLoad(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistoryLoad[1] = {{ wxLua_wxDocManager_FileHistoryLoad, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryLoad }}; -// void FileHistoryLoad(wxConfigBase& config); -static int LUACALL wxLua_wxDocManager_FileHistoryLoad(lua_State *L) -{ - // wxConfigBase config - wxConfigBase * config = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FileHistoryLoad - self->FileHistoryLoad(*config); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FileHistoryRemoveMenu[] = { &wxluatype_wxDocManager, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxDocManager_FileHistoryRemoveMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistoryRemoveMenu[1] = {{ wxLua_wxDocManager_FileHistoryRemoveMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryRemoveMenu }}; -// void FileHistoryRemoveMenu(wxMenu* menu); -static int LUACALL wxLua_wxDocManager_FileHistoryRemoveMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FileHistoryRemoveMenu - self->FileHistoryRemoveMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FileHistorySave[] = { &wxluatype_wxDocManager, &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxDocManager_FileHistorySave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistorySave[1] = {{ wxLua_wxDocManager_FileHistorySave, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FileHistorySave }}; -// void FileHistorySave(wxConfigBase& resourceFile); -static int LUACALL wxLua_wxDocManager_FileHistorySave(lua_State *L) -{ - // wxConfigBase resourceFile - wxConfigBase * resourceFile = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FileHistorySave - self->FileHistorySave(*resourceFile); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FileHistoryUseMenu[] = { &wxluatype_wxDocManager, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxDocManager_FileHistoryUseMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistoryUseMenu[1] = {{ wxLua_wxDocManager_FileHistoryUseMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryUseMenu }}; -// void FileHistoryUseMenu(wxMenu* menu); -static int LUACALL wxLua_wxDocManager_FileHistoryUseMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FileHistoryUseMenu - self->FileHistoryUseMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_FindTemplateForPath[] = { &wxluatype_wxDocManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocManager_FindTemplateForPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FindTemplateForPath[1] = {{ wxLua_wxDocManager_FindTemplateForPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FindTemplateForPath }}; -// wxDocTemplate * FindTemplateForPath(const wxString& path); -static int LUACALL wxLua_wxDocManager_FindTemplateForPath(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call FindTemplateForPath - wxDocTemplate* returns = (wxDocTemplate*)self->FindTemplateForPath(path); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocTemplate); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetCurrentDocument[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetCurrentDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetCurrentDocument[1] = {{ wxLua_wxDocManager_GetCurrentDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetCurrentDocument }}; -// wxDocument * GetCurrentDocument(); -static int LUACALL wxLua_wxDocManager_GetCurrentDocument(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetCurrentDocument - wxDocument* returns = (wxDocument*)self->GetCurrentDocument(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetCurrentView[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetCurrentView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetCurrentView[1] = {{ wxLua_wxDocManager_GetCurrentView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetCurrentView }}; -// wxView * GetCurrentView(); -static int LUACALL wxLua_wxDocManager_GetCurrentView(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetCurrentView - wxView* returns = (wxView*)self->GetCurrentView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxView); - - return 1; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetDocuments[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetDocuments(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetDocuments[1] = {{ wxLua_wxDocManager_GetDocuments, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetDocuments }}; -// %override wxLua_wxDocManager_GetDocuments -// wxList& GetDocuments() -static int LUACALL wxLua_wxDocManager_GetDocuments(lua_State *L) -{ - // get this - wxDocManager *self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetDocuments - wxList &docs = self->GetDocuments(); - wxList *returns = new wxList(docs); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - // return the number of parameters - return 1; -} - - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetFileHistory[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetFileHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetFileHistory[1] = {{ wxLua_wxDocManager_GetFileHistory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetFileHistory }}; -// wxFileHistory * GetFileHistory(); -static int LUACALL wxLua_wxDocManager_GetFileHistory(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetFileHistory - wxFileHistory* returns = (wxFileHistory*)self->GetFileHistory(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileHistory); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetHistoryFilesCount[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetHistoryFilesCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetHistoryFilesCount[1] = {{ wxLua_wxDocManager_GetHistoryFilesCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetHistoryFilesCount }}; -// %wxchkver_2_6 size_t GetHistoryFilesCount() const; -static int LUACALL wxLua_wxDocManager_GetHistoryFilesCount(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetHistoryFilesCount - size_t returns = (self->GetHistoryFilesCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetLastDirectory[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetLastDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetLastDirectory[1] = {{ wxLua_wxDocManager_GetLastDirectory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetLastDirectory }}; -// wxString GetLastDirectory() const; -static int LUACALL wxLua_wxDocManager_GetLastDirectory(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetLastDirectory - wxString returns = (self->GetLastDirectory()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetMaxDocsOpen[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetMaxDocsOpen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetMaxDocsOpen[1] = {{ wxLua_wxDocManager_GetMaxDocsOpen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetMaxDocsOpen }}; -// int GetMaxDocsOpen(); -static int LUACALL wxLua_wxDocManager_GetMaxDocsOpen(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetMaxDocsOpen - int returns = (self->GetMaxDocsOpen()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetNoHistoryFiles[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetNoHistoryFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetNoHistoryFiles[1] = {{ wxLua_wxDocManager_GetNoHistoryFiles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetNoHistoryFiles }}; -// !%wxchkver_2_6 int GetNoHistoryFiles(); -static int LUACALL wxLua_wxDocManager_GetNoHistoryFiles(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetNoHistoryFiles - int returns = (self->GetNoHistoryFiles()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_GetTemplates[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_GetTemplates(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_GetTemplates[1] = {{ wxLua_wxDocManager_GetTemplates, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_GetTemplates }}; -// %override wxLua_wxDocManager_GetTemplates -// wxList& GetTemplates() -static int LUACALL wxLua_wxDocManager_GetTemplates(lua_State *L) -{ - // get this - wxDocManager *self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call GetDocuments - wxList &docs = self->GetTemplates(); - wxList *returns = new wxList(docs); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - // return the number of parameters - return 1; -} - - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_Initialize[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_Initialize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_Initialize[1] = {{ wxLua_wxDocManager_Initialize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_Initialize }}; -// bool Initialize(); -static int LUACALL wxLua_wxDocManager_Initialize(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call Initialize - bool returns = (self->Initialize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_MakeDefaultName[] = { &wxluatype_wxDocManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocManager_MakeDefaultName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_MakeDefaultName[1] = {{ wxLua_wxDocManager_MakeDefaultName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_MakeDefaultName }}; -// %override wxLua_wxDocManager_MakeDefaultName -// bool MakeDefaultName(wxString& buf) -static int LUACALL wxLua_wxDocManager_MakeDefaultName(lua_State *L) -{ - // wxString buf - wxString buf = wxlua_getwxStringtype(L, 2); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call MakeDefaultName - bool returns = self->MakeDefaultName(buf); - // push the result flag - lua_pushboolean(L, returns); - wxlua_pushwxString(L, buf); - - return 2; -} - - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnCreateFileHistory[] = { &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocManager_OnCreateFileHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnCreateFileHistory[1] = {{ wxLua_wxDocManager_OnCreateFileHistory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_OnCreateFileHistory }}; -// wxFileHistory* OnCreateFileHistory(); -static int LUACALL wxLua_wxDocManager_OnCreateFileHistory(lua_State *L) -{ - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnCreateFileHistory - wxFileHistory* returns = (wxFileHistory*)self->OnCreateFileHistory(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileHistory); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileClose[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileClose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileClose[1] = {{ wxLua_wxDocManager_OnFileClose, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileClose }}; -// void OnFileClose(wxCommandEvent &event); -static int LUACALL wxLua_wxDocManager_OnFileClose(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileClose - self->OnFileClose(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileCloseAll[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileCloseAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileCloseAll[1] = {{ wxLua_wxDocManager_OnFileCloseAll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileCloseAll }}; -// void OnFileCloseAll(wxCommandEvent& event); -static int LUACALL wxLua_wxDocManager_OnFileCloseAll(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileCloseAll - self->OnFileCloseAll(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileNew[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileNew(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileNew[1] = {{ wxLua_wxDocManager_OnFileNew, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileNew }}; -// void OnFileNew(wxCommandEvent &event); -static int LUACALL wxLua_wxDocManager_OnFileNew(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileNew - self->OnFileNew(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileOpen[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileOpen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileOpen[1] = {{ wxLua_wxDocManager_OnFileOpen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileOpen }}; -// void OnFileOpen(wxCommandEvent &event); -static int LUACALL wxLua_wxDocManager_OnFileOpen(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileOpen - self->OnFileOpen(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileRevert[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileRevert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileRevert[1] = {{ wxLua_wxDocManager_OnFileRevert, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileRevert }}; -// void OnFileRevert(wxCommandEvent& event); -static int LUACALL wxLua_wxDocManager_OnFileRevert(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileRevert - self->OnFileRevert(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileSave[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileSave[1] = {{ wxLua_wxDocManager_OnFileSave, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileSave }}; -// void OnFileSave(wxCommandEvent &event); -static int LUACALL wxLua_wxDocManager_OnFileSave(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileSave - self->OnFileSave(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_OnFileSaveAs[] = { &wxluatype_wxDocManager, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxDocManager_OnFileSaveAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_OnFileSaveAs[1] = {{ wxLua_wxDocManager_OnFileSaveAs, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_OnFileSaveAs }}; -// void OnFileSaveAs(wxCommandEvent &event); -static int LUACALL wxLua_wxDocManager_OnFileSaveAs(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call OnFileSaveAs - self->OnFileSaveAs(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_RemoveDocument[] = { &wxluatype_wxDocManager, &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocManager_RemoveDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_RemoveDocument[1] = {{ wxLua_wxDocManager_RemoveDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_RemoveDocument }}; -// void RemoveDocument(wxDocument *doc); -static int LUACALL wxLua_wxDocManager_RemoveDocument(lua_State *L) -{ - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call RemoveDocument - self->RemoveDocument(doc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_SetLastDirectory[] = { &wxluatype_wxDocManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocManager_SetLastDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_SetLastDirectory[1] = {{ wxLua_wxDocManager_SetLastDirectory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_SetLastDirectory }}; -// void SetLastDirectory(const wxString& dir); -static int LUACALL wxLua_wxDocManager_SetLastDirectory(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call SetLastDirectory - self->SetLastDirectory(dir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_SetMaxDocsOpen[] = { &wxluatype_wxDocManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocManager_SetMaxDocsOpen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_SetMaxDocsOpen[1] = {{ wxLua_wxDocManager_SetMaxDocsOpen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_SetMaxDocsOpen }}; -// void SetMaxDocsOpen(int n); -static int LUACALL wxLua_wxDocManager_SetMaxDocsOpen(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxDocManager * self = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call SetMaxDocsOpen - self->SetMaxDocsOpen(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocManager_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDocManager_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_constructor[1] = {{ wxLua_wxDocManager_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxDocManager_constructor }}; -// wxDocManager(long flags = 0, bool initialize = true); -static int LUACALL wxLua_wxDocManager_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool initialize = true - bool initialize = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // long flags = 0 - long flags = (argCount >= 1 ? (long)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxDocManager* returns = new wxDocManager(flags, initialize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocManager); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { wxLua_wxDocManager_ActivateView1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxDocManager_ActivateView1 }, -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { wxLua_wxDocManager_ActivateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDocManager_ActivateView }, -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -}; -static int s_wxluafunc_wxLua_wxDocManager_ActivateView_overload_count = sizeof(s_wxluafunc_wxLua_wxDocManager_ActivateView_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu_overload[] = -{ - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxDocManager_FileHistoryAddFilesToMenu1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryAddFilesToMenu1 }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxDocManager_FileHistoryAddFilesToMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocManager_FileHistoryAddFilesToMenu }, -}; -static int s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu_overload_count = sizeof(s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -void wxLua_wxDocManager_delete_function(void** p) -{ - wxDocManager* o = (wxDocManager*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocManager_methods[] = { -#if (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) - { "ActivateView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_ActivateView_overload, s_wxluafunc_wxLua_wxDocManager_ActivateView_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) - - { "AddDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_AddDocument, 1, NULL }, - { "AddFileToHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_AddFileToHistory, 1, NULL }, - { "AssociateTemplate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_AssociateTemplate, 1, NULL }, - { "CloseDocuments", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_CloseDocuments, 1, NULL }, - { "CreateDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_CreateDocument, 1, NULL }, - { "CreateView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_CreateView, 1, NULL }, - { "DisassociateTemplate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_DisassociateTemplate, 1, NULL }, - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "FileHistoryAddFilesToMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu_overload, s_wxluafunc_wxLua_wxDocManager_FileHistoryAddFilesToMenu_overload_count, 0 }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "FileHistoryLoad", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_FileHistoryLoad, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "FileHistoryRemoveMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_FileHistoryRemoveMenu, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "FileHistorySave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_FileHistorySave, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "FileHistoryUseMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_FileHistoryUseMenu, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "FindTemplateForPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_FindTemplateForPath, 1, NULL }, - { "GetCurrentDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetCurrentDocument, 1, NULL }, - { "GetCurrentView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetCurrentView, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - { "GetDocuments", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetDocuments, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - { "GetFileHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetFileHistory, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "GetHistoryFilesCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetHistoryFilesCount, 1, NULL }, -#endif // (wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { "GetLastDirectory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetLastDirectory, 1, NULL }, - { "GetMaxDocsOpen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetMaxDocsOpen, 1, NULL }, - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "GetNoHistoryFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetNoHistoryFiles, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - { "GetTemplates", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_GetTemplates, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - - { "Initialize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_Initialize, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "MakeDefaultName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_MakeDefaultName, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - { "OnCreateFileHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnCreateFileHistory, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - - { "OnFileClose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileClose, 1, NULL }, - { "OnFileCloseAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileCloseAll, 1, NULL }, - { "OnFileNew", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileNew, 1, NULL }, - { "OnFileOpen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileOpen, 1, NULL }, - { "OnFileRevert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileRevert, 1, NULL }, - { "OnFileSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileSave, 1, NULL }, - { "OnFileSaveAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_OnFileSaveAs, 1, NULL }, - { "RemoveDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_RemoveDocument, 1, NULL }, - { "SetLastDirectory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_SetLastDirectory, 1, NULL }, - { "SetMaxDocsOpen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_SetMaxDocsOpen, 1, NULL }, - { "wxDocManager", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocManager_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDocManager_methodCount = sizeof(wxDocManager_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocParentFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocParentFrame' -int wxluatype_wxDocParentFrame = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocParentFrame_constructor[] = { &wxluatype_wxDocManager, &wxluatype_wxFrame, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocParentFrame_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocParentFrame_constructor[1] = {{ wxLua_wxDocParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatypeArray_wxLua_wxDocParentFrame_constructor }}; -// wxDocParentFrame(wxDocManager* manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocParentFrame"); -static int LUACALL wxLua_wxDocParentFrame_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDocParentFrame" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxDocParentFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxFrame parent - wxFrame * parent = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // wxDocManager manager - wxDocManager * manager = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call constructor - wxDocParentFrame* returns = new wxDocParentFrame(manager, parent, id, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocParentFrame); - - return 1; -} - -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxDocParentFrame_delete_function(void** p) -{ - wxDocParentFrame* o = (wxDocParentFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocParentFrame_methods[] = { -#if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - { "wxDocParentFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocParentFrame_constructor, 1, NULL }, -#endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxDocParentFrame_methodCount = sizeof(wxDocParentFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocTemplate -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocTemplate' -int wxluatype_wxDocTemplate = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_CreateDocument[] = { &wxluatype_wxDocTemplate, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocTemplate_CreateDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_CreateDocument[1] = {{ wxLua_wxDocTemplate_CreateDocument, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDocTemplate_CreateDocument }}; -// wxDocument* CreateDocument(const wxString& path, long flags = 0); -static int LUACALL wxLua_wxDocTemplate_CreateDocument(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = 0 - long flags = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call CreateDocument - wxDocument* returns = (wxDocument*)self->CreateDocument(path, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_CreateView[] = { &wxluatype_wxDocTemplate, &wxluatype_wxDocument, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocTemplate_CreateView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_CreateView[1] = {{ wxLua_wxDocTemplate_CreateView, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDocTemplate_CreateView }}; -// wxView* CreateView(wxDocument *doc, long flags = 0); -static int LUACALL wxLua_wxDocTemplate_CreateView(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = 0 - long flags = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call CreateView - wxView* returns = (wxView*)self->CreateView(doc, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxView); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetDefaultExtension[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetDefaultExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetDefaultExtension[1] = {{ wxLua_wxDocTemplate_GetDefaultExtension, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetDefaultExtension }}; -// wxString GetDefaultExtension(); -static int LUACALL wxLua_wxDocTemplate_GetDefaultExtension(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetDefaultExtension - wxString returns = (self->GetDefaultExtension()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetDescription[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetDescription[1] = {{ wxLua_wxDocTemplate_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetDescription }}; -// wxString GetDescription(); -static int LUACALL wxLua_wxDocTemplate_GetDescription(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetDescription - wxString returns = (self->GetDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetDirectory[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetDirectory[1] = {{ wxLua_wxDocTemplate_GetDirectory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetDirectory }}; -// wxString GetDirectory(); -static int LUACALL wxLua_wxDocTemplate_GetDirectory(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetDirectory - wxString returns = (self->GetDirectory()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetDocumentManager[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetDocumentManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetDocumentManager[1] = {{ wxLua_wxDocTemplate_GetDocumentManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetDocumentManager }}; -// wxDocManager * GetDocumentManager(); -static int LUACALL wxLua_wxDocTemplate_GetDocumentManager(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetDocumentManager - wxDocManager* returns = (wxDocManager*)self->GetDocumentManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocManager); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetDocumentName[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetDocumentName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetDocumentName[1] = {{ wxLua_wxDocTemplate_GetDocumentName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetDocumentName }}; -// wxString GetDocumentName(); -static int LUACALL wxLua_wxDocTemplate_GetDocumentName(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetDocumentName - wxString returns = (self->GetDocumentName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetFileFilter[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetFileFilter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetFileFilter[1] = {{ wxLua_wxDocTemplate_GetFileFilter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetFileFilter }}; -// wxString GetFileFilter(); -static int LUACALL wxLua_wxDocTemplate_GetFileFilter(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetFileFilter - wxString returns = (self->GetFileFilter()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetFlags[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetFlags[1] = {{ wxLua_wxDocTemplate_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetFlags }}; -// long GetFlags(); -static int LUACALL wxLua_wxDocTemplate_GetFlags(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetFlags - long returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_GetViewName[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_GetViewName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_GetViewName[1] = {{ wxLua_wxDocTemplate_GetViewName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_GetViewName }}; -// wxString GetViewName(); -static int LUACALL wxLua_wxDocTemplate_GetViewName(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call GetViewName - wxString returns = (self->GetViewName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_InitDocument[] = { &wxluatype_wxDocTemplate, &wxluatype_wxDocument, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocTemplate_InitDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_InitDocument[1] = {{ wxLua_wxDocTemplate_InitDocument, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxDocTemplate_InitDocument }}; -// bool InitDocument(wxDocument* doc, const wxString& path, long flags = 0); -static int LUACALL wxLua_wxDocTemplate_InitDocument(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = 0 - long flags = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 3); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call InitDocument - bool returns = (self->InitDocument(doc, path, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_IsVisible[] = { &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocTemplate_IsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_IsVisible[1] = {{ wxLua_wxDocTemplate_IsVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocTemplate_IsVisible }}; -// bool IsVisible(); -static int LUACALL wxLua_wxDocTemplate_IsVisible(lua_State *L) -{ - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call IsVisible - bool returns = (self->IsVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_SetDefaultExtension[] = { &wxluatype_wxDocTemplate, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocTemplate_SetDefaultExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_SetDefaultExtension[1] = {{ wxLua_wxDocTemplate_SetDefaultExtension, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocTemplate_SetDefaultExtension }}; -// void SetDefaultExtension(const wxString& ext); -static int LUACALL wxLua_wxDocTemplate_SetDefaultExtension(lua_State *L) -{ - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 2); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call SetDefaultExtension - self->SetDefaultExtension(ext); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_SetDescription[] = { &wxluatype_wxDocTemplate, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocTemplate_SetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_SetDescription[1] = {{ wxLua_wxDocTemplate_SetDescription, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocTemplate_SetDescription }}; -// void SetDescription(const wxString& descr); -static int LUACALL wxLua_wxDocTemplate_SetDescription(lua_State *L) -{ - // const wxString descr - const wxString descr = wxlua_getwxStringtype(L, 2); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call SetDescription - self->SetDescription(descr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_SetDirectory[] = { &wxluatype_wxDocTemplate, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocTemplate_SetDirectory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_SetDirectory[1] = {{ wxLua_wxDocTemplate_SetDirectory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocTemplate_SetDirectory }}; -// void SetDirectory(const wxString& dir); -static int LUACALL wxLua_wxDocTemplate_SetDirectory(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call SetDirectory - self->SetDirectory(dir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_SetDocumentManager[] = { &wxluatype_wxDocTemplate, &wxluatype_wxDocManager, NULL }; -static int LUACALL wxLua_wxDocTemplate_SetDocumentManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_SetDocumentManager[1] = {{ wxLua_wxDocTemplate_SetDocumentManager, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocTemplate_SetDocumentManager }}; -// void SetDocumentManager(wxDocManager *manager); -static int LUACALL wxLua_wxDocTemplate_SetDocumentManager(lua_State *L) -{ - // wxDocManager manager - wxDocManager * manager = (wxDocManager *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocManager); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call SetDocumentManager - self->SetDocumentManager(manager); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_SetFileFilter[] = { &wxluatype_wxDocTemplate, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocTemplate_SetFileFilter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_SetFileFilter[1] = {{ wxLua_wxDocTemplate_SetFileFilter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocTemplate_SetFileFilter }}; -// void SetFileFilter(const wxString& filter); -static int LUACALL wxLua_wxDocTemplate_SetFileFilter(lua_State *L) -{ - // const wxString filter - const wxString filter = wxlua_getwxStringtype(L, 2); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call SetFileFilter - self->SetFileFilter(filter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_SetFlags[] = { &wxluatype_wxDocTemplate, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocTemplate_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_SetFlags[1] = {{ wxLua_wxDocTemplate_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocTemplate_SetFlags }}; -// void SetFlags(long flags); -static int LUACALL wxLua_wxDocTemplate_SetFlags(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxDocTemplate * self = (wxDocTemplate *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocTemplate); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxClassInfo) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocTemplate_constructor[] = { &wxluatype_wxDocManager, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxClassInfo, &wxluatype_wxClassInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocTemplate_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocTemplate_constructor[1] = {{ wxLua_wxDocTemplate_constructor, WXLUAMETHOD_CONSTRUCTOR, 7, 10, s_wxluatypeArray_wxLua_wxDocTemplate_constructor }}; -// wxDocTemplate(wxDocManager* manager, const wxString& descr, const wxString& filter, const wxString& dir, const wxString& ext, const wxString& docTypeName, const wxString& viewTypeName, wxClassInfo* docClassInfo = NULL, wxClassInfo* viewClassInfo = NULL, long flags = wxDEFAULT_TEMPLATE_FLAGS); -static int LUACALL wxLua_wxDocTemplate_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = wxDEFAULT_TEMPLATE_FLAGS - long flags = (argCount >= 10 ? (long)wxlua_getnumbertype(L, 10) : wxDEFAULT_TEMPLATE_FLAGS); - // wxClassInfo viewClassInfo = NULL - wxClassInfo * viewClassInfo = (argCount >= 9 ? (wxClassInfo *)wxluaT_getuserdatatype(L, 9, wxluatype_wxClassInfo) : NULL); - // wxClassInfo docClassInfo = NULL - wxClassInfo * docClassInfo = (argCount >= 8 ? (wxClassInfo *)wxluaT_getuserdatatype(L, 8, wxluatype_wxClassInfo) : NULL); - // const wxString viewTypeName - const wxString viewTypeName = wxlua_getwxStringtype(L, 7); - // const wxString docTypeName - const wxString docTypeName = wxlua_getwxStringtype(L, 6); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 5); - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 4); - // const wxString filter - const wxString filter = wxlua_getwxStringtype(L, 3); - // const wxString descr - const wxString descr = wxlua_getwxStringtype(L, 2); - // wxDocManager manager - wxDocManager * manager = (wxDocManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocManager); - // call constructor - wxDocTemplate* returns = new wxDocTemplate(manager, descr, filter, dir, ext, docTypeName, viewTypeName, docClassInfo, viewClassInfo, flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocTemplate); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxClassInfo) - - - -void wxLua_wxDocTemplate_delete_function(void** p) -{ - wxDocTemplate* o = (wxDocTemplate*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocTemplate_methods[] = { - { "CreateDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_CreateDocument, 1, NULL }, - { "CreateView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_CreateView, 1, NULL }, - { "GetDefaultExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetDefaultExtension, 1, NULL }, - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetDescription, 1, NULL }, - { "GetDirectory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetDirectory, 1, NULL }, - { "GetDocumentManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetDocumentManager, 1, NULL }, - { "GetDocumentName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetDocumentName, 1, NULL }, - { "GetFileFilter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetFileFilter, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetFlags, 1, NULL }, - { "GetViewName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_GetViewName, 1, NULL }, - { "InitDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_InitDocument, 1, NULL }, - { "IsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_IsVisible, 1, NULL }, - { "SetDefaultExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_SetDefaultExtension, 1, NULL }, - { "SetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_SetDescription, 1, NULL }, - { "SetDirectory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_SetDirectory, 1, NULL }, - { "SetDocumentManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_SetDocumentManager, 1, NULL }, - { "SetFileFilter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_SetFileFilter, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocTemplate_SetFlags, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxClassInfo) - { "wxDocTemplate", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocTemplate_constructor, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxClassInfo) - - { 0, 0, 0, 0 }, -}; - -int wxDocTemplate_methodCount = sizeof(wxDocTemplate_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxDocument -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDocument' -int wxluatype_wxDocument = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_AddView[] = { &wxluatype_wxDocument, &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxDocument_AddView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_AddView[1] = {{ wxLua_wxDocument_AddView, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_AddView }}; -// virtual bool AddView(wxView *view); -static int LUACALL wxLua_wxDocument_AddView(lua_State *L) -{ - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call AddView - bool returns = (self->AddView(view)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_Close[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_Close[1] = {{ wxLua_wxDocument_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_Close }}; -// virtual bool Close(); -static int LUACALL wxLua_wxDocument_Close(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call Close - bool returns = (self->Close()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_DeleteAllViews[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_DeleteAllViews(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_DeleteAllViews[1] = {{ wxLua_wxDocument_DeleteAllViews, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_DeleteAllViews }}; -// virtual bool DeleteAllViews(); -static int LUACALL wxLua_wxDocument_DeleteAllViews(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call DeleteAllViews - bool returns = (self->DeleteAllViews()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetCommandProcessor[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetCommandProcessor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetCommandProcessor[1] = {{ wxLua_wxDocument_GetCommandProcessor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetCommandProcessor }}; -// wxCommandProcessor* GetCommandProcessor() const; -static int LUACALL wxLua_wxDocument_GetCommandProcessor(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetCommandProcessor - wxCommandProcessor* returns = (wxCommandProcessor*)self->GetCommandProcessor(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommandProcessor); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetDocumentManager[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetDocumentManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetDocumentManager[1] = {{ wxLua_wxDocument_GetDocumentManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetDocumentManager }}; -// wxDocManager* GetDocumentManager() const; -static int LUACALL wxLua_wxDocument_GetDocumentManager(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetDocumentManager - wxDocManager* returns = (wxDocManager*)self->GetDocumentManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocManager); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetDocumentName[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetDocumentName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetDocumentName[1] = {{ wxLua_wxDocument_GetDocumentName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetDocumentName }}; -// wxString GetDocumentName() const; -static int LUACALL wxLua_wxDocument_GetDocumentName(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetDocumentName - wxString returns = (self->GetDocumentName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetDocumentTemplate[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetDocumentTemplate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetDocumentTemplate[1] = {{ wxLua_wxDocument_GetDocumentTemplate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetDocumentTemplate }}; -// wxDocTemplate* GetDocumentTemplate() const; -static int LUACALL wxLua_wxDocument_GetDocumentTemplate(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetDocumentTemplate - wxDocTemplate* returns = (wxDocTemplate*)self->GetDocumentTemplate(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocTemplate); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetDocumentWindow[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetDocumentWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetDocumentWindow[1] = {{ wxLua_wxDocument_GetDocumentWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetDocumentWindow }}; -// wxWindow* GetDocumentWindow() const; -static int LUACALL wxLua_wxDocument_GetDocumentWindow(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetDocumentWindow - wxWindow* returns = (wxWindow*)self->GetDocumentWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetFilename[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetFilename[1] = {{ wxLua_wxDocument_GetFilename, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetFilename }}; -// wxString GetFilename() const; -static int LUACALL wxLua_wxDocument_GetFilename(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetFilename - wxString returns = (self->GetFilename()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetFirstView[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetFirstView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetFirstView[1] = {{ wxLua_wxDocument_GetFirstView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetFirstView }}; -// wxView* GetFirstView() const; -static int LUACALL wxLua_wxDocument_GetFirstView(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetFirstView - wxView* returns = (wxView*)self->GetFirstView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxView); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetPrintableName[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocument_GetPrintableName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetPrintableName[1] = {{ wxLua_wxDocument_GetPrintableName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_GetPrintableName }}; -// %override wxLua_wxDocument_GetPrintableName -// virtual void GetPrintableName(wxString& name) const -static int LUACALL wxLua_wxDocument_GetPrintableName(lua_State *L) -{ - // wxString name - wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetPrintableName - self->GetPrintableName(name); - wxlua_pushwxString(L, name); - - return 1; -} - - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetTitle[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetTitle[1] = {{ wxLua_wxDocument_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetTitle }}; -// wxString GetTitle() const; -static int LUACALL wxLua_wxDocument_GetTitle(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetUserReadableName[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetUserReadableName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetUserReadableName[1] = {{ wxLua_wxDocument_GetUserReadableName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetUserReadableName }}; -// virtual wxString GetUserReadableName() const; -static int LUACALL wxLua_wxDocument_GetUserReadableName(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetUserReadableName - wxString returns = (self->GetUserReadableName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_GetViews[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_GetViews(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_GetViews[1] = {{ wxLua_wxDocument_GetViews, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_GetViews }}; -// %override wxLua_wxDocument_GetViews -// wxList& GetViews() const -static int LUACALL wxLua_wxDocument_GetViews(lua_State *L) -{ - // get this - wxDocument *self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call GetViews - wxList &views = self->GetViews(); - wxList *returns = new wxList(views); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - // return the number of parameters - return 1; -} - - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_IsChildDocument[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_IsChildDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_IsChildDocument[1] = {{ wxLua_wxDocument_IsChildDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_IsChildDocument }}; -// bool IsChildDocument() const; -static int LUACALL wxLua_wxDocument_IsChildDocument(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call IsChildDocument - bool returns = (self->IsChildDocument()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_IsModified[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_IsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_IsModified[1] = {{ wxLua_wxDocument_IsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_IsModified }}; -// virtual bool IsModified() const; -static int LUACALL wxLua_wxDocument_IsModified(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call IsModified - bool returns = (self->IsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_Modify[] = { &wxluatype_wxDocument, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDocument_Modify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_Modify[1] = {{ wxLua_wxDocument_Modify, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_Modify }}; -// virtual void Modify(bool modify); -static int LUACALL wxLua_wxDocument_Modify(lua_State *L) -{ - // bool modify - bool modify = wxlua_getbooleantype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call Modify - self->Modify(modify); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnChangedViewList[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_OnChangedViewList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnChangedViewList[1] = {{ wxLua_wxDocument_OnChangedViewList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_OnChangedViewList }}; -// virtual void OnChangedViewList(); -static int LUACALL wxLua_wxDocument_OnChangedViewList(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnChangedViewList - self->OnChangedViewList(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnCloseDocument[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_OnCloseDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnCloseDocument[1] = {{ wxLua_wxDocument_OnCloseDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_OnCloseDocument }}; -// virtual bool OnCloseDocument(); -static int LUACALL wxLua_wxDocument_OnCloseDocument(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnCloseDocument - bool returns = (self->OnCloseDocument()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnCreate[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDocument_OnCreate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnCreate[1] = {{ wxLua_wxDocument_OnCreate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDocument_OnCreate }}; -// virtual bool OnCreate(const wxString& path, long flags); -static int LUACALL wxLua_wxDocument_OnCreate(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 3); - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnCreate - bool returns = (self->OnCreate(path, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnCreateCommandProcessor[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_OnCreateCommandProcessor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnCreateCommandProcessor[1] = {{ wxLua_wxDocument_OnCreateCommandProcessor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_OnCreateCommandProcessor }}; -// virtual wxCommandProcessor* OnCreateCommandProcessor(); -static int LUACALL wxLua_wxDocument_OnCreateCommandProcessor(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnCreateCommandProcessor - wxCommandProcessor* returns = (wxCommandProcessor*)self->OnCreateCommandProcessor(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommandProcessor); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnNewDocument[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_OnNewDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnNewDocument[1] = {{ wxLua_wxDocument_OnNewDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_OnNewDocument }}; -// virtual bool OnNewDocument(); -static int LUACALL wxLua_wxDocument_OnNewDocument(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnNewDocument - bool returns = (self->OnNewDocument()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnOpenDocument[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocument_OnOpenDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnOpenDocument[1] = {{ wxLua_wxDocument_OnOpenDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_OnOpenDocument }}; -// virtual bool OnOpenDocument(const wxString& filename); -static int LUACALL wxLua_wxDocument_OnOpenDocument(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnOpenDocument - bool returns = (self->OnOpenDocument(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnSaveDocument[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocument_OnSaveDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnSaveDocument[1] = {{ wxLua_wxDocument_OnSaveDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_OnSaveDocument }}; -// virtual bool OnSaveDocument(const wxString& filename); -static int LUACALL wxLua_wxDocument_OnSaveDocument(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnSaveDocument - bool returns = (self->OnSaveDocument(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_OnSaveModified[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_OnSaveModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_OnSaveModified[1] = {{ wxLua_wxDocument_OnSaveModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_OnSaveModified }}; -// virtual bool OnSaveModified(); -static int LUACALL wxLua_wxDocument_OnSaveModified(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call OnSaveModified - bool returns = (self->OnSaveModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_RemoveView[] = { &wxluatype_wxDocument, &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxDocument_RemoveView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_RemoveView[1] = {{ wxLua_wxDocument_RemoveView, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_RemoveView }}; -// virtual bool RemoveView(wxView* view); -static int LUACALL wxLua_wxDocument_RemoveView(lua_State *L) -{ - // wxView view - wxView * view = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call RemoveView - bool returns = (self->RemoveView(view)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_Save[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_Save(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_Save[1] = {{ wxLua_wxDocument_Save, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_Save }}; -// virtual bool Save(); -static int LUACALL wxLua_wxDocument_Save(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call Save - bool returns = (self->Save()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_SaveAs[] = { &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxDocument_SaveAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_SaveAs[1] = {{ wxLua_wxDocument_SaveAs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDocument_SaveAs }}; -// virtual bool SaveAs(); -static int LUACALL wxLua_wxDocument_SaveAs(lua_State *L) -{ - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call SaveAs - bool returns = (self->SaveAs()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_SetCommandProcessor[] = { &wxluatype_wxDocument, &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxDocument_SetCommandProcessor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_SetCommandProcessor[1] = {{ wxLua_wxDocument_SetCommandProcessor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_SetCommandProcessor }}; -// virtual void SetCommandProcessor(wxCommandProcessor *processor); -static int LUACALL wxLua_wxDocument_SetCommandProcessor(lua_State *L) -{ - // wxCommandProcessor processor - wxCommandProcessor * processor = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandProcessor); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call SetCommandProcessor - self->SetCommandProcessor(processor); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_SetDocumentName[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocument_SetDocumentName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_SetDocumentName[1] = {{ wxLua_wxDocument_SetDocumentName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_SetDocumentName }}; -// void SetDocumentName(const wxString& name); -static int LUACALL wxLua_wxDocument_SetDocumentName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call SetDocumentName - self->SetDocumentName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_SetDocumentTemplate[] = { &wxluatype_wxDocument, &wxluatype_wxDocTemplate, NULL }; -static int LUACALL wxLua_wxDocument_SetDocumentTemplate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_SetDocumentTemplate[1] = {{ wxLua_wxDocument_SetDocumentTemplate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_SetDocumentTemplate }}; -// void SetDocumentTemplate(wxDocTemplate* templ); -static int LUACALL wxLua_wxDocument_SetDocumentTemplate(lua_State *L) -{ - // wxDocTemplate templ - wxDocTemplate * templ = (wxDocTemplate *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocTemplate); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call SetDocumentTemplate - self->SetDocumentTemplate(templ); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_SetFilename[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxDocument_SetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_SetFilename[1] = {{ wxLua_wxDocument_SetFilename, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDocument_SetFilename }}; -// void SetFilename(const wxString& filename, bool notifyViews = false); -static int LUACALL wxLua_wxDocument_SetFilename(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool notifyViews = false - bool notifyViews = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call SetFilename - self->SetFilename(filename, notifyViews); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_SetTitle[] = { &wxluatype_wxDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDocument_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_SetTitle[1] = {{ wxLua_wxDocument_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDocument_SetTitle }}; -// void SetTitle(const wxString& title); -static int LUACALL wxLua_wxDocument_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call SetTitle - self->SetTitle(title); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDocument_UpdateAllViews[] = { &wxluatype_wxDocument, &wxluatype_wxView, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxDocument_UpdateAllViews(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_UpdateAllViews[1] = {{ wxLua_wxDocument_UpdateAllViews, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxDocument_UpdateAllViews }}; -// void UpdateAllViews(wxView* sender = NULL, wxObject* hint = NULL); -static int LUACALL wxLua_wxDocument_UpdateAllViews(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject hint = NULL - wxObject * hint = (argCount >= 3 ? (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject) : NULL); - // wxView sender = NULL - wxView * sender = (argCount >= 2 ? (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView) : NULL); - // get this - wxDocument * self = (wxDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDocument); - // call UpdateAllViews - self->UpdateAllViews(sender, hint); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) - -static int LUACALL wxLua_wxDocument_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocument_constructor[1] = {{ wxLua_wxDocument_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDocument(); -static int LUACALL wxLua_wxDocument_constructor(lua_State *L) -{ - // call constructor - wxDocument* returns = new wxDocument(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - - - - -void wxLua_wxDocument_delete_function(void** p) -{ - wxDocument* o = (wxDocument*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDocument_methods[] = { - { "AddView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_AddView, 1, NULL }, - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_Close, 1, NULL }, - { "DeleteAllViews", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_DeleteAllViews, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - { "GetCommandProcessor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetCommandProcessor, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - - { "GetDocumentManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetDocumentManager, 1, NULL }, - { "GetDocumentName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetDocumentName, 1, NULL }, - { "GetDocumentTemplate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetDocumentTemplate, 1, NULL }, - { "GetDocumentWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetDocumentWindow, 1, NULL }, - { "GetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetFilename, 1, NULL }, - { "GetFirstView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetFirstView, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - { "GetPrintableName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetPrintableName, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) - - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetTitle, 1, NULL }, - { "GetUserReadableName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetUserReadableName, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - { "GetViews", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_GetViews, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxList && !wxUSE_STL) - - { "IsChildDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_IsChildDocument, 1, NULL }, - { "IsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_IsModified, 1, NULL }, - { "Modify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_Modify, 1, NULL }, - { "OnChangedViewList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnChangedViewList, 1, NULL }, - { "OnCloseDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnCloseDocument, 1, NULL }, - { "OnCreate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnCreate, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - { "OnCreateCommandProcessor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnCreateCommandProcessor, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - - { "OnNewDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnNewDocument, 1, NULL }, - { "OnOpenDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnOpenDocument, 1, NULL }, - { "OnSaveDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnSaveDocument, 1, NULL }, - { "OnSaveModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_OnSaveModified, 1, NULL }, - { "RemoveView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_RemoveView, 1, NULL }, - { "Save", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_Save, 1, NULL }, - { "SaveAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_SaveAs, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - { "SetCommandProcessor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_SetCommandProcessor, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxCommandProcessor) - - { "SetDocumentName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_SetDocumentName, 1, NULL }, - { "SetDocumentTemplate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_SetDocumentTemplate, 1, NULL }, - { "SetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_SetFilename, 1, NULL }, - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_SetTitle, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) - { "UpdateAllViews", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocument_UpdateAllViews, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) - - { "wxDocument", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocument_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDocument_methodCount = sizeof(wxDocument_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxView -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxView' -int wxluatype_wxView = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_Activate[] = { &wxluatype_wxView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxView_Activate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_Activate[1] = {{ wxLua_wxView_Activate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxView_Activate }}; -// virtual void Activate(bool activate); -static int LUACALL wxLua_wxView_Activate(lua_State *L) -{ - // bool activate - bool activate = wxlua_getbooleantype(L, 2); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call Activate - self->Activate(activate); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_Close[] = { &wxluatype_wxView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxView_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_Close[1] = {{ wxLua_wxView_Close, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxView_Close }}; -// virtual bool Close(bool deleteWindow = true); -static int LUACALL wxLua_wxView_Close(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteWindow = true - bool deleteWindow = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call Close - bool returns = (self->Close(deleteWindow)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_GetDocument[] = { &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_GetDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_GetDocument[1] = {{ wxLua_wxView_GetDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxView_GetDocument }}; -// wxDocument* GetDocument() const; -static int LUACALL wxLua_wxView_GetDocument(lua_State *L) -{ - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call GetDocument - wxDocument* returns = (wxDocument*)self->GetDocument(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_GetDocumentManager[] = { &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_GetDocumentManager(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_GetDocumentManager[1] = {{ wxLua_wxView_GetDocumentManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxView_GetDocumentManager }}; -// wxDocManager* GetDocumentManager() const; -static int LUACALL wxLua_wxView_GetDocumentManager(lua_State *L) -{ - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call GetDocumentManager - wxDocManager* returns = (wxDocManager*)self->GetDocumentManager(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDocManager); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_GetFrame[] = { &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_GetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_GetFrame[1] = {{ wxLua_wxView_GetFrame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxView_GetFrame }}; -// wxWindow * GetFrame(); -static int LUACALL wxLua_wxView_GetFrame(lua_State *L) -{ - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call GetFrame - wxWindow* returns = (wxWindow*)self->GetFrame(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_GetViewName[] = { &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_GetViewName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_GetViewName[1] = {{ wxLua_wxView_GetViewName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxView_GetViewName }}; -// wxString GetViewName() const; -static int LUACALL wxLua_wxView_GetViewName(lua_State *L) -{ - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call GetViewName - wxString returns = (self->GetViewName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_OnActivateView[] = { &wxluatype_wxView, &wxluatype_TBOOLEAN, &wxluatype_wxView, &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_OnActivateView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_OnActivateView[1] = {{ wxLua_wxView_OnActivateView, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxView_OnActivateView }}; -// virtual void OnActivateView(bool activate, wxView *activeView, wxView *deactiveView); -static int LUACALL wxLua_wxView_OnActivateView(lua_State *L) -{ - // wxView deactiveView - wxView * deactiveView = (wxView *)wxluaT_getuserdatatype(L, 4, wxluatype_wxView); - // wxView activeView - wxView * activeView = (wxView *)wxluaT_getuserdatatype(L, 3, wxluatype_wxView); - // bool activate - bool activate = wxlua_getbooleantype(L, 2); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call OnActivateView - self->OnActivateView(activate, activeView, deactiveView); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_OnChangeFilename[] = { &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_OnChangeFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_OnChangeFilename[1] = {{ wxLua_wxView_OnChangeFilename, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxView_OnChangeFilename }}; -// virtual void OnChangeFilename(); -static int LUACALL wxLua_wxView_OnChangeFilename(lua_State *L) -{ - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call OnChangeFilename - self->OnChangeFilename(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_OnClose[] = { &wxluatype_wxView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxView_OnClose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_OnClose[1] = {{ wxLua_wxView_OnClose, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxView_OnClose }}; -// virtual bool OnClose(bool deleteWindow); -static int LUACALL wxLua_wxView_OnClose(lua_State *L) -{ - // bool deleteWindow - bool deleteWindow = wxlua_getbooleantype(L, 2); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call OnClose - bool returns = (self->OnClose(deleteWindow)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_OnCreate[] = { &wxluatype_wxView, &wxluatype_wxDocument, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxView_OnCreate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_OnCreate[1] = {{ wxLua_wxView_OnCreate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxView_OnCreate }}; -// virtual bool OnCreate(wxDocument* doc, long flags); -static int LUACALL wxLua_wxView_OnCreate(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 3); - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call OnCreate - bool returns = (self->OnCreate(doc, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_OnCreatePrintout[] = { &wxluatype_wxView, NULL }; -static int LUACALL wxLua_wxView_OnCreatePrintout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_OnCreatePrintout[1] = {{ wxLua_wxView_OnCreatePrintout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxView_OnCreatePrintout }}; -// virtual wxPrintout* OnCreatePrintout(); -static int LUACALL wxLua_wxView_OnCreatePrintout(lua_State *L) -{ - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call OnCreatePrintout - wxPrintout* returns = (wxPrintout*)self->OnCreatePrintout(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintout); - - return 1; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_OnUpdate[] = { &wxluatype_wxView, &wxluatype_wxView, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxView_OnUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_OnUpdate[1] = {{ wxLua_wxView_OnUpdate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxView_OnUpdate }}; -// virtual void OnUpdate(wxView* sender, wxObject* hint); -static int LUACALL wxLua_wxView_OnUpdate(lua_State *L) -{ - // wxObject hint - wxObject * hint = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // wxView sender - wxView * sender = (wxView *)wxluaT_getuserdatatype(L, 2, wxluatype_wxView); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call OnUpdate - self->OnUpdate(sender, hint); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_SetDocument[] = { &wxluatype_wxView, &wxluatype_wxDocument, NULL }; -static int LUACALL wxLua_wxView_SetDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_SetDocument[1] = {{ wxLua_wxView_SetDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxView_SetDocument }}; -// void SetDocument(wxDocument* doc); -static int LUACALL wxLua_wxView_SetDocument(lua_State *L) -{ - // wxDocument doc - wxDocument * doc = (wxDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDocument); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call SetDocument - self->SetDocument(doc); - - return 0; -} - - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_SetFrame[] = { &wxluatype_wxView, &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxView_SetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_SetFrame[1] = {{ wxLua_wxView_SetFrame, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxView_SetFrame }}; -// void SetFrame(wxFrame* frame); -static int LUACALL wxLua_wxView_SetFrame(lua_State *L) -{ - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call SetFrame - self->SetFrame(frame); - - return 0; -} - -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxView_SetViewName[] = { &wxluatype_wxView, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxView_SetViewName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxView_SetViewName[1] = {{ wxLua_wxView_SetViewName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxView_SetViewName }}; -// void SetViewName(const wxString& name); -static int LUACALL wxLua_wxView_SetViewName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxView * self = (wxView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxView); - // call SetViewName - self->SetViewName(name); - - return 0; -} - - - - -void wxLua_wxView_delete_function(void** p) -{ - wxView* o = (wxView*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxView_methods[] = { - { "Activate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_Activate, 1, NULL }, - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_Close, 1, NULL }, - { "GetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_GetDocument, 1, NULL }, - { "GetDocumentManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_GetDocumentManager, 1, NULL }, - { "GetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_GetFrame, 1, NULL }, - { "GetViewName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_GetViewName, 1, NULL }, - { "OnActivateView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_OnActivateView, 1, NULL }, - { "OnChangeFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_OnChangeFilename, 1, NULL }, - { "OnClose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_OnClose, 1, NULL }, - { "OnCreate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_OnCreate, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "OnCreatePrintout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_OnCreatePrintout, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) - { "OnUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_OnUpdate, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxObject) - - { "SetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_SetDocument, 1, NULL }, - -#if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame) - { "SetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_SetFrame, 1, NULL }, -#endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxFrame) - - { "SetViewName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxView_SetViewName, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxView_methodCount = sizeof(wxView_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE - - -#if wxLUA_USE_wxCommandProcessor -// --------------------------------------------------------------------------- -// Bind class wxCommandProcessor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCommandProcessor' -int wxluatype_wxCommandProcessor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_CanRedo[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_CanRedo[1] = {{ wxLua_wxCommandProcessor_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_CanRedo }}; -// virtual bool CanRedo() const; -static int LUACALL wxLua_wxCommandProcessor_CanRedo(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_CanUndo[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_CanUndo[1] = {{ wxLua_wxCommandProcessor_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_CanUndo }}; -// virtual bool CanUndo() const; -static int LUACALL wxLua_wxCommandProcessor_CanUndo(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_ClearCommands[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_ClearCommands(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_ClearCommands[1] = {{ wxLua_wxCommandProcessor_ClearCommands, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_ClearCommands }}; -// virtual void ClearCommands(); -static int LUACALL wxLua_wxCommandProcessor_ClearCommands(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call ClearCommands - self->ClearCommands(); - - return 0; -} - - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxList && !wxUSE_STL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetCommands[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetCommands(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetCommands[1] = {{ wxLua_wxCommandProcessor_GetCommands, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetCommands }}; -// %override wxLua_wxCommandProcessor_GetCommands -// wxList& GetCommands() const -static int LUACALL wxLua_wxCommandProcessor_GetCommands(lua_State *L) -{ - // get this - wxCommandProcessor *self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetCommands - wxList &commands = self->GetCommands(); - wxList *returns = new wxList(commands); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - // return the number of parameters - return 1; -} - - -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxList && !wxUSE_STL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetCurrentCommand[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetCurrentCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetCurrentCommand[1] = {{ wxLua_wxCommandProcessor_GetCurrentCommand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetCurrentCommand }}; -// wxCommand *GetCurrentCommand() const; -static int LUACALL wxLua_wxCommandProcessor_GetCurrentCommand(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetCurrentCommand - wxCommand* returns = (wxCommand*)self->GetCurrentCommand(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommand); - - return 1; -} - - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetEditMenu[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetEditMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetEditMenu[1] = {{ wxLua_wxCommandProcessor_GetEditMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetEditMenu }}; -// wxMenu *GetEditMenu() const; -static int LUACALL wxLua_wxCommandProcessor_GetEditMenu(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetEditMenu - wxMenu* returns = (wxMenu*)self->GetEditMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetMaxCommands[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetMaxCommands(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetMaxCommands[1] = {{ wxLua_wxCommandProcessor_GetMaxCommands, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetMaxCommands }}; -// int GetMaxCommands() const; -static int LUACALL wxLua_wxCommandProcessor_GetMaxCommands(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetMaxCommands - int returns = (self->GetMaxCommands()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetRedoAccelerator[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetRedoAccelerator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetRedoAccelerator[1] = {{ wxLua_wxCommandProcessor_GetRedoAccelerator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetRedoAccelerator }}; -// wxString GetRedoAccelerator() const; -static int LUACALL wxLua_wxCommandProcessor_GetRedoAccelerator(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetRedoAccelerator - wxString returns = (self->GetRedoAccelerator()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetRedoMenuLabel[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetRedoMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetRedoMenuLabel[1] = {{ wxLua_wxCommandProcessor_GetRedoMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetRedoMenuLabel }}; -// wxString GetRedoMenuLabel() const; -static int LUACALL wxLua_wxCommandProcessor_GetRedoMenuLabel(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetRedoMenuLabel - wxString returns = (self->GetRedoMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetUndoAccelerator[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetUndoAccelerator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetUndoAccelerator[1] = {{ wxLua_wxCommandProcessor_GetUndoAccelerator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetUndoAccelerator }}; -// wxString GetUndoAccelerator() const; -static int LUACALL wxLua_wxCommandProcessor_GetUndoAccelerator(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetUndoAccelerator - wxString returns = (self->GetUndoAccelerator()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_GetUndoMenuLabel[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_GetUndoMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_GetUndoMenuLabel[1] = {{ wxLua_wxCommandProcessor_GetUndoMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_GetUndoMenuLabel }}; -// wxString GetUndoMenuLabel() const; -static int LUACALL wxLua_wxCommandProcessor_GetUndoMenuLabel(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call GetUndoMenuLabel - wxString returns = (self->GetUndoMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_Initialize[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_Initialize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_Initialize[1] = {{ wxLua_wxCommandProcessor_Initialize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_Initialize }}; -// virtual void Initialize(); -static int LUACALL wxLua_wxCommandProcessor_Initialize(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call Initialize - self->Initialize(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_IsDirty[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_IsDirty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_IsDirty[1] = {{ wxLua_wxCommandProcessor_IsDirty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_IsDirty }}; -// virtual bool IsDirty(); -static int LUACALL wxLua_wxCommandProcessor_IsDirty(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call IsDirty - bool returns = (self->IsDirty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_MarkAsSaved[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_MarkAsSaved(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_MarkAsSaved[1] = {{ wxLua_wxCommandProcessor_MarkAsSaved, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_MarkAsSaved }}; -// virtual void MarkAsSaved(); -static int LUACALL wxLua_wxCommandProcessor_MarkAsSaved(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call MarkAsSaved - self->MarkAsSaved(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_Redo[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_Redo[1] = {{ wxLua_wxCommandProcessor_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_Redo }}; -// virtual bool Redo(); -static int LUACALL wxLua_wxCommandProcessor_Redo(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call Redo - bool returns = (self->Redo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_SetEditMenu[] = { &wxluatype_wxCommandProcessor, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxCommandProcessor_SetEditMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_SetEditMenu[1] = {{ wxLua_wxCommandProcessor_SetEditMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandProcessor_SetEditMenu }}; -// void SetEditMenu(wxMenu *menu); -static int LUACALL wxLua_wxCommandProcessor_SetEditMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call SetEditMenu - self->SetEditMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_SetMenuStrings[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_SetMenuStrings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_SetMenuStrings[1] = {{ wxLua_wxCommandProcessor_SetMenuStrings, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_SetMenuStrings }}; -// virtual void SetMenuStrings(); -static int LUACALL wxLua_wxCommandProcessor_SetMenuStrings(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call SetMenuStrings - self->SetMenuStrings(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_SetRedoAccelerator[] = { &wxluatype_wxCommandProcessor, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCommandProcessor_SetRedoAccelerator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_SetRedoAccelerator[1] = {{ wxLua_wxCommandProcessor_SetRedoAccelerator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandProcessor_SetRedoAccelerator }}; -// void SetRedoAccelerator(const wxString& accel); -static int LUACALL wxLua_wxCommandProcessor_SetRedoAccelerator(lua_State *L) -{ - // const wxString accel - const wxString accel = wxlua_getwxStringtype(L, 2); - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call SetRedoAccelerator - self->SetRedoAccelerator(accel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_SetUndoAccelerator[] = { &wxluatype_wxCommandProcessor, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCommandProcessor_SetUndoAccelerator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_SetUndoAccelerator[1] = {{ wxLua_wxCommandProcessor_SetUndoAccelerator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandProcessor_SetUndoAccelerator }}; -// void SetUndoAccelerator(const wxString& accel); -static int LUACALL wxLua_wxCommandProcessor_SetUndoAccelerator(lua_State *L) -{ - // const wxString accel - const wxString accel = wxlua_getwxStringtype(L, 2); - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call SetUndoAccelerator - self->SetUndoAccelerator(accel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_Store[] = { &wxluatype_wxCommandProcessor, &wxluatype_wxCommand, NULL }; -static int LUACALL wxLua_wxCommandProcessor_Store(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_Store[1] = {{ wxLua_wxCommandProcessor_Store, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCommandProcessor_Store }}; -// virtual void Store(wxCommand *command); -static int LUACALL wxLua_wxCommandProcessor_Store(lua_State *L) -{ - // wxCommand command - wxCommand * command = (wxCommand *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommand); - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call Store - self->Store(command); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_Submit[] = { &wxluatype_wxCommandProcessor, &wxluatype_wxCommand, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCommandProcessor_Submit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_Submit[1] = {{ wxLua_wxCommandProcessor_Submit, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxCommandProcessor_Submit }}; -// virtual bool Submit(wxCommand *command, bool storeIt = true); -static int LUACALL wxLua_wxCommandProcessor_Submit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool storeIt = true - bool storeIt = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxCommand command - wxCommand * command = (wxCommand *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommand); - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call Submit - bool returns = (self->Submit(command, storeIt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_Undo[] = { &wxluatype_wxCommandProcessor, NULL }; -static int LUACALL wxLua_wxCommandProcessor_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_Undo[1] = {{ wxLua_wxCommandProcessor_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_Undo }}; -// virtual bool Undo(); -static int LUACALL wxLua_wxCommandProcessor_Undo(lua_State *L) -{ - // get this - wxCommandProcessor * self = (wxCommandProcessor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommandProcessor); - // call Undo - bool returns = (self->Undo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommandProcessor_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCommandProcessor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommandProcessor_constructor[1] = {{ wxLua_wxCommandProcessor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxCommandProcessor_constructor }}; -// wxCommandProcessor(int maxCommands = -1); -static int LUACALL wxLua_wxCommandProcessor_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int maxCommands = -1 - int maxCommands = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : -1); - // call constructor - wxCommandProcessor* returns = new wxCommandProcessor(maxCommands); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommandProcessor); - - return 1; -} - - - - -void wxLua_wxCommandProcessor_delete_function(void** p) -{ - wxCommandProcessor* o = (wxCommandProcessor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCommandProcessor_methods[] = { - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_CanUndo, 1, NULL }, - { "ClearCommands", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_ClearCommands, 1, NULL }, - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxList && !wxUSE_STL) - { "GetCommands", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetCommands, 1, NULL }, -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxList && !wxUSE_STL) - - { "GetCurrentCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetCurrentCommand, 1, NULL }, - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetEditMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetEditMenu, 1, NULL }, -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetMaxCommands", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetMaxCommands, 1, NULL }, - { "GetRedoAccelerator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetRedoAccelerator, 1, NULL }, - { "GetRedoMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetRedoMenuLabel, 1, NULL }, - { "GetUndoAccelerator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetUndoAccelerator, 1, NULL }, - { "GetUndoMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_GetUndoMenuLabel, 1, NULL }, - { "Initialize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_Initialize, 1, NULL }, - { "IsDirty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_IsDirty, 1, NULL }, - { "MarkAsSaved", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_MarkAsSaved, 1, NULL }, - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_Redo, 1, NULL }, - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetEditMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_SetEditMenu, 1, NULL }, -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetMenuStrings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_SetMenuStrings, 1, NULL }, - { "SetRedoAccelerator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_SetRedoAccelerator, 1, NULL }, - { "SetUndoAccelerator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_SetUndoAccelerator, 1, NULL }, - { "Store", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_Store, 1, NULL }, - { "Submit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_Submit, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommandProcessor_Undo, 1, NULL }, - { "wxCommandProcessor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCommandProcessor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCommandProcessor_methodCount = sizeof(wxCommandProcessor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCommandProcessor - - -#if wxLUA_USE_wxCommandProcessor -// --------------------------------------------------------------------------- -// Bind class wxCommand -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCommand' -int wxluatype_wxCommand = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommand_CanUndo[] = { &wxluatype_wxCommand, NULL }; -static int LUACALL wxLua_wxCommand_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommand_CanUndo[1] = {{ wxLua_wxCommand_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommand_CanUndo }}; -// virtual bool CanUndo(); -static int LUACALL wxLua_wxCommand_CanUndo(lua_State *L) -{ - // get this - wxCommand * self = (wxCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommand); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommand_Do[] = { &wxluatype_wxCommand, NULL }; -static int LUACALL wxLua_wxCommand_Do(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommand_Do[1] = {{ wxLua_wxCommand_Do, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommand_Do }}; -// virtual bool Do(); // pure virtual -static int LUACALL wxLua_wxCommand_Do(lua_State *L) -{ - // get this - wxCommand * self = (wxCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommand); - // call Do - bool returns = (self->Do()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommand_GetName[] = { &wxluatype_wxCommand, NULL }; -static int LUACALL wxLua_wxCommand_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommand_GetName[1] = {{ wxLua_wxCommand_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommand_GetName }}; -// virtual wxString GetName(); -static int LUACALL wxLua_wxCommand_GetName(lua_State *L) -{ - // get this - wxCommand * self = (wxCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommand); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCommand_Undo[] = { &wxluatype_wxCommand, NULL }; -static int LUACALL wxLua_wxCommand_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCommand_Undo[1] = {{ wxLua_wxCommand_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCommand_Undo }}; -// virtual bool Undo(); // pure virtual -static int LUACALL wxLua_wxCommand_Undo(lua_State *L) -{ - // get this - wxCommand * self = (wxCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCommand); - // call Undo - bool returns = (self->Undo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxCommand_delete_function(void** p) -{ - wxCommand* o = (wxCommand*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCommand_methods[] = { - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommand_CanUndo, 1, NULL }, - { "Do", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommand_Do, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommand_GetName, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCommand_Undo, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCommand_methodCount = sizeof(wxCommand_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxCommandProcessor - - -#if wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxFileHistory -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileHistory' -int wxluatype_wxFileHistory = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_AddFileToHistory[] = { &wxluatype_wxFileHistory, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileHistory_AddFileToHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_AddFileToHistory[1] = {{ wxLua_wxFileHistory_AddFileToHistory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_AddFileToHistory }}; -// void AddFileToHistory(const wxString& filename); -static int LUACALL wxLua_wxFileHistory_AddFileToHistory(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call AddFileToHistory - self->AddFileToHistory(filename); - - return 0; -} - - -#if (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_AddFilesToMenu1[] = { &wxluatype_wxFileHistory, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxFileHistory_AddFilesToMenu1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu1[1] = {{ wxLua_wxFileHistory_AddFilesToMenu1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_AddFilesToMenu1 }}; -// void AddFilesToMenu(wxMenu* menu); -static int LUACALL wxLua_wxFileHistory_AddFilesToMenu1(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call AddFilesToMenu - self->AddFilesToMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_AddFilesToMenu[] = { &wxluatype_wxFileHistory, NULL }; -static int LUACALL wxLua_wxFileHistory_AddFilesToMenu(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu[1] = {{ wxLua_wxFileHistory_AddFilesToMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileHistory_AddFilesToMenu }}; -// void AddFilesToMenu(); -static int LUACALL wxLua_wxFileHistory_AddFilesToMenu(lua_State *L) -{ - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call AddFilesToMenu - self->AddFilesToMenu(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_GetCount[] = { &wxluatype_wxFileHistory, NULL }; -static int LUACALL wxLua_wxFileHistory_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_GetCount[1] = {{ wxLua_wxFileHistory_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileHistory_GetCount }}; -// size_t GetCount() const; -static int LUACALL wxLua_wxFileHistory_GetCount(lua_State *L) -{ - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call GetCount - size_t returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_GetHistoryFile[] = { &wxluatype_wxFileHistory, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileHistory_GetHistoryFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_GetHistoryFile[1] = {{ wxLua_wxFileHistory_GetHistoryFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_GetHistoryFile }}; -// wxString GetHistoryFile(int index) const; -static int LUACALL wxLua_wxFileHistory_GetHistoryFile(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call GetHistoryFile - wxString returns = (self->GetHistoryFile(index)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_GetMaxFiles[] = { &wxluatype_wxFileHistory, NULL }; -static int LUACALL wxLua_wxFileHistory_GetMaxFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_GetMaxFiles[1] = {{ wxLua_wxFileHistory_GetMaxFiles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileHistory_GetMaxFiles }}; -// int GetMaxFiles() const; -static int LUACALL wxLua_wxFileHistory_GetMaxFiles(lua_State *L) -{ - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call GetMaxFiles - int returns = (self->GetMaxFiles()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_Load[] = { &wxluatype_wxFileHistory, &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxFileHistory_Load(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_Load[1] = {{ wxLua_wxFileHistory_Load, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_Load }}; -// void Load(wxConfigBase& config); -static int LUACALL wxLua_wxFileHistory_Load(lua_State *L) -{ - // wxConfigBase config - wxConfigBase * config = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call Load - self->Load(*config); - - return 0; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_RemoveFileFromHistory[] = { &wxluatype_wxFileHistory, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFileHistory_RemoveFileFromHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_RemoveFileFromHistory[1] = {{ wxLua_wxFileHistory_RemoveFileFromHistory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_RemoveFileFromHistory }}; -// void RemoveFileFromHistory(size_t i); -static int LUACALL wxLua_wxFileHistory_RemoveFileFromHistory(lua_State *L) -{ - // size_t i - size_t i = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call RemoveFileFromHistory - self->RemoveFileFromHistory(i); - - return 0; -} - - -#if (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_RemoveMenu[] = { &wxluatype_wxFileHistory, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxFileHistory_RemoveMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_RemoveMenu[1] = {{ wxLua_wxFileHistory_RemoveMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_RemoveMenu }}; -// void RemoveMenu(wxMenu* menu); -static int LUACALL wxLua_wxFileHistory_RemoveMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call RemoveMenu - self->RemoveMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_Save[] = { &wxluatype_wxFileHistory, &wxluatype_wxConfigBase, NULL }; -static int LUACALL wxLua_wxFileHistory_Save(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_Save[1] = {{ wxLua_wxFileHistory_Save, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_Save }}; -// void Save(wxConfigBase& config); -static int LUACALL wxLua_wxFileHistory_Save(lua_State *L) -{ - // wxConfigBase config - wxConfigBase * config = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call Save - self->Save(*config); - - return 0; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_UseMenu[] = { &wxluatype_wxFileHistory, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxFileHistory_UseMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_UseMenu[1] = {{ wxLua_wxFileHistory_UseMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_UseMenu }}; -// void UseMenu(wxMenu* menu); -static int LUACALL wxLua_wxFileHistory_UseMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxFileHistory * self = (wxFileHistory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileHistory); - // call UseMenu - self->UseMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_delete[] = { &wxluatype_wxFileHistory, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileHistory_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileHistory_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileHistory_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_constructor[1] = {{ wxLua_wxFileHistory_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxFileHistory_constructor }}; -// wxFileHistory(int maxFiles = 9, wxWindowID idBase = wxID_FILE1); -static int LUACALL wxLua_wxFileHistory_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID idBase = wxID_FILE1 - wxWindowID idBase = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_FILE1); - // int maxFiles = 9 - int maxFiles = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 9); - // call constructor - wxFileHistory* returns = new wxFileHistory(maxFiles, idBase); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileHistory); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileHistory); - - return 1; -} - - - - -#if ((wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu_overload[] = -{ - -#if (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxFileHistory_AddFilesToMenu1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileHistory_AddFilesToMenu1 }, -#endif // (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxFileHistory_AddFilesToMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileHistory_AddFilesToMenu }, -}; -static int s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu_overload_count = sizeof(s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -void wxLua_wxFileHistory_delete_function(void** p) -{ - wxFileHistory* o = (wxFileHistory*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileHistory_methods[] = { - { "AddFileToHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_AddFileToHistory, 1, NULL }, - -#if ((wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - { "AddFilesToMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu_overload, s_wxluafunc_wxLua_wxFileHistory_AddFilesToMenu_overload_count, 0 }, -#endif // ((wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_GetCount, 1, NULL }, - { "GetHistoryFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_GetHistoryFile, 1, NULL }, - { "GetMaxFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_GetMaxFiles, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_Load, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - - { "RemoveFileFromHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_RemoveFileFromHistory, 1, NULL }, - -#if (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "RemoveMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_RemoveMenu, 1, NULL }, -#endif // (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - { "Save", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_Save, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) - -#if (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "UseMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileHistory_UseMenu, 1, NULL }, -#endif // (wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileHistory_delete, 1, NULL }, - { "wxFileHistory", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileHistory_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileHistory_methodCount = sizeof(wxFileHistory_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxFileHistory && wxUSE_DOC_VIEW_ARCHITECTURE - diff --git a/wxLua/modules/wxbind/src/wxcore_menutool.cpp b/wxLua/modules/wxbind/src/wxcore_menutool.cpp deleted file mode 100644 index 0112e2d6..00000000 --- a/wxLua/modules/wxbind/src/wxcore_menutool.cpp +++ /dev/null @@ -1,6171 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_menutool.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxMenu && wxUSE_MENUS -// --------------------------------------------------------------------------- -// Bind class wxMenu -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMenu' -int wxluatype_wxMenu = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Append2[] = { &wxluatype_wxMenu, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenu_Append2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Append2[1] = {{ wxLua_wxMenu_Append2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Append2 }}; -// wxMenuItem* Append(%ungc wxMenuItem* menuItem); -static int LUACALL wxLua_wxMenu_Append2(lua_State *L) -{ - // wxMenuItem menuItem - wxMenuItem * menuItem = (wxMenuItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuItem); - if (wxluaO_isgcobject(L, menuItem)) wxluaO_undeletegcobject(L, menuItem); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Append - wxMenuItem* returns = (wxMenuItem*)self->Append(menuItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Append1[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_Append1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Append1[1] = {{ wxLua_wxMenu_Append1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxMenu_Append1 }}; -// wxMenuItem* Append(int id, const wxString& item, %ungc wxMenu *subMenu, const wxString& helpString = ""); -static int LUACALL wxLua_wxMenu_Append1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString helpString = "" - const wxString helpString = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // wxMenu subMenu - wxMenu * subMenu = (wxMenu *)wxluaT_getuserdatatype(L, 4, wxluatype_wxMenu); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - if (wxluaO_isgcobject(L, subMenu)) wxluaO_undeletegcobject(L, subMenu); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Append - wxMenuItem* returns = (wxMenuItem*)self->Append(id, item, subMenu, helpString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Append[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenu_Append(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Append[1] = {{ wxLua_wxMenu_Append, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxMenu_Append }}; -// wxMenuItem* Append(int id, const wxString& item, const wxString& helpString = "", wxItemKind kind = wxITEM_NORMAL); -static int LUACALL wxLua_wxMenu_Append(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 5 ? (wxItemKind)wxlua_getenumtype(L, 5) : wxITEM_NORMAL); - // const wxString helpString = "" - const wxString helpString = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Append - wxMenuItem* returns = (wxMenuItem*)self->Append(id, item, helpString, kind); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_AppendCheckItem[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_AppendCheckItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_AppendCheckItem[1] = {{ wxLua_wxMenu_AppendCheckItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxMenu_AppendCheckItem }}; -// wxMenuItem* AppendCheckItem(int id, const wxString& item, const wxString& help = ""); -static int LUACALL wxLua_wxMenu_AppendCheckItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString help = "" - const wxString help = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call AppendCheckItem - wxMenuItem* returns = (wxMenuItem*)self->AppendCheckItem(id, item, help); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_AppendRadioItem[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_AppendRadioItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_AppendRadioItem[1] = {{ wxLua_wxMenu_AppendRadioItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxMenu_AppendRadioItem }}; -// wxMenuItem* AppendRadioItem(int id, const wxString& item, const wxString& help = ""); -static int LUACALL wxLua_wxMenu_AppendRadioItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString help = "" - const wxString help = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call AppendRadioItem - wxMenuItem* returns = (wxMenuItem*)self->AppendRadioItem(id, item, help); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_AppendSeparator[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_AppendSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_AppendSeparator[1] = {{ wxLua_wxMenu_AppendSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_AppendSeparator }}; -// wxMenuItem* AppendSeparator(); -static int LUACALL wxLua_wxMenu_AppendSeparator(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call AppendSeparator - wxMenuItem* returns = (wxMenuItem*)self->AppendSeparator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_AppendSubMenu[] = { &wxluatype_wxMenu, &wxluatype_wxMenu, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_AppendSubMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_AppendSubMenu[1] = {{ wxLua_wxMenu_AppendSubMenu, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxMenu_AppendSubMenu }}; -// wxMenuItem* AppendSubMenu(%ungc wxMenu *submenu, const wxString& text, const wxString& help = ""); -static int LUACALL wxLua_wxMenu_AppendSubMenu(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString help = "" - const wxString help = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxMenu submenu - wxMenu * submenu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - if (wxluaO_isgcobject(L, submenu)) wxluaO_undeletegcobject(L, submenu); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call AppendSubMenu - wxMenuItem* returns = (wxMenuItem*)self->AppendSubMenu(submenu, text, help); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Attach[] = { &wxluatype_wxMenu, &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenu_Attach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Attach[1] = {{ wxLua_wxMenu_Attach, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Attach }}; -// %wxchkver_3_0_0 virtual void Attach(wxMenuBar *menubar); -static int LUACALL wxLua_wxMenu_Attach(lua_State *L) -{ - // wxMenuBar menubar - wxMenuBar * menubar = (wxMenuBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuBar); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Attach - self->Attach(menubar); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Break[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_Break(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Break[1] = {{ wxLua_wxMenu_Break, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_Break }}; -// void Break(); -static int LUACALL wxLua_wxMenu_Break(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Break - self->Break(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Check[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenu_Check(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Check[1] = {{ wxLua_wxMenu_Check, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenu_Check }}; -// void Check(int id, bool check); -static int LUACALL wxLua_wxMenu_Check(lua_State *L) -{ - // bool check - bool check = wxlua_getbooleantype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Check - self->Check(id, check); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Delete1[] = { &wxluatype_wxMenu, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenu_Delete1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Delete1[1] = {{ wxLua_wxMenu_Delete1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Delete1 }}; -// void Delete(wxMenuItem *item); -static int LUACALL wxLua_wxMenu_Delete1(lua_State *L) -{ - // wxMenuItem item - wxMenuItem * item = (wxMenuItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuItem); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Delete - self->Delete(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Delete[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_Delete(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Delete[1] = {{ wxLua_wxMenu_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Delete }}; -// void Delete(int id); -static int LUACALL wxLua_wxMenu_Delete(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Delete - self->Delete(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Destroy1[] = { &wxluatype_wxMenu, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenu_Destroy1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Destroy1[1] = {{ wxLua_wxMenu_Destroy1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Destroy1 }}; -// void Destroy(wxMenuItem *item); -static int LUACALL wxLua_wxMenu_Destroy1(lua_State *L) -{ - // wxMenuItem item - wxMenuItem * item = (wxMenuItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuItem); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Destroy - self->Destroy(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Destroy[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_Destroy(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Destroy[1] = {{ wxLua_wxMenu_Destroy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Destroy }}; -// void Destroy(int id); -static int LUACALL wxLua_wxMenu_Destroy(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Destroy - self->Destroy(id); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Detach[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_Detach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Detach[1] = {{ wxLua_wxMenu_Detach, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_Detach }}; -// %wxchkver_3_0_0 virtual void Detach(); -static int LUACALL wxLua_wxMenu_Detach(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Detach - self->Detach(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Enable[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenu_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Enable[1] = {{ wxLua_wxMenu_Enable, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenu_Enable }}; -// void Enable(int id, bool enable); -static int LUACALL wxLua_wxMenu_Enable(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Enable - self->Enable(id, enable); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_FindChildItem[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxMenu_FindChildItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_FindChildItem[1] = {{ wxLua_wxMenu_FindChildItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMenu_FindChildItem }}; -// %wxchkver_3_0_0 wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const; -static int LUACALL wxLua_wxMenu_FindChildItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t pos = NULL - size_t * pos = (argCount >= 3 ? (size_t *)wxlua_touserdata(L, 3) : NULL); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call FindChildItem - wxMenuItem* returns = (wxMenuItem*)self->FindChildItem(id, pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#define wxLua_wxMenu_FindItem1 wxLua_wxMenu_FindItemById -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_FindItem1[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_FindItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_FindItem1[1] = {{ wxLua_wxMenu_FindItem1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_FindItem1 }}; -// %override wxLua_wxMenu_FindItemById -// %rename FindItemById wxMenuItem* FindItem(int id, wxMenu **menu = NULL) const -static int LUACALL wxLua_wxMenu_FindItemById(lua_State *L) -{ - // int id - int id = (int)wxlua_getintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call FindItem - wxMenu* foundMenu = NULL; - wxMenuItem *returns = self->FindItem(id, &foundMenu); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - if (foundMenu != NULL) - { - wxluaT_pushuserdatatype(L, foundMenu, wxluatype_wxMenu); - return 2; - } - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_FindItem[] = { &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_FindItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_FindItem[1] = {{ wxLua_wxMenu_FindItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_FindItem }}; -// int FindItem(const wxString& itemString) const; -static int LUACALL wxLua_wxMenu_FindItem(lua_State *L) -{ - // const wxString itemString - const wxString itemString = wxlua_getwxStringtype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call FindItem - int returns = (self->FindItem(itemString)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_FindItemByPosition[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenu_FindItemByPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_FindItemByPosition[1] = {{ wxLua_wxMenu_FindItemByPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_FindItemByPosition }}; -// wxMenuItem* FindItemByPosition(size_t position) const; -static int LUACALL wxLua_wxMenu_FindItemByPosition(lua_State *L) -{ - // size_t position - size_t position = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call FindItemByPosition - wxMenuItem* returns = (wxMenuItem*)self->FindItemByPosition(position); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetHelpString[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_GetHelpString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetHelpString[1] = {{ wxLua_wxMenu_GetHelpString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_GetHelpString }}; -// wxString GetHelpString(int id) const; -static int LUACALL wxLua_wxMenu_GetHelpString(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetHelpString - wxString returns = (self->GetHelpString(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetInvokingWindow[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetInvokingWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetInvokingWindow[1] = {{ wxLua_wxMenu_GetInvokingWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetInvokingWindow }}; -// %wxchkver_3_0_0 wxWindow *GetInvokingWindow() const; -static int LUACALL wxLua_wxMenu_GetInvokingWindow(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetInvokingWindow - wxWindow* returns = (wxWindow*)self->GetInvokingWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetLabel[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetLabel[1] = {{ wxLua_wxMenu_GetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_GetLabel }}; -// wxString GetLabel(int id) const; -static int LUACALL wxLua_wxMenu_GetLabel(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetLabel - wxString returns = (self->GetLabel(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetLabelText[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_GetLabelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetLabelText[1] = {{ wxLua_wxMenu_GetLabelText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_GetLabelText }}; -// %wxchkver_3_0_0 wxString GetLabelText(int id) const; -static int LUACALL wxLua_wxMenu_GetLabelText(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetLabelText - wxString returns = (self->GetLabelText(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetMenuItemCount[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetMenuItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetMenuItemCount[1] = {{ wxLua_wxMenu_GetMenuItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetMenuItemCount }}; -// size_t GetMenuItemCount() const; -static int LUACALL wxLua_wxMenu_GetMenuItemCount(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetMenuItemCount - size_t returns = (self->GetMenuItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetMenuItems[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetMenuItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetMenuItems[1] = {{ wxLua_wxMenu_GetMenuItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetMenuItems }}; -// wxMenuItemList& GetMenuItems() const; -static int LUACALL wxLua_wxMenu_GetMenuItems(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetMenuItems - wxMenuItemList* returns = (wxMenuItemList*)&self->GetMenuItems(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItemList); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetParent[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetParent[1] = {{ wxLua_wxMenu_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetParent }}; -// %wxchkver_3_0_0 wxMenu *GetParent() const; -static int LUACALL wxLua_wxMenu_GetParent(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetParent - wxMenu* returns = (wxMenu*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetStyle[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetStyle[1] = {{ wxLua_wxMenu_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetStyle }}; -// %wxchkver_3_0_0 long GetStyle() const; -static int LUACALL wxLua_wxMenu_GetStyle(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetStyle - long returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetTitle[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetTitle[1] = {{ wxLua_wxMenu_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetTitle }}; -// wxString GetTitle() const; -static int LUACALL wxLua_wxMenu_GetTitle(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_GetWindow[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_GetWindow[1] = {{ wxLua_wxMenu_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_GetWindow }}; -// %wxchkver_3_0_0 wxWindow *GetWindow() const; -static int LUACALL wxLua_wxMenu_GetWindow(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Insert2[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_Insert2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Insert2[1] = {{ wxLua_wxMenu_Insert2, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxMenu_Insert2 }}; -// %wxchkver_3_0_0 wxMenuItem* Insert(size_t pos, int id, const wxString& text, wxMenu* submenu, const wxString& help = wxEmptyString); -static int LUACALL wxLua_wxMenu_Insert2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString help = wxEmptyString - const wxString help = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // wxMenu submenu - wxMenu * submenu = (wxMenu *)wxluaT_getuserdatatype(L, 5, wxluatype_wxMenu); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // int id - int id = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Insert - wxMenuItem* returns = (wxMenuItem*)self->Insert(pos, id, text, submenu, help); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Insert1[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenu_Insert1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Insert1[1] = {{ wxLua_wxMenu_Insert1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxMenu_Insert1 }}; -// wxMenuItem* Insert(size_t pos, int id, const wxString& item, const wxString& helpString = "", wxItemKind kind = wxITEM_NORMAL); -static int LUACALL wxLua_wxMenu_Insert1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 6 ? (wxItemKind)wxlua_getenumtype(L, 6) : wxITEM_NORMAL); - // const wxString helpString = "" - const wxString helpString = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 4); - // int id - int id = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Insert - wxMenuItem* returns = (wxMenuItem*)self->Insert(pos, id, item, helpString, kind); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Insert[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenu_Insert(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Insert[1] = {{ wxLua_wxMenu_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenu_Insert }}; -// wxMenuItem* Insert(size_t pos, %ungc wxMenuItem *menuItem); -static int LUACALL wxLua_wxMenu_Insert(lua_State *L) -{ - // wxMenuItem menuItem - wxMenuItem * menuItem = (wxMenuItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxMenuItem); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, menuItem)) wxluaO_undeletegcobject(L, menuItem); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Insert - wxMenuItem* returns = (wxMenuItem*)self->Insert(pos, menuItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_InsertCheckItem[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_InsertCheckItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_InsertCheckItem[1] = {{ wxLua_wxMenu_InsertCheckItem, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxMenu_InsertCheckItem }}; -// wxMenuItem* InsertCheckItem(size_t pos, int id, const wxString& item, const wxString& helpString = ""); -static int LUACALL wxLua_wxMenu_InsertCheckItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString helpString = "" - const wxString helpString = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 4); - // int id - int id = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call InsertCheckItem - wxMenuItem* returns = (wxMenuItem*)self->InsertCheckItem(pos, id, item, helpString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_InsertRadioItem[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_InsertRadioItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_InsertRadioItem[1] = {{ wxLua_wxMenu_InsertRadioItem, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxMenu_InsertRadioItem }}; -// wxMenuItem* InsertRadioItem(size_t pos, int id, const wxString& item, const wxString& helpString = ""); -static int LUACALL wxLua_wxMenu_InsertRadioItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString helpString = "" - const wxString helpString = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 4); - // int id - int id = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call InsertRadioItem - wxMenuItem* returns = (wxMenuItem*)self->InsertRadioItem(pos, id, item, helpString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_InsertSeparator[] = { &wxluatype_wxMenu, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenu_InsertSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_InsertSeparator[1] = {{ wxLua_wxMenu_InsertSeparator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_InsertSeparator }}; -// wxMenuItem* InsertSeparator(size_t pos); -static int LUACALL wxLua_wxMenu_InsertSeparator(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call InsertSeparator - wxMenuItem* returns = (wxMenuItem*)self->InsertSeparator(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_IsAttached[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_IsAttached(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_IsAttached[1] = {{ wxLua_wxMenu_IsAttached, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_IsAttached }}; -// %wxchkver_3_0_0 bool IsAttached() const; -static int LUACALL wxLua_wxMenu_IsAttached(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call IsAttached - bool returns = (self->IsAttached()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_IsChecked[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_IsChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_IsChecked[1] = {{ wxLua_wxMenu_IsChecked, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_IsChecked }}; -// bool IsChecked(int id) const; -static int LUACALL wxLua_wxMenu_IsChecked(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call IsChecked - bool returns = (self->IsChecked(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_IsEnabled[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_IsEnabled[1] = {{ wxLua_wxMenu_IsEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_IsEnabled }}; -// bool IsEnabled(int id) const; -static int LUACALL wxLua_wxMenu_IsEnabled(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call IsEnabled - bool returns = (self->IsEnabled(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Prepend2[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_Prepend2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Prepend2[1] = {{ wxLua_wxMenu_Prepend2, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxMenu_Prepend2 }}; -// %wxchkver_3_0_0 wxMenuItem* Prepend(int id, const wxString& text, wxMenu* submenu, const wxString& help = wxEmptyString); -static int LUACALL wxLua_wxMenu_Prepend2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString help = wxEmptyString - const wxString help = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // wxMenu submenu - wxMenu * submenu = (wxMenu *)wxluaT_getuserdatatype(L, 4, wxluatype_wxMenu); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Prepend - wxMenuItem* returns = (wxMenuItem*)self->Prepend(id, text, submenu, help); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Prepend1[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenu_Prepend1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Prepend1[1] = {{ wxLua_wxMenu_Prepend1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxMenu_Prepend1 }}; -// wxMenuItem* Prepend(int id, const wxString& item, const wxString& helpString = "", wxItemKind kind = wxITEM_NORMAL); -static int LUACALL wxLua_wxMenu_Prepend1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 5 ? (wxItemKind)wxlua_getenumtype(L, 5) : wxITEM_NORMAL); - // const wxString helpString = "" - const wxString helpString = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Prepend - wxMenuItem* returns = (wxMenuItem*)self->Prepend(id, item, helpString, kind); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Prepend[] = { &wxluatype_wxMenu, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenu_Prepend(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Prepend[1] = {{ wxLua_wxMenu_Prepend, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Prepend }}; -// wxMenuItem* Prepend(%ungc wxMenuItem *item); -static int LUACALL wxLua_wxMenu_Prepend(lua_State *L) -{ - // wxMenuItem item - wxMenuItem * item = (wxMenuItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuItem); - if (wxluaO_isgcobject(L, item)) wxluaO_undeletegcobject(L, item); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Prepend - wxMenuItem* returns = (wxMenuItem*)self->Prepend(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_PrependCheckItem[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_PrependCheckItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_PrependCheckItem[1] = {{ wxLua_wxMenu_PrependCheckItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxMenu_PrependCheckItem }}; -// wxMenuItem* PrependCheckItem(int id, const wxString& item, const wxString& helpString = ""); -static int LUACALL wxLua_wxMenu_PrependCheckItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString helpString = "" - const wxString helpString = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call PrependCheckItem - wxMenuItem* returns = (wxMenuItem*)self->PrependCheckItem(id, item, helpString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_PrependRadioItem[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_PrependRadioItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_PrependRadioItem[1] = {{ wxLua_wxMenu_PrependRadioItem, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxMenu_PrependRadioItem }}; -// wxMenuItem* PrependRadioItem(int id, const wxString& item, const wxString& helpString = ""); -static int LUACALL wxLua_wxMenu_PrependRadioItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString helpString = "" - const wxString helpString = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call PrependRadioItem - wxMenuItem* returns = (wxMenuItem*)self->PrependRadioItem(id, item, helpString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_PrependSeparator[] = { &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_PrependSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_PrependSeparator[1] = {{ wxLua_wxMenu_PrependSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenu_PrependSeparator }}; -// wxMenuItem* PrependSeparator(); -static int LUACALL wxLua_wxMenu_PrependSeparator(lua_State *L) -{ - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call PrependSeparator - wxMenuItem* returns = (wxMenuItem*)self->PrependSeparator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Remove1[] = { &wxluatype_wxMenu, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenu_Remove1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Remove1[1] = {{ wxLua_wxMenu_Remove1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Remove1 }}; -// %gc wxMenuItem* Remove(wxMenuItem *item); -static int LUACALL wxLua_wxMenu_Remove1(lua_State *L) -{ - // wxMenuItem item - wxMenuItem * item = (wxMenuItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenuItem); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Remove - wxMenuItem* returns = (wxMenuItem*)self->Remove(item); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxMenuItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_Remove[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_Remove(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Remove[1] = {{ wxLua_wxMenu_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Remove }}; -// %gc wxMenuItem* Remove(int id); -static int LUACALL wxLua_wxMenu_Remove(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call Remove - wxMenuItem* returns = (wxMenuItem*)self->Remove(id); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxMenuItem); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_SetHelpString[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_SetHelpString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_SetHelpString[1] = {{ wxLua_wxMenu_SetHelpString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenu_SetHelpString }}; -// void SetHelpString(int id, const wxString& helpString); -static int LUACALL wxLua_wxMenu_SetHelpString(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call SetHelpString - self->SetHelpString(id, helpString); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_SetInvokingWindow[] = { &wxluatype_wxMenu, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxMenu_SetInvokingWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_SetInvokingWindow[1] = {{ wxLua_wxMenu_SetInvokingWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_SetInvokingWindow }}; -// %wxchkver_3_0_0 void SetInvokingWindow(wxWindow *win); -static int LUACALL wxLua_wxMenu_SetInvokingWindow(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call SetInvokingWindow - self->SetInvokingWindow(win); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_SetLabel[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_SetLabel[1] = {{ wxLua_wxMenu_SetLabel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenu_SetLabel }}; -// void SetLabel(int id, const wxString& label); -static int LUACALL wxLua_wxMenu_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call SetLabel - self->SetLabel(id, label); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_SetParent[] = { &wxluatype_wxMenu, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenu_SetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_SetParent[1] = {{ wxLua_wxMenu_SetParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_SetParent }}; -// %wxchkver_3_0_0 void SetParent(wxMenu *parent); -static int LUACALL wxLua_wxMenu_SetParent(lua_State *L) -{ - // wxMenu parent - wxMenu * parent = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call SetParent - self->SetParent(parent); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_SetTitle[] = { &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenu_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_SetTitle[1] = {{ wxLua_wxMenu_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_SetTitle }}; -// void SetTitle(const wxString& title); -static int LUACALL wxLua_wxMenu_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call SetTitle - self->SetTitle(title); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_UpdateUI[] = { &wxluatype_wxMenu, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxMenu_UpdateUI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_UpdateUI[1] = {{ wxLua_wxMenu_UpdateUI, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMenu_UpdateUI }}; -// void UpdateUI(wxEvtHandler* source = NULL); -static int LUACALL wxLua_wxMenu_UpdateUI(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxEvtHandler source = NULL - wxEvtHandler * source = (argCount >= 2 ? (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler) : NULL); - // get this - wxMenu * self = (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu); - // call UpdateUI - self->UpdateUI(source); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_delete[] = { &wxluatype_wxMenu, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMenu_delete }}; - -#define wxLua_wxMenu_constructor3 wxLua_wxCreateMenu_constructor -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_constructor3[] = { &wxluatype_TTABLE, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_constructor3[1] = {{ wxLua_wxMenu_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxMenu_constructor3 }}; -// %override wxLua_wxCreateMenu_constructor -// %constructor wxCreateMenu(int table, const wxString& title = "", long style = 0) -static int LUACALL wxLua_wxCreateMenu_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 3 ? (long)wxlua_getintegertype(L, 3) : 0); - // const wxString& title = "" - wxString title = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT(""))); - // int table - if (lua_istable(L, 1)) - { - // call constructor - wxMenu *returns = new wxMenu(title, style); - - int idx, count = luaL_getn(L, 1); - - for (idx = 1; idx <= count; ++idx) - { - lua_pushinteger(L, idx); - lua_gettable(L, -2); - - if (lua_istable(L, -1)) - { - lua_pushinteger(L, 1); - lua_gettable(L, -2); - if (lua_isnil(L, -1)) - { - returns->AppendSeparator(); - lua_pop(L, 1); - } - else - { - wxString helpText; - wxString menuText; - wxItemKind kind = wxITEM_NORMAL; - - int iValue = (int)lua_tonumber(L, -1); - lua_pop(L, 1); - - lua_pushinteger(L, 2); - lua_gettable(L, -2); - menuText = wxlua_getwxStringtype(L, -1); - lua_pop(L, 1); - - lua_pushinteger(L, 3); - lua_gettable(L, -2); - if (lua_isstring(L, -1)) - helpText = wxlua_getwxStringtype(L, -1); - lua_pop(L, 1); - - lua_pushinteger(L, 4); - lua_gettable(L, -2); - if (lua_isnumber(L, -1)) - kind = (wxItemKind)wxlua_getenumtype(L, -1); - lua_pop(L, 1); - - returns->Append(iValue, menuText, helpText, kind); - } - } - lua_pop(L, 1); - } - - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - // return the number of parameters - return 1; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_constructor2[1] = {{ wxLua_wxMenu_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxMenu_constructor2 }}; -// wxMenu(const wxString& title = "", long style = 0); -static int LUACALL wxLua_wxMenu_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : 0); - // const wxString title = "" - const wxString title = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxMenu* returns = new wxMenu(title, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMenu); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenu_constructor1[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenu_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_constructor1[1] = {{ wxLua_wxMenu_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMenu_constructor1 }}; -// %wxchkver_3_0_0 wxMenu(long style); -static int LUACALL wxLua_wxMenu_constructor1(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 1); - // call constructor - wxMenu* returns = new wxMenu(style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMenu); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -static int LUACALL wxLua_wxMenu_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_constructor[1] = {{ wxLua_wxMenu_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 wxMenu(); -static int LUACALL wxLua_wxMenu_constructor(lua_State *L) -{ - // call constructor - wxMenu* returns = new wxMenu(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMenu); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Append_overload[] = -{ - { wxLua_wxMenu_Append2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Append2 }, - { wxLua_wxMenu_Append1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxMenu_Append1 }, - { wxLua_wxMenu_Append, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxMenu_Append }, -}; -static int s_wxluafunc_wxLua_wxMenu_Append_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_Append_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Delete_overload[] = -{ - { wxLua_wxMenu_Delete1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Delete1 }, - { wxLua_wxMenu_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Delete }, -}; -static int s_wxluafunc_wxLua_wxMenu_Delete_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_Delete_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Destroy_overload[] = -{ - { wxLua_wxMenu_Destroy1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Destroy1 }, - { wxLua_wxMenu_Destroy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Destroy }, -}; -static int s_wxluafunc_wxLua_wxMenu_Destroy_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_Destroy_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_FindItem_overload[] = -{ - { wxLua_wxMenu_FindItem1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_FindItem1 }, - { wxLua_wxMenu_FindItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_FindItem }, -}; -static int s_wxluafunc_wxLua_wxMenu_FindItem_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_FindItem_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxMenu && wxUSE_MENUS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Insert_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxMenu_Insert2, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxMenu_Insert2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxMenu_Insert1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxMenu_Insert1 }, - { wxLua_wxMenu_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenu_Insert }, -}; -static int s_wxluafunc_wxLua_wxMenu_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_Insert_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Prepend_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxMenu_Prepend2, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxMenu_Prepend2 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxMenu_Prepend1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxMenu_Prepend1 }, - { wxLua_wxMenu_Prepend, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Prepend }, -}; -static int s_wxluafunc_wxLua_wxMenu_Prepend_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_Prepend_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_Remove_overload[] = -{ - { wxLua_wxMenu_Remove1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Remove1 }, - { wxLua_wxMenu_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenu_Remove }, -}; -static int s_wxluafunc_wxLua_wxMenu_Remove_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_Remove_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenu_constructor_overload[] = -{ - { wxLua_wxMenu_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxMenu_constructor3 }, - { wxLua_wxMenu_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxMenu_constructor2 }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxMenu_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxMenu_constructor1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxMenu_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -}; -static int s_wxluafunc_wxLua_wxMenu_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMenu_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - -void wxLua_wxMenu_delete_function(void** p) -{ - wxMenu* o = (wxMenu*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMenu_methods[] = { -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Append_overload, s_wxluafunc_wxLua_wxMenu_Append_overload_count, 0 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "AppendCheckItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_AppendCheckItem, 1, NULL }, - { "AppendRadioItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_AppendRadioItem, 1, NULL }, - { "AppendSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_AppendSeparator, 1, NULL }, - { "AppendSubMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_AppendSubMenu, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Attach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Attach, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Break", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Break, 1, NULL }, - { "Check", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Check, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Delete_overload, s_wxluafunc_wxLua_wxMenu_Delete_overload_count, 0 }, - { "Destroy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Destroy_overload, s_wxluafunc_wxLua_wxMenu_Destroy_overload_count, 0 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Detach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Detach, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Enable, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "FindChildItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_FindChildItem, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "FindItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_FindItem_overload, s_wxluafunc_wxLua_wxMenu_FindItem_overload_count, 0 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "FindItemByPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_FindItemByPosition, 1, NULL }, - { "GetHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetHelpString, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetInvokingWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetInvokingWindow, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetLabel, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetLabelText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetLabelText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetMenuItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetMenuItemCount, 1, NULL }, - { "GetMenuItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetMenuItems, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetParent, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetStyle, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetTitle, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_GetWindow, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Insert_overload, s_wxluafunc_wxLua_wxMenu_Insert_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "InsertCheckItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_InsertCheckItem, 1, NULL }, - { "InsertRadioItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_InsertRadioItem, 1, NULL }, - { "InsertSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_InsertSeparator, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "IsAttached", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_IsAttached, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "IsChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_IsChecked, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_IsEnabled, 1, NULL }, - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Prepend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Prepend_overload, s_wxluafunc_wxLua_wxMenu_Prepend_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "PrependCheckItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_PrependCheckItem, 1, NULL }, - { "PrependRadioItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_PrependRadioItem, 1, NULL }, - { "PrependSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_PrependSeparator, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_Remove_overload, s_wxluafunc_wxLua_wxMenu_Remove_overload_count, 0 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_SetHelpString, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetInvokingWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_SetInvokingWindow, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_SetLabel, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_SetParent, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_SetTitle, 1, NULL }, - { "UpdateUI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenu_UpdateUI, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMenu_delete, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - { "wxMenu", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMenu_constructor_overload, s_wxluafunc_wxLua_wxMenu_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS)||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - - { 0, 0, 0, 0 }, -}; - -int wxMenu_methodCount = sizeof(wxMenu_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - - -#if wxLUA_USE_wxMenu && wxUSE_MENUS -// --------------------------------------------------------------------------- -// Bind class wxMenuBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMenuBar' -int wxluatype_wxMenuBar = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Append[] = { &wxluatype_wxMenuBar, &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_Append(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Append[1] = {{ wxLua_wxMenuBar_Append, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_Append }}; -// bool Append(%ungc wxMenu *menu, const wxString& title); -static int LUACALL wxLua_wxMenuBar_Append(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - if (wxluaO_isgcobject(L, menu)) wxluaO_undeletegcobject(L, menu); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Append - bool returns = (self->Append(menu, title)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Attach[] = { &wxluatype_wxMenuBar, &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxMenuBar_Attach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Attach[1] = {{ wxLua_wxMenuBar_Attach, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_Attach }}; -// void Attach(wxFrame *frame); -static int LUACALL wxLua_wxMenuBar_Attach(lua_State *L) -{ - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Attach - self->Attach(frame); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Check[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuBar_Check(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Check[1] = {{ wxLua_wxMenuBar_Check, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_Check }}; -// void Check(int id, bool check); -static int LUACALL wxLua_wxMenuBar_Check(lua_State *L) -{ - // bool check - bool check = wxlua_getbooleantype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Check - self->Check(id, check); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Detach[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_Detach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Detach[1] = {{ wxLua_wxMenuBar_Detach, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_Detach }}; -// void Detach(); -static int LUACALL wxLua_wxMenuBar_Detach(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Detach - self->Detach(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Enable[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuBar_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Enable[1] = {{ wxLua_wxMenuBar_Enable, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_Enable }}; -// void Enable(int id, bool enable); -static int LUACALL wxLua_wxMenuBar_Enable(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Enable - self->Enable(id, enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_EnableTop[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuBar_EnableTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_EnableTop[1] = {{ wxLua_wxMenuBar_EnableTop, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_EnableTop }}; -// void EnableTop(size_t pos, bool enable); -static int LUACALL wxLua_wxMenuBar_EnableTop(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call EnableTop - self->EnableTop(pos, enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_FindItem[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenuBar_FindItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_FindItem[1] = {{ wxLua_wxMenuBar_FindItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMenuBar_FindItem }}; -// %override wxLua_wxMenuBar_FindItem -// wxMenuItem* FindItem(int id, wxMenu **menu = NULL) const -static int LUACALL wxLua_wxMenuBar_FindItem(lua_State *L) -{ - // int id - int id = (int)wxlua_getintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call FindItem - wxMenu* foundMenu = NULL; - wxMenuItem *returns = self->FindItem(id, &foundMenu); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - if (foundMenu != NULL) - { - wxluaT_pushuserdatatype(L, foundMenu, wxluatype_wxMenu); - return 2; - } - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_FindMenu[] = { &wxluatype_wxMenuBar, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_FindMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_FindMenu[1] = {{ wxLua_wxMenuBar_FindMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_FindMenu }}; -// int FindMenu(const wxString& title) const; -static int LUACALL wxLua_wxMenuBar_FindMenu(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call FindMenu - int returns = (self->FindMenu(title)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_FindMenuItem[] = { &wxluatype_wxMenuBar, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_FindMenuItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_FindMenuItem[1] = {{ wxLua_wxMenuBar_FindMenuItem, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_FindMenuItem }}; -// int FindMenuItem(const wxString& menuString, const wxString& itemString) const; -static int LUACALL wxLua_wxMenuBar_FindMenuItem(lua_State *L) -{ - // const wxString itemString - const wxString itemString = wxlua_getwxStringtype(L, 3); - // const wxString menuString - const wxString menuString = wxlua_getwxStringtype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call FindMenuItem - int returns = (self->FindMenuItem(menuString, itemString)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static int LUACALL wxLua_wxMenuBar_GetAutoWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetAutoWindowMenu[1] = {{ wxLua_wxMenuBar_GetAutoWindowMenu, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %mac static bool GetAutoWindowMenu(); -static int LUACALL wxLua_wxMenuBar_GetAutoWindowMenu(lua_State *L) -{ - // call GetAutoWindowMenu - bool returns = (wxMenuBar::GetAutoWindowMenu()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetFrame[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_GetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetFrame[1] = {{ wxLua_wxMenuBar_GetFrame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_GetFrame }}; -// wxFrame *GetFrame() const; -static int LUACALL wxLua_wxMenuBar_GetFrame(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetFrame - wxFrame* returns = (wxFrame*)self->GetFrame(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetHelpString[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuBar_GetHelpString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetHelpString[1] = {{ wxLua_wxMenuBar_GetHelpString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_GetHelpString }}; -// wxString GetHelpString(int id) const; -static int LUACALL wxLua_wxMenuBar_GetHelpString(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetHelpString - wxString returns = (self->GetHelpString(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetLabel[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuBar_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetLabel[1] = {{ wxLua_wxMenuBar_GetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_GetLabel }}; -// wxString GetLabel(int id) const; -static int LUACALL wxLua_wxMenuBar_GetLabel(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetLabel - wxString returns = (self->GetLabel(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetLabelTop[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuBar_GetLabelTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetLabelTop[1] = {{ wxLua_wxMenuBar_GetLabelTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_GetLabelTop }}; -// !%wxchkver_2_9_4 || %wxcompat_2_8 wxString GetLabelTop(int pos) const; -static int LUACALL wxLua_wxMenuBar_GetLabelTop(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetLabelTop - wxString returns = (self->GetLabelTop(pos)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetMenu[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenuBar_GetMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetMenu[1] = {{ wxLua_wxMenuBar_GetMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_GetMenu }}; -// %wxchkver_2_9_4 wxMenu* GetMenu(size_t menuIndex) const; -static int LUACALL wxLua_wxMenuBar_GetMenu(lua_State *L) -{ - // size_t menuIndex - size_t menuIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetMenu - wxMenu* returns = (wxMenu*)self->GetMenu(menuIndex); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetMenuCount[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_GetMenuCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetMenuCount[1] = {{ wxLua_wxMenuBar_GetMenuCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_GetMenuCount }}; -// int GetMenuCount() const; -static int LUACALL wxLua_wxMenuBar_GetMenuCount(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetMenuCount - int returns = (self->GetMenuCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetMenuLabel[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenuBar_GetMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetMenuLabel[1] = {{ wxLua_wxMenuBar_GetMenuLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_GetMenuLabel }}; -// %wxchkver_3_0 wxString GetMenuLabel(size_t pos) const; -static int LUACALL wxLua_wxMenuBar_GetMenuLabel(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetMenuLabel - wxString returns = (self->GetMenuLabel(pos)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_GetMenuLabelText[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenuBar_GetMenuLabelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_GetMenuLabelText[1] = {{ wxLua_wxMenuBar_GetMenuLabelText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_GetMenuLabelText }}; -// %wxchkver_3_0 wxString GetMenuLabelText(size_t pos) const; -static int LUACALL wxLua_wxMenuBar_GetMenuLabelText(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call GetMenuLabelText - wxString returns = (self->GetMenuLabelText(pos)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Insert[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Insert[1] = {{ wxLua_wxMenuBar_Insert, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMenuBar_Insert }}; -// bool Insert(size_t pos, %ungc wxMenu *menu, const wxString& title); -static int LUACALL wxLua_wxMenuBar_Insert(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 3, wxluatype_wxMenu); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, menu)) wxluaO_undeletegcobject(L, menu); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Insert - bool returns = (self->Insert(pos, menu, title)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_IsAttached[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_IsAttached(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_IsAttached[1] = {{ wxLua_wxMenuBar_IsAttached, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_IsAttached }}; -// bool IsAttached() const; -static int LUACALL wxLua_wxMenuBar_IsAttached(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call IsAttached - bool returns = (self->IsAttached()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_IsChecked[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuBar_IsChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_IsChecked[1] = {{ wxLua_wxMenuBar_IsChecked, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_IsChecked }}; -// bool IsChecked(int id) const; -static int LUACALL wxLua_wxMenuBar_IsChecked(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call IsChecked - bool returns = (self->IsChecked(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_IsEnabled[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuBar_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_IsEnabled[1] = {{ wxLua_wxMenuBar_IsEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_IsEnabled }}; -// bool IsEnabled(int id) const; -static int LUACALL wxLua_wxMenuBar_IsEnabled(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call IsEnabled - bool returns = (self->IsEnabled(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_IsEnabledTop[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenuBar_IsEnabledTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_IsEnabledTop[1] = {{ wxLua_wxMenuBar_IsEnabledTop, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_IsEnabledTop }}; -// %wxchkver_2_9_4 bool IsEnabledTop(size_t pos) const; -static int LUACALL wxLua_wxMenuBar_IsEnabledTop(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call IsEnabledTop - bool returns = (self->IsEnabledTop(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static int LUACALL wxLua_wxMenuBar_MacGetCommonMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_MacGetCommonMenuBar[1] = {{ wxLua_wxMenuBar_MacGetCommonMenuBar, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %mac static wxMenuBar* MacGetCommonMenuBar(); -static int LUACALL wxLua_wxMenuBar_MacGetCommonMenuBar(lua_State *L) -{ - // call MacGetCommonMenuBar - wxMenuBar* returns = (wxMenuBar*)wxMenuBar::MacGetCommonMenuBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - -static int LUACALL wxLua_wxMenuBar_MacGetInstalledMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_MacGetInstalledMenuBar[1] = {{ wxLua_wxMenuBar_MacGetInstalledMenuBar, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %mac static wxMenuBar* MacGetInstalledMenuBar(); -static int LUACALL wxLua_wxMenuBar_MacGetInstalledMenuBar(lua_State *L) -{ - // call MacGetInstalledMenuBar - wxMenuBar* returns = (wxMenuBar*)wxMenuBar::MacGetInstalledMenuBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - -#endif // ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_MacInstallMenuBar[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_MacInstallMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_MacInstallMenuBar[1] = {{ wxLua_wxMenuBar_MacInstallMenuBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_MacInstallMenuBar }}; -// %mac void MacInstallMenuBar(); -static int LUACALL wxLua_wxMenuBar_MacInstallMenuBar(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call MacInstallMenuBar - self->MacInstallMenuBar(); - - return 0; -} - -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_MacSetCommonMenuBar[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_MacSetCommonMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_MacSetCommonMenuBar[1] = {{ wxLua_wxMenuBar_MacSetCommonMenuBar, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_MacSetCommonMenuBar }}; -// %mac static void MacSetCommonMenuBar(wxMenuBar* menubar); -static int LUACALL wxLua_wxMenuBar_MacSetCommonMenuBar(lua_State *L) -{ - // wxMenuBar menubar - wxMenuBar * menubar = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call MacSetCommonMenuBar - wxMenuBar::MacSetCommonMenuBar(menubar); - - return 0; -} - -#endif // ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,1,0) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_MacUninstallMenuBar[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_MacUninstallMenuBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_MacUninstallMenuBar[1] = {{ wxLua_wxMenuBar_MacUninstallMenuBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_MacUninstallMenuBar }}; -// %wxchkver_3_1 && %mac void MacUninstallMenuBar(); -static int LUACALL wxLua_wxMenuBar_MacUninstallMenuBar(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call MacUninstallMenuBar - self->MacUninstallMenuBar(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(3,0,1) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_OSXGetAppleMenu[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_OSXGetAppleMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_OSXGetAppleMenu[1] = {{ wxLua_wxMenuBar_OSXGetAppleMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_OSXGetAppleMenu }}; -// %wxchkver_3_0_1 && %mac wxMenu *OSXGetAppleMenu() const; -static int LUACALL wxLua_wxMenuBar_OSXGetAppleMenu(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call OSXGetAppleMenu - wxMenu* returns = (wxMenu*)self->OSXGetAppleMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,1) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Refresh[] = { &wxluatype_wxMenuBar, &wxluatype_TBOOLEAN, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxMenuBar_Refresh(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Refresh[1] = {{ wxLua_wxMenuBar_Refresh, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxMenuBar_Refresh }}; -// void Refresh(bool eraseBackground = true, const wxRect* rect = NULL); -static int LUACALL wxLua_wxMenuBar_Refresh(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRect rect = NULL - const wxRect * rect = (argCount >= 3 ? (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect) : NULL); - // bool eraseBackground = true - bool eraseBackground = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Refresh - self->Refresh(eraseBackground, rect); - - return 0; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Remove[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenuBar_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Remove[1] = {{ wxLua_wxMenuBar_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuBar_Remove }}; -// %gc wxMenu* Remove(size_t pos); -static int LUACALL wxLua_wxMenuBar_Remove(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Remove - wxMenu* returns = (wxMenu*)self->Remove(pos); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxMenu); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_Replace[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, &wxluatype_wxMenu, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_Replace[1] = {{ wxLua_wxMenuBar_Replace, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxMenuBar_Replace }}; -// %gc wxMenu* Replace(size_t pos, %ungc wxMenu *menu, const wxString& title); -static int LUACALL wxLua_wxMenuBar_Replace(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 3, wxluatype_wxMenu); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, menu)) wxluaO_undeletegcobject(L, menu); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call Replace - wxMenu* returns = (wxMenu*)self->Replace(pos, menu, title); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxMenu); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_SetAutoWindowMenu[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuBar_SetAutoWindowMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_SetAutoWindowMenu[1] = {{ wxLua_wxMenuBar_SetAutoWindowMenu, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_SetAutoWindowMenu }}; -// %mac static void SetAutoWindowMenu(bool enable); -static int LUACALL wxLua_wxMenuBar_SetAutoWindowMenu(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 1); - // call SetAutoWindowMenu - wxMenuBar::SetAutoWindowMenu(enable); - - return 0; -} - -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_SetHelpString[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_SetHelpString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_SetHelpString[1] = {{ wxLua_wxMenuBar_SetHelpString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_SetHelpString }}; -// void SetHelpString(int id, const wxString& helpString); -static int LUACALL wxLua_wxMenuBar_SetHelpString(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call SetHelpString - self->SetHelpString(id, helpString); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_SetLabel[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_SetLabel[1] = {{ wxLua_wxMenuBar_SetLabel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_SetLabel }}; -// void SetLabel(int id, const wxString& label); -static int LUACALL wxLua_wxMenuBar_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call SetLabel - self->SetLabel(id, label); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_SetLabelTop[] = { &wxluatype_wxMenuBar, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_SetLabelTop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_SetLabelTop[1] = {{ wxLua_wxMenuBar_SetLabelTop, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_SetLabelTop }}; -// !%wxchkver_2_9_4 || %wxcompat_2_8 void SetLabelTop(int pos, const wxString& label); -static int LUACALL wxLua_wxMenuBar_SetLabelTop(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call SetLabelTop - self->SetLabelTop(pos, label); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_SetMenuLabel[] = { &wxluatype_wxMenuBar, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuBar_SetMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_SetMenuLabel[1] = {{ wxLua_wxMenuBar_SetMenuLabel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMenuBar_SetMenuLabel }}; -// %wxchkver_3_0 void SetMenuLabel(size_t pos, const wxString& label); -static int LUACALL wxLua_wxMenuBar_SetMenuLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call SetMenuLabel - self->SetMenuLabel(pos, label); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (!wxCHECK_VERSION(2,9,4) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_UpdateMenus[] = { &wxluatype_wxMenuBar, NULL }; -static int LUACALL wxLua_wxMenuBar_UpdateMenus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_UpdateMenus[1] = {{ wxLua_wxMenuBar_UpdateMenus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuBar_UpdateMenus }}; -// !%wxchkver_2_9_4 && %wxchkver_2_8 virtual void UpdateMenus(); -static int LUACALL wxLua_wxMenuBar_UpdateMenus(lua_State *L) -{ - // get this - wxMenuBar * self = (wxMenuBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuBar); - // call UpdateMenus - self->UpdateMenus(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,4) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuBar_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuBar_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuBar_constructor[1] = {{ wxLua_wxMenuBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxMenuBar_constructor }}; -// wxMenuBar(long style = 0); -static int LUACALL wxLua_wxMenuBar_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 1 ? (long)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxMenuBar* returns = new wxMenuBar(style); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - - - - -void wxLua_wxMenuBar_delete_function(void** p) -{ - wxMenuBar* o = (wxMenuBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMenuBar_methods[] = { - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Append, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Attach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Attach, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Check", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Check, 1, NULL }, - { "Detach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Detach, 1, NULL }, - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Enable, 1, NULL }, - { "EnableTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_EnableTop, 1, NULL }, - { "FindItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_FindItem, 1, NULL }, - { "FindMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_FindMenu, 1, NULL }, - { "FindMenuItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_FindMenuItem, 1, NULL }, - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetAutoWindowMenu", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuBar_GetAutoWindowMenu, 1, NULL }, -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetFrame, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetHelpString, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetLabel, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetLabelTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetLabelTop, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetMenu, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetMenuCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetMenuCount, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetMenuLabel, 1, NULL }, - { "GetMenuLabelText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_GetMenuLabelText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Insert, 1, NULL }, - { "IsAttached", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_IsAttached, 1, NULL }, - { "IsChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_IsChecked, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_IsEnabled, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "IsEnabledTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_IsEnabledTop, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "MacGetCommonMenuBar", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuBar_MacGetCommonMenuBar, 1, NULL }, - { "MacGetInstalledMenuBar", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuBar_MacGetInstalledMenuBar, 1, NULL }, -#endif // ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "MacInstallMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_MacInstallMenuBar, 1, NULL }, -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "MacSetCommonMenuBar", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuBar_MacSetCommonMenuBar, 1, NULL }, -#endif // ((defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,1,0) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "MacUninstallMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_MacUninstallMenuBar, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(3,0,1) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "OSXGetAppleMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_OSXGetAppleMenu, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,1) && defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) - { "Refresh", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Refresh, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) - - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Remove, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_Replace, 1, NULL }, - -#if (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetAutoWindowMenu", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuBar_SetAutoWindowMenu, 1, NULL }, -#endif // (defined(__WXMAC__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_SetHelpString, 1, NULL }, - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_SetLabel, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetLabelTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_SetLabelTop, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,4) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_SetMenuLabel, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (!wxCHECK_VERSION(2,9,4) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "UpdateMenus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuBar_UpdateMenus, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,4) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "wxMenuBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMenuBar_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMenuBar_methodCount = sizeof(wxMenuBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - - -#if wxLUA_USE_wxMenu && wxUSE_MENUS -// --------------------------------------------------------------------------- -// Bind class wxMenuItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMenuItem' -int wxluatype_wxMenuItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_Check[] = { &wxluatype_wxMenuItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuItem_Check(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_Check[1] = {{ wxLua_wxMenuItem_Check, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMenuItem_Check }}; -// virtual void Check(bool check = true); -static int LUACALL wxLua_wxMenuItem_Check(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool check = true - bool check = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call Check - self->Check(check); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_Enable[] = { &wxluatype_wxMenuItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuItem_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_Enable[1] = {{ wxLua_wxMenuItem_Enable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMenuItem_Enable }}; -// virtual void Enable(bool enable = true); -static int LUACALL wxLua_wxMenuItem_Enable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call Enable - self->Enable(enable); - - return 0; -} - - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetAccel[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetAccel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetAccel[1] = {{ wxLua_wxMenuItem_GetAccel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetAccel }}; -// wxUSE_ACCEL virtual wxAcceleratorEntry *GetAccel() const; -static int LUACALL wxLua_wxMenuItem_GetAccel(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetAccel - wxAcceleratorEntry* returns = (wxAcceleratorEntry*)self->GetAccel(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorEntry); - - return 1; -} - -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetBackgroundColour[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetBackgroundColour[1] = {{ wxLua_wxMenuItem_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetBackgroundColour }}; -// %win wxColour GetBackgroundColour() const; -static int LUACALL wxLua_wxMenuItem_GetBackgroundColour(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetBitmap[] = { &wxluatype_wxMenuItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuItem_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetBitmap[1] = {{ wxLua_wxMenuItem_GetBitmap, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMenuItem_GetBitmap }}; -// %win wxBitmap GetBitmap(bool checked = true) const; -static int LUACALL wxLua_wxMenuItem_GetBitmap(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool checked = true - bool checked = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap(checked)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetDisabledBitmap[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetDisabledBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetDisabledBitmap[1] = {{ wxLua_wxMenuItem_GetDisabledBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetDisabledBitmap }}; -// %win wxBitmap GetDisabledBitmap() const; -static int LUACALL wxLua_wxMenuItem_GetDisabledBitmap(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetDisabledBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetDisabledBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetFont[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetFont[1] = {{ wxLua_wxMenuItem_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetFont }}; -// %win wxFont GetFont() const; -static int LUACALL wxLua_wxMenuItem_GetFont(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetHelp[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetHelp[1] = {{ wxLua_wxMenuItem_GetHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetHelp }}; -// wxString GetHelp() const; -static int LUACALL wxLua_wxMenuItem_GetHelp(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetHelp - wxString returns = (self->GetHelp()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetId[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetId[1] = {{ wxLua_wxMenuItem_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetId }}; -// int GetId() const; -static int LUACALL wxLua_wxMenuItem_GetId(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetItemLabel[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetItemLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetItemLabel[1] = {{ wxLua_wxMenuItem_GetItemLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetItemLabel }}; -// %wxchkver_2_8 wxString GetItemLabel() const; -static int LUACALL wxLua_wxMenuItem_GetItemLabel(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetItemLabel - wxString returns = (self->GetItemLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetItemLabelText[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetItemLabelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetItemLabelText[1] = {{ wxLua_wxMenuItem_GetItemLabelText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetItemLabelText }}; -// %wxchkver_2_8 wxString GetItemLabelText() const; -static int LUACALL wxLua_wxMenuItem_GetItemLabelText(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetItemLabelText - wxString returns = (self->GetItemLabelText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetKind[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetKind[1] = {{ wxLua_wxMenuItem_GetKind, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetKind }}; -// wxItemKind GetKind() const; -static int LUACALL wxLua_wxMenuItem_GetKind(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetKind - wxItemKind returns = (self->GetKind()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetLabel[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetLabel[1] = {{ wxLua_wxMenuItem_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetLabel }}; -// !%wxchkver_3_0 || %wxcompat_2_8 wxString GetLabel() const; -static int LUACALL wxLua_wxMenuItem_GetLabel(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetLabelFromText[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuItem_GetLabelFromText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetLabelFromText[1] = {{ wxLua_wxMenuItem_GetLabelFromText, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetLabelFromText }}; -// !%wxchkver_3_0 || %wxcompat_2_8 static wxString GetLabelFromText(const wxString& text); -static int LUACALL wxLua_wxMenuItem_GetLabelFromText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 1); - // call GetLabelFromText - wxString returns = (wxMenuItem::GetLabelFromText(text)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetLabelText[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuItem_GetLabelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetLabelText[1] = {{ wxLua_wxMenuItem_GetLabelText, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetLabelText }}; -// %wxchkver_2_8 static wxString GetLabelText(const wxString& text); -static int LUACALL wxLua_wxMenuItem_GetLabelText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 1); - // call GetLabelText - wxString returns = (wxMenuItem::GetLabelText(text)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetMarginWidth[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetMarginWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetMarginWidth[1] = {{ wxLua_wxMenuItem_GetMarginWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetMarginWidth }}; -// %win int GetMarginWidth() const; -static int LUACALL wxLua_wxMenuItem_GetMarginWidth(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetMarginWidth - int returns = (self->GetMarginWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetMenu[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetMenu[1] = {{ wxLua_wxMenuItem_GetMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetMenu }}; -// wxMenu* GetMenu() const; -static int LUACALL wxLua_wxMenuItem_GetMenu(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetMenu - wxMenu* returns = (wxMenu*)self->GetMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetName[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetName[1] = {{ wxLua_wxMenuItem_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetName }}; -// !%wxchkver_3_0 || %wxcompat_2_8 wxString GetName() const; -static int LUACALL wxLua_wxMenuItem_GetName(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetSubMenu[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetSubMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetSubMenu[1] = {{ wxLua_wxMenuItem_GetSubMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetSubMenu }}; -// wxMenu* GetSubMenu() const; -static int LUACALL wxLua_wxMenuItem_GetSubMenu(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetSubMenu - wxMenu* returns = (wxMenu*)self->GetSubMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetText[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetText[1] = {{ wxLua_wxMenuItem_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetText }}; -// !%wxchkver_3_0 || %wxcompat_2_8 wxString GetText() const; -static int LUACALL wxLua_wxMenuItem_GetText(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_GetTextColour[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_GetTextColour[1] = {{ wxLua_wxMenuItem_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_GetTextColour }}; -// %win wxColour& GetTextColour() const; -static int LUACALL wxLua_wxMenuItem_GetTextColour(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call GetTextColour - wxColour* returns = (wxColour*)&self->GetTextColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsCheck[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsCheck(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsCheck[1] = {{ wxLua_wxMenuItem_IsCheck, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsCheck }}; -// %wxchkver_3_0_0 bool IsCheck() const; -static int LUACALL wxLua_wxMenuItem_IsCheck(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsCheck - bool returns = (self->IsCheck()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsCheckable[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsCheckable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsCheckable[1] = {{ wxLua_wxMenuItem_IsCheckable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsCheckable }}; -// bool IsCheckable() const; -static int LUACALL wxLua_wxMenuItem_IsCheckable(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsCheckable - bool returns = (self->IsCheckable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsChecked[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsChecked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsChecked[1] = {{ wxLua_wxMenuItem_IsChecked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsChecked }}; -// bool IsChecked() const; -static int LUACALL wxLua_wxMenuItem_IsChecked(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsChecked - bool returns = (self->IsChecked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsEnabled[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsEnabled[1] = {{ wxLua_wxMenuItem_IsEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsEnabled }}; -// bool IsEnabled() const; -static int LUACALL wxLua_wxMenuItem_IsEnabled(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsEnabled - bool returns = (self->IsEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsRadio[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsRadio(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsRadio[1] = {{ wxLua_wxMenuItem_IsRadio, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsRadio }}; -// %wxchkver_3_0_0 bool IsRadio() const; -static int LUACALL wxLua_wxMenuItem_IsRadio(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsRadio - bool returns = (self->IsRadio()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsSeparator[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsSeparator[1] = {{ wxLua_wxMenuItem_IsSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsSeparator }}; -// bool IsSeparator() const; -static int LUACALL wxLua_wxMenuItem_IsSeparator(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsSeparator - bool returns = (self->IsSeparator()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_IsSubMenu[] = { &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxMenuItem_IsSubMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_IsSubMenu[1] = {{ wxLua_wxMenuItem_IsSubMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_IsSubMenu }}; -// bool IsSubMenu() const; -static int LUACALL wxLua_wxMenuItem_IsSubMenu(lua_State *L) -{ - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call IsSubMenu - bool returns = (self->IsSubMenu()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetAccel[] = { &wxluatype_wxMenuItem, &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxMenuItem_SetAccel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetAccel[1] = {{ wxLua_wxMenuItem_SetAccel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetAccel }}; -// wxUSE_ACCEL virtual void SetAccel(wxAcceleratorEntry *accel); -static int LUACALL wxLua_wxMenuItem_SetAccel(lua_State *L) -{ - // wxAcceleratorEntry accel - wxAcceleratorEntry * accel = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAcceleratorEntry); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetAccel - self->SetAccel(accel); - - return 0; -} - -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetBackgroundColour[] = { &wxluatype_wxMenuItem, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxMenuItem_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetBackgroundColour[1] = {{ wxLua_wxMenuItem_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetBackgroundColour }}; -// %win void SetBackgroundColour(const wxColour& colour) const; -static int LUACALL wxLua_wxMenuItem_SetBackgroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetBackgroundColour - self->SetBackgroundColour(*colour); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetBitmap[] = { &wxluatype_wxMenuItem, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMenuItem_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetBitmap[1] = {{ wxLua_wxMenuItem_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetBitmap }}; -// void SetBitmap(const wxBitmap& bmp); // %override use one parameter as "bool checked = true" doesn't exist on OSX/Linux -static int LUACALL wxLua_wxMenuItem_SetBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetBitmap - self->SetBitmap(*bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetBitmaps[] = { &wxluatype_wxMenuItem, &wxluatype_wxBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMenuItem_SetBitmaps(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetBitmaps[1] = {{ wxLua_wxMenuItem_SetBitmaps, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMenuItem_SetBitmaps }}; -// %win void SetBitmaps(const wxBitmap& checked, const wxBitmap& unchecked = wxNullBitmap) const; -static int LUACALL wxLua_wxMenuItem_SetBitmaps(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxBitmap unchecked = wxNullBitmap - const wxBitmap * unchecked = (argCount >= 3 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap checked - const wxBitmap * checked = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetBitmaps - self->SetBitmaps(*checked, *unchecked); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetCheckable[] = { &wxluatype_wxMenuItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxMenuItem_SetCheckable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetCheckable[1] = {{ wxLua_wxMenuItem_SetCheckable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetCheckable }}; -// virtual void SetCheckable(bool checkable); // %add as it's missing from the interface files -static int LUACALL wxLua_wxMenuItem_SetCheckable(lua_State *L) -{ - // bool checkable - bool checkable = wxlua_getbooleantype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetCheckable - self->SetCheckable(checkable); - - return 0; -} - - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetDisabledBitmap[] = { &wxluatype_wxMenuItem, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxMenuItem_SetDisabledBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetDisabledBitmap[1] = {{ wxLua_wxMenuItem_SetDisabledBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetDisabledBitmap }}; -// %win void SetDisabledBitmap(const wxBitmap& disabled); -static int LUACALL wxLua_wxMenuItem_SetDisabledBitmap(lua_State *L) -{ - // const wxBitmap disabled - const wxBitmap * disabled = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetDisabledBitmap - self->SetDisabledBitmap(*disabled); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetFont[] = { &wxluatype_wxMenuItem, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxMenuItem_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetFont[1] = {{ wxLua_wxMenuItem_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetFont }}; -// %win void SetFont(const wxFont& font) const; -static int LUACALL wxLua_wxMenuItem_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetHelp[] = { &wxluatype_wxMenuItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuItem_SetHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetHelp[1] = {{ wxLua_wxMenuItem_SetHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetHelp }}; -// void SetHelp(const wxString& helpString) const; -static int LUACALL wxLua_wxMenuItem_SetHelp(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetHelp - self->SetHelp(helpString); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetId[] = { &wxluatype_wxMenuItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuItem_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetId[1] = {{ wxLua_wxMenuItem_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetId }}; -// void SetId(int itemid); // %add as it's missing from the interface files -static int LUACALL wxLua_wxMenuItem_SetId(lua_State *L) -{ - // int itemid - int itemid = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetId - self->SetId(itemid); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetItemLabel[] = { &wxluatype_wxMenuItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuItem_SetItemLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetItemLabel[1] = {{ wxLua_wxMenuItem_SetItemLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetItemLabel }}; -// %wxchkver_2_8 void SetItemLabel(const wxString& label); -static int LUACALL wxLua_wxMenuItem_SetItemLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetItemLabel - self->SetItemLabel(label); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetKind[] = { &wxluatype_wxMenuItem, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMenuItem_SetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetKind[1] = {{ wxLua_wxMenuItem_SetKind, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetKind }}; -// void SetKind(wxItemKind kind); // %add as it's missing from the interface files -static int LUACALL wxLua_wxMenuItem_SetKind(lua_State *L) -{ - // wxItemKind kind - wxItemKind kind = (wxItemKind)wxlua_getenumtype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetKind - self->SetKind(kind); - - return 0; -} - - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetMarginWidth[] = { &wxluatype_wxMenuItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMenuItem_SetMarginWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetMarginWidth[1] = {{ wxLua_wxMenuItem_SetMarginWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetMarginWidth }}; -// %win void SetMarginWidth(int width) const; -static int LUACALL wxLua_wxMenuItem_SetMarginWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetMarginWidth - self->SetMarginWidth(width); - - return 0; -} - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetMenu[] = { &wxluatype_wxMenuItem, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenuItem_SetMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetMenu[1] = {{ wxLua_wxMenuItem_SetMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetMenu }}; -// void SetMenu(wxMenu* menu); -static int LUACALL wxLua_wxMenuItem_SetMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetMenu - self->SetMenu(menu); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetSubMenu[] = { &wxluatype_wxMenuItem, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenuItem_SetSubMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetSubMenu[1] = {{ wxLua_wxMenuItem_SetSubMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetSubMenu }}; -// void SetSubMenu(wxMenu* menu); -static int LUACALL wxLua_wxMenuItem_SetSubMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetSubMenu - self->SetSubMenu(menu); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetText[] = { &wxluatype_wxMenuItem, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMenuItem_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetText[1] = {{ wxLua_wxMenuItem_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetText }}; -// !%wxchkver_3_0 || %wxcompat_2_8 void SetText(const wxString& text); -static int LUACALL wxLua_wxMenuItem_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetText - self->SetText(text); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_SetTextColour[] = { &wxluatype_wxMenuItem, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxMenuItem_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_SetTextColour[1] = {{ wxLua_wxMenuItem_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMenuItem_SetTextColour }}; -// %win void SetTextColour(const wxColour& colour) const; -static int LUACALL wxLua_wxMenuItem_SetTextColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxMenuItem * self = (wxMenuItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuItem); - // call SetTextColour - self->SetTextColour(*colour); - - return 0; -} - -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_delete[] = { &wxluatype_wxMenuItem, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMenuItem_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuItem_constructor[] = { &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenuItem_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuItem_constructor[1] = {{ wxLua_wxMenuItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 6, s_wxluatypeArray_wxLua_wxMenuItem_constructor }}; -// %override wxLua_wxMenuItem_constructor -// wxMenuItem(wxMenu *parentMenu = NULL, int id = wxID_SEPARATOR, const wxString& text = wxEmptyString, const wxString& help = wxEmptyString, wxItemKind = 0, wxMenu *subMenu = NULL) -static int LUACALL wxLua_wxMenuItem_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxMenu *subMenu = NULL - wxMenu *subMenu = (argCount >= 6 ? (wxMenu *)wxluaT_getuserdatatype(L, 6, wxluatype_wxMenu) : NULL); - // bool isCheckable = false - // This used to be a bool instead of a wxItemKind - wxItemKind itemkind = (wxItemKind)(argCount >= 5 ? wxlua_getenumtype(L, 5) : wxITEM_NORMAL); - // const wxString& help = wxEmptyString - wxString help = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString& text = wxEmptyString - wxString text = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int id = wxID_SEPARATOR - int id = (argCount >= 2 ? (int)wxlua_getintegertype(L, 2) : wxID_SEPARATOR); - // wxMenu *parentMenu = NULL - wxMenu *parentMenu = (argCount >= 1 ? (wxMenu *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenu) : NULL); - // call constructor - wxMenuItem *returns = new wxMenuItem(parentMenu, id, text, help, itemkind, subMenu); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - // return the number of parameters - return 1; -} - - - - - -void wxLua_wxMenuItem_delete_function(void** p) -{ - wxMenuItem* o = (wxMenuItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMenuItem_methods[] = { - { "Check", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_Check, 1, NULL }, - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_Enable, 1, NULL }, - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "GetAccel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetAccel, 1, NULL }, -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetBackgroundColour, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetBitmap, 1, NULL }, - { "GetDisabledBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetDisabledBitmap, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetFont, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) - - { "GetHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetHelp, 1, NULL }, - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetId, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetItemLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetItemLabel, 1, NULL }, - { "GetItemLabelText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetItemLabelText, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetKind, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetLabel, 1, NULL }, - { "GetLabelFromText", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuItem_GetLabelFromText, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetLabelText", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxMenuItem_GetLabelText, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetMarginWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetMarginWidth, 1, NULL }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetMenu, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetName, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "GetSubMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetSubMenu, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetText, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_GetTextColour, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "IsCheck", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsCheck, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "IsCheckable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsCheckable, 1, NULL }, - { "IsChecked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsChecked, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsEnabled, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "IsRadio", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsRadio, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "IsSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsSeparator, 1, NULL }, - { "IsSubMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_IsSubMenu, 1, NULL }, - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "SetAccel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetAccel, 1, NULL }, -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetBackgroundColour, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - { "SetBitmaps", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetBitmaps, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - - { "SetCheckable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetCheckable, 1, NULL }, - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - { "SetDisabledBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetDisabledBitmap, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxBitmap) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetFont, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxFont) - - { "SetHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetHelp, 1, NULL }, - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetId, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetItemLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetItemLabel, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetKind, 1, NULL }, - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetMarginWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetMarginWidth, 1, NULL }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - { "SetMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetMenu, 1, NULL }, - { "SetSubMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetSubMenu, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetText, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuItem_SetTextColour, 1, NULL }, -#endif // ((defined(__WXMSW__)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxColourPenBrush) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMenuItem_delete, 1, NULL }, - { "wxMenuItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMenuItem_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMenuItem_methodCount = sizeof(wxMenuItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - - -#if wxLUA_USE_wxMenu && wxUSE_MENUS -// --------------------------------------------------------------------------- -// Bind class wxMenuItemList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMenuItemList' -int wxluatype_wxMenuItemList = WXLUA_TUNKNOWN; - - - -void wxLua_wxMenuItemList_delete_function(void** p) -{ - wxMenuItemList* o = (wxMenuItemList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMenuItemList_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxMenuItemList_methodCount = sizeof(wxMenuItemList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - - -#if wxLUA_USE_wxMenu && wxUSE_MENUS -// --------------------------------------------------------------------------- -// Bind class wxMenuEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMenuEvent' -int wxluatype_wxMenuEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuEvent_GetMenu[] = { &wxluatype_wxMenuEvent, NULL }; -static int LUACALL wxLua_wxMenuEvent_GetMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuEvent_GetMenu[1] = {{ wxLua_wxMenuEvent_GetMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuEvent_GetMenu }}; -// wxMenu* GetMenu() const; -static int LUACALL wxLua_wxMenuEvent_GetMenu(lua_State *L) -{ - // get this - wxMenuEvent * self = (wxMenuEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuEvent); - // call GetMenu - wxMenu* returns = (wxMenu*)self->GetMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuEvent_GetMenuId[] = { &wxluatype_wxMenuEvent, NULL }; -static int LUACALL wxLua_wxMenuEvent_GetMenuId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuEvent_GetMenuId[1] = {{ wxLua_wxMenuEvent_GetMenuId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuEvent_GetMenuId }}; -// int GetMenuId() const; -static int LUACALL wxLua_wxMenuEvent_GetMenuId(lua_State *L) -{ - // get this - wxMenuEvent * self = (wxMenuEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuEvent); - // call GetMenuId - int returns = (self->GetMenuId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuEvent_IsPopup[] = { &wxluatype_wxMenuEvent, NULL }; -static int LUACALL wxLua_wxMenuEvent_IsPopup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuEvent_IsPopup[1] = {{ wxLua_wxMenuEvent_IsPopup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMenuEvent_IsPopup }}; -// bool IsPopup() const; -static int LUACALL wxLua_wxMenuEvent_IsPopup(lua_State *L) -{ - // get this - wxMenuEvent * self = (wxMenuEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMenuEvent); - // call IsPopup - bool returns = (self->IsPopup()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuEvent_delete[] = { &wxluatype_wxMenuEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMenuEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMenuEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxMenuEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMenuEvent_constructor[1] = {{ wxLua_wxMenuEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxMenuEvent_constructor }}; -// wxMenuEvent(wxEventType type = wxEVT_NULL, int id = 0, wxMenu* menu = NULL); -static int LUACALL wxLua_wxMenuEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxMenu menu = NULL - wxMenu * menu = (argCount >= 3 ? (wxMenu *)wxluaT_getuserdatatype(L, 3, wxluatype_wxMenu) : NULL); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxMenuEvent* returns = new wxMenuEvent(type, id, menu); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMenuEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuEvent); - - return 1; -} - - - - -void wxLua_wxMenuEvent_delete_function(void** p) -{ - wxMenuEvent* o = (wxMenuEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMenuEvent_methods[] = { - { "GetMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuEvent_GetMenu, 1, NULL }, - { "GetMenuId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuEvent_GetMenuId, 1, NULL }, - { "IsPopup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMenuEvent_IsPopup, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMenuEvent_delete, 1, NULL }, - { "wxMenuEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMenuEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMenuEvent_methodCount = sizeof(wxMenuEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - - -#if wxLUA_USE_wxToolbar -// --------------------------------------------------------------------------- -// Bind class wxToolBarBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolBarBase' -int wxluatype_wxToolBarBase = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_AddCheckTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxToolBarBase_AddCheckTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddCheckTool[1] = {{ wxLua_wxToolBarBase_AddCheckTool, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxToolBarBase_AddCheckTool }}; -// wxToolBarToolBase *AddCheckTool(int toolid, const wxString& label, const wxBitmap& bitmap, const wxBitmap& bmpDisabled = wxNullBitmap, const wxString& shortHelp = "", const wxString& longHelp = "", wxObject *data = NULL); -static int LUACALL wxLua_wxToolBarBase_AddCheckTool(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject data = NULL - wxObject * data = (argCount >= 8 ? (wxObject *)wxluaT_getuserdatatype(L, 8, wxluatype_wxObject) : NULL); - // const wxString longHelp = "" - const wxString longHelp = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // const wxString shortHelp = "" - const wxString shortHelp = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const wxBitmap bmpDisabled = wxNullBitmap - const wxBitmap * bmpDisabled = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int toolid - int toolid = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call AddCheckTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->AddCheckTool(toolid, label, *bitmap, *bmpDisabled, shortHelp, longHelp, data); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_AddControl[] = { &wxluatype_wxToolBarBase, &wxluatype_wxControl, NULL }; -static int LUACALL wxLua_wxToolBarBase_AddControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddControl[1] = {{ wxLua_wxToolBarBase_AddControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_AddControl }}; -// wxToolBarToolBase* AddControl(wxControl *control); -static int LUACALL wxLua_wxToolBarBase_AddControl(lua_State *L) -{ - // wxControl control - wxControl * control = (wxControl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxControl); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call AddControl - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->AddControl(control); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_AddRadioTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxToolBarBase_AddRadioTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddRadioTool[1] = {{ wxLua_wxToolBarBase_AddRadioTool, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxToolBarBase_AddRadioTool }}; -// wxToolBarToolBase *AddRadioTool(int toolid, const wxString& label, const wxBitmap& bitmap, const wxBitmap& bmpDisabled = wxNullBitmap, const wxString& shortHelp = "", const wxString& longHelp = "", wxObject *data = NULL); -static int LUACALL wxLua_wxToolBarBase_AddRadioTool(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject data = NULL - wxObject * data = (argCount >= 8 ? (wxObject *)wxluaT_getuserdatatype(L, 8, wxluatype_wxObject) : NULL); - // const wxString longHelp = "" - const wxString longHelp = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // const wxString shortHelp = "" - const wxString shortHelp = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // const wxBitmap bmpDisabled = wxNullBitmap - const wxBitmap * bmpDisabled = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int toolid - int toolid = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call AddRadioTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->AddRadioTool(toolid, label, *bitmap, *bmpDisabled, shortHelp, longHelp, data); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_AddSeparator[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_AddSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddSeparator[1] = {{ wxLua_wxToolBarBase_AddSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_AddSeparator }}; -// wxToolBarToolBase* AddSeparator(); -static int LUACALL wxLua_wxToolBarBase_AddSeparator(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call AddSeparator - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->AddSeparator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_AddTool1[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxToolBarBase_AddTool1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddTool1[1] = {{ wxLua_wxToolBarBase_AddTool1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxToolBarBase_AddTool1 }}; -// wxToolBarToolBase* AddTool(int toolId, const wxString& label, const wxBitmap& bitmap1, const wxString& shortHelpString = "", wxItemKind kind = wxITEM_NORMAL); -static int LUACALL wxLua_wxToolBarBase_AddTool1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 6 ? (wxItemKind)wxlua_getenumtype(L, 6) : wxITEM_NORMAL); - // const wxString shortHelpString = "" - const wxString shortHelpString = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxBitmap bitmap1 - const wxBitmap * bitmap1 = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call AddTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->AddTool(toolId, label, *bitmap1, shortHelpString, kind); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_AddTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxToolBarBase_AddTool(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddTool[1] = {{ wxLua_wxToolBarBase_AddTool, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxToolBarBase_AddTool }}; -// wxToolBarToolBase* AddTool(int toolId, const wxString& label, const wxBitmap& bitmap1, const wxBitmap& bitmap2 = wxNullBitmap, wxItemKind kind = wxITEM_NORMAL, const wxString& shortHelpString = "", const wxString& longHelpString = "", wxObject* clientData = NULL); -static int LUACALL wxLua_wxToolBarBase_AddTool(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject clientData = NULL - wxObject * clientData = (argCount >= 9 ? (wxObject *)wxluaT_getuserdatatype(L, 9, wxluatype_wxObject) : NULL); - // const wxString longHelpString = "" - const wxString longHelpString = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); - // const wxString shortHelpString = "" - const wxString shortHelpString = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 6 ? (wxItemKind)wxlua_getenumtype(L, 6) : wxITEM_NORMAL); - // const wxBitmap bitmap2 = wxNullBitmap - const wxBitmap * bitmap2 = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap1 - const wxBitmap * bitmap1 = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call AddTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->AddTool(toolId, label, *bitmap1, *bitmap2, kind, shortHelpString, longHelpString, clientData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_ClearTools[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_ClearTools(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_ClearTools[1] = {{ wxLua_wxToolBarBase_ClearTools, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_ClearTools }}; -// void ClearTools(); -static int LUACALL wxLua_wxToolBarBase_ClearTools(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call ClearTools - self->ClearTools(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_DeleteTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_DeleteTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_DeleteTool[1] = {{ wxLua_wxToolBarBase_DeleteTool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_DeleteTool }}; -// bool DeleteTool(int toolId); -static int LUACALL wxLua_wxToolBarBase_DeleteTool(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call DeleteTool - bool returns = (self->DeleteTool(toolId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_DeleteToolByPos[] = { &wxluatype_wxToolBarBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxToolBarBase_DeleteToolByPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_DeleteToolByPos[1] = {{ wxLua_wxToolBarBase_DeleteToolByPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_DeleteToolByPos }}; -// bool DeleteToolByPos(size_t pos); -static int LUACALL wxLua_wxToolBarBase_DeleteToolByPos(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call DeleteToolByPos - bool returns = (self->DeleteToolByPos(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_EnableTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolBarBase_EnableTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_EnableTool[1] = {{ wxLua_wxToolBarBase_EnableTool, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_EnableTool }}; -// void EnableTool(int toolId, const bool enable); -static int LUACALL wxLua_wxToolBarBase_EnableTool(lua_State *L) -{ - // const bool enable - const bool enable = wxlua_getbooleantype(L, 3); - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call EnableTool - self->EnableTool(toolId, enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_FindById[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_FindById(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_FindById[1] = {{ wxLua_wxToolBarBase_FindById, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_FindById }}; -// wxToolBarToolBase* FindById(int id); -static int LUACALL wxLua_wxToolBarBase_FindById(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call FindById - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->FindById(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_FindControl[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_FindControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_FindControl[1] = {{ wxLua_wxToolBarBase_FindControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_FindControl }}; -// wxControl* FindControl(int id); -static int LUACALL wxLua_wxToolBarBase_FindControl(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call FindControl - wxControl* returns = (wxControl*)self->FindControl(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_FindToolForPosition[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_FindToolForPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_FindToolForPosition[1] = {{ wxLua_wxToolBarBase_FindToolForPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_FindToolForPosition }}; -// wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const; -static int LUACALL wxLua_wxToolBarBase_FindToolForPosition(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call FindToolForPosition - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->FindToolForPosition(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetMaxCols[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetMaxCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetMaxCols[1] = {{ wxLua_wxToolBarBase_GetMaxCols, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetMaxCols }}; -// int GetMaxCols(); -static int LUACALL wxLua_wxToolBarBase_GetMaxCols(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetMaxCols - int returns = (self->GetMaxCols()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetMaxRows[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetMaxRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetMaxRows[1] = {{ wxLua_wxToolBarBase_GetMaxRows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetMaxRows }}; -// int GetMaxRows(); -static int LUACALL wxLua_wxToolBarBase_GetMaxRows(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetMaxRows - int returns = (self->GetMaxRows()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolBitmapSize[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolBitmapSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolBitmapSize[1] = {{ wxLua_wxToolBarBase_GetToolBitmapSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolBitmapSize }}; -// wxSize GetToolBitmapSize(); -static int LUACALL wxLua_wxToolBarBase_GetToolBitmapSize(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolBitmapSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetToolBitmapSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolClientData[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolClientData[1] = {{ wxLua_wxToolBarBase_GetToolClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolClientData }}; -// wxObject* GetToolClientData(int toolId) const; -static int LUACALL wxLua_wxToolBarBase_GetToolClientData(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolClientData - wxObject* returns = (wxObject*)self->GetToolClientData(toolId); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolEnabled[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolEnabled[1] = {{ wxLua_wxToolBarBase_GetToolEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolEnabled }}; -// bool GetToolEnabled(int toolId) const; -static int LUACALL wxLua_wxToolBarBase_GetToolEnabled(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolEnabled - bool returns = (self->GetToolEnabled(toolId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolLongHelp[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolLongHelp[1] = {{ wxLua_wxToolBarBase_GetToolLongHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolLongHelp }}; -// wxString GetToolLongHelp(int toolId) const; -static int LUACALL wxLua_wxToolBarBase_GetToolLongHelp(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolLongHelp - wxString returns = (self->GetToolLongHelp(toolId)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolMargins[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolMargins[1] = {{ wxLua_wxToolBarBase_GetToolMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolMargins }}; -// wxSize GetToolMargins(); // GetMargins is deprecated -static int LUACALL wxLua_wxToolBarBase_GetToolMargins(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolMargins - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetToolMargins()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolPacking[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolPacking(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolPacking[1] = {{ wxLua_wxToolBarBase_GetToolPacking, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolPacking }}; -// int GetToolPacking(); -static int LUACALL wxLua_wxToolBarBase_GetToolPacking(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolPacking - int returns = (self->GetToolPacking()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolPos[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolPos[1] = {{ wxLua_wxToolBarBase_GetToolPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolPos }}; -// int GetToolPos(int toolId) const; -static int LUACALL wxLua_wxToolBarBase_GetToolPos(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolPos - int returns = (self->GetToolPos(toolId)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolSeparation[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolSeparation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolSeparation[1] = {{ wxLua_wxToolBarBase_GetToolSeparation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolSeparation }}; -// int GetToolSeparation() const; -static int LUACALL wxLua_wxToolBarBase_GetToolSeparation(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolSeparation - int returns = (self->GetToolSeparation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolShortHelp[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolShortHelp[1] = {{ wxLua_wxToolBarBase_GetToolShortHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolShortHelp }}; -// wxString GetToolShortHelp(int toolId) const; -static int LUACALL wxLua_wxToolBarBase_GetToolShortHelp(lua_State *L) -{ - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolShortHelp - wxString returns = (self->GetToolShortHelp(toolId)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolSize[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolSize[1] = {{ wxLua_wxToolBarBase_GetToolSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolSize }}; -// wxSize GetToolSize(); -static int LUACALL wxLua_wxToolBarBase_GetToolSize(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetToolSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_GetToolState[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_GetToolState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_GetToolState[1] = {{ wxLua_wxToolBarBase_GetToolState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_GetToolState }}; -// bool GetToolState(int id); -static int LUACALL wxLua_wxToolBarBase_GetToolState(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call GetToolState - bool returns = (self->GetToolState(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_InsertControl[] = { &wxluatype_wxToolBarBase, &wxluatype_TINTEGER, &wxluatype_wxControl, NULL }; -static int LUACALL wxLua_wxToolBarBase_InsertControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_InsertControl[1] = {{ wxLua_wxToolBarBase_InsertControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_InsertControl }}; -// wxToolBarToolBase* InsertControl(size_t pos, wxControl *control); -static int LUACALL wxLua_wxToolBarBase_InsertControl(lua_State *L) -{ - // wxControl control - wxControl * control = (wxControl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxControl); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call InsertControl - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->InsertControl(pos, control); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_InsertSeparator[] = { &wxluatype_wxToolBarBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxToolBarBase_InsertSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_InsertSeparator[1] = {{ wxLua_wxToolBarBase_InsertSeparator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_InsertSeparator }}; -// wxToolBarToolBase* InsertSeparator(size_t pos); -static int LUACALL wxLua_wxToolBarBase_InsertSeparator(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call InsertSeparator - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->InsertSeparator(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_InsertTool1[] = { &wxluatype_wxToolBarBase, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxToolBarBase_InsertTool1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_InsertTool1[1] = {{ wxLua_wxToolBarBase_InsertTool1, WXLUAMETHOD_METHOD, 5, 10, s_wxluatypeArray_wxLua_wxToolBarBase_InsertTool1 }}; -// wxToolBarToolBase* InsertTool(size_t pos, int toolid, const wxString& label, const wxBitmap& bitmap, const wxBitmap& bmpDisabled = wxNullBitmap, wxItemKind kind = wxITEM_NORMAL, const wxString& shortHelp = "", const wxString& longHelp = "", wxObject *clientData = NULL); -static int LUACALL wxLua_wxToolBarBase_InsertTool1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject clientData = NULL - wxObject * clientData = (argCount >= 10 ? (wxObject *)wxluaT_getuserdatatype(L, 10, wxluatype_wxObject) : NULL); - // const wxString longHelp = "" - const wxString longHelp = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxEmptyString)); - // const wxString shortHelp = "" - const wxString shortHelp = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); - // wxItemKind kind = wxITEM_NORMAL - wxItemKind kind = (argCount >= 7 ? (wxItemKind)wxlua_getenumtype(L, 7) : wxITEM_NORMAL); - // const wxBitmap bmpDisabled = wxNullBitmap - const wxBitmap * bmpDisabled = (argCount >= 6 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 6, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // int toolid - int toolid = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call InsertTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->InsertTool(pos, toolid, label, *bitmap, *bmpDisabled, kind, shortHelp, longHelp, clientData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - -#if ((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_InsertTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxBitmap, &wxluatype_TBOOLEAN, &wxluatype_wxObject, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarBase_InsertTool(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_InsertTool[1] = {{ wxLua_wxToolBarBase_InsertTool, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxToolBarBase_InsertTool }}; -// !%wxchkver_3_0 || %wxcompat_2_8 wxToolBarToolBase* InsertTool(size_t pos, int id, const wxBitmap& bitmap, const wxBitmap& pushedBitmap = wxNullBitmap, bool isToggle = false, wxObject *clientData = NULL, const wxString& shortHelpString = "", const wxString& longHelpString = ""); -static int LUACALL wxLua_wxToolBarBase_InsertTool(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString longHelpString = "" - const wxString longHelpString = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxEmptyString)); - // const wxString shortHelpString = "" - const wxString shortHelpString = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); - // wxObject clientData = NULL - wxObject * clientData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // bool isToggle = false - bool isToggle = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // const wxBitmap pushedBitmap = wxNullBitmap - const wxBitmap * pushedBitmap = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap); - // int id - int id = (int)wxlua_getnumbertype(L, 3); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call InsertTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->InsertTool(pos, id, *bitmap, *pushedBitmap, isToggle, clientData, shortHelpString, longHelpString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - -#endif // ((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_Realize[] = { &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarBase_Realize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_Realize[1] = {{ wxLua_wxToolBarBase_Realize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarBase_Realize }}; -// bool Realize(); -static int LUACALL wxLua_wxToolBarBase_Realize(lua_State *L) -{ - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call Realize - bool returns = (self->Realize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_RemoveTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_RemoveTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_RemoveTool[1] = {{ wxLua_wxToolBarBase_RemoveTool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_RemoveTool }}; -// wxToolBarToolBase* RemoveTool(int id); -static int LUACALL wxLua_wxToolBarBase_RemoveTool(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call RemoveTool - wxToolBarToolBase* returns = (wxToolBarToolBase*)self->RemoveTool(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarToolBase); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetMargins1[] = { &wxluatype_wxToolBarBase, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetMargins1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetMargins1[1] = {{ wxLua_wxToolBarBase_SetMargins1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_SetMargins1 }}; -// void SetMargins(const wxSize& size); -static int LUACALL wxLua_wxToolBarBase_SetMargins1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetMargins - self->SetMargins(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetMargins[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetMargins(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetMargins[1] = {{ wxLua_wxToolBarBase_SetMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetMargins }}; -// void SetMargins(int x, int y); -static int LUACALL wxLua_wxToolBarBase_SetMargins(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetMargins - self->SetMargins(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetMaxRowsCols[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetMaxRowsCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetMaxRowsCols[1] = {{ wxLua_wxToolBarBase_SetMaxRowsCols, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetMaxRowsCols }}; -// void SetMaxRowsCols(int rows, int cols); -static int LUACALL wxLua_wxToolBarBase_SetMaxRowsCols(lua_State *L) -{ - // int cols - int cols = (int)wxlua_getnumbertype(L, 3); - // int rows - int rows = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetMaxRowsCols - self->SetMaxRowsCols(rows, cols); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetRows[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetRows[1] = {{ wxLua_wxToolBarBase_SetRows, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_SetRows }}; -// void SetRows(int nRows); -static int LUACALL wxLua_wxToolBarBase_SetRows(lua_State *L) -{ - // int nRows - int nRows = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetRows - self->SetRows(nRows); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToggle[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToggle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToggle[1] = {{ wxLua_wxToolBarBase_SetToggle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetToggle }}; -// void SetToggle(int id, bool toggle); -static int LUACALL wxLua_wxToolBarBase_SetToggle(lua_State *L) -{ - // bool toggle - bool toggle = wxlua_getbooleantype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToggle - self->SetToggle(id, toggle); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToolBitmapSize[] = { &wxluatype_wxToolBarBase, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToolBitmapSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToolBitmapSize[1] = {{ wxLua_wxToolBarBase_SetToolBitmapSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_SetToolBitmapSize }}; -// void SetToolBitmapSize(const wxSize& size); -static int LUACALL wxLua_wxToolBarBase_SetToolBitmapSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToolBitmapSize - self->SetToolBitmapSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToolClientData[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToolClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToolClientData[1] = {{ wxLua_wxToolBarBase_SetToolClientData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetToolClientData }}; -// void SetToolClientData(int id, wxObject* clientData); -static int LUACALL wxLua_wxToolBarBase_SetToolClientData(lua_State *L) -{ - // wxObject clientData - wxObject * clientData = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToolClientData - self->SetToolClientData(id, clientData); - - return 0; -} - -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToolLongHelp[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToolLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToolLongHelp[1] = {{ wxLua_wxToolBarBase_SetToolLongHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetToolLongHelp }}; -// void SetToolLongHelp(int toolId, const wxString& helpString); -static int LUACALL wxLua_wxToolBarBase_SetToolLongHelp(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 3); - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToolLongHelp - self->SetToolLongHelp(toolId, helpString); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToolPacking[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToolPacking(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToolPacking[1] = {{ wxLua_wxToolBarBase_SetToolPacking, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_SetToolPacking }}; -// void SetToolPacking(int packing); -static int LUACALL wxLua_wxToolBarBase_SetToolPacking(lua_State *L) -{ - // int packing - int packing = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToolPacking - self->SetToolPacking(packing); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToolSeparation[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToolSeparation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToolSeparation[1] = {{ wxLua_wxToolBarBase_SetToolSeparation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_SetToolSeparation }}; -// void SetToolSeparation(int separation); -static int LUACALL wxLua_wxToolBarBase_SetToolSeparation(lua_State *L) -{ - // int separation - int separation = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToolSeparation - self->SetToolSeparation(separation); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_SetToolShortHelp[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarBase_SetToolShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetToolShortHelp[1] = {{ wxLua_wxToolBarBase_SetToolShortHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetToolShortHelp }}; -// void SetToolShortHelp(int id, const wxString& helpString); -static int LUACALL wxLua_wxToolBarBase_SetToolShortHelp(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call SetToolShortHelp - self->SetToolShortHelp(id, helpString); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarBase_ToggleTool[] = { &wxluatype_wxToolBarBase, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolBarBase_ToggleTool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_ToggleTool[1] = {{ wxLua_wxToolBarBase_ToggleTool, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_ToggleTool }}; -// void ToggleTool(int toolId, const bool toggle); -static int LUACALL wxLua_wxToolBarBase_ToggleTool(lua_State *L) -{ - // const bool toggle - const bool toggle = wxlua_getbooleantype(L, 3); - // int toolId - int toolId = (int)wxlua_getnumbertype(L, 2); - // get this - wxToolBarBase * self = (wxToolBarBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarBase); - // call ToggleTool - self->ToggleTool(toolId, toggle); - - return 0; -} - - - - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar))||((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_AddTool_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBarBase_AddTool1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxToolBarBase_AddTool1 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBarBase_AddTool, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxToolBarBase_AddTool }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -}; -static int s_wxluafunc_wxLua_wxToolBarBase_AddTool_overload_count = sizeof(s_wxluafunc_wxLua_wxToolBarBase_AddTool_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar))||((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) - -#if ((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar))||(((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_InsertTool_overload[] = -{ - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBarBase_InsertTool1, WXLUAMETHOD_METHOD, 5, 10, s_wxluatypeArray_wxLua_wxToolBarBase_InsertTool1 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - -#if ((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBarBase_InsertTool, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxToolBarBase_InsertTool }, -#endif // ((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) -}; -static int s_wxluafunc_wxLua_wxToolBarBase_InsertTool_overload_count = sizeof(s_wxluafunc_wxLua_wxToolBarBase_InsertTool_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar))||(((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarBase_SetMargins_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBarBase_SetMargins1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarBase_SetMargins1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBarBase_SetMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxToolBarBase_SetMargins }, -}; -static int s_wxluafunc_wxLua_wxToolBarBase_SetMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxToolBarBase_SetMargins_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) - -void wxLua_wxToolBarBase_delete_function(void** p) -{ - wxToolBarBase* o = (wxToolBarBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolBarBase_methods[] = { -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - { "AddCheckTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_AddCheckTool, 1, NULL }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - - { "AddControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_AddControl, 1, NULL }, - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - { "AddRadioTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_AddRadioTool, 1, NULL }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar) - - { "AddSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_AddSeparator, 1, NULL }, - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar))||((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) - { "AddTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_AddTool_overload, s_wxluafunc_wxLua_wxToolBarBase_AddTool_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxToolbar))||((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) - - { "ClearTools", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_ClearTools, 1, NULL }, - { "DeleteTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_DeleteTool, 1, NULL }, - { "DeleteToolByPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_DeleteToolByPos, 1, NULL }, - { "EnableTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_EnableTool, 1, NULL }, - { "FindById", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_FindById, 1, NULL }, - { "FindControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_FindControl, 1, NULL }, - { "FindToolForPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_FindToolForPosition, 1, NULL }, - { "GetMaxCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetMaxCols, 1, NULL }, - { "GetMaxRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetMaxRows, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { "GetToolBitmapSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolBitmapSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - { "GetToolClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolClientData, 1, NULL }, -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - - { "GetToolEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolEnabled, 1, NULL }, - { "GetToolLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolLongHelp, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { "GetToolMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolMargins, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - - { "GetToolPacking", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolPacking, 1, NULL }, - { "GetToolPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolPos, 1, NULL }, - { "GetToolSeparation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolSeparation, 1, NULL }, - { "GetToolShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolShortHelp, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { "GetToolSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - - { "GetToolState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_GetToolState, 1, NULL }, - { "InsertControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_InsertControl, 1, NULL }, - { "InsertSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_InsertSeparator, 1, NULL }, - -#if ((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar))||(((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) - { "InsertTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_InsertTool_overload, s_wxluafunc_wxLua_wxToolBarBase_InsertTool_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar))||(((((!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject)) && (wxLUA_USE_wxToolbar)) - - { "Realize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_Realize, 1, NULL }, - { "RemoveTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_RemoveTool, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetMargins_overload, s_wxluafunc_wxLua_wxToolBarBase_SetMargins_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) - - { "SetMaxRowsCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetMaxRowsCols, 1, NULL }, - { "SetRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetRows, 1, NULL }, - { "SetToggle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToggle, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { "SetToolBitmapSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToolBitmapSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - { "SetToolClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToolClientData, 1, NULL }, -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - - { "SetToolLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToolLongHelp, 1, NULL }, - { "SetToolPacking", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToolPacking, 1, NULL }, - { "SetToolSeparation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToolSeparation, 1, NULL }, - { "SetToolShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_SetToolShortHelp, 1, NULL }, - { "ToggleTool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarBase_ToggleTool, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxToolBarBase_methodCount = sizeof(wxToolBarBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxToolbar - - -#if wxLUA_USE_wxToolbar -// --------------------------------------------------------------------------- -// Bind class wxToolBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolBar' -int wxluatype_wxToolBar = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBar_Create[] = { &wxluatype_wxToolBar, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBar_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBar_Create[1] = {{ wxLua_wxToolBar_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxToolBar_Create }}; -// bool Create(wxWindow *parent,wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString &name = "wxToolBar"); -static int LUACALL wxLua_wxToolBar_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToolBar" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxToolBar"))); - // long style = wxNO_BORDER | wxTB_HORIZONTAL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxNO_BORDER | wxTB_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxToolBar * self = (wxToolBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBar); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBar_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBar_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBar_constructor1[1] = {{ wxLua_wxToolBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxToolBar_constructor1 }}; -// wxToolBar(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString &name = "wxToolBar"); -static int LUACALL wxLua_wxToolBar_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToolBar" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxToolBar"))); - // long style = wxNO_BORDER | wxTB_HORIZONTAL - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxNO_BORDER | wxTB_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxToolBar* returns = new wxToolBar(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -static int LUACALL wxLua_wxToolBar_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBar_constructor[1] = {{ wxLua_wxToolBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxToolBar(); -static int LUACALL wxLua_wxToolBar_constructor(lua_State *L) -{ - // call constructor - wxToolBar* returns = new wxToolBar(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBar_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBar_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxToolBar_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { wxLua_wxToolBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxToolBar_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxToolBar_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) - -void wxLua_wxToolBar_delete_function(void** p) -{ - wxToolBar* o = (wxToolBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolBar_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBar_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) - { "wxToolBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxToolBar_constructor_overload, s_wxluafunc_wxLua_wxToolBar_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxToolbar))||(wxLUA_USE_wxToolbar) - - { 0, 0, 0, 0 }, -}; - -int wxToolBar_methodCount = sizeof(wxToolBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxToolbar - - -#if (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) -// --------------------------------------------------------------------------- -// Bind class wxToolBarSimple -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolBarSimple' -int wxluatype_wxToolBarSimple = WXLUA_TUNKNOWN; - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarSimple_Create[] = { &wxluatype_wxToolBarSimple, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarSimple_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarSimple_Create[1] = {{ wxLua_wxToolBarSimple_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxToolBarSimple_Create }}; -// bool Create(wxWindow *parent,wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString &name = wxToolBarNameStr); -static int LUACALL wxLua_wxToolBarSimple_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxToolBarNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxToolBarNameStr)); - // long style = wxNO_BORDER | wxTB_HORIZONTAL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxNO_BORDER | wxTB_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxToolBarSimple * self = (wxToolBarSimple *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarSimple); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarSimple_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarSimple_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarSimple_constructor1[1] = {{ wxLua_wxToolBarSimple_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxToolBarSimple_constructor1 }}; -// wxToolBarSimple(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString &name = wxToolBarNameStr); -static int LUACALL wxLua_wxToolBarSimple_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxToolBarNameStr - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxToolBarNameStr)); - // long style = wxNO_BORDER | wxTB_HORIZONTAL - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxNO_BORDER | wxTB_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxToolBarSimple* returns = new wxToolBarSimple(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarSimple); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxToolBarSimple_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarSimple_constructor[1] = {{ wxLua_wxToolBarSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxToolBarSimple(); -static int LUACALL wxLua_wxToolBarSimple_constructor(lua_State *L) -{ - // call constructor - wxToolBarSimple* returns = new wxToolBarSimple(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarSimple); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarSimple_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxToolBarSimple_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxToolBarSimple_constructor1 }, -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxToolBarSimple_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxToolBarSimple_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxToolBarSimple_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) - -void wxLua_wxToolBarSimple_delete_function(void** p) -{ - wxToolBarSimple* o = (wxToolBarSimple*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolBarSimple_methods[] = { -#if ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarSimple_Create, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect) - -#if (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) - { "wxToolBarSimple", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxToolBarSimple_constructor_overload, s_wxluafunc_wxLua_wxToolBarSimple_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxPointSizeRect))||((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar)) - - { 0, 0, 0, 0 }, -}; - -int wxToolBarSimple_methodCount = sizeof(wxToolBarSimple_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxToolbar) - - -#if wxLUA_USE_wxToolbar -// --------------------------------------------------------------------------- -// Bind class wxToolBarToolBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolBarToolBase' -int wxluatype_wxToolBarToolBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_Attach[] = { &wxluatype_wxToolBarToolBase, &wxluatype_wxToolBarBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_Attach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_Attach[1] = {{ wxLua_wxToolBarToolBase_Attach, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_Attach }}; -// void Attach(wxToolBarBase *tbar); -static int LUACALL wxLua_wxToolBarToolBase_Attach(lua_State *L) -{ - // wxToolBarBase tbar - wxToolBarBase * tbar = (wxToolBarBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxToolBarBase); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call Attach - self->Attach(tbar); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_CanBeToggled[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_CanBeToggled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_CanBeToggled[1] = {{ wxLua_wxToolBarToolBase_CanBeToggled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_CanBeToggled }}; -// bool CanBeToggled(); -static int LUACALL wxLua_wxToolBarToolBase_CanBeToggled(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call CanBeToggled - bool returns = (self->CanBeToggled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_Detach[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_Detach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_Detach[1] = {{ wxLua_wxToolBarToolBase_Detach, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_Detach }}; -// void Detach(); -static int LUACALL wxLua_wxToolBarToolBase_Detach(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call Detach - self->Detach(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_Enable[] = { &wxluatype_wxToolBarToolBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_Enable[1] = {{ wxLua_wxToolBarToolBase_Enable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_Enable }}; -// bool Enable(bool enable); -static int LUACALL wxLua_wxToolBarToolBase_Enable(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call Enable - bool returns = (self->Enable(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetBitmap[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetBitmap[1] = {{ wxLua_wxToolBarToolBase_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetBitmap }}; -// wxBitmap GetBitmap(); -static int LUACALL wxLua_wxToolBarToolBase_GetBitmap(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetClientData[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetClientData[1] = {{ wxLua_wxToolBarToolBase_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetClientData }}; -// wxObject *GetClientData(); -static int LUACALL wxLua_wxToolBarToolBase_GetClientData(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetClientData - wxObject* returns = (wxObject*)self->GetClientData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetControl[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetControl[1] = {{ wxLua_wxToolBarToolBase_GetControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetControl }}; -// wxControl *GetControl(); -static int LUACALL wxLua_wxToolBarToolBase_GetControl(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetControl - wxControl* returns = (wxControl*)self->GetControl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetDisabledBitmap[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetDisabledBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetDisabledBitmap[1] = {{ wxLua_wxToolBarToolBase_GetDisabledBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetDisabledBitmap }}; -// wxBitmap GetDisabledBitmap(); -static int LUACALL wxLua_wxToolBarToolBase_GetDisabledBitmap(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetDisabledBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetDisabledBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetId[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetId[1] = {{ wxLua_wxToolBarToolBase_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetId }}; -// int GetId(); -static int LUACALL wxLua_wxToolBarToolBase_GetId(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetKind[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetKind(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetKind[1] = {{ wxLua_wxToolBarToolBase_GetKind, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetKind }}; -// wxItemKind GetKind() const; -static int LUACALL wxLua_wxToolBarToolBase_GetKind(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetKind - wxItemKind returns = (self->GetKind()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetLabel[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetLabel[1] = {{ wxLua_wxToolBarToolBase_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetLabel }}; -// wxString GetLabel(); -static int LUACALL wxLua_wxToolBarToolBase_GetLabel(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetLongHelp[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetLongHelp[1] = {{ wxLua_wxToolBarToolBase_GetLongHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetLongHelp }}; -// wxString GetLongHelp(); -static int LUACALL wxLua_wxToolBarToolBase_GetLongHelp(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetLongHelp - wxString returns = (self->GetLongHelp()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetNormalBitmap[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetNormalBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetNormalBitmap[1] = {{ wxLua_wxToolBarToolBase_GetNormalBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetNormalBitmap }}; -// wxBitmap GetNormalBitmap(); -static int LUACALL wxLua_wxToolBarToolBase_GetNormalBitmap(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetNormalBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetNormalBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetShortHelp[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetShortHelp[1] = {{ wxLua_wxToolBarToolBase_GetShortHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetShortHelp }}; -// wxString GetShortHelp(); -static int LUACALL wxLua_wxToolBarToolBase_GetShortHelp(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetShortHelp - wxString returns = (self->GetShortHelp()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetStyle[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetStyle[1] = {{ wxLua_wxToolBarToolBase_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetStyle }}; -// int GetStyle(); -static int LUACALL wxLua_wxToolBarToolBase_GetStyle(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetStyle - int returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_GetToolBar[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_GetToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_GetToolBar[1] = {{ wxLua_wxToolBarToolBase_GetToolBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_GetToolBar }}; -// wxToolBarBase *GetToolBar(); -static int LUACALL wxLua_wxToolBarToolBase_GetToolBar(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call GetToolBar - wxToolBarBase* returns = (wxToolBarBase*)self->GetToolBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_IsButton[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_IsButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_IsButton[1] = {{ wxLua_wxToolBarToolBase_IsButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_IsButton }}; -// int IsButton(); -static int LUACALL wxLua_wxToolBarToolBase_IsButton(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call IsButton - int returns = (self->IsButton()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_IsControl[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_IsControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_IsControl[1] = {{ wxLua_wxToolBarToolBase_IsControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_IsControl }}; -// int IsControl(); -static int LUACALL wxLua_wxToolBarToolBase_IsControl(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call IsControl - int returns = (self->IsControl()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_IsEnabled[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_IsEnabled[1] = {{ wxLua_wxToolBarToolBase_IsEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_IsEnabled }}; -// bool IsEnabled(); -static int LUACALL wxLua_wxToolBarToolBase_IsEnabled(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call IsEnabled - bool returns = (self->IsEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_IsSeparator[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_IsSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_IsSeparator[1] = {{ wxLua_wxToolBarToolBase_IsSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_IsSeparator }}; -// int IsSeparator(); -static int LUACALL wxLua_wxToolBarToolBase_IsSeparator(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call IsSeparator - int returns = (self->IsSeparator()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_IsToggled[] = { &wxluatype_wxToolBarToolBase, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_IsToggled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_IsToggled[1] = {{ wxLua_wxToolBarToolBase_IsToggled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolBarToolBase_IsToggled }}; -// bool IsToggled(); -static int LUACALL wxLua_wxToolBarToolBase_IsToggled(lua_State *L) -{ - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call IsToggled - bool returns = (self->IsToggled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetClientData[] = { &wxluatype_wxToolBarToolBase, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetClientData[1] = {{ wxLua_wxToolBarToolBase_SetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetClientData }}; -// void SetClientData(wxObject* clientData); -static int LUACALL wxLua_wxToolBarToolBase_SetClientData(lua_State *L) -{ - // wxObject clientData - wxObject * clientData = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetClientData - self->SetClientData(clientData); - - return 0; -} - -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetDisabledBitmap[] = { &wxluatype_wxToolBarToolBase, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetDisabledBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetDisabledBitmap[1] = {{ wxLua_wxToolBarToolBase_SetDisabledBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetDisabledBitmap }}; -// void SetDisabledBitmap(const wxBitmap& bmp); -static int LUACALL wxLua_wxToolBarToolBase_SetDisabledBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetDisabledBitmap - self->SetDisabledBitmap(*bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetLabel[] = { &wxluatype_wxToolBarToolBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetLabel[1] = {{ wxLua_wxToolBarToolBase_SetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetLabel }}; -// void SetLabel(const wxString& label); -static int LUACALL wxLua_wxToolBarToolBase_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetLabel - self->SetLabel(label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetLongHelp[] = { &wxluatype_wxToolBarToolBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetLongHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetLongHelp[1] = {{ wxLua_wxToolBarToolBase_SetLongHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetLongHelp }}; -// bool SetLongHelp(const wxString& help); -static int LUACALL wxLua_wxToolBarToolBase_SetLongHelp(lua_State *L) -{ - // const wxString help - const wxString help = wxlua_getwxStringtype(L, 2); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetLongHelp - bool returns = (self->SetLongHelp(help)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetNormalBitmap[] = { &wxluatype_wxToolBarToolBase, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetNormalBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetNormalBitmap[1] = {{ wxLua_wxToolBarToolBase_SetNormalBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetNormalBitmap }}; -// void SetNormalBitmap(const wxBitmap& bmp); -static int LUACALL wxLua_wxToolBarToolBase_SetNormalBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetNormalBitmap - self->SetNormalBitmap(*bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetShortHelp[] = { &wxluatype_wxToolBarToolBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetShortHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetShortHelp[1] = {{ wxLua_wxToolBarToolBase_SetShortHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetShortHelp }}; -// bool SetShortHelp(const wxString& help); -static int LUACALL wxLua_wxToolBarToolBase_SetShortHelp(lua_State *L) -{ - // const wxString help - const wxString help = wxlua_getwxStringtype(L, 2); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetShortHelp - bool returns = (self->SetShortHelp(help)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_SetToggle[] = { &wxluatype_wxToolBarToolBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_SetToggle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_SetToggle[1] = {{ wxLua_wxToolBarToolBase_SetToggle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_SetToggle }}; -// bool SetToggle(bool toggle); -static int LUACALL wxLua_wxToolBarToolBase_SetToggle(lua_State *L) -{ - // bool toggle - bool toggle = wxlua_getbooleantype(L, 2); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call SetToggle - bool returns = (self->SetToggle(toggle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolBarToolBase_Toggle[] = { &wxluatype_wxToolBarToolBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolBarToolBase_Toggle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolBarToolBase_Toggle[1] = {{ wxLua_wxToolBarToolBase_Toggle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolBarToolBase_Toggle }}; -// bool Toggle(bool toggle); -static int LUACALL wxLua_wxToolBarToolBase_Toggle(lua_State *L) -{ - // bool toggle - bool toggle = wxlua_getbooleantype(L, 2); - // get this - wxToolBarToolBase * self = (wxToolBarToolBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolBarToolBase); - // call Toggle - bool returns = (self->Toggle(toggle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxToolBarToolBase_delete_function(void** p) -{ - wxToolBarToolBase* o = (wxToolBarToolBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolBarToolBase_methods[] = { - { "Attach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_Attach, 1, NULL }, - { "CanBeToggled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_CanBeToggled, 1, NULL }, - { "Detach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_Detach, 1, NULL }, - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_Enable, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetClientData, 1, NULL }, -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - - { "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetControl, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - { "GetDisabledBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetDisabledBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetId, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxToolbar) - { "GetKind", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetKind, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxToolbar) - - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetLabel, 1, NULL }, - { "GetLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetLongHelp, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - { "GetNormalBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetNormalBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - - { "GetShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetShortHelp, 1, NULL }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetStyle, 1, NULL }, - { "GetToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_GetToolBar, 1, NULL }, - { "IsButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_IsButton, 1, NULL }, - { "IsControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_IsControl, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_IsEnabled, 1, NULL }, - { "IsSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_IsSeparator, 1, NULL }, - { "IsToggled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_IsToggled, 1, NULL }, - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetClientData, 1, NULL }, -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxToolbar) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - { "SetDisabledBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetDisabledBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetLabel, 1, NULL }, - { "SetLongHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetLongHelp, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - { "SetNormalBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetNormalBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxToolbar) - - { "SetShortHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetShortHelp, 1, NULL }, - { "SetToggle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_SetToggle, 1, NULL }, - { "Toggle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolBarToolBase_Toggle, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxToolBarToolBase_methodCount = sizeof(wxToolBarToolBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxToolbar - - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL -// --------------------------------------------------------------------------- -// Bind class wxAcceleratorTable -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAcceleratorTable' -int wxluatype_wxAcceleratorTable = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorTable_IsOk[] = { &wxluatype_wxAcceleratorTable, NULL }; -static int LUACALL wxLua_wxAcceleratorTable_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorTable_IsOk[1] = {{ wxLua_wxAcceleratorTable_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_IsOk }}; -// %wxchkver_2_8 bool IsOk() const; -static int LUACALL wxLua_wxAcceleratorTable_IsOk(lua_State *L) -{ - // get this - wxAcceleratorTable * self = (wxAcceleratorTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorTable); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorTable_Ok[] = { &wxluatype_wxAcceleratorTable, NULL }; -static int LUACALL wxLua_wxAcceleratorTable_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorTable_Ok[1] = {{ wxLua_wxAcceleratorTable_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_Ok }}; -// bool Ok() const; // %add for compatibility with earlier versions of wxlua -static int LUACALL wxLua_wxAcceleratorTable_Ok(lua_State *L) -{ - // get this - wxAcceleratorTable * self = (wxAcceleratorTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorTable); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorTable_delete[] = { &wxluatype_wxAcceleratorTable, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorTable_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorTable_constructor1[] = { &wxluatype_wxAcceleratorTable, NULL }; -static int LUACALL wxLua_wxAcceleratorTable_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorTable_constructor1[1] = {{ wxLua_wxAcceleratorTable_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_constructor1 }}; -// wxAcceleratorTable(const wxAcceleratorTable& accel); -static int LUACALL wxLua_wxAcceleratorTable_constructor1(lua_State *L) -{ - // const wxAcceleratorTable accel - const wxAcceleratorTable * accel = (const wxAcceleratorTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorTable); - // call constructor - wxAcceleratorTable* returns = new wxAcceleratorTable(*accel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAcceleratorTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorTable); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorTable_constructor[] = { &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxAcceleratorTable_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorTable_constructor[1] = {{ wxLua_wxAcceleratorTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_constructor }}; -// %override wxLua_wxAcceleratorTable_constructor -// wxAcceleratorTable(int n, wxAcceleratorEntry* entries) -static int LUACALL wxLua_wxAcceleratorTable_constructor(lua_State *L) -{ - wxAcceleratorEntry *pItems = NULL; - int nItems = 0; - if (lua_istable(L, 1)) - { - nItems = luaL_getn(L, 1); - if (nItems > 0) - pItems = new wxAcceleratorEntry[nItems]; - - if (pItems != NULL) - { - int idx, idxMax = nItems; - nItems = 0; - for (idx = 1; idx <= idxMax; ++idx) - { - lua_pushinteger(L, idx); - lua_gettable(L, -2); - - int iFlags = 0; - int keyCode = 0; - int cmd = 0; - bool fValid = false; - - if (lua_istable(L, -1)) - { - lua_pushinteger(L, 1); - lua_gettable(L, -2); - iFlags = (int)lua_tonumber(L, -1); - lua_pop(L, 1); - - lua_pushinteger(L, 2); - lua_gettable(L, -2); - keyCode = (int)lua_tonumber(L, -1); - lua_pop(L, 1); - - lua_pushinteger(L, 3); - lua_gettable(L, -2); - cmd = (int)lua_tonumber(L, -1); - lua_pop(L, 1); - - fValid = true; - } - else - if (lua_isuserdata(L, -1)) - { - wxAcceleratorEntry *pEntry = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, -1, wxluatype_wxAcceleratorEntry); - if (pEntry != NULL) - { - iFlags = pEntry->GetFlags(); - keyCode = pEntry->GetKeyCode(); - cmd = pEntry->GetCommand(); - - fValid = true; - } - } - lua_pop(L, 1); - - if (fValid) - { - pItems[nItems].Set(iFlags, keyCode, cmd); - ++nItems; - } - } - } - } - - // call constructor - if (pItems != NULL) - { - wxAcceleratorTable *returns = NULL; - if (nItems > 0) - returns = new wxAcceleratorTable(nItems, pItems); - - delete[] pItems; - - if (returns != NULL) - { - wxluaO_addgcobject(L, returns, wxluatype_wxAcceleratorTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorTable); - // return the number of parameters - return 1; - } - } - return 0; -} - - - - - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorTable_constructor_overload[] = -{ - { wxLua_wxAcceleratorTable_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_constructor1 }, - { wxLua_wxAcceleratorTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorTable_constructor }, -}; -static int s_wxluafunc_wxLua_wxAcceleratorTable_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAcceleratorTable_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -void wxLua_wxAcceleratorTable_delete_function(void** p) -{ - wxAcceleratorTable* o = (wxAcceleratorTable*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAcceleratorTable_methods[] = { -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorTable_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorTable_Ok, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAcceleratorTable_delete, 1, NULL }, - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "wxAcceleratorTable", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAcceleratorTable_constructor_overload, s_wxluafunc_wxLua_wxAcceleratorTable_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - - { 0, 0, 0, 0 }, -}; - -int wxAcceleratorTable_methodCount = sizeof(wxAcceleratorTable_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL -// --------------------------------------------------------------------------- -// Bind class wxAcceleratorEntry -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxAcceleratorEntry' -int wxluatype_wxAcceleratorEntry = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_Create[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_Create[1] = {{ wxLua_wxAcceleratorEntry_Create, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_Create }}; -// %wxchkver_2_8 static %gc wxAcceleratorEntry *Create(const wxString& str); -static int LUACALL wxLua_wxAcceleratorEntry_Create(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call Create - wxAcceleratorEntry* returns = (wxAcceleratorEntry*)wxAcceleratorEntry::Create(str); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxAcceleratorEntry); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorEntry); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_FromString[] = { &wxluatype_wxAcceleratorEntry, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_FromString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_FromString[1] = {{ wxLua_wxAcceleratorEntry_FromString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAcceleratorEntry_FromString }}; -// %wxchkver_2_8 bool FromString(const wxString& str); -static int LUACALL wxLua_wxAcceleratorEntry_FromString(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call FromString - bool returns = (self->FromString(str)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetCommand[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_GetCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_GetCommand[1] = {{ wxLua_wxAcceleratorEntry_GetCommand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetCommand }}; -// int GetCommand() const; -static int LUACALL wxLua_wxAcceleratorEntry_GetCommand(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call GetCommand - int returns = (self->GetCommand()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetFlags[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_GetFlags[1] = {{ wxLua_wxAcceleratorEntry_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxAcceleratorEntry_GetFlags(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetKeyCode[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_GetKeyCode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_GetKeyCode[1] = {{ wxLua_wxAcceleratorEntry_GetKeyCode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetKeyCode }}; -// int GetKeyCode() const; -static int LUACALL wxLua_wxAcceleratorEntry_GetKeyCode(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call GetKeyCode - int returns = (self->GetKeyCode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetMenuItem[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_GetMenuItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_GetMenuItem[1] = {{ wxLua_wxAcceleratorEntry_GetMenuItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_GetMenuItem }}; -// %wxchkver_2_8 wxMenuItem *GetMenuItem() const; -static int LUACALL wxLua_wxAcceleratorEntry_GetMenuItem(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call GetMenuItem - wxMenuItem* returns = (wxMenuItem*)self->GetMenuItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_IsOk[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_IsOk[1] = {{ wxLua_wxAcceleratorEntry_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_IsOk }}; -// %wxchkver_2_8 bool IsOk() const; -static int LUACALL wxLua_wxAcceleratorEntry_IsOk(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_Set[] = { &wxluatype_wxAcceleratorEntry, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_Set[1] = {{ wxLua_wxAcceleratorEntry_Set, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxAcceleratorEntry_Set }}; -// void Set(int flags, int keyCode, int Cmd, wxMenuItem *item = NULL); -static int LUACALL wxLua_wxAcceleratorEntry_Set(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxMenuItem item = NULL - wxMenuItem * item = (argCount >= 5 ? (wxMenuItem *)wxluaT_getuserdatatype(L, 5, wxluatype_wxMenuItem) : NULL); - // int Cmd - int Cmd = (int)wxlua_getnumbertype(L, 4); - // int keyCode - int keyCode = (int)wxlua_getnumbertype(L, 3); - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call Set - self->Set(flags, keyCode, Cmd, item); - - return 0; -} - -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_ToRawString[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_ToRawString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_ToRawString[1] = {{ wxLua_wxAcceleratorEntry_ToRawString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_ToRawString }}; -// %wxchkver_2_9_4 wxString ToRawString() const; -static int LUACALL wxLua_wxAcceleratorEntry_ToRawString(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call ToRawString - wxString returns = (self->ToRawString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_ToString[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_ToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_ToString[1] = {{ wxLua_wxAcceleratorEntry_ToString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_ToString }}; -// %wxchkver_2_8 wxString ToString() const; -static int LUACALL wxLua_wxAcceleratorEntry_ToString(lua_State *L) -{ - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call ToString - wxString returns = (self->ToString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_delete[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_op_eq[] = { &wxluatype_wxAcceleratorEntry, &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_op_eq[1] = {{ wxLua_wxAcceleratorEntry_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAcceleratorEntry_op_eq }}; -// bool operator==(const wxAcceleratorEntry& entry) const; -static int LUACALL wxLua_wxAcceleratorEntry_op_eq(lua_State *L) -{ - // const wxAcceleratorEntry entry - const wxAcceleratorEntry * entry = (const wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAcceleratorEntry); - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call op_eq - bool returns = ((*self)==(*entry)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_op_ne[] = { &wxluatype_wxAcceleratorEntry, &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_op_ne[1] = {{ wxLua_wxAcceleratorEntry_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAcceleratorEntry_op_ne }}; -// bool operator!=(const wxAcceleratorEntry& entry) const; -static int LUACALL wxLua_wxAcceleratorEntry_op_ne(lua_State *L) -{ - // const wxAcceleratorEntry entry - const wxAcceleratorEntry * entry = (const wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAcceleratorEntry); - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call op_ne - bool returns = ((*self)!=(*entry)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_op_set[] = { &wxluatype_wxAcceleratorEntry, &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_op_set[1] = {{ wxLua_wxAcceleratorEntry_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxAcceleratorEntry_op_set }}; -// wxAcceleratorEntry& operator=(const wxAcceleratorEntry& entry); -static int LUACALL wxLua_wxAcceleratorEntry_op_set(lua_State *L) -{ - // const wxAcceleratorEntry entry - const wxAcceleratorEntry * entry = (const wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAcceleratorEntry); - // get this - wxAcceleratorEntry * self = (wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call op_set - (*self)=(*entry); - wxAcceleratorEntry* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_constructor1[] = { &wxluatype_wxAcceleratorEntry, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_constructor1[1] = {{ wxLua_wxAcceleratorEntry_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_constructor1 }}; -// wxAcceleratorEntry(const wxAcceleratorEntry& entry); -static int LUACALL wxLua_wxAcceleratorEntry_constructor1(lua_State *L) -{ - // const wxAcceleratorEntry entry - const wxAcceleratorEntry * entry = (const wxAcceleratorEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxAcceleratorEntry); - // call constructor - wxAcceleratorEntry* returns = new wxAcceleratorEntry(*entry); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAcceleratorEntry); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorEntry); - - return 1; -} - - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxAcceleratorEntry_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxMenuItem, NULL }; -static int LUACALL wxLua_wxAcceleratorEntry_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_constructor[1] = {{ wxLua_wxAcceleratorEntry_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxAcceleratorEntry_constructor }}; -// wxAcceleratorEntry(int flags = 0, int keyCode = 0, int cmd = 0, wxMenuItem *item = NULL); -static int LUACALL wxLua_wxAcceleratorEntry_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxMenuItem item = NULL - wxMenuItem * item = (argCount >= 4 ? (wxMenuItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxMenuItem) : NULL); - // int cmd = 0 - int cmd = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int keyCode = 0 - int keyCode = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int flags = 0 - int flags = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxAcceleratorEntry* returns = new wxAcceleratorEntry(flags, keyCode, cmd, item); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxAcceleratorEntry); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorEntry); - - return 1; -} - -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - - - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)||((wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxAcceleratorEntry_constructor_overload[] = -{ - { wxLua_wxAcceleratorEntry_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxAcceleratorEntry_constructor1 }, - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxAcceleratorEntry_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxAcceleratorEntry_constructor }, -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -}; -static int s_wxluafunc_wxLua_wxAcceleratorEntry_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxAcceleratorEntry_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)||((wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - -void wxLua_wxAcceleratorEntry_delete_function(void** p) -{ - wxAcceleratorEntry* o = (wxAcceleratorEntry*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxAcceleratorEntry_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "Create", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxAcceleratorEntry_Create, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "FromString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_FromString, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - - { "GetCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_GetCommand, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_GetFlags, 1, NULL }, - { "GetKeyCode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_GetKeyCode, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "GetMenuItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_GetMenuItem, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_IsOk, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_Set, 1, NULL }, -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "ToRawString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_ToRawString, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - { "ToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_ToString, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxAcceleratorEntry_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_op_ne, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxAcceleratorEntry_op_set, 1, NULL }, - -#if (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)||((wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - { "wxAcceleratorEntry", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxAcceleratorEntry_constructor_overload, s_wxluafunc_wxLua_wxAcceleratorEntry_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL)||((wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) - - { 0, 0, 0, 0 }, -}; - -int wxAcceleratorEntry_methodCount = sizeof(wxAcceleratorEntry_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - diff --git a/wxLua/modules/wxbind/src/wxcore_picker.cpp b/wxLua/modules/wxbind/src/wxcore_picker.cpp deleted file mode 100644 index f4535cc8..00000000 --- a/wxLua/modules/wxbind/src/wxcore_picker.cpp +++ /dev/null @@ -1,1971 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_picker.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker -// --------------------------------------------------------------------------- -// Bind class wxPickerBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPickerBase' -int wxluatype_wxPickerBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_GetInternalMargin[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_GetInternalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_GetInternalMargin[1] = {{ wxLua_wxPickerBase_GetInternalMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_GetInternalMargin }}; -// int GetInternalMargin() const; -static int LUACALL wxLua_wxPickerBase_GetInternalMargin(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call GetInternalMargin - int returns = (self->GetInternalMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_GetPickerCtrl[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_GetPickerCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_GetPickerCtrl[1] = {{ wxLua_wxPickerBase_GetPickerCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_GetPickerCtrl }}; -// wxControl *GetPickerCtrl(); -static int LUACALL wxLua_wxPickerBase_GetPickerCtrl(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call GetPickerCtrl - wxControl* returns = (wxControl*)self->GetPickerCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_GetPickerCtrlProportion[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_GetPickerCtrlProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_GetPickerCtrlProportion[1] = {{ wxLua_wxPickerBase_GetPickerCtrlProportion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_GetPickerCtrlProportion }}; -// int GetPickerCtrlProportion() const; -static int LUACALL wxLua_wxPickerBase_GetPickerCtrlProportion(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call GetPickerCtrlProportion - int returns = (self->GetPickerCtrlProportion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_GetTextCtrl[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_GetTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_GetTextCtrl[1] = {{ wxLua_wxPickerBase_GetTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_GetTextCtrl }}; -// wxTextCtrl *GetTextCtrl(); -static int LUACALL wxLua_wxPickerBase_GetTextCtrl(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call GetTextCtrl - wxTextCtrl* returns = (wxTextCtrl*)self->GetTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_GetTextCtrlProportion[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_GetTextCtrlProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_GetTextCtrlProportion[1] = {{ wxLua_wxPickerBase_GetTextCtrlProportion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_GetTextCtrlProportion }}; -// int GetTextCtrlProportion() const; -static int LUACALL wxLua_wxPickerBase_GetTextCtrlProportion(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call GetTextCtrlProportion - int returns = (self->GetTextCtrlProportion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_HasTextCtrl[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_HasTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_HasTextCtrl[1] = {{ wxLua_wxPickerBase_HasTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_HasTextCtrl }}; -// bool HasTextCtrl() const; -static int LUACALL wxLua_wxPickerBase_HasTextCtrl(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call HasTextCtrl - bool returns = (self->HasTextCtrl()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_IsPickerCtrlGrowable[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_IsPickerCtrlGrowable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_IsPickerCtrlGrowable[1] = {{ wxLua_wxPickerBase_IsPickerCtrlGrowable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_IsPickerCtrlGrowable }}; -// bool IsPickerCtrlGrowable() const; -static int LUACALL wxLua_wxPickerBase_IsPickerCtrlGrowable(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call IsPickerCtrlGrowable - bool returns = (self->IsPickerCtrlGrowable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_IsTextCtrlGrowable[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_IsTextCtrlGrowable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_IsTextCtrlGrowable[1] = {{ wxLua_wxPickerBase_IsTextCtrlGrowable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_IsTextCtrlGrowable }}; -// bool IsTextCtrlGrowable() const; -static int LUACALL wxLua_wxPickerBase_IsTextCtrlGrowable(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call IsTextCtrlGrowable - bool returns = (self->IsTextCtrlGrowable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_SetInternalMargin[] = { &wxluatype_wxPickerBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPickerBase_SetInternalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_SetInternalMargin[1] = {{ wxLua_wxPickerBase_SetInternalMargin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPickerBase_SetInternalMargin }}; -// void SetInternalMargin(int newmargin); -static int LUACALL wxLua_wxPickerBase_SetInternalMargin(lua_State *L) -{ - // int newmargin - int newmargin = (int)wxlua_getnumbertype(L, 2); - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call SetInternalMargin - self->SetInternalMargin(newmargin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_SetPickerCtrlGrowable[] = { &wxluatype_wxPickerBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPickerBase_SetPickerCtrlGrowable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_SetPickerCtrlGrowable[1] = {{ wxLua_wxPickerBase_SetPickerCtrlGrowable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPickerBase_SetPickerCtrlGrowable }}; -// void SetPickerCtrlGrowable(bool grow = true); -static int LUACALL wxLua_wxPickerBase_SetPickerCtrlGrowable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool grow = true - bool grow = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call SetPickerCtrlGrowable - self->SetPickerCtrlGrowable(grow); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_SetPickerCtrlProportion[] = { &wxluatype_wxPickerBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPickerBase_SetPickerCtrlProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_SetPickerCtrlProportion[1] = {{ wxLua_wxPickerBase_SetPickerCtrlProportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPickerBase_SetPickerCtrlProportion }}; -// void SetPickerCtrlProportion(int prop); -static int LUACALL wxLua_wxPickerBase_SetPickerCtrlProportion(lua_State *L) -{ - // int prop - int prop = (int)wxlua_getnumbertype(L, 2); - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call SetPickerCtrlProportion - self->SetPickerCtrlProportion(prop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_SetTextCtrlGrowable[] = { &wxluatype_wxPickerBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPickerBase_SetTextCtrlGrowable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_SetTextCtrlGrowable[1] = {{ wxLua_wxPickerBase_SetTextCtrlGrowable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPickerBase_SetTextCtrlGrowable }}; -// void SetTextCtrlGrowable(bool grow = true); -static int LUACALL wxLua_wxPickerBase_SetTextCtrlGrowable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool grow = true - bool grow = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call SetTextCtrlGrowable - self->SetTextCtrlGrowable(grow); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_SetTextCtrlProportion[] = { &wxluatype_wxPickerBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPickerBase_SetTextCtrlProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_SetTextCtrlProportion[1] = {{ wxLua_wxPickerBase_SetTextCtrlProportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPickerBase_SetTextCtrlProportion }}; -// void SetTextCtrlProportion(int prop); -static int LUACALL wxLua_wxPickerBase_SetTextCtrlProportion(lua_State *L) -{ - // int prop - int prop = (int)wxlua_getnumbertype(L, 2); - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call SetTextCtrlProportion - self->SetTextCtrlProportion(prop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_UpdatePickerFromTextCtrl[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_UpdatePickerFromTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_UpdatePickerFromTextCtrl[1] = {{ wxLua_wxPickerBase_UpdatePickerFromTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_UpdatePickerFromTextCtrl }}; -// virtual void UpdatePickerFromTextCtrl(); -static int LUACALL wxLua_wxPickerBase_UpdatePickerFromTextCtrl(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call UpdatePickerFromTextCtrl - self->UpdatePickerFromTextCtrl(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPickerBase_UpdateTextCtrlFromPicker[] = { &wxluatype_wxPickerBase, NULL }; -static int LUACALL wxLua_wxPickerBase_UpdateTextCtrlFromPicker(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPickerBase_UpdateTextCtrlFromPicker[1] = {{ wxLua_wxPickerBase_UpdateTextCtrlFromPicker, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPickerBase_UpdateTextCtrlFromPicker }}; -// virtual void UpdateTextCtrlFromPicker(); -static int LUACALL wxLua_wxPickerBase_UpdateTextCtrlFromPicker(lua_State *L) -{ - // get this - wxPickerBase * self = (wxPickerBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPickerBase); - // call UpdateTextCtrlFromPicker - self->UpdateTextCtrlFromPicker(); - - return 0; -} - - - - -void wxLua_wxPickerBase_delete_function(void** p) -{ - wxPickerBase* o = (wxPickerBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPickerBase_methods[] = { - { "GetInternalMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_GetInternalMargin, 1, NULL }, - { "GetPickerCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_GetPickerCtrl, 1, NULL }, - { "GetPickerCtrlProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_GetPickerCtrlProportion, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_GetTextCtrl, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetTextCtrlProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_GetTextCtrlProportion, 1, NULL }, - { "HasTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_HasTextCtrl, 1, NULL }, - { "IsPickerCtrlGrowable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_IsPickerCtrlGrowable, 1, NULL }, - { "IsTextCtrlGrowable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_IsTextCtrlGrowable, 1, NULL }, - { "SetInternalMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_SetInternalMargin, 1, NULL }, - { "SetPickerCtrlGrowable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_SetPickerCtrlGrowable, 1, NULL }, - { "SetPickerCtrlProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_SetPickerCtrlProportion, 1, NULL }, - { "SetTextCtrlGrowable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_SetTextCtrlGrowable, 1, NULL }, - { "SetTextCtrlProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_SetTextCtrlProportion, 1, NULL }, - { "UpdatePickerFromTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_UpdatePickerFromTextCtrl, 1, NULL }, - { "UpdateTextCtrlFromPicker", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPickerBase_UpdateTextCtrlFromPicker, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPickerBase_methodCount = sizeof(wxPickerBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxColourPickerCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourPickerCtrl' -int wxluatype_wxColourPickerCtrl = WXLUA_TUNKNOWN; - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerCtrl_Create[] = { &wxluatype_wxColourPickerCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxColourPickerCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_Create[1] = {{ wxLua_wxColourPickerCtrl_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxColourPickerCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxColour& col, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxColourPickerCtrl"); -static int LUACALL wxLua_wxColourPickerCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxColourPickerCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxColourPickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxCLRP_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxCLRP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxColourPickerCtrl * self = (wxColourPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPickerCtrl); - // call Create - bool returns = (self->Create(parent, id, *col, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerCtrl_GetColour[] = { &wxluatype_wxColourPickerCtrl, NULL }; -static int LUACALL wxLua_wxColourPickerCtrl_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_GetColour[1] = {{ wxLua_wxColourPickerCtrl_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourPickerCtrl_GetColour }}; -// wxColour GetColour() const; -static int LUACALL wxLua_wxColourPickerCtrl_GetColour(lua_State *L) -{ - // get this - wxColourPickerCtrl * self = (wxColourPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPickerCtrl); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerCtrl_SetColour1[] = { &wxluatype_wxColourPickerCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxColourPickerCtrl_SetColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour1[1] = {{ wxLua_wxColourPickerCtrl_SetColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPickerCtrl_SetColour1 }}; -// bool SetColour(const wxString& text); -static int LUACALL wxLua_wxColourPickerCtrl_SetColour1(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxColourPickerCtrl * self = (wxColourPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPickerCtrl); - // call SetColour - bool returns = (self->SetColour(text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerCtrl_SetColour[] = { &wxluatype_wxColourPickerCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPickerCtrl_SetColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour[1] = {{ wxLua_wxColourPickerCtrl_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPickerCtrl_SetColour }}; -// void SetColour(const wxColour& col); -static int LUACALL wxLua_wxColourPickerCtrl_SetColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColourPickerCtrl * self = (wxColourPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPickerCtrl); - // call SetColour - self->SetColour(*col); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxColourPickerCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_constructor1[1] = {{ wxLua_wxColourPickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxColourPickerCtrl_constructor1 }}; -// wxColourPickerCtrl(wxWindow *parent, wxWindowID id, const wxColour& col, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxColourPickerCtrl"); -static int LUACALL wxLua_wxColourPickerCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxColourPickerCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxColourPickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxCLRP_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxCLRP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxColourPickerCtrl* returns = new wxColourPickerCtrl(parent, id, *col, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPickerCtrl); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxColourPickerCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_constructor[1] = {{ wxLua_wxColourPickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxColourPickerCtrl(); -static int LUACALL wxLua_wxColourPickerCtrl_constructor(lua_State *L) -{ - // call constructor - wxColourPickerCtrl* returns = new wxColourPickerCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPickerCtrl); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL))||(((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour_overload[] = -{ - { wxLua_wxColourPickerCtrl_SetColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPickerCtrl_SetColour1 }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxColourPickerCtrl_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPickerCtrl_SetColour }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) -}; -static int s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour_overload_count = sizeof(s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL))||(((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerCtrl_constructor_overload[] = -{ - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxColourPickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxColourPickerCtrl_constructor1 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxColourPickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxColourPickerCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxColourPickerCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) - -void wxLua_wxColourPickerCtrl_delete_function(void** p) -{ - wxColourPickerCtrl* o = (wxColourPickerCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourPickerCtrl_methods[] = { -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPickerCtrl_Create, 1, NULL }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPickerCtrl_GetColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL))||(((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour_overload, s_wxluafunc_wxLua_wxColourPickerCtrl_SetColour_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL))||(((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) - { "wxColourPickerCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourPickerCtrl_constructor_overload, s_wxluafunc_wxLua_wxColourPickerCtrl_constructor_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxColourPickerCtrl_methodCount = sizeof(wxColourPickerCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxColourPickerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourPickerEvent' -int wxluatype_wxColourPickerEvent = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerEvent_GetColour[] = { &wxluatype_wxColourPickerEvent, NULL }; -static int LUACALL wxLua_wxColourPickerEvent_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerEvent_GetColour[1] = {{ wxLua_wxColourPickerEvent_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourPickerEvent_GetColour }}; -// wxColour GetColour() const; -static int LUACALL wxLua_wxColourPickerEvent_GetColour(lua_State *L) -{ - // get this - wxColourPickerEvent * self = (wxColourPickerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPickerEvent); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerEvent_SetColour[] = { &wxluatype_wxColourPickerEvent, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPickerEvent_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerEvent_SetColour[1] = {{ wxLua_wxColourPickerEvent_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPickerEvent_SetColour }}; -// void SetColour(const wxColour &c); -static int LUACALL wxLua_wxColourPickerEvent_SetColour(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColourPickerEvent * self = (wxColourPickerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPickerEvent); - // call SetColour - self->SetColour(*c); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerEvent_delete[] = { &wxluatype_wxColourPickerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxColourPickerEvent_delete }}; - - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPickerEvent_constructor1[] = { &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPickerEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerEvent_constructor1[1] = {{ wxLua_wxColourPickerEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxColourPickerEvent_constructor1 }}; -// wxColourPickerEvent(wxObject *generator, int id, const wxColour &col); -static int LUACALL wxLua_wxColourPickerEvent_constructor1(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // wxObject generator - wxObject * generator = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call constructor - wxColourPickerEvent* returns = new wxColourPickerEvent(generator, id, *col); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPickerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPickerEvent); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject) - -static int LUACALL wxLua_wxColourPickerEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerEvent_constructor[1] = {{ wxLua_wxColourPickerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxColourPickerEvent(); -static int LUACALL wxLua_wxColourPickerEvent_constructor(lua_State *L) -{ - // call constructor - wxColourPickerEvent* returns = new wxColourPickerEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPickerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPickerEvent); - - return 1; -} - - - - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPickerEvent_constructor_overload[] = -{ - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject) - { wxLua_wxColourPickerEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxColourPickerEvent_constructor1 }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject) - { wxLua_wxColourPickerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxColourPickerEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxColourPickerEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) - -void wxLua_wxColourPickerEvent_delete_function(void** p) -{ - wxColourPickerEvent* o = (wxColourPickerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourPickerEvent_methods[] = { -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPickerEvent_GetColour, 1, NULL }, - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPickerEvent_SetColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxColourPickerEvent_delete, 1, NULL }, - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) - { "wxColourPickerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourPickerEvent_constructor_overload, s_wxluafunc_wxLua_wxColourPickerEvent_constructor_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxColourPickerEvent_methodCount = sizeof(wxColourPickerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxColourPickerCtrl && wxUSE_COLOURPICKERCTRL) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) -// --------------------------------------------------------------------------- -// Bind class wxDatePickerCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDatePickerCtrl' -int wxluatype_wxDatePickerCtrl = WXLUA_TUNKNOWN; - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDatePickerCtrl_Create[] = { &wxluatype_wxDatePickerCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxDateTime, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDatePickerCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_Create[1] = {{ wxLua_wxDatePickerCtrl_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxDatePickerCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxDateTime& dt = wxDefaultDateTime, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDP_DEFAULT | wxDP_SHOWCENTURY, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxDatePickerCtrl"); -static int LUACALL wxLua_wxDatePickerCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDatePickerCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxDatePickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxDP_DEFAULT | wxDP_SHOWCENTURY - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDP_DEFAULT | wxDP_SHOWCENTURY); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxDateTime dt = wxDefaultDateTime - const wxDateTime * dt = (argCount >= 4 ? (const wxDateTime *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDateTime) : &wxDefaultDateTime); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxDatePickerCtrl * self = (wxDatePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDatePickerCtrl); - // call Create - bool returns = (self->Create(parent, id, *dt, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDatePickerCtrl_GetRange[] = { &wxluatype_wxDatePickerCtrl, NULL }; -static int LUACALL wxLua_wxDatePickerCtrl_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_GetRange[1] = {{ wxLua_wxDatePickerCtrl_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDatePickerCtrl_GetRange }}; -// %override wxLua_wxDatePickerCtrl_GetRange -// bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const -static int LUACALL wxLua_wxDatePickerCtrl_GetRange(lua_State *L) -{ - wxDateTime *dt1 = new wxDateTime(); - wxDateTime *dt2 = new wxDateTime(); - // get this - wxDatePickerCtrl * self = (wxDatePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDatePickerCtrl); - // call GetRange - bool returns = self->GetRange(dt1, dt2); - // push the result flag - lua_pushboolean(L, returns); - wxluaT_pushuserdatatype(L, dt1, wxluatype_wxDateTime); - wxluaT_pushuserdatatype(L, dt2, wxluatype_wxDateTime); - - return 3; -} - - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDatePickerCtrl_GetValue[] = { &wxluatype_wxDatePickerCtrl, NULL }; -static int LUACALL wxLua_wxDatePickerCtrl_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_GetValue[1] = {{ wxLua_wxDatePickerCtrl_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDatePickerCtrl_GetValue }}; -// wxDateTime GetValue() const; -static int LUACALL wxLua_wxDatePickerCtrl_GetValue(lua_State *L) -{ - // get this - wxDatePickerCtrl * self = (wxDatePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDatePickerCtrl); - // call GetValue - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDatePickerCtrl_SetRange[] = { &wxluatype_wxDatePickerCtrl, &wxluatype_wxDateTime, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDatePickerCtrl_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_SetRange[1] = {{ wxLua_wxDatePickerCtrl_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDatePickerCtrl_SetRange }}; -// void SetRange(const wxDateTime& dt1, const wxDateTime& dt2); -static int LUACALL wxLua_wxDatePickerCtrl_SetRange(lua_State *L) -{ - // const wxDateTime dt2 - const wxDateTime * dt2 = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxDateTime dt1 - const wxDateTime * dt1 = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDatePickerCtrl * self = (wxDatePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDatePickerCtrl); - // call SetRange - self->SetRange(*dt1, *dt2); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDatePickerCtrl_SetValue[] = { &wxluatype_wxDatePickerCtrl, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDatePickerCtrl_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_SetValue[1] = {{ wxLua_wxDatePickerCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDatePickerCtrl_SetValue }}; -// void SetValue(const wxDateTime& dt); -static int LUACALL wxLua_wxDatePickerCtrl_SetValue(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDatePickerCtrl * self = (wxDatePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDatePickerCtrl); - // call SetValue - self->SetValue(*dt); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDatePickerCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxDateTime, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDatePickerCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_constructor1[1] = {{ wxLua_wxDatePickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxDatePickerCtrl_constructor1 }}; -// wxDatePickerCtrl(wxWindow *parent, wxWindowID id, const wxDateTime& dt = wxDefaultDateTime, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDP_DEFAULT | wxDP_SHOWCENTURY, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxDatePickerCtrl"); -static int LUACALL wxLua_wxDatePickerCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDatePickerCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxDatePickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxDP_DEFAULT | wxDP_SHOWCENTURY - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDP_DEFAULT | wxDP_SHOWCENTURY); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxDateTime dt = wxDefaultDateTime - const wxDateTime * dt = (argCount >= 3 ? (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime) : &wxDefaultDateTime); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDatePickerCtrl* returns = new wxDatePickerCtrl(parent, id, *dt, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDatePickerCtrl); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxDatePickerCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_constructor[1] = {{ wxLua_wxDatePickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDatePickerCtrl(); -static int LUACALL wxLua_wxDatePickerCtrl_constructor(lua_State *L) -{ - // call constructor - wxDatePickerCtrl* returns = new wxDatePickerCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDatePickerCtrl); - - return 1; -} - - - - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDatePickerCtrl_constructor_overload[] = -{ - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxDatePickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxDatePickerCtrl_constructor1 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxDatePickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDatePickerCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDatePickerCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) - -void wxLua_wxDatePickerCtrl_delete_function(void** p) -{ - wxDatePickerCtrl* o = (wxDatePickerCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDatePickerCtrl_methods[] = { -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDatePickerCtrl_Create, 1, NULL }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDatePickerCtrl_GetRange, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDatePickerCtrl_GetValue, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDatePickerCtrl_SetRange, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDatePickerCtrl_SetValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) - { "wxDatePickerCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDatePickerCtrl_constructor_overload, s_wxluafunc_wxLua_wxDatePickerCtrl_constructor_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxDatePickerCtrl_methodCount = sizeof(wxDatePickerCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDatePickerCtrl && wxUSE_DATEPICKCTRL) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) -// --------------------------------------------------------------------------- -// Bind class wxTimePickerCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTimePickerCtrl' -int wxluatype_wxTimePickerCtrl = WXLUA_TUNKNOWN; - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimePickerCtrl_Create[] = { &wxluatype_wxTimePickerCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxDateTime, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTimePickerCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_Create[1] = {{ wxLua_wxTimePickerCtrl_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxTimePickerCtrl_Create }}; -// const wxString& name = wxTimePickerCtrlNameStr); -static int LUACALL wxLua_wxTimePickerCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxTimePickerCtrlNameStr - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxTimePickerCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxTP_DEFAULT - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxTP_DEFAULT); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxDateTime dt = wxDefaultDateTime - const wxDateTime * dt = (argCount >= 4 ? (const wxDateTime *)wxluaT_getuserdatatype(L, 4, wxluatype_wxDateTime) : &wxDefaultDateTime); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTimePickerCtrl * self = (wxTimePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimePickerCtrl); - // call Create - bool returns = (self->Create(parent, id, *dt, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimePickerCtrl_GetTime[] = { &wxluatype_wxTimePickerCtrl, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxTimePickerCtrl_GetTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_GetTime[1] = {{ wxLua_wxTimePickerCtrl_GetTime, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTimePickerCtrl_GetTime }}; -// %wxchkver_2_9_4 bool GetTime(int* hour, int* min, int* sec) const; -static int LUACALL wxLua_wxTimePickerCtrl_GetTime(lua_State *L) -{ - // int sec - int * sec = (int *)wxlua_touserdata(L, 4); - // int min - int * min = (int *)wxlua_touserdata(L, 3); - // int hour - int * hour = (int *)wxlua_touserdata(L, 2); - // get this - wxTimePickerCtrl * self = (wxTimePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimePickerCtrl); - // call GetTime - bool returns = (self->GetTime(hour, min, sec)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimePickerCtrl_GetValue[] = { &wxluatype_wxTimePickerCtrl, NULL }; -static int LUACALL wxLua_wxTimePickerCtrl_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_GetValue[1] = {{ wxLua_wxTimePickerCtrl_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTimePickerCtrl_GetValue }}; -// virtual wxDateTime GetValue() const; -static int LUACALL wxLua_wxTimePickerCtrl_GetValue(lua_State *L) -{ - // get this - wxTimePickerCtrl * self = (wxTimePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimePickerCtrl); - // call GetValue - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimePickerCtrl_SetTime[] = { &wxluatype_wxTimePickerCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTimePickerCtrl_SetTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_SetTime[1] = {{ wxLua_wxTimePickerCtrl_SetTime, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTimePickerCtrl_SetTime }}; -// %wxchkver_2_9_4 bool SetTime(int hour, int min, int sec); -static int LUACALL wxLua_wxTimePickerCtrl_SetTime(lua_State *L) -{ - // int sec - int sec = (int)wxlua_getnumbertype(L, 4); - // int min - int min = (int)wxlua_getnumbertype(L, 3); - // int hour - int hour = (int)wxlua_getnumbertype(L, 2); - // get this - wxTimePickerCtrl * self = (wxTimePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimePickerCtrl); - // call SetTime - bool returns = (self->SetTime(hour, min, sec)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimePickerCtrl_SetValue[] = { &wxluatype_wxTimePickerCtrl, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxTimePickerCtrl_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_SetValue[1] = {{ wxLua_wxTimePickerCtrl_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTimePickerCtrl_SetValue }}; -// virtual void SetValue(const wxDateTime& dt); -static int LUACALL wxLua_wxTimePickerCtrl_SetValue(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxTimePickerCtrl * self = (wxTimePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTimePickerCtrl); - // call SetValue - self->SetValue(*dt); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTimePickerCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxDateTime, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTimePickerCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_constructor1[1] = {{ wxLua_wxTimePickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxTimePickerCtrl_constructor1 }}; -// const wxString& name = wxTimePickerCtrlNameStr); -static int LUACALL wxLua_wxTimePickerCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxTimePickerCtrlNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxTimePickerCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxTP_DEFAULT - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxTP_DEFAULT); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxDateTime dt = wxDefaultDateTime - const wxDateTime * dt = (argCount >= 3 ? (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime) : &wxDefaultDateTime); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTimePickerCtrl* returns = new wxTimePickerCtrl(parent, id, *dt, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimePickerCtrl); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxTimePickerCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_constructor[1] = {{ wxLua_wxTimePickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTimePickerCtrl(); -static int LUACALL wxLua_wxTimePickerCtrl_constructor(lua_State *L) -{ - // call constructor - wxTimePickerCtrl* returns = new wxTimePickerCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTimePickerCtrl); - - return 1; -} - - - - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTimePickerCtrl_constructor_overload[] = -{ - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxTimePickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxTimePickerCtrl_constructor1 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxTimePickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTimePickerCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTimePickerCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) - -void wxLua_wxTimePickerCtrl_delete_function(void** p) -{ - wxTimePickerCtrl* o = (wxTimePickerCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTimePickerCtrl_methods[] = { -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimePickerCtrl_Create, 1, NULL }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) - { "GetTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimePickerCtrl_GetTime, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimePickerCtrl_GetValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) - { "SetTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimePickerCtrl_SetTime, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxCHECK_VERSION(2,9,4)) - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTimePickerCtrl_SetValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) - { "wxTimePickerCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTimePickerCtrl_constructor_overload, s_wxluafunc_wxLua_wxTimePickerCtrl_constructor_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3))) - - { 0, 0, 0, 0 }, -}; - -int wxTimePickerCtrl_methodCount = sizeof(wxTimePickerCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxTimePickerCtrl && wxUSE_TIMEPICKCTRL && wxCHECK_VERSION(2,9,3)) - - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) -// --------------------------------------------------------------------------- -// Bind class wxFileDirPickerCtrlBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileDirPickerCtrlBase' -int wxluatype_wxFileDirPickerCtrlBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerCtrlBase_GetPath[] = { &wxluatype_wxFileDirPickerCtrlBase, NULL }; -static int LUACALL wxLua_wxFileDirPickerCtrlBase_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerCtrlBase_GetPath[1] = {{ wxLua_wxFileDirPickerCtrlBase_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDirPickerCtrlBase_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxFileDirPickerCtrlBase_GetPath(lua_State *L) -{ - // get this - wxFileDirPickerCtrlBase * self = (wxFileDirPickerCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDirPickerCtrlBase); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue[] = { &wxluatype_wxFileDirPickerCtrlBase, NULL }; -static int LUACALL wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue[1] = {{ wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue }}; -// wxString GetTextCtrlValue() const; -static int LUACALL wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue(lua_State *L) -{ - // get this - wxFileDirPickerCtrlBase * self = (wxFileDirPickerCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDirPickerCtrlBase); - // call GetTextCtrlValue - wxString returns = (self->GetTextCtrlValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerCtrlBase_SetPath[] = { &wxluatype_wxFileDirPickerCtrlBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDirPickerCtrlBase_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerCtrlBase_SetPath[1] = {{ wxLua_wxFileDirPickerCtrlBase_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDirPickerCtrlBase_SetPath }}; -// void SetPath(const wxString &str); -static int LUACALL wxLua_wxFileDirPickerCtrlBase_SetPath(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxFileDirPickerCtrlBase * self = (wxFileDirPickerCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDirPickerCtrlBase); - // call SetPath - self->SetPath(str); - - return 0; -} - - - - -void wxLua_wxFileDirPickerCtrlBase_delete_function(void** p) -{ - wxFileDirPickerCtrlBase* o = (wxFileDirPickerCtrlBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileDirPickerCtrlBase_methods[] = { - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDirPickerCtrlBase_GetPath, 1, NULL }, - { "GetTextCtrlValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDirPickerCtrlBase_GetTextCtrlValue, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDirPickerCtrlBase_SetPath, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileDirPickerCtrlBase_methodCount = sizeof(wxFileDirPickerCtrlBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - - -#if ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) -// --------------------------------------------------------------------------- -// Bind class wxFileDirPickerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileDirPickerEvent' -int wxluatype_wxFileDirPickerEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerEvent_GetPath[] = { &wxluatype_wxFileDirPickerEvent, NULL }; -static int LUACALL wxLua_wxFileDirPickerEvent_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerEvent_GetPath[1] = {{ wxLua_wxFileDirPickerEvent_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileDirPickerEvent_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxFileDirPickerEvent_GetPath(lua_State *L) -{ - // get this - wxFileDirPickerEvent * self = (wxFileDirPickerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDirPickerEvent); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerEvent_SetPath[] = { &wxluatype_wxFileDirPickerEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDirPickerEvent_SetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerEvent_SetPath[1] = {{ wxLua_wxFileDirPickerEvent_SetPath, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFileDirPickerEvent_SetPath }}; -// void SetPath(const wxString &p); -static int LUACALL wxLua_wxFileDirPickerEvent_SetPath(lua_State *L) -{ - // const wxString p - const wxString p = wxlua_getwxStringtype(L, 2); - // get this - wxFileDirPickerEvent * self = (wxFileDirPickerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileDirPickerEvent); - // call SetPath - self->SetPath(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerEvent_delete[] = { &wxluatype_wxFileDirPickerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFileDirPickerEvent_delete }}; - - -#if (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileDirPickerEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileDirPickerEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDirPickerEvent_constructor[1] = {{ wxLua_wxFileDirPickerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxFileDirPickerEvent_constructor }}; -// wxFileDirPickerEvent(wxEventType type, wxObject *generator, int id, const wxString &path); -static int LUACALL wxLua_wxFileDirPickerEvent_constructor(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 4); - // int id - int id = (int)wxlua_getnumbertype(L, 3); - // wxObject generator - wxObject * generator = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxFileDirPickerEvent* returns = new wxFileDirPickerEvent(type, generator, id, path); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileDirPickerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileDirPickerEvent); - - return 1; -} - -#endif // (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxLUA_USE_wxObject) - - - -void wxLua_wxFileDirPickerEvent_delete_function(void** p) -{ - wxFileDirPickerEvent* o = (wxFileDirPickerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileDirPickerEvent_methods[] = { - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDirPickerEvent_GetPath, 1, NULL }, - { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDirPickerEvent_SetPath, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFileDirPickerEvent_delete, 1, NULL }, - -#if (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxLUA_USE_wxObject) - { "wxFileDirPickerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileDirPickerEvent_constructor, 1, NULL }, -#endif // (((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker)) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxFileDirPickerEvent_methodCount = sizeof(wxFileDirPickerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // ((wxLUA_USE_wxDirPickerCtrl || wxLUA_USE_wxFilePickerCtrl ) && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) && (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) -// --------------------------------------------------------------------------- -// Bind class wxDirPickerCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDirPickerCtrl' -int wxluatype_wxDirPickerCtrl = WXLUA_TUNKNOWN; - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirPickerCtrl_Create[] = { &wxluatype_wxDirPickerCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDirPickerCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirPickerCtrl_Create[1] = {{ wxLua_wxDirPickerCtrl_Create, WXLUAMETHOD_METHOD, 3, 10, s_wxluatypeArray_wxLua_wxDirPickerCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxString& path = "", const wxString& message = wxDirSelectorPromptStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDIRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxDirPickerCtrl"); -static int LUACALL wxLua_wxDirPickerCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDirPickerCtrl" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxDirPickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxDIRP_DEFAULT_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDIRP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString message = wxDirSelectorPromptStr - const wxString message = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxDirSelectorPromptStr)); - // const wxString path = "" - const wxString path = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxDirPickerCtrl * self = (wxDirPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirPickerCtrl); - // call Create - bool returns = (self->Create(parent, id, path, message, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirPickerCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDirPickerCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirPickerCtrl_constructor1[1] = {{ wxLua_wxDirPickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxDirPickerCtrl_constructor1 }}; -// wxDirPickerCtrl(wxWindow *parent, wxWindowID id, const wxString& path = "", const wxString& message = wxDirSelectorPromptStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDIRP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxDirPickerCtrl"); -static int LUACALL wxLua_wxDirPickerCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxDirPickerCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxDirPickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxDIRP_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDIRP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString message = wxDirSelectorPromptStr - const wxString message = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxDirSelectorPromptStr)); - // const wxString path = "" - const wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxDirPickerCtrl* returns = new wxDirPickerCtrl(parent, id, path, message, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDirPickerCtrl); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxDirPickerCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirPickerCtrl_constructor[1] = {{ wxLua_wxDirPickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxDirPickerCtrl(); -static int LUACALL wxLua_wxDirPickerCtrl_constructor(lua_State *L) -{ - // call constructor - wxDirPickerCtrl* returns = new wxDirPickerCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDirPickerCtrl); - - return 1; -} - - - - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirPickerCtrl_constructor_overload[] = -{ - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxDirPickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxDirPickerCtrl_constructor1 }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxDirPickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxDirPickerCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDirPickerCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) - -void wxLua_wxDirPickerCtrl_delete_function(void** p) -{ - wxDirPickerCtrl* o = (wxDirPickerCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDirPickerCtrl_methods[] = { -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirPickerCtrl_Create, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) - { "wxDirPickerCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDirPickerCtrl_constructor_overload, s_wxluafunc_wxLua_wxDirPickerCtrl_constructor_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) - - { 0, 0, 0, 0 }, -}; - -int wxDirPickerCtrl_methodCount = sizeof(wxDirPickerCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) -// --------------------------------------------------------------------------- -// Bind class wxFilePickerCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFilePickerCtrl' -int wxluatype_wxFilePickerCtrl = WXLUA_TUNKNOWN; - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFilePickerCtrl_Create[] = { &wxluatype_wxFilePickerCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFilePickerCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFilePickerCtrl_Create[1] = {{ wxLua_wxFilePickerCtrl_Create, WXLUAMETHOD_METHOD, 3, 11, s_wxluatypeArray_wxLua_wxFilePickerCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxString& path = "", const wxString& message = wxFileSelectorPromptStr, const wxString& wildcard = wxFileSelectorDefaultWildcardStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxFLP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxFilePickerCtrl"); -static int LUACALL wxLua_wxFilePickerCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFilePickerCtrl" - const wxString name = (argCount >= 11 ? wxlua_getwxStringtype(L, 11) : wxString(wxT("wxFilePickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 10 ? (const wxValidator *)wxluaT_getuserdatatype(L, 10, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxFLP_DEFAULT_STYLE - long style = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : wxFLP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 8 ? (const wxSize *)wxluaT_getuserdatatype(L, 8, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString wildcard = wxFileSelectorDefaultWildcardStr - const wxString wildcard = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxFileSelectorDefaultWildcardStr)); - // const wxString message = wxFileSelectorPromptStr - const wxString message = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxFileSelectorPromptStr)); - // const wxString path = "" - const wxString path = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxFilePickerCtrl * self = (wxFilePickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFilePickerCtrl); - // call Create - bool returns = (self->Create(parent, id, path, message, wildcard, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFilePickerCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFilePickerCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFilePickerCtrl_constructor1[1] = {{ wxLua_wxFilePickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 10, s_wxluatypeArray_wxLua_wxFilePickerCtrl_constructor1 }}; -// wxFilePickerCtrl(wxWindow *parent, wxWindowID id, const wxString& path = "", const wxString& message = wxFileSelectorPromptStr, const wxString& wildcard = wxFileSelectorDefaultWildcardStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxFLP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxFilePickerCtrl"); -static int LUACALL wxLua_wxFilePickerCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFilePickerCtrl" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxFilePickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxFLP_DEFAULT_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxFLP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString wildcard = wxFileSelectorDefaultWildcardStr - const wxString wildcard = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxFileSelectorDefaultWildcardStr)); - // const wxString message = wxFileSelectorPromptStr - const wxString message = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxFileSelectorPromptStr)); - // const wxString path = "" - const wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFilePickerCtrl* returns = new wxFilePickerCtrl(parent, id, path, message, wildcard, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFilePickerCtrl); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxFilePickerCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFilePickerCtrl_constructor[1] = {{ wxLua_wxFilePickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFilePickerCtrl(); -static int LUACALL wxLua_wxFilePickerCtrl_constructor(lua_State *L) -{ - // call constructor - wxFilePickerCtrl* returns = new wxFilePickerCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFilePickerCtrl); - - return 1; -} - - - - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFilePickerCtrl_constructor_overload[] = -{ - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxFilePickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 10, s_wxluatypeArray_wxLua_wxFilePickerCtrl_constructor1 }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxFilePickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFilePickerCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFilePickerCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) - -void wxLua_wxFilePickerCtrl_delete_function(void** p) -{ - wxFilePickerCtrl* o = (wxFilePickerCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFilePickerCtrl_methods[] = { -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFilePickerCtrl_Create, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) - { "wxFilePickerCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFilePickerCtrl_constructor_overload, s_wxluafunc_wxLua_wxFilePickerCtrl_constructor_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL ))) - - { 0, 0, 0, 0 }, -}; - -int wxFilePickerCtrl_methodCount = sizeof(wxFilePickerCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxDirPickerCtrl && (wxUSE_FILEPICKERCTRL || wxUSE_DIRPICKERCTRL )) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxFontPickerCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontPickerCtrl' -int wxluatype_wxFontPickerCtrl = WXLUA_TUNKNOWN; - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerCtrl_Create[] = { &wxluatype_wxFontPickerCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxFont, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontPickerCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_Create[1] = {{ wxLua_wxFontPickerCtrl_Create, WXLUAMETHOD_METHOD, 3, 9, s_wxluatypeArray_wxLua_wxFontPickerCtrl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxFont& initial = wxNullFont, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxFNTP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxFontPickerCtrl"); -static int LUACALL wxLua_wxFontPickerCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFontPickerCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxFontPickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxFNTP_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxFNTP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxFont initial = wxNullFont - const wxFont * initial = (argCount >= 4 ? (const wxFont *)wxluaT_getuserdatatype(L, 4, wxluatype_wxFont) : &wxNullFont); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxFontPickerCtrl * self = (wxFontPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerCtrl); - // call Create - bool returns = (self->Create(parent, id, *initial, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerCtrl_GetMaxPointSize[] = { &wxluatype_wxFontPickerCtrl, NULL }; -static int LUACALL wxLua_wxFontPickerCtrl_GetMaxPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_GetMaxPointSize[1] = {{ wxLua_wxFontPickerCtrl_GetMaxPointSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontPickerCtrl_GetMaxPointSize }}; -// unsigned int GetMaxPointSize() const; -static int LUACALL wxLua_wxFontPickerCtrl_GetMaxPointSize(lua_State *L) -{ - // get this - wxFontPickerCtrl * self = (wxFontPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerCtrl); - // call GetMaxPointSize - unsigned int returns = (self->GetMaxPointSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerCtrl_GetSelectedFont[] = { &wxluatype_wxFontPickerCtrl, NULL }; -static int LUACALL wxLua_wxFontPickerCtrl_GetSelectedFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_GetSelectedFont[1] = {{ wxLua_wxFontPickerCtrl_GetSelectedFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontPickerCtrl_GetSelectedFont }}; -// wxFont GetSelectedFont() const; -static int LUACALL wxLua_wxFontPickerCtrl_GetSelectedFont(lua_State *L) -{ - // get this - wxFontPickerCtrl * self = (wxFontPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerCtrl); - // call GetSelectedFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetSelectedFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerCtrl_SetMaxPointSize[] = { &wxluatype_wxFontPickerCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFontPickerCtrl_SetMaxPointSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_SetMaxPointSize[1] = {{ wxLua_wxFontPickerCtrl_SetMaxPointSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontPickerCtrl_SetMaxPointSize }}; -// void SetMaxPointSize(unsigned int max); -static int LUACALL wxLua_wxFontPickerCtrl_SetMaxPointSize(lua_State *L) -{ - // unsigned int max - unsigned int max = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxFontPickerCtrl * self = (wxFontPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerCtrl); - // call SetMaxPointSize - self->SetMaxPointSize(max); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerCtrl_SetSelectedFont[] = { &wxluatype_wxFontPickerCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFontPickerCtrl_SetSelectedFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_SetSelectedFont[1] = {{ wxLua_wxFontPickerCtrl_SetSelectedFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontPickerCtrl_SetSelectedFont }}; -// virtual void SetSelectedFont(const wxFont &f); -static int LUACALL wxLua_wxFontPickerCtrl_SetSelectedFont(lua_State *L) -{ - // const wxFont f - const wxFont * f = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFontPickerCtrl * self = (wxFontPickerCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerCtrl); - // call SetSelectedFont - self->SetSelectedFont(*f); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxFont, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFontPickerCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_constructor1[1] = {{ wxLua_wxFontPickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxFontPickerCtrl_constructor1 }}; -// wxFontPickerCtrl(wxWindow *parent, wxWindowID id, const wxFont& initial = wxNullFont, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxFNTP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxFontPickerCtrl"); -static int LUACALL wxLua_wxFontPickerCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxFontPickerCtrl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxFontPickerCtrl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxFNTP_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxFNTP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxFont initial = wxNullFont - const wxFont * initial = (argCount >= 3 ? (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : &wxNullFont); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxFontPickerCtrl* returns = new wxFontPickerCtrl(parent, id, *initial, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontPickerCtrl); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxFontPickerCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_constructor[1] = {{ wxLua_wxFontPickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFontPickerCtrl(); -static int LUACALL wxLua_wxFontPickerCtrl_constructor(lua_State *L) -{ - // call constructor - wxFontPickerCtrl* returns = new wxFontPickerCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontPickerCtrl); - - return 1; -} - - - - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerCtrl_constructor_overload[] = -{ - -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxFontPickerCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 8, s_wxluatypeArray_wxLua_wxFontPickerCtrl_constructor1 }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxFontPickerCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxFontPickerCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFontPickerCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) - -void wxLua_wxFontPickerCtrl_delete_function(void** p) -{ - wxFontPickerCtrl* o = (wxFontPickerCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontPickerCtrl_methods[] = { -#if ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerCtrl_Create, 1, NULL }, -#endif // ((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetMaxPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerCtrl_GetMaxPointSize, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - { "GetSelectedFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerCtrl_GetSelectedFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - - { "SetMaxPointSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerCtrl_SetMaxPointSize, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - { "SetSelectedFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerCtrl_SetSelectedFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - -#if (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) - { "wxFontPickerCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontPickerCtrl_constructor_overload, s_wxluafunc_wxLua_wxFontPickerCtrl_constructor_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxFontPickerCtrl_methodCount = sizeof(wxFontPickerCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) -// --------------------------------------------------------------------------- -// Bind class wxFontPickerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontPickerEvent' -int wxluatype_wxFontPickerEvent = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerEvent_GetFont[] = { &wxluatype_wxFontPickerEvent, NULL }; -static int LUACALL wxLua_wxFontPickerEvent_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerEvent_GetFont[1] = {{ wxLua_wxFontPickerEvent_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontPickerEvent_GetFont }}; -// wxFont GetFont() const; -static int LUACALL wxLua_wxFontPickerEvent_GetFont(lua_State *L) -{ - // get this - wxFontPickerEvent * self = (wxFontPickerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerEvent); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerEvent_SetFont[] = { &wxluatype_wxFontPickerEvent, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFontPickerEvent_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerEvent_SetFont[1] = {{ wxLua_wxFontPickerEvent_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFontPickerEvent_SetFont }}; -// void SetFont(const wxFont &c); -static int LUACALL wxLua_wxFontPickerEvent_SetFont(lua_State *L) -{ - // const wxFont c - const wxFont * c = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxFontPickerEvent * self = (wxFontPickerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontPickerEvent); - // call SetFont - self->SetFont(*c); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerEvent_delete[] = { &wxluatype_wxFontPickerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFontPickerEvent_delete }}; - - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontPickerEvent_constructor[] = { &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFontPickerEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontPickerEvent_constructor[1] = {{ wxLua_wxFontPickerEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxFontPickerEvent_constructor }}; -// wxFontPickerEvent(wxObject *generator, int id, const wxFont &f); -static int LUACALL wxLua_wxFontPickerEvent_constructor(lua_State *L) -{ - // const wxFont f - const wxFont * f = (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // wxObject generator - wxObject * generator = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call constructor - wxFontPickerEvent* returns = new wxFontPickerEvent(generator, id, *f); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFontPickerEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontPickerEvent); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxObject) - - - -void wxLua_wxFontPickerEvent_delete_function(void** p) -{ - wxFontPickerEvent* o = (wxFontPickerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontPickerEvent_methods[] = { -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerEvent_GetFont, 1, NULL }, - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerEvent_SetFont, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFontPickerEvent_delete, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxObject) - { "wxFontPickerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontPickerEvent_constructor, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL)) && (wxLUA_USE_wxFont)) && (wxLUA_USE_wxObject) - - { 0, 0, 0, 0 }, -}; - -int wxFontPickerEvent_methodCount = sizeof(wxFontPickerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxPicker) && (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) - diff --git a/wxLua/modules/wxbind/src/wxcore_print.cpp b/wxLua/modules/wxbind/src/wxcore_print.cpp deleted file mode 100644 index c4f2e91c..00000000 --- a/wxLua/modules/wxbind/src/wxcore_print.cpp +++ /dev/null @@ -1,4089 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_print.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPrintout -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrintout' -int wxluatype_wxPrintout = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetDC[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetDC[1] = {{ wxLua_wxPrintout_GetDC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetDC }}; -// wxDC * GetDC(); -static int LUACALL wxLua_wxPrintout_GetDC(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetDC - wxDC* returns = (wxDC*)self->GetDC(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetPPIPrinter[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetPPIPrinter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetPPIPrinter[1] = {{ wxLua_wxPrintout_GetPPIPrinter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetPPIPrinter }}; -// %override wxLua_wxPrintout_GetPPIPrinter -// void GetPPIPrinter(int *w, int *h) -static int LUACALL wxLua_wxPrintout_GetPPIPrinter(lua_State *L) -{ - int h; - int w; - // get this - wxPrintout *self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetPPIPrinter - self->GetPPIPrinter(&w, &h); - // return the number of parameters - lua_pushinteger(L, w); - lua_pushinteger(L, h); - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetPPIScreen[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetPPIScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetPPIScreen[1] = {{ wxLua_wxPrintout_GetPPIScreen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetPPIScreen }}; -// %override wxLua_wxPrintout_GetPPIScreen -// void GetPPIScreen(int *w, int *h) -static int LUACALL wxLua_wxPrintout_GetPPIScreen(lua_State *L) -{ - int h; - int w; - // get this - wxPrintout *self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetPPIScreen - self->GetPPIScreen(&w, &h); - // return the number of parameters - lua_pushinteger(L, w); - lua_pushinteger(L, h); - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetPageInfo[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetPageInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetPageInfo[1] = {{ wxLua_wxPrintout_GetPageInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetPageInfo }}; -// %override wxLua_wxPrintout_GetPageInfo -// void GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) -static int LUACALL wxLua_wxPrintout_GetPageInfo(lua_State *L) -{ - int pageTo; - int pageFrom; - int maxPage; - int minPage; - // get this - wxPrintout *self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetPageInfo - self->GetPageInfo(&minPage, &maxPage, &pageFrom, &pageTo); - lua_pushinteger(L, minPage); - lua_pushinteger(L, maxPage); - lua_pushinteger(L, pageFrom); - lua_pushinteger(L, pageTo); - // return the number of parameters - return 4; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetPageSizeMM[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetPageSizeMM(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetPageSizeMM[1] = {{ wxLua_wxPrintout_GetPageSizeMM, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetPageSizeMM }}; -// %override wxLua_wxPrintout_GetPageSizeMM -// void GetPageSizeMM(int *w, int *h) -static int LUACALL wxLua_wxPrintout_GetPageSizeMM(lua_State *L) -{ - int h; - int w; - // get this - wxPrintout *self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetPageSizeMM - self->GetPageSizeMM(&w, &h); - // return the number of parameters - lua_pushinteger(L, w); - lua_pushinteger(L, h); - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetPageSizePixels[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetPageSizePixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetPageSizePixels[1] = {{ wxLua_wxPrintout_GetPageSizePixels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetPageSizePixels }}; -// %override wxLua_wxPrintout_GetPageSizePixels -// void GetPageSizePixels(int *w, int *h) -static int LUACALL wxLua_wxPrintout_GetPageSizePixels(lua_State *L) -{ - int h; - int w; - // get this - wxPrintout *self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetPageSizePixels - self->GetPageSizePixels(&w, &h); - // return the number of parameters - lua_pushinteger(L, w); - lua_pushinteger(L, h); - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_GetTitle[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_GetTitle[1] = {{ wxLua_wxPrintout_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_GetTitle }}; -// wxString GetTitle(); -static int LUACALL wxLua_wxPrintout_GetTitle(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_HasPage[] = { &wxluatype_wxPrintout, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintout_HasPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_HasPage[1] = {{ wxLua_wxPrintout_HasPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintout_HasPage }}; -// bool HasPage(int pageNum); -static int LUACALL wxLua_wxPrintout_HasPage(lua_State *L) -{ - // int pageNum - int pageNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call HasPage - bool returns = (self->HasPage(pageNum)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_IsPreview[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_IsPreview(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_IsPreview[1] = {{ wxLua_wxPrintout_IsPreview, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_IsPreview }}; -// bool IsPreview(); -static int LUACALL wxLua_wxPrintout_IsPreview(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call IsPreview - bool returns = (self->IsPreview()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_OnBeginDocument[] = { &wxluatype_wxPrintout, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintout_OnBeginDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_OnBeginDocument[1] = {{ wxLua_wxPrintout_OnBeginDocument, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPrintout_OnBeginDocument }}; -// bool OnBeginDocument(int startPage, int endPage); -static int LUACALL wxLua_wxPrintout_OnBeginDocument(lua_State *L) -{ - // int endPage - int endPage = (int)wxlua_getnumbertype(L, 3); - // int startPage - int startPage = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call OnBeginDocument - bool returns = (self->OnBeginDocument(startPage, endPage)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_OnBeginPrinting[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_OnBeginPrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_OnBeginPrinting[1] = {{ wxLua_wxPrintout_OnBeginPrinting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_OnBeginPrinting }}; -// void OnBeginPrinting(); -static int LUACALL wxLua_wxPrintout_OnBeginPrinting(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call OnBeginPrinting - self->OnBeginPrinting(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_OnEndDocument[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_OnEndDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_OnEndDocument[1] = {{ wxLua_wxPrintout_OnEndDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_OnEndDocument }}; -// void OnEndDocument(); -static int LUACALL wxLua_wxPrintout_OnEndDocument(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call OnEndDocument - self->OnEndDocument(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_OnEndPrinting[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_OnEndPrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_OnEndPrinting[1] = {{ wxLua_wxPrintout_OnEndPrinting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_OnEndPrinting }}; -// void OnEndPrinting(); -static int LUACALL wxLua_wxPrintout_OnEndPrinting(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call OnEndPrinting - self->OnEndPrinting(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_OnPreparePrinting[] = { &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintout_OnPreparePrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_OnPreparePrinting[1] = {{ wxLua_wxPrintout_OnPreparePrinting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintout_OnPreparePrinting }}; -// void OnPreparePrinting(); -static int LUACALL wxLua_wxPrintout_OnPreparePrinting(lua_State *L) -{ - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call OnPreparePrinting - self->OnPreparePrinting(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintout_OnPrintPage[] = { &wxluatype_wxPrintout, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintout_OnPrintPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintout_OnPrintPage[1] = {{ wxLua_wxPrintout_OnPrintPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintout_OnPrintPage }}; -// bool OnPrintPage(int pageNum); -static int LUACALL wxLua_wxPrintout_OnPrintPage(lua_State *L) -{ - // int pageNum - int pageNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintout * self = (wxPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintout); - // call OnPrintPage - bool returns = (self->OnPrintPage(pageNum)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxPrintout_delete_function(void** p) -{ - wxPrintout* o = (wxPrintout*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrintout_methods[] = { -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetDC, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetPPIPrinter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetPPIPrinter, 1, NULL }, - { "GetPPIScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetPPIScreen, 1, NULL }, - { "GetPageInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetPageInfo, 1, NULL }, - { "GetPageSizeMM", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetPageSizeMM, 1, NULL }, - { "GetPageSizePixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetPageSizePixels, 1, NULL }, - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_GetTitle, 1, NULL }, - { "HasPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_HasPage, 1, NULL }, - { "IsPreview", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_IsPreview, 1, NULL }, - { "OnBeginDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_OnBeginDocument, 1, NULL }, - { "OnBeginPrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_OnBeginPrinting, 1, NULL }, - { "OnEndDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_OnEndDocument, 1, NULL }, - { "OnEndPrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_OnEndPrinting, 1, NULL }, - { "OnPreparePrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_OnPreparePrinting, 1, NULL }, - { "OnPrintPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintout_OnPrintPage, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPrintout_methodCount = sizeof(wxPrintout_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// --------------------------------------------------------------------------- -// Bind class wxLuaPrintout -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaPrintout' -int wxluatype_wxLuaPrintout = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaPrintout_GetID[] = { &wxluatype_wxLuaPrintout, NULL }; -static int LUACALL wxLua_wxLuaPrintout_GetID(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_GetID[1] = {{ wxLua_wxLuaPrintout_GetID, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaPrintout_GetID }}; -// wxLuaObject *GetID(); -static int LUACALL wxLua_wxLuaPrintout_GetID(lua_State *L) -{ - // get this - wxLuaPrintout * self = (wxLuaPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaPrintout); - // call GetID - wxLuaObject* returns = (wxLuaObject*)self->GetID(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaObject); - - return 1; -} - -static int LUACALL wxLua_wxLuaPrintout_Get_ms_test_int(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_Get_ms_test_int[1] = {{ wxLua_wxLuaPrintout_Get_ms_test_int, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, g_wxluaargtypeArray_None }}; -// static int ms_test_int; -static int LUACALL wxLua_wxLuaPrintout_Get_ms_test_int(lua_State *L) -{ - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(wxLuaPrintout::ms_test_int) == (double)(wxLuaPrintout::ms_test_int)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, wxLuaPrintout::ms_test_int); -} else -#endif -{ - lua_pushnumber(L, wxLuaPrintout::ms_test_int); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaPrintout_SetPageInfo[] = { &wxluatype_wxLuaPrintout, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaPrintout_SetPageInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_SetPageInfo[1] = {{ wxLua_wxLuaPrintout_SetPageInfo, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxLuaPrintout_SetPageInfo }}; -// void SetPageInfo(int minPage, int maxPage, int pageFrom = 0, int pageTo = 0); -static int LUACALL wxLua_wxLuaPrintout_SetPageInfo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pageTo = 0 - int pageTo = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int pageFrom = 0 - int pageFrom = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int maxPage - int maxPage = (int)wxlua_getnumbertype(L, 3); - // int minPage - int minPage = (int)wxlua_getnumbertype(L, 2); - // get this - wxLuaPrintout * self = (wxLuaPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaPrintout); - // call SetPageInfo - self->SetPageInfo(minPage, maxPage, pageFrom, pageTo); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaPrintout_Set_ms_test_int[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaPrintout_Set_ms_test_int(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_Set_ms_test_int[1] = {{ wxLua_wxLuaPrintout_Set_ms_test_int, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxLuaPrintout_Set_ms_test_int }}; -// static int ms_test_int; -static int LUACALL wxLua_wxLuaPrintout_Set_ms_test_int(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 1); - wxLuaPrintout::ms_test_int = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaPrintout_TestVirtualFunctionBinding[] = { &wxluatype_wxLuaPrintout, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaPrintout_TestVirtualFunctionBinding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_TestVirtualFunctionBinding[1] = {{ wxLua_wxLuaPrintout_TestVirtualFunctionBinding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLuaPrintout_TestVirtualFunctionBinding }}; -// virtual wxString TestVirtualFunctionBinding(const wxString& val); // { return val + wxT("-Base"); } -static int LUACALL wxLua_wxLuaPrintout_TestVirtualFunctionBinding(lua_State *L) -{ - // const wxString val - const wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxLuaPrintout * self = (wxLuaPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaPrintout); - // call TestVirtualFunctionBinding - wxString returns = (self->TestVirtualFunctionBinding(val)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaPrintout_delete[] = { &wxluatype_wxLuaPrintout, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaPrintout_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaPrintout_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxLuaPrintout_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaPrintout_constructor[1] = {{ wxLua_wxLuaPrintout_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxLuaPrintout_constructor }}; -// %override wxLua_wxLuaPrintout_constructor -// wxLuaPrintout(const wxString& title = "Printout", wxLuaObject *pObject = NULL) -static int LUACALL wxLua_wxLuaPrintout_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - - // get number of arguments - int argCount = lua_gettop(L); - // wxLuaObject pObject = NULL - wxLuaObject * pObject = (argCount >= 2 ? (wxLuaObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLuaObject) : NULL); - // const wxString title = "Printout" - const wxString title = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("Printout"))); - // call constructor - wxLuaPrintout *returns = new wxLuaPrintout(wxlState, title, pObject); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaPrintout); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaPrintout); - - return 1; -} - - - - - -void wxLua_wxLuaPrintout_delete_function(void** p) -{ - wxLuaPrintout* o = (wxLuaPrintout*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaPrintout_methods[] = { - { "GetID", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaPrintout_GetID, 1, NULL }, - // %member { "Get_ms_test_int", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaPrintout_Get_ms_test_int, 1, NULL }, - { "SetPageInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaPrintout_SetPageInfo, 1, NULL }, - // %member { "Set_ms_test_int", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaPrintout_Set_ms_test_int, 1, NULL }, - { "TestVirtualFunctionBinding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaPrintout_TestVirtualFunctionBinding, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaPrintout_delete, 1, NULL }, - { "ms_test_int", WXLUAMETHOD_SETPROP|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaPrintout_Set_ms_test_int, 1, NULL }, - { "ms_test_int", WXLUAMETHOD_GETPROP|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaPrintout_Get_ms_test_int, 1, NULL }, - { "wxLuaPrintout", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaPrintout_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaPrintout_methodCount = sizeof(wxLuaPrintout_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// --------------------------------------------------------------------------- -// Bind class wxPrinter -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrinter' -int wxluatype_wxPrinter = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_CreateAbortWindow[] = { &wxluatype_wxPrinter, &wxluatype_wxWindow, &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrinter_CreateAbortWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_CreateAbortWindow[1] = {{ wxLua_wxPrinter_CreateAbortWindow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPrinter_CreateAbortWindow }}; -// virtual void CreateAbortWindow(wxWindow* parent, wxPrintout* printout); -static int LUACALL wxLua_wxPrinter_CreateAbortWindow(lua_State *L) -{ - // wxPrintout printout - wxPrintout * printout = (wxPrintout *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPrintout); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call CreateAbortWindow - self->CreateAbortWindow(parent, printout); - - return 0; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_GetAbort[] = { &wxluatype_wxPrinter, NULL }; -static int LUACALL wxLua_wxPrinter_GetAbort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_GetAbort[1] = {{ wxLua_wxPrinter_GetAbort, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrinter_GetAbort }}; -// bool GetAbort() const; -static int LUACALL wxLua_wxPrinter_GetAbort(lua_State *L) -{ - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call GetAbort - bool returns = (self->GetAbort()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxPrinter_GetLastError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_GetLastError[1] = {{ wxLua_wxPrinter_GetLastError, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxPrinterError GetLastError(); -static int LUACALL wxLua_wxPrinter_GetLastError(lua_State *L) -{ - // call GetLastError - wxPrinterError returns = (wxPrinter::GetLastError()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_GetPrintDialogData[] = { &wxluatype_wxPrinter, NULL }; -static int LUACALL wxLua_wxPrinter_GetPrintDialogData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_GetPrintDialogData[1] = {{ wxLua_wxPrinter_GetPrintDialogData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrinter_GetPrintDialogData }}; -// wxPrintDialogData& GetPrintDialogData(); -static int LUACALL wxLua_wxPrinter_GetPrintDialogData(lua_State *L) -{ - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call GetPrintDialogData - wxPrintDialogData* returns = (wxPrintDialogData*)&self->GetPrintDialogData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialogData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_Print[] = { &wxluatype_wxPrinter, &wxluatype_wxWindow, &wxluatype_wxPrintout, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrinter_Print(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_Print[1] = {{ wxLua_wxPrinter_Print, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPrinter_Print }}; -// bool Print(wxWindow *parent, wxPrintout *printout, bool prompt=true); -static int LUACALL wxLua_wxPrinter_Print(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool prompt = true - bool prompt = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // wxPrintout printout - wxPrintout * printout = (wxPrintout *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPrintout); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call Print - bool returns = (self->Print(parent, printout, prompt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_PrintDialog[] = { &wxluatype_wxPrinter, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPrinter_PrintDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_PrintDialog[1] = {{ wxLua_wxPrinter_PrintDialog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrinter_PrintDialog }}; -// wxDC* PrintDialog(wxWindow *parent); -static int LUACALL wxLua_wxPrinter_PrintDialog(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call PrintDialog - wxDC* returns = (wxDC*)self->PrintDialog(parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_ReportError[] = { &wxluatype_wxPrinter, &wxluatype_wxWindow, &wxluatype_wxPrintout, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPrinter_ReportError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_ReportError[1] = {{ wxLua_wxPrinter_ReportError, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPrinter_ReportError }}; -// void ReportError(wxWindow *parent, wxPrintout *printout, const wxString& message); -static int LUACALL wxLua_wxPrinter_ReportError(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 4); - // wxPrintout printout - wxPrintout * printout = (wxPrintout *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPrintout); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call ReportError - self->ReportError(parent, printout, message); - - return 0; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_Setup[] = { &wxluatype_wxPrinter, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPrinter_Setup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_Setup[1] = {{ wxLua_wxPrinter_Setup, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrinter_Setup }}; -// bool Setup(wxWindow *parent); -static int LUACALL wxLua_wxPrinter_Setup(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPrinter * self = (wxPrinter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrinter); - // call Setup - bool returns = (self->Setup(parent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_delete[] = { &wxluatype_wxPrinter, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPrinter_delete }}; - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinter_constructor[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrinter_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinter_constructor[1] = {{ wxLua_wxPrinter_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxPrinter_constructor }}; -// wxPrinter(wxPrintDialogData* data = NULL); -static int LUACALL wxLua_wxPrinter_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPrintDialogData data = NULL - wxPrintDialogData * data = (argCount >= 1 ? (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData) : NULL); - // call constructor - wxPrinter* returns = new wxPrinter(data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrinter); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrinter); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - - -void wxLua_wxPrinter_delete_function(void** p) -{ - wxPrinter* o = (wxPrinter*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrinter_methods[] = { -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "CreateAbortWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_CreateAbortWindow, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetAbort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_GetAbort, 1, NULL }, - { "GetLastError", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPrinter_GetLastError, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetPrintDialogData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_GetPrintDialogData, 1, NULL }, - { "Print", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_Print, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC) - { "PrintDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_PrintDialog, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "ReportError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_ReportError, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "Setup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrinter_Setup, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPrinter_delete, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPrinter", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrinter_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPrinter_methodCount = sizeof(wxPrinter_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPrintData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrintData' -int wxluatype_wxPrintData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_Copy[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_Copy[1] = {{ wxLua_wxPrintData_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_Copy }}; -// %override wxLua_wxPrintData_Copy -// wxPrintData *Copy() -static int LUACALL wxLua_wxPrintData_Copy(lua_State *L) -{ - wxPrintData *self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - wxPrintData *returns = new wxPrintData; - // Copy data over - *returns = *self; - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - // return the number of parameters - return 1; -} - - - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetBin[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetBin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetBin[1] = {{ wxLua_wxPrintData_GetBin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetBin }}; -// wxPrintBin GetBin() const; -static int LUACALL wxLua_wxPrintData_GetBin(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetBin - wxPrintBin returns = (self->GetBin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetCollate[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetCollate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetCollate[1] = {{ wxLua_wxPrintData_GetCollate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetCollate }}; -// bool GetCollate() const; -static int LUACALL wxLua_wxPrintData_GetCollate(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetCollate - bool returns = (self->GetCollate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetColour[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetColour[1] = {{ wxLua_wxPrintData_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetColour }}; -// bool GetColour() const; -static int LUACALL wxLua_wxPrintData_GetColour(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetColour - bool returns = (self->GetColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetDuplex[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetDuplex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetDuplex[1] = {{ wxLua_wxPrintData_GetDuplex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetDuplex }}; -// wxDuplexMode GetDuplex() const; -static int LUACALL wxLua_wxPrintData_GetDuplex(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetDuplex - wxDuplexMode returns = (self->GetDuplex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetFilename[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetFilename[1] = {{ wxLua_wxPrintData_GetFilename, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetFilename }}; -// wxString GetFilename() const; -static int LUACALL wxLua_wxPrintData_GetFilename(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetFilename - wxString returns = (self->GetFilename()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetMedia[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetMedia(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetMedia[1] = {{ wxLua_wxPrintData_GetMedia, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetMedia }}; -// %wxchkver_2_8 int GetMedia() const; -static int LUACALL wxLua_wxPrintData_GetMedia(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetMedia - int returns = (self->GetMedia()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetNoCopies[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetNoCopies(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetNoCopies[1] = {{ wxLua_wxPrintData_GetNoCopies, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetNoCopies }}; -// int GetNoCopies() const; -static int LUACALL wxLua_wxPrintData_GetNoCopies(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetNoCopies - int returns = (self->GetNoCopies()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetOrientation[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetOrientation[1] = {{ wxLua_wxPrintData_GetOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetOrientation }}; -// int GetOrientation() const; -static int LUACALL wxLua_wxPrintData_GetOrientation(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetOrientation - int returns = (self->GetOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetPaperId[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetPaperId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetPaperId[1] = {{ wxLua_wxPrintData_GetPaperId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetPaperId }}; -// wxPaperSize GetPaperId() const; -static int LUACALL wxLua_wxPrintData_GetPaperId(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetPaperId - wxPaperSize returns = (self->GetPaperId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetPaperSize[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetPaperSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetPaperSize[1] = {{ wxLua_wxPrintData_GetPaperSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetPaperSize }}; -// wxSize GetPaperSize() const; -static int LUACALL wxLua_wxPrintData_GetPaperSize(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetPaperSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPaperSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetPrintMode[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetPrintMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetPrintMode[1] = {{ wxLua_wxPrintData_GetPrintMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetPrintMode }}; -// wxPrintMode GetPrintMode() const; -static int LUACALL wxLua_wxPrintData_GetPrintMode(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetPrintMode - wxPrintMode returns = (self->GetPrintMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetPrinterName[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetPrinterName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetPrinterName[1] = {{ wxLua_wxPrintData_GetPrinterName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetPrinterName }}; -// wxString GetPrinterName() const; -static int LUACALL wxLua_wxPrintData_GetPrinterName(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetPrinterName - wxString returns = (self->GetPrinterName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_GetQuality[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_GetQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_GetQuality[1] = {{ wxLua_wxPrintData_GetQuality, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_GetQuality }}; -// wxPrintQuality GetQuality() const; -static int LUACALL wxLua_wxPrintData_GetQuality(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call GetQuality - wxPrintQuality returns = (self->GetQuality()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_IsOrientationReversed[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_IsOrientationReversed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_IsOrientationReversed[1] = {{ wxLua_wxPrintData_IsOrientationReversed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_IsOrientationReversed }}; -// %wxchkver_2_8 bool IsOrientationReversed() const; -static int LUACALL wxLua_wxPrintData_IsOrientationReversed(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call IsOrientationReversed - bool returns = (self->IsOrientationReversed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_Ok[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_Ok[1] = {{ wxLua_wxPrintData_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxPrintData_Ok(lua_State *L) -{ - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetBin[] = { &wxluatype_wxPrintData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPrintData_SetBin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetBin[1] = {{ wxLua_wxPrintData_SetBin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetBin }}; -// void SetBin(wxPrintBin bin); -static int LUACALL wxLua_wxPrintData_SetBin(lua_State *L) -{ - // wxPrintBin bin - wxPrintBin bin = (wxPrintBin)wxlua_getenumtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetBin - self->SetBin(bin); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetCollate[] = { &wxluatype_wxPrintData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintData_SetCollate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetCollate[1] = {{ wxLua_wxPrintData_SetCollate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetCollate }}; -// void SetCollate(bool flag); -static int LUACALL wxLua_wxPrintData_SetCollate(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetCollate - self->SetCollate(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetColour[] = { &wxluatype_wxPrintData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintData_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetColour[1] = {{ wxLua_wxPrintData_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetColour }}; -// void SetColour(bool colour); -static int LUACALL wxLua_wxPrintData_SetColour(lua_State *L) -{ - // bool colour - bool colour = wxlua_getbooleantype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetColour - self->SetColour(colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetDuplex[] = { &wxluatype_wxPrintData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPrintData_SetDuplex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetDuplex[1] = {{ wxLua_wxPrintData_SetDuplex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetDuplex }}; -// void SetDuplex(wxDuplexMode duplex); -static int LUACALL wxLua_wxPrintData_SetDuplex(lua_State *L) -{ - // wxDuplexMode duplex - wxDuplexMode duplex = (wxDuplexMode)wxlua_getenumtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetDuplex - self->SetDuplex(duplex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetFilename[] = { &wxluatype_wxPrintData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPrintData_SetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetFilename[1] = {{ wxLua_wxPrintData_SetFilename, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetFilename }}; -// void SetFilename(const wxString &filename); -static int LUACALL wxLua_wxPrintData_SetFilename(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetFilename - self->SetFilename(filename); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetMedia[] = { &wxluatype_wxPrintData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintData_SetMedia(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetMedia[1] = {{ wxLua_wxPrintData_SetMedia, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetMedia }}; -// %wxchkver_2_8 void SetMedia(int media); -static int LUACALL wxLua_wxPrintData_SetMedia(lua_State *L) -{ - // int media - int media = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetMedia - self->SetMedia(media); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetNoCopies[] = { &wxluatype_wxPrintData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintData_SetNoCopies(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetNoCopies[1] = {{ wxLua_wxPrintData_SetNoCopies, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetNoCopies }}; -// void SetNoCopies(int v); -static int LUACALL wxLua_wxPrintData_SetNoCopies(lua_State *L) -{ - // int v - int v = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetNoCopies - self->SetNoCopies(v); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetOrientation1[] = { &wxluatype_wxPrintData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPrintData_SetOrientation1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetOrientation1[1] = {{ wxLua_wxPrintData_SetOrientation1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetOrientation1 }}; -// %wxchkver_3_0 void SetOrientation(wxPrintOrientation orient); -static int LUACALL wxLua_wxPrintData_SetOrientation1(lua_State *L) -{ - // wxPrintOrientation orient - wxPrintOrientation orient = (wxPrintOrientation)wxlua_getenumtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetOrientation - self->SetOrientation(orient); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetOrientation[] = { &wxluatype_wxPrintData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintData_SetOrientation(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetOrientation[1] = {{ wxLua_wxPrintData_SetOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetOrientation }}; -// !%wxchkver_3_0 void SetOrientation(int orient); -static int LUACALL wxLua_wxPrintData_SetOrientation(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetOrientation - self->SetOrientation(orient); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetOrientationReversed[] = { &wxluatype_wxPrintData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintData_SetOrientationReversed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetOrientationReversed[1] = {{ wxLua_wxPrintData_SetOrientationReversed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetOrientationReversed }}; -// %wxchkver_2_8 void SetOrientationReversed(bool reversed); -static int LUACALL wxLua_wxPrintData_SetOrientationReversed(lua_State *L) -{ - // bool reversed - bool reversed = wxlua_getbooleantype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetOrientationReversed - self->SetOrientationReversed(reversed); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetPaperId[] = { &wxluatype_wxPrintData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPrintData_SetPaperId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetPaperId[1] = {{ wxLua_wxPrintData_SetPaperId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetPaperId }}; -// void SetPaperId(wxPaperSize sizeId); -static int LUACALL wxLua_wxPrintData_SetPaperId(lua_State *L) -{ - // wxPaperSize sizeId - wxPaperSize sizeId = (wxPaperSize)wxlua_getenumtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetPaperId - self->SetPaperId(sizeId); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetPaperSize[] = { &wxluatype_wxPrintData, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPrintData_SetPaperSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetPaperSize[1] = {{ wxLua_wxPrintData_SetPaperSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetPaperSize }}; -// void SetPaperSize(const wxSize& sz); -static int LUACALL wxLua_wxPrintData_SetPaperSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetPaperSize - self->SetPaperSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetPrintMode[] = { &wxluatype_wxPrintData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPrintData_SetPrintMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetPrintMode[1] = {{ wxLua_wxPrintData_SetPrintMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetPrintMode }}; -// void SetPrintMode(wxPrintMode printMode); -static int LUACALL wxLua_wxPrintData_SetPrintMode(lua_State *L) -{ - // wxPrintMode printMode - wxPrintMode printMode = (wxPrintMode)wxlua_getenumtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetPrintMode - self->SetPrintMode(printMode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetPrinterName[] = { &wxluatype_wxPrintData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPrintData_SetPrinterName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetPrinterName[1] = {{ wxLua_wxPrintData_SetPrinterName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetPrinterName }}; -// void SetPrinterName(const wxString& name); -static int LUACALL wxLua_wxPrintData_SetPrinterName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetPrinterName - self->SetPrinterName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_SetQuality[] = { &wxluatype_wxPrintData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPrintData_SetQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetQuality[1] = {{ wxLua_wxPrintData_SetQuality, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetQuality }}; -// void SetQuality(wxPrintQuality quality); -static int LUACALL wxLua_wxPrintData_SetQuality(lua_State *L) -{ - // wxPrintQuality quality - wxPrintQuality quality = (wxPrintQuality)wxlua_getenumtype(L, 2); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call SetQuality - self->SetQuality(quality); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_delete[] = { &wxluatype_wxPrintData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_op_set[] = { &wxluatype_wxPrintData, &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_op_set[1] = {{ wxLua_wxPrintData_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_op_set }}; -// void operator=(const wxPrintData& data); -static int LUACALL wxLua_wxPrintData_op_set(lua_State *L) -{ - // const wxPrintData data - const wxPrintData * data = (const wxPrintData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintData); - // get this - wxPrintData * self = (wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call op_set - (*self)=(*data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintData_constructor1[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintData_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_constructor1[1] = {{ wxLua_wxPrintData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_constructor1 }}; -// wxPrintData(const wxPrintData& data); -static int LUACALL wxLua_wxPrintData_constructor1(lua_State *L) -{ - // const wxPrintData data - const wxPrintData * data = (const wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call constructor - wxPrintData* returns = new wxPrintData(*data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - -static int LUACALL wxLua_wxPrintData_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_constructor[1] = {{ wxLua_wxPrintData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPrintData(); -static int LUACALL wxLua_wxPrintData_constructor(lua_State *L) -{ - // call constructor - wxPrintData* returns = new wxPrintData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_SetOrientation_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxLua_wxPrintData_SetOrientation1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetOrientation1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxLua_wxPrintData_SetOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintData_SetOrientation }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -}; -static int s_wxluafunc_wxLua_wxPrintData_SetOrientation_overload_count = sizeof(s_wxluafunc_wxLua_wxPrintData_SetOrientation_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintData_constructor_overload[] = -{ - { wxLua_wxPrintData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrintData_constructor1 }, - { wxLua_wxPrintData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPrintData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPrintData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -void wxLua_wxPrintData_delete_function(void** p) -{ - wxPrintData* o = (wxPrintData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrintData_methods[] = { - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_Copy, 1, NULL }, - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetBin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetBin, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetCollate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetCollate, 1, NULL }, - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetColour, 1, NULL }, - { "GetDuplex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetDuplex, 1, NULL }, - { "GetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetFilename, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetMedia", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetMedia, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetNoCopies", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetNoCopies, 1, NULL }, - { "GetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetOrientation, 1, NULL }, - { "GetPaperId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetPaperId, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetPaperSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetPaperSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetPrintMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetPrintMode, 1, NULL }, - { "GetPrinterName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetPrinterName, 1, NULL }, - { "GetQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_GetQuality, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "IsOrientationReversed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_IsOrientationReversed, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_Ok, 1, NULL }, - -#if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetBin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetBin, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetCollate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetCollate, 1, NULL }, - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetColour, 1, NULL }, - { "SetDuplex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetDuplex, 1, NULL }, - { "SetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetFilename, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetMedia", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetMedia, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetNoCopies", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetNoCopies, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) - { "SetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetOrientation_overload, s_wxluafunc_wxLua_wxPrintData_SetOrientation_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetOrientationReversed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetOrientationReversed, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetPaperId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetPaperId, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetPaperSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetPaperSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetPrintMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetPrintMode, 1, NULL }, - { "SetPrinterName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetPrinterName, 1, NULL }, - { "SetQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_SetQuality, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPrintData_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintData_op_set, 1, NULL }, - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPrintData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrintData_constructor_overload, s_wxluafunc_wxLua_wxPrintData_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPrintData_methodCount = sizeof(wxPrintData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPageSetupDialogData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPageSetupDialogData' -int wxluatype_wxPageSetupDialogData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize[1] = {{ wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize }}; -// void CalculateIdFromPaperSize(); -static int LUACALL wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call CalculateIdFromPaperSize - self->CalculateIdFromPaperSize(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId[1] = {{ wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId }}; -// void CalculatePaperSizeFromId(); -static int LUACALL wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call CalculatePaperSizeFromId - self->CalculatePaperSizeFromId(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_Copy[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_Copy[1] = {{ wxLua_wxPageSetupDialogData_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_Copy }}; -// %override wxLua_wxPageSetupDialogData_Copy -// wxPrintData *Copy() -static int LUACALL wxLua_wxPageSetupDialogData_Copy(lua_State *L) -{ - wxPageSetupDialogData *self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - wxPageSetupDialogData *returns = new wxPageSetupDialogData; - // Copy data over - *returns = *self; - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPageSetupDialogData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialogData); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnableHelp[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_EnableHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_EnableHelp[1] = {{ wxLua_wxPageSetupDialogData_EnableHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnableHelp }}; -// void EnableHelp(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_EnableHelp(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call EnableHelp - self->EnableHelp(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnableMargins[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_EnableMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_EnableMargins[1] = {{ wxLua_wxPageSetupDialogData_EnableMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnableMargins }}; -// void EnableMargins(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_EnableMargins(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call EnableMargins - self->EnableMargins(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnableOrientation[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_EnableOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_EnableOrientation[1] = {{ wxLua_wxPageSetupDialogData_EnableOrientation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnableOrientation }}; -// void EnableOrientation(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_EnableOrientation(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call EnableOrientation - self->EnableOrientation(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnablePaper[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_EnablePaper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_EnablePaper[1] = {{ wxLua_wxPageSetupDialogData_EnablePaper, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnablePaper }}; -// void EnablePaper(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_EnablePaper(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call EnablePaper - self->EnablePaper(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnablePrinter[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_EnablePrinter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_EnablePrinter[1] = {{ wxLua_wxPageSetupDialogData_EnablePrinter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_EnablePrinter }}; -// void EnablePrinter(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_EnablePrinter(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call EnablePrinter - self->EnablePrinter(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetDefaultInfo[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetDefaultInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetDefaultInfo[1] = {{ wxLua_wxPageSetupDialogData_GetDefaultInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetDefaultInfo }}; -// bool GetDefaultInfo() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetDefaultInfo(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetDefaultInfo - bool returns = (self->GetDefaultInfo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetDefaultMinMargins[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetDefaultMinMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetDefaultMinMargins[1] = {{ wxLua_wxPageSetupDialogData_GetDefaultMinMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetDefaultMinMargins }}; -// bool GetDefaultMinMargins() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetDefaultMinMargins(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetDefaultMinMargins - bool returns = (self->GetDefaultMinMargins()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnableHelp[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnableHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnableHelp[1] = {{ wxLua_wxPageSetupDialogData_GetEnableHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnableHelp }}; -// bool GetEnableHelp() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnableHelp(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetEnableHelp - bool returns = (self->GetEnableHelp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnableMargins[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnableMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnableMargins[1] = {{ wxLua_wxPageSetupDialogData_GetEnableMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnableMargins }}; -// bool GetEnableMargins() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnableMargins(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetEnableMargins - bool returns = (self->GetEnableMargins()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnableOrientation[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnableOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnableOrientation[1] = {{ wxLua_wxPageSetupDialogData_GetEnableOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnableOrientation }}; -// bool GetEnableOrientation() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnableOrientation(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetEnableOrientation - bool returns = (self->GetEnableOrientation()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnablePaper[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnablePaper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnablePaper[1] = {{ wxLua_wxPageSetupDialogData_GetEnablePaper, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnablePaper }}; -// bool GetEnablePaper() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnablePaper(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetEnablePaper - bool returns = (self->GetEnablePaper()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnablePrinter[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnablePrinter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnablePrinter[1] = {{ wxLua_wxPageSetupDialogData_GetEnablePrinter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetEnablePrinter }}; -// bool GetEnablePrinter() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetEnablePrinter(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetEnablePrinter - bool returns = (self->GetEnablePrinter()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMarginBottomRight[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetMarginBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetMarginBottomRight[1] = {{ wxLua_wxPageSetupDialogData_GetMarginBottomRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMarginBottomRight }}; -// wxPoint GetMarginBottomRight() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetMarginBottomRight(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetMarginBottomRight - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetMarginBottomRight()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMarginTopLeft[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetMarginTopLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetMarginTopLeft[1] = {{ wxLua_wxPageSetupDialogData_GetMarginTopLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMarginTopLeft }}; -// wxPoint GetMarginTopLeft() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetMarginTopLeft(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetMarginTopLeft - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetMarginTopLeft()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMinMarginBottomRight[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetMinMarginBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetMinMarginBottomRight[1] = {{ wxLua_wxPageSetupDialogData_GetMinMarginBottomRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMinMarginBottomRight }}; -// wxPoint GetMinMarginBottomRight() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetMinMarginBottomRight(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetMinMarginBottomRight - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetMinMarginBottomRight()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMinMarginTopLeft[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetMinMarginTopLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetMinMarginTopLeft[1] = {{ wxLua_wxPageSetupDialogData_GetMinMarginTopLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetMinMarginTopLeft }}; -// wxPoint GetMinMarginTopLeft() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetMinMarginTopLeft(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetMinMarginTopLeft - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetMinMarginTopLeft()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetPaperId[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetPaperId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetPaperId[1] = {{ wxLua_wxPageSetupDialogData_GetPaperId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetPaperId }}; -// wxPaperSize GetPaperId() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetPaperId(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetPaperId - wxPaperSize returns = (self->GetPaperId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetPaperSize[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetPaperSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetPaperSize[1] = {{ wxLua_wxPageSetupDialogData_GetPaperSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetPaperSize }}; -// wxSize GetPaperSize() const; -static int LUACALL wxLua_wxPageSetupDialogData_GetPaperSize(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetPaperSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPaperSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetPrintData[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_GetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_GetPrintData[1] = {{ wxLua_wxPageSetupDialogData_GetPrintData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_GetPrintData }}; -// wxPrintData& GetPrintData(); -static int LUACALL wxLua_wxPageSetupDialogData_GetPrintData(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call GetPrintData - wxPrintData* returns = (wxPrintData*)&self->GetPrintData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_Ok[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_Ok[1] = {{ wxLua_wxPageSetupDialogData_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxPageSetupDialogData_Ok(lua_State *L) -{ - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetDefaultInfo[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetDefaultInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetDefaultInfo[1] = {{ wxLua_wxPageSetupDialogData_SetDefaultInfo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetDefaultInfo }}; -// void SetDefaultInfo(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_SetDefaultInfo(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetDefaultInfo - self->SetDefaultInfo(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetDefaultMinMargins[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetDefaultMinMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetDefaultMinMargins[1] = {{ wxLua_wxPageSetupDialogData_SetDefaultMinMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetDefaultMinMargins }}; -// void SetDefaultMinMargins(bool flag); -static int LUACALL wxLua_wxPageSetupDialogData_SetDefaultMinMargins(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetDefaultMinMargins - self->SetDefaultMinMargins(flag); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMarginBottomRight[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetMarginBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetMarginBottomRight[1] = {{ wxLua_wxPageSetupDialogData_SetMarginBottomRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMarginBottomRight }}; -// void SetMarginBottomRight(const wxPoint& pt); -static int LUACALL wxLua_wxPageSetupDialogData_SetMarginBottomRight(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetMarginBottomRight - self->SetMarginBottomRight(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMarginTopLeft[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetMarginTopLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetMarginTopLeft[1] = {{ wxLua_wxPageSetupDialogData_SetMarginTopLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMarginTopLeft }}; -// void SetMarginTopLeft(const wxPoint& pt); -static int LUACALL wxLua_wxPageSetupDialogData_SetMarginTopLeft(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetMarginTopLeft - self->SetMarginTopLeft(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMinMarginBottomRight[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetMinMarginBottomRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetMinMarginBottomRight[1] = {{ wxLua_wxPageSetupDialogData_SetMinMarginBottomRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMinMarginBottomRight }}; -// void SetMinMarginBottomRight(const wxPoint& pt); -static int LUACALL wxLua_wxPageSetupDialogData_SetMinMarginBottomRight(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetMinMarginBottomRight - self->SetMinMarginBottomRight(*pt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMinMarginTopLeft[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetMinMarginTopLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetMinMarginTopLeft[1] = {{ wxLua_wxPageSetupDialogData_SetMinMarginTopLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetMinMarginTopLeft }}; -// void SetMinMarginTopLeft(const wxPoint& pt); -static int LUACALL wxLua_wxPageSetupDialogData_SetMinMarginTopLeft(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetMinMarginTopLeft - self->SetMinMarginTopLeft(*pt); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperId[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetPaperId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperId[1] = {{ wxLua_wxPageSetupDialogData_SetPaperId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperId }}; -// void SetPaperId(wxPaperSize id); -static int LUACALL wxLua_wxPageSetupDialogData_SetPaperId(lua_State *L) -{ - // wxPaperSize id - wxPaperSize id = (wxPaperSize)wxlua_getenumtype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetPaperId - self->SetPaperId(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperSize1[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetPaperSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize1[1] = {{ wxLua_wxPageSetupDialogData_SetPaperSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperSize1 }}; -// void SetPaperSize(wxPaperSize id); -static int LUACALL wxLua_wxPageSetupDialogData_SetPaperSize1(lua_State *L) -{ - // wxPaperSize id - wxPaperSize id = (wxPaperSize)wxlua_getenumtype(L, 2); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetPaperSize - self->SetPaperSize(id); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperSize[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetPaperSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize[1] = {{ wxLua_wxPageSetupDialogData_SetPaperSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperSize }}; -// void SetPaperSize(const wxSize& sz); -static int LUACALL wxLua_wxPageSetupDialogData_SetPaperSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetPaperSize - self->SetPaperSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPrintData[] = { &wxluatype_wxPageSetupDialogData, &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_SetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetPrintData[1] = {{ wxLua_wxPageSetupDialogData_SetPrintData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPrintData }}; -// void SetPrintData(const wxPrintData& printData); -static int LUACALL wxLua_wxPageSetupDialogData_SetPrintData(lua_State *L) -{ - // const wxPrintData printData - const wxPrintData * printData = (const wxPrintData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintData); - // get this - wxPageSetupDialogData * self = (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call SetPrintData - self->SetPrintData(*printData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_delete[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialogData_constructor1[] = { &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialogData_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_constructor1[1] = {{ wxLua_wxPageSetupDialogData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_constructor1 }}; -// wxPageSetupDialogData(const wxPageSetupDialogData& data); -static int LUACALL wxLua_wxPageSetupDialogData_constructor1(lua_State *L) -{ - // const wxPageSetupDialogData data - const wxPageSetupDialogData * data = (const wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialogData); - // call constructor - wxPageSetupDialogData* returns = new wxPageSetupDialogData(*data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPageSetupDialogData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialogData); - - return 1; -} - -static int LUACALL wxLua_wxPageSetupDialogData_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_constructor[1] = {{ wxLua_wxPageSetupDialogData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPageSetupDialogData(); -static int LUACALL wxLua_wxPageSetupDialogData_constructor(lua_State *L) -{ - // call constructor - wxPageSetupDialogData* returns = new wxPageSetupDialogData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPageSetupDialogData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialogData); - - return 1; -} - - - - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize_overload[] = -{ - { wxLua_wxPageSetupDialogData_SetPaperSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperSize1 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { wxLua_wxPageSetupDialogData_SetPaperSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPageSetupDialogData_SetPaperSize }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -}; -static int s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize_overload_count = sizeof(s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialogData_constructor_overload[] = -{ - { wxLua_wxPageSetupDialogData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialogData_constructor1 }, - { wxLua_wxPageSetupDialogData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPageSetupDialogData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPageSetupDialogData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -void wxLua_wxPageSetupDialogData_delete_function(void** p) -{ - wxPageSetupDialogData* o = (wxPageSetupDialogData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPageSetupDialogData_methods[] = { - { "CalculateIdFromPaperSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_CalculateIdFromPaperSize, 1, NULL }, - { "CalculatePaperSizeFromId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_CalculatePaperSizeFromId, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_Copy, 1, NULL }, - { "EnableHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_EnableHelp, 1, NULL }, - { "EnableMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_EnableMargins, 1, NULL }, - { "EnableOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_EnableOrientation, 1, NULL }, - { "EnablePaper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_EnablePaper, 1, NULL }, - { "EnablePrinter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_EnablePrinter, 1, NULL }, - { "GetDefaultInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetDefaultInfo, 1, NULL }, - { "GetDefaultMinMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetDefaultMinMargins, 1, NULL }, - { "GetEnableHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnableHelp, 1, NULL }, - { "GetEnableMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnableMargins, 1, NULL }, - { "GetEnableOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnableOrientation, 1, NULL }, - { "GetEnablePaper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnablePaper, 1, NULL }, - { "GetEnablePrinter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetEnablePrinter, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetMarginBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetMarginBottomRight, 1, NULL }, - { "GetMarginTopLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetMarginTopLeft, 1, NULL }, - { "GetMinMarginBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetMinMarginBottomRight, 1, NULL }, - { "GetMinMarginTopLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetMinMarginTopLeft, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetPaperId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetPaperId, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetPaperSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetPaperSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_GetPrintData, 1, NULL }, - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_Ok, 1, NULL }, - { "SetDefaultInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetDefaultInfo, 1, NULL }, - { "SetDefaultMinMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetDefaultMinMargins, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetMarginBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetMarginBottomRight, 1, NULL }, - { "SetMarginTopLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetMarginTopLeft, 1, NULL }, - { "SetMinMarginBottomRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetMinMarginBottomRight, 1, NULL }, - { "SetMinMarginTopLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetMinMarginTopLeft, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetPaperId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperId, 1, NULL }, - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) - { "SetPaperSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize_overload, s_wxluafunc_wxLua_wxPageSetupDialogData_SetPaperSize_overload_count, 0 }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) - - { "SetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialogData_SetPrintData, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPageSetupDialogData_delete, 1, NULL }, - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPageSetupDialogData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPageSetupDialogData_constructor_overload, s_wxluafunc_wxLua_wxPageSetupDialogData_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPageSetupDialogData_methodCount = sizeof(wxPageSetupDialogData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPageSetupDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPageSetupDialog' -int wxluatype_wxPageSetupDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialog_GetPageSetupDialogData[] = { &wxluatype_wxPageSetupDialog, NULL }; -static int LUACALL wxLua_wxPageSetupDialog_GetPageSetupDialogData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialog_GetPageSetupDialogData[1] = {{ wxLua_wxPageSetupDialog_GetPageSetupDialogData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialog_GetPageSetupDialogData }}; -// wxPageSetupDialogData& GetPageSetupDialogData(); -static int LUACALL wxLua_wxPageSetupDialog_GetPageSetupDialogData(lua_State *L) -{ - // get this - wxPageSetupDialog * self = (wxPageSetupDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialog); - // call GetPageSetupDialogData - wxPageSetupDialogData* returns = (wxPageSetupDialogData*)&self->GetPageSetupDialogData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialogData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialog_ShowModal[] = { &wxluatype_wxPageSetupDialog, NULL }; -static int LUACALL wxLua_wxPageSetupDialog_ShowModal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialog_ShowModal[1] = {{ wxLua_wxPageSetupDialog_ShowModal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialog_ShowModal }}; -// int ShowModal(); -static int LUACALL wxLua_wxPageSetupDialog_ShowModal(lua_State *L) -{ - // get this - wxPageSetupDialog * self = (wxPageSetupDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPageSetupDialog); - // call ShowModal - int returns = (self->ShowModal()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialog_delete[] = { &wxluatype_wxPageSetupDialog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPageSetupDialog_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPageSetupDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxPageSetupDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPageSetupDialog_constructor[1] = {{ wxLua_wxPageSetupDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPageSetupDialog_constructor }}; -// wxPageSetupDialog(wxWindow* parent, wxPageSetupDialogData* data = NULL); -static int LUACALL wxLua_wxPageSetupDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPageSetupDialogData data = NULL - wxPageSetupDialogData * data = (argCount >= 2 ? (wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPageSetupDialogData) : NULL); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPageSetupDialog* returns = new wxPageSetupDialog(parent, data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPageSetupDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialog); - - return 1; -} - - - - -void wxLua_wxPageSetupDialog_delete_function(void** p) -{ - wxPageSetupDialog* o = (wxPageSetupDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPageSetupDialog_methods[] = { - { "GetPageSetupDialogData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialog_GetPageSetupDialogData, 1, NULL }, - { "ShowModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPageSetupDialog_ShowModal, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPageSetupDialog_delete, 1, NULL }, - { "wxPageSetupDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPageSetupDialog_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPageSetupDialog_methodCount = sizeof(wxPageSetupDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPrintDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrintDialog' -int wxluatype_wxPrintDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_GetPrintDC[] = { &wxluatype_wxPrintDialog, NULL }; -static int LUACALL wxLua_wxPrintDialog_GetPrintDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_GetPrintDC[1] = {{ wxLua_wxPrintDialog_GetPrintDC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialog_GetPrintDC }}; -// wxDC* GetPrintDC(); -static int LUACALL wxLua_wxPrintDialog_GetPrintDC(lua_State *L) -{ - // get this - wxPrintDialog * self = (wxPrintDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialog); - // call GetPrintDC - wxDC* returns = (wxDC*)self->GetPrintDC(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_GetPrintData[] = { &wxluatype_wxPrintDialog, NULL }; -static int LUACALL wxLua_wxPrintDialog_GetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_GetPrintData[1] = {{ wxLua_wxPrintDialog_GetPrintData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialog_GetPrintData }}; -// wxPrintData& GetPrintData(); -static int LUACALL wxLua_wxPrintDialog_GetPrintData(lua_State *L) -{ - // get this - wxPrintDialog * self = (wxPrintDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialog); - // call GetPrintData - wxPrintData* returns = (wxPrintData*)&self->GetPrintData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_GetPrintDialogData[] = { &wxluatype_wxPrintDialog, NULL }; -static int LUACALL wxLua_wxPrintDialog_GetPrintDialogData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_GetPrintDialogData[1] = {{ wxLua_wxPrintDialog_GetPrintDialogData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialog_GetPrintDialogData }}; -// wxPrintDialogData& GetPrintDialogData(); -static int LUACALL wxLua_wxPrintDialog_GetPrintDialogData(lua_State *L) -{ - // get this - wxPrintDialog * self = (wxPrintDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialog); - // call GetPrintDialogData - wxPrintDialogData* returns = (wxPrintDialogData*)&self->GetPrintDialogData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialogData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_ShowModal[] = { &wxluatype_wxPrintDialog, NULL }; -static int LUACALL wxLua_wxPrintDialog_ShowModal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_ShowModal[1] = {{ wxLua_wxPrintDialog_ShowModal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialog_ShowModal }}; -// int ShowModal(); -static int LUACALL wxLua_wxPrintDialog_ShowModal(lua_State *L) -{ - // get this - wxPrintDialog * self = (wxPrintDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialog); - // call ShowModal - int returns = (self->ShowModal()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_delete[] = { &wxluatype_wxPrintDialog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialog_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialog_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialog_constructor[1] = {{ wxLua_wxPrintDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPrintDialog_constructor }}; -// wxPrintDialog(wxWindow* parent, wxPrintDialogData* data = NULL); -static int LUACALL wxLua_wxPrintDialog_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPrintDialogData data = NULL - wxPrintDialogData * data = (argCount >= 2 ? (wxPrintDialogData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintDialogData) : NULL); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPrintDialog* returns = new wxPrintDialog(parent, data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialog); - - return 1; -} - - - - -void wxLua_wxPrintDialog_delete_function(void** p) -{ - wxPrintDialog* o = (wxPrintDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrintDialog_methods[] = { -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetPrintDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialog_GetPrintDC, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialog_GetPrintData, 1, NULL }, - { "GetPrintDialogData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialog_GetPrintDialogData, 1, NULL }, - { "ShowModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialog_ShowModal, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPrintDialog_delete, 1, NULL }, - { "wxPrintDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrintDialog_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPrintDialog_methodCount = sizeof(wxPrintDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPrintDialogData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrintDialogData' -int wxluatype_wxPrintDialogData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_EnableHelp[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_EnableHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_EnableHelp[1] = {{ wxLua_wxPrintDialogData_EnableHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_EnableHelp }}; -// void EnableHelp(bool flag); -static int LUACALL wxLua_wxPrintDialogData_EnableHelp(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call EnableHelp - self->EnableHelp(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_EnablePageNumbers[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_EnablePageNumbers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_EnablePageNumbers[1] = {{ wxLua_wxPrintDialogData_EnablePageNumbers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_EnablePageNumbers }}; -// void EnablePageNumbers(bool flag); -static int LUACALL wxLua_wxPrintDialogData_EnablePageNumbers(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call EnablePageNumbers - self->EnablePageNumbers(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_EnablePrintToFile[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_EnablePrintToFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_EnablePrintToFile[1] = {{ wxLua_wxPrintDialogData_EnablePrintToFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_EnablePrintToFile }}; -// void EnablePrintToFile(bool flag); -static int LUACALL wxLua_wxPrintDialogData_EnablePrintToFile(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call EnablePrintToFile - self->EnablePrintToFile(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_EnableSelection[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_EnableSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_EnableSelection[1] = {{ wxLua_wxPrintDialogData_EnableSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_EnableSelection }}; -// void EnableSelection(bool flag); -static int LUACALL wxLua_wxPrintDialogData_EnableSelection(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call EnableSelection - self->EnableSelection(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetAllPages[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetAllPages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetAllPages[1] = {{ wxLua_wxPrintDialogData_GetAllPages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetAllPages }}; -// bool GetAllPages() const; -static int LUACALL wxLua_wxPrintDialogData_GetAllPages(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetAllPages - bool returns = (self->GetAllPages()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetCollate[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetCollate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetCollate[1] = {{ wxLua_wxPrintDialogData_GetCollate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetCollate }}; -// bool GetCollate() const; -static int LUACALL wxLua_wxPrintDialogData_GetCollate(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetCollate - bool returns = (self->GetCollate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnableHelp[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetEnableHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetEnableHelp[1] = {{ wxLua_wxPrintDialogData_GetEnableHelp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnableHelp }}; -// bool GetEnableHelp() const; -static int LUACALL wxLua_wxPrintDialogData_GetEnableHelp(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetEnableHelp - bool returns = (self->GetEnableHelp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnablePageNumbers[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetEnablePageNumbers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetEnablePageNumbers[1] = {{ wxLua_wxPrintDialogData_GetEnablePageNumbers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnablePageNumbers }}; -// bool GetEnablePageNumbers() const; -static int LUACALL wxLua_wxPrintDialogData_GetEnablePageNumbers(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetEnablePageNumbers - bool returns = (self->GetEnablePageNumbers()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnablePrintToFile[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetEnablePrintToFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetEnablePrintToFile[1] = {{ wxLua_wxPrintDialogData_GetEnablePrintToFile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnablePrintToFile }}; -// bool GetEnablePrintToFile() const; -static int LUACALL wxLua_wxPrintDialogData_GetEnablePrintToFile(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetEnablePrintToFile - bool returns = (self->GetEnablePrintToFile()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnableSelection[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetEnableSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetEnableSelection[1] = {{ wxLua_wxPrintDialogData_GetEnableSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetEnableSelection }}; -// bool GetEnableSelection() const; -static int LUACALL wxLua_wxPrintDialogData_GetEnableSelection(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetEnableSelection - bool returns = (self->GetEnableSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetFromPage[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetFromPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetFromPage[1] = {{ wxLua_wxPrintDialogData_GetFromPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetFromPage }}; -// int GetFromPage() const; -static int LUACALL wxLua_wxPrintDialogData_GetFromPage(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetFromPage - int returns = (self->GetFromPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetMaxPage[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetMaxPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetMaxPage[1] = {{ wxLua_wxPrintDialogData_GetMaxPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetMaxPage }}; -// int GetMaxPage() const; -static int LUACALL wxLua_wxPrintDialogData_GetMaxPage(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetMaxPage - int returns = (self->GetMaxPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetMinPage[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetMinPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetMinPage[1] = {{ wxLua_wxPrintDialogData_GetMinPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetMinPage }}; -// int GetMinPage() const; -static int LUACALL wxLua_wxPrintDialogData_GetMinPage(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetMinPage - int returns = (self->GetMinPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetNoCopies[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetNoCopies(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetNoCopies[1] = {{ wxLua_wxPrintDialogData_GetNoCopies, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetNoCopies }}; -// int GetNoCopies() const; -static int LUACALL wxLua_wxPrintDialogData_GetNoCopies(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetNoCopies - int returns = (self->GetNoCopies()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetPrintData[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetPrintData[1] = {{ wxLua_wxPrintDialogData_GetPrintData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetPrintData }}; -// wxPrintData& GetPrintData(); -static int LUACALL wxLua_wxPrintDialogData_GetPrintData(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetPrintData - wxPrintData* returns = (wxPrintData*)&self->GetPrintData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetPrintToFile[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetPrintToFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetPrintToFile[1] = {{ wxLua_wxPrintDialogData_GetPrintToFile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetPrintToFile }}; -// bool GetPrintToFile() const; -static int LUACALL wxLua_wxPrintDialogData_GetPrintToFile(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetPrintToFile - bool returns = (self->GetPrintToFile()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetSelection[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetSelection[1] = {{ wxLua_wxPrintDialogData_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetSelection }}; -// bool GetSelection() const; -static int LUACALL wxLua_wxPrintDialogData_GetSelection(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetSelection - bool returns = (self->GetSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_GetToPage[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_GetToPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_GetToPage[1] = {{ wxLua_wxPrintDialogData_GetToPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_GetToPage }}; -// int GetToPage() const; -static int LUACALL wxLua_wxPrintDialogData_GetToPage(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call GetToPage - int returns = (self->GetToPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_Ok[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_Ok[1] = {{ wxLua_wxPrintDialogData_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxPrintDialogData_Ok(lua_State *L) -{ - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetAllPages[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetAllPages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetAllPages[1] = {{ wxLua_wxPrintDialogData_SetAllPages, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetAllPages }}; -// void SetAllPages(bool flag); -static int LUACALL wxLua_wxPrintDialogData_SetAllPages(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetAllPages - self->SetAllPages(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetCollate[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetCollate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetCollate[1] = {{ wxLua_wxPrintDialogData_SetCollate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetCollate }}; -// void SetCollate(bool flag); -static int LUACALL wxLua_wxPrintDialogData_SetCollate(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetCollate - self->SetCollate(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetFromPage[] = { &wxluatype_wxPrintDialogData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetFromPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetFromPage[1] = {{ wxLua_wxPrintDialogData_SetFromPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetFromPage }}; -// void SetFromPage(int v); -static int LUACALL wxLua_wxPrintDialogData_SetFromPage(lua_State *L) -{ - // int v - int v = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetFromPage - self->SetFromPage(v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetMaxPage[] = { &wxluatype_wxPrintDialogData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetMaxPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetMaxPage[1] = {{ wxLua_wxPrintDialogData_SetMaxPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetMaxPage }}; -// void SetMaxPage(int v); -static int LUACALL wxLua_wxPrintDialogData_SetMaxPage(lua_State *L) -{ - // int v - int v = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetMaxPage - self->SetMaxPage(v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetMinPage[] = { &wxluatype_wxPrintDialogData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetMinPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetMinPage[1] = {{ wxLua_wxPrintDialogData_SetMinPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetMinPage }}; -// void SetMinPage(int v); -static int LUACALL wxLua_wxPrintDialogData_SetMinPage(lua_State *L) -{ - // int v - int v = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetMinPage - self->SetMinPage(v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetNoCopies[] = { &wxluatype_wxPrintDialogData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetNoCopies(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetNoCopies[1] = {{ wxLua_wxPrintDialogData_SetNoCopies, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetNoCopies }}; -// void SetNoCopies(int v); -static int LUACALL wxLua_wxPrintDialogData_SetNoCopies(lua_State *L) -{ - // int v - int v = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetNoCopies - self->SetNoCopies(v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetPrintData[] = { &wxluatype_wxPrintDialogData, &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetPrintData[1] = {{ wxLua_wxPrintDialogData_SetPrintData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetPrintData }}; -// void SetPrintData(const wxPrintData& printData); -static int LUACALL wxLua_wxPrintDialogData_SetPrintData(lua_State *L) -{ - // const wxPrintData printData - const wxPrintData * printData = (const wxPrintData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintData); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetPrintData - self->SetPrintData(*printData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetPrintToFile[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetPrintToFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetPrintToFile[1] = {{ wxLua_wxPrintDialogData_SetPrintToFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetPrintToFile }}; -// void SetPrintToFile(bool flag); -static int LUACALL wxLua_wxPrintDialogData_SetPrintToFile(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetPrintToFile - self->SetPrintToFile(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetSelection[] = { &wxluatype_wxPrintDialogData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetSelection[1] = {{ wxLua_wxPrintDialogData_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetSelection }}; -// void SetSelection(bool flag); -static int LUACALL wxLua_wxPrintDialogData_SetSelection(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetSelection - self->SetSelection(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_SetToPage[] = { &wxluatype_wxPrintDialogData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintDialogData_SetToPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_SetToPage[1] = {{ wxLua_wxPrintDialogData_SetToPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_SetToPage }}; -// void SetToPage(int v); -static int LUACALL wxLua_wxPrintDialogData_SetToPage(lua_State *L) -{ - // int v - int v = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call SetToPage - self->SetToPage(v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_delete[] = { &wxluatype_wxPrintDialogData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_op_set[] = { &wxluatype_wxPrintDialogData, &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_op_set[1] = {{ wxLua_wxPrintDialogData_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintDialogData_op_set }}; -// void operator=(const wxPrintDialogData& data); -static int LUACALL wxLua_wxPrintDialogData_op_set(lua_State *L) -{ - // const wxPrintDialogData data - const wxPrintDialogData * data = (const wxPrintDialogData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintDialogData); - // get this - wxPrintDialogData * self = (wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call op_set - (*self)=(*data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_constructor2[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_constructor2[1] = {{ wxLua_wxPrintDialogData_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_constructor2 }}; -// wxPrintDialogData(const wxPrintData& data); -static int LUACALL wxLua_wxPrintDialogData_constructor2(lua_State *L) -{ - // const wxPrintData data - const wxPrintData * data = (const wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call constructor - wxPrintDialogData* returns = new wxPrintDialogData(*data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintDialogData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialogData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintDialogData_constructor1[] = { &wxluatype_wxPrintDialogData, NULL }; -static int LUACALL wxLua_wxPrintDialogData_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_constructor1[1] = {{ wxLua_wxPrintDialogData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_constructor1 }}; -// wxPrintDialogData(const wxPrintDialogData& dialogData); -static int LUACALL wxLua_wxPrintDialogData_constructor1(lua_State *L) -{ - // const wxPrintDialogData dialogData - const wxPrintDialogData * dialogData = (const wxPrintDialogData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintDialogData); - // call constructor - wxPrintDialogData* returns = new wxPrintDialogData(*dialogData); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintDialogData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialogData); - - return 1; -} - -static int LUACALL wxLua_wxPrintDialogData_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_constructor[1] = {{ wxLua_wxPrintDialogData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPrintDialogData(); -static int LUACALL wxLua_wxPrintDialogData_constructor(lua_State *L) -{ - // call constructor - wxPrintDialogData* returns = new wxPrintDialogData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrintDialogData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintDialogData); - - return 1; -} - - - - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintDialogData_constructor_overload[] = -{ - { wxLua_wxPrintDialogData_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_constructor2 }, - { wxLua_wxPrintDialogData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrintDialogData_constructor1 }, - { wxLua_wxPrintDialogData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPrintDialogData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPrintDialogData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -void wxLua_wxPrintDialogData_delete_function(void** p) -{ - wxPrintDialogData* o = (wxPrintDialogData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrintDialogData_methods[] = { - { "EnableHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_EnableHelp, 1, NULL }, - { "EnablePageNumbers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_EnablePageNumbers, 1, NULL }, - { "EnablePrintToFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_EnablePrintToFile, 1, NULL }, - { "EnableSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_EnableSelection, 1, NULL }, - { "GetAllPages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetAllPages, 1, NULL }, - { "GetCollate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetCollate, 1, NULL }, - { "GetEnableHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetEnableHelp, 1, NULL }, - { "GetEnablePageNumbers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetEnablePageNumbers, 1, NULL }, - { "GetEnablePrintToFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetEnablePrintToFile, 1, NULL }, - { "GetEnableSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetEnableSelection, 1, NULL }, - { "GetFromPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetFromPage, 1, NULL }, - { "GetMaxPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetMaxPage, 1, NULL }, - { "GetMinPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetMinPage, 1, NULL }, - { "GetNoCopies", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetNoCopies, 1, NULL }, - { "GetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetPrintData, 1, NULL }, - { "GetPrintToFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetPrintToFile, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetSelection, 1, NULL }, - { "GetToPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_GetToPage, 1, NULL }, - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_Ok, 1, NULL }, - { "SetAllPages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetAllPages, 1, NULL }, - { "SetCollate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetCollate, 1, NULL }, - { "SetFromPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetFromPage, 1, NULL }, - { "SetMaxPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetMaxPage, 1, NULL }, - { "SetMinPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetMinPage, 1, NULL }, - { "SetNoCopies", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetNoCopies, 1, NULL }, - { "SetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetPrintData, 1, NULL }, - { "SetPrintToFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetPrintToFile, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetSelection, 1, NULL }, - { "SetToPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_SetToPage, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPrintDialogData_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintDialogData_op_set, 1, NULL }, - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPrintDialogData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrintDialogData_constructor_overload, s_wxluafunc_wxLua_wxPrintDialogData_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPrintDialogData_methodCount = sizeof(wxPrintDialogData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPreviewCanvas -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPreviewCanvas' -int wxluatype_wxPreviewCanvas = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewCanvas_constructor[] = { &wxluatype_wxPrintPreview, &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPreviewCanvas_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewCanvas_constructor[1] = {{ wxLua_wxPreviewCanvas_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxPreviewCanvas_constructor }}; -// wxPreviewCanvas(wxPrintPreview *preview, wxWindow *parent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxPreviewCanvas"); -static int LUACALL wxLua_wxPreviewCanvas_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxPreviewCanvas" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxPreviewCanvas"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // wxPrintPreview preview - wxPrintPreview * preview = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call constructor - wxPreviewCanvas* returns = new wxPreviewCanvas(preview, parent, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPreviewCanvas); - - return 1; -} - -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - - -void wxLua_wxPreviewCanvas_delete_function(void** p) -{ - wxPreviewCanvas* o = (wxPreviewCanvas*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPreviewCanvas_methods[] = { -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPreviewCanvas", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPreviewCanvas_constructor, 1, NULL }, -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPreviewCanvas_methodCount = sizeof(wxPreviewCanvas_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE -// --------------------------------------------------------------------------- -// Bind class wxPreviewControlBar -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPreviewControlBar' -int wxluatype_wxPreviewControlBar = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewControlBar_GetZoomControl[] = { &wxluatype_wxPreviewControlBar, NULL }; -static int LUACALL wxLua_wxPreviewControlBar_GetZoomControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewControlBar_GetZoomControl[1] = {{ wxLua_wxPreviewControlBar_GetZoomControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPreviewControlBar_GetZoomControl }}; -// virtual int GetZoomControl(); -static int LUACALL wxLua_wxPreviewControlBar_GetZoomControl(lua_State *L) -{ - // get this - wxPreviewControlBar * self = (wxPreviewControlBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPreviewControlBar); - // call GetZoomControl - int returns = (self->GetZoomControl()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewControlBar_SetZoomControl[] = { &wxluatype_wxPreviewControlBar, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPreviewControlBar_SetZoomControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewControlBar_SetZoomControl[1] = {{ wxLua_wxPreviewControlBar_SetZoomControl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPreviewControlBar_SetZoomControl }}; -// virtual void SetZoomControl(int zoom); -static int LUACALL wxLua_wxPreviewControlBar_SetZoomControl(lua_State *L) -{ - // int zoom - int zoom = (int)wxlua_getnumbertype(L, 2); - // get this - wxPreviewControlBar * self = (wxPreviewControlBar *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPreviewControlBar); - // call SetZoomControl - self->SetZoomControl(zoom); - - return 0; -} - - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewControlBar_constructor[] = { &wxluatype_wxPrintPreview, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPreviewControlBar_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewControlBar_constructor[1] = {{ wxLua_wxPreviewControlBar_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxPreviewControlBar_constructor }}; -// wxPreviewControlBar(wxPrintPreview* preview, long buttons, wxWindow* parent, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxPreviewControlBar"); -static int LUACALL wxLua_wxPreviewControlBar_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxPreviewControlBar" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxPreviewControlBar"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // long buttons - long buttons = (long)wxlua_getnumbertype(L, 2); - // wxPrintPreview preview - wxPrintPreview * preview = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call constructor - wxPreviewControlBar* returns = new wxPreviewControlBar(preview, buttons, parent, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPreviewControlBar); - - return 1; -} - -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - - -void wxLua_wxPreviewControlBar_delete_function(void** p) -{ - wxPreviewControlBar* o = (wxPreviewControlBar*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPreviewControlBar_methods[] = { - { "GetZoomControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPreviewControlBar_GetZoomControl, 1, NULL }, - { "SetZoomControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPreviewControlBar_SetZoomControl, 1, NULL }, - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPreviewControlBar", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPreviewControlBar_constructor, 1, NULL }, -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPreviewControlBar_methodCount = sizeof(wxPreviewControlBar_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE - - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// --------------------------------------------------------------------------- -// Bind class wxPrintPreview -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrintPreview' -int wxluatype_wxPrintPreview = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_DrawBlankPage[] = { &wxluatype_wxPrintPreview, &wxluatype_wxPreviewCanvas, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxPrintPreview_DrawBlankPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_DrawBlankPage[1] = {{ wxLua_wxPrintPreview_DrawBlankPage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPrintPreview_DrawBlankPage }}; -// bool DrawBlankPage(wxPreviewCanvas* window, wxDC& dc); -static int LUACALL wxLua_wxPrintPreview_DrawBlankPage(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxPreviewCanvas window - wxPreviewCanvas * window = (wxPreviewCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPreviewCanvas); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call DrawBlankPage - bool returns = (self->DrawBlankPage(window, *dc)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetCanvas[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetCanvas(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetCanvas[1] = {{ wxLua_wxPrintPreview_GetCanvas, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetCanvas }}; -// wxPreviewCanvas* GetCanvas(); -static int LUACALL wxLua_wxPrintPreview_GetCanvas(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetCanvas - wxPreviewCanvas* returns = (wxPreviewCanvas*)self->GetCanvas(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPreviewCanvas); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetCurrentPage[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetCurrentPage[1] = {{ wxLua_wxPrintPreview_GetCurrentPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetCurrentPage }}; -// int GetCurrentPage(); -static int LUACALL wxLua_wxPrintPreview_GetCurrentPage(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetCurrentPage - int returns = (self->GetCurrentPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetFrame[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetFrame[1] = {{ wxLua_wxPrintPreview_GetFrame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetFrame }}; -// wxFrame * GetFrame(); -static int LUACALL wxLua_wxPrintPreview_GetFrame(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetFrame - wxFrame* returns = (wxFrame*)self->GetFrame(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetMaxPage[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetMaxPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetMaxPage[1] = {{ wxLua_wxPrintPreview_GetMaxPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetMaxPage }}; -// int GetMaxPage(); -static int LUACALL wxLua_wxPrintPreview_GetMaxPage(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetMaxPage - int returns = (self->GetMaxPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetMinPage[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetMinPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetMinPage[1] = {{ wxLua_wxPrintPreview_GetMinPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetMinPage }}; -// int GetMinPage(); -static int LUACALL wxLua_wxPrintPreview_GetMinPage(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetMinPage - int returns = (self->GetMinPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetPrintout[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetPrintout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetPrintout[1] = {{ wxLua_wxPrintPreview_GetPrintout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetPrintout }}; -// wxPrintout* GetPrintout(); -static int LUACALL wxLua_wxPrintPreview_GetPrintout(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetPrintout - wxPrintout* returns = (wxPrintout*)self->GetPrintout(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintout); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_GetPrintoutForPrinting[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_GetPrintoutForPrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_GetPrintoutForPrinting[1] = {{ wxLua_wxPrintPreview_GetPrintoutForPrinting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_GetPrintoutForPrinting }}; -// wxPrintout* GetPrintoutForPrinting(); -static int LUACALL wxLua_wxPrintPreview_GetPrintoutForPrinting(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call GetPrintoutForPrinting - wxPrintout* returns = (wxPrintout*)self->GetPrintoutForPrinting(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintout); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_Ok[] = { &wxluatype_wxPrintPreview, NULL }; -static int LUACALL wxLua_wxPrintPreview_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_Ok[1] = {{ wxLua_wxPrintPreview_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPrintPreview_Ok }}; -// bool Ok(); -static int LUACALL wxLua_wxPrintPreview_Ok(lua_State *L) -{ - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_PaintPage[] = { &wxluatype_wxPrintPreview, &wxluatype_wxPreviewCanvas, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxPrintPreview_PaintPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_PaintPage[1] = {{ wxLua_wxPrintPreview_PaintPage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPrintPreview_PaintPage }}; -// bool PaintPage(wxPreviewCanvas* window, wxDC &dc); -static int LUACALL wxLua_wxPrintPreview_PaintPage(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxPreviewCanvas window - wxPreviewCanvas * window = (wxPreviewCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPreviewCanvas); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call PaintPage - bool returns = (self->PaintPage(window, *dc)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_Print[] = { &wxluatype_wxPrintPreview, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPrintPreview_Print(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_Print[1] = {{ wxLua_wxPrintPreview_Print, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_Print }}; -// bool Print(bool prompt); -static int LUACALL wxLua_wxPrintPreview_Print(lua_State *L) -{ - // bool prompt - bool prompt = wxlua_getbooleantype(L, 2); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call Print - bool returns = (self->Print(prompt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_RenderPage[] = { &wxluatype_wxPrintPreview, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintPreview_RenderPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_RenderPage[1] = {{ wxLua_wxPrintPreview_RenderPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_RenderPage }}; -// bool RenderPage(int pageNum); -static int LUACALL wxLua_wxPrintPreview_RenderPage(lua_State *L) -{ - // int pageNum - int pageNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call RenderPage - bool returns = (self->RenderPage(pageNum)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_SetCanvas[] = { &wxluatype_wxPrintPreview, &wxluatype_wxPreviewCanvas, NULL }; -static int LUACALL wxLua_wxPrintPreview_SetCanvas(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_SetCanvas[1] = {{ wxLua_wxPrintPreview_SetCanvas, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_SetCanvas }}; -// void SetCanvas(wxPreviewCanvas* window); -static int LUACALL wxLua_wxPrintPreview_SetCanvas(lua_State *L) -{ - // wxPreviewCanvas window - wxPreviewCanvas * window = (wxPreviewCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPreviewCanvas); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call SetCanvas - self->SetCanvas(window); - - return 0; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_SetCurrentPage[] = { &wxluatype_wxPrintPreview, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintPreview_SetCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_SetCurrentPage[1] = {{ wxLua_wxPrintPreview_SetCurrentPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_SetCurrentPage }}; -// void SetCurrentPage(int pageNum); -static int LUACALL wxLua_wxPrintPreview_SetCurrentPage(lua_State *L) -{ - // int pageNum - int pageNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call SetCurrentPage - self->SetCurrentPage(pageNum); - - return 0; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_SetFrame[] = { &wxluatype_wxPrintPreview, &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxPrintPreview_SetFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_SetFrame[1] = {{ wxLua_wxPrintPreview_SetFrame, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_SetFrame }}; -// void SetFrame(wxFrame *frame); -static int LUACALL wxLua_wxPrintPreview_SetFrame(lua_State *L) -{ - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call SetFrame - self->SetFrame(frame); - - return 0; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_SetPrintout[] = { &wxluatype_wxPrintPreview, &wxluatype_wxPrintout, NULL }; -static int LUACALL wxLua_wxPrintPreview_SetPrintout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_SetPrintout[1] = {{ wxLua_wxPrintPreview_SetPrintout, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_SetPrintout }}; -// void SetPrintout(wxPrintout *printout); -static int LUACALL wxLua_wxPrintPreview_SetPrintout(lua_State *L) -{ - // wxPrintout printout - wxPrintout * printout = (wxPrintout *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintout); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call SetPrintout - self->SetPrintout(printout); - - return 0; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_SetZoom[] = { &wxluatype_wxPrintPreview, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPrintPreview_SetZoom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_SetZoom[1] = {{ wxLua_wxPrintPreview_SetZoom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPrintPreview_SetZoom }}; -// void SetZoom(int percent); -static int LUACALL wxLua_wxPrintPreview_SetZoom(lua_State *L) -{ - // int percent - int percent = (int)wxlua_getnumbertype(L, 2); - // get this - wxPrintPreview * self = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call SetZoom - self->SetZoom(percent); - - return 0; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrintPreview_constructor[] = { &wxluatype_wxPrintout, &wxluatype_wxPrintout, &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrintPreview_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrintPreview_constructor[1] = {{ wxLua_wxPrintPreview_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxPrintPreview_constructor }}; -// %override wxLua_wxPrintPreview_constructor -// wxPrintPreview(wxLuaPrintout* printout, wxLuaPrintout* printoutForPrinting, wxPrintData* data=NULL) -static int LUACALL wxLua_wxPrintPreview_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPrintData* data=NULL - wxPrintData *data = (argCount >= 3 ? (wxPrintData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPrintData) : NULL); - // wxLuaPrintout* printoutForPrinting - wxLuaPrintout *printoutForPrinting = (argCount >= 2 ? (wxLuaPrintout *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLuaPrintout) : NULL); - // wxLuaPrintout* printout - wxLuaPrintout *printout = (wxLuaPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaPrintout); - - // when the wxPrintPreview constructor is called, the - // object takes over ownership of the wxPrintout objects, therefore - // we must disconnect them from our tracking list - if (printoutForPrinting != NULL) - wxluaO_undeletegcobject(L, printoutForPrinting); - wxluaO_undeletegcobject(L, printout); - - // call constructor - wxPrintPreview *returns = new wxPrintPreview(printout, printoutForPrinting, data); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintPreview); - // return the number of parameters - return 1; -} - - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - - -void wxLua_wxPrintPreview_delete_function(void** p) -{ - wxPrintPreview* o = (wxPrintPreview*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrintPreview_methods[] = { -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "DrawBlankPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_DrawBlankPage, 1, NULL }, -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetCanvas", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetCanvas, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "GetCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetCurrentPage, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) - { "GetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetFrame, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) - - { "GetMaxPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetMaxPage, 1, NULL }, - { "GetMinPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetMinPage, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetPrintout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetPrintout, 1, NULL }, - { "GetPrintoutForPrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_GetPrintoutForPrinting, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_Ok, 1, NULL }, - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "PaintPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_PaintPage, 1, NULL }, -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "Print", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_Print, 1, NULL }, - { "RenderPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_RenderPage, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetCanvas", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_SetCanvas, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_SetCurrentPage, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) - { "SetFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_SetFrame, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame) - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "SetPrintout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_SetPrintout, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "SetZoom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPrintPreview_SetZoom, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPrintPreview", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrintPreview_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPrintPreview_methodCount = sizeof(wxPrintPreview_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - -#if (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// --------------------------------------------------------------------------- -// Bind class wxPreviewFrame -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPreviewFrame' -int wxluatype_wxPreviewFrame = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewFrame_CreateCanvas[] = { &wxluatype_wxPreviewFrame, NULL }; -static int LUACALL wxLua_wxPreviewFrame_CreateCanvas(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewFrame_CreateCanvas[1] = {{ wxLua_wxPreviewFrame_CreateCanvas, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPreviewFrame_CreateCanvas }}; -// void CreateCanvas(); -static int LUACALL wxLua_wxPreviewFrame_CreateCanvas(lua_State *L) -{ - // get this - wxPreviewFrame * self = (wxPreviewFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPreviewFrame); - // call CreateCanvas - self->CreateCanvas(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewFrame_CreateControlBar[] = { &wxluatype_wxPreviewFrame, NULL }; -static int LUACALL wxLua_wxPreviewFrame_CreateControlBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewFrame_CreateControlBar[1] = {{ wxLua_wxPreviewFrame_CreateControlBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPreviewFrame_CreateControlBar }}; -// void CreateControlBar(); -static int LUACALL wxLua_wxPreviewFrame_CreateControlBar(lua_State *L) -{ - // get this - wxPreviewFrame * self = (wxPreviewFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPreviewFrame); - // call CreateControlBar - self->CreateControlBar(); - - return 0; -} - - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewFrame_GetControlBar[] = { &wxluatype_wxPreviewFrame, NULL }; -static int LUACALL wxLua_wxPreviewFrame_GetControlBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewFrame_GetControlBar[1] = {{ wxLua_wxPreviewFrame_GetControlBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPreviewFrame_GetControlBar }}; -// wxPreviewControlBar* GetControlBar() const; -static int LUACALL wxLua_wxPreviewFrame_GetControlBar(lua_State *L) -{ - // get this - wxPreviewFrame * self = (wxPreviewFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPreviewFrame); - // call GetControlBar - wxPreviewControlBar* returns = (wxPreviewControlBar*)self->GetControlBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPreviewControlBar); - - return 1; -} - -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewFrame_Initialize[] = { &wxluatype_wxPreviewFrame, NULL }; -static int LUACALL wxLua_wxPreviewFrame_Initialize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewFrame_Initialize[1] = {{ wxLua_wxPreviewFrame_Initialize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPreviewFrame_Initialize }}; -// void Initialize(); -static int LUACALL wxLua_wxPreviewFrame_Initialize(lua_State *L) -{ - // get this - wxPreviewFrame * self = (wxPreviewFrame *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPreviewFrame); - // call Initialize - self->Initialize(); - - return 0; -} - - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPreviewFrame_constructor[] = { &wxluatype_wxPrintPreview, &wxluatype_wxFrame, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPreviewFrame_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPreviewFrame_constructor[1] = {{ wxLua_wxPreviewFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxPreviewFrame_constructor }}; -// wxPreviewFrame(wxPrintPreview *preview, wxFrame *parent, const wxString &title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString &name = "wxPreviewFrame"); -static int LUACALL wxLua_wxPreviewFrame_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxPreviewFrame" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxPreviewFrame"))); - // long style = wxDEFAULT_FRAME_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxDEFAULT_FRAME_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxFrame parent - wxFrame * parent = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // wxPrintPreview preview - wxPrintPreview * preview = (wxPrintPreview *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintPreview); - // call constructor - wxPreviewFrame* returns = new wxPreviewFrame(preview, parent, title, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPreviewFrame); - - return 1; -} - -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxPreviewFrame_delete_function(void** p) -{ - wxPreviewFrame* o = (wxPreviewFrame*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPreviewFrame_methods[] = { - { "CreateCanvas", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPreviewFrame_CreateCanvas, 1, NULL }, - { "CreateControlBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPreviewFrame_CreateControlBar, 1, NULL }, - -#if ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetControlBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPreviewFrame_GetControlBar, 1, NULL }, -#endif // ((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "Initialize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPreviewFrame_Initialize, 1, NULL }, - -#if (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - { "wxPreviewFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPreviewFrame_constructor, 1, NULL }, -#endif // (((wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxFrame)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxPreviewFrame_methodCount = sizeof(wxPreviewFrame_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLuaPrintout) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) -// --------------------------------------------------------------------------- -// Bind class wxPostScriptDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPostScriptDC' -int wxluatype_wxPostScriptDC = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPostScriptDC_GetResolution1[] = { &wxluatype_wxPostScriptDC, NULL }; -static int LUACALL wxLua_wxPostScriptDC_GetResolution1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPostScriptDC_GetResolution1[1] = {{ wxLua_wxPostScriptDC_GetResolution1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPostScriptDC_GetResolution1 }}; -// %wxchkver_2_9_2 int GetResolution(); -static int LUACALL wxLua_wxPostScriptDC_GetResolution1(lua_State *L) -{ - // get this - wxPostScriptDC * self = (wxPostScriptDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPostScriptDC); - // call GetResolution - int returns = (self->GetResolution()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)) - -#if (!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) -static int LUACALL wxLua_wxPostScriptDC_GetResolution(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPostScriptDC_GetResolution[1] = {{ wxLua_wxPostScriptDC_GetResolution, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// !%wxchkver_2_9_2 static int GetResolution(); -static int LUACALL wxLua_wxPostScriptDC_GetResolution(lua_State *L) -{ - // call GetResolution - int returns = (wxPostScriptDC::GetResolution()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPostScriptDC_SetResolution[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPostScriptDC_SetResolution(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPostScriptDC_SetResolution[1] = {{ wxLua_wxPostScriptDC_SetResolution, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPostScriptDC_SetResolution }}; -// !%wxchkver_2_9_2 static void SetResolution(int ppi); -static int LUACALL wxLua_wxPostScriptDC_SetResolution(lua_State *L) -{ - // int ppi - int ppi = (int)wxlua_getnumbertype(L, 1); - // call SetResolution - wxPostScriptDC::SetResolution(ppi); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPostScriptDC_delete[] = { &wxluatype_wxPostScriptDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPostScriptDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPostScriptDC_delete }}; - - -#if ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPostScriptDC_constructor[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPostScriptDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPostScriptDC_constructor[1] = {{ wxLua_wxPostScriptDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPostScriptDC_constructor }}; -// wxPostScriptDC(const wxPrintData& printData); -static int LUACALL wxLua_wxPostScriptDC_constructor(lua_State *L) -{ - // const wxPrintData printData - const wxPrintData * printData = (const wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call constructor - wxPostScriptDC* returns = new wxPostScriptDC(*printData); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPostScriptDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPostScriptDC); - - return 1; -} - -#endif // ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - - -#if (((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)))||((!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPostScriptDC_GetResolution_overload[] = -{ - -#if ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)) - { wxLua_wxPostScriptDC_GetResolution1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPostScriptDC_GetResolution1 }, -#endif // ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)) - -#if (!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) - { wxLua_wxPostScriptDC_GetResolution, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }, -#endif // (!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) -}; -static int s_wxluafunc_wxLua_wxPostScriptDC_GetResolution_overload_count = sizeof(s_wxluafunc_wxLua_wxPostScriptDC_GetResolution_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)))||((!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT))) - -void wxLua_wxPostScriptDC_delete_function(void** p) -{ - wxPostScriptDC* o = (wxPostScriptDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPostScriptDC_methods[] = { -#if (((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)))||((!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT))) - { "GetResolution", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPostScriptDC_GetResolution_overload, s_wxluafunc_wxLua_wxPostScriptDC_GetResolution_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxCHECK_VERSION(2,9,2)))||((!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT))) - -#if (!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) - { "SetResolution", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPostScriptDC_SetResolution, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,2)) && ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPostScriptDC_delete, 1, NULL }, - -#if ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPostScriptDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPostScriptDC_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPostScriptDC_methodCount = sizeof(wxPostScriptDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxUSE_POSTSCRIPT) - - -#if (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -// --------------------------------------------------------------------------- -// Bind class wxPrinterDC -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPrinterDC' -int wxluatype_wxPrinterDC = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinterDC_delete[] = { &wxluatype_wxPrinterDC, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinterDC_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPrinterDC_delete }}; - - -#if ((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPrinterDC_constructor[] = { &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxPrinterDC_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPrinterDC_constructor[1] = {{ wxLua_wxPrinterDC_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPrinterDC_constructor }}; -// wxPrinterDC(const wxPrintData& printData); -static int LUACALL wxLua_wxPrinterDC_constructor(lua_State *L) -{ - // const wxPrintData printData - const wxPrintData * printData = (const wxPrintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPrintData); - // call constructor - wxPrinterDC* returns = new wxPrinterDC(*printData); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPrinterDC); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrinterDC); - - return 1; -} - -#endif // ((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - - -void wxLua_wxPrinterDC_delete_function(void** p) -{ - wxPrinterDC* o = (wxPrinterDC*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPrinterDC_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPrinterDC_delete, 1, NULL }, - -#if ((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "wxPrinterDC", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPrinterDC_constructor, 1, NULL }, -#endif // ((defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { 0, 0, 0, 0 }, -}; - -int wxPrinterDC_methodCount = sizeof(wxPrinterDC_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (defined(__WXMSW__) || defined(__WXMAC__)) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - diff --git a/wxLua/modules/wxbind/src/wxcore_sizer.cpp b/wxLua/modules/wxbind/src/wxcore_sizer.cpp deleted file mode 100644 index 08ef4108..00000000 --- a/wxLua/modules/wxbind/src/wxcore_sizer.cpp +++ /dev/null @@ -1,6041 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_sizer.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxSizerFlags -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSizerFlags' -int wxluatype_wxSizerFlags = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Align[] = { &wxluatype_wxSizerFlags, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_Align(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Align[1] = {{ wxLua_wxSizerFlags_Align, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerFlags_Align }}; -// wxSizerFlags& Align(int alignment); // combination of wxAlignment values -static int LUACALL wxLua_wxSizerFlags_Align(lua_State *L) -{ - // int alignment - int alignment = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Align - wxSizerFlags* returns = (wxSizerFlags*)&self->Align(alignment); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Border1[] = { &wxluatype_wxSizerFlags, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_Border1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Border1[1] = {{ wxLua_wxSizerFlags_Border1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizerFlags_Border1 }}; -// wxSizerFlags& Border(int direction = wxALL); -static int LUACALL wxLua_wxSizerFlags_Border1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxALL - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxALL); - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Border - wxSizerFlags* returns = (wxSizerFlags*)&self->Border(direction); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Border[] = { &wxluatype_wxSizerFlags, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_Border(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Border[1] = {{ wxLua_wxSizerFlags_Border, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerFlags_Border }}; -// wxSizerFlags& Border(int direction, int borderInPixels); -static int LUACALL wxLua_wxSizerFlags_Border(lua_State *L) -{ - // int borderInPixels - int borderInPixels = (int)wxlua_getnumbertype(L, 3); - // int direction - int direction = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Border - wxSizerFlags* returns = (wxSizerFlags*)&self->Border(direction, borderInPixels); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Bottom[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Bottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Bottom[1] = {{ wxLua_wxSizerFlags_Bottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Bottom }}; -// wxSizerFlags& Bottom(); // { return Align(wxALIGN_BOTTOM); } -static int LUACALL wxLua_wxSizerFlags_Bottom(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Bottom - wxSizerFlags* returns = (wxSizerFlags*)&self->Bottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Center[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Center(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Center[1] = {{ wxLua_wxSizerFlags_Center, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Center }}; -// wxSizerFlags& Center(); // { return Centre(); } -static int LUACALL wxLua_wxSizerFlags_Center(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Center - wxSizerFlags* returns = (wxSizerFlags*)&self->Center(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Centre[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Centre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Centre[1] = {{ wxLua_wxSizerFlags_Centre, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Centre }}; -// wxSizerFlags& Centre(); // { return Align(wxCENTRE); } -static int LUACALL wxLua_wxSizerFlags_Centre(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Centre - wxSizerFlags* returns = (wxSizerFlags*)&self->Centre(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_DoubleBorder[] = { &wxluatype_wxSizerFlags, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_DoubleBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_DoubleBorder[1] = {{ wxLua_wxSizerFlags_DoubleBorder, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizerFlags_DoubleBorder }}; -// wxSizerFlags& DoubleBorder(int direction = wxALL); -static int LUACALL wxLua_wxSizerFlags_DoubleBorder(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxALL - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxALL); - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call DoubleBorder - wxSizerFlags* returns = (wxSizerFlags*)&self->DoubleBorder(direction); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_DoubleHorzBorder[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_DoubleHorzBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_DoubleHorzBorder[1] = {{ wxLua_wxSizerFlags_DoubleHorzBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_DoubleHorzBorder }}; -// wxSizerFlags& DoubleHorzBorder(); -static int LUACALL wxLua_wxSizerFlags_DoubleHorzBorder(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call DoubleHorzBorder - wxSizerFlags* returns = (wxSizerFlags*)&self->DoubleHorzBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Expand[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Expand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Expand[1] = {{ wxLua_wxSizerFlags_Expand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Expand }}; -// wxSizerFlags& Expand(); // wxEXPAND -static int LUACALL wxLua_wxSizerFlags_Expand(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Expand - wxSizerFlags* returns = (wxSizerFlags*)&self->Expand(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_FixedMinSize[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_FixedMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_FixedMinSize[1] = {{ wxLua_wxSizerFlags_FixedMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_FixedMinSize }}; -// wxSizerFlags& FixedMinSize(); -static int LUACALL wxLua_wxSizerFlags_FixedMinSize(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call FixedMinSize - wxSizerFlags* returns = (wxSizerFlags*)&self->FixedMinSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_GetBorderInPixels[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_GetBorderInPixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_GetBorderInPixels[1] = {{ wxLua_wxSizerFlags_GetBorderInPixels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_GetBorderInPixels }}; -// int GetBorderInPixels() const; -static int LUACALL wxLua_wxSizerFlags_GetBorderInPixels(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call GetBorderInPixels - int returns = (self->GetBorderInPixels()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxSizerFlags_GetDefaultBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_GetDefaultBorder[1] = {{ wxLua_wxSizerFlags_GetDefaultBorder, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static int GetDefaultBorder(); // default border size used by Border() below -static int LUACALL wxLua_wxSizerFlags_GetDefaultBorder(lua_State *L) -{ - // call GetDefaultBorder - int returns = (wxSizerFlags::GetDefaultBorder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_GetFlags[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_GetFlags[1] = {{ wxLua_wxSizerFlags_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxSizerFlags_GetFlags(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_GetProportion[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_GetProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_GetProportion[1] = {{ wxLua_wxSizerFlags_GetProportion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_GetProportion }}; -// int GetProportion() const; -static int LUACALL wxLua_wxSizerFlags_GetProportion(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call GetProportion - int returns = (self->GetProportion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_HorzBorder[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_HorzBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_HorzBorder[1] = {{ wxLua_wxSizerFlags_HorzBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_HorzBorder }}; -// wxSizerFlags& HorzBorder(); -static int LUACALL wxLua_wxSizerFlags_HorzBorder(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call HorzBorder - wxSizerFlags* returns = (wxSizerFlags*)&self->HorzBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Left[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Left(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Left[1] = {{ wxLua_wxSizerFlags_Left, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Left }}; -// wxSizerFlags& Left(); // { return Align(wxALIGN_LEFT); } -static int LUACALL wxLua_wxSizerFlags_Left(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Left - wxSizerFlags* returns = (wxSizerFlags*)&self->Left(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Proportion[] = { &wxluatype_wxSizerFlags, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_Proportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Proportion[1] = {{ wxLua_wxSizerFlags_Proportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerFlags_Proportion }}; -// wxSizerFlags& Proportion(int proportion); -static int LUACALL wxLua_wxSizerFlags_Proportion(lua_State *L) -{ - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Proportion - wxSizerFlags* returns = (wxSizerFlags*)&self->Proportion(proportion); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - - -#if (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden[1] = {{ wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden }}; -// wxSizerFlags& ReserveSpaceEvenIfHidden(); -static int LUACALL wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call ReserveSpaceEvenIfHidden - wxSizerFlags* returns = (wxSizerFlags*)&self->ReserveSpaceEvenIfHidden(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -#endif // (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Right[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Right(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Right[1] = {{ wxLua_wxSizerFlags_Right, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Right }}; -// wxSizerFlags& Right(); // { return Align(wxALIGN_RIGHT); } -static int LUACALL wxLua_wxSizerFlags_Right(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Right - wxSizerFlags* returns = (wxSizerFlags*)&self->Right(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Shaped[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Shaped(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Shaped[1] = {{ wxLua_wxSizerFlags_Shaped, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Shaped }}; -// wxSizerFlags& Shaped(); -static int LUACALL wxLua_wxSizerFlags_Shaped(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Shaped - wxSizerFlags* returns = (wxSizerFlags*)&self->Shaped(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_Top[] = { &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerFlags_Top(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Top[1] = {{ wxLua_wxSizerFlags_Top, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_Top }}; -// wxSizerFlags& Top(); // { return Align(wxALIGN_TOP); } -static int LUACALL wxLua_wxSizerFlags_Top(lua_State *L) -{ - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call Top - wxSizerFlags* returns = (wxSizerFlags*)&self->Top(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_TripleBorder[] = { &wxluatype_wxSizerFlags, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_TripleBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_TripleBorder[1] = {{ wxLua_wxSizerFlags_TripleBorder, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizerFlags_TripleBorder }}; -// wxSizerFlags& TripleBorder(int direction = wxALL); -static int LUACALL wxLua_wxSizerFlags_TripleBorder(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxALL - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxALL); - // get this - wxSizerFlags * self = (wxSizerFlags *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerFlags); - // call TripleBorder - wxSizerFlags* returns = (wxSizerFlags*)&self->TripleBorder(direction); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_delete[] = { &wxluatype_wxSizerFlags, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSizerFlags_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerFlags_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerFlags_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_constructor[1] = {{ wxLua_wxSizerFlags_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxSizerFlags_constructor }}; -// wxSizerFlags(int proportion = 0); -static int LUACALL wxLua_wxSizerFlags_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int proportion = 0 - int proportion = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxSizerFlags* returns = new wxSizerFlags(proportion); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSizerFlags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerFlags); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerFlags_Border_overload[] = -{ - { wxLua_wxSizerFlags_Border1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizerFlags_Border1 }, - { wxLua_wxSizerFlags_Border, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerFlags_Border }, -}; -static int s_wxluafunc_wxLua_wxSizerFlags_Border_overload_count = sizeof(s_wxluafunc_wxLua_wxSizerFlags_Border_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -void wxLua_wxSizerFlags_delete_function(void** p) -{ - wxSizerFlags* o = (wxSizerFlags*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSizerFlags_methods[] = { - { "Align", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Align, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "Border", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Border_overload, s_wxluafunc_wxLua_wxSizerFlags_Border_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "Bottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Bottom, 1, NULL }, - { "Center", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Center, 1, NULL }, - { "Centre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Centre, 1, NULL }, - { "DoubleBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_DoubleBorder, 1, NULL }, - { "DoubleHorzBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_DoubleHorzBorder, 1, NULL }, - { "Expand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Expand, 1, NULL }, - { "FixedMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_FixedMinSize, 1, NULL }, - { "GetBorderInPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_GetBorderInPixels, 1, NULL }, - { "GetDefaultBorder", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSizerFlags_GetDefaultBorder, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_GetFlags, 1, NULL }, - { "GetProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_GetProportion, 1, NULL }, - { "HorzBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_HorzBorder, 1, NULL }, - { "Left", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Left, 1, NULL }, - { "Proportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Proportion, 1, NULL }, - -#if (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "ReserveSpaceEvenIfHidden", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_ReserveSpaceEvenIfHidden, 1, NULL }, -#endif // (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "Right", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Right, 1, NULL }, - { "Shaped", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Shaped, 1, NULL }, - { "Top", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_Top, 1, NULL }, - { "TripleBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerFlags_TripleBorder, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSizerFlags_delete, 1, NULL }, - { "wxSizerFlags", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSizerFlags_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSizerFlags_methodCount = sizeof(wxSizerFlags_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxSizerItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSizerItem' -int wxluatype_wxSizerItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_AssignSizer[] = { &wxluatype_wxSizerItem, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizerItem_AssignSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_AssignSizer[1] = {{ wxLua_wxSizerItem_AssignSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_AssignSizer }}; -// void AssignSizer(wxSizer *sizer); -static int LUACALL wxLua_wxSizerItem_AssignSizer(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call AssignSizer - self->AssignSizer(sizer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_AssignSpacer1[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_AssignSpacer1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_AssignSpacer1[1] = {{ wxLua_wxSizerItem_AssignSpacer1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_AssignSpacer1 }}; -// void AssignSpacer(int w, int h); -static int LUACALL wxLua_wxSizerItem_AssignSpacer1(lua_State *L) -{ - // int h - int h = (int)wxlua_getnumbertype(L, 3); - // int w - int w = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call AssignSpacer - self->AssignSpacer(w, h); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_AssignSpacer[] = { &wxluatype_wxSizerItem, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSizerItem_AssignSpacer(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_AssignSpacer[1] = {{ wxLua_wxSizerItem_AssignSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_AssignSpacer }}; -// void AssignSpacer(const wxSize& size); -static int LUACALL wxLua_wxSizerItem_AssignSpacer(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call AssignSpacer - self->AssignSpacer(*size); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_AssignWindow[] = { &wxluatype_wxSizerItem, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizerItem_AssignWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_AssignWindow[1] = {{ wxLua_wxSizerItem_AssignWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_AssignWindow }}; -// void AssignWindow(wxWindow *window); -static int LUACALL wxLua_wxSizerItem_AssignWindow(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call AssignWindow - self->AssignWindow(window); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_CalcMin[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_CalcMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_CalcMin[1] = {{ wxLua_wxSizerItem_CalcMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_CalcMin }}; -// wxSize CalcMin(); -static int LUACALL wxLua_wxSizerItem_CalcMin(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call CalcMin - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->CalcMin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_DeleteWindows[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_DeleteWindows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_DeleteWindows[1] = {{ wxLua_wxSizerItem_DeleteWindows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_DeleteWindows }}; -// void DeleteWindows(); -static int LUACALL wxLua_wxSizerItem_DeleteWindows(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call DeleteWindows - self->DeleteWindows(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_DetachSizer[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_DetachSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_DetachSizer[1] = {{ wxLua_wxSizerItem_DetachSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_DetachSizer }}; -// void DetachSizer(); -static int LUACALL wxLua_wxSizerItem_DetachSizer(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call DetachSizer - self->DetachSizer(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetBorder[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetBorder[1] = {{ wxLua_wxSizerItem_GetBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetBorder }}; -// int GetBorder() const; -static int LUACALL wxLua_wxSizerItem_GetBorder(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetBorder - int returns = (self->GetBorder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetFlag[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetFlag[1] = {{ wxLua_wxSizerItem_GetFlag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetFlag }}; -// int GetFlag() const; -static int LUACALL wxLua_wxSizerItem_GetFlag(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetFlag - int returns = (self->GetFlag()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetMinSize[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetMinSize[1] = {{ wxLua_wxSizerItem_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetMinSize }}; -// wxSize GetMinSize() const; -static int LUACALL wxLua_wxSizerItem_GetMinSize(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetMinSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMinSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetMinSizeWithBorder[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetMinSizeWithBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetMinSizeWithBorder[1] = {{ wxLua_wxSizerItem_GetMinSizeWithBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetMinSizeWithBorder }}; -// wxSize GetMinSizeWithBorder() const; -static int LUACALL wxLua_wxSizerItem_GetMinSizeWithBorder(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetMinSizeWithBorder - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMinSizeWithBorder()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetPosition[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetPosition[1] = {{ wxLua_wxSizerItem_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxSizerItem_GetPosition(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetProportion[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetProportion[1] = {{ wxLua_wxSizerItem_GetProportion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetProportion }}; -// int GetProportion() const; -static int LUACALL wxLua_wxSizerItem_GetProportion(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetProportion - int returns = (self->GetProportion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetRatio[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetRatio(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetRatio[1] = {{ wxLua_wxSizerItem_GetRatio, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetRatio }}; -// float GetRatio() const; -static int LUACALL wxLua_wxSizerItem_GetRatio(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetRatio - float returns = (self->GetRatio()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetRect[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetRect[1] = {{ wxLua_wxSizerItem_GetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetRect }}; -// wxRect GetRect(); -static int LUACALL wxLua_wxSizerItem_GetRect(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetSize[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetSize[1] = {{ wxLua_wxSizerItem_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetSize }}; -// wxSize GetSize() const; -static int LUACALL wxLua_wxSizerItem_GetSize(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetSizer[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetSizer[1] = {{ wxLua_wxSizerItem_GetSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetSizer }}; -// wxSizer* GetSizer() const; -static int LUACALL wxLua_wxSizerItem_GetSizer(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetSizer - wxSizer* returns = (wxSizer*)self->GetSizer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetSpacer[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetSpacer[1] = {{ wxLua_wxSizerItem_GetSpacer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetSpacer }}; -// wxSize GetSpacer() const; -static int LUACALL wxLua_wxSizerItem_GetSpacer(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetSpacer - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSpacer()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetUserData[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetUserData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetUserData[1] = {{ wxLua_wxSizerItem_GetUserData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetUserData }}; -// wxObject* GetUserData() const; -static int LUACALL wxLua_wxSizerItem_GetUserData(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetUserData - wxObject* returns = (wxObject*)self->GetUserData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_GetWindow[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_GetWindow[1] = {{ wxLua_wxSizerItem_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_GetWindow }}; -// wxWindow* GetWindow() const; -static int LUACALL wxLua_wxSizerItem_GetWindow(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_IsShown[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_IsShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_IsShown[1] = {{ wxLua_wxSizerItem_IsShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_IsShown }}; -// bool IsShown() const; -static int LUACALL wxLua_wxSizerItem_IsShown(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call IsShown - bool returns = (self->IsShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_IsSizer[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_IsSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_IsSizer[1] = {{ wxLua_wxSizerItem_IsSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_IsSizer }}; -// bool IsSizer() const; -static int LUACALL wxLua_wxSizerItem_IsSizer(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call IsSizer - bool returns = (self->IsSizer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_IsSpacer[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_IsSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_IsSpacer[1] = {{ wxLua_wxSizerItem_IsSpacer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_IsSpacer }}; -// bool IsSpacer() const; -static int LUACALL wxLua_wxSizerItem_IsSpacer(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call IsSpacer - bool returns = (self->IsSpacer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_IsWindow[] = { &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizerItem_IsWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_IsWindow[1] = {{ wxLua_wxSizerItem_IsWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizerItem_IsWindow }}; -// bool IsWindow() const; -static int LUACALL wxLua_wxSizerItem_IsWindow(lua_State *L) -{ - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call IsWindow - bool returns = (self->IsWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetBorder[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetBorder[1] = {{ wxLua_wxSizerItem_SetBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetBorder }}; -// void SetBorder(int border); -static int LUACALL wxLua_wxSizerItem_SetBorder(lua_State *L) -{ - // int border - int border = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetBorder - self->SetBorder(border); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetDimension[] = { &wxluatype_wxSizerItem, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSizerItem_SetDimension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetDimension[1] = {{ wxLua_wxSizerItem_SetDimension, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetDimension }}; -// void SetDimension(const wxPoint& pos, const wxSize& size); -static int LUACALL wxLua_wxSizerItem_SetDimension(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetDimension - self->SetDimension(*pos, *size); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetFlag[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetFlag[1] = {{ wxLua_wxSizerItem_SetFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetFlag }}; -// void SetFlag(int flag); -static int LUACALL wxLua_wxSizerItem_SetFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetFlag - self->SetFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetInitSize[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetInitSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetInitSize[1] = {{ wxLua_wxSizerItem_SetInitSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetInitSize }}; -// void SetInitSize(int x, int y); -static int LUACALL wxLua_wxSizerItem_SetInitSize(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetInitSize - self->SetInitSize(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetMinSize1[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetMinSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetMinSize1[1] = {{ wxLua_wxSizerItem_SetMinSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetMinSize1 }}; -// void SetMinSize(int x, int y); -static int LUACALL wxLua_wxSizerItem_SetMinSize1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetMinSize - self->SetMinSize(x, y); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetMinSize[] = { &wxluatype_wxSizerItem, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSizerItem_SetMinSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetMinSize[1] = {{ wxLua_wxSizerItem_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetMinSize }}; -// void SetMinSize(const wxSize& size); -static int LUACALL wxLua_wxSizerItem_SetMinSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetMinSize - self->SetMinSize(*size); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetProportion[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetProportion[1] = {{ wxLua_wxSizerItem_SetProportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetProportion }}; -// void SetProportion(int proportion); -static int LUACALL wxLua_wxSizerItem_SetProportion(lua_State *L) -{ - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetProportion - self->SetProportion(proportion); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetRatio2[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetRatio2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetRatio2[1] = {{ wxLua_wxSizerItem_SetRatio2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetRatio2 }}; -// void SetRatio(float ratio); -static int LUACALL wxLua_wxSizerItem_SetRatio2(lua_State *L) -{ - // float ratio - float ratio = (float)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetRatio - self->SetRatio(ratio); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetRatio1[] = { &wxluatype_wxSizerItem, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSizerItem_SetRatio1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetRatio1[1] = {{ wxLua_wxSizerItem_SetRatio1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetRatio1 }}; -// void SetRatio(const wxSize& size); -static int LUACALL wxLua_wxSizerItem_SetRatio1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetRatio - self->SetRatio(*size); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetRatio[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetRatio(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetRatio[1] = {{ wxLua_wxSizerItem_SetRatio, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetRatio }}; -// void SetRatio(int width, int height); -static int LUACALL wxLua_wxSizerItem_SetRatio(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetRatio - self->SetRatio(width, height); - - return 0; -} - - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetSizer[] = { &wxluatype_wxSizerItem, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizerItem_SetSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetSizer[1] = {{ wxLua_wxSizerItem_SetSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetSizer }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetSizer(wxSizer* sizer); -static int LUACALL wxLua_wxSizerItem_SetSizer(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetSizer - self->SetSizer(sizer); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetSpacer1[] = { &wxluatype_wxSizerItem, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizerItem_SetSpacer1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetSpacer1[1] = {{ wxLua_wxSizerItem_SetSpacer1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetSpacer1 }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetSpacer(int width, int height); -static int LUACALL wxLua_wxSizerItem_SetSpacer1(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetSpacer - self->SetSpacer(width, height); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetSpacer[] = { &wxluatype_wxSizerItem, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSizerItem_SetSpacer(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetSpacer[1] = {{ wxLua_wxSizerItem_SetSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetSpacer }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetSpacer(const wxSize& size); -static int LUACALL wxLua_wxSizerItem_SetSpacer(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetSpacer - self->SetSpacer(*size); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetUserData[] = { &wxluatype_wxSizerItem, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizerItem_SetUserData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetUserData[1] = {{ wxLua_wxSizerItem_SetUserData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetUserData }}; -// void SetUserData(%ungc wxObject* userData); -static int LUACALL wxLua_wxSizerItem_SetUserData(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetUserData - self->SetUserData(userData); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_SetWindow[] = { &wxluatype_wxSizerItem, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizerItem_SetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetWindow[1] = {{ wxLua_wxSizerItem_SetWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetWindow }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetWindow(wxWindow* window); -static int LUACALL wxLua_wxSizerItem_SetWindow(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call SetWindow - self->SetWindow(window); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_Show[] = { &wxluatype_wxSizerItem, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizerItem_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_Show[1] = {{ wxLua_wxSizerItem_Show, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_Show }}; -// void Show(bool show); -static int LUACALL wxLua_wxSizerItem_Show(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxSizerItem * self = (wxSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizerItem); - // call Show - self->Show(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_constructor4[] = { &wxluatype_wxSizer, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerItem_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_constructor4[1] = {{ wxLua_wxSizerItem_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_constructor4 }}; -// wxSizerItem(wxSizer* window, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizerItem_constructor4(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizerFlags); - // wxSizer window - wxSizer * window = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call constructor - wxSizerItem* returns = new wxSizerItem(window, *flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_constructor3[] = { &wxluatype_wxWindow, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizerItem_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_constructor3[1] = {{ wxLua_wxSizerItem_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_constructor3 }}; -// wxSizerItem(wxWindow* window, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizerItem_constructor3(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizerFlags); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSizerItem* returns = new wxSizerItem(window, *flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_constructor2[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizerItem_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_constructor2[1] = {{ wxLua_wxSizerItem_constructor2, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxSizerItem_constructor2 }}; -// wxSizerItem(wxSizer* sizer, int proportion, int flag, int border, %ungc wxObject* userData); -static int LUACALL wxLua_wxSizerItem_constructor2(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 5, wxluatype_wxObject); - // int border - int border = (int)wxlua_getnumbertype(L, 4); - // int flag - int flag = (int)wxlua_getnumbertype(L, 3); - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 2); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // call constructor - wxSizerItem* returns = new wxSizerItem(sizer, proportion, flag, border, userData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizerItem_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_constructor1[1] = {{ wxLua_wxSizerItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxSizerItem_constructor1 }}; -// wxSizerItem(wxWindow* window, int proportion, int flag, int border, %ungc wxObject* userData); -static int LUACALL wxLua_wxSizerItem_constructor1(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 5, wxluatype_wxObject); - // int border - int border = (int)wxlua_getnumbertype(L, 4); - // int flag - int flag = (int)wxlua_getnumbertype(L, 3); - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 2); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // call constructor - wxSizerItem* returns = new wxSizerItem(window, proportion, flag, border, userData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizerItem_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizerItem_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_constructor[1] = {{ wxLua_wxSizerItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxSizerItem_constructor }}; -// wxSizerItem(int width, int height, int proportion, int flag, int border, %ungc wxObject* userData); -static int LUACALL wxLua_wxSizerItem_constructor(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject); - // int border - int border = (int)wxlua_getnumbertype(L, 5); - // int flag - int flag = (int)wxlua_getnumbertype(L, 4); - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 3); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // int width - int width = (int)wxlua_getnumbertype(L, 1); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // call constructor - wxSizerItem* returns = new wxSizerItem(width, height, proportion, flag, border, userData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_AssignSpacer_overload[] = -{ - { wxLua_wxSizerItem_AssignSpacer1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_AssignSpacer1 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizerItem_AssignSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_AssignSpacer }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxSizerItem_AssignSpacer_overload_count = sizeof(s_wxluafunc_wxLua_wxSizerItem_AssignSpacer_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetMinSize_overload[] = -{ - { wxLua_wxSizerItem_SetMinSize1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetMinSize1 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizerItem_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetMinSize }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxSizerItem_SetMinSize_overload_count = sizeof(s_wxluafunc_wxLua_wxSizerItem_SetMinSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetRatio_overload[] = -{ - { wxLua_wxSizerItem_SetRatio2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetRatio2 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizerItem_SetRatio1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetRatio1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizerItem_SetRatio, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetRatio }, -}; -static int s_wxluafunc_wxLua_wxSizerItem_SetRatio_overload_count = sizeof(s_wxluafunc_wxLua_wxSizerItem_SetRatio_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_SetSpacer_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { wxLua_wxSizerItem_SetSpacer1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizerItem_SetSpacer1 }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizerItem_SetSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_SetSpacer }, -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxSizerItem_SetSpacer_overload_count = sizeof(s_wxluafunc_wxLua_wxSizerItem_SetSpacer_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizerItem_constructor_overload[] = -{ - { wxLua_wxSizerItem_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_constructor4 }, - { wxLua_wxSizerItem_constructor3, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxSizerItem_constructor3 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizerItem_constructor2, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxSizerItem_constructor2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizerItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxSizerItem_constructor1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizerItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxSizerItem_constructor }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxSizerItem_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSizerItem_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - -void wxLua_wxSizerItem_delete_function(void** p) -{ - wxSizerItem* o = (wxSizerItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSizerItem_methods[] = { - { "AssignSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_AssignSizer, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - { "AssignSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_AssignSpacer_overload, s_wxluafunc_wxLua_wxSizerItem_AssignSpacer_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - - { "AssignWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_AssignWindow, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "CalcMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_CalcMin, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "DeleteWindows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_DeleteWindows, 1, NULL }, - { "DetachSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_DetachSizer, 1, NULL }, - { "GetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetBorder, 1, NULL }, - { "GetFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetFlag, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "GetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetMinSize, 1, NULL }, - { "GetMinSizeWithBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetMinSizeWithBorder, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetPosition, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "GetProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetProportion, 1, NULL }, - { "GetRatio", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetRatio, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "GetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetRect, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "GetSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetSizer, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "GetSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetSpacer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { "GetUserData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetUserData, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_GetWindow, 1, NULL }, - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_IsShown, 1, NULL }, - { "IsSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_IsSizer, 1, NULL }, - { "IsSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_IsSpacer, 1, NULL }, - { "IsWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_IsWindow, 1, NULL }, - { "SetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetBorder, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "SetDimension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetDimension, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "SetFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetFlag, 1, NULL }, - { "SetInitSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetInitSize, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetMinSize_overload, s_wxluafunc_wxLua_wxSizerItem_SetMinSize_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - - { "SetProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetProportion, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - { "SetRatio", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetRatio_overload, s_wxluafunc_wxLua_wxSizerItem_SetRatio_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect)) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "SetSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetSizer, 1, NULL }, -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect)) - { "SetSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetSpacer_overload, s_wxluafunc_wxLua_wxSizerItem_SetSpacer_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)))||(((!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { "SetUserData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetUserData, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "SetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_SetWindow, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizerItem_Show, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - { "wxSizerItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSizerItem_constructor_overload, s_wxluafunc_wxLua_wxSizerItem_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - - { 0, 0, 0, 0 }, -}; - -int wxSizerItem_methodCount = sizeof(wxSizerItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSizer' -int wxluatype_wxSizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Add5[] = { &wxluatype_wxSizer, &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizer_Add5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add5[1] = {{ wxLua_wxSizer_Add5, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Add5 }}; -// wxSizerItem* Add(wxSizerItem *item); -static int LUACALL wxLua_wxSizer_Add5(lua_State *L) -{ - // wxSizerItem item - wxSizerItem * item = (wxSizerItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizerItem); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Add4[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizer_Add4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add4[1] = {{ wxLua_wxSizer_Add4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Add4 }}; -// wxSizerItem* Add(wxSizer* sizer, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizer_Add4(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizerFlags); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(sizer, *flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Add3[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizer_Add3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add3[1] = {{ wxLua_wxSizer_Add3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Add3 }}; -// wxSizerItem* Add(wxWindow* window, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizer_Add3(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizerFlags); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(window, *flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Add2[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Add2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add2[1] = {{ wxLua_wxSizer_Add2, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Add2 }}; -// wxSizerItem* Add(int width, int height, int proportion = 0, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Add2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int flag = 0 - int flag = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int proportion = 0 - int proportion = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(width, height, proportion, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Add1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add1[1] = {{ wxLua_wxSizer_Add1, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Add1 }}; -// wxSizerItem* Add(wxSizer* sizer, int proportion = 0, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Add1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 6 ? (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int flag = 0 - int flag = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int proportion = 0 - int proportion = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(sizer, proportion, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Add[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add[1] = {{ wxLua_wxSizer_Add, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Add }}; -// wxSizerItem* Add(wxWindow* window, int proportion = 0,int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 6 ? (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int flag = 0 - int flag = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int proportion = 0 - int proportion = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(window, proportion, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_AddSpacer[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_AddSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_AddSpacer[1] = {{ wxLua_wxSizer_AddSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_AddSpacer }}; -// wxSizerItem* AddSpacer(int size); -static int LUACALL wxLua_wxSizer_AddSpacer(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call AddSpacer - wxSizerItem* returns = (wxSizerItem*)self->AddSpacer(size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_AddStretchSpacer[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_AddStretchSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_AddStretchSpacer[1] = {{ wxLua_wxSizer_AddStretchSpacer, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizer_AddStretchSpacer }}; -// wxSizerItem* AddStretchSpacer(int prop = 1); -static int LUACALL wxLua_wxSizer_AddStretchSpacer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int prop = 1 - int prop = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call AddStretchSpacer - wxSizerItem* returns = (wxSizerItem*)self->AddStretchSpacer(prop); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_CalcMin[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_CalcMin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_CalcMin[1] = {{ wxLua_wxSizer_CalcMin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_CalcMin }}; -// wxSize CalcMin(); -static int LUACALL wxLua_wxSizer_CalcMin(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call CalcMin - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->CalcMin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Clear[] = { &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Clear[1] = {{ wxLua_wxSizer_Clear, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizer_Clear }}; -// virtual void Clear(bool delete_windows = false); -static int LUACALL wxLua_wxSizer_Clear(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool delete_windows = false - bool delete_windows = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Clear - self->Clear(delete_windows); - - return 0; -} - - -#if (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_ComputeFittingClientSize[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_ComputeFittingClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_ComputeFittingClientSize[1] = {{ wxLua_wxSizer_ComputeFittingClientSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_ComputeFittingClientSize }}; -// wxSize ComputeFittingClientSize(wxWindow *window); -static int LUACALL wxLua_wxSizer_ComputeFittingClientSize(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call ComputeFittingClientSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->ComputeFittingClientSize(window)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_ComputeFittingWindowSize[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_ComputeFittingWindowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_ComputeFittingWindowSize[1] = {{ wxLua_wxSizer_ComputeFittingWindowSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_ComputeFittingWindowSize }}; -// wxSize ComputeFittingWindowSize(wxWindow *window); -static int LUACALL wxLua_wxSizer_ComputeFittingWindowSize(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call ComputeFittingWindowSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->ComputeFittingWindowSize(window)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_DeleteWindows[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_DeleteWindows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_DeleteWindows[1] = {{ wxLua_wxSizer_DeleteWindows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_DeleteWindows }}; -// virtual void DeleteWindows(); -static int LUACALL wxLua_wxSizer_DeleteWindows(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call DeleteWindows - self->DeleteWindows(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Detach2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSizer_Detach2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Detach2[1] = {{ wxLua_wxSizer_Detach2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Detach2 }}; -// bool Detach(size_t index); -static int LUACALL wxLua_wxSizer_Detach2(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Detach - bool returns = (self->Detach(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Detach1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_Detach1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Detach1[1] = {{ wxLua_wxSizer_Detach1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Detach1 }}; -// bool Detach(wxSizer* sizer); -static int LUACALL wxLua_wxSizer_Detach1(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Detach - bool returns = (self->Detach(sizer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Detach[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_Detach(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Detach[1] = {{ wxLua_wxSizer_Detach, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Detach }}; -// bool Detach(wxWindow* window); -static int LUACALL wxLua_wxSizer_Detach(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Detach - bool returns = (self->Detach(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Fit[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_Fit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Fit[1] = {{ wxLua_wxSizer_Fit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Fit }}; -// void Fit(wxWindow* window); -static int LUACALL wxLua_wxSizer_Fit(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Fit - self->Fit(window); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_FitInside[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_FitInside(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_FitInside[1] = {{ wxLua_wxSizer_FitInside, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_FitInside }}; -// void FitInside(wxWindow* window); -static int LUACALL wxLua_wxSizer_FitInside(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call FitInside - self->FitInside(window); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetChildren[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_GetChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetChildren[1] = {{ wxLua_wxSizer_GetChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_GetChildren }}; -// wxSizerItemList& GetChildren(); -static int LUACALL wxLua_wxSizer_GetChildren(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetChildren - wxSizerItemList* returns = (wxSizerItemList*)&self->GetChildren(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItemList); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetContainingWindow[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_GetContainingWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetContainingWindow[1] = {{ wxLua_wxSizer_GetContainingWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_GetContainingWindow }}; -// wxWindow *GetContainingWindow() const; -static int LUACALL wxLua_wxSizer_GetContainingWindow(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetContainingWindow - wxWindow* returns = (wxWindow*)self->GetContainingWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetItem2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSizer_GetItem2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetItem2[1] = {{ wxLua_wxSizer_GetItem2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_GetItem2 }}; -// wxSizerItem* GetItem(size_t index); -static int LUACALL wxLua_wxSizer_GetItem2(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetItem - wxSizerItem* returns = (wxSizerItem*)self->GetItem(index); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetItem1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_GetItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetItem1[1] = {{ wxLua_wxSizer_GetItem1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_GetItem1 }}; -// wxSizerItem* GetItem(wxSizer* sizer, bool recursive = false); -static int LUACALL wxLua_wxSizer_GetItem1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetItem - wxSizerItem* returns = (wxSizerItem*)self->GetItem(sizer, recursive); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetItem[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_GetItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetItem[1] = {{ wxLua_wxSizer_GetItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_GetItem }}; -// wxSizerItem* GetItem(wxWindow* window, bool recursive = false); -static int LUACALL wxLua_wxSizer_GetItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetItem - wxSizerItem* returns = (wxSizerItem*)self->GetItem(window, recursive); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetItemCount[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetItemCount[1] = {{ wxLua_wxSizer_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_GetItemCount }}; -// size_t GetItemCount() const; -static int LUACALL wxLua_wxSizer_GetItemCount(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetItemCount - size_t returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetMinSize[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_GetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetMinSize[1] = {{ wxLua_wxSizer_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_GetMinSize }}; -// wxSize GetMinSize(); -static int LUACALL wxLua_wxSizer_GetMinSize(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetMinSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMinSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetPosition[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetPosition[1] = {{ wxLua_wxSizer_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_GetPosition }}; -// wxPoint GetPosition(); -static int LUACALL wxLua_wxSizer_GetPosition(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_GetSize[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetSize[1] = {{ wxLua_wxSizer_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_GetSize }}; -// wxSize GetSize(); -static int LUACALL wxLua_wxSizer_GetSize(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Hide2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSizer_Hide2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Hide2[1] = {{ wxLua_wxSizer_Hide2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Hide2 }}; -// bool Hide(size_t index); -static int LUACALL wxLua_wxSizer_Hide2(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Hide - bool returns = (self->Hide(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Hide1[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Hide1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Hide1[1] = {{ wxLua_wxSizer_Hide1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_Hide1 }}; -// bool Hide(wxWindow *window, bool recursive = false); -static int LUACALL wxLua_wxSizer_Hide1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Hide - bool returns = (self->Hide(window, recursive)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Hide[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Hide(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Hide[1] = {{ wxLua_wxSizer_Hide, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_Hide }}; -// bool Hide(wxSizer *sizer, bool recursive = false); -static int LUACALL wxLua_wxSizer_Hide(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Hide - bool returns = (self->Hide(sizer, recursive)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Insert5[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizer_Insert5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert5[1] = {{ wxLua_wxSizer_Insert5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Insert5 }}; -// virtual wxSizerItem* Insert(size_t index, wxSizerItem *item); -static int LUACALL wxLua_wxSizer_Insert5(lua_State *L) -{ - // wxSizerItem item - wxSizerItem * item = (wxSizerItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizerItem); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Insert - wxSizerItem* returns = (wxSizerItem*)self->Insert(index, item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Insert4[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_wxSizer, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizer_Insert4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert4[1] = {{ wxLua_wxSizer_Insert4, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_Insert4 }}; -// wxSizerItem* Insert(size_t index, wxSizer* sizer, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizer_Insert4(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSizerFlags); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizer); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Insert - wxSizerItem* returns = (wxSizerItem*)self->Insert(index, sizer, *flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Insert3[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizer_Insert3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert3[1] = {{ wxLua_wxSizer_Insert3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_Insert3 }}; -// wxSizerItem* Insert(size_t index, wxWindow* window, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizer_Insert3(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSizerFlags); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Insert - wxSizerItem* returns = (wxSizerItem*)self->Insert(index, window, *flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Insert2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Insert2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert2[1] = {{ wxLua_wxSizer_Insert2, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxSizer_Insert2 }}; -// wxSizerItem* Insert(size_t index, int width, int height, int proportion = 0, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Insert2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 8 ? (wxObject *)wxluaT_getuserdatatype(L, 8, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // int flag = 0 - int flag = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int proportion = 0 - int proportion = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int height - int height = (int)wxlua_getnumbertype(L, 4); - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Insert - wxSizerItem* returns = (wxSizerItem*)self->Insert(index, width, height, proportion, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Insert1[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Insert1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert1[1] = {{ wxLua_wxSizer_Insert1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Insert1 }}; -// wxSizerItem* Insert(size_t index, wxSizer* sizer, int proportion = 0, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Insert1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int flag = 0 - int flag = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int proportion = 0 - int proportion = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizer); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Insert - wxSizerItem* returns = (wxSizerItem*)self->Insert(index, sizer, proportion, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Insert[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Insert(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert[1] = {{ wxLua_wxSizer_Insert, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Insert }}; -// wxSizerItem* Insert(size_t index, wxWindow* window, int proportion = 0,int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int flag = 0 - int flag = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int proportion = 0 - int proportion = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Insert - wxSizerItem* returns = (wxSizerItem*)self->Insert(index, window, proportion, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_InsertSpacer[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_InsertSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_InsertSpacer[1] = {{ wxLua_wxSizer_InsertSpacer, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_InsertSpacer }}; -// wxSizerItem* InsertSpacer(size_t index, int size); -static int LUACALL wxLua_wxSizer_InsertSpacer(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 3); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call InsertSpacer - wxSizerItem* returns = (wxSizerItem*)self->InsertSpacer(index, size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_InsertStretchSpacer[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_InsertStretchSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_InsertStretchSpacer[1] = {{ wxLua_wxSizer_InsertStretchSpacer, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_InsertStretchSpacer }}; -// wxSizerItem* InsertStretchSpacer(size_t index, int prop = 1); -static int LUACALL wxLua_wxSizer_InsertStretchSpacer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int prop = 1 - int prop = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call InsertStretchSpacer - wxSizerItem* returns = (wxSizerItem*)self->InsertStretchSpacer(index, prop); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_IsEmpty[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_IsEmpty[1] = {{ wxLua_wxSizer_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxSizer_IsEmpty(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_IsShown2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSizer_IsShown2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_IsShown2[1] = {{ wxLua_wxSizer_IsShown2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_IsShown2 }}; -// bool IsShown(size_t index) const; -static int LUACALL wxLua_wxSizer_IsShown2(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call IsShown - bool returns = (self->IsShown(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_IsShown1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_IsShown1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_IsShown1[1] = {{ wxLua_wxSizer_IsShown1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_IsShown1 }}; -// bool IsShown(wxSizer *sizer) const; -static int LUACALL wxLua_wxSizer_IsShown1(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call IsShown - bool returns = (self->IsShown(sizer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_IsShown[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_IsShown(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_IsShown[1] = {{ wxLua_wxSizer_IsShown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_IsShown }}; -// bool IsShown(wxWindow *window) const; -static int LUACALL wxLua_wxSizer_IsShown(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call IsShown - bool returns = (self->IsShown(window)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Layout[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Layout[1] = {{ wxLua_wxSizer_Layout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_Layout }}; -// void Layout(); -static int LUACALL wxLua_wxSizer_Layout(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Layout - self->Layout(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Prepend5[] = { &wxluatype_wxSizer, &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizer_Prepend5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend5[1] = {{ wxLua_wxSizer_Prepend5, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Prepend5 }}; -// wxSizerItem* Prepend(wxSizerItem *item); -static int LUACALL wxLua_wxSizer_Prepend5(lua_State *L) -{ - // wxSizerItem item - wxSizerItem * item = (wxSizerItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizerItem); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Prepend - wxSizerItem* returns = (wxSizerItem*)self->Prepend(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Prepend4[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizer_Prepend4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend4[1] = {{ wxLua_wxSizer_Prepend4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Prepend4 }}; -// wxSizerItem* Prepend(wxSizer* sizer, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizer_Prepend4(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizerFlags); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Prepend - wxSizerItem* returns = (wxSizerItem*)self->Prepend(sizer, *flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Prepend3[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_wxSizerFlags, NULL }; -static int LUACALL wxLua_wxSizer_Prepend3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend3[1] = {{ wxLua_wxSizer_Prepend3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Prepend3 }}; -// wxSizerItem* Prepend(wxWindow* window, const wxSizerFlags& flags); -static int LUACALL wxLua_wxSizer_Prepend3(lua_State *L) -{ - // const wxSizerFlags flags - const wxSizerFlags * flags = (const wxSizerFlags *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizerFlags); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Prepend - wxSizerItem* returns = (wxSizerItem*)self->Prepend(window, *flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Prepend2[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Prepend2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend2[1] = {{ wxLua_wxSizer_Prepend2, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Prepend2 }}; -// void Prepend(int width, int height, int proportion = 0, int flag = 0, int border= 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Prepend2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int flag = 0 - int flag = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int proportion = 0 - int proportion = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Prepend - self->Prepend(width, height, proportion, flag, border, userData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Prepend1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Prepend1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend1[1] = {{ wxLua_wxSizer_Prepend1, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Prepend1 }}; -// void Prepend(wxSizer* sizer, int proportion = 0, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Prepend1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 6 ? (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int flag = 0 - int flag = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int proportion = 0 - int proportion = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Prepend - self->Prepend(sizer, proportion, flag, border, userData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Prepend[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxSizer_Prepend(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend[1] = {{ wxLua_wxSizer_Prepend, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Prepend }}; -// void Prepend(wxWindow* window, int proportion = 0, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxSizer_Prepend(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 6 ? (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int flag = 0 - int flag = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int proportion = 0 - int proportion = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Prepend - self->Prepend(window, proportion, flag, border, userData); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_PrependSpacer[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_PrependSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_PrependSpacer[1] = {{ wxLua_wxSizer_PrependSpacer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_PrependSpacer }}; -// wxSizerItem* PrependSpacer(int size); -static int LUACALL wxLua_wxSizer_PrependSpacer(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call PrependSpacer - wxSizerItem* returns = (wxSizerItem*)self->PrependSpacer(size); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_PrependStretchSpacer[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_PrependStretchSpacer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_PrependStretchSpacer[1] = {{ wxLua_wxSizer_PrependStretchSpacer, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSizer_PrependStretchSpacer }}; -// wxSizerItem* PrependStretchSpacer(int prop = 1); -static int LUACALL wxLua_wxSizer_PrependStretchSpacer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int prop = 1 - int prop = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call PrependStretchSpacer - wxSizerItem* returns = (wxSizerItem*)self->PrependStretchSpacer(prop); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_RecalcSizes[] = { &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxSizer_RecalcSizes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_RecalcSizes[1] = {{ wxLua_wxSizer_RecalcSizes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSizer_RecalcSizes }}; -// void RecalcSizes(); -static int LUACALL wxLua_wxSizer_RecalcSizes(lua_State *L) -{ - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call RecalcSizes - self->RecalcSizes(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Replace2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_wxSizerItem, NULL }; -static int LUACALL wxLua_wxSizer_Replace2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Replace2[1] = {{ wxLua_wxSizer_Replace2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Replace2 }}; -// virtual bool Replace(size_t index, wxSizerItem *newitem); -static int LUACALL wxLua_wxSizer_Replace2(lua_State *L) -{ - // wxSizerItem newitem - wxSizerItem * newitem = (wxSizerItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizerItem); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Replace - bool returns = (self->Replace(index, newitem)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Replace1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Replace1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Replace1[1] = {{ wxLua_wxSizer_Replace1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSizer_Replace1 }}; -// virtual bool Replace(wxSizer *oldsz, wxSizer *newsz, bool recursive = false); -static int LUACALL wxLua_wxSizer_Replace1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // wxSizer newsz - wxSizer * newsz = (wxSizer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSizer); - // wxSizer oldsz - wxSizer * oldsz = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Replace - bool returns = (self->Replace(oldsz, newsz, recursive)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Replace[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Replace(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Replace[1] = {{ wxLua_wxSizer_Replace, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSizer_Replace }}; -// virtual bool Replace(wxWindow *oldwin, wxWindow *newwin, bool recursive = false); -static int LUACALL wxLua_wxSizer_Replace(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // wxWindow newwin - wxWindow * newwin = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxWindow oldwin - wxWindow * oldwin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Replace - bool returns = (self->Replace(oldwin, newwin, recursive)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetContainingWindow[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_SetContainingWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetContainingWindow[1] = {{ wxLua_wxSizer_SetContainingWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_SetContainingWindow }}; -// void SetContainingWindow(wxWindow *window); -static int LUACALL wxLua_wxSizer_SetContainingWindow(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetContainingWindow - self->SetContainingWindow(window); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetDimension[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_SetDimension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetDimension[1] = {{ wxLua_wxSizer_SetDimension, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxSizer_SetDimension }}; -// void SetDimension(int x, int y, int width, int height); -static int LUACALL wxLua_wxSizer_SetDimension(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 5); - // int width - int width = (int)wxlua_getnumbertype(L, 4); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetDimension - self->SetDimension(x, y, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize2[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_SetItemMinSize2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetItemMinSize2[1] = {{ wxLua_wxSizer_SetItemMinSize2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize2 }}; -// void SetItemMinSize(int pos, int width, int height); -static int LUACALL wxLua_wxSizer_SetItemMinSize2(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 4); - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetItemMinSize - self->SetItemMinSize(pos, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_SetItemMinSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetItemMinSize1[1] = {{ wxLua_wxSizer_SetItemMinSize1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize1 }}; -// void SetItemMinSize(wxSizer* sizer, int width, int height); -static int LUACALL wxLua_wxSizer_SetItemMinSize1(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 4); - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetItemMinSize - self->SetItemMinSize(sizer, width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_SetItemMinSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetItemMinSize[1] = {{ wxLua_wxSizer_SetItemMinSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize }}; -// void SetItemMinSize(wxWindow* window, int width, int height); -static int LUACALL wxLua_wxSizer_SetItemMinSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 4); - // int width - int width = (int)wxlua_getnumbertype(L, 3); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetItemMinSize - self->SetItemMinSize(window, width, height); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetMinSize1[] = { &wxluatype_wxSizer, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSizer_SetMinSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetMinSize1[1] = {{ wxLua_wxSizer_SetMinSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_SetMinSize1 }}; -// void SetMinSize(const wxSize& size); -static int LUACALL wxLua_wxSizer_SetMinSize1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetMinSize - self->SetMinSize(*size); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetMinSize[] = { &wxluatype_wxSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSizer_SetMinSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetMinSize[1] = {{ wxLua_wxSizer_SetMinSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_SetMinSize }}; -// void SetMinSize(int width, int height); -static int LUACALL wxLua_wxSizer_SetMinSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetMinSize - self->SetMinSize(width, height); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetSizeHints[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_SetSizeHints(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetSizeHints[1] = {{ wxLua_wxSizer_SetSizeHints, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_SetSizeHints }}; -// void SetSizeHints(wxWindow* window); -static int LUACALL wxLua_wxSizer_SetSizeHints(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetSizeHints - self->SetSizeHints(window); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_SetVirtualSizeHints[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSizer_SetVirtualSizeHints(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetVirtualSizeHints[1] = {{ wxLua_wxSizer_SetVirtualSizeHints, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_SetVirtualSizeHints }}; -// !%wxchkver_2_9 || %wxcompat_2_8 void SetVirtualSizeHints(wxWindow* window); -static int LUACALL wxLua_wxSizer_SetVirtualSizeHints(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call SetVirtualSizeHints - self->SetVirtualSizeHints(window); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Show2[] = { &wxluatype_wxSizer, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Show2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Show2[1] = {{ wxLua_wxSizer_Show2, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_Show2 }}; -// bool Show(size_t index, bool show = true); -static int LUACALL wxLua_wxSizer_Show2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Show - bool returns = (self->Show(index, show)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Show1[] = { &wxluatype_wxSizer, &wxluatype_wxSizer, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Show1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Show1[1] = {{ wxLua_wxSizer_Show1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxSizer_Show1 }}; -// bool Show(wxSizer* sizer, bool show = true, bool recursive = false); -static int LUACALL wxLua_wxSizer_Show1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // bool show = true - bool show = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Show - bool returns = (self->Show(sizer, show, recursive)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_Show[] = { &wxluatype_wxSizer, &wxluatype_wxWindow, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_Show(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Show[1] = {{ wxLua_wxSizer_Show, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxSizer_Show }}; -// bool Show(wxWindow* window, bool show = true, bool recursive = false); -static int LUACALL wxLua_wxSizer_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recursive = false - bool recursive = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // bool show = true - bool show = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call Show - bool returns = (self->Show(window, show, recursive)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSizer_ShowItems[] = { &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSizer_ShowItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_ShowItems[1] = {{ wxLua_wxSizer_ShowItems, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_ShowItems }}; -// virtual void ShowItems (bool show); -static int LUACALL wxLua_wxSizer_ShowItems(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxSizer * self = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - // call ShowItems - self->ShowItems(show); - - return 0; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Add_overload[] = -{ - { wxLua_wxSizer_Add5, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Add5 }, - { wxLua_wxSizer_Add4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Add4 }, - { wxLua_wxSizer_Add3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Add3 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Add2, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Add2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Add1, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Add1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Add, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Add }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxSizer_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Detach_overload[] = -{ - { wxLua_wxSizer_Detach2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Detach2 }, - { wxLua_wxSizer_Detach1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Detach1 }, - { wxLua_wxSizer_Detach, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Detach }, -}; -static int s_wxluafunc_wxLua_wxSizer_Detach_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Detach_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_GetItem_overload[] = -{ - { wxLua_wxSizer_GetItem2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_GetItem2 }, - { wxLua_wxSizer_GetItem1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_GetItem1 }, - { wxLua_wxSizer_GetItem, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_GetItem }, -}; -static int s_wxluafunc_wxLua_wxSizer_GetItem_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_GetItem_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Hide_overload[] = -{ - { wxLua_wxSizer_Hide2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Hide2 }, - { wxLua_wxSizer_Hide1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_Hide1 }, - { wxLua_wxSizer_Hide, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_Hide }, -}; -static int s_wxluafunc_wxLua_wxSizer_Hide_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Hide_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Insert_overload[] = -{ - { wxLua_wxSizer_Insert5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Insert5 }, - { wxLua_wxSizer_Insert4, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_Insert4 }, - { wxLua_wxSizer_Insert3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_Insert3 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Insert2, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxSizer_Insert2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Insert1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Insert1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Insert, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Insert }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxSizer_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Insert_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_IsShown_overload[] = -{ - { wxLua_wxSizer_IsShown2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_IsShown2 }, - { wxLua_wxSizer_IsShown1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_IsShown1 }, - { wxLua_wxSizer_IsShown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_IsShown }, -}; -static int s_wxluafunc_wxLua_wxSizer_IsShown_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_IsShown_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Prepend_overload[] = -{ - { wxLua_wxSizer_Prepend5, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_Prepend5 }, - { wxLua_wxSizer_Prepend4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Prepend4 }, - { wxLua_wxSizer_Prepend3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Prepend3 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Prepend2, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxSizer_Prepend2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Prepend1, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Prepend1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxSizer_Prepend, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxSizer_Prepend }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxSizer_Prepend_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Prepend_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Replace_overload[] = -{ - { wxLua_wxSizer_Replace2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_Replace2 }, - { wxLua_wxSizer_Replace1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSizer_Replace1 }, - { wxLua_wxSizer_Replace, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSizer_Replace }, -}; -static int s_wxluafunc_wxLua_wxSizer_Replace_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Replace_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetItemMinSize_overload[] = -{ - { wxLua_wxSizer_SetItemMinSize2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize2 }, - { wxLua_wxSizer_SetItemMinSize1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize1 }, - { wxLua_wxSizer_SetItemMinSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSizer_SetItemMinSize }, -}; -static int s_wxluafunc_wxLua_wxSizer_SetItemMinSize_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_SetItemMinSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_SetMinSize_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizer_SetMinSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSizer_SetMinSize1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxSizer_SetMinSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSizer_SetMinSize }, -}; -static int s_wxluafunc_wxLua_wxSizer_SetMinSize_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_SetMinSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSizer_Show_overload[] = -{ - { wxLua_wxSizer_Show2, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSizer_Show2 }, - { wxLua_wxSizer_Show1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxSizer_Show1 }, - { wxLua_wxSizer_Show, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxSizer_Show }, -}; -static int s_wxluafunc_wxLua_wxSizer_Show_overload_count = sizeof(s_wxluafunc_wxLua_wxSizer_Show_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -void wxLua_wxSizer_delete_function(void** p) -{ - wxSizer* o = (wxSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSizer_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Add_overload, s_wxluafunc_wxLua_wxSizer_Add_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - - { "AddSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_AddSpacer, 1, NULL }, - { "AddStretchSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_AddStretchSpacer, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "CalcMin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_CalcMin, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Clear, 1, NULL }, - -#if (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "ComputeFittingClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_ComputeFittingClientSize, 1, NULL }, - { "ComputeFittingWindowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_ComputeFittingWindowSize, 1, NULL }, -#endif // (((wxABI_VERSION >=20808 )) && (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "DeleteWindows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_DeleteWindows, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "Detach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Detach_overload, s_wxluafunc_wxLua_wxSizer_Detach_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "Fit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Fit, 1, NULL }, - { "FitInside", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_FitInside, 1, NULL }, - { "GetChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetChildren, 1, NULL }, - { "GetContainingWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetContainingWindow, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "GetItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetItem_overload, s_wxluafunc_wxLua_wxSizer_GetItem_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetItemCount, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "GetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetMinSize, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetPosition, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_GetSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "Hide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Hide_overload, s_wxluafunc_wxLua_wxSizer_Hide_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Insert_overload, s_wxluafunc_wxLua_wxSizer_Insert_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - - { "InsertSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_InsertSpacer, 1, NULL }, - { "InsertStretchSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_InsertStretchSpacer, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_IsEmpty, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_IsShown_overload, s_wxluafunc_wxLua_wxSizer_IsShown_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Layout, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - { "Prepend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Prepend_overload, s_wxluafunc_wxLua_wxSizer_Prepend_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - - { "PrependSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_PrependSpacer, 1, NULL }, - { "PrependStretchSpacer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_PrependStretchSpacer, 1, NULL }, - { "RecalcSizes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_RecalcSizes, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Replace_overload, s_wxluafunc_wxLua_wxSizer_Replace_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "SetContainingWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_SetContainingWindow, 1, NULL }, - { "SetDimension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_SetDimension, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "SetItemMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_SetItemMinSize_overload, s_wxluafunc_wxLua_wxSizer_SetItemMinSize_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_SetMinSize_overload, s_wxluafunc_wxLua_wxSizer_SetMinSize_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "SetSizeHints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_SetSizeHints, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "SetVirtualSizeHints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_SetVirtualSizeHints, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_Show_overload, s_wxluafunc_wxLua_wxSizer_Show_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "ShowItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSizer_ShowItems, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSizer_methodCount = sizeof(wxSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxSizerItemList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSizerItemList' -int wxluatype_wxSizerItemList = WXLUA_TUNKNOWN; - - - -void wxLua_wxSizerItemList_delete_function(void** p) -{ - wxSizerItemList* o = (wxSizerItemList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSizerItemList_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxSizerItemList_methodCount = sizeof(wxSizerItemList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxBoxSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBoxSizer' -int wxluatype_wxBoxSizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoxSizer_GetOrientation[] = { &wxluatype_wxBoxSizer, NULL }; -static int LUACALL wxLua_wxBoxSizer_GetOrientation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoxSizer_GetOrientation[1] = {{ wxLua_wxBoxSizer_GetOrientation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBoxSizer_GetOrientation }}; -// int GetOrientation(); -static int LUACALL wxLua_wxBoxSizer_GetOrientation(lua_State *L) -{ - // get this - wxBoxSizer * self = (wxBoxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBoxSizer); - // call GetOrientation - int returns = (self->GetOrientation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoxSizer_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBoxSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoxSizer_constructor[1] = {{ wxLua_wxBoxSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxBoxSizer_constructor }}; -// wxBoxSizer(int orient); -static int LUACALL wxLua_wxBoxSizer_constructor(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxBoxSizer* returns = new wxBoxSizer(orient); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBoxSizer); - - return 1; -} - - - - -void wxLua_wxBoxSizer_delete_function(void** p) -{ - wxBoxSizer* o = (wxBoxSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBoxSizer_methods[] = { - { "GetOrientation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBoxSizer_GetOrientation, 1, NULL }, - { "wxBoxSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBoxSizer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBoxSizer_methodCount = sizeof(wxBoxSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxGridSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridSizer' -int wxluatype_wxGridSizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_GetCols[] = { &wxluatype_wxGridSizer, NULL }; -static int LUACALL wxLua_wxGridSizer_GetCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_GetCols[1] = {{ wxLua_wxGridSizer_GetCols, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizer_GetCols }}; -// int GetCols(); -static int LUACALL wxLua_wxGridSizer_GetCols(lua_State *L) -{ - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call GetCols - int returns = (self->GetCols()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_GetHGap[] = { &wxluatype_wxGridSizer, NULL }; -static int LUACALL wxLua_wxGridSizer_GetHGap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_GetHGap[1] = {{ wxLua_wxGridSizer_GetHGap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizer_GetHGap }}; -// int GetHGap(); -static int LUACALL wxLua_wxGridSizer_GetHGap(lua_State *L) -{ - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call GetHGap - int returns = (self->GetHGap()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_GetRows[] = { &wxluatype_wxGridSizer, NULL }; -static int LUACALL wxLua_wxGridSizer_GetRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_GetRows[1] = {{ wxLua_wxGridSizer_GetRows, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizer_GetRows }}; -// int GetRows(); -static int LUACALL wxLua_wxGridSizer_GetRows(lua_State *L) -{ - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call GetRows - int returns = (self->GetRows()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_GetVGap[] = { &wxluatype_wxGridSizer, NULL }; -static int LUACALL wxLua_wxGridSizer_GetVGap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_GetVGap[1] = {{ wxLua_wxGridSizer_GetVGap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridSizer_GetVGap }}; -// int GetVGap(); -static int LUACALL wxLua_wxGridSizer_GetVGap(lua_State *L) -{ - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call GetVGap - int returns = (self->GetVGap()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_SetCols[] = { &wxluatype_wxGridSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridSizer_SetCols(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_SetCols[1] = {{ wxLua_wxGridSizer_SetCols, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridSizer_SetCols }}; -// void SetCols(int cols); -static int LUACALL wxLua_wxGridSizer_SetCols(lua_State *L) -{ - // int cols - int cols = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call SetCols - self->SetCols(cols); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_SetHGap[] = { &wxluatype_wxGridSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridSizer_SetHGap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_SetHGap[1] = {{ wxLua_wxGridSizer_SetHGap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridSizer_SetHGap }}; -// void SetHGap(int gap); -static int LUACALL wxLua_wxGridSizer_SetHGap(lua_State *L) -{ - // int gap - int gap = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call SetHGap - self->SetHGap(gap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_SetRows[] = { &wxluatype_wxGridSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridSizer_SetRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_SetRows[1] = {{ wxLua_wxGridSizer_SetRows, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridSizer_SetRows }}; -// void SetRows(int rows); -static int LUACALL wxLua_wxGridSizer_SetRows(lua_State *L) -{ - // int rows - int rows = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call SetRows - self->SetRows(rows); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_SetVGap[] = { &wxluatype_wxGridSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridSizer_SetVGap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_SetVGap[1] = {{ wxLua_wxGridSizer_SetVGap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridSizer_SetVGap }}; -// void SetVGap(int gap); -static int LUACALL wxLua_wxGridSizer_SetVGap(lua_State *L) -{ - // int gap - int gap = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridSizer * self = (wxGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridSizer); - // call SetVGap - self->SetVGap(gap); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridSizer_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridSizer_constructor[1] = {{ wxLua_wxGridSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxGridSizer_constructor }}; -// wxGridSizer(int cols, int rows, int vgap, int hgap); -static int LUACALL wxLua_wxGridSizer_constructor(lua_State *L) -{ - // int hgap - int hgap = (int)wxlua_getnumbertype(L, 4); - // int vgap - int vgap = (int)wxlua_getnumbertype(L, 3); - // int rows - int rows = (int)wxlua_getnumbertype(L, 2); - // int cols - int cols = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxGridSizer* returns = new wxGridSizer(cols, rows, vgap, hgap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridSizer); - - return 1; -} - - - - -void wxLua_wxGridSizer_delete_function(void** p) -{ - wxGridSizer* o = (wxGridSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridSizer_methods[] = { - { "GetCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_GetCols, 1, NULL }, - { "GetHGap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_GetHGap, 1, NULL }, - { "GetRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_GetRows, 1, NULL }, - { "GetVGap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_GetVGap, 1, NULL }, - { "SetCols", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_SetCols, 1, NULL }, - { "SetHGap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_SetHGap, 1, NULL }, - { "SetRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_SetRows, 1, NULL }, - { "SetVGap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridSizer_SetVGap, 1, NULL }, - { "wxGridSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridSizer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridSizer_methodCount = sizeof(wxGridSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxFlexGridSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFlexGridSizer' -int wxluatype_wxFlexGridSizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_AddGrowableCol[] = { &wxluatype_wxFlexGridSizer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_AddGrowableCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_AddGrowableCol[1] = {{ wxLua_wxFlexGridSizer_AddGrowableCol, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFlexGridSizer_AddGrowableCol }}; -// void AddGrowableCol(size_t idx, int proportion = 0); -static int LUACALL wxLua_wxFlexGridSizer_AddGrowableCol(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int proportion = 0 - int proportion = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call AddGrowableCol - self->AddGrowableCol(idx, proportion); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_AddGrowableRow[] = { &wxluatype_wxFlexGridSizer, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_AddGrowableRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_AddGrowableRow[1] = {{ wxLua_wxFlexGridSizer_AddGrowableRow, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFlexGridSizer_AddGrowableRow }}; -// void AddGrowableRow(size_t idx, int proportion = 0); -static int LUACALL wxLua_wxFlexGridSizer_AddGrowableRow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int proportion = 0 - int proportion = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call AddGrowableRow - self->AddGrowableRow(idx, proportion); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_GetFlexibleDirection[] = { &wxluatype_wxFlexGridSizer, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_GetFlexibleDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_GetFlexibleDirection[1] = {{ wxLua_wxFlexGridSizer_GetFlexibleDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFlexGridSizer_GetFlexibleDirection }}; -// int GetFlexibleDirection() const; -static int LUACALL wxLua_wxFlexGridSizer_GetFlexibleDirection(lua_State *L) -{ - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call GetFlexibleDirection - int returns = (self->GetFlexibleDirection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode[] = { &wxluatype_wxFlexGridSizer, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode[1] = {{ wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode }}; -// wxFlexSizerGrowMode GetNonFlexibleGrowMode() const; -static int LUACALL wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode(lua_State *L) -{ - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call GetNonFlexibleGrowMode - wxFlexSizerGrowMode returns = (self->GetNonFlexibleGrowMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_RemoveGrowableCol[] = { &wxluatype_wxFlexGridSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_RemoveGrowableCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_RemoveGrowableCol[1] = {{ wxLua_wxFlexGridSizer_RemoveGrowableCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFlexGridSizer_RemoveGrowableCol }}; -// void RemoveGrowableCol(size_t idx); -static int LUACALL wxLua_wxFlexGridSizer_RemoveGrowableCol(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call RemoveGrowableCol - self->RemoveGrowableCol(idx); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_RemoveGrowableRow[] = { &wxluatype_wxFlexGridSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_RemoveGrowableRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_RemoveGrowableRow[1] = {{ wxLua_wxFlexGridSizer_RemoveGrowableRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFlexGridSizer_RemoveGrowableRow }}; -// void RemoveGrowableRow(size_t idx); -static int LUACALL wxLua_wxFlexGridSizer_RemoveGrowableRow(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call RemoveGrowableRow - self->RemoveGrowableRow(idx); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_SetFlexibleDirection[] = { &wxluatype_wxFlexGridSizer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_SetFlexibleDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_SetFlexibleDirection[1] = {{ wxLua_wxFlexGridSizer_SetFlexibleDirection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFlexGridSizer_SetFlexibleDirection }}; -// void SetFlexibleDirection(int direction); -static int LUACALL wxLua_wxFlexGridSizer_SetFlexibleDirection(lua_State *L) -{ - // int direction - int direction = (int)wxlua_getnumbertype(L, 2); - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call SetFlexibleDirection - self->SetFlexibleDirection(direction); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode[] = { &wxluatype_wxFlexGridSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode[1] = {{ wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode }}; -// void SetNonFlexibleGrowMode(wxFlexSizerGrowMode mode); -static int LUACALL wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode(lua_State *L) -{ - // wxFlexSizerGrowMode mode - wxFlexSizerGrowMode mode = (wxFlexSizerGrowMode)wxlua_getenumtype(L, 2); - // get this - wxFlexGridSizer * self = (wxFlexGridSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlexGridSizer); - // call SetNonFlexibleGrowMode - self->SetNonFlexibleGrowMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlexGridSizer_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlexGridSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlexGridSizer_constructor[1] = {{ wxLua_wxFlexGridSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxFlexGridSizer_constructor }}; -// wxFlexGridSizer(int rows, int cols, int vgap=0, int hgap=0); -static int LUACALL wxLua_wxFlexGridSizer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int hgap = 0 - int hgap = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int vgap = 0 - int vgap = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int cols - int cols = (int)wxlua_getnumbertype(L, 2); - // int rows - int rows = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxFlexGridSizer* returns = new wxFlexGridSizer(rows, cols, vgap, hgap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFlexGridSizer); - - return 1; -} - - - - -void wxLua_wxFlexGridSizer_delete_function(void** p) -{ - wxFlexGridSizer* o = (wxFlexGridSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFlexGridSizer_methods[] = { - { "AddGrowableCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_AddGrowableCol, 1, NULL }, - { "AddGrowableRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_AddGrowableRow, 1, NULL }, - { "GetFlexibleDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_GetFlexibleDirection, 1, NULL }, - { "GetNonFlexibleGrowMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_GetNonFlexibleGrowMode, 1, NULL }, - { "RemoveGrowableCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_RemoveGrowableCol, 1, NULL }, - { "RemoveGrowableRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_RemoveGrowableRow, 1, NULL }, - { "SetFlexibleDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_SetFlexibleDirection, 1, NULL }, - { "SetNonFlexibleGrowMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlexGridSizer_SetNonFlexibleGrowMode, 1, NULL }, - { "wxFlexGridSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFlexGridSizer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFlexGridSizer_methodCount = sizeof(wxFlexGridSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxGridBagSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGridBagSizer' -int wxluatype_wxGridBagSizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_Add3[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGridBagSizer_Add3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_Add3[1] = {{ wxLua_wxGridBagSizer_Add3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_Add3 }}; -// wxSizerItem* Add(wxGBSizerItem* item); -static int LUACALL wxLua_wxGridBagSizer_Add3(lua_State *L) -{ - // wxGBSizerItem item - wxGBSizerItem * item = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBSizerItem); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_Add2[] = { &wxluatype_wxGridBagSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGridBagSizer_Add2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_Add2[1] = {{ wxLua_wxGridBagSizer_Add2, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxGridBagSizer_Add2 }}; -// wxSizerItem* Add(int width, int height, const wxGBPosition& pos, const wxGBSpan& span = wxDefaultSpan, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxGridBagSizer_Add2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 8 ? (wxObject *)wxluaT_getuserdatatype(L, 8, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // int flag = 0 - int flag = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // const wxGBSpan span = wxDefaultSpan - const wxGBSpan * span = (argCount >= 5 ? (const wxGBSpan *)wxluaT_getuserdatatype(L, 5, wxluatype_wxGBSpan) : &wxDefaultSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGBPosition); - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(width, height, *pos, *span, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_Add1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSizer, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGridBagSizer_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_Add1[1] = {{ wxLua_wxGridBagSizer_Add1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxGridBagSizer_Add1 }}; -// wxSizerItem* Add(wxSizer* sizer, const wxGBPosition& pos, const wxGBSpan& span = wxDefaultSpan, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxGridBagSizer_Add1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int flag = 0 - int flag = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxGBSpan span = wxDefaultSpan - const wxGBSpan * span = (argCount >= 4 ? (const wxGBSpan *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGBSpan) : &wxDefaultSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBPosition); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(sizer, *pos, *span, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_Add[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxWindow, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGridBagSizer_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_Add[1] = {{ wxLua_wxGridBagSizer_Add, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxGridBagSizer_Add }}; -// wxSizerItem* Add(wxWindow* window, const wxGBPosition& pos, const wxGBSpan& span = wxDefaultSpan, int flag = 0, int border = 0, %ungc wxObject* userData = NULL); -static int LUACALL wxLua_wxGridBagSizer_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject userData = NULL - wxObject * userData = (argCount >= 7 ? (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject) : NULL); - // int border = 0 - int border = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int flag = 0 - int flag = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxGBSpan span = wxDefaultSpan - const wxGBSpan * span = (argCount >= 4 ? (const wxGBSpan *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGBSpan) : &wxDefaultSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBPosition); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call Add - wxSizerItem* returns = (wxSizerItem*)self->Add(window, *pos, *span, flag, border, userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_CheckForIntersection1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGridBagSizer_CheckForIntersection1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection1[1] = {{ wxLua_wxGridBagSizer_CheckForIntersection1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGridBagSizer_CheckForIntersection1 }}; -// bool CheckForIntersection(const wxGBPosition& pos, const wxGBSpan& span, wxGBSizerItem* excludeItem = NULL); -static int LUACALL wxLua_wxGridBagSizer_CheckForIntersection1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxGBSizerItem excludeItem = NULL - wxGBSizerItem * excludeItem = (argCount >= 4 ? (wxGBSizerItem *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGBSizerItem) : NULL); - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call CheckForIntersection - bool returns = (self->CheckForIntersection(*pos, *span, excludeItem)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_CheckForIntersection[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxGBSizerItem, &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGridBagSizer_CheckForIntersection(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection[1] = {{ wxLua_wxGridBagSizer_CheckForIntersection, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_CheckForIntersection }}; -// bool CheckForIntersection(wxGBSizerItem* item, wxGBSizerItem* excludeItem = NULL); -static int LUACALL wxLua_wxGridBagSizer_CheckForIntersection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxGBSizerItem excludeItem = NULL - wxGBSizerItem * excludeItem = (argCount >= 3 ? (wxGBSizerItem *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSizerItem) : NULL); - // wxGBSizerItem item - wxGBSizerItem * item = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBSizerItem); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call CheckForIntersection - bool returns = (self->CheckForIntersection(item, excludeItem)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_FindItem1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxGridBagSizer_FindItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_FindItem1[1] = {{ wxLua_wxGridBagSizer_FindItem1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItem1 }}; -// wxGBSizerItem* FindItem(wxSizer* sizer); -static int LUACALL wxLua_wxGridBagSizer_FindItem1(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call FindItem - wxGBSizerItem* returns = (wxGBSizerItem*)self->FindItem(sizer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_FindItem[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxGridBagSizer_FindItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_FindItem[1] = {{ wxLua_wxGridBagSizer_FindItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItem }}; -// wxGBSizerItem* FindItem(wxWindow* window); -static int LUACALL wxLua_wxGridBagSizer_FindItem(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call FindItem - wxGBSizerItem* returns = (wxGBSizerItem*)self->FindItem(window); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_FindItemAtPoint[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxGridBagSizer_FindItemAtPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_FindItemAtPoint[1] = {{ wxLua_wxGridBagSizer_FindItemAtPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItemAtPoint }}; -// wxGBSizerItem* FindItemAtPoint(const wxPoint& pt); -static int LUACALL wxLua_wxGridBagSizer_FindItemAtPoint(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call FindItemAtPoint - wxGBSizerItem* returns = (wxGBSizerItem*)self->FindItemAtPoint(*pt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_FindItemAtPosition[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGridBagSizer_FindItemAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_FindItemAtPosition[1] = {{ wxLua_wxGridBagSizer_FindItemAtPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItemAtPosition }}; -// wxGBSizerItem* FindItemAtPosition(const wxGBPosition& pos); -static int LUACALL wxLua_wxGridBagSizer_FindItemAtPosition(lua_State *L) -{ - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call FindItemAtPosition - wxGBSizerItem* returns = (wxGBSizerItem*)self->FindItemAtPosition(*pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_FindItemWithData[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGridBagSizer_FindItemWithData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_FindItemWithData[1] = {{ wxLua_wxGridBagSizer_FindItemWithData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItemWithData }}; -// wxGBSizerItem* FindItemWithData(const wxObject* userData); -static int LUACALL wxLua_wxGridBagSizer_FindItemWithData(lua_State *L) -{ - // const wxObject userData - const wxObject * userData = (const wxObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxObject); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call FindItemWithData - wxGBSizerItem* returns = (wxGBSizerItem*)self->FindItemWithData(userData); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetCellSize[] = { &wxluatype_wxGridBagSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetCellSize[1] = {{ wxLua_wxGridBagSizer_GetCellSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_GetCellSize }}; -// wxSize GetCellSize(int row, int col) const; -static int LUACALL wxLua_wxGridBagSizer_GetCellSize(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetCellSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetCellSize(row, col)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetEmptyCellSize[] = { &wxluatype_wxGridBagSizer, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetEmptyCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetEmptyCellSize[1] = {{ wxLua_wxGridBagSizer_GetEmptyCellSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGridBagSizer_GetEmptyCellSize }}; -// wxSize GetEmptyCellSize() const; -static int LUACALL wxLua_wxGridBagSizer_GetEmptyCellSize(lua_State *L) -{ - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetEmptyCellSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetEmptyCellSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition2[] = { &wxluatype_wxGridBagSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetItemPosition2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition2[1] = {{ wxLua_wxGridBagSizer_GetItemPosition2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition2 }}; -// wxGBPosition GetItemPosition(size_t index); -static int LUACALL wxLua_wxGridBagSizer_GetItemPosition2(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetItemPosition - // allocate a new object using the copy constructor - wxGBPosition* returns = new wxGBPosition(self->GetItemPosition(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetItemPosition1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition1[1] = {{ wxLua_wxGridBagSizer_GetItemPosition1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition1 }}; -// wxGBPosition GetItemPosition(wxSizer* sizer); -static int LUACALL wxLua_wxGridBagSizer_GetItemPosition1(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetItemPosition - // allocate a new object using the copy constructor - wxGBPosition* returns = new wxGBPosition(self->GetItemPosition(sizer)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetItemPosition(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition[1] = {{ wxLua_wxGridBagSizer_GetItemPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition }}; -// wxGBPosition GetItemPosition(wxWindow* window); -static int LUACALL wxLua_wxGridBagSizer_GetItemPosition(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetItemPosition - // allocate a new object using the copy constructor - wxGBPosition* returns = new wxGBPosition(self->GetItemPosition(window)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan2[] = { &wxluatype_wxGridBagSizer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetItemSpan2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan2[1] = {{ wxLua_wxGridBagSizer_GetItemSpan2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan2 }}; -// wxGBSpan GetItemSpan(size_t index); -static int LUACALL wxLua_wxGridBagSizer_GetItemSpan2(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetItemSpan - // allocate a new object using the copy constructor - wxGBSpan* returns = new wxGBSpan(self->GetItemSpan(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetItemSpan1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan1[1] = {{ wxLua_wxGridBagSizer_GetItemSpan1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan1 }}; -// wxGBSpan GetItemSpan(wxSizer* sizer); -static int LUACALL wxLua_wxGridBagSizer_GetItemSpan1(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetItemSpan - // allocate a new object using the copy constructor - wxGBSpan* returns = new wxGBSpan(self->GetItemSpan(sizer)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxGridBagSizer_GetItemSpan(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan[1] = {{ wxLua_wxGridBagSizer_GetItemSpan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan }}; -// wxGBSpan GetItemSpan(wxWindow* window); -static int LUACALL wxLua_wxGridBagSizer_GetItemSpan(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call GetItemSpan - // allocate a new object using the copy constructor - wxGBSpan* returns = new wxGBSpan(self->GetItemSpan(window)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSpan); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetEmptyCellSize[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetEmptyCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetEmptyCellSize[1] = {{ wxLua_wxGridBagSizer_SetEmptyCellSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_SetEmptyCellSize }}; -// void SetEmptyCellSize(const wxSize& sz); -static int LUACALL wxLua_wxGridBagSizer_SetEmptyCellSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetEmptyCellSize - self->SetEmptyCellSize(*sz); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition2[] = { &wxluatype_wxGridBagSizer, &wxluatype_TINTEGER, &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetItemPosition2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition2[1] = {{ wxLua_wxGridBagSizer_SetItemPosition2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition2 }}; -// bool SetItemPosition(size_t index, const wxGBPosition& pos); -static int LUACALL wxLua_wxGridBagSizer_SetItemPosition2(lua_State *L) -{ - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBPosition); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetItemPosition - bool returns = (self->SetItemPosition(index, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSizer, &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetItemPosition1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition1[1] = {{ wxLua_wxGridBagSizer_SetItemPosition1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition1 }}; -// bool SetItemPosition(wxSizer* sizer, const wxGBPosition& pos); -static int LUACALL wxLua_wxGridBagSizer_SetItemPosition1(lua_State *L) -{ - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBPosition); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetItemPosition - bool returns = (self->SetItemPosition(sizer, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxWindow, &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetItemPosition(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition[1] = {{ wxLua_wxGridBagSizer_SetItemPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition }}; -// bool SetItemPosition(wxWindow* window, const wxGBPosition& pos); -static int LUACALL wxLua_wxGridBagSizer_SetItemPosition(lua_State *L) -{ - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBPosition); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetItemPosition - bool returns = (self->SetItemPosition(window, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan2[] = { &wxluatype_wxGridBagSizer, &wxluatype_TINTEGER, &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetItemSpan2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan2[1] = {{ wxLua_wxGridBagSizer_SetItemSpan2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan2 }}; -// bool SetItemSpan(size_t index, const wxGBSpan& span); -static int LUACALL wxLua_wxGridBagSizer_SetItemSpan2(lua_State *L) -{ - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetItemSpan - bool returns = (self->SetItemSpan(index, *span)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan1[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxSizer, &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetItemSpan1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan1[1] = {{ wxLua_wxGridBagSizer_SetItemSpan1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan1 }}; -// bool SetItemSpan(wxSizer* sizer, const wxGBSpan& span); -static int LUACALL wxLua_wxGridBagSizer_SetItemSpan1(lua_State *L) -{ - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetItemSpan - bool returns = (self->SetItemSpan(sizer, *span)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan[] = { &wxluatype_wxGridBagSizer, &wxluatype_wxWindow, &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGridBagSizer_SetItemSpan(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan[1] = {{ wxLua_wxGridBagSizer_SetItemSpan, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan }}; -// bool SetItemSpan(wxWindow* window, const wxGBSpan& span); -static int LUACALL wxLua_wxGridBagSizer_SetItemSpan(lua_State *L) -{ - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxGridBagSizer * self = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGridBagSizer); - // call SetItemSpan - bool returns = (self->SetItemSpan(window, *span)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGridBagSizer_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGridBagSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_constructor[1] = {{ wxLua_wxGridBagSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_constructor }}; -// wxGridBagSizer(int vgap=0, int hgap=0); -static int LUACALL wxLua_wxGridBagSizer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int hgap = 0 - int hgap = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int vgap = 0 - int vgap = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxGridBagSizer* returns = new wxGridBagSizer(vgap, hgap); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridBagSizer); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_Add_overload[] = -{ - { wxLua_wxGridBagSizer_Add3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_Add3 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGridBagSizer_Add2, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxGridBagSizer_Add2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGridBagSizer_Add1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxGridBagSizer_Add1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGridBagSizer_Add, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxGridBagSizer_Add }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection_overload[] = -{ - { wxLua_wxGridBagSizer_CheckForIntersection1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxGridBagSizer_CheckForIntersection1 }, - { wxLua_wxGridBagSizer_CheckForIntersection, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_CheckForIntersection }, -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_FindItem_overload[] = -{ - { wxLua_wxGridBagSizer_FindItem1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItem1 }, - { wxLua_wxGridBagSizer_FindItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_FindItem }, -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_FindItem_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_FindItem_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition_overload[] = -{ - { wxLua_wxGridBagSizer_GetItemPosition2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition2 }, - { wxLua_wxGridBagSizer_GetItemPosition1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition1 }, - { wxLua_wxGridBagSizer_GetItemPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemPosition }, -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan_overload[] = -{ - { wxLua_wxGridBagSizer_GetItemSpan2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan2 }, - { wxLua_wxGridBagSizer_GetItemSpan1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan1 }, - { wxLua_wxGridBagSizer_GetItemSpan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGridBagSizer_GetItemSpan }, -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition_overload[] = -{ - { wxLua_wxGridBagSizer_SetItemPosition2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition2 }, - { wxLua_wxGridBagSizer_SetItemPosition1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition1 }, - { wxLua_wxGridBagSizer_SetItemPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemPosition }, -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan_overload[] = -{ - { wxLua_wxGridBagSizer_SetItemSpan2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan2 }, - { wxLua_wxGridBagSizer_SetItemSpan1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan1 }, - { wxLua_wxGridBagSizer_SetItemSpan, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGridBagSizer_SetItemSpan }, -}; -static int s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan_overload_count = sizeof(s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -void wxLua_wxGridBagSizer_delete_function(void** p) -{ - wxGridBagSizer* o = (wxGridBagSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGridBagSizer_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_Add_overload, s_wxluafunc_wxLua_wxGridBagSizer_Add_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "CheckForIntersection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection_overload, s_wxluafunc_wxLua_wxGridBagSizer_CheckForIntersection_overload_count, 0 }, - { "FindItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_FindItem_overload, s_wxluafunc_wxLua_wxGridBagSizer_FindItem_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "FindItemAtPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_FindItemAtPoint, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - - { "FindItemAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_FindItemAtPosition, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { "FindItemWithData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_FindItemWithData, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "GetCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_GetCellSize, 1, NULL }, - { "GetEmptyCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_GetEmptyCellSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "GetItemPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition_overload, s_wxluafunc_wxLua_wxGridBagSizer_GetItemPosition_overload_count, 0 }, - { "GetItemSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan_overload, s_wxluafunc_wxLua_wxGridBagSizer_GetItemSpan_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - { "SetEmptyCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_SetEmptyCellSize, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "SetItemPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition_overload, s_wxluafunc_wxLua_wxGridBagSizer_SetItemPosition_overload_count, 0 }, - { "SetItemSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan_overload, s_wxluafunc_wxLua_wxGridBagSizer_SetItemSpan_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "wxGridBagSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGridBagSizer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGridBagSizer_methodCount = sizeof(wxGridBagSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxGBPosition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGBPosition' -int wxluatype_wxGBPosition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_GetCol[] = { &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGBPosition_GetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_GetCol[1] = {{ wxLua_wxGBPosition_GetCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBPosition_GetCol }}; -// int GetCol() const; -static int LUACALL wxLua_wxGBPosition_GetCol(lua_State *L) -{ - // get this - wxGBPosition * self = (wxGBPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBPosition); - // call GetCol - int returns = (self->GetCol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_GetRow[] = { &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGBPosition_GetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_GetRow[1] = {{ wxLua_wxGBPosition_GetRow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBPosition_GetRow }}; -// int GetRow() const; -static int LUACALL wxLua_wxGBPosition_GetRow(lua_State *L) -{ - // get this - wxGBPosition * self = (wxGBPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBPosition); - // call GetRow - int returns = (self->GetRow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_SetCol[] = { &wxluatype_wxGBPosition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGBPosition_SetCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_SetCol[1] = {{ wxLua_wxGBPosition_SetCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBPosition_SetCol }}; -// void SetCol(int col); -static int LUACALL wxLua_wxGBPosition_SetCol(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 2); - // get this - wxGBPosition * self = (wxGBPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBPosition); - // call SetCol - self->SetCol(col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_SetRow[] = { &wxluatype_wxGBPosition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGBPosition_SetRow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_SetRow[1] = {{ wxLua_wxGBPosition_SetRow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBPosition_SetRow }}; -// void SetRow(int row); -static int LUACALL wxLua_wxGBPosition_SetRow(lua_State *L) -{ - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxGBPosition * self = (wxGBPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBPosition); - // call SetRow - self->SetRow(row); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_delete[] = { &wxluatype_wxGBPosition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGBPosition_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_op_eq[] = { &wxluatype_wxGBPosition, &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGBPosition_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_op_eq[1] = {{ wxLua_wxGBPosition_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBPosition_op_eq }}; -// bool operator==(const wxGBPosition& p) const; -static int LUACALL wxLua_wxGBPosition_op_eq(lua_State *L) -{ - // const wxGBPosition p - const wxGBPosition * p = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // get this - wxGBPosition * self = (wxGBPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBPosition); - // call op_eq - bool returns = ((*self)==(*p)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_constructor1[] = { &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGBPosition_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_constructor1[1] = {{ wxLua_wxGBPosition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGBPosition_constructor1 }}; -// wxGBPosition(const wxGBPosition& pos); -static int LUACALL wxLua_wxGBPosition_constructor1(lua_State *L) -{ - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBPosition); - // call constructor - wxGBPosition* returns = new wxGBPosition(*pos); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBPosition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBPosition_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGBPosition_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_constructor[1] = {{ wxLua_wxGBPosition_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGBPosition_constructor }}; -// wxGBPosition(int row=0, int col=0); -static int LUACALL wxLua_wxGBPosition_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int col = 0 - int col = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // int row = 0 - int row = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxGBPosition* returns = new wxGBPosition(row, col); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBPosition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBPosition); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBPosition_constructor_overload[] = -{ - { wxLua_wxGBPosition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGBPosition_constructor1 }, - { wxLua_wxGBPosition_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGBPosition_constructor }, -}; -static int s_wxluafunc_wxLua_wxGBPosition_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGBPosition_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -void wxLua_wxGBPosition_delete_function(void** p) -{ - wxGBPosition* o = (wxGBPosition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGBPosition_methods[] = { - { "GetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBPosition_GetCol, 1, NULL }, - { "GetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBPosition_GetRow, 1, NULL }, - { "SetCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBPosition_SetCol, 1, NULL }, - { "SetRow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBPosition_SetRow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGBPosition_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBPosition_op_eq, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "wxGBPosition", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGBPosition_constructor_overload, s_wxluafunc_wxLua_wxGBPosition_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { 0, 0, 0, 0 }, -}; - -int wxGBPosition_methodCount = sizeof(wxGBPosition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxGBSpan -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGBSpan' -int wxluatype_wxGBSpan = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_GetColspan[] = { &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGBSpan_GetColspan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_GetColspan[1] = {{ wxLua_wxGBSpan_GetColspan, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBSpan_GetColspan }}; -// int GetColspan() const; -static int LUACALL wxLua_wxGBSpan_GetColspan(lua_State *L) -{ - // get this - wxGBSpan * self = (wxGBSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSpan); - // call GetColspan - int returns = (self->GetColspan()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_GetRowspan[] = { &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGBSpan_GetRowspan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_GetRowspan[1] = {{ wxLua_wxGBSpan_GetRowspan, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBSpan_GetRowspan }}; -// int GetRowspan() const; -static int LUACALL wxLua_wxGBSpan_GetRowspan(lua_State *L) -{ - // get this - wxGBSpan * self = (wxGBSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSpan); - // call GetRowspan - int returns = (self->GetRowspan()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_SetColspan[] = { &wxluatype_wxGBSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGBSpan_SetColspan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_SetColspan[1] = {{ wxLua_wxGBSpan_SetColspan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSpan_SetColspan }}; -// void SetColspan(int colspan); -static int LUACALL wxLua_wxGBSpan_SetColspan(lua_State *L) -{ - // int colspan - int colspan = (int)wxlua_getnumbertype(L, 2); - // get this - wxGBSpan * self = (wxGBSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSpan); - // call SetColspan - self->SetColspan(colspan); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_SetRowspan[] = { &wxluatype_wxGBSpan, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGBSpan_SetRowspan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_SetRowspan[1] = {{ wxLua_wxGBSpan_SetRowspan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSpan_SetRowspan }}; -// void SetRowspan(int rowspan); -static int LUACALL wxLua_wxGBSpan_SetRowspan(lua_State *L) -{ - // int rowspan - int rowspan = (int)wxlua_getnumbertype(L, 2); - // get this - wxGBSpan * self = (wxGBSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSpan); - // call SetRowspan - self->SetRowspan(rowspan); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_delete[] = { &wxluatype_wxGBSpan, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxGBSpan_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_op_eq[] = { &wxluatype_wxGBSpan, &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGBSpan_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_op_eq[1] = {{ wxLua_wxGBSpan_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSpan_op_eq }}; -// bool operator==(const wxGBSpan& o) const; -static int LUACALL wxLua_wxGBSpan_op_eq(lua_State *L) -{ - // const wxGBSpan o - const wxGBSpan * o = (const wxGBSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBSpan); - // get this - wxGBSpan * self = (wxGBSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSpan); - // call op_eq - bool returns = ((*self)==(*o)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_constructor1[] = { &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGBSpan_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_constructor1[1] = {{ wxLua_wxGBSpan_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGBSpan_constructor1 }}; -// wxGBSpan(const wxGBSpan& span); -static int LUACALL wxLua_wxGBSpan_constructor1(lua_State *L) -{ - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSpan); - // call constructor - wxGBSpan* returns = new wxGBSpan(*span); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBSpan); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSpan_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGBSpan_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_constructor[1] = {{ wxLua_wxGBSpan_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGBSpan_constructor }}; -// wxGBSpan(int rowspan=1, int colspan=1); -static int LUACALL wxLua_wxGBSpan_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int colspan = 1 - int colspan = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // int rowspan = 1 - int rowspan = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 1); - // call constructor - wxGBSpan* returns = new wxGBSpan(rowspan, colspan); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBSpan); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSpan); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSpan_constructor_overload[] = -{ - { wxLua_wxGBSpan_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxGBSpan_constructor1 }, - { wxLua_wxGBSpan_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxGBSpan_constructor }, -}; -static int s_wxluafunc_wxLua_wxGBSpan_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGBSpan_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -void wxLua_wxGBSpan_delete_function(void** p) -{ - wxGBSpan* o = (wxGBSpan*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGBSpan_methods[] = { - { "GetColspan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSpan_GetColspan, 1, NULL }, - { "GetRowspan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSpan_GetRowspan, 1, NULL }, - { "SetColspan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSpan_SetColspan, 1, NULL }, - { "SetRowspan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSpan_SetRowspan, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxGBSpan_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSpan_op_eq, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "wxGBSpan", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGBSpan_constructor_overload, s_wxluafunc_wxLua_wxGBSpan_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { 0, 0, 0, 0 }, -}; - -int wxGBSpan_methodCount = sizeof(wxGBSpan_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxGBSizerItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGBSizerItem' -int wxluatype_wxGBSizerItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_GetEndPos[] = { &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGBSizerItem_GetEndPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_GetEndPos[1] = {{ wxLua_wxGBSizerItem_GetEndPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBSizerItem_GetEndPos }}; -// %override wxLua_wxGBSizerItem_GetEndPos -// void GetEndPos(int& row, int& col) -static int LUACALL wxLua_wxGBSizerItem_GetEndPos(lua_State *L) -{ - int col = 0; - int row = 0; - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call GetEndPos - self->GetEndPos(row, col); - lua_pushinteger(L, row); - lua_pushinteger(L, col); - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_GetGBSizer[] = { &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGBSizerItem_GetGBSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_GetGBSizer[1] = {{ wxLua_wxGBSizerItem_GetGBSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBSizerItem_GetGBSizer }}; -// wxGridBagSizer* GetGBSizer() const; -static int LUACALL wxLua_wxGBSizerItem_GetGBSizer(lua_State *L) -{ - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call GetGBSizer - wxGridBagSizer* returns = (wxGridBagSizer*)self->GetGBSizer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGridBagSizer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_GetPos[] = { &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGBSizerItem_GetPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_GetPos[1] = {{ wxLua_wxGBSizerItem_GetPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBSizerItem_GetPos }}; -// wxGBPosition GetPos() const; -static int LUACALL wxLua_wxGBSizerItem_GetPos(lua_State *L) -{ - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call GetPos - // allocate a new object using the copy constructor - wxGBPosition* returns = new wxGBPosition(self->GetPos()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBPosition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_GetSpan[] = { &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGBSizerItem_GetSpan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_GetSpan[1] = {{ wxLua_wxGBSizerItem_GetSpan, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGBSizerItem_GetSpan }}; -// wxGBSpan GetSpan() const; -static int LUACALL wxLua_wxGBSizerItem_GetSpan(lua_State *L) -{ - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call GetSpan - // allocate a new object using the copy constructor - wxGBSpan* returns = new wxGBSpan(self->GetSpan()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxGBSpan); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSpan); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_Intersects1[] = { &wxluatype_wxGBSizerItem, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGBSizerItem_Intersects1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_Intersects1[1] = {{ wxLua_wxGBSizerItem_Intersects1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGBSizerItem_Intersects1 }}; -// bool Intersects(const wxGBPosition& pos, const wxGBSpan& span); -static int LUACALL wxLua_wxGBSizerItem_Intersects1(lua_State *L) -{ - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call Intersects - bool returns = (self->Intersects(*pos, *span)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_Intersects[] = { &wxluatype_wxGBSizerItem, &wxluatype_wxGBSizerItem, NULL }; -static int LUACALL wxLua_wxGBSizerItem_Intersects(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_Intersects[1] = {{ wxLua_wxGBSizerItem_Intersects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSizerItem_Intersects }}; -// bool Intersects(const wxGBSizerItem& other); -static int LUACALL wxLua_wxGBSizerItem_Intersects(lua_State *L) -{ - // const wxGBSizerItem other - const wxGBSizerItem * other = (const wxGBSizerItem *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBSizerItem); - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call Intersects - bool returns = (self->Intersects(*other)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_SetGBSizer[] = { &wxluatype_wxGBSizerItem, &wxluatype_wxGridBagSizer, NULL }; -static int LUACALL wxLua_wxGBSizerItem_SetGBSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_SetGBSizer[1] = {{ wxLua_wxGBSizerItem_SetGBSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSizerItem_SetGBSizer }}; -// void SetGBSizer(wxGridBagSizer* sizer); -static int LUACALL wxLua_wxGBSizerItem_SetGBSizer(lua_State *L) -{ - // wxGridBagSizer sizer - wxGridBagSizer * sizer = (wxGridBagSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGridBagSizer); - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call SetGBSizer - self->SetGBSizer(sizer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_SetPos[] = { &wxluatype_wxGBSizerItem, &wxluatype_wxGBPosition, NULL }; -static int LUACALL wxLua_wxGBSizerItem_SetPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_SetPos[1] = {{ wxLua_wxGBSizerItem_SetPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSizerItem_SetPos }}; -// bool SetPos(const wxGBPosition& pos); -static int LUACALL wxLua_wxGBSizerItem_SetPos(lua_State *L) -{ - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call SetPos - bool returns = (self->SetPos(*pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_SetSpan[] = { &wxluatype_wxGBSizerItem, &wxluatype_wxGBSpan, NULL }; -static int LUACALL wxLua_wxGBSizerItem_SetSpan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_SetSpan[1] = {{ wxLua_wxGBSizerItem_SetSpan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSizerItem_SetSpan }}; -// bool SetSpan(const wxGBSpan& span); -static int LUACALL wxLua_wxGBSizerItem_SetSpan(lua_State *L) -{ - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBSpan); - // get this - wxGBSizerItem * self = (wxGBSizerItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGBSizerItem); - // call SetSpan - bool returns = (self->SetSpan(*span)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_constructor3[] = { &wxluatype_wxSizer, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGBSizerItem_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_constructor3[1] = {{ wxLua_wxGBSizerItem_constructor3, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxGBSizerItem_constructor3 }}; -// wxGBSizerItem(wxSizer *sizer, const wxGBPosition& pos, const wxGBSpan& span, int flag, int border, %ungc wxObject* userData); -static int LUACALL wxLua_wxGBSizerItem_constructor3(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject); - // int border - int border = (int)wxlua_getnumbertype(L, 5); - // int flag - int flag = (int)wxlua_getnumbertype(L, 4); - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSizer); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // call constructor - wxGBSizerItem* returns = new wxGBSizerItem(sizer, *pos, *span, flag, border, userData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_constructor2[] = { &wxluatype_wxWindow, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGBSizerItem_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_constructor2[1] = {{ wxLua_wxGBSizerItem_constructor2, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxGBSizerItem_constructor2 }}; -// wxGBSizerItem(wxWindow *window, const wxGBPosition& pos, const wxGBSpan& span, int flag, int border, %ungc wxObject* userData); -static int LUACALL wxLua_wxGBSizerItem_constructor2(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxObject); - // int border - int border = (int)wxlua_getnumbertype(L, 5); - // int flag - int flag = (int)wxlua_getnumbertype(L, 4); - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGBPosition); - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // call constructor - wxGBSizerItem* returns = new wxGBSizerItem(window, *pos, *span, flag, border, userData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGBSizerItem_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxGBPosition, &wxluatype_wxGBSpan, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxGBSizerItem_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_constructor1[1] = {{ wxLua_wxGBSizerItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 7, 7, s_wxluatypeArray_wxLua_wxGBSizerItem_constructor1 }}; -// wxGBSizerItem(int width, int height, const wxGBPosition& pos, const wxGBSpan& span, int flag, int border, %ungc wxObject* userData); -static int LUACALL wxLua_wxGBSizerItem_constructor1(lua_State *L) -{ - // wxObject userData - wxObject * userData = (wxObject *)wxluaT_getuserdatatype(L, 7, wxluatype_wxObject); - // int border - int border = (int)wxlua_getnumbertype(L, 6); - // int flag - int flag = (int)wxlua_getnumbertype(L, 5); - // const wxGBSpan span - const wxGBSpan * span = (const wxGBSpan *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGBSpan); - // const wxGBPosition pos - const wxGBPosition * pos = (const wxGBPosition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxGBPosition); - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // int width - int width = (int)wxlua_getnumbertype(L, 1); - if (wxluaO_isgcobject(L, userData)) wxluaO_undeletegcobject(L, userData); - // call constructor - wxGBSizerItem* returns = new wxGBSizerItem(width, height, *pos, *span, flag, border, userData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -static int LUACALL wxLua_wxGBSizerItem_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_constructor[1] = {{ wxLua_wxGBSizerItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGBSizerItem(); -static int LUACALL wxLua_wxGBSizerItem_constructor(lua_State *L) -{ - // call constructor - wxGBSizerItem* returns = new wxGBSizerItem(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGBSizerItem); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_Intersects_overload[] = -{ - { wxLua_wxGBSizerItem_Intersects1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGBSizerItem_Intersects1 }, - { wxLua_wxGBSizerItem_Intersects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGBSizerItem_Intersects }, -}; -static int s_wxluafunc_wxLua_wxGBSizerItem_Intersects_overload_count = sizeof(s_wxluafunc_wxLua_wxGBSizerItem_Intersects_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGBSizerItem_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGBSizerItem_constructor3, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxGBSizerItem_constructor3 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGBSizerItem_constructor2, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxGBSizerItem_constructor2 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGBSizerItem_constructor1, WXLUAMETHOD_CONSTRUCTOR, 7, 7, s_wxluatypeArray_wxLua_wxGBSizerItem_constructor1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject) - { wxLua_wxGBSizerItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxGBSizerItem_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGBSizerItem_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -void wxLua_wxGBSizerItem_delete_function(void** p) -{ - wxGBSizerItem* o = (wxGBSizerItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGBSizerItem_methods[] = { - { "GetEndPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_GetEndPos, 1, NULL }, - { "GetGBSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_GetGBSizer, 1, NULL }, - { "GetPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_GetPos, 1, NULL }, - { "GetSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_GetSpan, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "Intersects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_Intersects_overload, s_wxluafunc_wxLua_wxGBSizerItem_Intersects_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "SetGBSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_SetGBSizer, 1, NULL }, - { "SetPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_SetPos, 1, NULL }, - { "SetSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGBSizerItem_SetSpan, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "wxGBSizerItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGBSizerItem_constructor_overload, s_wxluafunc_wxLua_wxGBSizerItem_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxObject))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { 0, 0, 0, 0 }, -}; - -int wxGBSizerItem_methodCount = sizeof(wxGBSizerItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxWrapSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWrapSizer' -int wxluatype_wxWrapSizer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWrapSizer_InformFirstDirection[] = { &wxluatype_wxWrapSizer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWrapSizer_InformFirstDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWrapSizer_InformFirstDirection[1] = {{ wxLua_wxWrapSizer_InformFirstDirection, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWrapSizer_InformFirstDirection }}; -// bool InformFirstDirection(int direction, int size, int availableOtherDir); -static int LUACALL wxLua_wxWrapSizer_InformFirstDirection(lua_State *L) -{ - // int availableOtherDir - int availableOtherDir = (int)wxlua_getnumbertype(L, 4); - // int size - int size = (int)wxlua_getnumbertype(L, 3); - // int direction - int direction = (int)wxlua_getnumbertype(L, 2); - // get this - wxWrapSizer * self = (wxWrapSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWrapSizer); - // call InformFirstDirection - bool returns = (self->InformFirstDirection(direction, size, availableOtherDir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWrapSizer_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWrapSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWrapSizer_constructor[1] = {{ wxLua_wxWrapSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxWrapSizer_constructor }}; -// wxWrapSizer(int orient = wxHORIZONTAL, int flags = wxWRAPSIZER_DEFAULT_FLAGS); -static int LUACALL wxLua_wxWrapSizer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxWRAPSIZER_DEFAULT_FLAGS - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxWRAPSIZER_DEFAULT_FLAGS); - // int orient = wxHORIZONTAL - int orient = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxHORIZONTAL); - // call constructor - wxWrapSizer* returns = new wxWrapSizer(orient, flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWrapSizer); - - return 1; -} - - - - -void wxLua_wxWrapSizer_delete_function(void** p) -{ - wxWrapSizer* o = (wxWrapSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWrapSizer_methods[] = { - { "InformFirstDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWrapSizer_InformFirstDirection, 1, NULL }, - { "wxWrapSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWrapSizer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWrapSizer_methodCount = sizeof(wxWrapSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxSizer) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) -// --------------------------------------------------------------------------- -// Bind class wxNotebookSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNotebookSizer' -int wxluatype_wxNotebookSizer = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0)))) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebookSizer_GetNotebook[] = { &wxluatype_wxNotebookSizer, NULL }; -static int LUACALL wxLua_wxNotebookSizer_GetNotebook(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebookSizer_GetNotebook[1] = {{ wxLua_wxNotebookSizer_GetNotebook, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNotebookSizer_GetNotebook }}; -// wxNotebook* GetNotebook(); -static int LUACALL wxLua_wxNotebookSizer_GetNotebook(lua_State *L) -{ - // get this - wxNotebookSizer * self = (wxNotebookSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebookSizer); - // call GetNotebook - wxNotebook* returns = (wxNotebook*)self->GetNotebook(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNotebook); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebookSizer_constructor[] = { &wxluatype_wxNotebook, NULL }; -static int LUACALL wxLua_wxNotebookSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebookSizer_constructor[1] = {{ wxLua_wxNotebookSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxNotebookSizer_constructor }}; -// wxNotebookSizer(wxNotebook* notebook); -static int LUACALL wxLua_wxNotebookSizer_constructor(lua_State *L) -{ - // wxNotebook notebook - wxNotebook * notebook = (wxNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebook); - // call constructor - wxNotebookSizer* returns = new wxNotebookSizer(notebook); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNotebookSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0)))) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - - - -void wxLua_wxNotebookSizer_delete_function(void** p) -{ - wxNotebookSizer* o = (wxNotebookSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNotebookSizer_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0)))) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - { "GetNotebook", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotebookSizer_GetNotebook, 1, NULL }, - { "wxNotebookSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNotebookSizer_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0)))) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - - { 0, 0, 0, 0 }, -}; - -int wxNotebookSizer_methodCount = sizeof(wxNotebookSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_NOTEBOOK && (!wxCHECK_VERSION(2,6,0))) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) -// --------------------------------------------------------------------------- -// Bind class wxStaticBoxSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStaticBoxSizer' -int wxluatype_wxStaticBoxSizer = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBoxSizer_GetStaticBox[] = { &wxluatype_wxStaticBoxSizer, NULL }; -static int LUACALL wxLua_wxStaticBoxSizer_GetStaticBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBoxSizer_GetStaticBox[1] = {{ wxLua_wxStaticBoxSizer_GetStaticBox, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStaticBoxSizer_GetStaticBox }}; -// wxStaticBox* GetStaticBox(); -static int LUACALL wxLua_wxStaticBoxSizer_GetStaticBox(lua_State *L) -{ - // get this - wxStaticBoxSizer * self = (wxStaticBoxSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticBoxSizer); - // call GetStaticBox - wxStaticBox* returns = (wxStaticBox*)self->GetStaticBox(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBox); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBoxSizer_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticBoxSizer_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBoxSizer_constructor1[1] = {{ wxLua_wxStaticBoxSizer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxStaticBoxSizer_constructor1 }}; -// wxStaticBoxSizer(int orient, wxWindow *parent, const wxString& label = ""); -static int LUACALL wxLua_wxStaticBoxSizer_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString label = "" - const wxString label = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // int orient - int orient = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxStaticBoxSizer* returns = new wxStaticBoxSizer(orient, parent, label); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBoxSizer); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBoxSizer_constructor[] = { &wxluatype_wxStaticBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStaticBoxSizer_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBoxSizer_constructor[1] = {{ wxLua_wxStaticBoxSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxStaticBoxSizer_constructor }}; -// wxStaticBoxSizer(wxStaticBox* box, int orient); -static int LUACALL wxLua_wxStaticBoxSizer_constructor(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // wxStaticBox box - wxStaticBox * box = (wxStaticBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticBox); - // call constructor - wxStaticBoxSizer* returns = new wxStaticBoxSizer(box, orient); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBoxSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBoxSizer_constructor_overload[] = -{ - { wxLua_wxStaticBoxSizer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxStaticBoxSizer_constructor1 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - { wxLua_wxStaticBoxSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxStaticBoxSizer_constructor }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) -}; -static int s_wxluafunc_wxLua_wxStaticBoxSizer_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStaticBoxSizer_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX)) - -void wxLua_wxStaticBoxSizer_delete_function(void** p) -{ - wxStaticBoxSizer* o = (wxStaticBoxSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStaticBoxSizer_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - { "GetStaticBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticBoxSizer_GetStaticBox, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX)) - { "wxStaticBoxSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStaticBoxSizer_constructor_overload, s_wxluafunc_wxLua_wxStaticBoxSizer_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX)) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX)) - - { 0, 0, 0, 0 }, -}; - -int wxStaticBoxSizer_methodCount = sizeof(wxStaticBoxSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_STATBOX) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) -// --------------------------------------------------------------------------- -// Bind class wxStdDialogButtonSizer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStdDialogButtonSizer' -int wxluatype_wxStdDialogButtonSizer = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_AddButton[] = { &wxluatype_wxStdDialogButtonSizer, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_AddButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_AddButton[1] = {{ wxLua_wxStdDialogButtonSizer_AddButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_AddButton }}; -// void AddButton(wxButton *button); -static int LUACALL wxLua_wxStdDialogButtonSizer_AddButton(lua_State *L) -{ - // wxButton button - wxButton * button = (wxButton *)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call AddButton - self->AddButton(button); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetAffirmativeButton[] = { &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetAffirmativeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetAffirmativeButton[1] = {{ wxLua_wxStdDialogButtonSizer_GetAffirmativeButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetAffirmativeButton }}; -// wxButton *GetAffirmativeButton() const; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetAffirmativeButton(lua_State *L) -{ - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call GetAffirmativeButton - wxButton* returns = (wxButton*)self->GetAffirmativeButton(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetApplyButton[] = { &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetApplyButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetApplyButton[1] = {{ wxLua_wxStdDialogButtonSizer_GetApplyButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetApplyButton }}; -// wxButton *GetApplyButton() const; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetApplyButton(lua_State *L) -{ - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call GetApplyButton - wxButton* returns = (wxButton*)self->GetApplyButton(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetCancelButton[] = { &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetCancelButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetCancelButton[1] = {{ wxLua_wxStdDialogButtonSizer_GetCancelButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetCancelButton }}; -// wxButton *GetCancelButton() const; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetCancelButton(lua_State *L) -{ - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call GetCancelButton - wxButton* returns = (wxButton*)self->GetCancelButton(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetHelpButton[] = { &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetHelpButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetHelpButton[1] = {{ wxLua_wxStdDialogButtonSizer_GetHelpButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetHelpButton }}; -// wxButton *GetHelpButton() const; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetHelpButton(lua_State *L) -{ - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call GetHelpButton - wxButton* returns = (wxButton*)self->GetHelpButton(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetNegativeButton[] = { &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetNegativeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetNegativeButton[1] = {{ wxLua_wxStdDialogButtonSizer_GetNegativeButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_GetNegativeButton }}; -// wxButton *GetNegativeButton() const; -static int LUACALL wxLua_wxStdDialogButtonSizer_GetNegativeButton(lua_State *L) -{ - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call GetNegativeButton - wxButton* returns = (wxButton*)self->GetNegativeButton(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxButton); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_Realize[] = { &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_Realize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_Realize[1] = {{ wxLua_wxStdDialogButtonSizer_Realize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_Realize }}; -// void Realize(); -static int LUACALL wxLua_wxStdDialogButtonSizer_Realize(lua_State *L) -{ - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call Realize - self->Realize(); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_SetAffirmativeButton[] = { &wxluatype_wxStdDialogButtonSizer, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_SetAffirmativeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_SetAffirmativeButton[1] = {{ wxLua_wxStdDialogButtonSizer_SetAffirmativeButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_SetAffirmativeButton }}; -// void SetAffirmativeButton(wxButton *button); -static int LUACALL wxLua_wxStdDialogButtonSizer_SetAffirmativeButton(lua_State *L) -{ - // wxButton button - wxButton * button = (wxButton *)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call SetAffirmativeButton - self->SetAffirmativeButton(button); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_SetCancelButton[] = { &wxluatype_wxStdDialogButtonSizer, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_SetCancelButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_SetCancelButton[1] = {{ wxLua_wxStdDialogButtonSizer_SetCancelButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_SetCancelButton }}; -// void SetCancelButton(wxButton *button); -static int LUACALL wxLua_wxStdDialogButtonSizer_SetCancelButton(lua_State *L) -{ - // wxButton button - wxButton * button = (wxButton *)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call SetCancelButton - self->SetCancelButton(button); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_SetNegativeButton[] = { &wxluatype_wxStdDialogButtonSizer, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxStdDialogButtonSizer_SetNegativeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_SetNegativeButton[1] = {{ wxLua_wxStdDialogButtonSizer_SetNegativeButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStdDialogButtonSizer_SetNegativeButton }}; -// void SetNegativeButton(wxButton *button); -static int LUACALL wxLua_wxStdDialogButtonSizer_SetNegativeButton(lua_State *L) -{ - // wxButton button - wxButton * button = (wxButton *)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxStdDialogButtonSizer * self = (wxStdDialogButtonSizer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStdDialogButtonSizer); - // call SetNegativeButton - self->SetNegativeButton(button); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - -static int LUACALL wxLua_wxStdDialogButtonSizer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStdDialogButtonSizer_constructor[1] = {{ wxLua_wxStdDialogButtonSizer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStdDialogButtonSizer(); -static int LUACALL wxLua_wxStdDialogButtonSizer_constructor(lua_State *L) -{ - // call constructor - wxStdDialogButtonSizer* returns = new wxStdDialogButtonSizer(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStdDialogButtonSizer); - - return 1; -} - - - - -void wxLua_wxStdDialogButtonSizer_delete_function(void** p) -{ - wxStdDialogButtonSizer* o = (wxStdDialogButtonSizer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStdDialogButtonSizer_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "AddButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_AddButton, 1, NULL }, - { "GetAffirmativeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetAffirmativeButton, 1, NULL }, - { "GetApplyButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetApplyButton, 1, NULL }, - { "GetCancelButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetCancelButton, 1, NULL }, - { "GetHelpButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetHelpButton, 1, NULL }, - { "GetNegativeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_GetNegativeButton, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - - { "Realize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_Realize, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - { "SetAffirmativeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_SetAffirmativeButton, 1, NULL }, - { "SetCancelButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_SetCancelButton, 1, NULL }, - { "SetNegativeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStdDialogButtonSizer_SetNegativeButton, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxButton && wxUSE_BUTTON) - - { "wxStdDialogButtonSizer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStdDialogButtonSizer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStdDialogButtonSizer_methodCount = sizeof(wxStdDialogButtonSizer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON) - - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxLayoutConstraints -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLayoutConstraints' -int wxluatype_wxLayoutConstraints = WXLUA_TUNKNOWN; - -static int LUACALL wxLua_wxLayoutConstraints_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLayoutConstraints_constructor[1] = {{ wxLua_wxLayoutConstraints_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxLayoutConstraints(); -static int LUACALL wxLua_wxLayoutConstraints_constructor(lua_State *L) -{ - // call constructor - wxLayoutConstraints* returns = new wxLayoutConstraints(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLayoutConstraints); - - return 1; -} - - - - -void wxLua_wxLayoutConstraints_delete_function(void** p) -{ - wxLayoutConstraints* o = (wxLayoutConstraints*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLayoutConstraints_methods[] = { - { "wxLayoutConstraints", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLayoutConstraints_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLayoutConstraints_methodCount = sizeof(wxLayoutConstraints_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - - -#if (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) -// --------------------------------------------------------------------------- -// Bind class wxIndividualLayoutConstraint -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIndividualLayoutConstraint' -int wxluatype_wxIndividualLayoutConstraint = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Above[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_Above(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Above[1] = {{ wxLua_wxIndividualLayoutConstraint_Above, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Above }}; -// void Above(wxWindow *otherWin, int margin = 0); -static int LUACALL wxLua_wxIndividualLayoutConstraint_Above(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int margin = 0 - int margin = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call Above - self->Above(otherWin, margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Absolute[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_Absolute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Absolute[1] = {{ wxLua_wxIndividualLayoutConstraint_Absolute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Absolute }}; -// void Absolute(int value); -static int LUACALL wxLua_wxIndividualLayoutConstraint_Absolute(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call Absolute - self->Absolute(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_AsIs[] = { &wxluatype_wxIndividualLayoutConstraint, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_AsIs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_AsIs[1] = {{ wxLua_wxIndividualLayoutConstraint_AsIs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_AsIs }}; -// void AsIs(); -static int LUACALL wxLua_wxIndividualLayoutConstraint_AsIs(lua_State *L) -{ - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call AsIs - self->AsIs(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Below[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_Below(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Below[1] = {{ wxLua_wxIndividualLayoutConstraint_Below, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Below }}; -// void Below(wxWindow *otherWin, int margin = 0); -static int LUACALL wxLua_wxIndividualLayoutConstraint_Below(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int margin = 0 - int margin = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call Below - self->Below(otherWin, margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_LeftOf[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_LeftOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_LeftOf[1] = {{ wxLua_wxIndividualLayoutConstraint_LeftOf, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_LeftOf }}; -// void LeftOf(wxWindow *otherWin, int margin = 0); -static int LUACALL wxLua_wxIndividualLayoutConstraint_LeftOf(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int margin = 0 - int margin = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call LeftOf - self->LeftOf(otherWin, margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_PercentOf[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_wxWindow, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_PercentOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_PercentOf[1] = {{ wxLua_wxIndividualLayoutConstraint_PercentOf, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_PercentOf }}; -// void PercentOf(wxWindow *otherWin, wxEdge edge, int per); -static int LUACALL wxLua_wxIndividualLayoutConstraint_PercentOf(lua_State *L) -{ - // int per - int per = (int)wxlua_getnumbertype(L, 4); - // wxEdge edge - wxEdge edge = (wxEdge)wxlua_getenumtype(L, 3); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call PercentOf - self->PercentOf(otherWin, edge, per); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_RightOf[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_RightOf(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_RightOf[1] = {{ wxLua_wxIndividualLayoutConstraint_RightOf, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_RightOf }}; -// void RightOf(wxWindow *otherWin, int margin = 0); -static int LUACALL wxLua_wxIndividualLayoutConstraint_RightOf(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int margin = 0 - int margin = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call RightOf - self->RightOf(otherWin, margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_SameAs[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_wxWindow, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_SameAs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_SameAs[1] = {{ wxLua_wxIndividualLayoutConstraint_SameAs, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_SameAs }}; -// void SameAs(wxWindow *otherWin, wxEdge edge, int margin = 0); -static int LUACALL wxLua_wxIndividualLayoutConstraint_SameAs(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int margin = 0 - int margin = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxEdge edge - wxEdge edge = (wxEdge)wxlua_getenumtype(L, 3); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call SameAs - self->SameAs(otherWin, edge, margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Set[] = { &wxluatype_wxIndividualLayoutConstraint, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TINTEGER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Set[1] = {{ wxLua_wxIndividualLayoutConstraint_Set, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Set }}; -// void Set(wxRelationship rel, wxWindow *otherWin, wxEdge otherEdge, int value = 0, int margin = 0); -static int LUACALL wxLua_wxIndividualLayoutConstraint_Set(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int margin = 0 - int margin = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int value = 0 - int value = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // wxEdge otherEdge - wxEdge otherEdge = (wxEdge)wxlua_getenumtype(L, 4); - // wxWindow otherWin - wxWindow * otherWin = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxRelationship rel - wxRelationship rel = (wxRelationship)wxlua_getenumtype(L, 2); - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call Set - self->Set(rel, otherWin, otherEdge, value, margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Unconstrained[] = { &wxluatype_wxIndividualLayoutConstraint, NULL }; -static int LUACALL wxLua_wxIndividualLayoutConstraint_Unconstrained(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Unconstrained[1] = {{ wxLua_wxIndividualLayoutConstraint_Unconstrained, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIndividualLayoutConstraint_Unconstrained }}; -// void Unconstrained(); -static int LUACALL wxLua_wxIndividualLayoutConstraint_Unconstrained(lua_State *L) -{ - // get this - wxIndividualLayoutConstraint * self = (wxIndividualLayoutConstraint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIndividualLayoutConstraint); - // call Unconstrained - self->Unconstrained(); - - return 0; -} - -static int LUACALL wxLua_wxIndividualLayoutConstraint_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIndividualLayoutConstraint_constructor[1] = {{ wxLua_wxIndividualLayoutConstraint_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxIndividualLayoutConstraint(); -static int LUACALL wxLua_wxIndividualLayoutConstraint_constructor(lua_State *L) -{ - // call constructor - wxIndividualLayoutConstraint* returns = new wxIndividualLayoutConstraint(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIndividualLayoutConstraint); - - return 1; -} - - - - -void wxLua_wxIndividualLayoutConstraint_delete_function(void** p) -{ - wxIndividualLayoutConstraint* o = (wxIndividualLayoutConstraint*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIndividualLayoutConstraint_methods[] = { - { "Above", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Above, 1, NULL }, - { "Absolute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Absolute, 1, NULL }, - { "AsIs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_AsIs, 1, NULL }, - { "Below", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Below, 1, NULL }, - { "LeftOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_LeftOf, 1, NULL }, - { "PercentOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_PercentOf, 1, NULL }, - { "RightOf", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_RightOf, 1, NULL }, - { "SameAs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_SameAs, 1, NULL }, - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Set, 1, NULL }, - { "Unconstrained", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_Unconstrained, 1, NULL }, - { "wxIndividualLayoutConstraint", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIndividualLayoutConstraint_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxIndividualLayoutConstraint_methodCount = sizeof(wxIndividualLayoutConstraint_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer) - diff --git a/wxLua/modules/wxbind/src/wxcore_windows.cpp b/wxLua/modules/wxbind/src/wxcore_windows.cpp deleted file mode 100644 index aa118c3b..00000000 --- a/wxLua/modules/wxbind/src/wxcore_windows.cpp +++ /dev/null @@ -1,14528 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxcore_windows.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxcore_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif -#if wxUSE_PROPGRID && wxLUA_USE_wxPropertyGrid -#include "wx/propgrid/propgriddefs.h" -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS -// --------------------------------------------------------------------------- -// Bind class wxToolTip -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolTip' -int wxluatype_wxToolTip = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_Enable[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxToolTip_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_Enable[1] = {{ wxLua_wxToolTip_Enable, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_Enable }}; -// static void Enable(bool flag); -static int LUACALL wxLua_wxToolTip_Enable(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 1); - // call Enable - wxToolTip::Enable(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_GetTip[] = { &wxluatype_wxToolTip, NULL }; -static int LUACALL wxLua_wxToolTip_GetTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_GetTip[1] = {{ wxLua_wxToolTip_GetTip, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_GetTip }}; -// wxString GetTip(); -static int LUACALL wxLua_wxToolTip_GetTip(lua_State *L) -{ - // get this - wxToolTip * self = (wxToolTip *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolTip); - // call GetTip - wxString returns = (self->GetTip()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_GetWindow[] = { &wxluatype_wxToolTip, NULL }; -static int LUACALL wxLua_wxToolTip_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_GetWindow[1] = {{ wxLua_wxToolTip_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_GetWindow }}; -// wxWindow *GetWindow() const; -static int LUACALL wxLua_wxToolTip_GetWindow(lua_State *L) -{ - // get this - wxToolTip * self = (wxToolTip *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolTip); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_SetAutoPop[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolTip_SetAutoPop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_SetAutoPop[1] = {{ wxLua_wxToolTip_SetAutoPop, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_SetAutoPop }}; -// static void SetAutoPop(long msecs); -static int LUACALL wxLua_wxToolTip_SetAutoPop(lua_State *L) -{ - // long msecs - long msecs = (long)wxlua_getnumbertype(L, 1); - // call SetAutoPop - wxToolTip::SetAutoPop(msecs); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_SetDelay[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolTip_SetDelay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_SetDelay[1] = {{ wxLua_wxToolTip_SetDelay, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_SetDelay }}; -// static void SetDelay(long milliseconds); -static int LUACALL wxLua_wxToolTip_SetDelay(lua_State *L) -{ - // long milliseconds - long milliseconds = (long)wxlua_getnumbertype(L, 1); - // call SetDelay - wxToolTip::SetDelay(milliseconds); - - return 0; -} - - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_SetMaxWidth[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolTip_SetMaxWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_SetMaxWidth[1] = {{ wxLua_wxToolTip_SetMaxWidth, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_SetMaxWidth }}; -// %win static void SetMaxWidth(int width); -static int LUACALL wxLua_wxToolTip_SetMaxWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 1); - // call SetMaxWidth - wxToolTip::SetMaxWidth(width); - - return 0; -} - -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_SetReshow[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolTip_SetReshow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_SetReshow[1] = {{ wxLua_wxToolTip_SetReshow, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_SetReshow }}; -// static void SetReshow(long msecs); -static int LUACALL wxLua_wxToolTip_SetReshow(lua_State *L) -{ - // long msecs - long msecs = (long)wxlua_getnumbertype(L, 1); - // call SetReshow - wxToolTip::SetReshow(msecs); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_SetTip[] = { &wxluatype_wxToolTip, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolTip_SetTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_SetTip[1] = {{ wxLua_wxToolTip_SetTip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxToolTip_SetTip }}; -// void SetTip(const wxString& tip); -static int LUACALL wxLua_wxToolTip_SetTip(lua_State *L) -{ - // const wxString tip - const wxString tip = wxlua_getwxStringtype(L, 2); - // get this - wxToolTip * self = (wxToolTip *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolTip); - // call SetTip - self->SetTip(tip); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_delete[] = { &wxluatype_wxToolTip, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolTip_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolTip_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolTip_constructor[1] = {{ wxLua_wxToolTip_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxToolTip_constructor }}; -// wxToolTip(const wxString &tip); -static int LUACALL wxLua_wxToolTip_constructor(lua_State *L) -{ - // const wxString tip - const wxString tip = wxlua_getwxStringtype(L, 1); - // call constructor - wxToolTip* returns = new wxToolTip(tip); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxToolTip); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolTip); - - return 1; -} - - - - -void wxLua_wxToolTip_delete_function(void** p) -{ - wxToolTip* o = (wxToolTip*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolTip_methods[] = { - { "Enable", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxToolTip_Enable, 1, NULL }, - { "GetTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolTip_GetTip, 1, NULL }, - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolTip_GetWindow, 1, NULL }, - { "SetAutoPop", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxToolTip_SetAutoPop, 1, NULL }, - { "SetDelay", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxToolTip_SetDelay, 1, NULL }, - -#if (defined(__WXMSW__)) && (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) - { "SetMaxWidth", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxToolTip_SetMaxWidth, 1, NULL }, -#endif // (defined(__WXMSW__)) && (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) - - { "SetReshow", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxToolTip_SetReshow, 1, NULL }, - { "SetTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolTip_SetTip, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxToolTip_delete, 1, NULL }, - { "wxToolTip", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxToolTip_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxToolTip_methodCount = sizeof(wxToolTip_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -// --------------------------------------------------------------------------- -// Bind class wxWindowDisabler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindowDisabler' -int wxluatype_wxWindowDisabler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDisabler_delete[] = { &wxluatype_wxWindowDisabler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDisabler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWindowDisabler_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowDisabler_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindowDisabler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowDisabler_constructor[1] = {{ wxLua_wxWindowDisabler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxWindowDisabler_constructor }}; -// wxWindowDisabler(wxWindow *winToSkip = NULL); -static int LUACALL wxLua_wxWindowDisabler_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow winToSkip = NULL - wxWindow * winToSkip = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxWindowDisabler* returns = new wxWindowDisabler(winToSkip); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWindowDisabler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindowDisabler); - - return 1; -} - - - -void wxLua_wxWindowDisabler_delete_function(void** p) -{ - wxWindowDisabler* o = (wxWindowDisabler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindowDisabler_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWindowDisabler_delete, 1, NULL }, - { "wxWindowDisabler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWindowDisabler_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxWindowDisabler_methodCount = sizeof(wxWindowDisabler_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxWindowUpdateLocker -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindowUpdateLocker' -int wxluatype_wxWindowUpdateLocker = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowUpdateLocker_delete[] = { &wxluatype_wxWindowUpdateLocker, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowUpdateLocker_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxWindowUpdateLocker_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindowUpdateLocker_constructor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindowUpdateLocker_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindowUpdateLocker_constructor[1] = {{ wxLua_wxWindowUpdateLocker_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxWindowUpdateLocker_constructor }}; -// wxWindowUpdateLocker(wxWindow *winToLock = NULL); -static int LUACALL wxLua_wxWindowUpdateLocker_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow winToLock = NULL - wxWindow * winToLock = (argCount >= 1 ? (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow) : NULL); - // call constructor - wxWindowUpdateLocker* returns = new wxWindowUpdateLocker(winToLock); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxWindowUpdateLocker); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindowUpdateLocker); - - return 1; -} - - - -void wxLua_wxWindowUpdateLocker_delete_function(void** p) -{ - wxWindowUpdateLocker* o = (wxWindowUpdateLocker*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindowUpdateLocker_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxWindowUpdateLocker_delete, 1, NULL }, - { "wxWindowUpdateLocker", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWindowUpdateLocker_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxWindowUpdateLocker_methodCount = sizeof(wxWindowUpdateLocker_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxVisualAttributes -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxVisualAttributes' -int wxluatype_wxVisualAttributes = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_Get_colBg[] = { &wxluatype_wxVisualAttributes, NULL }; -static int LUACALL wxLua_wxVisualAttributes_Get_colBg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_Get_colBg[1] = {{ wxLua_wxVisualAttributes_Get_colBg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVisualAttributes_Get_colBg }}; -// wxColour colBg; -static int LUACALL wxLua_wxVisualAttributes_Get_colBg(lua_State *L) -{ - // get this - wxVisualAttributes *self = (wxVisualAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->colBg, wxluatype_wxColour); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_Get_colFg[] = { &wxluatype_wxVisualAttributes, NULL }; -static int LUACALL wxLua_wxVisualAttributes_Get_colFg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_Get_colFg[1] = {{ wxLua_wxVisualAttributes_Get_colFg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVisualAttributes_Get_colFg }}; -// wxColour colFg; -static int LUACALL wxLua_wxVisualAttributes_Get_colFg(lua_State *L) -{ - // get this - wxVisualAttributes *self = (wxVisualAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->colFg, wxluatype_wxColour); - // return the number of values - return 1; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_Get_font[] = { &wxluatype_wxVisualAttributes, NULL }; -static int LUACALL wxLua_wxVisualAttributes_Get_font(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_Get_font[1] = {{ wxLua_wxVisualAttributes_Get_font, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxVisualAttributes_Get_font }}; -// wxFont font; -static int LUACALL wxLua_wxVisualAttributes_Get_font(lua_State *L) -{ - // get this - wxVisualAttributes *self = (wxVisualAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->font, wxluatype_wxFont); - // return the number of values - return 1; -} - -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_Set_colBg[] = { &wxluatype_wxVisualAttributes, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxVisualAttributes_Set_colBg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_Set_colBg[1] = {{ wxLua_wxVisualAttributes_Set_colBg, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVisualAttributes_Set_colBg }}; -// wxColour colBg; -static int LUACALL wxLua_wxVisualAttributes_Set_colBg(lua_State *L) -{ - // get the data type value - wxColour* val = (wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxVisualAttributes *self = (wxVisualAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVisualAttributes); - self->colBg = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_Set_colFg[] = { &wxluatype_wxVisualAttributes, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxVisualAttributes_Set_colFg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_Set_colFg[1] = {{ wxLua_wxVisualAttributes_Set_colFg, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVisualAttributes_Set_colFg }}; -// wxColour colFg; -static int LUACALL wxLua_wxVisualAttributes_Set_colFg(lua_State *L) -{ - // get the data type value - wxColour* val = (wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxVisualAttributes *self = (wxVisualAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVisualAttributes); - self->colFg = *val; - // return the number of values - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_Set_font[] = { &wxluatype_wxVisualAttributes, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxVisualAttributes_Set_font(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_Set_font[1] = {{ wxLua_wxVisualAttributes_Set_font, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxVisualAttributes_Set_font }}; -// wxFont font; -static int LUACALL wxLua_wxVisualAttributes_Set_font(lua_State *L) -{ - // get the data type value - wxFont* val = (wxFont*)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxVisualAttributes *self = (wxVisualAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVisualAttributes); - self->font = *val; - // return the number of values - return 0; -} - -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxVisualAttributes_delete[] = { &wxluatype_wxVisualAttributes, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxVisualAttributes_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxVisualAttributes_delete }}; - - -#if wxLUA_USE_wxFont -#endif // wxLUA_USE_wxFont - - - -void wxLua_wxVisualAttributes_delete_function(void** p) -{ - wxVisualAttributes* o = (wxVisualAttributes*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxVisualAttributes_methods[] = { -#if wxLUA_USE_wxColourPenBrush - // %member { "Get_colBg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVisualAttributes_Get_colBg, 1, NULL }, - // %member { "Get_colFg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVisualAttributes_Get_colFg, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont - // %member { "Get_font", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVisualAttributes_Get_font, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - // %member { "Set_colBg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVisualAttributes_Set_colBg, 1, NULL }, - // %member { "Set_colFg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVisualAttributes_Set_colFg, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont - // %member { "Set_font", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxVisualAttributes_Set_font, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - { "colBg", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxVisualAttributes_Set_colBg, 1, NULL }, - { "colBg", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxVisualAttributes_Get_colBg, 1, NULL }, - { "colFg", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxVisualAttributes_Set_colFg, 1, NULL }, - { "colFg", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxVisualAttributes_Get_colFg, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxVisualAttributes_delete, 1, NULL }, - -#if wxLUA_USE_wxFont - { "font", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxVisualAttributes_Set_font, 1, NULL }, - { "font", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxVisualAttributes_Get_font, 1, NULL }, -#endif // wxLUA_USE_wxFont - - { 0, 0, 0, 0 }, -}; - -int wxVisualAttributes_methodCount = sizeof(wxVisualAttributes_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindow' -int wxluatype_wxWindow = WXLUA_TUNKNOWN; - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_AcceptsFocus[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_AcceptsFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_AcceptsFocus[1] = {{ wxLua_wxWindow_AcceptsFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_AcceptsFocus }}; -// %wxchkver_3_0_0 bool AcceptsFocus() const; -static int LUACALL wxLua_wxWindow_AcceptsFocus(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call AcceptsFocus - bool returns = (self->AcceptsFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_AcceptsFocusFromKeyboard[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_AcceptsFocusFromKeyboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_AcceptsFocusFromKeyboard[1] = {{ wxLua_wxWindow_AcceptsFocusFromKeyboard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_AcceptsFocusFromKeyboard }}; -// %wxchkver_3_0_0 bool AcceptsFocusFromKeyboard() const; -static int LUACALL wxLua_wxWindow_AcceptsFocusFromKeyboard(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call AcceptsFocusFromKeyboard - bool returns = (self->AcceptsFocusFromKeyboard()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_AcceptsFocusRecursively[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_AcceptsFocusRecursively(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_AcceptsFocusRecursively[1] = {{ wxLua_wxWindow_AcceptsFocusRecursively, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_AcceptsFocusRecursively }}; -// %wxchkver_3_0_0 bool AcceptsFocusRecursively() const; -static int LUACALL wxLua_wxWindow_AcceptsFocusRecursively(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call AcceptsFocusRecursively - bool returns = (self->AcceptsFocusRecursively()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_AddChild[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_AddChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_AddChild[1] = {{ wxLua_wxWindow_AddChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_AddChild }}; -// virtual void AddChild(wxWindow* child); -static int LUACALL wxLua_wxWindow_AddChild(lua_State *L) -{ - // wxWindow child - wxWindow * child = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call AddChild - self->AddChild(child); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_AdjustForLayoutDirection[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_AdjustForLayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_AdjustForLayoutDirection[1] = {{ wxLua_wxWindow_AdjustForLayoutDirection, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_AdjustForLayoutDirection }}; -// %wxchkver_3_0_0 wxCoord AdjustForLayoutDirection(wxCoord x, wxCoord width, wxCoord widthTotal) const; -static int LUACALL wxLua_wxWindow_AdjustForLayoutDirection(lua_State *L) -{ - // wxCoord widthTotal - wxCoord widthTotal = (wxCoord)wxlua_getnumbertype(L, 4); - // wxCoord width - wxCoord width = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call AdjustForLayoutDirection - wxCoord returns = (self->AdjustForLayoutDirection(x, width, widthTotal)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_AlwaysShowScrollbars[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_AlwaysShowScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_AlwaysShowScrollbars[1] = {{ wxLua_wxWindow_AlwaysShowScrollbars, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxWindow_AlwaysShowScrollbars }}; -// %wxchkver_3_0_0 void AlwaysShowScrollbars(bool hflag = true, bool vflag = true); -static int LUACALL wxLua_wxWindow_AlwaysShowScrollbars(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool vflag = true - bool vflag = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // bool hflag = true - bool hflag = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call AlwaysShowScrollbars - self->AlwaysShowScrollbars(hflag, vflag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_BeginRepositioningChildren[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_BeginRepositioningChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_BeginRepositioningChildren[1] = {{ wxLua_wxWindow_BeginRepositioningChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_BeginRepositioningChildren }}; -// %wxchkver_3_0_0 bool BeginRepositioningChildren(); -static int LUACALL wxLua_wxWindow_BeginRepositioningChildren(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call BeginRepositioningChildren - bool returns = (self->BeginRepositioningChildren()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CacheBestSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_CacheBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CacheBestSize[1] = {{ wxLua_wxWindow_CacheBestSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_CacheBestSize }}; -// void CacheBestSize(const wxSize& size) const; -static int LUACALL wxLua_wxWindow_CacheBestSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CacheBestSize - self->CacheBestSize(*size); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CanAcceptFocus[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_CanAcceptFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CanAcceptFocus[1] = {{ wxLua_wxWindow_CanAcceptFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_CanAcceptFocus }}; -// %wxchkver_3_0_0 bool CanAcceptFocus() const; -static int LUACALL wxLua_wxWindow_CanAcceptFocus(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CanAcceptFocus - bool returns = (self->CanAcceptFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CanAcceptFocusFromKeyboard[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_CanAcceptFocusFromKeyboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CanAcceptFocusFromKeyboard[1] = {{ wxLua_wxWindow_CanAcceptFocusFromKeyboard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_CanAcceptFocusFromKeyboard }}; -// %wxchkver_3_0_0 bool CanAcceptFocusFromKeyboard() const; -static int LUACALL wxLua_wxWindow_CanAcceptFocusFromKeyboard(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CanAcceptFocusFromKeyboard - bool returns = (self->CanAcceptFocusFromKeyboard()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CanScroll[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_CanScroll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CanScroll[1] = {{ wxLua_wxWindow_CanScroll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_CanScroll }}; -// %wxchkver_3_0_0 bool CanScroll(int orient) const; -static int LUACALL wxLua_wxWindow_CanScroll(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CanScroll - bool returns = (self->CanScroll(orient)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CanSetTransparent[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_CanSetTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CanSetTransparent[1] = {{ wxLua_wxWindow_CanSetTransparent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_CanSetTransparent }}; -// %wxchkver_3_0_0 bool CanSetTransparent(); -static int LUACALL wxLua_wxWindow_CanSetTransparent(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CanSetTransparent - bool returns = (self->CanSetTransparent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CaptureMouse[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_CaptureMouse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CaptureMouse[1] = {{ wxLua_wxWindow_CaptureMouse, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_CaptureMouse }}; -// virtual void CaptureMouse(); -static int LUACALL wxLua_wxWindow_CaptureMouse(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CaptureMouse - self->CaptureMouse(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Center[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_Center(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Center[1] = {{ wxLua_wxWindow_Center, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_Center }}; -// void Center(int direction = wxBOTH); -static int LUACALL wxLua_wxWindow_Center(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Center - self->Center(direction); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CenterOnParent[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_CenterOnParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CenterOnParent[1] = {{ wxLua_wxWindow_CenterOnParent, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_CenterOnParent }}; -// void CenterOnParent(int direction = wxBOTH); -static int LUACALL wxLua_wxWindow_CenterOnParent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CenterOnParent - self->CenterOnParent(direction); - - return 0; -} - - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CenterOnScreen[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_CenterOnScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CenterOnScreen[1] = {{ wxLua_wxWindow_CenterOnScreen, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_CenterOnScreen }}; -// !%wxchkver_2_8 void CenterOnScreen(int direction = wxBOTH); -static int LUACALL wxLua_wxWindow_CenterOnScreen(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CenterOnScreen - self->CenterOnScreen(direction); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Centre[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_Centre(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Centre[1] = {{ wxLua_wxWindow_Centre, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_Centre }}; -// void Centre(int direction = wxBOTH); -static int LUACALL wxLua_wxWindow_Centre(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Centre - self->Centre(direction); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CentreOnParent[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_CentreOnParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CentreOnParent[1] = {{ wxLua_wxWindow_CentreOnParent, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_CentreOnParent }}; -// void CentreOnParent(int direction = wxBOTH); -static int LUACALL wxLua_wxWindow_CentreOnParent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CentreOnParent - self->CentreOnParent(direction); - - return 0; -} - - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_CentreOnScreen[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_CentreOnScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_CentreOnScreen[1] = {{ wxLua_wxWindow_CentreOnScreen, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_CentreOnScreen }}; -// !%wxchkver_2_8 void CentreOnScreen(int direction = wxBOTH); -static int LUACALL wxLua_wxWindow_CentreOnScreen(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxBOTH - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBOTH); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call CentreOnScreen - self->CentreOnScreen(direction); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -#if !wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Clear[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Clear[1] = {{ wxLua_wxWindow_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Clear }}; -// !%wxchkver_2_6 void Clear(); -static int LUACALL wxLua_wxWindow_Clear(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Clear - self->Clear(); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,6,0) - -#if wxCHECK_VERSION(2,6,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ClearBackground[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_ClearBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ClearBackground[1] = {{ wxLua_wxWindow_ClearBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_ClearBackground }}; -// %wxchkver_2_6 void ClearBackground(); -static int LUACALL wxLua_wxWindow_ClearBackground(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ClearBackground - self->ClearBackground(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,6,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ClientToScreen[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_ClientToScreen(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ClientToScreen[1] = {{ wxLua_wxWindow_ClientToScreen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ClientToScreen }}; -// virtual wxPoint ClientToScreen(const wxPoint& pt) const; -static int LUACALL wxLua_wxWindow_ClientToScreen(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ClientToScreen - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->ClientToScreen(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#define wxLua_wxWindow_ClientToScreen1 wxLua_wxWindow_ClientToScreenXY -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ClientToScreen1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_ClientToScreen1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ClientToScreen1[1] = {{ wxLua_wxWindow_ClientToScreen1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_ClientToScreen1 }}; -// %override wxLua_wxWindow_ClientToScreenXY -// %rename ClientToScreenXY virtual void ClientToScreen(int* x, int* y) const -static int LUACALL wxLua_wxWindow_ClientToScreenXY(lua_State *L) -{ - int y = (int)lua_tonumber(L, 3); - int x = (int)lua_tonumber(L, 2); - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ClientToScreen - self->ClientToScreen(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ClientToWindowSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_ClientToWindowSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ClientToWindowSize[1] = {{ wxLua_wxWindow_ClientToWindowSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ClientToWindowSize }}; -// %wxchkver_3_0_0 wxSize ClientToWindowSize(const wxSize& size) const; -static int LUACALL wxLua_wxWindow_ClientToWindowSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ClientToWindowSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->ClientToWindowSize(*size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Close[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Close[1] = {{ wxLua_wxWindow_Close, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_Close }}; -// virtual bool Close(bool force = false); -static int LUACALL wxLua_wxWindow_Close(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool force = false - bool force = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Close - bool returns = (self->Close(force)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ConvertDialogToPixels1[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_ConvertDialogToPixels1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels1[1] = {{ wxLua_wxWindow_ConvertDialogToPixels1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertDialogToPixels1 }}; -// wxSize ConvertDialogToPixels(const wxSize& sz); -static int LUACALL wxLua_wxWindow_ConvertDialogToPixels1(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ConvertDialogToPixels - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->ConvertDialogToPixels(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ConvertDialogToPixels[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_ConvertDialogToPixels(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels[1] = {{ wxLua_wxWindow_ConvertDialogToPixels, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertDialogToPixels }}; -// wxPoint ConvertDialogToPixels(const wxPoint& pt); -static int LUACALL wxLua_wxWindow_ConvertDialogToPixels(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ConvertDialogToPixels - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->ConvertDialogToPixels(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ConvertPixelsToDialog1[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_ConvertPixelsToDialog1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog1[1] = {{ wxLua_wxWindow_ConvertPixelsToDialog1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertPixelsToDialog1 }}; -// wxSize ConvertPixelsToDialog(const wxSize& sz); -static int LUACALL wxLua_wxWindow_ConvertPixelsToDialog1(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ConvertPixelsToDialog - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->ConvertPixelsToDialog(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ConvertPixelsToDialog[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_ConvertPixelsToDialog(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog[1] = {{ wxLua_wxWindow_ConvertPixelsToDialog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertPixelsToDialog }}; -// wxPoint ConvertPixelsToDialog(const wxPoint& pt); -static int LUACALL wxLua_wxWindow_ConvertPixelsToDialog(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ConvertPixelsToDialog - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->ConvertPixelsToDialog(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Create[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Create[1] = {{ wxLua_wxWindow_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxWindow_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxWindow"); -static int LUACALL wxLua_wxWindow_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxWindow" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxWindow"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Destroy[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Destroy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Destroy[1] = {{ wxLua_wxWindow_Destroy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Destroy }}; -// virtual bool Destroy(); -static int LUACALL wxLua_wxWindow_Destroy(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Destroy - bool returns = (self->Destroy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_DestroyChildren[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_DestroyChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_DestroyChildren[1] = {{ wxLua_wxWindow_DestroyChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_DestroyChildren }}; -// virtual void DestroyChildren(); -static int LUACALL wxLua_wxWindow_DestroyChildren(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call DestroyChildren - self->DestroyChildren(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Disable[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Disable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Disable[1] = {{ wxLua_wxWindow_Disable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Disable }}; -// bool Disable(); -static int LUACALL wxLua_wxWindow_Disable(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Disable - bool returns = (self->Disable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,4) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_DisableFocusFromKeyboard[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_DisableFocusFromKeyboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_DisableFocusFromKeyboard[1] = {{ wxLua_wxWindow_DisableFocusFromKeyboard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_DisableFocusFromKeyboard }}; -// %wxchkver_3_1_4 void DisableFocusFromKeyboard(); -static int LUACALL wxLua_wxWindow_DisableFocusFromKeyboard(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call DisableFocusFromKeyboard - self->DisableFocusFromKeyboard(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,4) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_DoUpdateWindowUI[] = { &wxluatype_wxWindow, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxWindow_DoUpdateWindowUI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_DoUpdateWindowUI[1] = {{ wxLua_wxWindow_DoUpdateWindowUI, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_DoUpdateWindowUI }}; -// %wxchkver_3_0_0 void DoUpdateWindowUI(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxWindow_DoUpdateWindowUI(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call DoUpdateWindowUI - self->DoUpdateWindowUI(*event); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if defined(__WXMSW__) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_DragAcceptFiles[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_DragAcceptFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_DragAcceptFiles[1] = {{ wxLua_wxWindow_DragAcceptFiles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_DragAcceptFiles }}; -// %win virtual void DragAcceptFiles(bool accept); -static int LUACALL wxLua_wxWindow_DragAcceptFiles(lua_State *L) -{ - // bool accept - bool accept = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call DragAcceptFiles - self->DragAcceptFiles(accept); - - return 0; -} - -#endif // defined(__WXMSW__) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Enable[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Enable[1] = {{ wxLua_wxWindow_Enable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_Enable }}; -// virtual void Enable(bool enable); -static int LUACALL wxLua_wxWindow_Enable(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Enable - self->Enable(enable); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_EnableTouchEvents[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_EnableTouchEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_EnableTouchEvents[1] = {{ wxLua_wxWindow_EnableTouchEvents, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_EnableTouchEvents }}; -// %wxchkver_3_1_2 bool EnableTouchEvents(int eventsMask); -static int LUACALL wxLua_wxWindow_EnableTouchEvents(lua_State *L) -{ - // int eventsMask - int eventsMask = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call EnableTouchEvents - bool returns = (self->EnableTouchEvents(eventsMask)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,2) - -#if defined(__WXMAC__) && wxCHECK_VERSION(3,1,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_EnableVisibleFocus[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_EnableVisibleFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_EnableVisibleFocus[1] = {{ wxLua_wxWindow_EnableVisibleFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_EnableVisibleFocus }}; -// %mac && %wxchkver_3_1_5 virtual void EnableVisibleFocus(bool enable); -static int LUACALL wxLua_wxWindow_EnableVisibleFocus(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call EnableVisibleFocus - self->EnableVisibleFocus(enable); - - return 0; -} - -#endif // defined(__WXMAC__) && wxCHECK_VERSION(3,1,5) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_EndRepositioningChildren[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_EndRepositioningChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_EndRepositioningChildren[1] = {{ wxLua_wxWindow_EndRepositioningChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_EndRepositioningChildren }}; -// %wxchkver_3_0_0 void EndRepositioningChildren(); -static int LUACALL wxLua_wxWindow_EndRepositioningChildren(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call EndRepositioningChildren - self->EndRepositioningChildren(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static int LUACALL wxLua_wxWindow_FindFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindFocus[1] = {{ wxLua_wxWindow_FindFocus, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxWindow* FindFocus(); -static int LUACALL wxLua_wxWindow_FindFocus(lua_State *L) -{ - // call FindFocus - wxWindow* returns = (wxWindow*)wxWindow::FindFocus(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindow[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_FindWindow(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindow[1] = {{ wxLua_wxWindow_FindWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindow }}; -// wxWindow* FindWindow(long id); -static int LUACALL wxLua_wxWindow_FindWindow(lua_State *L) -{ - // long id - long id = (long)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call FindWindow - wxWindow* returns = (wxWindow*)self->FindWindow(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindow1[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_FindWindow1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindow1[1] = {{ wxLua_wxWindow_FindWindow1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindow1 }}; -// wxWindow* FindWindow(const wxString& name); -static int LUACALL wxLua_wxWindow_FindWindow1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call FindWindow - wxWindow* returns = (wxWindow*)self->FindWindow(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindowById1[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FindWindowById1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowById1[1] = {{ wxLua_wxWindow_FindWindowById1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowById1 }}; -// !%wxchkver_3_0_0 static wxWindow* FindWindowById(long id, wxWindow* parent = NULL); -static int LUACALL wxLua_wxWindow_FindWindowById1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // long id - long id = (long)wxlua_getnumbertype(L, 1); - // call FindWindowById - wxWindow* returns = (wxWindow*)wxWindow::FindWindowById(id, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindowById[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FindWindowById(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowById[1] = {{ wxLua_wxWindow_FindWindowById, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowById }}; -// %wxchkver_3_0_0 static wxWindow* FindWindowById(long id, const wxWindow* parent = 0); -static int LUACALL wxLua_wxWindow_FindWindowById(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxWindow parent = 0 - const wxWindow * parent = (argCount >= 2 ? (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : 0); - // long id - long id = (long)wxlua_getnumbertype(L, 1); - // call FindWindowById - wxWindow* returns = (wxWindow*)wxWindow::FindWindowById(id, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindowByLabel1[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FindWindowByLabel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowByLabel1[1] = {{ wxLua_wxWindow_FindWindowByLabel1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByLabel1 }}; -// !%wxchkver_3_0_0 static wxWindow* FindWindowByLabel(const wxString& label, wxWindow* parent = NULL); -static int LUACALL wxLua_wxWindow_FindWindowByLabel1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call FindWindowByLabel - wxWindow* returns = (wxWindow*)wxWindow::FindWindowByLabel(label, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindowByLabel[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FindWindowByLabel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowByLabel[1] = {{ wxLua_wxWindow_FindWindowByLabel, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByLabel }}; -// %wxchkver_3_0_0 static wxWindow* FindWindowByLabel(const wxString& label, const wxWindow* parent = 0); -static int LUACALL wxLua_wxWindow_FindWindowByLabel(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxWindow parent = 0 - const wxWindow * parent = (argCount >= 2 ? (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : 0); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call FindWindowByLabel - wxWindow* returns = (wxWindow*)wxWindow::FindWindowByLabel(label, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindowByName1[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FindWindowByName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowByName1[1] = {{ wxLua_wxWindow_FindWindowByName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByName1 }}; -// !%wxchkver_3_0_0 static wxWindow* FindWindowByName(const wxString& name, wxWindow* parent = NULL); -static int LUACALL wxLua_wxWindow_FindWindowByName1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindWindowByName - wxWindow* returns = (wxWindow*)wxWindow::FindWindowByName(name, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FindWindowByName[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FindWindowByName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowByName[1] = {{ wxLua_wxWindow_FindWindowByName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByName }}; -// %wxchkver_3_0_0 static wxWindow* FindWindowByName(const wxString& name, const wxWindow* parent = 0); -static int LUACALL wxLua_wxWindow_FindWindowByName(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxWindow parent = 0 - const wxWindow * parent = (argCount >= 2 ? (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : 0); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindWindowByName - wxWindow* returns = (wxWindow*)wxWindow::FindWindowByName(name, parent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Fit[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Fit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Fit[1] = {{ wxLua_wxWindow_Fit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Fit }}; -// virtual void Fit(); -static int LUACALL wxLua_wxWindow_Fit(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Fit - self->Fit(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FitInside[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FitInside(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FitInside[1] = {{ wxLua_wxWindow_FitInside, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_FitInside }}; -// virtual void FitInside(); -static int LUACALL wxLua_wxWindow_FitInside(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call FitInside - self->FitInside(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Freeze[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Freeze(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Freeze[1] = {{ wxLua_wxWindow_Freeze, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Freeze }}; -// virtual void Freeze(); -static int LUACALL wxLua_wxWindow_Freeze(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Freeze - self->Freeze(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FromDIP5[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FromDIP5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP5[1] = {{ wxLua_wxWindow_FromDIP5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP5 }}; -// %wxchkver_3_1_2 static int FromDIP(int d, const wxWindow* w); -static int LUACALL wxLua_wxWindow_FromDIP5(lua_State *L) -{ - // const wxWindow w - const wxWindow * w = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // int d - int d = (int)wxlua_getnumbertype(L, 1); - // call FromDIP - int returns = (wxWindow::FromDIP(d, w)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,2) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FromDIP4[] = { &wxluatype_wxPoint, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FromDIP4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP4[1] = {{ wxLua_wxWindow_FromDIP4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP4 }}; -// %wxchkver_3_1_0 static wxPoint FromDIP(const wxPoint& pt, const wxWindow* w); -static int LUACALL wxLua_wxWindow_FromDIP4(lua_State *L) -{ - // const wxWindow w - const wxWindow * w = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call FromDIP - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(wxWindow::FromDIP(*pt, w)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FromDIP3[] = { &wxluatype_wxSize, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_FromDIP3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP3[1] = {{ wxLua_wxWindow_FromDIP3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP3 }}; -// %wxchkver_3_1_0 static wxSize FromDIP(const wxSize& sz, const wxWindow* w); -static int LUACALL wxLua_wxWindow_FromDIP3(lua_State *L) -{ - // const wxWindow w - const wxWindow * w = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call FromDIP - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxWindow::FromDIP(*sz, w)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FromDIP2[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_FromDIP2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP2[1] = {{ wxLua_wxWindow_FromDIP2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP2 }}; -// %wxchkver_3_1_0 int FromDIP(int d) const; -static int LUACALL wxLua_wxWindow_FromDIP2(lua_State *L) -{ - // int d - int d = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call FromDIP - int returns = (self->FromDIP(d)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FromDIP1[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_FromDIP1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP1[1] = {{ wxLua_wxWindow_FromDIP1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP1 }}; -// %wxchkver_3_1_0 wxPoint FromDIP(const wxPoint& pt) const; -static int LUACALL wxLua_wxWindow_FromDIP1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call FromDIP - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->FromDIP(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_FromDIP[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_FromDIP(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP[1] = {{ wxLua_wxWindow_FromDIP, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP }}; -// %wxchkver_3_1_0 wxSize FromDIP(const wxSize& sz) const; -static int LUACALL wxLua_wxWindow_FromDIP(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call FromDIP - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->FromDIP(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetAcceleratorTable[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetAcceleratorTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetAcceleratorTable[1] = {{ wxLua_wxWindow_GetAcceleratorTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetAcceleratorTable }}; -// wxAcceleratorTable* GetAcceleratorTable() const; -static int LUACALL wxLua_wxWindow_GetAcceleratorTable(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetAcceleratorTable - wxAcceleratorTable* returns = (wxAcceleratorTable*)self->GetAcceleratorTable(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxAcceleratorTable); - - return 1; -} - -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetAdjustedBestSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetAdjustedBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetAdjustedBestSize[1] = {{ wxLua_wxWindow_GetAdjustedBestSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetAdjustedBestSize }}; -// !%wxchkver_2_8 wxSize GetAdjustedBestSize() const; -static int LUACALL wxLua_wxWindow_GetAdjustedBestSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetAdjustedBestSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetAdjustedBestSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetAutoLayout[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetAutoLayout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetAutoLayout[1] = {{ wxLua_wxWindow_GetAutoLayout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetAutoLayout }}; -// %wxchkver_3_0_0 bool GetAutoLayout() const; -static int LUACALL wxLua_wxWindow_GetAutoLayout(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetAutoLayout - bool returns = (self->GetAutoLayout()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBackgroundColour[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBackgroundColour[1] = {{ wxLua_wxWindow_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBackgroundColour }}; -// virtual wxColour GetBackgroundColour() const; -static int LUACALL wxLua_wxWindow_GetBackgroundColour(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBackgroundStyle[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetBackgroundStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBackgroundStyle[1] = {{ wxLua_wxWindow_GetBackgroundStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBackgroundStyle }}; -// virtual wxBackgroundStyle GetBackgroundStyle() const; -static int LUACALL wxLua_wxWindow_GetBackgroundStyle(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBackgroundStyle - wxBackgroundStyle returns = (self->GetBackgroundStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBestFittingSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetBestFittingSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBestFittingSize[1] = {{ wxLua_wxWindow_GetBestFittingSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBestFittingSize }}; -// !%wxchkver_3_0_0 wxSize GetBestFittingSize() const; -static int LUACALL wxLua_wxWindow_GetBestFittingSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBestFittingSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBestFittingSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBestHeight[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetBestHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBestHeight[1] = {{ wxLua_wxWindow_GetBestHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetBestHeight }}; -// %wxchkver_3_0_0 int GetBestHeight(int width) const; -static int LUACALL wxLua_wxWindow_GetBestHeight(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBestHeight - int returns = (self->GetBestHeight(width)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBestSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBestSize[1] = {{ wxLua_wxWindow_GetBestSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBestSize }}; -// virtual wxSize GetBestSize() const; -static int LUACALL wxLua_wxWindow_GetBestSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBestSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBestSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBestVirtualSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetBestVirtualSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBestVirtualSize[1] = {{ wxLua_wxWindow_GetBestVirtualSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBestVirtualSize }}; -// %wxchkver_2_9_4 virtual wxSize GetBestVirtualSize() const; -static int LUACALL wxLua_wxWindow_GetBestVirtualSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBestVirtualSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBestVirtualSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBestWidth[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetBestWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBestWidth[1] = {{ wxLua_wxWindow_GetBestWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetBestWidth }}; -// %wxchkver_3_0_0 int GetBestWidth(int height) const; -static int LUACALL wxLua_wxWindow_GetBestWidth(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBestWidth - int returns = (self->GetBestWidth(height)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBorder1[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetBorder1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBorder1[1] = {{ wxLua_wxWindow_GetBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBorder1 }}; -// %wxchkver_3_0_0 wxBorder GetBorder() const; -static int LUACALL wxLua_wxWindow_GetBorder1(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBorder - wxBorder returns = (self->GetBorder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetBorder[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetBorder(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBorder[1] = {{ wxLua_wxWindow_GetBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetBorder }}; -// %wxchkver_3_0_0 wxBorder GetBorder(long flags) const; -static int LUACALL wxLua_wxWindow_GetBorder(lua_State *L) -{ - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetBorder - wxBorder returns = (self->GetBorder(flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static int LUACALL wxLua_wxWindow_GetCapture(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetCapture[1] = {{ wxLua_wxWindow_GetCapture, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxWindow* GetCapture(); -static int LUACALL wxLua_wxWindow_GetCapture(lua_State *L) -{ - // call GetCapture - wxWindow* returns = (wxWindow*)wxWindow::GetCapture(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if wxLUA_USE_wxCaret && wxUSE_CARET -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetCaret[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetCaret[1] = {{ wxLua_wxWindow_GetCaret, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetCaret }}; -// wxCaret* GetCaret() const; -static int LUACALL wxLua_wxWindow_GetCaret(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetCaret - wxCaret* returns = (wxCaret*)self->GetCaret(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCaret); - - return 1; -} - -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetCharHeight[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetCharHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetCharHeight[1] = {{ wxLua_wxWindow_GetCharHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetCharHeight }}; -// virtual int GetCharHeight() const; -static int LUACALL wxLua_wxWindow_GetCharHeight(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetCharHeight - int returns = (self->GetCharHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetCharWidth[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetCharWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetCharWidth[1] = {{ wxLua_wxWindow_GetCharWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetCharWidth }}; -// virtual int GetCharWidth() const; -static int LUACALL wxLua_wxWindow_GetCharWidth(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetCharWidth - int returns = (self->GetCharWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxLUA_USE_wxWindowList && !wxUSE_STL -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetChildren[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetChildren[1] = {{ wxLua_wxWindow_GetChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetChildren }}; -// wxWindowList& GetChildren(); -static int LUACALL wxLua_wxWindow_GetChildren(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetChildren - wxWindowList* returns = (wxWindowList*)&self->GetChildren(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindowList); - - return 1; -} - -#endif // wxLUA_USE_wxWindowList && !wxUSE_STL - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetClassDefaultAttributes[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_GetClassDefaultAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetClassDefaultAttributes[1] = {{ wxLua_wxWindow_GetClassDefaultAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxWindow_GetClassDefaultAttributes }}; -// %wxchkver_3_0_0 static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); -static int LUACALL wxLua_wxWindow_GetClassDefaultAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL - wxWindowVariant variant = (argCount >= 1 ? (wxWindowVariant)wxlua_getenumtype(L, 1) : wxWINDOW_VARIANT_NORMAL); - // call GetClassDefaultAttributes - // allocate a new object using the copy constructor - wxVisualAttributes* returns = new wxVisualAttributes(wxWindow::GetClassDefaultAttributes(variant)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVisualAttributes); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetClientAreaOrigin[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetClientAreaOrigin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetClientAreaOrigin[1] = {{ wxLua_wxWindow_GetClientAreaOrigin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetClientAreaOrigin }}; -// %wxchkver_3_0_0 wxPoint GetClientAreaOrigin() const; -static int LUACALL wxLua_wxWindow_GetClientAreaOrigin(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetClientAreaOrigin - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetClientAreaOrigin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetClientRect[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetClientRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetClientRect[1] = {{ wxLua_wxWindow_GetClientRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetClientRect }}; -// %wxchkver_3_0_0 wxRect GetClientRect() const; -static int LUACALL wxLua_wxWindow_GetClientRect(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetClientRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetClientRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetClientSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetClientSize[1] = {{ wxLua_wxWindow_GetClientSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetClientSize }}; -// wxSize GetClientSize() const; -static int LUACALL wxLua_wxWindow_GetClientSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetClientSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetClientSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetClientSizeWH[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetClientSizeWH(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetClientSizeWH[1] = {{ wxLua_wxWindow_GetClientSizeWH, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetClientSizeWH }}; -// %override wxLua_wxWindow_GetClientSizeWH -// virtual wxSize GetClientSize() const -static int LUACALL wxLua_wxWindow_GetClientSizeWH(lua_State *L) -{ - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetClientSize - wxSize size = self->GetClientSize(); - lua_pushinteger(L, size.x); - lua_pushinteger(L, size.y); - // return the number of parameters - return 2; -} - - - -#if ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetConstraints[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetConstraints(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetConstraints[1] = {{ wxLua_wxWindow_GetConstraints, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetConstraints }}; -// %wxchkver_3_0_0 wxLayoutConstraints* GetConstraints() const; -static int LUACALL wxLua_wxWindow_GetConstraints(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetConstraints - wxLayoutConstraints* returns = (wxLayoutConstraints*)self->GetConstraints(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLayoutConstraints); - - return 1; -} - -#endif // ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetContainingSizer[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetContainingSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetContainingSizer[1] = {{ wxLua_wxWindow_GetContainingSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetContainingSizer }}; -// const wxSizer* GetContainingSizer() const; -static int LUACALL wxLua_wxWindow_GetContainingSizer(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetContainingSizer - const wxSizer* returns = (const wxSizer*)self->GetContainingSizer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetContentScaleFactor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetContentScaleFactor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetContentScaleFactor[1] = {{ wxLua_wxWindow_GetContentScaleFactor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetContentScaleFactor }}; -// %wxchkver_2_9_5 virtual double GetContentScaleFactor() const; -static int LUACALL wxLua_wxWindow_GetContentScaleFactor(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetContentScaleFactor - double returns = (self->GetContentScaleFactor()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxLUA_USE_wxCursor -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetCursor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetCursor[1] = {{ wxLua_wxWindow_GetCursor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetCursor }}; -// wxCursor GetCursor() const; -static int LUACALL wxLua_wxWindow_GetCursor(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetCursor - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetCursor()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // wxLUA_USE_wxCursor - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetDPI[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetDPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetDPI[1] = {{ wxLua_wxWindow_GetDPI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetDPI }}; -// %wxchkver_3_1_3 wxSize GetDPI() const; -static int LUACALL wxLua_wxWindow_GetDPI(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDPI - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetDPI()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,4) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetDPIScaleFactor[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetDPIScaleFactor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetDPIScaleFactor[1] = {{ wxLua_wxWindow_GetDPIScaleFactor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetDPIScaleFactor }}; -// %wxchkver_3_1_4 double GetDPIScaleFactor() const; -static int LUACALL wxLua_wxWindow_GetDPIScaleFactor(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDPIScaleFactor - double returns = (self->GetDPIScaleFactor()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,4) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetDefaultAttributes[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetDefaultAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetDefaultAttributes[1] = {{ wxLua_wxWindow_GetDefaultAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetDefaultAttributes }}; -// virtual wxVisualAttributes GetDefaultAttributes() const; -static int LUACALL wxLua_wxWindow_GetDefaultAttributes(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDefaultAttributes - // allocate a new object using the copy constructor - wxVisualAttributes* returns = new wxVisualAttributes(self->GetDefaultAttributes()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVisualAttributes); - - return 1; -} - - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetDefaultItem[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetDefaultItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetDefaultItem[1] = {{ wxLua_wxWindow_GetDefaultItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetDefaultItem }}; -// !%wxchkver_2_8 wxWindow* GetDefaultItem() const; -static int LUACALL wxLua_wxWindow_GetDefaultItem(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDefaultItem - wxWindow* returns = (wxWindow*)self->GetDefaultItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetDropTarget[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetDropTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetDropTarget[1] = {{ wxLua_wxWindow_GetDropTarget, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetDropTarget }}; -// wxDropTarget* GetDropTarget() const; -static int LUACALL wxLua_wxWindow_GetDropTarget(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDropTarget - wxDropTarget* returns = (wxDropTarget*)self->GetDropTarget(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDropTarget); - - return 1; -} - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetEffectiveMinSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetEffectiveMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetEffectiveMinSize[1] = {{ wxLua_wxWindow_GetEffectiveMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetEffectiveMinSize }}; -// %wxchkver_3_0_0 wxSize GetEffectiveMinSize() const; -static int LUACALL wxLua_wxWindow_GetEffectiveMinSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetEffectiveMinSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetEffectiveMinSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetEventHandler[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetEventHandler[1] = {{ wxLua_wxWindow_GetEventHandler, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetEventHandler }}; -// wxEvtHandler* GetEventHandler() const; -static int LUACALL wxLua_wxWindow_GetEventHandler(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetEventHandler - wxEvtHandler* returns = (wxEvtHandler*)self->GetEventHandler(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetExtraStyle[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetExtraStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetExtraStyle[1] = {{ wxLua_wxWindow_GetExtraStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetExtraStyle }}; -// long GetExtraStyle() const; -static int LUACALL wxLua_wxWindow_GetExtraStyle(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetExtraStyle - long returns = (self->GetExtraStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetFont[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetFont[1] = {{ wxLua_wxWindow_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetFont }}; -// wxFont GetFont() const; -static int LUACALL wxLua_wxWindow_GetFont(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->GetFont()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetForegroundColour[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetForegroundColour[1] = {{ wxLua_wxWindow_GetForegroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetForegroundColour }}; -// virtual wxColour GetForegroundColour(); -static int LUACALL wxLua_wxWindow_GetForegroundColour(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetForegroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetForegroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetGrandParent[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetGrandParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetGrandParent[1] = {{ wxLua_wxWindow_GetGrandParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetGrandParent }}; -// wxWindow* GetGrandParent() const; -static int LUACALL wxLua_wxWindow_GetGrandParent(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetGrandParent - wxWindow* returns = (wxWindow*)self->GetGrandParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetHandle[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetHandle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetHandle[1] = {{ wxLua_wxWindow_GetHandle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetHandle }}; -// %override wxLua_wxWindow_GetHandle -// void *GetHandle() const -static int LUACALL wxLua_wxWindow_GetHandle(lua_State *L) -{ - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetHandle - void *handle = (void *)self->GetHandle(); - // push handle - lua_pushlightuserdata(L, handle); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetHelpText[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetHelpText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetHelpText[1] = {{ wxLua_wxWindow_GetHelpText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetHelpText }}; -// virtual wxString GetHelpText() const; -static int LUACALL wxLua_wxWindow_GetHelpText(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetHelpText - wxString returns = (self->GetHelpText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetHelpTextAtPoint[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_GetHelpTextAtPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetHelpTextAtPoint[1] = {{ wxLua_wxWindow_GetHelpTextAtPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_GetHelpTextAtPoint }}; -// %wxchkver_3_0_0 wxString GetHelpTextAtPoint(const wxPoint& point, wxHelpEvent::Origin origin) const; -static int LUACALL wxLua_wxWindow_GetHelpTextAtPoint(lua_State *L) -{ - // wxHelpEvent::Origin origin - wxHelpEvent::Origin origin = (wxHelpEvent::Origin)wxlua_getenumtype(L, 3); - // const wxPoint point - const wxPoint * point = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetHelpTextAtPoint - wxString returns = (self->GetHelpTextAtPoint(*point, origin)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetId[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetId[1] = {{ wxLua_wxWindow_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetId }}; -// int GetId() const; -static int LUACALL wxLua_wxWindow_GetId(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetId - int returns = (self->GetId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetLabel[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetLabel[1] = {{ wxLua_wxWindow_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetLabel }}; -// virtual wxString GetLabel() const; -static int LUACALL wxLua_wxWindow_GetLabel(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetLayoutDirection[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetLayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetLayoutDirection[1] = {{ wxLua_wxWindow_GetLayoutDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetLayoutDirection }}; -// %wxchkver_3_0_0 wxLayoutDirection GetLayoutDirection() const; -static int LUACALL wxLua_wxWindow_GetLayoutDirection(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetLayoutDirection - wxLayoutDirection returns = (self->GetLayoutDirection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMaxClientSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMaxClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMaxClientSize[1] = {{ wxLua_wxWindow_GetMaxClientSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMaxClientSize }}; -// %wxchkver_3_0_0 wxSize GetMaxClientSize() const; -static int LUACALL wxLua_wxWindow_GetMaxClientSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMaxClientSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMaxClientSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMaxHeight[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMaxHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMaxHeight[1] = {{ wxLua_wxWindow_GetMaxHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMaxHeight }}; -// %wxchkver_3_0_0 int GetMaxHeight() const; -static int LUACALL wxLua_wxWindow_GetMaxHeight(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMaxHeight - int returns = (self->GetMaxHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMaxSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMaxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMaxSize[1] = {{ wxLua_wxWindow_GetMaxSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMaxSize }}; -// wxSize GetMaxSize() const; -static int LUACALL wxLua_wxWindow_GetMaxSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMaxSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMaxSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMaxWidth[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMaxWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMaxWidth[1] = {{ wxLua_wxWindow_GetMaxWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMaxWidth }}; -// %wxchkver_3_0_0 int GetMaxWidth() const; -static int LUACALL wxLua_wxWindow_GetMaxWidth(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMaxWidth - int returns = (self->GetMaxWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMinClientSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMinClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMinClientSize[1] = {{ wxLua_wxWindow_GetMinClientSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMinClientSize }}; -// %wxchkver_3_0_0 wxSize GetMinClientSize() const; -static int LUACALL wxLua_wxWindow_GetMinClientSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMinClientSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMinClientSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMinHeight[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMinHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMinHeight[1] = {{ wxLua_wxWindow_GetMinHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMinHeight }}; -// %wxchkver_3_0_0 int GetMinHeight() const; -static int LUACALL wxLua_wxWindow_GetMinHeight(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMinHeight - int returns = (self->GetMinHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMinSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMinSize[1] = {{ wxLua_wxWindow_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMinSize }}; -// wxSize GetMinSize() const; -static int LUACALL wxLua_wxWindow_GetMinSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMinSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMinSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetMinWidth[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetMinWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetMinWidth[1] = {{ wxLua_wxWindow_GetMinWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetMinWidth }}; -// %wxchkver_3_0_0 int GetMinWidth() const; -static int LUACALL wxLua_wxWindow_GetMinWidth(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetMinWidth - int returns = (self->GetMinWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetName[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetName[1] = {{ wxLua_wxWindow_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxWindow_GetName(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetNextSibling[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetNextSibling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetNextSibling[1] = {{ wxLua_wxWindow_GetNextSibling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetNextSibling }}; -// %wxchkver_3_0_0 wxWindow* GetNextSibling() const; -static int LUACALL wxLua_wxWindow_GetNextSibling(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetNextSibling - wxWindow* returns = (wxWindow*)self->GetNextSibling(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetParent[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetParent[1] = {{ wxLua_wxWindow_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetParent }}; -// virtual wxWindow* GetParent() const; -static int LUACALL wxLua_wxWindow_GetParent(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetParent - wxWindow* returns = (wxWindow*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetPopupMenuSelectionFromUser1[] = { &wxluatype_wxWindow, &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetPopupMenuSelectionFromUser1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser1[1] = {{ wxLua_wxWindow_GetPopupMenuSelectionFromUser1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_GetPopupMenuSelectionFromUser1 }}; -// %wxchkver_3_0_0 int GetPopupMenuSelectionFromUser(wxMenu& menu, int x, int y); -static int LUACALL wxLua_wxWindow_GetPopupMenuSelectionFromUser1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 4); - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetPopupMenuSelectionFromUser - int returns = (self->GetPopupMenuSelectionFromUser(*menu, x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetPopupMenuSelectionFromUser[] = { &wxluatype_wxWindow, &wxluatype_wxMenu, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_GetPopupMenuSelectionFromUser(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser[1] = {{ wxLua_wxWindow_GetPopupMenuSelectionFromUser, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_GetPopupMenuSelectionFromUser }}; -// %wxchkver_3_0_0 int GetPopupMenuSelectionFromUser(wxMenu& menu, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxWindow_GetPopupMenuSelectionFromUser(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetPopupMenuSelectionFromUser - int returns = (self->GetPopupMenuSelectionFromUser(*menu, *pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetPosition[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetPosition[1] = {{ wxLua_wxWindow_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetPosition }}; -// wxPoint GetPosition() const; -static int LUACALL wxLua_wxWindow_GetPosition(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#define wxLua_wxWindow_GetPositionXY wxLua_wxWindow_GetPositionXY -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetPositionXY[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetPositionXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetPositionXY[1] = {{ wxLua_wxWindow_GetPositionXY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetPositionXY }}; -// %override wxLua_wxWindow_GetPositionXY -// virtual void GetPositionXY(int* x, int* y) const -static int LUACALL wxLua_wxWindow_GetPositionXY(lua_State *L) -{ - int y = 0; - int x = 0; - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetPosition - self->GetPosition(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetPrevSibling[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetPrevSibling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetPrevSibling[1] = {{ wxLua_wxWindow_GetPrevSibling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetPrevSibling }}; -// %wxchkver_3_0_0 wxWindow* GetPrevSibling() const; -static int LUACALL wxLua_wxWindow_GetPrevSibling(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetPrevSibling - wxWindow* returns = (wxWindow*)self->GetPrevSibling(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetRect[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetRect[1] = {{ wxLua_wxWindow_GetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetRect }}; -// virtual wxRect GetRect() const; -static int LUACALL wxLua_wxWindow_GetRect(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetScreenPosition[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetScreenPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetScreenPosition[1] = {{ wxLua_wxWindow_GetScreenPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetScreenPosition }}; -// virtual wxPoint GetScreenPosition(); -static int LUACALL wxLua_wxWindow_GetScreenPosition(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetScreenPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetScreenPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#define wxLua_wxWindow_GetScreenPositionXY wxLua_wxWindow_GetScreenPositionXY -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetScreenPositionXY[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetScreenPositionXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetScreenPositionXY[1] = {{ wxLua_wxWindow_GetScreenPositionXY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetScreenPositionXY }}; -// %override wxLua_wxWindow_GetScreenPositionXY -// virtual void GetScreenPositionXY(int* x, int* y) const -static int LUACALL wxLua_wxWindow_GetScreenPositionXY(lua_State *L) -{ - int y = 0; - int x = 0; - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetPosition - self->GetScreenPosition(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetScreenRect[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetScreenRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetScreenRect[1] = {{ wxLua_wxWindow_GetScreenRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetScreenRect }}; -// virtual wxRect GetScreenRect() const; -static int LUACALL wxLua_wxWindow_GetScreenRect(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetScreenRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetScreenRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetScrollPos[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetScrollPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetScrollPos[1] = {{ wxLua_wxWindow_GetScrollPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetScrollPos }}; -// virtual int GetScrollPos(int orientation); -static int LUACALL wxLua_wxWindow_GetScrollPos(lua_State *L) -{ - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetScrollPos - int returns = (self->GetScrollPos(orientation)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetScrollRange[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetScrollRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetScrollRange[1] = {{ wxLua_wxWindow_GetScrollRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetScrollRange }}; -// virtual int GetScrollRange(int orientation); -static int LUACALL wxLua_wxWindow_GetScrollRange(lua_State *L) -{ - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetScrollRange - int returns = (self->GetScrollRange(orientation)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetScrollThumb[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_GetScrollThumb(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetScrollThumb[1] = {{ wxLua_wxWindow_GetScrollThumb, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetScrollThumb }}; -// virtual int GetScrollThumb(int orientation); -static int LUACALL wxLua_wxWindow_GetScrollThumb(lua_State *L) -{ - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetScrollThumb - int returns = (self->GetScrollThumb(orientation)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetSize[1] = {{ wxLua_wxWindow_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetSize }}; -// virtual wxSize GetSize() const; -static int LUACALL wxLua_wxWindow_GetSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetSizeWH[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetSizeWH(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetSizeWH[1] = {{ wxLua_wxWindow_GetSizeWH, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetSizeWH }}; -// %override wxLua_wxWindow_GetSizeWH -// void GetSize(int *width, int *height) -static int LUACALL wxLua_wxWindow_GetSizeWH(lua_State *L) -{ - int width = 0; - int height = 0; - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ClientToScreen - self->GetSize(&width, &height); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 2; -} - - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetSizer[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetSizer[1] = {{ wxLua_wxWindow_GetSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetSizer }}; -// wxSizer* GetSizer() const; -static int LUACALL wxLua_wxWindow_GetSizer(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetSizer - wxSizer* returns = (wxSizer*)self->GetSizer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetTextExtent[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxWindow_GetTextExtent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetTextExtent[1] = {{ wxLua_wxWindow_GetTextExtent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_GetTextExtent }}; -// %override wxLua_wxWindow_GetTextExtent -// virtual void GetTextExtent(const wxString& string, int* x, int* y, int* descent = NULL, int* externalLeading = NULL, const wxFont* font = NULL) const -static int LUACALL wxLua_wxWindow_GetTextExtent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxFont* font = NULL - const wxFont *font = (argCount >= 3 ? (wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : NULL); - - int externalLeading; - int descent; - int w; - int h; - // const wxString& string - wxString string = wxlua_getwxStringtype(L, 2); - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetTextExtent - self->GetTextExtent(string, &w, &h, &descent, &externalLeading, font); - // return the number of parameters - lua_pushinteger(L, w); - lua_pushinteger(L, h); - lua_pushinteger(L, descent); - lua_pushinteger(L, externalLeading); - return 4; -} - - -#endif // wxLUA_USE_wxFont - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetThemeEnabled[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetThemeEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetThemeEnabled[1] = {{ wxLua_wxWindow_GetThemeEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetThemeEnabled }}; -// %wxchkver_3_0_0 bool GetThemeEnabled() const; -static int LUACALL wxLua_wxWindow_GetThemeEnabled(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetThemeEnabled - bool returns = (self->GetThemeEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetTitle[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetTitle[1] = {{ wxLua_wxWindow_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetTitle }}; -// !%wxchkver_2_8 virtual wxString GetTitle(); -static int LUACALL wxLua_wxWindow_GetTitle(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetToolTip[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetToolTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetToolTip[1] = {{ wxLua_wxWindow_GetToolTip, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetToolTip }}; -// wxToolTip* GetToolTip() const; -static int LUACALL wxLua_wxWindow_GetToolTip(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetToolTip - wxToolTip* returns = (wxToolTip*)self->GetToolTip(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolTip); - - return 1; -} - -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetToolTipText[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetToolTipText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetToolTipText[1] = {{ wxLua_wxWindow_GetToolTipText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetToolTipText }}; -// %wxchkver_3_0_0 wxString GetToolTipText() const; -static int LUACALL wxLua_wxWindow_GetToolTipText(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetToolTipText - wxString returns = (self->GetToolTipText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetUpdateClientRect[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetUpdateClientRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetUpdateClientRect[1] = {{ wxLua_wxWindow_GetUpdateClientRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetUpdateClientRect }}; -// %wxchkver_3_0_0 wxRect GetUpdateClientRect() const; -static int LUACALL wxLua_wxWindow_GetUpdateClientRect(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetUpdateClientRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetUpdateClientRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxRegion -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetUpdateRegion[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetUpdateRegion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetUpdateRegion[1] = {{ wxLua_wxWindow_GetUpdateRegion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetUpdateRegion }}; -// virtual wxRegion GetUpdateRegion() const; -static int LUACALL wxLua_wxWindow_GetUpdateRegion(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetUpdateRegion - // allocate a new object using the copy constructor - wxRegion* returns = new wxRegion(self->GetUpdateRegion()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRegion); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRegion); - - return 1; -} - -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetValidator[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetValidator[1] = {{ wxLua_wxWindow_GetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetValidator }}; -// wxValidator* GetValidator() const; -static int LUACALL wxLua_wxWindow_GetValidator(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetValidator - wxValidator* returns = (wxValidator*)self->GetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetVirtualSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetVirtualSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetVirtualSize[1] = {{ wxLua_wxWindow_GetVirtualSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetVirtualSize }}; -// wxSize GetVirtualSize() const; -static int LUACALL wxLua_wxWindow_GetVirtualSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetVirtualSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetVirtualSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#define wxLua_wxWindow_GetVirtualSizeWH wxLua_wxWindow_GetVirtualSizeWH -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetVirtualSizeWH[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetVirtualSizeWH(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetVirtualSizeWH[1] = {{ wxLua_wxWindow_GetVirtualSizeWH, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetVirtualSizeWH }}; -// %override wxLua_wxWindow_GetVirtualSizeWH -// void GetVirtualSize(int *width, int *height) -static int LUACALL wxLua_wxWindow_GetVirtualSizeWH(lua_State *L) -{ - int width = 0; - int height = 0; - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ClientToScreen - self->GetVirtualSize(&width, &height); - lua_pushinteger(L, width); - lua_pushinteger(L, height); - // return the number of parameters - return 2; -} - - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetWindowBorderSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetWindowBorderSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetWindowBorderSize[1] = {{ wxLua_wxWindow_GetWindowBorderSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetWindowBorderSize }}; -// %wxchkver_3_0_0 wxSize GetWindowBorderSize() const; -static int LUACALL wxLua_wxWindow_GetWindowBorderSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetWindowBorderSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetWindowBorderSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetWindowStyle[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetWindowStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetWindowStyle[1] = {{ wxLua_wxWindow_GetWindowStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetWindowStyle }}; -// %wxchkver_3_0_0 long GetWindowStyle() const; -static int LUACALL wxLua_wxWindow_GetWindowStyle(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetWindowStyle - long returns = (self->GetWindowStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetWindowStyleFlag[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetWindowStyleFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetWindowStyleFlag[1] = {{ wxLua_wxWindow_GetWindowStyleFlag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetWindowStyleFlag }}; -// long GetWindowStyleFlag() const; -static int LUACALL wxLua_wxWindow_GetWindowStyleFlag(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetWindowStyleFlag - long returns = (self->GetWindowStyleFlag()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_GetWindowVariant[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_GetWindowVariant(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetWindowVariant[1] = {{ wxLua_wxWindow_GetWindowVariant, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetWindowVariant }}; -// wxWindowVariant GetWindowVariant() const; -static int LUACALL wxLua_wxWindow_GetWindowVariant(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetWindowVariant - wxWindowVariant returns = (self->GetWindowVariant()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HandleAsNavigationKey[] = { &wxluatype_wxWindow, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxWindow_HandleAsNavigationKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HandleAsNavigationKey[1] = {{ wxLua_wxWindow_HandleAsNavigationKey, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HandleAsNavigationKey }}; -// %wxchkver_3_0_0 bool HandleAsNavigationKey(const wxKeyEvent& event); -static int LUACALL wxLua_wxWindow_HandleAsNavigationKey(lua_State *L) -{ - // const wxKeyEvent event - const wxKeyEvent * event = (const wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HandleAsNavigationKey - bool returns = (self->HandleAsNavigationKey(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HandleWindowEvent[] = { &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxWindow_HandleWindowEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HandleWindowEvent[1] = {{ wxLua_wxWindow_HandleWindowEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HandleWindowEvent }}; -// %wxchkver_3_0_0 bool HandleWindowEvent(wxEvent& event) const; -static int LUACALL wxLua_wxWindow_HandleWindowEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HandleWindowEvent - bool returns = (self->HandleWindowEvent(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(2,4,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasCapture[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_HasCapture(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasCapture[1] = {{ wxLua_wxWindow_HasCapture, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_HasCapture }}; -// %wxchkver_2_4 bool HasCapture() const; -static int LUACALL wxLua_wxWindow_HasCapture(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasCapture - bool returns = (self->HasCapture()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,4,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasExtraStyle[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_HasExtraStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasExtraStyle[1] = {{ wxLua_wxWindow_HasExtraStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HasExtraStyle }}; -// %wxchkver_3_0_0 bool HasExtraStyle(int exFlag) const; -static int LUACALL wxLua_wxWindow_HasExtraStyle(lua_State *L) -{ - // int exFlag - int exFlag = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasExtraStyle - bool returns = (self->HasExtraStyle(exFlag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasFlag[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_HasFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasFlag[1] = {{ wxLua_wxWindow_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HasFlag }}; -// %wxchkver_3_0_0 bool HasFlag(int flag) const; -static int LUACALL wxLua_wxWindow_HasFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasFocus[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_HasFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasFocus[1] = {{ wxLua_wxWindow_HasFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_HasFocus }}; -// %wxchkver_3_0_0 bool HasFocus() const; -static int LUACALL wxLua_wxWindow_HasFocus(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasFocus - bool returns = (self->HasFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasMultiplePages[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_HasMultiplePages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasMultiplePages[1] = {{ wxLua_wxWindow_HasMultiplePages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_HasMultiplePages }}; -// %wxchkver_3_0_0 bool HasMultiplePages() const; -static int LUACALL wxLua_wxWindow_HasMultiplePages(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasMultiplePages - bool returns = (self->HasMultiplePages()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasScrollbar[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_HasScrollbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasScrollbar[1] = {{ wxLua_wxWindow_HasScrollbar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HasScrollbar }}; -// virtual bool HasScrollbar(int orient) const; -static int LUACALL wxLua_wxWindow_HasScrollbar(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasScrollbar - bool returns = (self->HasScrollbar(orient)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HasTransparentBackground[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_HasTransparentBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HasTransparentBackground[1] = {{ wxLua_wxWindow_HasTransparentBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_HasTransparentBackground }}; -// virtual bool HasTransparentBackground() const; -static int LUACALL wxLua_wxWindow_HasTransparentBackground(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HasTransparentBackground - bool returns = (self->HasTransparentBackground()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Hide[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Hide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Hide[1] = {{ wxLua_wxWindow_Hide, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Hide }}; -// bool Hide(); -static int LUACALL wxLua_wxWindow_Hide(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Hide - bool returns = (self->Hide()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HideWithEffect[] = { &wxluatype_wxWindow, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_HideWithEffect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HideWithEffect[1] = {{ wxLua_wxWindow_HideWithEffect, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_HideWithEffect }}; -// %wxchkver_3_0_0 bool HideWithEffect(wxShowEffect effect, unsigned int timeout = 0); -static int LUACALL wxLua_wxWindow_HideWithEffect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int timeout = 0 - unsigned int timeout = (argCount >= 3 ? (unsigned int)wxlua_getuintegertype(L, 3) : 0); - // wxShowEffect effect - wxShowEffect effect = (wxShowEffect)wxlua_getenumtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HideWithEffect - bool returns = (self->HideWithEffect(effect, timeout)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HitTest1[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_HitTest1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HitTest1[1] = {{ wxLua_wxWindow_HitTest1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HitTest1 }}; -// %wxchkver_3_0_0 wxHitTest HitTest(const wxPoint& pt) const; -static int LUACALL wxLua_wxWindow_HitTest1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HitTest - wxHitTest returns = (self->HitTest(*pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_HitTest[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_HitTest(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HitTest[1] = {{ wxLua_wxWindow_HitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_HitTest }}; -// %wxchkver_3_0_0 wxHitTest HitTest(wxCoord x, wxCoord y) const; -static int LUACALL wxLua_wxWindow_HitTest(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call HitTest - wxHitTest returns = (self->HitTest(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_InformFirstDirection[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_InformFirstDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_InformFirstDirection[1] = {{ wxLua_wxWindow_InformFirstDirection, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_InformFirstDirection }}; -// %wxchkver_3_0_0 bool InformFirstDirection(int direction, int size, int availableOtherDir); -static int LUACALL wxLua_wxWindow_InformFirstDirection(lua_State *L) -{ - // int availableOtherDir - int availableOtherDir = (int)wxlua_getnumbertype(L, 4); - // int size - int size = (int)wxlua_getnumbertype(L, 3); - // int direction - int direction = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call InformFirstDirection - bool returns = (self->InformFirstDirection(direction, size, availableOtherDir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_InheritAttributes[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_InheritAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_InheritAttributes[1] = {{ wxLua_wxWindow_InheritAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_InheritAttributes }}; -// void InheritAttributes(); -static int LUACALL wxLua_wxWindow_InheritAttributes(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call InheritAttributes - self->InheritAttributes(); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_InheritsBackgroundColour[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_InheritsBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_InheritsBackgroundColour[1] = {{ wxLua_wxWindow_InheritsBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_InheritsBackgroundColour }}; -// %wxchkver_3_0_0 bool InheritsBackgroundColour() const; -static int LUACALL wxLua_wxWindow_InheritsBackgroundColour(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call InheritsBackgroundColour - bool returns = (self->InheritsBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,1,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_InheritsForegroundColour[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_InheritsForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_InheritsForegroundColour[1] = {{ wxLua_wxWindow_InheritsForegroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_InheritsForegroundColour }}; -// %wxchkver_3_1_2 bool InheritsForegroundColour() const; -static int LUACALL wxLua_wxWindow_InheritsForegroundColour(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call InheritsForegroundColour - bool returns = (self->InheritsForegroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,2) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_InitDialog[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_InitDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_InitDialog[1] = {{ wxLua_wxWindow_InitDialog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_InitDialog }}; -// void InitDialog(); -static int LUACALL wxLua_wxWindow_InitDialog(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call InitDialog - self->InitDialog(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_InvalidateBestSize[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_InvalidateBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_InvalidateBestSize[1] = {{ wxLua_wxWindow_InvalidateBestSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_InvalidateBestSize }}; -// void InvalidateBestSize(); -static int LUACALL wxLua_wxWindow_InvalidateBestSize(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call InvalidateBestSize - self->InvalidateBestSize(); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsBeingDeleted[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsBeingDeleted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsBeingDeleted[1] = {{ wxLua_wxWindow_IsBeingDeleted, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsBeingDeleted }}; -// %wxchkver_3_0_0 bool IsBeingDeleted() const; -static int LUACALL wxLua_wxWindow_IsBeingDeleted(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsBeingDeleted - bool returns = (self->IsBeingDeleted()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsDescendant[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsDescendant(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsDescendant[1] = {{ wxLua_wxWindow_IsDescendant, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsDescendant }}; -// %wxchkver_3_0_0 bool IsDescendant(wxWindow* win) const; // %override wxWindow* instead of wxWindowBase* as the latter is not in public interface -static int LUACALL wxLua_wxWindow_IsDescendant(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsDescendant - bool returns = (self->IsDescendant(win)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsDoubleBuffered[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsDoubleBuffered(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsDoubleBuffered[1] = {{ wxLua_wxWindow_IsDoubleBuffered, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsDoubleBuffered }}; -// %wxchkver_3_0_0 bool IsDoubleBuffered() const; -static int LUACALL wxLua_wxWindow_IsDoubleBuffered(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsDoubleBuffered - bool returns = (self->IsDoubleBuffered()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsEnabled[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsEnabled[1] = {{ wxLua_wxWindow_IsEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsEnabled }}; -// virtual bool IsEnabled() const; -static int LUACALL wxLua_wxWindow_IsEnabled(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsEnabled - bool returns = (self->IsEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsExposed5[] = { &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxWindow_IsExposed5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed5[1] = {{ wxLua_wxWindow_IsExposed5, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed5 }}; -// !%wxchkver_3_0_0 bool IsExposed(const wxRect &rect) const; -static int LUACALL wxLua_wxWindow_IsExposed5(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsExposed - bool returns = (self->IsExposed(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsExposed4[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_IsExposed4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed4[1] = {{ wxLua_wxWindow_IsExposed4, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed4 }}; -// !%wxchkver_3_0_0 bool IsExposed(const wxPoint &pt) const; -static int LUACALL wxLua_wxWindow_IsExposed4(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsExposed - bool returns = (self->IsExposed(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsExposed3[] = { &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxWindow_IsExposed3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed3[1] = {{ wxLua_wxWindow_IsExposed3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed3 }}; -// %wxchkver_3_0_0 bool IsExposed(wxRect& rect) const; -static int LUACALL wxLua_wxWindow_IsExposed3(lua_State *L) -{ - // wxRect rect - wxRect * rect = (wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsExposed - bool returns = (self->IsExposed(*rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsExposed1[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_IsExposed1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed1[1] = {{ wxLua_wxWindow_IsExposed1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed1 }}; -// %wxchkver_3_0_0 bool IsExposed(wxPoint& pt) const; -static int LUACALL wxLua_wxWindow_IsExposed1(lua_State *L) -{ - // wxPoint pt - wxPoint * pt = (wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsExposed - bool returns = (self->IsExposed(*pt)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsExposed[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_IsExposed(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed[1] = {{ wxLua_wxWindow_IsExposed, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_IsExposed }}; -// bool IsExposed(int x, int y) const; -static int LUACALL wxLua_wxWindow_IsExposed(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsExposed - bool returns = (self->IsExposed(x, y)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsExposed2[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_IsExposed2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed2[1] = {{ wxLua_wxWindow_IsExposed2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxWindow_IsExposed2 }}; -// bool IsExposed(int x, int y, int w, int h) const; -static int LUACALL wxLua_wxWindow_IsExposed2(lua_State *L) -{ - // int h - int h = (int)wxlua_getnumbertype(L, 5); - // int w - int w = (int)wxlua_getnumbertype(L, 4); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsExposed - bool returns = (self->IsExposed(x, y, w, h)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsFocusable[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsFocusable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsFocusable[1] = {{ wxLua_wxWindow_IsFocusable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsFocusable }}; -// %wxchkver_3_0_0 bool IsFocusable() const; -static int LUACALL wxLua_wxWindow_IsFocusable(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsFocusable - bool returns = (self->IsFocusable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsFrozen[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsFrozen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsFrozen[1] = {{ wxLua_wxWindow_IsFrozen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsFrozen }}; -// %wxchkver_3_0_0 bool IsFrozen() const; -static int LUACALL wxLua_wxWindow_IsFrozen(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsFrozen - bool returns = (self->IsFrozen()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsRetained[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsRetained(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsRetained[1] = {{ wxLua_wxWindow_IsRetained, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsRetained }}; -// virtual bool IsRetained() const; -static int LUACALL wxLua_wxWindow_IsRetained(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsRetained - bool returns = (self->IsRetained()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsScrollbarAlwaysShown[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_IsScrollbarAlwaysShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsScrollbarAlwaysShown[1] = {{ wxLua_wxWindow_IsScrollbarAlwaysShown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsScrollbarAlwaysShown }}; -// %wxchkver_3_0_0 bool IsScrollbarAlwaysShown(int orient) const; -static int LUACALL wxLua_wxWindow_IsScrollbarAlwaysShown(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsScrollbarAlwaysShown - bool returns = (self->IsScrollbarAlwaysShown(orient)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsShown[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsShown[1] = {{ wxLua_wxWindow_IsShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsShown }}; -// virtual bool IsShown() const; -static int LUACALL wxLua_wxWindow_IsShown(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsShown - bool returns = (self->IsShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsShownOnScreen[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsShownOnScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsShownOnScreen[1] = {{ wxLua_wxWindow_IsShownOnScreen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsShownOnScreen }}; -// %wxchkver_3_0_0 bool IsShownOnScreen() const; -static int LUACALL wxLua_wxWindow_IsShownOnScreen(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsShownOnScreen - bool returns = (self->IsShownOnScreen()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsThisEnabled[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsThisEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsThisEnabled[1] = {{ wxLua_wxWindow_IsThisEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsThisEnabled }}; -// %wxchkver_3_0_0 bool IsThisEnabled() const; -static int LUACALL wxLua_wxWindow_IsThisEnabled(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsThisEnabled - bool returns = (self->IsThisEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsTopLevel[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsTopLevel[1] = {{ wxLua_wxWindow_IsTopLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_IsTopLevel }}; -// bool IsTopLevel() const; -static int LUACALL wxLua_wxWindow_IsTopLevel(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsTopLevel - bool returns = (self->IsTopLevel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_IsTransparentBackgroundSupported[] = { &wxluatype_wxWindow, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxWindow_IsTransparentBackgroundSupported(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsTransparentBackgroundSupported[1] = {{ wxLua_wxWindow_IsTransparentBackgroundSupported, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_IsTransparentBackgroundSupported }}; -// %wxchkver_3_0_0 bool IsTransparentBackgroundSupported(wxString *reason = NULL) const; -static int LUACALL wxLua_wxWindow_IsTransparentBackgroundSupported(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString reason = NULL - wxString * reason = (argCount >= 2 ? (wxString *)wxlua_touserdata(L, 2) : NULL); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call IsTransparentBackgroundSupported - bool returns = (self->IsTransparentBackgroundSupported(reason)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Layout[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Layout[1] = {{ wxLua_wxWindow_Layout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Layout }}; -// void Layout(); -static int LUACALL wxLua_wxWindow_Layout(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Layout - self->Layout(); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_LineDown[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_LineDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_LineDown[1] = {{ wxLua_wxWindow_LineDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_LineDown }}; -// %wxchkver_3_0_0 bool LineDown(); -static int LUACALL wxLua_wxWindow_LineDown(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call LineDown - bool returns = (self->LineDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_LineUp[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_LineUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_LineUp[1] = {{ wxLua_wxWindow_LineUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_LineUp }}; -// %wxchkver_3_0_0 bool LineUp(); -static int LUACALL wxLua_wxWindow_LineUp(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call LineUp - bool returns = (self->LineUp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Lower[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Lower(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Lower[1] = {{ wxLua_wxWindow_Lower, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Lower }}; -// void Lower(); -static int LUACALL wxLua_wxWindow_Lower(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Lower - self->Lower(); - - return 0; -} - - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_MakeModal[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_MakeModal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_MakeModal[1] = {{ wxLua_wxWindow_MakeModal, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_MakeModal }}; -// !%wxchkver_3_0_0 virtual void MakeModal(bool flag); -static int LUACALL wxLua_wxWindow_MakeModal(lua_State *L) -{ - // bool flag - bool flag = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call MakeModal - self->MakeModal(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Move3[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_Move3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Move3[1] = {{ wxLua_wxWindow_Move3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_Move3 }}; -// !%wxchkver_3_0_0 void Move(int x, int y); -static int LUACALL wxLua_wxWindow_Move3(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Move - self->Move(x, y); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Move2[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_Move2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Move2[1] = {{ wxLua_wxWindow_Move2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_Move2 }}; -// !%wxchkver_3_0_0 void Move(const wxPoint& pt); -static int LUACALL wxLua_wxWindow_Move2(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Move - self->Move(*pt); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Move1[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_Move1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Move1[1] = {{ wxLua_wxWindow_Move1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_Move1 }}; -// %wxchkver_3_0_0 void Move(const wxPoint& pt, int flags = wxSIZE_USE_EXISTING); -static int LUACALL wxLua_wxWindow_Move1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxSIZE_USE_EXISTING - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxSIZE_USE_EXISTING); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Move - self->Move(*pt, flags); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Move[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_Move(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Move[1] = {{ wxLua_wxWindow_Move, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxWindow_Move }}; -// %wxchkver_3_0_0 void Move(int x, int y, int flags = wxSIZE_USE_EXISTING); -static int LUACALL wxLua_wxWindow_Move(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxSIZE_USE_EXISTING - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxSIZE_USE_EXISTING); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Move - self->Move(x, y, flags); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_MoveAfterInTabOrder[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_MoveAfterInTabOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_MoveAfterInTabOrder[1] = {{ wxLua_wxWindow_MoveAfterInTabOrder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_MoveAfterInTabOrder }}; -// void MoveAfterInTabOrder(wxWindow *win); -static int LUACALL wxLua_wxWindow_MoveAfterInTabOrder(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call MoveAfterInTabOrder - self->MoveAfterInTabOrder(win); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_MoveBeforeInTabOrder[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_MoveBeforeInTabOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_MoveBeforeInTabOrder[1] = {{ wxLua_wxWindow_MoveBeforeInTabOrder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_MoveBeforeInTabOrder }}; -// void MoveBeforeInTabOrder(wxWindow *win); -static int LUACALL wxLua_wxWindow_MoveBeforeInTabOrder(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call MoveBeforeInTabOrder - self->MoveBeforeInTabOrder(win); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Navigate[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_Navigate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Navigate[1] = {{ wxLua_wxWindow_Navigate, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_Navigate }}; -// bool Navigate(int flags = wxNavigationKeyEvent::IsForward); -static int LUACALL wxLua_wxWindow_Navigate(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxNavigationKeyEvent::IsForward - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxNavigationKeyEvent::IsForward); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Navigate - bool returns = (self->Navigate(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_NavigateIn[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_NavigateIn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_NavigateIn[1] = {{ wxLua_wxWindow_NavigateIn, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_NavigateIn }}; -// %wxchkver_3_0_0 bool NavigateIn(int flags = wxNavigationKeyEvent::IsForward); -static int LUACALL wxLua_wxWindow_NavigateIn(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxNavigationKeyEvent::IsForward - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxNavigationKeyEvent::IsForward); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call NavigateIn - bool returns = (self->NavigateIn(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_NewControlId[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_NewControlId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_NewControlId[1] = {{ wxLua_wxWindow_NewControlId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxWindow_NewControlId }}; -// %wxchkver_3_0_0 static wxWindowID NewControlId(int count = 1); -static int LUACALL wxLua_wxWindow_NewControlId(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int count = 1 - int count = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 1); - // call NewControlId - wxWindowID returns = (wxWindow::NewControlId(count)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_OnInternalIdle[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_OnInternalIdle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_OnInternalIdle[1] = {{ wxLua_wxWindow_OnInternalIdle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_OnInternalIdle }}; -// %wxchkver_3_0_0 void OnInternalIdle(); -static int LUACALL wxLua_wxWindow_OnInternalIdle(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call OnInternalIdle - self->OnInternalIdle(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PageDown[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_PageDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PageDown[1] = {{ wxLua_wxWindow_PageDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_PageDown }}; -// %wxchkver_3_0_0 bool PageDown(); -static int LUACALL wxLua_wxWindow_PageDown(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PageDown - bool returns = (self->PageDown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PageUp[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_PageUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PageUp[1] = {{ wxLua_wxWindow_PageUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_PageUp }}; -// %wxchkver_3_0_0 bool PageUp(); -static int LUACALL wxLua_wxWindow_PageUp(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PageUp - bool returns = (self->PageUp()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PopEventHandler[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_PopEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PopEventHandler[1] = {{ wxLua_wxWindow_PopEventHandler, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_PopEventHandler }}; -// wxEvtHandler* PopEventHandler(bool deleteHandler = false) const; -static int LUACALL wxLua_wxWindow_PopEventHandler(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteHandler = false - bool deleteHandler = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PopEventHandler - wxEvtHandler* returns = (wxEvtHandler*)self->PopEventHandler(deleteHandler); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvtHandler); - - return 1; -} - - -#if wxLUA_USE_wxMenu && wxUSE_MENUS -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PopupMenu1[] = { &wxluatype_wxWindow, &wxluatype_wxMenu, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_PopupMenu1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PopupMenu1[1] = {{ wxLua_wxWindow_PopupMenu1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_PopupMenu1 }}; -// bool PopupMenu(wxMenu* menu, int x, int y); -static int LUACALL wxLua_wxWindow_PopupMenu1(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 4); - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PopupMenu - bool returns = (self->PopupMenu(menu, x, y)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PopupMenu[] = { &wxluatype_wxWindow, &wxluatype_wxMenu, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_PopupMenu(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PopupMenu[1] = {{ wxLua_wxWindow_PopupMenu, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_PopupMenu }}; -// bool PopupMenu(wxMenu* menu, const wxPoint& pos = wxDefaultPosition); -static int LUACALL wxLua_wxWindow_PopupMenu(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PopupMenu - bool returns = (self->PopupMenu(menu, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PostSizeEvent[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_PostSizeEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PostSizeEvent[1] = {{ wxLua_wxWindow_PostSizeEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_PostSizeEvent }}; -// %wxchkver_3_0_0 void PostSizeEvent(); -static int LUACALL wxLua_wxWindow_PostSizeEvent(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PostSizeEvent - self->PostSizeEvent(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PostSizeEventToParent[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_PostSizeEventToParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PostSizeEventToParent[1] = {{ wxLua_wxWindow_PostSizeEventToParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_PostSizeEventToParent }}; -// %wxchkver_3_0_0 void PostSizeEventToParent(); -static int LUACALL wxLua_wxWindow_PostSizeEventToParent(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PostSizeEventToParent - self->PostSizeEventToParent(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ProcessWindowEvent[] = { &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxWindow_ProcessWindowEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ProcessWindowEvent[1] = {{ wxLua_wxWindow_ProcessWindowEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ProcessWindowEvent }}; -// %wxchkver_3_0_0 bool ProcessWindowEvent(wxEvent& event); -static int LUACALL wxLua_wxWindow_ProcessWindowEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ProcessWindowEvent - bool returns = (self->ProcessWindowEvent(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ProcessWindowEventLocally[] = { &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxWindow_ProcessWindowEventLocally(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ProcessWindowEventLocally[1] = {{ wxLua_wxWindow_ProcessWindowEventLocally, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ProcessWindowEventLocally }}; -// %wxchkver_3_0_0 bool ProcessWindowEventLocally(wxEvent& event); -static int LUACALL wxLua_wxWindow_ProcessWindowEventLocally(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ProcessWindowEventLocally - bool returns = (self->ProcessWindowEventLocally(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_PushEventHandler[] = { &wxluatype_wxWindow, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxWindow_PushEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PushEventHandler[1] = {{ wxLua_wxWindow_PushEventHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_PushEventHandler }}; -// void PushEventHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxWindow_PushEventHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call PushEventHandler - self->PushEventHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Raise[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Raise(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Raise[1] = {{ wxLua_wxWindow_Raise, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Raise }}; -// void Raise(); -static int LUACALL wxLua_wxWindow_Raise(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Raise - self->Raise(); - - return 0; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Refresh[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxWindow_Refresh(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Refresh[1] = {{ wxLua_wxWindow_Refresh, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxWindow_Refresh }}; -// virtual void Refresh(bool eraseBackground = true, const wxRect* rect = NULL); -static int LUACALL wxLua_wxWindow_Refresh(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRect rect = NULL - const wxRect * rect = (argCount >= 3 ? (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect) : NULL); - // bool eraseBackground = true - bool eraseBackground = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Refresh - self->Refresh(eraseBackground, rect); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_RefreshRect[] = { &wxluatype_wxWindow, &wxluatype_wxRect, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_RefreshRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_RefreshRect[1] = {{ wxLua_wxWindow_RefreshRect, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_RefreshRect }}; -// %wxchkver_3_0_0 void RefreshRect(const wxRect& rect, bool eraseBackground = true); -static int LUACALL wxLua_wxWindow_RefreshRect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool eraseBackground = true - bool eraseBackground = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call RefreshRect - self->RefreshRect(*rect, eraseBackground); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxUSE_HOTKEY -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_RegisterHotKey[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_RegisterHotKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_RegisterHotKey[1] = {{ wxLua_wxWindow_RegisterHotKey, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_RegisterHotKey }}; -// wxUSE_HOTKEY bool RegisterHotKey(int hotkeyId, int modifiers, int virtualKeyCode); // %override wxUSE_HOTKEY -static int LUACALL wxLua_wxWindow_RegisterHotKey(lua_State *L) -{ - // int virtualKeyCode - int virtualKeyCode = (int)wxlua_getnumbertype(L, 4); - // int modifiers - int modifiers = (int)wxlua_getnumbertype(L, 3); - // int hotkeyId - int hotkeyId = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call RegisterHotKey - bool returns = (self->RegisterHotKey(hotkeyId, modifiers, virtualKeyCode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxUSE_HOTKEY - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ReleaseMouse[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_ReleaseMouse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ReleaseMouse[1] = {{ wxLua_wxWindow_ReleaseMouse, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_ReleaseMouse }}; -// virtual void ReleaseMouse(); -static int LUACALL wxLua_wxWindow_ReleaseMouse(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ReleaseMouse - self->ReleaseMouse(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_RemoveChild[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_RemoveChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_RemoveChild[1] = {{ wxLua_wxWindow_RemoveChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_RemoveChild }}; -// virtual void RemoveChild(wxWindow* child); -static int LUACALL wxLua_wxWindow_RemoveChild(lua_State *L) -{ - // wxWindow child - wxWindow * child = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call RemoveChild - self->RemoveChild(child); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_RemoveEventHandler[] = { &wxluatype_wxWindow, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxWindow_RemoveEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_RemoveEventHandler[1] = {{ wxLua_wxWindow_RemoveEventHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_RemoveEventHandler }}; -// bool RemoveEventHandler(wxEvtHandler *handler); -static int LUACALL wxLua_wxWindow_RemoveEventHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call RemoveEventHandler - bool returns = (self->RemoveEventHandler(handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Reparent[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Reparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Reparent[1] = {{ wxLua_wxWindow_Reparent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_Reparent }}; -// virtual bool Reparent(wxWindow* newParent); -static int LUACALL wxLua_wxWindow_Reparent(lua_State *L) -{ - // wxWindow newParent - wxWindow * newParent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Reparent - bool returns = (self->Reparent(newParent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ScreenToClient[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_ScreenToClient(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ScreenToClient[1] = {{ wxLua_wxWindow_ScreenToClient, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ScreenToClient }}; -// virtual wxPoint ScreenToClient(const wxPoint& pt) const; -static int LUACALL wxLua_wxWindow_ScreenToClient(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ScreenToClient - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->ScreenToClient(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#define wxLua_wxWindow_ScreenToClient1 wxLua_wxWindow_ScreenToClientXY -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ScreenToClient1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_ScreenToClient1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ScreenToClient1[1] = {{ wxLua_wxWindow_ScreenToClient1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_ScreenToClient1 }}; -// %override wxLua_wxWindow_ScreenToClientXY -// %rename ScreenToClientXY virtual void ScreenToClient(int* x, int* y) const -static int LUACALL wxLua_wxWindow_ScreenToClientXY(lua_State *L) -{ - int y; - int x; - // get this - wxWindow *self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ScreenToClient - self->ScreenToClient(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ScrollLines[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_ScrollLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ScrollLines[1] = {{ wxLua_wxWindow_ScrollLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ScrollLines }}; -// virtual bool ScrollLines(int lines); -static int LUACALL wxLua_wxWindow_ScrollLines(lua_State *L) -{ - // int lines - int lines = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ScrollLines - bool returns = (self->ScrollLines(lines)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ScrollPages[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_ScrollPages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ScrollPages[1] = {{ wxLua_wxWindow_ScrollPages, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ScrollPages }}; -// virtual bool ScrollPages(int pages); -static int LUACALL wxLua_wxWindow_ScrollPages(lua_State *L) -{ - // int pages - int pages = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ScrollPages - bool returns = (self->ScrollPages(pages)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ScrollWindow[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxWindow_ScrollWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ScrollWindow[1] = {{ wxLua_wxWindow_ScrollWindow, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxWindow_ScrollWindow }}; -// virtual void ScrollWindow(int dx, int dy, const wxRect* rect = NULL); -static int LUACALL wxLua_wxWindow_ScrollWindow(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRect rect = NULL - const wxRect * rect = (argCount >= 4 ? (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect) : NULL); - // int dy - int dy = (int)wxlua_getnumbertype(L, 3); - // int dx - int dx = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ScrollWindow - self->ScrollWindow(dx, dy, rect); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SendIdleEvents[] = { &wxluatype_wxWindow, &wxluatype_wxIdleEvent, NULL }; -static int LUACALL wxLua_wxWindow_SendIdleEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SendIdleEvents[1] = {{ wxLua_wxWindow_SendIdleEvents, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SendIdleEvents }}; -// %wxchkver_3_0_0 bool SendIdleEvents(wxIdleEvent& event); -static int LUACALL wxLua_wxWindow_SendIdleEvents(lua_State *L) -{ - // wxIdleEvent event - wxIdleEvent * event = (wxIdleEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIdleEvent); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SendIdleEvents - bool returns = (self->SendIdleEvents(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SendSizeEvent[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SendSizeEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SendSizeEvent[1] = {{ wxLua_wxWindow_SendSizeEvent, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_SendSizeEvent }}; -// %wxchkver_3_0_0 void SendSizeEvent(int flags = 0); -static int LUACALL wxLua_wxWindow_SendSizeEvent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SendSizeEvent - self->SendSizeEvent(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SendSizeEventToParent[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SendSizeEventToParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SendSizeEventToParent[1] = {{ wxLua_wxWindow_SendSizeEventToParent, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_SendSizeEventToParent }}; -// %wxchkver_3_0_0 void SendSizeEventToParent(int flags = 0); -static int LUACALL wxLua_wxWindow_SendSizeEventToParent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SendSizeEventToParent - self->SendSizeEventToParent(flags); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetAcceleratorTable[] = { &wxluatype_wxWindow, &wxluatype_wxAcceleratorTable, NULL }; -static int LUACALL wxLua_wxWindow_SetAcceleratorTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetAcceleratorTable[1] = {{ wxLua_wxWindow_SetAcceleratorTable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetAcceleratorTable }}; -// virtual void SetAcceleratorTable(const wxAcceleratorTable& accel); -static int LUACALL wxLua_wxWindow_SetAcceleratorTable(lua_State *L) -{ - // const wxAcceleratorTable accel - const wxAcceleratorTable * accel = (const wxAcceleratorTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxAcceleratorTable); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetAcceleratorTable - self->SetAcceleratorTable(*accel); - - return 0; -} - -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetAutoLayout[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetAutoLayout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetAutoLayout[1] = {{ wxLua_wxWindow_SetAutoLayout, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetAutoLayout }}; -// void SetAutoLayout(bool autoLayout); -static int LUACALL wxLua_wxWindow_SetAutoLayout(lua_State *L) -{ - // bool autoLayout - bool autoLayout = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetAutoLayout - self->SetAutoLayout(autoLayout); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetBackgroundColour[] = { &wxluatype_wxWindow, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxWindow_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetBackgroundColour[1] = {{ wxLua_wxWindow_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetBackgroundColour }}; -// virtual void SetBackgroundColour(const wxColour& colour); -static int LUACALL wxLua_wxWindow_SetBackgroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetBackgroundColour - self->SetBackgroundColour(*colour); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetBackgroundStyle[] = { &wxluatype_wxWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_SetBackgroundStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetBackgroundStyle[1] = {{ wxLua_wxWindow_SetBackgroundStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetBackgroundStyle }}; -// virtual void SetBackgroundStyle(wxBackgroundStyle style); -static int LUACALL wxLua_wxWindow_SetBackgroundStyle(lua_State *L) -{ - // wxBackgroundStyle style - wxBackgroundStyle style = (wxBackgroundStyle)wxlua_getenumtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetBackgroundStyle - self->SetBackgroundStyle(style); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetCanFocus[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetCanFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetCanFocus[1] = {{ wxLua_wxWindow_SetCanFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetCanFocus }}; -// %wxchkver_3_0_0 void SetCanFocus(bool canFocus); -static int LUACALL wxLua_wxWindow_SetCanFocus(lua_State *L) -{ - // bool canFocus - bool canFocus = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetCanFocus - self->SetCanFocus(canFocus); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxCaret && wxUSE_CARET -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetCaret[] = { &wxluatype_wxWindow, &wxluatype_wxCaret, NULL }; -static int LUACALL wxLua_wxWindow_SetCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetCaret[1] = {{ wxLua_wxWindow_SetCaret, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetCaret }}; -// void SetCaret(wxCaret *caret) const; -static int LUACALL wxLua_wxWindow_SetCaret(lua_State *L) -{ - // wxCaret caret - wxCaret * caret = (wxCaret *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCaret); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetCaret - self->SetCaret(caret); - - return 0; -} - -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetClientSize2[] = { &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxWindow_SetClientSize2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetClientSize2[1] = {{ wxLua_wxWindow_SetClientSize2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetClientSize2 }}; -// %wxchkver_3_0_0 void SetClientSize(const wxRect& rect); -static int LUACALL wxLua_wxWindow_SetClientSize2(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetClientSize - self->SetClientSize(*rect); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetClientSize1[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetClientSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetClientSize1[1] = {{ wxLua_wxWindow_SetClientSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetClientSize1 }}; -// virtual void SetClientSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetClientSize1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetClientSize - self->SetClientSize(*size); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetClientSize[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetClientSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetClientSize[1] = {{ wxLua_wxWindow_SetClientSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_SetClientSize }}; -// virtual void SetClientSize(int width, int height); -static int LUACALL wxLua_wxWindow_SetClientSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetClientSize - self->SetClientSize(width, height); - - return 0; -} - - -#if ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetConstraints[] = { &wxluatype_wxWindow, &wxluatype_wxLayoutConstraints, NULL }; -static int LUACALL wxLua_wxWindow_SetConstraints(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetConstraints[1] = {{ wxLua_wxWindow_SetConstraints, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetConstraints }}; -// %wxchkver_3_0_0 void SetConstraints(wxLayoutConstraints* constraints); -static int LUACALL wxLua_wxWindow_SetConstraints(lua_State *L) -{ - // wxLayoutConstraints constraints - wxLayoutConstraints * constraints = (wxLayoutConstraints *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLayoutConstraints); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetConstraints - self->SetConstraints(constraints); - - return 0; -} - -#endif // ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetContainingSizer[] = { &wxluatype_wxWindow, &wxluatype_wxSizer, NULL }; -static int LUACALL wxLua_wxWindow_SetContainingSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetContainingSizer[1] = {{ wxLua_wxWindow_SetContainingSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetContainingSizer }}; -// void SetContainingSizer(wxSizer* sizer); -static int LUACALL wxLua_wxWindow_SetContainingSizer(lua_State *L) -{ - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetContainingSizer - self->SetContainingSizer(sizer); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxCursor -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetCursor[] = { &wxluatype_wxWindow, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxWindow_SetCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetCursor[1] = {{ wxLua_wxWindow_SetCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetCursor }}; -// virtual void SetCursor(const wxCursor& cursor); -static int LUACALL wxLua_wxWindow_SetCursor(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetCursor - self->SetCursor(*cursor); - - return 0; -} - -#endif // wxLUA_USE_wxCursor - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetDefaultItem[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_SetDefaultItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetDefaultItem[1] = {{ wxLua_wxWindow_SetDefaultItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetDefaultItem }}; -// !%wxchkver_2_8 wxWindow* SetDefaultItem(wxWindow *win); -static int LUACALL wxLua_wxWindow_SetDefaultItem(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetDefaultItem - wxWindow* returns = (wxWindow*)self->SetDefaultItem(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetDoubleBuffered[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetDoubleBuffered(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetDoubleBuffered[1] = {{ wxLua_wxWindow_SetDoubleBuffered, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetDoubleBuffered }}; -// %wxchkver_3_0_0 && !%mac void SetDoubleBuffered(bool on); // %override doesn't exist on OSX -static int LUACALL wxLua_wxWindow_SetDoubleBuffered(lua_State *L) -{ - // bool on - bool on = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetDoubleBuffered - self->SetDoubleBuffered(on); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetDropTarget[] = { &wxluatype_wxWindow, &wxluatype_wxDropTarget, NULL }; -static int LUACALL wxLua_wxWindow_SetDropTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetDropTarget[1] = {{ wxLua_wxWindow_SetDropTarget, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetDropTarget }}; -// void SetDropTarget(%ungc wxDropTarget* target); -static int LUACALL wxLua_wxWindow_SetDropTarget(lua_State *L) -{ - // wxDropTarget target - wxDropTarget * target = (wxDropTarget *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDropTarget); - if (wxluaO_isgcobject(L, target)) wxluaO_undeletegcobject(L, target); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetDropTarget - self->SetDropTarget(target); - - return 0; -} - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetEventHandler[] = { &wxluatype_wxWindow, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxWindow_SetEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetEventHandler[1] = {{ wxLua_wxWindow_SetEventHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetEventHandler }}; -// void SetEventHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxWindow_SetEventHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetEventHandler - self->SetEventHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetExtraStyle[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetExtraStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetExtraStyle[1] = {{ wxLua_wxWindow_SetExtraStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetExtraStyle }}; -// void SetExtraStyle(long exStyle); -static int LUACALL wxLua_wxWindow_SetExtraStyle(lua_State *L) -{ - // long exStyle - long exStyle = (long)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetExtraStyle - self->SetExtraStyle(exStyle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetFocus[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_SetFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetFocus[1] = {{ wxLua_wxWindow_SetFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_SetFocus }}; -// virtual void SetFocus(); -static int LUACALL wxLua_wxWindow_SetFocus(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetFocus - self->SetFocus(); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetFocusFromKbd[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_SetFocusFromKbd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetFocusFromKbd[1] = {{ wxLua_wxWindow_SetFocusFromKbd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_SetFocusFromKbd }}; -// %wxchkver_3_0_0 void SetFocusFromKbd(); -static int LUACALL wxLua_wxWindow_SetFocusFromKbd(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetFocusFromKbd - self->SetFocusFromKbd(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetFont[] = { &wxluatype_wxWindow, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxWindow_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetFont[1] = {{ wxLua_wxWindow_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxWindow_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetForegroundColour[] = { &wxluatype_wxWindow, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxWindow_SetForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetForegroundColour[1] = {{ wxLua_wxWindow_SetForegroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetForegroundColour }}; -// virtual void SetForegroundColour(const wxColour& colour); -static int LUACALL wxLua_wxWindow_SetForegroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetForegroundColour - self->SetForegroundColour(*colour); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetHelpText[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_SetHelpText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetHelpText[1] = {{ wxLua_wxWindow_SetHelpText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetHelpText }}; -// virtual void SetHelpText(const wxString& helpText); -static int LUACALL wxLua_wxWindow_SetHelpText(lua_State *L) -{ - // const wxString helpText - const wxString helpText = wxlua_getwxStringtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetHelpText - self->SetHelpText(helpText); - - return 0; -} - - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetId1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetId1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetId1[1] = {{ wxLua_wxWindow_SetId1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetId1 }}; -// !%wxchkver_3_0_0 void SetId(int id); -static int LUACALL wxLua_wxWindow_SetId1(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetId - self->SetId(id); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetId[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetId(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetId[1] = {{ wxLua_wxWindow_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetId }}; -// %wxchkver_3_0_0 void SetId(wxWindowID winid); -static int LUACALL wxLua_wxWindow_SetId(lua_State *L) -{ - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetId - self->SetId(winid); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetInitialSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetInitialSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetInitialSize[1] = {{ wxLua_wxWindow_SetInitialSize, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_SetInitialSize }}; -// %wxchkver_2_8 void SetInitialSize(const wxSize& size = wxDefaultSize); -static int LUACALL wxLua_wxWindow_SetInitialSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 2 ? (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize) : &wxDefaultSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetInitialSize - self->SetInitialSize(*size); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetLabel[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetLabel[1] = {{ wxLua_wxWindow_SetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetLabel }}; -// virtual void SetLabel(const wxString& label); -static int LUACALL wxLua_wxWindow_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetLabel - self->SetLabel(label); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetLayoutDirection[] = { &wxluatype_wxWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_SetLayoutDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetLayoutDirection[1] = {{ wxLua_wxWindow_SetLayoutDirection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetLayoutDirection }}; -// %wxchkver_3_0_0 void SetLayoutDirection(wxLayoutDirection dir); -static int LUACALL wxLua_wxWindow_SetLayoutDirection(lua_State *L) -{ - // wxLayoutDirection dir - wxLayoutDirection dir = (wxLayoutDirection)wxlua_getenumtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetLayoutDirection - self->SetLayoutDirection(dir); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetMaxClientSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetMaxClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetMaxClientSize[1] = {{ wxLua_wxWindow_SetMaxClientSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetMaxClientSize }}; -// %wxchkver_3_0_0 void SetMaxClientSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetMaxClientSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetMaxClientSize - self->SetMaxClientSize(*size); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetMaxSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetMaxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetMaxSize[1] = {{ wxLua_wxWindow_SetMaxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetMaxSize }}; -// void SetMaxSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetMaxSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetMaxSize - self->SetMaxSize(*size); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetMinClientSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetMinClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetMinClientSize[1] = {{ wxLua_wxWindow_SetMinClientSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetMinClientSize }}; -// %wxchkver_3_0_0 void SetMinClientSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetMinClientSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetMinClientSize - self->SetMinClientSize(*size); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetMinSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetMinSize[1] = {{ wxLua_wxWindow_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetMinSize }}; -// void SetMinSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetMinSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetMinSize - self->SetMinSize(*size); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetName[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetName[1] = {{ wxLua_wxWindow_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetName }}; -// virtual void SetName(const wxString& name); -static int LUACALL wxLua_wxWindow_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetName - self->SetName(name); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetNextHandler[] = { &wxluatype_wxWindow, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxWindow_SetNextHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetNextHandler[1] = {{ wxLua_wxWindow_SetNextHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetNextHandler }}; -// %wxchkver_3_0_0 void SetNextHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxWindow_SetNextHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetNextHandler - self->SetNextHandler(handler); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetOwnBackgroundColour[] = { &wxluatype_wxWindow, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxWindow_SetOwnBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetOwnBackgroundColour[1] = {{ wxLua_wxWindow_SetOwnBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetOwnBackgroundColour }}; -// void SetOwnBackgroundColour(const wxColour& colour); -static int LUACALL wxLua_wxWindow_SetOwnBackgroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetOwnBackgroundColour - self->SetOwnBackgroundColour(*colour); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetOwnFont[] = { &wxluatype_wxWindow, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxWindow_SetOwnFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetOwnFont[1] = {{ wxLua_wxWindow_SetOwnFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetOwnFont }}; -// void SetOwnFont(const wxFont& font); -static int LUACALL wxLua_wxWindow_SetOwnFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetOwnFont - self->SetOwnFont(*font); - - return 0; -} - -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetOwnForegroundColour[] = { &wxluatype_wxWindow, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxWindow_SetOwnForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetOwnForegroundColour[1] = {{ wxLua_wxWindow_SetOwnForegroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetOwnForegroundColour }}; -// void SetOwnForegroundColour(const wxColour& colour); -static int LUACALL wxLua_wxWindow_SetOwnForegroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetOwnForegroundColour - self->SetOwnForegroundColour(*colour); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetPalette[] = { &wxluatype_wxWindow, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxWindow_SetPalette(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetPalette[1] = {{ wxLua_wxWindow_SetPalette, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetPalette }}; -// %wxchkver_3_0_0 void SetPalette(const wxPalette& pal); -static int LUACALL wxLua_wxWindow_SetPalette(lua_State *L) -{ - // const wxPalette pal - const wxPalette * pal = (const wxPalette *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPalette); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetPalette - self->SetPalette(*pal); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetPosition[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetPosition[1] = {{ wxLua_wxWindow_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetPosition }}; -// %wxchkver_3_0_0 void SetPosition(const wxPoint& pt); -static int LUACALL wxLua_wxWindow_SetPosition(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetPosition - self->SetPosition(*pt); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetPreviousHandler[] = { &wxluatype_wxWindow, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxWindow_SetPreviousHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetPreviousHandler[1] = {{ wxLua_wxWindow_SetPreviousHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetPreviousHandler }}; -// %wxchkver_3_0_0 void SetPreviousHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxWindow_SetPreviousHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetPreviousHandler - self->SetPreviousHandler(handler); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetScrollPos[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetScrollPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetScrollPos[1] = {{ wxLua_wxWindow_SetScrollPos, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxWindow_SetScrollPos }}; -// virtual void SetScrollPos(int orientation, int pos, bool refresh = true); -static int LUACALL wxLua_wxWindow_SetScrollPos(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool refresh = true - bool refresh = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetScrollPos - self->SetScrollPos(orientation, pos, refresh); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetScrollbar[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetScrollbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetScrollbar[1] = {{ wxLua_wxWindow_SetScrollbar, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxWindow_SetScrollbar }}; -// virtual void SetScrollbar(int orientation, int position, int thumbSize, int range, bool refresh = true); -static int LUACALL wxLua_wxWindow_SetScrollbar(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool refresh = true - bool refresh = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : true); - // int range - int range = (int)wxlua_getnumbertype(L, 5); - // int thumbSize - int thumbSize = (int)wxlua_getnumbertype(L, 4); - // int position - int position = (int)wxlua_getnumbertype(L, 3); - // int orientation - int orientation = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetScrollbar - self->SetScrollbar(orientation, position, thumbSize, range, refresh); - - return 0; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSize2[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetSize2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSize2[1] = {{ wxLua_wxWindow_SetSize2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetSize2 }}; -// void SetSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetSize2(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSize - self->SetSize(*size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSize1[] = { &wxluatype_wxWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxWindow_SetSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSize1[1] = {{ wxLua_wxWindow_SetSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetSize1 }}; -// virtual void SetSize(const wxRect& rect); -static int LUACALL wxLua_wxWindow_SetSize1(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSize - self->SetSize(*rect); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSize[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSize[1] = {{ wxLua_wxWindow_SetSize, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxWindow_SetSize }}; -// virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); -static int LUACALL wxLua_wxWindow_SetSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int sizeFlags = wxSIZE_AUTO - int sizeFlags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxSIZE_AUTO); - // int height - int height = (int)wxlua_getnumbertype(L, 5); - // int width - int width = (int)wxlua_getnumbertype(L, 4); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSize - self->SetSize(x, y, width, height, sizeFlags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSize3[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetSize3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSize3[1] = {{ wxLua_wxWindow_SetSize3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_SetSize3 }}; -// virtual void SetSize(int width, int height); -static int LUACALL wxLua_wxWindow_SetSize3(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSize - self->SetSize(width, height); - - return 0; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSizeHints[] = { &wxluatype_wxWindow, &wxluatype_wxSize, &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetSizeHints(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSizeHints[1] = {{ wxLua_wxWindow_SetSizeHints, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxWindow_SetSizeHints }}; -// void SetSizeHints(const wxSize& minSize, const wxSize& maxSize=wxDefaultSize, const wxSize& incSize=wxDefaultSize); -static int LUACALL wxLua_wxWindow_SetSizeHints(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize incSize = wxDefaultSize - const wxSize * incSize = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxSize maxSize = wxDefaultSize - const wxSize * maxSize = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // const wxSize minSize - const wxSize * minSize = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSizeHints - self->SetSizeHints(*minSize, *maxSize, *incSize); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSizeHints1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetSizeHints1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSizeHints1[1] = {{ wxLua_wxWindow_SetSizeHints1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxWindow_SetSizeHints1 }}; -// void SetSizeHints(int minW, int minH, int maxW = -1, int maxH = -1, int incW = -1, int incH = -1); -static int LUACALL wxLua_wxWindow_SetSizeHints1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int incH = -1 - int incH = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : -1); - // int incW = -1 - int incW = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int maxH = -1 - int maxH = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int maxW = -1 - int maxW = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int minH - int minH = (int)wxlua_getnumbertype(L, 3); - // int minW - int minW = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSizeHints - self->SetSizeHints(minW, minH, maxW, maxH, incW, incH); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSizer[] = { &wxluatype_wxWindow, &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSizer[1] = {{ wxLua_wxWindow_SetSizer, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_SetSizer }}; -// void SetSizer(wxSizer* sizer, bool deleteOld=true); -static int LUACALL wxLua_wxWindow_SetSizer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteOld = true - bool deleteOld = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSizer - self->SetSizer(sizer, deleteOld); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetSizerAndFit[] = { &wxluatype_wxWindow, &wxluatype_wxSizer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetSizerAndFit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSizerAndFit[1] = {{ wxLua_wxWindow_SetSizerAndFit, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_SetSizerAndFit }}; -// void SetSizerAndFit(wxSizer* sizer, bool deleteOld=true); -static int LUACALL wxLua_wxWindow_SetSizerAndFit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteOld = true - bool deleteOld = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxSizer sizer - wxSizer * sizer = (wxSizer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizer); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetSizerAndFit - self->SetSizerAndFit(sizer, deleteOld); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetThemeEnabled[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_SetThemeEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetThemeEnabled[1] = {{ wxLua_wxWindow_SetThemeEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetThemeEnabled }}; -// virtual void SetThemeEnabled(bool enable); -static int LUACALL wxLua_wxWindow_SetThemeEnabled(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetThemeEnabled - self->SetThemeEnabled(enable); - - return 0; -} - - -#if !wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetTitle[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetTitle[1] = {{ wxLua_wxWindow_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetTitle }}; -// !%wxchkver_2_8 virtual void SetTitle(const wxString& title); -static int LUACALL wxLua_wxWindow_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetTitle - self->SetTitle(title); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetToolTip1[] = { &wxluatype_wxWindow, &wxluatype_wxToolTip, NULL }; -static int LUACALL wxLua_wxWindow_SetToolTip1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetToolTip1[1] = {{ wxLua_wxWindow_SetToolTip1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetToolTip1 }}; -// void SetToolTip(%ungc wxToolTip* tip); -static int LUACALL wxLua_wxWindow_SetToolTip1(lua_State *L) -{ - // wxToolTip tip - wxToolTip * tip = (wxToolTip *)wxluaT_getuserdatatype(L, 2, wxluatype_wxToolTip); - if (wxluaO_isgcobject(L, tip)) wxluaO_undeletegcobject(L, tip); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetToolTip - self->SetToolTip(tip); - - return 0; -} - -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetToolTip[] = { &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_SetToolTip(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetToolTip[1] = {{ wxLua_wxWindow_SetToolTip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetToolTip }}; -// void SetToolTip(const wxString& tip); -static int LUACALL wxLua_wxWindow_SetToolTip(lua_State *L) -{ - // const wxString tip - const wxString tip = wxlua_getwxStringtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetToolTip - self->SetToolTip(tip); - - return 0; -} - - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetTransparent[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetTransparent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetTransparent[1] = {{ wxLua_wxWindow_SetTransparent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetTransparent }}; -// %wxchkver_3_0_0 bool SetTransparent(wxByte alpha); -static int LUACALL wxLua_wxWindow_SetTransparent(lua_State *L) -{ - // wxByte alpha - wxByte alpha = (wxByte)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetTransparent - bool returns = (self->SetTransparent(alpha)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetValidator[] = { &wxluatype_wxWindow, &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxWindow_SetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetValidator[1] = {{ wxLua_wxWindow_SetValidator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetValidator }}; -// virtual void SetValidator(const wxValidator& validator); -static int LUACALL wxLua_wxWindow_SetValidator(lua_State *L) -{ - // const wxValidator validator - const wxValidator * validator = (const wxValidator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxValidator); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetValidator - self->SetValidator(*validator); - - return 0; -} - -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetVirtualSize1[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetVirtualSize1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetVirtualSize1[1] = {{ wxLua_wxWindow_SetVirtualSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSize1 }}; -// void SetVirtualSize(const wxSize& size); -static int LUACALL wxLua_wxWindow_SetVirtualSize1(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetVirtualSize - self->SetVirtualSize(*size); - - return 0; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetVirtualSize[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetVirtualSize(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetVirtualSize[1] = {{ wxLua_wxWindow_SetVirtualSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSize }}; -// void SetVirtualSize(int width, int height); -static int LUACALL wxLua_wxWindow_SetVirtualSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetVirtualSize - self->SetVirtualSize(width, height); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetVirtualSizeHints1[] = { &wxluatype_wxWindow, &wxluatype_wxSize, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_SetVirtualSizeHints1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints1[1] = {{ wxLua_wxWindow_SetVirtualSizeHints1, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSizeHints1 }}; -// !%wxchkver_3_0_0 void SetVirtualSizeHints(const wxSize& minSize=wxDefaultSize, const wxSize& maxSize=wxDefaultSize); -static int LUACALL wxLua_wxWindow_SetVirtualSizeHints1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize maxSize = wxDefaultSize - const wxSize * maxSize = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // const wxSize minSize = wxDefaultSize - const wxSize * minSize = (argCount >= 2 ? (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize) : &wxDefaultSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetVirtualSizeHints - self->SetVirtualSizeHints(*minSize, *maxSize); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetVirtualSizeHints[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetVirtualSizeHints(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints[1] = {{ wxLua_wxWindow_SetVirtualSizeHints, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSizeHints }}; -// !%wxchkver_3_0_0 virtual void SetVirtualSizeHints(int minW,int minH, int maxW=-1, int maxH=-1); -static int LUACALL wxLua_wxWindow_SetVirtualSizeHints(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int maxH = -1 - int maxH = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // int maxW = -1 - int maxW = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int minH - int minH = (int)wxlua_getnumbertype(L, 3); - // int minW - int minW = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetVirtualSizeHints - self->SetVirtualSizeHints(minW, minH, maxW, maxH); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetWindowStyle[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetWindowStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetWindowStyle[1] = {{ wxLua_wxWindow_SetWindowStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetWindowStyle }}; -// void SetWindowStyle(long style); -static int LUACALL wxLua_wxWindow_SetWindowStyle(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetWindowStyle - self->SetWindowStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetWindowStyleFlag[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_SetWindowStyleFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetWindowStyleFlag[1] = {{ wxLua_wxWindow_SetWindowStyleFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetWindowStyleFlag }}; -// virtual void SetWindowStyleFlag(long style); -static int LUACALL wxLua_wxWindow_SetWindowStyleFlag(lua_State *L) -{ - // long style - long style = (long)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetWindowStyleFlag - self->SetWindowStyleFlag(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_SetWindowVariant[] = { &wxluatype_wxWindow, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_SetWindowVariant(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetWindowVariant[1] = {{ wxLua_wxWindow_SetWindowVariant, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetWindowVariant }}; -// void SetWindowVariant(wxWindowVariant variant); -static int LUACALL wxLua_wxWindow_SetWindowVariant(lua_State *L) -{ - // wxWindowVariant variant - wxWindowVariant variant = (wxWindowVariant)wxlua_getenumtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call SetWindowVariant - self->SetWindowVariant(variant); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ShouldInheritColours[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_ShouldInheritColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ShouldInheritColours[1] = {{ wxLua_wxWindow_ShouldInheritColours, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_ShouldInheritColours }}; -// virtual bool ShouldInheritColours(); -static int LUACALL wxLua_wxWindow_ShouldInheritColours(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ShouldInheritColours - bool returns = (self->ShouldInheritColours()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Show[] = { &wxluatype_wxWindow, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWindow_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Show[1] = {{ wxLua_wxWindow_Show, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_Show }}; -// virtual bool Show(bool show = true); -static int LUACALL wxLua_wxWindow_Show(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Show - bool returns = (self->Show(show)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ShowWithEffect[] = { &wxluatype_wxWindow, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWindow_ShowWithEffect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ShowWithEffect[1] = {{ wxLua_wxWindow_ShowWithEffect, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_ShowWithEffect }}; -// %wxchkver_3_0_0 bool ShowWithEffect(wxShowEffect effect, unsigned int timeout = 0); -static int LUACALL wxLua_wxWindow_ShowWithEffect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int timeout = 0 - unsigned int timeout = (argCount >= 3 ? (unsigned int)wxlua_getuintegertype(L, 3) : 0); - // wxShowEffect effect - wxShowEffect effect = (wxShowEffect)wxlua_getenumtype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ShowWithEffect - bool returns = (self->ShowWithEffect(effect, timeout)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Thaw[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Thaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Thaw[1] = {{ wxLua_wxWindow_Thaw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Thaw }}; -// virtual void Thaw(); -static int LUACALL wxLua_wxWindow_Thaw(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Thaw - self->Thaw(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToDIP5[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_ToDIP5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP5[1] = {{ wxLua_wxWindow_ToDIP5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP5 }}; -// %wxchkver_3_1_2 static int ToDIP(int d, const wxWindow* w); -static int LUACALL wxLua_wxWindow_ToDIP5(lua_State *L) -{ - // const wxWindow w - const wxWindow * w = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // int d - int d = (int)wxlua_getnumbertype(L, 1); - // call ToDIP - int returns = (wxWindow::ToDIP(d, w)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,2) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToDIP4[] = { &wxluatype_wxPoint, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_ToDIP4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP4[1] = {{ wxLua_wxWindow_ToDIP4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP4 }}; -// %wxchkver_3_1_0 static wxPoint ToDIP(const wxPoint& pt, const wxWindow* w); -static int LUACALL wxLua_wxWindow_ToDIP4(lua_State *L) -{ - // const wxWindow w - const wxWindow * w = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPoint); - // call ToDIP - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(wxWindow::ToDIP(*pt, w)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToDIP3[] = { &wxluatype_wxSize, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_ToDIP3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP3[1] = {{ wxLua_wxWindow_ToDIP3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP3 }}; -// %wxchkver_3_1_0 static wxSize ToDIP(const wxSize& sz, const wxWindow* w); -static int LUACALL wxLua_wxWindow_ToDIP3(lua_State *L) -{ - // const wxWindow w - const wxWindow * w = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSize); - // call ToDIP - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(wxWindow::ToDIP(*sz, w)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToDIP2[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_ToDIP2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP2[1] = {{ wxLua_wxWindow_ToDIP2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP2 }}; -// %wxchkver_3_1_0 int ToDIP(int d) const; -static int LUACALL wxLua_wxWindow_ToDIP2(lua_State *L) -{ - // int d - int d = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ToDIP - int returns = (self->ToDIP(d)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToDIP1[] = { &wxluatype_wxWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxWindow_ToDIP1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP1[1] = {{ wxLua_wxWindow_ToDIP1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP1 }}; -// %wxchkver_3_1_0 wxPoint ToDIP(const wxPoint& pt) const; -static int LUACALL wxLua_wxWindow_ToDIP1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ToDIP - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->ToDIP(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToDIP[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_ToDIP(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP[1] = {{ wxLua_wxWindow_ToDIP, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP }}; -// %wxchkver_3_1_0 wxSize ToDIP(const wxSize& sz) const; -static int LUACALL wxLua_wxWindow_ToDIP(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ToDIP - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->ToDIP(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_ToggleWindowStyle[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_ToggleWindowStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToggleWindowStyle[1] = {{ wxLua_wxWindow_ToggleWindowStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToggleWindowStyle }}; -// %wxchkver_3_0_0 bool ToggleWindowStyle(int flag); -static int LUACALL wxLua_wxWindow_ToggleWindowStyle(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call ToggleWindowStyle - bool returns = (self->ToggleWindowStyle(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_TransferDataFromWindow[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_TransferDataFromWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_TransferDataFromWindow[1] = {{ wxLua_wxWindow_TransferDataFromWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_TransferDataFromWindow }}; -// virtual bool TransferDataFromWindow(); -static int LUACALL wxLua_wxWindow_TransferDataFromWindow(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call TransferDataFromWindow - bool returns = (self->TransferDataFromWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_TransferDataToWindow[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_TransferDataToWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_TransferDataToWindow[1] = {{ wxLua_wxWindow_TransferDataToWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_TransferDataToWindow }}; -// virtual bool TransferDataToWindow(); -static int LUACALL wxLua_wxWindow_TransferDataToWindow(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call TransferDataToWindow - bool returns = (self->TransferDataToWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxUSE_HOTKEY -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UnregisterHotKey[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_UnregisterHotKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UnregisterHotKey[1] = {{ wxLua_wxWindow_UnregisterHotKey, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_UnregisterHotKey }}; -// wxUSE_HOTKEY bool UnregisterHotKey(int hotkeyId); // %override wxUSE_HOTKEY -static int LUACALL wxLua_wxWindow_UnregisterHotKey(lua_State *L) -{ - // int hotkeyId - int hotkeyId = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call UnregisterHotKey - bool returns = (self->UnregisterHotKey(hotkeyId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxUSE_HOTKEY - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UnreserveControlId[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_UnreserveControlId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UnreserveControlId[1] = {{ wxLua_wxWindow_UnreserveControlId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_UnreserveControlId }}; -// %wxchkver_3_0_0 static void UnreserveControlId(wxWindowID id, int count = 1); -static int LUACALL wxLua_wxWindow_UnreserveControlId(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int count = 1 - int count = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 1); - // call UnreserveControlId - wxWindow::UnreserveControlId(id, count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UnsetToolTip[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_UnsetToolTip(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UnsetToolTip[1] = {{ wxLua_wxWindow_UnsetToolTip, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_UnsetToolTip }}; -// %wxchkver_3_0_0 void UnsetToolTip(); -static int LUACALL wxLua_wxWindow_UnsetToolTip(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call UnsetToolTip - self->UnsetToolTip(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Update[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Update(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Update[1] = {{ wxLua_wxWindow_Update, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Update }}; -// virtual void Update(); -static int LUACALL wxLua_wxWindow_Update(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Update - self->Update(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UpdateWindowUI[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_UpdateWindowUI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UpdateWindowUI[1] = {{ wxLua_wxWindow_UpdateWindowUI, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWindow_UpdateWindowUI }}; -// virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE); -static int LUACALL wxLua_wxWindow_UpdateWindowUI(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = wxUPDATE_UI_NONE - long flags = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : wxUPDATE_UI_NONE); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call UpdateWindowUI - self->UpdateWindowUI(flags); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UseBackgroundColour[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_UseBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UseBackgroundColour[1] = {{ wxLua_wxWindow_UseBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_UseBackgroundColour }}; -// %wxchkver_3_1_2 bool UseBackgroundColour() const; -static int LUACALL wxLua_wxWindow_UseBackgroundColour(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call UseBackgroundColour - bool returns = (self->UseBackgroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,2) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UseBgCol[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_UseBgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UseBgCol[1] = {{ wxLua_wxWindow_UseBgCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_UseBgCol }}; -// %wxchkver_3_0_0 bool UseBgCol() const; -static int LUACALL wxLua_wxWindow_UseBgCol(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call UseBgCol - bool returns = (self->UseBgCol()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,1,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_UseForegroundColour[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_UseForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_UseForegroundColour[1] = {{ wxLua_wxWindow_UseForegroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_UseForegroundColour }}; -// %wxchkver_3_1_2 bool UseForegroundColour() const; -static int LUACALL wxLua_wxWindow_UseForegroundColour(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call UseForegroundColour - bool returns = (self->UseForegroundColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,2) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_Validate[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxWindow_Validate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Validate[1] = {{ wxLua_wxWindow_Validate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_Validate }}; -// virtual bool Validate(); -static int LUACALL wxLua_wxWindow_Validate(lua_State *L) -{ - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call Validate - bool returns = (self->Validate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_WarpPointer[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWindow_WarpPointer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_WarpPointer[1] = {{ wxLua_wxWindow_WarpPointer, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_WarpPointer }}; -// void WarpPointer(int x, int y); -static int LUACALL wxLua_wxWindow_WarpPointer(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call WarpPointer - self->WarpPointer(x, y); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_WindowToClientSize[] = { &wxluatype_wxWindow, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxWindow_WindowToClientSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_WindowToClientSize[1] = {{ wxLua_wxWindow_WindowToClientSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_WindowToClientSize }}; -// %wxchkver_3_0_0 wxSize WindowToClientSize(const wxSize& size) const; -static int LUACALL wxLua_wxWindow_WindowToClientSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxWindow * self = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call WindowToClientSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->WindowToClientSize(*size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWindow_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_constructor1[1] = {{ wxLua_wxWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxWindow_constructor1 }}; -// wxWindow(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxWindow"); -static int LUACALL wxLua_wxWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxWindow"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxWindow* returns = new wxWindow(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static int LUACALL wxLua_wxWindow_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_constructor[1] = {{ wxLua_wxWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxWindow(); -static int LUACALL wxLua_wxWindow_constructor(lua_State *L) -{ - // call constructor - wxWindow* returns = new wxWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ClientToScreen_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ClientToScreen, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ClientToScreen }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ClientToScreen1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_ClientToScreen1 }, -}; -static int s_wxluafunc_wxLua_wxWindow_ClientToScreen_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_ClientToScreen_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ConvertDialogToPixels1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertDialogToPixels1 }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ConvertDialogToPixels, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertDialogToPixels }, -#endif // wxLUA_USE_wxPointSizeRect -}; -static int s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ConvertPixelsToDialog1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertPixelsToDialog1 }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ConvertPixelsToDialog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ConvertPixelsToDialog }, -#endif // wxLUA_USE_wxPointSizeRect -}; -static int s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindow_overload[] = -{ - { wxLua_wxWindow_FindWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindow }, - { wxLua_wxWindow_FindWindow1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindow1 }, -}; -static int s_wxluafunc_wxLua_wxWindow_FindWindow_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_FindWindow_overload)/sizeof(wxLuaBindCFunc); - - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowById_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_FindWindowById1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowById1 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_FindWindowById, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowById }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_FindWindowById_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_FindWindowById_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowByLabel_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_FindWindowByLabel1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByLabel1 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_FindWindowByLabel, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByLabel }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_FindWindowByLabel_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_FindWindowByLabel_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FindWindowByName_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_FindWindowByName1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByName1 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_FindWindowByName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxWindow_FindWindowByName }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_FindWindowByName_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_FindWindowByName_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_FromDIP_overload[] = -{ - -#if wxCHECK_VERSION(3,1,2) - { wxLua_wxWindow_FromDIP5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP5 }, -#endif // wxCHECK_VERSION(3,1,2) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_FromDIP4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP4 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_FromDIP3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP3 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) - { wxLua_wxWindow_FromDIP2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP2 }, -#endif // wxCHECK_VERSION(3,1,0) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_FromDIP1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP1 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_FromDIP, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_FromDIP }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxWindow_FromDIP_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_FromDIP_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) - -#if (wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetBorder_overload[] = -{ - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_GetBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWindow_GetBorder1 }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_GetBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_GetBorder }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_GetBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_GetBorder_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,0,0)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - { wxLua_wxWindow_GetPopupMenuSelectionFromUser1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_GetPopupMenuSelectionFromUser1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_GetPopupMenuSelectionFromUser, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_GetPopupMenuSelectionFromUser }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_HitTest_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_HitTest1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_HitTest1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_HitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_HitTest }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_HitTest_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_HitTest_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_IsExposed_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_IsExposed5, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed5 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_IsExposed4, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed4 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_IsExposed3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed3 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_IsExposed1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_IsExposed1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_IsExposed, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_IsExposed }, - { wxLua_wxWindow_IsExposed2, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxWindow_IsExposed2 }, -}; -static int s_wxluafunc_wxLua_wxWindow_IsExposed_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_IsExposed_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect)) - -#if (!wxCHECK_VERSION(3,0,0))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_Move_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_Move3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_Move3 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_Move2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_Move2 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_Move1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_Move1 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_Move, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxWindow_Move }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_Move_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_Move_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,0,0))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS)||((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_PopupMenu_overload[] = -{ - -#if wxLUA_USE_wxMenu && wxUSE_MENUS - { wxLua_wxWindow_PopupMenu1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxWindow_PopupMenu1 }, -#endif // wxLUA_USE_wxMenu && wxUSE_MENUS - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_PopupMenu, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWindow_PopupMenu }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxWindow_PopupMenu_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_PopupMenu_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS)||((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ScreenToClient_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ScreenToClient, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ScreenToClient }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_ScreenToClient1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_ScreenToClient1 }, -}; -static int s_wxluafunc_wxLua_wxWindow_ScreenToClient_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_ScreenToClient_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetClientSize_overload[] = -{ - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_SetClientSize2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetClientSize2 }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetClientSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetClientSize1 }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetClientSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_SetClientSize }, -}; -static int s_wxluafunc_wxLua_wxWindow_SetClientSize_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetClientSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetId_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_SetId1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetId1 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetId }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_SetId_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetId_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSize_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetSize2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetSize2 }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetSize1 }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetSize, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxWindow_SetSize }, - { wxLua_wxWindow_SetSize3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_SetSize3 }, -}; -static int s_wxluafunc_wxLua_wxWindow_SetSize_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetSizeHints_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetSizeHints, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxWindow_SetSizeHints }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetSizeHints1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxWindow_SetSizeHints1 }, -}; -static int s_wxluafunc_wxLua_wxWindow_SetSizeHints_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetSizeHints_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetToolTip_overload[] = -{ - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - { wxLua_wxWindow_SetToolTip1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetToolTip1 }, -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - { wxLua_wxWindow_SetToolTip, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetToolTip }, -}; -static int s_wxluafunc_wxLua_wxWindow_SetToolTip_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetToolTip_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetVirtualSize_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetVirtualSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSize1 }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_SetVirtualSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSize }, -}; -static int s_wxluafunc_wxLua_wxWindow_SetVirtualSize_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetVirtualSize_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(!wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints_overload[] = -{ - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_SetVirtualSizeHints1, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSizeHints1 }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxWindow_SetVirtualSizeHints, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxWindow_SetVirtualSizeHints }, -#endif // !wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(!wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_ToDIP_overload[] = -{ - -#if wxCHECK_VERSION(3,1,2) - { wxLua_wxWindow_ToDIP5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP5 }, -#endif // wxCHECK_VERSION(3,1,2) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_ToDIP4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP4 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_ToDIP3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP3 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) - { wxLua_wxWindow_ToDIP2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP2 }, -#endif // wxCHECK_VERSION(3,1,0) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_ToDIP1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP1 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxWindow_ToDIP, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWindow_ToDIP }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxWindow_ToDIP_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_ToDIP_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWindow_constructor_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxWindow_constructor1 }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -void wxLua_wxWindow_delete_function(void** p) -{ - wxWindow* o = (wxWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindow_methods[] = { -#if wxCHECK_VERSION(3,0,0) - { "AcceptsFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_AcceptsFocus, 1, NULL }, - { "AcceptsFocusFromKeyboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_AcceptsFocusFromKeyboard, 1, NULL }, - { "AcceptsFocusRecursively", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_AcceptsFocusRecursively, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "AddChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_AddChild, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "AdjustForLayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_AdjustForLayoutDirection, 1, NULL }, - { "AlwaysShowScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_AlwaysShowScrollbars, 1, NULL }, - { "BeginRepositioningChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_BeginRepositioningChildren, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect - { "CacheBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CacheBestSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) - { "CanAcceptFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CanAcceptFocus, 1, NULL }, - { "CanAcceptFocusFromKeyboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CanAcceptFocusFromKeyboard, 1, NULL }, - { "CanScroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CanScroll, 1, NULL }, - { "CanSetTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CanSetTransparent, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "CaptureMouse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CaptureMouse, 1, NULL }, - { "Center", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Center, 1, NULL }, - { "CenterOnParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CenterOnParent, 1, NULL }, - -#if !wxCHECK_VERSION(2,8,0) - { "CenterOnScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CenterOnScreen, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "Centre", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Centre, 1, NULL }, - { "CentreOnParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CentreOnParent, 1, NULL }, - -#if !wxCHECK_VERSION(2,8,0) - { "CentreOnScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_CentreOnScreen, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if !wxCHECK_VERSION(2,6,0) - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Clear, 1, NULL }, -#endif // !wxCHECK_VERSION(2,6,0) - -#if wxCHECK_VERSION(2,6,0) - { "ClearBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ClearBackground, 1, NULL }, -#endif // wxCHECK_VERSION(2,6,0) - -#if (wxLUA_USE_wxPointSizeRect) - { "ClientToScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ClientToScreen_overload, s_wxluafunc_wxLua_wxWindow_ClientToScreen_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "ClientToWindowSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ClientToWindowSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Close, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "ConvertDialogToPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels_overload, s_wxluafunc_wxLua_wxWindow_ConvertDialogToPixels_overload_count, 0 }, - { "ConvertPixelsToDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog_overload, s_wxluafunc_wxLua_wxWindow_ConvertPixelsToDialog_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Create, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "Destroy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Destroy, 1, NULL }, - { "DestroyChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_DestroyChildren, 1, NULL }, - { "Disable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Disable, 1, NULL }, - -#if wxCHECK_VERSION(3,1,4) - { "DisableFocusFromKeyboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_DisableFocusFromKeyboard, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,4) - -#if wxCHECK_VERSION(3,0,0) - { "DoUpdateWindowUI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_DoUpdateWindowUI, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if defined(__WXMSW__) - { "DragAcceptFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_DragAcceptFiles, 1, NULL }, -#endif // defined(__WXMSW__) - - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Enable, 1, NULL }, - -#if wxCHECK_VERSION(3,1,2) - { "EnableTouchEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_EnableTouchEvents, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,2) - -#if defined(__WXMAC__) && wxCHECK_VERSION(3,1,5) - { "EnableVisibleFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_EnableVisibleFocus, 1, NULL }, -#endif // defined(__WXMAC__) && wxCHECK_VERSION(3,1,5) - -#if wxCHECK_VERSION(3,0,0) - { "EndRepositioningChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_EndRepositioningChildren, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "FindFocus", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_FindFocus, 1, NULL }, - - { "FindWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_FindWindow_overload, s_wxluafunc_wxLua_wxWindow_FindWindow_overload_count, 0 }, - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - { "FindWindowById", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_FindWindowById_overload, s_wxluafunc_wxLua_wxWindow_FindWindowById_overload_count, 0 }, - { "FindWindowByLabel", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_FindWindowByLabel_overload, s_wxluafunc_wxLua_wxWindow_FindWindowByLabel_overload_count, 0 }, - { "FindWindowByName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_FindWindowByName_overload, s_wxluafunc_wxLua_wxWindow_FindWindowByName_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - - { "Fit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Fit, 1, NULL }, - { "FitInside", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_FitInside, 1, NULL }, - { "Freeze", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Freeze, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) - { "FromDIP", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_FromDIP_overload, s_wxluafunc_wxLua_wxWindow_FromDIP_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - { "GetAcceleratorTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetAcceleratorTable, 1, NULL }, -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetAdjustedBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetAdjustedBestSize, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "GetAutoLayout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetAutoLayout, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxColourPenBrush - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBackgroundColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "GetBackgroundStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBackgroundStyle, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetBestFittingSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBestFittingSize, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "GetBestHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBestHeight, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBestSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxPointSizeRect) - { "GetBestVirtualSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBestVirtualSize, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "GetBestWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBestWidth, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) - { "GetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetBorder_overload, s_wxluafunc_wxLua_wxWindow_GetBorder_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,0,0)) - - { "GetCapture", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_GetCapture, 1, NULL }, - -#if wxLUA_USE_wxCaret && wxUSE_CARET - { "GetCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetCaret, 1, NULL }, -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - - { "GetCharHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetCharHeight, 1, NULL }, - { "GetCharWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetCharWidth, 1, NULL }, - -#if wxLUA_USE_wxWindowList && !wxUSE_STL - { "GetChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetChildren, 1, NULL }, -#endif // wxLUA_USE_wxWindowList && !wxUSE_STL - -#if wxCHECK_VERSION(3,0,0) - { "GetClassDefaultAttributes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_GetClassDefaultAttributes, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetClientAreaOrigin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetClientAreaOrigin, 1, NULL }, - { "GetClientRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetClientRect, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect - { "GetClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetClientSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetClientSizeWH", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetClientSizeWH, 1, NULL }, - -#if ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) - { "GetConstraints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetConstraints, 1, NULL }, -#endif // ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { "GetContainingSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetContainingSizer, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxCHECK_VERSION(2,9,5) - { "GetContentScaleFactor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetContentScaleFactor, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxLUA_USE_wxCursor - { "GetCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetCursor, 1, NULL }, -#endif // wxLUA_USE_wxCursor - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) - { "GetDPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetDPI, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,4) - { "GetDPIScaleFactor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetDPIScaleFactor, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,4) - - { "GetDefaultAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetDefaultAttributes, 1, NULL }, - -#if !wxCHECK_VERSION(2,8,0) - { "GetDefaultItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetDefaultItem, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "GetDropTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetDropTarget, 1, NULL }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetEffectiveMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetEffectiveMinSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - - { "GetEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetEventHandler, 1, NULL }, - { "GetExtraStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetExtraStyle, 1, NULL }, - -#if wxLUA_USE_wxFont - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetFont, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - { "GetForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetForegroundColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "GetGrandParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetGrandParent, 1, NULL }, - { "GetHandle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetHandle, 1, NULL }, - { "GetHelpText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetHelpText, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxPointSizeRect) - { "GetHelpTextAtPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetHelpTextAtPoint, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxCHECK_VERSION(3,0,0))) && (wxLUA_USE_wxPointSizeRect) - - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetId, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetLabel, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) - { "GetLayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetLayoutDirection, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetMaxClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMaxClientSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "GetMaxHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMaxHeight, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMaxSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) - { "GetMaxWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMaxWidth, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetMinClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMinClientSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "GetMinHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMinHeight, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMinSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) - { "GetMinWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetMinWidth, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetName, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "GetNextSibling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetNextSibling, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetParent, 1, NULL }, - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect)) - { "GetPopupMenuSelectionFromUser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser_overload, s_wxluafunc_wxLua_wxWindow_GetPopupMenuSelectionFromUser_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxMenu && wxUSE_MENUS)) && (wxLUA_USE_wxPointSizeRect)) - -#if wxLUA_USE_wxPointSizeRect - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetPositionXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetPositionXY, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "GetPrevSibling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetPrevSibling, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxPointSizeRect - { "GetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetRect, 1, NULL }, - { "GetScreenPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetScreenPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetScreenPositionXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetScreenPositionXY, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "GetScreenRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetScreenRect, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetScrollPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetScrollPos, 1, NULL }, - { "GetScrollRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetScrollRange, 1, NULL }, - { "GetScrollThumb", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetScrollThumb, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetSizeWH", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetSizeWH, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { "GetSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetSizer, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxFont - { "GetTextExtent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetTextExtent, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxCHECK_VERSION(3,0,0) - { "GetThemeEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetThemeEnabled, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if !wxCHECK_VERSION(2,8,0) - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetTitle, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - { "GetToolTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetToolTip, 1, NULL }, -#endif // wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS - -#if wxCHECK_VERSION(3,0,0) - { "GetToolTipText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetToolTipText, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetUpdateClientRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetUpdateClientRect, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxRegion - { "GetUpdateRegion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetUpdateRegion, 1, NULL }, -#endif // wxLUA_USE_wxRegion - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - { "GetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetValidator, 1, NULL }, -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if wxLUA_USE_wxPointSizeRect - { "GetVirtualSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetVirtualSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "GetVirtualSizeWH", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetVirtualSizeWH, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "GetWindowBorderSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetWindowBorderSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "GetWindowStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetWindowStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "GetWindowStyleFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetWindowStyleFlag, 1, NULL }, - { "GetWindowVariant", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_GetWindowVariant, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "HandleAsNavigationKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HandleAsNavigationKey, 1, NULL }, - { "HandleWindowEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HandleWindowEvent, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(2,4,0) - { "HasCapture", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasCapture, 1, NULL }, -#endif // wxCHECK_VERSION(2,4,0) - -#if wxCHECK_VERSION(3,0,0) - { "HasExtraStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasExtraStyle, 1, NULL }, - { "HasFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasFlag, 1, NULL }, - { "HasFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasFocus, 1, NULL }, - { "HasMultiplePages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasMultiplePages, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "HasScrollbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasScrollbar, 1, NULL }, - { "HasTransparentBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HasTransparentBackground, 1, NULL }, - { "Hide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Hide, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) - { "HideWithEffect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HideWithEffect, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_HitTest_overload, s_wxluafunc_wxLua_wxWindow_HitTest_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) - -#if wxCHECK_VERSION(3,0,0) - { "InformFirstDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_InformFirstDirection, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "InheritAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_InheritAttributes, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "InheritsBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_InheritsBackgroundColour, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,1,2) - { "InheritsForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_InheritsForegroundColour, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,2) - - { "InitDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_InitDialog, 1, NULL }, - { "InvalidateBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_InvalidateBestSize, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "IsBeingDeleted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsBeingDeleted, 1, NULL }, - { "IsDescendant", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsDescendant, 1, NULL }, - { "IsDoubleBuffered", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsDoubleBuffered, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsEnabled, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect)) - { "IsExposed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsExposed_overload, s_wxluafunc_wxLua_wxWindow_IsExposed_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect)) - -#if wxCHECK_VERSION(3,0,0) - { "IsFocusable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsFocusable, 1, NULL }, - { "IsFrozen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsFrozen, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "IsRetained", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsRetained, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "IsScrollbarAlwaysShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsScrollbarAlwaysShown, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsShown, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "IsShownOnScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsShownOnScreen, 1, NULL }, - { "IsThisEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsThisEnabled, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsTopLevel, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "IsTransparentBackgroundSupported", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_IsTransparentBackgroundSupported, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Layout, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "LineDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_LineDown, 1, NULL }, - { "LineUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_LineUp, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "Lower", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Lower, 1, NULL }, - -#if !wxCHECK_VERSION(3,0,0) - { "MakeModal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_MakeModal, 1, NULL }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if (!wxCHECK_VERSION(3,0,0))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) - { "Move", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Move_overload, s_wxluafunc_wxLua_wxWindow_Move_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,0,0))||((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,0,0)) - - { "MoveAfterInTabOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_MoveAfterInTabOrder, 1, NULL }, - { "MoveBeforeInTabOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_MoveBeforeInTabOrder, 1, NULL }, - { "Navigate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Navigate, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "NavigateIn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_NavigateIn, 1, NULL }, - { "NewControlId", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_NewControlId, 1, NULL }, - { "OnInternalIdle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_OnInternalIdle, 1, NULL }, - { "PageDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PageDown, 1, NULL }, - { "PageUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PageUp, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "PopEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PopEventHandler, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS)||((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) - { "PopupMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PopupMenu_overload, s_wxluafunc_wxLua_wxWindow_PopupMenu_overload_count, 0 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS)||((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) - -#if wxCHECK_VERSION(3,0,0) - { "PostSizeEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PostSizeEvent, 1, NULL }, - { "PostSizeEventToParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PostSizeEventToParent, 1, NULL }, - { "ProcessWindowEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ProcessWindowEvent, 1, NULL }, - { "ProcessWindowEventLocally", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ProcessWindowEventLocally, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "PushEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_PushEventHandler, 1, NULL }, - { "Raise", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Raise, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "Refresh", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Refresh, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "RefreshRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_RefreshRect, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxUSE_HOTKEY - { "RegisterHotKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_RegisterHotKey, 1, NULL }, -#endif // wxUSE_HOTKEY - - { "ReleaseMouse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ReleaseMouse, 1, NULL }, - { "RemoveChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_RemoveChild, 1, NULL }, - { "RemoveEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_RemoveEventHandler, 1, NULL }, - { "Reparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Reparent, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "ScreenToClient", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ScreenToClient_overload, s_wxluafunc_wxLua_wxWindow_ScreenToClient_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { "ScrollLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ScrollLines, 1, NULL }, - { "ScrollPages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ScrollPages, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "ScrollWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ScrollWindow, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if wxCHECK_VERSION(3,0,0) - { "SendIdleEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SendIdleEvents, 1, NULL }, - { "SendSizeEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SendSizeEvent, 1, NULL }, - { "SendSizeEventToParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SendSizeEventToParent, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - { "SetAcceleratorTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetAcceleratorTable, 1, NULL }, -#endif // wxLUA_USE_wxAcceleratorTable && wxUSE_ACCEL - - { "SetAutoLayout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetAutoLayout, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetBackgroundColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetBackgroundStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetBackgroundStyle, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "SetCanFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetCanFocus, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxCaret && wxUSE_CARET - { "SetCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetCaret, 1, NULL }, -#endif // wxLUA_USE_wxCaret && wxUSE_CARET - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxPointSizeRect) - { "SetClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetClientSize_overload, s_wxluafunc_wxLua_wxWindow_SetClientSize_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) - { "SetConstraints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetConstraints, 1, NULL }, -#endif // ((wxLUA_USE_wxLayoutConstraints && (!wxCHECK_VERSION(2,6,0))) && (wxLUA_USE_wxSizer)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { "SetContainingSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetContainingSizer, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - -#if wxLUA_USE_wxCursor - { "SetCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetCursor, 1, NULL }, -#endif // wxLUA_USE_wxCursor - -#if !wxCHECK_VERSION(2,8,0) - { "SetDefaultItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetDefaultItem, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__) - { "SetDoubleBuffered", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetDoubleBuffered, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) && !defined(__WXMAC__) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "SetDropTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetDropTarget, 1, NULL }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - { "SetEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetEventHandler, 1, NULL }, - { "SetExtraStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetExtraStyle, 1, NULL }, - { "SetFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetFocus, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "SetFocusFromKbd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetFocusFromKbd, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxFont - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetFont, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - { "SetForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetForegroundColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetHelpText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetHelpText, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetId_overload, s_wxluafunc_wxLua_wxWindow_SetId_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - { "SetInitialSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetInitialSize, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxPointSizeRect) - - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetLabel, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) - { "SetLayoutDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetLayoutDirection, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxUSE_INTL)) && (wxCHECK_VERSION(3,0,0)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "SetMaxClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetMaxClientSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect - { "SetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetMaxSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "SetMinClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetMinClientSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxLUA_USE_wxPointSizeRect - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetMinSize, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetName, 1, NULL }, - -#if wxCHECK_VERSION(3,0,0) - { "SetNextHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetNextHandler, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxColourPenBrush - { "SetOwnBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetOwnBackgroundColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxLUA_USE_wxFont - { "SetOwnFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetOwnFont, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxLUA_USE_wxColourPenBrush - { "SetOwnForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetOwnForegroundColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { "SetPalette", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetPalette, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetPosition, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,0,0) - { "SetPreviousHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetPreviousHandler, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "SetScrollPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetScrollPos, 1, NULL }, - { "SetScrollbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetScrollbar, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetSize_overload, s_wxluafunc_wxLua_wxWindow_SetSize_overload_count, 0 }, - { "SetSizeHints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetSizeHints_overload, s_wxluafunc_wxLua_wxWindow_SetSizeHints_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - { "SetSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetSizer, 1, NULL }, - { "SetSizerAndFit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetSizerAndFit, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) - - { "SetThemeEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetThemeEnabled, 1, NULL }, - -#if !wxCHECK_VERSION(2,8,0) - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetTitle, 1, NULL }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) - { "SetToolTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetToolTip_overload, s_wxluafunc_wxLua_wxWindow_SetToolTip_overload_count, 0 }, -#endif // (wxLUA_USE_wxTooltip && wxUSE_TOOLTIPS) - -#if wxCHECK_VERSION(3,0,0) - { "SetTransparent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetTransparent, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxLUA_USE_wxValidator && wxUSE_VALIDATORS - { "SetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetValidator, 1, NULL }, -#endif // wxLUA_USE_wxValidator && wxUSE_VALIDATORS - -#if (wxLUA_USE_wxPointSizeRect) - { "SetVirtualSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetVirtualSize_overload, s_wxluafunc_wxLua_wxWindow_SetVirtualSize_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(!wxCHECK_VERSION(3,0,0)) - { "SetVirtualSizeHints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints_overload, s_wxluafunc_wxLua_wxWindow_SetVirtualSizeHints_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect))||(!wxCHECK_VERSION(3,0,0)) - - { "SetWindowStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetWindowStyle, 1, NULL }, - { "SetWindowStyleFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetWindowStyleFlag, 1, NULL }, - { "SetWindowVariant", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_SetWindowVariant, 1, NULL }, - { "ShouldInheritColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ShouldInheritColours, 1, NULL }, - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Show, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) - { "ShowWithEffect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ShowWithEffect, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,1)) && (wxCHECK_VERSION(3,0,0)) - - { "Thaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Thaw, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) - { "ToDIP", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_ToDIP_overload, s_wxluafunc_wxLua_wxWindow_ToDIP_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,1,2))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(3,1,0)) - -#if wxCHECK_VERSION(3,0,0) - { "ToggleWindowStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_ToggleWindowStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "TransferDataFromWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_TransferDataFromWindow, 1, NULL }, - { "TransferDataToWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_TransferDataToWindow, 1, NULL }, - -#if wxUSE_HOTKEY - { "UnregisterHotKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_UnregisterHotKey, 1, NULL }, -#endif // wxUSE_HOTKEY - -#if wxCHECK_VERSION(3,0,0) - { "UnreserveControlId", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWindow_UnreserveControlId, 1, NULL }, - { "UnsetToolTip", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_UnsetToolTip, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - - { "Update", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Update, 1, NULL }, - { "UpdateWindowUI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_UpdateWindowUI, 1, NULL }, - -#if wxCHECK_VERSION(3,1,2) - { "UseBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_UseBackgroundColour, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,2) - -#if wxCHECK_VERSION(3,0,0) - { "UseBgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_UseBgCol, 1, NULL }, -#endif // wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,1,2) - { "UseForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_UseForegroundColour, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,2) - - { "Validate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_Validate, 1, NULL }, - { "WarpPointer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_WarpPointer, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - { "WindowToClientSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWindow_WindowToClientSize, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxPointSizeRect) - { "wxWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWindow_constructor_overload, s_wxluafunc_wxLua_wxWindow_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxWindow_methodCount = sizeof(wxWindow_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxWindowList && !wxUSE_STL -// --------------------------------------------------------------------------- -// Bind class wxWindowList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWindowList' -int wxluatype_wxWindowList = WXLUA_TUNKNOWN; - - - -void wxLua_wxWindowList_delete_function(void** p) -{ - wxWindowList* o = (wxWindowList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWindowList_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxWindowList_methodCount = sizeof(wxWindowList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxWindowList && !wxUSE_STL - -// --------------------------------------------------------------------------- -// Bind class wxPanel -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPanel' -int wxluatype_wxPanel = WXLUA_TUNKNOWN; - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxPanel_Create[] = { &wxluatype_wxPanel, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPanel_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPanel_Create[1] = {{ wxLua_wxPanel_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxPanel_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = "wxPanel"); -static int LUACALL wxLua_wxPanel_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxPanel" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxPanel"))); - // long style = wxTAB_TRAVERSAL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxTAB_TRAVERSAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPanel * self = (wxPanel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPanel); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPanel_SetFocusIgnoringChildren[] = { &wxluatype_wxPanel, NULL }; -static int LUACALL wxLua_wxPanel_SetFocusIgnoringChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPanel_SetFocusIgnoringChildren[1] = {{ wxLua_wxPanel_SetFocusIgnoringChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPanel_SetFocusIgnoringChildren }}; -// virtual void SetFocusIgnoringChildren(); -static int LUACALL wxLua_wxPanel_SetFocusIgnoringChildren(lua_State *L) -{ - // get this - wxPanel * self = (wxPanel *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPanel); - // call SetFocusIgnoringChildren - self->SetFocusIgnoringChildren(); - - return 0; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxPanel_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPanel_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPanel_constructor1[1] = {{ wxLua_wxPanel_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxPanel_constructor1 }}; -// wxPanel(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL, const wxString& name = "wxPanel"); -static int LUACALL wxLua_wxPanel_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxPanel" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxPanel"))); - // long style = wxTAB_TRAVERSAL - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxTAB_TRAVERSAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPanel* returns = new wxPanel(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPanel); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static int LUACALL wxLua_wxPanel_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPanel_constructor[1] = {{ wxLua_wxPanel_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPanel(); -static int LUACALL wxLua_wxPanel_constructor(lua_State *L) -{ - // call constructor - wxPanel* returns = new wxPanel(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPanel); - - return 1; -} - - - -#if (wxLUA_USE_wxPointSizeRect) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPanel_constructor_overload[] = -{ - -#if wxLUA_USE_wxPointSizeRect - { wxLua_wxPanel_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxPanel_constructor1 }, -#endif // wxLUA_USE_wxPointSizeRect - { wxLua_wxPanel_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPanel_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPanel_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPointSizeRect) - -void wxLua_wxPanel_delete_function(void** p) -{ - wxPanel* o = (wxPanel*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPanel_methods[] = { -#if wxLUA_USE_wxPointSizeRect - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPanel_Create, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "SetFocusIgnoringChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPanel_SetFocusIgnoringChildren, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) - { "wxPanel", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPanel_constructor_overload, s_wxluafunc_wxLua_wxPanel_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxPanel_methodCount = sizeof(wxPanel_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxControl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxControl' -int wxluatype_wxControl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxControl_Command[] = { &wxluatype_wxControl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxControl_Command(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_Command[1] = {{ wxLua_wxControl_Command, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxControl_Command }}; -// void Command(wxCommandEvent& event); -static int LUACALL wxLua_wxControl_Command(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxControl * self = (wxControl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxControl); - // call Command - self->Command(*event); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxControl_Create[] = { &wxluatype_wxControl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxControl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_Create[1] = {{ wxLua_wxControl_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxControl_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxControl"); -static int LUACALL wxLua_wxControl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxControl" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxControl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxControl * self = (wxControl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxControl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if wxCHECK_VERSION(2,8,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxControl_GetLabelText[] = { &wxluatype_wxControl, NULL }; -static int LUACALL wxLua_wxControl_GetLabelText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_GetLabelText[1] = {{ wxLua_wxControl_GetLabelText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxControl_GetLabelText }}; -// %wxchkver_2_8 wxString GetLabelText() const; -static int LUACALL wxLua_wxControl_GetLabelText(lua_State *L) -{ - // get this - wxControl * self = (wxControl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxControl); - // call GetLabelText - wxString returns = (self->GetLabelText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(2,9,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxControl_SetLabelMarkup[] = { &wxluatype_wxControl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxControl_SetLabelMarkup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_SetLabelMarkup[1] = {{ wxLua_wxControl_SetLabelMarkup, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxControl_SetLabelMarkup }}; -// %wxchkver_2_9_2 bool SetLabelMarkup(const wxString& label); -static int LUACALL wxLua_wxControl_SetLabelMarkup(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxControl * self = (wxControl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxControl); - // call SetLabelMarkup - bool returns = (self->SetLabelMarkup(label)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,2) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxControl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxControl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_constructor1[1] = {{ wxLua_wxControl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxControl_constructor1 }}; -// wxControl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxControl"); -static int LUACALL wxLua_wxControl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxControl" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxControl"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 6 ? (const wxValidator *)wxluaT_getuserdatatype(L, 6, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxControl* returns = new wxControl(parent, id, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxControl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_constructor[1] = {{ wxLua_wxControl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxControl(); -static int LUACALL wxLua_wxControl_constructor(lua_State *L) -{ - // call constructor - wxControl* returns = new wxControl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxControl); - - return 1; -} - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxControl_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxControl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxControl_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxControl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxControl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxControl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - -void wxLua_wxControl_delete_function(void** p) -{ - wxControl* o = (wxControl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxControl_methods[] = { - { "Command", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxControl_Command, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxControl_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if wxCHECK_VERSION(2,8,0) - { "GetLabelText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxControl_GetLabelText, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(2,9,2) - { "SetLabelMarkup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxControl_SetLabelMarkup, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,2) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - { "wxControl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxControl_constructor_overload, s_wxluafunc_wxLua_wxControl_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - - { 0, 0, 0, 0 }, -}; - -int wxControl_methodCount = sizeof(wxControl_methods)/sizeof(wxLuaBindMethod) - 1; - - - -#if wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL -// --------------------------------------------------------------------------- -// Bind class wxBookCtrlBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBookCtrlBase' -int wxluatype_wxBookCtrlBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_AddPage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_AddPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_AddPage[1] = {{ wxLua_wxBookCtrlBase_AddPage, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxBookCtrlBase_AddPage }}; -// virtual bool AddPage(wxWindow *page, const wxString& text, bool bSelect = false, int imageId = -1); -static int LUACALL wxLua_wxBookCtrlBase_AddPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = -1 - int imageId = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : -1); - // bool bSelect = false - bool bSelect = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call AddPage - bool returns = (self->AddPage(page, text, bSelect, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_AdvanceSelection[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_AdvanceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_AdvanceSelection[1] = {{ wxLua_wxBookCtrlBase_AdvanceSelection, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_AdvanceSelection }}; -// void AdvanceSelection(bool forward = true); -static int LUACALL wxLua_wxBookCtrlBase_AdvanceSelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool forward = true - bool forward = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call AdvanceSelection - self->AdvanceSelection(forward); - - return 0; -} - - -#if (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_CalcSizeFromPage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_CalcSizeFromPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_CalcSizeFromPage[1] = {{ wxLua_wxBookCtrlBase_CalcSizeFromPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_CalcSizeFromPage }}; -// virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const; -static int LUACALL wxLua_wxBookCtrlBase_CalcSizeFromPage(lua_State *L) -{ - // const wxSize sizePage - const wxSize * sizePage = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call CalcSizeFromPage - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->CalcSizeFromPage(*sizePage)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && (wxCHECK_VERSION(2,8,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_ChangeSelection[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_ChangeSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_ChangeSelection[1] = {{ wxLua_wxBookCtrlBase_ChangeSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_ChangeSelection }}; -// %wxchkver_2_8 virtual int ChangeSelection(size_t n); -static int LUACALL wxLua_wxBookCtrlBase_ChangeSelection(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call ChangeSelection - int returns = (self->ChangeSelection(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && (wxCHECK_VERSION(2,8,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_DeleteAllPages[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_DeleteAllPages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_DeleteAllPages[1] = {{ wxLua_wxBookCtrlBase_DeleteAllPages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_DeleteAllPages }}; -// virtual bool DeleteAllPages(); -static int LUACALL wxLua_wxBookCtrlBase_DeleteAllPages(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call DeleteAllPages - bool returns = (self->DeleteAllPages()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_DeletePage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_DeletePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_DeletePage[1] = {{ wxLua_wxBookCtrlBase_DeletePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_DeletePage }}; -// virtual bool DeletePage(size_t n); -static int LUACALL wxLua_wxBookCtrlBase_DeletePage(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call DeletePage - bool returns = (self->DeletePage(n)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetControlMargin[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetControlMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetControlMargin[1] = {{ wxLua_wxBookCtrlBase_GetControlMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetControlMargin }}; -// int GetControlMargin() const; -static int LUACALL wxLua_wxBookCtrlBase_GetControlMargin(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetControlMargin - int returns = (self->GetControlMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetControlSizer[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetControlSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetControlSizer[1] = {{ wxLua_wxBookCtrlBase_GetControlSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetControlSizer }}; -// wxSizer* GetControlSizer() const; -static int LUACALL wxLua_wxBookCtrlBase_GetControlSizer(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetControlSizer - wxSizer* returns = (wxSizer*)self->GetControlSizer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSizer); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetCurrentPage[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetCurrentPage[1] = {{ wxLua_wxBookCtrlBase_GetCurrentPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetCurrentPage }}; -// wxWindow *GetCurrentPage() const; -static int LUACALL wxLua_wxBookCtrlBase_GetCurrentPage(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetCurrentPage - wxWindow* returns = (wxWindow*)self->GetCurrentPage(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetFitToCurrentPage[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetFitToCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetFitToCurrentPage[1] = {{ wxLua_wxBookCtrlBase_GetFitToCurrentPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetFitToCurrentPage }}; -// bool GetFitToCurrentPage() const; -static int LUACALL wxLua_wxBookCtrlBase_GetFitToCurrentPage(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetFitToCurrentPage - bool returns = (self->GetFitToCurrentPage()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetImageList[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetImageList[1] = {{ wxLua_wxBookCtrlBase_GetImageList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetImageList }}; -// wxImageList* GetImageList() const; -static int LUACALL wxLua_wxBookCtrlBase_GetImageList(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetImageList - wxImageList* returns = (wxImageList*)self->GetImageList(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetInternalBorder[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetInternalBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetInternalBorder[1] = {{ wxLua_wxBookCtrlBase_GetInternalBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetInternalBorder }}; -// unsigned int GetInternalBorder() const; -static int LUACALL wxLua_wxBookCtrlBase_GetInternalBorder(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetInternalBorder - unsigned int returns = (self->GetInternalBorder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetPage[1] = {{ wxLua_wxBookCtrlBase_GetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPage }}; -// virtual wxWindow *GetPage(size_t n); -static int LUACALL wxLua_wxBookCtrlBase_GetPage(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetPage - wxWindow* returns = (wxWindow*)self->GetPage(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPageCount[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetPageCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetPageCount[1] = {{ wxLua_wxBookCtrlBase_GetPageCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPageCount }}; -// virtual size_t GetPageCount() const; -static int LUACALL wxLua_wxBookCtrlBase_GetPageCount(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetPageCount - size_t returns = (self->GetPageCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPageImage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetPageImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetPageImage[1] = {{ wxLua_wxBookCtrlBase_GetPageImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPageImage }}; -// virtual int GetPageImage(size_t n) const; -static int LUACALL wxLua_wxBookCtrlBase_GetPageImage(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetPageImage - int returns = (self->GetPageImage(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPageText[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetPageText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetPageText[1] = {{ wxLua_wxBookCtrlBase_GetPageText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetPageText }}; -// virtual wxString GetPageText(size_t n) const; -static int LUACALL wxLua_wxBookCtrlBase_GetPageText(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetPageText - wxString returns = (self->GetPageText(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_GetSelection[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_GetSelection[1] = {{ wxLua_wxBookCtrlBase_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_GetSelection }}; -// virtual int GetSelection() const; -static int LUACALL wxLua_wxBookCtrlBase_GetSelection(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_InsertPage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_InsertPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_InsertPage[1] = {{ wxLua_wxBookCtrlBase_InsertPage, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxBookCtrlBase_InsertPage }}; -// virtual bool InsertPage(size_t n, wxWindow *page, const wxString& text, bool bSelect = false, int imageId = -1); -static int LUACALL wxLua_wxBookCtrlBase_InsertPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = -1 - int imageId = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // bool bSelect = false - bool bSelect = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call InsertPage - bool returns = (self->InsertPage(n, page, text, bSelect, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_IsVertical[] = { &wxluatype_wxBookCtrlBase, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_IsVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_IsVertical[1] = {{ wxLua_wxBookCtrlBase_IsVertical, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBase_IsVertical }}; -// bool IsVertical() const; -static int LUACALL wxLua_wxBookCtrlBase_IsVertical(lua_State *L) -{ - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call IsVertical - bool returns = (self->IsVertical()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_RemovePage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_RemovePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_RemovePage[1] = {{ wxLua_wxBookCtrlBase_RemovePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_RemovePage }}; -// virtual bool RemovePage(size_t n); -static int LUACALL wxLua_wxBookCtrlBase_RemovePage(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call RemovePage - bool returns = (self->RemovePage(n)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetControlMargin[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetControlMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetControlMargin[1] = {{ wxLua_wxBookCtrlBase_SetControlMargin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetControlMargin }}; -// void SetControlMargin(int margin); -static int LUACALL wxLua_wxBookCtrlBase_SetControlMargin(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetControlMargin - self->SetControlMargin(margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetFitToCurrentPage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetFitToCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetFitToCurrentPage[1] = {{ wxLua_wxBookCtrlBase_SetFitToCurrentPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetFitToCurrentPage }}; -// void SetFitToCurrentPage(bool fit); -static int LUACALL wxLua_wxBookCtrlBase_SetFitToCurrentPage(lua_State *L) -{ - // bool fit - bool fit = wxlua_getbooleantype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetFitToCurrentPage - self->SetFitToCurrentPage(fit); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetImageList[] = { &wxluatype_wxBookCtrlBase, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetImageList[1] = {{ wxLua_wxBookCtrlBase_SetImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetImageList }}; -// virtual void SetImageList(wxImageList *imageList); -static int LUACALL wxLua_wxBookCtrlBase_SetImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetImageList - self->SetImageList(imageList); - - return 0; -} - -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetInternalBorder[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetInternalBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetInternalBorder[1] = {{ wxLua_wxBookCtrlBase_SetInternalBorder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetInternalBorder }}; -// void SetInternalBorder(unsigned int border); -static int LUACALL wxLua_wxBookCtrlBase_SetInternalBorder(lua_State *L) -{ - // unsigned int border - unsigned int border = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetInternalBorder - self->SetInternalBorder(border); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetPageImage[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetPageImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetPageImage[1] = {{ wxLua_wxBookCtrlBase_SetPageImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetPageImage }}; -// virtual bool SetPageImage(size_t n, int imageId); -static int LUACALL wxLua_wxBookCtrlBase_SetPageImage(lua_State *L) -{ - // int imageId - int imageId = (int)wxlua_getnumbertype(L, 3); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetPageImage - bool returns = (self->SetPageImage(n, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetPageSize[] = { &wxluatype_wxBookCtrlBase, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetPageSize[1] = {{ wxLua_wxBookCtrlBase_SetPageSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetPageSize }}; -// virtual void SetPageSize(const wxSize& size); -static int LUACALL wxLua_wxBookCtrlBase_SetPageSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetPageSize - self->SetPageSize(*size); - - return 0; -} - -#endif // (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetPageText[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetPageText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetPageText[1] = {{ wxLua_wxBookCtrlBase_SetPageText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetPageText }}; -// virtual bool SetPageText(size_t n, const wxString& strText); -static int LUACALL wxLua_wxBookCtrlBase_SetPageText(lua_State *L) -{ - // const wxString strText - const wxString strText = wxlua_getwxStringtype(L, 3); - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetPageText - bool returns = (self->SetPageText(n, strText)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBase_SetSelection[] = { &wxluatype_wxBookCtrlBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxBookCtrlBase_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBase_SetSelection[1] = {{ wxLua_wxBookCtrlBase_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBase_SetSelection }}; -// virtual int SetSelection(size_t n); -static int LUACALL wxLua_wxBookCtrlBase_SetSelection(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxBookCtrlBase * self = (wxBookCtrlBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBase); - // call SetSelection - int returns = (self->SetSelection(n)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - - - -void wxLua_wxBookCtrlBase_delete_function(void** p) -{ - wxBookCtrlBase* o = (wxBookCtrlBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBookCtrlBase_methods[] = { - { "AddPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_AddPage, 1, NULL }, - { "AdvanceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_AdvanceSelection, 1, NULL }, - -#if (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) - { "CalcSizeFromPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_CalcSizeFromPage, 1, NULL }, -#endif // (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && (wxCHECK_VERSION(2,8,0)) - { "ChangeSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_ChangeSelection, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && (wxCHECK_VERSION(2,8,0)) - - { "DeleteAllPages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_DeleteAllPages, 1, NULL }, - { "DeletePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_DeletePage, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "GetControlMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetControlMargin, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - { "GetControlSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetControlSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) - - { "GetCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetCurrentPage, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "GetFitToCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetFitToCurrentPage, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "GetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "GetInternalBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetInternalBorder, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - - { "GetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetPage, 1, NULL }, - { "GetPageCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetPageCount, 1, NULL }, - { "GetPageImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetPageImage, 1, NULL }, - { "GetPageText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetPageText, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_GetSelection, 1, NULL }, - { "InsertPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_InsertPage, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "IsVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_IsVertical, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - - { "RemovePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_RemovePage, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "SetControlMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetControlMargin, 1, NULL }, - { "SetFitToCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetFitToCurrentPage, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "SetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetImageList, 1, NULL }, -#endif // (wxLUA_USE_wxImageList) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - { "SetInternalBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetInternalBorder, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) - - { "SetPageImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetPageImage, 1, NULL }, - -#if (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) - { "SetPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetPageSize, 1, NULL }, -#endif // (wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL) && (wxLUA_USE_wxPointSizeRect) - - { "SetPageText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetPageText, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBase_SetSelection, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBookCtrlBase_methodCount = sizeof(wxBookCtrlBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - - -#if wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL -// --------------------------------------------------------------------------- -// Bind class wxBookCtrlBaseEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBookCtrlBaseEvent' -int wxluatype_wxBookCtrlBaseEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_GetOldSelection[] = { &wxluatype_wxBookCtrlBaseEvent, NULL }; -static int LUACALL wxLua_wxBookCtrlBaseEvent_GetOldSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBaseEvent_GetOldSelection[1] = {{ wxLua_wxBookCtrlBaseEvent_GetOldSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_GetOldSelection }}; -// int GetOldSelection() const; -static int LUACALL wxLua_wxBookCtrlBaseEvent_GetOldSelection(lua_State *L) -{ - // get this - wxBookCtrlBaseEvent * self = (wxBookCtrlBaseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBaseEvent); - // call GetOldSelection - int returns = (self->GetOldSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_GetSelection[] = { &wxluatype_wxBookCtrlBaseEvent, NULL }; -static int LUACALL wxLua_wxBookCtrlBaseEvent_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBaseEvent_GetSelection[1] = {{ wxLua_wxBookCtrlBaseEvent_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_GetSelection }}; -// int GetSelection() const; // note : must override wxCommandEvent func since it's not virtual -static int LUACALL wxLua_wxBookCtrlBaseEvent_GetSelection(lua_State *L) -{ - // get this - wxBookCtrlBaseEvent * self = (wxBookCtrlBaseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBaseEvent); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_SetOldSelection[] = { &wxluatype_wxBookCtrlBaseEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBaseEvent_SetOldSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBaseEvent_SetOldSelection[1] = {{ wxLua_wxBookCtrlBaseEvent_SetOldSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_SetOldSelection }}; -// void SetOldSelection(int page); -static int LUACALL wxLua_wxBookCtrlBaseEvent_SetOldSelection(lua_State *L) -{ - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxBookCtrlBaseEvent * self = (wxBookCtrlBaseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBaseEvent); - // call SetOldSelection - self->SetOldSelection(page); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_SetSelection[] = { &wxluatype_wxBookCtrlBaseEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBaseEvent_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBaseEvent_SetSelection[1] = {{ wxLua_wxBookCtrlBaseEvent_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_SetSelection }}; -// void SetSelection(int page); -static int LUACALL wxLua_wxBookCtrlBaseEvent_SetSelection(lua_State *L) -{ - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxBookCtrlBaseEvent * self = (wxBookCtrlBaseEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBookCtrlBaseEvent); - // call SetSelection - self->SetSelection(page); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_delete[] = { &wxluatype_wxBookCtrlBaseEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBaseEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBookCtrlBaseEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBookCtrlBaseEvent_constructor[1] = {{ wxLua_wxBookCtrlBaseEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxBookCtrlBaseEvent_constructor }}; -// wxBookCtrlBaseEvent(wxEventType commandType = wxEVT_NULL, int winid = 0, int nSel = -1, int nOldSel = -1); -static int LUACALL wxLua_wxBookCtrlBaseEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int nOldSel = -1 - int nOldSel = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int nSel = -1 - int nSel = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int winid = 0 - int winid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxBookCtrlBaseEvent* returns = new wxBookCtrlBaseEvent(commandType, winid, nSel, nOldSel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBookCtrlBaseEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBookCtrlBaseEvent); - - return 1; -} - - - - -void wxLua_wxBookCtrlBaseEvent_delete_function(void** p) -{ - wxBookCtrlBaseEvent* o = (wxBookCtrlBaseEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBookCtrlBaseEvent_methods[] = { - { "GetOldSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBaseEvent_GetOldSelection, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBaseEvent_GetSelection, 1, NULL }, - { "SetOldSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBaseEvent_SetOldSelection, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBookCtrlBaseEvent_SetSelection, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxBookCtrlBaseEvent_delete, 1, NULL }, - { "wxBookCtrlBaseEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBookCtrlBaseEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBookCtrlBaseEvent_methodCount = sizeof(wxBookCtrlBaseEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxUSE_BOOKCTRL - - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK -// --------------------------------------------------------------------------- -// Bind class wxNotebook -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNotebook' -int wxluatype_wxNotebook = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebook_Create[] = { &wxluatype_wxNotebook, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxNotebook_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_Create[1] = {{ wxLua_wxNotebook_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxNotebook_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxNotebook"); -static int LUACALL wxLua_wxNotebook_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxNotebook" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxNotebook"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxNotebook * self = (wxNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebook); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebook_GetRowCount[] = { &wxluatype_wxNotebook, NULL }; -static int LUACALL wxLua_wxNotebook_GetRowCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_GetRowCount[1] = {{ wxLua_wxNotebook_GetRowCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNotebook_GetRowCount }}; -// int GetRowCount() const; -static int LUACALL wxLua_wxNotebook_GetRowCount(lua_State *L) -{ - // get this - wxNotebook * self = (wxNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebook); - // call GetRowCount - int returns = (self->GetRowCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebook_GetThemeBackgroundColour[] = { &wxluatype_wxNotebook, NULL }; -static int LUACALL wxLua_wxNotebook_GetThemeBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_GetThemeBackgroundColour[1] = {{ wxLua_wxNotebook_GetThemeBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNotebook_GetThemeBackgroundColour }}; -// wxColour GetThemeBackgroundColour() const; -static int LUACALL wxLua_wxNotebook_GetThemeBackgroundColour(lua_State *L) -{ - // get this - wxNotebook * self = (wxNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebook); - // call GetThemeBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetThemeBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - -#if (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebook_HitTest[] = { &wxluatype_wxNotebook, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxNotebook_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_HitTest[1] = {{ wxLua_wxNotebook_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNotebook_HitTest }}; -// %override wxLua_wxNotebook_HitTest -// int HitTest(const wxPoint& point, int* flags) -static int LUACALL wxLua_wxNotebook_HitTest(lua_State *L) -{ - // int& flags - long flags; - // const wxPoint& point - const wxPoint *point = (wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxNotebook *self = (wxNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebook); - // call HitTest - int returns = self->HitTest(*point, &flags); - // push the result number - lua_pushinteger(L, returns); - // push the result flags - lua_pushinteger(L, flags); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebook_SetPadding[] = { &wxluatype_wxNotebook, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxNotebook_SetPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_SetPadding[1] = {{ wxLua_wxNotebook_SetPadding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNotebook_SetPadding }}; -// void SetPadding(const wxSize& padding); -static int LUACALL wxLua_wxNotebook_SetPadding(lua_State *L) -{ - // const wxSize padding - const wxSize * padding = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxNotebook * self = (wxNotebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNotebook); - // call SetPadding - self->SetPadding(*padding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebook_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxNotebook_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_constructor1[1] = {{ wxLua_wxNotebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxNotebook_constructor1 }}; -// wxNotebook(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxNotebook"); -static int LUACALL wxLua_wxNotebook_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxNotebook" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxNotebook"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxNotebook* returns = new wxNotebook(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNotebook); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxNotebook_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_constructor[1] = {{ wxLua_wxNotebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxNotebook(); -static int LUACALL wxLua_wxNotebook_constructor(lua_State *L) -{ - // call constructor - wxNotebook* returns = new wxNotebook(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNotebook); - - return 1; -} - - - - -#if ((wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebook_constructor_overload[] = -{ - -#if (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxNotebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxNotebook_constructor1 }, -#endif // (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxNotebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxNotebook_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxNotebook_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - -void wxLua_wxNotebook_delete_function(void** p) -{ - wxNotebook* o = (wxNotebook*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNotebook_methods[] = { -#if (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotebook_Create, 1, NULL }, -#endif // (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - - { "GetRowCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotebook_GetRowCount, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - { "GetThemeBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotebook_GetThemeBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - -#if (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotebook_HitTest, 1, NULL }, - { "SetPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNotebook_SetPadding, 1, NULL }, -#endif // (wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - { "wxNotebook", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNotebook_constructor_overload, s_wxluafunc_wxLua_wxNotebook_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK) - - { 0, 0, 0, 0 }, -}; - -int wxNotebook_methodCount = sizeof(wxNotebook_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - - -#if wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK -// --------------------------------------------------------------------------- -// Bind class wxNotebookEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNotebookEvent' -int wxluatype_wxNotebookEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebookEvent_delete[] = { &wxluatype_wxNotebookEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebookEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxNotebookEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNotebookEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxNotebookEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNotebookEvent_constructor[1] = {{ wxLua_wxNotebookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxNotebookEvent_constructor }}; -// wxNotebookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1); -static int LUACALL wxLua_wxNotebookEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int oldSel = -1 - int oldSel = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int sel = -1 - int sel = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxNotebookEvent* returns = new wxNotebookEvent(eventType, id, sel, oldSel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxNotebookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNotebookEvent); - - return 1; -} - - - - -void wxLua_wxNotebookEvent_delete_function(void** p) -{ - wxNotebookEvent* o = (wxNotebookEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNotebookEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxNotebookEvent_delete, 1, NULL }, - { "wxNotebookEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNotebookEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxNotebookEvent_methodCount = sizeof(wxNotebookEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxUSE_NOTEBOOK - - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK -// --------------------------------------------------------------------------- -// Bind class wxListbook -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListbook' -int wxluatype_wxListbook = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListbook_Create[] = { &wxluatype_wxListbook, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListbook_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbook_Create[1] = {{ wxLua_wxListbook_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxListbook_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxListbook"); -static int LUACALL wxLua_wxListbook_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListbook" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxListbook"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxListbook * self = (wxListbook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListbook); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListbook_GetListView[] = { &wxluatype_wxListbook, NULL }; -static int LUACALL wxLua_wxListbook_GetListView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbook_GetListView[1] = {{ wxLua_wxListbook_GetListView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListbook_GetListView }}; -// wxListView* GetListView(); -static int LUACALL wxLua_wxListbook_GetListView(lua_State *L) -{ - // get this - wxListbook * self = (wxListbook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListbook); - // call GetListView - wxListView* returns = (wxListView*)self->GetListView(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListView); - - return 1; -} - -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListbook_IsVertical[] = { &wxluatype_wxListbook, NULL }; -static int LUACALL wxLua_wxListbook_IsVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbook_IsVertical[1] = {{ wxLua_wxListbook_IsVertical, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxListbook_IsVertical }}; -// !%wxchkver_2_8 bool IsVertical() const; // in wxBookCtrlBase in 2.8 -static int LUACALL wxLua_wxListbook_IsVertical(lua_State *L) -{ - // get this - wxListbook * self = (wxListbook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxListbook); - // call IsVertical - bool returns = (self->IsVertical()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxListbook_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxListbook_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbook_constructor1[1] = {{ wxLua_wxListbook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxListbook_constructor1 }}; -// wxListbook(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxListbook"); -static int LUACALL wxLua_wxListbook_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxListbook" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxListbook"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxListbook* returns = new wxListbook(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListbook); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxListbook_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbook_constructor[1] = {{ wxLua_wxListbook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxListbook(); -static int LUACALL wxLua_wxListbook_constructor(lua_State *L) -{ - // call constructor - wxListbook* returns = new wxListbook(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListbook); - - return 1; -} - - - - -#if ((wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbook_constructor_overload[] = -{ - -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxListbook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxListbook_constructor1 }, -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxListbook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxListbook_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxListbook_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - -void wxLua_wxListbook_delete_function(void** p) -{ - wxListbook* o = (wxListbook*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListbook_methods[] = { -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListbook_Create, 1, NULL }, -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - { "GetListView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListbook_GetListView, 1, NULL }, -#endif // (wxLUA_USE_wxListCtrl && wxUSE_LISTCTRL) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - { "IsVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxListbook_IsVertical, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - -#if ((wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - { "wxListbook", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListbook_constructor_overload, s_wxluafunc_wxLua_wxListbook_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK) - - { 0, 0, 0, 0 }, -}; - -int wxListbook_methodCount = sizeof(wxListbook_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK -// --------------------------------------------------------------------------- -// Bind class wxListbookEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxListbookEvent' -int wxluatype_wxListbookEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListbookEvent_delete[] = { &wxluatype_wxListbookEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbookEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxListbookEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxListbookEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxListbookEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxListbookEvent_constructor[1] = {{ wxLua_wxListbookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxListbookEvent_constructor }}; -// wxListbookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1); -static int LUACALL wxLua_wxListbookEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int oldSel = -1 - int oldSel = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int sel = -1 - int sel = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxListbookEvent* returns = new wxListbookEvent(eventType, id, sel, oldSel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxListbookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxListbookEvent); - - return 1; -} - - - - -void wxLua_wxListbookEvent_delete_function(void** p) -{ - wxListbookEvent* o = (wxListbookEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxListbookEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxListbookEvent_delete, 1, NULL }, - { "wxListbookEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxListbookEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxListbookEvent_methodCount = sizeof(wxListbookEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxListCtrl && wxUSE_LISTBOOK - - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK -// --------------------------------------------------------------------------- -// Bind class wxChoicebook -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxChoicebook' -int wxluatype_wxChoicebook = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoicebook_Create[] = { &wxluatype_wxChoicebook, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxChoicebook_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebook_Create[1] = {{ wxLua_wxChoicebook_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxChoicebook_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxChoicebook"); -static int LUACALL wxLua_wxChoicebook_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxChoicebook" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxChoicebook"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxChoicebook * self = (wxChoicebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChoicebook); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxChoice && wxUSE_CHOICE) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoicebook_GetChoiceCtrl[] = { &wxluatype_wxChoicebook, NULL }; -static int LUACALL wxLua_wxChoicebook_GetChoiceCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebook_GetChoiceCtrl[1] = {{ wxLua_wxChoicebook_GetChoiceCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxChoicebook_GetChoiceCtrl }}; -// wxChoice* GetChoiceCtrl() const; -static int LUACALL wxLua_wxChoicebook_GetChoiceCtrl(lua_State *L) -{ - // get this - wxChoicebook * self = (wxChoicebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChoicebook); - // call GetChoiceCtrl - wxChoice* returns = (wxChoice*)self->GetChoiceCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoice); - - return 1; -} - -#endif // (wxLUA_USE_wxChoice && wxUSE_CHOICE) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoicebook_IsVertical[] = { &wxluatype_wxChoicebook, NULL }; -static int LUACALL wxLua_wxChoicebook_IsVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebook_IsVertical[1] = {{ wxLua_wxChoicebook_IsVertical, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxChoicebook_IsVertical }}; -// !%wxchkver_2_8 bool IsVertical() const; // in wxBookCtrlBase in 2.8 -static int LUACALL wxLua_wxChoicebook_IsVertical(lua_State *L) -{ - // get this - wxChoicebook * self = (wxChoicebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxChoicebook); - // call IsVertical - bool returns = (self->IsVertical()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoicebook_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxChoicebook_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebook_constructor1[1] = {{ wxLua_wxChoicebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxChoicebook_constructor1 }}; -// wxChoicebook(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxChoicebook"); -static int LUACALL wxLua_wxChoicebook_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxChoicebook" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxChoicebook"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxChoicebook* returns = new wxChoicebook(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoicebook); - - return 1; -} - -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxChoicebook_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebook_constructor[1] = {{ wxLua_wxChoicebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxChoicebook(); -static int LUACALL wxLua_wxChoicebook_constructor(lua_State *L) -{ - // call constructor - wxChoicebook* returns = new wxChoicebook(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoicebook); - - return 1; -} - - - - -#if ((wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebook_constructor_overload[] = -{ - -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxChoicebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxChoicebook_constructor1 }, -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxChoicebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxChoicebook_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxChoicebook_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - -void wxLua_wxChoicebook_delete_function(void** p) -{ - wxChoicebook* o = (wxChoicebook*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxChoicebook_methods[] = { -#if (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChoicebook_Create, 1, NULL }, -#endif // (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect) - -#if (wxLUA_USE_wxChoice && wxUSE_CHOICE) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - { "GetChoiceCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChoicebook_GetChoiceCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxChoice && wxUSE_CHOICE) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - { "IsVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxChoicebook_IsVertical, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - -#if ((wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - { "wxChoicebook", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxChoicebook_constructor_overload, s_wxluafunc_wxLua_wxChoicebook_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK) - - { 0, 0, 0, 0 }, -}; - -int wxChoicebook_methodCount = sizeof(wxChoicebook_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - - -#if wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK -// --------------------------------------------------------------------------- -// Bind class wxChoicebookEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxChoicebookEvent' -int wxluatype_wxChoicebookEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoicebookEvent_delete[] = { &wxluatype_wxChoicebookEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebookEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxChoicebookEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxChoicebookEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxChoicebookEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxChoicebookEvent_constructor[1] = {{ wxLua_wxChoicebookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxChoicebookEvent_constructor }}; -// wxChoicebookEvent(wxEventType eventType = wxEVT_NULL, int id = 0, int sel = -1, int oldSel = -1); -static int LUACALL wxLua_wxChoicebookEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int oldSel = -1 - int oldSel = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // int sel = -1 - int sel = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType eventType = wxEVT_NULL - wxEventType eventType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxChoicebookEvent* returns = new wxChoicebookEvent(eventType, id, sel, oldSel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxChoicebookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoicebookEvent); - - return 1; -} - - - - -void wxLua_wxChoicebookEvent_delete_function(void** p) -{ - wxChoicebookEvent* o = (wxChoicebookEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxChoicebookEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxChoicebookEvent_delete, 1, NULL }, - { "wxChoicebookEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxChoicebookEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxChoicebookEvent_methodCount = sizeof(wxChoicebookEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxNotebook && wxLUA_USE_wxChoice && wxUSE_CHOICEBOOK - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook -// --------------------------------------------------------------------------- -// Bind class wxTreebook -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreebook' -int wxluatype_wxTreebook = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_AddPage[] = { &wxluatype_wxTreebook, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreebook_AddPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_AddPage[1] = {{ wxLua_wxTreebook_AddPage, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxTreebook_AddPage }}; -// virtual bool AddPage(wxWindow *page, const wxString& text, bool bSelect = false, int imageId = wxNOT_FOUND); -static int LUACALL wxLua_wxTreebook_AddPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = wxNOT_FOUND - int imageId = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxNOT_FOUND); - // bool bSelect = false - bool bSelect = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call AddPage - bool returns = (self->AddPage(page, text, bSelect, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_AddSubPage[] = { &wxluatype_wxTreebook, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreebook_AddSubPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_AddSubPage[1] = {{ wxLua_wxTreebook_AddSubPage, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxTreebook_AddSubPage }}; -// virtual bool AddSubPage(wxWindow *page, const wxString& text, bool bSelect = false, int imageId = wxNOT_FOUND); -static int LUACALL wxLua_wxTreebook_AddSubPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = wxNOT_FOUND - int imageId = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxNOT_FOUND); - // bool bSelect = false - bool bSelect = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call AddSubPage - bool returns = (self->AddSubPage(page, text, bSelect, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_CollapseNode[] = { &wxluatype_wxTreebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreebook_CollapseNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_CollapseNode[1] = {{ wxLua_wxTreebook_CollapseNode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreebook_CollapseNode }}; -// bool CollapseNode(size_t pos); -static int LUACALL wxLua_wxTreebook_CollapseNode(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call CollapseNode - bool returns = (self->CollapseNode(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_Create[] = { &wxluatype_wxTreebook, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreebook_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_Create[1] = {{ wxLua_wxTreebook_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxTreebook_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBK_DEFAULT,const wxString& name = "wxTreebook"); -static int LUACALL wxLua_wxTreebook_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTreebook" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxTreebook"))); - // long style = wxBK_DEFAULT - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxBK_DEFAULT); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_ExpandNode[] = { &wxluatype_wxTreebook, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTreebook_ExpandNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_ExpandNode[1] = {{ wxLua_wxTreebook_ExpandNode, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTreebook_ExpandNode }}; -// virtual bool ExpandNode(size_t pos, bool expand = true); -static int LUACALL wxLua_wxTreebook_ExpandNode(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool expand = true - bool expand = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call ExpandNode - bool returns = (self->ExpandNode(pos, expand)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_GetPageParent[] = { &wxluatype_wxTreebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreebook_GetPageParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_GetPageParent[1] = {{ wxLua_wxTreebook_GetPageParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreebook_GetPageParent }}; -// int GetPageParent(size_t pos) const; -static int LUACALL wxLua_wxTreebook_GetPageParent(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call GetPageParent - int returns = (self->GetPageParent(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_GetTreeCtrl[] = { &wxluatype_wxTreebook, NULL }; -static int LUACALL wxLua_wxTreebook_GetTreeCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_GetTreeCtrl[1] = {{ wxLua_wxTreebook_GetTreeCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTreebook_GetTreeCtrl }}; -// wxTreeCtrl* GetTreeCtrl() const; -static int LUACALL wxLua_wxTreebook_GetTreeCtrl(lua_State *L) -{ - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call GetTreeCtrl - wxTreeCtrl* returns = (wxTreeCtrl*)self->GetTreeCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreeCtrl); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_InsertPage[] = { &wxluatype_wxTreebook, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreebook_InsertPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_InsertPage[1] = {{ wxLua_wxTreebook_InsertPage, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxTreebook_InsertPage }}; -// virtual bool InsertPage(size_t pos, wxWindow *page, const wxString& text, bool bSelect = false, int imageId = wxNOT_FOUND); -static int LUACALL wxLua_wxTreebook_InsertPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = wxNOT_FOUND - int imageId = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxNOT_FOUND); - // bool bSelect = false - bool bSelect = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call InsertPage - bool returns = (self->InsertPage(pos, page, text, bSelect, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_InsertSubPage[] = { &wxluatype_wxTreebook, &wxluatype_TINTEGER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreebook_InsertSubPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_InsertSubPage[1] = {{ wxLua_wxTreebook_InsertSubPage, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxTreebook_InsertSubPage }}; -// virtual bool InsertSubPage(size_t pos, wxWindow *page, const wxString& text, bool bSelect = false, int imageId = wxNOT_FOUND); -static int LUACALL wxLua_wxTreebook_InsertSubPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int imageId = wxNOT_FOUND - int imageId = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxNOT_FOUND); - // bool bSelect = false - bool bSelect = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // wxWindow page - wxWindow * page = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call InsertSubPage - bool returns = (self->InsertSubPage(pos, page, text, bSelect, imageId)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_IsNodeExpanded[] = { &wxluatype_wxTreebook, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTreebook_IsNodeExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_IsNodeExpanded[1] = {{ wxLua_wxTreebook_IsNodeExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTreebook_IsNodeExpanded }}; -// virtual bool IsNodeExpanded(size_t pos) const; -static int LUACALL wxLua_wxTreebook_IsNodeExpanded(lua_State *L) -{ - // size_t pos - size_t pos = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxTreebook * self = (wxTreebook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebook); - // call IsNodeExpanded - bool returns = (self->IsNodeExpanded(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebook_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTreebook_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_constructor1[1] = {{ wxLua_wxTreebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxTreebook_constructor1 }}; -// wxTreebook(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxBK_DEFAULT, const wxString& name = "wxTreebook"); -static int LUACALL wxLua_wxTreebook_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTreebook" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxTreebook"))); - // long style = wxBK_DEFAULT - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxBK_DEFAULT); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTreebook* returns = new wxTreebook(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreebook); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxTreebook_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_constructor[1] = {{ wxLua_wxTreebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTreebook(); -static int LUACALL wxLua_wxTreebook_constructor(lua_State *L) -{ - // call constructor - wxTreebook* returns = new wxTreebook(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreebook); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebook_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxTreebook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxTreebook_constructor1 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxTreebook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTreebook_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTreebook_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) - -void wxLua_wxTreebook_delete_function(void** p) -{ - wxTreebook* o = (wxTreebook*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreebook_methods[] = { - { "AddPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_AddPage, 1, NULL }, - { "AddSubPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_AddSubPage, 1, NULL }, - { "CollapseNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_CollapseNode, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_Create, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect) - - { "ExpandNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_ExpandNode, 1, NULL }, - { "GetPageParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_GetPageParent, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - { "GetTreeCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_GetTreeCtrl, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxTreeCtrl && wxUSE_TREECTRL) - - { "InsertPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_InsertPage, 1, NULL }, - { "InsertSubPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_InsertSubPage, 1, NULL }, - { "IsNodeExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTreebook_IsNodeExpanded, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) - { "wxTreebook", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreebook_constructor_overload, s_wxluafunc_wxLua_wxTreebook_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) - - { 0, 0, 0, 0 }, -}; - -int wxTreebook_methodCount = sizeof(wxTreebook_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook -// --------------------------------------------------------------------------- -// Bind class wxTreebookEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTreebookEvent' -int wxluatype_wxTreebookEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebookEvent_delete[] = { &wxluatype_wxTreebookEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebookEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTreebookEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebookEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTreebookEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebookEvent_constructor1[1] = {{ wxLua_wxTreebookEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxTreebookEvent_constructor1 }}; -// wxTreebookEvent(wxEventType commandType = wxEVT_NULL, int id = 0, int nSel = wxNOT_FOUND, int nOldSel = wxNOT_FOUND); -static int LUACALL wxLua_wxTreebookEvent_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int nOldSel = wxNOT_FOUND - int nOldSel = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxNOT_FOUND); - // int nSel = wxNOT_FOUND - int nSel = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxNOT_FOUND); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxTreebookEvent* returns = new wxTreebookEvent(commandType, id, nSel, nOldSel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreebookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreebookEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTreebookEvent_constructor[] = { &wxluatype_wxTreebookEvent, NULL }; -static int LUACALL wxLua_wxTreebookEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebookEvent_constructor[1] = {{ wxLua_wxTreebookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTreebookEvent_constructor }}; -// wxTreebookEvent(const wxTreebookEvent& event); -static int LUACALL wxLua_wxTreebookEvent_constructor(lua_State *L) -{ - // const wxTreebookEvent event - const wxTreebookEvent * event = (const wxTreebookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTreebookEvent); - // call constructor - wxTreebookEvent* returns = new wxTreebookEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTreebookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTreebookEvent); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTreebookEvent_constructor_overload[] = -{ - { wxLua_wxTreebookEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxTreebookEvent_constructor1 }, - { wxLua_wxTreebookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTreebookEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxTreebookEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTreebookEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) - -void wxLua_wxTreebookEvent_delete_function(void** p) -{ - wxTreebookEvent* o = (wxTreebookEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTreebookEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTreebookEvent_delete, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) - { "wxTreebookEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTreebookEvent_constructor_overload, s_wxluafunc_wxLua_wxTreebookEvent_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook) - - { 0, 0, 0, 0 }, -}; - -int wxTreebookEvent_methodCount = sizeof(wxTreebookEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TREEBOOK && wxLUA_USE_wxTreebook - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook -// --------------------------------------------------------------------------- -// Bind class wxToolbook -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolbook' -int wxluatype_wxToolbook = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbook_Create[] = { &wxluatype_wxToolbook, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolbook_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbook_Create[1] = {{ wxLua_wxToolbook_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxToolbook_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxToolbook"); -static int LUACALL wxLua_wxToolbook_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToolbook" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxToolbook"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxToolbook * self = (wxToolbook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolbook); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbook_GetToolBar[] = { &wxluatype_wxToolbook, NULL }; -static int LUACALL wxLua_wxToolbook_GetToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbook_GetToolBar[1] = {{ wxLua_wxToolbook_GetToolBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolbook_GetToolBar }}; -// wxToolBarBase* GetToolBar() const; -static int LUACALL wxLua_wxToolbook_GetToolBar(lua_State *L) -{ - // get this - wxToolbook * self = (wxToolbook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolbook); - // call GetToolBar - wxToolBarBase* returns = (wxToolBarBase*)self->GetToolBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBarBase); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbook_Realize[] = { &wxluatype_wxToolbook, NULL }; -static int LUACALL wxLua_wxToolbook_Realize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbook_Realize[1] = {{ wxLua_wxToolbook_Realize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxToolbook_Realize }}; -// void Realize(); -static int LUACALL wxLua_wxToolbook_Realize(lua_State *L) -{ - // get this - wxToolbook * self = (wxToolbook *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolbook); - // call Realize - self->Realize(); - - return 0; -} - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbook_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxToolbook_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbook_constructor1[1] = {{ wxLua_wxToolbook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxToolbook_constructor1 }}; -// wxToolbook(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxToolbook"); -static int LUACALL wxLua_wxToolbook_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxToolbook" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxToolbook"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxToolbook* returns = new wxToolbook(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolbook); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxToolbook_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbook_constructor[1] = {{ wxLua_wxToolbook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxToolbook(); -static int LUACALL wxLua_wxToolbook_constructor(lua_State *L) -{ - // call constructor - wxToolbook* returns = new wxToolbook(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolbook); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbook_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxToolbook_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxToolbook_constructor1 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxToolbook_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxToolbook_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxToolbook_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) - -void wxLua_wxToolbook_delete_function(void** p) -{ - wxToolbook* o = (wxToolbook*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolbook_methods[] = { -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolbook_Create, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxToolbar) - { "GetToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolbook_GetToolBar, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxToolbar) - - { "Realize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxToolbook_Realize, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) - { "wxToolbook", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxToolbook_constructor_overload, s_wxluafunc_wxLua_wxToolbook_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) && (wxLUA_USE_wxPointSizeRect))||(wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) - - { 0, 0, 0, 0 }, -}; - -int wxToolbook_methodCount = sizeof(wxToolbook_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - - -#if wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook -// --------------------------------------------------------------------------- -// Bind class wxToolbookEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxToolbookEvent' -int wxluatype_wxToolbookEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbookEvent_delete[] = { &wxluatype_wxToolbookEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbookEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxToolbookEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbookEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxToolbookEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbookEvent_constructor1[1] = {{ wxLua_wxToolbookEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxToolbookEvent_constructor1 }}; -// wxToolbookEvent(wxEventType commandType = wxEVT_NULL, int id = 0, int nSel = wxNOT_FOUND, int nOldSel = wxNOT_FOUND); -static int LUACALL wxLua_wxToolbookEvent_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int nOldSel = wxNOT_FOUND - int nOldSel = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxNOT_FOUND); - // int nSel = wxNOT_FOUND - int nSel = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxNOT_FOUND); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxToolbookEvent* returns = new wxToolbookEvent(commandType, id, nSel, nOldSel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxToolbookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolbookEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxToolbookEvent_constructor[] = { &wxluatype_wxToolbookEvent, NULL }; -static int LUACALL wxLua_wxToolbookEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbookEvent_constructor[1] = {{ wxLua_wxToolbookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxToolbookEvent_constructor }}; -// wxToolbookEvent(const wxToolbookEvent& event); -static int LUACALL wxLua_wxToolbookEvent_constructor(lua_State *L) -{ - // const wxToolbookEvent event - const wxToolbookEvent * event = (const wxToolbookEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxToolbookEvent); - // call constructor - wxToolbookEvent* returns = new wxToolbookEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxToolbookEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolbookEvent); - - return 1; -} - - - - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxToolbookEvent_constructor_overload[] = -{ - { wxLua_wxToolbookEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 4, s_wxluatypeArray_wxLua_wxToolbookEvent_constructor1 }, - { wxLua_wxToolbookEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxToolbookEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxToolbookEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxToolbookEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) - -void wxLua_wxToolbookEvent_delete_function(void** p) -{ - wxToolbookEvent* o = (wxToolbookEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxToolbookEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxToolbookEvent_delete, 1, NULL }, - -#if (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) - { "wxToolbookEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxToolbookEvent_constructor_overload, s_wxluafunc_wxLua_wxToolbookEvent_constructor_overload_count, 0 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook) - - { 0, 0, 0, 0 }, -}; - -int wxToolbookEvent_methodCount = sizeof(wxToolbookEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxUSE_TOOLBOOK && wxLUA_USE_wxToolbook - - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG -// --------------------------------------------------------------------------- -// Bind class wxTabCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTabCtrl' -int wxluatype_wxTabCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_DeleteAllItems[] = { &wxluatype_wxTabCtrl, NULL }; -static int LUACALL wxLua_wxTabCtrl_DeleteAllItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_DeleteAllItems[1] = {{ wxLua_wxTabCtrl_DeleteAllItems, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTabCtrl_DeleteAllItems }}; -// bool DeleteAllItems(); -static int LUACALL wxLua_wxTabCtrl_DeleteAllItems(lua_State *L) -{ - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call DeleteAllItems - bool returns = (self->DeleteAllItems()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_DeleteItem[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabCtrl_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_DeleteItem[1] = {{ wxLua_wxTabCtrl_DeleteItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_DeleteItem }}; -// bool DeleteItem(int item); -static int LUACALL wxLua_wxTabCtrl_DeleteItem(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call DeleteItem - bool returns = (self->DeleteItem(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetCurFocus[] = { &wxluatype_wxTabCtrl, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetCurFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetCurFocus[1] = {{ wxLua_wxTabCtrl_GetCurFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTabCtrl_GetCurFocus }}; -// int GetCurFocus() const; -static int LUACALL wxLua_wxTabCtrl_GetCurFocus(lua_State *L) -{ - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetCurFocus - int returns = (self->GetCurFocus()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetImageList[] = { &wxluatype_wxTabCtrl, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetImageList[1] = {{ wxLua_wxTabCtrl_GetImageList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTabCtrl_GetImageList }}; -// wxImageList* GetImageList() const; -static int LUACALL wxLua_wxTabCtrl_GetImageList(lua_State *L) -{ - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetImageList - wxImageList* returns = (wxImageList*)self->GetImageList(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageList); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetItemCount[] = { &wxluatype_wxTabCtrl, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetItemCount[1] = {{ wxLua_wxTabCtrl_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTabCtrl_GetItemCount }}; -// int GetItemCount() const; -static int LUACALL wxLua_wxTabCtrl_GetItemCount(lua_State *L) -{ - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetItemCount - int returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetItemData[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetItemData[1] = {{ wxLua_wxTabCtrl_GetItemData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_GetItemData }}; -// %override wxLua_wxTabCtrl_GetItemData -// wxObject * GetItemData(int item) const -static int LUACALL wxLua_wxTabCtrl_GetItemData(lua_State *L) -{ - // int item - int item = (int)wxlua_getintegertype(L, 2); - // get this - wxTabCtrl *self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetItemData - wxObject *returns = (wxObject *) self->GetItemData(item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxObject); - // return the number of parameters - return 1; -} - - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetItemImage[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetItemImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetItemImage[1] = {{ wxLua_wxTabCtrl_GetItemImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_GetItemImage }}; -// int GetItemImage(int item) const; -static int LUACALL wxLua_wxTabCtrl_GetItemImage(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetItemImage - int returns = (self->GetItemImage(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetItemRect[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetItemRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetItemRect[1] = {{ wxLua_wxTabCtrl_GetItemRect, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTabCtrl_GetItemRect }}; -// bool GetItemRect(int item, wxRect& rect) const; -static int LUACALL wxLua_wxTabCtrl_GetItemRect(lua_State *L) -{ - // wxRect rect - wxRect * rect = (wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetItemRect - bool returns = (self->GetItemRect(item, *rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetItemText[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetItemText[1] = {{ wxLua_wxTabCtrl_GetItemText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_GetItemText }}; -// wxString GetItemText(int item) const; -static int LUACALL wxLua_wxTabCtrl_GetItemText(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetItemText - wxString returns = (self->GetItemText(item)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetRowCount[] = { &wxluatype_wxTabCtrl, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetRowCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetRowCount[1] = {{ wxLua_wxTabCtrl_GetRowCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTabCtrl_GetRowCount }}; -// int GetRowCount() const; -static int LUACALL wxLua_wxTabCtrl_GetRowCount(lua_State *L) -{ - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetRowCount - int returns = (self->GetRowCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_GetSelection[] = { &wxluatype_wxTabCtrl, NULL }; -static int LUACALL wxLua_wxTabCtrl_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_GetSelection[1] = {{ wxLua_wxTabCtrl_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTabCtrl_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxTabCtrl_GetSelection(lua_State *L) -{ - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_HitTest[] = { &wxluatype_wxTabCtrl, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxTabCtrl_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_HitTest[1] = {{ wxLua_wxTabCtrl_HitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTabCtrl_HitTest }}; -// %override wxLua_wxTabCtrl_HitTest -// int HitTest(const wxPoint& pt, long& flags) -static int LUACALL wxLua_wxTabCtrl_HitTest(lua_State *L) -{ - // long& flags - long flags; - // const wxPoint& pt - const wxPoint *pt = (wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxTabCtrl *self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call HitTest - int returns = self->HitTest(*pt, flags); - // push the result number - lua_pushinteger(L, returns); - // push the result flags - lua_pushinteger(L, flags); - // return the number of parameters - return 2; -} - - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_InsertItem[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxTabCtrl_InsertItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_InsertItem[1] = {{ wxLua_wxTabCtrl_InsertItem, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxTabCtrl_InsertItem }}; -// void InsertItem(int item, const wxString& text, int imageId = -1, wxObject *clientData = NULL); -static int LUACALL wxLua_wxTabCtrl_InsertItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxObject clientData = NULL - wxObject * clientData = (argCount >= 5 ? (wxObject *)wxluaT_getuserdatatype(L, 5, wxluatype_wxObject) : NULL); - // int imageId = -1 - int imageId = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call InsertItem - self->InsertItem(item, text, imageId, clientData); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetImageList[] = { &wxluatype_wxTabCtrl, &wxluatype_wxImageList, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetImageList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetImageList[1] = {{ wxLua_wxTabCtrl_SetImageList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_SetImageList }}; -// void SetImageList(wxImageList* imageList); -static int LUACALL wxLua_wxTabCtrl_SetImageList(lua_State *L) -{ - // wxImageList imageList - wxImageList * imageList = (wxImageList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImageList); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetImageList - self->SetImageList(imageList); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetItemData[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetItemData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetItemData[1] = {{ wxLua_wxTabCtrl_SetItemData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTabCtrl_SetItemData }}; -// bool SetItemData(int item, wxObject * data); -static int LUACALL wxLua_wxTabCtrl_SetItemData(lua_State *L) -{ - // wxObject data - wxObject * data = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetItemData - bool returns = (self->SetItemData(item, data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetItemImage[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetItemImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetItemImage[1] = {{ wxLua_wxTabCtrl_SetItemImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTabCtrl_SetItemImage }}; -// bool SetItemImage(int item, int image); -static int LUACALL wxLua_wxTabCtrl_SetItemImage(lua_State *L) -{ - // int image - int image = (int)wxlua_getnumbertype(L, 3); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetItemImage - bool returns = (self->SetItemImage(item, image)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetItemSize[] = { &wxluatype_wxTabCtrl, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetItemSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetItemSize[1] = {{ wxLua_wxTabCtrl_SetItemSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_SetItemSize }}; -// void SetItemSize(const wxSize& size); -static int LUACALL wxLua_wxTabCtrl_SetItemSize(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetItemSize - self->SetItemSize(*size); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetItemText[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetItemText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetItemText[1] = {{ wxLua_wxTabCtrl_SetItemText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTabCtrl_SetItemText }}; -// bool SetItemText(int item, const wxString& text); -static int LUACALL wxLua_wxTabCtrl_SetItemText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetItemText - bool returns = (self->SetItemText(item, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetPadding[] = { &wxluatype_wxTabCtrl, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetPadding[1] = {{ wxLua_wxTabCtrl_SetPadding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_SetPadding }}; -// void SetPadding(const wxSize& padding); -static int LUACALL wxLua_wxTabCtrl_SetPadding(lua_State *L) -{ - // const wxSize padding - const wxSize * padding = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetPadding - self->SetPadding(*padding); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_SetSelection[] = { &wxluatype_wxTabCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabCtrl_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_SetSelection[1] = {{ wxLua_wxTabCtrl_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTabCtrl_SetSelection }}; -// int SetSelection(int item); -static int LUACALL wxLua_wxTabCtrl_SetSelection(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxTabCtrl * self = (wxTabCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTabCtrl); - // call SetSelection - int returns = (self->SetSelection(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabCtrl_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTabCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabCtrl_constructor[1] = {{ wxLua_wxTabCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxTabCtrl_constructor }}; -// wxTabCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxTabCtrl"); -static int LUACALL wxLua_wxTabCtrl_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxTabCtrl" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxTabCtrl"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxTabCtrl* returns = new wxTabCtrl(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTabCtrl); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxTabCtrl_delete_function(void** p) -{ - wxTabCtrl* o = (wxTabCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTabCtrl_methods[] = { - { "DeleteAllItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_DeleteAllItems, 1, NULL }, - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_DeleteItem, 1, NULL }, - { "GetCurFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetCurFocus, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) - { "GetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetImageList, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) - - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetItemCount, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - { "GetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetItemData, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - - { "GetItemImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetItemImage, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - { "GetItemRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetItemRect, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - - { "GetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetItemText, 1, NULL }, - { "GetRowCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetRowCount, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_GetSelection, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_HitTest, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_InsertItem, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) - { "SetImageList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetImageList, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxImageList) - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - { "SetItemData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetItemData, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxObject) - - { "SetItemImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetItemImage, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - { "SetItemSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetItemSize, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - - { "SetItemText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetItemText, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - { "SetPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetPadding, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTabCtrl_SetSelection, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - { "wxTabCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTabCtrl_constructor, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxTabCtrl_methodCount = sizeof(wxTabCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - - -#if wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG -// --------------------------------------------------------------------------- -// Bind class wxTabEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTabEvent' -int wxluatype_wxTabEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabEvent_delete[] = { &wxluatype_wxTabEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTabEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTabEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTabEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTabEvent_constructor[1] = {{ wxLua_wxTabEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxTabEvent_constructor }}; -// wxTabEvent(wxEventType commandType = 0, int id = 0); -static int LUACALL wxLua_wxTabEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = 0 - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxTabEvent* returns = new wxTabEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTabEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTabEvent); - - return 1; -} - - - - -void wxLua_wxTabEvent_delete_function(void** p) -{ - wxTabEvent* o = (wxTabEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTabEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTabEvent_delete, 1, NULL }, - { "wxTabEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTabEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTabEvent_methodCount = sizeof(wxTabEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,4,0) && defined(__WXMSW__) && wxLUA_USE_wxTabCtrl && wxUSE_TAB_DIALOG - - -#if wxLUA_USE_wxScrolledWindow -// --------------------------------------------------------------------------- -// Bind class wxScrollHelper -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxScrollHelper' -int wxluatype_wxScrollHelper = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_AdjustScrollbars[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_AdjustScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_AdjustScrollbars[1] = {{ wxLua_wxScrollHelper_AdjustScrollbars, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_AdjustScrollbars }}; -// virtual void AdjustScrollbars(); -static int LUACALL wxLua_wxScrollHelper_AdjustScrollbars(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call AdjustScrollbars - self->AdjustScrollbars(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_CalcScrollInc[] = { &wxluatype_wxScrollHelper, &wxluatype_wxScrollWinEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_CalcScrollInc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_CalcScrollInc[1] = {{ wxLua_wxScrollHelper_CalcScrollInc, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_CalcScrollInc }}; -// int CalcScrollInc(wxScrollWinEvent& event); -static int LUACALL wxLua_wxScrollHelper_CalcScrollInc(lua_State *L) -{ - // wxScrollWinEvent event - wxScrollWinEvent * event = (wxScrollWinEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxScrollWinEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call CalcScrollInc - int returns = (self->CalcScrollInc(*event)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_CalcScrolledPosition[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_CalcScrolledPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_CalcScrolledPosition[1] = {{ wxLua_wxScrollHelper_CalcScrolledPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_CalcScrolledPosition }}; -// %override wxLua_wxScrollHelper_CalcScrolledPosition -// void CalcScrolledPosition(int x, int y, int *xx, int *yy) const -static int LUACALL wxLua_wxScrollHelper_CalcScrolledPosition(lua_State *L) -{ - int yy; - int xx; - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper *self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call CalcScrolledPosition - self->CalcScrolledPosition(x, y, &xx, &yy); - lua_pushinteger(L, xx); - lua_pushinteger(L, yy); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_CalcUnscrolledPosition[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_CalcUnscrolledPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_CalcUnscrolledPosition[1] = {{ wxLua_wxScrollHelper_CalcUnscrolledPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_CalcUnscrolledPosition }}; -// %override wxLua_wxScrollHelper_CalcUnscrolledPosition -// void CalcUnscrolledPosition(int x, int y, int *xx, int *yy) const -static int LUACALL wxLua_wxScrollHelper_CalcUnscrolledPosition(lua_State *L) -{ - int yy; - int xx; - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper *self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call CalcUnscrolledPosition - self->CalcUnscrolledPosition(x, y, &xx, &yy); - lua_pushinteger(L, xx); - lua_pushinteger(L, yy); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_DisableKeyboardScrolling[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_DisableKeyboardScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_DisableKeyboardScrolling[1] = {{ wxLua_wxScrollHelper_DisableKeyboardScrolling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_DisableKeyboardScrolling }}; -// void DisableKeyboardScrolling(); -static int LUACALL wxLua_wxScrollHelper_DisableKeyboardScrolling(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call DisableKeyboardScrolling - self->DisableKeyboardScrolling(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_DoPrepareDC[] = { &wxluatype_wxScrollHelper, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxScrollHelper_DoPrepareDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_DoPrepareDC[1] = {{ wxLua_wxScrollHelper_DoPrepareDC, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_DoPrepareDC }}; -// virtual void DoPrepareDC(wxDC& dc); -static int LUACALL wxLua_wxScrollHelper_DoPrepareDC(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call DoPrepareDC - self->DoPrepareDC(*dc); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_EnableScrolling[] = { &wxluatype_wxScrollHelper, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxScrollHelper_EnableScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_EnableScrolling[1] = {{ wxLua_wxScrollHelper_EnableScrolling, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_EnableScrolling }}; -// virtual void EnableScrolling(bool x_scrolling, bool y_scrolling); -static int LUACALL wxLua_wxScrollHelper_EnableScrolling(lua_State *L) -{ - // bool y_scrolling - bool y_scrolling = wxlua_getbooleantype(L, 3); - // bool x_scrolling - bool x_scrolling = wxlua_getbooleantype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call EnableScrolling - self->EnableScrolling(x_scrolling, y_scrolling); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetScaleX[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetScaleX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetScaleX[1] = {{ wxLua_wxScrollHelper_GetScaleX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_GetScaleX }}; -// double GetScaleX() const; -static int LUACALL wxLua_wxScrollHelper_GetScaleX(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetScaleX - double returns = (self->GetScaleX()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetScaleY[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetScaleY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetScaleY[1] = {{ wxLua_wxScrollHelper_GetScaleY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_GetScaleY }}; -// double GetScaleY() const; -static int LUACALL wxLua_wxScrollHelper_GetScaleY(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetScaleY - double returns = (self->GetScaleY()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetScrollLines[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetScrollLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetScrollLines[1] = {{ wxLua_wxScrollHelper_GetScrollLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_GetScrollLines }}; -// int GetScrollLines( int orient ) const; -static int LUACALL wxLua_wxScrollHelper_GetScrollLines(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetScrollLines - int returns = (self->GetScrollLines(orient)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetScrollPageSize[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetScrollPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetScrollPageSize[1] = {{ wxLua_wxScrollHelper_GetScrollPageSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_GetScrollPageSize }}; -// int GetScrollPageSize(int orient) const; -static int LUACALL wxLua_wxScrollHelper_GetScrollPageSize(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetScrollPageSize - int returns = (self->GetScrollPageSize(orient)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetScrollPixelsPerUnit[] = { &wxluatype_wxScrollHelper, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetScrollPixelsPerUnit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetScrollPixelsPerUnit[1] = {{ wxLua_wxScrollHelper_GetScrollPixelsPerUnit, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_GetScrollPixelsPerUnit }}; -// %override wxLua_wxScrollHelper_GetScrollPixelsPerUnit -// void GetScrollPixelsPerUnit(int* xUnit, int* yUnit) const -static int LUACALL wxLua_wxScrollHelper_GetScrollPixelsPerUnit(lua_State *L) -{ - int yUnit; - int xUnit; - // get this - wxScrollHelper *self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetScrollPixelsPerUnit - self->GetScrollPixelsPerUnit(&xUnit, &yUnit); - lua_pushinteger(L, xUnit); - lua_pushinteger(L, yUnit); - // return the number of parameters - return 2; -} - - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetTargetRect[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetTargetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetTargetRect[1] = {{ wxLua_wxScrollHelper_GetTargetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_GetTargetRect }}; -// wxRect GetTargetRect() const; -static int LUACALL wxLua_wxScrollHelper_GetTargetRect(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetTargetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetTargetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetTargetWindow[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetTargetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetTargetWindow[1] = {{ wxLua_wxScrollHelper_GetTargetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_GetTargetWindow }}; -// wxWindow *GetTargetWindow() const; -static int LUACALL wxLua_wxScrollHelper_GetTargetWindow(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetTargetWindow - wxWindow* returns = (wxWindow*)self->GetTargetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_GetViewStart[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_GetViewStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_GetViewStart[1] = {{ wxLua_wxScrollHelper_GetViewStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_GetViewStart }}; -// %override wxLua_wxScrollHelper_GetViewStart -// void GetViewStart(int* x, int* y) const -static int LUACALL wxLua_wxScrollHelper_GetViewStart(lua_State *L) -{ - int y; - int x; - // get this - wxScrollHelper *self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call GetViewStart - self->GetViewStart(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnChar[] = { &wxluatype_wxScrollHelper, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_HandleOnChar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_HandleOnChar[1] = {{ wxLua_wxScrollHelper_HandleOnChar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnChar }}; -// void HandleOnChar(wxKeyEvent& event); -static int LUACALL wxLua_wxScrollHelper_HandleOnChar(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call HandleOnChar - self->HandleOnChar(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnMouseEnter[] = { &wxluatype_wxScrollHelper, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_HandleOnMouseEnter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_HandleOnMouseEnter[1] = {{ wxLua_wxScrollHelper_HandleOnMouseEnter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnMouseEnter }}; -// void HandleOnMouseEnter(wxMouseEvent& event); -static int LUACALL wxLua_wxScrollHelper_HandleOnMouseEnter(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call HandleOnMouseEnter - self->HandleOnMouseEnter(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnMouseLeave[] = { &wxluatype_wxScrollHelper, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_HandleOnMouseLeave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_HandleOnMouseLeave[1] = {{ wxLua_wxScrollHelper_HandleOnMouseLeave, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnMouseLeave }}; -// void HandleOnMouseLeave(wxMouseEvent& event); -static int LUACALL wxLua_wxScrollHelper_HandleOnMouseLeave(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call HandleOnMouseLeave - self->HandleOnMouseLeave(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnPaint[] = { &wxluatype_wxScrollHelper, &wxluatype_wxPaintEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_HandleOnPaint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_HandleOnPaint[1] = {{ wxLua_wxScrollHelper_HandleOnPaint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnPaint }}; -// void HandleOnPaint(wxPaintEvent& event); -static int LUACALL wxLua_wxScrollHelper_HandleOnPaint(lua_State *L) -{ - // wxPaintEvent event - wxPaintEvent * event = (wxPaintEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPaintEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call HandleOnPaint - self->HandleOnPaint(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnScroll[] = { &wxluatype_wxScrollHelper, &wxluatype_wxScrollWinEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_HandleOnScroll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_HandleOnScroll[1] = {{ wxLua_wxScrollHelper_HandleOnScroll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnScroll }}; -// void HandleOnScroll(wxScrollWinEvent& event); -static int LUACALL wxLua_wxScrollHelper_HandleOnScroll(lua_State *L) -{ - // wxScrollWinEvent event - wxScrollWinEvent * event = (wxScrollWinEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxScrollWinEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call HandleOnScroll - self->HandleOnScroll(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnSize[] = { &wxluatype_wxScrollHelper, &wxluatype_wxSizeEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_HandleOnSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_HandleOnSize[1] = {{ wxLua_wxScrollHelper_HandleOnSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_HandleOnSize }}; -// void HandleOnSize(wxSizeEvent& event); -static int LUACALL wxLua_wxScrollHelper_HandleOnSize(lua_State *L) -{ - // wxSizeEvent event - wxSizeEvent * event = (wxSizeEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizeEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call HandleOnSize - self->HandleOnSize(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_IsAutoScrolling[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_IsAutoScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_IsAutoScrolling[1] = {{ wxLua_wxScrollHelper_IsAutoScrolling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_IsAutoScrolling }}; -// bool IsAutoScrolling() const; -static int LUACALL wxLua_wxScrollHelper_IsAutoScrolling(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call IsAutoScrolling - bool returns = (self->IsAutoScrolling()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_IsScrollbarShown[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_IsScrollbarShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_IsScrollbarShown[1] = {{ wxLua_wxScrollHelper_IsScrollbarShown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_IsScrollbarShown }}; -// virtual bool IsScrollbarShown(int orient) const; -static int LUACALL wxLua_wxScrollHelper_IsScrollbarShown(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call IsScrollbarShown - bool returns = (self->IsScrollbarShown(orient)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_OnDraw[] = { &wxluatype_wxScrollHelper, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxScrollHelper_OnDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_OnDraw[1] = {{ wxLua_wxScrollHelper_OnDraw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_OnDraw }}; -// virtual void OnDraw(wxDC& dc); -static int LUACALL wxLua_wxScrollHelper_OnDraw(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call OnDraw - self->OnDraw(*dc); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_Scroll1[] = { &wxluatype_wxScrollHelper, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxScrollHelper_Scroll1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_Scroll1[1] = {{ wxLua_wxScrollHelper_Scroll1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_Scroll1 }}; -// virtual void Scroll(const wxPoint& pt); -static int LUACALL wxLua_wxScrollHelper_Scroll1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call Scroll - self->Scroll(*pt); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_Scroll[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_Scroll(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_Scroll[1] = {{ wxLua_wxScrollHelper_Scroll, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_Scroll }}; -// virtual void Scroll(int x, int y); -static int LUACALL wxLua_wxScrollHelper_Scroll(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call Scroll - self->Scroll(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SendAutoScrollEvents[] = { &wxluatype_wxScrollHelper, &wxluatype_wxScrollWinEvent, NULL }; -static int LUACALL wxLua_wxScrollHelper_SendAutoScrollEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SendAutoScrollEvents[1] = {{ wxLua_wxScrollHelper_SendAutoScrollEvents, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_SendAutoScrollEvents }}; -// virtual bool SendAutoScrollEvents(wxScrollWinEvent& event) const; -static int LUACALL wxLua_wxScrollHelper_SendAutoScrollEvents(lua_State *L) -{ - // wxScrollWinEvent event - wxScrollWinEvent * event = (wxScrollWinEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxScrollWinEvent); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SendAutoScrollEvents - bool returns = (self->SendAutoScrollEvents(*event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SetScale[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_SetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SetScale[1] = {{ wxLua_wxScrollHelper_SetScale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_SetScale }}; -// void SetScale(double xs, double ys); -static int LUACALL wxLua_wxScrollHelper_SetScale(lua_State *L) -{ - // double ys - double ys = (double)wxlua_getnumbertype(L, 3); - // double xs - double xs = (double)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SetScale - self->SetScale(xs, ys); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SetScrollPageSize[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_SetScrollPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SetScrollPageSize[1] = {{ wxLua_wxScrollHelper_SetScrollPageSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_SetScrollPageSize }}; -// void SetScrollPageSize(int orient, int pageSize); -static int LUACALL wxLua_wxScrollHelper_SetScrollPageSize(lua_State *L) -{ - // int pageSize - int pageSize = (int)wxlua_getnumbertype(L, 3); - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SetScrollPageSize - self->SetScrollPageSize(orient, pageSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SetScrollRate[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrollHelper_SetScrollRate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SetScrollRate[1] = {{ wxLua_wxScrollHelper_SetScrollRate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_SetScrollRate }}; -// void SetScrollRate( int xstep, int ystep ); -static int LUACALL wxLua_wxScrollHelper_SetScrollRate(lua_State *L) -{ - // int ystep - int ystep = (int)wxlua_getnumbertype(L, 3); - // int xstep - int xstep = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SetScrollRate - self->SetScrollRate(xstep, ystep); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SetScrollbars[] = { &wxluatype_wxScrollHelper, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxScrollHelper_SetScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SetScrollbars[1] = {{ wxLua_wxScrollHelper_SetScrollbars, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxScrollHelper_SetScrollbars }}; -// virtual void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos = 0, int yPos = 0, bool noRefresh = false ); -static int LUACALL wxLua_wxScrollHelper_SetScrollbars(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noRefresh = false - bool noRefresh = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : false); - // int yPos = 0 - int yPos = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // int xPos = 0 - int xPos = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int noUnitsY - int noUnitsY = (int)wxlua_getnumbertype(L, 5); - // int noUnitsX - int noUnitsX = (int)wxlua_getnumbertype(L, 4); - // int pixelsPerUnitY - int pixelsPerUnitY = (int)wxlua_getnumbertype(L, 3); - // int pixelsPerUnitX - int pixelsPerUnitX = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SetScrollbars - self->SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUnitsX, noUnitsY, xPos, yPos, noRefresh); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SetTargetRect[] = { &wxluatype_wxScrollHelper, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxScrollHelper_SetTargetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SetTargetRect[1] = {{ wxLua_wxScrollHelper_SetTargetRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_SetTargetRect }}; -// void SetTargetRect(const wxRect& rect); -static int LUACALL wxLua_wxScrollHelper_SetTargetRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SetTargetRect - self->SetTargetRect(*rect); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_SetTargetWindow[] = { &wxluatype_wxScrollHelper, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxScrollHelper_SetTargetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_SetTargetWindow[1] = {{ wxLua_wxScrollHelper_SetTargetWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_SetTargetWindow }}; -// void SetTargetWindow(wxWindow *target); -static int LUACALL wxLua_wxScrollHelper_SetTargetWindow(lua_State *L) -{ - // wxWindow target - wxWindow * target = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call SetTargetWindow - self->SetTargetWindow(target); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_ShowScrollbars[] = { &wxluatype_wxScrollHelper, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxScrollHelper_ShowScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_ShowScrollbars[1] = {{ wxLua_wxScrollHelper_ShowScrollbars, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_ShowScrollbars }}; -// void ShowScrollbars(wxScrollbarVisibility horz, wxScrollbarVisibility vert); -static int LUACALL wxLua_wxScrollHelper_ShowScrollbars(lua_State *L) -{ - // wxScrollbarVisibility vert - wxScrollbarVisibility vert = (wxScrollbarVisibility)wxlua_getenumtype(L, 3); - // wxScrollbarVisibility horz - wxScrollbarVisibility horz = (wxScrollbarVisibility)wxlua_getenumtype(L, 2); - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call ShowScrollbars - self->ShowScrollbars(horz, vert); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrollHelper_StopAutoScrolling[] = { &wxluatype_wxScrollHelper, NULL }; -static int LUACALL wxLua_wxScrollHelper_StopAutoScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_StopAutoScrolling[1] = {{ wxLua_wxScrollHelper_StopAutoScrolling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrollHelper_StopAutoScrolling }}; -// void StopAutoScrolling(); -static int LUACALL wxLua_wxScrollHelper_StopAutoScrolling(lua_State *L) -{ - // get this - wxScrollHelper * self = (wxScrollHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrollHelper); - // call StopAutoScrolling - self->StopAutoScrolling(); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - - - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrollHelper_Scroll_overload[] = -{ - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxScrollHelper_Scroll1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrollHelper_Scroll1 }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { wxLua_wxScrollHelper_Scroll, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrollHelper_Scroll }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -}; -static int s_wxluafunc_wxLua_wxScrollHelper_Scroll_overload_count = sizeof(s_wxluafunc_wxLua_wxScrollHelper_Scroll_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) - -void wxLua_wxScrollHelper_delete_function(void** p) -{ - wxScrollHelper* o = (wxScrollHelper*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxScrollHelper_methods[] = { -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "AdjustScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_AdjustScrollbars, 1, NULL }, - { "CalcScrollInc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_CalcScrollInc, 1, NULL }, - { "CalcScrolledPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_CalcScrolledPosition, 1, NULL }, - { "CalcUnscrolledPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_CalcUnscrolledPosition, 1, NULL }, - { "DisableKeyboardScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_DisableKeyboardScrolling, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) - { "DoPrepareDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_DoPrepareDC, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "EnableScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_EnableScrolling, 1, NULL }, - { "GetScaleX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetScaleX, 1, NULL }, - { "GetScaleY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetScaleY, 1, NULL }, - { "GetScrollLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetScrollLines, 1, NULL }, - { "GetScrollPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetScrollPageSize, 1, NULL }, - { "GetScrollPixelsPerUnit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetScrollPixelsPerUnit, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - { "GetTargetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetTargetRect, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "GetTargetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetTargetWindow, 1, NULL }, - { "GetViewStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_GetViewStart, 1, NULL }, - { "HandleOnChar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_HandleOnChar, 1, NULL }, - { "HandleOnMouseEnter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_HandleOnMouseEnter, 1, NULL }, - { "HandleOnMouseLeave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_HandleOnMouseLeave, 1, NULL }, - { "HandleOnPaint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_HandleOnPaint, 1, NULL }, - { "HandleOnScroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_HandleOnScroll, 1, NULL }, - { "HandleOnSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_HandleOnSize, 1, NULL }, - { "IsAutoScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_IsAutoScrolling, 1, NULL }, - { "IsScrollbarShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_IsScrollbarShown, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) - { "OnDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_OnDraw, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxDC) - -#if (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) - { "Scroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_Scroll_overload, s_wxluafunc_wxLua_wxScrollHelper_Scroll_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "SendAutoScrollEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SendAutoScrollEvents, 1, NULL }, - { "SetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SetScale, 1, NULL }, - { "SetScrollPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SetScrollPageSize, 1, NULL }, - { "SetScrollRate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SetScrollRate, 1, NULL }, - { "SetScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SetScrollbars, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - { "SetTargetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SetTargetRect, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "SetTargetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_SetTargetWindow, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) - { "ShowScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_ShowScrollbars, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "StopAutoScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrollHelper_StopAutoScrolling, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - - { 0, 0, 0, 0 }, -}; - -int wxScrollHelper_methodCount = sizeof(wxScrollHelper_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxScrolledWindow - - -#if wxLUA_USE_wxScrolledWindow -// --------------------------------------------------------------------------- -// Bind class wxScrolledWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxScrolledWindow' -int wxluatype_wxScrolledWindow = WXLUA_TUNKNOWN; - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_CalcScrolledPosition[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_CalcScrolledPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_CalcScrolledPosition[1] = {{ wxLua_wxScrolledWindow_CalcScrolledPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_CalcScrolledPosition }}; -// %override wxLua_wxScrolledWindow_CalcScrolledPosition -// void CalcScrolledPosition(int x, int y, int *xx, int *yy) const -static int LUACALL wxLua_wxScrolledWindow_CalcScrolledPosition(lua_State *L) -{ - int yy; - int xx; - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow *self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call CalcScrolledPosition - self->CalcScrolledPosition(x, y, &xx, &yy); - lua_pushinteger(L, xx); - lua_pushinteger(L, yy); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_CalcUnscrolledPosition[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_CalcUnscrolledPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_CalcUnscrolledPosition[1] = {{ wxLua_wxScrolledWindow_CalcUnscrolledPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_CalcUnscrolledPosition }}; -// %override wxLua_wxScrolledWindow_CalcUnscrolledPosition -// void CalcUnscrolledPosition(int x, int y, int *xx, int *yy) const -static int LUACALL wxLua_wxScrolledWindow_CalcUnscrolledPosition(lua_State *L) -{ - int yy; - int xx; - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow *self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call CalcUnscrolledPosition - self->CalcUnscrolledPosition(x, y, &xx, &yy); - lua_pushinteger(L, xx); - lua_pushinteger(L, yy); - // return the number of parameters - return 2; -} - - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_Create[] = { &wxluatype_wxScrolledWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxScrolledWindow_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_Create[1] = {{ wxLua_wxScrolledWindow_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxScrolledWindow_Create }}; -// bool Create(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHSCROLL | wxVSCROLL, const wxString& name = "wxScrolledWindow"); -static int LUACALL wxLua_wxScrolledWindow_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxScrolledWindow" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxScrolledWindow"))); - // long style = wxHSCROLL | wxVSCROLL - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxHSCROLL | wxVSCROLL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) - -#if (wxCHECK_VERSION(2,9,1) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_DisableKeyboardScrolling[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_DisableKeyboardScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_DisableKeyboardScrolling[1] = {{ wxLua_wxScrolledWindow_DisableKeyboardScrolling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_DisableKeyboardScrolling }}; -// %wxchkver_2_9_1 && !%wxchkver_3_0_0 void DisableKeyboardScrolling(); -static int LUACALL wxLua_wxScrolledWindow_DisableKeyboardScrolling(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call DisableKeyboardScrolling - self->DisableKeyboardScrolling(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,1) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_EnableScrolling[] = { &wxluatype_wxScrolledWindow, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxScrolledWindow_EnableScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_EnableScrolling[1] = {{ wxLua_wxScrolledWindow_EnableScrolling, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_EnableScrolling }}; -// !%wxchkver_3_0_0 void EnableScrolling(const bool xScrolling, const bool yScrolling); -static int LUACALL wxLua_wxScrolledWindow_EnableScrolling(lua_State *L) -{ - // const bool yScrolling - const bool yScrolling = wxlua_getbooleantype(L, 3); - // const bool xScrolling - const bool xScrolling = wxlua_getbooleantype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call EnableScrolling - self->EnableScrolling(xScrolling, yScrolling); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetScaleX[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetScaleX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetScaleX[1] = {{ wxLua_wxScrolledWindow_GetScaleX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_GetScaleX }}; -// !%wxchkver_3_0_0 double GetScaleX() const; -static int LUACALL wxLua_wxScrolledWindow_GetScaleX(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetScaleX - double returns = (self->GetScaleX()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetScaleY[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetScaleY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetScaleY[1] = {{ wxLua_wxScrolledWindow_GetScaleY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_GetScaleY }}; -// !%wxchkver_3_0_0 double GetScaleY() const; -static int LUACALL wxLua_wxScrolledWindow_GetScaleY(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetScaleY - double returns = (self->GetScaleY()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetScrollLines[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetScrollLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetScrollLines[1] = {{ wxLua_wxScrolledWindow_GetScrollLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrolledWindow_GetScrollLines }}; -// !%wxchkver_3_0_0 int GetScrollLines(int orient) const; -static int LUACALL wxLua_wxScrolledWindow_GetScrollLines(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetScrollLines - int returns = (self->GetScrollLines(orient)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetScrollPageSize[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetScrollPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetScrollPageSize[1] = {{ wxLua_wxScrolledWindow_GetScrollPageSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrolledWindow_GetScrollPageSize }}; -// !%wxchkver_3_0_0 int GetScrollPageSize(int orient) const; -static int LUACALL wxLua_wxScrolledWindow_GetScrollPageSize(lua_State *L) -{ - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetScrollPageSize - int returns = (self->GetScrollPageSize(orient)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetScrollPixelsPerUnit[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetScrollPixelsPerUnit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetScrollPixelsPerUnit[1] = {{ wxLua_wxScrolledWindow_GetScrollPixelsPerUnit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_GetScrollPixelsPerUnit }}; -// %override wxLua_wxScrolledWindow_GetScrollPixelsPerUnit -// void GetScrollPixelsPerUnit(int* xUnit, int* yUnit) const -static int LUACALL wxLua_wxScrolledWindow_GetScrollPixelsPerUnit(lua_State *L) -{ - int yUnit; - int xUnit; - // get this - wxScrolledWindow *self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetScrollPixelsPerUnit - self->GetScrollPixelsPerUnit(&xUnit, &yUnit); - lua_pushinteger(L, xUnit); - lua_pushinteger(L, yUnit); - // return the number of parameters - return 2; -} - - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetTargetRect[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetTargetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetTargetRect[1] = {{ wxLua_wxScrolledWindow_GetTargetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_GetTargetRect }}; -// !%wxchkver_3_0_0 wxRect GetTargetRect() const; -static int LUACALL wxLua_wxScrolledWindow_GetTargetRect(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetTargetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetTargetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetTargetWindow[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetTargetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetTargetWindow[1] = {{ wxLua_wxScrolledWindow_GetTargetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_GetTargetWindow }}; -// !%wxchkver_3_0_0 wxWindow *GetTargetWindow() const; -static int LUACALL wxLua_wxScrolledWindow_GetTargetWindow(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetTargetWindow - wxWindow* returns = (wxWindow*)self->GetTargetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_GetViewStart[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_GetViewStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_GetViewStart[1] = {{ wxLua_wxScrolledWindow_GetViewStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_GetViewStart }}; -// %override wxLua_wxScrolledWindow_GetViewStart -// void GetViewStart(int* x, int* y) const -static int LUACALL wxLua_wxScrolledWindow_GetViewStart(lua_State *L) -{ - int y; - int x; - // get this - wxScrolledWindow *self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call GetViewStart - self->GetViewStart(&x, &y); - lua_pushinteger(L, x); - lua_pushinteger(L, y); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_IsAutoScrolling[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_IsAutoScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_IsAutoScrolling[1] = {{ wxLua_wxScrolledWindow_IsAutoScrolling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_IsAutoScrolling }}; -// !%wxchkver_3_0_0 bool IsAutoScrolling() const; -static int LUACALL wxLua_wxScrolledWindow_IsAutoScrolling(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call IsAutoScrolling - bool returns = (self->IsAutoScrolling()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_PrepareDC[] = { &wxluatype_wxScrolledWindow, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxScrolledWindow_PrepareDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_PrepareDC[1] = {{ wxLua_wxScrolledWindow_PrepareDC, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrolledWindow_PrepareDC }}; -// void PrepareDC(wxDC& dc); -static int LUACALL wxLua_wxScrolledWindow_PrepareDC(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call PrepareDC - self->PrepareDC(*dc); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxScrolledWindow) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_Scroll[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_Scroll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_Scroll[1] = {{ wxLua_wxScrolledWindow_Scroll, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_Scroll }}; -// !%wxchkver_3_0_0 void Scroll(int x, int y); -static int LUACALL wxLua_wxScrolledWindow_Scroll(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call Scroll - self->Scroll(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_SetScale[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_SetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_SetScale[1] = {{ wxLua_wxScrolledWindow_SetScale, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_SetScale }}; -// !%wxchkver_3_0_0 void SetScale(double xs, double ys); -static int LUACALL wxLua_wxScrolledWindow_SetScale(lua_State *L) -{ - // double ys - double ys = (double)wxlua_getnumbertype(L, 3); - // double xs - double xs = (double)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call SetScale - self->SetScale(xs, ys); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_SetScrollPageSize[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_SetScrollPageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_SetScrollPageSize[1] = {{ wxLua_wxScrolledWindow_SetScrollPageSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_SetScrollPageSize }}; -// !%wxchkver_3_0_0 void SetScrollPageSize(int orient, int pageSize); -static int LUACALL wxLua_wxScrolledWindow_SetScrollPageSize(lua_State *L) -{ - // int pageSize - int pageSize = (int)wxlua_getnumbertype(L, 3); - // int orient - int orient = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call SetScrollPageSize - self->SetScrollPageSize(orient, pageSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_SetScrollRate[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_SetScrollRate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_SetScrollRate[1] = {{ wxLua_wxScrolledWindow_SetScrollRate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_SetScrollRate }}; -// !%wxchkver_3_0_0 void SetScrollRate(int xstep, int ystep); -static int LUACALL wxLua_wxScrolledWindow_SetScrollRate(lua_State *L) -{ - // int ystep - int ystep = (int)wxlua_getnumbertype(L, 3); - // int xstep - int xstep = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call SetScrollRate - self->SetScrollRate(xstep, ystep); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_SetScrollbars[] = { &wxluatype_wxScrolledWindow, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxScrolledWindow_SetScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_SetScrollbars[1] = {{ wxLua_wxScrolledWindow_SetScrollbars, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxScrolledWindow_SetScrollbars }}; -// !%wxchkver_3_0_0 void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, int noUnitsY, int xPos = 0, int yPos = 0, bool noRefresh = false); -static int LUACALL wxLua_wxScrolledWindow_SetScrollbars(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noRefresh = false - bool noRefresh = (argCount >= 8 ? wxlua_getbooleantype(L, 8) : false); - // int yPos = 0 - int yPos = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 0); - // int xPos = 0 - int xPos = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // int noUnitsY - int noUnitsY = (int)wxlua_getnumbertype(L, 5); - // int noUnitsX - int noUnitsX = (int)wxlua_getnumbertype(L, 4); - // int pixelsPerUnitY - int pixelsPerUnitY = (int)wxlua_getnumbertype(L, 3); - // int pixelsPerUnitX - int pixelsPerUnitX = (int)wxlua_getnumbertype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call SetScrollbars - self->SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUnitsX, noUnitsY, xPos, yPos, noRefresh); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_SetTargetRect[] = { &wxluatype_wxScrolledWindow, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxScrolledWindow_SetTargetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_SetTargetRect[1] = {{ wxLua_wxScrolledWindow_SetTargetRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrolledWindow_SetTargetRect }}; -// !%wxchkver_3_0_0 void SetTargetRect(const wxRect& rect); -static int LUACALL wxLua_wxScrolledWindow_SetTargetRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call SetTargetRect - self->SetTargetRect(*rect); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_SetTargetWindow[] = { &wxluatype_wxScrolledWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_SetTargetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_SetTargetWindow[1] = {{ wxLua_wxScrolledWindow_SetTargetWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxScrolledWindow_SetTargetWindow }}; -// !%wxchkver_3_0_0 void SetTargetWindow(wxWindow* window); -static int LUACALL wxLua_wxScrolledWindow_SetTargetWindow(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call SetTargetWindow - self->SetTargetWindow(window); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(2,9,0) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_ShowScrollbars[] = { &wxluatype_wxScrolledWindow, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxScrolledWindow_ShowScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_ShowScrollbars[1] = {{ wxLua_wxScrolledWindow_ShowScrollbars, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxScrolledWindow_ShowScrollbars }}; -// %wxchkver_2_9_0 && !%wxchkver_3_0_0 void ShowScrollbars(wxScrollbarVisibility horz, wxScrollbarVisibility vert); -static int LUACALL wxLua_wxScrolledWindow_ShowScrollbars(lua_State *L) -{ - // wxScrollbarVisibility vert - wxScrollbarVisibility vert = (wxScrollbarVisibility)wxlua_getenumtype(L, 3); - // wxScrollbarVisibility horz - wxScrollbarVisibility horz = (wxScrollbarVisibility)wxlua_getenumtype(L, 2); - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call ShowScrollbars - self->ShowScrollbars(horz, vert); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,0) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_StopAutoScrolling[] = { &wxluatype_wxScrolledWindow, NULL }; -static int LUACALL wxLua_wxScrolledWindow_StopAutoScrolling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_StopAutoScrolling[1] = {{ wxLua_wxScrolledWindow_StopAutoScrolling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxScrolledWindow_StopAutoScrolling }}; -// !%wxchkver_3_0_0 void StopAutoScrolling(); -static int LUACALL wxLua_wxScrolledWindow_StopAutoScrolling(lua_State *L) -{ - // get this - wxScrolledWindow * self = (wxScrolledWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxScrolledWindow); - // call StopAutoScrolling - self->StopAutoScrolling(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxScrolledWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxScrolledWindow_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_constructor1[1] = {{ wxLua_wxScrolledWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxScrolledWindow_constructor1 }}; -// wxScrolledWindow(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHSCROLL | wxVSCROLL, const wxString& name = "wxScrolledWindow"); -static int LUACALL wxLua_wxScrolledWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxScrolledWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxScrolledWindow"))); - // long style = wxHSCROLL | wxVSCROLL - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxHSCROLL | wxVSCROLL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxScrolledWindow* returns = new wxScrolledWindow(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScrolledWindow); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) - -static int LUACALL wxLua_wxScrolledWindow_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_constructor[1] = {{ wxLua_wxScrolledWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxScrolledWindow(); -static int LUACALL wxLua_wxScrolledWindow_constructor(lua_State *L) -{ - // call constructor - wxScrolledWindow* returns = new wxScrolledWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxScrolledWindow); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow))||(wxLUA_USE_wxScrolledWindow) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxScrolledWindow_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) - { wxLua_wxScrolledWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxScrolledWindow_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) - { wxLua_wxScrolledWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxScrolledWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxScrolledWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow))||(wxLUA_USE_wxScrolledWindow) - -void wxLua_wxScrolledWindow_delete_function(void** p) -{ - wxScrolledWindow* o = (wxScrolledWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxScrolledWindow_methods[] = { -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "CalcScrolledPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_CalcScrolledPosition, 1, NULL }, - { "CalcUnscrolledPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_CalcUnscrolledPosition, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow) - -#if (wxCHECK_VERSION(2,9,1) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "DisableKeyboardScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_DisableKeyboardScrolling, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,1) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "EnableScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_EnableScrolling, 1, NULL }, - { "GetScaleX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetScaleX, 1, NULL }, - { "GetScaleY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetScaleY, 1, NULL }, - { "GetScrollLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetScrollLines, 1, NULL }, - { "GetScrollPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetScrollPageSize, 1, NULL }, - { "GetScrollPixelsPerUnit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetScrollPixelsPerUnit, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - { "GetTargetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetTargetRect, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "GetTargetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetTargetWindow, 1, NULL }, - { "GetViewStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_GetViewStart, 1, NULL }, - { "IsAutoScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_IsAutoScrolling, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxScrolledWindow) - { "PrepareDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_PrepareDC, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxScrolledWindow) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "Scroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_Scroll, 1, NULL }, - { "SetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_SetScale, 1, NULL }, - { "SetScrollPageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_SetScrollPageSize, 1, NULL }, - { "SetScrollRate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_SetScrollRate, 1, NULL }, - { "SetScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_SetScrollbars, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - { "SetTargetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_SetTargetRect, 1, NULL }, -#endif // ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && (wxLUA_USE_wxPointSizeRect) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "SetTargetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_SetTargetWindow, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxCHECK_VERSION(2,9,0) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) - { "ShowScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_ShowScrollbars, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0) && !wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow)) && ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxScrolledWindow)) - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - { "StopAutoScrolling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxScrolledWindow_StopAutoScrolling, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxScrolledWindow) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow))||(wxLUA_USE_wxScrolledWindow) - { "wxScrolledWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxScrolledWindow_constructor_overload, s_wxluafunc_wxLua_wxScrolledWindow_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxScrolledWindow))||(wxLUA_USE_wxScrolledWindow) - - { 0, 0, 0, 0 }, -}; - -int wxScrolledWindow_methodCount = sizeof(wxScrolledWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxScrolledWindow - - -#if wxLUA_USE_wxSplitterWindow -// --------------------------------------------------------------------------- -// Bind class wxSplitterWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSplitterWindow' -int wxluatype_wxSplitterWindow = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_Create[] = { &wxluatype_wxSplitterWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSplitterWindow_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_Create[1] = {{ wxLua_wxSplitterWindow_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxSplitterWindow_Create }}; -// bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxSP_3D|wxCLIP_CHILDREN, const wxString& name = "wxSplitterWindow"); -static int LUACALL wxLua_wxSplitterWindow_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSplitterWindow" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxSplitterWindow"))); - // long style = wxSP_3D | wxCLIP_CHILDREN - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxSP_3D | wxCLIP_CHILDREN); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_GetMinimumPaneSize[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_GetMinimumPaneSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_GetMinimumPaneSize[1] = {{ wxLua_wxSplitterWindow_GetMinimumPaneSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_GetMinimumPaneSize }}; -// int GetMinimumPaneSize() const; -static int LUACALL wxLua_wxSplitterWindow_GetMinimumPaneSize(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call GetMinimumPaneSize - int returns = (self->GetMinimumPaneSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_GetSashGravity[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_GetSashGravity(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_GetSashGravity[1] = {{ wxLua_wxSplitterWindow_GetSashGravity, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_GetSashGravity }}; -// double GetSashGravity(); -static int LUACALL wxLua_wxSplitterWindow_GetSashGravity(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call GetSashGravity - double returns = (self->GetSashGravity()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_GetSashPosition[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_GetSashPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_GetSashPosition[1] = {{ wxLua_wxSplitterWindow_GetSashPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_GetSashPosition }}; -// int GetSashPosition(); -static int LUACALL wxLua_wxSplitterWindow_GetSashPosition(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call GetSashPosition - int returns = (self->GetSashPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_GetSplitMode[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_GetSplitMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_GetSplitMode[1] = {{ wxLua_wxSplitterWindow_GetSplitMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_GetSplitMode }}; -// int GetSplitMode() const; -static int LUACALL wxLua_wxSplitterWindow_GetSplitMode(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call GetSplitMode - int returns = (self->GetSplitMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_GetWindow1[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_GetWindow1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_GetWindow1[1] = {{ wxLua_wxSplitterWindow_GetWindow1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_GetWindow1 }}; -// wxWindow *GetWindow1() const; -static int LUACALL wxLua_wxSplitterWindow_GetWindow1(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call GetWindow1 - wxWindow* returns = (wxWindow*)self->GetWindow1(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_GetWindow2[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_GetWindow2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_GetWindow2[1] = {{ wxLua_wxSplitterWindow_GetWindow2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_GetWindow2 }}; -// wxWindow *GetWindow2() const; -static int LUACALL wxLua_wxSplitterWindow_GetWindow2(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call GetWindow2 - wxWindow* returns = (wxWindow*)self->GetWindow2(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_Initialize[] = { &wxluatype_wxSplitterWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_Initialize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_Initialize[1] = {{ wxLua_wxSplitterWindow_Initialize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplitterWindow_Initialize }}; -// void Initialize(wxWindow* window); -static int LUACALL wxLua_wxSplitterWindow_Initialize(lua_State *L) -{ - // wxWindow window - wxWindow * window = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call Initialize - self->Initialize(window); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_IsSplit[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_IsSplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_IsSplit[1] = {{ wxLua_wxSplitterWindow_IsSplit, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_IsSplit }}; -// bool IsSplit() const; -static int LUACALL wxLua_wxSplitterWindow_IsSplit(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call IsSplit - bool returns = (self->IsSplit()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_ReplaceWindow[] = { &wxluatype_wxSplitterWindow, &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_ReplaceWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_ReplaceWindow[1] = {{ wxLua_wxSplitterWindow_ReplaceWindow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSplitterWindow_ReplaceWindow }}; -// bool ReplaceWindow(wxWindow * winOld, wxWindow * winNew); -static int LUACALL wxLua_wxSplitterWindow_ReplaceWindow(lua_State *L) -{ - // wxWindow winNew - wxWindow * winNew = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxWindow winOld - wxWindow * winOld = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call ReplaceWindow - bool returns = (self->ReplaceWindow(winOld, winNew)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SetMinimumPaneSize[] = { &wxluatype_wxSplitterWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SetMinimumPaneSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SetMinimumPaneSize[1] = {{ wxLua_wxSplitterWindow_SetMinimumPaneSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplitterWindow_SetMinimumPaneSize }}; -// void SetMinimumPaneSize(int paneSize); -static int LUACALL wxLua_wxSplitterWindow_SetMinimumPaneSize(lua_State *L) -{ - // int paneSize - int paneSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SetMinimumPaneSize - self->SetMinimumPaneSize(paneSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SetSashGravity[] = { &wxluatype_wxSplitterWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SetSashGravity(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SetSashGravity[1] = {{ wxLua_wxSplitterWindow_SetSashGravity, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplitterWindow_SetSashGravity }}; -// void SetSashGravity(double gravity); -static int LUACALL wxLua_wxSplitterWindow_SetSashGravity(lua_State *L) -{ - // double gravity - double gravity = (double)wxlua_getnumbertype(L, 2); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SetSashGravity - self->SetSashGravity(gravity); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SetSashPosition[] = { &wxluatype_wxSplitterWindow, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SetSashPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SetSashPosition[1] = {{ wxLua_wxSplitterWindow_SetSashPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSplitterWindow_SetSashPosition }}; -// void SetSashPosition(int position, const bool redraw = true); -static int LUACALL wxLua_wxSplitterWindow_SetSashPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const bool redraw = true - const bool redraw = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int position - int position = (int)wxlua_getnumbertype(L, 2); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SetSashPosition - self->SetSashPosition(position, redraw); - - return 0; -} - - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxSplitterWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SetSashSize[] = { &wxluatype_wxSplitterWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SetSashSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SetSashSize[1] = {{ wxLua_wxSplitterWindow_SetSashSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplitterWindow_SetSashSize }}; -// !%wxchkver_3_0 void SetSashSize(int size); -static int LUACALL wxLua_wxSplitterWindow_SetSashSize(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 2); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SetSashSize - self->SetSashSize(size); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxSplitterWindow) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SetSplitMode[] = { &wxluatype_wxSplitterWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SetSplitMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SetSplitMode[1] = {{ wxLua_wxSplitterWindow_SetSplitMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplitterWindow_SetSplitMode }}; -// void SetSplitMode(int mode); -static int LUACALL wxLua_wxSplitterWindow_SetSplitMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SetSplitMode - self->SetSplitMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SplitHorizontally[] = { &wxluatype_wxSplitterWindow, &wxluatype_wxWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SplitHorizontally(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SplitHorizontally[1] = {{ wxLua_wxSplitterWindow_SplitHorizontally, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSplitterWindow_SplitHorizontally }}; -// bool SplitHorizontally(wxWindow* window1, wxWindow* window2, int sashPosition = 0); -static int LUACALL wxLua_wxSplitterWindow_SplitHorizontally(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int sashPosition = 0 - int sashPosition = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxWindow window2 - wxWindow * window2 = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxWindow window1 - wxWindow * window1 = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SplitHorizontally - bool returns = (self->SplitHorizontally(window1, window2, sashPosition)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_SplitVertically[] = { &wxluatype_wxSplitterWindow, &wxluatype_wxWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterWindow_SplitVertically(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_SplitVertically[1] = {{ wxLua_wxSplitterWindow_SplitVertically, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSplitterWindow_SplitVertically }}; -// bool SplitVertically(wxWindow* window1, wxWindow* window2, int sashPosition = 0); -static int LUACALL wxLua_wxSplitterWindow_SplitVertically(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int sashPosition = 0 - int sashPosition = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxWindow window2 - wxWindow * window2 = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxWindow window1 - wxWindow * window1 = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call SplitVertically - bool returns = (self->SplitVertically(window1, window2, sashPosition)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_Unsplit[] = { &wxluatype_wxSplitterWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_Unsplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_Unsplit[1] = {{ wxLua_wxSplitterWindow_Unsplit, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSplitterWindow_Unsplit }}; -// bool Unsplit(wxWindow* toRemove = NULL); -static int LUACALL wxLua_wxSplitterWindow_Unsplit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow toRemove = NULL - wxWindow * toRemove = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call Unsplit - bool returns = (self->Unsplit(toRemove)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_UpdateSize[] = { &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterWindow_UpdateSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_UpdateSize[1] = {{ wxLua_wxSplitterWindow_UpdateSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterWindow_UpdateSize }}; -// void UpdateSize(); -static int LUACALL wxLua_wxSplitterWindow_UpdateSize(lua_State *L) -{ - // get this - wxSplitterWindow * self = (wxSplitterWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterWindow); - // call UpdateSize - self->UpdateSize(); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSplitterWindow_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_constructor1[1] = {{ wxLua_wxSplitterWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxSplitterWindow_constructor1 }}; -// wxSplitterWindow(wxWindow* parent, wxWindowID id, const wxPoint& point = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=wxSP_3D, const wxString& name = "wxSplitterWindow"); -static int LUACALL wxLua_wxSplitterWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSplitterWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxSplitterWindow"))); - // long style = wxSP_3D - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxSP_3D); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint point = wxDefaultPosition - const wxPoint * point = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSplitterWindow* returns = new wxSplitterWindow(parent, id, *point, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplitterWindow); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) - -static int LUACALL wxLua_wxSplitterWindow_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_constructor[1] = {{ wxLua_wxSplitterWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSplitterWindow(); -static int LUACALL wxLua_wxSplitterWindow_constructor(lua_State *L) -{ - // call constructor - wxSplitterWindow* returns = new wxSplitterWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplitterWindow); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow))||(wxLUA_USE_wxSplitterWindow) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterWindow_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) - { wxLua_wxSplitterWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxSplitterWindow_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) - { wxLua_wxSplitterWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSplitterWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSplitterWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow))||(wxLUA_USE_wxSplitterWindow) - -void wxLua_wxSplitterWindow_delete_function(void** p) -{ - wxSplitterWindow* o = (wxSplitterWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSplitterWindow_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow) - - { "GetMinimumPaneSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_GetMinimumPaneSize, 1, NULL }, - { "GetSashGravity", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_GetSashGravity, 1, NULL }, - { "GetSashPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_GetSashPosition, 1, NULL }, - { "GetSplitMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_GetSplitMode, 1, NULL }, - { "GetWindow1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_GetWindow1, 1, NULL }, - { "GetWindow2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_GetWindow2, 1, NULL }, - { "Initialize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_Initialize, 1, NULL }, - { "IsSplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_IsSplit, 1, NULL }, - { "ReplaceWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_ReplaceWindow, 1, NULL }, - { "SetMinimumPaneSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SetMinimumPaneSize, 1, NULL }, - { "SetSashGravity", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SetSashGravity, 1, NULL }, - { "SetSashPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SetSashPosition, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxSplitterWindow) - { "SetSashSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SetSashSize, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxSplitterWindow) - - { "SetSplitMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SetSplitMode, 1, NULL }, - { "SplitHorizontally", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SplitHorizontally, 1, NULL }, - { "SplitVertically", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_SplitVertically, 1, NULL }, - { "Unsplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_Unsplit, 1, NULL }, - { "UpdateSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterWindow_UpdateSize, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow))||(wxLUA_USE_wxSplitterWindow) - { "wxSplitterWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSplitterWindow_constructor_overload, s_wxluafunc_wxLua_wxSplitterWindow_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxSplitterWindow))||(wxLUA_USE_wxSplitterWindow) - - { 0, 0, 0, 0 }, -}; - -int wxSplitterWindow_methodCount = sizeof(wxSplitterWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSplitterWindow - - -#if wxLUA_USE_wxSplitterWindow -// --------------------------------------------------------------------------- -// Bind class wxSplitterEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSplitterEvent' -int wxluatype_wxSplitterEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_GetSashPosition[] = { &wxluatype_wxSplitterEvent, NULL }; -static int LUACALL wxLua_wxSplitterEvent_GetSashPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_GetSashPosition[1] = {{ wxLua_wxSplitterEvent_GetSashPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterEvent_GetSashPosition }}; -// int GetSashPosition(); -static int LUACALL wxLua_wxSplitterEvent_GetSashPosition(lua_State *L) -{ - // get this - wxSplitterEvent * self = (wxSplitterEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterEvent); - // call GetSashPosition - int returns = (self->GetSashPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_GetWindowBeingRemoved[] = { &wxluatype_wxSplitterEvent, NULL }; -static int LUACALL wxLua_wxSplitterEvent_GetWindowBeingRemoved(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_GetWindowBeingRemoved[1] = {{ wxLua_wxSplitterEvent_GetWindowBeingRemoved, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterEvent_GetWindowBeingRemoved }}; -// wxWindow* GetWindowBeingRemoved(); -static int LUACALL wxLua_wxSplitterEvent_GetWindowBeingRemoved(lua_State *L) -{ - // get this - wxSplitterEvent * self = (wxSplitterEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterEvent); - // call GetWindowBeingRemoved - wxWindow* returns = (wxWindow*)self->GetWindowBeingRemoved(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_GetX[] = { &wxluatype_wxSplitterEvent, NULL }; -static int LUACALL wxLua_wxSplitterEvent_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_GetX[1] = {{ wxLua_wxSplitterEvent_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterEvent_GetX }}; -// int GetX(); -static int LUACALL wxLua_wxSplitterEvent_GetX(lua_State *L) -{ - // get this - wxSplitterEvent * self = (wxSplitterEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterEvent); - // call GetX - int returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_GetY[] = { &wxluatype_wxSplitterEvent, NULL }; -static int LUACALL wxLua_wxSplitterEvent_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_GetY[1] = {{ wxLua_wxSplitterEvent_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSplitterEvent_GetY }}; -// int GetY(); -static int LUACALL wxLua_wxSplitterEvent_GetY(lua_State *L) -{ - // get this - wxSplitterEvent * self = (wxSplitterEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterEvent); - // call GetY - int returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_SetSashPosition[] = { &wxluatype_wxSplitterEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSplitterEvent_SetSashPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_SetSashPosition[1] = {{ wxLua_wxSplitterEvent_SetSashPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSplitterEvent_SetSashPosition }}; -// void SetSashPosition(int pos); -static int LUACALL wxLua_wxSplitterEvent_SetSashPosition(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxSplitterEvent * self = (wxSplitterEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSplitterEvent); - // call SetSashPosition - self->SetSashPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_delete[] = { &wxluatype_wxSplitterEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSplitterEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSplitterEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxSplitterWindow, NULL }; -static int LUACALL wxLua_wxSplitterEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSplitterEvent_constructor[1] = {{ wxLua_wxSplitterEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxSplitterEvent_constructor }}; -// wxSplitterEvent(wxEventType type = wxEVT_NULL, wxSplitterWindow *splitter = NULL); -static int LUACALL wxLua_wxSplitterEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSplitterWindow splitter = NULL - wxSplitterWindow * splitter = (argCount >= 2 ? (wxSplitterWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSplitterWindow) : NULL); - // wxEventType type = wxEVT_NULL - wxEventType type = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxSplitterEvent* returns = new wxSplitterEvent(type, splitter); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSplitterEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSplitterEvent); - - return 1; -} - - - - -void wxLua_wxSplitterEvent_delete_function(void** p) -{ - wxSplitterEvent* o = (wxSplitterEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSplitterEvent_methods[] = { - { "GetSashPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterEvent_GetSashPosition, 1, NULL }, - { "GetWindowBeingRemoved", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterEvent_GetWindowBeingRemoved, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterEvent_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterEvent_GetY, 1, NULL }, - { "SetSashPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSplitterEvent_SetSashPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSplitterEvent_delete, 1, NULL }, - { "wxSplitterEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSplitterEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSplitterEvent_methodCount = sizeof(wxSplitterEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSplitterWindow - - -#if wxLUA_USE_wxPopupWindow -// --------------------------------------------------------------------------- -// Bind class wxPopupWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPopupWindow' -int wxluatype_wxPopupWindow = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupWindow_Create[] = { &wxluatype_wxPopupWindow, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPopupWindow_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupWindow_Create[1] = {{ wxLua_wxPopupWindow_Create, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPopupWindow_Create }}; -// bool Create(wxWindow* parent, int flags = wxBORDER_NONE); -static int LUACALL wxLua_wxPopupWindow_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxBORDER_NONE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxBORDER_NONE); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPopupWindow * self = (wxPopupWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPopupWindow); - // call Create - bool returns = (self->Create(parent, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPopupWindow) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupWindow_Position[] = { &wxluatype_wxPopupWindow, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPopupWindow_Position(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupWindow_Position[1] = {{ wxLua_wxPopupWindow_Position, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPopupWindow_Position }}; -// virtual void Position(const wxPoint &ptOrigin, const wxSize &sizePopup); -static int LUACALL wxLua_wxPopupWindow_Position(lua_State *L) -{ - // const wxSize sizePopup - const wxSize * sizePopup = (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxPoint ptOrigin - const wxPoint * ptOrigin = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPopupWindow * self = (wxPopupWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPopupWindow); - // call Position - self->Position(*ptOrigin, *sizePopup); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPopupWindow) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupWindow_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPopupWindow_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupWindow_constructor[1] = {{ wxLua_wxPopupWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPopupWindow_constructor }}; -// wxPopupWindow(wxWindow* parent, int flags = wxBORDER_NONE); -static int LUACALL wxLua_wxPopupWindow_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxBORDER_NONE - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBORDER_NONE); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPopupWindow* returns = new wxPopupWindow(parent, flags); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPopupWindow); - - return 1; -} - - - - -void wxLua_wxPopupWindow_delete_function(void** p) -{ - wxPopupWindow* o = (wxPopupWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPopupWindow_methods[] = { - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPopupWindow_Create, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPopupWindow) - { "Position", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPopupWindow_Position, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPopupWindow) - - { "wxPopupWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPopupWindow_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPopupWindow_methodCount = sizeof(wxPopupWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPopupWindow - - -#if wxLUA_USE_wxPopupTransientWindow -// --------------------------------------------------------------------------- -// Bind class wxPopupTransientWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPopupTransientWindow' -int wxluatype_wxPopupTransientWindow = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupTransientWindow_Dismiss[] = { &wxluatype_wxPopupTransientWindow, NULL }; -static int LUACALL wxLua_wxPopupTransientWindow_Dismiss(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupTransientWindow_Dismiss[1] = {{ wxLua_wxPopupTransientWindow_Dismiss, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPopupTransientWindow_Dismiss }}; -// virtual void Dismiss(); -static int LUACALL wxLua_wxPopupTransientWindow_Dismiss(lua_State *L) -{ - // get this - wxPopupTransientWindow * self = (wxPopupTransientWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPopupTransientWindow); - // call Dismiss - self->Dismiss(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupTransientWindow_Popup[] = { &wxluatype_wxPopupTransientWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPopupTransientWindow_Popup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupTransientWindow_Popup[1] = {{ wxLua_wxPopupTransientWindow_Popup, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPopupTransientWindow_Popup }}; -// virtual void Popup(wxWindow *focus = NULL); -static int LUACALL wxLua_wxPopupTransientWindow_Popup(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow focus = NULL - wxWindow * focus = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // get this - wxPopupTransientWindow * self = (wxPopupTransientWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPopupTransientWindow); - // call Popup - self->Popup(focus); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupTransientWindow_ProcessLeftDown[] = { &wxluatype_wxPopupTransientWindow, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxPopupTransientWindow_ProcessLeftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupTransientWindow_ProcessLeftDown[1] = {{ wxLua_wxPopupTransientWindow_ProcessLeftDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPopupTransientWindow_ProcessLeftDown }}; -// virtual void ProcessLeftDown(wxMouseEvent &event); -static int LUACALL wxLua_wxPopupTransientWindow_ProcessLeftDown(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxPopupTransientWindow * self = (wxPopupTransientWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPopupTransientWindow); - // call ProcessLeftDown - self->ProcessLeftDown(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPopupTransientWindow_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPopupTransientWindow_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupTransientWindow_constructor1[1] = {{ wxLua_wxPopupTransientWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPopupTransientWindow_constructor1 }}; -// wxPopupTransientWindow(wxWindow *parent, int flags = wxBORDER_NONE); -static int LUACALL wxLua_wxPopupTransientWindow_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxBORDER_NONE - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxBORDER_NONE); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPopupTransientWindow* returns = new wxPopupTransientWindow(parent, flags); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPopupTransientWindow); - - return 1; -} - -static int LUACALL wxLua_wxPopupTransientWindow_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupTransientWindow_constructor[1] = {{ wxLua_wxPopupTransientWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPopupTransientWindow(); -static int LUACALL wxLua_wxPopupTransientWindow_constructor(lua_State *L) -{ - // call constructor - wxPopupTransientWindow* returns = new wxPopupTransientWindow(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPopupTransientWindow); - - return 1; -} - - - - -#if (wxLUA_USE_wxPopupTransientWindow) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPopupTransientWindow_constructor_overload[] = -{ - { wxLua_wxPopupTransientWindow_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPopupTransientWindow_constructor1 }, - { wxLua_wxPopupTransientWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPopupTransientWindow_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPopupTransientWindow_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPopupTransientWindow) - -void wxLua_wxPopupTransientWindow_delete_function(void** p) -{ - wxPopupTransientWindow* o = (wxPopupTransientWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPopupTransientWindow_methods[] = { - { "Dismiss", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPopupTransientWindow_Dismiss, 1, NULL }, - { "Popup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPopupTransientWindow_Popup, 1, NULL }, - { "ProcessLeftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPopupTransientWindow_ProcessLeftDown, 1, NULL }, - -#if (wxLUA_USE_wxPopupTransientWindow) - { "wxPopupTransientWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPopupTransientWindow_constructor_overload, s_wxluafunc_wxLua_wxPopupTransientWindow_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPopupTransientWindow) - - { 0, 0, 0, 0 }, -}; - -int wxPopupTransientWindow_methodCount = sizeof(wxPopupTransientWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPopupTransientWindow - - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE -// --------------------------------------------------------------------------- -// Bind class wxCollapsiblePane -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCollapsiblePane' -int wxluatype_wxCollapsiblePane = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_Collapse[] = { &wxluatype_wxCollapsiblePane, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_Collapse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_Collapse[1] = {{ wxLua_wxCollapsiblePane_Collapse, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxCollapsiblePane_Collapse }}; -// void Collapse(bool collapse = true); -static int LUACALL wxLua_wxCollapsiblePane_Collapse(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool collapse = true - bool collapse = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxCollapsiblePane * self = (wxCollapsiblePane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePane); - // call Collapse - self->Collapse(collapse); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_Create[] = { &wxluatype_wxCollapsiblePane, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_Create[1] = {{ wxLua_wxCollapsiblePane_Create, WXLUAMETHOD_METHOD, 4, 9, s_wxluatypeArray_wxLua_wxCollapsiblePane_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxCollapsiblePane"); -static int LUACALL wxLua_wxCollapsiblePane_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCollapsiblePane" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxCollapsiblePane"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxCP_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxCP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxCollapsiblePane * self = (wxCollapsiblePane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePane); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_Expand[] = { &wxluatype_wxCollapsiblePane, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_Expand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_Expand[1] = {{ wxLua_wxCollapsiblePane_Expand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCollapsiblePane_Expand }}; -// void Expand(); -static int LUACALL wxLua_wxCollapsiblePane_Expand(lua_State *L) -{ - // get this - wxCollapsiblePane * self = (wxCollapsiblePane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePane); - // call Expand - self->Expand(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_GetPane[] = { &wxluatype_wxCollapsiblePane, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_GetPane(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_GetPane[1] = {{ wxLua_wxCollapsiblePane_GetPane, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCollapsiblePane_GetPane }}; -// wxWindow* GetPane() const; -static int LUACALL wxLua_wxCollapsiblePane_GetPane(lua_State *L) -{ - // get this - wxCollapsiblePane * self = (wxCollapsiblePane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePane); - // call GetPane - wxWindow* returns = (wxWindow*)self->GetPane(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_IsCollapsed[] = { &wxluatype_wxCollapsiblePane, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_IsCollapsed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_IsCollapsed[1] = {{ wxLua_wxCollapsiblePane_IsCollapsed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCollapsiblePane_IsCollapsed }}; -// bool IsCollapsed() const; -static int LUACALL wxLua_wxCollapsiblePane_IsCollapsed(lua_State *L) -{ - // get this - wxCollapsiblePane * self = (wxCollapsiblePane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePane); - // call IsCollapsed - bool returns = (self->IsCollapsed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_IsExpanded[] = { &wxluatype_wxCollapsiblePane, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_IsExpanded[1] = {{ wxLua_wxCollapsiblePane_IsExpanded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCollapsiblePane_IsExpanded }}; -// bool IsExpanded() const; -static int LUACALL wxLua_wxCollapsiblePane_IsExpanded(lua_State *L) -{ - // get this - wxCollapsiblePane * self = (wxCollapsiblePane *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePane); - // call IsExpanded - bool returns = (self->IsExpanded()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePane_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxCollapsiblePane_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_constructor1[1] = {{ wxLua_wxCollapsiblePane_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxCollapsiblePane_constructor1 }}; -// wxCollapsiblePane(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCP_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxCollapsiblePane"); -static int LUACALL wxLua_wxCollapsiblePane_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxCollapsiblePane" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxCollapsiblePane"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxCP_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxCP_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxCollapsiblePane* returns = new wxCollapsiblePane(parent, id, label, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCollapsiblePane); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxCollapsiblePane_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_constructor[1] = {{ wxLua_wxCollapsiblePane_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCollapsiblePane(); -static int LUACALL wxLua_wxCollapsiblePane_constructor(lua_State *L) -{ - // call constructor - wxCollapsiblePane* returns = new wxCollapsiblePane(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCollapsiblePane); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePane_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxCollapsiblePane_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 8, s_wxluatypeArray_wxLua_wxCollapsiblePane_constructor1 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxCollapsiblePane_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCollapsiblePane_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCollapsiblePane_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) - -void wxLua_wxCollapsiblePane_delete_function(void** p) -{ - wxCollapsiblePane* o = (wxCollapsiblePane*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCollapsiblePane_methods[] = { - { "Collapse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePane_Collapse, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePane_Create, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Expand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePane_Expand, 1, NULL }, - { "GetPane", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePane_GetPane, 1, NULL }, - { "IsCollapsed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePane_IsCollapsed, 1, NULL }, - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePane_IsExpanded, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) - { "wxCollapsiblePane", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCollapsiblePane_constructor_overload, s_wxluafunc_wxLua_wxCollapsiblePane_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) - - { 0, 0, 0, 0 }, -}; - -int wxCollapsiblePane_methodCount = sizeof(wxCollapsiblePane_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - - -#if wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE -// --------------------------------------------------------------------------- -// Bind class wxCollapsiblePaneEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCollapsiblePaneEvent' -int wxluatype_wxCollapsiblePaneEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_GetCollapsed[] = { &wxluatype_wxCollapsiblePaneEvent, NULL }; -static int LUACALL wxLua_wxCollapsiblePaneEvent_GetCollapsed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePaneEvent_GetCollapsed[1] = {{ wxLua_wxCollapsiblePaneEvent_GetCollapsed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_GetCollapsed }}; -// bool GetCollapsed() const; -static int LUACALL wxLua_wxCollapsiblePaneEvent_GetCollapsed(lua_State *L) -{ - // get this - wxCollapsiblePaneEvent * self = (wxCollapsiblePaneEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePaneEvent); - // call GetCollapsed - bool returns = (self->GetCollapsed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_SetCollapsed[] = { &wxluatype_wxCollapsiblePaneEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCollapsiblePaneEvent_SetCollapsed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePaneEvent_SetCollapsed[1] = {{ wxLua_wxCollapsiblePaneEvent_SetCollapsed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_SetCollapsed }}; -// void SetCollapsed(bool c); -static int LUACALL wxLua_wxCollapsiblePaneEvent_SetCollapsed(lua_State *L) -{ - // bool c - bool c = wxlua_getbooleantype(L, 2); - // get this - wxCollapsiblePaneEvent * self = (wxCollapsiblePaneEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCollapsiblePaneEvent); - // call SetCollapsed - self->SetCollapsed(c); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_delete[] = { &wxluatype_wxCollapsiblePaneEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePaneEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_delete }}; - - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_constructor1[] = { &wxluatype_wxObject, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxCollapsiblePaneEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor1[1] = {{ wxLua_wxCollapsiblePaneEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_constructor1 }}; -// wxCollapsiblePaneEvent(wxObject *generator, int id, bool collapsed); -static int LUACALL wxLua_wxCollapsiblePaneEvent_constructor1(lua_State *L) -{ - // bool collapsed - bool collapsed = wxlua_getbooleantype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // wxObject generator - wxObject * generator = (wxObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxObject); - // call constructor - wxCollapsiblePaneEvent* returns = new wxCollapsiblePaneEvent(generator, id, collapsed); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCollapsiblePaneEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCollapsiblePaneEvent); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject) - -static int LUACALL wxLua_wxCollapsiblePaneEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor[1] = {{ wxLua_wxCollapsiblePaneEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxCollapsiblePaneEvent(); -static int LUACALL wxLua_wxCollapsiblePaneEvent_constructor(lua_State *L) -{ - // call constructor - wxCollapsiblePaneEvent* returns = new wxCollapsiblePaneEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCollapsiblePaneEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCollapsiblePaneEvent); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor_overload[] = -{ - -#if (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject) - { wxLua_wxCollapsiblePaneEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxCollapsiblePaneEvent_constructor1 }, -#endif // (wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject) - { wxLua_wxCollapsiblePaneEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) - -void wxLua_wxCollapsiblePaneEvent_delete_function(void** p) -{ - wxCollapsiblePaneEvent* o = (wxCollapsiblePaneEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCollapsiblePaneEvent_methods[] = { - { "GetCollapsed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePaneEvent_GetCollapsed, 1, NULL }, - { "SetCollapsed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCollapsiblePaneEvent_SetCollapsed, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxCollapsiblePaneEvent_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) - { "wxCollapsiblePaneEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor_overload, s_wxluafunc_wxLua_wxCollapsiblePaneEvent_constructor_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) && (wxLUA_USE_wxObject))||(wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE) - - { 0, 0, 0, 0 }, -}; - -int wxCollapsiblePaneEvent_methodCount = sizeof(wxCollapsiblePaneEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxCHECK_VERSION(2,8,0) && wxLUA_USE_wxCollapsiblePane && wxUSE_COLLPANE - - -#if wxLUA_USE_wxStaticBox && wxUSE_STATBOX -// --------------------------------------------------------------------------- -// Bind class wxStaticBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStaticBox' -int wxluatype_wxStaticBox = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBox_Create[] = { &wxluatype_wxStaticBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBox_Create[1] = {{ wxLua_wxStaticBox_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxStaticBox_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticBox"); -static int LUACALL wxLua_wxStaticBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticBox" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxStaticBox"))); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxStaticBox * self = (wxStaticBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticBox); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBox_constructor1[1] = {{ wxLua_wxStaticBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxStaticBox_constructor1 }}; -// wxStaticBox(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticBox"); -static int LUACALL wxLua_wxStaticBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticBox" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxStaticBox"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxStaticBox* returns = new wxStaticBox(parent, id, label, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBox); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - -static int LUACALL wxLua_wxStaticBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBox_constructor[1] = {{ wxLua_wxStaticBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStaticBox(); -static int LUACALL wxLua_wxStaticBox_constructor(lua_State *L) -{ - // call constructor - wxStaticBox* returns = new wxStaticBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBox); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX))||(wxLUA_USE_wxStaticBox && wxUSE_STATBOX) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBox_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - { wxLua_wxStaticBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxStaticBox_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - { wxLua_wxStaticBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxStaticBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStaticBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX))||(wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - -void wxLua_wxStaticBox_delete_function(void** p) -{ - wxStaticBox* o = (wxStaticBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStaticBox_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticBox_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX))||(wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - { "wxStaticBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStaticBox_constructor_overload, s_wxluafunc_wxLua_wxStaticBox_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticBox && wxUSE_STATBOX))||(wxLUA_USE_wxStaticBox && wxUSE_STATBOX) - - { 0, 0, 0, 0 }, -}; - -int wxStaticBox_methodCount = sizeof(wxStaticBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStaticBox && wxUSE_STATBOX - - -#if wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP -// --------------------------------------------------------------------------- -// Bind class wxStaticBitmap -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStaticBitmap' -int wxluatype_wxStaticBitmap = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBitmap_Create[] = { &wxluatype_wxStaticBitmap, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticBitmap_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBitmap_Create[1] = {{ wxLua_wxStaticBitmap_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxStaticBitmap_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxBitmap& label = wxNullBitmap, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticBitmap"); -static int LUACALL wxLua_wxStaticBitmap_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticBitmap" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxStaticBitmap"))); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap label = wxNullBitmap - const wxBitmap * label = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxStaticBitmap * self = (wxStaticBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticBitmap); - // call Create - bool returns = (self->Create(parent, id, *label, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBitmap_GetBitmap[] = { &wxluatype_wxStaticBitmap, NULL }; -static int LUACALL wxLua_wxStaticBitmap_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBitmap_GetBitmap[1] = {{ wxLua_wxStaticBitmap_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStaticBitmap_GetBitmap }}; -// wxBitmap GetBitmap() const; -static int LUACALL wxLua_wxStaticBitmap_GetBitmap(lua_State *L) -{ - // get this - wxStaticBitmap * self = (wxStaticBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticBitmap); - // call GetBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmap()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBitmap_SetBitmap[] = { &wxluatype_wxStaticBitmap, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxStaticBitmap_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBitmap_SetBitmap[1] = {{ wxLua_wxStaticBitmap_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStaticBitmap_SetBitmap }}; -// virtual void SetBitmap(const wxBitmap& label); -static int LUACALL wxLua_wxStaticBitmap_SetBitmap(lua_State *L) -{ - // const wxBitmap label - const wxBitmap * label = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxStaticBitmap * self = (wxStaticBitmap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticBitmap); - // call SetBitmap - self->SetBitmap(*label); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticBitmap_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxBitmap, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticBitmap_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBitmap_constructor1[1] = {{ wxLua_wxStaticBitmap_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxStaticBitmap_constructor1 }}; -// wxStaticBitmap(wxWindow* parent, wxWindowID id, const wxBitmap& label = wxNullBitmap, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticBitmap"); -static int LUACALL wxLua_wxStaticBitmap_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticBitmap" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxStaticBitmap"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxBitmap label = wxNullBitmap - const wxBitmap * label = (argCount >= 3 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap) : &wxNullBitmap); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxStaticBitmap* returns = new wxStaticBitmap(parent, id, *label, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBitmap); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - -static int LUACALL wxLua_wxStaticBitmap_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBitmap_constructor[1] = {{ wxLua_wxStaticBitmap_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStaticBitmap(); -static int LUACALL wxLua_wxStaticBitmap_constructor(lua_State *L) -{ - // call constructor - wxStaticBitmap* returns = new wxStaticBitmap(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticBitmap); - - return 1; -} - - - - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP))||(wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticBitmap_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - { wxLua_wxStaticBitmap_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxStaticBitmap_constructor1 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - { wxLua_wxStaticBitmap_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxStaticBitmap_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStaticBitmap_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP))||(wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - -void wxLua_wxStaticBitmap_delete_function(void** p) -{ - wxStaticBitmap* o = (wxStaticBitmap*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStaticBitmap_methods[] = { -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticBitmap_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticBitmap_GetBitmap, 1, NULL }, - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticBitmap_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP))||(wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - { "wxStaticBitmap", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStaticBitmap_constructor_overload, s_wxluafunc_wxLua_wxStaticBitmap_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP))||(wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP) - - { 0, 0, 0, 0 }, -}; - -int wxStaticBitmap_methodCount = sizeof(wxStaticBitmap_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStaticBitmap && wxUSE_STATBMP - - -#if wxLUA_USE_wxStaticText && wxUSE_STATTEXT -// --------------------------------------------------------------------------- -// Bind class wxStaticText -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStaticText' -int wxluatype_wxStaticText = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticText_Create[] = { &wxluatype_wxStaticText, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticText_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticText_Create[1] = {{ wxLua_wxStaticText_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxStaticText_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticText"); -static int LUACALL wxLua_wxStaticText_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticText" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxStaticText"))); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 4); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxStaticText * self = (wxStaticText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticText); - // call Create - bool returns = (self->Create(parent, id, label, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticText_Wrap[] = { &wxluatype_wxStaticText, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStaticText_Wrap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticText_Wrap[1] = {{ wxLua_wxStaticText_Wrap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStaticText_Wrap }}; -// void Wrap(int width); -static int LUACALL wxLua_wxStaticText_Wrap(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxStaticText * self = (wxStaticText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticText); - // call Wrap - self->Wrap(width); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticText_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticText_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticText_constructor1[1] = {{ wxLua_wxStaticText_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxStaticText_constructor1 }}; -// wxStaticText(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticText"); -static int LUACALL wxLua_wxStaticText_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticText" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxStaticText"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxStaticText* returns = new wxStaticText(parent, id, label, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticText); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - -static int LUACALL wxLua_wxStaticText_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticText_constructor[1] = {{ wxLua_wxStaticText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStaticText(); -static int LUACALL wxLua_wxStaticText_constructor(lua_State *L) -{ - // call constructor - wxStaticText* returns = new wxStaticText(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticText); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT))||(wxLUA_USE_wxStaticText && wxUSE_STATTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticText_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - { wxLua_wxStaticText_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxStaticText_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - { wxLua_wxStaticText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxStaticText_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStaticText_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT))||(wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - -void wxLua_wxStaticText_delete_function(void** p) -{ - wxStaticText* o = (wxStaticText*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStaticText_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticText_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - - { "Wrap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticText_Wrap, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT))||(wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - { "wxStaticText", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStaticText_constructor_overload, s_wxluafunc_wxLua_wxStaticText_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT))||(wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxStaticText_methodCount = sizeof(wxStaticText_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStaticText && wxUSE_STATTEXT - - -#if wxLUA_USE_wxStaticLine && wxUSE_STATLINE -// --------------------------------------------------------------------------- -// Bind class wxStaticLine -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStaticLine' -int wxluatype_wxStaticLine = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticLine_Create[] = { &wxluatype_wxStaticLine, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticLine_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticLine_Create[1] = {{ wxLua_wxStaticLine_Create, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxStaticLine_Create }}; -// bool Create(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = "wxStaticLine"); -static int LUACALL wxLua_wxStaticLine_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticLine" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("wxStaticLine"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxStaticLine * self = (wxStaticLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticLine); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - -static int LUACALL wxLua_wxStaticLine_GetDefaultSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticLine_GetDefaultSize[1] = {{ wxLua_wxStaticLine_GetDefaultSize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static int GetDefaultSize(); -static int LUACALL wxLua_wxStaticLine_GetDefaultSize(lua_State *L) -{ - // call GetDefaultSize - int returns = (wxStaticLine::GetDefaultSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticLine_IsVertical[] = { &wxluatype_wxStaticLine, NULL }; -static int LUACALL wxLua_wxStaticLine_IsVertical(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticLine_IsVertical[1] = {{ wxLua_wxStaticLine_IsVertical, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStaticLine_IsVertical }}; -// bool IsVertical() const; -static int LUACALL wxLua_wxStaticLine_IsVertical(lua_State *L) -{ - // get this - wxStaticLine * self = (wxStaticLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStaticLine); - // call IsVertical - bool returns = (self->IsVertical()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStaticLine_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStaticLine_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticLine_constructor1[1] = {{ wxLua_wxStaticLine_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxStaticLine_constructor1 }}; -// wxStaticLine(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxLI_HORIZONTAL, const wxString& name = "wxStaticLine"); -static int LUACALL wxLua_wxStaticLine_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStaticLine" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxStaticLine"))); - // long style = wxLI_HORIZONTAL - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxLI_HORIZONTAL); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxStaticLine* returns = new wxStaticLine(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticLine); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - -static int LUACALL wxLua_wxStaticLine_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticLine_constructor[1] = {{ wxLua_wxStaticLine_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxStaticLine(); -static int LUACALL wxLua_wxStaticLine_constructor(lua_State *L) -{ - // call constructor - wxStaticLine* returns = new wxStaticLine(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStaticLine); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE))||(wxLUA_USE_wxStaticLine && wxUSE_STATLINE) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStaticLine_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - { wxLua_wxStaticLine_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxStaticLine_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - { wxLua_wxStaticLine_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxStaticLine_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxStaticLine_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE))||(wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - -void wxLua_wxStaticLine_delete_function(void** p) -{ - wxStaticLine* o = (wxStaticLine*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStaticLine_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticLine_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - - { "GetDefaultSize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStaticLine_GetDefaultSize, 1, NULL }, - { "IsVertical", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStaticLine_IsVertical, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE))||(wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - { "wxStaticLine", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStaticLine_constructor_overload, s_wxluafunc_wxLua_wxStaticLine_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxStaticLine && wxUSE_STATLINE))||(wxLUA_USE_wxStaticLine && wxUSE_STATLINE) - - { 0, 0, 0, 0 }, -}; - -int wxStaticLine_methodCount = sizeof(wxStaticLine_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxStaticLine && wxUSE_STATLINE - diff --git a/wxLua/modules/wxbind/src/wxcore_wxlcore.cpp b/wxLua/modules/wxbind/src/wxcore_wxlcore.cpp index 5fa4826f..0e85e624 100644 --- a/wxLua/modules/wxbind/src/wxcore_wxlcore.cpp +++ b/wxLua/modules/wxbind/src/wxcore_wxlcore.cpp @@ -7,20 +7,20 @@ // Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include #endif -#include "wx/datetime.h" +#include -#include "wxbind/include/wxcore_wxlcore.h" -#include "wxbind/include/wxcore_bind.h" // for wxLua_wxObject_wxSize +#include +#include // for wxLua_wxObject_wxSize // ---------------------------------------------------------------------------- // wxLuaDataObjectSimple diff --git a/wxLua/modules/wxbind/src/wxgl_bind.cpp b/wxLua/modules/wxbind/src/wxgl_bind.cpp deleted file mode 100644 index 9a0c7058..00000000 --- a/wxLua/modules/wxbind/src/wxgl_bind.cpp +++ /dev/null @@ -1,1761 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxgl_gl.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxgl_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS -// --------------------------------------------------------------------------- -// Bind class wxGLCanvas -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGLCanvas' -int wxluatype_wxGLCanvas = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_IsDisplaySupported1[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxGLCanvas_IsDisplaySupported1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported1[1] = {{ wxLua_wxGLCanvas_IsDisplaySupported1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_IsDisplaySupported1 }}; -// static bool IsDisplaySupported(const int* attribList); -static int LUACALL wxLua_wxGLCanvas_IsDisplaySupported1(lua_State *L) -{ - // const int attribList - const int * attribList = (const int *)wxlua_touserdata(L, 1); - // call IsDisplaySupported - bool returns = (wxGLCanvas::IsDisplaySupported(attribList)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_IsDisplaySupported[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLCanvas_IsDisplaySupported(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported[1] = {{ wxLua_wxGLCanvas_IsDisplaySupported, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_IsDisplaySupported }}; -// static bool IsDisplaySupported(const wxGLAttributes& dispAttrs); -static int LUACALL wxLua_wxGLCanvas_IsDisplaySupported(lua_State *L) -{ - // const wxGLAttributes dispAttrs - const wxGLAttributes * dispAttrs = (const wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call IsDisplaySupported - bool returns = (wxGLCanvas::IsDisplaySupported(*dispAttrs)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_IsExtensionSupported[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGLCanvas_IsExtensionSupported(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_IsExtensionSupported[1] = {{ wxLua_wxGLCanvas_IsExtensionSupported, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_IsExtensionSupported }}; -// static bool IsExtensionSupported(const char *extension); -static int LUACALL wxLua_wxGLCanvas_IsExtensionSupported(lua_State *L) -{ - // const char extension - const char * extension = wxlua_getstringtype(L, 1); - // call IsExtensionSupported - bool returns = (wxGLCanvas::IsExtensionSupported(extension)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_SetColour[] = { &wxluatype_wxGLCanvas, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGLCanvas_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_SetColour[1] = {{ wxLua_wxGLCanvas_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLCanvas_SetColour }}; -// void SetColour(const wxString& colour); -static int LUACALL wxLua_wxGLCanvas_SetColour(lua_State *L) -{ - // const wxString colour - const wxString colour = wxlua_getwxStringtype(L, 2); - // get this - wxGLCanvas * self = (wxGLCanvas *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLCanvas); - // call SetColour - self->SetColour(colour); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent2[] = { &wxluatype_wxGLCanvas, &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLCanvas_SetCurrent2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_SetCurrent2[1] = {{ wxLua_wxGLCanvas_SetCurrent2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent2 }}; -// %wxchkver_3_1_1 bool SetCurrent(const wxGLContext& context) const; -static int LUACALL wxLua_wxGLCanvas_SetCurrent2(lua_State *L) -{ - // const wxGLContext context - const wxGLContext * context = (const wxGLContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLContext); - // get this - wxGLCanvas * self = (wxGLCanvas *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLCanvas); - // call SetCurrent - bool returns = (self->SetCurrent(*context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent1[] = { &wxluatype_wxGLCanvas, &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLCanvas_SetCurrent1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_SetCurrent1[1] = {{ wxLua_wxGLCanvas_SetCurrent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent1 }}; -// %wxchkver_2_8 && !%wxchkver_3_1_1 && !%mac void SetCurrent(const wxGLContext& RC) const; -static int LUACALL wxLua_wxGLCanvas_SetCurrent1(lua_State *L) -{ - // const wxGLContext RC - const wxGLContext * RC = (const wxGLContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLContext); - // get this - wxGLCanvas * self = (wxGLCanvas *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLCanvas); - // call SetCurrent - self->SetCurrent(*RC); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if (!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent[] = { &wxluatype_wxGLCanvas, NULL }; -static int LUACALL wxLua_wxGLCanvas_SetCurrent(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_SetCurrent[1] = {{ wxLua_wxGLCanvas_SetCurrent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent }}; -// !%wxchkver_3_1_1 && %mac void SetCurrent(); -static int LUACALL wxLua_wxGLCanvas_SetCurrent(lua_State *L) -{ - // get this - wxGLCanvas * self = (wxGLCanvas *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLCanvas); - // call SetCurrent - self->SetCurrent(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_SwapBuffers[] = { &wxluatype_wxGLCanvas, NULL }; -static int LUACALL wxLua_wxGLCanvas_SwapBuffers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_SwapBuffers[1] = {{ wxLua_wxGLCanvas_SwapBuffers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_SwapBuffers }}; -// void SwapBuffers(); -static int LUACALL wxLua_wxGLCanvas_SwapBuffers(lua_State *L) -{ - // get this - wxGLCanvas * self = (wxGLCanvas *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLCanvas); - // call SwapBuffers - self->SwapBuffers(); - - return 0; -} - - -#if ((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_constructor4[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TTABLE, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxGLCanvas_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_constructor4[1] = {{ wxLua_wxGLCanvas_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxGLCanvas_constructor4 }}; -// !%mac wxGLCanvas(wxWindow* parent, wxWindowID id = wxID_ANY, int attribList[] = 0, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=0, const wxString& name="GLCanvas", const wxPalette& palette = wxNullPalette); -static int LUACALL wxLua_wxGLCanvas_constructor4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 8 ? (const wxPalette *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPalette) : &wxNullPalette); - // const wxString name = "GLCanvas" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("GLCanvas"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // int attribList = 0 - int count = 0; wxLuaSmartIntArray attribList = (argCount >= 3 ? wxlua_getintarray(L, 3, count) : 0); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGLCanvas* returns = new wxGLCanvas(parent, id, attribList, *pos, *size, style, name, *palette); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLCanvas); - - return 1; -} - -#endif // ((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_constructor3[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TTABLE, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxGLCanvas_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_constructor3[1] = {{ wxLua_wxGLCanvas_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxGLCanvas_constructor3 }}; -// !%mac wxGLCanvas(wxWindow* parent, wxWindowID id = wxID_ANY, int attribList[] = 0, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=0, const wxString& name="GLCanvas", const wxPalette& palette = wxNullPalette); -static int LUACALL wxLua_wxGLCanvas_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 8 ? (const wxPalette *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPalette) : &wxNullPalette); - // const wxString name = "GLCanvas" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("GLCanvas"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // int attribList = 0 - int count = 0; wxLuaSmartIntArray attribList = (argCount >= 3 ? wxlua_getintarray(L, 3, count) : 0); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGLCanvas* returns = new wxGLCanvas(parent, id, attribList, *pos, *size, style, name, *palette); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLCanvas); - - return 1; -} - -#endif // ((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_constructor2[] = { &wxluatype_wxWindow, &wxluatype_wxGLCanvas, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TTABLE, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxGLCanvas_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_constructor2[1] = {{ wxLua_wxGLCanvas_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxGLCanvas_constructor2 }}; -// wxGLCanvas(wxWindow* parent, wxGLCanvas* sharedCanvas, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=0, const wxString& name="GLCanvas", int attribList[] = 0, const wxPalette& palette = wxNullPalette); -static int LUACALL wxLua_wxGLCanvas_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 9 ? (const wxPalette *)wxluaT_getuserdatatype(L, 9, wxluatype_wxPalette) : &wxNullPalette); - // int attribList = 0 - int count = 0; wxLuaSmartIntArray attribList = (argCount >= 8 ? wxlua_getintarray(L, 8, count) : 0); - // const wxString name = "GLCanvas" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("GLCanvas"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : -1); - // wxGLCanvas sharedCanvas - wxGLCanvas * sharedCanvas = (wxGLCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLCanvas); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGLCanvas* returns = new wxGLCanvas(parent, sharedCanvas, id, *pos, *size, style, name, attribList, *palette); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLCanvas); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_constructor1[] = { &wxluatype_wxWindow, &wxluatype_wxGLContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TTABLE, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxGLCanvas_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_constructor1[1] = {{ wxLua_wxGLCanvas_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxGLCanvas_constructor1 }}; -// wxGLCanvas(wxWindow* parent, wxGLContext* sharedContext, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=0, const wxString& name="GLCanvas", int attribList[] = 0, const wxPalette& palette = wxNullPalette); -static int LUACALL wxLua_wxGLCanvas_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 9 ? (const wxPalette *)wxluaT_getuserdatatype(L, 9, wxluatype_wxPalette) : &wxNullPalette); - // int attribList = 0 - int count = 0; wxLuaSmartIntArray attribList = (argCount >= 8 ? wxlua_getintarray(L, 8, count) : 0); - // const wxString name = "GLCanvas" - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("GLCanvas"))); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : -1); - // wxGLContext sharedContext - wxGLContext * sharedContext = (wxGLContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLContext); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGLCanvas* returns = new wxGLCanvas(parent, sharedContext, id, *pos, *size, style, name, attribList, *palette); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLCanvas); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLCanvas_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TTABLE, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxGLCanvas_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_constructor[1] = {{ wxLua_wxGLCanvas_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxGLCanvas_constructor }}; -// wxGLCanvas(wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style=0, const wxString& name="GLCanvas", int attribList[] = 0, const wxPalette& palette = wxNullPalette); -static int LUACALL wxLua_wxGLCanvas_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 8 ? (const wxPalette *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPalette) : &wxNullPalette); - // int attribList = 0 - int count = 0; wxLuaSmartIntArray attribList = (argCount >= 7 ? wxlua_getintarray(L, 7, count) : 0); - // const wxString name = "GLCanvas" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("GLCanvas"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxGLCanvas* returns = new wxGLCanvas(parent, id, *pos, *size, style, name, attribList, *palette); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLCanvas); - - return 1; -} - -#endif // ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - - - -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLCanvas_IsDisplaySupported1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_IsDisplaySupported1 }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLCanvas_IsDisplaySupported, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_IsDisplaySupported }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -}; -static int s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported_overload_count = sizeof(s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - -#if (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||((!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_SetCurrent_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLCanvas_SetCurrent2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent2 }, -#endif // ((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLCanvas_SetCurrent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent1 }, -#endif // ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if (!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLCanvas_SetCurrent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLCanvas_SetCurrent }, -#endif // (!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -}; -static int s_wxluafunc_wxLua_wxGLCanvas_SetCurrent_overload_count = sizeof(s_wxluafunc_wxLua_wxGLCanvas_SetCurrent_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||((!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - -#if (((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLCanvas_constructor_overload[] = -{ - -#if ((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGLCanvas_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxGLCanvas_constructor4 }, -#endif // ((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGLCanvas_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxGLCanvas_constructor3 }, -#endif // ((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGLCanvas_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxGLCanvas_constructor2 }, -#endif // ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGLCanvas_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxGLCanvas_constructor1 }, -#endif // ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - -#if ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxGLCanvas_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxGLCanvas_constructor }, -#endif // ((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxGLCanvas_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGLCanvas_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxGLCanvas_delete_function(void** p) -{ - wxGLCanvas* o = (wxGLCanvas*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGLCanvas_methods[] = { -#if ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - { "IsDisplaySupported", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported_overload, s_wxluafunc_wxLua_wxGLCanvas_IsDisplaySupported_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { "IsExtensionSupported", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxGLCanvas_IsExtensionSupported, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLCanvas_SetColour, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||((!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - { "SetCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLCanvas_SetCurrent_overload, s_wxluafunc_wxLua_wxGLCanvas_SetCurrent_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(3,1,1) && !defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||((!wxCHECK_VERSION(3,1,1) && defined(__WXMAC__)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - - { "SwapBuffers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLCanvas_SwapBuffers, 1, NULL }, - -#if (((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect)) - { "wxGLCanvas", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGLCanvas_constructor_overload, s_wxluafunc_wxLua_wxGLCanvas_constructor_overload_count, 0 }, -#endif // (((((!defined(__WXMAC__)) && ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!defined(__WXMAC__)) && ((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect))||(((((!wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE)) && (wxLUA_USE_wxPointSizeRect)) - - { 0, 0, 0, 0 }, -}; - -int wxGLCanvas_methodCount = sizeof(wxGLCanvas_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -// --------------------------------------------------------------------------- -// Bind class wxGLAttribsBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGLAttribsBase' -int wxluatype_wxGLAttribsBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_AddAttribBits[] = { &wxluatype_wxGLAttribsBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_AddAttribBits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_AddAttribBits[1] = {{ wxLua_wxGLAttribsBase_AddAttribBits, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGLAttribsBase_AddAttribBits }}; -// void AddAttribBits(int searchVal, int combineVal); -static int LUACALL wxLua_wxGLAttribsBase_AddAttribBits(lua_State *L) -{ - // int combineVal - int combineVal = (int)wxlua_getnumbertype(L, 3); - // int searchVal - int searchVal = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call AddAttribBits - self->AddAttribBits(searchVal, combineVal); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_AddAttribute[] = { &wxluatype_wxGLAttribsBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_AddAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_AddAttribute[1] = {{ wxLua_wxGLAttribsBase_AddAttribute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttribsBase_AddAttribute }}; -// void AddAttribute(int attribute); -static int LUACALL wxLua_wxGLAttribsBase_AddAttribute(lua_State *L) -{ - // int attribute - int attribute = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call AddAttribute - self->AddAttribute(attribute); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_GetGLAttrs[] = { &wxluatype_wxGLAttribsBase, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_GetGLAttrs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_GetGLAttrs[1] = {{ wxLua_wxGLAttribsBase_GetGLAttrs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttribsBase_GetGLAttrs }}; -// const int* GetGLAttrs() const; -static int LUACALL wxLua_wxGLAttribsBase_GetGLAttrs(lua_State *L) -{ - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call GetGLAttrs - const int* returns = (const int*)self->GetGLAttrs(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_GetSize[] = { &wxluatype_wxGLAttribsBase, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_GetSize[1] = {{ wxLua_wxGLAttribsBase_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttribsBase_GetSize }}; -// int GetSize(); -static int LUACALL wxLua_wxGLAttribsBase_GetSize(lua_State *L) -{ - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call GetSize - int returns = (self->GetSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_NeedsARB[] = { &wxluatype_wxGLAttribsBase, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_NeedsARB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_NeedsARB[1] = {{ wxLua_wxGLAttribsBase_NeedsARB, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttribsBase_NeedsARB }}; -// bool NeedsARB() const; -static int LUACALL wxLua_wxGLAttribsBase_NeedsARB(lua_State *L) -{ - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call NeedsARB - bool returns = (self->NeedsARB()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_Reset[] = { &wxluatype_wxGLAttribsBase, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_Reset[1] = {{ wxLua_wxGLAttribsBase_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttribsBase_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxGLAttribsBase_Reset(lua_State *L) -{ - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttribsBase_SetNeedsARB[] = { &wxluatype_wxGLAttribsBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxGLAttribsBase_SetNeedsARB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_SetNeedsARB[1] = {{ wxLua_wxGLAttribsBase_SetNeedsARB, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGLAttribsBase_SetNeedsARB }}; -// void SetNeedsARB(bool needsARB = true); -static int LUACALL wxLua_wxGLAttribsBase_SetNeedsARB(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool needsARB = true - bool needsARB = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxGLAttribsBase * self = (wxGLAttribsBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttribsBase); - // call SetNeedsARB - self->SetNeedsARB(needsARB); - - return 0; -} - -static int LUACALL wxLua_wxGLAttribsBase_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttribsBase_constructor[1] = {{ wxLua_wxGLAttribsBase_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGLAttribsBase(); -static int LUACALL wxLua_wxGLAttribsBase_constructor(lua_State *L) -{ - // call constructor - wxGLAttribsBase* returns = new wxGLAttribsBase(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttribsBase); - - return 1; -} - - - - -void wxLua_wxGLAttribsBase_delete_function(void** p) -{ - wxGLAttribsBase* o = (wxGLAttribsBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGLAttribsBase_methods[] = { - { "AddAttribBits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_AddAttribBits, 1, NULL }, - { "AddAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_AddAttribute, 1, NULL }, - { "GetGLAttrs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_GetGLAttrs, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_GetSize, 1, NULL }, - { "NeedsARB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_NeedsARB, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_Reset, 1, NULL }, - { "SetNeedsARB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttribsBase_SetNeedsARB, 1, NULL }, - { "wxGLAttribsBase", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGLAttribsBase_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGLAttribsBase_methodCount = sizeof(wxGLAttribsBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -// --------------------------------------------------------------------------- -// Bind class wxGLAttributes -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGLAttributes' -int wxluatype_wxGLAttributes = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_AuxBuffers[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_AuxBuffers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_AuxBuffers[1] = {{ wxLua_wxGLAttributes_AuxBuffers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_AuxBuffers }}; -// wxGLAttributes& AuxBuffers(int val); -static int LUACALL wxLua_wxGLAttributes_AuxBuffers(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call AuxBuffers - wxGLAttributes* returns = (wxGLAttributes*)&self->AuxBuffers(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_BufferSize[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_BufferSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_BufferSize[1] = {{ wxLua_wxGLAttributes_BufferSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_BufferSize }}; -// wxGLAttributes& BufferSize(int val); -static int LUACALL wxLua_wxGLAttributes_BufferSize(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call BufferSize - wxGLAttributes* returns = (wxGLAttributes*)&self->BufferSize(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_Defaults[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_Defaults(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_Defaults[1] = {{ wxLua_wxGLAttributes_Defaults, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_Defaults }}; -// wxGLAttributes& Defaults(); -static int LUACALL wxLua_wxGLAttributes_Defaults(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call Defaults - wxGLAttributes* returns = (wxGLAttributes*)&self->Defaults(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_Depth[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_Depth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_Depth[1] = {{ wxLua_wxGLAttributes_Depth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_Depth }}; -// wxGLAttributes& Depth(int val); -static int LUACALL wxLua_wxGLAttributes_Depth(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call Depth - wxGLAttributes* returns = (wxGLAttributes*)&self->Depth(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_DoubleBuffer[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_DoubleBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_DoubleBuffer[1] = {{ wxLua_wxGLAttributes_DoubleBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_DoubleBuffer }}; -// wxGLAttributes& DoubleBuffer(); -static int LUACALL wxLua_wxGLAttributes_DoubleBuffer(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call DoubleBuffer - wxGLAttributes* returns = (wxGLAttributes*)&self->DoubleBuffer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_EndList[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_EndList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_EndList[1] = {{ wxLua_wxGLAttributes_EndList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_EndList }}; -// void EndList(); -static int LUACALL wxLua_wxGLAttributes_EndList(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call EndList - self->EndList(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_FrameBuffersRGB[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_FrameBuffersRGB(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_FrameBuffersRGB[1] = {{ wxLua_wxGLAttributes_FrameBuffersRGB, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_FrameBuffersRGB }}; -// wxGLAttributes& FrameBuffersRGB(); -static int LUACALL wxLua_wxGLAttributes_FrameBuffersRGB(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call FrameBuffersRGB - wxGLAttributes* returns = (wxGLAttributes*)&self->FrameBuffersRGB(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_Level[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_Level(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_Level[1] = {{ wxLua_wxGLAttributes_Level, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_Level }}; -// wxGLAttributes& Level(int val); -static int LUACALL wxLua_wxGLAttributes_Level(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call Level - wxGLAttributes* returns = (wxGLAttributes*)&self->Level(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_MinAcumRGBA[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_MinAcumRGBA(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_MinAcumRGBA[1] = {{ wxLua_wxGLAttributes_MinAcumRGBA, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGLAttributes_MinAcumRGBA }}; -// wxGLAttributes& MinAcumRGBA(int mRed, int mGreen, int mBlue, int mAlpha); -static int LUACALL wxLua_wxGLAttributes_MinAcumRGBA(lua_State *L) -{ - // int mAlpha - int mAlpha = (int)wxlua_getnumbertype(L, 5); - // int mBlue - int mBlue = (int)wxlua_getnumbertype(L, 4); - // int mGreen - int mGreen = (int)wxlua_getnumbertype(L, 3); - // int mRed - int mRed = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call MinAcumRGBA - wxGLAttributes* returns = (wxGLAttributes*)&self->MinAcumRGBA(mRed, mGreen, mBlue, mAlpha); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_MinRGBA[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_MinRGBA(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_MinRGBA[1] = {{ wxLua_wxGLAttributes_MinRGBA, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxGLAttributes_MinRGBA }}; -// wxGLAttributes& MinRGBA(int mRed, int mGreen, int mBlue, int mAlpha); -static int LUACALL wxLua_wxGLAttributes_MinRGBA(lua_State *L) -{ - // int mAlpha - int mAlpha = (int)wxlua_getnumbertype(L, 5); - // int mBlue - int mBlue = (int)wxlua_getnumbertype(L, 4); - // int mGreen - int mGreen = (int)wxlua_getnumbertype(L, 3); - // int mRed - int mRed = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call MinRGBA - wxGLAttributes* returns = (wxGLAttributes*)&self->MinRGBA(mRed, mGreen, mBlue, mAlpha); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_PlatformDefaults[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_PlatformDefaults(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_PlatformDefaults[1] = {{ wxLua_wxGLAttributes_PlatformDefaults, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_PlatformDefaults }}; -// wxGLAttributes& PlatformDefaults(); -static int LUACALL wxLua_wxGLAttributes_PlatformDefaults(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call PlatformDefaults - wxGLAttributes* returns = (wxGLAttributes*)&self->PlatformDefaults(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_RGBA[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_RGBA(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_RGBA[1] = {{ wxLua_wxGLAttributes_RGBA, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_RGBA }}; -// wxGLAttributes& RGBA(); -static int LUACALL wxLua_wxGLAttributes_RGBA(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call RGBA - wxGLAttributes* returns = (wxGLAttributes*)&self->RGBA(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_SampleBuffers[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_SampleBuffers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_SampleBuffers[1] = {{ wxLua_wxGLAttributes_SampleBuffers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_SampleBuffers }}; -// wxGLAttributes& SampleBuffers(int val); -static int LUACALL wxLua_wxGLAttributes_SampleBuffers(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call SampleBuffers - wxGLAttributes* returns = (wxGLAttributes*)&self->SampleBuffers(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_Samplers[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_Samplers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_Samplers[1] = {{ wxLua_wxGLAttributes_Samplers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_Samplers }}; -// wxGLAttributes& Samplers(int val); -static int LUACALL wxLua_wxGLAttributes_Samplers(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call Samplers - wxGLAttributes* returns = (wxGLAttributes*)&self->Samplers(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_Stencil[] = { &wxluatype_wxGLAttributes, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLAttributes_Stencil(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_Stencil[1] = {{ wxLua_wxGLAttributes_Stencil, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLAttributes_Stencil }}; -// wxGLAttributes& Stencil(int val); -static int LUACALL wxLua_wxGLAttributes_Stencil(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call Stencil - wxGLAttributes* returns = (wxGLAttributes*)&self->Stencil(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLAttributes_Stereo[] = { &wxluatype_wxGLAttributes, NULL }; -static int LUACALL wxLua_wxGLAttributes_Stereo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_Stereo[1] = {{ wxLua_wxGLAttributes_Stereo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLAttributes_Stereo }}; -// wxGLAttributes& Stereo(); -static int LUACALL wxLua_wxGLAttributes_Stereo(lua_State *L) -{ - // get this - wxGLAttributes * self = (wxGLAttributes *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLAttributes); - // call Stereo - wxGLAttributes* returns = (wxGLAttributes*)&self->Stereo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - -static int LUACALL wxLua_wxGLAttributes_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLAttributes_constructor[1] = {{ wxLua_wxGLAttributes_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGLAttributes(); -static int LUACALL wxLua_wxGLAttributes_constructor(lua_State *L) -{ - // call constructor - wxGLAttributes* returns = new wxGLAttributes(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLAttributes); - - return 1; -} - - - - -void wxLua_wxGLAttributes_delete_function(void** p) -{ - wxGLAttributes* o = (wxGLAttributes*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGLAttributes_methods[] = { - { "AuxBuffers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_AuxBuffers, 1, NULL }, - { "BufferSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_BufferSize, 1, NULL }, - { "Defaults", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_Defaults, 1, NULL }, - { "Depth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_Depth, 1, NULL }, - { "DoubleBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_DoubleBuffer, 1, NULL }, - { "EndList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_EndList, 1, NULL }, - { "FrameBuffersRGB", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_FrameBuffersRGB, 1, NULL }, - { "Level", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_Level, 1, NULL }, - { "MinAcumRGBA", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_MinAcumRGBA, 1, NULL }, - { "MinRGBA", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_MinRGBA, 1, NULL }, - { "PlatformDefaults", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_PlatformDefaults, 1, NULL }, - { "RGBA", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_RGBA, 1, NULL }, - { "SampleBuffers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_SampleBuffers, 1, NULL }, - { "Samplers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_Samplers, 1, NULL }, - { "Stencil", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_Stencil, 1, NULL }, - { "Stereo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLAttributes_Stereo, 1, NULL }, - { "wxGLAttributes", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGLAttributes_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGLAttributes_methodCount = sizeof(wxGLAttributes_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -// --------------------------------------------------------------------------- -// Bind class wxGLContextAttrs -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGLContextAttrs' -int wxluatype_wxGLContextAttrs = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_CompatibilityProfile[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_CompatibilityProfile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_CompatibilityProfile[1] = {{ wxLua_wxGLContextAttrs_CompatibilityProfile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_CompatibilityProfile }}; -// wxGLContextAttrs& CompatibilityProfile(); -static int LUACALL wxLua_wxGLContextAttrs_CompatibilityProfile(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call CompatibilityProfile - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->CompatibilityProfile(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_CoreProfile[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_CoreProfile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_CoreProfile[1] = {{ wxLua_wxGLContextAttrs_CoreProfile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_CoreProfile }}; -// wxGLContextAttrs& CoreProfile(); -static int LUACALL wxLua_wxGLContextAttrs_CoreProfile(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call CoreProfile - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->CoreProfile(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_DebugCtx[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_DebugCtx(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_DebugCtx[1] = {{ wxLua_wxGLContextAttrs_DebugCtx, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_DebugCtx }}; -// wxGLContextAttrs& DebugCtx(); -static int LUACALL wxLua_wxGLContextAttrs_DebugCtx(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call DebugCtx - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->DebugCtx(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_ES2[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_ES2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_ES2[1] = {{ wxLua_wxGLContextAttrs_ES2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_ES2 }}; -// wxGLContextAttrs& ES2(); -static int LUACALL wxLua_wxGLContextAttrs_ES2(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call ES2 - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->ES2(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_EndList[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_EndList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_EndList[1] = {{ wxLua_wxGLContextAttrs_EndList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_EndList }}; -// void EndList(); -static int LUACALL wxLua_wxGLContextAttrs_EndList(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call EndList - self->EndList(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_ForwardCompatible[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_ForwardCompatible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_ForwardCompatible[1] = {{ wxLua_wxGLContextAttrs_ForwardCompatible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_ForwardCompatible }}; -// wxGLContextAttrs& ForwardCompatible(); -static int LUACALL wxLua_wxGLContextAttrs_ForwardCompatible(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call ForwardCompatible - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->ForwardCompatible(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_LoseOnReset[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_LoseOnReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_LoseOnReset[1] = {{ wxLua_wxGLContextAttrs_LoseOnReset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_LoseOnReset }}; -// wxGLContextAttrs& LoseOnReset(); -static int LUACALL wxLua_wxGLContextAttrs_LoseOnReset(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call LoseOnReset - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->LoseOnReset(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_MajorVersion[] = { &wxluatype_wxGLContextAttrs, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_MajorVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_MajorVersion[1] = {{ wxLua_wxGLContextAttrs_MajorVersion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLContextAttrs_MajorVersion }}; -// wxGLContextAttrs& MajorVersion(int val); -static int LUACALL wxLua_wxGLContextAttrs_MajorVersion(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call MajorVersion - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->MajorVersion(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_MinorVersion[] = { &wxluatype_wxGLContextAttrs, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_MinorVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_MinorVersion[1] = {{ wxLua_wxGLContextAttrs_MinorVersion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLContextAttrs_MinorVersion }}; -// wxGLContextAttrs& MinorVersion(int val); -static int LUACALL wxLua_wxGLContextAttrs_MinorVersion(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call MinorVersion - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->MinorVersion(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_NoResetNotify[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_NoResetNotify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_NoResetNotify[1] = {{ wxLua_wxGLContextAttrs_NoResetNotify, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_NoResetNotify }}; -// wxGLContextAttrs& NoResetNotify(); -static int LUACALL wxLua_wxGLContextAttrs_NoResetNotify(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call NoResetNotify - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->NoResetNotify(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_OGLVersion[] = { &wxluatype_wxGLContextAttrs, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_OGLVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_OGLVersion[1] = {{ wxLua_wxGLContextAttrs_OGLVersion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxGLContextAttrs_OGLVersion }}; -// wxGLContextAttrs& OGLVersion(int vmayor, int vminor); -static int LUACALL wxLua_wxGLContextAttrs_OGLVersion(lua_State *L) -{ - // int vminor - int vminor = (int)wxlua_getnumbertype(L, 3); - // int vmayor - int vmayor = (int)wxlua_getnumbertype(L, 2); - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call OGLVersion - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->OGLVersion(vmayor, vminor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_PlatformDefaults[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_PlatformDefaults(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_PlatformDefaults[1] = {{ wxLua_wxGLContextAttrs_PlatformDefaults, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_PlatformDefaults }}; -// wxGLContextAttrs& PlatformDefaults(); -static int LUACALL wxLua_wxGLContextAttrs_PlatformDefaults(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call PlatformDefaults - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->PlatformDefaults(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_ReleaseFlush[] = { &wxluatype_wxGLContextAttrs, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_ReleaseFlush(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_ReleaseFlush[1] = {{ wxLua_wxGLContextAttrs_ReleaseFlush, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxGLContextAttrs_ReleaseFlush }}; -// wxGLContextAttrs& ReleaseFlush(int val = 1); -static int LUACALL wxLua_wxGLContextAttrs_ReleaseFlush(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int val = 1 - int val = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call ReleaseFlush - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->ReleaseFlush(val); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_ResetIsolation[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_ResetIsolation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_ResetIsolation[1] = {{ wxLua_wxGLContextAttrs_ResetIsolation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_ResetIsolation }}; -// wxGLContextAttrs& ResetIsolation(); -static int LUACALL wxLua_wxGLContextAttrs_ResetIsolation(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call ResetIsolation - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->ResetIsolation(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContextAttrs_Robust[] = { &wxluatype_wxGLContextAttrs, NULL }; -static int LUACALL wxLua_wxGLContextAttrs_Robust(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_Robust[1] = {{ wxLua_wxGLContextAttrs_Robust, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContextAttrs_Robust }}; -// wxGLContextAttrs& Robust(); -static int LUACALL wxLua_wxGLContextAttrs_Robust(lua_State *L) -{ - // get this - wxGLContextAttrs * self = (wxGLContextAttrs *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContextAttrs); - // call Robust - wxGLContextAttrs* returns = (wxGLContextAttrs*)&self->Robust(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - -static int LUACALL wxLua_wxGLContextAttrs_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContextAttrs_constructor[1] = {{ wxLua_wxGLContextAttrs_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxGLContextAttrs(); -static int LUACALL wxLua_wxGLContextAttrs_constructor(lua_State *L) -{ - // call constructor - wxGLContextAttrs* returns = new wxGLContextAttrs(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContextAttrs); - - return 1; -} - - - - -void wxLua_wxGLContextAttrs_delete_function(void** p) -{ - wxGLContextAttrs* o = (wxGLContextAttrs*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGLContextAttrs_methods[] = { - { "CompatibilityProfile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_CompatibilityProfile, 1, NULL }, - { "CoreProfile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_CoreProfile, 1, NULL }, - { "DebugCtx", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_DebugCtx, 1, NULL }, - { "ES2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_ES2, 1, NULL }, - { "EndList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_EndList, 1, NULL }, - { "ForwardCompatible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_ForwardCompatible, 1, NULL }, - { "LoseOnReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_LoseOnReset, 1, NULL }, - { "MajorVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_MajorVersion, 1, NULL }, - { "MinorVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_MinorVersion, 1, NULL }, - { "NoResetNotify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_NoResetNotify, 1, NULL }, - { "OGLVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_OGLVersion, 1, NULL }, - { "PlatformDefaults", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_PlatformDefaults, 1, NULL }, - { "ReleaseFlush", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_ReleaseFlush, 1, NULL }, - { "ResetIsolation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_ResetIsolation, 1, NULL }, - { "Robust", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContextAttrs_Robust, 1, NULL }, - { "wxGLContextAttrs", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGLContextAttrs_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxGLContextAttrs_methodCount = sizeof(wxGLContextAttrs_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - - -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS -// --------------------------------------------------------------------------- -// Bind class wxGLContext -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxGLContext' -int wxluatype_wxGLContext = WXLUA_TUNKNOWN; - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_GetWindow[] = { &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLContext_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_GetWindow[1] = {{ wxLua_wxGLContext_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContext_GetWindow }}; -// const wxWindow* GetWindow(); -static int LUACALL wxLua_wxGLContext_GetWindow(lua_State *L) -{ - // get this - wxGLContext * self = (wxGLContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContext); - // call GetWindow - const wxWindow* returns = (const wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_SetColour[] = { &wxluatype_wxGLContext, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxGLContext_SetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_SetColour[1] = {{ wxLua_wxGLContext_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLContext_SetColour }}; -// void SetColour(const wxString& colour); -static int LUACALL wxLua_wxGLContext_SetColour(lua_State *L) -{ - // const wxString colour - const wxString colour = wxlua_getwxStringtype(L, 2); - // get this - wxGLContext * self = (wxGLContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContext); - // call SetColour - self->SetColour(colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_SetCurrent2[] = { &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLContext_SetCurrent2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_SetCurrent2[1] = {{ wxLua_wxGLContext_SetCurrent2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContext_SetCurrent2 }}; -// void SetCurrent(); -static int LUACALL wxLua_wxGLContext_SetCurrent2(lua_State *L) -{ - // get this - wxGLContext * self = (wxGLContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContext); - // call SetCurrent - self->SetCurrent(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_SetCurrent1[] = { &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLContext_SetCurrent1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_SetCurrent1[1] = {{ wxLua_wxGLContext_SetCurrent1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContext_SetCurrent1 }}; -// %mac & !%wxchkver_2_9 void SetCurrent() const; -static int LUACALL wxLua_wxGLContext_SetCurrent1(lua_State *L) -{ - // get this - wxGLContext * self = (wxGLContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContext); - // call SetCurrent - self->SetCurrent(); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)) - -#if ((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_SetCurrent[] = { &wxluatype_wxGLContext, &wxluatype_wxGLCanvas, NULL }; -static int LUACALL wxLua_wxGLContext_SetCurrent(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_SetCurrent[1] = {{ wxLua_wxGLContext_SetCurrent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLContext_SetCurrent }}; -// !%mac | %wxchkver_2_9 void SetCurrent(const wxGLCanvas& win) const; -static int LUACALL wxLua_wxGLContext_SetCurrent(lua_State *L) -{ - // const wxGLCanvas win - const wxGLCanvas * win = (const wxGLCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLCanvas); - // get this - wxGLContext * self = (wxGLContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContext); - // call SetCurrent - self->SetCurrent(*win); - - return 0; -} - -#endif // ((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_SwapBuffers[] = { &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLContext_SwapBuffers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_SwapBuffers[1] = {{ wxLua_wxGLContext_SwapBuffers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContext_SwapBuffers }}; -// void SwapBuffers(); -static int LUACALL wxLua_wxGLContext_SwapBuffers(lua_State *L) -{ - // get this - wxGLContext * self = (wxGLContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLContext); - // call SwapBuffers - self->SwapBuffers(); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_constructor2[] = { &wxluatype_TBOOLEAN, &wxluatype_wxGLCanvas, &wxluatype_wxPalette, &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLContext_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_constructor2[1] = {{ wxLua_wxGLContext_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxGLContext_constructor2 }}; -// wxGLContext(bool isRGB, wxGLCanvas* win, const wxPalette& palette = wxNullPalette, const wxGLContext* other = NULL); -static int LUACALL wxLua_wxGLContext_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxGLContext other = NULL - const wxGLContext * other = (argCount >= 4 ? (const wxGLContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxGLContext) : NULL); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 3 ? (const wxPalette *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPalette) : &wxNullPalette); - // wxGLCanvas win - wxGLCanvas * win = (wxGLCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLCanvas); - // bool isRGB - bool isRGB = wxlua_getbooleantype(L, 1); - // call constructor - wxGLContext* returns = new wxGLContext(isRGB, win, *palette, other); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContext); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_constructor1[] = { &wxluatype_TBOOLEAN, &wxluatype_wxGLCanvas, &wxluatype_wxPalette, NULL }; -static int LUACALL wxLua_wxGLContext_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_constructor1[1] = {{ wxLua_wxGLContext_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxGLContext_constructor1 }}; -// wxGLContext(bool isRGB, wxGLCanvas* win, const wxPalette& palette = wxNullPalette); -static int LUACALL wxLua_wxGLContext_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPalette palette = wxNullPalette - const wxPalette * palette = (argCount >= 3 ? (const wxPalette *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPalette) : &wxNullPalette); - // wxGLCanvas win - wxGLCanvas * win = (wxGLCanvas *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLCanvas); - // bool isRGB - bool isRGB = wxlua_getbooleantype(L, 1); - // call constructor - wxGLContext* returns = new wxGLContext(isRGB, win, *palette); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContext); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if ((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxGLContext_constructor[] = { &wxluatype_wxGLCanvas, &wxluatype_wxGLContext, NULL }; -static int LUACALL wxLua_wxGLContext_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_constructor[1] = {{ wxLua_wxGLContext_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxGLContext_constructor }}; -// !%mac wxGLContext(wxGLCanvas *win, const wxGLContext* other = NULL); // FIXME -static int LUACALL wxLua_wxGLContext_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxGLContext other = NULL - const wxGLContext * other = (argCount >= 2 ? (const wxGLContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxGLContext) : NULL); - // wxGLCanvas win - wxGLCanvas * win = (wxGLCanvas *)wxluaT_getuserdatatype(L, 1, wxluatype_wxGLCanvas); - // call constructor - wxGLContext* returns = new wxGLContext(win, other); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxGLContext); - - return 1; -} - -#endif // ((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - - - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)))||(((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_SetCurrent_overload[] = -{ - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLContext_SetCurrent2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContext_SetCurrent2 }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)) - { wxLua_wxGLContext_SetCurrent1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxGLContext_SetCurrent1 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)) - -#if ((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLContext_SetCurrent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxGLContext_SetCurrent }, -#endif // ((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -}; -static int s_wxluafunc_wxLua_wxGLContext_SetCurrent_overload_count = sizeof(s_wxluafunc_wxLua_wxGLContext_SetCurrent_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)))||(((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - -#if ((((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxGLContext_constructor_overload[] = -{ - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { wxLua_wxGLContext_constructor2, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxGLContext_constructor2 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - { wxLua_wxGLContext_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxGLContext_constructor1 }, -#endif // (((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE) - -#if ((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxLua_wxGLContext_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxGLContext_constructor }, -#endif // ((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) -}; -static int s_wxluafunc_wxLua_wxGLContext_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxGLContext_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - -void wxLua_wxGLContext_delete_function(void** p) -{ - wxGLContext* o = (wxGLContext*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxGLContext_methods[] = { -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContext_GetWindow, 1, NULL }, - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContext_SetColour, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)))||(((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - { "SetCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContext_SetCurrent_overload, s_wxluafunc_wxLua_wxGLContext_SetCurrent_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (defined(__WXMAC__) && !wxCHECK_VERSION(2,9,0)))||(((!defined(__WXMAC__) || wxCHECK_VERSION(2,9,0)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { "SwapBuffers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxGLContext_SwapBuffers, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if ((((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - { "wxGLContext", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxGLContext_constructor_overload, s_wxluafunc_wxLua_wxGLContext_constructor_overload_count, 0 }, -#endif // ((((!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) && (wxLUA_USE_wxPalette && wxUSE_PALETTE))||(((!defined(__WXMAC__)) && ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS))) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS)) - - { 0, 0, 0, 0 }, -}; - -int wxGLContext_methodCount = sizeof(wxGLContext_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxgl_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxgl() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxgl(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxgl() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxgl(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - { "WX_GL_AUX_BUFFERS", WX_GL_AUX_BUFFERS }, - { "WX_GL_BUFFER_SIZE", WX_GL_BUFFER_SIZE }, - { "WX_GL_DEPTH_SIZE", WX_GL_DEPTH_SIZE }, - { "WX_GL_DOUBLEBUFFER", WX_GL_DOUBLEBUFFER }, - { "WX_GL_LEVEL", WX_GL_LEVEL }, - { "WX_GL_MIN_ACCUM_ALPHA", WX_GL_MIN_ACCUM_ALPHA }, - { "WX_GL_MIN_ACCUM_BLUE", WX_GL_MIN_ACCUM_BLUE }, - { "WX_GL_MIN_ACCUM_GREEN", WX_GL_MIN_ACCUM_GREEN }, - { "WX_GL_MIN_ACCUM_RED", WX_GL_MIN_ACCUM_RED }, - { "WX_GL_MIN_ALPHA", WX_GL_MIN_ALPHA }, - { "WX_GL_MIN_BLUE", WX_GL_MIN_BLUE }, - { "WX_GL_MIN_GREEN", WX_GL_MIN_GREEN }, - { "WX_GL_MIN_RED", WX_GL_MIN_RED }, - { "WX_GL_RGBA", WX_GL_RGBA }, - { "WX_GL_STENCIL_SIZE", WX_GL_STENCIL_SIZE }, - { "WX_GL_STEREO", WX_GL_STEREO }, -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxgl() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxgl(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxgl() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxgl(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxgl() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxgl() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxgl(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxgl() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxGLAttribsBase = "wxGLAttribsBase"; -static const char* wxluaclassname_wxGLAttributes = "wxGLAttributes"; -static const char* wxluaclassname_wxGLCanvas = "wxGLCanvas"; -static const char* wxluaclassname_wxGLContext = "wxGLContext"; -static const char* wxluaclassname_wxGLContextAttrs = "wxGLContextAttrs"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxWindow = "wxWindow"; - -static const char* wxluabaseclassnames_wxGLAttributes[] = { wxluaclassname_wxGLAttribsBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGLAttributes[] = { NULL }; -static const char* wxluabaseclassnames_wxGLCanvas[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGLCanvas[] = { NULL }; -static const char* wxluabaseclassnames_wxGLContext[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGLContext[] = { NULL }; -static const char* wxluabaseclassnames_wxGLContextAttrs[] = { wxluaclassname_wxGLAttribsBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxGLContextAttrs[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - extern wxLuaBindMethod wxGLAttribsBase_methods[]; - extern int wxGLAttribsBase_methodCount; - extern void wxLua_wxGLAttribsBase_delete_function(void** p); - extern wxLuaBindMethod wxGLAttributes_methods[]; - extern int wxGLAttributes_methodCount; - extern void wxLua_wxGLAttributes_delete_function(void** p); - extern wxLuaBindMethod wxGLContextAttrs_methods[]; - extern int wxGLContextAttrs_methodCount; - extern void wxLua_wxGLContextAttrs_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - extern wxLuaBindMethod wxGLCanvas_methods[]; - extern int wxGLCanvas_methodCount; - extern void wxLua_wxGLCanvas_delete_function(void** p); - extern wxLuaBindMethod wxGLContext_methods[]; - extern int wxGLContext_methodCount; - extern void wxLua_wxGLContext_delete_function(void** p); -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - - - - -wxLuaBindClass* wxLuaGetClassList_wxgl(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxluaclassname_wxGLAttribsBase, wxGLAttribsBase_methods, wxGLAttribsBase_methodCount, NULL, &wxluatype_wxGLAttribsBase, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxGLAttribsBase_delete_function, }, - { wxluaclassname_wxGLAttributes, wxGLAttributes_methods, wxGLAttributes_methodCount, NULL, &wxluatype_wxGLAttributes, wxluabaseclassnames_wxGLAttributes, wxluabaseclassbinds_wxGLAttributes, NULL, NULL, NULL, 0, &wxLua_wxGLAttributes_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - -#if wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - { wxluaclassname_wxGLCanvas, wxGLCanvas_methods, wxGLCanvas_methodCount, CLASSINFO(wxGLCanvas), &wxluatype_wxGLCanvas, wxluabaseclassnames_wxGLCanvas, wxluabaseclassbinds_wxGLCanvas, NULL, NULL, NULL, 0, &wxLua_wxGLCanvas_delete_function, }, - { wxluaclassname_wxGLContext, wxGLContext_methods, wxGLContext_methodCount, CLASSINFO(wxGLContext), &wxluatype_wxGLContext, wxluabaseclassnames_wxGLContext, wxluabaseclassbinds_wxGLContext, NULL, NULL, NULL, 0, &wxLua_wxGLContext_delete_function, }, -#endif // wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - { wxluaclassname_wxGLContextAttrs, wxGLContextAttrs_methods, wxGLContextAttrs_methodCount, NULL, &wxluatype_wxGLContextAttrs, wxluabaseclassnames_wxGLContextAttrs, wxluabaseclassbinds_wxGLContextAttrs, NULL, NULL, NULL, 0, &wxLua_wxGLContextAttrs_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxGLCanvas && wxUSE_GLCANVAS) - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxgl() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxgl, wxLuaBinding) - -wxLuaBinding_wxgl::wxLuaBinding_wxgl() : wxLuaBinding() -{ - m_bindingName = wxT("wxgl"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxgl(m_classCount); - m_numberArray = wxLuaGetDefineList_wxgl(m_numberCount); - m_stringArray = wxLuaGetStringList_wxgl(m_stringCount); - m_eventArray = wxLuaGetEventList_wxgl(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxgl(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxgl(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxgl_init() -{ - static wxLuaBinding_wxgl m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxhtml_bind.cpp b/wxLua/modules/wxbind/src/wxhtml_bind.cpp deleted file mode 100644 index 599873a3..00000000 --- a/wxLua/modules/wxbind/src/wxhtml_bind.cpp +++ /dev/null @@ -1,6740 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxhtml_html.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxhtml_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlRenderingInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlRenderingInfo' -int wxluatype_wxHtmlRenderingInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_GetSelection[] = { &wxluatype_wxHtmlRenderingInfo, NULL }; -static int LUACALL wxLua_wxHtmlRenderingInfo_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingInfo_GetSelection[1] = {{ wxLua_wxHtmlRenderingInfo_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_GetSelection }}; -// wxHtmlSelection *GetSelection() const; -static int LUACALL wxLua_wxHtmlRenderingInfo_GetSelection(lua_State *L) -{ - // get this - wxHtmlRenderingInfo * self = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingInfo); - // call GetSelection - wxHtmlSelection* returns = (wxHtmlSelection*)self->GetSelection(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_GetState[] = { &wxluatype_wxHtmlRenderingInfo, NULL }; -static int LUACALL wxLua_wxHtmlRenderingInfo_GetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingInfo_GetState[1] = {{ wxLua_wxHtmlRenderingInfo_GetState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_GetState }}; -// wxHtmlRenderingState& GetState(); -static int LUACALL wxLua_wxHtmlRenderingInfo_GetState(lua_State *L) -{ - // get this - wxHtmlRenderingInfo * self = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingInfo); - // call GetState - wxHtmlRenderingState* returns = (wxHtmlRenderingState*)&self->GetState(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlRenderingState); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_GetStyle[] = { &wxluatype_wxHtmlRenderingInfo, NULL }; -static int LUACALL wxLua_wxHtmlRenderingInfo_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingInfo_GetStyle[1] = {{ wxLua_wxHtmlRenderingInfo_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_GetStyle }}; -// wxHtmlRenderingStyle& GetStyle(); -static int LUACALL wxLua_wxHtmlRenderingInfo_GetStyle(lua_State *L) -{ - // get this - wxHtmlRenderingInfo * self = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingInfo); - // call GetStyle - wxHtmlRenderingStyle* returns = (wxHtmlRenderingStyle*)&self->GetStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlRenderingStyle); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_SetSelection[] = { &wxluatype_wxHtmlRenderingInfo, &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlRenderingInfo_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingInfo_SetSelection[1] = {{ wxLua_wxHtmlRenderingInfo_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_SetSelection }}; -// void SetSelection(wxHtmlSelection *s); -static int LUACALL wxLua_wxHtmlRenderingInfo_SetSelection(lua_State *L) -{ - // wxHtmlSelection s - wxHtmlSelection * s = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlSelection); - // get this - wxHtmlRenderingInfo * self = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingInfo); - // call SetSelection - self->SetSelection(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_SetStyle[] = { &wxluatype_wxHtmlRenderingInfo, &wxluatype_wxHtmlRenderingStyle, NULL }; -static int LUACALL wxLua_wxHtmlRenderingInfo_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingInfo_SetStyle[1] = {{ wxLua_wxHtmlRenderingInfo_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingInfo_SetStyle }}; -// void SetStyle(wxHtmlRenderingStyle *style); -static int LUACALL wxLua_wxHtmlRenderingInfo_SetStyle(lua_State *L) -{ - // wxHtmlRenderingStyle style - wxHtmlRenderingStyle * style = (wxHtmlRenderingStyle *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlRenderingStyle); - // get this - wxHtmlRenderingInfo * self = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingInfo); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -static int LUACALL wxLua_wxHtmlRenderingInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingInfo_constructor[1] = {{ wxLua_wxHtmlRenderingInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlRenderingInfo(); -static int LUACALL wxLua_wxHtmlRenderingInfo_constructor(lua_State *L) -{ - // call constructor - wxHtmlRenderingInfo* returns = new wxHtmlRenderingInfo(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlRenderingInfo); - - return 1; -} - - - - -void wxLua_wxHtmlRenderingInfo_delete_function(void** p) -{ - wxHtmlRenderingInfo* o = (wxHtmlRenderingInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlRenderingInfo_methods[] = { - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingInfo_GetSelection, 1, NULL }, - { "GetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingInfo_GetState, 1, NULL }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingInfo_GetStyle, 1, NULL }, - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingInfo_SetSelection, 1, NULL }, - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingInfo_SetStyle, 1, NULL }, - { "wxHtmlRenderingInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlRenderingInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlRenderingInfo_methodCount = sizeof(wxHtmlRenderingInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlRenderingStyle -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlRenderingStyle' -int wxluatype_wxHtmlRenderingStyle = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour[] = { &wxluatype_wxHtmlRenderingStyle, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour[1] = {{ wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour }}; -// virtual wxColour GetSelectedTextBgColour(const wxColour& clr); -static int LUACALL wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour(lua_State *L) -{ - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlRenderingStyle * self = (wxHtmlRenderingStyle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingStyle); - // call GetSelectedTextBgColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetSelectedTextBgColour(*clr)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingStyle_GetSelectedTextColour[] = { &wxluatype_wxHtmlRenderingStyle, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlRenderingStyle_GetSelectedTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingStyle_GetSelectedTextColour[1] = {{ wxLua_wxHtmlRenderingStyle_GetSelectedTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingStyle_GetSelectedTextColour }}; -// virtual wxColour GetSelectedTextColour(const wxColour& clr); -static int LUACALL wxLua_wxHtmlRenderingStyle_GetSelectedTextColour(lua_State *L) -{ - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlRenderingStyle * self = (wxHtmlRenderingStyle *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingStyle); - // call GetSelectedTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetSelectedTextColour(*clr)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - - -void wxLua_wxHtmlRenderingStyle_delete_function(void** p) -{ - wxHtmlRenderingStyle* o = (wxHtmlRenderingStyle*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlRenderingStyle_methods[] = { -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "GetSelectedTextBgColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingStyle_GetSelectedTextBgColour, 1, NULL }, - { "GetSelectedTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingStyle_GetSelectedTextColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlRenderingStyle_methodCount = sizeof(wxHtmlRenderingStyle_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlSelection -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlSelection' -int wxluatype_wxHtmlSelection = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_AreFromToCharacterPosSet[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_AreFromToCharacterPosSet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_AreFromToCharacterPosSet[1] = {{ wxLua_wxHtmlSelection_AreFromToCharacterPosSet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_AreFromToCharacterPosSet }}; -// bool AreFromToCharacterPosSet() const; -static int LUACALL wxLua_wxHtmlSelection_AreFromToCharacterPosSet(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call AreFromToCharacterPosSet - bool returns = (self->AreFromToCharacterPosSet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_ClearFromToCharacterPos[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_ClearFromToCharacterPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_ClearFromToCharacterPos[1] = {{ wxLua_wxHtmlSelection_ClearFromToCharacterPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_ClearFromToCharacterPos }}; -// void ClearFromToCharacterPos(); -static int LUACALL wxLua_wxHtmlSelection_ClearFromToCharacterPos(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call ClearFromToCharacterPos - self->ClearFromToCharacterPos(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_GetFromCell[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_GetFromCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_GetFromCell[1] = {{ wxLua_wxHtmlSelection_GetFromCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_GetFromCell }}; -// const wxHtmlCell *GetFromCell() const; -static int LUACALL wxLua_wxHtmlSelection_GetFromCell(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call GetFromCell - const wxHtmlCell* returns = (const wxHtmlCell*)self->GetFromCell(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_GetFromCharacterPos[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_GetFromCharacterPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_GetFromCharacterPos[1] = {{ wxLua_wxHtmlSelection_GetFromCharacterPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_GetFromCharacterPos }}; -// wxCoord GetFromCharacterPos () const; -static int LUACALL wxLua_wxHtmlSelection_GetFromCharacterPos(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call GetFromCharacterPos - wxCoord returns = (self->GetFromCharacterPos()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_GetFromPos[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_GetFromPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_GetFromPos[1] = {{ wxLua_wxHtmlSelection_GetFromPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_GetFromPos }}; -// const wxPoint& GetFromPos() const; -static int LUACALL wxLua_wxHtmlSelection_GetFromPos(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call GetFromPos - const wxPoint* returns = (const wxPoint*)&self->GetFromPos(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_GetToCell[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_GetToCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_GetToCell[1] = {{ wxLua_wxHtmlSelection_GetToCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_GetToCell }}; -// const wxHtmlCell *GetToCell() const; -static int LUACALL wxLua_wxHtmlSelection_GetToCell(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call GetToCell - const wxHtmlCell* returns = (const wxHtmlCell*)self->GetToCell(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_GetToCharacterPos[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_GetToCharacterPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_GetToCharacterPos[1] = {{ wxLua_wxHtmlSelection_GetToCharacterPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_GetToCharacterPos }}; -// wxCoord GetToCharacterPos () const; -static int LUACALL wxLua_wxHtmlSelection_GetToCharacterPos(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call GetToCharacterPos - wxCoord returns = (self->GetToCharacterPos()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_GetToPos[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_GetToPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_GetToPos[1] = {{ wxLua_wxHtmlSelection_GetToPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_GetToPos }}; -// const wxPoint& GetToPos() const; -static int LUACALL wxLua_wxHtmlSelection_GetToPos(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call GetToPos - const wxPoint* returns = (const wxPoint*)&self->GetToPos(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_IsEmpty[] = { &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlSelection_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_IsEmpty[1] = {{ wxLua_wxHtmlSelection_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlSelection_IsEmpty }}; -// bool IsEmpty() const; -static int LUACALL wxLua_wxHtmlSelection_IsEmpty(lua_State *L) -{ - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_Set1[] = { &wxluatype_wxHtmlSelection, &wxluatype_wxHtmlCell, &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlSelection_Set1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_Set1[1] = {{ wxLua_wxHtmlSelection_Set1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlSelection_Set1 }}; -// void Set(const wxHtmlCell *fromCell, const wxHtmlCell *toCell); -static int LUACALL wxLua_wxHtmlSelection_Set1(lua_State *L) -{ - // const wxHtmlCell toCell - const wxHtmlCell * toCell = (const wxHtmlCell *)wxluaT_getuserdatatype(L, 3, wxluatype_wxHtmlCell); - // const wxHtmlCell fromCell - const wxHtmlCell * fromCell = (const wxHtmlCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlCell); - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call Set - self->Set(fromCell, toCell); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_Set[] = { &wxluatype_wxHtmlSelection, &wxluatype_wxPoint, &wxluatype_wxHtmlCell, &wxluatype_wxPoint, &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlSelection_Set(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_Set[1] = {{ wxLua_wxHtmlSelection_Set, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxHtmlSelection_Set }}; -// void Set(const wxPoint& fromPos, const wxHtmlCell *fromCell, const wxPoint& toPos, const wxHtmlCell *toCell); -static int LUACALL wxLua_wxHtmlSelection_Set(lua_State *L) -{ - // const wxHtmlCell toCell - const wxHtmlCell * toCell = (const wxHtmlCell *)wxluaT_getuserdatatype(L, 5, wxluatype_wxHtmlCell); - // const wxPoint toPos - const wxPoint * toPos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // const wxHtmlCell fromCell - const wxHtmlCell * fromCell = (const wxHtmlCell *)wxluaT_getuserdatatype(L, 3, wxluatype_wxHtmlCell); - // const wxPoint fromPos - const wxPoint * fromPos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call Set - self->Set(*fromPos, fromCell, *toPos, toCell); - - return 0; -} - -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_SetFromCharacterPos[] = { &wxluatype_wxHtmlSelection, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlSelection_SetFromCharacterPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_SetFromCharacterPos[1] = {{ wxLua_wxHtmlSelection_SetFromCharacterPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlSelection_SetFromCharacterPos }}; -// void SetFromCharacterPos (wxCoord pos); -static int LUACALL wxLua_wxHtmlSelection_SetFromCharacterPos(lua_State *L) -{ - // wxCoord pos - wxCoord pos = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call SetFromCharacterPos - self->SetFromCharacterPos(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlSelection_SetToCharacterPos[] = { &wxluatype_wxHtmlSelection, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlSelection_SetToCharacterPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_SetToCharacterPos[1] = {{ wxLua_wxHtmlSelection_SetToCharacterPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlSelection_SetToCharacterPos }}; -// void SetToCharacterPos (wxCoord pos); -static int LUACALL wxLua_wxHtmlSelection_SetToCharacterPos(lua_State *L) -{ - // wxCoord pos - wxCoord pos = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxHtmlSelection * self = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlSelection); - // call SetToCharacterPos - self->SetToCharacterPos(pos); - - return 0; -} - -static int LUACALL wxLua_wxHtmlSelection_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_constructor[1] = {{ wxLua_wxHtmlSelection_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlSelection(); -static int LUACALL wxLua_wxHtmlSelection_constructor(lua_State *L) -{ - // call constructor - wxHtmlSelection* returns = new wxHtmlSelection(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlSelection); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlSelection_Set_overload[] = -{ - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxLua_wxHtmlSelection_Set1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlSelection_Set1 }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHtmlSelection_Set, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxHtmlSelection_Set }, -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxHtmlSelection_Set_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlSelection_Set_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect)) - -void wxLua_wxHtmlSelection_delete_function(void** p) -{ - wxHtmlSelection* o = (wxHtmlSelection*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlSelection_methods[] = { - { "AreFromToCharacterPosSet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_AreFromToCharacterPosSet, 1, NULL }, - { "ClearFromToCharacterPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_ClearFromToCharacterPos, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetFromCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_GetFromCell, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetFromCharacterPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_GetFromCharacterPos, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "GetFromPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_GetFromPos, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetToCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_GetToCell, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetToCharacterPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_GetToCharacterPos, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "GetToPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_GetToPos, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_IsEmpty, 1, NULL }, - -#if (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect)) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_Set_overload, s_wxluafunc_wxLua_wxHtmlSelection_Set_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||((((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect)) - - { "SetFromCharacterPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_SetFromCharacterPos, 1, NULL }, - { "SetToCharacterPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlSelection_SetToCharacterPos, 1, NULL }, - { "wxHtmlSelection", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlSelection_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlSelection_methodCount = sizeof(wxHtmlSelection_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlRenderingState -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlRenderingState' -int wxluatype_wxHtmlRenderingState = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetBgColour[] = { &wxluatype_wxHtmlRenderingState, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_GetBgColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_GetBgColour[1] = {{ wxLua_wxHtmlRenderingState_GetBgColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetBgColour }}; -// const wxColour& GetBgColour() const; -static int LUACALL wxLua_wxHtmlRenderingState_GetBgColour(lua_State *L) -{ - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call GetBgColour - const wxColour* returns = (const wxColour*)&self->GetBgColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetBgMode[] = { &wxluatype_wxHtmlRenderingState, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_GetBgMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_GetBgMode[1] = {{ wxLua_wxHtmlRenderingState_GetBgMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetBgMode }}; -// int GetBgMode() const; -static int LUACALL wxLua_wxHtmlRenderingState_GetBgMode(lua_State *L) -{ - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call GetBgMode - int returns = (self->GetBgMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetFgColour[] = { &wxluatype_wxHtmlRenderingState, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_GetFgColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_GetFgColour[1] = {{ wxLua_wxHtmlRenderingState_GetFgColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetFgColour }}; -// const wxColour& GetFgColour() const; -static int LUACALL wxLua_wxHtmlRenderingState_GetFgColour(lua_State *L) -{ - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call GetFgColour - const wxColour* returns = (const wxColour*)&self->GetFgColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetSelectionState[] = { &wxluatype_wxHtmlRenderingState, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_GetSelectionState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_GetSelectionState[1] = {{ wxLua_wxHtmlRenderingState_GetSelectionState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlRenderingState_GetSelectionState }}; -// wxHtmlSelectionState GetSelectionState() const; -static int LUACALL wxLua_wxHtmlRenderingState_GetSelectionState(lua_State *L) -{ - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call GetSelectionState - wxHtmlSelectionState returns = (self->GetSelectionState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetBgColour[] = { &wxluatype_wxHtmlRenderingState, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_SetBgColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_SetBgColour[1] = {{ wxLua_wxHtmlRenderingState_SetBgColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetBgColour }}; -// void SetBgColour(const wxColour& c); -static int LUACALL wxLua_wxHtmlRenderingState_SetBgColour(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call SetBgColour - self->SetBgColour(*c); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetBgMode[] = { &wxluatype_wxHtmlRenderingState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_SetBgMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_SetBgMode[1] = {{ wxLua_wxHtmlRenderingState_SetBgMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetBgMode }}; -// void SetBgMode(int m); -static int LUACALL wxLua_wxHtmlRenderingState_SetBgMode(lua_State *L) -{ - // int m - int m = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call SetBgMode - self->SetBgMode(m); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetFgColour[] = { &wxluatype_wxHtmlRenderingState, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_SetFgColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_SetFgColour[1] = {{ wxLua_wxHtmlRenderingState_SetFgColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetFgColour }}; -// void SetFgColour(const wxColour& c); -static int LUACALL wxLua_wxHtmlRenderingState_SetFgColour(lua_State *L) -{ - // const wxColour c - const wxColour * c = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call SetFgColour - self->SetFgColour(*c); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetSelectionState[] = { &wxluatype_wxHtmlRenderingState, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHtmlRenderingState_SetSelectionState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_SetSelectionState[1] = {{ wxLua_wxHtmlRenderingState_SetSelectionState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlRenderingState_SetSelectionState }}; -// void SetSelectionState(wxHtmlSelectionState s); -static int LUACALL wxLua_wxHtmlRenderingState_SetSelectionState(lua_State *L) -{ - // wxHtmlSelectionState s - wxHtmlSelectionState s = (wxHtmlSelectionState)wxlua_getenumtype(L, 2); - // get this - wxHtmlRenderingState * self = (wxHtmlRenderingState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlRenderingState); - // call SetSelectionState - self->SetSelectionState(s); - - return 0; -} - -static int LUACALL wxLua_wxHtmlRenderingState_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlRenderingState_constructor[1] = {{ wxLua_wxHtmlRenderingState_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlRenderingState(); -static int LUACALL wxLua_wxHtmlRenderingState_constructor(lua_State *L) -{ - // call constructor - wxHtmlRenderingState* returns = new wxHtmlRenderingState(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlRenderingState); - - return 1; -} - - - - -void wxLua_wxHtmlRenderingState_delete_function(void** p) -{ - wxHtmlRenderingState* o = (wxHtmlRenderingState*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlRenderingState_methods[] = { -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "GetBgColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_GetBgColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - { "GetBgMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_GetBgMode, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "GetFgColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_GetFgColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - { "GetSelectionState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_GetSelectionState, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "SetBgColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_SetBgColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - { "SetBgMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_SetBgMode, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "SetFgColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_SetFgColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - { "SetSelectionState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlRenderingState_SetSelectionState, 1, NULL }, - { "wxHtmlRenderingState", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlRenderingState_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlRenderingState_methodCount = sizeof(wxHtmlRenderingState_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlCell' -int wxluatype_wxHtmlCell = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak2[] = { &wxluatype_wxHtmlCell, &wxluatype_TLIGHTUSERDATA, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak2[1] = {{ wxLua_wxHtmlCell_AdjustPagebreak2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak2 }}; -// %wxchkver_3_1_2 virtual bool AdjustPagebreak(int* pagebreak, int pageHeight); // %override parameters -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak2(lua_State *L) -{ - // int pageHeight - int pageHeight = (int)wxlua_getnumbertype(L, 3); - // int pagebreak - int * pagebreak = (int *)wxlua_touserdata(L, 2); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call AdjustPagebreak - bool returns = (self->AdjustPagebreak(pagebreak, pageHeight)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak1[] = { &wxluatype_wxHtmlCell, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxArrayInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak1[1] = {{ wxLua_wxHtmlCell_AdjustPagebreak1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak1 }}; -// %wxchkver_2_9_4 && !%wxchkver_3_1_2 virtual bool AdjustPagebreak(int* pagebreak, wxArrayInt& known_pagebreaks, int pageHeight); -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak1(lua_State *L) -{ - // int pageHeight - int pageHeight = (int)wxlua_getnumbertype(L, 4); - // wxArrayInt known_pagebreaks - wxArrayInt * known_pagebreaks = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // int pagebreak - int * pagebreak = (int *)wxlua_touserdata(L, 2); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call AdjustPagebreak - bool returns = (self->AdjustPagebreak(pagebreak, *known_pagebreaks, pageHeight)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - -#if ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak[] = { &wxluatype_wxHtmlCell, &wxluatype_TNUMBER, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak[1] = {{ wxLua_wxHtmlCell_AdjustPagebreak, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak }}; -// %override wxLua_wxHtmlCell_AdjustPagebreak -// virtual bool AdjustPagebreak(int * pagebreak) - -#if !wxCHECK_VERSION(2, 7, 0) -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak(lua_State *L) -{ - // int * pagebreak - int pagebreak = (int)wxlua_getintegertype(L, 2); - // get this - wxHtmlCell *self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call AdjustPagebreak - bool returns = self->AdjustPagebreak(&pagebreak); - // push the result number - lua_pushboolean(L, returns); - // - lua_pushinteger(L, pagebreak); - // return the number of parameters - return 2; -} -#elif wxCHECK_VERSION(2, 8, 0) && !wxCHECK_VERSION(2, 9, 4) -// virtual bool AdjustPagebreak(int * pagebreak, wxArrayInt& known_pagebreaks) -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak(lua_State *L) -{ - // wxArrayInt& known_pagebreaks - wxArrayInt* known_pagebreaks = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // int * pagebreak - int pagebreak = (int)wxlua_getintegertype(L, 2); - // get this - wxHtmlCell *self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call AdjustPagebreak - bool returns = self->AdjustPagebreak(&pagebreak, *known_pagebreaks); - // push the result number - lua_pushboolean(L, returns); - // - lua_pushinteger(L, pagebreak); - // return the number of parameters - return 2; -} -#elif wxCHECK_VERSION(2, 9, 4) && !wxCHECK_VERSION(3, 1, 2) -// virtual bool AdjustPagebreak(int * pagebreak, wxArrayInt& known_pagebreaks, int pageHeight) -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak(lua_State *L) -{ - // int pageHeight - int pageHeight = (int)wxlua_getintegertype(L, 4); - // wxArrayInt& known_pagebreaks - wxArrayInt* known_pagebreaks = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // int * pagebreak - int pagebreak = (int)wxlua_getintegertype(L, 2); - // get this - wxHtmlCell *self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call AdjustPagebreak - bool returns = self->AdjustPagebreak(&pagebreak, *known_pagebreaks, pageHeight); - // push the result number - lua_pushboolean(L, returns); - // - lua_pushinteger(L, pagebreak); - // return the number of parameters - return 2; -} -#elif wxCHECK_VERSION(3, 1, 2) -// virtual bool AdjustPagebreak(int * pagebreak, int pageHeight) -static int LUACALL wxLua_wxHtmlCell_AdjustPagebreak(lua_State *L) -{ - // int pageHeight - int pageHeight = (int)wxlua_getintegertype(L, 3); - // int * pagebreak - int pagebreak = (int)wxlua_getintegertype(L, 2); - // get this - wxHtmlCell *self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call AdjustPagebreak - bool returns = self->AdjustPagebreak(&pagebreak, pageHeight); - // push the result number - lua_pushboolean(L, returns); - // - lua_pushinteger(L, pagebreak); - // return the number of parameters - return 2; -} -#endif - - -#endif // ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_ConvertToText[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlSelection, NULL }; -static int LUACALL wxLua_wxHtmlCell_ConvertToText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_ConvertToText[1] = {{ wxLua_wxHtmlCell_ConvertToText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_ConvertToText }}; -// %wxchkver_3_1_2 wxString ConvertToText(wxHtmlSelection* sel) const; -static int LUACALL wxLua_wxHtmlCell_ConvertToText(lua_State *L) -{ - // wxHtmlSelection sel - wxHtmlSelection * sel = (wxHtmlSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlSelection); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call ConvertToText - wxString returns = (self->ConvertToText(sel)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_Draw[] = { &wxluatype_wxHtmlCell, &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxHtmlRenderingInfo, NULL }; -static int LUACALL wxLua_wxHtmlCell_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_Draw[1] = {{ wxLua_wxHtmlCell_Draw, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxHtmlCell_Draw }}; -// %wxchkver_3_1_2 void Draw(wxDC& dc, int x, int y, int view_y1, int view_y2, wxHtmlRenderingInfo& info); -static int LUACALL wxLua_wxHtmlCell_Draw(lua_State *L) -{ - // wxHtmlRenderingInfo info - wxHtmlRenderingInfo * info = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 7, wxluatype_wxHtmlRenderingInfo); - // int view_y2 - int view_y2 = (int)wxlua_getnumbertype(L, 6); - // int view_y1 - int view_y1 = (int)wxlua_getnumbertype(L, 5); - // int y - int y = (int)wxlua_getnumbertype(L, 4); - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call Draw - self->Draw(*dc, x, y, view_y1, view_y2, *info); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_DrawInvisible[] = { &wxluatype_wxHtmlCell, &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxHtmlRenderingInfo, NULL }; -static int LUACALL wxLua_wxHtmlCell_DrawInvisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_DrawInvisible[1] = {{ wxLua_wxHtmlCell_DrawInvisible, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxHtmlCell_DrawInvisible }}; -// %wxchkver_3_1_2 void DrawInvisible(wxDC& dc, int x , int y, wxHtmlRenderingInfo& info); -static int LUACALL wxLua_wxHtmlCell_DrawInvisible(lua_State *L) -{ - // wxHtmlRenderingInfo info - wxHtmlRenderingInfo * info = (wxHtmlRenderingInfo *)wxluaT_getuserdatatype(L, 5, wxluatype_wxHtmlRenderingInfo); - // int y - int y = (int)wxlua_getnumbertype(L, 4); - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call DrawInvisible - self->DrawInvisible(*dc, x, y, *info); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_Find[] = { &wxluatype_wxHtmlCell, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxHtmlCell_Find(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_Find[1] = {{ wxLua_wxHtmlCell_Find, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_Find }}; -// %override wxLua_wxHtmlCell_Find -// virtual const wxHtmlCell* Find(int condition, void *param = 0) -static int LUACALL wxLua_wxHtmlCell_Find(lua_State *L) -{ - const wxHtmlCell *returns = NULL; - // int condition - int condition = (int)wxlua_getintegertype(L, 2); - // get this - wxHtmlCell *self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call Find - switch(lua_type(L, 3)) - { - case LUA_TNIL: - returns = self->Find(condition, NULL); - break; - - case LUA_TSTRING: - { - wxString param = wxlua_getwxStringtype(L, 3); - returns = self->Find(condition, ¶m); - } - break; - - case LUA_TNUMBER: - { - int param = (int)wxlua_getnumbertype(L, 3); - returns = self->Find(condition, ¶m); - } - break; - - default: - wxlua_argerror(L, 3, wxT("a 'nil', 'string', or a 'number'")); - break; - } - - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - // return the number of parameters - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_FindCellByPos[] = { &wxluatype_wxHtmlCell, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlCell_FindCellByPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_FindCellByPos[1] = {{ wxLua_wxHtmlCell_FindCellByPos, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_FindCellByPos }}; -// %wxchkver_3_1_2 wxHtmlCell *FindCellByPos(wxCoord x, wxCoord y, unsigned flags = wxHTML_FIND_EXACT) const; -static int LUACALL wxLua_wxHtmlCell_FindCellByPos(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call FindCellByPos - wxHtmlCell* returns = (wxHtmlCell*)self->FindCellByPos(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetDescent[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetDescent[1] = {{ wxLua_wxHtmlCell_GetDescent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetDescent }}; -// int GetDescent() const; -static int LUACALL wxLua_wxHtmlCell_GetDescent(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetDescent - int returns = (self->GetDescent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetFirstChild[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetFirstChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetFirstChild[1] = {{ wxLua_wxHtmlCell_GetFirstChild, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetFirstChild }}; -// wxHtmlCell* GetFirstChild(); -static int LUACALL wxLua_wxHtmlCell_GetFirstChild(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetFirstChild - wxHtmlCell* returns = (wxHtmlCell*)self->GetFirstChild(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetHeight[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetHeight[1] = {{ wxLua_wxHtmlCell_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetHeight }}; -// int GetHeight() const; -static int LUACALL wxLua_wxHtmlCell_GetHeight(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetHeight - int returns = (self->GetHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetId[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetId[1] = {{ wxLua_wxHtmlCell_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetId }}; -// virtual wxString GetId() const; -static int LUACALL wxLua_wxHtmlCell_GetId(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetId - wxString returns = (self->GetId()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetLink[] = { &wxluatype_wxHtmlCell, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetLink[1] = {{ wxLua_wxHtmlCell_GetLink, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxHtmlCell_GetLink }}; -// virtual wxHtmlLinkInfo* GetLink(int x = 0, int y = 0) const; -static int LUACALL wxLua_wxHtmlCell_GetLink(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int y = 0 - int y = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int x = 0 - int x = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetLink - wxHtmlLinkInfo* returns = (wxHtmlLinkInfo*)self->GetLink(x, y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlLinkInfo); - - return 1; -} - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetMouseCursor[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlWindowInterface, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetMouseCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetMouseCursor[1] = {{ wxLua_wxHtmlCell_GetMouseCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_GetMouseCursor }}; -// %wxchkver_3_1_2 wxCursor GetMouseCursor(wxHtmlWindowInterface* window) const; -static int LUACALL wxLua_wxHtmlCell_GetMouseCursor(lua_State *L) -{ - // wxHtmlWindowInterface window - wxHtmlWindowInterface * window = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlWindowInterface); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetMouseCursor - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetMouseCursor(window)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor) - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetMouseCursorAt[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlWindowInterface, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetMouseCursorAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetMouseCursorAt[1] = {{ wxLua_wxHtmlCell_GetMouseCursorAt, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_GetMouseCursorAt }}; -// %wxchkver_3_1_2 wxCursor GetMouseCursorAt(wxHtmlWindowInterface* window, const wxPoint& rePos) const; -static int LUACALL wxLua_wxHtmlCell_GetMouseCursorAt(lua_State *L) -{ - // const wxPoint rePos - const wxPoint * rePos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxHtmlWindowInterface window - wxHtmlWindowInterface * window = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlWindowInterface); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetMouseCursorAt - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetMouseCursorAt(window, *rePos)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetNext[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetNext[1] = {{ wxLua_wxHtmlCell_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetNext }}; -// wxHtmlCell* GetNext() const; -static int LUACALL wxLua_wxHtmlCell_GetNext(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetNext - wxHtmlCell* returns = (wxHtmlCell*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetParent[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetParent[1] = {{ wxLua_wxHtmlCell_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetParent }}; -// wxHtmlContainerCell* GetParent() const; -static int LUACALL wxLua_wxHtmlCell_GetParent(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetParent - wxHtmlContainerCell* returns = (wxHtmlContainerCell*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetPosX[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetPosX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetPosX[1] = {{ wxLua_wxHtmlCell_GetPosX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetPosX }}; -// int GetPosX() const; -static int LUACALL wxLua_wxHtmlCell_GetPosX(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetPosX - int returns = (self->GetPosX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetPosY[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetPosY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetPosY[1] = {{ wxLua_wxHtmlCell_GetPosY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetPosY }}; -// int GetPosY() const; -static int LUACALL wxLua_wxHtmlCell_GetPosY(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetPosY - int returns = (self->GetPosY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_GetWidth[] = { &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_GetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_GetWidth[1] = {{ wxLua_wxHtmlCell_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_GetWidth }}; -// int GetWidth() const; -static int LUACALL wxLua_wxHtmlCell_GetWidth(lua_State *L) -{ - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call GetWidth - int returns = (self->GetWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_Layout[] = { &wxluatype_wxHtmlCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlCell_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_Layout[1] = {{ wxLua_wxHtmlCell_Layout, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_Layout }}; -// virtual void Layout(int w); -static int LUACALL wxLua_wxHtmlCell_Layout(lua_State *L) -{ - // int w - int w = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call Layout - self->Layout(w); - - return 0; -} - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_ProcessMouseClick[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlWindowInterface, &wxluatype_wxPoint, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxHtmlCell_ProcessMouseClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_ProcessMouseClick[1] = {{ wxLua_wxHtmlCell_ProcessMouseClick, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxHtmlCell_ProcessMouseClick }}; -// bool ProcessMouseClick(wxHtmlWindowInterface* window, const wxPoint& pos, const wxMouseEvent& event); -static int LUACALL wxLua_wxHtmlCell_ProcessMouseClick(lua_State *L) -{ - // const wxMouseEvent event - const wxMouseEvent * event = (const wxMouseEvent *)wxluaT_getuserdatatype(L, 4, wxluatype_wxMouseEvent); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxHtmlWindowInterface window - wxHtmlWindowInterface * window = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlWindowInterface); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call ProcessMouseClick - bool returns = (self->ProcessMouseClick(window, *pos, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_SetId[] = { &wxluatype_wxHtmlCell, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlCell_SetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_SetId[1] = {{ wxLua_wxHtmlCell_SetId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_SetId }}; -// void SetId(const wxString& id); -static int LUACALL wxLua_wxHtmlCell_SetId(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call SetId - self->SetId(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_SetLink[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlCell_SetLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_SetLink[1] = {{ wxLua_wxHtmlCell_SetLink, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_SetLink }}; -// void SetLink(const wxHtmlLinkInfo& link); -static int LUACALL wxLua_wxHtmlCell_SetLink(lua_State *L) -{ - // const wxHtmlLinkInfo link - const wxHtmlLinkInfo * link = (const wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlLinkInfo); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call SetLink - self->SetLink(*link); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_SetNext[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_SetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_SetNext[1] = {{ wxLua_wxHtmlCell_SetNext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_SetNext }}; -// void SetNext(wxHtmlCell* cell); -static int LUACALL wxLua_wxHtmlCell_SetNext(lua_State *L) -{ - // wxHtmlCell cell - wxHtmlCell * cell = (wxHtmlCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlCell); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call SetNext - self->SetNext(cell); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_SetParent[] = { &wxluatype_wxHtmlCell, &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlCell_SetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_SetParent[1] = {{ wxLua_wxHtmlCell_SetParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCell_SetParent }}; -// void SetParent(wxHtmlContainerCell* p); -static int LUACALL wxLua_wxHtmlCell_SetParent(lua_State *L) -{ - // wxHtmlContainerCell p - wxHtmlContainerCell * p = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlContainerCell); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call SetParent - self->SetParent(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_SetPos[] = { &wxluatype_wxHtmlCell, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlCell_SetPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_SetPos[1] = {{ wxLua_wxHtmlCell_SetPos, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_SetPos }}; -// void SetPos(int x, int y); -static int LUACALL wxLua_wxHtmlCell_SetPos(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlCell * self = (wxHtmlCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCell); - // call SetPos - self->SetPos(x, y); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCell_delete[] = { &wxluatype_wxHtmlCell, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCell_delete }}; - -static int LUACALL wxLua_wxHtmlCell_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_constructor[1] = {{ wxLua_wxHtmlCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlCell(); -static int LUACALL wxLua_wxHtmlCell_constructor(lua_State *L) -{ - // call constructor - wxHtmlCell* returns = new wxHtmlCell(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlCell); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxLua_wxHtmlCell_AdjustPagebreak2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak2 }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxHtmlCell_AdjustPagebreak1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak1 }, -#endif // ((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - -#if ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxHtmlCell_AdjustPagebreak, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlCell_AdjustPagebreak }, -#endif // ((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) -}; -static int s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt)) - -void wxLua_wxHtmlCell_delete_function(void** p) -{ - wxHtmlCell* o = (wxHtmlCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlCell_methods[] = { -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt)) - { "AdjustPagebreak", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak_overload, s_wxluafunc_wxLua_wxHtmlCell_AdjustPagebreak_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,4) && !wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||(((wxCHECK_VERSION(2,8,0) && !wxCHECK_VERSION(2,9,4)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt)) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "ConvertToText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_ConvertToText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxDC) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_Draw, 1, NULL }, - { "DrawInvisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_DrawInvisible, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxDC) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "Find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_Find, 1, NULL }, - { "FindCellByPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_FindCellByPos, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetDescent, 1, NULL }, - { "GetFirstChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetFirstChild, 1, NULL }, - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetHeight, 1, NULL }, - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetId, 1, NULL }, - { "GetLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetLink, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor) - { "GetMouseCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetMouseCursor, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor) - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) - { "GetMouseCursorAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetMouseCursorAt, 1, NULL }, -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))) && (wxLUA_USE_wxCursor)) && (wxLUA_USE_wxPointSizeRect) - - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetNext, 1, NULL }, - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetParent, 1, NULL }, - { "GetPosX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetPosX, 1, NULL }, - { "GetPosY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetPosY, 1, NULL }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_GetWidth, 1, NULL }, - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_Layout, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "ProcessMouseClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_ProcessMouseClick, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - - { "SetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_SetId, 1, NULL }, - { "SetLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_SetLink, 1, NULL }, - { "SetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_SetNext, 1, NULL }, - { "SetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_SetParent, 1, NULL }, - { "SetPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCell_SetPos, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlCell_delete, 1, NULL }, - { "wxHtmlCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlCell_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlCell_methodCount = sizeof(wxHtmlCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlWidgetCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlWidgetCell' -int wxluatype_wxHtmlWidgetCell = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWidgetCell_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWidgetCell_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWidgetCell_constructor[1] = {{ wxLua_wxHtmlWidgetCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxHtmlWidgetCell_constructor }}; -// wxHtmlWidgetCell(wxWindow* wnd, int w = 0); -static int LUACALL wxLua_wxHtmlWidgetCell_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int w = 0 - int w = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxHtmlWidgetCell* returns = new wxHtmlWidgetCell(wnd, w); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlWidgetCell); - - return 1; -} - - - - -void wxLua_wxHtmlWidgetCell_delete_function(void** p) -{ - wxHtmlWidgetCell* o = (wxHtmlWidgetCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlWidgetCell_methods[] = { - { "wxHtmlWidgetCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlWidgetCell_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlWidgetCell_methodCount = sizeof(wxHtmlWidgetCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlContainerCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlContainerCell' -int wxluatype_wxHtmlContainerCell = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetAlignHor[] = { &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_GetAlignHor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_GetAlignHor[1] = {{ wxLua_wxHtmlContainerCell_GetAlignHor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetAlignHor }}; -// int GetAlignHor() const; -static int LUACALL wxLua_wxHtmlContainerCell_GetAlignHor(lua_State *L) -{ - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call GetAlignHor - int returns = (self->GetAlignHor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetAlignVer[] = { &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_GetAlignVer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_GetAlignVer[1] = {{ wxLua_wxHtmlContainerCell_GetAlignVer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetAlignVer }}; -// int GetAlignVer() const; -static int LUACALL wxLua_wxHtmlContainerCell_GetAlignVer(lua_State *L) -{ - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call GetAlignVer - int returns = (self->GetAlignVer()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetBackgroundColour[] = { &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_GetBackgroundColour[1] = {{ wxLua_wxHtmlContainerCell_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetBackgroundColour }}; -// wxColour GetBackgroundColour(); -static int LUACALL wxLua_wxHtmlContainerCell_GetBackgroundColour(lua_State *L) -{ - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call GetBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetIndent[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_GetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_GetIndent[1] = {{ wxLua_wxHtmlContainerCell_GetIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetIndent }}; -// int GetIndent(int ind) const; -static int LUACALL wxLua_wxHtmlContainerCell_GetIndent(lua_State *L) -{ - // int ind - int ind = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call GetIndent - int returns = (self->GetIndent(ind)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetIndentUnits[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_GetIndentUnits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_GetIndentUnits[1] = {{ wxLua_wxHtmlContainerCell_GetIndentUnits, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_GetIndentUnits }}; -// int GetIndentUnits(int ind) const; -static int LUACALL wxLua_wxHtmlContainerCell_GetIndentUnits(lua_State *L) -{ - // int ind - int ind = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call GetIndentUnits - int returns = (self->GetIndentUnits(ind)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_InsertCell[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_wxHtmlCell, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_InsertCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_InsertCell[1] = {{ wxLua_wxHtmlContainerCell_InsertCell, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_InsertCell }}; -// void InsertCell(wxHtmlCell *cell); -static int LUACALL wxLua_wxHtmlContainerCell_InsertCell(lua_State *L) -{ - // wxHtmlCell cell - wxHtmlCell * cell = (wxHtmlCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlCell); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call InsertCell - self->InsertCell(cell); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetAlign[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetAlign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetAlign[1] = {{ wxLua_wxHtmlContainerCell_SetAlign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetAlign }}; -// void SetAlign(const wxHtmlTag& tag); -static int LUACALL wxLua_wxHtmlContainerCell_SetAlign(lua_State *L) -{ - // const wxHtmlTag tag - const wxHtmlTag * tag = (const wxHtmlTag *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlTag); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetAlign - self->SetAlign(*tag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetAlignHor[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetAlignHor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetAlignHor[1] = {{ wxLua_wxHtmlContainerCell_SetAlignHor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetAlignHor }}; -// void SetAlignHor(int al); -static int LUACALL wxLua_wxHtmlContainerCell_SetAlignHor(lua_State *L) -{ - // int al - int al = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetAlignHor - self->SetAlignHor(al); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetAlignVer[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetAlignVer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetAlignVer[1] = {{ wxLua_wxHtmlContainerCell_SetAlignVer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetAlignVer }}; -// void SetAlignVer(int al); -static int LUACALL wxLua_wxHtmlContainerCell_SetAlignVer(lua_State *L) -{ - // int al - int al = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetAlignVer - self->SetAlignVer(al); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetBackgroundColour[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetBackgroundColour[1] = {{ wxLua_wxHtmlContainerCell_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& clr); -static int LUACALL wxLua_wxHtmlContainerCell_SetBackgroundColour(lua_State *L) -{ - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetBackgroundColour - self->SetBackgroundColour(*clr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetBorder[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetBorder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetBorder[1] = {{ wxLua_wxHtmlContainerCell_SetBorder, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetBorder }}; -// void SetBorder(const wxColour& clr1, const wxColour& clr2); -static int LUACALL wxLua_wxHtmlContainerCell_SetBorder(lua_State *L) -{ - // const wxColour clr2 - const wxColour * clr2 = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxColour clr1 - const wxColour * clr1 = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetBorder - self->SetBorder(*clr1, *clr2); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetIndent[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetIndent[1] = {{ wxLua_wxHtmlContainerCell_SetIndent, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetIndent }}; -// void SetIndent(int i, int what, int units = wxHTML_UNITS_PIXELS); -static int LUACALL wxLua_wxHtmlContainerCell_SetIndent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int units = wxHTML_UNITS_PIXELS - int units = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxHTML_UNITS_PIXELS); - // int what - int what = (int)wxlua_getnumbertype(L, 3); - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetIndent - self->SetIndent(i, what, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetMinHeight[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetMinHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetMinHeight[1] = {{ wxLua_wxHtmlContainerCell_SetMinHeight, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetMinHeight }}; -// void SetMinHeight(int h, int align = wxHTML_ALIGN_TOP); -static int LUACALL wxLua_wxHtmlContainerCell_SetMinHeight(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int align = wxHTML_ALIGN_TOP - int align = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxHTML_ALIGN_TOP); - // int h - int h = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetMinHeight - self->SetMinHeight(h, align); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetWidthFloat1[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_wxHtmlTag, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetWidthFloat1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat1[1] = {{ wxLua_wxHtmlContainerCell_SetWidthFloat1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetWidthFloat1 }}; -// void SetWidthFloat(const wxHtmlTag& tag, double pixel_scale = 1.0); -static int LUACALL wxLua_wxHtmlContainerCell_SetWidthFloat1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double pixel_scale = 1.0 - double pixel_scale = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 1.0); - // const wxHtmlTag tag - const wxHtmlTag * tag = (const wxHtmlTag *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlTag); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetWidthFloat - self->SetWidthFloat(*tag, pixel_scale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetWidthFloat[] = { &wxluatype_wxHtmlContainerCell, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_SetWidthFloat(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat[1] = {{ wxLua_wxHtmlContainerCell_SetWidthFloat, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetWidthFloat }}; -// void SetWidthFloat(int w, int units); -static int LUACALL wxLua_wxHtmlContainerCell_SetWidthFloat(lua_State *L) -{ - // int units - int units = (int)wxlua_getnumbertype(L, 3); - // int w - int w = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlContainerCell * self = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call SetWidthFloat - self->SetWidthFloat(w, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlContainerCell_constructor[] = { &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlContainerCell_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_constructor[1] = {{ wxLua_wxHtmlContainerCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxHtmlContainerCell_constructor }}; -// wxHtmlContainerCell(wxHtmlContainerCell *parent); -static int LUACALL wxLua_wxHtmlContainerCell_constructor(lua_State *L) -{ - // wxHtmlContainerCell parent - wxHtmlContainerCell * parent = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlContainerCell); - // call constructor - wxHtmlContainerCell* returns = new wxHtmlContainerCell(parent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - - - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat_overload[] = -{ - { wxLua_wxHtmlContainerCell_SetWidthFloat1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetWidthFloat1 }, - { wxLua_wxHtmlContainerCell_SetWidthFloat, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlContainerCell_SetWidthFloat }, -}; -static int s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) - -void wxLua_wxHtmlContainerCell_delete_function(void** p) -{ - wxHtmlContainerCell* o = (wxHtmlContainerCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlContainerCell_methods[] = { - { "GetAlignHor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_GetAlignHor, 1, NULL }, - { "GetAlignVer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_GetAlignVer, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_GetIndent, 1, NULL }, - { "GetIndentUnits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_GetIndentUnits, 1, NULL }, - { "InsertCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_InsertCell, 1, NULL }, - { "SetAlign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetAlign, 1, NULL }, - { "SetAlignHor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetAlignHor, 1, NULL }, - { "SetAlignVer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetAlignVer, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetBackgroundColour, 1, NULL }, - { "SetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetBorder, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetIndent, 1, NULL }, - { "SetMinHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetMinHeight, 1, NULL }, - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetWidthFloat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat_overload, s_wxluafunc_wxLua_wxHtmlContainerCell_SetWidthFloat_overload_count, 0 }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "wxHtmlContainerCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlContainerCell_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlContainerCell_methodCount = sizeof(wxHtmlContainerCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlColourCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlColourCell' -int wxluatype_wxHtmlColourCell = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlColourCell_constructor[] = { &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlColourCell_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlColourCell_constructor[1] = {{ wxLua_wxHtmlColourCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxHtmlColourCell_constructor }}; -// wxHtmlColourCell(const wxColour& clr, int flags = wxHTML_CLR_FOREGROUND); -static int LUACALL wxLua_wxHtmlColourCell_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxHTML_CLR_FOREGROUND - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxHTML_CLR_FOREGROUND); - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxHtmlColourCell* returns = new wxHtmlColourCell(*clr, flags); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlColourCell); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - - -void wxLua_wxHtmlColourCell_delete_function(void** p) -{ - wxHtmlColourCell* o = (wxHtmlColourCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlColourCell_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "wxHtmlColourCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlColourCell_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlColourCell_methodCount = sizeof(wxHtmlColourCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlFontCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlFontCell' -int wxluatype_wxHtmlFontCell = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlFontCell_constructor[] = { &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxHtmlFontCell_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlFontCell_constructor[1] = {{ wxLua_wxHtmlFontCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxHtmlFontCell_constructor }}; -// wxHtmlFontCell(wxFont *font); -static int LUACALL wxLua_wxHtmlFontCell_constructor(lua_State *L) -{ - // wxFont font - wxFont * font = (wxFont *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFont); - // call constructor - wxHtmlFontCell* returns = new wxHtmlFontCell(font); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlFontCell); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxFont) - - - -void wxLua_wxHtmlFontCell_delete_function(void** p) -{ - wxHtmlFontCell* o = (wxHtmlFontCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlFontCell_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxFont) - { "wxHtmlFontCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlFontCell_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxFont) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlFontCell_methodCount = sizeof(wxHtmlFontCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlCellEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlCellEvent' -int wxluatype_wxHtmlCellEvent = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetCell[] = { &wxluatype_wxHtmlCellEvent, NULL }; -static int LUACALL wxLua_wxHtmlCellEvent_GetCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_GetCell[1] = {{ wxLua_wxHtmlCellEvent_GetCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetCell }}; -// wxHtmlCell* GetCell() const; -static int LUACALL wxLua_wxHtmlCellEvent_GetCell(lua_State *L) -{ - // get this - wxHtmlCellEvent * self = (wxHtmlCellEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCellEvent); - // call GetCell - wxHtmlCell* returns = (wxHtmlCell*)self->GetCell(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetLinkClicked[] = { &wxluatype_wxHtmlCellEvent, NULL }; -static int LUACALL wxLua_wxHtmlCellEvent_GetLinkClicked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_GetLinkClicked[1] = {{ wxLua_wxHtmlCellEvent_GetLinkClicked, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetLinkClicked }}; -// bool GetLinkClicked() const; -static int LUACALL wxLua_wxHtmlCellEvent_GetLinkClicked(lua_State *L) -{ - // get this - wxHtmlCellEvent * self = (wxHtmlCellEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCellEvent); - // call GetLinkClicked - bool returns = (self->GetLinkClicked()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetMouseEvent[] = { &wxluatype_wxHtmlCellEvent, NULL }; -static int LUACALL wxLua_wxHtmlCellEvent_GetMouseEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_GetMouseEvent[1] = {{ wxLua_wxHtmlCellEvent_GetMouseEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetMouseEvent }}; -// wxMouseEvent GetMouseEvent() const; -static int LUACALL wxLua_wxHtmlCellEvent_GetMouseEvent(lua_State *L) -{ - // get this - wxHtmlCellEvent * self = (wxHtmlCellEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCellEvent); - // call GetMouseEvent - // allocate a new object using the copy constructor - wxMouseEvent* returns = new wxMouseEvent(self->GetMouseEvent()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMouseEvent); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseEvent); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetPoint[] = { &wxluatype_wxHtmlCellEvent, NULL }; -static int LUACALL wxLua_wxHtmlCellEvent_GetPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_GetPoint[1] = {{ wxLua_wxHtmlCellEvent_GetPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCellEvent_GetPoint }}; -// wxPoint GetPoint() const; -static int LUACALL wxLua_wxHtmlCellEvent_GetPoint(lua_State *L) -{ - // get this - wxHtmlCellEvent * self = (wxHtmlCellEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCellEvent); - // call GetPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_SetLinkClicked[] = { &wxluatype_wxHtmlCellEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHtmlCellEvent_SetLinkClicked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_SetLinkClicked[1] = {{ wxLua_wxHtmlCellEvent_SetLinkClicked, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlCellEvent_SetLinkClicked }}; -// void SetLinkClicked(bool linkclicked); -static int LUACALL wxLua_wxHtmlCellEvent_SetLinkClicked(lua_State *L) -{ - // bool linkclicked - bool linkclicked = wxlua_getbooleantype(L, 2); - // get this - wxHtmlCellEvent * self = (wxHtmlCellEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlCellEvent); - // call SetLinkClicked - self->SetLinkClicked(linkclicked); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_delete[] = { &wxluatype_wxHtmlCellEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlCellEvent_delete }}; - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlCellEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxHtmlCell, &wxluatype_wxPoint, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxHtmlCellEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_constructor1[1] = {{ wxLua_wxHtmlCellEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxHtmlCellEvent_constructor1 }}; -// wxHtmlCellEvent(wxEventType commandType, int id, wxHtmlCell *cell, const wxPoint &pt, const wxMouseEvent &ev); -static int LUACALL wxLua_wxHtmlCellEvent_constructor1(lua_State *L) -{ - // const wxMouseEvent ev - const wxMouseEvent * ev = (const wxMouseEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxMouseEvent); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxHtmlCell cell - wxHtmlCell * cell = (wxHtmlCell *)wxluaT_getuserdatatype(L, 3, wxluatype_wxHtmlCell); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // wxEventType commandType - wxEventType commandType = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxHtmlCellEvent* returns = new wxHtmlCellEvent(commandType, id, cell, *pt, *ev); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlCellEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCellEvent); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxHtmlCellEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_constructor[1] = {{ wxLua_wxHtmlCellEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlCellEvent(); -static int LUACALL wxLua_wxHtmlCellEvent_constructor(lua_State *L) -{ - // call constructor - wxHtmlCellEvent* returns = new wxHtmlCellEvent(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlCellEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCellEvent); - - return 1; -} - - - - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlCellEvent_constructor_overload[] = -{ - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHtmlCellEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 5, s_wxluatypeArray_wxLua_wxHtmlCellEvent_constructor1 }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxHtmlCellEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxHtmlCellEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlCellEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - -void wxLua_wxHtmlCellEvent_delete_function(void** p) -{ - wxHtmlCellEvent* o = (wxHtmlCellEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlCellEvent_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCellEvent_GetCell, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetLinkClicked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCellEvent_GetLinkClicked, 1, NULL }, - { "GetMouseEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCellEvent_GetMouseEvent, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "GetPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCellEvent_GetPoint, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - - { "SetLinkClicked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlCellEvent_SetLinkClicked, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlCellEvent_delete, 1, NULL }, - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - { "wxHtmlCellEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlCellEvent_constructor_overload, s_wxluafunc_wxLua_wxHtmlCellEvent_constructor_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlCellEvent_methodCount = sizeof(wxHtmlCellEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlLinkEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlLinkEvent' -int wxluatype_wxHtmlLinkEvent = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkEvent_GetLinkInfo[] = { &wxluatype_wxHtmlLinkEvent, NULL }; -static int LUACALL wxLua_wxHtmlLinkEvent_GetLinkInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkEvent_GetLinkInfo[1] = {{ wxLua_wxHtmlLinkEvent_GetLinkInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkEvent_GetLinkInfo }}; -// const wxHtmlLinkInfo& GetLinkInfo() const; -static int LUACALL wxLua_wxHtmlLinkEvent_GetLinkInfo(lua_State *L) -{ - // get this - wxHtmlLinkEvent * self = (wxHtmlLinkEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlLinkEvent); - // call GetLinkInfo - const wxHtmlLinkInfo* returns = (const wxHtmlLinkInfo*)&self->GetLinkInfo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlLinkInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkEvent_delete[] = { &wxluatype_wxHtmlLinkEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkEvent_delete }}; - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlLinkEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkEvent_constructor[1] = {{ wxLua_wxHtmlLinkEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxHtmlLinkEvent_constructor }}; -// wxHtmlLinkEvent(int id, const wxHtmlLinkInfo &linkinfo); -static int LUACALL wxLua_wxHtmlLinkEvent_constructor(lua_State *L) -{ - // const wxHtmlLinkInfo linkinfo - const wxHtmlLinkInfo * linkinfo = (const wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlLinkInfo); - // int id - int id = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxHtmlLinkEvent* returns = new wxHtmlLinkEvent(id, *linkinfo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlLinkEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlLinkEvent); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - - -void wxLua_wxHtmlLinkEvent_delete_function(void** p) -{ - wxHtmlLinkEvent* o = (wxHtmlLinkEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlLinkEvent_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetLinkInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlLinkEvent_GetLinkInfo, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlLinkEvent_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "wxHtmlLinkEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlLinkEvent_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlLinkEvent_methodCount = sizeof(wxHtmlLinkEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlLinkInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlLinkInfo' -int wxluatype_wxHtmlLinkInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetEvent[] = { &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlLinkInfo_GetEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkInfo_GetEvent[1] = {{ wxLua_wxHtmlLinkInfo_GetEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetEvent }}; -// const wxMouseEvent * GetEvent(); -static int LUACALL wxLua_wxHtmlLinkInfo_GetEvent(lua_State *L) -{ - // get this - wxHtmlLinkInfo * self = (wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlLinkInfo); - // call GetEvent - const wxMouseEvent* returns = (const wxMouseEvent*)self->GetEvent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMouseEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetHref[] = { &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlLinkInfo_GetHref(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkInfo_GetHref[1] = {{ wxLua_wxHtmlLinkInfo_GetHref, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetHref }}; -// wxString GetHref(); -static int LUACALL wxLua_wxHtmlLinkInfo_GetHref(lua_State *L) -{ - // get this - wxHtmlLinkInfo * self = (wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlLinkInfo); - // call GetHref - wxString returns = (self->GetHref()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetHtmlCell[] = { &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlLinkInfo_GetHtmlCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkInfo_GetHtmlCell[1] = {{ wxLua_wxHtmlLinkInfo_GetHtmlCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetHtmlCell }}; -// const wxHtmlCell * GetHtmlCell(); -static int LUACALL wxLua_wxHtmlLinkInfo_GetHtmlCell(lua_State *L) -{ - // get this - wxHtmlLinkInfo * self = (wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlLinkInfo); - // call GetHtmlCell - const wxHtmlCell* returns = (const wxHtmlCell*)self->GetHtmlCell(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetTarget[] = { &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlLinkInfo_GetTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkInfo_GetTarget[1] = {{ wxLua_wxHtmlLinkInfo_GetTarget, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkInfo_GetTarget }}; -// wxString GetTarget(); -static int LUACALL wxLua_wxHtmlLinkInfo_GetTarget(lua_State *L) -{ - // get this - wxHtmlLinkInfo * self = (wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlLinkInfo); - // call GetTarget - wxString returns = (self->GetTarget()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkInfo_delete[] = { &wxluatype_wxHtmlLinkInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlLinkInfo_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlLinkInfo_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlLinkInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlLinkInfo_constructor[1] = {{ wxLua_wxHtmlLinkInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxHtmlLinkInfo_constructor }}; -// wxHtmlLinkInfo(const wxString& href, const wxString& target = ""); -static int LUACALL wxLua_wxHtmlLinkInfo_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString target = "" - const wxString target = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString href - const wxString href = wxlua_getwxStringtype(L, 1); - // call constructor - wxHtmlLinkInfo* returns = new wxHtmlLinkInfo(href, target); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlLinkInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlLinkInfo); - - return 1; -} - - - - -void wxLua_wxHtmlLinkInfo_delete_function(void** p) -{ - wxHtmlLinkInfo* o = (wxHtmlLinkInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlLinkInfo_methods[] = { - { "GetEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlLinkInfo_GetEvent, 1, NULL }, - { "GetHref", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlLinkInfo_GetHref, 1, NULL }, - { "GetHtmlCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlLinkInfo_GetHtmlCell, 1, NULL }, - { "GetTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlLinkInfo_GetTarget, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlLinkInfo_delete, 1, NULL }, - { "wxHtmlLinkInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlLinkInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlLinkInfo_methodCount = sizeof(wxHtmlLinkInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlTag -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlTag' -int wxluatype_wxHtmlTag = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetAllParams[] = { &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetAllParams(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetAllParams[1] = {{ wxLua_wxHtmlTag_GetAllParams, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlTag_GetAllParams }}; -// const wxString GetAllParams() const; -static int LUACALL wxLua_wxHtmlTag_GetAllParams(lua_State *L) -{ - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetAllParams - wxString returns = (self->GetAllParams()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetBeginPos[] = { &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetBeginPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetBeginPos[1] = {{ wxLua_wxHtmlTag_GetBeginPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlTag_GetBeginPos }}; -// int GetBeginPos() const; -static int LUACALL wxLua_wxHtmlTag_GetBeginPos(lua_State *L) -{ - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetBeginPos - int returns = (self->GetBeginPos()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetEndPos1[] = { &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetEndPos1(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetEndPos1[1] = {{ wxLua_wxHtmlTag_GetEndPos1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlTag_GetEndPos1 }}; -// int GetEndPos1() const; -static int LUACALL wxLua_wxHtmlTag_GetEndPos1(lua_State *L) -{ - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetEndPos1 - int returns = (self->GetEndPos1()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetEndPos2[] = { &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetEndPos2(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetEndPos2[1] = {{ wxLua_wxHtmlTag_GetEndPos2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlTag_GetEndPos2 }}; -// int GetEndPos2() const; -static int LUACALL wxLua_wxHtmlTag_GetEndPos2(lua_State *L) -{ - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetEndPos2 - int returns = (self->GetEndPos2()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetName[] = { &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetName[1] = {{ wxLua_wxHtmlTag_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlTag_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxHtmlTag_GetName(lua_State *L) -{ - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetParam[] = { &wxluatype_wxHtmlTag, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetParam[1] = {{ wxLua_wxHtmlTag_GetParam, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlTag_GetParam }}; -// wxString GetParam(const wxString& par, bool with_commas = false) const; -static int LUACALL wxLua_wxHtmlTag_GetParam(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool with_commas = false - bool with_commas = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString par - const wxString par = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetParam - wxString returns = (self->GetParam(par, with_commas)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetParamAsColour[] = { &wxluatype_wxHtmlTag, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetParamAsColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetParamAsColour[1] = {{ wxLua_wxHtmlTag_GetParamAsColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlTag_GetParamAsColour }}; -// %override wxLua_wxHtmlTag_GetParamAsColour -// %alias GetParamAsColor bool GetParamAsColour(const wxString& par, wxColour *clr) const -static int LUACALL wxLua_wxHtmlTag_GetParamAsColour(lua_State *L) -{ - wxColour *retColour = new wxColour; - // const wxString& par - wxString par = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlTag *self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetParamAsColour - bool returns = self->GetParamAsColour(par, retColour); - // - // push the result number - lua_pushboolean(L, returns); - wxluaT_pushuserdatatype(L, retColour, wxluatype_wxColour); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_GetParamAsInt[] = { &wxluatype_wxHtmlTag, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlTag_GetParamAsInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_GetParamAsInt[1] = {{ wxLua_wxHtmlTag_GetParamAsInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlTag_GetParamAsInt }}; -// %override wxLua_wxHtmlTag_GetParamAsInt -// bool GetParamAsInt(const wxString& par, int *value) const -static int LUACALL wxLua_wxHtmlTag_GetParamAsInt(lua_State *L) -{ - int value; - // const wxString& par - wxString par = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlTag *self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call GetParamAsInt - bool returns = self->GetParamAsInt(par, &value); - // push the result number - lua_pushboolean(L, returns); - // - lua_pushinteger(L, value); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_HasEnding[] = { &wxluatype_wxHtmlTag, NULL }; -static int LUACALL wxLua_wxHtmlTag_HasEnding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_HasEnding[1] = {{ wxLua_wxHtmlTag_HasEnding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlTag_HasEnding }}; -// bool HasEnding() const; -static int LUACALL wxLua_wxHtmlTag_HasEnding(lua_State *L) -{ - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call HasEnding - bool returns = (self->HasEnding()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlTag_HasParam[] = { &wxluatype_wxHtmlTag, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlTag_HasParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlTag_HasParam[1] = {{ wxLua_wxHtmlTag_HasParam, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlTag_HasParam }}; -// bool HasParam(const wxString& par) const; -static int LUACALL wxLua_wxHtmlTag_HasParam(lua_State *L) -{ - // const wxString par - const wxString par = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlTag * self = (wxHtmlTag *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlTag); - // call HasParam - bool returns = (self->HasParam(par)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxHtmlTag_delete_function(void** p) -{ - wxHtmlTag* o = (wxHtmlTag*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlTag_methods[] = { - { "GetAllParams", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetAllParams, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetBeginPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetBeginPos, 1, NULL }, - { "GetEndPos1", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetEndPos1, 1, NULL }, - { "GetEndPos2", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetEndPos2, 1, NULL }, -#endif // (!wxCHECK_VERSION(3,0,0) || (defined(WXWIN_COMPATIBILITY_2_8) && WXWIN_COMPATIBILITY_2_8)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetName, 1, NULL }, - { "GetParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetParam, 1, NULL }, - { "GetParamAsColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetParamAsColour, 1, NULL }, - { "GetParamAsInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_GetParamAsInt, 1, NULL }, - { "HasEnding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_HasEnding, 1, NULL }, - { "HasParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlTag_HasParam, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlTag_methodCount = sizeof(wxHtmlTag_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlWindow' -int wxluatype_wxHtmlWindow = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_AppendToPage[] = { &wxluatype_wxHtmlWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_AppendToPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_AppendToPage[1] = {{ wxLua_wxHtmlWindow_AppendToPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_AppendToPage }}; -// bool AppendToPage(const wxString& source); -static int LUACALL wxLua_wxHtmlWindow_AppendToPage(lua_State *L) -{ - // const wxString source - const wxString source = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call AppendToPage - bool returns = (self->AppendToPage(source)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_GetInternalRepresentation[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_GetInternalRepresentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_GetInternalRepresentation[1] = {{ wxLua_wxHtmlWindow_GetInternalRepresentation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_GetInternalRepresentation }}; -// wxHtmlContainerCell* GetInternalRepresentation() const; -static int LUACALL wxLua_wxHtmlWindow_GetInternalRepresentation(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call GetInternalRepresentation - wxHtmlContainerCell* returns = (wxHtmlContainerCell*)self->GetInternalRepresentation(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_GetOpenedAnchor[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_GetOpenedAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_GetOpenedAnchor[1] = {{ wxLua_wxHtmlWindow_GetOpenedAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_GetOpenedAnchor }}; -// wxString GetOpenedAnchor(); -static int LUACALL wxLua_wxHtmlWindow_GetOpenedAnchor(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call GetOpenedAnchor - wxString returns = (self->GetOpenedAnchor()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_GetOpenedPage[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_GetOpenedPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_GetOpenedPage[1] = {{ wxLua_wxHtmlWindow_GetOpenedPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_GetOpenedPage }}; -// wxString GetOpenedPage(); -static int LUACALL wxLua_wxHtmlWindow_GetOpenedPage(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call GetOpenedPage - wxString returns = (self->GetOpenedPage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_GetOpenedPageTitle[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_GetOpenedPageTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_GetOpenedPageTitle[1] = {{ wxLua_wxHtmlWindow_GetOpenedPageTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_GetOpenedPageTitle }}; -// wxString GetOpenedPageTitle(); -static int LUACALL wxLua_wxHtmlWindow_GetOpenedPageTitle(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call GetOpenedPageTitle - wxString returns = (self->GetOpenedPageTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_GetRelatedFrame[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_GetRelatedFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_GetRelatedFrame[1] = {{ wxLua_wxHtmlWindow_GetRelatedFrame, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_GetRelatedFrame }}; -// wxFrame* GetRelatedFrame() const; -static int LUACALL wxLua_wxHtmlWindow_GetRelatedFrame(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call GetRelatedFrame - wxFrame* returns = (wxFrame*)self->GetRelatedFrame(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFrame); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryBack[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_HistoryBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_HistoryBack[1] = {{ wxLua_wxHtmlWindow_HistoryBack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryBack }}; -// bool HistoryBack(); -static int LUACALL wxLua_wxHtmlWindow_HistoryBack(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call HistoryBack - bool returns = (self->HistoryBack()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryCanBack[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_HistoryCanBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_HistoryCanBack[1] = {{ wxLua_wxHtmlWindow_HistoryCanBack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryCanBack }}; -// bool HistoryCanBack(); -static int LUACALL wxLua_wxHtmlWindow_HistoryCanBack(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call HistoryCanBack - bool returns = (self->HistoryCanBack()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryCanForward[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_HistoryCanForward(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_HistoryCanForward[1] = {{ wxLua_wxHtmlWindow_HistoryCanForward, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryCanForward }}; -// bool HistoryCanForward(); -static int LUACALL wxLua_wxHtmlWindow_HistoryCanForward(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call HistoryCanForward - bool returns = (self->HistoryCanForward()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryClear[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_HistoryClear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_HistoryClear[1] = {{ wxLua_wxHtmlWindow_HistoryClear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryClear }}; -// void HistoryClear(); -static int LUACALL wxLua_wxHtmlWindow_HistoryClear(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call HistoryClear - self->HistoryClear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryForward[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_HistoryForward(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_HistoryForward[1] = {{ wxLua_wxHtmlWindow_HistoryForward, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_HistoryForward }}; -// bool HistoryForward(); -static int LUACALL wxLua_wxHtmlWindow_HistoryForward(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call HistoryForward - bool returns = (self->HistoryForward()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFileName) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_LoadFile[] = { &wxluatype_wxHtmlWindow, &wxluatype_wxFileName, NULL }; -static int LUACALL wxLua_wxHtmlWindow_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_LoadFile[1] = {{ wxLua_wxHtmlWindow_LoadFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_LoadFile }}; -// virtual bool LoadFile(const wxFileName& filename); -static int LUACALL wxLua_wxHtmlWindow_LoadFile(lua_State *L) -{ - // const wxFileName filename - const wxFileName * filename = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call LoadFile - bool returns = (self->LoadFile(*filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFileName) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_LoadPage[] = { &wxluatype_wxHtmlWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_LoadPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_LoadPage[1] = {{ wxLua_wxHtmlWindow_LoadPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_LoadPage }}; -// bool LoadPage(const wxString& location); -static int LUACALL wxLua_wxHtmlWindow_LoadPage(lua_State *L) -{ - // const wxString location - const wxString location = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call LoadPage - bool returns = (self->LoadPage(location)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_ReadCustomization[] = { &wxluatype_wxHtmlWindow, &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_ReadCustomization(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_ReadCustomization[1] = {{ wxLua_wxHtmlWindow_ReadCustomization, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlWindow_ReadCustomization }}; -// void ReadCustomization(wxConfigBase *cfg, wxString path = wxEmptyString); -static int LUACALL wxLua_wxHtmlWindow_ReadCustomization(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString path = wxEmptyString - wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxConfigBase cfg - wxConfigBase * cfg = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call ReadCustomization - self->ReadCustomization(cfg, path); - - return 0; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SelectAll[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SelectAll[1] = {{ wxLua_wxHtmlWindow_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_SelectAll }}; -// void SelectAll(); -static int LUACALL wxLua_wxHtmlWindow_SelectAll(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SelectAll - self->SelectAll(); - - return 0; -} - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SelectLine[] = { &wxluatype_wxHtmlWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SelectLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SelectLine[1] = {{ wxLua_wxHtmlWindow_SelectLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_SelectLine }}; -// void SelectLine(const wxPoint& pos); -static int LUACALL wxLua_wxHtmlWindow_SelectLine(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SelectLine - self->SelectLine(*pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SelectWord[] = { &wxluatype_wxHtmlWindow, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SelectWord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SelectWord[1] = {{ wxLua_wxHtmlWindow_SelectWord, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_SelectWord }}; -// void SelectWord(const wxPoint& pos); -static int LUACALL wxLua_wxHtmlWindow_SelectWord(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SelectWord - self->SelectWord(*pos); - - return 0; -} - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SelectionToText[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SelectionToText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SelectionToText[1] = {{ wxLua_wxHtmlWindow_SelectionToText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_SelectionToText }}; -// wxString SelectionToText(); -static int LUACALL wxLua_wxHtmlWindow_SelectionToText(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SelectionToText - wxString returns = (self->SelectionToText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SetBorders[] = { &wxluatype_wxHtmlWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SetBorders(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SetBorders[1] = {{ wxLua_wxHtmlWindow_SetBorders, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_SetBorders }}; -// void SetBorders(int b); -static int LUACALL wxLua_wxHtmlWindow_SetBorders(lua_State *L) -{ - // int b - int b = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SetBorders - self->SetBorders(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SetFonts[] = { &wxluatype_wxHtmlWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SetFonts(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SetFonts[1] = {{ wxLua_wxHtmlWindow_SetFonts, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxHtmlWindow_SetFonts }}; -// %override wxLua_wxHtmlWindow_SetFonts -// void SetFonts(wxString normal_face, wxString fixed_face, const int *sizes) -static int LUACALL wxLua_wxHtmlWindow_SetFonts(lua_State *L) -{ - // const int *sizes -#ifdef __WXMSW__ - int sizes[7] = { 7,8,10,12,16,22,30 }; -#else - int sizes[7] = { 10,12,14,16,19,24,32 }; -#endif - - const int arraySize = sizeof(sizes)/sizeof(sizes[0]); - - int argCount = lua_gettop(L); - - if (argCount >= 4) - { - if (lua_istable(L, 4)) - { - int count = 0; - - int *sizeArray = wxlua_getintarray(L, 4, count); - - if (count > arraySize) - count = arraySize; - - memcpy(sizes, sizeArray, count * sizeof(int)); - - delete[] sizeArray; - } - else - { - int idx; - - if (argCount > 4 + arraySize) - argCount = 4 + arraySize; - - for (idx = 4; idx < argCount; ++idx) - sizes[idx - 4] = (int)lua_tonumber(L, idx); - } - } - - // wxString fixed_face - wxString fixed_face = wxlua_getwxStringtype(L, 3); - // wxString normal_face - wxString normal_face = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWindow *self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SetFonts - self->SetFonts(normal_face, fixed_face, sizes); - - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SetPage[] = { &wxluatype_wxHtmlWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SetPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SetPage[1] = {{ wxLua_wxHtmlWindow_SetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_SetPage }}; -// bool SetPage(const wxString& source); -static int LUACALL wxLua_wxHtmlWindow_SetPage(lua_State *L) -{ - // const wxString source - const wxString source = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SetPage - bool returns = (self->SetPage(source)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SetRelatedFrame[] = { &wxluatype_wxHtmlWindow, &wxluatype_wxFrame, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SetRelatedFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SetRelatedFrame[1] = {{ wxLua_wxHtmlWindow_SetRelatedFrame, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlWindow_SetRelatedFrame }}; -// void SetRelatedFrame(wxFrame* frame, const wxString& format); -static int LUACALL wxLua_wxHtmlWindow_SetRelatedFrame(lua_State *L) -{ - // const wxString format - const wxString format = wxlua_getwxStringtype(L, 3); - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SetRelatedFrame - self->SetRelatedFrame(frame, format); - - return 0; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_SetRelatedStatusBar[] = { &wxluatype_wxHtmlWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWindow_SetRelatedStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_SetRelatedStatusBar[1] = {{ wxLua_wxHtmlWindow_SetRelatedStatusBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindow_SetRelatedStatusBar }}; -// void SetRelatedStatusBar(int bar); -static int LUACALL wxLua_wxHtmlWindow_SetRelatedStatusBar(lua_State *L) -{ - // int bar - int bar = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call SetRelatedStatusBar - self->SetRelatedStatusBar(bar); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_ToText[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWindow_ToText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_ToText[1] = {{ wxLua_wxHtmlWindow_ToText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindow_ToText }}; -// wxString ToText(); -static int LUACALL wxLua_wxHtmlWindow_ToText(lua_State *L) -{ - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call ToText - wxString returns = (self->ToText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_WriteCustomization[] = { &wxluatype_wxHtmlWindow, &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_WriteCustomization(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_WriteCustomization[1] = {{ wxLua_wxHtmlWindow_WriteCustomization, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlWindow_WriteCustomization }}; -// void WriteCustomization(wxConfigBase *cfg, wxString path = wxEmptyString); -static int LUACALL wxLua_wxHtmlWindow_WriteCustomization(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString path = wxEmptyString - wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxConfigBase cfg - wxConfigBase * cfg = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxHtmlWindow * self = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call WriteCustomization - self->WriteCustomization(cfg, path); - - return 0; -} - -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindow_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindow_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindow_constructor[1] = {{ wxLua_wxHtmlWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxHtmlWindow_constructor }}; -// wxHtmlWindow(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHW_SCROLLBAR_AUTO, const wxString& name = "wxHtmlWindow"); -static int LUACALL wxLua_wxHtmlWindow_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxHtmlWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxHtmlWindow"))); - // long style = wxHW_SCROLLBAR_AUTO - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxHW_SCROLLBAR_AUTO); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxHtmlWindow* returns = new wxHtmlWindow(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlWindow); - - return 1; -} - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxHtmlWindow_delete_function(void** p) -{ - wxHtmlWindow* o = (wxHtmlWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlWindow_methods[] = { - { "AppendToPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_AppendToPage, 1, NULL }, - { "GetInternalRepresentation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_GetInternalRepresentation, 1, NULL }, - { "GetOpenedAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_GetOpenedAnchor, 1, NULL }, - { "GetOpenedPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_GetOpenedPage, 1, NULL }, - { "GetOpenedPageTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_GetOpenedPageTitle, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetRelatedFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_GetRelatedFrame, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "HistoryBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_HistoryBack, 1, NULL }, - { "HistoryCanBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_HistoryCanBack, 1, NULL }, - { "HistoryCanForward", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_HistoryCanForward, 1, NULL }, - { "HistoryClear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_HistoryClear, 1, NULL }, - { "HistoryForward", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_HistoryForward, 1, NULL }, - -#if (wxLUA_USE_wxFileName) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_LoadFile, 1, NULL }, -#endif // (wxLUA_USE_wxFileName) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "LoadPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_LoadPage, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "ReadCustomization", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_ReadCustomization, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SelectAll, 1, NULL }, - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) - { "SelectLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SelectLine, 1, NULL }, - { "SelectWord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SelectWord, 1, NULL }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) - - { "SelectionToText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SelectionToText, 1, NULL }, - { "SetBorders", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SetBorders, 1, NULL }, - { "SetFonts", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SetFonts, 1, NULL }, - { "SetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SetPage, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetRelatedFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SetRelatedFrame, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SetRelatedStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_SetRelatedStatusBar, 1, NULL }, - { "ToText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_ToText, 1, NULL }, - -#if (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "WriteCustomization", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindow_WriteCustomization, 1, NULL }, -#endif // (wxLUA_USE_wxConfig && wxUSE_CONFIG) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) - { "wxHtmlWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlWindow_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlWindow_methodCount = sizeof(wxHtmlWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) -// --------------------------------------------------------------------------- -// Bind class wxLuaHtmlWindow -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaHtmlWindow' -int wxluatype_wxLuaHtmlWindow = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaHtmlWindow_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaHtmlWindow_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaHtmlWindow_constructor[1] = {{ wxLua_wxLuaHtmlWindow_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxLuaHtmlWindow_constructor }}; -// %override wxLua_wxLuaHtmlWindow_constructor -// wxLuaHtmlWindow(wxWindow *parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxHW_SCROLLBAR_AUTO, const wxString& name = "wxLuaHtmlWindow") -static int LUACALL wxLua_wxLuaHtmlWindow_constructor(lua_State *L) -{ - wxLuaState wxlState(L); - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxLuaHtmlWindow" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxLuaHtmlWindow"))); - // long style = wxHW_SCROLLBAR_AUTO - long style = (argCount >= 5 ? (long)wxlua_getintegertype(L, 5) : wxHW_SCROLLBAR_AUTO); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getintegertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxLuaHtmlWindow *returns = new wxLuaHtmlWindow(wxlState, parent, id, *pos, *size, style, name); - // add to tracked window list - if (returns && returns->IsKindOf(CLASSINFO(wxWindow))) - wxluaW_addtrackedwindow(L, (wxWindow*)returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaHtmlWindow); - - return 1; -} - - -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxPointSizeRect) - - - -void wxLua_wxLuaHtmlWindow_delete_function(void** p) -{ - wxLuaHtmlWindow* o = (wxLuaHtmlWindow*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaHtmlWindow_methods[] = { -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxPointSizeRect) - { "wxLuaHtmlWindow", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaHtmlWindow_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxPointSizeRect) - - { 0, 0, 0, 0 }, -}; - -int wxLuaHtmlWindow_methodCount = sizeof(wxLuaHtmlWindow_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) -// --------------------------------------------------------------------------- -// Bind class wxLuaHtmlWinTagEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaHtmlWinTagEvent' -int wxluatype_wxLuaHtmlWinTagEvent = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser[] = { &wxluatype_wxLuaHtmlWinTagEvent, NULL }; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser[1] = {{ wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser }}; -// wxHtmlWinParser *GetHtmlParser() const; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser(lua_State *L) -{ - // get this - wxLuaHtmlWinTagEvent * self = (wxLuaHtmlWinTagEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaHtmlWinTagEvent); - // call GetHtmlParser - wxHtmlWinParser* returns = (wxHtmlWinParser*)self->GetHtmlParser(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlWinParser); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag[] = { &wxluatype_wxLuaHtmlWinTagEvent, NULL }; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag[1] = {{ wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag }}; -// const wxHtmlTag *GetHtmlTag() const; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag(lua_State *L) -{ - // get this - wxLuaHtmlWinTagEvent * self = (wxLuaHtmlWinTagEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaHtmlWinTagEvent); - // call GetHtmlTag - const wxHtmlTag* returns = (const wxHtmlTag*)self->GetHtmlTag(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlTag); - - return 1; -} - -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled[] = { &wxluatype_wxLuaHtmlWinTagEvent, NULL }; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled[1] = {{ wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled }}; -// bool GetParseInnerCalled() const; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled(lua_State *L) -{ - // get this - wxLuaHtmlWinTagEvent * self = (wxLuaHtmlWinTagEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaHtmlWinTagEvent); - // call GetParseInnerCalled - bool returns = (self->GetParseInnerCalled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled[] = { &wxluatype_wxLuaHtmlWinTagEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled[1] = {{ wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled }}; -// void SetParseInnerCalled(bool fParseInnerCalled = true); -static int LUACALL wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool fParseInnerCalled = true - bool fParseInnerCalled = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxLuaHtmlWinTagEvent * self = (wxLuaHtmlWinTagEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaHtmlWinTagEvent); - // call SetParseInnerCalled - self->SetParseInnerCalled(fParseInnerCalled); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_delete[] = { &wxluatype_wxLuaHtmlWinTagEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaHtmlWinTagEvent_delete }}; - - - - -void wxLua_wxLuaHtmlWinTagEvent_delete_function(void** p) -{ - wxLuaHtmlWinTagEvent* o = (wxLuaHtmlWinTagEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaHtmlWinTagEvent_methods[] = { -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetHtmlParser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_GetHtmlParser, 1, NULL }, - { "GetHtmlTag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_GetHtmlTag, 1, NULL }, -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetParseInnerCalled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_GetParseInnerCalled, 1, NULL }, - { "SetParseInnerCalled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_SetParseInnerCalled, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaHtmlWinTagEvent_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaHtmlWinTagEvent_methodCount = sizeof(wxLuaHtmlWinTagEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlParser -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlParser' -int wxluatype_wxHtmlParser = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing2[] = { &wxluatype_wxHtmlParser, NULL }; -static int LUACALL wxLua_wxHtmlParser_DoParsing2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlParser_DoParsing2[1] = {{ wxLua_wxHtmlParser_DoParsing2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing2 }}; -// void DoParsing(); -static int LUACALL wxLua_wxHtmlParser_DoParsing2(lua_State *L) -{ - // get this - wxHtmlParser * self = (wxHtmlParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlParser); - // call DoParsing - self->DoParsing(); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing1[] = { &wxluatype_wxHtmlParser, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlParser_DoParsing1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlParser_DoParsing1[1] = {{ wxLua_wxHtmlParser_DoParsing1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing1 }}; -// !%wxchkver_2_9_2 void DoParsing(int begin_pos, int end_pos); -static int LUACALL wxLua_wxHtmlParser_DoParsing1(lua_State *L) -{ - // int end_pos - int end_pos = (int)wxlua_getnumbertype(L, 3); - // int begin_pos - int begin_pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlParser * self = (wxHtmlParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlParser); - // call DoParsing - self->DoParsing(begin_pos, end_pos); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing[] = { &wxluatype_wxHtmlParser, &wxluatype_wxString_const_iterator, &wxluatype_wxString_const_iterator, NULL }; -static int LUACALL wxLua_wxHtmlParser_DoParsing(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlParser_DoParsing[1] = {{ wxLua_wxHtmlParser_DoParsing, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing }}; -// %wxchkver_2_9_2 void DoParsing(const wxString::const_iterator& begin_pos, const wxString::const_iterator& end_pos); -static int LUACALL wxLua_wxHtmlParser_DoParsing(lua_State *L) -{ - // const wxString::const_iterator end_pos - const wxString::const_iterator * end_pos = (const wxString::const_iterator *)wxluaT_getuserdatatype(L, 3, wxluatype_wxString_const_iterator); - // const wxString::const_iterator begin_pos - const wxString::const_iterator * begin_pos = (const wxString::const_iterator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxString_const_iterator); - // get this - wxHtmlParser * self = (wxHtmlParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlParser); - // call DoParsing - self->DoParsing(*begin_pos, *end_pos); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlParser_DoneParser[] = { &wxluatype_wxHtmlParser, NULL }; -static int LUACALL wxLua_wxHtmlParser_DoneParser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlParser_DoneParser[1] = {{ wxLua_wxHtmlParser_DoneParser, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlParser_DoneParser }}; -// virtual void DoneParser(); -static int LUACALL wxLua_wxHtmlParser_DoneParser(lua_State *L) -{ - // get this - wxHtmlParser * self = (wxHtmlParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlParser); - // call DoneParser - self->DoneParser(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlParser_InitParser[] = { &wxluatype_wxHtmlParser, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlParser_InitParser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlParser_InitParser[1] = {{ wxLua_wxHtmlParser_InitParser, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlParser_InitParser }}; -// void InitParser(const wxString& source); -static int LUACALL wxLua_wxHtmlParser_InitParser(lua_State *L) -{ - // const wxString source - const wxString source = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlParser * self = (wxHtmlParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlParser); - // call InitParser - self->InitParser(source); - - return 0; -} - - - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML)||((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0))) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlParser_DoParsing_overload[] = -{ - { wxLua_wxHtmlParser_DoParsing2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing2 }, - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxLua_wxHtmlParser_DoParsing1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing1 }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0)) - { wxLua_wxHtmlParser_DoParsing, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlParser_DoParsing }, -#endif // ((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0)) -}; -static int s_wxluafunc_wxLua_wxHtmlParser_DoParsing_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlParser_DoParsing_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML)||((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0))) - -void wxLua_wxHtmlParser_delete_function(void** p) -{ - wxHtmlParser* o = (wxHtmlParser*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlParser_methods[] = { -#if (wxLUA_USE_wxHTML && wxUSE_HTML)||((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0))) - { "DoParsing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlParser_DoParsing_overload, s_wxluafunc_wxLua_wxHtmlParser_DoParsing_overload_count, 0 }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML)||((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxCHECK_VERSION(2,9,0))) - - { "DoneParser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlParser_DoneParser, 1, NULL }, - { "InitParser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlParser_InitParser, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlParser_methodCount = sizeof(wxHtmlParser_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlWinParser -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlWinParser' -int wxluatype_wxHtmlWinParser = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_CloseContainer[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_CloseContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_CloseContainer[1] = {{ wxLua_wxHtmlWinParser_CloseContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_CloseContainer }}; -// wxHtmlContainerCell* CloseContainer(); -static int LUACALL wxLua_wxHtmlWinParser_CloseContainer(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call CloseContainer - wxHtmlContainerCell* returns = (wxHtmlContainerCell*)self->CloseContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_CreateCurrentFont[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_CreateCurrentFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_CreateCurrentFont[1] = {{ wxLua_wxHtmlWinParser_CreateCurrentFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_CreateCurrentFont }}; -// wxFont* CreateCurrentFont(); -static int LUACALL wxLua_wxHtmlWinParser_CreateCurrentFont(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call CreateCurrentFont - wxFont* returns = (wxFont*)self->CreateCurrentFont(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetActualColor[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetActualColor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetActualColor[1] = {{ wxLua_wxHtmlWinParser_GetActualColor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetActualColor }}; -// wxColour GetActualColor() const; -static int LUACALL wxLua_wxHtmlWinParser_GetActualColor(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetActualColor - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetActualColor()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetAlign[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetAlign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetAlign[1] = {{ wxLua_wxHtmlWinParser_GetAlign, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetAlign }}; -// int GetAlign() const; -static int LUACALL wxLua_wxHtmlWinParser_GetAlign(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetAlign - int returns = (self->GetAlign()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetCharHeight[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetCharHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetCharHeight[1] = {{ wxLua_wxHtmlWinParser_GetCharHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetCharHeight }}; -// int GetCharHeight() const; -static int LUACALL wxLua_wxHtmlWinParser_GetCharHeight(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetCharHeight - int returns = (self->GetCharHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetCharWidth[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetCharWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetCharWidth[1] = {{ wxLua_wxHtmlWinParser_GetCharWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetCharWidth }}; -// int GetCharWidth() const; -static int LUACALL wxLua_wxHtmlWinParser_GetCharWidth(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetCharWidth - int returns = (self->GetCharWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetContainer[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetContainer[1] = {{ wxLua_wxHtmlWinParser_GetContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetContainer }}; -// wxHtmlContainerCell* GetContainer() const; -static int LUACALL wxLua_wxHtmlWinParser_GetContainer(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetContainer - wxHtmlContainerCell* returns = (wxHtmlContainerCell*)self->GetContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetDC[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetDC[1] = {{ wxLua_wxHtmlWinParser_GetDC, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetDC }}; -// wxDC* GetDC(); -static int LUACALL wxLua_wxHtmlWinParser_GetDC(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetDC - wxDC* returns = (wxDC*)self->GetDC(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDC); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontBold[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetFontBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetFontBold[1] = {{ wxLua_wxHtmlWinParser_GetFontBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontBold }}; -// int GetFontBold() const; -static int LUACALL wxLua_wxHtmlWinParser_GetFontBold(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetFontBold - int returns = (self->GetFontBold()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontFace[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetFontFace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetFontFace[1] = {{ wxLua_wxHtmlWinParser_GetFontFace, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontFace }}; -// wxString GetFontFace() const; -static int LUACALL wxLua_wxHtmlWinParser_GetFontFace(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetFontFace - wxString returns = (self->GetFontFace()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontFixed[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetFontFixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetFontFixed[1] = {{ wxLua_wxHtmlWinParser_GetFontFixed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontFixed }}; -// int GetFontFixed() const; -static int LUACALL wxLua_wxHtmlWinParser_GetFontFixed(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetFontFixed - int returns = (self->GetFontFixed()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontItalic[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetFontItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetFontItalic[1] = {{ wxLua_wxHtmlWinParser_GetFontItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontItalic }}; -// int GetFontItalic() const; -static int LUACALL wxLua_wxHtmlWinParser_GetFontItalic(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetFontItalic - int returns = (self->GetFontItalic()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontSize[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetFontSize[1] = {{ wxLua_wxHtmlWinParser_GetFontSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontSize }}; -// int GetFontSize() const; -static int LUACALL wxLua_wxHtmlWinParser_GetFontSize(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetFontSize - int returns = (self->GetFontSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontUnderlined[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetFontUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetFontUnderlined[1] = {{ wxLua_wxHtmlWinParser_GetFontUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetFontUnderlined }}; -// int GetFontUnderlined() const; -static int LUACALL wxLua_wxHtmlWinParser_GetFontUnderlined(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetFontUnderlined - int returns = (self->GetFontUnderlined()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetLink[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetLink[1] = {{ wxLua_wxHtmlWinParser_GetLink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetLink }}; -// const wxHtmlLinkInfo& GetLink() const; -static int LUACALL wxLua_wxHtmlWinParser_GetLink(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetLink - const wxHtmlLinkInfo* returns = (const wxHtmlLinkInfo*)&self->GetLink(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlLinkInfo); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetLinkColor[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetLinkColor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetLinkColor[1] = {{ wxLua_wxHtmlWinParser_GetLinkColor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetLinkColor }}; -// wxColour GetLinkColor() const; -static int LUACALL wxLua_wxHtmlWinParser_GetLinkColor(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetLinkColor - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetLinkColor()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetWindow[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetWindow[1] = {{ wxLua_wxHtmlWinParser_GetWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetWindow }}; -// !%wxchkver_2_8 wxWindow* GetWindow(); -static int LUACALL wxLua_wxHtmlWinParser_GetWindow(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetWindow - wxWindow* returns = (wxWindow*)self->GetWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_GetWindowInterface[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_GetWindowInterface(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_GetWindowInterface[1] = {{ wxLua_wxHtmlWinParser_GetWindowInterface, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_GetWindowInterface }}; -// %wxchkver_2_8 wxHtmlWindowInterface *GetWindowInterface(); -static int LUACALL wxLua_wxHtmlWinParser_GetWindowInterface(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call GetWindowInterface - wxHtmlWindowInterface* returns = (wxHtmlWindowInterface*)self->GetWindowInterface(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlWindowInterface); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_OpenContainer[] = { &wxluatype_wxHtmlWinParser, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_OpenContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_OpenContainer[1] = {{ wxLua_wxHtmlWinParser_OpenContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_OpenContainer }}; -// wxHtmlContainerCell* OpenContainer(); -static int LUACALL wxLua_wxHtmlWinParser_OpenContainer(lua_State *L) -{ - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call OpenContainer - wxHtmlContainerCell* returns = (wxHtmlContainerCell*)self->OpenContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetActualColor[] = { &wxluatype_wxHtmlWinParser, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetActualColor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetActualColor[1] = {{ wxLua_wxHtmlWinParser_SetActualColor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetActualColor }}; -// void SetActualColor(const wxColour& clr); -static int LUACALL wxLua_wxHtmlWinParser_SetActualColor(lua_State *L) -{ - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetActualColor - self->SetActualColor(*clr); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetAlign[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetAlign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetAlign[1] = {{ wxLua_wxHtmlWinParser_SetAlign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetAlign }}; -// void SetAlign(int a); -static int LUACALL wxLua_wxHtmlWinParser_SetAlign(lua_State *L) -{ - // int a - int a = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetAlign - self->SetAlign(a); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetContainer[] = { &wxluatype_wxHtmlWinParser, &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetContainer[1] = {{ wxLua_wxHtmlWinParser_SetContainer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetContainer }}; -// wxHtmlContainerCell* SetContainer(wxHtmlContainerCell *c); -static int LUACALL wxLua_wxHtmlWinParser_SetContainer(lua_State *L) -{ - // wxHtmlContainerCell c - wxHtmlContainerCell * c = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlContainerCell); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetContainer - wxHtmlContainerCell* returns = (wxHtmlContainerCell*)self->SetContainer(c); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlContainerCell); - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetDC[] = { &wxluatype_wxHtmlWinParser, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetDC[1] = {{ wxLua_wxHtmlWinParser_SetDC, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetDC }}; -// void SetDC(wxDC *dc, double pixel_scale = 1.0); -static int LUACALL wxLua_wxHtmlWinParser_SetDC(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double pixel_scale = 1.0 - double pixel_scale = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 1.0); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetDC - self->SetDC(dc, pixel_scale); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontBold[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFontBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFontBold[1] = {{ wxLua_wxHtmlWinParser_SetFontBold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontBold }}; -// void SetFontBold(int x); -static int LUACALL wxLua_wxHtmlWinParser_SetFontBold(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFontBold - self->SetFontBold(x); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontFace[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFontFace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFontFace[1] = {{ wxLua_wxHtmlWinParser_SetFontFace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontFace }}; -// void SetFontFace(const wxString& face); -static int LUACALL wxLua_wxHtmlWinParser_SetFontFace(lua_State *L) -{ - // const wxString face - const wxString face = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFontFace - self->SetFontFace(face); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontFixed[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFontFixed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFontFixed[1] = {{ wxLua_wxHtmlWinParser_SetFontFixed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontFixed }}; -// void SetFontFixed(int x); -static int LUACALL wxLua_wxHtmlWinParser_SetFontFixed(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFontFixed - self->SetFontFixed(x); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontItalic[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFontItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFontItalic[1] = {{ wxLua_wxHtmlWinParser_SetFontItalic, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontItalic }}; -// void SetFontItalic(int x); -static int LUACALL wxLua_wxHtmlWinParser_SetFontItalic(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFontItalic - self->SetFontItalic(x); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontSize[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFontSize[1] = {{ wxLua_wxHtmlWinParser_SetFontSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontSize }}; -// void SetFontSize(int s); -static int LUACALL wxLua_wxHtmlWinParser_SetFontSize(lua_State *L) -{ - // int s - int s = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFontSize - self->SetFontSize(s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontUnderlined[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFontUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFontUnderlined[1] = {{ wxLua_wxHtmlWinParser_SetFontUnderlined, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFontUnderlined }}; -// void SetFontUnderlined(int x); -static int LUACALL wxLua_wxHtmlWinParser_SetFontUnderlined(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFontUnderlined - self->SetFontUnderlined(x); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFonts[] = { &wxluatype_wxHtmlWinParser, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TTABLE, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetFonts(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetFonts[1] = {{ wxLua_wxHtmlWinParser_SetFonts, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetFonts }}; -// %override wxLua_wxHtmlWinParser_SetFonts -// void SetFonts(wxString normal_face, wxString fixed_face, const int *sizes) -static int LUACALL wxLua_wxHtmlWinParser_SetFonts(lua_State *L) -{ - // const int *sizes -#ifdef __WXMSW__ - int sizes[7] = { 7,8,10,12,16,22,30 }; -#else - int sizes[7] = { 10,12,14,16,19,24,32 }; -#endif - - const int arraySize = sizeof(sizes)/sizeof(sizes[0]); - - int argCount = lua_gettop(L); - - if (argCount >= 4) - { - if (lua_istable(L, 4)) - { - int count = 0; - - int *sizeArray = wxlua_getintarray(L, 4, count); - - if (count > arraySize) - count = arraySize; - - memcpy(sizes, sizeArray, count * sizeof(int)); - - delete[] sizeArray; - } - else - { - int idx; - - if (argCount > 4 + arraySize) - argCount = 4 + arraySize; - - for (idx = 4; idx < argCount; ++idx) - sizes[idx - 4] = (int)lua_tonumber(L, idx); - } - } - - // wxString fixed_face - wxString fixed_face = wxlua_getwxStringtype(L, 3); - // wxString normal_face - wxString normal_face = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWinParser *self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetFonts - self->SetFonts(normal_face, fixed_face, sizes); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetLink[] = { &wxluatype_wxHtmlWinParser, &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetLink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetLink[1] = {{ wxLua_wxHtmlWinParser_SetLink, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetLink }}; -// void SetLink(const wxHtmlLinkInfo& link); -static int LUACALL wxLua_wxHtmlWinParser_SetLink(lua_State *L) -{ - // const wxHtmlLinkInfo link - const wxHtmlLinkInfo * link = (const wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlLinkInfo); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetLink - self->SetLink(*link); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_SetLinkColor[] = { &wxluatype_wxHtmlWinParser, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_SetLinkColor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_SetLinkColor[1] = {{ wxLua_wxHtmlWinParser_SetLinkColor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWinParser_SetLinkColor }}; -// void SetLinkColor(const wxColour& clr); -static int LUACALL wxLua_wxHtmlWinParser_SetLinkColor(lua_State *L) -{ - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlWinParser * self = (wxHtmlWinParser *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWinParser); - // call SetLinkColor - self->SetLinkColor(*clr); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWinParser_constructor[] = { &wxluatype_wxHtmlWindow, NULL }; -static int LUACALL wxLua_wxHtmlWinParser_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWinParser_constructor[1] = {{ wxLua_wxHtmlWinParser_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWinParser_constructor }}; -// wxHtmlWinParser(wxHtmlWindow *wnd); -static int LUACALL wxLua_wxHtmlWinParser_constructor(lua_State *L) -{ - // wxHtmlWindow wnd - wxHtmlWindow * wnd = (wxHtmlWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindow); - // call constructor - wxHtmlWinParser* returns = new wxHtmlWinParser(wnd); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlWinParser); - - return 1; -} - - - - -void wxLua_wxHtmlWinParser_delete_function(void** p) -{ - wxHtmlWinParser* o = (wxHtmlWinParser*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlWinParser_methods[] = { - { "CloseContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_CloseContainer, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "CreateCurrentFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_CreateCurrentFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetActualColor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetActualColor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetAlign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetAlign, 1, NULL }, - { "GetCharHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetCharHeight, 1, NULL }, - { "GetCharWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetCharWidth, 1, NULL }, - { "GetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetContainer, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetDC, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetFontBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetFontBold, 1, NULL }, - { "GetFontFace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetFontFace, 1, NULL }, - { "GetFontFixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetFontFixed, 1, NULL }, - { "GetFontItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetFontItalic, 1, NULL }, - { "GetFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetFontSize, 1, NULL }, - { "GetFontUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetFontUnderlined, 1, NULL }, - { "GetLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetLink, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetLinkColor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetLinkColor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetWindow, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "GetWindowInterface", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_GetWindowInterface, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "OpenContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_OpenContainer, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetActualColor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetActualColor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SetAlign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetAlign, 1, NULL }, - { "SetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetContainer, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetDC, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SetFontBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFontBold, 1, NULL }, - { "SetFontFace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFontFace, 1, NULL }, - { "SetFontFixed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFontFixed, 1, NULL }, - { "SetFontItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFontItalic, 1, NULL }, - { "SetFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFontSize, 1, NULL }, - { "SetFontUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFontUnderlined, 1, NULL }, - { "SetFonts", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetFonts, 1, NULL }, - { "SetLink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetLink, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetLinkColor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWinParser_SetLinkColor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "wxHtmlWinParser", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlWinParser_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlWinParser_methodCount = sizeof(wxHtmlWinParser_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxHtmlWindowInterface -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlWindowInterface' -int wxluatype_wxHtmlWindowInterface = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour[] = { &wxluatype_wxHtmlWindowInterface, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour[1] = {{ wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour }}; -// virtual wxColour GetHTMLBackgroundColour() const; -static int LUACALL wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour(lua_State *L) -{ - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call GetHTMLBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHTMLBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxCursor) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_GetHTMLCursor[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_GetHTMLCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_GetHTMLCursor[1] = {{ wxLua_wxHtmlWindowInterface_GetHTMLCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_GetHTMLCursor }}; -// virtual wxCursor GetHTMLCursor(wxHtmlWindowInterface::HTMLCursor type) const; -static int LUACALL wxLua_wxHtmlWindowInterface_GetHTMLCursor(lua_State *L) -{ - // wxHtmlWindowInterface::HTMLCursor type - wxHtmlWindowInterface::HTMLCursor type = (wxHtmlWindowInterface::HTMLCursor)wxlua_getenumtype(L, 2); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call GetHTMLCursor - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetHTMLCursor(type)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxCursor) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_GetHTMLWindow[] = { &wxluatype_wxHtmlWindowInterface, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_GetHTMLWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_GetHTMLWindow[1] = {{ wxLua_wxHtmlWindowInterface_GetHTMLWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_GetHTMLWindow }}; -// virtual wxWindow* GetHTMLWindow(); -static int LUACALL wxLua_wxHtmlWindowInterface_GetHTMLWindow(lua_State *L) -{ - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call GetHTMLWindow - wxWindow* returns = (wxWindow*)self->GetHTMLWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_wxHtmlCell, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow[1] = {{ wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow }}; -// virtual wxPoint HTMLCoordsToWindow(wxHtmlCell *cell, const wxPoint& pos) const; -static int LUACALL wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxHtmlCell cell - wxHtmlCell * cell = (wxHtmlCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlCell); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call HTMLCoordsToWindow - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->HTMLCoordsToWindow(cell, *pos)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_wxHtmlLinkInfo, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked[1] = {{ wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked }}; -// virtual void OnHTMLLinkClicked(const wxHtmlLinkInfo& link); -static int LUACALL wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked(lua_State *L) -{ - // const wxHtmlLinkInfo link - const wxHtmlLinkInfo * link = (const wxHtmlLinkInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlLinkInfo); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call OnHTMLLinkClicked - self->OnHTMLLinkClicked(*link); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour[1] = {{ wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour }}; -// virtual void SetHTMLBackgroundColour(const wxColour& clr); -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour(lua_State *L) -{ - // const wxColour clr - const wxColour * clr = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call SetHTMLBackgroundColour - self->SetHTMLBackgroundColour(*clr); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage[1] = {{ wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage }}; -// virtual void SetHTMLBackgroundImage(const wxBitmap& bmpBg); -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage(lua_State *L) -{ - // const wxBitmap bmpBg - const wxBitmap * bmpBg = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call SetHTMLBackgroundImage - self->SetHTMLBackgroundImage(*bmpBg); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLStatusText[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLStatusText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLStatusText[1] = {{ wxLua_wxHtmlWindowInterface_SetHTMLStatusText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLStatusText }}; -// virtual void SetHTMLStatusText(const wxString& text); -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLStatusText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call SetHTMLStatusText - self->SetHTMLStatusText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle[] = { &wxluatype_wxHtmlWindowInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle[1] = {{ wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle }}; -// virtual void SetHTMLWindowTitle(const wxString& title); -static int LUACALL wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlWindowInterface * self = (wxHtmlWindowInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlWindowInterface); - // call SetHTMLWindowTitle - self->SetHTMLWindowTitle(title); - - return 0; -} - - - - -void wxLua_wxHtmlWindowInterface_delete_function(void** p) -{ - wxHtmlWindowInterface* o = (wxHtmlWindowInterface*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlWindowInterface_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "GetHTMLBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_GetHTMLBackgroundColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxCursor) - { "GetHTMLCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_GetHTMLCursor, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxCursor) - - { "GetHTMLWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_GetHTMLWindow, 1, NULL }, - -#if (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "HTMLCoordsToWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_HTMLCoordsToWindow, 1, NULL }, -#endif // (((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "OnHTMLLinkClicked", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_OnHTMLLinkClicked, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - { "SetHTMLBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundColour, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxColourPenBrush) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxBitmap) - { "SetHTMLBackgroundImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLBackgroundImage, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxBitmap) - - { "SetHTMLStatusText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLStatusText, 1, NULL }, - { "SetHTMLWindowTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlWindowInterface_SetHTMLWindowTitle, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlWindowInterface_methodCount = sizeof(wxHtmlWindowInterface_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxHtmlWindowInterface_enums[] = { -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "HTMLCursor_Default", wxHtmlWindowInterface::HTMLCursor_Default }, - { "HTMLCursor_Link", wxHtmlWindowInterface::HTMLCursor_Link }, - { "HTMLCursor_Text", wxHtmlWindowInterface::HTMLCursor_Text }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { NULL, 0, }, -}; -int wxHtmlWindowInterface_enumCount = sizeof(wxHtmlWindowInterface_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxSimpleHtmlListBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSimpleHtmlListBox' -int wxluatype_wxSimpleHtmlListBox = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append3[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TSTRING, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Append3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append3[1] = {{ wxLua_wxSimpleHtmlListBox_Append3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append3 }}; -// int Append(const wxString& item, wxClientData *clientData); -static int LUACALL wxLua_wxSimpleHtmlListBox_Append3(lua_State *L) -{ - // wxClientData clientData - wxClientData * clientData = (wxClientData *)wxluaT_getuserdatatype(L, 3, wxluatype_wxClientData); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Append - int returns = (self->Append(item, clientData)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append2[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Append2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append2[1] = {{ wxLua_wxSimpleHtmlListBox_Append2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append2 }}; -// int Append(const wxString& item, voidptr_long number); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxSimpleHtmlListBox_Append2(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 3); - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Append - int returns = (self->Append(item, (void*)number)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append1[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Append1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append1[1] = {{ wxLua_wxSimpleHtmlListBox_Append1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append1 }}; -// int Append(const wxString& item); -static int LUACALL wxLua_wxSimpleHtmlListBox_Append1(lua_State *L) -{ - // const wxString item - const wxString item = wxlua_getwxStringtype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Append - int returns = (self->Append(item)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Append(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append[1] = {{ wxLua_wxSimpleHtmlListBox_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append }}; -// void Append(const wxArrayString& strings); -static int LUACALL wxLua_wxSimpleHtmlListBox_Append(lua_State *L) -{ - // const wxArrayString strings - wxLuaSmartwxArrayString strings = wxlua_getwxArrayString(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Append - self->Append(strings); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Clear[] = { &wxluatype_wxSimpleHtmlListBox, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Clear[1] = {{ wxLua_wxSimpleHtmlListBox_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxSimpleHtmlListBox_Clear(lua_State *L) -{ - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Clear - self->Clear(); - - return 0; -} - - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Create[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Create[1] = {{ wxLua_wxSimpleHtmlListBox_Create, WXLUAMETHOD_METHOD, 6, 9, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Create }}; -// bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = wxHLB_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxSimpleHtmlListBox"); -static int LUACALL wxLua_wxSimpleHtmlListBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSimpleHtmlListBox" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxSimpleHtmlListBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxHLB_DEFAULT_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxHLB_DEFAULT_STYLE); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 6); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, choices, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Delete[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Delete[1] = {{ wxLua_wxSimpleHtmlListBox_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Delete }}; -// virtual void Delete(unsigned int n); -static int LUACALL wxLua_wxSimpleHtmlListBox_Delete(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call Delete - self->Delete(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetCount[] = { &wxluatype_wxSimpleHtmlListBox, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetCount[1] = {{ wxLua_wxSimpleHtmlListBox_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetCount }}; -// virtual unsigned int GetCount() const; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetCount(lua_State *L) -{ - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetSelection[] = { &wxluatype_wxSimpleHtmlListBox, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetSelection[1] = {{ wxLua_wxSimpleHtmlListBox_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetSelection(lua_State *L) -{ - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetString[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetString[1] = {{ wxLua_wxSimpleHtmlListBox_GetString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetString }}; -// virtual wxString GetString(unsigned int n) const; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetString(lua_State *L) -{ - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call GetString - wxString returns = (self->GetString(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetStrings[] = { &wxluatype_wxSimpleHtmlListBox, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetStrings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetStrings[1] = {{ wxLua_wxSimpleHtmlListBox_GetStrings, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_GetStrings }}; -// wxArrayString GetStrings() const; -static int LUACALL wxLua_wxSimpleHtmlListBox_GetStrings(lua_State *L) -{ - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call GetStrings - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetStrings()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_SetSelection[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_SetSelection[1] = {{ wxLua_wxSimpleHtmlListBox_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_SetSelection }}; -// void SetSelection(int n); -static int LUACALL wxLua_wxSimpleHtmlListBox_SetSelection(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call SetSelection - self->SetSelection(n); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_SetString[] = { &wxluatype_wxSimpleHtmlListBox, &wxluatype_TINTEGER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_SetString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_SetString[1] = {{ wxLua_wxSimpleHtmlListBox_SetString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_SetString }}; -// virtual void SetString(unsigned int n, const wxString& s); -static int LUACALL wxLua_wxSimpleHtmlListBox_SetString(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 3); - // unsigned int n - unsigned int n = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxSimpleHtmlListBox * self = (wxSimpleHtmlListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSimpleHtmlListBox); - // call SetString - self->SetString(n, s); - - return 0; -} - - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayString, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSimpleHtmlListBox_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor1[1] = {{ wxLua_wxSimpleHtmlListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 8, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_constructor1 }}; -// wxSimpleHtmlListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, const wxArrayString& choices, long style = wxHLB_DEFAULT_STYLE, const wxValidator& validator = wxDefaultValidator, const wxString& name = "wxSimpleHtmlListBox"); -static int LUACALL wxLua_wxSimpleHtmlListBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxSimpleHtmlListBox" - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxT("wxSimpleHtmlListBox"))); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxHLB_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxHLB_DEFAULT_STYLE); - // const wxArrayString choices - wxLuaSmartwxArrayString choices = wxlua_getwxArrayString(L, 5); - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSimpleHtmlListBox* returns = new wxSimpleHtmlListBox(parent, id, *pos, *size, choices, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSimpleHtmlListBox); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxSimpleHtmlListBox_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor[1] = {{ wxLua_wxSimpleHtmlListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSimpleHtmlListBox(); -static int LUACALL wxLua_wxSimpleHtmlListBox_constructor(lua_State *L) -{ - // call constructor - wxSimpleHtmlListBox* returns = new wxSimpleHtmlListBox(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSimpleHtmlListBox); - - return 1; -} - - - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append_overload[] = -{ - { wxLua_wxSimpleHtmlListBox_Append3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append3 }, - { wxLua_wxSimpleHtmlListBox_Append2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append2 }, - { wxLua_wxSimpleHtmlListBox_Append1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append1 }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) - { wxLua_wxSimpleHtmlListBox_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_Append }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) -}; -static int s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append_overload_count = sizeof(s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) - -#if (((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor_overload[] = -{ - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxSimpleHtmlListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 8, s_wxluatypeArray_wxLua_wxSimpleHtmlListBox_constructor1 }, -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxSimpleHtmlListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - -void wxLua_wxSimpleHtmlListBox_delete_function(void** p) -{ - wxSimpleHtmlListBox* o = (wxSimpleHtmlListBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSimpleHtmlListBox_methods[] = { -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append_overload, s_wxluafunc_wxLua_wxSimpleHtmlListBox_Append_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML))||(((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_Clear, 1, NULL }, - -#if ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_Create, 1, NULL }, -#endif // ((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_Delete, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetCount, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetSelection, 1, NULL }, - { "GetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetString, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) - { "GetStrings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_GetStrings, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString) - - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_SetSelection, 1, NULL }, - { "SetString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSimpleHtmlListBox_SetString, 1, NULL }, - -#if (((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - { "wxSimpleHtmlListBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor_overload, s_wxluafunc_wxLua_wxSimpleHtmlListBox_constructor_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - - { 0, 0, 0, 0 }, -}; - -int wxSimpleHtmlListBox_methodCount = sizeof(wxSimpleHtmlListBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlDCRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlDCRenderer' -int wxluatype_wxHtmlDCRenderer = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_FindNextPageBreak[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_FindNextPageBreak(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_FindNextPageBreak[1] = {{ wxLua_wxHtmlDCRenderer_FindNextPageBreak, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_FindNextPageBreak }}; -// %wxchkver_3_1_2 int FindNextPageBreak(int pos) const; -static int LUACALL wxLua_wxHtmlDCRenderer_FindNextPageBreak(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call FindNextPageBreak - int returns = (self->FindNextPageBreak(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_GetTotalHeight[] = { &wxluatype_wxHtmlDCRenderer, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_GetTotalHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_GetTotalHeight[1] = {{ wxLua_wxHtmlDCRenderer_GetTotalHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_GetTotalHeight }}; -// int GetTotalHeight() const; -static int LUACALL wxLua_wxHtmlDCRenderer_GetTotalHeight(lua_State *L) -{ - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call GetTotalHeight - int returns = (self->GetTotalHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_GetTotalWidth[] = { &wxluatype_wxHtmlDCRenderer, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_GetTotalWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_GetTotalWidth[1] = {{ wxLua_wxHtmlDCRenderer_GetTotalWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_GetTotalWidth }}; -// int GetTotalWidth() const; -static int LUACALL wxLua_wxHtmlDCRenderer_GetTotalWidth(lua_State *L) -{ - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call GetTotalWidth - int returns = (self->GetTotalWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_Render1[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxArrayInt, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_Render1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_Render1[1] = {{ wxLua_wxHtmlDCRenderer_Render1, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_Render1 }}; -// !%wxchkver_3_1_2 && %wxchkver_2_8 int Render(int x, int y, wxArrayInt& known_pagebreaks, int from = 0, int dont_render = false, int to = INT_MAX); -static int LUACALL wxLua_wxHtmlDCRenderer_Render1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int to = INT_MAX - int to = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : INT_MAX); - // int dont_render = false - int dont_render = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : false); - // int from = 0 - int from = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // wxArrayInt known_pagebreaks - wxArrayInt * known_pagebreaks = (wxArrayInt *)wxluaT_getuserdatatype(L, 4, wxluatype_wxArrayInt); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call Render - int returns = (self->Render(x, y, *known_pagebreaks, from, dont_render, to)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_Render[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_Render(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_Render[1] = {{ wxLua_wxHtmlDCRenderer_Render, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_Render }}; -// %wxchkver_3_1_2 void Render(int x, int y, int from = 0, int to = INT_MAX); -static int LUACALL wxLua_wxHtmlDCRenderer_Render(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int to = INT_MAX - int to = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : INT_MAX); - // int from = 0 - int from = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call Render - self->Render(x, y, from, to); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetDC[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_SetDC(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_SetDC[1] = {{ wxLua_wxHtmlDCRenderer_SetDC, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetDC }}; -// void SetDC(wxDC* dc, double pixel_scale = 1.0); -static int LUACALL wxLua_wxHtmlDCRenderer_SetDC(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double pixel_scale = 1.0 - double pixel_scale = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 1.0); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call SetDC - self->SetDC(dc, pixel_scale); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetHtmlCell[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_wxHtmlContainerCell, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_SetHtmlCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_SetHtmlCell[1] = {{ wxLua_wxHtmlDCRenderer_SetHtmlCell, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetHtmlCell }}; -// %wxchkver_3_1_2 void SetHtmlCell(wxHtmlContainerCell& cell); -static int LUACALL wxLua_wxHtmlDCRenderer_SetHtmlCell(lua_State *L) -{ - // wxHtmlContainerCell cell - wxHtmlContainerCell * cell = (wxHtmlContainerCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxHtmlContainerCell); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call SetHtmlCell - self->SetHtmlCell(*cell); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetHtmlText[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_SetHtmlText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_SetHtmlText[1] = {{ wxLua_wxHtmlDCRenderer_SetHtmlText, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetHtmlText }}; -// void SetHtmlText(const wxString& html, const wxString& basepath = wxEmptyString, bool isdir = true); -static int LUACALL wxLua_wxHtmlDCRenderer_SetHtmlText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isdir = true - bool isdir = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxString basepath = wxEmptyString - const wxString basepath = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString html - const wxString html = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call SetHtmlText - self->SetHtmlText(html, basepath, isdir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetSize[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_SetSize[1] = {{ wxLua_wxHtmlDCRenderer_SetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetSize }}; -// void SetSize(int width, int height); -static int LUACALL wxLua_wxHtmlDCRenderer_SetSize(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 3); - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call SetSize - self->SetSize(width, height); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetStandardFonts[] = { &wxluatype_wxHtmlDCRenderer, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlDCRenderer_SetStandardFonts(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_SetStandardFonts[1] = {{ wxLua_wxHtmlDCRenderer_SetStandardFonts, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_SetStandardFonts }}; -// %wxchkver_3_1_2 void SetStandardFonts(int size = -1, const wxString& normal_face = wxEmptyString, const wxString& fixed_face = wxEmptyString); -static int LUACALL wxLua_wxHtmlDCRenderer_SetStandardFonts(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString fixed_face = wxEmptyString - const wxString fixed_face = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString normal_face = wxEmptyString - const wxString normal_face = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int size = -1 - int size = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxHtmlDCRenderer * self = (wxHtmlDCRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlDCRenderer); - // call SetStandardFonts - self->SetStandardFonts(size, normal_face, fixed_face); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlDCRenderer_delete[] = { &wxluatype_wxHtmlDCRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_delete }}; - -static int LUACALL wxLua_wxHtmlDCRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_constructor[1] = {{ wxLua_wxHtmlDCRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlDCRenderer(); -static int LUACALL wxLua_wxHtmlDCRenderer_constructor(lua_State *L) -{ - // call constructor - wxHtmlDCRenderer* returns = new wxHtmlDCRenderer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlDCRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlDCRenderer); - - return 1; -} - - - - -#if (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlDCRenderer_Render_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxHtmlDCRenderer_Render1, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_Render1 }, -#endif // ((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxLua_wxHtmlDCRenderer_Render, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxHtmlDCRenderer_Render }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -}; -static int s_wxluafunc_wxLua_wxHtmlDCRenderer_Render_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlDCRenderer_Render_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - -void wxLua_wxHtmlDCRenderer_delete_function(void** p) -{ - wxHtmlDCRenderer* o = (wxHtmlDCRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlDCRenderer_methods[] = { -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "FindNextPageBreak", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_FindNextPageBreak, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "GetTotalHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_GetTotalHeight, 1, NULL }, - { "GetTotalWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_GetTotalWidth, 1, NULL }, - -#if (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - { "Render", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_Render_overload, s_wxluafunc_wxLua_wxHtmlDCRenderer_Render_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,1,2) && wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxArrayInt))||((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetDC", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_SetDC, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetHtmlCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_SetHtmlCell, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SetHtmlText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_SetHtmlText, 1, NULL }, - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_SetSize, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "SetStandardFonts", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlDCRenderer_SetStandardFonts, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlDCRenderer_delete, 1, NULL }, - { "wxHtmlDCRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlDCRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlDCRenderer_methodCount = sizeof(wxHtmlDCRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlEasyPrinting -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlEasyPrinting' -int wxluatype_wxHtmlEasyPrinting = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_GetPageSetupData[] = { &wxluatype_wxHtmlEasyPrinting, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_GetPageSetupData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_GetPageSetupData[1] = {{ wxLua_wxHtmlEasyPrinting_GetPageSetupData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_GetPageSetupData }}; -// wxPageSetupDialogData* GetPageSetupData(); -static int LUACALL wxLua_wxHtmlEasyPrinting_GetPageSetupData(lua_State *L) -{ - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call GetPageSetupData - wxPageSetupDialogData* returns = (wxPageSetupDialogData*)self->GetPageSetupData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialogData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_GetPrintData[] = { &wxluatype_wxHtmlEasyPrinting, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_GetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_GetPrintData[1] = {{ wxLua_wxHtmlEasyPrinting_GetPrintData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_GetPrintData }}; -// wxPrintData* GetPrintData(); -static int LUACALL wxLua_wxHtmlEasyPrinting_GetPrintData(lua_State *L) -{ - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call GetPrintData - wxPrintData* returns = (wxPrintData*)self->GetPrintData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PageSetup[] = { &wxluatype_wxHtmlEasyPrinting, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_PageSetup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_PageSetup[1] = {{ wxLua_wxHtmlEasyPrinting_PageSetup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PageSetup }}; -// void PageSetup(); -static int LUACALL wxLua_wxHtmlEasyPrinting_PageSetup(lua_State *L) -{ - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call PageSetup - self->PageSetup(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PreviewFile[] = { &wxluatype_wxHtmlEasyPrinting, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_PreviewFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_PreviewFile[1] = {{ wxLua_wxHtmlEasyPrinting_PreviewFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PreviewFile }}; -// bool PreviewFile(const wxString& htmlfile); -static int LUACALL wxLua_wxHtmlEasyPrinting_PreviewFile(lua_State *L) -{ - // const wxString htmlfile - const wxString htmlfile = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call PreviewFile - bool returns = (self->PreviewFile(htmlfile)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PreviewText[] = { &wxluatype_wxHtmlEasyPrinting, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_PreviewText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_PreviewText[1] = {{ wxLua_wxHtmlEasyPrinting_PreviewText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PreviewText }}; -// bool PreviewText(const wxString& htmltext, const wxString& basepath = ""); -static int LUACALL wxLua_wxHtmlEasyPrinting_PreviewText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString basepath = "" - const wxString basepath = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString htmltext - const wxString htmltext = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call PreviewText - bool returns = (self->PreviewText(htmltext, basepath)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PrintFile[] = { &wxluatype_wxHtmlEasyPrinting, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_PrintFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_PrintFile[1] = {{ wxLua_wxHtmlEasyPrinting_PrintFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PrintFile }}; -// bool PrintFile(const wxString& htmlfile); -static int LUACALL wxLua_wxHtmlEasyPrinting_PrintFile(lua_State *L) -{ - // const wxString htmlfile - const wxString htmlfile = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call PrintFile - bool returns = (self->PrintFile(htmlfile)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PrintText[] = { &wxluatype_wxHtmlEasyPrinting, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_PrintText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_PrintText[1] = {{ wxLua_wxHtmlEasyPrinting_PrintText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PrintText }}; -// bool PrintText(const wxString& htmltext, const wxString& basepath = ""); -static int LUACALL wxLua_wxHtmlEasyPrinting_PrintText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString basepath = "" - const wxString basepath = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString htmltext - const wxString htmltext = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call PrintText - bool returns = (self->PrintText(htmltext, basepath)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,4,0) && !wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PrinterSetup[] = { &wxluatype_wxHtmlEasyPrinting, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_PrinterSetup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_PrinterSetup[1] = {{ wxLua_wxHtmlEasyPrinting_PrinterSetup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_PrinterSetup }}; -// %wxchkver_2_4&!%wxchkver_2_6 void PrinterSetup(); -static int LUACALL wxLua_wxHtmlEasyPrinting_PrinterSetup(lua_State *L) -{ - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call PrinterSetup - self->PrinterSetup(); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,4,0) && !wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_SetFooter[] = { &wxluatype_wxHtmlEasyPrinting, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_SetFooter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_SetFooter[1] = {{ wxLua_wxHtmlEasyPrinting_SetFooter, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_SetFooter }}; -// void SetFooter(const wxString& footer, int pg = wxPAGE_ALL); -static int LUACALL wxLua_wxHtmlEasyPrinting_SetFooter(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pg = wxPAGE_ALL - int pg = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPAGE_ALL); - // const wxString footer - const wxString footer = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call SetFooter - self->SetFooter(footer, pg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_SetHeader[] = { &wxluatype_wxHtmlEasyPrinting, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_SetHeader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_SetHeader[1] = {{ wxLua_wxHtmlEasyPrinting_SetHeader, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_SetHeader }}; -// void SetHeader(const wxString& header, int pg = wxPAGE_ALL); -static int LUACALL wxLua_wxHtmlEasyPrinting_SetHeader(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pg = wxPAGE_ALL - int pg = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPAGE_ALL); - // const wxString header - const wxString header = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlEasyPrinting * self = (wxHtmlEasyPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlEasyPrinting); - // call SetHeader - self->SetHeader(header, pg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_delete[] = { &wxluatype_wxHtmlEasyPrinting, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_delete }}; - - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxFrame, NULL }; -static int LUACALL wxLua_wxHtmlEasyPrinting_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlEasyPrinting_constructor[1] = {{ wxLua_wxHtmlEasyPrinting_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxHtmlEasyPrinting_constructor }}; -// wxHtmlEasyPrinting(const wxString& name = "Printing", wxFrame* parent_frame = NULL); -static int LUACALL wxLua_wxHtmlEasyPrinting_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFrame parent_frame = NULL - wxFrame * parent_frame = (argCount >= 2 ? (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame) : NULL); - // const wxString name = "Printing" - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("Printing"))); - // call constructor - wxHtmlEasyPrinting* returns = new wxHtmlEasyPrinting(name, parent_frame); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlEasyPrinting); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlEasyPrinting); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - - -void wxLua_wxHtmlEasyPrinting_delete_function(void** p) -{ - wxHtmlEasyPrinting* o = (wxHtmlEasyPrinting*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlEasyPrinting_methods[] = { -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - { "GetPageSetupData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_GetPageSetupData, 1, NULL }, - { "GetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_GetPrintData, 1, NULL }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) - - { "PageSetup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_PageSetup, 1, NULL }, - { "PreviewFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_PreviewFile, 1, NULL }, - { "PreviewText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_PreviewText, 1, NULL }, - { "PrintFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_PrintFile, 1, NULL }, - { "PrintText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_PrintText, 1, NULL }, - -#if (wxCHECK_VERSION(2,4,0) && !wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "PrinterSetup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_PrinterSetup, 1, NULL }, -#endif // (wxCHECK_VERSION(2,4,0) && !wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { "SetFooter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_SetFooter, 1, NULL }, - { "SetHeader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlEasyPrinting_SetHeader, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlEasyPrinting_delete, 1, NULL }, - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "wxHtmlEasyPrinting", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlEasyPrinting_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - { 0, 0, 0, 0 }, -}; - -int wxHtmlEasyPrinting_methodCount = sizeof(wxHtmlEasyPrinting_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if wxLUA_USE_wxHTML && wxUSE_HTML -// --------------------------------------------------------------------------- -// Bind class wxHtmlPrintout -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlPrintout' -int wxluatype_wxHtmlPrintout = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_SetFooter[] = { &wxluatype_wxHtmlPrintout, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlPrintout_SetFooter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_SetFooter[1] = {{ wxLua_wxHtmlPrintout_SetFooter, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlPrintout_SetFooter }}; -// void SetFooter(const wxString& footer, int pg = wxPAGE_ALL); -static int LUACALL wxLua_wxHtmlPrintout_SetFooter(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pg = wxPAGE_ALL - int pg = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPAGE_ALL); - // const wxString footer - const wxString footer = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlPrintout * self = (wxHtmlPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlPrintout); - // call SetFooter - self->SetFooter(footer, pg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_SetHeader[] = { &wxluatype_wxHtmlPrintout, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlPrintout_SetHeader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_SetHeader[1] = {{ wxLua_wxHtmlPrintout_SetHeader, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlPrintout_SetHeader }}; -// void SetHeader(const wxString& header, int pg = wxPAGE_ALL); -static int LUACALL wxLua_wxHtmlPrintout_SetHeader(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int pg = wxPAGE_ALL - int pg = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPAGE_ALL); - // const wxString header - const wxString header = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlPrintout * self = (wxHtmlPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlPrintout); - // call SetHeader - self->SetHeader(header, pg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_SetHtmlFile[] = { &wxluatype_wxHtmlPrintout, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlPrintout_SetHtmlFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_SetHtmlFile[1] = {{ wxLua_wxHtmlPrintout_SetHtmlFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlPrintout_SetHtmlFile }}; -// void SetHtmlFile(const wxString& htmlfile); -static int LUACALL wxLua_wxHtmlPrintout_SetHtmlFile(lua_State *L) -{ - // const wxString htmlfile - const wxString htmlfile = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlPrintout * self = (wxHtmlPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlPrintout); - // call SetHtmlFile - self->SetHtmlFile(htmlfile); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_SetHtmlText[] = { &wxluatype_wxHtmlPrintout, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHtmlPrintout_SetHtmlText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_SetHtmlText[1] = {{ wxLua_wxHtmlPrintout_SetHtmlText, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxHtmlPrintout_SetHtmlText }}; -// void SetHtmlText(const wxString& html, const wxString& basepath = "", bool isdir = true); -static int LUACALL wxLua_wxHtmlPrintout_SetHtmlText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isdir = true - bool isdir = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxString basepath = "" - const wxString basepath = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString html - const wxString html = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlPrintout * self = (wxHtmlPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlPrintout); - // call SetHtmlText - self->SetHtmlText(html, basepath, isdir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_SetMargins[] = { &wxluatype_wxHtmlPrintout, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlPrintout_SetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_SetMargins[1] = {{ wxLua_wxHtmlPrintout_SetMargins, WXLUAMETHOD_METHOD, 1, 6, s_wxluatypeArray_wxLua_wxHtmlPrintout_SetMargins }}; -// void SetMargins(float top = 25.2, float bottom = 25.2, float left = 25.2, float right = 25.2, float spaces = 5); -static int LUACALL wxLua_wxHtmlPrintout_SetMargins(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // float spaces = 5 - float spaces = (argCount >= 6 ? (float)wxlua_getnumbertype(L, 6) : 5); - // float right = 25.2 - float right = (argCount >= 5 ? (float)wxlua_getnumbertype(L, 5) : 25.2); - // float left = 25.2 - float left = (argCount >= 4 ? (float)wxlua_getnumbertype(L, 4) : 25.2); - // float bottom = 25.2 - float bottom = (argCount >= 3 ? (float)wxlua_getnumbertype(L, 3) : 25.2); - // float top = 25.2 - float top = (argCount >= 2 ? (float)wxlua_getnumbertype(L, 2) : 25.2); - // get this - wxHtmlPrintout * self = (wxHtmlPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlPrintout); - // call SetMargins - self->SetMargins(top, bottom, left, right, spaces); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_delete[] = { &wxluatype_wxHtmlPrintout, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlPrintout_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlPrintout_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlPrintout_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlPrintout_constructor[1] = {{ wxLua_wxHtmlPrintout_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxHtmlPrintout_constructor }}; -// wxHtmlPrintout(const wxString& title = "Printout"); -static int LUACALL wxLua_wxHtmlPrintout_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString title = "Printout" - const wxString title = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("Printout"))); - // call constructor - wxHtmlPrintout* returns = new wxHtmlPrintout(title); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlPrintout); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlPrintout); - - return 1; -} - - - - -void wxLua_wxHtmlPrintout_delete_function(void** p) -{ - wxHtmlPrintout* o = (wxHtmlPrintout*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlPrintout_methods[] = { - { "SetFooter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlPrintout_SetFooter, 1, NULL }, - { "SetHeader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlPrintout_SetHeader, 1, NULL }, - { "SetHtmlFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlPrintout_SetHtmlFile, 1, NULL }, - { "SetHtmlText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlPrintout_SetHtmlText, 1, NULL }, - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlPrintout_SetMargins, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlPrintout_delete, 1, NULL }, - { "wxHtmlPrintout", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlPrintout_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlPrintout_methodCount = sizeof(wxHtmlPrintout_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) -// --------------------------------------------------------------------------- -// Bind class wxHtmlHelpData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlHelpData' -int wxluatype_wxHtmlHelpData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpData_AddBook[] = { &wxluatype_wxHtmlHelpData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpData_AddBook(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpData_AddBook[1] = {{ wxLua_wxHtmlHelpData_AddBook, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpData_AddBook }}; -// bool AddBook(const wxString& book); -static int LUACALL wxLua_wxHtmlHelpData_AddBook(lua_State *L) -{ - // const wxString book - const wxString book = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpData * self = (wxHtmlHelpData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpData); - // call AddBook - bool returns = (self->AddBook(book)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpData_FindPageById[] = { &wxluatype_wxHtmlHelpData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlHelpData_FindPageById(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpData_FindPageById[1] = {{ wxLua_wxHtmlHelpData_FindPageById, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpData_FindPageById }}; -// wxString FindPageById(int id); -static int LUACALL wxLua_wxHtmlHelpData_FindPageById(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlHelpData * self = (wxHtmlHelpData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpData); - // call FindPageById - wxString returns = (self->FindPageById(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpData_FindPageByName[] = { &wxluatype_wxHtmlHelpData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpData_FindPageByName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpData_FindPageByName[1] = {{ wxLua_wxHtmlHelpData_FindPageByName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpData_FindPageByName }}; -// wxString FindPageByName(const wxString& page); -static int LUACALL wxLua_wxHtmlHelpData_FindPageByName(lua_State *L) -{ - // const wxString page - const wxString page = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpData * self = (wxHtmlHelpData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpData); - // call FindPageByName - wxString returns = (self->FindPageByName(page)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpData_SetTempDir[] = { &wxluatype_wxHtmlHelpData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpData_SetTempDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpData_SetTempDir[1] = {{ wxLua_wxHtmlHelpData_SetTempDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpData_SetTempDir }}; -// void SetTempDir(const wxString& path); -static int LUACALL wxLua_wxHtmlHelpData_SetTempDir(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpData * self = (wxHtmlHelpData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpData); - // call SetTempDir - self->SetTempDir(path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpData_delete[] = { &wxluatype_wxHtmlHelpData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlHelpData_delete }}; - -static int LUACALL wxLua_wxHtmlHelpData_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpData_constructor[1] = {{ wxLua_wxHtmlHelpData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHtmlHelpData(); -static int LUACALL wxLua_wxHtmlHelpData_constructor(lua_State *L) -{ - // call constructor - wxHtmlHelpData* returns = new wxHtmlHelpData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlHelpData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlHelpData); - - return 1; -} - - - - -void wxLua_wxHtmlHelpData_delete_function(void** p) -{ - wxHtmlHelpData* o = (wxHtmlHelpData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlHelpData_methods[] = { - { "AddBook", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpData_AddBook, 1, NULL }, - { "FindPageById", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpData_FindPageById, 1, NULL }, - { "FindPageByName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpData_FindPageByName, 1, NULL }, - { "SetTempDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpData_SetTempDir, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlHelpData_delete, 1, NULL }, - { "wxHtmlHelpData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlHelpData_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlHelpData_methodCount = sizeof(wxHtmlHelpData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) -// --------------------------------------------------------------------------- -// Bind class wxHtmlHelpController -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHtmlHelpController' -int wxluatype_wxHtmlHelpController = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_AddBook1[] = { &wxluatype_wxHtmlHelpController, &wxluatype_wxFileName, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_AddBook1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_AddBook1[1] = {{ wxLua_wxHtmlHelpController_AddBook1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_AddBook1 }}; -// bool AddBook(const wxFileName& book_file, bool show_wait_msg); -static int LUACALL wxLua_wxHtmlHelpController_AddBook1(lua_State *L) -{ - // bool show_wait_msg - bool show_wait_msg = wxlua_getbooleantype(L, 3); - // const wxFileName book_file - const wxFileName * book_file = (const wxFileName *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFileName); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call AddBook - bool returns = (self->AddBook(*book_file, show_wait_msg)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_AddBook[] = { &wxluatype_wxHtmlHelpController, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_AddBook(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_AddBook[1] = {{ wxLua_wxHtmlHelpController_AddBook, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_AddBook }}; -// bool AddBook(const wxString& book, bool show_wait_msg); -static int LUACALL wxLua_wxHtmlHelpController_AddBook(lua_State *L) -{ - // bool show_wait_msg - bool show_wait_msg = wxlua_getbooleantype(L, 3); - // const wxString book - const wxString book = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call AddBook - bool returns = (self->AddBook(book, show_wait_msg)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_Display1[] = { &wxluatype_wxHtmlHelpController, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_Display1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_Display1[1] = {{ wxLua_wxHtmlHelpController_Display1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpController_Display1 }}; -// void Display(const int id); -static int LUACALL wxLua_wxHtmlHelpController_Display1(lua_State *L) -{ - // const int id - const int id = (const int)wxlua_getnumbertype(L, 2); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call Display - self->Display(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_Display[] = { &wxluatype_wxHtmlHelpController, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_Display(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_Display[1] = {{ wxLua_wxHtmlHelpController_Display, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpController_Display }}; -// void Display(const wxString& x); -static int LUACALL wxLua_wxHtmlHelpController_Display(lua_State *L) -{ - // const wxString x - const wxString x = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call Display - self->Display(x); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_DisplayIndex[] = { &wxluatype_wxHtmlHelpController, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_DisplayIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_DisplayIndex[1] = {{ wxLua_wxHtmlHelpController_DisplayIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHtmlHelpController_DisplayIndex }}; -// void DisplayIndex(); -static int LUACALL wxLua_wxHtmlHelpController_DisplayIndex(lua_State *L) -{ - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call DisplayIndex - self->DisplayIndex(); - - return 0; -} - - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_ReadCustomization[] = { &wxluatype_wxHtmlHelpController, &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_ReadCustomization(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_ReadCustomization[1] = {{ wxLua_wxHtmlHelpController_ReadCustomization, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_ReadCustomization }}; -// void ReadCustomization(wxConfigBase* cfg, wxString path = ""); -static int LUACALL wxLua_wxHtmlHelpController_ReadCustomization(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString path = "" - wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxConfigBase cfg - wxConfigBase * cfg = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call ReadCustomization - self->ReadCustomization(cfg, path); - - return 0; -} - -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_SetTempDir[] = { &wxluatype_wxHtmlHelpController, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_SetTempDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_SetTempDir[1] = {{ wxLua_wxHtmlHelpController_SetTempDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpController_SetTempDir }}; -// void SetTempDir(const wxString& path); -static int LUACALL wxLua_wxHtmlHelpController_SetTempDir(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call SetTempDir - self->SetTempDir(path); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_SetTitleFormat[] = { &wxluatype_wxHtmlHelpController, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_SetTitleFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_SetTitleFormat[1] = {{ wxLua_wxHtmlHelpController_SetTitleFormat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpController_SetTitleFormat }}; -// void SetTitleFormat(const wxString& format); -static int LUACALL wxLua_wxHtmlHelpController_SetTitleFormat(lua_State *L) -{ - // const wxString format - const wxString format = wxlua_getwxStringtype(L, 2); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call SetTitleFormat - self->SetTitleFormat(format); - - return 0; -} - - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_UseConfig[] = { &wxluatype_wxHtmlHelpController, &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_UseConfig(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_UseConfig[1] = {{ wxLua_wxHtmlHelpController_UseConfig, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_UseConfig }}; -// void UseConfig(wxConfigBase* config, const wxString& rootpath = ""); -static int LUACALL wxLua_wxHtmlHelpController_UseConfig(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString rootpath = "" - const wxString rootpath = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxConfigBase config - wxConfigBase * config = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call UseConfig - self->UseConfig(config, rootpath); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_WriteCustomization[] = { &wxluatype_wxHtmlHelpController, &wxluatype_wxConfigBase, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_WriteCustomization(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_WriteCustomization[1] = {{ wxLua_wxHtmlHelpController_WriteCustomization, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_WriteCustomization }}; -// void WriteCustomization(wxConfigBase* cfg, wxString path = ""); -static int LUACALL wxLua_wxHtmlHelpController_WriteCustomization(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxString path = "" - wxString path = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxConfigBase cfg - wxConfigBase * cfg = (wxConfigBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxConfigBase); - // get this - wxHtmlHelpController * self = (wxHtmlHelpController *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHtmlHelpController); - // call WriteCustomization - self->WriteCustomization(cfg, path); - - return 0; -} - -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_delete[] = { &wxluatype_wxHtmlHelpController, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHtmlHelpController_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHtmlHelpController_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxHtmlHelpController_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_constructor[1] = {{ wxLua_wxHtmlHelpController_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxHtmlHelpController_constructor }}; -// wxHtmlHelpController(int style = wxHF_DEFAULT_STYLE); -static int LUACALL wxLua_wxHtmlHelpController_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int style = wxHF_DEFAULT_STYLE - int style = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxHF_DEFAULT_STYLE); - // call constructor - wxHtmlHelpController* returns = new wxHtmlHelpController(style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHtmlHelpController); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHtmlHelpController); - - return 1; -} - - - - -#if (((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName))||((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_AddBook_overload[] = -{ - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName) - { wxLua_wxHtmlHelpController_AddBook1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_AddBook1 }, -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName) - { wxLua_wxHtmlHelpController_AddBook, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHtmlHelpController_AddBook }, -}; -static int s_wxluafunc_wxLua_wxHtmlHelpController_AddBook_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlHelpController_AddBook_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName))||((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHtmlHelpController_Display_overload[] = -{ - { wxLua_wxHtmlHelpController_Display1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpController_Display1 }, - { wxLua_wxHtmlHelpController_Display, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHtmlHelpController_Display }, -}; -static int s_wxluafunc_wxLua_wxHtmlHelpController_Display_overload_count = sizeof(s_wxluafunc_wxLua_wxHtmlHelpController_Display_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) - -void wxLua_wxHtmlHelpController_delete_function(void** p) -{ - wxHtmlHelpController* o = (wxHtmlHelpController*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHtmlHelpController_methods[] = { -#if (((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName))||((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) - { "AddBook", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_AddBook_overload, s_wxluafunc_wxLua_wxHtmlHelpController_AddBook_overload_count, 0 }, -#endif // (((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxFileName))||((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) - { "Display", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_Display_overload, s_wxluafunc_wxLua_wxHtmlHelpController_Display_overload_count, 0 }, -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) - - { "DisplayIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_DisplayIndex, 1, NULL }, - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "ReadCustomization", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_ReadCustomization, 1, NULL }, -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { "SetTempDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_SetTempDir, 1, NULL }, - { "SetTitleFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_SetTitleFormat, 1, NULL }, - -#if ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - { "UseConfig", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_UseConfig, 1, NULL }, - { "WriteCustomization", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHtmlHelpController_WriteCustomization, 1, NULL }, -#endif // ((wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP)) && (wxLUA_USE_wxConfig && wxUSE_CONFIG) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHtmlHelpController_delete, 1, NULL }, - { "wxHtmlHelpController", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHtmlHelpController_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHtmlHelpController_methodCount = sizeof(wxHtmlHelpController_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxhtml_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxhtml() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxhtml(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "wxEVT_HTML_CELL_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_HTML_CELL_CLICKED), &wxluatype_wxHtmlCellEvent }, - { "wxEVT_HTML_CELL_HOVER", WXLUA_GET_wxEventType_ptr(wxEVT_HTML_CELL_HOVER), &wxluatype_wxHtmlCellEvent }, - { "wxEVT_HTML_LINK_CLICKED", WXLUA_GET_wxEventType_ptr(wxEVT_HTML_LINK_CLICKED), &wxluatype_wxHtmlLinkEvent }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - { "wxEVT_HTML_TAG_HANDLER", WXLUA_GET_wxEventType_ptr(wxEVT_HTML_TAG_HANDLER), &wxluatype_wxLuaHtmlWinTagEvent }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxhtml() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxhtml(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - { "wxHF_BOOKMARKS", wxHF_BOOKMARKS }, - { "wxHF_CONTENTS", wxHF_CONTENTS }, - { "wxHF_DEFAULT_STYLE", wxHF_DEFAULT_STYLE }, - { "wxHF_FLAT_TOOLBAR", wxHF_FLAT_TOOLBAR }, - { "wxHF_ICONS_BOOK", wxHF_ICONS_BOOK }, - { "wxHF_ICONS_BOOK_CHAPTER", wxHF_ICONS_BOOK_CHAPTER }, - { "wxHF_ICONS_FOLDER", wxHF_ICONS_FOLDER }, - { "wxHF_INDEX", wxHF_INDEX }, - { "wxHF_MERGE_BOOKS", wxHF_MERGE_BOOKS }, - { "wxHF_OPEN_FILES", wxHF_OPEN_FILES }, - { "wxHF_PRINT", wxHF_PRINT }, - { "wxHF_SEARCH", wxHF_SEARCH }, - { "wxHF_TOOLBAR", wxHF_TOOLBAR }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "wxHLB_DEFAULT_STYLE", wxHLB_DEFAULT_STYLE }, - { "wxHLB_MULTIPLE", wxHLB_MULTIPLE }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - { "wxHTML_ALIGN_BOTTOM", wxHTML_ALIGN_BOTTOM }, - { "wxHTML_ALIGN_CENTER", wxHTML_ALIGN_CENTER }, - { "wxHTML_ALIGN_JUSTIFY", wxHTML_ALIGN_JUSTIFY }, - { "wxHTML_ALIGN_LEFT", wxHTML_ALIGN_LEFT }, - { "wxHTML_ALIGN_RIGHT", wxHTML_ALIGN_RIGHT }, - { "wxHTML_ALIGN_TOP", wxHTML_ALIGN_TOP }, - { "wxHTML_COND_ISANCHOR", wxHTML_COND_ISANCHOR }, - { "wxHTML_COND_ISIMAGEMAP", wxHTML_COND_ISIMAGEMAP }, - { "wxHTML_COND_USER", wxHTML_COND_USER }, - { "wxHTML_INDENT_ALL", wxHTML_INDENT_ALL }, - { "wxHTML_INDENT_BOTTOM", wxHTML_INDENT_BOTTOM }, - { "wxHTML_INDENT_HORIZONTAL", wxHTML_INDENT_HORIZONTAL }, - { "wxHTML_INDENT_LEFT", wxHTML_INDENT_LEFT }, - { "wxHTML_INDENT_RIGHT", wxHTML_INDENT_RIGHT }, - { "wxHTML_INDENT_TOP", wxHTML_INDENT_TOP }, - { "wxHTML_INDENT_VERTICAL", wxHTML_INDENT_VERTICAL }, -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { "wxHTML_SEL_CHANGING", wxHTML_SEL_CHANGING }, - { "wxHTML_SEL_IN", wxHTML_SEL_IN }, - { "wxHTML_SEL_OUT", wxHTML_SEL_OUT }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - { "wxHTML_UNITS_PERCENT", wxHTML_UNITS_PERCENT }, - { "wxHTML_UNITS_PIXELS", wxHTML_UNITS_PIXELS }, - { "wxHW_SCROLLBAR_AUTO", wxHW_SCROLLBAR_AUTO }, - { "wxHW_SCROLLBAR_NEVER", wxHW_SCROLLBAR_NEVER }, -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxhtml() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxhtml(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxhtml() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxhtml(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxhtml() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxhtml() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxhtml(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxhtml() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxCommandEvent = "wxCommandEvent"; -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxHelpControllerBase = "wxHelpControllerBase"; -static const char* wxluaclassname_wxHtmlCell = "wxHtmlCell"; -static const char* wxluaclassname_wxHtmlCellEvent = "wxHtmlCellEvent"; -static const char* wxluaclassname_wxHtmlColourCell = "wxHtmlColourCell"; -static const char* wxluaclassname_wxHtmlContainerCell = "wxHtmlContainerCell"; -static const char* wxluaclassname_wxHtmlDCRenderer = "wxHtmlDCRenderer"; -static const char* wxluaclassname_wxHtmlEasyPrinting = "wxHtmlEasyPrinting"; -static const char* wxluaclassname_wxHtmlFontCell = "wxHtmlFontCell"; -static const char* wxluaclassname_wxHtmlHelpController = "wxHtmlHelpController"; -static const char* wxluaclassname_wxHtmlHelpData = "wxHtmlHelpData"; -static const char* wxluaclassname_wxHtmlLinkEvent = "wxHtmlLinkEvent"; -static const char* wxluaclassname_wxHtmlLinkInfo = "wxHtmlLinkInfo"; -static const char* wxluaclassname_wxHtmlParser = "wxHtmlParser"; -static const char* wxluaclassname_wxHtmlPrintout = "wxHtmlPrintout"; -static const char* wxluaclassname_wxHtmlRenderingInfo = "wxHtmlRenderingInfo"; -static const char* wxluaclassname_wxHtmlRenderingState = "wxHtmlRenderingState"; -static const char* wxluaclassname_wxHtmlRenderingStyle = "wxHtmlRenderingStyle"; -static const char* wxluaclassname_wxHtmlSelection = "wxHtmlSelection"; -static const char* wxluaclassname_wxHtmlTag = "wxHtmlTag"; -static const char* wxluaclassname_wxHtmlWidgetCell = "wxHtmlWidgetCell"; -static const char* wxluaclassname_wxHtmlWinParser = "wxHtmlWinParser"; -static const char* wxluaclassname_wxHtmlWindow = "wxHtmlWindow"; -static const char* wxluaclassname_wxHtmlWindowInterface = "wxHtmlWindowInterface"; -static const char* wxluaclassname_wxLuaHtmlWinTagEvent = "wxLuaHtmlWinTagEvent"; -static const char* wxluaclassname_wxLuaHtmlWindow = "wxLuaHtmlWindow"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxPanel = "wxPanel"; -static const char* wxluaclassname_wxPrintout = "wxPrintout"; -static const char* wxluaclassname_wxScrolledWindow = "wxScrolledWindow"; -static const char* wxluaclassname_wxSimpleHtmlListBox = "wxSimpleHtmlListBox"; - -static const char* wxluabaseclassnames_wxHtmlCell[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlCell[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlCellEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlCellEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlColourCell[] = { wxluaclassname_wxHtmlCell, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlColourCell[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlContainerCell[] = { wxluaclassname_wxHtmlCell, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlContainerCell[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlDCRenderer[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlDCRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlEasyPrinting[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlEasyPrinting[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlFontCell[] = { wxluaclassname_wxHtmlCell, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlFontCell[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlHelpController[] = { wxluaclassname_wxHelpControllerBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlHelpController[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlHelpData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlHelpData[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlLinkEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlLinkEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlParser[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlParser[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlPrintout[] = { wxluaclassname_wxPrintout, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlPrintout[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlWidgetCell[] = { wxluaclassname_wxHtmlCell, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlWidgetCell[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlWinParser[] = { wxluaclassname_wxHtmlParser, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlWinParser[] = { NULL }; -static const char* wxluabaseclassnames_wxHtmlWindow[] = { wxluaclassname_wxScrolledWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHtmlWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaHtmlWinTagEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaHtmlWinTagEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaHtmlWindow[] = { wxluaclassname_wxHtmlWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaHtmlWindow[] = { NULL }; -static const char* wxluabaseclassnames_wxSimpleHtmlListBox[] = { wxluaclassname_wxPanel, wxluaclassname_wxHtmlWindowInterface, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSimpleHtmlListBox[] = { NULL, NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - extern wxLuaBindMethod wxHtmlCellEvent_methods[]; - extern int wxHtmlCellEvent_methodCount; - extern void wxLua_wxHtmlCellEvent_delete_function(void** p); - extern wxLuaBindMethod wxHtmlColourCell_methods[]; - extern int wxHtmlColourCell_methodCount; - extern void wxLua_wxHtmlColourCell_delete_function(void** p); - extern wxLuaBindMethod wxHtmlFontCell_methods[]; - extern int wxHtmlFontCell_methodCount; - extern void wxLua_wxHtmlFontCell_delete_function(void** p); - extern wxLuaBindMethod wxHtmlLinkEvent_methods[]; - extern int wxHtmlLinkEvent_methodCount; - extern void wxLua_wxHtmlLinkEvent_delete_function(void** p); - extern wxLuaBindMethod wxHtmlWindowInterface_methods[]; - extern int wxHtmlWindowInterface_methodCount; - extern wxLuaBindNumber wxHtmlWindowInterface_enums[]; - extern int wxHtmlWindowInterface_enumCount; - extern void wxLua_wxHtmlWindowInterface_delete_function(void** p); - extern wxLuaBindMethod wxSimpleHtmlListBox_methods[]; - extern int wxSimpleHtmlListBox_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxSimpleHtmlListBox[] = { &wxluatype_wxHtmlWindowInterface, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxSimpleHtmlListBox[] = { wxIntPtr(((wxIntPtr)(wxHtmlWindowInterface*)(wxSimpleHtmlListBox*)&wxluatype_TNONE) - ((wxIntPtr)(wxSimpleHtmlListBox*)&wxluatype_TNONE)) }; - extern void wxLua_wxSimpleHtmlListBox_delete_function(void** p); -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - extern wxLuaBindMethod wxHtmlRenderingInfo_methods[]; - extern int wxHtmlRenderingInfo_methodCount; - extern void wxLua_wxHtmlRenderingInfo_delete_function(void** p); - extern wxLuaBindMethod wxHtmlRenderingState_methods[]; - extern int wxHtmlRenderingState_methodCount; - extern void wxLua_wxHtmlRenderingState_delete_function(void** p); - extern wxLuaBindMethod wxHtmlRenderingStyle_methods[]; - extern int wxHtmlRenderingStyle_methodCount; - extern void wxLua_wxHtmlRenderingStyle_delete_function(void** p); - extern wxLuaBindMethod wxHtmlSelection_methods[]; - extern int wxHtmlSelection_methodCount; - extern void wxLua_wxHtmlSelection_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - extern wxLuaBindMethod wxHtmlHelpController_methods[]; - extern int wxHtmlHelpController_methodCount; - extern void wxLua_wxHtmlHelpController_delete_function(void** p); - extern wxLuaBindMethod wxHtmlHelpData_methods[]; - extern int wxHtmlHelpData_methodCount; - extern void wxLua_wxHtmlHelpData_delete_function(void** p); -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - extern wxLuaBindMethod wxLuaHtmlWinTagEvent_methods[]; - extern int wxLuaHtmlWinTagEvent_methodCount; - extern void wxLua_wxLuaHtmlWinTagEvent_delete_function(void** p); - extern wxLuaBindMethod wxLuaHtmlWindow_methods[]; - extern int wxLuaHtmlWindow_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxLuaHtmlWindow[] = { &wxluatype_wxScrollHelper, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxLuaHtmlWindow[] = { wxIntPtr(((wxIntPtr)(wxScrollHelper*)(wxLuaHtmlWindow*)&wxluatype_TNONE) - ((wxIntPtr)(wxLuaHtmlWindow*)&wxluatype_TNONE)) }; - extern void wxLua_wxLuaHtmlWindow_delete_function(void** p); -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - extern wxLuaBindMethod wxHtmlCell_methods[]; - extern int wxHtmlCell_methodCount; - extern void wxLua_wxHtmlCell_delete_function(void** p); - extern wxLuaBindMethod wxHtmlContainerCell_methods[]; - extern int wxHtmlContainerCell_methodCount; - extern void wxLua_wxHtmlContainerCell_delete_function(void** p); - extern wxLuaBindMethod wxHtmlDCRenderer_methods[]; - extern int wxHtmlDCRenderer_methodCount; - extern void wxLua_wxHtmlDCRenderer_delete_function(void** p); - extern wxLuaBindMethod wxHtmlEasyPrinting_methods[]; - extern int wxHtmlEasyPrinting_methodCount; - extern void wxLua_wxHtmlEasyPrinting_delete_function(void** p); - extern wxLuaBindMethod wxHtmlLinkInfo_methods[]; - extern int wxHtmlLinkInfo_methodCount; - extern void wxLua_wxHtmlLinkInfo_delete_function(void** p); - extern wxLuaBindMethod wxHtmlParser_methods[]; - extern int wxHtmlParser_methodCount; - extern void wxLua_wxHtmlParser_delete_function(void** p); - extern wxLuaBindMethod wxHtmlPrintout_methods[]; - extern int wxHtmlPrintout_methodCount; - extern void wxLua_wxHtmlPrintout_delete_function(void** p); - extern wxLuaBindMethod wxHtmlTag_methods[]; - extern int wxHtmlTag_methodCount; - extern void wxLua_wxHtmlTag_delete_function(void** p); - extern wxLuaBindMethod wxHtmlWidgetCell_methods[]; - extern int wxHtmlWidgetCell_methodCount; - extern void wxLua_wxHtmlWidgetCell_delete_function(void** p); - extern wxLuaBindMethod wxHtmlWinParser_methods[]; - extern int wxHtmlWinParser_methodCount; - extern void wxLua_wxHtmlWinParser_delete_function(void** p); - extern wxLuaBindMethod wxHtmlWindow_methods[]; - extern int wxHtmlWindow_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxHtmlWindow[] = { &wxluatype_wxScrollHelper, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxHtmlWindow[] = { wxIntPtr(((wxIntPtr)(wxScrollHelper*)(wxHtmlWindow*)&wxluatype_TNONE) - ((wxIntPtr)(wxHtmlWindow*)&wxluatype_TNONE)) }; - extern void wxLua_wxHtmlWindow_delete_function(void** p); -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - - - - -wxLuaBindClass* wxLuaGetClassList_wxhtml(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxLUA_USE_wxHTML && wxUSE_HTML - { wxluaclassname_wxHtmlCell, wxHtmlCell_methods, wxHtmlCell_methodCount, CLASSINFO(wxHtmlCell), &wxluatype_wxHtmlCell, wxluabaseclassnames_wxHtmlCell, wxluabaseclassbinds_wxHtmlCell, NULL, NULL, NULL, 0, &wxLua_wxHtmlCell_delete_function, }, -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxluaclassname_wxHtmlCellEvent, wxHtmlCellEvent_methods, wxHtmlCellEvent_methodCount, CLASSINFO(wxHtmlCellEvent), &wxluatype_wxHtmlCellEvent, wxluabaseclassnames_wxHtmlCellEvent, wxluabaseclassbinds_wxHtmlCellEvent, NULL, NULL, NULL, 0, &wxLua_wxHtmlCellEvent_delete_function, }, - { wxluaclassname_wxHtmlColourCell, wxHtmlColourCell_methods, wxHtmlColourCell_methodCount, CLASSINFO(wxHtmlColourCell), &wxluatype_wxHtmlColourCell, wxluabaseclassnames_wxHtmlColourCell, wxluabaseclassbinds_wxHtmlColourCell, NULL, NULL, NULL, 0, &wxLua_wxHtmlColourCell_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - { wxluaclassname_wxHtmlContainerCell, wxHtmlContainerCell_methods, wxHtmlContainerCell_methodCount, CLASSINFO(wxHtmlContainerCell), &wxluatype_wxHtmlContainerCell, wxluabaseclassnames_wxHtmlContainerCell, wxluabaseclassbinds_wxHtmlContainerCell, NULL, NULL, NULL, 0, &wxLua_wxHtmlContainerCell_delete_function, }, - { wxluaclassname_wxHtmlDCRenderer, wxHtmlDCRenderer_methods, wxHtmlDCRenderer_methodCount, CLASSINFO(wxHtmlDCRenderer), &wxluatype_wxHtmlDCRenderer, wxluabaseclassnames_wxHtmlDCRenderer, wxluabaseclassbinds_wxHtmlDCRenderer, NULL, NULL, NULL, 0, &wxLua_wxHtmlDCRenderer_delete_function, }, - { wxluaclassname_wxHtmlEasyPrinting, wxHtmlEasyPrinting_methods, wxHtmlEasyPrinting_methodCount, CLASSINFO(wxHtmlEasyPrinting), &wxluatype_wxHtmlEasyPrinting, wxluabaseclassnames_wxHtmlEasyPrinting, wxluabaseclassbinds_wxHtmlEasyPrinting, NULL, NULL, NULL, 0, &wxLua_wxHtmlEasyPrinting_delete_function, }, -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxluaclassname_wxHtmlFontCell, wxHtmlFontCell_methods, wxHtmlFontCell_methodCount, CLASSINFO(wxHtmlFontCell), &wxluatype_wxHtmlFontCell, wxluabaseclassnames_wxHtmlFontCell, wxluabaseclassbinds_wxHtmlFontCell, NULL, NULL, NULL, 0, &wxLua_wxHtmlFontCell_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - { wxluaclassname_wxHtmlHelpController, wxHtmlHelpController_methods, wxHtmlHelpController_methodCount, CLASSINFO(wxHtmlHelpController), &wxluatype_wxHtmlHelpController, wxluabaseclassnames_wxHtmlHelpController, wxluabaseclassbinds_wxHtmlHelpController, NULL, NULL, NULL, 0, &wxLua_wxHtmlHelpController_delete_function, }, - { wxluaclassname_wxHtmlHelpData, wxHtmlHelpData_methods, wxHtmlHelpData_methodCount, CLASSINFO(wxHtmlHelpData), &wxluatype_wxHtmlHelpData, wxluabaseclassnames_wxHtmlHelpData, wxluabaseclassbinds_wxHtmlHelpData, NULL, NULL, NULL, 0, &wxLua_wxHtmlHelpData_delete_function, }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxHtmlHelpController && wxUSE_WXHTML_HELP) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxluaclassname_wxHtmlLinkEvent, wxHtmlLinkEvent_methods, wxHtmlLinkEvent_methodCount, CLASSINFO(wxHtmlLinkEvent), &wxluatype_wxHtmlLinkEvent, wxluabaseclassnames_wxHtmlLinkEvent, wxluabaseclassbinds_wxHtmlLinkEvent, NULL, NULL, NULL, 0, &wxLua_wxHtmlLinkEvent_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - { wxluaclassname_wxHtmlLinkInfo, wxHtmlLinkInfo_methods, wxHtmlLinkInfo_methodCount, NULL, &wxluatype_wxHtmlLinkInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHtmlLinkInfo_delete_function, }, - { wxluaclassname_wxHtmlParser, wxHtmlParser_methods, wxHtmlParser_methodCount, CLASSINFO(wxHtmlParser), &wxluatype_wxHtmlParser, wxluabaseclassnames_wxHtmlParser, wxluabaseclassbinds_wxHtmlParser, NULL, NULL, NULL, 0, &wxLua_wxHtmlParser_delete_function, }, - { wxluaclassname_wxHtmlPrintout, wxHtmlPrintout_methods, wxHtmlPrintout_methodCount, CLASSINFO(wxHtmlPrintout), &wxluatype_wxHtmlPrintout, wxluabaseclassnames_wxHtmlPrintout, wxluabaseclassbinds_wxHtmlPrintout, NULL, NULL, NULL, 0, &wxLua_wxHtmlPrintout_delete_function, }, -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - -#if (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxluaclassname_wxHtmlRenderingInfo, wxHtmlRenderingInfo_methods, wxHtmlRenderingInfo_methodCount, NULL, &wxluatype_wxHtmlRenderingInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHtmlRenderingInfo_delete_function, }, - { wxluaclassname_wxHtmlRenderingState, wxHtmlRenderingState_methods, wxHtmlRenderingState_methodCount, NULL, &wxluatype_wxHtmlRenderingState, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHtmlRenderingState_delete_function, }, - { wxluaclassname_wxHtmlRenderingStyle, wxHtmlRenderingStyle_methods, wxHtmlRenderingStyle_methodCount, NULL, &wxluatype_wxHtmlRenderingStyle, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHtmlRenderingStyle_delete_function, }, - { wxluaclassname_wxHtmlSelection, wxHtmlSelection_methods, wxHtmlSelection_methodCount, NULL, &wxluatype_wxHtmlSelection, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHtmlSelection_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,2)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if wxLUA_USE_wxHTML && wxUSE_HTML - { wxluaclassname_wxHtmlTag, wxHtmlTag_methods, wxHtmlTag_methodCount, NULL, &wxluatype_wxHtmlTag, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxHtmlTag_delete_function, }, - { wxluaclassname_wxHtmlWidgetCell, wxHtmlWidgetCell_methods, wxHtmlWidgetCell_methodCount, CLASSINFO(wxHtmlWidgetCell), &wxluatype_wxHtmlWidgetCell, wxluabaseclassnames_wxHtmlWidgetCell, wxluabaseclassbinds_wxHtmlWidgetCell, NULL, NULL, NULL, 0, &wxLua_wxHtmlWidgetCell_delete_function, }, - { wxluaclassname_wxHtmlWinParser, wxHtmlWinParser_methods, wxHtmlWinParser_methodCount, CLASSINFO(wxHtmlWinParser), &wxluatype_wxHtmlWinParser, wxluabaseclassnames_wxHtmlWinParser, wxluabaseclassbinds_wxHtmlWinParser, NULL, NULL, NULL, 0, &wxLua_wxHtmlWinParser_delete_function, }, - { wxluaclassname_wxHtmlWindow, wxHtmlWindow_methods, wxHtmlWindow_methodCount, CLASSINFO(wxHtmlWindow), &wxluatype_wxHtmlWindow, wxluabaseclassnames_wxHtmlWindow, wxluabaseclassbinds_wxHtmlWindow, wxluabaseclass_wxluatypes_wxHtmlWindow, wxluabaseclass_vtable_offsets_wxHtmlWindow, NULL, 0, &wxLua_wxHtmlWindow_delete_function, }, -#endif // wxLUA_USE_wxHTML && wxUSE_HTML - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxluaclassname_wxHtmlWindowInterface, wxHtmlWindowInterface_methods, wxHtmlWindowInterface_methodCount, NULL, &wxluatype_wxHtmlWindowInterface, NULL, NULL, NULL, NULL, wxHtmlWindowInterface_enums, wxHtmlWindowInterface_enumCount, &wxLua_wxHtmlWindowInterface_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - -#if (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - { wxluaclassname_wxLuaHtmlWinTagEvent, wxLuaHtmlWinTagEvent_methods, wxLuaHtmlWinTagEvent_methodCount, CLASSINFO(wxLuaHtmlWinTagEvent), &wxluatype_wxLuaHtmlWinTagEvent, wxluabaseclassnames_wxLuaHtmlWinTagEvent, wxluabaseclassbinds_wxLuaHtmlWinTagEvent, NULL, NULL, NULL, 0, &wxLua_wxLuaHtmlWinTagEvent_delete_function, }, - { wxluaclassname_wxLuaHtmlWindow, wxLuaHtmlWindow_methods, wxLuaHtmlWindow_methodCount, CLASSINFO(wxLuaHtmlWindow), &wxluatype_wxLuaHtmlWindow, wxluabaseclassnames_wxLuaHtmlWindow, wxluabaseclassbinds_wxLuaHtmlWindow, wxluabaseclass_wxluatypes_wxLuaHtmlWindow, wxluabaseclass_vtable_offsets_wxLuaHtmlWindow, NULL, 0, &wxLua_wxLuaHtmlWindow_delete_function, }, -#endif // (wxLUA_USE_wxHTML && wxUSE_HTML) && (wxLUA_USE_wxLuaHtmlWindow) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - { wxluaclassname_wxSimpleHtmlListBox, wxSimpleHtmlListBox_methods, wxSimpleHtmlListBox_methodCount, CLASSINFO(wxSimpleHtmlListBox), &wxluatype_wxSimpleHtmlListBox, wxluabaseclassnames_wxSimpleHtmlListBox, wxluabaseclassbinds_wxSimpleHtmlListBox, wxluabaseclass_wxluatypes_wxSimpleHtmlListBox, wxluabaseclass_vtable_offsets_wxSimpleHtmlListBox, NULL, 0, &wxLua_wxSimpleHtmlListBox_delete_function, }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxHTML && wxUSE_HTML) - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxhtml() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxhtml, wxLuaBinding) - -wxLuaBinding_wxhtml::wxLuaBinding_wxhtml() : wxLuaBinding() -{ - m_bindingName = wxT("wxhtml"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxhtml(m_classCount); - m_numberArray = wxLuaGetDefineList_wxhtml(m_numberCount); - m_stringArray = wxLuaGetStringList_wxhtml(m_stringCount); - m_eventArray = wxLuaGetEventList_wxhtml(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxhtml(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxhtml(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxhtml_init() -{ - static wxLuaBinding_wxhtml m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxhtml_wxlhtml.cpp b/wxLua/modules/wxbind/src/wxhtml_wxlhtml.cpp index 6bffa8bd..d55c4bfc 100644 --- a/wxLua/modules/wxbind/src/wxhtml_wxlhtml.cpp +++ b/wxLua/modules/wxbind/src/wxhtml_wxlhtml.cpp @@ -19,8 +19,8 @@ #include -#include "wxbind/include/wxhtml_wxlhtml.h" -#include "wxbind/include/wxhtml_bind.h" +#include +#include //#include "wxlua/wxlcallb.h" diff --git a/wxLua/modules/wxbind/src/wxmedia_bind.cpp b/wxLua/modules/wxbind/src/wxmedia_bind.cpp deleted file mode 100644 index 6a68272a..00000000 --- a/wxLua/modules/wxbind/src/wxmedia_bind.cpp +++ /dev/null @@ -1,876 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxmedia_media.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxmedia_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL -// --------------------------------------------------------------------------- -// Bind class wxMediaCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMediaCtrl' -int wxluatype_wxMediaCtrl = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Create[] = { &wxluatype_wxMediaCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Create[1] = {{ wxLua_wxMediaCtrl_Create, WXLUAMETHOD_METHOD, 3, 10, s_wxluatypeArray_wxLua_wxMediaCtrl_Create }}; -// bool Create(wxWindow* parent, wxWindowID winid, const wxString& fileName = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& szBackend = "", const wxValidator& val = wxDefaultValidator, const wxString& name = "wxMediaCtrl" ); -static int LUACALL wxLua_wxMediaCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMediaCtrl" - const wxString name = (argCount >= 10 ? wxlua_getwxStringtype(L, 10) : wxString(wxT("wxMediaCtrl"))); - // const wxValidator val = wxDefaultValidator - const wxValidator * val = (argCount >= 9 ? (const wxValidator *)wxluaT_getuserdatatype(L, 9, wxluatype_wxValidator) : &wxDefaultValidator); - // const wxString szBackend = "" - const wxString szBackend = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxEmptyString)); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString fileName = "" - const wxString fileName = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Create - bool returns = (self->Create(parent, winid, fileName, *pos, *size, style, szBackend, *val, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_GetDownloadProgress[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_GetDownloadProgress(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_GetDownloadProgress[1] = {{ wxLua_wxMediaCtrl_GetDownloadProgress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetDownloadProgress }}; -// wxFileOffset GetDownloadProgress(); // DirectShow only -static int LUACALL wxLua_wxMediaCtrl_GetDownloadProgress(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call GetDownloadProgress - wxFileOffset returns = (self->GetDownloadProgress()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_GetDownloadTotal[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_GetDownloadTotal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_GetDownloadTotal[1] = {{ wxLua_wxMediaCtrl_GetDownloadTotal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetDownloadTotal }}; -// wxFileOffset GetDownloadTotal(); // DirectShow only -static int LUACALL wxLua_wxMediaCtrl_GetDownloadTotal(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call GetDownloadTotal - wxFileOffset returns = (self->GetDownloadTotal()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_GetState[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_GetState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_GetState[1] = {{ wxLua_wxMediaCtrl_GetState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetState }}; -// wxMediaState GetState(); -static int LUACALL wxLua_wxMediaCtrl_GetState(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call GetState - wxMediaState returns = (self->GetState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_GetVolume1[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_GetVolume1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_GetVolume1[1] = {{ wxLua_wxMediaCtrl_GetVolume1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetVolume1 }}; -// double GetVolume(); -static int LUACALL wxLua_wxMediaCtrl_GetVolume1(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call GetVolume - double returns = (self->GetVolume()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_GetVolume[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_GetVolume(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_GetVolume[1] = {{ wxLua_wxMediaCtrl_GetVolume, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetVolume }}; -// double GetVolume(); -static int LUACALL wxLua_wxMediaCtrl_GetVolume(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call GetVolume - double returns = (self->GetVolume()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Length[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Length(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Length[1] = {{ wxLua_wxMediaCtrl_Length, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_Length }}; -// wxFileOffset Length(); -static int LUACALL wxLua_wxMediaCtrl_Length(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Length - wxFileOffset returns = (self->Length()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Load2[] = { &wxluatype_wxMediaCtrl, &wxluatype_wxURI, &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Load2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Load2[1] = {{ wxLua_wxMediaCtrl_Load2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMediaCtrl_Load2 }}; -// bool Load(const wxURI& location, const wxURI& proxy); -static int LUACALL wxLua_wxMediaCtrl_Load2(lua_State *L) -{ - // const wxURI proxy - const wxURI * proxy = (const wxURI *)wxluaT_getuserdatatype(L, 3, wxluatype_wxURI); - // const wxURI location - const wxURI * location = (const wxURI *)wxluaT_getuserdatatype(L, 2, wxluatype_wxURI); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Load - bool returns = (self->Load(*location, *proxy)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Load1[] = { &wxluatype_wxMediaCtrl, &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Load1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Load1[1] = {{ wxLua_wxMediaCtrl_Load1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_Load1 }}; -// bool Load(const wxURI& location); -static int LUACALL wxLua_wxMediaCtrl_Load1(lua_State *L) -{ - // const wxURI location - const wxURI * location = (const wxURI *)wxluaT_getuserdatatype(L, 2, wxluatype_wxURI); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Load - bool returns = (self->Load(*location)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Load[] = { &wxluatype_wxMediaCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Load(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Load[1] = {{ wxLua_wxMediaCtrl_Load, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_Load }}; -// bool Load(const wxString& fileName); -static int LUACALL wxLua_wxMediaCtrl_Load(lua_State *L) -{ - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Load - bool returns = (self->Load(fileName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_LoadURI[] = { &wxluatype_wxMediaCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMediaCtrl_LoadURI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_LoadURI[1] = {{ wxLua_wxMediaCtrl_LoadURI, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_LoadURI }}; -// bool LoadURI(const wxString& fileName); // { return Load(wxURI(fileName)); } -static int LUACALL wxLua_wxMediaCtrl_LoadURI(lua_State *L) -{ - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call LoadURI - bool returns = (self->LoadURI(fileName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_LoadURIWithProxy[] = { &wxluatype_wxMediaCtrl, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMediaCtrl_LoadURIWithProxy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_LoadURIWithProxy[1] = {{ wxLua_wxMediaCtrl_LoadURIWithProxy, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMediaCtrl_LoadURIWithProxy }}; -// bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy); // { return Load(wxURI(fileName), wxURI(proxy)); } -static int LUACALL wxLua_wxMediaCtrl_LoadURIWithProxy(lua_State *L) -{ - // const wxString proxy - const wxString proxy = wxlua_getwxStringtype(L, 3); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call LoadURIWithProxy - bool returns = (self->LoadURIWithProxy(fileName, proxy)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Pause[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Pause(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Pause[1] = {{ wxLua_wxMediaCtrl_Pause, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_Pause }}; -// bool Pause(); -static int LUACALL wxLua_wxMediaCtrl_Pause(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Pause - bool returns = (self->Pause()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Play[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Play(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Play[1] = {{ wxLua_wxMediaCtrl_Play, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_Play }}; -// bool Play(); -static int LUACALL wxLua_wxMediaCtrl_Play(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Play - bool returns = (self->Play()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Seek[] = { &wxluatype_wxMediaCtrl, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Seek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Seek[1] = {{ wxLua_wxMediaCtrl_Seek, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMediaCtrl_Seek }}; -// wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart); -static int LUACALL wxLua_wxMediaCtrl_Seek(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSeekMode mode = wxFromStart - wxSeekMode mode = (argCount >= 3 ? (wxSeekMode)wxlua_getenumtype(L, 3) : wxFromStart); - // wxFileOffset where - wxFileOffset where = (wxFileOffset)wxlua_getuintegertype(L, 2); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Seek - wxFileOffset returns = (self->Seek(where, mode)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_SetVolume[] = { &wxluatype_wxMediaCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMediaCtrl_SetVolume(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_SetVolume[1] = {{ wxLua_wxMediaCtrl_SetVolume, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_SetVolume }}; -// bool SetVolume(double dVolume); -static int LUACALL wxLua_wxMediaCtrl_SetVolume(lua_State *L) -{ - // double dVolume - double dVolume = (double)wxlua_getnumbertype(L, 2); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call SetVolume - bool returns = (self->SetVolume(dVolume)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_ShowPlayerControls[] = { &wxluatype_wxMediaCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxMediaCtrl_ShowPlayerControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_ShowPlayerControls[1] = {{ wxLua_wxMediaCtrl_ShowPlayerControls, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_ShowPlayerControls }}; -// bool ShowPlayerControls(wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT); -static int LUACALL wxLua_wxMediaCtrl_ShowPlayerControls(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT - wxMediaCtrlPlayerControls flags = (argCount >= 2 ? (wxMediaCtrlPlayerControls)wxlua_getenumtype(L, 2) : wxMEDIACTRLPLAYERCONTROLS_DEFAULT); - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call ShowPlayerControls - bool returns = (self->ShowPlayerControls(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Stop[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Stop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Stop[1] = {{ wxLua_wxMediaCtrl_Stop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_Stop }}; -// bool Stop(); -static int LUACALL wxLua_wxMediaCtrl_Stop(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Stop - bool returns = (self->Stop()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_Tell[] = { &wxluatype_wxMediaCtrl, NULL }; -static int LUACALL wxLua_wxMediaCtrl_Tell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Tell[1] = {{ wxLua_wxMediaCtrl_Tell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_Tell }}; -// wxFileOffset Tell(); -static int LUACALL wxLua_wxMediaCtrl_Tell(lua_State *L) -{ - // get this - wxMediaCtrl * self = (wxMediaCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMediaCtrl); - // call Tell - wxFileOffset returns = (self->Tell()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxMediaCtrl_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_constructor1[1] = {{ wxLua_wxMediaCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxMediaCtrl_constructor1 }}; -// wxMediaCtrl(wxWindow* parent, wxWindowID winid, const wxString& fileName = "", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& szBackend = "", const wxValidator& val = wxDefaultValidator, const wxString& name = "wxMediaCtrl"); -static int LUACALL wxLua_wxMediaCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxMediaCtrl" - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxT("wxMediaCtrl"))); - // const wxValidator val = wxDefaultValidator - const wxValidator * val = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // const wxString szBackend = "" - const wxString szBackend = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxEmptyString)); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString fileName = "" - const wxString fileName = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID winid - wxWindowID winid = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxMediaCtrl* returns = new wxMediaCtrl(parent, winid, fileName, *pos, *size, style, szBackend, *val, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMediaCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxMediaCtrl_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_constructor[1] = {{ wxLua_wxMediaCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxMediaCtrl(); -static int LUACALL wxLua_wxMediaCtrl_constructor(lua_State *L) -{ - // call constructor - wxMediaCtrl* returns = new wxMediaCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMediaCtrl); - - return 1; -} - - - - -#if (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_GetVolume_overload[] = -{ - { wxLua_wxMediaCtrl_GetVolume1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetVolume1 }, - { wxLua_wxMediaCtrl_GetVolume, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMediaCtrl_GetVolume }, -}; -static int s_wxluafunc_wxLua_wxMediaCtrl_GetVolume_overload_count = sizeof(s_wxluafunc_wxLua_wxMediaCtrl_GetVolume_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - -#if ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_Load_overload[] = -{ - -#if (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxMediaCtrl_Load2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxMediaCtrl_Load2 }, -#endif // (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -#if (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxMediaCtrl_Load1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_Load1 }, -#endif // (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxMediaCtrl_Load, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxMediaCtrl_Load }, -}; -static int s_wxluafunc_wxLua_wxMediaCtrl_Load_overload_count = sizeof(s_wxluafunc_wxLua_wxMediaCtrl_Load_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - -#if (((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxMediaCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 9, s_wxluatypeArray_wxLua_wxMediaCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxMediaCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxMediaCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMediaCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - -void wxLua_wxMediaCtrl_delete_function(void** p) -{ - wxMediaCtrl* o = (wxMediaCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMediaCtrl_methods[] = { -#if ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "GetDownloadProgress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_GetDownloadProgress, 1, NULL }, - { "GetDownloadTotal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_GetDownloadTotal, 1, NULL }, - { "GetState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_GetState, 1, NULL }, - -#if (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "GetVolume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_GetVolume_overload, s_wxluafunc_wxLua_wxMediaCtrl_GetVolume_overload_count, 0 }, -#endif // (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - - { "Length", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Length, 1, NULL }, - -#if ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Load_overload, s_wxluafunc_wxLua_wxMediaCtrl_Load_overload_count, 0 }, -#endif // ((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - - { "LoadURI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_LoadURI, 1, NULL }, - { "LoadURIWithProxy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_LoadURIWithProxy, 1, NULL }, - { "Pause", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Pause, 1, NULL }, - { "Play", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Play, 1, NULL }, - -#if (wxLUA_USE_wxFile && wxUSE_FILE) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "Seek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Seek, 1, NULL }, -#endif // (wxLUA_USE_wxFile && wxUSE_FILE) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - - { "SetVolume", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_SetVolume, 1, NULL }, - { "ShowPlayerControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_ShowPlayerControls, 1, NULL }, - { "Stop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Stop, 1, NULL }, - { "Tell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMediaCtrl_Tell, 1, NULL }, - -#if (((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "wxMediaCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMediaCtrl_constructor_overload, s_wxluafunc_wxLua_wxMediaCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - - { 0, 0, 0, 0 }, -}; - -int wxMediaCtrl_methodCount = sizeof(wxMediaCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - - -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL -// --------------------------------------------------------------------------- -// Bind class wxMediaEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMediaEvent' -int wxluatype_wxMediaEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaEvent_delete[] = { &wxluatype_wxMediaEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxMediaEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMediaEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMediaEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMediaEvent_constructor[1] = {{ wxLua_wxMediaEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxMediaEvent_constructor }}; -// wxMediaEvent(wxEventType commandType = wxEVT_NULL, int winid = 0); -static int LUACALL wxLua_wxMediaEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int winid = 0 - int winid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxMediaEvent* returns = new wxMediaEvent(commandType, winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMediaEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMediaEvent); - - return 1; -} - - - - -void wxLua_wxMediaEvent_delete_function(void** p) -{ - wxMediaEvent* o = (wxMediaEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMediaEvent_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxMediaEvent_delete, 1, NULL }, - { "wxMediaEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMediaEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxMediaEvent_methodCount = sizeof(wxMediaEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxmedia_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxmedia() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxmedia(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - { "wxEVT_MEDIA_FINISHED", WXLUA_GET_wxEventType_ptr(wxEVT_MEDIA_FINISHED), &wxluatype_wxMediaEvent }, - { "wxEVT_MEDIA_LOADED", WXLUA_GET_wxEventType_ptr(wxEVT_MEDIA_LOADED), &wxluatype_wxMediaEvent }, -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - -#if (wxCHECK_VERSION(2,6,4)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "wxEVT_MEDIA_PAUSE", WXLUA_GET_wxEventType_ptr(wxEVT_MEDIA_PAUSE), &wxluatype_wxMediaEvent }, - { "wxEVT_MEDIA_PLAY", WXLUA_GET_wxEventType_ptr(wxEVT_MEDIA_PLAY), &wxluatype_wxMediaEvent }, - { "wxEVT_MEDIA_STATECHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_MEDIA_STATECHANGED), &wxluatype_wxMediaEvent }, -#endif // (wxCHECK_VERSION(2,6,4)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - { "wxEVT_MEDIA_STOP", WXLUA_GET_wxEventType_ptr(wxEVT_MEDIA_STOP), &wxluatype_wxMediaEvent }, -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxmedia() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxmedia(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - { "wxMEDIACTRLPLAYERCONTROLS_DEFAULT", wxMEDIACTRLPLAYERCONTROLS_DEFAULT }, - { "wxMEDIACTRLPLAYERCONTROLS_NONE", wxMEDIACTRLPLAYERCONTROLS_NONE }, - { "wxMEDIACTRLPLAYERCONTROLS_STEP", wxMEDIACTRLPLAYERCONTROLS_STEP }, - { "wxMEDIACTRLPLAYERCONTROLS_VOLUME", wxMEDIACTRLPLAYERCONTROLS_VOLUME }, - { "wxMEDIASTATE_PAUSED", wxMEDIASTATE_PAUSED }, - { "wxMEDIASTATE_PLAYING", wxMEDIASTATE_PLAYING }, - { "wxMEDIASTATE_STOPPED", wxMEDIASTATE_STOPPED }, -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "wxMEDIA_FINISHED_ID", wxMEDIA_FINISHED_ID }, - { "wxMEDIA_LOADED_ID", wxMEDIA_LOADED_ID }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL)) && (wxCHECK_VERSION(2,6,4)) - { "wxMEDIA_PAUSE_ID", wxMEDIA_PAUSE_ID }, - { "wxMEDIA_PLAY_ID", wxMEDIA_PLAY_ID }, - { "wxMEDIA_STATECHANGED_ID", wxMEDIA_STATECHANGED_ID }, -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL)) && (wxCHECK_VERSION(2,6,4)) - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "wxMEDIA_STOP_ID", wxMEDIA_STOP_ID }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxmedia() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxmedia(size_t &count) -{ - static wxLuaBindString stringList[] = - { -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - { "wxMEDIABACKEND_DIRECTSHOW", NULL, wxMEDIABACKEND_DIRECTSHOW }, - { "wxMEDIABACKEND_GSTREAMER", NULL, wxMEDIABACKEND_GSTREAMER }, - { "wxMEDIABACKEND_MCI", NULL, wxMEDIABACKEND_MCI }, - { "wxMEDIABACKEND_QUICKTIME", NULL, wxMEDIABACKEND_QUICKTIME }, -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - { "wxMEDIABACKEND_REALPLAYER", NULL, wxMEDIABACKEND_REALPLAYER }, - { "wxMEDIABACKEND_WMP10", NULL, wxMEDIABACKEND_WMP10 }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL) - - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxmedia() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxmedia(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxmedia() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxmedia() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxmedia(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxmedia() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxMediaCtrl = "wxMediaCtrl"; -static const char* wxluaclassname_wxMediaEvent = "wxMediaEvent"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; - -static const char* wxluabaseclassnames_wxMediaCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMediaCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxMediaEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMediaEvent[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - extern wxLuaBindMethod wxMediaCtrl_methods[]; - extern int wxMediaCtrl_methodCount; - extern void wxLua_wxMediaCtrl_delete_function(void** p); - extern wxLuaBindMethod wxMediaEvent_methods[]; - extern int wxMediaEvent_methodCount; - extern void wxLua_wxMediaEvent_delete_function(void** p); -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - - - - -wxLuaBindClass* wxLuaGetClassList_wxmedia(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - { wxluaclassname_wxMediaCtrl, wxMediaCtrl_methods, wxMediaCtrl_methodCount, CLASSINFO(wxMediaCtrl), &wxluatype_wxMediaCtrl, wxluabaseclassnames_wxMediaCtrl, wxluabaseclassbinds_wxMediaCtrl, NULL, NULL, NULL, 0, &wxLua_wxMediaCtrl_delete_function, }, - { wxluaclassname_wxMediaEvent, wxMediaEvent_methods, wxMediaEvent_methodCount, CLASSINFO(wxMediaEvent), &wxluatype_wxMediaEvent, wxluabaseclassnames_wxMediaEvent, wxluabaseclassbinds_wxMediaEvent, NULL, NULL, NULL, 0, &wxLua_wxMediaEvent_delete_function, }, -#endif // wxLUA_USE_wxMediaCtrl && wxUSE_MEDIACTRL - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxmedia() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxmedia, wxLuaBinding) - -wxLuaBinding_wxmedia::wxLuaBinding_wxmedia() : wxLuaBinding() -{ - m_bindingName = wxT("wxmedia"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxmedia(m_classCount); - m_numberArray = wxLuaGetDefineList_wxmedia(m_numberCount); - m_stringArray = wxLuaGetStringList_wxmedia(m_stringCount); - m_eventArray = wxLuaGetEventList_wxmedia(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxmedia(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxmedia(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxmedia_init() -{ - static wxLuaBinding_wxmedia m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxnet_bind.cpp b/wxLua/modules/wxbind/src/wxnet_bind.cpp deleted file mode 100644 index cd95dfe3..00000000 --- a/wxLua/modules/wxbind/src/wxnet_bind.cpp +++ /dev/null @@ -1,3297 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxnet_net.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxnet_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxSocketBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSocketBase' -int wxluatype_wxSocketBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Close[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_Close(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Close[1] = {{ wxLua_wxSocketBase_Close, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_Close }}; -// void Close(); -static int LUACALL wxLua_wxSocketBase_Close(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Close - self->Close(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Destroy[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_Destroy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Destroy[1] = {{ wxLua_wxSocketBase_Destroy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_Destroy }}; -// bool Destroy(); -static int LUACALL wxLua_wxSocketBase_Destroy(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Destroy - bool returns = (self->Destroy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Discard[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_Discard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Discard[1] = {{ wxLua_wxSocketBase_Discard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_Discard }}; -// void Discard(); -static int LUACALL wxLua_wxSocketBase_Discard(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Discard - self->Discard(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Error[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_Error(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Error[1] = {{ wxLua_wxSocketBase_Error, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_Error }}; -// bool Error() const; -static int LUACALL wxLua_wxSocketBase_Error(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Error - bool returns = (self->Error()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_GetClientData[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_GetClientData[1] = {{ wxLua_wxSocketBase_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_GetClientData }}; -// voidptr_long GetClientData() const; // C++ returns (void *) You get a number here -static int LUACALL wxLua_wxSocketBase_GetClientData(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call GetClientData - wxUIntPtr returns = (wxUIntPtr)self->GetClientData(); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_GetFlags[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_GetFlags[1] = {{ wxLua_wxSocketBase_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_GetFlags }}; -// wxSocketFlags GetFlags() const; -static int LUACALL wxLua_wxSocketBase_GetFlags(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call GetFlags - wxSocketFlags returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_GetLocal[] = { &wxluatype_wxSocketBase, &wxluatype_wxSockAddress, NULL }; -static int LUACALL wxLua_wxSocketBase_GetLocal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_GetLocal[1] = {{ wxLua_wxSocketBase_GetLocal, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_GetLocal }}; -// bool GetLocal(wxSockAddress& addr) const; -static int LUACALL wxLua_wxSocketBase_GetLocal(lua_State *L) -{ - // wxSockAddress addr - wxSockAddress * addr = (wxSockAddress *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSockAddress); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call GetLocal - bool returns = (self->GetLocal(*addr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_GetPeer[] = { &wxluatype_wxSocketBase, &wxluatype_wxSockAddress, NULL }; -static int LUACALL wxLua_wxSocketBase_GetPeer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_GetPeer[1] = {{ wxLua_wxSocketBase_GetPeer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_GetPeer }}; -// bool GetPeer(wxSockAddress& addr) const; -static int LUACALL wxLua_wxSocketBase_GetPeer(lua_State *L) -{ - // wxSockAddress addr - wxSockAddress * addr = (wxSockAddress *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSockAddress); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call GetPeer - bool returns = (self->GetPeer(*addr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_InterruptWait[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_InterruptWait(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_InterruptWait[1] = {{ wxLua_wxSocketBase_InterruptWait, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_InterruptWait }}; -// void InterruptWait(); -static int LUACALL wxLua_wxSocketBase_InterruptWait(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call InterruptWait - self->InterruptWait(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_IsConnected[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_IsConnected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_IsConnected[1] = {{ wxLua_wxSocketBase_IsConnected, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_IsConnected }}; -// bool IsConnected() const; -static int LUACALL wxLua_wxSocketBase_IsConnected(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call IsConnected - bool returns = (self->IsConnected()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_IsData[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_IsData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_IsData[1] = {{ wxLua_wxSocketBase_IsData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_IsData }}; -// bool IsData() const; -static int LUACALL wxLua_wxSocketBase_IsData(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call IsData - bool returns = (self->IsData()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_IsDisconnected[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_IsDisconnected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_IsDisconnected[1] = {{ wxLua_wxSocketBase_IsDisconnected, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_IsDisconnected }}; -// bool IsDisconnected() const; -static int LUACALL wxLua_wxSocketBase_IsDisconnected(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call IsDisconnected - bool returns = (self->IsDisconnected()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_LastCount[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_LastCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_LastCount[1] = {{ wxLua_wxSocketBase_LastCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_LastCount }}; -// unsigned long LastCount() const; -static int LUACALL wxLua_wxSocketBase_LastCount(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call LastCount - unsigned long returns = (self->LastCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_LastError[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_LastError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_LastError[1] = {{ wxLua_wxSocketBase_LastError, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_LastError }}; -// wxSocketError LastError() const; // %gtk|%mac causes link error with Borland C++ w/DLL not exported? -static int LUACALL wxLua_wxSocketBase_LastError(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call LastError - wxSocketError returns = (self->LastError()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Notify[] = { &wxluatype_wxSocketBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSocketBase_Notify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Notify[1] = {{ wxLua_wxSocketBase_Notify, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_Notify }}; -// void Notify(bool notify); -static int LUACALL wxLua_wxSocketBase_Notify(lua_State *L) -{ - // bool notify - bool notify = wxlua_getbooleantype(L, 2); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Notify - self->Notify(notify); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Ok[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Ok[1] = {{ wxLua_wxSocketBase_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxSocketBase_Ok(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Peek[] = { &wxluatype_wxSocketBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_Peek(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Peek[1] = {{ wxLua_wxSocketBase_Peek, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_Peek }}; -// %override wxLua_wxSocketBase_Peek -// void Peek(void * buffer, unsigned long nbytes) -static int LUACALL wxLua_wxSocketBase_Peek(lua_State *L) -{ - // unsigned long nbytes - unsigned long nbytes = (unsigned long)wxlua_getintegertype(L, 2); - // void * buffer - void *buffer = malloc(nbytes); - if (buffer != NULL) - { - // get this - wxSocketBase *self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Peek - self->Peek(buffer, nbytes); - // return the number of parameters - lua_pushlstring(L, (const char *)buffer, nbytes); - free(buffer); - return 1; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Read[] = { &wxluatype_wxSocketBase, &wxluatype_TLIGHTUSERDATA, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_Read(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Read[1] = {{ wxLua_wxSocketBase_Read, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSocketBase_Read }}; -// %override wxLua_wxSocketBase_Read -// void Read(void * buffer, unsigned long nbytes) -static int LUACALL wxLua_wxSocketBase_Read(lua_State *L) -{ - // unsigned long nbytes - unsigned long nbytes = (unsigned long)wxlua_getintegertype(L, 2); - // void * buffer - void *buffer = malloc(nbytes); - if (buffer != NULL) - { - // get this - wxSocketBase *self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Peek - self->Read(buffer, nbytes); - // return the number of parameters - lua_pushlstring(L, (const char *)buffer, nbytes); - free(buffer); - return 1; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_ReadMsg[] = { &wxluatype_wxSocketBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_ReadMsg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_ReadMsg[1] = {{ wxLua_wxSocketBase_ReadMsg, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_ReadMsg }}; -// %override wxLua_wxSocketBase_ReadMsg -// void ReadMsg(void * buffer, unsigned long nbytes) -static int LUACALL wxLua_wxSocketBase_ReadMsg(lua_State *L) -{ - // unsigned long nbytes - unsigned long nbytes = (unsigned long)wxlua_getintegertype(L, 2); - // void * buffer - void *buffer = malloc(nbytes); - if (buffer != NULL) - { - // get this - wxSocketBase *self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Peek - self->ReadMsg(buffer, nbytes); - // return the number of parameters - lua_pushlstring(L, (const char *)buffer, self->LastCount()); // not nbytes since it may return less - free(buffer); - return 1; - } - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_RestoreState[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_RestoreState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_RestoreState[1] = {{ wxLua_wxSocketBase_RestoreState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_RestoreState }}; -// void RestoreState(); -static int LUACALL wxLua_wxSocketBase_RestoreState(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call RestoreState - self->RestoreState(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_SaveState[] = { &wxluatype_wxSocketBase, NULL }; -static int LUACALL wxLua_wxSocketBase_SaveState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_SaveState[1] = {{ wxLua_wxSocketBase_SaveState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketBase_SaveState }}; -// void SaveState(); -static int LUACALL wxLua_wxSocketBase_SaveState(lua_State *L) -{ - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call SaveState - self->SaveState(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_SetClientData[] = { &wxluatype_wxSocketBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_SetClientData[1] = {{ wxLua_wxSocketBase_SetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_SetClientData }}; -// void SetClientData(voidptr_long number); // C++ is (void *clientData) You can put a number here -static int LUACALL wxLua_wxSocketBase_SetClientData(lua_State *L) -{ - // voidptr_long number - wxUIntPtr number = (wxUIntPtr)wxlua_getnumbertype(L, 2); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call SetClientData - self->SetClientData((void*)number); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_SetEventHandler[] = { &wxluatype_wxSocketBase, &wxluatype_wxEvtHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_SetEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_SetEventHandler[1] = {{ wxLua_wxSocketBase_SetEventHandler, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSocketBase_SetEventHandler }}; -// void SetEventHandler(wxEvtHandler& handler, int id = -1); -static int LUACALL wxLua_wxSocketBase_SetEventHandler(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = -1 - int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call SetEventHandler - self->SetEventHandler(*handler, id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_SetFlags[] = { &wxluatype_wxSocketBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_SetFlags[1] = {{ wxLua_wxSocketBase_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_SetFlags }}; -// void SetFlags(wxSocketFlags flags); -static int LUACALL wxLua_wxSocketBase_SetFlags(lua_State *L) -{ - // wxSocketFlags flags - wxSocketFlags flags = (wxSocketFlags)wxlua_getenumtype(L, 2); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_SetNotify[] = { &wxluatype_wxSocketBase, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_SetNotify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_SetNotify[1] = {{ wxLua_wxSocketBase_SetNotify, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_SetNotify }}; -// void SetNotify(wxSocketEventFlags flags); -static int LUACALL wxLua_wxSocketBase_SetNotify(lua_State *L) -{ - // wxSocketEventFlags flags - wxSocketEventFlags flags = (wxSocketEventFlags)wxlua_getenumtype(L, 2); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call SetNotify - self->SetNotify(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_SetTimeout[] = { &wxluatype_wxSocketBase, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_SetTimeout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_SetTimeout[1] = {{ wxLua_wxSocketBase_SetTimeout, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSocketBase_SetTimeout }}; -// void SetTimeout(int seconds); -static int LUACALL wxLua_wxSocketBase_SetTimeout(lua_State *L) -{ - // int seconds - int seconds = (int)wxlua_getnumbertype(L, 2); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call SetTimeout - self->SetTimeout(seconds); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Unread[] = { &wxluatype_wxSocketBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_Unread(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Unread[1] = {{ wxLua_wxSocketBase_Unread, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSocketBase_Unread }}; -// %override wxLua_wxSocketBase_Unread -// void Unread(const void * buffer, unsigned long nbytes) -static int LUACALL wxLua_wxSocketBase_Unread(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const void * buffer - const char *buffer = lua_tostring(L, 2); - // unsigned long nbytes - unsigned long nbytes = (argCount >= 3 ? (unsigned long)wxlua_getintegertype(L, 3) : lua_strlen(L, 2)); - // get this - wxSocketBase *self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Unread - self->Unread(buffer, nbytes); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Wait[] = { &wxluatype_wxSocketBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_Wait(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Wait[1] = {{ wxLua_wxSocketBase_Wait, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSocketBase_Wait }}; -// bool Wait(long seconds = -1, long millisecond = 0); -static int LUACALL wxLua_wxSocketBase_Wait(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long millisecond = 0 - long millisecond = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long seconds = -1 - long seconds = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : -1); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Wait - bool returns = (self->Wait(seconds, millisecond)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_WaitForLost[] = { &wxluatype_wxSocketBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_WaitForLost(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_WaitForLost[1] = {{ wxLua_wxSocketBase_WaitForLost, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSocketBase_WaitForLost }}; -// bool WaitForLost(long seconds = -1, long millisecond = 0); -static int LUACALL wxLua_wxSocketBase_WaitForLost(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long millisecond = 0 - long millisecond = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long seconds = -1 - long seconds = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : -1); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call WaitForLost - bool returns = (self->WaitForLost(seconds, millisecond)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_WaitForRead[] = { &wxluatype_wxSocketBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_WaitForRead(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_WaitForRead[1] = {{ wxLua_wxSocketBase_WaitForRead, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSocketBase_WaitForRead }}; -// bool WaitForRead(long seconds = -1, long millisecond = 0); -static int LUACALL wxLua_wxSocketBase_WaitForRead(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long millisecond = 0 - long millisecond = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long seconds = -1 - long seconds = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : -1); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call WaitForRead - bool returns = (self->WaitForRead(seconds, millisecond)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_WaitForWrite[] = { &wxluatype_wxSocketBase, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketBase_WaitForWrite(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_WaitForWrite[1] = {{ wxLua_wxSocketBase_WaitForWrite, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSocketBase_WaitForWrite }}; -// bool WaitForWrite(long seconds = -1, long millisecond = 0); -static int LUACALL wxLua_wxSocketBase_WaitForWrite(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long millisecond = 0 - long millisecond = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long seconds = -1 - long seconds = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : -1); - // get this - wxSocketBase * self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call WaitForWrite - bool returns = (self->WaitForWrite(seconds, millisecond)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_Write[] = { &wxluatype_wxSocketBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_Write(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_Write[1] = {{ wxLua_wxSocketBase_Write, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSocketBase_Write }}; -// %override wxLua_wxSocketBase_Write -// void Write(const void * buffer, unsigned long nbytes) -static int LUACALL wxLua_wxSocketBase_Write(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const void * buffer - const char *buffer = lua_tostring(L, 2); - // unsigned long nbytes - unsigned long nbytes = (argCount >= 3 ? (unsigned long)wxlua_getintegertype(L, 3) : lua_strlen(L, 2)); - // get this - wxSocketBase *self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call Write - self->Write(buffer, nbytes); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketBase_WriteMsg[] = { &wxluatype_wxSocketBase, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketBase_WriteMsg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketBase_WriteMsg[1] = {{ wxLua_wxSocketBase_WriteMsg, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSocketBase_WriteMsg }}; -// %override wxLua_wxSocketBase_WriteMsg -// void WriteMsg(const void * buffer, wxUint32 nbytes) -static int LUACALL wxLua_wxSocketBase_WriteMsg(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const void * buffer - const char *buffer = lua_tostring(L, 2); - // unsigned long nbytes - unsigned long nbytes = (argCount >= 3 ? (unsigned long)wxlua_getintegertype(L, 3) : lua_strlen(L, 2)); - // get this - wxSocketBase *self = (wxSocketBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketBase); - // call WriteMsg - self->WriteMsg(buffer, nbytes); - // return the number of parameters - return 0; -} - - - - - -void wxLua_wxSocketBase_delete_function(void** p) -{ - wxSocketBase* o = (wxSocketBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSocketBase_methods[] = { - { "Close", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Close, 1, NULL }, - { "Destroy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Destroy, 1, NULL }, - { "Discard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Discard, 1, NULL }, - { "Error", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Error, 1, NULL }, - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_GetClientData, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_GetFlags, 1, NULL }, - { "GetLocal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_GetLocal, 1, NULL }, - { "GetPeer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_GetPeer, 1, NULL }, - { "InterruptWait", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_InterruptWait, 1, NULL }, - { "IsConnected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_IsConnected, 1, NULL }, - { "IsData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_IsData, 1, NULL }, - { "IsDisconnected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_IsDisconnected, 1, NULL }, - { "LastCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_LastCount, 1, NULL }, - { "LastError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_LastError, 1, NULL }, - { "Notify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Notify, 1, NULL }, - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Ok, 1, NULL }, - { "Peek", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Peek, 1, NULL }, - { "Read", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Read, 1, NULL }, - { "ReadMsg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_ReadMsg, 1, NULL }, - { "RestoreState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_RestoreState, 1, NULL }, - { "SaveState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_SaveState, 1, NULL }, - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_SetClientData, 1, NULL }, - { "SetEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_SetEventHandler, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_SetFlags, 1, NULL }, - { "SetNotify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_SetNotify, 1, NULL }, - { "SetTimeout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_SetTimeout, 1, NULL }, - { "Unread", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Unread, 1, NULL }, - { "Wait", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Wait, 1, NULL }, - { "WaitForLost", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_WaitForLost, 1, NULL }, - { "WaitForRead", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_WaitForRead, 1, NULL }, - { "WaitForWrite", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_WaitForWrite, 1, NULL }, - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_Write, 1, NULL }, - { "WriteMsg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketBase_WriteMsg, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSocketBase_methodCount = sizeof(wxSocketBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxSocketClient -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSocketClient' -int wxluatype_wxSocketClient = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketClient_Connect[] = { &wxluatype_wxSocketClient, &wxluatype_wxSockAddress, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSocketClient_Connect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketClient_Connect[1] = {{ wxLua_wxSocketClient_Connect, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSocketClient_Connect }}; -// bool Connect(wxSockAddress& address, bool wait = true); -static int LUACALL wxLua_wxSocketClient_Connect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool wait = true - bool wait = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxSockAddress address - wxSockAddress * address = (wxSockAddress *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSockAddress); - // get this - wxSocketClient * self = (wxSocketClient *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketClient); - // call Connect - bool returns = (self->Connect(*address, wait)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketClient_WaitOnConnect[] = { &wxluatype_wxSocketClient, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketClient_WaitOnConnect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketClient_WaitOnConnect[1] = {{ wxLua_wxSocketClient_WaitOnConnect, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSocketClient_WaitOnConnect }}; -// bool WaitOnConnect(long seconds = -1, long milliseconds = 0); -static int LUACALL wxLua_wxSocketClient_WaitOnConnect(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long milliseconds = 0 - long milliseconds = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long seconds = -1 - long seconds = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : -1); - // get this - wxSocketClient * self = (wxSocketClient *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketClient); - // call WaitOnConnect - bool returns = (self->WaitOnConnect(seconds, milliseconds)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketClient_delete[] = { &wxluatype_wxSocketClient, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketClient_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSocketClient_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketClient_constructor[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketClient_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketClient_constructor[1] = {{ wxLua_wxSocketClient_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxSocketClient_constructor }}; -// wxSocketClient(wxSocketFlags flags = wxSOCKET_NONE); -static int LUACALL wxLua_wxSocketClient_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSocketFlags flags = wxSOCKET_NONE - wxSocketFlags flags = (argCount >= 1 ? (wxSocketFlags)wxlua_getenumtype(L, 1) : wxSOCKET_NONE); - // call constructor - wxSocketClient* returns = new wxSocketClient(flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSocketClient); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSocketClient); - - return 1; -} - - - - -void wxLua_wxSocketClient_delete_function(void** p) -{ - wxSocketClient* o = (wxSocketClient*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSocketClient_methods[] = { - { "Connect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketClient_Connect, 1, NULL }, - { "WaitOnConnect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketClient_WaitOnConnect, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSocketClient_delete, 1, NULL }, - { "wxSocketClient", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSocketClient_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSocketClient_methodCount = sizeof(wxSocketClient_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxSocketServer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSocketServer' -int wxluatype_wxSocketServer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketServer_Accept[] = { &wxluatype_wxSocketServer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSocketServer_Accept(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketServer_Accept[1] = {{ wxLua_wxSocketServer_Accept, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSocketServer_Accept }}; -// wxSocketBase* Accept(bool wait = true); -static int LUACALL wxLua_wxSocketServer_Accept(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool wait = true - bool wait = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxSocketServer * self = (wxSocketServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketServer); - // call Accept - wxSocketBase* returns = (wxSocketBase*)self->Accept(wait); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSocketBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketServer_AcceptWith[] = { &wxluatype_wxSocketServer, &wxluatype_wxSocketBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSocketServer_AcceptWith(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketServer_AcceptWith[1] = {{ wxLua_wxSocketServer_AcceptWith, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSocketServer_AcceptWith }}; -// bool AcceptWith(wxSocketBase& socket, bool wait = true); -static int LUACALL wxLua_wxSocketServer_AcceptWith(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool wait = true - bool wait = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxSocketBase socket - wxSocketBase * socket = (wxSocketBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSocketBase); - // get this - wxSocketServer * self = (wxSocketServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketServer); - // call AcceptWith - bool returns = (self->AcceptWith(*socket, wait)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketServer_WaitForAccept[] = { &wxluatype_wxSocketServer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketServer_WaitForAccept(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketServer_WaitForAccept[1] = {{ wxLua_wxSocketServer_WaitForAccept, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSocketServer_WaitForAccept }}; -// bool WaitForAccept(long seconds = -1, long millisecond = 0); -static int LUACALL wxLua_wxSocketServer_WaitForAccept(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long millisecond = 0 - long millisecond = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // long seconds = -1 - long seconds = (argCount >= 2 ? (long)wxlua_getnumbertype(L, 2) : -1); - // get this - wxSocketServer * self = (wxSocketServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketServer); - // call WaitForAccept - bool returns = (self->WaitForAccept(seconds, millisecond)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketServer_delete[] = { &wxluatype_wxSocketServer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketServer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSocketServer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketServer_constructor[] = { &wxluatype_wxSockAddress, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSocketServer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketServer_constructor[1] = {{ wxLua_wxSocketServer_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxSocketServer_constructor }}; -// wxSocketServer(wxSockAddress& address, wxSocketFlags flags = wxSOCKET_NONE); -static int LUACALL wxLua_wxSocketServer_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxSocketFlags flags = wxSOCKET_NONE - wxSocketFlags flags = (argCount >= 2 ? (wxSocketFlags)wxlua_getenumtype(L, 2) : wxSOCKET_NONE); - // wxSockAddress address - wxSockAddress * address = (wxSockAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSockAddress); - // call constructor - wxSocketServer* returns = new wxSocketServer(*address, flags); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSocketServer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSocketServer); - - return 1; -} - - - - -void wxLua_wxSocketServer_delete_function(void** p) -{ - wxSocketServer* o = (wxSocketServer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSocketServer_methods[] = { - { "Accept", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketServer_Accept, 1, NULL }, - { "AcceptWith", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketServer_AcceptWith, 1, NULL }, - { "WaitForAccept", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketServer_WaitForAccept, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSocketServer_delete, 1, NULL }, - { "wxSocketServer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSocketServer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSocketServer_methodCount = sizeof(wxSocketServer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxSocketEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSocketEvent' -int wxluatype_wxSocketEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketEvent_GetClientData[] = { &wxluatype_wxSocketEvent, NULL }; -static int LUACALL wxLua_wxSocketEvent_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketEvent_GetClientData[1] = {{ wxLua_wxSocketEvent_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketEvent_GetClientData }}; -// voidptr_long GetClientData(); // C++ returns (void *) You get a number here -static int LUACALL wxLua_wxSocketEvent_GetClientData(lua_State *L) -{ - // get this - wxSocketEvent * self = (wxSocketEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketEvent); - // call GetClientData - wxUIntPtr returns = (wxUIntPtr)self->GetClientData(); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketEvent_GetSocket[] = { &wxluatype_wxSocketEvent, NULL }; -static int LUACALL wxLua_wxSocketEvent_GetSocket(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketEvent_GetSocket[1] = {{ wxLua_wxSocketEvent_GetSocket, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketEvent_GetSocket }}; -// wxSocketBase * GetSocket() const; -static int LUACALL wxLua_wxSocketEvent_GetSocket(lua_State *L) -{ - // get this - wxSocketEvent * self = (wxSocketEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketEvent); - // call GetSocket - wxSocketBase* returns = (wxSocketBase*)self->GetSocket(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSocketBase); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketEvent_GetSocketEvent[] = { &wxluatype_wxSocketEvent, NULL }; -static int LUACALL wxLua_wxSocketEvent_GetSocketEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketEvent_GetSocketEvent[1] = {{ wxLua_wxSocketEvent_GetSocketEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSocketEvent_GetSocketEvent }}; -// wxSocketNotify GetSocketEvent() const; -static int LUACALL wxLua_wxSocketEvent_GetSocketEvent(lua_State *L) -{ - // get this - wxSocketEvent * self = (wxSocketEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSocketEvent); - // call GetSocketEvent - wxSocketNotify returns = (self->GetSocketEvent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketEvent_delete[] = { &wxluatype_wxSocketEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSocketEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSocketEvent_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSocketEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSocketEvent_constructor[1] = {{ wxLua_wxSocketEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxSocketEvent_constructor }}; -// wxSocketEvent(int id = 0); -static int LUACALL wxLua_wxSocketEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxSocketEvent* returns = new wxSocketEvent(id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSocketEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSocketEvent); - - return 1; -} - - - - -void wxLua_wxSocketEvent_delete_function(void** p) -{ - wxSocketEvent* o = (wxSocketEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSocketEvent_methods[] = { - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketEvent_GetClientData, 1, NULL }, - { "GetSocket", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketEvent_GetSocket, 1, NULL }, - { "GetSocketEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSocketEvent_GetSocketEvent, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSocketEvent_delete, 1, NULL }, - { "wxSocketEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSocketEvent_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSocketEvent_methodCount = sizeof(wxSocketEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxSockAddress -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSockAddress' -int wxluatype_wxSockAddress = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSockAddress_Clear[] = { &wxluatype_wxSockAddress, NULL }; -static int LUACALL wxLua_wxSockAddress_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSockAddress_Clear[1] = {{ wxLua_wxSockAddress_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSockAddress_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxSockAddress_Clear(lua_State *L) -{ - // get this - wxSockAddress * self = (wxSockAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSockAddress); - // call Clear - self->Clear(); - - return 0; -} - - - - -void wxLua_wxSockAddress_delete_function(void** p) -{ - wxSockAddress* o = (wxSockAddress*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSockAddress_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSockAddress_Clear, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxSockAddress_methodCount = sizeof(wxSockAddress_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxIPaddress -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIPaddress' -int wxluatype_wxIPaddress = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_AnyAddress[] = { &wxluatype_wxIPaddress, NULL }; -static int LUACALL wxLua_wxIPaddress_AnyAddress(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_AnyAddress[1] = {{ wxLua_wxIPaddress_AnyAddress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_AnyAddress }}; -// bool AnyAddress(); -static int LUACALL wxLua_wxIPaddress_AnyAddress(lua_State *L) -{ - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call AnyAddress - bool returns = (self->AnyAddress()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_Hostname1[] = { &wxluatype_wxIPaddress, NULL }; -static int LUACALL wxLua_wxIPaddress_Hostname1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Hostname1[1] = {{ wxLua_wxIPaddress_Hostname1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_Hostname1 }}; -// wxString Hostname(); -static int LUACALL wxLua_wxIPaddress_Hostname1(lua_State *L) -{ - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call Hostname - wxString returns = (self->Hostname()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_Hostname[] = { &wxluatype_wxIPaddress, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxIPaddress_Hostname(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Hostname[1] = {{ wxLua_wxIPaddress_Hostname, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPaddress_Hostname }}; -// bool Hostname(const wxString& hostname); -static int LUACALL wxLua_wxIPaddress_Hostname(lua_State *L) -{ - // const wxString hostname - const wxString hostname = wxlua_getwxStringtype(L, 2); - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call Hostname - bool returns = (self->Hostname(hostname)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_IPAddress[] = { &wxluatype_wxIPaddress, NULL }; -static int LUACALL wxLua_wxIPaddress_IPAddress(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_IPAddress[1] = {{ wxLua_wxIPaddress_IPAddress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_IPAddress }}; -// wxString IPAddress(); -static int LUACALL wxLua_wxIPaddress_IPAddress(lua_State *L) -{ - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call IPAddress - wxString returns = (self->IPAddress()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_IsLocalHost[] = { &wxluatype_wxIPaddress, NULL }; -static int LUACALL wxLua_wxIPaddress_IsLocalHost(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_IsLocalHost[1] = {{ wxLua_wxIPaddress_IsLocalHost, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_IsLocalHost }}; -// virtual bool IsLocalHost(); -static int LUACALL wxLua_wxIPaddress_IsLocalHost(lua_State *L) -{ - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call IsLocalHost - bool returns = (self->IsLocalHost()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_LocalHost[] = { &wxluatype_wxIPaddress, NULL }; -static int LUACALL wxLua_wxIPaddress_LocalHost(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_LocalHost[1] = {{ wxLua_wxIPaddress_LocalHost, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_LocalHost }}; -// bool LocalHost(); -static int LUACALL wxLua_wxIPaddress_LocalHost(lua_State *L) -{ - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call LocalHost - bool returns = (self->LocalHost()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_Service2[] = { &wxluatype_wxIPaddress, NULL }; -static int LUACALL wxLua_wxIPaddress_Service2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Service2[1] = {{ wxLua_wxIPaddress_Service2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_Service2 }}; -// unsigned short Service(); -static int LUACALL wxLua_wxIPaddress_Service2(lua_State *L) -{ - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call Service - unsigned short returns = (self->Service()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_Service1[] = { &wxluatype_wxIPaddress, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIPaddress_Service1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Service1[1] = {{ wxLua_wxIPaddress_Service1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPaddress_Service1 }}; -// bool Service(unsigned short service); -static int LUACALL wxLua_wxIPaddress_Service1(lua_State *L) -{ - // unsigned short service - unsigned short service = (unsigned short)wxlua_getuintegertype(L, 2); - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call Service - bool returns = (self->Service(service)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_Service[] = { &wxluatype_wxIPaddress, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxIPaddress_Service(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Service[1] = {{ wxLua_wxIPaddress_Service, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPaddress_Service }}; -// bool Service(const wxString& service); -static int LUACALL wxLua_wxIPaddress_Service(lua_State *L) -{ - // const wxString service - const wxString service = wxlua_getwxStringtype(L, 2); - // get this - wxIPaddress * self = (wxIPaddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPaddress); - // call Service - bool returns = (self->Service(service)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPaddress_delete[] = { &wxluatype_wxIPaddress, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_delete }}; - - - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Hostname_overload[] = -{ - { wxLua_wxIPaddress_Hostname1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_Hostname1 }, - { wxLua_wxIPaddress_Hostname, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPaddress_Hostname }, -}; -static int s_wxluafunc_wxLua_wxIPaddress_Hostname_overload_count = sizeof(s_wxluafunc_wxLua_wxIPaddress_Hostname_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPaddress_Service_overload[] = -{ - { wxLua_wxIPaddress_Service2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIPaddress_Service2 }, - { wxLua_wxIPaddress_Service1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPaddress_Service1 }, - { wxLua_wxIPaddress_Service, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPaddress_Service }, -}; -static int s_wxluafunc_wxLua_wxIPaddress_Service_overload_count = sizeof(s_wxluafunc_wxLua_wxIPaddress_Service_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -void wxLua_wxIPaddress_delete_function(void** p) -{ - wxIPaddress* o = (wxIPaddress*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIPaddress_methods[] = { - { "AnyAddress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPaddress_AnyAddress, 1, NULL }, - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { "Hostname", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPaddress_Hostname_overload, s_wxluafunc_wxLua_wxIPaddress_Hostname_overload_count, 0 }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - - { "IPAddress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPaddress_IPAddress, 1, NULL }, - { "IsLocalHost", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPaddress_IsLocalHost, 1, NULL }, - { "LocalHost", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPaddress_LocalHost, 1, NULL }, - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { "Service", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPaddress_Service_overload, s_wxluafunc_wxLua_wxIPaddress_Service_overload_count, 0 }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIPaddress_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxIPaddress_methodCount = sizeof(wxIPaddress_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxIPV4address -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIPV4address' -int wxluatype_wxIPV4address = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPV4address_Hostname[] = { &wxluatype_wxIPV4address, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxIPV4address_Hostname(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPV4address_Hostname[1] = {{ wxLua_wxIPV4address_Hostname, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIPV4address_Hostname }}; -// bool Hostname(unsigned long addr); -static int LUACALL wxLua_wxIPV4address_Hostname(lua_State *L) -{ - // unsigned long addr - unsigned long addr = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxIPV4address * self = (wxIPV4address *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPV4address); - // call Hostname - bool returns = (self->Hostname(addr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPV4address_delete[] = { &wxluatype_wxIPV4address, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPV4address_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxIPV4address_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIPV4address_constructor1[] = { &wxluatype_wxIPV4address, NULL }; -static int LUACALL wxLua_wxIPV4address_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPV4address_constructor1[1] = {{ wxLua_wxIPV4address_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIPV4address_constructor1 }}; -// wxIPV4address(const wxIPV4address& other); -static int LUACALL wxLua_wxIPV4address_constructor1(lua_State *L) -{ - // const wxIPV4address other - const wxIPV4address * other = (const wxIPV4address *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIPV4address); - // call constructor - wxIPV4address* returns = new wxIPV4address(*other); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIPV4address); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIPV4address); - - return 1; -} - -static int LUACALL wxLua_wxIPV4address_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPV4address_constructor[1] = {{ wxLua_wxIPV4address_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxIPV4address(); -static int LUACALL wxLua_wxIPV4address_constructor(lua_State *L) -{ - // call constructor - wxIPV4address* returns = new wxIPV4address(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIPV4address); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIPV4address); - - return 1; -} - - - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIPV4address_constructor_overload[] = -{ - { wxLua_wxIPV4address_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxIPV4address_constructor1 }, - { wxLua_wxIPV4address_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxIPV4address_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxIPV4address_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -void wxLua_wxIPV4address_delete_function(void** p) -{ - wxIPV4address* o = (wxIPV4address*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIPV4address_methods[] = { - { "Hostname", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIPV4address_Hostname, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxIPV4address_delete, 1, NULL }, - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { "wxIPV4address", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIPV4address_constructor_overload, s_wxluafunc_wxLua_wxIPV4address_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - - { 0, 0, 0, 0 }, -}; - -int wxIPV4address_methodCount = sizeof(wxIPV4address_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) -// --------------------------------------------------------------------------- -// Bind class wxProtocol -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxProtocol' -int wxluatype_wxProtocol = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_Abort[] = { &wxluatype_wxProtocol, NULL }; -static int LUACALL wxLua_wxProtocol_Abort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_Abort[1] = {{ wxLua_wxProtocol_Abort, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProtocol_Abort }}; -// bool Abort(); -static int LUACALL wxLua_wxProtocol_Abort(lua_State *L) -{ - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call Abort - bool returns = (self->Abort()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_GetContentType[] = { &wxluatype_wxProtocol, NULL }; -static int LUACALL wxLua_wxProtocol_GetContentType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_GetContentType[1] = {{ wxLua_wxProtocol_GetContentType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProtocol_GetContentType }}; -// wxString GetContentType(); -static int LUACALL wxLua_wxProtocol_GetContentType(lua_State *L) -{ - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call GetContentType - wxString returns = (self->GetContentType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_GetError[] = { &wxluatype_wxProtocol, NULL }; -static int LUACALL wxLua_wxProtocol_GetError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_GetError[1] = {{ wxLua_wxProtocol_GetError, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProtocol_GetError }}; -// wxProtocolError GetError(); -static int LUACALL wxLua_wxProtocol_GetError(lua_State *L) -{ - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call GetError - wxProtocolError returns = (self->GetError()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_GetInputStream[] = { &wxluatype_wxProtocol, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxProtocol_GetInputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_GetInputStream[1] = {{ wxLua_wxProtocol_GetInputStream, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxProtocol_GetInputStream }}; -// wxInputStream *GetInputStream(const wxString& path); -static int LUACALL wxLua_wxProtocol_GetInputStream(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call GetInputStream - wxInputStream* returns = (wxInputStream*)self->GetInputStream(path); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_Reconnect[] = { &wxluatype_wxProtocol, NULL }; -static int LUACALL wxLua_wxProtocol_Reconnect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_Reconnect[1] = {{ wxLua_wxProtocol_Reconnect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxProtocol_Reconnect }}; -// bool Reconnect(); -static int LUACALL wxLua_wxProtocol_Reconnect(lua_State *L) -{ - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call Reconnect - bool returns = (self->Reconnect()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_SetPassword[] = { &wxluatype_wxProtocol, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxProtocol_SetPassword(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_SetPassword[1] = {{ wxLua_wxProtocol_SetPassword, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxProtocol_SetPassword }}; -// void SetPassword(const wxString& user); -static int LUACALL wxLua_wxProtocol_SetPassword(lua_State *L) -{ - // const wxString user - const wxString user = wxlua_getwxStringtype(L, 2); - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call SetPassword - self->SetPassword(user); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_SetUser[] = { &wxluatype_wxProtocol, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxProtocol_SetUser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_SetUser[1] = {{ wxLua_wxProtocol_SetUser, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxProtocol_SetUser }}; -// void SetUser(const wxString& user); -static int LUACALL wxLua_wxProtocol_SetUser(lua_State *L) -{ - // const wxString user - const wxString user = wxlua_getwxStringtype(L, 2); - // get this - wxProtocol * self = (wxProtocol *)wxluaT_getuserdatatype(L, 1, wxluatype_wxProtocol); - // call SetUser - self->SetUser(user); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxProtocol_delete[] = { &wxluatype_wxProtocol, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxProtocol_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxProtocol_delete }}; - - - - -void wxLua_wxProtocol_delete_function(void** p) -{ - wxProtocol* o = (wxProtocol*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxProtocol_methods[] = { - { "Abort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_Abort, 1, NULL }, - { "GetContentType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_GetContentType, 1, NULL }, - { "GetError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_GetError, 1, NULL }, - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && (wxUSE_STREAMS) - { "GetInputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_GetInputStream, 1, NULL }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && (wxUSE_STREAMS) - - { "Reconnect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_Reconnect, 1, NULL }, - { "SetPassword", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_SetPassword, 1, NULL }, - { "SetUser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxProtocol_SetUser, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxProtocol_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxProtocol_methodCount = sizeof(wxProtocol_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) -// --------------------------------------------------------------------------- -// Bind class wxHTTP -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxHTTP' -int wxluatype_wxHTTP = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHTTP_GetHeader[] = { &wxluatype_wxHTTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHTTP_GetHeader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHTTP_GetHeader[1] = {{ wxLua_wxHTTP_GetHeader, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxHTTP_GetHeader }}; -// wxString GetHeader(const wxString& header); -static int LUACALL wxLua_wxHTTP_GetHeader(lua_State *L) -{ - // const wxString header - const wxString header = wxlua_getwxStringtype(L, 2); - // get this - wxHTTP * self = (wxHTTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHTTP); - // call GetHeader - wxString returns = (self->GetHeader(header)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHTTP_GetResponse[] = { &wxluatype_wxHTTP, NULL }; -static int LUACALL wxLua_wxHTTP_GetResponse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHTTP_GetResponse[1] = {{ wxLua_wxHTTP_GetResponse, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxHTTP_GetResponse }}; -// int GetResponse() const; -static int LUACALL wxLua_wxHTTP_GetResponse(lua_State *L) -{ - // get this - wxHTTP * self = (wxHTTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHTTP); - // call GetResponse - int returns = (self->GetResponse()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHTTP_SetHeader[] = { &wxluatype_wxHTTP, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxHTTP_SetHeader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHTTP_SetHeader[1] = {{ wxLua_wxHTTP_SetHeader, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxHTTP_SetHeader }}; -// void SetHeader(const wxString& header, const wxString& h_data); -static int LUACALL wxLua_wxHTTP_SetHeader(lua_State *L) -{ - // const wxString h_data - const wxString h_data = wxlua_getwxStringtype(L, 3); - // const wxString header - const wxString header = wxlua_getwxStringtype(L, 2); - // get this - wxHTTP * self = (wxHTTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxHTTP); - // call SetHeader - self->SetHeader(header, h_data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxHTTP_delete[] = { &wxluatype_wxHTTP, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHTTP_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxHTTP_delete }}; - -static int LUACALL wxLua_wxHTTP_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxHTTP_constructor[1] = {{ wxLua_wxHTTP_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxHTTP(); -static int LUACALL wxLua_wxHTTP_constructor(lua_State *L) -{ - // call constructor - wxHTTP* returns = new wxHTTP(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxHTTP); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxHTTP); - - return 1; -} - - - - -void wxLua_wxHTTP_delete_function(void** p) -{ - wxHTTP* o = (wxHTTP*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxHTTP_methods[] = { - { "GetHeader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHTTP_GetHeader, 1, NULL }, - { "GetResponse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHTTP_GetResponse, 1, NULL }, - { "SetHeader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxHTTP_SetHeader, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxHTTP_delete, 1, NULL }, - { "wxHTTP", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxHTTP_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxHTTP_methodCount = sizeof(wxHTTP_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) -// --------------------------------------------------------------------------- -// Bind class wxFTP -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFTP' -int wxluatype_wxFTP = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_ChDir[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_ChDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_ChDir[1] = {{ wxLua_wxFTP_ChDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_ChDir }}; -// bool ChDir(const wxString& dir); -static int LUACALL wxLua_wxFTP_ChDir(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call ChDir - bool returns = (self->ChDir(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_CheckCommand[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFTP_CheckCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_CheckCommand[1] = {{ wxLua_wxFTP_CheckCommand, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFTP_CheckCommand }}; -// bool CheckCommand(const wxString& command, char ret); -static int LUACALL wxLua_wxFTP_CheckCommand(lua_State *L) -{ - // char ret - char ret = (char)wxlua_getnumbertype(L, 3); - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call CheckCommand - bool returns = (self->CheckCommand(command, ret)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_FileExists[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_FileExists(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_FileExists[1] = {{ wxLua_wxFTP_FileExists, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_FileExists }}; -// bool FileExists(const wxString& filename); -static int LUACALL wxLua_wxFTP_FileExists(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call FileExists - bool returns = (self->FileExists(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_GetDirList[] = { &wxluatype_wxFTP, &wxluatype_wxArrayString, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_GetDirList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_GetDirList[1] = {{ wxLua_wxFTP_GetDirList, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFTP_GetDirList }}; -// bool GetDirList(wxArrayString& files, const wxString& wildcard = ""); -static int LUACALL wxLua_wxFTP_GetDirList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString wildcard = "" - const wxString wildcard = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxArrayString files - wxArrayString * files = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call GetDirList - bool returns = (self->GetDirList(*files, wildcard)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_GetFileSize[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_GetFileSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_GetFileSize[1] = {{ wxLua_wxFTP_GetFileSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_GetFileSize }}; -// int GetFileSize(const wxString& filename); -static int LUACALL wxLua_wxFTP_GetFileSize(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call GetFileSize - int returns = (self->GetFileSize(filename)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_GetFilesList[] = { &wxluatype_wxFTP, &wxluatype_wxArrayString, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_GetFilesList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_GetFilesList[1] = {{ wxLua_wxFTP_GetFilesList, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFTP_GetFilesList }}; -// bool GetFilesList(wxArrayString& files, const wxString& wildcard = ""); -static int LUACALL wxLua_wxFTP_GetFilesList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString wildcard = "" - const wxString wildcard = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxArrayString files - wxArrayString * files = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call GetFilesList - bool returns = (self->GetFilesList(*files, wildcard)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_GetLastResult[] = { &wxluatype_wxFTP, NULL }; -static int LUACALL wxLua_wxFTP_GetLastResult(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_GetLastResult[1] = {{ wxLua_wxFTP_GetLastResult, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFTP_GetLastResult }}; -// wxString GetLastResult(); -static int LUACALL wxLua_wxFTP_GetLastResult(lua_State *L) -{ - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call GetLastResult - wxString returns = (self->GetLastResult()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_GetOutputStream[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_GetOutputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_GetOutputStream[1] = {{ wxLua_wxFTP_GetOutputStream, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_GetOutputStream }}; -// wxOutputStream * GetOutputStream(const wxString& file); -static int LUACALL wxLua_wxFTP_GetOutputStream(lua_State *L) -{ - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call GetOutputStream - wxOutputStream* returns = (wxOutputStream*)self->GetOutputStream(file); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxOutputStream); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_MkDir[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_MkDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_MkDir[1] = {{ wxLua_wxFTP_MkDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_MkDir }}; -// bool MkDir(const wxString& dir); -static int LUACALL wxLua_wxFTP_MkDir(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call MkDir - bool returns = (self->MkDir(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_Pwd[] = { &wxluatype_wxFTP, NULL }; -static int LUACALL wxLua_wxFTP_Pwd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_Pwd[1] = {{ wxLua_wxFTP_Pwd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFTP_Pwd }}; -// wxString Pwd(); -static int LUACALL wxLua_wxFTP_Pwd(lua_State *L) -{ - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call Pwd - wxString returns = (self->Pwd()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_Rename[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_Rename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_Rename[1] = {{ wxLua_wxFTP_Rename, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFTP_Rename }}; -// bool Rename(const wxString& src, const wxString& dst); -static int LUACALL wxLua_wxFTP_Rename(lua_State *L) -{ - // const wxString dst - const wxString dst = wxlua_getwxStringtype(L, 3); - // const wxString src - const wxString src = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call Rename - bool returns = (self->Rename(src, dst)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_RmDir[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_RmDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_RmDir[1] = {{ wxLua_wxFTP_RmDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_RmDir }}; -// bool RmDir(const wxString& dir); -static int LUACALL wxLua_wxFTP_RmDir(lua_State *L) -{ - // const wxString dir - const wxString dir = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call RmDir - bool returns = (self->RmDir(dir)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_RmFile[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_RmFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_RmFile[1] = {{ wxLua_wxFTP_RmFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_RmFile }}; -// bool RmFile(const wxString& path); -static int LUACALL wxLua_wxFTP_RmFile(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call RmFile - bool returns = (self->RmFile(path)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_SendCommand[] = { &wxluatype_wxFTP, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFTP_SendCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_SendCommand[1] = {{ wxLua_wxFTP_SendCommand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_SendCommand }}; -// char SendCommand(const wxString& command); -static int LUACALL wxLua_wxFTP_SendCommand(lua_State *L) -{ - // const wxString command - const wxString command = wxlua_getwxStringtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call SendCommand - char returns = (self->SendCommand(command)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_SetAscii[] = { &wxluatype_wxFTP, NULL }; -static int LUACALL wxLua_wxFTP_SetAscii(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_SetAscii[1] = {{ wxLua_wxFTP_SetAscii, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFTP_SetAscii }}; -// bool SetAscii(); -static int LUACALL wxLua_wxFTP_SetAscii(lua_State *L) -{ - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call SetAscii - bool returns = (self->SetAscii()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_SetBinary[] = { &wxluatype_wxFTP, NULL }; -static int LUACALL wxLua_wxFTP_SetBinary(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_SetBinary[1] = {{ wxLua_wxFTP_SetBinary, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFTP_SetBinary }}; -// bool SetBinary(); -static int LUACALL wxLua_wxFTP_SetBinary(lua_State *L) -{ - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call SetBinary - bool returns = (self->SetBinary()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_SetPassive[] = { &wxluatype_wxFTP, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxFTP_SetPassive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_SetPassive[1] = {{ wxLua_wxFTP_SetPassive, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_SetPassive }}; -// void SetPassive(bool pasv); -static int LUACALL wxLua_wxFTP_SetPassive(lua_State *L) -{ - // bool pasv - bool pasv = wxlua_getbooleantype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call SetPassive - self->SetPassive(pasv); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_SetTransferMode[] = { &wxluatype_wxFTP, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFTP_SetTransferMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_SetTransferMode[1] = {{ wxLua_wxFTP_SetTransferMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFTP_SetTransferMode }}; -// bool SetTransferMode(wxFTP::TransferMode mode); -static int LUACALL wxLua_wxFTP_SetTransferMode(lua_State *L) -{ - // wxFTP::TransferMode mode - wxFTP::TransferMode mode = (wxFTP::TransferMode)wxlua_getenumtype(L, 2); - // get this - wxFTP * self = (wxFTP *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFTP); - // call SetTransferMode - bool returns = (self->SetTransferMode(mode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFTP_delete[] = { &wxluatype_wxFTP, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxFTP_delete }}; - -static int LUACALL wxLua_wxFTP_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFTP_constructor[1] = {{ wxLua_wxFTP_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxFTP(); -static int LUACALL wxLua_wxFTP_constructor(lua_State *L) -{ - // call constructor - wxFTP* returns = new wxFTP(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFTP); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFTP); - - return 1; -} - - - - -void wxLua_wxFTP_delete_function(void** p) -{ - wxFTP* o = (wxFTP*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFTP_methods[] = { - { "ChDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_ChDir, 1, NULL }, - { "CheckCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_CheckCommand, 1, NULL }, - { "FileExists", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_FileExists, 1, NULL }, - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) - { "GetDirList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_GetDirList, 1, NULL }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) - - { "GetFileSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_GetFileSize, 1, NULL }, - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) - { "GetFilesList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_GetFilesList, 1, NULL }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxLUA_USE_wxArrayString) - - { "GetLastResult", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_GetLastResult, 1, NULL }, - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxUSE_STREAMS) - { "GetOutputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_GetOutputStream, 1, NULL }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP)) && (wxUSE_STREAMS) - - { "MkDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_MkDir, 1, NULL }, - { "Pwd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_Pwd, 1, NULL }, - { "Rename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_Rename, 1, NULL }, - { "RmDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_RmDir, 1, NULL }, - { "RmFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_RmFile, 1, NULL }, - { "SendCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_SendCommand, 1, NULL }, - { "SetAscii", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_SetAscii, 1, NULL }, - { "SetBinary", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_SetBinary, 1, NULL }, - { "SetPassive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_SetPassive, 1, NULL }, - { "SetTransferMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFTP_SetTransferMode, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFTP_delete, 1, NULL }, - { "wxFTP", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFTP_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFTP_methodCount = sizeof(wxFTP_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxFTP_enums[] = { -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - { "ASCII", wxFTP::ASCII }, - { "BINARY", wxFTP::BINARY }, - { "NONE", wxFTP::NONE }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - - { NULL, 0, }, -}; -int wxFTP_enumCount = sizeof(wxFTP_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS -// --------------------------------------------------------------------------- -// Bind class wxURI -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxURI' -int wxluatype_wxURI = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_BuildURI[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_BuildURI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_BuildURI[1] = {{ wxLua_wxURI_BuildURI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_BuildURI }}; -// wxString BuildURI() const; -static int LUACALL wxLua_wxURI_BuildURI(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call BuildURI - wxString returns = (self->BuildURI()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_BuildUnescapedURI[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_BuildUnescapedURI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_BuildUnescapedURI[1] = {{ wxLua_wxURI_BuildUnescapedURI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_BuildUnescapedURI }}; -// wxString BuildUnescapedURI() const; -static int LUACALL wxLua_wxURI_BuildUnescapedURI(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call BuildUnescapedURI - wxString returns = (self->BuildUnescapedURI()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_Create1[] = { &wxluatype_wxURI, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURI_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_Create1[1] = {{ wxLua_wxURI_Create1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURI_Create1 }}; -// !%wxchkver_2_9_2 wxString Create(const wxString& uri); -static int LUACALL wxLua_wxURI_Create1(lua_State *L) -{ - // const wxString uri - const wxString uri = wxlua_getwxStringtype(L, 2); - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call Create - wxString returns = (self->Create(uri)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_Create[] = { &wxluatype_wxURI, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURI_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_Create[1] = {{ wxLua_wxURI_Create, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURI_Create }}; -// %wxchkver_2_9_2 bool Create(const wxString& uri); -static int LUACALL wxLua_wxURI_Create(lua_State *L) -{ - // const wxString uri - const wxString uri = wxlua_getwxStringtype(L, 2); - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call Create - bool returns = (self->Create(uri)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetFragment[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetFragment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetFragment[1] = {{ wxLua_wxURI_GetFragment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetFragment }}; -// wxString GetFragment() const; -static int LUACALL wxLua_wxURI_GetFragment(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetFragment - wxString returns = (self->GetFragment()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetHostType[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetHostType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetHostType[1] = {{ wxLua_wxURI_GetHostType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetHostType }}; -// wxURIHostType GetHostType() const; -static int LUACALL wxLua_wxURI_GetHostType(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetHostType - wxURIHostType returns = (self->GetHostType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetPassword[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetPassword(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetPassword[1] = {{ wxLua_wxURI_GetPassword, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetPassword }}; -// wxString GetPassword() const; -static int LUACALL wxLua_wxURI_GetPassword(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetPassword - wxString returns = (self->GetPassword()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetPath[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetPath[1] = {{ wxLua_wxURI_GetPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetPath }}; -// wxString GetPath() const; -static int LUACALL wxLua_wxURI_GetPath(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetPath - wxString returns = (self->GetPath()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetPort[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetPort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetPort[1] = {{ wxLua_wxURI_GetPort, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetPort }}; -// wxString GetPort() const; -static int LUACALL wxLua_wxURI_GetPort(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetPort - wxString returns = (self->GetPort()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetQuery[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetQuery(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetQuery[1] = {{ wxLua_wxURI_GetQuery, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetQuery }}; -// wxString GetQuery() const; -static int LUACALL wxLua_wxURI_GetQuery(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetQuery - wxString returns = (self->GetQuery()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetScheme[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetScheme(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetScheme[1] = {{ wxLua_wxURI_GetScheme, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetScheme }}; -// wxString GetScheme() const; -static int LUACALL wxLua_wxURI_GetScheme(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetScheme - wxString returns = (self->GetScheme()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetServer[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetServer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetServer[1] = {{ wxLua_wxURI_GetServer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetServer }}; -// wxString GetServer() const; -static int LUACALL wxLua_wxURI_GetServer(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetServer - wxString returns = (self->GetServer()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetUser[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetUser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetUser[1] = {{ wxLua_wxURI_GetUser, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetUser }}; -// wxString GetUser() const; -static int LUACALL wxLua_wxURI_GetUser(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetUser - wxString returns = (self->GetUser()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_GetUserInfo[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_GetUserInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_GetUserInfo[1] = {{ wxLua_wxURI_GetUserInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_GetUserInfo }}; -// wxString GetUserInfo() const; -static int LUACALL wxLua_wxURI_GetUserInfo(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call GetUserInfo - wxString returns = (self->GetUserInfo()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasFragment[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasFragment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasFragment[1] = {{ wxLua_wxURI_HasFragment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasFragment }}; -// bool HasFragment() const; -static int LUACALL wxLua_wxURI_HasFragment(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasFragment - bool returns = (self->HasFragment()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasPath[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasPath(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasPath[1] = {{ wxLua_wxURI_HasPath, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasPath }}; -// bool HasPath() const; -static int LUACALL wxLua_wxURI_HasPath(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasPath - bool returns = (self->HasPath()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasPort[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasPort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasPort[1] = {{ wxLua_wxURI_HasPort, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasPort }}; -// bool HasPort() const; -static int LUACALL wxLua_wxURI_HasPort(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasPort - bool returns = (self->HasPort()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasQuery[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasQuery(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasQuery[1] = {{ wxLua_wxURI_HasQuery, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasQuery }}; -// bool HasQuery() const; -static int LUACALL wxLua_wxURI_HasQuery(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasQuery - bool returns = (self->HasQuery()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasScheme[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasScheme(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasScheme[1] = {{ wxLua_wxURI_HasScheme, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasScheme }}; -// bool HasScheme() const; -static int LUACALL wxLua_wxURI_HasScheme(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasScheme - bool returns = (self->HasScheme()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasServer[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasServer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasServer[1] = {{ wxLua_wxURI_HasServer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasServer }}; -// bool HasServer() const; -static int LUACALL wxLua_wxURI_HasServer(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasServer - bool returns = (self->HasServer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_HasUserInfo[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_HasUserInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_HasUserInfo[1] = {{ wxLua_wxURI_HasUserInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_HasUserInfo }}; -// bool HasUserInfo() const; -static int LUACALL wxLua_wxURI_HasUserInfo(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call HasUserInfo - bool returns = (self->HasUserInfo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_IsReference[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_IsReference(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_IsReference[1] = {{ wxLua_wxURI_IsReference, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURI_IsReference }}; -// bool IsReference() const; -static int LUACALL wxLua_wxURI_IsReference(lua_State *L) -{ - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call IsReference - bool returns = (self->IsReference()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_Resolve[] = { &wxluatype_wxURI, &wxluatype_wxURI, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxURI_Resolve(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_Resolve[1] = {{ wxLua_wxURI_Resolve, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxURI_Resolve }}; -// void Resolve(const wxURI& base, int flags = wxURI_STRICT); -static int LUACALL wxLua_wxURI_Resolve(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxURI_STRICT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxURI_STRICT); - // const wxURI base - const wxURI * base = (const wxURI *)wxluaT_getuserdatatype(L, 2, wxluatype_wxURI); - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call Resolve - self->Resolve(*base, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_Unescape[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURI_Unescape(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_Unescape[1] = {{ wxLua_wxURI_Unescape, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxURI_Unescape }}; -// static wxString Unescape (const wxString& szEscapedURI); -static int LUACALL wxLua_wxURI_Unescape(lua_State *L) -{ - // const wxString szEscapedURI - const wxString szEscapedURI = wxlua_getwxStringtype(L, 1); - // call Unescape - wxString returns = (wxURI::Unescape(szEscapedURI)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_delete[] = { &wxluatype_wxURI, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxURI_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_op_eq[] = { &wxluatype_wxURI, &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_op_eq[1] = {{ wxLua_wxURI_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURI_op_eq }}; -// bool operator == (const wxURI& uri) const; -static int LUACALL wxLua_wxURI_op_eq(lua_State *L) -{ - // const wxURI uri - const wxURI * uri = (const wxURI *)wxluaT_getuserdatatype(L, 2, wxluatype_wxURI); - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call op_eq - bool returns = ((*self)==(*uri)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_op_set[] = { &wxluatype_wxURI, &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_op_set[1] = {{ wxLua_wxURI_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURI_op_set }}; -// wxURI& operator = (const wxURI& uri); -static int LUACALL wxLua_wxURI_op_set(lua_State *L) -{ - // const wxURI uri - const wxURI * uri = (const wxURI *)wxluaT_getuserdatatype(L, 2, wxluatype_wxURI); - // get this - wxURI * self = (wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call op_set - (*self)=(*uri); - wxURI* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURI); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_constructor2[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURI_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_constructor2[1] = {{ wxLua_wxURI_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURI_constructor2 }}; -// wxURI(const wxURI& uri); -static int LUACALL wxLua_wxURI_constructor2(lua_State *L) -{ - // const wxURI uri - const wxURI * uri = (const wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call constructor - wxURI* returns = new wxURI(*uri); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxURI); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURI); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURI_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURI_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_constructor1[1] = {{ wxLua_wxURI_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURI_constructor1 }}; -// wxURI(const wxString& uri); -static int LUACALL wxLua_wxURI_constructor1(lua_State *L) -{ - // const wxString uri - const wxString uri = wxlua_getwxStringtype(L, 1); - // call constructor - wxURI* returns = new wxURI(uri); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxURI); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURI); - - return 1; -} - -static int LUACALL wxLua_wxURI_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_constructor[1] = {{ wxLua_wxURI_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxURI(); -static int LUACALL wxLua_wxURI_constructor(lua_State *L) -{ - // call constructor - wxURI* returns = new wxURI(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxURI); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURI); - - return 1; -} - - - - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_Create_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxURI_Create1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURI_Create1 }, -#endif // (!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -#if (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxURI_Create, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURI_Create }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -}; -static int s_wxluafunc_wxLua_wxURI_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxURI_Create_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS)) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURI_constructor_overload[] = -{ - { wxLua_wxURI_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURI_constructor2 }, - { wxLua_wxURI_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURI_constructor1 }, - { wxLua_wxURI_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxURI_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxURI_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -void wxLua_wxURI_delete_function(void** p) -{ - wxURI* o = (wxURI*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxURI_methods[] = { - { "BuildURI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_BuildURI, 1, NULL }, - { "BuildUnescapedURI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_BuildUnescapedURI, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS)) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_Create_overload, s_wxluafunc_wxLua_wxURI_Create_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxCHECK_VERSION(2,9,2)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS)) - - { "GetFragment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetFragment, 1, NULL }, - { "GetHostType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetHostType, 1, NULL }, - { "GetPassword", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetPassword, 1, NULL }, - { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetPath, 1, NULL }, - { "GetPort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetPort, 1, NULL }, - { "GetQuery", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetQuery, 1, NULL }, - { "GetScheme", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetScheme, 1, NULL }, - { "GetServer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetServer, 1, NULL }, - { "GetUser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetUser, 1, NULL }, - { "GetUserInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_GetUserInfo, 1, NULL }, - { "HasFragment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasFragment, 1, NULL }, - { "HasPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasPath, 1, NULL }, - { "HasPort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasPort, 1, NULL }, - { "HasQuery", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasQuery, 1, NULL }, - { "HasScheme", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasScheme, 1, NULL }, - { "HasServer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasServer, 1, NULL }, - { "HasUserInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_HasUserInfo, 1, NULL }, - { "IsReference", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_IsReference, 1, NULL }, - { "Resolve", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_Resolve, 1, NULL }, - { "Unescape", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxURI_Unescape, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxURI_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURI_op_set, 1, NULL }, - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { "wxURI", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxURI_constructor_overload, s_wxluafunc_wxLua_wxURI_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - - { 0, 0, 0, 0 }, -}; - -int wxURI_methodCount = sizeof(wxURI_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) -// --------------------------------------------------------------------------- -// Bind class wxURL -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxURL' -int wxluatype_wxURL = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_GetError[] = { &wxluatype_wxURL, NULL }; -static int LUACALL wxLua_wxURL_GetError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_GetError[1] = {{ wxLua_wxURL_GetError, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURL_GetError }}; -// wxURLError GetError() const; -static int LUACALL wxLua_wxURL_GetError(lua_State *L) -{ - // get this - wxURL * self = (wxURL *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURL); - // call GetError - wxURLError returns = (self->GetError()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_GetInputStream[] = { &wxluatype_wxURL, NULL }; -static int LUACALL wxLua_wxURL_GetInputStream(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_GetInputStream[1] = {{ wxLua_wxURL_GetInputStream, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURL_GetInputStream }}; -// wxInputStream *GetInputStream(); -static int LUACALL wxLua_wxURL_GetInputStream(lua_State *L) -{ - // get this - wxURL * self = (wxURL *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURL); - // call GetInputStream - wxInputStream* returns = (wxInputStream*)self->GetInputStream(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxInputStream); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_GetProtocol[] = { &wxluatype_wxURL, NULL }; -static int LUACALL wxLua_wxURL_GetProtocol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_GetProtocol[1] = {{ wxLua_wxURL_GetProtocol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURL_GetProtocol }}; -// wxProtocol& GetProtocol(); -static int LUACALL wxLua_wxURL_GetProtocol(lua_State *L) -{ - // get this - wxURL * self = (wxURL *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURL); - // call GetProtocol - wxProtocol* returns = (wxProtocol*)&self->GetProtocol(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxProtocol); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_GetURL[] = { &wxluatype_wxURL, NULL }; -static int LUACALL wxLua_wxURL_GetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_GetURL[1] = {{ wxLua_wxURL_GetURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxURL_GetURL }}; -// wxString GetURL() const; -static int LUACALL wxLua_wxURL_GetURL(lua_State *L) -{ - // get this - wxURL * self = (wxURL *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURL); - // call GetURL - wxString returns = (self->GetURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) && (wxUSE_URL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_SetDefaultProxy[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURL_SetDefaultProxy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_SetDefaultProxy[1] = {{ wxLua_wxURL_SetDefaultProxy, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxURL_SetDefaultProxy }}; -// static void SetDefaultProxy(const wxString& url_proxy); -static int LUACALL wxLua_wxURL_SetDefaultProxy(lua_State *L) -{ - // const wxString url_proxy - const wxString url_proxy = wxlua_getwxStringtype(L, 1); - // call SetDefaultProxy - wxURL::SetDefaultProxy(url_proxy); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_SetProxy[] = { &wxluatype_wxURL, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURL_SetProxy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_SetProxy[1] = {{ wxLua_wxURL_SetProxy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxURL_SetProxy }}; -// void SetProxy(const wxString& url_proxy); -static int LUACALL wxLua_wxURL_SetProxy(lua_State *L) -{ - // const wxString url_proxy - const wxString url_proxy = wxlua_getwxStringtype(L, 2); - // get this - wxURL * self = (wxURL *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURL); - // call SetProxy - self->SetProxy(url_proxy); - - return 0; -} - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) && (wxUSE_URL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_delete[] = { &wxluatype_wxURL, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxURL_delete }}; - - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_constructor1[] = { &wxluatype_wxURI, NULL }; -static int LUACALL wxLua_wxURL_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_constructor1[1] = {{ wxLua_wxURL_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURL_constructor1 }}; -// wxURL(const wxURI& url); -static int LUACALL wxLua_wxURL_constructor1(lua_State *L) -{ - // const wxURI url - const wxURI * url = (const wxURI *)wxluaT_getuserdatatype(L, 1, wxluatype_wxURI); - // call constructor - wxURL* returns = new wxURL(*url); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxURL); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURL); - - return 1; -} - -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxURL_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxURL_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_constructor[1] = {{ wxLua_wxURL_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURL_constructor }}; -// wxURL(const wxString& sUrl); -static int LUACALL wxLua_wxURL_constructor(lua_State *L) -{ - // const wxString sUrl - const wxString sUrl = wxlua_getwxStringtype(L, 1); - // call constructor - wxURL* returns = new wxURL(sUrl); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxURL); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxURL); - - return 1; -} - - - - -#if (((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxURL_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxURL_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURL_constructor1 }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS) - { wxLua_wxURL_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxURL_constructor }, -}; -static int s_wxluafunc_wxLua_wxURL_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxURL_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) - -void wxLua_wxURL_delete_function(void** p) -{ - wxURL* o = (wxURL*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxURL_methods[] = { - { "GetError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURL_GetError, 1, NULL }, - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxUSE_STREAMS) - { "GetInputStream", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURL_GetInputStream, 1, NULL }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) - { "GetProtocol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURL_GetProtocol, 1, NULL }, -#endif // ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL)) && ((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) - - { "GetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURL_GetURL, 1, NULL }, - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) && (wxUSE_URL) - { "SetDefaultProxy", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxURL_SetDefaultProxy, 1, NULL }, - { "SetProxy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxURL_SetProxy, 1, NULL }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) && (wxUSE_URL) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxURL_delete, 1, NULL }, - -#if (((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) - { "wxURL", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxURL_constructor_overload, s_wxluafunc_wxLua_wxURL_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) && (wxLUA_USE_wxSocket && wxUSE_SOCKETS))||((wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL)) - - { 0, 0, 0, 0 }, -}; - -int wxURL_methodCount = sizeof(wxURL_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxnet_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxnet() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxnet(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - { "wxEVT_SOCKET", WXLUA_GET_wxEventType_ptr(wxEVT_SOCKET), &wxluatype_wxSocketEvent }, -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxnet() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxnet(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - { "wxPROTO_ABRT", wxPROTO_ABRT }, - { "wxPROTO_CONNERR", wxPROTO_CONNERR }, - { "wxPROTO_INVVAL", wxPROTO_INVVAL }, - { "wxPROTO_NETERR", wxPROTO_NETERR }, - { "wxPROTO_NOERR", wxPROTO_NOERR }, - { "wxPROTO_NOFILE", wxPROTO_NOFILE }, - { "wxPROTO_NOHNDLR", wxPROTO_NOHNDLR }, - { "wxPROTO_PROTERR", wxPROTO_PROTERR }, - { "wxPROTO_RCNCT", wxPROTO_RCNCT }, - { "wxPROTO_STREAMING", wxPROTO_STREAMING }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - { "wxSOCKET_BASE", wxSOCKET_BASE }, - { "wxSOCKET_BLOCK", wxSOCKET_BLOCK }, - { "wxSOCKET_CLIENT", wxSOCKET_CLIENT }, - { "wxSOCKET_CONNECTION", wxSOCKET_CONNECTION }, - { "wxSOCKET_CONNECTION_FLAG", wxSOCKET_CONNECTION_FLAG }, - { "wxSOCKET_DATAGRAM", wxSOCKET_DATAGRAM }, - { "wxSOCKET_INPUT", wxSOCKET_INPUT }, - { "wxSOCKET_INPUT_FLAG", wxSOCKET_INPUT_FLAG }, - { "wxSOCKET_INVADDR", wxSOCKET_INVADDR }, - { "wxSOCKET_INVOP", wxSOCKET_INVOP }, - { "wxSOCKET_INVPORT", wxSOCKET_INVPORT }, - { "wxSOCKET_INVSOCK", wxSOCKET_INVSOCK }, - { "wxSOCKET_IOERR", wxSOCKET_IOERR }, - { "wxSOCKET_LOST", wxSOCKET_LOST }, - { "wxSOCKET_LOST_FLAG", wxSOCKET_LOST_FLAG }, - { "wxSOCKET_MEMERR", wxSOCKET_MEMERR }, - { "wxSOCKET_NOERROR", wxSOCKET_NOERROR }, - { "wxSOCKET_NOHOST", wxSOCKET_NOHOST }, - { "wxSOCKET_NONE", wxSOCKET_NONE }, - { "wxSOCKET_NOWAIT", wxSOCKET_NOWAIT }, - { "wxSOCKET_OUTPUT", wxSOCKET_OUTPUT }, - { "wxSOCKET_OUTPUT_FLAG", wxSOCKET_OUTPUT_FLAG }, - { "wxSOCKET_REUSEADDR", wxSOCKET_REUSEADDR }, - { "wxSOCKET_SERVER", wxSOCKET_SERVER }, - { "wxSOCKET_TIMEDOUT", wxSOCKET_TIMEDOUT }, - { "wxSOCKET_UNINIT", wxSOCKET_UNINIT }, - { "wxSOCKET_WAITALL", wxSOCKET_WAITALL }, - { "wxSOCKET_WOULDBLOCK", wxSOCKET_WOULDBLOCK }, - { "wxURI_FRAGMENT", wxURI_FRAGMENT }, - { "wxURI_IPV4ADDRESS", wxURI_IPV4ADDRESS }, - { "wxURI_IPV6ADDRESS", wxURI_IPV6ADDRESS }, - { "wxURI_IPVFUTURE", wxURI_IPVFUTURE }, - { "wxURI_PATH", wxURI_PATH }, - { "wxURI_PORT", wxURI_PORT }, - { "wxURI_QUERY", wxURI_QUERY }, - { "wxURI_REGNAME", wxURI_REGNAME }, - { "wxURI_SCHEME", wxURI_SCHEME }, - { "wxURI_SERVER", wxURI_SERVER }, - { "wxURI_STRICT", wxURI_STRICT }, - { "wxURI_USERINFO", wxURI_USERINFO }, -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - { "wxURL_CONNERR", wxURL_CONNERR }, - { "wxURL_NOERR", wxURL_NOERR }, - { "wxURL_NOHOST", wxURL_NOHOST }, - { "wxURL_NOPATH", wxURL_NOPATH }, - { "wxURL_NOPROTO", wxURL_NOPROTO }, - { "wxURL_PROTOERR", wxURL_PROTOERR }, - { "wxURL_SNTXERR", wxURL_SNTXERR }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxnet() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxnet(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxnet() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxnet(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxnet() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxnet() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxnet(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxnet() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxFTP = "wxFTP"; -static const char* wxluaclassname_wxHTTP = "wxHTTP"; -static const char* wxluaclassname_wxIPV4address = "wxIPV4address"; -static const char* wxluaclassname_wxIPaddress = "wxIPaddress"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxProtocol = "wxProtocol"; -static const char* wxluaclassname_wxSockAddress = "wxSockAddress"; -static const char* wxluaclassname_wxSocketBase = "wxSocketBase"; -static const char* wxluaclassname_wxSocketClient = "wxSocketClient"; -static const char* wxluaclassname_wxSocketEvent = "wxSocketEvent"; -static const char* wxluaclassname_wxSocketServer = "wxSocketServer"; -static const char* wxluaclassname_wxURI = "wxURI"; -static const char* wxluaclassname_wxURL = "wxURL"; - -static const char* wxluabaseclassnames_wxFTP[] = { wxluaclassname_wxProtocol, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFTP[] = { NULL }; -static const char* wxluabaseclassnames_wxHTTP[] = { wxluaclassname_wxProtocol, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxHTTP[] = { NULL }; -static const char* wxluabaseclassnames_wxIPV4address[] = { wxluaclassname_wxIPaddress, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIPV4address[] = { NULL }; -static const char* wxluabaseclassnames_wxIPaddress[] = { wxluaclassname_wxSockAddress, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIPaddress[] = { NULL }; -static const char* wxluabaseclassnames_wxProtocol[] = { wxluaclassname_wxSocketClient, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxProtocol[] = { NULL }; -static const char* wxluabaseclassnames_wxSockAddress[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSockAddress[] = { NULL }; -static const char* wxluabaseclassnames_wxSocketBase[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSocketBase[] = { NULL }; -static const char* wxluabaseclassnames_wxSocketClient[] = { wxluaclassname_wxSocketBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSocketClient[] = { NULL }; -static const char* wxluabaseclassnames_wxSocketEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSocketEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxSocketServer[] = { wxluaclassname_wxSocketBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSocketServer[] = { NULL }; -static const char* wxluabaseclassnames_wxURI[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxURI[] = { NULL }; -static const char* wxluabaseclassnames_wxURL[] = { wxluaclassname_wxURI, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxURL[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - extern wxLuaBindMethod wxProtocol_methods[]; - extern int wxProtocol_methodCount; - extern void wxLua_wxProtocol_delete_function(void** p); -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - extern wxLuaBindMethod wxFTP_methods[]; - extern int wxFTP_methodCount; - extern wxLuaBindNumber wxFTP_enums[]; - extern int wxFTP_enumCount; - extern void wxLua_wxFTP_delete_function(void** p); -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - extern wxLuaBindMethod wxHTTP_methods[]; - extern int wxHTTP_methodCount; - extern void wxLua_wxHTTP_delete_function(void** p); -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - extern wxLuaBindMethod wxURL_methods[]; - extern int wxURL_methodCount; - extern void wxLua_wxURL_delete_function(void** p); -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - extern wxLuaBindMethod wxIPV4address_methods[]; - extern int wxIPV4address_methodCount; - extern void wxLua_wxIPV4address_delete_function(void** p); - extern wxLuaBindMethod wxIPaddress_methods[]; - extern int wxIPaddress_methodCount; - extern void wxLua_wxIPaddress_delete_function(void** p); - extern wxLuaBindMethod wxSockAddress_methods[]; - extern int wxSockAddress_methodCount; - extern void wxLua_wxSockAddress_delete_function(void** p); - extern wxLuaBindMethod wxSocketBase_methods[]; - extern int wxSocketBase_methodCount; - extern void wxLua_wxSocketBase_delete_function(void** p); - extern wxLuaBindMethod wxSocketClient_methods[]; - extern int wxSocketClient_methodCount; - extern void wxLua_wxSocketClient_delete_function(void** p); - extern wxLuaBindMethod wxSocketEvent_methods[]; - extern int wxSocketEvent_methodCount; - extern void wxLua_wxSocketEvent_delete_function(void** p); - extern wxLuaBindMethod wxSocketServer_methods[]; - extern int wxSocketServer_methodCount; - extern void wxLua_wxSocketServer_delete_function(void** p); - extern wxLuaBindMethod wxURI_methods[]; - extern int wxURI_methodCount; - extern void wxLua_wxURI_delete_function(void** p); -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - - - - -wxLuaBindClass* wxLuaGetClassList_wxnet(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - { wxluaclassname_wxFTP, wxFTP_methods, wxFTP_methodCount, CLASSINFO(wxFTP), &wxluatype_wxFTP, wxluabaseclassnames_wxFTP, wxluabaseclassbinds_wxFTP, NULL, NULL, wxFTP_enums, wxFTP_enumCount, &wxLua_wxFTP_delete_function, }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_FTP) - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - { wxluaclassname_wxHTTP, wxHTTP_methods, wxHTTP_methodCount, CLASSINFO(wxHTTP), &wxluatype_wxHTTP, wxluabaseclassnames_wxHTTP, wxluabaseclassbinds_wxHTTP, NULL, NULL, NULL, 0, &wxLua_wxHTTP_delete_function, }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL_HTTP) - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - { wxluaclassname_wxIPV4address, wxIPV4address_methods, wxIPV4address_methodCount, CLASSINFO(wxIPV4address), &wxluatype_wxIPV4address, wxluabaseclassnames_wxIPV4address, wxluabaseclassbinds_wxIPV4address, NULL, NULL, NULL, 0, &wxLua_wxIPV4address_delete_function, }, - { wxluaclassname_wxIPaddress, wxIPaddress_methods, wxIPaddress_methodCount, CLASSINFO(wxIPaddress), &wxluatype_wxIPaddress, wxluabaseclassnames_wxIPaddress, wxluabaseclassbinds_wxIPaddress, NULL, NULL, NULL, 0, &wxLua_wxIPaddress_delete_function, }, -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - { wxluaclassname_wxProtocol, wxProtocol_methods, wxProtocol_methodCount, CLASSINFO(wxProtocol), &wxluatype_wxProtocol, wxluabaseclassnames_wxProtocol, wxluabaseclassbinds_wxProtocol, NULL, NULL, NULL, 0, &wxLua_wxProtocol_delete_function, }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_PROTOCOL) - -#if wxLUA_USE_wxSocket && wxUSE_SOCKETS - { wxluaclassname_wxSockAddress, wxSockAddress_methods, wxSockAddress_methodCount, CLASSINFO(wxSockAddress), &wxluatype_wxSockAddress, wxluabaseclassnames_wxSockAddress, wxluabaseclassbinds_wxSockAddress, NULL, NULL, NULL, 0, &wxLua_wxSockAddress_delete_function, }, - { wxluaclassname_wxSocketBase, wxSocketBase_methods, wxSocketBase_methodCount, CLASSINFO(wxSocketBase), &wxluatype_wxSocketBase, wxluabaseclassnames_wxSocketBase, wxluabaseclassbinds_wxSocketBase, NULL, NULL, NULL, 0, &wxLua_wxSocketBase_delete_function, }, - { wxluaclassname_wxSocketClient, wxSocketClient_methods, wxSocketClient_methodCount, CLASSINFO(wxSocketClient), &wxluatype_wxSocketClient, wxluabaseclassnames_wxSocketClient, wxluabaseclassbinds_wxSocketClient, NULL, NULL, NULL, 0, &wxLua_wxSocketClient_delete_function, }, - { wxluaclassname_wxSocketEvent, wxSocketEvent_methods, wxSocketEvent_methodCount, CLASSINFO(wxSocketEvent), &wxluatype_wxSocketEvent, wxluabaseclassnames_wxSocketEvent, wxluabaseclassbinds_wxSocketEvent, NULL, NULL, NULL, 0, &wxLua_wxSocketEvent_delete_function, }, - { wxluaclassname_wxSocketServer, wxSocketServer_methods, wxSocketServer_methodCount, CLASSINFO(wxSocketServer), &wxluatype_wxSocketServer, wxluabaseclassnames_wxSocketServer, wxluabaseclassbinds_wxSocketServer, NULL, NULL, NULL, 0, &wxLua_wxSocketServer_delete_function, }, - { wxluaclassname_wxURI, wxURI_methods, wxURI_methodCount, CLASSINFO(wxURI), &wxluatype_wxURI, wxluabaseclassnames_wxURI, wxluabaseclassbinds_wxURI, NULL, NULL, NULL, 0, &wxLua_wxURI_delete_function, }, -#endif // wxLUA_USE_wxSocket && wxUSE_SOCKETS - -#if (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - { wxluaclassname_wxURL, wxURL_methods, wxURL_methodCount, CLASSINFO(wxURL), &wxluatype_wxURL, wxluabaseclassnames_wxURL, wxluabaseclassbinds_wxURL, NULL, NULL, NULL, 0, &wxLua_wxURL_delete_function, }, -#endif // (wxLUA_USE_wxSocket && wxUSE_SOCKETS) && (wxUSE_URL) - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxnet() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxnet, wxLuaBinding) - -wxLuaBinding_wxnet::wxLuaBinding_wxnet() : wxLuaBinding() -{ - m_bindingName = wxT("wxnet"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxnet(m_classCount); - m_numberArray = wxLuaGetDefineList_wxnet(m_numberCount); - m_stringArray = wxLuaGetStringList_wxnet(m_stringCount); - m_eventArray = wxLuaGetEventList_wxnet(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxnet(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxnet(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxnet_init() -{ - static wxLuaBinding_wxnet m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxpropgrid_bind.cpp b/wxLua/modules/wxbind/src/wxpropgrid_bind.cpp deleted file mode 100644 index a2858c70..00000000 --- a/wxLua/modules/wxbind/src/wxpropgrid_bind.cpp +++ /dev/null @@ -1,23928 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxpropgrid_propgrid.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxpropgrid_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGValidationInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGValidationInfo' -int wxluatype_wxPGValidationInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGValidationInfo_GetFailureBehavior[] = { &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxPGValidationInfo_GetFailureBehavior(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGValidationInfo_GetFailureBehavior[1] = {{ wxLua_wxPGValidationInfo_GetFailureBehavior, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGValidationInfo_GetFailureBehavior }}; -// unsigned char GetFailureBehavior(); -static int LUACALL wxLua_wxPGValidationInfo_GetFailureBehavior(lua_State *L) -{ - // get this - wxPGValidationInfo * self = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGValidationInfo); - // call GetFailureBehavior - unsigned char returns = (self->GetFailureBehavior()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGValidationInfo_GetFailureMessage[] = { &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxPGValidationInfo_GetFailureMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGValidationInfo_GetFailureMessage[1] = {{ wxLua_wxPGValidationInfo_GetFailureMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGValidationInfo_GetFailureMessage }}; -// const wxString& GetFailureMessage() const; -static int LUACALL wxLua_wxPGValidationInfo_GetFailureMessage(lua_State *L) -{ - // get this - wxPGValidationInfo * self = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGValidationInfo); - // call GetFailureMessage - wxString returns = (self->GetFailureMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGValidationInfo_GetValue[] = { &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxPGValidationInfo_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGValidationInfo_GetValue[1] = {{ wxLua_wxPGValidationInfo_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGValidationInfo_GetValue }}; -// wxVariant& GetValue(); -static int LUACALL wxLua_wxPGValidationInfo_GetValue(lua_State *L) -{ - // get this - wxPGValidationInfo * self = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGValidationInfo); - // call GetValue - wxVariant* returns = (wxVariant*)&self->GetValue(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGValidationInfo_SetFailureBehavior[] = { &wxluatype_wxPGValidationInfo, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGValidationInfo_SetFailureBehavior(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGValidationInfo_SetFailureBehavior[1] = {{ wxLua_wxPGValidationInfo_SetFailureBehavior, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGValidationInfo_SetFailureBehavior }}; -// void SetFailureBehavior(unsigned char failureBehavior); -static int LUACALL wxLua_wxPGValidationInfo_SetFailureBehavior(lua_State *L) -{ - // unsigned char failureBehavior - unsigned char failureBehavior = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxPGValidationInfo * self = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGValidationInfo); - // call SetFailureBehavior - self->SetFailureBehavior(failureBehavior); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGValidationInfo_SetFailureMessage[] = { &wxluatype_wxPGValidationInfo, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGValidationInfo_SetFailureMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGValidationInfo_SetFailureMessage[1] = {{ wxLua_wxPGValidationInfo_SetFailureMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGValidationInfo_SetFailureMessage }}; -// void SetFailureMessage(const wxString& message); -static int LUACALL wxLua_wxPGValidationInfo_SetFailureMessage(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxPGValidationInfo * self = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGValidationInfo); - // call SetFailureMessage - self->SetFailureMessage(message); - - return 0; -} - - - - -void wxLua_wxPGValidationInfo_delete_function(void** p) -{ - wxPGValidationInfo* o = (wxPGValidationInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGValidationInfo_methods[] = { - { "GetFailureBehavior", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGValidationInfo_GetFailureBehavior, 1, NULL }, - { "GetFailureMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGValidationInfo_GetFailureMessage, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGValidationInfo_GetValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "SetFailureBehavior", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGValidationInfo_SetFailureBehavior, 1, NULL }, - { "SetFailureMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGValidationInfo_SetFailureMessage, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGValidationInfo_methodCount = sizeof(wxPGValidationInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGrid -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGrid' -int wxluatype_wxPropertyGrid = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_AddActionTrigger[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_AddActionTrigger(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_AddActionTrigger[1] = {{ wxLua_wxPropertyGrid_AddActionTrigger, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGrid_AddActionTrigger }}; -// void AddActionTrigger( int action, int keycode, int modifiers = 0 ); -static int LUACALL wxLua_wxPropertyGrid_AddActionTrigger(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int modifiers = 0 - int modifiers = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int keycode - int keycode = (int)wxlua_getnumbertype(L, 3); - // int action - int action = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call AddActionTrigger - self->AddActionTrigger(action, keycode, modifiers); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_AddToSelection1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_AddToSelection1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection1[1] = {{ wxLua_wxPropertyGrid_AddToSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_AddToSelection1 }}; -// bool AddToSelection( const wxString& id ); -static int LUACALL wxLua_wxPropertyGrid_AddToSelection1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call AddToSelection - bool returns = (self->AddToSelection(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_AddToSelection[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_AddToSelection(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection[1] = {{ wxLua_wxPropertyGrid_AddToSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_AddToSelection }}; -// bool AddToSelection( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGrid_AddToSelection(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call AddToSelection - bool returns = (self->AddToSelection(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_AutoGetTranslation[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_AutoGetTranslation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_AutoGetTranslation[1] = {{ wxLua_wxPropertyGrid_AutoGetTranslation, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_AutoGetTranslation }}; -// static void AutoGetTranslation( bool enable ); -static int LUACALL wxLua_wxPropertyGrid_AutoGetTranslation(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 1); - // call AutoGetTranslation - wxPropertyGrid::AutoGetTranslation(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_BeginLabelEdit[] = { &wxluatype_wxPropertyGrid, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_BeginLabelEdit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_BeginLabelEdit[1] = {{ wxLua_wxPropertyGrid_BeginLabelEdit, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_BeginLabelEdit }}; -// void BeginLabelEdit( unsigned int colIndex = 0 ); -static int LUACALL wxLua_wxPropertyGrid_BeginLabelEdit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int colIndex = 0 - unsigned int colIndex = (argCount >= 2 ? (unsigned int)wxlua_getuintegertype(L, 2) : 0); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call BeginLabelEdit - self->BeginLabelEdit(colIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_CenterSplitter[] = { &wxluatype_wxPropertyGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_CenterSplitter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_CenterSplitter[1] = {{ wxLua_wxPropertyGrid_CenterSplitter, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_CenterSplitter }}; -// void CenterSplitter( bool enableAutoResizing = false ); -static int LUACALL wxLua_wxPropertyGrid_CenterSplitter(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enableAutoResizing = false - bool enableAutoResizing = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call CenterSplitter - self->CenterSplitter(enableAutoResizing); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ChangePropertyValue1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ChangePropertyValue1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue1[1] = {{ wxLua_wxPropertyGrid_ChangePropertyValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ChangePropertyValue1 }}; -// bool ChangePropertyValue( const wxString& id, wxVariant newValue ); -static int LUACALL wxLua_wxPropertyGrid_ChangePropertyValue1(lua_State *L) -{ - // wxVariant newValue - wxVariant newValue = wxlua_getwxVarianttype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ChangePropertyValue - bool returns = (self->ChangePropertyValue(id, newValue)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ChangePropertyValue[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ChangePropertyValue(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue[1] = {{ wxLua_wxPropertyGrid_ChangePropertyValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ChangePropertyValue }}; -// bool ChangePropertyValue( const wxPGProperty*& id, wxVariant newValue ); -static int LUACALL wxLua_wxPropertyGrid_ChangePropertyValue(lua_State *L) -{ - // wxVariant newValue - wxVariant newValue = wxlua_getwxVarianttype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ChangePropertyValue - bool returns = (self->ChangePropertyValue(id, newValue)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_Clear[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_Clear[1] = {{ wxLua_wxPropertyGrid_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxPropertyGrid_Clear(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ClearActionTriggers[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ClearActionTriggers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ClearActionTriggers[1] = {{ wxLua_wxPropertyGrid_ClearActionTriggers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_ClearActionTriggers }}; -// void ClearActionTriggers( int action ); -static int LUACALL wxLua_wxPropertyGrid_ClearActionTriggers(lua_State *L) -{ - // int action - int action = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ClearActionTriggers - self->ClearActionTriggers(action); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_CommitChangesFromEditor[] = { &wxluatype_wxPropertyGrid, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_CommitChangesFromEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_CommitChangesFromEditor[1] = {{ wxLua_wxPropertyGrid_CommitChangesFromEditor, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_CommitChangesFromEditor }}; -// virtual bool CommitChangesFromEditor( wxUint32 flags = 0 ); -static int LUACALL wxLua_wxPropertyGrid_CommitChangesFromEditor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxUint32 flags = 0 - wxUint32 flags = (argCount >= 2 ? (wxUint32)wxlua_getuintegertype(L, 2) : 0); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call CommitChangesFromEditor - bool returns = (self->CommitChangesFromEditor(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_Create[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_Create[1] = {{ wxLua_wxPropertyGrid_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxPropertyGrid_Create }}; -// const wxString& name = wxPropertyGridNameStr ); -static int LUACALL wxLua_wxPropertyGrid_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPropertyGridNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxPropertyGridNameStr)); - // long style = wxPG_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxPG_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DedicateKey[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DedicateKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DedicateKey[1] = {{ wxLua_wxPropertyGrid_DedicateKey, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_DedicateKey }}; -// void DedicateKey( int keycode ); -static int LUACALL wxLua_wxPropertyGrid_DedicateKey(lua_State *L) -{ - // int keycode - int keycode = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call DedicateKey - self->DedicateKey(keycode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DoHidePropertyError[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DoHidePropertyError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DoHidePropertyError[1] = {{ wxLua_wxPropertyGrid_DoHidePropertyError, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_DoHidePropertyError }}; -// virtual void DoHidePropertyError( wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGrid_DoHidePropertyError(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call DoHidePropertyError - self->DoHidePropertyError(property); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DoOnValidationFailure[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DoOnValidationFailure(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DoOnValidationFailure[1] = {{ wxLua_wxPropertyGrid_DoOnValidationFailure, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_DoOnValidationFailure }}; -// virtual bool DoOnValidationFailure( wxPGProperty* property, wxVariant& invalidValue ); -static int LUACALL wxLua_wxPropertyGrid_DoOnValidationFailure(lua_State *L) -{ - // wxVariant invalidValue - wxVariant * invalidValue = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call DoOnValidationFailure - bool returns = (self->DoOnValidationFailure(property, *invalidValue)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DoOnValidationFailureReset[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DoOnValidationFailureReset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DoOnValidationFailureReset[1] = {{ wxLua_wxPropertyGrid_DoOnValidationFailureReset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_DoOnValidationFailureReset }}; -// virtual void DoOnValidationFailureReset( wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGrid_DoOnValidationFailureReset(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call DoOnValidationFailureReset - self->DoOnValidationFailureReset(property); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DoRegisterEditorClass[] = { &wxluatype_wxPGEditor, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DoRegisterEditorClass(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DoRegisterEditorClass[1] = {{ wxLua_wxPropertyGrid_DoRegisterEditorClass, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_DoRegisterEditorClass }}; -// static wxPGEditor* DoRegisterEditorClass( %ungc wxPGEditor* editor, const wxString& name, bool noDefCheck = false ); -static int LUACALL wxLua_wxPropertyGrid_DoRegisterEditorClass(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDefCheck = false - bool noDefCheck = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxPGEditor editor - wxPGEditor * editor = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - if (wxluaO_isgcobject(L, editor)) wxluaO_undeletegcobject(L, editor); - // call DoRegisterEditorClass - wxPGEditor* returns = (wxPGEditor*)wxPropertyGrid::DoRegisterEditorClass(editor, name, noDefCheck); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DoShowPropertyError[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DoShowPropertyError(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DoShowPropertyError[1] = {{ wxLua_wxPropertyGrid_DoShowPropertyError, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_DoShowPropertyError }}; -// virtual void DoShowPropertyError( wxPGProperty* property, const wxString& msg ); -static int LUACALL wxLua_wxPropertyGrid_DoShowPropertyError(lua_State *L) -{ - // const wxString msg - const wxString msg = wxlua_getwxStringtype(L, 3); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call DoShowPropertyError - self->DoShowPropertyError(property, msg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_DrawItemAndValueRelated[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_DrawItemAndValueRelated(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_DrawItemAndValueRelated[1] = {{ wxLua_wxPropertyGrid_DrawItemAndValueRelated, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_DrawItemAndValueRelated }}; -// void DrawItemAndValueRelated( wxPGProperty* p ); -static int LUACALL wxLua_wxPropertyGrid_DrawItemAndValueRelated(lua_State *L) -{ - // wxPGProperty p - wxPGProperty * p = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call DrawItemAndValueRelated - self->DrawItemAndValueRelated(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_EditorsValueWasModified[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_EditorsValueWasModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EditorsValueWasModified[1] = {{ wxLua_wxPropertyGrid_EditorsValueWasModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_EditorsValueWasModified }}; -// void EditorsValueWasModified(); -static int LUACALL wxLua_wxPropertyGrid_EditorsValueWasModified(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call EditorsValueWasModified - self->EditorsValueWasModified(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_EditorsValueWasNotModified[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_EditorsValueWasNotModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EditorsValueWasNotModified[1] = {{ wxLua_wxPropertyGrid_EditorsValueWasNotModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_EditorsValueWasNotModified }}; -// void EditorsValueWasNotModified(); -static int LUACALL wxLua_wxPropertyGrid_EditorsValueWasNotModified(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call EditorsValueWasNotModified - self->EditorsValueWasNotModified(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_EnableCategories[] = { &wxluatype_wxPropertyGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_EnableCategories(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EnableCategories[1] = {{ wxLua_wxPropertyGrid_EnableCategories, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_EnableCategories }}; -// bool EnableCategories( bool enable ); -static int LUACALL wxLua_wxPropertyGrid_EnableCategories(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call EnableCategories - bool returns = (self->EnableCategories(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_EndLabelEdit[] = { &wxluatype_wxPropertyGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_EndLabelEdit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EndLabelEdit[1] = {{ wxLua_wxPropertyGrid_EndLabelEdit, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_EndLabelEdit }}; -// void EndLabelEdit( bool commit = true ); -static int LUACALL wxLua_wxPropertyGrid_EndLabelEdit(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool commit = true - bool commit = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call EndLabelEdit - self->EndLabelEdit(commit); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_EnsureVisible1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_EnsureVisible1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible1[1] = {{ wxLua_wxPropertyGrid_EnsureVisible1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_EnsureVisible1 }}; -// bool EnsureVisible( const wxString& id ); -static int LUACALL wxLua_wxPropertyGrid_EnsureVisible1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call EnsureVisible - bool returns = (self->EnsureVisible(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_EnsureVisible[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_EnsureVisible(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible[1] = {{ wxLua_wxPropertyGrid_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_EnsureVisible }}; -// bool EnsureVisible( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGrid_EnsureVisible(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call EnsureVisible - bool returns = (self->EnsureVisible(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_FitColumns[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_FitColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_FitColumns[1] = {{ wxLua_wxPropertyGrid_FitColumns, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_FitColumns }}; -// wxSize FitColumns(); -static int LUACALL wxLua_wxPropertyGrid_FitColumns(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call FitColumns - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->FitColumns()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetCaptionBackgroundColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetCaptionBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetCaptionBackgroundColour[1] = {{ wxLua_wxPropertyGrid_GetCaptionBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetCaptionBackgroundColour }}; -// wxColour GetCaptionBackgroundColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetCaptionBackgroundColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetCaptionBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCaptionBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetCaptionFont[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetCaptionFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetCaptionFont[1] = {{ wxLua_wxPropertyGrid_GetCaptionFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetCaptionFont }}; -// wxFont& GetCaptionFont(); -static int LUACALL wxLua_wxPropertyGrid_GetCaptionFont(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetCaptionFont - wxFont* returns = (wxFont*)&self->GetCaptionFont(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetCaptionForegroundColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetCaptionForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetCaptionForegroundColour[1] = {{ wxLua_wxPropertyGrid_GetCaptionForegroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetCaptionForegroundColour }}; -// wxColour GetCaptionForegroundColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetCaptionForegroundColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetCaptionForegroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCaptionForegroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetCellBackgroundColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetCellBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetCellBackgroundColour[1] = {{ wxLua_wxPropertyGrid_GetCellBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetCellBackgroundColour }}; -// wxColour GetCellBackgroundColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetCellBackgroundColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetCellBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCellBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetCellDisabledTextColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetCellDisabledTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetCellDisabledTextColour[1] = {{ wxLua_wxPropertyGrid_GetCellDisabledTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetCellDisabledTextColour }}; -// wxColour GetCellDisabledTextColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetCellDisabledTextColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetCellDisabledTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCellDisabledTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetCellTextColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetCellTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetCellTextColour[1] = {{ wxLua_wxPropertyGrid_GetCellTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetCellTextColour }}; -// wxColour GetCellTextColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetCellTextColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetCellTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCellTextColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetColumnCount[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetColumnCount[1] = {{ wxLua_wxPropertyGrid_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetColumnCount }}; -// unsigned int GetColumnCount() const; -static int LUACALL wxLua_wxPropertyGrid_GetColumnCount(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetEditorTextCtrl[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetEditorTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetEditorTextCtrl[1] = {{ wxLua_wxPropertyGrid_GetEditorTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetEditorTextCtrl }}; -// wxTextCtrl* GetEditorTextCtrl() const; -static int LUACALL wxLua_wxPropertyGrid_GetEditorTextCtrl(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetEditorTextCtrl - wxTextCtrl* returns = (wxTextCtrl*)self->GetEditorTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetEmptySpaceColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetEmptySpaceColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetEmptySpaceColour[1] = {{ wxLua_wxPropertyGrid_GetEmptySpaceColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetEmptySpaceColour }}; -// wxColour GetEmptySpaceColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetEmptySpaceColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetEmptySpaceColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetEmptySpaceColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetFontHeight[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetFontHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetFontHeight[1] = {{ wxLua_wxPropertyGrid_GetFontHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetFontHeight }}; -// int GetFontHeight() const; -static int LUACALL wxLua_wxPropertyGrid_GetFontHeight(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetFontHeight - int returns = (self->GetFontHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetGrid[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetGrid[1] = {{ wxLua_wxPropertyGrid_GetGrid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetGrid }}; -// wxPropertyGrid* GetGrid(); -static int LUACALL wxLua_wxPropertyGrid_GetGrid(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetGrid - wxPropertyGrid* returns = (wxPropertyGrid*)self->GetGrid(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetImageRect[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetImageRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetImageRect[1] = {{ wxLua_wxPropertyGrid_GetImageRect, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_GetImageRect }}; -// wxRect GetImageRect( wxPGProperty* property, int item ) const; -static int LUACALL wxLua_wxPropertyGrid_GetImageRect(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 3); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetImageRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetImageRect(property, item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetImageSize[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetImageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetImageSize[1] = {{ wxLua_wxPropertyGrid_GetImageSize, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_GetImageSize }}; -// wxSize GetImageSize( wxPGProperty* property = NULL, int item = -1 ) const; -static int LUACALL wxLua_wxPropertyGrid_GetImageSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int item = -1 - int item = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // wxPGProperty property = NULL - wxPGProperty * property = (argCount >= 2 ? (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty) : NULL); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetImageSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetImageSize(property, item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetLabelEditor[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetLabelEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetLabelEditor[1] = {{ wxLua_wxPropertyGrid_GetLabelEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetLabelEditor }}; -// wxTextCtrl* GetLabelEditor() const; -static int LUACALL wxLua_wxPropertyGrid_GetLabelEditor(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetLabelEditor - wxTextCtrl* returns = (wxTextCtrl*)self->GetLabelEditor(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetLastItem[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetLastItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetLastItem[1] = {{ wxLua_wxPropertyGrid_GetLastItem, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_GetLastItem }}; -// %ungc wxPGProperty* GetLastItem( int flags = wxPG_ITERATE_DEFAULT ); -static int LUACALL wxLua_wxPropertyGrid_GetLastItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_ITERATE_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_ITERATE_DEFAULT); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetLastItem - wxPGProperty* returns = (wxPGProperty*)self->GetLastItem(flags); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetLineColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetLineColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetLineColour[1] = {{ wxLua_wxPropertyGrid_GetLineColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetLineColour }}; -// wxColour GetLineColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetLineColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetLineColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetLineColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetMarginColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetMarginColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetMarginColour[1] = {{ wxLua_wxPropertyGrid_GetMarginColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetMarginColour }}; -// wxColour GetMarginColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetMarginColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetMarginColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetMarginColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetMarginWidth[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetMarginWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetMarginWidth[1] = {{ wxLua_wxPropertyGrid_GetMarginWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetMarginWidth }}; -// int GetMarginWidth() const; -static int LUACALL wxLua_wxPropertyGrid_GetMarginWidth(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetMarginWidth - int returns = (self->GetMarginWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetPanel[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetPanel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetPanel[1] = {{ wxLua_wxPropertyGrid_GetPanel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetPanel }}; -// wxWindow* GetPanel(); -static int LUACALL wxLua_wxPropertyGrid_GetPanel(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetPanel - wxWindow* returns = (wxWindow*)self->GetPanel(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetRoot[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetRoot[1] = {{ wxLua_wxPropertyGrid_GetRoot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetRoot }}; -// %ungc wxPGProperty* GetRoot() const; -static int LUACALL wxLua_wxPropertyGrid_GetRoot(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetRoot - wxPGProperty* returns = (wxPGProperty*)self->GetRoot(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetRowHeight[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetRowHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetRowHeight[1] = {{ wxLua_wxPropertyGrid_GetRowHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetRowHeight }}; -// int GetRowHeight() const; -static int LUACALL wxLua_wxPropertyGrid_GetRowHeight(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetRowHeight - int returns = (self->GetRowHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelectedProperty[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetSelectedProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetSelectedProperty[1] = {{ wxLua_wxPropertyGrid_GetSelectedProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelectedProperty }}; -// %ungc wxPGProperty* GetSelectedProperty() const; -static int LUACALL wxLua_wxPropertyGrid_GetSelectedProperty(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetSelectedProperty - wxPGProperty* returns = (wxPGProperty*)self->GetSelectedProperty(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelection[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetSelection[1] = {{ wxLua_wxPropertyGrid_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelection }}; -// %ungc wxPGProperty* GetSelection() const; -static int LUACALL wxLua_wxPropertyGrid_GetSelection(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetSelection - wxPGProperty* returns = (wxPGProperty*)self->GetSelection(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelectionBackgroundColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetSelectionBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetSelectionBackgroundColour[1] = {{ wxLua_wxPropertyGrid_GetSelectionBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelectionBackgroundColour }}; -// wxColour GetSelectionBackgroundColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetSelectionBackgroundColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetSelectionBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetSelectionBackgroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelectionForegroundColour[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetSelectionForegroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetSelectionForegroundColour[1] = {{ wxLua_wxPropertyGrid_GetSelectionForegroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetSelectionForegroundColour }}; -// wxColour GetSelectionForegroundColour() const; -static int LUACALL wxLua_wxPropertyGrid_GetSelectionForegroundColour(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetSelectionForegroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetSelectionForegroundColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetSplitterPosition[] = { &wxluatype_wxPropertyGrid, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetSplitterPosition[1] = {{ wxLua_wxPropertyGrid_GetSplitterPosition, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_GetSplitterPosition }}; -// int GetSplitterPosition( unsigned int splitterIndex = 0 ) const; -static int LUACALL wxLua_wxPropertyGrid_GetSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned int splitterIndex = 0 - unsigned int splitterIndex = (argCount >= 2 ? (unsigned int)wxlua_getuintegertype(L, 2) : 0); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetSplitterPosition - int returns = (self->GetSplitterPosition(splitterIndex)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetStatusBar[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetStatusBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetStatusBar[1] = {{ wxLua_wxPropertyGrid_GetStatusBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetStatusBar }}; -// virtual wxStatusBar* GetStatusBar(); -static int LUACALL wxLua_wxPropertyGrid_GetStatusBar(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetStatusBar - wxStatusBar* returns = (wxStatusBar*)self->GetStatusBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStatusBar); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetUncommittedPropertyValue[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetUncommittedPropertyValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetUncommittedPropertyValue[1] = {{ wxLua_wxPropertyGrid_GetUncommittedPropertyValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetUncommittedPropertyValue }}; -// wxVariant GetUncommittedPropertyValue(); -static int LUACALL wxLua_wxPropertyGrid_GetUncommittedPropertyValue(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetUncommittedPropertyValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetUncommittedPropertyValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance[1] = {{ wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance }}; -// const wxPGCell& GetUnspecifiedValueAppearance() const; -static int LUACALL wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetUnspecifiedValueAppearance - const wxPGCell* returns = (const wxPGCell*)&self->GetUnspecifiedValueAppearance(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetUnspecifiedValueText[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetUnspecifiedValueText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetUnspecifiedValueText[1] = {{ wxLua_wxPropertyGrid_GetUnspecifiedValueText, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_GetUnspecifiedValueText }}; -// wxString GetUnspecifiedValueText( int argFlags = 0 ) const; -static int LUACALL wxLua_wxPropertyGrid_GetUnspecifiedValueText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetUnspecifiedValueText - wxString returns = (self->GetUnspecifiedValueText(argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_GetVerticalSpacing[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_GetVerticalSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_GetVerticalSpacing[1] = {{ wxLua_wxPropertyGrid_GetVerticalSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_GetVerticalSpacing }}; -// int GetVerticalSpacing() const; -static int LUACALL wxLua_wxPropertyGrid_GetVerticalSpacing(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call GetVerticalSpacing - int returns = (self->GetVerticalSpacing()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_IsAnyModified[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_IsAnyModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_IsAnyModified[1] = {{ wxLua_wxPropertyGrid_IsAnyModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_IsAnyModified }}; -// bool IsAnyModified() const; -static int LUACALL wxLua_wxPropertyGrid_IsAnyModified(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call IsAnyModified - bool returns = (self->IsAnyModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_IsEditorFocused[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_IsEditorFocused(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_IsEditorFocused[1] = {{ wxLua_wxPropertyGrid_IsEditorFocused, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_IsEditorFocused }}; -// bool IsEditorFocused() const; -static int LUACALL wxLua_wxPropertyGrid_IsEditorFocused(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call IsEditorFocused - bool returns = (self->IsEditorFocused()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_IsEditorsValueModified[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_IsEditorsValueModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_IsEditorsValueModified[1] = {{ wxLua_wxPropertyGrid_IsEditorsValueModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_IsEditorsValueModified }}; -// bool IsEditorsValueModified() const; -static int LUACALL wxLua_wxPropertyGrid_IsEditorsValueModified(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call IsEditorsValueModified - bool returns = (self->IsEditorsValueModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_IsFrozen[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_IsFrozen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_IsFrozen[1] = {{ wxLua_wxPropertyGrid_IsFrozen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_IsFrozen }}; -// bool IsFrozen() const; -static int LUACALL wxLua_wxPropertyGrid_IsFrozen(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call IsFrozen - bool returns = (self->IsFrozen()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_MakeColumnEditable[] = { &wxluatype_wxPropertyGrid, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_MakeColumnEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_MakeColumnEditable[1] = {{ wxLua_wxPropertyGrid_MakeColumnEditable, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_MakeColumnEditable }}; -// void MakeColumnEditable( unsigned int column, bool editable = true ); -static int LUACALL wxLua_wxPropertyGrid_MakeColumnEditable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool editable = true - bool editable = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call MakeColumnEditable - self->MakeColumnEditable(column, editable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_OnTLPChanging[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPropertyGrid_OnTLPChanging(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_OnTLPChanging[1] = {{ wxLua_wxPropertyGrid_OnTLPChanging, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_OnTLPChanging }}; -// void OnTLPChanging( wxWindow* newTLP ); -static int LUACALL wxLua_wxPropertyGrid_OnTLPChanging(lua_State *L) -{ - // wxWindow newTLP - wxWindow * newTLP = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call OnTLPChanging - self->OnTLPChanging(newTLP); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_RefreshEditor[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_RefreshEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_RefreshEditor[1] = {{ wxLua_wxPropertyGrid_RefreshEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_RefreshEditor }}; -// void RefreshEditor(); -static int LUACALL wxLua_wxPropertyGrid_RefreshEditor(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call RefreshEditor - self->RefreshEditor(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_RefreshProperty[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_RefreshProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_RefreshProperty[1] = {{ wxLua_wxPropertyGrid_RefreshProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_RefreshProperty }}; -// virtual void RefreshProperty( wxPGProperty* p ); -static int LUACALL wxLua_wxPropertyGrid_RefreshProperty(lua_State *L) -{ - // wxPGProperty p - wxPGProperty * p = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call RefreshProperty - self->RefreshProperty(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_RegisterEditorClass[] = { &wxluatype_wxPGEditor, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_RegisterEditorClass(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_RegisterEditorClass[1] = {{ wxLua_wxPropertyGrid_RegisterEditorClass, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_RegisterEditorClass }}; -// static wxPGEditor* RegisterEditorClass( %ungc wxPGEditor* editor, bool noDefCheck = false ); -static int LUACALL wxLua_wxPropertyGrid_RegisterEditorClass(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool noDefCheck = false - bool noDefCheck = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // wxPGEditor editor - wxPGEditor * editor = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - if (wxluaO_isgcobject(L, editor)) wxluaO_undeletegcobject(L, editor); - // call RegisterEditorClass - wxPGEditor* returns = (wxPGEditor*)wxPropertyGrid::RegisterEditorClass(editor, noDefCheck); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_RemoveFromSelection1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_RemoveFromSelection1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection1[1] = {{ wxLua_wxPropertyGrid_RemoveFromSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_RemoveFromSelection1 }}; -// bool RemoveFromSelection( const wxString& id ); -static int LUACALL wxLua_wxPropertyGrid_RemoveFromSelection1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call RemoveFromSelection - bool returns = (self->RemoveFromSelection(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_RemoveFromSelection[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_RemoveFromSelection(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection[1] = {{ wxLua_wxPropertyGrid_RemoveFromSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_RemoveFromSelection }}; -// bool RemoveFromSelection( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGrid_RemoveFromSelection(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call RemoveFromSelection - bool returns = (self->RemoveFromSelection(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ResetColours[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ResetColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ResetColours[1] = {{ wxLua_wxPropertyGrid_ResetColours, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_ResetColours }}; -// void ResetColours(); -static int LUACALL wxLua_wxPropertyGrid_ResetColours(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ResetColours - self->ResetColours(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SelectProperty1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SelectProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty1[1] = {{ wxLua_wxPropertyGrid_SelectProperty1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_SelectProperty1 }}; -// bool SelectProperty( const wxString& id, bool focus = false ); -static int LUACALL wxLua_wxPropertyGrid_SelectProperty1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool focus = false - bool focus = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SelectProperty - bool returns = (self->SelectProperty(id, focus)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SelectProperty[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SelectProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty[1] = {{ wxLua_wxPropertyGrid_SelectProperty, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_SelectProperty }}; -// bool SelectProperty( const wxPGProperty*& id, bool focus = false ); -static int LUACALL wxLua_wxPropertyGrid_SelectProperty(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool focus = false - bool focus = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SelectProperty - bool returns = (self->SelectProperty(id, focus)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCaptionBackgroundColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCaptionBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCaptionBackgroundColour[1] = {{ wxLua_wxPropertyGrid_SetCaptionBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCaptionBackgroundColour }}; -// void SetCaptionBackgroundColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetCaptionBackgroundColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCaptionBackgroundColour - self->SetCaptionBackgroundColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCaptionTextColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCaptionTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCaptionTextColour[1] = {{ wxLua_wxPropertyGrid_SetCaptionTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCaptionTextColour }}; -// void SetCaptionTextColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetCaptionTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCaptionTextColour - self->SetCaptionTextColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCellBackgroundColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCellBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCellBackgroundColour[1] = {{ wxLua_wxPropertyGrid_SetCellBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCellBackgroundColour }}; -// void SetCellBackgroundColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetCellBackgroundColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCellBackgroundColour - self->SetCellBackgroundColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCellDisabledTextColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCellDisabledTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCellDisabledTextColour[1] = {{ wxLua_wxPropertyGrid_SetCellDisabledTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCellDisabledTextColour }}; -// void SetCellDisabledTextColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetCellDisabledTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCellDisabledTextColour - self->SetCellDisabledTextColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCellTextColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCellTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCellTextColour[1] = {{ wxLua_wxPropertyGrid_SetCellTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCellTextColour }}; -// void SetCellTextColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetCellTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCellTextColour - self->SetCellTextColour(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCurrentCategory1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCurrentCategory1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory1[1] = {{ wxLua_wxPropertyGrid_SetCurrentCategory1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCurrentCategory1 }}; -// void SetCurrentCategory( const wxString& id ); -static int LUACALL wxLua_wxPropertyGrid_SetCurrentCategory1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCurrentCategory - self->SetCurrentCategory(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetCurrentCategory[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetCurrentCategory(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory[1] = {{ wxLua_wxPropertyGrid_SetCurrentCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCurrentCategory }}; -// void SetCurrentCategory( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGrid_SetCurrentCategory(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetCurrentCategory - self->SetCurrentCategory(id); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetEmptySpaceColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetEmptySpaceColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetEmptySpaceColour[1] = {{ wxLua_wxPropertyGrid_SetEmptySpaceColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetEmptySpaceColour }}; -// void SetEmptySpaceColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetEmptySpaceColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetEmptySpaceColour - self->SetEmptySpaceColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetLineColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetLineColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetLineColour[1] = {{ wxLua_wxPropertyGrid_SetLineColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetLineColour }}; -// void SetLineColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetLineColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetLineColour - self->SetLineColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetMarginColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetMarginColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetMarginColour[1] = {{ wxLua_wxPropertyGrid_SetMarginColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetMarginColour }}; -// void SetMarginColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetMarginColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetMarginColour - self->SetMarginColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetSelectionBackgroundColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetSelectionBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetSelectionBackgroundColour[1] = {{ wxLua_wxPropertyGrid_SetSelectionBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetSelectionBackgroundColour }}; -// void SetSelectionBackgroundColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetSelectionBackgroundColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetSelectionBackgroundColour - self->SetSelectionBackgroundColour(*col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetSelectionTextColour[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetSelectionTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetSelectionTextColour[1] = {{ wxLua_wxPropertyGrid_SetSelectionTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetSelectionTextColour }}; -// void SetSelectionTextColour(const wxColour& col); -static int LUACALL wxLua_wxPropertyGrid_SetSelectionTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetSelectionTextColour - self->SetSelectionTextColour(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetSplitterLeft[] = { &wxluatype_wxPropertyGrid, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetSplitterLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetSplitterLeft[1] = {{ wxLua_wxPropertyGrid_SetSplitterLeft, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetSplitterLeft }}; -// void SetSplitterLeft( bool privateChildrenToo = false ); -static int LUACALL wxLua_wxPropertyGrid_SetSplitterLeft(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool privateChildrenToo = false - bool privateChildrenToo = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetSplitterLeft - self->SetSplitterLeft(privateChildrenToo); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetSplitterPosition[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetSplitterPosition[1] = {{ wxLua_wxPropertyGrid_SetSplitterPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_SetSplitterPosition }}; -// void SetSplitterPosition( int newxpos, int col = 0 ); -static int LUACALL wxLua_wxPropertyGrid_SetSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int col = 0 - int col = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int newxpos - int newxpos = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetSplitterPosition - self->SetSplitterPosition(newxpos, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance[1] = {{ wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance }}; -// void SetUnspecifiedValueAppearance( const wxPGCell& cell ); -static int LUACALL wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance(lua_State *L) -{ - // const wxPGCell cell - const wxPGCell * cell = (const wxPGCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGCell); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetUnspecifiedValueAppearance - self->SetUnspecifiedValueAppearance(*cell); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetVerticalSpacing[] = { &wxluatype_wxPropertyGrid, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetVerticalSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetVerticalSpacing[1] = {{ wxLua_wxPropertyGrid_SetVerticalSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetVerticalSpacing }}; -// void SetVerticalSpacing( int vspacing ); -static int LUACALL wxLua_wxPropertyGrid_SetVerticalSpacing(lua_State *L) -{ - // int vspacing - int vspacing = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetVerticalSpacing - self->SetVerticalSpacing(vspacing); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_SetupTextCtrlValue[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_SetupTextCtrlValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetupTextCtrlValue[1] = {{ wxLua_wxPropertyGrid_SetupTextCtrlValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetupTextCtrlValue }}; -// void SetupTextCtrlValue( const wxString& text ); -static int LUACALL wxLua_wxPropertyGrid_SetupTextCtrlValue(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call SetupTextCtrlValue - self->SetupTextCtrlValue(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ShowPropertyError1[] = { &wxluatype_wxPropertyGrid, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ShowPropertyError1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError1[1] = {{ wxLua_wxPropertyGrid_ShowPropertyError1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ShowPropertyError1 }}; -// void ShowPropertyError( const wxString& id, const wxString& msg ); -static int LUACALL wxLua_wxPropertyGrid_ShowPropertyError1(lua_State *L) -{ - // const wxString msg - const wxString msg = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ShowPropertyError - self->ShowPropertyError(id, msg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ShowPropertyError[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ShowPropertyError(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError[1] = {{ wxLua_wxPropertyGrid_ShowPropertyError, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ShowPropertyError }}; -// void ShowPropertyError( const wxPGProperty*& id, const wxString& msg ); -static int LUACALL wxLua_wxPropertyGrid_ShowPropertyError(lua_State *L) -{ - // const wxString msg - const wxString msg = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ShowPropertyError - self->ShowPropertyError(id, msg); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_UnfocusEditor[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_UnfocusEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_UnfocusEditor[1] = {{ wxLua_wxPropertyGrid_UnfocusEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_UnfocusEditor }}; -// bool UnfocusEditor(); -static int LUACALL wxLua_wxPropertyGrid_UnfocusEditor(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call UnfocusEditor - bool returns = (self->UnfocusEditor()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_ValueChangeInEvent[] = { &wxluatype_wxPropertyGrid, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGrid_ValueChangeInEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ValueChangeInEvent[1] = {{ wxLua_wxPropertyGrid_ValueChangeInEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_ValueChangeInEvent }}; -// void ValueChangeInEvent( wxVariant variant ); -static int LUACALL wxLua_wxPropertyGrid_ValueChangeInEvent(lua_State *L) -{ - // wxVariant variant - wxVariant variant = wxlua_getwxVarianttype(L, 2); - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call ValueChangeInEvent - self->ValueChangeInEvent(variant); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_WasValueChangedInEvent[] = { &wxluatype_wxPropertyGrid, NULL }; -static int LUACALL wxLua_wxPropertyGrid_WasValueChangedInEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_WasValueChangedInEvent[1] = {{ wxLua_wxPropertyGrid_WasValueChangedInEvent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGrid_WasValueChangedInEvent }}; -// bool WasValueChangedInEvent() const; -static int LUACALL wxLua_wxPropertyGrid_WasValueChangedInEvent(lua_State *L) -{ - // get this - wxPropertyGrid * self = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call WasValueChangedInEvent - bool returns = (self->WasValueChangedInEvent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGrid_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGrid_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_constructor1[1] = {{ wxLua_wxPropertyGrid_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxPropertyGrid_constructor1 }}; -// const wxString& name = wxPropertyGridNameStr ); -static int LUACALL wxLua_wxPropertyGrid_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPropertyGridNameStr - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxPropertyGridNameStr)); - // long style = wxPG_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxPG_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPropertyGrid* returns = new wxPropertyGrid(parent, id, *pos, *size, style, name); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static int LUACALL wxLua_wxPropertyGrid_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_constructor[1] = {{ wxLua_wxPropertyGrid_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyGrid(); -static int LUACALL wxLua_wxPropertyGrid_constructor(lua_State *L) -{ - // call constructor - wxPropertyGrid* returns = new wxPropertyGrid(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection_overload[] = -{ - { wxLua_wxPropertyGrid_AddToSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_AddToSelection1 }, - { wxLua_wxPropertyGrid_AddToSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_AddToSelection }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGrid_ChangePropertyValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ChangePropertyValue1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGrid_ChangePropertyValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ChangePropertyValue }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible_overload[] = -{ - { wxLua_wxPropertyGrid_EnsureVisible1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_EnsureVisible1 }, - { wxLua_wxPropertyGrid_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_EnsureVisible }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection_overload[] = -{ - { wxLua_wxPropertyGrid_RemoveFromSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_RemoveFromSelection1 }, - { wxLua_wxPropertyGrid_RemoveFromSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_RemoveFromSelection }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty_overload[] = -{ - { wxLua_wxPropertyGrid_SelectProperty1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_SelectProperty1 }, - { wxLua_wxPropertyGrid_SelectProperty, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_SelectProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory_overload[] = -{ - { wxLua_wxPropertyGrid_SetCurrentCategory1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCurrentCategory1 }, - { wxLua_wxPropertyGrid_SetCurrentCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGrid_SetCurrentCategory }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError_overload[] = -{ - { wxLua_wxPropertyGrid_ShowPropertyError1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ShowPropertyError1 }, - { wxLua_wxPropertyGrid_ShowPropertyError, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGrid_ShowPropertyError }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGrid_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGrid_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxPropertyGrid_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGrid_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPropertyGrid_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGrid_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGrid_delete_function(void** p) -{ - wxPropertyGrid* o = (wxPropertyGrid*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGrid_methods[] = { - { "AddActionTrigger", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_AddActionTrigger, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "AddToSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection_overload, s_wxluafunc_wxLua_wxPropertyGrid_AddToSelection_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "AutoGetTranslation", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGrid_AutoGetTranslation, 1, NULL }, - { "BeginLabelEdit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_BeginLabelEdit, 1, NULL }, - { "CenterSplitter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_CenterSplitter, 1, NULL }, - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - { "ChangePropertyValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue_overload, s_wxluafunc_wxLua_wxPropertyGrid_ChangePropertyValue_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_Clear, 1, NULL }, - { "ClearActionTriggers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_ClearActionTriggers, 1, NULL }, - { "CommitChangesFromEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_CommitChangesFromEditor, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "DedicateKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_DedicateKey, 1, NULL }, - { "DoHidePropertyError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_DoHidePropertyError, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoOnValidationFailure", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_DoOnValidationFailure, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "DoOnValidationFailureReset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_DoOnValidationFailureReset, 1, NULL }, - { "DoRegisterEditorClass", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGrid_DoRegisterEditorClass, 1, NULL }, - { "DoShowPropertyError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_DoShowPropertyError, 1, NULL }, - { "DrawItemAndValueRelated", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_DrawItemAndValueRelated, 1, NULL }, - { "EditorsValueWasModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_EditorsValueWasModified, 1, NULL }, - { "EditorsValueWasNotModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_EditorsValueWasNotModified, 1, NULL }, - { "EnableCategories", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_EnableCategories, 1, NULL }, - { "EndLabelEdit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_EndLabelEdit, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible_overload, s_wxluafunc_wxLua_wxPropertyGrid_EnsureVisible_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "FitColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_FitColumns, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetCaptionBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetCaptionBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetCaptionFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetCaptionFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetCaptionForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetCaptionForegroundColour, 1, NULL }, - { "GetCellBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetCellBackgroundColour, 1, NULL }, - { "GetCellDisabledTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetCellDisabledTextColour, 1, NULL }, - { "GetCellTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetCellTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetColumnCount, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetEditorTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetEditorTextCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetEmptySpaceColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetEmptySpaceColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetFontHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetFontHeight, 1, NULL }, - { "GetGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetGrid, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetImageRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetImageRect, 1, NULL }, - { "GetImageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetImageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetLabelEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetLabelEditor, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetLastItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetLastItem, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetLineColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetLineColour, 1, NULL }, - { "GetMarginColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetMarginColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetMarginWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetMarginWidth, 1, NULL }, - { "GetPanel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetPanel, 1, NULL }, - { "GetRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetRoot, 1, NULL }, - { "GetRowHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetRowHeight, 1, NULL }, - { "GetSelectedProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetSelectedProperty, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetSelection, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetSelectionBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetSelectionBackgroundColour, 1, NULL }, - { "GetSelectionForegroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetSelectionForegroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetSplitterPosition, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - { "GetStatusBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetStatusBar, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxStatusBar && wxUSE_STATUSBAR) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetUncommittedPropertyValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetUncommittedPropertyValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetUnspecifiedValueAppearance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetUnspecifiedValueAppearance, 1, NULL }, - { "GetUnspecifiedValueText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetUnspecifiedValueText, 1, NULL }, - { "GetVerticalSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_GetVerticalSpacing, 1, NULL }, - { "IsAnyModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_IsAnyModified, 1, NULL }, - { "IsEditorFocused", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_IsEditorFocused, 1, NULL }, - { "IsEditorsValueModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_IsEditorsValueModified, 1, NULL }, - { "IsFrozen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_IsFrozen, 1, NULL }, - { "MakeColumnEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_MakeColumnEditable, 1, NULL }, - { "OnTLPChanging", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_OnTLPChanging, 1, NULL }, - { "RefreshEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_RefreshEditor, 1, NULL }, - { "RefreshProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_RefreshProperty, 1, NULL }, - { "RegisterEditorClass", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGrid_RegisterEditorClass, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "RemoveFromSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection_overload, s_wxluafunc_wxLua_wxPropertyGrid_RemoveFromSelection_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "ResetColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_ResetColours, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SelectProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty_overload, s_wxluafunc_wxLua_wxPropertyGrid_SelectProperty_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetCaptionBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetCaptionBackgroundColour, 1, NULL }, - { "SetCaptionTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetCaptionTextColour, 1, NULL }, - { "SetCellBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetCellBackgroundColour, 1, NULL }, - { "SetCellDisabledTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetCellDisabledTextColour, 1, NULL }, - { "SetCellTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetCellTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetCurrentCategory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory_overload, s_wxluafunc_wxLua_wxPropertyGrid_SetCurrentCategory_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetEmptySpaceColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetEmptySpaceColour, 1, NULL }, - { "SetLineColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetLineColour, 1, NULL }, - { "SetMarginColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetMarginColour, 1, NULL }, - { "SetSelectionBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetSelectionBackgroundColour, 1, NULL }, - { "SetSelectionTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetSelectionTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetSplitterLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetSplitterLeft, 1, NULL }, - { "SetSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetSplitterPosition, 1, NULL }, - { "SetUnspecifiedValueAppearance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetUnspecifiedValueAppearance, 1, NULL }, - { "SetVerticalSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetVerticalSpacing, 1, NULL }, - { "SetupTextCtrlValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_SetupTextCtrlValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "ShowPropertyError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError_overload, s_wxluafunc_wxLua_wxPropertyGrid_ShowPropertyError_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "UnfocusEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_UnfocusEditor, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "ValueChangeInEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_ValueChangeInEvent, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "WasValueChangedInEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGrid_WasValueChangedInEvent, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPropertyGrid", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGrid_constructor_overload, s_wxluafunc_wxLua_wxPropertyGrid_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGrid_methodCount = sizeof(wxPropertyGrid_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridEvent' -int wxluatype_wxPropertyGridEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_CanVeto[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_CanVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_CanVeto[1] = {{ wxLua_wxPropertyGridEvent_CanVeto, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_CanVeto }}; -// bool CanVeto() const; -static int LUACALL wxLua_wxPropertyGridEvent_CanVeto(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call CanVeto - bool returns = (self->CanVeto()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetColumn[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetColumn[1] = {{ wxLua_wxPropertyGridEvent_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetColumn }}; -// unsigned int GetColumn() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetColumn(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetColumn - unsigned int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetMainParent[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetMainParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetMainParent[1] = {{ wxLua_wxPropertyGridEvent_GetMainParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetMainParent }}; -// %ungc wxPGProperty* GetMainParent() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetMainParent(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetMainParent - wxPGProperty* returns = (wxPGProperty*)self->GetMainParent(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetProperty[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetProperty[1] = {{ wxLua_wxPropertyGridEvent_GetProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetProperty }}; -// %ungc wxPGProperty* GetProperty() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetProperty(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetProperty - wxPGProperty* returns = (wxPGProperty*)self->GetProperty(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetPropertyName[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetPropertyName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetPropertyName[1] = {{ wxLua_wxPropertyGridEvent_GetPropertyName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetPropertyName }}; -// wxString GetPropertyName() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetPropertyName(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetPropertyName - wxString returns = (self->GetPropertyName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetPropertyValue[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetPropertyValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetPropertyValue[1] = {{ wxLua_wxPropertyGridEvent_GetPropertyValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetPropertyValue }}; -// wxVariant GetPropertyValue() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetPropertyValue(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetPropertyValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetPropertyValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetValidationFailureBehavior[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetValidationFailureBehavior(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetValidationFailureBehavior[1] = {{ wxLua_wxPropertyGridEvent_GetValidationFailureBehavior, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetValidationFailureBehavior }}; -// unsigned char GetValidationFailureBehavior() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetValidationFailureBehavior(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetValidationFailureBehavior - unsigned char returns = (self->GetValidationFailureBehavior()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetValue[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_GetValue[1] = {{ wxLua_wxPropertyGridEvent_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_GetValue }}; -// wxVariant GetValue() const; -static int LUACALL wxLua_wxPropertyGridEvent_GetValue(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call GetValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetCanVeto[] = { &wxluatype_wxPropertyGridEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_SetCanVeto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_SetCanVeto[1] = {{ wxLua_wxPropertyGridEvent_SetCanVeto, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetCanVeto }}; -// void SetCanVeto( bool canVeto ); -static int LUACALL wxLua_wxPropertyGridEvent_SetCanVeto(lua_State *L) -{ - // bool canVeto - bool canVeto = wxlua_getbooleantype(L, 2); - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call SetCanVeto - self->SetCanVeto(canVeto); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetProperty[] = { &wxluatype_wxPropertyGridEvent, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_SetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_SetProperty[1] = {{ wxLua_wxPropertyGridEvent_SetProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetProperty }}; -// void SetProperty( wxPGProperty* p ); -static int LUACALL wxLua_wxPropertyGridEvent_SetProperty(lua_State *L) -{ - // wxPGProperty p - wxPGProperty * p = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call SetProperty - self->SetProperty(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetValidationFailureBehavior[] = { &wxluatype_wxPropertyGridEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_SetValidationFailureBehavior(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_SetValidationFailureBehavior[1] = {{ wxLua_wxPropertyGridEvent_SetValidationFailureBehavior, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetValidationFailureBehavior }}; -// void SetValidationFailureBehavior( unsigned char flags ); -static int LUACALL wxLua_wxPropertyGridEvent_SetValidationFailureBehavior(lua_State *L) -{ - // unsigned char flags - unsigned char flags = (unsigned char)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call SetValidationFailureBehavior - self->SetValidationFailureBehavior(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetValidationFailureMessage[] = { &wxluatype_wxPropertyGridEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_SetValidationFailureMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_SetValidationFailureMessage[1] = {{ wxLua_wxPropertyGridEvent_SetValidationFailureMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_SetValidationFailureMessage }}; -// void SetValidationFailureMessage( const wxString& message ); -static int LUACALL wxLua_wxPropertyGridEvent_SetValidationFailureMessage(lua_State *L) -{ - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call SetValidationFailureMessage - self->SetValidationFailureMessage(message); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_Veto[] = { &wxluatype_wxPropertyGridEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_Veto(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_Veto[1] = {{ wxLua_wxPropertyGridEvent_Veto, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_Veto }}; -// void Veto( bool veto = true ); -static int LUACALL wxLua_wxPropertyGridEvent_Veto(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool veto = true - bool veto = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call Veto - self->Veto(veto); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_WasVetoed[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_WasVetoed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_WasVetoed[1] = {{ wxLua_wxPropertyGridEvent_WasVetoed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_WasVetoed }}; -// bool WasVetoed() const; -static int LUACALL wxLua_wxPropertyGridEvent_WasVetoed(lua_State *L) -{ - // get this - wxPropertyGridEvent * self = (wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call WasVetoed - bool returns = (self->WasVetoed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_delete[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_constructor1[] = { &wxluatype_wxPropertyGridEvent, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_constructor1[1] = {{ wxLua_wxPropertyGridEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_constructor1 }}; -// wxPropertyGridEvent(const wxPropertyGridEvent& event); -static int LUACALL wxLua_wxPropertyGridEvent_constructor1(lua_State *L) -{ - // const wxPropertyGridEvent event - const wxPropertyGridEvent * event = (const wxPropertyGridEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridEvent); - // call constructor - wxPropertyGridEvent* returns = new wxPropertyGridEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_constructor[1] = {{ wxLua_wxPropertyGridEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_constructor }}; -// wxPropertyGridEvent(wxEventType commandType=0, int id=0); -static int LUACALL wxLua_wxPropertyGridEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = 0 - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxPropertyGridEvent* returns = new wxPropertyGridEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridEvent); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridEvent_constructor_overload[] = -{ - { wxLua_wxPropertyGridEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridEvent_constructor1 }, - { wxLua_wxPropertyGridEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxPropertyGridEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridEvent_delete_function(void** p) -{ - wxPropertyGridEvent* o = (wxPropertyGridEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridEvent_methods[] = { - { "CanVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_CanVeto, 1, NULL }, - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetColumn, 1, NULL }, - { "GetMainParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetMainParent, 1, NULL }, - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetProperty, 1, NULL }, - { "GetPropertyName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetPropertyName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetPropertyValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetPropertyValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetValidationFailureBehavior", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetValidationFailureBehavior, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_GetValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "SetCanVeto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_SetCanVeto, 1, NULL }, - { "SetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_SetProperty, 1, NULL }, - { "SetValidationFailureBehavior", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_SetValidationFailureBehavior, 1, NULL }, - { "SetValidationFailureMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_SetValidationFailureMessage, 1, NULL }, - { "Veto", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_Veto, 1, NULL }, - { "WasVetoed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridEvent_WasVetoed, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyGridEvent_delete, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPropertyGridEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridEvent_constructor_overload, s_wxluafunc_wxLua_wxPropertyGridEvent_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridEvent_methodCount = sizeof(wxPropertyGridEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridPage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridPage' -int wxluatype_wxPropertyGridPage = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_Clear[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_Clear[1] = {{ wxLua_wxPropertyGridPage_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxPropertyGridPage_Clear(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call Clear - self->Clear(); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_FitColumns[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_FitColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_FitColumns[1] = {{ wxLua_wxPropertyGridPage_FitColumns, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_FitColumns }}; -// wxSize FitColumns(); -static int LUACALL wxLua_wxPropertyGridPage_FitColumns(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call FitColumns - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->FitColumns()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_GetIndex[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_GetIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetIndex[1] = {{ wxLua_wxPropertyGridPage_GetIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetIndex }}; -// inline int GetIndex() const; -static int LUACALL wxLua_wxPropertyGridPage_GetIndex(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call GetIndex - int returns = (self->GetIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_GetRoot[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_GetRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetRoot[1] = {{ wxLua_wxPropertyGridPage_GetRoot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetRoot }}; -// %ungc wxPGProperty* GetRoot() const; -static int LUACALL wxLua_wxPropertyGridPage_GetRoot(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call GetRoot - wxPGProperty* returns = (wxPGProperty*)self->GetRoot(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_GetSplitterPosition[] = { &wxluatype_wxPropertyGridPage, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_GetSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetSplitterPosition[1] = {{ wxLua_wxPropertyGridPage_GetSplitterPosition, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetSplitterPosition }}; -// int GetSplitterPosition( int col = 0 ) const; -static int LUACALL wxLua_wxPropertyGridPage_GetSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int col = 0 - int col = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call GetSplitterPosition - int returns = (self->GetSplitterPosition(col)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_GetStatePtr1[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_GetStatePtr1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr1[1] = {{ wxLua_wxPropertyGridPage_GetStatePtr1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetStatePtr1 }}; -// const wxPropertyGridPageState* GetStatePtr() const; -static int LUACALL wxLua_wxPropertyGridPage_GetStatePtr1(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call GetStatePtr - const wxPropertyGridPageState* returns = (const wxPropertyGridPageState*)self->GetStatePtr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPageState); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_GetStatePtr[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_GetStatePtr(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr[1] = {{ wxLua_wxPropertyGridPage_GetStatePtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetStatePtr }}; -// wxPropertyGridPageState* GetStatePtr(); -static int LUACALL wxLua_wxPropertyGridPage_GetStatePtr(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call GetStatePtr - wxPropertyGridPageState* returns = (wxPropertyGridPageState*)self->GetStatePtr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPageState); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_GetToolId[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_GetToolId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetToolId[1] = {{ wxLua_wxPropertyGridPage_GetToolId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetToolId }}; -// int GetToolId() const; -static int LUACALL wxLua_wxPropertyGridPage_GetToolId(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call GetToolId - int returns = (self->GetToolId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_Init[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_Init[1] = {{ wxLua_wxPropertyGridPage_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_Init }}; -// virtual void Init(); -static int LUACALL wxLua_wxPropertyGridPage_Init(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_IsHandlingAllEvents[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_IsHandlingAllEvents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_IsHandlingAllEvents[1] = {{ wxLua_wxPropertyGridPage_IsHandlingAllEvents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_IsHandlingAllEvents }}; -// virtual bool IsHandlingAllEvents() const; -static int LUACALL wxLua_wxPropertyGridPage_IsHandlingAllEvents(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call IsHandlingAllEvents - bool returns = (self->IsHandlingAllEvents()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_OnShow[] = { &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_OnShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_OnShow[1] = {{ wxLua_wxPropertyGridPage_OnShow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_OnShow }}; -// virtual void OnShow(); -static int LUACALL wxLua_wxPropertyGridPage_OnShow(lua_State *L) -{ - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call OnShow - self->OnShow(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_RefreshProperty[] = { &wxluatype_wxPropertyGridPage, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_RefreshProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_RefreshProperty[1] = {{ wxLua_wxPropertyGridPage_RefreshProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridPage_RefreshProperty }}; -// virtual void RefreshProperty( wxPGProperty* p ); -static int LUACALL wxLua_wxPropertyGridPage_RefreshProperty(lua_State *L) -{ - // wxPGProperty p - wxPGProperty * p = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call RefreshProperty - self->RefreshProperty(p); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_SetSplitterPosition[] = { &wxluatype_wxPropertyGridPage, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPage_SetSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_SetSplitterPosition[1] = {{ wxLua_wxPropertyGridPage_SetSplitterPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridPage_SetSplitterPosition }}; -// void SetSplitterPosition( int splitterPos, int col = 0 ); -static int LUACALL wxLua_wxPropertyGridPage_SetSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int col = 0 - int col = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int splitterPos - int splitterPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridPage * self = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPage); - // call SetSplitterPosition - self->SetSplitterPosition(splitterPos, col); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPage_delete[] = { &wxluatype_wxPropertyGridPage, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_delete }}; - -static int LUACALL wxLua_wxPropertyGridPage_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_constructor[1] = {{ wxLua_wxPropertyGridPage_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyGridPage(); -static int LUACALL wxLua_wxPropertyGridPage_constructor(lua_State *L) -{ - // call constructor - wxPropertyGridPage* returns = new wxPropertyGridPage(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridPage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPage); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr_overload[] = -{ - { wxLua_wxPropertyGridPage_GetStatePtr1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetStatePtr1 }, - { wxLua_wxPropertyGridPage_GetStatePtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPage_GetStatePtr }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridPage_delete_function(void** p) -{ - wxPropertyGridPage* o = (wxPropertyGridPage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridPage_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_Clear, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "FitColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_FitColumns, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_GetIndex, 1, NULL }, - { "GetRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_GetRoot, 1, NULL }, - { "GetSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_GetSplitterPosition, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetStatePtr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr_overload, s_wxluafunc_wxLua_wxPropertyGridPage_GetStatePtr_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetToolId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_GetToolId, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_Init, 1, NULL }, - { "IsHandlingAllEvents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_IsHandlingAllEvents, 1, NULL }, - { "OnShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_OnShow, 1, NULL }, - { "RefreshProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_RefreshProperty, 1, NULL }, - { "SetSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPage_SetSplitterPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyGridPage_delete, 1, NULL }, - { "wxPropertyGridPage", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridPage_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridPage_methodCount = sizeof(wxPropertyGridPage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridManager -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridManager' -int wxluatype_wxPropertyGridManager = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_AddPage[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_AddPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_AddPage[1] = {{ wxLua_wxPropertyGridManager_AddPage, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxPropertyGridManager_AddPage }}; -// %ungc wxPropertyGridPage* pageObj = NULL ); -static int LUACALL wxLua_wxPropertyGridManager_AddPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPropertyGridPage pageObj = NULL - wxPropertyGridPage * pageObj = (argCount >= 4 ? (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPropertyGridPage) : NULL); - // const wxBitmap bmp = wxPG_NULL_BITMAP - const wxBitmap * bmp = (argCount >= 3 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap) : &wxPG_NULL_BITMAP); - // const wxString label = wxEmptyString - const wxString label = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - if (wxluaO_isgcobject(L, pageObj)) wxluaO_undeletegcobject(L, pageObj); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call AddPage - wxPropertyGridPage* returns = (wxPropertyGridPage*)self->AddPage(label, *bmp, pageObj); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPage); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_Clear[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_Clear[1] = {{ wxLua_wxPropertyGridManager_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxPropertyGridManager_Clear(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_ClearPage[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_ClearPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_ClearPage[1] = {{ wxLua_wxPropertyGridManager_ClearPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_ClearPage }}; -// void ClearPage( int page ); -static int LUACALL wxLua_wxPropertyGridManager_ClearPage(lua_State *L) -{ - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call ClearPage - self->ClearPage(page); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_CommitChangesFromEditor[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_CommitChangesFromEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_CommitChangesFromEditor[1] = {{ wxLua_wxPropertyGridManager_CommitChangesFromEditor, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_CommitChangesFromEditor }}; -// bool CommitChangesFromEditor( wxUint32 flags = 0 ); -static int LUACALL wxLua_wxPropertyGridManager_CommitChangesFromEditor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxUint32 flags = 0 - wxUint32 flags = (argCount >= 2 ? (wxUint32)wxlua_getuintegertype(L, 2) : 0); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call CommitChangesFromEditor - bool returns = (self->CommitChangesFromEditor(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_Create[] = { &wxluatype_wxPropertyGridManager, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_Create[1] = {{ wxLua_wxPropertyGridManager_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxPropertyGridManager_Create }}; -// const wxString& name = wxPropertyGridManagerNameStr ); -static int LUACALL wxLua_wxPropertyGridManager_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPropertyGridManagerNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxPropertyGridManagerNameStr)); - // long style = wxPGMAN_DEFAULT_STYLE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxPGMAN_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_EnableCategories[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_EnableCategories(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_EnableCategories[1] = {{ wxLua_wxPropertyGridManager_EnableCategories, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_EnableCategories }}; -// bool EnableCategories( bool enable ); -static int LUACALL wxLua_wxPropertyGridManager_EnableCategories(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call EnableCategories - bool returns = (self->EnableCategories(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_EnsureVisible1[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_EnsureVisible1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible1[1] = {{ wxLua_wxPropertyGridManager_EnsureVisible1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_EnsureVisible1 }}; -// bool EnsureVisible( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridManager_EnsureVisible1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call EnsureVisible - bool returns = (self->EnsureVisible(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_EnsureVisible[] = { &wxluatype_wxPropertyGridManager, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_EnsureVisible(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible[1] = {{ wxLua_wxPropertyGridManager_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_EnsureVisible }}; -// bool EnsureVisible( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridManager_EnsureVisible(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call EnsureVisible - bool returns = (self->EnsureVisible(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetColumnCount[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetColumnCount[1] = {{ wxLua_wxPropertyGridManager_GetColumnCount, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetColumnCount }}; -// int GetColumnCount( int page = -1 ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetColumnCount(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int page = -1 - int page = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetColumnCount - int returns = (self->GetColumnCount(page)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetCurrentPage[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetCurrentPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetCurrentPage[1] = {{ wxLua_wxPropertyGridManager_GetCurrentPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetCurrentPage }}; -// %ungc wxPropertyGridPage* GetCurrentPage() const; -static int LUACALL wxLua_wxPropertyGridManager_GetCurrentPage(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetCurrentPage - wxPropertyGridPage* returns = (wxPropertyGridPage*)self->GetCurrentPage(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetDescBoxHeight[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetDescBoxHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetDescBoxHeight[1] = {{ wxLua_wxPropertyGridManager_GetDescBoxHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetDescBoxHeight }}; -// int GetDescBoxHeight() const; -static int LUACALL wxLua_wxPropertyGridManager_GetDescBoxHeight(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetDescBoxHeight - int returns = (self->GetDescBoxHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetGrid[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetGrid[1] = {{ wxLua_wxPropertyGridManager_GetGrid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetGrid }}; -// %ungc wxPropertyGrid* GetGrid(); -static int LUACALL wxLua_wxPropertyGridManager_GetGrid(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetGrid - wxPropertyGrid* returns = (wxPropertyGrid*)self->GetGrid(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPage1[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPage1[1] = {{ wxLua_wxPropertyGridManager_GetPage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPage1 }}; -// %ungc wxPropertyGridPage* GetPage( const wxString& name ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetPage1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPage - wxPropertyGridPage* returns = (wxPropertyGridPage*)self->GetPage(name); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPage[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPage[1] = {{ wxLua_wxPropertyGridManager_GetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPage }}; -// %ungc wxPropertyGridPage* GetPage( unsigned int ind ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetPage(lua_State *L) -{ - // unsigned int ind - unsigned int ind = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPage - wxPropertyGridPage* returns = (wxPropertyGridPage*)self->GetPage(ind); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageByName[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPageByName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPageByName[1] = {{ wxLua_wxPropertyGridManager_GetPageByName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageByName }}; -// int GetPageByName( const wxString& name ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetPageByName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPageByName - int returns = (self->GetPageByName(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageByState[] = { &wxluatype_wxPropertyGridManager, &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPageByState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPageByState[1] = {{ wxLua_wxPropertyGridManager_GetPageByState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageByState }}; -// int GetPageByState( const wxPropertyGridPageState* pstate ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetPageByState(lua_State *L) -{ - // const wxPropertyGridPageState pstate - const wxPropertyGridPageState * pstate = (const wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridPageState); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPageByState - int returns = (self->GetPageByState(pstate)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageCount[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPageCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPageCount[1] = {{ wxLua_wxPropertyGridManager_GetPageCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageCount }}; -// size_t GetPageCount() const; -static int LUACALL wxLua_wxPropertyGridManager_GetPageCount(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPageCount - size_t returns = (self->GetPageCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageName[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPageName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPageName[1] = {{ wxLua_wxPropertyGridManager_GetPageName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageName }}; -// const wxString& GetPageName( int index ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetPageName(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPageName - wxString returns = (self->GetPageName(index)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageRoot[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetPageRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPageRoot[1] = {{ wxLua_wxPropertyGridManager_GetPageRoot, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPageRoot }}; -// %ungc wxPGProperty* GetPageRoot( int index ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetPageRoot(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetPageRoot - wxPGProperty* returns = (wxPGProperty*)self->GetPageRoot(index); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetSelectedPage[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetSelectedPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetSelectedPage[1] = {{ wxLua_wxPropertyGridManager_GetSelectedPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetSelectedPage }}; -// int GetSelectedPage() const; -static int LUACALL wxLua_wxPropertyGridManager_GetSelectedPage(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetSelectedPage - int returns = (self->GetSelectedPage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetSelectedProperty[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetSelectedProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetSelectedProperty[1] = {{ wxLua_wxPropertyGridManager_GetSelectedProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetSelectedProperty }}; -// %ungc wxPGProperty* GetSelectedProperty() const; -static int LUACALL wxLua_wxPropertyGridManager_GetSelectedProperty(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetSelectedProperty - wxPGProperty* returns = (wxPGProperty*)self->GetSelectedProperty(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetSelection[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetSelection[1] = {{ wxLua_wxPropertyGridManager_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetSelection }}; -// %ungc wxPGProperty* GetSelection() const; -static int LUACALL wxLua_wxPropertyGridManager_GetSelection(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetSelection - wxPGProperty* returns = (wxPGProperty*)self->GetSelection(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxToolbar) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetToolBar[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetToolBar[1] = {{ wxLua_wxPropertyGridManager_GetToolBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetToolBar }}; -// wxToolBar* GetToolBar() const; -static int LUACALL wxLua_wxPropertyGridManager_GetToolBar(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetToolBar - wxToolBar* returns = (wxToolBar*)self->GetToolBar(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxToolbar) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_GetVIterator[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_GetVIterator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetVIterator[1] = {{ wxLua_wxPropertyGridManager_GetVIterator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetVIterator }}; -// virtual wxPGVIterator GetVIterator( int flags ) const; -static int LUACALL wxLua_wxPropertyGridManager_GetVIterator(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call GetVIterator - // allocate a new object using the copy constructor - wxPGVIterator* returns = new wxPGVIterator(self->GetVIterator(flags)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGVIterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGVIterator); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_InsertPage[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_InsertPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_InsertPage[1] = {{ wxLua_wxPropertyGridManager_InsertPage, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxPropertyGridManager_InsertPage }}; -// %ungc wxPropertyGridPage* pageObj = NULL ); -static int LUACALL wxLua_wxPropertyGridManager_InsertPage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPropertyGridPage pageObj = NULL - wxPropertyGridPage * pageObj = (argCount >= 5 ? (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPropertyGridPage) : NULL); - // const wxBitmap bmp = wxNullBitmap - const wxBitmap * bmp = (argCount >= 4 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 4, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - if (wxluaO_isgcobject(L, pageObj)) wxluaO_undeletegcobject(L, pageObj); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call InsertPage - wxPropertyGridPage* returns = (wxPropertyGridPage*)self->InsertPage(index, label, *bmp, pageObj); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPage); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_IsAnyModified[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_IsAnyModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_IsAnyModified[1] = {{ wxLua_wxPropertyGridManager_IsAnyModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsAnyModified }}; -// bool IsAnyModified() const; -static int LUACALL wxLua_wxPropertyGridManager_IsAnyModified(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call IsAnyModified - bool returns = (self->IsAnyModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_IsFrozen[] = { &wxluatype_wxPropertyGridManager, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_IsFrozen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_IsFrozen[1] = {{ wxLua_wxPropertyGridManager_IsFrozen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsFrozen }}; -// bool IsFrozen() const; -static int LUACALL wxLua_wxPropertyGridManager_IsFrozen(lua_State *L) -{ - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call IsFrozen - bool returns = (self->IsFrozen()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPageModified[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_IsPageModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_IsPageModified[1] = {{ wxLua_wxPropertyGridManager_IsPageModified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPageModified }}; -// bool IsPageModified( size_t index ) const; -static int LUACALL wxLua_wxPropertyGridManager_IsPageModified(lua_State *L) -{ - // size_t index - size_t index = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call IsPageModified - bool returns = (self->IsPageModified(index)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPropertySelected1[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_IsPropertySelected1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected1[1] = {{ wxLua_wxPropertyGridManager_IsPropertySelected1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPropertySelected1 }}; -// virtual bool IsPropertySelected( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridManager_IsPropertySelected1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call IsPropertySelected - bool returns = (self->IsPropertySelected(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPropertySelected[] = { &wxluatype_wxPropertyGridManager, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_IsPropertySelected(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected[1] = {{ wxLua_wxPropertyGridManager_IsPropertySelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPropertySelected }}; -// virtual bool IsPropertySelected( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridManager_IsPropertySelected(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call IsPropertySelected - bool returns = (self->IsPropertySelected(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_RemovePage[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_RemovePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_RemovePage[1] = {{ wxLua_wxPropertyGridManager_RemovePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_RemovePage }}; -// virtual bool RemovePage( int page ); -static int LUACALL wxLua_wxPropertyGridManager_RemovePage(lua_State *L) -{ - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call RemovePage - bool returns = (self->RemovePage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage2[] = { &wxluatype_wxPropertyGridManager, &wxluatype_wxPropertyGridPage, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SelectPage2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage2[1] = {{ wxLua_wxPropertyGridManager_SelectPage2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage2 }}; -// void SelectPage( wxPropertyGridPage* page ); -static int LUACALL wxLua_wxPropertyGridManager_SelectPage2(lua_State *L) -{ - // wxPropertyGridPage page - wxPropertyGridPage * page = (wxPropertyGridPage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridPage); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SelectPage - self->SelectPage(page); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage1[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SelectPage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage1[1] = {{ wxLua_wxPropertyGridManager_SelectPage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage1 }}; -// void SelectPage( const wxString& label ); -static int LUACALL wxLua_wxPropertyGridManager_SelectPage1(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SelectPage - self->SelectPage(label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SelectPage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage[1] = {{ wxLua_wxPropertyGridManager_SelectPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage }}; -// void SelectPage( int index ); -static int LUACALL wxLua_wxPropertyGridManager_SelectPage(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SelectPage - self->SelectPage(index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectProperty1[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SelectProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty1[1] = {{ wxLua_wxPropertyGridManager_SelectProperty1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectProperty1 }}; -// bool SelectProperty( const wxString& id, bool focus = false ); -static int LUACALL wxLua_wxPropertyGridManager_SelectProperty1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool focus = false - bool focus = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SelectProperty - bool returns = (self->SelectProperty(id, focus)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectProperty[] = { &wxluatype_wxPropertyGridManager, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SelectProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty[1] = {{ wxLua_wxPropertyGridManager_SelectProperty, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectProperty }}; -// bool SelectProperty( const wxPGProperty*& id, bool focus = false ); -static int LUACALL wxLua_wxPropertyGridManager_SelectProperty(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool focus = false - bool focus = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SelectProperty - bool returns = (self->SelectProperty(id, focus)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetColumnCount[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetColumnCount[1] = {{ wxLua_wxPropertyGridManager_SetColumnCount, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetColumnCount }}; -// void SetColumnCount( int colCount, int page = -1 ); -static int LUACALL wxLua_wxPropertyGridManager_SetColumnCount(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int page = -1 - int page = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int colCount - int colCount = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetColumnCount - self->SetColumnCount(colCount, page); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetColumnTitle[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetColumnTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetColumnTitle[1] = {{ wxLua_wxPropertyGridManager_SetColumnTitle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetColumnTitle }}; -// void SetColumnTitle( int idx, const wxString& title ); -static int LUACALL wxLua_wxPropertyGridManager_SetColumnTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // int idx - int idx = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetColumnTitle - self->SetColumnTitle(idx, title); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetDescBoxHeight[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetDescBoxHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetDescBoxHeight[1] = {{ wxLua_wxPropertyGridManager_SetDescBoxHeight, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetDescBoxHeight }}; -// void SetDescBoxHeight( int ht, bool refresh = true ); -static int LUACALL wxLua_wxPropertyGridManager_SetDescBoxHeight(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool refresh = true - bool refresh = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // int ht - int ht = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetDescBoxHeight - self->SetDescBoxHeight(ht, refresh); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetDescription[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetDescription[1] = {{ wxLua_wxPropertyGridManager_SetDescription, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetDescription }}; -// void SetDescription( const wxString& label, const wxString& content ); -static int LUACALL wxLua_wxPropertyGridManager_SetDescription(lua_State *L) -{ - // const wxString content - const wxString content = wxlua_getwxStringtype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetDescription - self->SetDescription(label, content); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetPageSplitterLeft[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetPageSplitterLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetPageSplitterLeft[1] = {{ wxLua_wxPropertyGridManager_SetPageSplitterLeft, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetPageSplitterLeft }}; -// void SetPageSplitterLeft(int page, bool subProps = false); -static int LUACALL wxLua_wxPropertyGridManager_SetPageSplitterLeft(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool subProps = false - bool subProps = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetPageSplitterLeft - self->SetPageSplitterLeft(page, subProps); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetPageSplitterPosition[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetPageSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetPageSplitterPosition[1] = {{ wxLua_wxPropertyGridManager_SetPageSplitterPosition, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetPageSplitterPosition }}; -// void SetPageSplitterPosition( int page, int pos, int column = 0 ); -static int LUACALL wxLua_wxPropertyGridManager_SetPageSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int column = 0 - int column = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetPageSplitterPosition - self->SetPageSplitterPosition(page, pos, column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_SetSplitterPosition[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_SetSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SetSplitterPosition[1] = {{ wxLua_wxPropertyGridManager_SetSplitterPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SetSplitterPosition }}; -// void SetSplitterPosition( int pos, int column = 0 ); -static int LUACALL wxLua_wxPropertyGridManager_SetSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int column = 0 - int column = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call SetSplitterPosition - self->SetSplitterPosition(pos, column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_ShowHeader[] = { &wxluatype_wxPropertyGridManager, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_ShowHeader(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_ShowHeader[1] = {{ wxLua_wxPropertyGridManager_ShowHeader, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_ShowHeader }}; -// void ShowHeader(bool show = true); -static int LUACALL wxLua_wxPropertyGridManager_ShowHeader(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool show = true - bool show = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPropertyGridManager * self = (wxPropertyGridManager *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridManager); - // call ShowHeader - self->ShowHeader(show); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridManager_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridManager_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_constructor[1] = {{ wxLua_wxPropertyGridManager_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxPropertyGridManager_constructor }}; -// const wxString& name = wxPropertyGridManagerNameStr ); -static int LUACALL wxLua_wxPropertyGridManager_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPropertyGridManagerNameStr - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxPropertyGridManagerNameStr)); - // long style = wxPGMAN_DEFAULT_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxPGMAN_DEFAULT_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPropertyGridManager* returns = new wxPropertyGridManager(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridManager); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible_overload[] = -{ - { wxLua_wxPropertyGridManager_EnsureVisible1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_EnsureVisible1 }, - { wxLua_wxPropertyGridManager_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_EnsureVisible }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_GetPage_overload[] = -{ - { wxLua_wxPropertyGridManager_GetPage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPage1 }, - { wxLua_wxPropertyGridManager_GetPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_GetPage }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridManager_GetPage_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridManager_GetPage_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected_overload[] = -{ - { wxLua_wxPropertyGridManager_IsPropertySelected1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPropertySelected1 }, - { wxLua_wxPropertyGridManager_IsPropertySelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_IsPropertySelected }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage_overload[] = -{ - { wxLua_wxPropertyGridManager_SelectPage2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage2 }, - { wxLua_wxPropertyGridManager_SelectPage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage1 }, - { wxLua_wxPropertyGridManager_SelectPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectPage }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty_overload[] = -{ - { wxLua_wxPropertyGridManager_SelectProperty1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectProperty1 }, - { wxLua_wxPropertyGridManager_SelectProperty, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridManager_SelectProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridManager_delete_function(void** p) -{ - wxPropertyGridManager* o = (wxPropertyGridManager*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridManager_methods[] = { -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "AddPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_AddPage, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_Clear, 1, NULL }, - { "ClearPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_ClearPage, 1, NULL }, - { "CommitChangesFromEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_CommitChangesFromEditor, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "EnableCategories", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_EnableCategories, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible_overload, s_wxluafunc_wxLua_wxPropertyGridManager_EnsureVisible_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetColumnCount, 1, NULL }, - { "GetCurrentPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetCurrentPage, 1, NULL }, - { "GetDescBoxHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetDescBoxHeight, 1, NULL }, - { "GetGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetGrid, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetPage_overload, s_wxluafunc_wxLua_wxPropertyGridManager_GetPage_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetPageByName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetPageByName, 1, NULL }, - { "GetPageByState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetPageByState, 1, NULL }, - { "GetPageCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetPageCount, 1, NULL }, - { "GetPageName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetPageName, 1, NULL }, - { "GetPageRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetPageRoot, 1, NULL }, - { "GetSelectedPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetSelectedPage, 1, NULL }, - { "GetSelectedProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetSelectedProperty, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetSelection, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxToolbar) - { "GetToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetToolBar, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxToolbar) - - { "GetVIterator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_GetVIterator, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "InsertPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_InsertPage, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "IsAnyModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_IsAnyModified, 1, NULL }, - { "IsFrozen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_IsFrozen, 1, NULL }, - { "IsPageModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_IsPageModified, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "IsPropertySelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected_overload, s_wxluafunc_wxLua_wxPropertyGridManager_IsPropertySelected_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "RemovePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_RemovePage, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SelectPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage_overload, s_wxluafunc_wxLua_wxPropertyGridManager_SelectPage_overload_count, 0 }, - { "SelectProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty_overload, s_wxluafunc_wxLua_wxPropertyGridManager_SelectProperty_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetColumnCount, 1, NULL }, - { "SetColumnTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetColumnTitle, 1, NULL }, - { "SetDescBoxHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetDescBoxHeight, 1, NULL }, - { "SetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetDescription, 1, NULL }, - { "SetPageSplitterLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetPageSplitterLeft, 1, NULL }, - { "SetPageSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetPageSplitterPosition, 1, NULL }, - { "SetSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_SetSplitterPosition, 1, NULL }, - { "ShowHeader", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridManager_ShowHeader, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPropertyGridManager", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridManager_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridManager_methodCount = sizeof(wxPropertyGridManager_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGWindowList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGWindowList' -int wxluatype_wxPGWindowList = WXLUA_TUNKNOWN; - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGWindowList_GetPrimary[] = { &wxluatype_wxPGWindowList, NULL }; -static int LUACALL wxLua_wxPGWindowList_GetPrimary(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGWindowList_GetPrimary[1] = {{ wxLua_wxPGWindowList_GetPrimary, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGWindowList_GetPrimary }}; -// %wxchkver_3_2_0 wxWindow* GetPrimary() const; -static int LUACALL wxLua_wxPGWindowList_GetPrimary(lua_State *L) -{ - // get this - wxPGWindowList * self = (wxPGWindowList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGWindowList); - // call GetPrimary - wxWindow* returns = (wxWindow*)self->GetPrimary(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGWindowList_GetSecondary[] = { &wxluatype_wxPGWindowList, NULL }; -static int LUACALL wxLua_wxPGWindowList_GetSecondary(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGWindowList_GetSecondary[1] = {{ wxLua_wxPGWindowList_GetSecondary, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGWindowList_GetSecondary }}; -// %wxchkver_3_2_0 wxWindow* GetSecondary() const; -static int LUACALL wxLua_wxPGWindowList_GetSecondary(lua_State *L) -{ - // get this - wxPGWindowList * self = (wxPGWindowList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGWindowList); - // call GetSecondary - wxWindow* returns = (wxWindow*)self->GetSecondary(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGWindowList_SetSecondary[] = { &wxluatype_wxPGWindowList, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGWindowList_SetSecondary(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGWindowList_SetSecondary[1] = {{ wxLua_wxPGWindowList_SetSecondary, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGWindowList_SetSecondary }}; -// void SetSecondary(wxWindow* secondary); -static int LUACALL wxLua_wxPGWindowList_SetSecondary(lua_State *L) -{ - // wxWindow secondary - wxWindow * secondary = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGWindowList * self = (wxPGWindowList *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGWindowList); - // call SetSecondary - self->SetSecondary(secondary); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGWindowList_delete[] = { &wxluatype_wxPGWindowList, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGWindowList_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGWindowList_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGWindowList_constructor[] = { &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGWindowList_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGWindowList_constructor[1] = {{ wxLua_wxPGWindowList_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPGWindowList_constructor }}; -// wxPGWindowList(wxWindow* primary, wxWindow* secondary = NULL); -static int LUACALL wxLua_wxPGWindowList_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow secondary = NULL - wxWindow * secondary = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // wxWindow primary - wxWindow * primary = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxPGWindowList* returns = new wxPGWindowList(primary, secondary); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - - - - -void wxLua_wxPGWindowList_delete_function(void** p) -{ - wxPGWindowList* o = (wxPGWindowList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGWindowList_methods[] = { -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPrimary", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGWindowList_GetPrimary, 1, NULL }, - { "GetSecondary", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGWindowList_GetSecondary, 1, NULL }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetSecondary", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGWindowList_SetSecondary, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGWindowList_delete, 1, NULL }, - { "wxPGWindowList", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGWindowList_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGWindowList_methodCount = sizeof(wxPGWindowList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGEditor' -int wxluatype_wxPGEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_CanContainCustomImage[] = { &wxluatype_wxPGEditor, NULL }; -static int LUACALL wxLua_wxPGEditor_CanContainCustomImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_CanContainCustomImage[1] = {{ wxLua_wxPGEditor_CanContainCustomImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGEditor_CanContainCustomImage }}; -// virtual bool CanContainCustomImage() const; -static int LUACALL wxLua_wxPGEditor_CanContainCustomImage(lua_State *L) -{ - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call CanContainCustomImage - bool returns = (self->CanContainCustomImage()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_CreateControls[] = { &wxluatype_wxPGEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_CreateControls[1] = {{ wxLua_wxPGEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGEditor_CreateControls }}; -// const wxSize& size) const = 0; -static int LUACALL wxLua_wxPGEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_DeleteItem[] = { &wxluatype_wxPGEditor, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGEditor_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_DeleteItem[1] = {{ wxLua_wxPGEditor_DeleteItem, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditor_DeleteItem }}; -// virtual void DeleteItem( wxWindow* ctrl, int index ) const; -static int LUACALL wxLua_wxPGEditor_DeleteItem(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call DeleteItem - self->DeleteItem(ctrl, index); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_DrawValue[] = { &wxluatype_wxPGEditor, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGEditor_DrawValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_DrawValue[1] = {{ wxLua_wxPGEditor_DrawValue, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGEditor_DrawValue }}; -// virtual void DrawValue( wxDC& dc, const wxRect& rect, wxPGProperty* property, const wxString& text ) const; -static int LUACALL wxLua_wxPGEditor_DrawValue(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 5); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGProperty); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call DrawValue - self->DrawValue(*dc, *rect, property, text); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_GetName[] = { &wxluatype_wxPGEditor, NULL }; -static int LUACALL wxLua_wxPGEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_GetName[1] = {{ wxLua_wxPGEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGEditor_GetName(lua_State *L) -{ - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_GetValueFromControl[] = { &wxluatype_wxPGEditor, &wxluatype_wxVariant, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGEditor_GetValueFromControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_GetValueFromControl[1] = {{ wxLua_wxPGEditor_GetValueFromControl, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGEditor_GetValueFromControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGEditor_GetValueFromControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call GetValueFromControl - bool returns = (self->GetValueFromControl(*variant, property, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_InsertItem[] = { &wxluatype_wxPGEditor, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGEditor_InsertItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_InsertItem[1] = {{ wxLua_wxPGEditor_InsertItem, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGEditor_InsertItem }}; -// virtual int InsertItem( wxWindow* ctrl, const wxString& label, int index ) const; -static int LUACALL wxLua_wxPGEditor_InsertItem(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 4); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call InsertItem - int returns = (self->InsertItem(ctrl, label, index)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_OnEvent[] = { &wxluatype_wxPGEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGEditor_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_OnEvent[1] = {{ wxLua_wxPGEditor_OnEvent, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGEditor_OnEvent }}; -// wxWindow* wnd_primary, wxEvent& event ) const = 0; -static int LUACALL wxLua_wxPGEditor_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxEvent); - // wxWindow wnd_primary - wxWindow * wnd_primary = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call OnEvent - bool returns = (self->OnEvent(propgrid, property, wnd_primary, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_OnFocus[] = { &wxluatype_wxPGEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGEditor_OnFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_OnFocus[1] = {{ wxLua_wxPGEditor_OnFocus, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditor_OnFocus }}; -// virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const; -static int LUACALL wxLua_wxPGEditor_OnFocus(lua_State *L) -{ - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call OnFocus - self->OnFocus(property, wnd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_SetControlAppearance[] = { &wxluatype_wxPGEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxPGCell, &wxluatype_wxPGCell, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGEditor_SetControlAppearance(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_SetControlAppearance[1] = {{ wxLua_wxPGEditor_SetControlAppearance, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxPGEditor_SetControlAppearance }}; -// bool unspecified ) const; -static int LUACALL wxLua_wxPGEditor_SetControlAppearance(lua_State *L) -{ - // bool unspecified - bool unspecified = wxlua_getbooleantype(L, 7); - // const wxPGCell oldAppearance - const wxPGCell * oldAppearance = (const wxPGCell *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPGCell); - // const wxPGCell appearance - const wxPGCell * appearance = (const wxPGCell *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPGCell); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid pg - wxPropertyGrid * pg = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call SetControlAppearance - self->SetControlAppearance(pg, property, ctrl, *appearance, *oldAppearance, unspecified); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_SetControlIntValue[] = { &wxluatype_wxPGEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGEditor_SetControlIntValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_SetControlIntValue[1] = {{ wxLua_wxPGEditor_SetControlIntValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGEditor_SetControlIntValue }}; -// virtual void SetControlIntValue( wxPGProperty* property, wxWindow* ctrl, int value ) const; -static int LUACALL wxLua_wxPGEditor_SetControlIntValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 4); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call SetControlIntValue - self->SetControlIntValue(property, ctrl, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_SetControlStringValue[] = { &wxluatype_wxPGEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGEditor_SetControlStringValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_SetControlStringValue[1] = {{ wxLua_wxPGEditor_SetControlStringValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGEditor_SetControlStringValue }}; -// virtual void SetControlStringValue( wxPGProperty* property, wxWindow* ctrl, const wxString& txt ) const; -static int LUACALL wxLua_wxPGEditor_SetControlStringValue(lua_State *L) -{ - // const wxString txt - const wxString txt = wxlua_getwxStringtype(L, 4); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call SetControlStringValue - self->SetControlStringValue(property, ctrl, txt); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_SetItems[] = { &wxluatype_wxPGEditor, &wxluatype_wxWindow, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPGEditor_SetItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_SetItems[1] = {{ wxLua_wxPGEditor_SetItems, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditor_SetItems }}; -// %wxchkver_3_2_0 virtual void SetItems(wxWindow* ctrl, const wxArrayString& labels) const; -static int LUACALL wxLua_wxPGEditor_SetItems(lua_State *L) -{ - // const wxArrayString labels - wxLuaSmartwxArrayString labels = wxlua_getwxArrayString(L, 3); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call SetItems - self->SetItems(ctrl, labels); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_SetValueToUnspecified[] = { &wxluatype_wxPGEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGEditor_SetValueToUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_SetValueToUnspecified[1] = {{ wxLua_wxPGEditor_SetValueToUnspecified, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditor_SetValueToUnspecified }}; -// virtual void SetValueToUnspecified( wxPGProperty* property, wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGEditor_SetValueToUnspecified(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call SetValueToUnspecified - self->SetValueToUnspecified(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_UpdateControl[] = { &wxluatype_wxPGEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGEditor_UpdateControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_UpdateControl[1] = {{ wxLua_wxPGEditor_UpdateControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditor_UpdateControl }}; -// virtual void UpdateControl( wxPGProperty* property, wxWindow* ctrl ) const = 0; -static int LUACALL wxLua_wxPGEditor_UpdateControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGEditor * self = (wxPGEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditor); - // call UpdateControl - self->UpdateControl(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditor_delete[] = { &wxluatype_wxPGEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGEditor_delete }}; - - - - -void wxLua_wxPGEditor_delete_function(void** p) -{ - wxPGEditor* o = (wxPGEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGEditor_methods[] = { - { "CanContainCustomImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_CanContainCustomImage, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_CreateControls, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_DeleteItem, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "DrawValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_DrawValue, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_GetName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValueFromControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_GetValueFromControl, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_InsertItem, 1, NULL }, - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_OnEvent, 1, NULL }, - { "OnFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_OnFocus, 1, NULL }, - { "SetControlAppearance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_SetControlAppearance, 1, NULL }, - { "SetControlIntValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_SetControlIntValue, 1, NULL }, - { "SetControlStringValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_SetControlStringValue, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - { "SetItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_SetItems, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - - { "SetValueToUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_SetValueToUnspecified, 1, NULL }, - { "UpdateControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditor_UpdateControl, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGEditor_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGEditor_methodCount = sizeof(wxPGEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGTextCtrlEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGTextCtrlEditor' -int wxluatype_wxPGTextCtrlEditor = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_CreateControls[] = { &wxluatype_wxPGTextCtrlEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_CreateControls[1] = {{ wxLua_wxPGTextCtrlEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGTextCtrlEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_GetName[] = { &wxluatype_wxPGTextCtrlEditor, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_GetName[1] = {{ wxLua_wxPGTextCtrlEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGTextCtrlEditor_GetName(lua_State *L) -{ - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl[] = { &wxluatype_wxVariant, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl[1] = {{ wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl }}; -// wxWindow* ctrl ); -static int LUACALL wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 1, wxluatype_wxVariant); - // call GetTextCtrlValueFromControl - bool returns = (wxPGTextCtrlEditor::GetTextCtrlValueFromControl(*variant, property, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_GetValueFromControl[] = { &wxluatype_wxPGTextCtrlEditor, &wxluatype_wxVariant, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_GetValueFromControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_GetValueFromControl[1] = {{ wxLua_wxPGTextCtrlEditor_GetValueFromControl, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_GetValueFromControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGTextCtrlEditor_GetValueFromControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call GetValueFromControl - bool returns = (self->GetValueFromControl(*variant, property, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_OnEvent[] = { &wxluatype_wxPGTextCtrlEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_OnEvent[1] = {{ wxLua_wxPGTextCtrlEditor_OnEvent, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_OnEvent }}; -// wxEvent& event ) const; -static int LUACALL wxLua_wxPGTextCtrlEditor_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxEvent); - // wxWindow primaryCtrl - wxWindow * primaryCtrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call OnEvent - bool returns = (self->OnEvent(propgrid, property, primaryCtrl, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_OnFocus[] = { &wxluatype_wxPGTextCtrlEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_OnFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_OnFocus[1] = {{ wxLua_wxPGTextCtrlEditor_OnFocus, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_OnFocus }}; -// virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const; -static int LUACALL wxLua_wxPGTextCtrlEditor_OnFocus(lua_State *L) -{ - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call OnFocus - self->OnFocus(property, wnd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent[1] = {{ wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 4, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent }}; -// wxEvent& event ); -static int LUACALL wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 4, wxluatype_wxEvent); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call OnTextCtrlEvent - bool returns = (wxPGTextCtrlEditor::OnTextCtrlEvent(propgrid, property, ctrl, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_SetControlStringValue[] = { &wxluatype_wxPGTextCtrlEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_SetControlStringValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_SetControlStringValue[1] = {{ wxLua_wxPGTextCtrlEditor_SetControlStringValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_SetControlStringValue }}; -// const wxString& txt ) const; -static int LUACALL wxLua_wxPGTextCtrlEditor_SetControlStringValue(lua_State *L) -{ - // const wxString txt - const wxString txt = wxlua_getwxStringtype(L, 4); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call SetControlStringValue - self->SetControlStringValue(property, ctrl, txt); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_UpdateControl[] = { &wxluatype_wxPGTextCtrlEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGTextCtrlEditor_UpdateControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_UpdateControl[1] = {{ wxLua_wxPGTextCtrlEditor_UpdateControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_UpdateControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGTextCtrlEditor_UpdateControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGTextCtrlEditor * self = (wxPGTextCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlEditor); - // call UpdateControl - self->UpdateControl(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_delete[] = { &wxluatype_wxPGTextCtrlEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGTextCtrlEditor_delete }}; - -static int LUACALL wxLua_wxPGTextCtrlEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlEditor_constructor[1] = {{ wxLua_wxPGTextCtrlEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGTextCtrlEditor(); -static int LUACALL wxLua_wxPGTextCtrlEditor_constructor(lua_State *L) -{ - // call constructor - wxPGTextCtrlEditor* returns = new wxPGTextCtrlEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGTextCtrlEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGTextCtrlEditor); - - return 1; -} - - - - -void wxLua_wxPGTextCtrlEditor_delete_function(void** p) -{ - wxPGTextCtrlEditor* o = (wxPGTextCtrlEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGTextCtrlEditor_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_CreateControls, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_GetName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetTextCtrlValueFromControl", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPGTextCtrlEditor_GetTextCtrlValueFromControl, 1, NULL }, - { "GetValueFromControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_GetValueFromControl, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_OnEvent, 1, NULL }, - { "OnFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_OnFocus, 1, NULL }, - { "OnTextCtrlEvent", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPGTextCtrlEditor_OnTextCtrlEvent, 1, NULL }, - { "SetControlStringValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_SetControlStringValue, 1, NULL }, - { "UpdateControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlEditor_UpdateControl, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGTextCtrlEditor_delete, 1, NULL }, - { "wxPGTextCtrlEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGTextCtrlEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGTextCtrlEditor_methodCount = sizeof(wxPGTextCtrlEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGChoiceEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGChoiceEditor' -int wxluatype_wxPGChoiceEditor = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_CanContainCustomImage[] = { &wxluatype_wxPGChoiceEditor, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_CanContainCustomImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_CanContainCustomImage[1] = {{ wxLua_wxPGChoiceEditor_CanContainCustomImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceEditor_CanContainCustomImage }}; -// virtual bool CanContainCustomImage() const; -static int LUACALL wxLua_wxPGChoiceEditor_CanContainCustomImage(lua_State *L) -{ - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call CanContainCustomImage - bool returns = (self->CanContainCustomImage()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_CreateControls[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_CreateControls[1] = {{ wxLua_wxPGChoiceEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGChoiceEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGChoiceEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_CreateControlsBase[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_CreateControlsBase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_CreateControlsBase[1] = {{ wxLua_wxPGChoiceEditor_CreateControlsBase, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxPGChoiceEditor_CreateControlsBase }}; -// long extraStyle ) const; -static int LUACALL wxLua_wxPGChoiceEditor_CreateControlsBase(lua_State *L) -{ - // long extraStyle - long extraStyle = (long)wxlua_getnumbertype(L, 6); - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call CreateControlsBase - wxWindow* returns = (wxWindow*)self->CreateControlsBase(propgrid, property, *pos, *sz, extraStyle); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_DeleteItem[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_DeleteItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_DeleteItem[1] = {{ wxLua_wxPGChoiceEditor_DeleteItem, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoiceEditor_DeleteItem }}; -// virtual void DeleteItem( wxWindow* ctrl, int index ) const; -static int LUACALL wxLua_wxPGChoiceEditor_DeleteItem(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call DeleteItem - self->DeleteItem(ctrl, index); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_GetName[] = { &wxluatype_wxPGChoiceEditor, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_GetName[1] = {{ wxLua_wxPGChoiceEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGChoiceEditor_GetName(lua_State *L) -{ - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_GetValueFromControl[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxVariant, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_GetValueFromControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_GetValueFromControl[1] = {{ wxLua_wxPGChoiceEditor_GetValueFromControl, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGChoiceEditor_GetValueFromControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGChoiceEditor_GetValueFromControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call GetValueFromControl - bool returns = (self->GetValueFromControl(*variant, property, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_InsertItem[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_InsertItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_InsertItem[1] = {{ wxLua_wxPGChoiceEditor_InsertItem, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGChoiceEditor_InsertItem }}; -// int index ) const; -static int LUACALL wxLua_wxPGChoiceEditor_InsertItem(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 4); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 3); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call InsertItem - int returns = (self->InsertItem(ctrl, label, index)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_OnEvent[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_OnEvent[1] = {{ wxLua_wxPGChoiceEditor_OnEvent, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGChoiceEditor_OnEvent }}; -// wxEvent& event ) const; -static int LUACALL wxLua_wxPGChoiceEditor_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxEvent); - // wxWindow primaryCtrl - wxWindow * primaryCtrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call OnEvent - bool returns = (self->OnEvent(propgrid, property, primaryCtrl, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetControlIntValue[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_SetControlIntValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_SetControlIntValue[1] = {{ wxLua_wxPGChoiceEditor_SetControlIntValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetControlIntValue }}; -// int value ) const; -static int LUACALL wxLua_wxPGChoiceEditor_SetControlIntValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 4); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call SetControlIntValue - self->SetControlIntValue(property, ctrl, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetControlStringValue[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_SetControlStringValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_SetControlStringValue[1] = {{ wxLua_wxPGChoiceEditor_SetControlStringValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetControlStringValue }}; -// const wxString& txt ) const; -static int LUACALL wxLua_wxPGChoiceEditor_SetControlStringValue(lua_State *L) -{ - // const wxString txt - const wxString txt = wxlua_getwxStringtype(L, 4); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call SetControlStringValue - self->SetControlStringValue(property, ctrl, txt); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetItems[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxWindow, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_SetItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_SetItems[1] = {{ wxLua_wxPGChoiceEditor_SetItems, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetItems }}; -// %wxchkver_3_2_0 virtual void SetItems(wxWindow* ctrl, const wxArrayString& labels) const; -static int LUACALL wxLua_wxPGChoiceEditor_SetItems(lua_State *L) -{ - // const wxArrayString labels - wxLuaSmartwxArrayString labels = wxlua_getwxArrayString(L, 3); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call SetItems - self->SetItems(ctrl, labels); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetValueToUnspecified[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_SetValueToUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_SetValueToUnspecified[1] = {{ wxLua_wxPGChoiceEditor_SetValueToUnspecified, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoiceEditor_SetValueToUnspecified }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGChoiceEditor_SetValueToUnspecified(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call SetValueToUnspecified - self->SetValueToUnspecified(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_UpdateControl[] = { &wxluatype_wxPGChoiceEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGChoiceEditor_UpdateControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_UpdateControl[1] = {{ wxLua_wxPGChoiceEditor_UpdateControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoiceEditor_UpdateControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGChoiceEditor_UpdateControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGChoiceEditor * self = (wxPGChoiceEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEditor); - // call UpdateControl - self->UpdateControl(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEditor_delete[] = { &wxluatype_wxPGChoiceEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceEditor_delete }}; - -static int LUACALL wxLua_wxPGChoiceEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEditor_constructor[1] = {{ wxLua_wxPGChoiceEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGChoiceEditor(); -static int LUACALL wxLua_wxPGChoiceEditor_constructor(lua_State *L) -{ - // call constructor - wxPGChoiceEditor* returns = new wxPGChoiceEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoiceEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEditor); - - return 1; -} - - - - -void wxLua_wxPGChoiceEditor_delete_function(void** p) -{ - wxPGChoiceEditor* o = (wxPGChoiceEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGChoiceEditor_methods[] = { - { "CanContainCustomImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_CanContainCustomImage, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_CreateControls, 1, NULL }, - { "CreateControlsBase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_CreateControlsBase, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "DeleteItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_DeleteItem, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_GetName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValueFromControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_GetValueFromControl, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "InsertItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_InsertItem, 1, NULL }, - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_OnEvent, 1, NULL }, - { "SetControlIntValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_SetControlIntValue, 1, NULL }, - { "SetControlStringValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_SetControlStringValue, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - { "SetItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_SetItems, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - - { "SetValueToUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_SetValueToUnspecified, 1, NULL }, - { "UpdateControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEditor_UpdateControl, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGChoiceEditor_delete, 1, NULL }, - { "wxPGChoiceEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGChoiceEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGChoiceEditor_methodCount = sizeof(wxPGChoiceEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGComboBoxEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGComboBoxEditor' -int wxluatype_wxPGComboBoxEditor = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_CreateControls[] = { &wxluatype_wxPGComboBoxEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGComboBoxEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_CreateControls[1] = {{ wxLua_wxPGComboBoxEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGComboBoxEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGComboBoxEditor * self = (wxPGComboBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGComboBoxEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_GetName[] = { &wxluatype_wxPGComboBoxEditor, NULL }; -static int LUACALL wxLua_wxPGComboBoxEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_GetName[1] = {{ wxLua_wxPGComboBoxEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGComboBoxEditor_GetName(lua_State *L) -{ - // get this - wxPGComboBoxEditor * self = (wxPGComboBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGComboBoxEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_GetValueFromControl[] = { &wxluatype_wxPGComboBoxEditor, &wxluatype_wxVariant, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGComboBoxEditor_GetValueFromControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_GetValueFromControl[1] = {{ wxLua_wxPGComboBoxEditor_GetValueFromControl, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_GetValueFromControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGComboBoxEditor_GetValueFromControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGComboBoxEditor * self = (wxPGComboBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGComboBoxEditor); - // call GetValueFromControl - bool returns = (self->GetValueFromControl(*variant, property, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_OnEvent[] = { &wxluatype_wxPGComboBoxEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGComboBoxEditor_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_OnEvent[1] = {{ wxLua_wxPGComboBoxEditor_OnEvent, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_OnEvent }}; -// wxWindow* ctrl, wxEvent& event ) const; -static int LUACALL wxLua_wxPGComboBoxEditor_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxEvent); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGComboBoxEditor * self = (wxPGComboBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGComboBoxEditor); - // call OnEvent - bool returns = (self->OnEvent(propgrid, property, ctrl, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_OnFocus[] = { &wxluatype_wxPGComboBoxEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGComboBoxEditor_OnFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_OnFocus[1] = {{ wxLua_wxPGComboBoxEditor_OnFocus, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_OnFocus }}; -// virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const; -static int LUACALL wxLua_wxPGComboBoxEditor_OnFocus(lua_State *L) -{ - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGComboBoxEditor * self = (wxPGComboBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGComboBoxEditor); - // call OnFocus - self->OnFocus(property, wnd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_UpdateControl[] = { &wxluatype_wxPGComboBoxEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGComboBoxEditor_UpdateControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_UpdateControl[1] = {{ wxLua_wxPGComboBoxEditor_UpdateControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_UpdateControl }}; -// virtual void UpdateControl( wxPGProperty* property, wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGComboBoxEditor_UpdateControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGComboBoxEditor * self = (wxPGComboBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGComboBoxEditor); - // call UpdateControl - self->UpdateControl(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGComboBoxEditor_delete[] = { &wxluatype_wxPGComboBoxEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGComboBoxEditor_delete }}; - -static int LUACALL wxLua_wxPGComboBoxEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGComboBoxEditor_constructor[1] = {{ wxLua_wxPGComboBoxEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGComboBoxEditor(); -static int LUACALL wxLua_wxPGComboBoxEditor_constructor(lua_State *L) -{ - // call constructor - wxPGComboBoxEditor* returns = new wxPGComboBoxEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGComboBoxEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGComboBoxEditor); - - return 1; -} - - - - -void wxLua_wxPGComboBoxEditor_delete_function(void** p) -{ - wxPGComboBoxEditor* o = (wxPGComboBoxEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGComboBoxEditor_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGComboBoxEditor_CreateControls, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGComboBoxEditor_GetName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValueFromControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGComboBoxEditor_GetValueFromControl, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGComboBoxEditor_OnEvent, 1, NULL }, - { "OnFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGComboBoxEditor_OnFocus, 1, NULL }, - { "UpdateControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGComboBoxEditor_UpdateControl, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGComboBoxEditor_delete, 1, NULL }, - { "wxPGComboBoxEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGComboBoxEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGComboBoxEditor_methodCount = sizeof(wxPGComboBoxEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGChoiceAndButtonEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGChoiceAndButtonEditor' -int wxluatype_wxPGChoiceAndButtonEditor = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceAndButtonEditor_CreateControls[] = { &wxluatype_wxPGChoiceAndButtonEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGChoiceAndButtonEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_CreateControls[1] = {{ wxLua_wxPGChoiceAndButtonEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGChoiceAndButtonEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGChoiceAndButtonEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGChoiceAndButtonEditor * self = (wxPGChoiceAndButtonEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceAndButtonEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceAndButtonEditor_GetName[] = { &wxluatype_wxPGChoiceAndButtonEditor, NULL }; -static int LUACALL wxLua_wxPGChoiceAndButtonEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_GetName[1] = {{ wxLua_wxPGChoiceAndButtonEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceAndButtonEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGChoiceAndButtonEditor_GetName(lua_State *L) -{ - // get this - wxPGChoiceAndButtonEditor * self = (wxPGChoiceAndButtonEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceAndButtonEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceAndButtonEditor_delete[] = { &wxluatype_wxPGChoiceAndButtonEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceAndButtonEditor_delete }}; - -static int LUACALL wxLua_wxPGChoiceAndButtonEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_constructor[1] = {{ wxLua_wxPGChoiceAndButtonEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGChoiceAndButtonEditor(); -static int LUACALL wxLua_wxPGChoiceAndButtonEditor_constructor(lua_State *L) -{ - // call constructor - wxPGChoiceAndButtonEditor* returns = new wxPGChoiceAndButtonEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoiceAndButtonEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceAndButtonEditor); - - return 1; -} - - - - -void wxLua_wxPGChoiceAndButtonEditor_delete_function(void** p) -{ - wxPGChoiceAndButtonEditor* o = (wxPGChoiceAndButtonEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGChoiceAndButtonEditor_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_CreateControls, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_GetName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_delete, 1, NULL }, - { "wxPGChoiceAndButtonEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGChoiceAndButtonEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGChoiceAndButtonEditor_methodCount = sizeof(wxPGChoiceAndButtonEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGTextCtrlAndButtonEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGTextCtrlAndButtonEditor' -int wxluatype_wxPGTextCtrlAndButtonEditor = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlAndButtonEditor_CreateControls[] = { &wxluatype_wxPGTextCtrlAndButtonEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGTextCtrlAndButtonEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_CreateControls[1] = {{ wxLua_wxPGTextCtrlAndButtonEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGTextCtrlAndButtonEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGTextCtrlAndButtonEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGTextCtrlAndButtonEditor * self = (wxPGTextCtrlAndButtonEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlAndButtonEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlAndButtonEditor_GetName[] = { &wxluatype_wxPGTextCtrlAndButtonEditor, NULL }; -static int LUACALL wxLua_wxPGTextCtrlAndButtonEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_GetName[1] = {{ wxLua_wxPGTextCtrlAndButtonEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGTextCtrlAndButtonEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGTextCtrlAndButtonEditor_GetName(lua_State *L) -{ - // get this - wxPGTextCtrlAndButtonEditor * self = (wxPGTextCtrlAndButtonEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGTextCtrlAndButtonEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGTextCtrlAndButtonEditor_delete[] = { &wxluatype_wxPGTextCtrlAndButtonEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGTextCtrlAndButtonEditor_delete }}; - -static int LUACALL wxLua_wxPGTextCtrlAndButtonEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_constructor[1] = {{ wxLua_wxPGTextCtrlAndButtonEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGTextCtrlAndButtonEditor(); -static int LUACALL wxLua_wxPGTextCtrlAndButtonEditor_constructor(lua_State *L) -{ - // call constructor - wxPGTextCtrlAndButtonEditor* returns = new wxPGTextCtrlAndButtonEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGTextCtrlAndButtonEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGTextCtrlAndButtonEditor); - - return 1; -} - - - - -void wxLua_wxPGTextCtrlAndButtonEditor_delete_function(void** p) -{ - wxPGTextCtrlAndButtonEditor* o = (wxPGTextCtrlAndButtonEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGTextCtrlAndButtonEditor_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_CreateControls, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_GetName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_delete, 1, NULL }, - { "wxPGTextCtrlAndButtonEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGTextCtrlAndButtonEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGTextCtrlAndButtonEditor_methodCount = sizeof(wxPGTextCtrlAndButtonEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) -// --------------------------------------------------------------------------- -// Bind class wxPGCheckBoxEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGCheckBoxEditor' -int wxluatype_wxPGCheckBoxEditor = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_CreateControls[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_CreateControls[1] = {{ wxLua_wxPGCheckBoxEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_DrawValue[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_DrawValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_DrawValue[1] = {{ wxLua_wxPGCheckBoxEditor_DrawValue, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_DrawValue }}; -// const wxString& text ) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_DrawValue(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 5); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGProperty); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call DrawValue - self->DrawValue(*dc, *rect, property, text); - - return 0; -} - -#endif // ((((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_GetName[] = { &wxluatype_wxPGCheckBoxEditor, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_GetName[1] = {{ wxLua_wxPGCheckBoxEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxPGCheckBoxEditor_GetName(lua_State *L) -{ - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_GetValueFromControl[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxVariant, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_GetValueFromControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_GetValueFromControl[1] = {{ wxLua_wxPGCheckBoxEditor_GetValueFromControl, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_GetValueFromControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_GetValueFromControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call GetValueFromControl - bool returns = (self->GetValueFromControl(*variant, property, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_OnEvent[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_OnEvent[1] = {{ wxLua_wxPGCheckBoxEditor_OnEvent, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_OnEvent }}; -// wxEvent& event ) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxEvent); - // wxWindow primaryCtrl - wxWindow * primaryCtrl = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call OnEvent - bool returns = (self->OnEvent(propgrid, property, primaryCtrl, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_SetControlIntValue[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_SetControlIntValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_SetControlIntValue[1] = {{ wxLua_wxPGCheckBoxEditor_SetControlIntValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_SetControlIntValue }}; -// int value ) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_SetControlIntValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 4); - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call SetControlIntValue - self->SetControlIntValue(property, ctrl, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_SetValueToUnspecified[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_SetValueToUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_SetValueToUnspecified[1] = {{ wxLua_wxPGCheckBoxEditor_SetValueToUnspecified, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_SetValueToUnspecified }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_SetValueToUnspecified(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call SetValueToUnspecified - self->SetValueToUnspecified(property, ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_UpdateControl[] = { &wxluatype_wxPGCheckBoxEditor, &wxluatype_wxPGProperty, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxPGCheckBoxEditor_UpdateControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_UpdateControl[1] = {{ wxLua_wxPGCheckBoxEditor_UpdateControl, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_UpdateControl }}; -// wxWindow* ctrl ) const; -static int LUACALL wxLua_wxPGCheckBoxEditor_UpdateControl(lua_State *L) -{ - // wxWindow ctrl - wxWindow * ctrl = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGCheckBoxEditor * self = (wxPGCheckBoxEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCheckBoxEditor); - // call UpdateControl - self->UpdateControl(property, ctrl); - - return 0; -} - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_delete[] = { &wxluatype_wxPGCheckBoxEditor, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGCheckBoxEditor_delete }}; - -static int LUACALL wxLua_wxPGCheckBoxEditor_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCheckBoxEditor_constructor[1] = {{ wxLua_wxPGCheckBoxEditor_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGCheckBoxEditor(); -static int LUACALL wxLua_wxPGCheckBoxEditor_constructor(lua_State *L) -{ - // call constructor - wxPGCheckBoxEditor* returns = new wxPGCheckBoxEditor(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGCheckBoxEditor); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCheckBoxEditor); - - return 1; -} - - - - -void wxLua_wxPGCheckBoxEditor_delete_function(void** p) -{ - wxPGCheckBoxEditor* o = (wxPGCheckBoxEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGCheckBoxEditor_methods[] = { -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_CreateControls, 1, NULL }, -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "DrawValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_DrawValue, 1, NULL }, -#endif // ((((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_GetName, 1, NULL }, - -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "GetValueFromControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_GetValueFromControl, 1, NULL }, -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_OnEvent, 1, NULL }, - { "SetControlIntValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_SetControlIntValue, 1, NULL }, - { "SetValueToUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_SetValueToUnspecified, 1, NULL }, - { "UpdateControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCheckBoxEditor_UpdateControl, 1, NULL }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGCheckBoxEditor_delete, 1, NULL }, - { "wxPGCheckBoxEditor", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGCheckBoxEditor_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGCheckBoxEditor_methodCount = sizeof(wxPGCheckBoxEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGEditorDialogAdapter -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGEditorDialogAdapter' -int wxluatype_wxPGEditorDialogAdapter = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_DoShowDialog[] = { &wxluatype_wxPGEditorDialogAdapter, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGEditorDialogAdapter_DoShowDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditorDialogAdapter_DoShowDialog[1] = {{ wxLua_wxPGEditorDialogAdapter_DoShowDialog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_DoShowDialog }}; -// wxPGProperty* property ) = 0; -static int LUACALL wxLua_wxPGEditorDialogAdapter_DoShowDialog(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propGrid - wxPropertyGrid * propGrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGEditorDialogAdapter * self = (wxPGEditorDialogAdapter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditorDialogAdapter); - // call DoShowDialog - bool returns = (self->DoShowDialog(propGrid, property)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_GetValue[] = { &wxluatype_wxPGEditorDialogAdapter, NULL }; -static int LUACALL wxLua_wxPGEditorDialogAdapter_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditorDialogAdapter_GetValue[1] = {{ wxLua_wxPGEditorDialogAdapter_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_GetValue }}; -// wxVariant& GetValue(); -static int LUACALL wxLua_wxPGEditorDialogAdapter_GetValue(lua_State *L) -{ - // get this - wxPGEditorDialogAdapter * self = (wxPGEditorDialogAdapter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditorDialogAdapter); - // call GetValue - wxVariant* returns = (wxVariant*)&self->GetValue(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_SetValue[] = { &wxluatype_wxPGEditorDialogAdapter, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGEditorDialogAdapter_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditorDialogAdapter_SetValue[1] = {{ wxLua_wxPGEditorDialogAdapter_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_SetValue }}; -// void SetValue( const wxVariant& value ); -static int LUACALL wxLua_wxPGEditorDialogAdapter_SetValue(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGEditorDialogAdapter * self = (wxPGEditorDialogAdapter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditorDialogAdapter); - // call SetValue - self->SetValue(*value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_ShowDialog[] = { &wxluatype_wxPGEditorDialogAdapter, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGEditorDialogAdapter_ShowDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditorDialogAdapter_ShowDialog[1] = {{ wxLua_wxPGEditorDialogAdapter_ShowDialog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_ShowDialog }}; -// bool ShowDialog( wxPropertyGrid* propGrid, wxPGProperty* property ); -static int LUACALL wxLua_wxPGEditorDialogAdapter_ShowDialog(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propGrid - wxPropertyGrid * propGrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGEditorDialogAdapter * self = (wxPGEditorDialogAdapter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGEditorDialogAdapter); - // call ShowDialog - bool returns = (self->ShowDialog(propGrid, property)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_delete[] = { &wxluatype_wxPGEditorDialogAdapter, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGEditorDialogAdapter_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGEditorDialogAdapter_delete }}; - - - - -void wxLua_wxPGEditorDialogAdapter_delete_function(void** p) -{ - wxPGEditorDialogAdapter* o = (wxPGEditorDialogAdapter*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGEditorDialogAdapter_methods[] = { - { "DoShowDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditorDialogAdapter_DoShowDialog, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditorDialogAdapter_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditorDialogAdapter_SetValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "ShowDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGEditorDialogAdapter_ShowDialog, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGEditorDialogAdapter_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGEditorDialogAdapter_methodCount = sizeof(wxPGEditorDialogAdapter_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGMultiButton -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGMultiButton' -int wxluatype_wxPGMultiButton = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_Add1[] = { &wxluatype_wxPGMultiButton, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGMultiButton_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_Add1[1] = {{ wxLua_wxPGMultiButton_Add1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGMultiButton_Add1 }}; -// void Add( const wxBitmap& bitmap, int id = -2 ); -static int LUACALL wxLua_wxPGMultiButton_Add1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = -2 - int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -2); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call Add - self->Add(*bitmap, id); - - return 0; -} - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_Add[] = { &wxluatype_wxPGMultiButton, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGMultiButton_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_Add[1] = {{ wxLua_wxPGMultiButton_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGMultiButton_Add }}; -// void Add( const wxString& label, int id = -2 ); -static int LUACALL wxLua_wxPGMultiButton_Add(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = -2 - int id = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call Add - self->Add(label, id); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_Finalize[] = { &wxluatype_wxPGMultiButton, &wxluatype_wxPropertyGrid, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPGMultiButton_Finalize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_Finalize[1] = {{ wxLua_wxPGMultiButton_Finalize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGMultiButton_Finalize }}; -// void Finalize( wxPropertyGrid* propGrid, const wxPoint& pos ); -static int LUACALL wxLua_wxPGMultiButton_Finalize(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxPropertyGrid propGrid - wxPropertyGrid * propGrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call Finalize - self->Finalize(propGrid, *pos); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_GetButton1[] = { &wxluatype_wxPGMultiButton, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGMultiButton_GetButton1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_GetButton1[1] = {{ wxLua_wxPGMultiButton_GetButton1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGMultiButton_GetButton1 }}; -// const wxWindow* GetButton( unsigned int i ) const; -static int LUACALL wxLua_wxPGMultiButton_GetButton1(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call GetButton - const wxWindow* returns = (const wxWindow*)self->GetButton(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_GetButton[] = { &wxluatype_wxPGMultiButton, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGMultiButton_GetButton(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_GetButton[1] = {{ wxLua_wxPGMultiButton_GetButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGMultiButton_GetButton }}; -// wxWindow* GetButton( unsigned int i ); -static int LUACALL wxLua_wxPGMultiButton_GetButton(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call GetButton - wxWindow* returns = (wxWindow*)self->GetButton(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_GetButtonId[] = { &wxluatype_wxPGMultiButton, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGMultiButton_GetButtonId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_GetButtonId[1] = {{ wxLua_wxPGMultiButton_GetButtonId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGMultiButton_GetButtonId }}; -// int GetButtonId( unsigned int i ) const; -static int LUACALL wxLua_wxPGMultiButton_GetButtonId(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call GetButtonId - int returns = (self->GetButtonId(i)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_GetCount[] = { &wxluatype_wxPGMultiButton, NULL }; -static int LUACALL wxLua_wxPGMultiButton_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_GetCount[1] = {{ wxLua_wxPGMultiButton_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGMultiButton_GetCount }}; -// unsigned int GetCount() const; -static int LUACALL wxLua_wxPGMultiButton_GetCount(lua_State *L) -{ - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_GetPrimarySize[] = { &wxluatype_wxPGMultiButton, NULL }; -static int LUACALL wxLua_wxPGMultiButton_GetPrimarySize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_GetPrimarySize[1] = {{ wxLua_wxPGMultiButton_GetPrimarySize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGMultiButton_GetPrimarySize }}; -// wxSize GetPrimarySize() const; -static int LUACALL wxLua_wxPGMultiButton_GetPrimarySize(lua_State *L) -{ - // get this - wxPGMultiButton * self = (wxPGMultiButton *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGMultiButton); - // call GetPrimarySize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetPrimarySize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_delete[] = { &wxluatype_wxPGMultiButton, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGMultiButton_delete }}; - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGMultiButton_constructor[] = { &wxluatype_wxPropertyGrid, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGMultiButton_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_constructor[1] = {{ wxLua_wxPGMultiButton_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxPGMultiButton_constructor }}; -// wxPGMultiButton( wxPropertyGrid* pg, const wxSize& sz ); -static int LUACALL wxLua_wxPGMultiButton_constructor(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // wxPropertyGrid pg - wxPropertyGrid * pg = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGrid); - // call constructor - wxPGMultiButton* returns = new wxPGMultiButton(pg, *sz); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGMultiButton); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGMultiButton); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_Add_overload[] = -{ - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap) - { wxLua_wxPGMultiButton_Add1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGMultiButton_Add1 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap) - { wxLua_wxPGMultiButton_Add, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGMultiButton_Add }, -}; -static int s_wxluafunc_wxLua_wxPGMultiButton_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxPGMultiButton_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGMultiButton_GetButton_overload[] = -{ - { wxLua_wxPGMultiButton_GetButton1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGMultiButton_GetButton1 }, - { wxLua_wxPGMultiButton_GetButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGMultiButton_GetButton }, -}; -static int s_wxluafunc_wxLua_wxPGMultiButton_GetButton_overload_count = sizeof(s_wxluafunc_wxLua_wxPGMultiButton_GetButton_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPGMultiButton_delete_function(void** p) -{ - wxPGMultiButton* o = (wxPGMultiButton*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGMultiButton_methods[] = { -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGMultiButton_Add_overload, s_wxluafunc_wxLua_wxPGMultiButton_Add_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_BMPBUTTON)) && (wxLUA_USE_wxBitmap))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Finalize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGMultiButton_Finalize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGMultiButton_GetButton_overload, s_wxluafunc_wxLua_wxPGMultiButton_GetButton_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetButtonId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGMultiButton_GetButtonId, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGMultiButton_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPrimarySize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGMultiButton_GetPrimarySize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGMultiButton_delete, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPGMultiButton", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGMultiButton_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGMultiButton_methodCount = sizeof(wxPGMultiButton_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxColourPropertyValue -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourPropertyValue' -int wxluatype_wxColourPropertyValue = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_Get_m_colour[] = { &wxluatype_wxColourPropertyValue, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_Get_m_colour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_Get_m_colour[1] = {{ wxLua_wxColourPropertyValue_Get_m_colour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_Get_m_colour }}; -// wxColour m_colour; -static int LUACALL wxLua_wxColourPropertyValue_Get_m_colour(lua_State *L) -{ - // get this - wxColourPropertyValue *self = (wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_colour, wxluatype_wxColour); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_Get_m_type[] = { &wxluatype_wxColourPropertyValue, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_Get_m_type(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_Get_m_type[1] = {{ wxLua_wxColourPropertyValue_Get_m_type, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_Get_m_type }}; -// wxUint32 m_type; -static int LUACALL wxLua_wxColourPropertyValue_Get_m_type(lua_State *L) -{ - // get this - wxColourPropertyValue *self = (wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_type) == (double)(self->m_type)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_type); -} else -#endif -{ - lua_pushnumber(L, self->m_type); -} - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_Init[] = { &wxluatype_wxColourPropertyValue, &wxluatype_TINTEGER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_Init[1] = {{ wxLua_wxColourPropertyValue_Init, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxColourPropertyValue_Init }}; -// void Init( wxUint32 type, const wxColour& colour ); -static int LUACALL wxLua_wxColourPropertyValue_Init(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // wxUint32 type - wxUint32 type = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxColourPropertyValue * self = (wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - // call Init - self->Init(type, *colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_Set_m_colour[] = { &wxluatype_wxColourPropertyValue, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_Set_m_colour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_Set_m_colour[1] = {{ wxLua_wxColourPropertyValue_Set_m_colour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPropertyValue_Set_m_colour }}; -// wxColour m_colour; -static int LUACALL wxLua_wxColourPropertyValue_Set_m_colour(lua_State *L) -{ - // get the data type value - wxColour* val = (wxColour*)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxColourPropertyValue *self = (wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - self->m_colour = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_Set_m_type[] = { &wxluatype_wxColourPropertyValue, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_Set_m_type(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_Set_m_type[1] = {{ wxLua_wxColourPropertyValue_Set_m_type, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPropertyValue_Set_m_type }}; -// wxUint32 m_type; -static int LUACALL wxLua_wxColourPropertyValue_Set_m_type(lua_State *L) -{ - // get the unsigned integer value - wxUint32 val = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxColourPropertyValue *self = (wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - self->m_type = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_delete[] = { &wxluatype_wxColourPropertyValue, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_delete }}; - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_op_set[] = { &wxluatype_wxColourPropertyValue, &wxluatype_wxColourPropertyValue, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_op_set[1] = {{ wxLua_wxColourPropertyValue_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourPropertyValue_op_set }}; -// void operator=(const wxColourPropertyValue& cpv); -static int LUACALL wxLua_wxColourPropertyValue_op_set(lua_State *L) -{ - // const wxColourPropertyValue cpv - const wxColourPropertyValue * cpv = (const wxColourPropertyValue *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColourPropertyValue); - // get this - wxColourPropertyValue * self = (wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - // call op_set - (*self)=(*cpv); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor4[] = { &wxluatype_TINTEGER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_constructor4[1] = {{ wxLua_wxColourPropertyValue_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor4 }}; -// wxColourPropertyValue( wxUint32 type, const wxColour& colour ); -static int LUACALL wxLua_wxColourPropertyValue_constructor4(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // wxUint32 type - wxUint32 type = (wxUint32)wxlua_getuintegertype(L, 1); - // call constructor - wxColourPropertyValue* returns = new wxColourPropertyValue(type, *colour); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPropertyValue); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPropertyValue); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor3[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_constructor3[1] = {{ wxLua_wxColourPropertyValue_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor3 }}; -// wxColourPropertyValue( wxUint32 type ); -static int LUACALL wxLua_wxColourPropertyValue_constructor3(lua_State *L) -{ - // wxUint32 type - wxUint32 type = (wxUint32)wxlua_getuintegertype(L, 1); - // call constructor - wxColourPropertyValue* returns = new wxColourPropertyValue(type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPropertyValue); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPropertyValue); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor2[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_constructor2[1] = {{ wxLua_wxColourPropertyValue_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor2 }}; -// wxColourPropertyValue( const wxColour& colour ); -static int LUACALL wxLua_wxColourPropertyValue_constructor2(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call constructor - wxColourPropertyValue* returns = new wxColourPropertyValue(*colour); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPropertyValue); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPropertyValue); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor1[] = { &wxluatype_wxColourPropertyValue, NULL }; -static int LUACALL wxLua_wxColourPropertyValue_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_constructor1[1] = {{ wxLua_wxColourPropertyValue_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor1 }}; -// wxColourPropertyValue( const wxColourPropertyValue& v ); -static int LUACALL wxLua_wxColourPropertyValue_constructor1(lua_State *L) -{ - // const wxColourPropertyValue v - const wxColourPropertyValue * v = (const wxColourPropertyValue *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourPropertyValue); - // call constructor - wxColourPropertyValue* returns = new wxColourPropertyValue(*v); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPropertyValue); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPropertyValue); - - return 1; -} - -static int LUACALL wxLua_wxColourPropertyValue_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_constructor[1] = {{ wxLua_wxColourPropertyValue_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxColourPropertyValue(); -static int LUACALL wxLua_wxColourPropertyValue_constructor(lua_State *L) -{ - // call constructor - wxColourPropertyValue* returns = new wxColourPropertyValue(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPropertyValue); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPropertyValue); - - return 1; -} - - - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourPropertyValue_constructor_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxColourPropertyValue_constructor4, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor4 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxColourPropertyValue_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor3 }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxColourPropertyValue_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor2 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxColourPropertyValue_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxColourPropertyValue_constructor1 }, - { wxLua_wxColourPropertyValue_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxColourPropertyValue_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxColourPropertyValue_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxColourPropertyValue_delete_function(void** p) -{ - wxColourPropertyValue* o = (wxColourPropertyValue*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourPropertyValue_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - // %member { "Get_m_colour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPropertyValue_Get_m_colour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - // %member { "Get_m_type", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPropertyValue_Get_m_type, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPropertyValue_Init, 1, NULL }, - // %member { "Set_m_colour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPropertyValue_Set_m_colour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - // %member { "Set_m_type", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPropertyValue_Set_m_type, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxColourPropertyValue_delete, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "m_colour", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxColourPropertyValue_Set_m_colour, 1, NULL }, - { "m_colour", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxColourPropertyValue_Get_m_colour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "m_type", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxColourPropertyValue_Set_m_type, 1, NULL }, - { "m_type", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxColourPropertyValue_Get_m_type, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourPropertyValue_op_set, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxColourPropertyValue", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourPropertyValue_constructor_overload, s_wxluafunc_wxLua_wxColourPropertyValue_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxColourPropertyValue_methodCount = sizeof(wxColourPropertyValue_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxEditorDialogProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEditorDialogProperty' -int wxluatype_wxEditorDialogProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEditorDialogProperty_DoSetAttribute[] = { &wxluatype_wxEditorDialogProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxEditorDialogProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEditorDialogProperty_DoSetAttribute[1] = {{ wxLua_wxEditorDialogProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxEditorDialogProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxEditorDialogProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxEditorDialogProperty * self = (wxEditorDialogProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEditorDialogProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEditorDialogProperty_GetEditorDialog[] = { &wxluatype_wxEditorDialogProperty, NULL }; -static int LUACALL wxLua_wxEditorDialogProperty_GetEditorDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEditorDialogProperty_GetEditorDialog[1] = {{ wxLua_wxEditorDialogProperty_GetEditorDialog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEditorDialogProperty_GetEditorDialog }}; -// virtual wxPGEditorDialogAdapter* GetEditorDialog() const; -static int LUACALL wxLua_wxEditorDialogProperty_GetEditorDialog(lua_State *L) -{ - // get this - wxEditorDialogProperty * self = (wxEditorDialogProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEditorDialogProperty); - // call GetEditorDialog - wxPGEditorDialogAdapter* returns = (wxPGEditorDialogAdapter*)self->GetEditorDialog(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditorDialogAdapter); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -void wxLua_wxEditorDialogProperty_delete_function(void** p) -{ - wxEditorDialogProperty* o = (wxEditorDialogProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEditorDialogProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEditorDialogProperty_DoSetAttribute, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetEditorDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEditorDialogProperty_GetEditorDialog, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxEditorDialogProperty_methodCount = sizeof(wxEditorDialogProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxFontProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFontProperty' -int wxluatype_wxFontProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontProperty_ChildChanged[] = { &wxluatype_wxFontProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxFontProperty_ChildChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontProperty_ChildChanged[1] = {{ wxLua_wxFontProperty_ChildChanged, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxFontProperty_ChildChanged }}; -// wxVariant& childValue ) const; -static int LUACALL wxLua_wxFontProperty_ChildChanged(lua_State *L) -{ - // wxVariant childValue - wxVariant * childValue = (wxVariant *)wxluaT_getuserdatatype(L, 4, wxluatype_wxVariant); - // int childIndex - int childIndex = (int)wxlua_getnumbertype(L, 3); - // wxVariant thisValue - wxVariant * thisValue = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFontProperty * self = (wxFontProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontProperty); - // call ChildChanged - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->ChildChanged(*thisValue, childIndex, *childValue)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontProperty_OnSetValue[] = { &wxluatype_wxFontProperty, NULL }; -static int LUACALL wxLua_wxFontProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontProperty_OnSetValue[1] = {{ wxLua_wxFontProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxFontProperty_OnSetValue(lua_State *L) -{ - // get this - wxFontProperty * self = (wxFontProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontProperty_RefreshChildren[] = { &wxluatype_wxFontProperty, NULL }; -static int LUACALL wxLua_wxFontProperty_RefreshChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontProperty_RefreshChildren[1] = {{ wxLua_wxFontProperty_RefreshChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFontProperty_RefreshChildren }}; -// virtual void RefreshChildren(); -static int LUACALL wxLua_wxFontProperty_RefreshChildren(lua_State *L) -{ - // get this - wxFontProperty * self = (wxFontProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontProperty); - // call RefreshChildren - self->RefreshChildren(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontProperty_ValueToString[] = { &wxluatype_wxFontProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFontProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontProperty_ValueToString[1] = {{ wxLua_wxFontProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFontProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxFontProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFontProperty * self = (wxFontProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFontProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFontProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxFontProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFontProperty_constructor[1] = {{ wxLua_wxFontProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxFontProperty_constructor }}; -// wxFont value = wxFont()); -static int LUACALL wxLua_wxFontProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFont value = wxFont() - wxFont value = (argCount >= 3 ? *(wxFont*)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont) : wxFont()); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxFontProperty* returns = new wxFontProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFontProperty); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFont) - - - -void wxLua_wxFontProperty_delete_function(void** p) -{ - wxFontProperty* o = (wxFontProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFontProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ChildChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontProperty_ChildChanged, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontProperty_OnSetValue, 1, NULL }, - { "RefreshChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontProperty_RefreshChildren, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFont) - { "wxFontProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontProperty_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFont) - - { 0, 0, 0, 0 }, -}; - -int wxFontProperty_methodCount = sizeof(wxFontProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxMultiChoiceProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxMultiChoiceProperty' -int wxluatype_wxMultiChoiceProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_GetValueAsArrayInt[] = { &wxluatype_wxMultiChoiceProperty, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_GetValueAsArrayInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_GetValueAsArrayInt[1] = {{ wxLua_wxMultiChoiceProperty_GetValueAsArrayInt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_GetValueAsArrayInt }}; -// wxArrayInt GetValueAsArrayInt() const; -static int LUACALL wxLua_wxMultiChoiceProperty_GetValueAsArrayInt(lua_State *L) -{ - // get this - wxMultiChoiceProperty * self = (wxMultiChoiceProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMultiChoiceProperty); - // call GetValueAsArrayInt - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetValueAsArrayInt()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_OnSetValue[] = { &wxluatype_wxMultiChoiceProperty, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_OnSetValue[1] = {{ wxLua_wxMultiChoiceProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxMultiChoiceProperty_OnSetValue(lua_State *L) -{ - // get this - wxMultiChoiceProperty * self = (wxMultiChoiceProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMultiChoiceProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_StringToValue[] = { &wxluatype_wxMultiChoiceProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_StringToValue[1] = {{ wxLua_wxMultiChoiceProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_StringToValue }}; -// int argFlags = 0) const; -static int LUACALL wxLua_wxMultiChoiceProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxMultiChoiceProperty * self = (wxMultiChoiceProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMultiChoiceProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_ValueToString[] = { &wxluatype_wxMultiChoiceProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_ValueToString[1] = {{ wxLua_wxMultiChoiceProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxMultiChoiceProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxMultiChoiceProperty * self = (wxMultiChoiceProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxMultiChoiceProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor2[1] = {{ wxLua_wxMultiChoiceProperty_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor2 }}; -// const wxArrayString& value = wxLuaNullSmartwxArrayString ); -static int LUACALL wxLua_wxMultiChoiceProperty_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxArrayString value = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString value = (argCount >= 3 ? wxlua_getwxArrayString(L, 3) : wxLuaNullSmartwxArrayString); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxMultiChoiceProperty* returns = new wxMultiChoiceProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMultiChoiceProperty); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPGChoices, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor1[1] = {{ wxLua_wxMultiChoiceProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor1 }}; -// const wxArrayString& value = wxLuaNullSmartwxArrayString ); -static int LUACALL wxLua_wxMultiChoiceProperty_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxArrayString value = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString value = (argCount >= 4 ? wxlua_getwxArrayString(L, 4) : wxLuaNullSmartwxArrayString); - // const wxPGChoices choices - const wxPGChoices * choices = (const wxPGChoices *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGChoices); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxMultiChoiceProperty* returns = new wxMultiChoiceProperty(label, name, *choices, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMultiChoiceProperty); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxMultiChoiceProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor[1] = {{ wxLua_wxMultiChoiceProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor }}; -// const wxArrayString& value ); -static int LUACALL wxLua_wxMultiChoiceProperty_constructor(lua_State *L) -{ - // const wxArrayString value - wxLuaSmartwxArrayString value = wxlua_getwxArrayString(L, 4); - // const wxArrayString strings - wxLuaSmartwxArrayString strings = wxlua_getwxArrayString(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxMultiChoiceProperty* returns = new wxMultiChoiceProperty(label, name, strings, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMultiChoiceProperty); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - - - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - { wxLua_wxMultiChoiceProperty_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor2 }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxMultiChoiceProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor1 }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - { wxLua_wxMultiChoiceProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxMultiChoiceProperty_constructor }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -}; -static int s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -void wxLua_wxMultiChoiceProperty_delete_function(void** p) -{ - wxMultiChoiceProperty* o = (wxMultiChoiceProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxMultiChoiceProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayInt) - { "GetValueAsArrayInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMultiChoiceProperty_GetValueAsArrayInt, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayInt) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMultiChoiceProperty_OnSetValue, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMultiChoiceProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxMultiChoiceProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "wxMultiChoiceProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor_overload, s_wxluafunc_wxLua_wxMultiChoiceProperty_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { 0, 0, 0, 0 }, -}; - -int wxMultiChoiceProperty_methodCount = sizeof(wxMultiChoiceProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxFileProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFileProperty' -int wxluatype_wxFileProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_DoGetValidator[] = { &wxluatype_wxFileProperty, NULL }; -static int LUACALL wxLua_wxFileProperty_DoGetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_DoGetValidator[1] = {{ wxLua_wxFileProperty_DoGetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileProperty_DoGetValidator }}; -// virtual wxValidator* DoGetValidator() const; -static int LUACALL wxLua_wxFileProperty_DoGetValidator(lua_State *L) -{ - // get this - wxFileProperty * self = (wxFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileProperty); - // call DoGetValidator - wxValidator* returns = (wxValidator*)self->DoGetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_DoSetAttribute[] = { &wxluatype_wxFileProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxFileProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_DoSetAttribute[1] = {{ wxLua_wxFileProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFileProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxFileProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxFileProperty * self = (wxFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static int LUACALL wxLua_wxFileProperty_GetClassValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_GetClassValidator[1] = {{ wxLua_wxFileProperty_GetClassValidator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxValidator* GetClassValidator(); -static int LUACALL wxLua_wxFileProperty_GetClassValidator(lua_State *L) -{ - // call GetClassValidator - wxValidator* returns = (wxValidator*)wxFileProperty::GetClassValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFileName) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_GetFileName[] = { &wxluatype_wxFileProperty, NULL }; -static int LUACALL wxLua_wxFileProperty_GetFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_GetFileName[1] = {{ wxLua_wxFileProperty_GetFileName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileProperty_GetFileName }}; -// wxFileName GetFileName() const; -static int LUACALL wxLua_wxFileProperty_GetFileName(lua_State *L) -{ - // get this - wxFileProperty * self = (wxFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileProperty); - // call GetFileName - // allocate a new object using the copy constructor - wxFileName* returns = new wxFileName(self->GetFileName()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFileName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileName); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFileName) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_OnSetValue[] = { &wxluatype_wxFileProperty, NULL }; -static int LUACALL wxLua_wxFileProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_OnSetValue[1] = {{ wxLua_wxFileProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFileProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxFileProperty_OnSetValue(lua_State *L) -{ - // get this - wxFileProperty * self = (wxFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_StringToValue[] = { &wxluatype_wxFileProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_StringToValue[1] = {{ wxLua_wxFileProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxFileProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxFileProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFileProperty * self = (wxFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_ValueToString[] = { &wxluatype_wxFileProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFileProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_ValueToString[1] = {{ wxLua_wxFileProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFileProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxFileProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFileProperty * self = (wxFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFileProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFileProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxFileProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileProperty_constructor[1] = {{ wxLua_wxFileProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxFileProperty_constructor }}; -// const wxString& value = wxEmptyString ); -static int LUACALL wxLua_wxFileProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxFileProperty* returns = new wxFileProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFileProperty); - - return 1; -} - - - - -void wxLua_wxFileProperty_delete_function(void** p) -{ - wxFileProperty* o = (wxFileProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFileProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "DoGetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileProperty_DoGetValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileProperty_DoSetAttribute, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "GetClassValidator", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFileProperty_GetClassValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFileName) - { "GetFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileProperty_GetFileName, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxFileName) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileProperty_OnSetValue, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "wxFileProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFileProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFileProperty_methodCount = sizeof(wxFileProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxLongStringProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLongStringProperty' -int wxluatype_wxLongStringProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongStringProperty_StringToValue[] = { &wxluatype_wxLongStringProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLongStringProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongStringProperty_StringToValue[1] = {{ wxLua_wxLongStringProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxLongStringProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxLongStringProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxLongStringProperty * self = (wxLongStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongStringProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongStringProperty_ValueToString[] = { &wxluatype_wxLongStringProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLongStringProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongStringProperty_ValueToString[1] = {{ wxLua_wxLongStringProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLongStringProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxLongStringProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxLongStringProperty * self = (wxLongStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLongStringProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLongStringProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLongStringProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLongStringProperty_constructor[1] = {{ wxLua_wxLongStringProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxLongStringProperty_constructor }}; -// const wxString& value = wxEmptyString ); -static int LUACALL wxLua_wxLongStringProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxLongStringProperty* returns = new wxLongStringProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongStringProperty); - - return 1; -} - - - - -void wxLua_wxLongStringProperty_delete_function(void** p) -{ - wxLongStringProperty* o = (wxLongStringProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLongStringProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongStringProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLongStringProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "wxLongStringProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLongStringProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxLongStringProperty_methodCount = sizeof(wxLongStringProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxDirProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDirProperty' -int wxluatype_wxDirProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirProperty_DoGetValidator[] = { &wxluatype_wxDirProperty, NULL }; -static int LUACALL wxLua_wxDirProperty_DoGetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirProperty_DoGetValidator[1] = {{ wxLua_wxDirProperty_DoGetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDirProperty_DoGetValidator }}; -// virtual wxValidator* DoGetValidator() const; -static int LUACALL wxLua_wxDirProperty_DoGetValidator(lua_State *L) -{ - // get this - wxDirProperty * self = (wxDirProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirProperty); - // call DoGetValidator - wxValidator* returns = (wxValidator*)self->DoGetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirProperty_StringToValue[] = { &wxluatype_wxDirProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDirProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirProperty_StringToValue[1] = {{ wxLua_wxDirProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxDirProperty_StringToValue }}; -// int argFlags = 0) const; -static int LUACALL wxLua_wxDirProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxDirProperty * self = (wxDirProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirProperty_ValueToString[] = { &wxluatype_wxDirProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDirProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirProperty_ValueToString[1] = {{ wxLua_wxDirProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDirProperty_ValueToString }}; -// virtual wxString ValueToString(wxVariant& value, int argFlags = 0) const; -static int LUACALL wxLua_wxDirProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxDirProperty * self = (wxDirProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDirProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDirProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDirProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirProperty_constructor[1] = {{ wxLua_wxDirProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxDirProperty_constructor }}; -// const wxString& value = wxEmptyString ); -static int LUACALL wxLua_wxDirProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxDirProperty* returns = new wxDirProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDirProperty); - - return 1; -} - - - - -void wxLua_wxDirProperty_delete_function(void** p) -{ - wxDirProperty* o = (wxDirProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDirProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "DoGetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirProperty_DoGetValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "wxDirProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDirProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxDirProperty_methodCount = sizeof(wxDirProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxArrayStringProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxArrayStringProperty' -int wxluatype_wxArrayStringProperty = WXLUA_TUNKNOWN; - -#if ((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_ArrayStringToString1[] = { &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_ArrayStringToString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString1[1] = {{ wxLua_wxArrayStringProperty_ArrayStringToString1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 4, s_wxluatypeArray_wxLua_wxArrayStringProperty_ArrayStringToString1 }}; -// !%wxchkver_3_1_6 static void ArrayStringToString( wxString& dst, const wxArrayString& src, wxUniChar delimiter, int flags ); -static int LUACALL wxLua_wxArrayStringProperty_ArrayStringToString1(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 4); - // wxUniChar delimiter - wxUniChar delimiter = wxlua_getwxUniChartype(L, 3); - // const wxArrayString src - wxLuaSmartwxArrayString src = wxlua_getwxArrayString(L, 2); - // wxString dst - wxString dst = wxlua_getwxStringtype(L, 1); - // call ArrayStringToString - wxArrayStringProperty::ArrayStringToString(dst, src, delimiter, flags); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_ArrayStringToString[] = { &wxluatype_wxArrayString, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_ArrayStringToString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString[1] = {{ wxLua_wxArrayStringProperty_ArrayStringToString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxArrayStringProperty_ArrayStringToString }}; -// %wxchkver_3_1_6 static wxString ArrayStringToString(const wxArrayString& src, wxUniChar delimiter, int flags); -static int LUACALL wxLua_wxArrayStringProperty_ArrayStringToString(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // wxUniChar delimiter - wxUniChar delimiter = wxlua_getwxUniChartype(L, 2); - // const wxArrayString src - wxLuaSmartwxArrayString src = wxlua_getwxArrayString(L, 1); - // call ArrayStringToString - wxString returns = (wxArrayStringProperty::ArrayStringToString(src, delimiter, flags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_ConvertArrayToString[] = { &wxluatype_wxArrayStringProperty, &wxluatype_wxArrayString, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_ConvertArrayToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_ConvertArrayToString[1] = {{ wxLua_wxArrayStringProperty_ConvertArrayToString, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxArrayStringProperty_ConvertArrayToString }}; -// const wxUniChar& delimiter) const; -static int LUACALL wxLua_wxArrayStringProperty_ConvertArrayToString(lua_State *L) -{ - // const wxUniChar delimiter - const wxUniChar * delimiter = (const wxUniChar *)wxlua_touserdata(L, 4); - // wxString pString - wxString * pString = (wxString *)wxlua_touserdata(L, 3); - // const wxArrayString arr - wxLuaSmartwxArrayString arr = wxlua_getwxArrayString(L, 2); - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call ConvertArrayToString - self->ConvertArrayToString(arr, pString, *delimiter); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_CreateEditorDialog[] = { &wxluatype_wxArrayStringProperty, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_CreateEditorDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_CreateEditorDialog[1] = {{ wxLua_wxArrayStringProperty_CreateEditorDialog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayStringProperty_CreateEditorDialog }}; -// virtual wxPGArrayEditorDialog* CreateEditorDialog(); -static int LUACALL wxLua_wxArrayStringProperty_CreateEditorDialog(lua_State *L) -{ - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call CreateEditorDialog - wxPGArrayEditorDialog* returns = (wxPGArrayEditorDialog*)self->CreateEditorDialog(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGArrayEditorDialog); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_DoSetAttribute[] = { &wxluatype_wxArrayStringProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_DoSetAttribute[1] = {{ wxLua_wxArrayStringProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxArrayStringProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxArrayStringProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_OnCustomStringEdit[] = { &wxluatype_wxArrayStringProperty, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_OnCustomStringEdit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_OnCustomStringEdit[1] = {{ wxLua_wxArrayStringProperty_OnCustomStringEdit, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxArrayStringProperty_OnCustomStringEdit }}; -// virtual bool OnCustomStringEdit( wxWindow* parent, wxString& value ); -static int LUACALL wxLua_wxArrayStringProperty_OnCustomStringEdit(lua_State *L) -{ - // wxString value - wxString value = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call OnCustomStringEdit - bool returns = (self->OnCustomStringEdit(parent, value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_OnSetValue[] = { &wxluatype_wxArrayStringProperty, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_OnSetValue[1] = {{ wxLua_wxArrayStringProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxArrayStringProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxArrayStringProperty_OnSetValue(lua_State *L) -{ - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_StringToValue[] = { &wxluatype_wxArrayStringProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_StringToValue[1] = {{ wxLua_wxArrayStringProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxArrayStringProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxArrayStringProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_ValueToString[] = { &wxluatype_wxArrayStringProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_ValueToString[1] = {{ wxLua_wxArrayStringProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxArrayStringProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxArrayStringProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxArrayStringProperty * self = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxArrayStringProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxArrayStringProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxArrayStringProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_constructor[1] = {{ wxLua_wxArrayStringProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxArrayStringProperty_constructor }}; -// const wxArrayString& value = wxLuaNullSmartwxArrayString ); -static int LUACALL wxLua_wxArrayStringProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxArrayString value = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString value = (argCount >= 3 ? wxlua_getwxArrayString(L, 3) : wxLuaNullSmartwxArrayString); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxArrayStringProperty* returns = new wxArrayStringProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayStringProperty); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - - - -#if (((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString_overload[] = -{ - -#if ((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString) - { wxLua_wxArrayStringProperty_ArrayStringToString1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 4, s_wxluatypeArray_wxLua_wxArrayStringProperty_ArrayStringToString1 }, -#endif // ((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString) - { wxLua_wxArrayStringProperty_ArrayStringToString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxArrayStringProperty_ArrayStringToString }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString) -}; -static int s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString_overload_count = sizeof(s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString)) - -void wxLua_wxArrayStringProperty_delete_function(void** p) -{ - wxArrayStringProperty* o = (wxArrayStringProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxArrayStringProperty_methods[] = { -#if (((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString)) - { "ArrayStringToString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString_overload, s_wxluafunc_wxLua_wxArrayStringProperty_ArrayStringToString_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(3,1,6)) && ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))) && (wxLUA_USE_wxArrayString))||((((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxCHECK_VERSION(3,1,6))) && (wxLUA_USE_wxArrayString)) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - { "ConvertArrayToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_ConvertArrayToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateEditorDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_CreateEditorDialog, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_DoSetAttribute, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "OnCustomStringEdit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_OnCustomStringEdit, 1, NULL }, - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_OnSetValue, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxArrayStringProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - { "wxArrayStringProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxArrayStringProperty_constructor, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxArrayString) - - { 0, 0, 0, 0 }, -}; - -int wxArrayStringProperty_methodCount = sizeof(wxArrayStringProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxArrayStringProperty_enums[] = { -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Escape", wxArrayStringProperty::Escape }, - { "QuoteStrings", wxArrayStringProperty::QuoteStrings }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { NULL, 0, }, -}; -int wxArrayStringProperty_enumCount = sizeof(wxArrayStringProperty_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxSystemColourProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSystemColourProperty' -int wxluatype_wxSystemColourProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_ColourToString[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxColour, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_ColourToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_ColourToString[1] = {{ wxLua_wxSystemColourProperty_ColourToString, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSystemColourProperty_ColourToString }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxSystemColourProperty_ColourToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call ColourToString - wxString returns = (self->ColourToString(*col, index, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_DoSetAttribute[] = { &wxluatype_wxSystemColourProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_DoSetAttribute[1] = {{ wxLua_wxSystemColourProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSystemColourProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxSystemColourProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_GetColour[] = { &wxluatype_wxSystemColourProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_GetColour[1] = {{ wxLua_wxSystemColourProperty_GetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSystemColourProperty_GetColour }}; -// virtual wxColour GetColour( int index ) const; -static int LUACALL wxLua_wxSystemColourProperty_GetColour(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_GetCustomColourIndex[] = { &wxluatype_wxSystemColourProperty, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_GetCustomColourIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_GetCustomColourIndex[1] = {{ wxLua_wxSystemColourProperty_GetCustomColourIndex, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSystemColourProperty_GetCustomColourIndex }}; -// virtual int GetCustomColourIndex() const; -static int LUACALL wxLua_wxSystemColourProperty_GetCustomColourIndex(lua_State *L) -{ - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call GetCustomColourIndex - int returns = (self->GetCustomColourIndex()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_GetVal[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_GetVal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_GetVal[1] = {{ wxLua_wxSystemColourProperty_GetVal, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxSystemColourProperty_GetVal }}; -// wxColourPropertyValue GetVal( const wxVariant* pVariant = NULL ) const; -static int LUACALL wxLua_wxSystemColourProperty_GetVal(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxVariant pVariant = NULL - const wxVariant * pVariant = (argCount >= 2 ? (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant) : NULL); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call GetVal - // allocate a new object using the copy constructor - wxColourPropertyValue* returns = new wxColourPropertyValue(self->GetVal(pVariant)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColourPropertyValue); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourPropertyValue); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_IntToValue[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_IntToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_IntToValue[1] = {{ wxLua_wxSystemColourProperty_IntToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSystemColourProperty_IntToValue }}; -// int argFlags = 0) const; -static int LUACALL wxLua_wxSystemColourProperty_IntToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int number - int number = (int)wxlua_getnumbertype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call IntToValue - bool returns = (self->IntToValue(*variant, number, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_OnCustomPaint[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_OnCustomPaint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_OnCustomPaint[1] = {{ wxLua_wxSystemColourProperty_OnCustomPaint, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSystemColourProperty_OnCustomPaint }}; -// virtual void OnCustomPaint( wxDC& dc, const wxRect& rect, wxPGPaintData& paintdata ); -static int LUACALL wxLua_wxSystemColourProperty_OnCustomPaint(lua_State *L) -{ - // wxPGPaintData paintdata - wxPGPaintData * paintdata = (wxPGPaintData *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGPaintData); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call OnCustomPaint - self->OnCustomPaint(*dc, *rect, *paintdata); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_OnEvent[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxPropertyGrid, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_OnEvent[1] = {{ wxLua_wxSystemColourProperty_OnEvent, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxSystemColourProperty_OnEvent }}; -// wxWindow* primary, wxEvent& event ); -static int LUACALL wxLua_wxSystemColourProperty_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 4, wxluatype_wxEvent); - // wxWindow primary - wxWindow * primary = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call OnEvent - bool returns = (self->OnEvent(propgrid, primary, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_OnMeasureImage[] = { &wxluatype_wxSystemColourProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_OnMeasureImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_OnMeasureImage[1] = {{ wxLua_wxSystemColourProperty_OnMeasureImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSystemColourProperty_OnMeasureImage }}; -// virtual wxSize OnMeasureImage( int item ) const; -static int LUACALL wxLua_wxSystemColourProperty_OnMeasureImage(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call OnMeasureImage - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->OnMeasureImage(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_OnSetValue[] = { &wxluatype_wxSystemColourProperty, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_OnSetValue[1] = {{ wxLua_wxSystemColourProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSystemColourProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxSystemColourProperty_OnSetValue(lua_State *L) -{ - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_QueryColourFromUser[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_QueryColourFromUser(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_QueryColourFromUser[1] = {{ wxLua_wxSystemColourProperty_QueryColourFromUser, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSystemColourProperty_QueryColourFromUser }}; -// bool QueryColourFromUser( wxVariant& variant ) const; -static int LUACALL wxLua_wxSystemColourProperty_QueryColourFromUser(lua_State *L) -{ - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call QueryColourFromUser - bool returns = (self->QueryColourFromUser(*variant)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_StringToValue[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_StringToValue[1] = {{ wxLua_wxSystemColourProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxSystemColourProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxSystemColourProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_ValueToString[] = { &wxluatype_wxSystemColourProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_ValueToString[1] = {{ wxLua_wxSystemColourProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxSystemColourProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxSystemColourProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxSystemColourProperty * self = (wxSystemColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSystemColourProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_constructor1[1] = {{ wxLua_wxSystemColourProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxSystemColourProperty_constructor1 }}; -// const wxColour& value = wxNullColour ); -static int LUACALL wxLua_wxSystemColourProperty_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour value = wxNullColour - const wxColour * value = (argCount >= 3 ? (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour) : &wxNullColour); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxSystemColourProperty* returns = new wxSystemColourProperty(label, name, *value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSystemColourProperty); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSystemColourProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxColourPropertyValue, NULL }; -static int LUACALL wxLua_wxSystemColourProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_constructor[1] = {{ wxLua_wxSystemColourProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxSystemColourProperty_constructor }}; -// wxColourPropertyValue value = wxColourPropertyValue() ); -static int LUACALL wxLua_wxSystemColourProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxColourPropertyValue value = wxColourPropertyValue() - wxColourPropertyValue value = (argCount >= 3 ? *(wxColourPropertyValue*)wxluaT_getuserdatatype(L, 3, wxluatype_wxColourPropertyValue) : wxColourPropertyValue()); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxSystemColourProperty* returns = new wxSystemColourProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSystemColourProperty); - - return 1; -} - - - - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSystemColourProperty_constructor_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxSystemColourProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxSystemColourProperty_constructor1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxSystemColourProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxSystemColourProperty_constructor }, -}; -static int s_wxluafunc_wxLua_wxSystemColourProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSystemColourProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxSystemColourProperty_delete_function(void** p) -{ - wxSystemColourProperty* o = (wxSystemColourProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSystemColourProperty_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "ColourToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_ColourToString, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_DoSetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetCustomColourIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_GetCustomColourIndex, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetVal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_GetVal, 1, NULL }, - { "IntToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_IntToValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnCustomPaint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_OnCustomPaint, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_OnEvent, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnMeasureImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_OnMeasureImage, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_OnSetValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "QueryColourFromUser", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_QueryColourFromUser, 1, NULL }, - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSystemColourProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxSystemColourProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSystemColourProperty_constructor_overload, s_wxluafunc_wxLua_wxSystemColourProperty_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxSystemColourProperty_methodCount = sizeof(wxSystemColourProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxColourProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxColourProperty' -int wxluatype_wxColourProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourProperty_GetColour[] = { &wxluatype_wxColourProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxColourProperty_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourProperty_GetColour[1] = {{ wxLua_wxColourProperty_GetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxColourProperty_GetColour }}; -// virtual wxColour GetColour( int index ) const; -static int LUACALL wxLua_wxColourProperty_GetColour(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxColourProperty * self = (wxColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourProperty); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour(index)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourProperty_ValueToString[] = { &wxluatype_wxColourProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxColourProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourProperty_ValueToString[1] = {{ wxLua_wxColourProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxColourProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxColourProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxColourProperty * self = (wxColourProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColourProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxColourProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxColourProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxColourProperty_constructor[1] = {{ wxLua_wxColourProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxColourProperty_constructor }}; -// const wxColour& value = wxNullColour ); -static int LUACALL wxLua_wxColourProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour value = wxNullColour - const wxColour * value = (argCount >= 3 ? (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour) : &wxNullColour); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxColourProperty* returns = new wxColourProperty(label, name, *value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColourProperty); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -void wxLua_wxColourProperty_delete_function(void** p) -{ - wxColourProperty* o = (wxColourProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxColourProperty_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourProperty_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxColourProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxColourProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxColourProperty_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxColourProperty_methodCount = sizeof(wxColourProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxCursorProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxCursorProperty' -int wxluatype_wxCursorProperty = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursorProperty_OnCustomPaint[] = { &wxluatype_wxCursorProperty, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxCursorProperty_OnCustomPaint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursorProperty_OnCustomPaint[1] = {{ wxLua_wxCursorProperty_OnCustomPaint, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxCursorProperty_OnCustomPaint }}; -// const wxRect& rect, wxPGPaintData& paintdata ); -static int LUACALL wxLua_wxCursorProperty_OnCustomPaint(lua_State *L) -{ - // wxPGPaintData paintdata - wxPGPaintData * paintdata = (wxPGPaintData *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGPaintData); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxCursorProperty * self = (wxCursorProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursorProperty); - // call OnCustomPaint - self->OnCustomPaint(*dc, *rect, *paintdata); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursorProperty_OnMeasureImage[] = { &wxluatype_wxCursorProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCursorProperty_OnMeasureImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursorProperty_OnMeasureImage[1] = {{ wxLua_wxCursorProperty_OnMeasureImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxCursorProperty_OnMeasureImage }}; -// virtual wxSize OnMeasureImage( int item ) const; -static int LUACALL wxLua_wxCursorProperty_OnMeasureImage(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxCursorProperty * self = (wxCursorProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxCursorProperty); - // call OnMeasureImage - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->OnMeasureImage(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxCursorProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxCursorProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxCursorProperty_constructor[1] = {{ wxLua_wxCursorProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxCursorProperty_constructor }}; -// int value = 0 ); -static int LUACALL wxLua_wxCursorProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = 0 - int value = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxCursorProperty* returns = new wxCursorProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursorProperty); - - return 1; -} - - - - -void wxLua_wxCursorProperty_delete_function(void** p) -{ - wxCursorProperty* o = (wxCursorProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxCursorProperty_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnCustomPaint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursorProperty_OnCustomPaint, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnMeasureImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxCursorProperty_OnMeasureImage, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "wxCursorProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxCursorProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxCursorProperty_methodCount = sizeof(wxCursorProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxImageFileProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxImageFileProperty' -int wxluatype_wxImageFileProperty = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageFileProperty_OnCustomPaint[] = { &wxluatype_wxImageFileProperty, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxImageFileProperty_OnCustomPaint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageFileProperty_OnCustomPaint[1] = {{ wxLua_wxImageFileProperty_OnCustomPaint, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxImageFileProperty_OnCustomPaint }}; -// const wxRect& rect, wxPGPaintData& paintdata ); -static int LUACALL wxLua_wxImageFileProperty_OnCustomPaint(lua_State *L) -{ - // wxPGPaintData paintdata - wxPGPaintData * paintdata = (wxPGPaintData *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGPaintData); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxImageFileProperty * self = (wxImageFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageFileProperty); - // call OnCustomPaint - self->OnCustomPaint(*dc, *rect, *paintdata); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageFileProperty_OnMeasureImage[] = { &wxluatype_wxImageFileProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxImageFileProperty_OnMeasureImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageFileProperty_OnMeasureImage[1] = {{ wxLua_wxImageFileProperty_OnMeasureImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxImageFileProperty_OnMeasureImage }}; -// virtual wxSize OnMeasureImage( int item ) const; -static int LUACALL wxLua_wxImageFileProperty_OnMeasureImage(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxImageFileProperty * self = (wxImageFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageFileProperty); - // call OnMeasureImage - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->OnMeasureImage(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageFileProperty_OnSetValue[] = { &wxluatype_wxImageFileProperty, NULL }; -static int LUACALL wxLua_wxImageFileProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageFileProperty_OnSetValue[1] = {{ wxLua_wxImageFileProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxImageFileProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxImageFileProperty_OnSetValue(lua_State *L) -{ - // get this - wxImageFileProperty * self = (wxImageFileProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImageFileProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxImageFileProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxImageFileProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxImageFileProperty_constructor[1] = {{ wxLua_wxImageFileProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxImageFileProperty_constructor }}; -// const wxString& value = wxEmptyString); -static int LUACALL wxLua_wxImageFileProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxImageFileProperty* returns = new wxImageFileProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxImageFileProperty); - - return 1; -} - - - - -void wxLua_wxImageFileProperty_delete_function(void** p) -{ - wxImageFileProperty* o = (wxImageFileProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxImageFileProperty_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnCustomPaint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageFileProperty_OnCustomPaint, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnMeasureImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageFileProperty_OnMeasureImage, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxImageFileProperty_OnSetValue, 1, NULL }, - { "wxImageFileProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxImageFileProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxImageFileProperty_methodCount = sizeof(wxImageFileProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxDateProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxDateProperty' -int wxluatype_wxDateProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_DoSetAttribute[] = { &wxluatype_wxDateProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxDateProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_DoSetAttribute[1] = {{ wxLua_wxDateProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxDateProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxDateProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_GetDatePickerStyle[] = { &wxluatype_wxDateProperty, NULL }; -static int LUACALL wxLua_wxDateProperty_GetDatePickerStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_GetDatePickerStyle[1] = {{ wxLua_wxDateProperty_GetDatePickerStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateProperty_GetDatePickerStyle }}; -// long GetDatePickerStyle() const; -static int LUACALL wxLua_wxDateProperty_GetDatePickerStyle(lua_State *L) -{ - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call GetDatePickerStyle - long returns = (self->GetDatePickerStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_GetDateValue[] = { &wxluatype_wxDateProperty, NULL }; -static int LUACALL wxLua_wxDateProperty_GetDateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_GetDateValue[1] = {{ wxLua_wxDateProperty_GetDateValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateProperty_GetDateValue }}; -// wxDateTime GetDateValue() const; -static int LUACALL wxLua_wxDateProperty_GetDateValue(lua_State *L) -{ - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call GetDateValue - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetDateValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_GetFormat[] = { &wxluatype_wxDateProperty, NULL }; -static int LUACALL wxLua_wxDateProperty_GetFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_GetFormat[1] = {{ wxLua_wxDateProperty_GetFormat, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateProperty_GetFormat }}; -// const wxString& GetFormat() const; -static int LUACALL wxLua_wxDateProperty_GetFormat(lua_State *L) -{ - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call GetFormat - wxString returns = (self->GetFormat()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_OnSetValue[] = { &wxluatype_wxDateProperty, NULL }; -static int LUACALL wxLua_wxDateProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_OnSetValue[1] = {{ wxLua_wxDateProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxDateProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxDateProperty_OnSetValue(lua_State *L) -{ - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_SetDateValue[] = { &wxluatype_wxDateProperty, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateProperty_SetDateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_SetDateValue[1] = {{ wxLua_wxDateProperty_SetDateValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateProperty_SetDateValue }}; -// void SetDateValue( const wxDateTime& dt ); -static int LUACALL wxLua_wxDateProperty_SetDateValue(lua_State *L) -{ - // const wxDateTime dt - const wxDateTime * dt = (const wxDateTime *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call SetDateValue - self->SetDateValue(*dt); - - return 0; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_SetFormat[] = { &wxluatype_wxDateProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxDateProperty_SetFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_SetFormat[1] = {{ wxLua_wxDateProperty_SetFormat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxDateProperty_SetFormat }}; -// void SetFormat( const wxString& format ); -static int LUACALL wxLua_wxDateProperty_SetFormat(lua_State *L) -{ - // const wxString format - const wxString format = wxlua_getwxStringtype(L, 2); - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call SetFormat - self->SetFormat(format); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_StringToValue[] = { &wxluatype_wxDateProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_StringToValue[1] = {{ wxLua_wxDateProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxDateProperty_StringToValue }}; -// int argFlags = 0) const; -static int LUACALL wxLua_wxDateProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_ValueToString[] = { &wxluatype_wxDateProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxDateProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_ValueToString[1] = {{ wxLua_wxDateProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxDateProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxDateProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxDateProperty * self = (wxDateProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDateProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxDateProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxDateProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxDateProperty_constructor[1] = {{ wxLua_wxDateProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxDateProperty_constructor }}; -// wxDateTime value = wxDateTime() ); -static int LUACALL wxLua_wxDateProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxDateTime value = wxDateTime() - wxDateTime value = (argCount >= 3 ? *(wxDateTime*)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime) : wxDateTime()); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxDateProperty* returns = new wxDateProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateProperty); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -void wxLua_wxDateProperty_delete_function(void** p) -{ - wxDateProperty* o = (wxDateProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxDateProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_DoSetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetDatePickerStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_GetDatePickerStyle, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetDateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_GetDateValue, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_GetFormat, 1, NULL }, - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_OnSetValue, 1, NULL }, - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetDateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_SetDateValue, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_SetFormat, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDateProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxDateProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDateProperty_constructor, 1, NULL }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxDateProperty_methodCount = sizeof(wxDateProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) -// --------------------------------------------------------------------------- -// Bind class wxPGSpinCtrlEditor -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGSpinCtrlEditor' -int wxluatype_wxPGSpinCtrlEditor = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGSpinCtrlEditor_CreateControls[] = { &wxluatype_wxPGSpinCtrlEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGSpinCtrlEditor_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGSpinCtrlEditor_CreateControls[1] = {{ wxLua_wxPGSpinCtrlEditor_CreateControls, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGSpinCtrlEditor_CreateControls }}; -// const wxSize& size) const; -static int LUACALL wxLua_wxPGSpinCtrlEditor_CreateControls(lua_State *L) -{ - // const wxSize size - const wxSize * size = (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize); - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGSpinCtrlEditor * self = (wxPGSpinCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGSpinCtrlEditor); - // call CreateControls - // allocate a new object using the copy constructor - wxPGWindowList* returns = new wxPGWindowList(self->CreateControls(propgrid, property, *pos, *size)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGWindowList); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGWindowList); - - return 1; -} - -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGSpinCtrlEditor_GetName[] = { &wxluatype_wxPGSpinCtrlEditor, NULL }; -static int LUACALL wxLua_wxPGSpinCtrlEditor_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGSpinCtrlEditor_GetName[1] = {{ wxLua_wxPGSpinCtrlEditor_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGSpinCtrlEditor_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxPGSpinCtrlEditor_GetName(lua_State *L) -{ - // get this - wxPGSpinCtrlEditor * self = (wxPGSpinCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGSpinCtrlEditor); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGSpinCtrlEditor_OnEvent[] = { &wxluatype_wxPGSpinCtrlEditor, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGSpinCtrlEditor_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGSpinCtrlEditor_OnEvent[1] = {{ wxLua_wxPGSpinCtrlEditor_OnEvent, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGSpinCtrlEditor_OnEvent }}; -// wxWindow* wnd, wxEvent& event ) const; -static int LUACALL wxLua_wxPGSpinCtrlEditor_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 5, wxluatype_wxEvent); - // wxWindow wnd - wxWindow * wnd = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGSpinCtrlEditor * self = (wxPGSpinCtrlEditor *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGSpinCtrlEditor); - // call OnEvent - bool returns = (self->OnEvent(propgrid, property, wnd, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -void wxLua_wxPGSpinCtrlEditor_delete_function(void** p) -{ - wxPGSpinCtrlEditor* o = (wxPGSpinCtrlEditor*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGSpinCtrlEditor_methods[] = { -#if (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGSpinCtrlEditor_CreateControls, 1, NULL }, -#endif // (((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGSpinCtrlEditor_GetName, 1, NULL }, - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGSpinCtrlEditor_OnEvent, 1, NULL }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGSpinCtrlEditor_methodCount = sizeof(wxPGSpinCtrlEditor_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxStringProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStringProperty' -int wxluatype_wxStringProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringProperty_DoSetAttribute[] = { &wxluatype_wxStringProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxStringProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringProperty_DoSetAttribute[1] = {{ wxLua_wxStringProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStringProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxStringProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxStringProperty * self = (wxStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringProperty_OnSetValue[] = { &wxluatype_wxStringProperty, NULL }; -static int LUACALL wxLua_wxStringProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringProperty_OnSetValue[1] = {{ wxLua_wxStringProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStringProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxStringProperty_OnSetValue(lua_State *L) -{ - // get this - wxStringProperty * self = (wxStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringProperty_StringToValue[] = { &wxluatype_wxStringProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStringProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringProperty_StringToValue[1] = {{ wxLua_wxStringProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxStringProperty_StringToValue }}; -// virtual bool StringToValue( wxVariant& variant, const wxString& text, int argFlags = 0 ) const; -static int LUACALL wxLua_wxStringProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxStringProperty * self = (wxStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringProperty_ValueToString[] = { &wxluatype_wxStringProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStringProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringProperty_ValueToString[1] = {{ wxLua_wxStringProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStringProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxStringProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxStringProperty * self = (wxStringProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStringProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringProperty_delete[] = { &wxluatype_wxStringProperty, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringProperty_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxStringProperty_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStringProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStringProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStringProperty_constructor[1] = {{ wxLua_wxStringProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxStringProperty_constructor }}; -// const wxString& value = wxEmptyString ); -static int LUACALL wxLua_wxStringProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxStringProperty* returns = new wxStringProperty(label, name, value); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStringProperty); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStringProperty); - - return 1; -} - - - - -void wxLua_wxStringProperty_delete_function(void** p) -{ - wxStringProperty* o = (wxStringProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStringProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringProperty_DoSetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringProperty_OnSetValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStringProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStringProperty_delete, 1, NULL }, - { "wxStringProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStringProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxStringProperty_methodCount = sizeof(wxStringProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxNumericPropertyValidator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNumericPropertyValidator' -int wxluatype_wxNumericPropertyValidator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumericPropertyValidator_Validate[] = { &wxluatype_wxNumericPropertyValidator, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxNumericPropertyValidator_Validate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumericPropertyValidator_Validate[1] = {{ wxLua_wxNumericPropertyValidator_Validate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNumericPropertyValidator_Validate }}; -// virtual bool Validate(wxWindow* parent); -static int LUACALL wxLua_wxNumericPropertyValidator_Validate(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxNumericPropertyValidator * self = (wxNumericPropertyValidator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNumericPropertyValidator); - // call Validate - bool returns = (self->Validate(parent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumericPropertyValidator_constructor[] = { &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxNumericPropertyValidator_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumericPropertyValidator_constructor[1] = {{ wxLua_wxNumericPropertyValidator_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxNumericPropertyValidator_constructor }}; -// wxNumericPropertyValidator( wxNumericPropertyValidator::NumericType numericType, int base = 10 ); -static int LUACALL wxLua_wxNumericPropertyValidator_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int base = 10 - int base = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 10); - // wxNumericPropertyValidator::NumericType numericType - wxNumericPropertyValidator::NumericType numericType = (wxNumericPropertyValidator::NumericType)wxlua_getenumtype(L, 1); - // call constructor - wxNumericPropertyValidator* returns = new wxNumericPropertyValidator(numericType, base); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxNumericPropertyValidator); - - return 1; -} - - - - -void wxLua_wxNumericPropertyValidator_delete_function(void** p) -{ - wxNumericPropertyValidator* o = (wxNumericPropertyValidator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNumericPropertyValidator_methods[] = { - { "Validate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNumericPropertyValidator_Validate, 1, NULL }, - { "wxNumericPropertyValidator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxNumericPropertyValidator_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxNumericPropertyValidator_methodCount = sizeof(wxNumericPropertyValidator_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxNumericPropertyValidator_enums[] = { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "Float", wxNumericPropertyValidator::Float }, - { "Signed", wxNumericPropertyValidator::Signed }, - { "Unsigned", wxNumericPropertyValidator::Unsigned }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - { NULL, 0, }, -}; -int wxNumericPropertyValidator_enumCount = sizeof(wxNumericPropertyValidator_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxNumericProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxNumericProperty' -int wxluatype_wxNumericProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumericProperty_AddSpinStepValue[] = { &wxluatype_wxNumericProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxNumericProperty_AddSpinStepValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumericProperty_AddSpinStepValue[1] = {{ wxLua_wxNumericProperty_AddSpinStepValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxNumericProperty_AddSpinStepValue }}; -// virtual wxVariant AddSpinStepValue(long stepScale) const; -static int LUACALL wxLua_wxNumericProperty_AddSpinStepValue(lua_State *L) -{ - // long stepScale - long stepScale = (long)wxlua_getnumbertype(L, 2); - // get this - wxNumericProperty * self = (wxNumericProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNumericProperty); - // call AddSpinStepValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->AddSpinStepValue(stepScale)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumericProperty_DoSetAttribute[] = { &wxluatype_wxNumericProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxNumericProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumericProperty_DoSetAttribute[1] = {{ wxLua_wxNumericProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxNumericProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute(const wxString& name, wxVariant& value); -static int LUACALL wxLua_wxNumericProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxNumericProperty * self = (wxNumericProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNumericProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxNumericProperty_UseSpinMotion[] = { &wxluatype_wxNumericProperty, NULL }; -static int LUACALL wxLua_wxNumericProperty_UseSpinMotion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxNumericProperty_UseSpinMotion[1] = {{ wxLua_wxNumericProperty_UseSpinMotion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxNumericProperty_UseSpinMotion }}; -// bool UseSpinMotion() const; -static int LUACALL wxLua_wxNumericProperty_UseSpinMotion(lua_State *L) -{ - // get this - wxNumericProperty * self = (wxNumericProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxNumericProperty); - // call UseSpinMotion - bool returns = (self->UseSpinMotion()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - - -void wxLua_wxNumericProperty_delete_function(void** p) -{ - wxNumericProperty* o = (wxNumericProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxNumericProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "AddSpinStepValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNumericProperty_AddSpinStepValue, 1, NULL }, - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNumericProperty_DoSetAttribute, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "UseSpinMotion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxNumericProperty_UseSpinMotion, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxNumericProperty_methodCount = sizeof(wxNumericProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxIntProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxIntProperty' -int wxluatype_wxIntProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_AddSpinStepValue[] = { &wxluatype_wxIntProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIntProperty_AddSpinStepValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_AddSpinStepValue[1] = {{ wxLua_wxIntProperty_AddSpinStepValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxIntProperty_AddSpinStepValue }}; -// virtual wxVariant AddSpinStepValue(long stepScale) const; -static int LUACALL wxLua_wxIntProperty_AddSpinStepValue(lua_State *L) -{ - // long stepScale - long stepScale = (long)wxlua_getnumbertype(L, 2); - // get this - wxIntProperty * self = (wxIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIntProperty); - // call AddSpinStepValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->AddSpinStepValue(stepScale)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_DoGetValidator[] = { &wxluatype_wxIntProperty, NULL }; -static int LUACALL wxLua_wxIntProperty_DoGetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_DoGetValidator[1] = {{ wxLua_wxIntProperty_DoGetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxIntProperty_DoGetValidator }}; -// virtual wxValidator* DoGetValidator() const; -static int LUACALL wxLua_wxIntProperty_DoGetValidator(lua_State *L) -{ - // get this - wxIntProperty * self = (wxIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIntProperty); - // call DoGetValidator - wxValidator* returns = (wxValidator*)self->DoGetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -static int LUACALL wxLua_wxIntProperty_GetClassValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_GetClassValidator[1] = {{ wxLua_wxIntProperty_GetClassValidator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxValidator* GetClassValidator(); -static int LUACALL wxLua_wxIntProperty_GetClassValidator(lua_State *L) -{ - // call GetClassValidator - wxValidator* returns = (wxValidator*)wxIntProperty::GetClassValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_IntToValue[] = { &wxluatype_wxIntProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIntProperty_IntToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_IntToValue[1] = {{ wxLua_wxIntProperty_IntToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxIntProperty_IntToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxIntProperty_IntToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int number - int number = (int)wxlua_getnumbertype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxIntProperty * self = (wxIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIntProperty); - // call IntToValue - bool returns = (self->IntToValue(*variant, number, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_StringToValue[] = { &wxluatype_wxIntProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIntProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_StringToValue[1] = {{ wxLua_wxIntProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxIntProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxIntProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxIntProperty * self = (wxIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIntProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_ValidateValue[] = { &wxluatype_wxIntProperty, &wxluatype_wxVariant, &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxIntProperty_ValidateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_ValidateValue[1] = {{ wxLua_wxIntProperty_ValidateValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxIntProperty_ValidateValue }}; -// wxPGValidationInfo& validationInfo ) const; -static int LUACALL wxLua_wxIntProperty_ValidateValue(lua_State *L) -{ - // wxPGValidationInfo validationInfo - wxPGValidationInfo * validationInfo = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGValidationInfo); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxIntProperty * self = (wxIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIntProperty); - // call ValidateValue - bool returns = (self->ValidateValue(*value, *validationInfo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_ValueToString[] = { &wxluatype_wxIntProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIntProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_ValueToString[1] = {{ wxLua_wxIntProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxIntProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxIntProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxIntProperty * self = (wxIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxIntProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxIntProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_constructor1[1] = {{ wxLua_wxIntProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxIntProperty_constructor1 }}; -// const wxLongLong& value ); -static int LUACALL wxLua_wxIntProperty_constructor1(lua_State *L) -{ - // const wxLongLong value - const wxLongLong * value = (const wxLongLong *)wxluaT_getuserdatatype(L, 3, wxluatype_wxLongLong); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxIntProperty* returns = new wxIntProperty(label, name, *value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIntProperty); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxIntProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxIntProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_constructor[1] = {{ wxLua_wxIntProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxIntProperty_constructor }}; -// long value = 0 ); -static int LUACALL wxLua_wxIntProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long value = 0 - long value = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxIntProperty* returns = new wxIntProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIntProperty); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxIntProperty_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) - { wxLua_wxIntProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxIntProperty_constructor1 }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) - { wxLua_wxIntProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxIntProperty_constructor }, -}; -static int s_wxluafunc_wxLua_wxIntProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxIntProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -void wxLua_wxIntProperty_delete_function(void** p) -{ - wxIntProperty* o = (wxIntProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxIntProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "AddSpinStepValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIntProperty_AddSpinStepValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "DoGetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIntProperty_DoGetValidator, 1, NULL }, - { "GetClassValidator", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxIntProperty_GetClassValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "IntToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIntProperty_IntToValue, 1, NULL }, - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIntProperty_StringToValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValidateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIntProperty_ValidateValue, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxIntProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "wxIntProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxIntProperty_constructor_overload, s_wxluafunc_wxLua_wxIntProperty_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { 0, 0, 0, 0 }, -}; - -int wxIntProperty_methodCount = sizeof(wxIntProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxUIntProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxUIntProperty' -int wxluatype_wxUIntProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_AddSpinStepValue[] = { &wxluatype_wxUIntProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxUIntProperty_AddSpinStepValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_AddSpinStepValue[1] = {{ wxLua_wxUIntProperty_AddSpinStepValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxUIntProperty_AddSpinStepValue }}; -// virtual wxVariant AddSpinStepValue(long stepScale) const; -static int LUACALL wxLua_wxUIntProperty_AddSpinStepValue(lua_State *L) -{ - // long stepScale - long stepScale = (long)wxlua_getnumbertype(L, 2); - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call AddSpinStepValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->AddSpinStepValue(stepScale)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_DoGetValidator[] = { &wxluatype_wxUIntProperty, NULL }; -static int LUACALL wxLua_wxUIntProperty_DoGetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_DoGetValidator[1] = {{ wxLua_wxUIntProperty_DoGetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxUIntProperty_DoGetValidator }}; -// virtual wxValidator* DoGetValidator () const; -static int LUACALL wxLua_wxUIntProperty_DoGetValidator(lua_State *L) -{ - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call DoGetValidator - wxValidator* returns = (wxValidator*)self->DoGetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_DoSetAttribute[] = { &wxluatype_wxUIntProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxUIntProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_DoSetAttribute[1] = {{ wxLua_wxUIntProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxUIntProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxUIntProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_IntToValue[] = { &wxluatype_wxUIntProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxUIntProperty_IntToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_IntToValue[1] = {{ wxLua_wxUIntProperty_IntToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxUIntProperty_IntToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxUIntProperty_IntToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int number - int number = (int)wxlua_getnumbertype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call IntToValue - bool returns = (self->IntToValue(*variant, number, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_StringToValue[] = { &wxluatype_wxUIntProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxUIntProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_StringToValue[1] = {{ wxLua_wxUIntProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxUIntProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxUIntProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_ValidateValue[] = { &wxluatype_wxUIntProperty, &wxluatype_wxVariant, &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxUIntProperty_ValidateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_ValidateValue[1] = {{ wxLua_wxUIntProperty_ValidateValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxUIntProperty_ValidateValue }}; -// wxPGValidationInfo& validationInfo ) const; -static int LUACALL wxLua_wxUIntProperty_ValidateValue(lua_State *L) -{ - // wxPGValidationInfo validationInfo - wxPGValidationInfo * validationInfo = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGValidationInfo); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call ValidateValue - bool returns = (self->ValidateValue(*value, *validationInfo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_ValueToString[] = { &wxluatype_wxUIntProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxUIntProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_ValueToString[1] = {{ wxLua_wxUIntProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxUIntProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxUIntProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxUIntProperty * self = (wxUIntProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxUIntProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxULongLong, NULL }; -static int LUACALL wxLua_wxUIntProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_constructor1[1] = {{ wxLua_wxUIntProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxUIntProperty_constructor1 }}; -// const wxULongLong& value ); -static int LUACALL wxLua_wxUIntProperty_constructor1(lua_State *L) -{ - // const wxULongLong value - const wxULongLong * value = (const wxULongLong *)wxluaT_getuserdatatype(L, 3, wxluatype_wxULongLong); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxUIntProperty* returns = new wxUIntProperty(label, name, *value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxUIntProperty); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxUIntProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxUIntProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_constructor[1] = {{ wxLua_wxUIntProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxUIntProperty_constructor }}; -// unsigned long value = 0 ); -static int LUACALL wxLua_wxUIntProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // unsigned long value = 0 - unsigned long value = (argCount >= 3 ? (unsigned long)wxlua_getuintegertype(L, 3) : 0); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxUIntProperty* returns = new wxUIntProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxUIntProperty); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxUIntProperty_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) - { wxLua_wxUIntProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxUIntProperty_constructor1 }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG) - { wxLua_wxUIntProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxUIntProperty_constructor }, -}; -static int s_wxluafunc_wxLua_wxUIntProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxUIntProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -void wxLua_wxUIntProperty_delete_function(void** p) -{ - wxUIntProperty* o = (wxUIntProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxUIntProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "AddSpinStepValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_AddSpinStepValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "DoGetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_DoGetValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_DoSetAttribute, 1, NULL }, - { "IntToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_IntToValue, 1, NULL }, - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_StringToValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValidateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_ValidateValue, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxUIntProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "wxUIntProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxUIntProperty_constructor_overload, s_wxluafunc_wxLua_wxUIntProperty_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_LONGLONG))||((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { 0, 0, 0, 0 }, -}; - -int wxUIntProperty_methodCount = sizeof(wxUIntProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// --------------------------------------------------------------------------- -// Bind class wxFloatProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFloatProperty' -int wxluatype_wxFloatProperty = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_AddSpinStepValue[] = { &wxluatype_wxFloatProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFloatProperty_AddSpinStepValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_AddSpinStepValue[1] = {{ wxLua_wxFloatProperty_AddSpinStepValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFloatProperty_AddSpinStepValue }}; -// virtual wxVariant AddSpinStepValue(long stepScale) const; -static int LUACALL wxLua_wxFloatProperty_AddSpinStepValue(lua_State *L) -{ - // long stepScale - long stepScale = (long)wxlua_getnumbertype(L, 2); - // get this - wxFloatProperty * self = (wxFloatProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFloatProperty); - // call AddSpinStepValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->AddSpinStepValue(stepScale)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_DoGetValidator[] = { &wxluatype_wxFloatProperty, NULL }; -static int LUACALL wxLua_wxFloatProperty_DoGetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_DoGetValidator[1] = {{ wxLua_wxFloatProperty_DoGetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFloatProperty_DoGetValidator }}; -// virtual wxValidator* DoGetValidator () const; -static int LUACALL wxLua_wxFloatProperty_DoGetValidator(lua_State *L) -{ - // get this - wxFloatProperty * self = (wxFloatProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFloatProperty); - // call DoGetValidator - wxValidator* returns = (wxValidator*)self->DoGetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_DoSetAttribute[] = { &wxluatype_wxFloatProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxFloatProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_DoSetAttribute[1] = {{ wxLua_wxFloatProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFloatProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxFloatProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxFloatProperty * self = (wxFloatProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFloatProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static int LUACALL wxLua_wxFloatProperty_GetClassValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_GetClassValidator[1] = {{ wxLua_wxFloatProperty_GetClassValidator, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxValidator* GetClassValidator(); -static int LUACALL wxLua_wxFloatProperty_GetClassValidator(lua_State *L) -{ - // call GetClassValidator - wxValidator* returns = (wxValidator*)wxFloatProperty::GetClassValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_StringToValue[] = { &wxluatype_wxFloatProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFloatProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_StringToValue[1] = {{ wxLua_wxFloatProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxFloatProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxFloatProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFloatProperty * self = (wxFloatProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFloatProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_ValidateValue[] = { &wxluatype_wxFloatProperty, &wxluatype_wxVariant, &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxFloatProperty_ValidateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_ValidateValue[1] = {{ wxLua_wxFloatProperty_ValidateValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFloatProperty_ValidateValue }}; -// wxPGValidationInfo& validationInfo ) const; -static int LUACALL wxLua_wxFloatProperty_ValidateValue(lua_State *L) -{ - // wxPGValidationInfo validationInfo - wxPGValidationInfo * validationInfo = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGValidationInfo); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFloatProperty * self = (wxFloatProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFloatProperty); - // call ValidateValue - bool returns = (self->ValidateValue(*value, *validationInfo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_ValueToString[] = { &wxluatype_wxFloatProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFloatProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_ValueToString[1] = {{ wxLua_wxFloatProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFloatProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxFloatProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFloatProperty * self = (wxFloatProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFloatProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFloatProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFloatProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFloatProperty_constructor[1] = {{ wxLua_wxFloatProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxFloatProperty_constructor }}; -// double value = 0.0 ); -static int LUACALL wxLua_wxFloatProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double value = 0.0 - double value = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 0.0); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxFloatProperty* returns = new wxFloatProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFloatProperty); - - return 1; -} - - - - -void wxLua_wxFloatProperty_delete_function(void** p) -{ - wxFloatProperty* o = (wxFloatProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFloatProperty_methods[] = { -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "AddSpinStepValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFloatProperty_AddSpinStepValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "DoGetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFloatProperty_DoGetValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFloatProperty_DoSetAttribute, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "GetClassValidator", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxFloatProperty_GetClassValidator, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFloatProperty_StringToValue, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValidateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFloatProperty_ValidateValue, 1, NULL }, -#endif // (((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFloatProperty_ValueToString, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxUSE_VARIANT) - - { "wxFloatProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFloatProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxFloatProperty_methodCount = sizeof(wxFloatProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxBoolProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxBoolProperty' -int wxluatype_wxBoolProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoolProperty_DoSetAttribute[] = { &wxluatype_wxBoolProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxBoolProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoolProperty_DoSetAttribute[1] = {{ wxLua_wxBoolProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxBoolProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxBoolProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxBoolProperty * self = (wxBoolProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBoolProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoolProperty_IntToValue[] = { &wxluatype_wxBoolProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBoolProperty_IntToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoolProperty_IntToValue[1] = {{ wxLua_wxBoolProperty_IntToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBoolProperty_IntToValue }}; -// int number, int argFlags = 0 ) const; -static int LUACALL wxLua_wxBoolProperty_IntToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int number - int number = (int)wxlua_getnumbertype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxBoolProperty * self = (wxBoolProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBoolProperty); - // call IntToValue - bool returns = (self->IntToValue(*variant, number, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoolProperty_StringToValue[] = { &wxluatype_wxBoolProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBoolProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoolProperty_StringToValue[1] = {{ wxLua_wxBoolProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxBoolProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxBoolProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxBoolProperty * self = (wxBoolProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBoolProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoolProperty_ValueToString[] = { &wxluatype_wxBoolProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxBoolProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoolProperty_ValueToString[1] = {{ wxLua_wxBoolProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxBoolProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxBoolProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxBoolProperty * self = (wxBoolProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxBoolProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxBoolProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxBoolProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxBoolProperty_constructor[1] = {{ wxLua_wxBoolProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxBoolProperty_constructor }}; -// bool value = false ); -static int LUACALL wxLua_wxBoolProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool value = false - bool value = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxBoolProperty* returns = new wxBoolProperty(label, name, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBoolProperty); - - return 1; -} - - - - -void wxLua_wxBoolProperty_delete_function(void** p) -{ - wxBoolProperty* o = (wxBoolProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxBoolProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBoolProperty_DoSetAttribute, 1, NULL }, - { "IntToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBoolProperty_IntToValue, 1, NULL }, - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBoolProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxBoolProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "wxBoolProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxBoolProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxBoolProperty_methodCount = sizeof(wxBoolProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxEnumProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEnumProperty' -int wxluatype_wxEnumProperty = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_GetChoiceSelection[] = { &wxluatype_wxEnumProperty, NULL }; -static int LUACALL wxLua_wxEnumProperty_GetChoiceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_GetChoiceSelection[1] = {{ wxLua_wxEnumProperty_GetChoiceSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEnumProperty_GetChoiceSelection }}; -// virtual int GetChoiceSelection() const; -static int LUACALL wxLua_wxEnumProperty_GetChoiceSelection(lua_State *L) -{ - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call GetChoiceSelection - int returns = (self->GetChoiceSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_GetIndexForValue[] = { &wxluatype_wxEnumProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEnumProperty_GetIndexForValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_GetIndexForValue[1] = {{ wxLua_wxEnumProperty_GetIndexForValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxEnumProperty_GetIndexForValue }}; -// virtual int GetIndexForValue( int value ) const; -static int LUACALL wxLua_wxEnumProperty_GetIndexForValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call GetIndexForValue - int returns = (self->GetIndexForValue(value)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_GetItemCount[] = { &wxluatype_wxEnumProperty, NULL }; -static int LUACALL wxLua_wxEnumProperty_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_GetItemCount[1] = {{ wxLua_wxEnumProperty_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEnumProperty_GetItemCount }}; -// size_t GetItemCount() const; -static int LUACALL wxLua_wxEnumProperty_GetItemCount(lua_State *L) -{ - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call GetItemCount - size_t returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_IntToValue[] = { &wxluatype_wxEnumProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEnumProperty_IntToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_IntToValue[1] = {{ wxLua_wxEnumProperty_IntToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxEnumProperty_IntToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxEnumProperty_IntToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int number - int number = (int)wxlua_getnumbertype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call IntToValue - bool returns = (self->IntToValue(*variant, number, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_OnSetValue[] = { &wxluatype_wxEnumProperty, NULL }; -static int LUACALL wxLua_wxEnumProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_OnSetValue[1] = {{ wxLua_wxEnumProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxEnumProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxEnumProperty_OnSetValue(lua_State *L) -{ - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_StringToValue[] = { &wxluatype_wxEnumProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEnumProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_StringToValue[1] = {{ wxLua_wxEnumProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxEnumProperty_StringToValue }}; -// int argFlags = 0 ) const; -static int LUACALL wxLua_wxEnumProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_ValidateValue[] = { &wxluatype_wxEnumProperty, &wxluatype_wxVariant, &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxEnumProperty_ValidateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_ValidateValue[1] = {{ wxLua_wxEnumProperty_ValidateValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxEnumProperty_ValidateValue }}; -// wxPGValidationInfo& validationInfo ) const; -static int LUACALL wxLua_wxEnumProperty_ValidateValue(lua_State *L) -{ - // wxPGValidationInfo validationInfo - wxPGValidationInfo * validationInfo = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGValidationInfo); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call ValidateValue - bool returns = (self->ValidateValue(*value, *validationInfo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_ValueToString[] = { &wxluatype_wxEnumProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEnumProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_ValueToString[1] = {{ wxLua_wxEnumProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxEnumProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxEnumProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxEnumProperty * self = (wxEnumProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxEnumProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxArrayInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEnumProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_constructor1[1] = {{ wxLua_wxEnumProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 5, s_wxluatypeArray_wxLua_wxEnumProperty_constructor1 }}; -// int value = 0 ); -static int LUACALL wxLua_wxEnumProperty_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = 0 - int value = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxArrayInt values = wxLuaSmartwxArrayInt() - wxLuaSmartwxArrayInt values = (argCount >= 4 ? wxlua_getwxArrayInt(L, 4) : wxLuaSmartwxArrayInt()); - // const wxArrayString labels - wxLuaSmartwxArrayString labels = wxlua_getwxArrayString(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxEnumProperty* returns = new wxEnumProperty(label, name, labels, values, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEnumProperty); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEnumProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPGChoices, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxEnumProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_constructor[1] = {{ wxLua_wxEnumProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxEnumProperty_constructor }}; -// int value = 0 ); -static int LUACALL wxLua_wxEnumProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = 0 - int value = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxPGChoices choices - wxPGChoices * choices = (wxPGChoices *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGChoices); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxEnumProperty* returns = new wxEnumProperty(label, name, *choices, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEnumProperty); - - return 1; -} - - - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEnumProperty_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxEnumProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 5, s_wxluatypeArray_wxLua_wxEnumProperty_constructor1 }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxEnumProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxEnumProperty_constructor }, -}; -static int s_wxluafunc_wxLua_wxEnumProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxEnumProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxEnumProperty_delete_function(void** p) -{ - wxEnumProperty* o = (wxEnumProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEnumProperty_methods[] = { - { "GetChoiceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_GetChoiceSelection, 1, NULL }, - { "GetIndexForValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_GetIndexForValue, 1, NULL }, - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_GetItemCount, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "IntToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_IntToValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_OnSetValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_StringToValue, 1, NULL }, - { "ValidateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_ValidateValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxEnumProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxEnumProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxEnumProperty_constructor_overload, s_wxluafunc_wxLua_wxEnumProperty_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxEnumProperty_methodCount = sizeof(wxEnumProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxEditEnumProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxEditEnumProperty' -int wxluatype_wxEditEnumProperty = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxEditEnumProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPGChoices, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxEditEnumProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEditEnumProperty_constructor1[1] = {{ wxLua_wxEditEnumProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxEditEnumProperty_constructor1 }}; -// const wxString& value = wxEmptyString ); -static int LUACALL wxLua_wxEditEnumProperty_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxPGChoices choices - wxPGChoices * choices = (wxPGChoices *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGChoices); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxEditEnumProperty* returns = new wxEditEnumProperty(label, name, *choices, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEditEnumProperty); - - return 1; -} - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxEditEnumProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxArrayInt, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxEditEnumProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxEditEnumProperty_constructor[1] = {{ wxLua_wxEditEnumProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxEditEnumProperty_constructor }}; -// const wxString& value = wxEmptyString ); -static int LUACALL wxLua_wxEditEnumProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxEmptyString)); - // const wxArrayInt values = wxLuaSmartwxArrayInt() - wxLuaSmartwxArrayInt values = (argCount >= 4 ? wxlua_getwxArrayInt(L, 4) : wxLuaSmartwxArrayInt()); - // const wxArrayString labels = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString labels = (argCount >= 3 ? wxlua_getwxArrayString(L, 3) : wxLuaNullSmartwxArrayString); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxEditEnumProperty* returns = new wxEditEnumProperty(label, name, labels, values, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEditEnumProperty); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxEditEnumProperty_constructor_overload[] = -{ - { wxLua_wxEditEnumProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxEditEnumProperty_constructor1 }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxEditEnumProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxEditEnumProperty_constructor }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxEditEnumProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxEditEnumProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -void wxLua_wxEditEnumProperty_delete_function(void** p) -{ - wxEditEnumProperty* o = (wxEditEnumProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxEditEnumProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "wxEditEnumProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxEditEnumProperty_constructor_overload, s_wxluafunc_wxLua_wxEditEnumProperty_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { 0, 0, 0, 0 }, -}; - -int wxEditEnumProperty_methodCount = sizeof(wxEditEnumProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxFlagsProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxFlagsProperty' -int wxluatype_wxFlagsProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_ChildChanged[] = { &wxluatype_wxFlagsProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxFlagsProperty_ChildChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_ChildChanged[1] = {{ wxLua_wxFlagsProperty_ChildChanged, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxFlagsProperty_ChildChanged }}; -// wxVariant& childValue ) const; -static int LUACALL wxLua_wxFlagsProperty_ChildChanged(lua_State *L) -{ - // wxVariant childValue - wxVariant * childValue = (wxVariant *)wxluaT_getuserdatatype(L, 4, wxluatype_wxVariant); - // int childIndex - int childIndex = (int)wxlua_getnumbertype(L, 3); - // wxVariant thisValue - wxVariant * thisValue = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call ChildChanged - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->ChildChanged(*thisValue, childIndex, *childValue)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_DoSetAttribute[] = { &wxluatype_wxFlagsProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxFlagsProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_DoSetAttribute[1] = {{ wxLua_wxFlagsProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxFlagsProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxFlagsProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_GetChoiceSelection[] = { &wxluatype_wxFlagsProperty, NULL }; -static int LUACALL wxLua_wxFlagsProperty_GetChoiceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_GetChoiceSelection[1] = {{ wxLua_wxFlagsProperty_GetChoiceSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFlagsProperty_GetChoiceSelection }}; -// virtual int GetChoiceSelection() const; -static int LUACALL wxLua_wxFlagsProperty_GetChoiceSelection(lua_State *L) -{ - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call GetChoiceSelection - int returns = (self->GetChoiceSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_GetItemCount[] = { &wxluatype_wxFlagsProperty, NULL }; -static int LUACALL wxLua_wxFlagsProperty_GetItemCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_GetItemCount[1] = {{ wxLua_wxFlagsProperty_GetItemCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFlagsProperty_GetItemCount }}; -// size_t GetItemCount() const; -static int LUACALL wxLua_wxFlagsProperty_GetItemCount(lua_State *L) -{ - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call GetItemCount - size_t returns = (self->GetItemCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_GetLabel[] = { &wxluatype_wxFlagsProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxFlagsProperty_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_GetLabel[1] = {{ wxLua_wxFlagsProperty_GetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxFlagsProperty_GetLabel }}; -// const wxString& GetLabel( size_t ind ) const; -static int LUACALL wxLua_wxFlagsProperty_GetLabel(lua_State *L) -{ - // size_t ind - size_t ind = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call GetLabel - wxString returns = (self->GetLabel(ind)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_OnSetValue[] = { &wxluatype_wxFlagsProperty, NULL }; -static int LUACALL wxLua_wxFlagsProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_OnSetValue[1] = {{ wxLua_wxFlagsProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFlagsProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxFlagsProperty_OnSetValue(lua_State *L) -{ - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_RefreshChildren[] = { &wxluatype_wxFlagsProperty, NULL }; -static int LUACALL wxLua_wxFlagsProperty_RefreshChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_RefreshChildren[1] = {{ wxLua_wxFlagsProperty_RefreshChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxFlagsProperty_RefreshChildren }}; -// virtual void RefreshChildren(); -static int LUACALL wxLua_wxFlagsProperty_RefreshChildren(lua_State *L) -{ - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call RefreshChildren - self->RefreshChildren(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_StringToValue[] = { &wxluatype_wxFlagsProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlagsProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_StringToValue[1] = {{ wxLua_wxFlagsProperty_StringToValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxFlagsProperty_StringToValue }}; -// int flags ) const; -static int LUACALL wxLua_wxFlagsProperty_StringToValue(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 4); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_ValueToString[] = { &wxluatype_wxFlagsProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlagsProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_ValueToString[1] = {{ wxLua_wxFlagsProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxFlagsProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxFlagsProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxFlagsProperty * self = (wxFlagsProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxFlagsProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxArrayString, &wxluatype_wxArrayInt, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlagsProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_constructor1[1] = {{ wxLua_wxFlagsProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxFlagsProperty_constructor1 }}; -// int value = 0 ); -static int LUACALL wxLua_wxFlagsProperty_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = 0 - int value = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxArrayInt values = wxLuaSmartwxArrayInt() - wxLuaSmartwxArrayInt values = (argCount >= 4 ? wxlua_getwxArrayInt(L, 4) : wxLuaSmartwxArrayInt()); - // const wxArrayString labels = wxLuaNullSmartwxArrayString - wxLuaSmartwxArrayString labels = (argCount >= 3 ? wxlua_getwxArrayString(L, 3) : wxLuaNullSmartwxArrayString); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label = wxPG_LABEL - const wxString label = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxPG_LABEL)); - // call constructor - wxFlagsProperty* returns = new wxFlagsProperty(label, name, labels, values, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFlagsProperty); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxFlagsProperty_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxPGChoices, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxFlagsProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_constructor[1] = {{ wxLua_wxFlagsProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFlagsProperty_constructor }}; -// long value = 0 ); -static int LUACALL wxLua_wxFlagsProperty_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long value = 0 - long value = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // wxPGChoices choices - wxPGChoices * choices = (wxPGChoices *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGChoices); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxFlagsProperty* returns = new wxFlagsProperty(label, name, *choices, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFlagsProperty); - - return 1; -} - - - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxFlagsProperty_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxFlagsProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 5, s_wxluatypeArray_wxLua_wxFlagsProperty_constructor1 }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxFlagsProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxFlagsProperty_constructor }, -}; -static int s_wxluafunc_wxLua_wxFlagsProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxFlagsProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxFlagsProperty_delete_function(void** p) -{ - wxFlagsProperty* o = (wxFlagsProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxFlagsProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "ChildChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_ChildChanged, 1, NULL }, - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_DoSetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetChoiceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_GetChoiceSelection, 1, NULL }, - { "GetItemCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_GetItemCount, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_GetLabel, 1, NULL }, - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_OnSetValue, 1, NULL }, - { "RefreshChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_RefreshChildren, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_StringToValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFlagsProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxFlagsProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFlagsProperty_constructor_overload, s_wxluafunc_wxLua_wxFlagsProperty_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxFlagsProperty_methodCount = sizeof(wxFlagsProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGArrayEditorDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGArrayEditorDialog' -int wxluatype_wxPGArrayEditorDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_Create[] = { &wxluatype_wxPGArrayEditorDialog, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_Create[1] = {{ wxLua_wxPGArrayEditorDialog_Create, WXLUAMETHOD_METHOD, 4, 7, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_Create }}; -// const wxSize& sz = wxDefaultSize ); -static int LUACALL wxLua_wxPGArrayEditorDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize sz = wxDefaultSize - const wxSize * sz = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // long style = wxAEDIALOG_STYLE - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxAEDIALOG_STYLE); - // const wxString caption - const wxString caption = wxlua_getwxStringtype(L, 4); - // const wxString message - const wxString message = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call Create - bool returns = (self->Create(parent, message, caption, style, *pos, *sz)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_EnableCustomNewAction[] = { &wxluatype_wxPGArrayEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_EnableCustomNewAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_EnableCustomNewAction[1] = {{ wxLua_wxPGArrayEditorDialog_EnableCustomNewAction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_EnableCustomNewAction }}; -// void EnableCustomNewAction(); -static int LUACALL wxLua_wxPGArrayEditorDialog_EnableCustomNewAction(lua_State *L) -{ - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call EnableCustomNewAction - self->EnableCustomNewAction(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_GetDialogValue[] = { &wxluatype_wxPGArrayEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_GetDialogValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_GetDialogValue[1] = {{ wxLua_wxPGArrayEditorDialog_GetDialogValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_GetDialogValue }}; -// virtual wxVariant GetDialogValue() const; -static int LUACALL wxLua_wxPGArrayEditorDialog_GetDialogValue(lua_State *L) -{ - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call GetDialogValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetDialogValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_GetSelection[] = { &wxluatype_wxPGArrayEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_GetSelection[1] = {{ wxLua_wxPGArrayEditorDialog_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_GetSelection }}; -// int GetSelection() const; -static int LUACALL wxLua_wxPGArrayEditorDialog_GetSelection(lua_State *L) -{ - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call GetSelection - int returns = (self->GetSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator[] = { &wxluatype_wxPGArrayEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator[1] = {{ wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator }}; -// virtual wxValidator* GetTextCtrlValidator() const; -static int LUACALL wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator(lua_State *L) -{ - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call GetTextCtrlValidator - wxValidator* returns = (wxValidator*)self->GetTextCtrlValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_Init[] = { &wxluatype_wxPGArrayEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_Init[1] = {{ wxLua_wxPGArrayEditorDialog_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_Init }}; -// void Init(); -static int LUACALL wxLua_wxPGArrayEditorDialog_Init(lua_State *L) -{ - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_IsModified[] = { &wxluatype_wxPGArrayEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_IsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_IsModified[1] = {{ wxLua_wxPGArrayEditorDialog_IsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_IsModified }}; -// bool IsModified() const; -static int LUACALL wxLua_wxPGArrayEditorDialog_IsModified(lua_State *L) -{ - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call IsModified - bool returns = (self->IsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_SetDialogValue[] = { &wxluatype_wxPGArrayEditorDialog, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_SetDialogValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_SetDialogValue[1] = {{ wxLua_wxPGArrayEditorDialog_SetDialogValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_SetDialogValue }}; -// virtual void SetDialogValue( const wxVariant& value ); -static int LUACALL wxLua_wxPGArrayEditorDialog_SetDialogValue(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call SetDialogValue - self->SetDialogValue(*value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_SetNewButtonText[] = { &wxluatype_wxPGArrayEditorDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGArrayEditorDialog_SetNewButtonText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayEditorDialog_SetNewButtonText[1] = {{ wxLua_wxPGArrayEditorDialog_SetNewButtonText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGArrayEditorDialog_SetNewButtonText }}; -// %wxchkver_3_2_0 void SetNewButtonText(const wxString& text); -static int LUACALL wxLua_wxPGArrayEditorDialog_SetNewButtonText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxPGArrayEditorDialog * self = (wxPGArrayEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayEditorDialog); - // call SetNewButtonText - self->SetNewButtonText(text); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - -void wxLua_wxPGArrayEditorDialog_delete_function(void** p) -{ - wxPGArrayEditorDialog* o = (wxPGArrayEditorDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGArrayEditorDialog_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "EnableCustomNewAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_EnableCustomNewAction, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetDialogValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_GetDialogValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_GetSelection, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "GetTextCtrlValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_GetTextCtrlValidator, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_Init, 1, NULL }, - { "IsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_IsModified, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetDialogValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_SetDialogValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetNewButtonText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayEditorDialog_SetNewButtonText, 1, NULL }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGArrayEditorDialog_methodCount = sizeof(wxPGArrayEditorDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGArrayStringEditorDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGArrayStringEditorDialog' -int wxluatype_wxPGArrayStringEditorDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_GetDialogValue[] = { &wxluatype_wxPGArrayStringEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayStringEditorDialog_GetDialogValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_GetDialogValue[1] = {{ wxLua_wxPGArrayStringEditorDialog_GetDialogValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_GetDialogValue }}; -// virtual wxVariant GetDialogValue() const; -static int LUACALL wxLua_wxPGArrayStringEditorDialog_GetDialogValue(lua_State *L) -{ - // get this - wxPGArrayStringEditorDialog * self = (wxPGArrayStringEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayStringEditorDialog); - // call GetDialogValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetDialogValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_Init[] = { &wxluatype_wxPGArrayStringEditorDialog, NULL }; -static int LUACALL wxLua_wxPGArrayStringEditorDialog_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_Init[1] = {{ wxLua_wxPGArrayStringEditorDialog_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_Init }}; -// void Init(); -static int LUACALL wxLua_wxPGArrayStringEditorDialog_Init(lua_State *L) -{ - // get this - wxPGArrayStringEditorDialog * self = (wxPGArrayStringEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayStringEditorDialog); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction[] = { &wxluatype_wxPGArrayStringEditorDialog, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction[1] = {{ wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction }}; -// virtual bool OnCustomNewAction(wxString* resString); -static int LUACALL wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction(lua_State *L) -{ - // wxString resString - wxString * resString = (wxString *)wxlua_touserdata(L, 2); - // get this - wxPGArrayStringEditorDialog * self = (wxPGArrayStringEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayStringEditorDialog); - // call OnCustomNewAction - bool returns = (self->OnCustomNewAction(resString)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_SetCustomButton[] = { &wxluatype_wxPGArrayStringEditorDialog, &wxluatype_TSTRING, &wxluatype_wxArrayStringProperty, NULL }; -static int LUACALL wxLua_wxPGArrayStringEditorDialog_SetCustomButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_SetCustomButton[1] = {{ wxLua_wxPGArrayStringEditorDialog_SetCustomButton, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_SetCustomButton }}; -// wxArrayStringProperty* pcc ); -static int LUACALL wxLua_wxPGArrayStringEditorDialog_SetCustomButton(lua_State *L) -{ - // wxArrayStringProperty pcc - wxArrayStringProperty * pcc = (wxArrayStringProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayStringProperty); - // const wxString custBtText - const wxString custBtText = wxlua_getwxStringtype(L, 2); - // get this - wxPGArrayStringEditorDialog * self = (wxPGArrayStringEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayStringEditorDialog); - // call SetCustomButton - self->SetCustomButton(custBtText, pcc); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_SetDialogValue[] = { &wxluatype_wxPGArrayStringEditorDialog, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGArrayStringEditorDialog_SetDialogValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_SetDialogValue[1] = {{ wxLua_wxPGArrayStringEditorDialog_SetDialogValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGArrayStringEditorDialog_SetDialogValue }}; -// virtual void SetDialogValue( const wxVariant& value ); -static int LUACALL wxLua_wxPGArrayStringEditorDialog_SetDialogValue(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGArrayStringEditorDialog * self = (wxPGArrayStringEditorDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGArrayStringEditorDialog); - // call SetDialogValue - self->SetDialogValue(*value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static int LUACALL wxLua_wxPGArrayStringEditorDialog_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_constructor[1] = {{ wxLua_wxPGArrayStringEditorDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGArrayStringEditorDialog(); -static int LUACALL wxLua_wxPGArrayStringEditorDialog_constructor(lua_State *L) -{ - // call constructor - wxPGArrayStringEditorDialog* returns = new wxPGArrayStringEditorDialog(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGArrayStringEditorDialog); - - return 1; -} - - - - -void wxLua_wxPGArrayStringEditorDialog_delete_function(void** p) -{ - wxPGArrayStringEditorDialog* o = (wxPGArrayStringEditorDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGArrayStringEditorDialog_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetDialogValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_GetDialogValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_Init, 1, NULL }, - { "OnCustomNewAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_OnCustomNewAction, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetCustomButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_SetCustomButton, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetDialogValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_SetDialogValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "wxPGArrayStringEditorDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGArrayStringEditorDialog_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGArrayStringEditorDialog_methodCount = sizeof(wxPGArrayStringEditorDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridHitTestResult -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridHitTestResult' -int wxluatype_wxPropertyGridHitTestResult = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetColumn[] = { &wxluatype_wxPropertyGridHitTestResult, NULL }; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetColumn[1] = {{ wxLua_wxPropertyGridHitTestResult_GetColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetColumn }}; -// int GetColumn() const; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetColumn(lua_State *L) -{ - // get this - wxPropertyGridHitTestResult * self = (wxPropertyGridHitTestResult *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridHitTestResult); - // call GetColumn - int returns = (self->GetColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetProperty[] = { &wxluatype_wxPropertyGridHitTestResult, NULL }; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetProperty[1] = {{ wxLua_wxPropertyGridHitTestResult_GetProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetProperty }}; -// %ungc wxPGProperty* GetProperty() const; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetProperty(lua_State *L) -{ - // get this - wxPropertyGridHitTestResult * self = (wxPropertyGridHitTestResult *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridHitTestResult); - // call GetProperty - wxPGProperty* returns = (wxPGProperty*)self->GetProperty(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetSplitter[] = { &wxluatype_wxPropertyGridHitTestResult, NULL }; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetSplitter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetSplitter[1] = {{ wxLua_wxPropertyGridHitTestResult_GetSplitter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetSplitter }}; -// int GetSplitter() const; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetSplitter(lua_State *L) -{ - // get this - wxPropertyGridHitTestResult * self = (wxPropertyGridHitTestResult *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridHitTestResult); - // call GetSplitter - int returns = (self->GetSplitter()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset[] = { &wxluatype_wxPropertyGridHitTestResult, NULL }; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset[1] = {{ wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset }}; -// int GetSplitterHitOffset() const; -static int LUACALL wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset(lua_State *L) -{ - // get this - wxPropertyGridHitTestResult * self = (wxPropertyGridHitTestResult *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridHitTestResult); - // call GetSplitterHitOffset - int returns = (self->GetSplitterHitOffset()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_delete[] = { &wxluatype_wxPropertyGridHitTestResult, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridHitTestResult_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridHitTestResult_delete }}; - -static int LUACALL wxLua_wxPropertyGridHitTestResult_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridHitTestResult_constructor[1] = {{ wxLua_wxPropertyGridHitTestResult_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyGridHitTestResult(); -static int LUACALL wxLua_wxPropertyGridHitTestResult_constructor(lua_State *L) -{ - // call constructor - wxPropertyGridHitTestResult* returns = new wxPropertyGridHitTestResult(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridHitTestResult); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridHitTestResult); - - return 1; -} - - - - -void wxLua_wxPropertyGridHitTestResult_delete_function(void** p) -{ - wxPropertyGridHitTestResult* o = (wxPropertyGridHitTestResult*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridHitTestResult_methods[] = { - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetColumn, 1, NULL }, - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetProperty, 1, NULL }, - { "GetSplitter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetSplitter, 1, NULL }, - { "GetSplitterHitOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridHitTestResult_GetSplitterHitOffset, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyGridHitTestResult_delete, 1, NULL }, - { "wxPropertyGridHitTestResult", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridHitTestResult_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridHitTestResult_methodCount = sizeof(wxPropertyGridHitTestResult_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridIteratorBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridIteratorBase' -int wxluatype_wxPropertyGridIteratorBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Assign[] = { &wxluatype_wxPropertyGridIteratorBase, &wxluatype_wxPropertyGridIteratorBase, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_Assign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Assign[1] = {{ wxLua_wxPropertyGridIteratorBase_Assign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Assign }}; -// void Assign( const wxPropertyGridIteratorBase& it ); -static int LUACALL wxLua_wxPropertyGridIteratorBase_Assign(lua_State *L) -{ - // const wxPropertyGridIteratorBase it - const wxPropertyGridIteratorBase * it = (const wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridIteratorBase); - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call Assign - self->Assign(*it); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_AtEnd[] = { &wxluatype_wxPropertyGridIteratorBase, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_AtEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_AtEnd[1] = {{ wxLua_wxPropertyGridIteratorBase_AtEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_AtEnd }}; -// bool AtEnd() const; -static int LUACALL wxLua_wxPropertyGridIteratorBase_AtEnd(lua_State *L) -{ - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call AtEnd - bool returns = (self->AtEnd()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_GetProperty[] = { &wxluatype_wxPropertyGridIteratorBase, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_GetProperty[1] = {{ wxLua_wxPropertyGridIteratorBase_GetProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_GetProperty }}; -// %ungc wxPGProperty* GetProperty() const; -static int LUACALL wxLua_wxPropertyGridIteratorBase_GetProperty(lua_State *L) -{ - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call GetProperty - wxPGProperty* returns = (wxPGProperty*)self->GetProperty(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Init1[] = { &wxluatype_wxPropertyGridIteratorBase, &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_Init1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init1[1] = {{ wxLua_wxPropertyGridIteratorBase_Init1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Init1 }}; -// int dir = 0 ); -static int LUACALL wxLua_wxPropertyGridIteratorBase_Init1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int dir = 0 - int dir = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // int startPos = wxTOP - int startPos = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxTOP); - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // wxPropertyGridPageState state - wxPropertyGridPageState * state = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridPageState); - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call Init - self->Init(state, flags, startPos, dir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Init[] = { &wxluatype_wxPropertyGridIteratorBase, &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_Init(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init[1] = {{ wxLua_wxPropertyGridIteratorBase_Init, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Init }}; -// int dir = 1 ); -static int LUACALL wxLua_wxPropertyGridIteratorBase_Init(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int dir = 1 - int dir = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGProperty); - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // wxPropertyGridPageState state - wxPropertyGridPageState * state = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridPageState); - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call Init - self->Init(state, flags, property, dir); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Next[] = { &wxluatype_wxPropertyGridIteratorBase, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_Next(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Next[1] = {{ wxLua_wxPropertyGridIteratorBase_Next, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Next }}; -// void Next( bool iterateChildren = true ); -static int LUACALL wxLua_wxPropertyGridIteratorBase_Next(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool iterateChildren = true - bool iterateChildren = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call Next - self->Next(iterateChildren); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Prev[] = { &wxluatype_wxPropertyGridIteratorBase, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_Prev(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Prev[1] = {{ wxLua_wxPropertyGridIteratorBase_Prev, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Prev }}; -// void Prev(); -static int LUACALL wxLua_wxPropertyGridIteratorBase_Prev(lua_State *L) -{ - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call Prev - self->Prev(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_SetBaseParent[] = { &wxluatype_wxPropertyGridIteratorBase, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridIteratorBase_SetBaseParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_SetBaseParent[1] = {{ wxLua_wxPropertyGridIteratorBase_SetBaseParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_SetBaseParent }}; -// void SetBaseParent( wxPGProperty* baseParent ); -static int LUACALL wxLua_wxPropertyGridIteratorBase_SetBaseParent(lua_State *L) -{ - // wxPGProperty baseParent - wxPGProperty * baseParent = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridIteratorBase * self = (wxPropertyGridIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridIteratorBase); - // call SetBaseParent - self->SetBaseParent(baseParent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_delete[] = { &wxluatype_wxPropertyGridIteratorBase, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_delete }}; - -static int LUACALL wxLua_wxPropertyGridIteratorBase_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_constructor[1] = {{ wxLua_wxPropertyGridIteratorBase_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyGridIteratorBase(); -static int LUACALL wxLua_wxPropertyGridIteratorBase_constructor(lua_State *L) -{ - // call constructor - wxPropertyGridIteratorBase* returns = new wxPropertyGridIteratorBase(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridIteratorBase); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridIteratorBase); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init_overload[] = -{ - { wxLua_wxPropertyGridIteratorBase_Init1, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Init1 }, - { wxLua_wxPropertyGridIteratorBase_Init, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxPropertyGridIteratorBase_Init }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridIteratorBase_delete_function(void** p) -{ - wxPropertyGridIteratorBase* o = (wxPropertyGridIteratorBase*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridIteratorBase_methods[] = { - { "Assign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Assign, 1, NULL }, - { "AtEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_AtEnd, 1, NULL }, - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_GetProperty, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init_overload, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Init_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "Next", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Next, 1, NULL }, - { "Prev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_Prev, 1, NULL }, - { "SetBaseParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_SetBaseParent, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_delete, 1, NULL }, - { "wxPropertyGridIteratorBase", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridIteratorBase_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridIteratorBase_methodCount = sizeof(wxPropertyGridIteratorBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridConstIterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridConstIterator' -int wxluatype_wxPropertyGridConstIterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_delete[] = { &wxluatype_wxPropertyGridConstIterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridConstIterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor3[] = { &wxluatype_wxPropertyGridConstIterator, NULL }; -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor3[1] = {{ wxLua_wxPropertyGridConstIterator_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor3 }}; -// wxPropertyGridConstIterator( const wxPropertyGridConstIterator& it ); -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor3(lua_State *L) -{ - // const wxPropertyGridConstIterator it - const wxPropertyGridConstIterator * it = (const wxPropertyGridConstIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridConstIterator); - // call constructor - wxPropertyGridConstIterator* returns = new wxPropertyGridConstIterator(*it); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridConstIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridConstIterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor2[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor2[1] = {{ wxLua_wxPropertyGridConstIterator_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor2 }}; -// int flags, int startPos, int dir = 0 ); -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int dir = 0 - int dir = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 3); - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // wxPropertyGridPageState state - wxPropertyGridPageState * state = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call constructor - wxPropertyGridConstIterator* returns = new wxPropertyGridConstIterator(state, flags, startPos, dir); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridConstIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridConstIterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor1[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor1[1] = {{ wxLua_wxPropertyGridConstIterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor1 }}; -// const wxPGProperty* property = NULL, int dir = 1 ); -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int dir = 1 - int dir = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // const wxPGProperty property = NULL - const wxPGProperty * property = (argCount >= 3 ? (const wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty) : NULL); - // int flags = wxPG_ITERATE_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_ITERATE_DEFAULT); - // const wxPropertyGridPageState state - const wxPropertyGridPageState * state = (const wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call constructor - wxPropertyGridConstIterator* returns = new wxPropertyGridConstIterator(state, flags, property, dir); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridConstIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridConstIterator); - - return 1; -} - -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor[1] = {{ wxLua_wxPropertyGridConstIterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyGridConstIterator(); -static int LUACALL wxLua_wxPropertyGridConstIterator_constructor(lua_State *L) -{ - // call constructor - wxPropertyGridConstIterator* returns = new wxPropertyGridConstIterator(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridConstIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridConstIterator); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor_overload[] = -{ - { wxLua_wxPropertyGridConstIterator_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor3 }, - { wxLua_wxPropertyGridConstIterator_constructor2, WXLUAMETHOD_CONSTRUCTOR, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor2 }, - { wxLua_wxPropertyGridConstIterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxPropertyGridConstIterator_constructor1 }, - { wxLua_wxPropertyGridConstIterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridConstIterator_delete_function(void** p) -{ - wxPropertyGridConstIterator* o = (wxPropertyGridConstIterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridConstIterator_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyGridConstIterator_delete, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPropertyGridConstIterator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor_overload, s_wxluafunc_wxLua_wxPropertyGridConstIterator_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridConstIterator_methodCount = sizeof(wxPropertyGridConstIterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGVIteratorBase -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGVIteratorBase' -int wxluatype_wxPGVIteratorBase = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIteratorBase_Next[] = { &wxluatype_wxPGVIteratorBase, NULL }; -static int LUACALL wxLua_wxPGVIteratorBase_Next(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIteratorBase_Next[1] = {{ wxLua_wxPGVIteratorBase_Next, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGVIteratorBase_Next }}; -// virtual void Next() = 0; -static int LUACALL wxLua_wxPGVIteratorBase_Next(lua_State *L) -{ - // get this - wxPGVIteratorBase * self = (wxPGVIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIteratorBase); - // call Next - self->Next(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIteratorBase_delete[] = { &wxluatype_wxPGVIteratorBase, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIteratorBase_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGVIteratorBase_delete }}; - - - - -// %override wxLua_wxPGVIteratorBase_delete_function -// delete is private in wxPGVIteratorBase -void wxLua_wxPGVIteratorBase_delete_function(void** p) -{ -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGVIteratorBase_methods[] = { - { "Next", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGVIteratorBase_Next, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGVIteratorBase_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGVIteratorBase_methodCount = sizeof(wxPGVIteratorBase_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGVIterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGVIterator' -int wxluatype_wxPGVIterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_AtEnd[] = { &wxluatype_wxPGVIterator, NULL }; -static int LUACALL wxLua_wxPGVIterator_AtEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_AtEnd[1] = {{ wxLua_wxPGVIterator_AtEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_AtEnd }}; -// bool AtEnd() const; -static int LUACALL wxLua_wxPGVIterator_AtEnd(lua_State *L) -{ - // get this - wxPGVIterator * self = (wxPGVIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIterator); - // call AtEnd - bool returns = (self->AtEnd()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_GetProperty[] = { &wxluatype_wxPGVIterator, NULL }; -static int LUACALL wxLua_wxPGVIterator_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_GetProperty[1] = {{ wxLua_wxPGVIterator_GetProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_GetProperty }}; -// %ungc wxPGProperty* GetProperty() const; -static int LUACALL wxLua_wxPGVIterator_GetProperty(lua_State *L) -{ - // get this - wxPGVIterator * self = (wxPGVIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIterator); - // call GetProperty - wxPGProperty* returns = (wxPGProperty*)self->GetProperty(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_Next[] = { &wxluatype_wxPGVIterator, NULL }; -static int LUACALL wxLua_wxPGVIterator_Next(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_Next[1] = {{ wxLua_wxPGVIterator_Next, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_Next }}; -// void Next(); -static int LUACALL wxLua_wxPGVIterator_Next(lua_State *L) -{ - // get this - wxPGVIterator * self = (wxPGVIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIterator); - // call Next - self->Next(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_UnRef[] = { &wxluatype_wxPGVIterator, NULL }; -static int LUACALL wxLua_wxPGVIterator_UnRef(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_UnRef[1] = {{ wxLua_wxPGVIterator_UnRef, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_UnRef }}; -// void UnRef(); -static int LUACALL wxLua_wxPGVIterator_UnRef(lua_State *L) -{ - // get this - wxPGVIterator * self = (wxPGVIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIterator); - // call UnRef - self->UnRef(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_delete[] = { &wxluatype_wxPGVIterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_op_set[] = { &wxluatype_wxPGVIterator, &wxluatype_wxPGVIterator, NULL }; -static int LUACALL wxLua_wxPGVIterator_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_op_set[1] = {{ wxLua_wxPGVIterator_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGVIterator_op_set }}; -// const wxPGVIterator& operator=( const wxPGVIterator& it ); -static int LUACALL wxLua_wxPGVIterator_op_set(lua_State *L) -{ - // const wxPGVIterator it - const wxPGVIterator * it = (const wxPGVIterator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGVIterator); - // get this - wxPGVIterator * self = (wxPGVIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIterator); - // call op_set - (*self)=(*it); - const wxPGVIterator* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGVIterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_constructor2[] = { &wxluatype_wxPGVIterator, NULL }; -static int LUACALL wxLua_wxPGVIterator_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_constructor2[1] = {{ wxLua_wxPGVIterator_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_constructor2 }}; -// wxPGVIterator( const wxPGVIterator& it ); -static int LUACALL wxLua_wxPGVIterator_constructor2(lua_State *L) -{ - // const wxPGVIterator it - const wxPGVIterator * it = (const wxPGVIterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIterator); - // call constructor - wxPGVIterator* returns = new wxPGVIterator(*it); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGVIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGVIterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGVIterator_constructor1[] = { &wxluatype_wxPGVIteratorBase, NULL }; -static int LUACALL wxLua_wxPGVIterator_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_constructor1[1] = {{ wxLua_wxPGVIterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_constructor1 }}; -// wxPGVIterator( wxPGVIteratorBase* obj ); -static int LUACALL wxLua_wxPGVIterator_constructor1(lua_State *L) -{ - // wxPGVIteratorBase obj - wxPGVIteratorBase * obj = (wxPGVIteratorBase *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGVIteratorBase); - // call constructor - wxPGVIterator* returns = new wxPGVIterator(obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGVIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGVIterator); - - return 1; -} - -static int LUACALL wxLua_wxPGVIterator_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_constructor[1] = {{ wxLua_wxPGVIterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGVIterator(); -static int LUACALL wxLua_wxPGVIterator_constructor(lua_State *L) -{ - // call constructor - wxPGVIterator* returns = new wxPGVIterator(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGVIterator); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGVIterator); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGVIterator_constructor_overload[] = -{ - { wxLua_wxPGVIterator_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_constructor2 }, - { wxLua_wxPGVIterator_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGVIterator_constructor1 }, - { wxLua_wxPGVIterator_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPGVIterator_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPGVIterator_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPGVIterator_delete_function(void** p) -{ - wxPGVIterator* o = (wxPGVIterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGVIterator_methods[] = { - { "AtEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGVIterator_AtEnd, 1, NULL }, - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGVIterator_GetProperty, 1, NULL }, - { "Next", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGVIterator_Next, 1, NULL }, - { "UnRef", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGVIterator_UnRef, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGVIterator_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGVIterator_op_set, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPGVIterator", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGVIterator_constructor_overload, s_wxluafunc_wxLua_wxPGVIterator_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGVIterator_methodCount = sizeof(wxPGVIterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridPageState -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridPageState' -int wxluatype_wxPropertyGridPageState = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_CheckColumnWidths[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_CheckColumnWidths(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_CheckColumnWidths[1] = {{ wxLua_wxPropertyGridPageState_CheckColumnWidths, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_CheckColumnWidths }}; -// void CheckColumnWidths( int widthChange = 0 ); -static int LUACALL wxLua_wxPropertyGridPageState_CheckColumnWidths(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int widthChange = 0 - int widthChange = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call CheckColumnWidths - self->CheckColumnWidths(widthChange); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_DoDelete[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_DoDelete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_DoDelete[1] = {{ wxLua_wxPropertyGridPageState_DoDelete, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridPageState_DoDelete }}; -// virtual void DoDelete( wxPGProperty* item, bool doDelete = true ); -static int LUACALL wxLua_wxPropertyGridPageState_DoDelete(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool doDelete = true - bool doDelete = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxPGProperty item - wxPGProperty * item = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call DoDelete - self->DoDelete(item, doDelete); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_DoInsert[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_DoInsert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_DoInsert[1] = {{ wxLua_wxPropertyGridPageState_DoInsert, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPropertyGridPageState_DoInsert }}; -// %ungc wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGridPageState_DoInsert(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGProperty); - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // wxPGProperty parent - wxPGProperty * parent = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - if (wxluaO_isgcobject(L, property)) wxluaO_undeletegcobject(L, property); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call DoInsert - wxPGProperty* returns = (wxPGProperty*)self->DoInsert(parent, index, property); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_DoSetSplitterPosition[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_DoSetSplitterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_DoSetSplitterPosition[1] = {{ wxLua_wxPropertyGridPageState_DoSetSplitterPosition, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridPageState_DoSetSplitterPosition }}; -// int flags = 0 ); -static int LUACALL wxLua_wxPropertyGridPageState_DoSetSplitterPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int splitterColumn = 0 - int splitterColumn = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call DoSetSplitterPosition - self->DoSetSplitterPosition(pos, splitterColumn, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_EnableCategories[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_EnableCategories(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_EnableCategories[1] = {{ wxLua_wxPropertyGridPageState_EnableCategories, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_EnableCategories }}; -// bool EnableCategories( bool enable ); -static int LUACALL wxLua_wxPropertyGridPageState_EnableCategories(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call EnableCategories - bool returns = (self->EnableCategories(enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_EnsureVirtualHeight[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_EnsureVirtualHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_EnsureVirtualHeight[1] = {{ wxLua_wxPropertyGridPageState_EnsureVirtualHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_EnsureVirtualHeight }}; -// void EnsureVirtualHeight(); -static int LUACALL wxLua_wxPropertyGridPageState_EnsureVirtualHeight(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call EnsureVirtualHeight - self->EnsureVirtualHeight(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetActualVirtualHeight[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetActualVirtualHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetActualVirtualHeight[1] = {{ wxLua_wxPropertyGridPageState_GetActualVirtualHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetActualVirtualHeight }}; -// inline unsigned int GetActualVirtualHeight() const; -static int LUACALL wxLua_wxPropertyGridPageState_GetActualVirtualHeight(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetActualVirtualHeight - unsigned int returns = (self->GetActualVirtualHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnCount[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnCount[1] = {{ wxLua_wxPropertyGridPageState_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnCount }}; -// unsigned int GetColumnCount() const; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnCount(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetColumnCount - unsigned int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnFullWidth[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_wxClientDC, &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnFullWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnFullWidth[1] = {{ wxLua_wxPropertyGridPageState_GetColumnFullWidth, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnFullWidth }}; -// int GetColumnFullWidth(wxClientDC &dc, wxPGProperty *p, unsigned int col); -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnFullWidth(lua_State *L) -{ - // unsigned int col - unsigned int col = (unsigned int)wxlua_getuintegertype(L, 4); - // wxPGProperty p - wxPGProperty * p = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // wxClientDC dc - wxClientDC * dc = (wxClientDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClientDC); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetColumnFullWidth - int returns = (self->GetColumnFullWidth(*dc, p, col)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnMinWidth[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnMinWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnMinWidth[1] = {{ wxLua_wxPropertyGridPageState_GetColumnMinWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnMinWidth }}; -// int GetColumnMinWidth( int column ) const; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnMinWidth(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetColumnMinWidth - int returns = (self->GetColumnMinWidth(column)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnWidth[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnWidth[1] = {{ wxLua_wxPropertyGridPageState_GetColumnWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetColumnWidth }}; -// int GetColumnWidth( unsigned int column ) const; -static int LUACALL wxLua_wxPropertyGridPageState_GetColumnWidth(lua_State *L) -{ - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetColumnWidth - int returns = (self->GetColumnWidth(column)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetGrid[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetGrid[1] = {{ wxLua_wxPropertyGridPageState_GetGrid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetGrid }}; -// wxPropertyGrid* GetGrid() const; -static int LUACALL wxLua_wxPropertyGridPageState_GetGrid(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetGrid - wxPropertyGrid* returns = (wxPropertyGrid*)self->GetGrid(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetLastItem1[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetLastItem1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem1[1] = {{ wxLua_wxPropertyGridPageState_GetLastItem1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetLastItem1 }}; -// const wxPGProperty* GetLastItem( int flags = wxPG_ITERATE_DEFAULT ) const; -static int LUACALL wxLua_wxPropertyGridPageState_GetLastItem1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_ITERATE_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_ITERATE_DEFAULT); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetLastItem - const wxPGProperty* returns = (const wxPGProperty*)self->GetLastItem(flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetLastItem[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetLastItem(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem[1] = {{ wxLua_wxPropertyGridPageState_GetLastItem, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetLastItem }}; -// %ungc wxPGProperty* GetLastItem( int flags = wxPG_ITERATE_DEFAULT ); -static int LUACALL wxLua_wxPropertyGridPageState_GetLastItem(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_ITERATE_DEFAULT - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_ITERATE_DEFAULT); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetLastItem - wxPGProperty* returns = (wxPGProperty*)self->GetLastItem(flags); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetPropertyCategory[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetPropertyCategory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetPropertyCategory[1] = {{ wxLua_wxPropertyGridPageState_GetPropertyCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetPropertyCategory }}; -// wxPropertyCategory* GetPropertyCategory( const wxPGProperty* p ) const; -static int LUACALL wxLua_wxPropertyGridPageState_GetPropertyCategory(lua_State *L) -{ - // const wxPGProperty p - const wxPGProperty * p = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetPropertyCategory - wxPropertyCategory* returns = (wxPropertyCategory*)self->GetPropertyCategory(p); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyCategory); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetSelection[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetSelection[1] = {{ wxLua_wxPropertyGridPageState_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetSelection }}; -// %ungc wxPGProperty* GetSelection() const; -static int LUACALL wxLua_wxPropertyGridPageState_GetSelection(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetSelection - wxPGProperty* returns = (wxPGProperty*)self->GetSelection(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualHeight1[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetVirtualHeight1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight1[1] = {{ wxLua_wxPropertyGridPageState_GetVirtualHeight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualHeight1 }}; -// unsigned int GetVirtualHeight(); -static int LUACALL wxLua_wxPropertyGridPageState_GetVirtualHeight1(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetVirtualHeight - unsigned int returns = (self->GetVirtualHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualHeight[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetVirtualHeight(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight[1] = {{ wxLua_wxPropertyGridPageState_GetVirtualHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualHeight }}; -// unsigned int GetVirtualHeight() const; -static int LUACALL wxLua_wxPropertyGridPageState_GetVirtualHeight(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetVirtualHeight - unsigned int returns = (self->GetVirtualHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualWidth[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_GetVirtualWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualWidth[1] = {{ wxLua_wxPropertyGridPageState_GetVirtualWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualWidth }}; -// int GetVirtualWidth() const; -static int LUACALL wxLua_wxPropertyGridPageState_GetVirtualWidth(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call GetVirtualWidth - int returns = (self->GetVirtualWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_HitTest[] = { &wxluatype_wxPropertyGridPageState, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_HitTest[1] = {{ wxLua_wxPropertyGridPageState_HitTest, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_HitTest }}; -// wxPropertyGridHitTestResult HitTest( const wxPoint& pt ) const; -static int LUACALL wxLua_wxPropertyGridPageState_HitTest(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call HitTest - // allocate a new object using the copy constructor - wxPropertyGridHitTestResult* returns = new wxPropertyGridHitTestResult(self->HitTest(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridHitTestResult); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridHitTestResult); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_IsDisplayed[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_IsDisplayed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_IsDisplayed[1] = {{ wxLua_wxPropertyGridPageState_IsDisplayed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_IsDisplayed }}; -// inline bool IsDisplayed() const; -static int LUACALL wxLua_wxPropertyGridPageState_IsDisplayed(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call IsDisplayed - bool returns = (self->IsDisplayed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_IsInNonCatMode[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_IsInNonCatMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_IsInNonCatMode[1] = {{ wxLua_wxPropertyGridPageState_IsInNonCatMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_IsInNonCatMode }}; -// bool IsInNonCatMode() const; -static int LUACALL wxLua_wxPropertyGridPageState_IsInNonCatMode(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call IsInNonCatMode - bool returns = (self->IsInNonCatMode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_VirtualHeightChanged[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridPageState_VirtualHeightChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_VirtualHeightChanged[1] = {{ wxLua_wxPropertyGridPageState_VirtualHeightChanged, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_VirtualHeightChanged }}; -// void VirtualHeightChanged(); -static int LUACALL wxLua_wxPropertyGridPageState_VirtualHeightChanged(lua_State *L) -{ - // get this - wxPropertyGridPageState * self = (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridPageState); - // call VirtualHeightChanged - self->VirtualHeightChanged(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridPageState_delete[] = { &wxluatype_wxPropertyGridPageState, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_delete }}; - -static int LUACALL wxLua_wxPropertyGridPageState_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_constructor[1] = {{ wxLua_wxPropertyGridPageState_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyGridPageState(); -static int LUACALL wxLua_wxPropertyGridPageState_constructor(lua_State *L) -{ - // call constructor - wxPropertyGridPageState* returns = new wxPropertyGridPageState(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyGridPageState); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGridPageState); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem_overload[] = -{ - { wxLua_wxPropertyGridPageState_GetLastItem1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetLastItem1 }, - { wxLua_wxPropertyGridPageState_GetLastItem, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetLastItem }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight_overload[] = -{ - { wxLua_wxPropertyGridPageState_GetVirtualHeight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualHeight1 }, - { wxLua_wxPropertyGridPageState_GetVirtualHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridPageState_GetVirtualHeight }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridPageState_delete_function(void** p) -{ - wxPropertyGridPageState* o = (wxPropertyGridPageState*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridPageState_methods[] = { - { "CheckColumnWidths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_CheckColumnWidths, 1, NULL }, - { "DoDelete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_DoDelete, 1, NULL }, - { "DoInsert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_DoInsert, 1, NULL }, - { "DoSetSplitterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_DoSetSplitterPosition, 1, NULL }, - { "EnableCategories", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_EnableCategories, 1, NULL }, - { "EnsureVirtualHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_EnsureVirtualHeight, 1, NULL }, - { "GetActualVirtualHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetActualVirtualHeight, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnCount, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetColumnFullWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnFullWidth, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetColumnMinWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnMinWidth, 1, NULL }, - { "GetColumnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetColumnWidth, 1, NULL }, - { "GetGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetGrid, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetLastItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem_overload, s_wxluafunc_wxLua_wxPropertyGridPageState_GetLastItem_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetPropertyCategory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetPropertyCategory, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetSelection, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetVirtualHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight_overload, s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualHeight_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetVirtualWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_GetVirtualWidth, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_HitTest, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "IsDisplayed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_IsDisplayed, 1, NULL }, - { "IsInNonCatMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_IsInNonCatMode, 1, NULL }, - { "VirtualHeightChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridPageState_VirtualHeightChanged, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyGridPageState_delete, 1, NULL }, - { "wxPropertyGridPageState", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyGridPageState_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridPageState_methodCount = sizeof(wxPropertyGridPageState_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGPropArgCls -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGPropArgCls' -int wxluatype_wxPGPropArgCls = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_GetName[] = { &wxluatype_wxPGPropArgCls, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_GetName[1] = {{ wxLua_wxPGPropArgCls_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetName }}; -// const wxString& GetName(); -static int LUACALL wxLua_wxPGPropArgCls_GetName(lua_State *L) -{ - // get this - wxPGPropArgCls * self = (wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr2[] = { &wxluatype_wxPGPropArgCls, &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr2[1] = {{ wxLua_wxPGPropArgCls_GetPtr2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr2 }}; -// %ungc wxPGProperty* GetPtr( const wxPropertyGridInterface* iface ) const; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr2(lua_State *L) -{ - // const wxPropertyGridInterface iface - const wxPropertyGridInterface * iface = (const wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridInterface); - // get this - wxPGPropArgCls * self = (wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call GetPtr - wxPGProperty* returns = (wxPGProperty*)self->GetPtr(iface); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr1[] = { &wxluatype_wxPGPropArgCls, &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr1[1] = {{ wxLua_wxPGPropArgCls_GetPtr1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr1 }}; -// %ungc wxPGProperty* GetPtr( wxPropertyGridInterface* iface ) const; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr1(lua_State *L) -{ - // wxPropertyGridInterface iface - wxPropertyGridInterface * iface = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridInterface); - // get this - wxPGPropArgCls * self = (wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call GetPtr - wxPGProperty* returns = (wxPGProperty*)self->GetPtr(iface); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr[] = { &wxluatype_wxPGPropArgCls, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr[1] = {{ wxLua_wxPGPropArgCls_GetPtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr }}; -// %ungc wxPGProperty* GetPtr() const; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr(lua_State *L) -{ - // get this - wxPGPropArgCls * self = (wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call GetPtr - wxPGProperty* returns = (wxPGProperty*)self->GetPtr(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr0[] = { &wxluatype_wxPGPropArgCls, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr0(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr0[1] = {{ wxLua_wxPGPropArgCls_GetPtr0, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr0 }}; -// %ungc wxPGProperty* GetPtr0() const; -static int LUACALL wxLua_wxPGPropArgCls_GetPtr0(lua_State *L) -{ - // get this - wxPGPropArgCls * self = (wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call GetPtr0 - wxPGProperty* returns = (wxPGProperty*)self->GetPtr0(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_HasName[] = { &wxluatype_wxPGPropArgCls, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_HasName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_HasName[1] = {{ wxLua_wxPGPropArgCls_HasName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_HasName }}; -// bool HasName() const; -static int LUACALL wxLua_wxPGPropArgCls_HasName(lua_State *L) -{ - // get this - wxPGPropArgCls * self = (wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call HasName - bool returns = (self->HasName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_delete[] = { &wxluatype_wxPGPropArgCls, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor5[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor5[1] = {{ wxLua_wxPGPropArgCls_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor5 }}; -// wxPGPropArgCls( int ); -static int LUACALL wxLua_wxPGPropArgCls_constructor5(lua_State *L) -{ - // int arg1 - int arg1 = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxPGPropArgCls* returns = new wxPGPropArgCls(arg1); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGPropArgCls); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGPropArgCls); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor4[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor4[1] = {{ wxLua_wxPGPropArgCls_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor4 }}; -// wxPGPropArgCls( const wchar_t* str ); -static int LUACALL wxLua_wxPGPropArgCls_constructor4(lua_State *L) -{ - // const wchar_t str - const wchar_t * str = (const wchar_t *)wxlua_touserdata(L, 1); - // call constructor - wxPGPropArgCls* returns = new wxPGPropArgCls(str); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGPropArgCls); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGPropArgCls); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor3[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor3[1] = {{ wxLua_wxPGPropArgCls_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor3 }}; -// wxPGPropArgCls( const char* str ); -static int LUACALL wxLua_wxPGPropArgCls_constructor3(lua_State *L) -{ - // const char str - const char * str = wxlua_getstringtype(L, 1); - // call constructor - wxPGPropArgCls* returns = new wxPGPropArgCls(str); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGPropArgCls); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGPropArgCls); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor2[] = { &wxluatype_wxPGPropArgCls, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor2[1] = {{ wxLua_wxPGPropArgCls_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor2 }}; -// wxPGPropArgCls( const wxPGPropArgCls& id ); -static int LUACALL wxLua_wxPGPropArgCls_constructor2(lua_State *L) -{ - // const wxPGPropArgCls id - const wxPGPropArgCls * id = (const wxPGPropArgCls *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPropArgCls); - // call constructor - wxPGPropArgCls* returns = new wxPGPropArgCls(*id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGPropArgCls); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGPropArgCls); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor1[1] = {{ wxLua_wxPGPropArgCls_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor1 }}; -// wxPGPropArgCls( const wxString& str ); -static int LUACALL wxLua_wxPGPropArgCls_constructor1(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call constructor - wxPGPropArgCls* returns = new wxPGPropArgCls(str); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGPropArgCls); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGPropArgCls); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGPropArgCls_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor[1] = {{ wxLua_wxPGPropArgCls_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor }}; -// wxPGPropArgCls( const wxPGProperty* property ); -static int LUACALL wxLua_wxPGPropArgCls_constructor(lua_State *L) -{ - // const wxPGProperty property - const wxPGProperty * property = (const wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call constructor - wxPGPropArgCls* returns = new wxPGPropArgCls(property); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGPropArgCls); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGPropArgCls); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr_overload[] = -{ - { wxLua_wxPGPropArgCls_GetPtr2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr2 }, - { wxLua_wxPGPropArgCls_GetPtr1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr1 }, - { wxLua_wxPGPropArgCls_GetPtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_GetPtr }, -}; -static int s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr_overload_count = sizeof(s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPropArgCls_constructor_overload[] = -{ - { wxLua_wxPGPropArgCls_constructor5, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor5 }, - { wxLua_wxPGPropArgCls_constructor4, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor4 }, - { wxLua_wxPGPropArgCls_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor3 }, - { wxLua_wxPGPropArgCls_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor2 }, - { wxLua_wxPGPropArgCls_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor1 }, - { wxLua_wxPGPropArgCls_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGPropArgCls_constructor }, -}; -static int s_wxluafunc_wxLua_wxPGPropArgCls_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPGPropArgCls_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPGPropArgCls_delete_function(void** p) -{ - wxPGPropArgCls* o = (wxPGPropArgCls*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGPropArgCls_methods[] = { - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPropArgCls_GetName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPtr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr_overload, s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetPtr0", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPropArgCls_GetPtr0, 1, NULL }, - { "HasName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPropArgCls_HasName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGPropArgCls_delete, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPGPropArgCls", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGPropArgCls_constructor_overload, s_wxluafunc_wxLua_wxPGPropArgCls_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGPropArgCls_methodCount = sizeof(wxPGPropArgCls_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyGridInterface -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyGridInterface' -int wxluatype_wxPropertyGridInterface = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Append[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Append(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Append[1] = {{ wxLua_wxPropertyGridInterface_Append, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Append }}; -// %ungc wxPGProperty* Append( %ungc wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGridInterface_Append(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - if (wxluaO_isgcobject(L, property)) wxluaO_undeletegcobject(L, property); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Append - wxPGProperty* returns = (wxPGProperty*)self->Append(property); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_AppendIn1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_AppendIn1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn1[1] = {{ wxLua_wxPropertyGridInterface_AppendIn1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_AppendIn1 }}; -// %ungc wxPGProperty* AppendIn( const wxString& id, wxPGProperty* newProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_AppendIn1(lua_State *L) -{ - // wxPGProperty newProperty - wxPGProperty * newProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call AppendIn - wxPGProperty* returns = (wxPGProperty*)self->AppendIn(id, newProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_AppendIn[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_AppendIn(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn[1] = {{ wxLua_wxPropertyGridInterface_AppendIn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_AppendIn }}; -// %ungc wxPGProperty* AppendIn( const wxPGProperty*& id, wxPGProperty* newProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_AppendIn(lua_State *L) -{ - // wxPGProperty newProperty - wxPGProperty * newProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call AppendIn - wxPGProperty* returns = (wxPGProperty*)self->AppendIn(id, newProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_BeginAddChildren1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_BeginAddChildren1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren1[1] = {{ wxLua_wxPropertyGridInterface_BeginAddChildren1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_BeginAddChildren1 }}; -// void BeginAddChildren( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_BeginAddChildren1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call BeginAddChildren - self->BeginAddChildren(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_BeginAddChildren[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_BeginAddChildren(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren[1] = {{ wxLua_wxPropertyGridInterface_BeginAddChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_BeginAddChildren }}; -// void BeginAddChildren( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_BeginAddChildren(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call BeginAddChildren - self->BeginAddChildren(id); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ChangePropertyValue1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ChangePropertyValue1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue1[1] = {{ wxLua_wxPropertyGridInterface_ChangePropertyValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ChangePropertyValue1 }}; -// bool ChangePropertyValue( const wxString& id, wxVariant newValue ); -static int LUACALL wxLua_wxPropertyGridInterface_ChangePropertyValue1(lua_State *L) -{ - // wxVariant newValue - wxVariant newValue = wxlua_getwxVarianttype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ChangePropertyValue - bool returns = (self->ChangePropertyValue(id, newValue)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ChangePropertyValue[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ChangePropertyValue(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue[1] = {{ wxLua_wxPropertyGridInterface_ChangePropertyValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ChangePropertyValue }}; -// bool ChangePropertyValue( const wxPGProperty*& id, wxVariant newValue ); -static int LUACALL wxLua_wxPropertyGridInterface_ChangePropertyValue(lua_State *L) -{ - // wxVariant newValue - wxVariant newValue = wxlua_getwxVarianttype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ChangePropertyValue - bool returns = (self->ChangePropertyValue(id, newValue)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Clear[] = { &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Clear[1] = {{ wxLua_wxPropertyGridInterface_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Clear }}; -// virtual void Clear() = 0; -static int LUACALL wxLua_wxPropertyGridInterface_Clear(lua_State *L) -{ - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ClearModifiedStatus[] = { &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ClearModifiedStatus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ClearModifiedStatus[1] = {{ wxLua_wxPropertyGridInterface_ClearModifiedStatus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ClearModifiedStatus }}; -// void ClearModifiedStatus(); -static int LUACALL wxLua_wxPropertyGridInterface_ClearModifiedStatus(lua_State *L) -{ - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ClearModifiedStatus - self->ClearModifiedStatus(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ClearSelection[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ClearSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ClearSelection[1] = {{ wxLua_wxPropertyGridInterface_ClearSelection, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ClearSelection }}; -// bool ClearSelection( bool validation = false); -static int LUACALL wxLua_wxPropertyGridInterface_ClearSelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool validation = false - bool validation = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ClearSelection - bool returns = (self->ClearSelection(validation)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Collapse1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Collapse1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse1[1] = {{ wxLua_wxPropertyGridInterface_Collapse1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Collapse1 }}; -// bool Collapse( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_Collapse1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Collapse - bool returns = (self->Collapse(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Collapse[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Collapse(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse[1] = {{ wxLua_wxPropertyGridInterface_Collapse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Collapse }}; -// bool Collapse( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_Collapse(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Collapse - bool returns = (self->Collapse(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_CollapseAll[] = { &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_CollapseAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_CollapseAll[1] = {{ wxLua_wxPropertyGridInterface_CollapseAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridInterface_CollapseAll }}; -// bool CollapseAll(); -static int LUACALL wxLua_wxPropertyGridInterface_CollapseAll(lua_State *L) -{ - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call CollapseAll - bool returns = (self->CollapseAll()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_DeleteProperty1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_DeleteProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty1[1] = {{ wxLua_wxPropertyGridInterface_DeleteProperty1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DeleteProperty1 }}; -// void DeleteProperty( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_DeleteProperty1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call DeleteProperty - self->DeleteProperty(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_DeleteProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_DeleteProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty[1] = {{ wxLua_wxPropertyGridInterface_DeleteProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DeleteProperty }}; -// void DeleteProperty( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_DeleteProperty(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call DeleteProperty - self->DeleteProperty(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_DisableProperty1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_DisableProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty1[1] = {{ wxLua_wxPropertyGridInterface_DisableProperty1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DisableProperty1 }}; -// bool DisableProperty( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_DisableProperty1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call DisableProperty - bool returns = (self->DisableProperty(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_DisableProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_DisableProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty[1] = {{ wxLua_wxPropertyGridInterface_DisableProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DisableProperty }}; -// bool DisableProperty( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_DisableProperty(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call DisableProperty - bool returns = (self->DisableProperty(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_EditorValidate[] = { &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_EditorValidate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EditorValidate[1] = {{ wxLua_wxPropertyGridInterface_EditorValidate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EditorValidate }}; -// bool EditorValidate(); -static int LUACALL wxLua_wxPropertyGridInterface_EditorValidate(lua_State *L) -{ - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call EditorValidate - bool returns = (self->EditorValidate()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_EnableProperty1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_EnableProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty1[1] = {{ wxLua_wxPropertyGridInterface_EnableProperty1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EnableProperty1 }}; -// bool EnableProperty( const wxString& id, bool enable = true ); -static int LUACALL wxLua_wxPropertyGridInterface_EnableProperty1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call EnableProperty - bool returns = (self->EnableProperty(id, enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_EnableProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_EnableProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty[1] = {{ wxLua_wxPropertyGridInterface_EnableProperty, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EnableProperty }}; -// bool EnableProperty( const wxPGProperty*& id, bool enable = true ); -static int LUACALL wxLua_wxPropertyGridInterface_EnableProperty(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call EnableProperty - bool returns = (self->EnableProperty(id, enable)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_EndAddChildren1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_EndAddChildren1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren1[1] = {{ wxLua_wxPropertyGridInterface_EndAddChildren1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EndAddChildren1 }}; -// void EndAddChildren( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_EndAddChildren1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call EndAddChildren - self->EndAddChildren(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_EndAddChildren[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_EndAddChildren(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren[1] = {{ wxLua_wxPropertyGridInterface_EndAddChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EndAddChildren }}; -// void EndAddChildren( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_EndAddChildren(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call EndAddChildren - self->EndAddChildren(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Expand1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Expand1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Expand1[1] = {{ wxLua_wxPropertyGridInterface_Expand1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Expand1 }}; -// bool Expand( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_Expand1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Expand - bool returns = (self->Expand(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Expand[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Expand(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Expand[1] = {{ wxLua_wxPropertyGridInterface_Expand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Expand }}; -// bool Expand( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_Expand(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Expand - bool returns = (self->Expand(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ExpandAll[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ExpandAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ExpandAll[1] = {{ wxLua_wxPropertyGridInterface_ExpandAll, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ExpandAll }}; -// bool ExpandAll( bool expand = true ); -static int LUACALL wxLua_wxPropertyGridInterface_ExpandAll(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool expand = true - bool expand = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ExpandAll - bool returns = (self->ExpandAll(expand)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetColumnProportion[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetColumnProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetColumnProportion[1] = {{ wxLua_wxPropertyGridInterface_GetColumnProportion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetColumnProportion }}; -// int GetColumnProportion( unsigned int column ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetColumnProportion(lua_State *L) -{ - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetColumnProportion - int returns = (self->GetColumnProportion(column)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetEditorByName[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetEditorByName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetEditorByName[1] = {{ wxLua_wxPropertyGridInterface_GetEditorByName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetEditorByName }}; -// static wxPGEditor* GetEditorByName( const wxString& editorName ); -static int LUACALL wxLua_wxPropertyGridInterface_GetEditorByName(lua_State *L) -{ - // const wxString editorName - const wxString editorName = wxlua_getwxStringtype(L, 1); - // call GetEditorByName - wxPGEditor* returns = (wxPGEditor*)wxPropertyGridInterface::GetEditorByName(editorName); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirst1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetFirst1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst1[1] = {{ wxLua_wxPropertyGridInterface_GetFirst1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirst1 }}; -// const wxPGProperty* GetFirst( int flags = wxPG_ITERATE_ALL ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetFirst1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_ITERATE_ALL - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_ITERATE_ALL); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetFirst - const wxPGProperty* returns = (const wxPGProperty*)self->GetFirst(flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirst[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetFirst(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst[1] = {{ wxLua_wxPropertyGridInterface_GetFirst, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirst }}; -// %ungc wxPGProperty* GetFirst( int flags = wxPG_ITERATE_ALL ); -static int LUACALL wxLua_wxPropertyGridInterface_GetFirst(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_ITERATE_ALL - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_ITERATE_ALL); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetFirst - wxPGProperty* returns = (wxPGProperty*)self->GetFirst(flags); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirstChild1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetFirstChild1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild1[1] = {{ wxLua_wxPropertyGridInterface_GetFirstChild1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirstChild1 }}; -// %ungc wxPGProperty* GetFirstChild( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetFirstChild1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetFirstChild - wxPGProperty* returns = (wxPGProperty*)self->GetFirstChild(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirstChild[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetFirstChild(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild[1] = {{ wxLua_wxPropertyGridInterface_GetFirstChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirstChild }}; -// %ungc wxPGProperty* GetFirstChild( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetFirstChild(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetFirstChild - wxPGProperty* returns = (wxPGProperty*)self->GetFirstChild(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetProperty[1] = {{ wxLua_wxPropertyGridInterface_GetProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetProperty }}; -// %ungc wxPGProperty* GetProperty( const wxString& name ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetProperty(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetProperty - wxPGProperty* returns = (wxPGProperty*)self->GetProperty(name); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttribute1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttribute1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyAttribute1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttribute1 }}; -// wxVariant GetPropertyAttribute( const wxString& id, const wxString& attrName ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttribute1(lua_State *L) -{ - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyAttribute - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetPropertyAttribute(id, attrName)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttribute[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttribute(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttribute }}; -// wxVariant GetPropertyAttribute( const wxPGProperty*& id, const wxString& attrName ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttribute(lua_State *L) -{ - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyAttribute - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetPropertyAttribute(id, attrName)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttributes1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttributes1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyAttributes1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttributes1 }}; -// const wxPGAttributeStorage& GetPropertyAttributes( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttributes1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyAttributes - const wxPGAttributeStorage* returns = (const wxPGAttributeStorage*)&self->GetPropertyAttributes(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGAttributeStorage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttributes[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttributes(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttributes }}; -// const wxPGAttributeStorage& GetPropertyAttributes( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyAttributes(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyAttributes - const wxPGAttributeStorage* returns = (const wxPGAttributeStorage*)&self->GetPropertyAttributes(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGAttributeStorage); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1 }}; -// wxColour GetPropertyBackgroundColour( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetPropertyBackgroundColour(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour }}; -// wxColour GetPropertyBackgroundColour( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyBackgroundColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetPropertyBackgroundColour(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByLabel[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByLabel[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyByLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByLabel }}; -// %ungc wxPGProperty* GetPropertyByLabel( const wxString& label ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyByLabel - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyByLabel(label); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByName1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyByName1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByName1 }}; -// const wxString& subname ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByName1(lua_State *L) -{ - // const wxString subname - const wxString subname = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyByName - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyByName(name, subname); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByName[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyByName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByName }}; -// %ungc wxPGProperty* GetPropertyByName( const wxString& name ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyByName - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyByName(name); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByNameA[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByNameA(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByNameA[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyByNameA, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByNameA }}; -// %ungc wxPGProperty* GetPropertyByNameA( const wxString& name ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyByNameA(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyByNameA - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyByNameA(name); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyCategory1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyCategory1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyCategory1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyCategory1 }}; -// %ungc wxPropertyCategory* GetPropertyCategory( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyCategory1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyCategory - wxPropertyCategory* returns = (wxPropertyCategory*)self->GetPropertyCategory(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyCategory); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyCategory[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyCategory(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyCategory }}; -// %ungc wxPropertyCategory* GetPropertyCategory( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyCategory(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyCategory - wxPropertyCategory* returns = (wxPropertyCategory*)self->GetPropertyCategory(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyCategory); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyClientData1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyClientData1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyClientData1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyClientData1 }}; -// void* GetPropertyClientData( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyClientData1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyClientData - void* returns = (void*)self->GetPropertyClientData(id); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyClientData[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyClientData(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyClientData }}; -// %ungc void* GetPropertyClientData( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyClientData(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyClientData - void* returns = (void*)self->GetPropertyClientData(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyEditor1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyEditor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyEditor1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyEditor1 }}; -// const wxPGEditor* GetPropertyEditor( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyEditor1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyEditor - const wxPGEditor* returns = (const wxPGEditor*)self->GetPropertyEditor(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyEditor[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyEditor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyEditor }}; -// const wxPGEditor* GetPropertyEditor( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyEditor(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyEditor - const wxPGEditor* returns = (const wxPGEditor*)self->GetPropertyEditor(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyHelpString1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyHelpString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyHelpString1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyHelpString1 }}; -// wxString GetPropertyHelpString( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyHelpString1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyHelpString - wxString returns = (self->GetPropertyHelpString(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyHelpString[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyHelpString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyHelpString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyHelpString }}; -// wxString GetPropertyHelpString( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyHelpString(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyHelpString - wxString returns = (self->GetPropertyHelpString(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyImage1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyImage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyImage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyImage1 }}; -// wxBitmap* GetPropertyImage( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyImage1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyImage - wxBitmap* returns = (wxBitmap*)self->GetPropertyImage(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyImage[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyImage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyImage }}; -// wxBitmap* GetPropertyImage( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyImage(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyImage - wxBitmap* returns = (wxBitmap*)self->GetPropertyImage(id); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyLabel1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyLabel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyLabel1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyLabel1 }}; -// const wxString& GetPropertyLabel( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyLabel1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyLabel - wxString returns = (self->GetPropertyLabel(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyLabel[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyLabel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyLabel }}; -// const wxString& GetPropertyLabel( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyLabel(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyLabel - wxString returns = (self->GetPropertyLabel(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyName[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyName[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyName }}; -// wxString GetPropertyName( wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyName(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyName - wxString returns = (self->GetPropertyName(property)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyParent1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyParent1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyParent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyParent1 }}; -// %ungc wxPGProperty* GetPropertyParent( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyParent1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyParent - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyParent(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyParent[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyParent(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyParent }}; -// %ungc wxPGProperty* GetPropertyParent( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyParent(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyParent - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyParent(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyTextColour1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyTextColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyTextColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyTextColour1 }}; -// wxColour GetPropertyTextColour( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyTextColour1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetPropertyTextColour(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyTextColour[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyTextColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyTextColour }}; -// wxColour GetPropertyTextColour( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyTextColour(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyTextColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetPropertyTextColour(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValidator1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValidator1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValidator1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValidator1 }}; -// %ungc wxValidator* GetPropertyValidator( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValidator1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValidator - wxValidator* returns = (wxValidator*)self->GetPropertyValidator(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValidator[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValidator(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValidator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValidator }}; -// %ungc wxValidator* GetPropertyValidator( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValidator(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValidator - wxValidator* returns = (wxValidator*)self->GetPropertyValidator(id); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValue1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValue1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValue1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValue1 }}; -// wxVariant GetPropertyValue( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValue1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetPropertyValue(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValue[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValue(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValue }}; -// wxVariant GetPropertyValue( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValue(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetPropertyValue(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1 }}; -// wxArrayInt GetPropertyValueAsArrayInt( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsArrayInt - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetPropertyValueAsArrayInt(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt }}; -// wxArrayInt GetPropertyValueAsArrayInt( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsArrayInt - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetPropertyValueAsArrayInt(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1 }}; -// wxArrayString GetPropertyValueAsArrayString( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsArrayString - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetPropertyValueAsArrayString(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString }}; -// wxArrayString GetPropertyValueAsArrayString( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsArrayString - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetPropertyValueAsArrayString(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1 }}; -// bool GetPropertyValueAsBool( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsBool - bool returns = (self->GetPropertyValueAsBool(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsBool(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsBool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool }}; -// bool GetPropertyValueAsBool( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsBool(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsBool - bool returns = (self->GetPropertyValueAsBool(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1 }}; -// wxDateTime GetPropertyValueAsDateTime( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsDateTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetPropertyValueAsDateTime(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime }}; -// wxDateTime GetPropertyValueAsDateTime( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsDateTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetPropertyValueAsDateTime(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1 }}; -// double GetPropertyValueAsDouble( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsDouble - double returns = (self->GetPropertyValueAsDouble(id)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble }}; -// double GetPropertyValueAsDouble( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsDouble - double returns = (self->GetPropertyValueAsDouble(id)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1 }}; -// int GetPropertyValueAsInt( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsInt - int returns = (self->GetPropertyValueAsInt(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsInt(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt }}; -// int GetPropertyValueAsInt( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsInt(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsInt - int returns = (self->GetPropertyValueAsInt(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1 }}; -// long GetPropertyValueAsLong( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsLong - long returns = (self->GetPropertyValueAsLong(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLong(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong }}; -// long GetPropertyValueAsLong( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLong(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsLong - long returns = (self->GetPropertyValueAsLong(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1 }}; -// wxLongLong GetPropertyValueAsLongLong( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsLongLong - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetPropertyValueAsLongLong(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong }}; -// wxLongLong GetPropertyValueAsLongLong( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsLongLong - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetPropertyValueAsLongLong(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsString1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsString1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsString1 }}; -// wxString GetPropertyValueAsString( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsString1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsString - wxString returns = (self->GetPropertyValueAsString(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsString[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsString }}; -// wxString GetPropertyValueAsString( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsString(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsString - wxString returns = (self->GetPropertyValueAsString(id)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1 }}; -// unsigned long GetPropertyValueAsULong( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsULong - unsigned long returns = (self->GetPropertyValueAsULong(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULong(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsULong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong }}; -// unsigned long GetPropertyValueAsULong( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULong(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsULong - unsigned long returns = (self->GetPropertyValueAsULong(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1 }}; -// wxULongLong GetPropertyValueAsULongLong( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsULongLong - // allocate a new object using the copy constructor - wxULongLong* returns = new wxULongLong(self->GetPropertyValueAsULongLong(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong }}; -// wxULongLong GetPropertyValueAsULongLong( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValueAsULongLong - // allocate a new object using the copy constructor - wxULongLong* returns = new wxULongLong(self->GetPropertyValueAsULongLong(id)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxULongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxULongLong); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValues[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValues(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValues[1] = {{ wxLua_wxPropertyGridInterface_GetPropertyValues, WXLUAMETHOD_METHOD, 1, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValues }}; -// wxPGProperty* baseparent = NULL, long flags = 0 ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetPropertyValues(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long flags = 0 - long flags = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // wxPGProperty baseparent = NULL - wxPGProperty * baseparent = (argCount >= 3 ? (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty) : NULL); - // const wxString listname = wxEmptyString - const wxString listname = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetPropertyValues - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetPropertyValues(listname, baseparent, flags)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetSelection[] = { &wxluatype_wxPropertyGridInterface, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetSelection[1] = {{ wxLua_wxPropertyGridInterface_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetSelection }}; -// %ungc wxPGProperty* GetSelection() const; -static int LUACALL wxLua_wxPropertyGridInterface_GetSelection(lua_State *L) -{ - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetSelection - wxPGProperty* returns = (wxPGProperty*)self->GetSelection(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetVIterator[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_GetVIterator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetVIterator[1] = {{ wxLua_wxPropertyGridInterface_GetVIterator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetVIterator }}; -// virtual wxPGVIterator GetVIterator( int flags ) const; -static int LUACALL wxLua_wxPropertyGridInterface_GetVIterator(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call GetVIterator - // allocate a new object using the copy constructor - wxPGVIterator* returns = new wxPGVIterator(self->GetVIterator(flags)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGVIterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGVIterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_HideProperty1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_HideProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty1[1] = {{ wxLua_wxPropertyGridInterface_HideProperty1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_HideProperty1 }}; -// bool HideProperty( const wxString& id, bool hide = true, int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_HideProperty1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // bool hide = true - bool hide = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call HideProperty - bool returns = (self->HideProperty(id, hide, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_HideProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_HideProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty[1] = {{ wxLua_wxPropertyGridInterface_HideProperty, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_HideProperty }}; -// bool HideProperty( const wxPGProperty*& id, bool hide = true, int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_HideProperty(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // bool hide = true - bool hide = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call HideProperty - bool returns = (self->HideProperty(id, hide, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxPropertyGridInterface_InitAllTypeHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_InitAllTypeHandlers[1] = {{ wxLua_wxPropertyGridInterface_InitAllTypeHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void InitAllTypeHandlers(); -static int LUACALL wxLua_wxPropertyGridInterface_InitAllTypeHandlers(lua_State *L) -{ - // call InitAllTypeHandlers - wxPropertyGridInterface::InitAllTypeHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert3[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Insert3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Insert3[1] = {{ wxLua_wxPropertyGridInterface_Insert3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert3 }}; -// %ungc wxPGProperty* Insert( const wxString& parent, int index, %ungc wxPGProperty* newProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_Insert3(lua_State *L) -{ - // wxPGProperty newProperty - wxPGProperty * newProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGProperty); - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxString parent - const wxString parent = wxlua_getwxStringtype(L, 2); - if (wxluaO_isgcobject(L, newProperty)) wxluaO_undeletegcobject(L, newProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Insert - wxPGProperty* returns = (wxPGProperty*)self->Insert(parent, index, newProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert2[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Insert2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Insert2[1] = {{ wxLua_wxPropertyGridInterface_Insert2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert2 }}; -// %ungc wxPGProperty* Insert( const wxPGProperty*& parent, int index, %ungc wxPGProperty* newProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_Insert2(lua_State *L) -{ - // wxPGProperty newProperty - wxPGProperty * newProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGProperty); - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxPGProperty parent - const wxPGProperty * parent = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - if (wxluaO_isgcobject(L, newProperty)) wxluaO_undeletegcobject(L, newProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Insert - wxPGProperty* returns = (wxPGProperty*)self->Insert(parent, index, newProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Insert1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Insert1[1] = {{ wxLua_wxPropertyGridInterface_Insert1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert1 }}; -// %ungc wxPGProperty* Insert( const wxString& priorThis, %ungc wxPGProperty* newProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_Insert1(lua_State *L) -{ - // wxPGProperty newProperty - wxPGProperty * newProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // const wxString priorThis - const wxString priorThis = wxlua_getwxStringtype(L, 2); - if (wxluaO_isgcobject(L, newProperty)) wxluaO_undeletegcobject(L, newProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Insert - wxPGProperty* returns = (wxPGProperty*)self->Insert(priorThis, newProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Insert(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Insert[1] = {{ wxLua_wxPropertyGridInterface_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert }}; -// %ungc wxPGProperty* Insert( const wxPGProperty*& priorThis, %ungc wxPGProperty* newProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_Insert(lua_State *L) -{ - // wxPGProperty newProperty - wxPGProperty * newProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // const wxPGProperty priorThis - const wxPGProperty * priorThis = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - if (wxluaO_isgcobject(L, newProperty)) wxluaO_undeletegcobject(L, newProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Insert - wxPGProperty* returns = (wxPGProperty*)self->Insert(priorThis, newProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyCategory1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyCategory1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyCategory1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyCategory1 }}; -// bool IsPropertyCategory( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyCategory1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyCategory - bool returns = (self->IsPropertyCategory(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyCategory[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyCategory(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyCategory }}; -// bool IsPropertyCategory( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyCategory(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyCategory - bool returns = (self->IsPropertyCategory(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyEnabled1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyEnabled1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyEnabled1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyEnabled1 }}; -// bool IsPropertyEnabled( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyEnabled1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyEnabled - bool returns = (self->IsPropertyEnabled(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyEnabled[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyEnabled(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyEnabled }}; -// bool IsPropertyEnabled( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyEnabled(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyEnabled - bool returns = (self->IsPropertyEnabled(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyExpanded1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyExpanded1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyExpanded1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyExpanded1 }}; -// bool IsPropertyExpanded( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyExpanded1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyExpanded - bool returns = (self->IsPropertyExpanded(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyExpanded[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyExpanded(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyExpanded }}; -// bool IsPropertyExpanded( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyExpanded(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyExpanded - bool returns = (self->IsPropertyExpanded(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyModified1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyModified1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyModified1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyModified1 }}; -// bool IsPropertyModified( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyModified1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyModified - bool returns = (self->IsPropertyModified(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyModified[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyModified(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyModified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyModified }}; -// bool IsPropertyModified( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyModified(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyModified - bool returns = (self->IsPropertyModified(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertySelected1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertySelected1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertySelected1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertySelected1 }}; -// bool IsPropertySelected( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertySelected1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertySelected - bool returns = (self->IsPropertySelected(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertySelected[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertySelected(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected[1] = {{ wxLua_wxPropertyGridInterface_IsPropertySelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertySelected }}; -// bool IsPropertySelected( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertySelected(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertySelected - bool returns = (self->IsPropertySelected(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyShown1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyShown1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyShown1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyShown1 }}; -// bool IsPropertyShown( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyShown1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyShown - bool returns = (self->IsPropertyShown(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyShown[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyShown(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyShown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyShown }}; -// bool IsPropertyShown( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyShown(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyShown - bool returns = (self->IsPropertyShown(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1 }}; -// bool IsPropertyValueUnspecified( const wxString& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyValueUnspecified - bool returns = (self->IsPropertyValueUnspecified(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified[1] = {{ wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified }}; -// bool IsPropertyValueUnspecified( const wxPGProperty*& id ) const; -static int LUACALL wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call IsPropertyValueUnspecified - bool returns = (self->IsPropertyValueUnspecified(id)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_LimitPropertyEditing1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_LimitPropertyEditing1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing1[1] = {{ wxLua_wxPropertyGridInterface_LimitPropertyEditing1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_LimitPropertyEditing1 }}; -// void LimitPropertyEditing( const wxString& id, bool limit = true ); -static int LUACALL wxLua_wxPropertyGridInterface_LimitPropertyEditing1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool limit = true - bool limit = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call LimitPropertyEditing - self->LimitPropertyEditing(id, limit); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_LimitPropertyEditing[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_LimitPropertyEditing(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing[1] = {{ wxLua_wxPropertyGridInterface_LimitPropertyEditing, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_LimitPropertyEditing }}; -// void LimitPropertyEditing( const wxPGProperty*& id, bool limit = true ); -static int LUACALL wxLua_wxPropertyGridInterface_LimitPropertyEditing(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool limit = true - bool limit = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call LimitPropertyEditing - self->LimitPropertyEditing(id, limit); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_RefreshGrid[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPropertyGridPageState, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_RefreshGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RefreshGrid[1] = {{ wxLua_wxPropertyGridInterface_RefreshGrid, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RefreshGrid }}; -// virtual void RefreshGrid( wxPropertyGridPageState* state = NULL ); -static int LUACALL wxLua_wxPropertyGridInterface_RefreshGrid(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxPropertyGridPageState state = NULL - wxPropertyGridPageState * state = (argCount >= 2 ? (wxPropertyGridPageState *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGridPageState) : NULL); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call RefreshGrid - self->RefreshGrid(state); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_RefreshProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_RefreshProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RefreshProperty[1] = {{ wxLua_wxPropertyGridInterface_RefreshProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RefreshProperty }}; -// virtual void RefreshProperty( wxPGProperty* p ) = 0; -static int LUACALL wxLua_wxPropertyGridInterface_RefreshProperty(lua_State *L) -{ - // wxPGProperty p - wxPGProperty * p = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call RefreshProperty - self->RefreshProperty(p); - - return 0; -} - -static int LUACALL wxLua_wxPropertyGridInterface_RegisterAdditionalEditors(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RegisterAdditionalEditors[1] = {{ wxLua_wxPropertyGridInterface_RegisterAdditionalEditors, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void RegisterAdditionalEditors(); -static int LUACALL wxLua_wxPropertyGridInterface_RegisterAdditionalEditors(lua_State *L) -{ - // call RegisterAdditionalEditors - wxPropertyGridInterface::RegisterAdditionalEditors(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_RemoveProperty1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_RemoveProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty1[1] = {{ wxLua_wxPropertyGridInterface_RemoveProperty1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RemoveProperty1 }}; -// %gc wxPGProperty* RemoveProperty( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_RemoveProperty1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call RemoveProperty - wxPGProperty* returns = (wxPGProperty*)self->RemoveProperty(id); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxPGProperty); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_RemoveProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_RemoveProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty[1] = {{ wxLua_wxPropertyGridInterface_RemoveProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RemoveProperty }}; -// %gc wxPGProperty* RemoveProperty( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_RemoveProperty(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call RemoveProperty - wxPGProperty* returns = (wxPGProperty*)self->RemoveProperty(id); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxPGProperty); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ReplaceProperty1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ReplaceProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty1[1] = {{ wxLua_wxPropertyGridInterface_ReplaceProperty1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ReplaceProperty1 }}; -// %ungc wxPGProperty* ReplaceProperty( const wxString& id, %ungc wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGridInterface_ReplaceProperty1(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - if (wxluaO_isgcobject(L, property)) wxluaO_undeletegcobject(L, property); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ReplaceProperty - wxPGProperty* returns = (wxPGProperty*)self->ReplaceProperty(id, property); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_ReplaceProperty[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_ReplaceProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty[1] = {{ wxLua_wxPropertyGridInterface_ReplaceProperty, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ReplaceProperty }}; -// %ungc wxPGProperty* ReplaceProperty( const wxPGProperty*& id, %ungc wxPGProperty* property ); -static int LUACALL wxLua_wxPropertyGridInterface_ReplaceProperty(lua_State *L) -{ - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - if (wxluaO_isgcobject(L, property)) wxluaO_undeletegcobject(L, property); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call ReplaceProperty - wxPGProperty* returns = (wxPGProperty*)self->ReplaceProperty(id, property); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_RestoreEditableState[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_RestoreEditableState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RestoreEditableState[1] = {{ wxLua_wxPropertyGridInterface_RestoreEditableState, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RestoreEditableState }}; -// int restoreStates = wxPropertyGridInterface::EditableStateFlags::AllStates ); -static int LUACALL wxLua_wxPropertyGridInterface_RestoreEditableState(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int restoreStates = wxPropertyGridInterface::EditableStateFlags::AllStates - int restoreStates = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPropertyGridInterface::EditableStateFlags::AllStates); - // const wxString src - const wxString src = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call RestoreEditableState - bool returns = (self->RestoreEditableState(src, restoreStates)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SaveEditableState[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SaveEditableState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SaveEditableState[1] = {{ wxLua_wxPropertyGridInterface_SaveEditableState, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SaveEditableState }}; -// wxString SaveEditableState( int includedStates = wxPropertyGridInterface::EditableStateFlags::AllStates ) const; -static int LUACALL wxLua_wxPropertyGridInterface_SaveEditableState(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int includedStates = wxPropertyGridInterface::EditableStateFlags::AllStates - int includedStates = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPropertyGridInterface::EditableStateFlags::AllStates); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SaveEditableState - wxString returns = (self->SaveEditableState(includedStates)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetBoolChoices[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetBoolChoices(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetBoolChoices[1] = {{ wxLua_wxPropertyGridInterface_SetBoolChoices, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetBoolChoices }}; -// const wxString& falseChoice ); -static int LUACALL wxLua_wxPropertyGridInterface_SetBoolChoices(lua_State *L) -{ - // const wxString falseChoice - const wxString falseChoice = wxlua_getwxStringtype(L, 2); - // const wxString trueChoice - const wxString trueChoice = wxlua_getwxStringtype(L, 1); - // call SetBoolChoices - wxPropertyGridInterface::SetBoolChoices(trueChoice, falseChoice); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetColumnProportion[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetColumnProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetColumnProportion[1] = {{ wxLua_wxPropertyGridInterface_SetColumnProportion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetColumnProportion }}; -// bool SetColumnProportion( unsigned int column, int proportion ); -static int LUACALL wxLua_wxPropertyGridInterface_SetColumnProportion(lua_State *L) -{ - // int proportion - int proportion = (int)wxlua_getnumbertype(L, 3); - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetColumnProportion - bool returns = (self->SetColumnProportion(column, proportion)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropVal1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropVal1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal1[1] = {{ wxLua_wxPropertyGridInterface_SetPropVal1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropVal1 }}; -// void SetPropVal( const wxString& id, wxVariant& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropVal1(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropVal - self->SetPropVal(id, *value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropVal[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropVal(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal[1] = {{ wxLua_wxPropertyGridInterface_SetPropVal, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropVal }}; -// void SetPropVal( const wxPGProperty*& id, wxVariant& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropVal(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropVal - self->SetPropVal(id, *value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttribute1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TANY, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyAttribute1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyAttribute1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttribute1 }}; -// void SetPropertyAttribute( const wxString& id, const wxString& attrName, wxVariant value, long argFlags = 0 ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyAttribute1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long argFlags = 0 - long argFlags = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 4); - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyAttribute - self->SetPropertyAttribute(id, attrName, value, argFlags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttribute[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TANY, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyAttribute(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyAttribute, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttribute }}; -// void SetPropertyAttribute( const wxPGProperty*& id, const wxString& attrName, wxVariant value, long argFlags = 0 ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyAttribute(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long argFlags = 0 - long argFlags = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 4); - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyAttribute - self->SetPropertyAttribute(id, attrName, value, argFlags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttributeAll[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyAttributeAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttributeAll[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyAttributeAll, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttributeAll }}; -// void SetPropertyAttributeAll( const wxString& attrName, wxVariant value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyAttributeAll(lua_State *L) -{ - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 3); - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyAttributeAll - self->SetPropertyAttributeAll(attrName, value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1 }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyBackgroundColour - self->SetPropertyBackgroundColour(id, *colour, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyBackgroundColour - self->SetPropertyBackgroundColour(id, *colour, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyCell1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyCell1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyCell1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyCell1 }}; -// const wxColour& bgCol = wxNullColour ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyCell1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour bgCol = wxNullColour - const wxColour * bgCol = (argCount >= 7 ? (const wxColour *)wxluaT_getuserdatatype(L, 7, wxluatype_wxColour) : &wxNullColour); - // const wxColour fgCol = wxNullColour - const wxColour * fgCol = (argCount >= 6 ? (const wxColour *)wxluaT_getuserdatatype(L, 6, wxluatype_wxColour) : &wxNullColour); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString text = wxEmptyString - const wxString text = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int column - int column = (int)wxlua_getnumbertype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyCell - self->SetPropertyCell(id, column, text, *bitmap, *fgCol, *bgCol); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyCell[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyCell(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyCell, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyCell }}; -// const wxColour& bgCol = wxNullColour ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyCell(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour bgCol = wxNullColour - const wxColour * bgCol = (argCount >= 7 ? (const wxColour *)wxluaT_getuserdatatype(L, 7, wxluatype_wxColour) : &wxNullColour); - // const wxColour fgCol = wxNullColour - const wxColour * fgCol = (argCount >= 6 ? (const wxColour *)wxluaT_getuserdatatype(L, 6, wxluatype_wxColour) : &wxNullColour); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 5 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 5, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString text = wxEmptyString - const wxString text = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // int column - int column = (int)wxlua_getnumbertype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyCell - self->SetPropertyCell(id, column, text, *bitmap, *fgCol, *bgCol); - - return 0; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyClientData1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyClientData1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyClientData1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyClientData1 }}; -// void SetPropertyClientData( const wxString& id, void* clientData ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyClientData1(lua_State *L) -{ - // void clientData - void * clientData = (void *)wxlua_touserdata(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyClientData - self->SetPropertyClientData(id, clientData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyClientData[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyClientData(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyClientData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyClientData }}; -// void SetPropertyClientData( const wxPGProperty*& id, void* clientData ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyClientData(lua_State *L) -{ - // void clientData - void * clientData = (void *)wxlua_touserdata(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyClientData - self->SetPropertyClientData(id, clientData); - - return 0; -} - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1 }}; -// %wxchkver_3_2_0 void SetPropertyColoursToDefault(const wxString& id, int flags = wxPG_DONT_RECURSE); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_DONT_RECURSE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_DONT_RECURSE); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyColoursToDefault - self->SetPropertyColoursToDefault(id, flags); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault }}; -// %wxchkver_3_2_0 void SetPropertyColoursToDefault(const wxPGProperty*& id, int flags = wxPG_DONT_RECURSE); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_DONT_RECURSE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_DONT_RECURSE); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyColoursToDefault - self->SetPropertyColoursToDefault(id, flags); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor3[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor3[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyEditor3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor3 }}; -// void SetPropertyEditor( const wxString& id, const wxString& editorName ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor3(lua_State *L) -{ - // const wxString editorName - const wxString editorName = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyEditor - self->SetPropertyEditor(id, editorName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor2[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor2[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyEditor2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor2 }}; -// void SetPropertyEditor( const wxPGProperty*& id, const wxString& editorName ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor2(lua_State *L) -{ - // const wxString editorName - const wxString editorName = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyEditor - self->SetPropertyEditor(id, editorName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxPGEditor, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyEditor1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor1 }}; -// void SetPropertyEditor( const wxString& id, const wxPGEditor* editor ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor1(lua_State *L) -{ - // const wxPGEditor editor - const wxPGEditor * editor = (const wxPGEditor *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGEditor); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyEditor - self->SetPropertyEditor(id, editor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxPGEditor, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyEditor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor }}; -// void SetPropertyEditor( const wxPGProperty*& id, const wxPGEditor* editor ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyEditor(lua_State *L) -{ - // const wxPGEditor editor - const wxPGEditor * editor = (const wxPGEditor *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGEditor); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyEditor - self->SetPropertyEditor(id, editor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyHelpString1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyHelpString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyHelpString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyHelpString1 }}; -// void SetPropertyHelpString( const wxString& id, const wxString& helpString ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyHelpString1(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyHelpString - self->SetPropertyHelpString(id, helpString); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyHelpString[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyHelpString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyHelpString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyHelpString }}; -// void SetPropertyHelpString( const wxPGProperty*& id, const wxString& helpString ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyHelpString(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyHelpString - self->SetPropertyHelpString(id, helpString); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyImage1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyImage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyImage1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyImage1 }}; -// void SetPropertyImage( const wxString& id, wxBitmap& bmp ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyImage1(lua_State *L) -{ - // wxBitmap bmp - wxBitmap * bmp = (wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyImage - self->SetPropertyImage(id, *bmp); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyImage[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyImage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyImage }}; -// void SetPropertyImage( const wxPGProperty*& id, wxBitmap& bmp ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyImage(lua_State *L) -{ - // wxBitmap bmp - wxBitmap * bmp = (wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyImage - self->SetPropertyImage(id, *bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyLabel1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyLabel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyLabel1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyLabel1 }}; -// void SetPropertyLabel( const wxString& id, const wxString& newproplabel ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyLabel1(lua_State *L) -{ - // const wxString newproplabel - const wxString newproplabel = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyLabel - self->SetPropertyLabel(id, newproplabel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyLabel[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyLabel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyLabel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyLabel }}; -// void SetPropertyLabel( const wxPGProperty*& id, const wxString& newproplabel ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyLabel(lua_State *L) -{ - // const wxString newproplabel - const wxString newproplabel = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyLabel - self->SetPropertyLabel(id, newproplabel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyMaxLength1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyMaxLength1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyMaxLength1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyMaxLength1 }}; -// bool SetPropertyMaxLength( const wxString& id, int maxLen ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyMaxLength1(lua_State *L) -{ - // int maxLen - int maxLen = (int)wxlua_getnumbertype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyMaxLength - bool returns = (self->SetPropertyMaxLength(id, maxLen)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyMaxLength[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyMaxLength(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyMaxLength, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyMaxLength }}; -// bool SetPropertyMaxLength( const wxPGProperty*& id, int maxLen ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyMaxLength(lua_State *L) -{ - // int maxLen - int maxLen = (int)wxlua_getnumbertype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyMaxLength - bool returns = (self->SetPropertyMaxLength(id, maxLen)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyName1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyName1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyName1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyName1 }}; -// void SetPropertyName( const wxString& id, const wxString& newName ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyName1(lua_State *L) -{ - // const wxString newName - const wxString newName = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyName - self->SetPropertyName(id, newName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyName[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyName(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyName, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyName }}; -// void SetPropertyName( const wxPGProperty*& id, const wxString& newName ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyName(lua_State *L) -{ - // const wxString newName - const wxString newName = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyName - self->SetPropertyName(id, newName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyReadOnly1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyReadOnly1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyReadOnly1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyReadOnly1 }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyReadOnly1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // bool set = true - bool set = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyReadOnly - self->SetPropertyReadOnly(id, set, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyReadOnly[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyReadOnly(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyReadOnly, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyReadOnly }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyReadOnly(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // bool set = true - bool set = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyReadOnly - self->SetPropertyReadOnly(id, set, flags); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyTextColour1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyTextColour1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyTextColour1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyTextColour1 }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyTextColour1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyTextColour - self->SetPropertyTextColour(id, *colour, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyTextColour[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyTextColour(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyTextColour, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyTextColour }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyTextColour(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_RECURSE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyTextColour - self->SetPropertyTextColour(id, *colour, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValidator1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValidator1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValidator1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValidator1 }}; -// void SetPropertyValidator( const wxString& id, const wxValidator& validator ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValidator1(lua_State *L) -{ - // const wxValidator validator - const wxValidator * validator = (const wxValidator *)wxluaT_getuserdatatype(L, 3, wxluatype_wxValidator); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValidator - self->SetPropertyValidator(id, *validator); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValidator[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValidator(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValidator, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValidator }}; -// void SetPropertyValidator( const wxPGProperty*& id, const wxValidator& validator ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValidator(lua_State *L) -{ - // const wxValidator validator - const wxValidator * validator = (const wxValidator *)wxluaT_getuserdatatype(L, 3, wxluatype_wxValidator); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValidator - self->SetPropertyValidator(id, *validator); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue19[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue19(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue19[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue19, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue19 }}; -// void SetPropertyValue( const wxString& id, wxVariant value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue19(lua_State *L) -{ - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue18[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue18(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue18[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue18, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue18 }}; -// void SetPropertyValue( const wxPGProperty*& id, wxVariant value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue18(lua_State *L) -{ - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue17[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue17(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue17[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue17, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue17 }}; -// void SetPropertyValue( const wxString& id, const wxArrayInt& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue17(lua_State *L) -{ - // const wxArrayInt value - wxLuaSmartwxArrayInt value = wxlua_getwxArrayInt(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue16[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue16(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue16[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue16, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue16 }}; -// void SetPropertyValue( const wxPGProperty*& id, const wxArrayInt& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue16(lua_State *L) -{ - // const wxArrayInt value - wxLuaSmartwxArrayInt value = wxlua_getwxArrayInt(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue15[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue15(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue15[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue15, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue15 }}; -// void SetPropertyValue( const wxString& id, wxObject& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue15(lua_State *L) -{ - // wxObject value - wxObject * value = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, *value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue14[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxObject, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue14(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue14[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue14, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue14 }}; -// void SetPropertyValue( const wxPGProperty*& id, wxObject& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue14(lua_State *L) -{ - // wxObject value - wxObject * value = (wxObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxObject); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, *value); - - return 0; -} - -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue13[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue13(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue13[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue13, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue13 }}; -// void SetPropertyValue( const wxString& id, const wxDateTime& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue13(lua_State *L) -{ - // const wxDateTime value - const wxDateTime * value = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, *value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue12[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue12(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue12[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue12, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue12 }}; -// void SetPropertyValue( const wxPGProperty*& id, const wxDateTime& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue12(lua_State *L) -{ - // const wxDateTime value - const wxDateTime * value = (const wxDateTime *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDateTime); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, *value); - - return 0; -} - -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue11[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue11(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue11[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue11, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue11 }}; -// void SetPropertyValue( const wxString& id, const wxArrayString& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue11(lua_State *L) -{ - // const wxArrayString value - wxLuaSmartwxArrayString value = wxlua_getwxArrayString(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue10[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue10(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue10[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue10, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue10 }}; -// void SetPropertyValue( const wxPGProperty*& id, const wxArrayString& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue10(lua_State *L) -{ - // const wxArrayString value - wxLuaSmartwxArrayString value = wxlua_getwxArrayString(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue9[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue9(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue9[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue9, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue9 }}; -// void SetPropertyValue( const wxString& id, const wxString& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue9(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue8[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue8(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue8[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue8, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue8 }}; -// void SetPropertyValue( const wxPGProperty*& id, const wxString& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue8(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue7[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue7(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue7[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue7, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue7 }}; -// void SetPropertyValue( const wxString& id, bool value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue7(lua_State *L) -{ - // bool value - bool value = wxlua_getbooleantype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue6[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue6(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue6[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue6, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue6 }}; -// void SetPropertyValue( const wxPGProperty*& id, bool value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue6(lua_State *L) -{ - // bool value - bool value = wxlua_getbooleantype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue5[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue5[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue5 }}; -// void SetPropertyValue( const wxString& id, double value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue5(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue4[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue4[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue4 }}; -// void SetPropertyValue( const wxPGProperty*& id, double value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue4(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue3[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue3[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue3 }}; -// void SetPropertyValue( const wxString& id, int value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue3(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue2[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue2[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue2 }}; -// void SetPropertyValue( const wxPGProperty*& id, int value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue2(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue1 }}; -// void SetPropertyValue( const wxString& id, long value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue1(lua_State *L) -{ - // long value - long value = (long)wxlua_getnumbertype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue }}; -// void SetPropertyValue( const wxPGProperty*& id, long value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValue(lua_State *L) -{ - // long value - long value = (long)wxlua_getnumbertype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValue - self->SetPropertyValue(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueString1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValueString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueString1 }}; -// void SetPropertyValueString( const wxString& id, const wxString& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueString1(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValueString - self->SetPropertyValueString(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueString[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValueString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueString }}; -// void SetPropertyValueString( const wxPGProperty*& id, const wxString& value ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueString(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValueString - self->SetPropertyValueString(id, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1 }}; -// void SetPropertyValueUnspecified( const wxString& id ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1(lua_State *L) -{ - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValueUnspecified - self->SetPropertyValueUnspecified(id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified }}; -// void SetPropertyValueUnspecified( const wxPGProperty*& id ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified(lua_State *L) -{ - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValueUnspecified - self->SetPropertyValueUnspecified(id); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValues[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxVariant, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValues(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValues[1] = {{ wxLua_wxPropertyGridInterface_SetPropertyValues, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValues }}; -// const wxPGProperty*& defaultCategory = wxNullProperty ); -static int LUACALL wxLua_wxPropertyGridInterface_SetPropertyValues(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxPGProperty defaultCategory = wxNullProperty - const wxPGProperty * defaultCategory = (argCount >= 3 ? (const wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty) : wxNullProperty); - // const wxVariant list - const wxVariant * list = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetPropertyValues - self->SetPropertyValues(*list, defaultCategory); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetValidationFailureBehavior[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SetValidationFailureBehavior(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetValidationFailureBehavior[1] = {{ wxLua_wxPropertyGridInterface_SetValidationFailureBehavior, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetValidationFailureBehavior }}; -// void SetValidationFailureBehavior( int vfbFlags ); -static int LUACALL wxLua_wxPropertyGridInterface_SetValidationFailureBehavior(lua_State *L) -{ - // int vfbFlags - int vfbFlags = (int)wxlua_getnumbertype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SetValidationFailureBehavior - self->SetValidationFailureBehavior(vfbFlags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_Sort[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_Sort(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Sort[1] = {{ wxLua_wxPropertyGridInterface_Sort, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Sort }}; -// void Sort( int flags = 0 ); -static int LUACALL wxLua_wxPropertyGridInterface_Sort(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call Sort - self->Sort(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SortChildren1[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SortChildren1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren1[1] = {{ wxLua_wxPropertyGridInterface_SortChildren1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SortChildren1 }}; -// void SortChildren( const wxString& id, int flags = 0 ); -static int LUACALL wxLua_wxPropertyGridInterface_SortChildren1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString id - const wxString id = wxlua_getwxStringtype(L, 2); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SortChildren - self->SortChildren(id, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyGridInterface_SortChildren[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyGridInterface_SortChildren(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren[1] = {{ wxLua_wxPropertyGridInterface_SortChildren, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SortChildren }}; -// void SortChildren( const wxPGProperty*& id, int flags = 0 ); -static int LUACALL wxLua_wxPropertyGridInterface_SortChildren(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxPGProperty id - const wxPGProperty * id = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPropertyGridInterface * self = (wxPropertyGridInterface *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyGridInterface); - // call SortChildren - self->SortChildren(id, flags); - - return 0; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn_overload[] = -{ - { wxLua_wxPropertyGridInterface_AppendIn1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_AppendIn1 }, - { wxLua_wxPropertyGridInterface_AppendIn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_AppendIn }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren_overload[] = -{ - { wxLua_wxPropertyGridInterface_BeginAddChildren1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_BeginAddChildren1 }, - { wxLua_wxPropertyGridInterface_BeginAddChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_BeginAddChildren }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_ChangePropertyValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ChangePropertyValue1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_ChangePropertyValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ChangePropertyValue }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse_overload[] = -{ - { wxLua_wxPropertyGridInterface_Collapse1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Collapse1 }, - { wxLua_wxPropertyGridInterface_Collapse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Collapse }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty_overload[] = -{ - { wxLua_wxPropertyGridInterface_DeleteProperty1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DeleteProperty1 }, - { wxLua_wxPropertyGridInterface_DeleteProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DeleteProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty_overload[] = -{ - { wxLua_wxPropertyGridInterface_DisableProperty1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DisableProperty1 }, - { wxLua_wxPropertyGridInterface_DisableProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_DisableProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty_overload[] = -{ - { wxLua_wxPropertyGridInterface_EnableProperty1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EnableProperty1 }, - { wxLua_wxPropertyGridInterface_EnableProperty, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EnableProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren_overload[] = -{ - { wxLua_wxPropertyGridInterface_EndAddChildren1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EndAddChildren1 }, - { wxLua_wxPropertyGridInterface_EndAddChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_EndAddChildren }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Expand_overload[] = -{ - { wxLua_wxPropertyGridInterface_Expand1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Expand1 }, - { wxLua_wxPropertyGridInterface_Expand, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Expand }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_Expand_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_Expand_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetFirst1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirst1 }, - { wxLua_wxPropertyGridInterface_GetFirst, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirst }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetFirstChild1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirstChild1 }, - { wxLua_wxPropertyGridInterface_GetFirstChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetFirstChild }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_GetPropertyAttribute1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttribute1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_GetPropertyAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttribute }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyAttributes1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttributes1 }, - { wxLua_wxPropertyGridInterface_GetPropertyAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyAttributes }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyByName1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByName1 }, - { wxLua_wxPropertyGridInterface_GetPropertyByName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyByName }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyCategory1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyCategory1 }, - { wxLua_wxPropertyGridInterface_GetPropertyCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyCategory }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyClientData1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyClientData1 }, - { wxLua_wxPropertyGridInterface_GetPropertyClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyClientData }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyEditor1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyEditor1 }, - { wxLua_wxPropertyGridInterface_GetPropertyEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyEditor }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyHelpString1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyHelpString1 }, - { wxLua_wxPropertyGridInterface_GetPropertyHelpString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyHelpString }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyImage1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyImage1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyImage }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyLabel1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyLabel1 }, - { wxLua_wxPropertyGridInterface_GetPropertyLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyLabel }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyParent1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyParent1 }, - { wxLua_wxPropertyGridInterface_GetPropertyParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyParent }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyTextColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyTextColour1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyTextColour }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxPropertyGridInterface_GetPropertyValidator1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValidator1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxPropertyGridInterface_GetPropertyValidator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValidator }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_GetPropertyValue1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValue1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_GetPropertyValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValue }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt_overload[] = -{ - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt1 }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString_overload[] = -{ - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString1 }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool1 }, - { wxLua_wxPropertyGridInterface_GetPropertyValueAsBool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime_overload[] = -{ - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime1 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble1 }, - { wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt1 }, - { wxLua_wxPropertyGridInterface_GetPropertyValueAsInt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong1 }, - { wxLua_wxPropertyGridInterface_GetPropertyValueAsLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyValueAsString1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsString1 }, - { wxLua_wxPropertyGridInterface_GetPropertyValueAsString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsString }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong_overload[] = -{ - { wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong1 }, - { wxLua_wxPropertyGridInterface_GetPropertyValueAsULong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) - { wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty_overload[] = -{ - { wxLua_wxPropertyGridInterface_HideProperty1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_HideProperty1 }, - { wxLua_wxPropertyGridInterface_HideProperty, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_HideProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_Insert_overload[] = -{ - { wxLua_wxPropertyGridInterface_Insert3, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert3 }, - { wxLua_wxPropertyGridInterface_Insert2, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert2 }, - { wxLua_wxPropertyGridInterface_Insert1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert1 }, - { wxLua_wxPropertyGridInterface_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_Insert }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_Insert_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertyCategory1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyCategory1 }, - { wxLua_wxPropertyGridInterface_IsPropertyCategory, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyCategory }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertyEnabled1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyEnabled1 }, - { wxLua_wxPropertyGridInterface_IsPropertyEnabled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyEnabled }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertyExpanded1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyExpanded1 }, - { wxLua_wxPropertyGridInterface_IsPropertyExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyExpanded }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertyModified1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyModified1 }, - { wxLua_wxPropertyGridInterface_IsPropertyModified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyModified }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertySelected1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertySelected1 }, - { wxLua_wxPropertyGridInterface_IsPropertySelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertySelected }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertyShown1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyShown1 }, - { wxLua_wxPropertyGridInterface_IsPropertyShown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyShown }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified_overload[] = -{ - { wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified1 }, - { wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing_overload[] = -{ - { wxLua_wxPropertyGridInterface_LimitPropertyEditing1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_LimitPropertyEditing1 }, - { wxLua_wxPropertyGridInterface_LimitPropertyEditing, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_LimitPropertyEditing }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty_overload[] = -{ - { wxLua_wxPropertyGridInterface_RemoveProperty1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RemoveProperty1 }, - { wxLua_wxPropertyGridInterface_RemoveProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_RemoveProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty_overload[] = -{ - { wxLua_wxPropertyGridInterface_ReplaceProperty1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ReplaceProperty1 }, - { wxLua_wxPropertyGridInterface_ReplaceProperty, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_ReplaceProperty }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_SetPropVal1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropVal1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_SetPropVal, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropVal }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_SetPropertyAttribute1, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttribute1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_SetPropertyAttribute, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyAttribute }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyCell1, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyCell1 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyCell, WXLUAMETHOD_METHOD, 3, 7, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyCell }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyClientData1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyClientData1 }, - { wxLua_wxPropertyGridInterface_SetPropertyClientData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyClientData }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault_overload[] = -{ - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault1 }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyEditor3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor3 }, - { wxLua_wxPropertyGridInterface_SetPropertyEditor2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor2 }, - { wxLua_wxPropertyGridInterface_SetPropertyEditor1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor1 }, - { wxLua_wxPropertyGridInterface_SetPropertyEditor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyEditor }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyHelpString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyHelpString1 }, - { wxLua_wxPropertyGridInterface_SetPropertyHelpString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyHelpString }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage_overload[] = -{ - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyImage1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyImage1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyImage }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyLabel1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyLabel1 }, - { wxLua_wxPropertyGridInterface_SetPropertyLabel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyLabel }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyMaxLength1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyMaxLength1 }, - { wxLua_wxPropertyGridInterface_SetPropertyMaxLength, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyMaxLength }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyName1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyName1 }, - { wxLua_wxPropertyGridInterface_SetPropertyName, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyName }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyReadOnly1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyReadOnly1 }, - { wxLua_wxPropertyGridInterface_SetPropertyReadOnly, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyReadOnly }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyTextColour1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyTextColour1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyTextColour, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyTextColour }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxPropertyGridInterface_SetPropertyValidator1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValidator1 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxPropertyGridInterface_SetPropertyValidator, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValidator }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue_overload[] = -{ - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_SetPropertyValue19, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue19 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPropertyGridInterface_SetPropertyValue18, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue18 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue17, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue17 }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue16, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue16 }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue15, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue15 }, -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue14, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue14 }, -#endif // (wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue13, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue13 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue12, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue12 }, -#endif // (wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue11, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue11 }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue10, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue10 }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPropertyGridInterface_SetPropertyValue9, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue9 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue8, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue8 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue7, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue7 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue6, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue6 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue5 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue4 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue3 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue2 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue1 }, - { wxLua_wxPropertyGridInterface_SetPropertyValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValue }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyValueString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueString1 }, - { wxLua_wxPropertyGridInterface_SetPropertyValueString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueString }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified_overload[] = -{ - { wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified1 }, - { wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren_overload[] = -{ - { wxLua_wxPropertyGridInterface_SortChildren1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SortChildren1 }, - { wxLua_wxPropertyGridInterface_SortChildren, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPropertyGridInterface_SortChildren }, -}; -static int s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyGridInterface_delete_function(void** p) -{ - wxPropertyGridInterface* o = (wxPropertyGridInterface*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyGridInterface_methods[] = { - { "Append", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_Append, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "AppendIn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_AppendIn_overload_count, 0 }, - { "BeginAddChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_BeginAddChildren_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - { "ChangePropertyValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_ChangePropertyValue_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_Clear, 1, NULL }, - { "ClearModifiedStatus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_ClearModifiedStatus, 1, NULL }, - { "ClearSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_ClearSelection, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Collapse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_Collapse_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "CollapseAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_CollapseAll, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "DeleteProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_DeleteProperty_overload_count, 0 }, - { "DisableProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_DisableProperty_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "EditorValidate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_EditorValidate, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "EnableProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_EnableProperty_overload_count, 0 }, - { "EndAddChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_EndAddChildren_overload_count, 0 }, - { "Expand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_Expand_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_Expand_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "ExpandAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_ExpandAll, 1, NULL }, - { "GetColumnProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetColumnProportion, 1, NULL }, - { "GetEditorByName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGridInterface_GetEditorByName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetFirst", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirst_overload_count, 0 }, - { "GetFirstChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetFirstChild_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetProperty, 1, NULL }, - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - { "GetPropertyAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttribute_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyAttributes_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "GetPropertyBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyBackgroundColour_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { "GetPropertyByLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByLabel, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyByName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByName_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetPropertyByNameA", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyByNameA, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyCategory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyCategory_overload_count, 0 }, - { "GetPropertyClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyClientData_overload_count, 0 }, - { "GetPropertyEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyEditor_overload_count, 0 }, - { "GetPropertyHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyHelpString_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "GetPropertyImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyImage_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyLabel_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetPropertyName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyParent_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "GetPropertyTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyTextColour_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - { "GetPropertyValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValidator_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - { "GetPropertyValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValue_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "GetPropertyValueAsArrayInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayInt_overload_count, 0 }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "GetPropertyValueAsArrayString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsArrayString_overload_count, 0 }, -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyValueAsBool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsBool_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "GetPropertyValueAsDateTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDateTime_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyValueAsDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsDouble_overload_count, 0 }, - { "GetPropertyValueAsInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsInt_overload_count, 0 }, - { "GetPropertyValueAsLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLong_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) - { "GetPropertyValueAsLongLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsLongLong_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetPropertyValueAsString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsString_overload_count, 0 }, - { "GetPropertyValueAsULong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULong_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) - { "GetPropertyValueAsULongLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValueAsULongLong_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_LONGLONG)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetPropertyValues", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetPropertyValues, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetSelection, 1, NULL }, - { "GetVIterator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_GetVIterator, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "HideProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_HideProperty_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "InitAllTypeHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGridInterface_InitAllTypeHandlers, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_Insert_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_Insert_overload_count, 0 }, - { "IsPropertyCategory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyCategory_overload_count, 0 }, - { "IsPropertyEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyEnabled_overload_count, 0 }, - { "IsPropertyExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyExpanded_overload_count, 0 }, - { "IsPropertyModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyModified_overload_count, 0 }, - { "IsPropertySelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertySelected_overload_count, 0 }, - { "IsPropertyShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyShown_overload_count, 0 }, - { "IsPropertyValueUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_IsPropertyValueUnspecified_overload_count, 0 }, - { "LimitPropertyEditing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_LimitPropertyEditing_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "RefreshGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_RefreshGrid, 1, NULL }, - { "RefreshProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_RefreshProperty, 1, NULL }, - { "RegisterAdditionalEditors", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGridInterface_RegisterAdditionalEditors, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "RemoveProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_RemoveProperty_overload_count, 0 }, - { "ReplaceProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_ReplaceProperty_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "RestoreEditableState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_RestoreEditableState, 1, NULL }, - { "SaveEditableState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SaveEditableState, 1, NULL }, - { "SetBoolChoices", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxPropertyGridInterface_SetBoolChoices, 1, NULL }, - { "SetColumnProportion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetColumnProportion, 1, NULL }, - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - { "SetPropVal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropVal_overload_count, 0 }, - { "SetPropertyAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttribute_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetPropertyAttributeAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyAttributeAll, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "SetPropertyBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyBackgroundColour_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "SetPropertyCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyCell_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetPropertyClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyClientData_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "SetPropertyColoursToDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyColoursToDefault_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetPropertyEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyEditor_overload_count, 0 }, - { "SetPropertyHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyHelpString_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "SetPropertyImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyImage_overload_count, 0 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetPropertyLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyLabel_overload_count, 0 }, - { "SetPropertyMaxLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyMaxLength_overload_count, 0 }, - { "SetPropertyName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyName_overload_count, 0 }, - { "SetPropertyReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyReadOnly_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "SetPropertyTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyTextColour_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - { "SetPropertyValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValidator_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS)) - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetPropertyValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValue_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT))||((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxObject) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxDateTime && wxUSE_DATETIME) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetPropertyValueString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueString_overload_count, 0 }, - { "SetPropertyValueUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValueUnspecified_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetPropertyValues", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetPropertyValues, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "SetValidationFailureBehavior", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SetValidationFailureBehavior, 1, NULL }, - { "Sort", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_Sort, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SortChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren_overload, s_wxluafunc_wxLua_wxPropertyGridInterface_SortChildren_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPropertyGridInterface_methodCount = sizeof(wxPropertyGridInterface_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxPropertyGridInterface_enums[] = { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "AllStates", wxPropertyGridInterface::AllStates }, - { "DescBoxState", wxPropertyGridInterface::DescBoxState }, - { "ExpandedState", wxPropertyGridInterface::ExpandedState }, - { "PageState", wxPropertyGridInterface::PageState }, - { "ScrollPosState", wxPropertyGridInterface::ScrollPosState }, - { "SelectionState", wxPropertyGridInterface::SelectionState }, - { "SplitterPosState", wxPropertyGridInterface::SplitterPosState }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - { NULL, 0, }, -}; -int wxPropertyGridInterface_enumCount = sizeof(wxPropertyGridInterface_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind struct wxPGPaintData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGPaintData' -int wxluatype_wxPGPaintData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_choiceItem[] = { &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxPGPaintData_Get_m_choiceItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Get_m_choiceItem[1] = {{ wxLua_wxPGPaintData_Get_m_choiceItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_choiceItem }}; -// int m_choiceItem; -static int LUACALL wxLua_wxPGPaintData_Get_m_choiceItem(lua_State *L) -{ - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_choiceItem) == (double)(self->m_choiceItem)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_choiceItem); -} else -#endif -{ - lua_pushnumber(L, self->m_choiceItem); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_drawnHeight[] = { &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxPGPaintData_Get_m_drawnHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Get_m_drawnHeight[1] = {{ wxLua_wxPGPaintData_Get_m_drawnHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_drawnHeight }}; -// int m_drawnHeight; -static int LUACALL wxLua_wxPGPaintData_Get_m_drawnHeight(lua_State *L) -{ - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_drawnHeight) == (double)(self->m_drawnHeight)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_drawnHeight); -} else -#endif -{ - lua_pushnumber(L, self->m_drawnHeight); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_drawnWidth[] = { &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxPGPaintData_Get_m_drawnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Get_m_drawnWidth[1] = {{ wxLua_wxPGPaintData_Get_m_drawnWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_drawnWidth }}; -// int m_drawnWidth; -static int LUACALL wxLua_wxPGPaintData_Get_m_drawnWidth(lua_State *L) -{ - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_drawnWidth) == (double)(self->m_drawnWidth)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_drawnWidth); -} else -#endif -{ - lua_pushnumber(L, self->m_drawnWidth); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_parent[] = { &wxluatype_wxPGPaintData, NULL }; -static int LUACALL wxLua_wxPGPaintData_Get_m_parent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Get_m_parent[1] = {{ wxLua_wxPGPaintData_Get_m_parent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGPaintData_Get_m_parent }}; -// const wxPropertyGrid* m_parent; -static int LUACALL wxLua_wxPGPaintData_Get_m_parent(lua_State *L) -{ - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_parent, wxluatype_wxPropertyGrid); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Set_m_choiceItem[] = { &wxluatype_wxPGPaintData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGPaintData_Set_m_choiceItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Set_m_choiceItem[1] = {{ wxLua_wxPGPaintData_Set_m_choiceItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPaintData_Set_m_choiceItem }}; -// int m_choiceItem; -static int LUACALL wxLua_wxPGPaintData_Set_m_choiceItem(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - self->m_choiceItem = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Set_m_drawnHeight[] = { &wxluatype_wxPGPaintData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGPaintData_Set_m_drawnHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Set_m_drawnHeight[1] = {{ wxLua_wxPGPaintData_Set_m_drawnHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPaintData_Set_m_drawnHeight }}; -// int m_drawnHeight; -static int LUACALL wxLua_wxPGPaintData_Set_m_drawnHeight(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - self->m_drawnHeight = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_Set_m_drawnWidth[] = { &wxluatype_wxPGPaintData, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGPaintData_Set_m_drawnWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_Set_m_drawnWidth[1] = {{ wxLua_wxPGPaintData_Set_m_drawnWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGPaintData_Set_m_drawnWidth }}; -// int m_drawnWidth; -static int LUACALL wxLua_wxPGPaintData_Set_m_drawnWidth(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGPaintData *self = (wxPGPaintData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGPaintData); - self->m_drawnWidth = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGPaintData_delete[] = { &wxluatype_wxPGPaintData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGPaintData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGPaintData_delete }}; - - - - -void wxLua_wxPGPaintData_delete_function(void** p) -{ - wxPGPaintData* o = (wxPGPaintData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGPaintData_methods[] = { - // %member { "Get_m_choiceItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Get_m_choiceItem, 1, NULL }, - // %member { "Get_m_drawnHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Get_m_drawnHeight, 1, NULL }, - // %member { "Get_m_drawnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Get_m_drawnWidth, 1, NULL }, - // %member { "Get_m_parent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Get_m_parent, 1, NULL }, - // %member { "Set_m_choiceItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Set_m_choiceItem, 1, NULL }, - // %member { "Set_m_drawnHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Set_m_drawnHeight, 1, NULL }, - // %member { "Set_m_drawnWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGPaintData_Set_m_drawnWidth, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGPaintData_delete, 1, NULL }, - { "m_choiceItem", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPGPaintData_Set_m_choiceItem, 1, NULL }, - { "m_choiceItem", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPGPaintData_Get_m_choiceItem, 1, NULL }, - { "m_drawnHeight", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPGPaintData_Set_m_drawnHeight, 1, NULL }, - { "m_drawnHeight", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPGPaintData_Get_m_drawnHeight, 1, NULL }, - { "m_drawnWidth", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxPGPaintData_Set_m_drawnWidth, 1, NULL }, - { "m_drawnWidth", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPGPaintData_Get_m_drawnWidth, 1, NULL }, - { "m_parent", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxPGPaintData_Get_m_parent, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGPaintData_methodCount = sizeof(wxPGPaintData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGProperty' -int wxluatype_wxPGProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AdaptListToValue[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGProperty_AdaptListToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AdaptListToValue[1] = {{ wxLua_wxPGProperty_AdaptListToValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_AdaptListToValue }}; -// void AdaptListToValue( wxVariant& list, wxVariant* value ) const; -static int LUACALL wxLua_wxPGProperty_AdaptListToValue(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // wxVariant list - wxVariant * list = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AdaptListToValue - self->AdaptListToValue(*list, value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AddChild[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_AddChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AddChild[1] = {{ wxLua_wxPGProperty_AddChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_AddChild }}; -// %wxcompat_1_4 void AddChild( wxPGProperty* prop ); -static int LUACALL wxLua_wxPGProperty_AddChild(lua_State *L) -{ - // wxPGProperty prop - wxPGProperty * prop = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AddChild - self->AddChild(prop); - - return 0; -} - -#endif // (((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AddChoice[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_AddChoice(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AddChoice[1] = {{ wxLua_wxPGProperty_AddChoice, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_AddChoice }}; -// int AddChoice( const wxString& label, int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGProperty_AddChoice(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_INVALID_VALUE); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AddChoice - int returns = (self->AddChoice(label, value)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AddPrivateChild[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_AddPrivateChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AddPrivateChild[1] = {{ wxLua_wxPGProperty_AddPrivateChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_AddPrivateChild }}; -// void AddPrivateChild( wxPGProperty* prop ); -static int LUACALL wxLua_wxPGProperty_AddPrivateChild(lua_State *L) -{ - // wxPGProperty prop - wxPGProperty * prop = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AddPrivateChild - self->AddPrivateChild(prop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AppendChild[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_AppendChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AppendChild[1] = {{ wxLua_wxPGProperty_AppendChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_AppendChild }}; -// %ungc wxPGProperty* AppendChild( %ungc wxPGProperty* childProperty ); -static int LUACALL wxLua_wxPGProperty_AppendChild(lua_State *L) -{ - // wxPGProperty childProperty - wxPGProperty * childProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - if (wxluaO_isgcobject(L, childProperty)) wxluaO_undeletegcobject(L, childProperty); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AppendChild - wxPGProperty* returns = (wxPGProperty*)self->AppendChild(childProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AreAllChildrenSpecified[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGProperty_AreAllChildrenSpecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AreAllChildrenSpecified[1] = {{ wxLua_wxPGProperty_AreAllChildrenSpecified, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_AreAllChildrenSpecified }}; -// bool AreAllChildrenSpecified( wxVariant* pendingList = NULL ) const; -static int LUACALL wxLua_wxPGProperty_AreAllChildrenSpecified(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxVariant pendingList = NULL - wxVariant * pendingList = (argCount >= 2 ? (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant) : NULL); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AreAllChildrenSpecified - bool returns = (self->AreAllChildrenSpecified(pendingList)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_AreChildrenComponents[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_AreChildrenComponents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_AreChildrenComponents[1] = {{ wxLua_wxPGProperty_AreChildrenComponents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_AreChildrenComponents }}; -// bool AreChildrenComponents() const; -static int LUACALL wxLua_wxPGProperty_AreChildrenComponents(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call AreChildrenComponents - bool returns = (self->AreChildrenComponents()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_ChangeFlag[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_ChangeFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_ChangeFlag[1] = {{ wxLua_wxPGProperty_ChangeFlag, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_ChangeFlag }}; -// void ChangeFlag( wxPGPropertyFlags flag, bool set ); -static int LUACALL wxLua_wxPGProperty_ChangeFlag(lua_State *L) -{ - // bool set - bool set = wxlua_getbooleantype(L, 3); - // wxPGPropertyFlags flag - wxPGPropertyFlags flag = (wxPGPropertyFlags)wxlua_getenumtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call ChangeFlag - self->ChangeFlag(flag, set); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_ChildChanged[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGProperty_ChildChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_ChildChanged[1] = {{ wxLua_wxPGProperty_ChildChanged, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGProperty_ChildChanged }}; -// wxVariant& childValue ) const; -static int LUACALL wxLua_wxPGProperty_ChildChanged(lua_State *L) -{ - // wxVariant childValue - wxVariant * childValue = (wxVariant *)wxluaT_getuserdatatype(L, 4, wxluatype_wxVariant); - // int childIndex - int childIndex = (int)wxlua_getnumbertype(L, 3); - // wxVariant thisValue - wxVariant * thisValue = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call ChildChanged - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->ChildChanged(*thisValue, childIndex, *childValue)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DeleteChildren[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_DeleteChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DeleteChildren[1] = {{ wxLua_wxPGProperty_DeleteChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_DeleteChildren }}; -// void DeleteChildren(); -static int LUACALL wxLua_wxPGProperty_DeleteChildren(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DeleteChildren - self->DeleteChildren(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DeleteChoice[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_DeleteChoice(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DeleteChoice[1] = {{ wxLua_wxPGProperty_DeleteChoice, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_DeleteChoice }}; -// void DeleteChoice( int index ); -static int LUACALL wxLua_wxPGProperty_DeleteChoice(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DeleteChoice - self->DeleteChoice(index); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DoGetAttribute[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_DoGetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DoGetAttribute[1] = {{ wxLua_wxPGProperty_DoGetAttribute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_DoGetAttribute }}; -// virtual wxVariant DoGetAttribute( const wxString& name ) const; -static int LUACALL wxLua_wxPGProperty_DoGetAttribute(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DoGetAttribute - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->DoGetAttribute(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DoGetEditorClass[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_DoGetEditorClass(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DoGetEditorClass[1] = {{ wxLua_wxPGProperty_DoGetEditorClass, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_DoGetEditorClass }}; -// virtual const wxPGEditor* DoGetEditorClass() const; -static int LUACALL wxLua_wxPGProperty_DoGetEditorClass(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DoGetEditorClass - const wxPGEditor* returns = (const wxPGEditor*)self->DoGetEditorClass(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DoGetValidator[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_DoGetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DoGetValidator[1] = {{ wxLua_wxPGProperty_DoGetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_DoGetValidator }}; -// virtual wxValidator* DoGetValidator () const; -static int LUACALL wxLua_wxPGProperty_DoGetValidator(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DoGetValidator - wxValidator* returns = (wxValidator*)self->DoGetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DoGetValue[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_DoGetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DoGetValue[1] = {{ wxLua_wxPGProperty_DoGetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_DoGetValue }}; -// virtual wxVariant DoGetValue() const; -static int LUACALL wxLua_wxPGProperty_DoGetValue(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DoGetValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->DoGetValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_DoSetAttribute[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGProperty_DoSetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_DoSetAttribute[1] = {{ wxLua_wxPGProperty_DoSetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_DoSetAttribute }}; -// virtual bool DoSetAttribute( const wxString& name, wxVariant& value ); -static int LUACALL wxLua_wxPGProperty_DoSetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call DoSetAttribute - bool returns = (self->DoSetAttribute(name, *value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_Enable[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_Enable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_Enable[1] = {{ wxLua_wxPGProperty_Enable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_Enable }}; -// void Enable( bool enable = true ); -static int LUACALL wxLua_wxPGProperty_Enable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call Enable - self->Enable(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_EnableCommonValue[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_EnableCommonValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_EnableCommonValue[1] = {{ wxLua_wxPGProperty_EnableCommonValue, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_EnableCommonValue }}; -// void EnableCommonValue( bool enable = true ); -static int LUACALL wxLua_wxPGProperty_EnableCommonValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call EnableCommonValue - self->EnableCommonValue(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GenerateComposedValue[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GenerateComposedValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GenerateComposedValue[1] = {{ wxLua_wxPGProperty_GenerateComposedValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GenerateComposedValue }}; -// wxString GenerateComposedValue() const; -static int LUACALL wxLua_wxPGProperty_GenerateComposedValue(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GenerateComposedValue - wxString returns = (self->GenerateComposedValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetAttribute1[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_GetAttribute1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttribute1[1] = {{ wxLua_wxPGProperty_GetAttribute1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_GetAttribute1 }}; -// wxString GetAttribute( const wxString& name, const wxString& defVal ) const; -static int LUACALL wxLua_wxPGProperty_GetAttribute1(lua_State *L) -{ - // const wxString defVal - const wxString defVal = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetAttribute - wxString returns = (self->GetAttribute(name, defVal)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetAttribute[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_GetAttribute(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttribute[1] = {{ wxLua_wxPGProperty_GetAttribute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetAttribute }}; -// wxVariant GetAttribute( const wxString& name ) const; -static int LUACALL wxLua_wxPGProperty_GetAttribute(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetAttribute - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetAttribute(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetAttributeAsDouble[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetAttributeAsDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttributeAsDouble[1] = {{ wxLua_wxPGProperty_GetAttributeAsDouble, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_GetAttributeAsDouble }}; -// double GetAttributeAsDouble( const wxString& name, double defVal ) const; -static int LUACALL wxLua_wxPGProperty_GetAttributeAsDouble(lua_State *L) -{ - // double defVal - double defVal = (double)wxlua_getnumbertype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetAttributeAsDouble - double returns = (self->GetAttributeAsDouble(name, defVal)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetAttributeAsLong[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetAttributeAsLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttributeAsLong[1] = {{ wxLua_wxPGProperty_GetAttributeAsLong, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_GetAttributeAsLong }}; -// long GetAttributeAsLong( const wxString& name, long defVal ) const; -static int LUACALL wxLua_wxPGProperty_GetAttributeAsLong(lua_State *L) -{ - // long defVal - long defVal = (long)wxlua_getnumbertype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetAttributeAsLong - long returns = (self->GetAttributeAsLong(name, defVal)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetAttributes[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttributes[1] = {{ wxLua_wxPGProperty_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetAttributes }}; -// const wxPGAttributeStorage& GetAttributes() const; -static int LUACALL wxLua_wxPGProperty_GetAttributes(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetAttributes - const wxPGAttributeStorage* returns = (const wxPGAttributeStorage*)&self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGAttributeStorage); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetAttributesAsList[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetAttributesAsList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttributesAsList[1] = {{ wxLua_wxPGProperty_GetAttributesAsList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetAttributesAsList }}; -// wxVariant GetAttributesAsList() const; -static int LUACALL wxLua_wxPGProperty_GetAttributesAsList(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetAttributesAsList - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetAttributesAsList()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetBaseName[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetBaseName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetBaseName[1] = {{ wxLua_wxPGProperty_GetBaseName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetBaseName }}; -// const wxString& GetBaseName() const; -static int LUACALL wxLua_wxPGProperty_GetBaseName(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetBaseName - wxString returns = (self->GetBaseName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetCell1[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetCell1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetCell1[1] = {{ wxLua_wxPGProperty_GetCell1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetCell1 }}; -// wxPGCell& GetCell( unsigned int column ); -static int LUACALL wxLua_wxPGProperty_GetCell1(lua_State *L) -{ - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetCell - wxPGCell* returns = (wxPGCell*)&self->GetCell(column); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetCell[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetCell(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetCell[1] = {{ wxLua_wxPGProperty_GetCell, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetCell }}; -// const wxPGCell& GetCell( unsigned int column ) const; -static int LUACALL wxLua_wxPGProperty_GetCell(lua_State *L) -{ - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetCell - const wxPGCell* returns = (const wxPGCell*)&self->GetCell(column); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetCellRenderer[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetCellRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetCellRenderer[1] = {{ wxLua_wxPGProperty_GetCellRenderer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetCellRenderer }}; -// virtual wxPGCellRenderer* GetCellRenderer( int column ) const; -static int LUACALL wxLua_wxPGProperty_GetCellRenderer(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetCellRenderer - wxPGCellRenderer* returns = (wxPGCellRenderer*)self->GetCellRenderer(column); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCellRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetChildCount[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetChildCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetChildCount[1] = {{ wxLua_wxPGProperty_GetChildCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetChildCount }}; -// unsigned int GetChildCount() const; -static int LUACALL wxLua_wxPGProperty_GetChildCount(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetChildCount - unsigned int returns = (self->GetChildCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetChildrenHeight[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetChildrenHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetChildrenHeight[1] = {{ wxLua_wxPGProperty_GetChildrenHeight, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_GetChildrenHeight }}; -// int GetChildrenHeight( int lh, int iMax = -1 ) const; -static int LUACALL wxLua_wxPGProperty_GetChildrenHeight(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int iMax = -1 - int iMax = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // int lh - int lh = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetChildrenHeight - int returns = (self->GetChildrenHeight(lh, iMax)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetChoiceSelection[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetChoiceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetChoiceSelection[1] = {{ wxLua_wxPGProperty_GetChoiceSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetChoiceSelection }}; -// virtual int GetChoiceSelection() const; -static int LUACALL wxLua_wxPGProperty_GetChoiceSelection(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetChoiceSelection - int returns = (self->GetChoiceSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetChoices[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetChoices(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetChoices[1] = {{ wxLua_wxPGProperty_GetChoices, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetChoices }}; -// const wxPGChoices& GetChoices() const; -static int LUACALL wxLua_wxPGProperty_GetChoices(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetChoices - const wxPGChoices* returns = (const wxPGChoices*)&self->GetChoices(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoices); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetClientData[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetClientData[1] = {{ wxLua_wxPGProperty_GetClientData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetClientData }}; -// void* GetClientData() const; -static int LUACALL wxLua_wxPGProperty_GetClientData(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetClientData - void* returns = (void*)self->GetClientData(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetClientObject[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetClientObject[1] = {{ wxLua_wxPGProperty_GetClientObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetClientObject }}; -// wxClientData *GetClientObject() const; -static int LUACALL wxLua_wxPGProperty_GetClientObject(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetClientObject - wxClientData* returns = (wxClientData*)self->GetClientObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxClientData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetColumnEditor[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetColumnEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetColumnEditor[1] = {{ wxLua_wxPGProperty_GetColumnEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetColumnEditor }}; -// const wxPGEditor* GetColumnEditor( int column ) const; -static int LUACALL wxLua_wxPGProperty_GetColumnEditor(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetColumnEditor - const wxPGEditor* returns = (const wxPGEditor*)self->GetColumnEditor(column); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetCommonValue[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetCommonValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetCommonValue[1] = {{ wxLua_wxPGProperty_GetCommonValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetCommonValue }}; -// int GetCommonValue() const; -static int LUACALL wxLua_wxPGProperty_GetCommonValue(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetCommonValue - int returns = (self->GetCommonValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetDefaultValue[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetDefaultValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetDefaultValue[1] = {{ wxLua_wxPGProperty_GetDefaultValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetDefaultValue }}; -// wxVariant GetDefaultValue() const; -static int LUACALL wxLua_wxPGProperty_GetDefaultValue(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetDefaultValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetDefaultValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetDepth[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetDepth[1] = {{ wxLua_wxPGProperty_GetDepth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetDepth }}; -// unsigned int GetDepth() const; -static int LUACALL wxLua_wxPGProperty_GetDepth(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetDepth - unsigned int returns = (self->GetDepth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetDisplayedCommonValueCount[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetDisplayedCommonValueCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetDisplayedCommonValueCount[1] = {{ wxLua_wxPGProperty_GetDisplayedCommonValueCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetDisplayedCommonValueCount }}; -// int GetDisplayedCommonValueCount() const; -static int LUACALL wxLua_wxPGProperty_GetDisplayedCommonValueCount(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetDisplayedCommonValueCount - int returns = (self->GetDisplayedCommonValueCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetDisplayedString[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetDisplayedString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetDisplayedString[1] = {{ wxLua_wxPGProperty_GetDisplayedString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetDisplayedString }}; -// wxString GetDisplayedString() const; -static int LUACALL wxLua_wxPGProperty_GetDisplayedString(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetDisplayedString - wxString returns = (self->GetDisplayedString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetEditorClass[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetEditorClass(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetEditorClass[1] = {{ wxLua_wxPGProperty_GetEditorClass, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetEditorClass }}; -// const wxPGEditor* GetEditorClass() const; -static int LUACALL wxLua_wxPGProperty_GetEditorClass(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetEditorClass - const wxPGEditor* returns = (const wxPGEditor*)self->GetEditorClass(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetEditorDialog[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetEditorDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetEditorDialog[1] = {{ wxLua_wxPGProperty_GetEditorDialog, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetEditorDialog }}; -// virtual wxPGEditorDialogAdapter* GetEditorDialog() const; -static int LUACALL wxLua_wxPGProperty_GetEditorDialog(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetEditorDialog - wxPGEditorDialogAdapter* returns = (wxPGEditorDialogAdapter*)self->GetEditorDialog(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGEditorDialogAdapter); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetFlagsAsString[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetFlagsAsString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetFlagsAsString[1] = {{ wxLua_wxPGProperty_GetFlagsAsString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetFlagsAsString }}; -// wxString GetFlagsAsString( wxUint32 flagsMask ) const; -static int LUACALL wxLua_wxPGProperty_GetFlagsAsString(lua_State *L) -{ - // wxUint32 flagsMask - wxUint32 flagsMask = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetFlagsAsString - wxString returns = (self->GetFlagsAsString(flagsMask)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetGrid[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetGrid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetGrid[1] = {{ wxLua_wxPGProperty_GetGrid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetGrid }}; -// wxPropertyGrid* GetGrid() const; -static int LUACALL wxLua_wxPGProperty_GetGrid(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetGrid - wxPropertyGrid* returns = (wxPropertyGrid*)self->GetGrid(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetGridIfDisplayed[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetGridIfDisplayed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetGridIfDisplayed[1] = {{ wxLua_wxPGProperty_GetGridIfDisplayed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetGridIfDisplayed }}; -// wxPropertyGrid* GetGridIfDisplayed() const; -static int LUACALL wxLua_wxPGProperty_GetGridIfDisplayed(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetGridIfDisplayed - wxPropertyGrid* returns = (wxPropertyGrid*)self->GetGridIfDisplayed(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyGrid); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetHelpString[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetHelpString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetHelpString[1] = {{ wxLua_wxPGProperty_GetHelpString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetHelpString }}; -// const wxString& GetHelpString() const; -static int LUACALL wxLua_wxPGProperty_GetHelpString(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetHelpString - wxString returns = (self->GetHelpString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetHintText[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetHintText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetHintText[1] = {{ wxLua_wxPGProperty_GetHintText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetHintText }}; -// inline wxString GetHintText() const; -static int LUACALL wxLua_wxPGProperty_GetHintText(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetHintText - wxString returns = (self->GetHintText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetImageOffset[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetImageOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetImageOffset[1] = {{ wxLua_wxPGProperty_GetImageOffset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetImageOffset }}; -// int GetImageOffset( int imageWidth ) const; -static int LUACALL wxLua_wxPGProperty_GetImageOffset(lua_State *L) -{ - // int imageWidth - int imageWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetImageOffset - int returns = (self->GetImageOffset(imageWidth)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetIndexInParent[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetIndexInParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetIndexInParent[1] = {{ wxLua_wxPGProperty_GetIndexInParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetIndexInParent }}; -// unsigned int GetIndexInParent() const; -static int LUACALL wxLua_wxPGProperty_GetIndexInParent(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetIndexInParent - unsigned int returns = (self->GetIndexInParent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetItemAtY[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetItemAtY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetItemAtY[1] = {{ wxLua_wxPGProperty_GetItemAtY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetItemAtY }}; -// %ungc wxPGProperty* GetItemAtY( unsigned int y ) const; -static int LUACALL wxLua_wxPGProperty_GetItemAtY(lua_State *L) -{ - // unsigned int y - unsigned int y = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetItemAtY - wxPGProperty* returns = (wxPGProperty*)self->GetItemAtY(y); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetLabel[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetLabel[1] = {{ wxLua_wxPGProperty_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetLabel }}; -// const wxString& GetLabel() const; -static int LUACALL wxLua_wxPGProperty_GetLabel(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetLastVisibleSubItem[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetLastVisibleSubItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetLastVisibleSubItem[1] = {{ wxLua_wxPGProperty_GetLastVisibleSubItem, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetLastVisibleSubItem }}; -// const wxPGProperty* GetLastVisibleSubItem() const; -static int LUACALL wxLua_wxPGProperty_GetLastVisibleSubItem(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetLastVisibleSubItem - const wxPGProperty* returns = (const wxPGProperty*)self->GetLastVisibleSubItem(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetMainParent[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetMainParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetMainParent[1] = {{ wxLua_wxPGProperty_GetMainParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetMainParent }}; -// %ungc wxPGProperty* GetMainParent() const; -static int LUACALL wxLua_wxPGProperty_GetMainParent(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetMainParent - wxPGProperty* returns = (wxPGProperty*)self->GetMainParent(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetMaxLength[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetMaxLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetMaxLength[1] = {{ wxLua_wxPGProperty_GetMaxLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetMaxLength }}; -// int GetMaxLength() const; -static int LUACALL wxLua_wxPGProperty_GetMaxLength(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetMaxLength - int returns = (self->GetMaxLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetName[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetName[1] = {{ wxLua_wxPGProperty_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxPGProperty_GetName(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetOrCreateCell[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetOrCreateCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetOrCreateCell[1] = {{ wxLua_wxPGProperty_GetOrCreateCell, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetOrCreateCell }}; -// wxPGCell& GetOrCreateCell( unsigned int column ); -static int LUACALL wxLua_wxPGProperty_GetOrCreateCell(lua_State *L) -{ - // unsigned int column - unsigned int column = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetOrCreateCell - wxPGCell* returns = (wxPGCell*)&self->GetOrCreateCell(column); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetParent[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetParent[1] = {{ wxLua_wxPGProperty_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetParent }}; -// %ungc wxPGProperty* GetParent() const; -static int LUACALL wxLua_wxPGProperty_GetParent(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetParent - wxPGProperty* returns = (wxPGProperty*)self->GetParent(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetPropertyByName[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_GetPropertyByName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetPropertyByName[1] = {{ wxLua_wxPGProperty_GetPropertyByName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetPropertyByName }}; -// %ungc wxPGProperty* GetPropertyByName( const wxString& name ) const; -static int LUACALL wxLua_wxPGProperty_GetPropertyByName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetPropertyByName - wxPGProperty* returns = (wxPGProperty*)self->GetPropertyByName(name); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetValidator[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetValidator[1] = {{ wxLua_wxPGProperty_GetValidator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetValidator }}; -// wxValidator* GetValidator() const; -static int LUACALL wxLua_wxPGProperty_GetValidator(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetValidator - wxValidator* returns = (wxValidator*)self->GetValidator(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxValidator); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetValue[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetValue[1] = {{ wxLua_wxPGProperty_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetValue }}; -// wxVariant GetValue() const; -static int LUACALL wxLua_wxPGProperty_GetValue(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->GetValue()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetValueAsString[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetValueAsString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetValueAsString[1] = {{ wxLua_wxPGProperty_GetValueAsString, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetValueAsString }}; -// virtual wxString GetValueAsString( int argFlags = 0 ) const; -static int LUACALL wxLua_wxPGProperty_GetValueAsString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetValueAsString - wxString returns = (self->GetValueAsString(argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetValueImage[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetValueImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetValueImage[1] = {{ wxLua_wxPGProperty_GetValueImage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetValueImage }}; -// wxBitmap* GetValueImage() const; -static int LUACALL wxLua_wxPGProperty_GetValueImage(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetValueImage - wxBitmap* returns = (wxBitmap*)self->GetValueImage(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetValueString[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_GetValueString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetValueString[1] = {{ wxLua_wxPGProperty_GetValueString, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetValueString }}; -// %wxcompat_1_4 wxString GetValueString( int argFlags = 0 ) const; -static int LUACALL wxLua_wxPGProperty_GetValueString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetValueString - wxString returns = (self->GetValueString(argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetValueType[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetValueType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetValueType[1] = {{ wxLua_wxPGProperty_GetValueType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetValueType }}; -// wxString GetValueType() const; -static int LUACALL wxLua_wxPGProperty_GetValueType(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetValueType - wxString returns = (self->GetValueType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_GetY[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetY[1] = {{ wxLua_wxPGProperty_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_GetY }}; -// int GetY() const; -static int LUACALL wxLua_wxPGProperty_GetY(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call GetY - int returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_HasFlag1[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_HasFlag1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_HasFlag1[1] = {{ wxLua_wxPGProperty_HasFlag1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_HasFlag1 }}; -// %wxchkver_3_2_0 bool HasFlag(wxUint32 flag) const; -static int LUACALL wxLua_wxPGProperty_HasFlag1(lua_State *L) -{ - // wxUint32 flag - wxUint32 flag = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_HasFlag[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_HasFlag(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_HasFlag[1] = {{ wxLua_wxPGProperty_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_HasFlag }}; -// %wxchkver_3_2_0 bool HasFlag(wxPGPropertyFlags flag) const; -static int LUACALL wxLua_wxPGProperty_HasFlag(lua_State *L) -{ - // wxPGPropertyFlags flag - wxPGPropertyFlags flag = (wxPGPropertyFlags)wxlua_getenumtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_HasFlagsExact[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_HasFlagsExact(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_HasFlagsExact[1] = {{ wxLua_wxPGProperty_HasFlagsExact, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_HasFlagsExact }}; -// %wxchkver_3_2_0 bool HasFlagsExact(wxUint32 flags) const; -static int LUACALL wxLua_wxPGProperty_HasFlagsExact(lua_State *L) -{ - // wxUint32 flags - wxUint32 flags = (wxUint32)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call HasFlagsExact - bool returns = (self->HasFlagsExact(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_HasVisibleChildren[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_HasVisibleChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_HasVisibleChildren[1] = {{ wxLua_wxPGProperty_HasVisibleChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_HasVisibleChildren }}; -// bool HasVisibleChildren() const; -static int LUACALL wxLua_wxPGProperty_HasVisibleChildren(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call HasVisibleChildren - bool returns = (self->HasVisibleChildren()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_Hide[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_Hide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_Hide[1] = {{ wxLua_wxPGProperty_Hide, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_Hide }}; -// bool Hide( bool hide, int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPGProperty_Hide(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_RECURSE); - // bool hide - bool hide = wxlua_getbooleantype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call Hide - bool returns = (self->Hide(hide, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_Index[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_Index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_Index[1] = {{ wxLua_wxPGProperty_Index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_Index }}; -// int Index( const wxPGProperty* p ) const; -static int LUACALL wxLua_wxPGProperty_Index(lua_State *L) -{ - // const wxPGProperty p - const wxPGProperty * p = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call Index - int returns = (self->Index(p)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_InsertChild[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_InsertChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_InsertChild[1] = {{ wxLua_wxPGProperty_InsertChild, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_InsertChild }}; -// %ungc wxPGProperty* InsertChild( int index, %ungc wxPGProperty* childProperty ); -static int LUACALL wxLua_wxPGProperty_InsertChild(lua_State *L) -{ - // wxPGProperty childProperty - wxPGProperty * childProperty = (wxPGProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGProperty); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - if (wxluaO_isgcobject(L, childProperty)) wxluaO_undeletegcobject(L, childProperty); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call InsertChild - wxPGProperty* returns = (wxPGProperty*)self->InsertChild(index, childProperty); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_InsertChoice[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_InsertChoice(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_InsertChoice[1] = {{ wxLua_wxPGProperty_InsertChoice, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGProperty_InsertChoice }}; -// int InsertChoice( const wxString& label, int index, int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGProperty_InsertChoice(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_INVALID_VALUE); - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call InsertChoice - int returns = (self->InsertChoice(label, index, value)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IntToValue[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_IntToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IntToValue[1] = {{ wxLua_wxPGProperty_IntToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGProperty_IntToValue }}; -// virtual bool IntToValue( wxVariant& variant, int number, int argFlags = 0 ) const; -static int LUACALL wxLua_wxPGProperty_IntToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // int number - int number = (int)wxlua_getnumbertype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IntToValue - bool returns = (self->IntToValue(*variant, number, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsCategory[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsCategory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsCategory[1] = {{ wxLua_wxPGProperty_IsCategory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsCategory }}; -// bool IsCategory() const; -static int LUACALL wxLua_wxPGProperty_IsCategory(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsCategory - bool returns = (self->IsCategory()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsEnabled[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsEnabled[1] = {{ wxLua_wxPGProperty_IsEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsEnabled }}; -// bool IsEnabled() const; -static int LUACALL wxLua_wxPGProperty_IsEnabled(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsEnabled - bool returns = (self->IsEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsExpanded[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsExpanded[1] = {{ wxLua_wxPGProperty_IsExpanded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsExpanded }}; -// bool IsExpanded() const; -static int LUACALL wxLua_wxPGProperty_IsExpanded(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsExpanded - bool returns = (self->IsExpanded()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsRoot[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsRoot[1] = {{ wxLua_wxPGProperty_IsRoot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsRoot }}; -// bool IsRoot() const; -static int LUACALL wxLua_wxPGProperty_IsRoot(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsRoot - bool returns = (self->IsRoot()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsSomeParent[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsSomeParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsSomeParent[1] = {{ wxLua_wxPGProperty_IsSomeParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_IsSomeParent }}; -// bool IsSomeParent( wxPGProperty* candidateParent ) const; -static int LUACALL wxLua_wxPGProperty_IsSomeParent(lua_State *L) -{ - // wxPGProperty candidateParent - wxPGProperty * candidateParent = (wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsSomeParent - bool returns = (self->IsSomeParent(candidateParent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsSubProperty[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsSubProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsSubProperty[1] = {{ wxLua_wxPGProperty_IsSubProperty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsSubProperty }}; -// bool IsSubProperty() const; -static int LUACALL wxLua_wxPGProperty_IsSubProperty(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsSubProperty - bool returns = (self->IsSubProperty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsTextEditable[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsTextEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsTextEditable[1] = {{ wxLua_wxPGProperty_IsTextEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsTextEditable }}; -// bool IsTextEditable() const; -static int LUACALL wxLua_wxPGProperty_IsTextEditable(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsTextEditable - bool returns = (self->IsTextEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsValueUnspecified[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsValueUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsValueUnspecified[1] = {{ wxLua_wxPGProperty_IsValueUnspecified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsValueUnspecified }}; -// bool IsValueUnspecified() const; -static int LUACALL wxLua_wxPGProperty_IsValueUnspecified(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsValueUnspecified - bool returns = (self->IsValueUnspecified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_IsVisible[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_IsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_IsVisible[1] = {{ wxLua_wxPGProperty_IsVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_IsVisible }}; -// bool IsVisible() const; -static int LUACALL wxLua_wxPGProperty_IsVisible(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call IsVisible - bool returns = (self->IsVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_Item[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGProperty_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_Item[1] = {{ wxLua_wxPGProperty_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_Item }}; -// %ungc wxPGProperty* Item( unsigned int i ) const; -static int LUACALL wxLua_wxPGProperty_Item(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call Item - wxPGProperty* returns = (wxPGProperty*)self->Item(i); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_Last[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_Last(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_Last[1] = {{ wxLua_wxPGProperty_Last, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_Last }}; -// %ungc wxPGProperty* Last() const; -static int LUACALL wxLua_wxPGProperty_Last(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call Last - wxPGProperty* returns = (wxPGProperty*)self->Last(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_OnEvent[] = { &wxluatype_wxPGProperty, &wxluatype_wxPropertyGrid, &wxluatype_wxWindow, &wxluatype_wxEvent, NULL }; -static int LUACALL wxLua_wxPGProperty_OnEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_OnEvent[1] = {{ wxLua_wxPGProperty_OnEvent, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGProperty_OnEvent }}; -// virtual bool OnEvent( wxPropertyGrid* propgrid, wxWindow* wnd_primary, wxEvent& event ); -static int LUACALL wxLua_wxPGProperty_OnEvent(lua_State *L) -{ - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 4, wxluatype_wxEvent); - // wxWindow wnd_primary - wxWindow * wnd_primary = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPropertyGrid propgrid - wxPropertyGrid * propgrid = (wxPropertyGrid *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPropertyGrid); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call OnEvent - bool returns = (self->OnEvent(propgrid, wnd_primary, *event)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_OnMeasureImage[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_OnMeasureImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_OnMeasureImage[1] = {{ wxLua_wxPGProperty_OnMeasureImage, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_OnMeasureImage }}; -// virtual wxSize OnMeasureImage( int item = -1 ) const; -static int LUACALL wxLua_wxPGProperty_OnMeasureImage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int item = -1 - int item = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call OnMeasureImage - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->OnMeasureImage(item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_OnSetValue[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_OnSetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_OnSetValue[1] = {{ wxLua_wxPGProperty_OnSetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_OnSetValue }}; -// virtual void OnSetValue(); -static int LUACALL wxLua_wxPGProperty_OnSetValue(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call OnSetValue - self->OnSetValue(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_OnValidationFailure[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGProperty_OnValidationFailure(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_OnValidationFailure[1] = {{ wxLua_wxPGProperty_OnValidationFailure, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_OnValidationFailure }}; -// virtual void OnValidationFailure( wxVariant& pendingValue ); -static int LUACALL wxLua_wxPGProperty_OnValidationFailure(lua_State *L) -{ - // wxVariant pendingValue - wxVariant * pendingValue = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call OnValidationFailure - self->OnValidationFailure(*pendingValue); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_RecreateEditor[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_RecreateEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_RecreateEditor[1] = {{ wxLua_wxPGProperty_RecreateEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_RecreateEditor }}; -// bool RecreateEditor(); -static int LUACALL wxLua_wxPGProperty_RecreateEditor(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call RecreateEditor - bool returns = (self->RecreateEditor()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_RefreshChildren[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_RefreshChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_RefreshChildren[1] = {{ wxLua_wxPGProperty_RefreshChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_RefreshChildren }}; -// virtual void RefreshChildren(); -static int LUACALL wxLua_wxPGProperty_RefreshChildren(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call RefreshChildren - self->RefreshChildren(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_RefreshEditor[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_RefreshEditor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_RefreshEditor[1] = {{ wxLua_wxPGProperty_RefreshEditor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_RefreshEditor }}; -// void RefreshEditor(); -static int LUACALL wxLua_wxPGProperty_RefreshEditor(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call RefreshEditor - self->RefreshEditor(); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetAttribute[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPGProperty_SetAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetAttribute[1] = {{ wxLua_wxPGProperty_SetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetAttribute }}; -// void SetAttribute( const wxString& name, wxVariant value ); -static int LUACALL wxLua_wxPGProperty_SetAttribute(lua_State *L) -{ - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetAttribute - self->SetAttribute(name, value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetAttributes[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGAttributeStorage, NULL }; -static int LUACALL wxLua_wxPGProperty_SetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetAttributes[1] = {{ wxLua_wxPGProperty_SetAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetAttributes }}; -// void SetAttributes( const wxPGAttributeStorage& attributes ); -static int LUACALL wxLua_wxPGProperty_SetAttributes(lua_State *L) -{ - // const wxPGAttributeStorage attributes - const wxPGAttributeStorage * attributes = (const wxPGAttributeStorage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGAttributeStorage); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetAttributes - self->SetAttributes(*attributes); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetAutoUnspecified[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_SetAutoUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetAutoUnspecified[1] = {{ wxLua_wxPGProperty_SetAutoUnspecified, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetAutoUnspecified }}; -// void SetAutoUnspecified( bool enable = true ); -static int LUACALL wxLua_wxPGProperty_SetAutoUnspecified(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetAutoUnspecified - self->SetAutoUnspecified(enable); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetBackgroundColour[] = { &wxluatype_wxPGProperty, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetBackgroundColour[1] = {{ wxLua_wxPGProperty_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetBackgroundColour }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPGProperty_SetBackgroundColour(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_RECURSE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetBackgroundColour - self->SetBackgroundColour(*colour, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetCell[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGProperty_SetCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetCell[1] = {{ wxLua_wxPGProperty_SetCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetCell }}; -// void SetCell( int column, const wxPGCell& cell ); -static int LUACALL wxLua_wxPGProperty_SetCell(lua_State *L) -{ - // const wxPGCell cell - const wxPGCell * cell = (const wxPGCell *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGCell); - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetCell - self->SetCell(column, *cell); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetChoiceSelection[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetChoiceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetChoiceSelection[1] = {{ wxLua_wxPGProperty_SetChoiceSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetChoiceSelection }}; -// void SetChoiceSelection( int newValue ); -static int LUACALL wxLua_wxPGProperty_SetChoiceSelection(lua_State *L) -{ - // int newValue - int newValue = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetChoiceSelection - self->SetChoiceSelection(newValue); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetChoices[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGProperty_SetChoices(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetChoices[1] = {{ wxLua_wxPGProperty_SetChoices, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetChoices }}; -// bool SetChoices( wxPGChoices& choices ); -static int LUACALL wxLua_wxPGProperty_SetChoices(lua_State *L) -{ - // wxPGChoices choices - wxPGChoices * choices = (wxPGChoices *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoices); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetChoices - bool returns = (self->SetChoices(*choices)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetClientData[] = { &wxluatype_wxPGProperty, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxPGProperty_SetClientData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetClientData[1] = {{ wxLua_wxPGProperty_SetClientData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetClientData }}; -// void SetClientData( void* clientData ); -static int LUACALL wxLua_wxPGProperty_SetClientData(lua_State *L) -{ - // void clientData - void * clientData = (void *)wxlua_touserdata(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetClientData - self->SetClientData(clientData); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetClientObject[] = { &wxluatype_wxPGProperty, &wxluatype_wxClientData, NULL }; -static int LUACALL wxLua_wxPGProperty_SetClientObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetClientObject[1] = {{ wxLua_wxPGProperty_SetClientObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetClientObject }}; -// void SetClientObject(wxClientData* clientObject); -static int LUACALL wxLua_wxPGProperty_SetClientObject(lua_State *L) -{ - // wxClientData clientObject - wxClientData * clientObject = (wxClientData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClientData); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetClientObject - self->SetClientObject(clientObject); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetCommonValue[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetCommonValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetCommonValue[1] = {{ wxLua_wxPGProperty_SetCommonValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetCommonValue }}; -// void SetCommonValue( int commonValue ); -static int LUACALL wxLua_wxPGProperty_SetCommonValue(lua_State *L) -{ - // int commonValue - int commonValue = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetCommonValue - self->SetCommonValue(commonValue); - - return 0; -} - - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetDefaultColours[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetDefaultColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetDefaultColours[1] = {{ wxLua_wxPGProperty_SetDefaultColours, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetDefaultColours }}; -// %wxchkver_3_2_0 void SetDefaultColours(int flags = wxPG_RECURSE); -static int LUACALL wxLua_wxPGProperty_SetDefaultColours(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_RECURSE); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetDefaultColours - self->SetDefaultColours(flags); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetDefaultValue[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGProperty_SetDefaultValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetDefaultValue[1] = {{ wxLua_wxPGProperty_SetDefaultValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetDefaultValue }}; -// void SetDefaultValue( wxVariant& value ); -static int LUACALL wxLua_wxPGProperty_SetDefaultValue(lua_State *L) -{ - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetDefaultValue - self->SetDefaultValue(*value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetEditor1[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_SetEditor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetEditor1[1] = {{ wxLua_wxPGProperty_SetEditor1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetEditor1 }}; -// void SetEditor( const wxString& editorName ); -static int LUACALL wxLua_wxPGProperty_SetEditor1(lua_State *L) -{ - // const wxString editorName - const wxString editorName = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetEditor - self->SetEditor(editorName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetEditor[] = { &wxluatype_wxPGProperty, &wxluatype_wxPGEditor, NULL }; -static int LUACALL wxLua_wxPGProperty_SetEditor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetEditor[1] = {{ wxLua_wxPGProperty_SetEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetEditor }}; -// void SetEditor( const wxPGEditor* editor ); -static int LUACALL wxLua_wxPGProperty_SetEditor(lua_State *L) -{ - // const wxPGEditor editor - const wxPGEditor * editor = (const wxPGEditor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGEditor); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetEditor - self->SetEditor(editor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetExpanded[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_SetExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetExpanded[1] = {{ wxLua_wxPGProperty_SetExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetExpanded }}; -// void SetExpanded( bool expanded ); -static int LUACALL wxLua_wxPGProperty_SetExpanded(lua_State *L) -{ - // bool expanded - bool expanded = wxlua_getbooleantype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetExpanded - self->SetExpanded(expanded); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetFlagRecursively[] = { &wxluatype_wxPGProperty, &wxluatype_TINTEGER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_SetFlagRecursively(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetFlagRecursively[1] = {{ wxLua_wxPGProperty_SetFlagRecursively, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetFlagRecursively }}; -// void SetFlagRecursively( wxPGPropertyFlags flag, bool set ); -static int LUACALL wxLua_wxPGProperty_SetFlagRecursively(lua_State *L) -{ - // bool set - bool set = wxlua_getbooleantype(L, 3); - // wxPGPropertyFlags flag - wxPGPropertyFlags flag = (wxPGPropertyFlags)wxlua_getenumtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetFlagRecursively - self->SetFlagRecursively(flag, set); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetFlagsFromString[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_SetFlagsFromString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetFlagsFromString[1] = {{ wxLua_wxPGProperty_SetFlagsFromString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetFlagsFromString }}; -// void SetFlagsFromString( const wxString& str ); -static int LUACALL wxLua_wxPGProperty_SetFlagsFromString(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetFlagsFromString - self->SetFlagsFromString(str); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetHelpString[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_SetHelpString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetHelpString[1] = {{ wxLua_wxPGProperty_SetHelpString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetHelpString }}; -// void SetHelpString( const wxString& helpString ); -static int LUACALL wxLua_wxPGProperty_SetHelpString(lua_State *L) -{ - // const wxString helpString - const wxString helpString = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetHelpString - self->SetHelpString(helpString); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetLabel[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetLabel[1] = {{ wxLua_wxPGProperty_SetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetLabel }}; -// void SetLabel( const wxString& label ); -static int LUACALL wxLua_wxPGProperty_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetLabel - self->SetLabel(label); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetMaxLength[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetMaxLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetMaxLength[1] = {{ wxLua_wxPGProperty_SetMaxLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetMaxLength }}; -// bool SetMaxLength( int maxLen ); -static int LUACALL wxLua_wxPGProperty_SetMaxLength(lua_State *L) -{ - // int maxLen - int maxLen = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetMaxLength - bool returns = (self->SetMaxLength(maxLen)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetModifiedStatus[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_SetModifiedStatus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetModifiedStatus[1] = {{ wxLua_wxPGProperty_SetModifiedStatus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetModifiedStatus }}; -// void SetModifiedStatus( bool modified ); -static int LUACALL wxLua_wxPGProperty_SetModifiedStatus(lua_State *L) -{ - // bool modified - bool modified = wxlua_getbooleantype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetModifiedStatus - self->SetModifiedStatus(modified); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetName[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGProperty_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetName[1] = {{ wxLua_wxPGProperty_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetName }}; -// void SetName( const wxString& newName ); -static int LUACALL wxLua_wxPGProperty_SetName(lua_State *L) -{ - // const wxString newName - const wxString newName = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetName - self->SetName(newName); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetParentalType[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetParentalType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetParentalType[1] = {{ wxLua_wxPGProperty_SetParentalType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetParentalType }}; -// void SetParentalType( int flag ); -static int LUACALL wxLua_wxPGProperty_SetParentalType(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetParentalType - self->SetParentalType(flag); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetTextColour[] = { &wxluatype_wxPGProperty, &wxluatype_wxColour, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetTextColour[1] = {{ wxLua_wxPGProperty_SetTextColour, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetTextColour }}; -// int flags = wxPG_RECURSE ); -static int LUACALL wxLua_wxPGProperty_SetTextColour(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_RECURSE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_RECURSE); - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetTextColour - self->SetTextColour(*colour, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValidator[] = { &wxluatype_wxPGProperty, &wxluatype_wxValidator, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValidator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValidator[1] = {{ wxLua_wxPGProperty_SetValidator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetValidator }}; -// void SetValidator( const wxValidator& validator ); -static int LUACALL wxLua_wxPGProperty_SetValidator(lua_State *L) -{ - // const wxValidator validator - const wxValidator * validator = (const wxValidator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxValidator); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValidator - self->SetValidator(*validator); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValue[] = { &wxluatype_wxPGProperty, &wxluatype_TANY, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValue[1] = {{ wxLua_wxPGProperty_SetValue, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxPGProperty_SetValue }}; -// int flags = wxPG_SETVAL_REFRESH_EDITOR ); -static int LUACALL wxLua_wxPGProperty_SetValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_SETVAL_REFRESH_EDITOR - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_SETVAL_REFRESH_EDITOR); - // wxVariant pList = NULL - wxVariant * pList = (argCount >= 3 ? (wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant) : NULL); - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValue - self->SetValue(value, pList, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValueFromInt[] = { &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValueFromInt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValueFromInt[1] = {{ wxLua_wxPGProperty_SetValueFromInt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetValueFromInt }}; -// bool SetValueFromInt( long value, int flags = 0 ); -static int LUACALL wxLua_wxPGProperty_SetValueFromInt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // long value - long value = (long)wxlua_getnumbertype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValueFromInt - bool returns = (self->SetValueFromInt(value, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValueFromString[] = { &wxluatype_wxPGProperty, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValueFromString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValueFromString[1] = {{ wxLua_wxPGProperty_SetValueFromString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_SetValueFromString }}; -// bool SetValueFromString( const wxString& text, int flags = wxPG_PROGRAMMATIC_VALUE ); -static int LUACALL wxLua_wxPGProperty_SetValueFromString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxPG_PROGRAMMATIC_VALUE - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_PROGRAMMATIC_VALUE); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValueFromString - bool returns = (self->SetValueFromString(text, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValueImage[] = { &wxluatype_wxPGProperty, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValueImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValueImage[1] = {{ wxLua_wxPGProperty_SetValueImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetValueImage }}; -// void SetValueImage( wxBitmap& bmp ); -static int LUACALL wxLua_wxPGProperty_SetValueImage(lua_State *L) -{ - // wxBitmap bmp - wxBitmap * bmp = (wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValueImage - self->SetValueImage(*bmp); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValueInEvent[] = { &wxluatype_wxPGProperty, &wxluatype_TANY, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValueInEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValueInEvent[1] = {{ wxLua_wxPGProperty_SetValueInEvent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetValueInEvent }}; -// void SetValueInEvent( wxVariant value ) const; -static int LUACALL wxLua_wxPGProperty_SetValueInEvent(lua_State *L) -{ - // wxVariant value - wxVariant value = wxlua_getwxVarianttype(L, 2); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValueInEvent - self->SetValueInEvent(value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetValueToUnspecified[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_SetValueToUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetValueToUnspecified[1] = {{ wxLua_wxPGProperty_SetValueToUnspecified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_SetValueToUnspecified }}; -// void SetValueToUnspecified(); -static int LUACALL wxLua_wxPGProperty_SetValueToUnspecified(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetValueToUnspecified - self->SetValueToUnspecified(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_SetWasModified[] = { &wxluatype_wxPGProperty, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxPGProperty_SetWasModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetWasModified[1] = {{ wxLua_wxPGProperty_SetWasModified, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetWasModified }}; -// void SetWasModified( bool set = true ); -static int LUACALL wxLua_wxPGProperty_SetWasModified(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool set = true - bool set = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call SetWasModified - self->SetWasModified(set); - - return 0; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_StringToValue[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_StringToValue[1] = {{ wxLua_wxPGProperty_StringToValue, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGProperty_StringToValue }}; -// virtual bool StringToValue( wxVariant& variant, const wxString& text, int argFlags = 0 ) const; -static int LUACALL wxLua_wxPGProperty_StringToValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // wxVariant variant - wxVariant * variant = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call StringToValue - bool returns = (self->StringToValue(*variant, text, argFlags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_UpdateParentValues[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_UpdateParentValues(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_UpdateParentValues[1] = {{ wxLua_wxPGProperty_UpdateParentValues, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_UpdateParentValues }}; -// %ungc wxPGProperty* UpdateParentValues(); -static int LUACALL wxLua_wxPGProperty_UpdateParentValues(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call UpdateParentValues - wxPGProperty* returns = (wxPGProperty*)self->UpdateParentValues(); - if (wxluaO_isgcobject(L, returns)) wxluaO_undeletegcobject(L, returns); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_UsesAutoUnspecified[] = { &wxluatype_wxPGProperty, NULL }; -static int LUACALL wxLua_wxPGProperty_UsesAutoUnspecified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_UsesAutoUnspecified[1] = {{ wxLua_wxPGProperty_UsesAutoUnspecified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_UsesAutoUnspecified }}; -// bool UsesAutoUnspecified() const; -static int LUACALL wxLua_wxPGProperty_UsesAutoUnspecified(lua_State *L) -{ - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call UsesAutoUnspecified - bool returns = (self->UsesAutoUnspecified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_ValidateValue[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, &wxluatype_wxPGValidationInfo, NULL }; -static int LUACALL wxLua_wxPGProperty_ValidateValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_ValidateValue[1] = {{ wxLua_wxPGProperty_ValidateValue, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_ValidateValue }}; -// virtual bool ValidateValue( wxVariant& value, wxPGValidationInfo& validationInfo ) const; -static int LUACALL wxLua_wxPGProperty_ValidateValue(lua_State *L) -{ - // wxPGValidationInfo validationInfo - wxPGValidationInfo * validationInfo = (wxPGValidationInfo *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGValidationInfo); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call ValidateValue - bool returns = (self->ValidateValue(*value, *validationInfo)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_ValueToString[] = { &wxluatype_wxPGProperty, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGProperty_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_ValueToString[1] = {{ wxLua_wxPGProperty_ValueToString, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGProperty_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const; -static int LUACALL wxLua_wxPGProperty_ValueToString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGProperty * self = (wxPGProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGProperty); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGProperty_delete[] = { &wxluatype_wxPGProperty, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGProperty_delete }}; - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetAttribute_overload[] = -{ - { wxLua_wxPGProperty_GetAttribute1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGProperty_GetAttribute1 }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { wxLua_wxPGProperty_GetAttribute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetAttribute }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxPGProperty_GetAttribute_overload_count = sizeof(s_wxluafunc_wxLua_wxPGProperty_GetAttribute_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_GetCell_overload[] = -{ - { wxLua_wxPGProperty_GetCell1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetCell1 }, - { wxLua_wxPGProperty_GetCell, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_GetCell }, -}; -static int s_wxluafunc_wxLua_wxPGProperty_GetCell_overload_count = sizeof(s_wxluafunc_wxLua_wxPGProperty_GetCell_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_HasFlag_overload[] = -{ - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGProperty_HasFlag1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_HasFlag1 }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGProperty_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_HasFlag }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPGProperty_HasFlag_overload_count = sizeof(s_wxluafunc_wxLua_wxPGProperty_HasFlag_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGProperty_SetEditor_overload[] = -{ - { wxLua_wxPGProperty_SetEditor1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetEditor1 }, - { wxLua_wxPGProperty_SetEditor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGProperty_SetEditor }, -}; -static int s_wxluafunc_wxLua_wxPGProperty_SetEditor_overload_count = sizeof(s_wxluafunc_wxLua_wxPGProperty_SetEditor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPGProperty_delete_function(void** p) -{ - wxPGProperty* o = (wxPGProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "AdaptListToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AdaptListToValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "AddChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AddChild, 1, NULL }, -#endif // (((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "AddChoice", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AddChoice, 1, NULL }, - { "AddPrivateChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AddPrivateChild, 1, NULL }, - { "AppendChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AppendChild, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "AreAllChildrenSpecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AreAllChildrenSpecified, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "AreChildrenComponents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_AreChildrenComponents, 1, NULL }, - { "ChangeFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_ChangeFlag, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "ChildChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_ChildChanged, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "DeleteChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DeleteChildren, 1, NULL }, - { "DeleteChoice", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DeleteChoice, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoGetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DoGetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "DoGetEditorClass", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DoGetEditorClass, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "DoGetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DoGetValidator, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "DoGetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DoGetValue, 1, NULL }, - { "DoSetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_DoSetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "Enable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_Enable, 1, NULL }, - { "EnableCommonValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_EnableCommonValue, 1, NULL }, - { "GenerateComposedValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GenerateComposedValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - { "GetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetAttribute_overload, s_wxluafunc_wxLua_wxPGProperty_GetAttribute_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT)) - - { "GetAttributeAsDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetAttributeAsDouble, 1, NULL }, - { "GetAttributeAsLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetAttributeAsLong, 1, NULL }, - { "GetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetAttributes, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetAttributesAsList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetAttributesAsList, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetBaseName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetBaseName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetCell_overload, s_wxluafunc_wxLua_wxPGProperty_GetCell_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetCellRenderer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetCellRenderer, 1, NULL }, - { "GetChildCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetChildCount, 1, NULL }, - { "GetChildrenHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetChildrenHeight, 1, NULL }, - { "GetChoiceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetChoiceSelection, 1, NULL }, - { "GetChoices", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetChoices, 1, NULL }, - { "GetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetClientData, 1, NULL }, - { "GetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetClientObject, 1, NULL }, - { "GetColumnEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetColumnEditor, 1, NULL }, - { "GetCommonValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetCommonValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetDefaultValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetDefaultValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetDepth, 1, NULL }, - { "GetDisplayedCommonValueCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetDisplayedCommonValueCount, 1, NULL }, - { "GetDisplayedString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetDisplayedString, 1, NULL }, - { "GetEditorClass", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetEditorClass, 1, NULL }, - { "GetEditorDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetEditorDialog, 1, NULL }, - { "GetFlagsAsString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetFlagsAsString, 1, NULL }, - { "GetGrid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetGrid, 1, NULL }, - { "GetGridIfDisplayed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetGridIfDisplayed, 1, NULL }, - { "GetHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetHelpString, 1, NULL }, - { "GetHintText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetHintText, 1, NULL }, - { "GetImageOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetImageOffset, 1, NULL }, - { "GetIndexInParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetIndexInParent, 1, NULL }, - { "GetItemAtY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetItemAtY, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetLabel, 1, NULL }, - { "GetLastVisibleSubItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetLastVisibleSubItem, 1, NULL }, - { "GetMainParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetMainParent, 1, NULL }, - { "GetMaxLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetMaxLength, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetName, 1, NULL }, - { "GetOrCreateCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetOrCreateCell, 1, NULL }, - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetParent, 1, NULL }, - { "GetPropertyByName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetPropertyByName, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "GetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetValidator, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetValueAsString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetValueAsString, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetValueImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetValueImage, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetValueString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetValueString, 1, NULL }, -#endif // ((defined(WXWIN_COMPATIBILITY_1_4) && WXWIN_COMPATIBILITY_1_4)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetValueType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetValueType, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_GetY, 1, NULL }, - -#if ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "HasFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_HasFlag_overload, s_wxluafunc_wxLua_wxPGProperty_HasFlag_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "HasFlagsExact", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_HasFlagsExact, 1, NULL }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "HasVisibleChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_HasVisibleChildren, 1, NULL }, - { "Hide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_Hide, 1, NULL }, - { "Index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_Index, 1, NULL }, - { "InsertChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_InsertChild, 1, NULL }, - { "InsertChoice", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_InsertChoice, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "IntToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IntToValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "IsCategory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsCategory, 1, NULL }, - { "IsEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsEnabled, 1, NULL }, - { "IsExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsExpanded, 1, NULL }, - { "IsRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsRoot, 1, NULL }, - { "IsSomeParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsSomeParent, 1, NULL }, - { "IsSubProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsSubProperty, 1, NULL }, - { "IsTextEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsTextEditable, 1, NULL }, - { "IsValueUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsValueUnspecified, 1, NULL }, - { "IsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_IsVisible, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_Item, 1, NULL }, - { "Last", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_Last, 1, NULL }, - { "OnEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_OnEvent, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "OnMeasureImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_OnMeasureImage, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "OnSetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_OnSetValue, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "OnValidationFailure", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_OnValidationFailure, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "RecreateEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_RecreateEditor, 1, NULL }, - { "RefreshChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_RefreshChildren, 1, NULL }, - { "RefreshEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_RefreshEditor, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetAttribute, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "SetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetAttributes, 1, NULL }, - { "SetAutoUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetAutoUnspecified, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetCell, 1, NULL }, - { "SetChoiceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetChoiceSelection, 1, NULL }, - { "SetChoices", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetChoices, 1, NULL }, - { "SetClientData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetClientData, 1, NULL }, - { "SetClientObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetClientObject, 1, NULL }, - { "SetCommonValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetCommonValue, 1, NULL }, - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetDefaultColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetDefaultColours, 1, NULL }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetDefaultValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetDefaultValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetEditor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetEditor_overload, s_wxluafunc_wxLua_wxPGProperty_SetEditor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetExpanded, 1, NULL }, - { "SetFlagRecursively", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetFlagRecursively, 1, NULL }, - { "SetFlagsFromString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetFlagsFromString, 1, NULL }, - { "SetHelpString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetHelpString, 1, NULL }, - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetLabel, 1, NULL }, - { "SetMaxLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetMaxLength, 1, NULL }, - { "SetModifiedStatus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetModifiedStatus, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetName, 1, NULL }, - { "SetParentalType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetParentalType, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "SetValidator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValidator, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "SetValueFromInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValueFromInt, 1, NULL }, - { "SetValueFromString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValueFromString, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetValueImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValueImage, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "SetValueInEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValueInEvent, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "SetValueToUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetValueToUnspecified, 1, NULL }, - { "SetWasModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_SetWasModified, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_StringToValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "UpdateParentValues", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_UpdateParentValues, 1, NULL }, - { "UsesAutoUnspecified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_UsesAutoUnspecified, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "ValidateValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_ValidateValue, 1, NULL }, - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGProperty_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGProperty_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGProperty_methodCount = sizeof(wxPGProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGCellRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGCellRenderer' -int wxluatype_wxPGCellRenderer = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellRenderer_DrawCaptionSelectionRect[] = { &wxluatype_wxPGCellRenderer, &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGCellRenderer_DrawCaptionSelectionRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellRenderer_DrawCaptionSelectionRect[1] = {{ wxLua_wxPGCellRenderer_DrawCaptionSelectionRect, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxPGCellRenderer_DrawCaptionSelectionRect }}; -// int x, int y, int w, int h) const; -static int LUACALL wxLua_wxPGCellRenderer_DrawCaptionSelectionRect(lua_State *L) -{ - // int h - int h = (int)wxlua_getnumbertype(L, 6); - // int w - int w = (int)wxlua_getnumbertype(L, 5); - // int y - int y = (int)wxlua_getnumbertype(L, 4); - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGCellRenderer * self = (wxPGCellRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellRenderer); - // call DrawCaptionSelectionRect - self->DrawCaptionSelectionRect(*dc, x, y, w, h); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellRenderer_DrawText[] = { &wxluatype_wxPGCellRenderer, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGCellRenderer_DrawText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellRenderer_DrawText[1] = {{ wxLua_wxPGCellRenderer_DrawText, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGCellRenderer_DrawText }}; -// const wxString& text ) const; -static int LUACALL wxLua_wxPGCellRenderer_DrawText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 5); - // int imageWidth - int imageWidth = (int)wxlua_getnumbertype(L, 4); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGCellRenderer * self = (wxPGCellRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellRenderer); - // call DrawText - self->DrawText(*dc, *rect, imageWidth, text); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellRenderer_GetImageSize[] = { &wxluatype_wxPGCellRenderer, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGCellRenderer_GetImageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellRenderer_GetImageSize[1] = {{ wxLua_wxPGCellRenderer_GetImageSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGCellRenderer_GetImageSize }}; -// int item ) const; -static int LUACALL wxLua_wxPGCellRenderer_GetImageSize(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 4); - // int column - int column = (int)wxlua_getnumbertype(L, 3); - // const wxPGProperty property - const wxPGProperty * property = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGCellRenderer * self = (wxPGCellRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellRenderer); - // call GetImageSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetImageSize(property, column, item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellRenderer_PostDrawCell[] = { &wxluatype_wxPGCellRenderer, &wxluatype_wxDC, &wxluatype_wxPropertyGrid, &wxluatype_wxPGCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGCellRenderer_PostDrawCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellRenderer_PostDrawCell[1] = {{ wxLua_wxPGCellRenderer_PostDrawCell, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxPGCellRenderer_PostDrawCell }}; -// int flags ) const; -static int LUACALL wxLua_wxPGCellRenderer_PostDrawCell(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 5); - // const wxPGCell cell - const wxPGCell * cell = (const wxPGCell *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPGCell); - // const wxPropertyGrid propGrid - const wxPropertyGrid * propGrid = (const wxPropertyGrid *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPropertyGrid); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGCellRenderer * self = (wxPGCellRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellRenderer); - // call PostDrawCell - self->PostDrawCell(*dc, propGrid, *cell, flags); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellRenderer_Render[] = { &wxluatype_wxPGCellRenderer, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGCellRenderer_Render(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellRenderer_Render[1] = {{ wxLua_wxPGCellRenderer_Render, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxPGCellRenderer_Render }}; -// int flags ) const = 0; -static int LUACALL wxLua_wxPGCellRenderer_Render(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 8); - // int item - int item = (int)wxlua_getnumbertype(L, 7); - // int column - int column = (int)wxlua_getnumbertype(L, 6); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPGProperty); - // const wxPropertyGrid propertyGrid - const wxPropertyGrid * propertyGrid = (const wxPropertyGrid *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPropertyGrid); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGCellRenderer * self = (wxPGCellRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellRenderer); - // call Render - bool returns = (self->Render(*dc, *rect, propertyGrid, property, column, item, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellRenderer_delete[] = { &wxluatype_wxPGCellRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGCellRenderer_delete }}; - - - - -void wxLua_wxPGCellRenderer_delete_function(void** p) -{ - wxPGCellRenderer* o = (wxPGCellRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGCellRenderer_methods[] = { -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "DrawCaptionSelectionRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellRenderer_DrawCaptionSelectionRect, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "DrawText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellRenderer_DrawText, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetImageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellRenderer_GetImageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "PostDrawCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellRenderer_PostDrawCell, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Render", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellRenderer_Render, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGCellRenderer_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGCellRenderer_methodCount = sizeof(wxPGCellRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxPGCellRenderer_enums[] = { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "ChoicePopup", wxPGCellRenderer::ChoicePopup }, - { "Control", wxPGCellRenderer::Control }, - { "Disabled", wxPGCellRenderer::Disabled }, - { "DontUseCellBgCol", wxPGCellRenderer::DontUseCellBgCol }, - { "DontUseCellColours", wxPGCellRenderer::DontUseCellColours }, - { "DontUseCellFgCol", wxPGCellRenderer::DontUseCellFgCol }, - { "Selected", wxPGCellRenderer::Selected }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - { NULL, 0, }, -}; -int wxPGCellRenderer_enumCount = sizeof(wxPGCellRenderer_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGDefaultRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGDefaultRenderer' -int wxluatype_wxPGDefaultRenderer = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGDefaultRenderer_GetImageSize[] = { &wxluatype_wxPGDefaultRenderer, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGDefaultRenderer_GetImageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGDefaultRenderer_GetImageSize[1] = {{ wxLua_wxPGDefaultRenderer_GetImageSize, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGDefaultRenderer_GetImageSize }}; -// int item ) const; -static int LUACALL wxLua_wxPGDefaultRenderer_GetImageSize(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 4); - // int column - int column = (int)wxlua_getnumbertype(L, 3); - // const wxPGProperty property - const wxPGProperty * property = (const wxPGProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGProperty); - // get this - wxPGDefaultRenderer * self = (wxPGDefaultRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGDefaultRenderer); - // call GetImageSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetImageSize(property, column, item)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGDefaultRenderer_Render[] = { &wxluatype_wxPGDefaultRenderer, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxPropertyGrid, &wxluatype_wxPGProperty, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGDefaultRenderer_Render(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGDefaultRenderer_Render[1] = {{ wxLua_wxPGDefaultRenderer_Render, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxPGDefaultRenderer_Render }}; -// int flags ) const; -static int LUACALL wxLua_wxPGDefaultRenderer_Render(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 8); - // int item - int item = (int)wxlua_getnumbertype(L, 7); - // int column - int column = (int)wxlua_getnumbertype(L, 6); - // wxPGProperty property - wxPGProperty * property = (wxPGProperty *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPGProperty); - // const wxPropertyGrid propertyGrid - const wxPropertyGrid * propertyGrid = (const wxPropertyGrid *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPropertyGrid); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxPGDefaultRenderer * self = (wxPGDefaultRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGDefaultRenderer); - // call Render - bool returns = (self->Render(*dc, *rect, propertyGrid, property, column, item, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGDefaultRenderer_delete[] = { &wxluatype_wxPGDefaultRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGDefaultRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGDefaultRenderer_delete }}; - - - - -void wxLua_wxPGDefaultRenderer_delete_function(void** p) -{ - wxPGDefaultRenderer* o = (wxPGDefaultRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGDefaultRenderer_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetImageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGDefaultRenderer_GetImageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Render", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGDefaultRenderer_Render, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGDefaultRenderer_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGDefaultRenderer_methodCount = sizeof(wxPGDefaultRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGCellData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGCellData' -int wxluatype_wxPGCellData = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellData_SetBgCol[] = { &wxluatype_wxPGCellData, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPGCellData_SetBgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellData_SetBgCol[1] = {{ wxLua_wxPGCellData_SetBgCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCellData_SetBgCol }}; -// void SetBgCol( const wxColour& col ); -static int LUACALL wxLua_wxPGCellData_SetBgCol(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPGCellData * self = (wxPGCellData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellData); - // call SetBgCol - self->SetBgCol(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellData_SetBitmap[] = { &wxluatype_wxPGCellData, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPGCellData_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellData_SetBitmap[1] = {{ wxLua_wxPGCellData_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCellData_SetBitmap }}; -// void SetBitmap( const wxBitmap& bitmap ); -static int LUACALL wxLua_wxPGCellData_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxPGCellData * self = (wxPGCellData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellData); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellData_SetFgCol[] = { &wxluatype_wxPGCellData, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPGCellData_SetFgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellData_SetFgCol[1] = {{ wxLua_wxPGCellData_SetFgCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCellData_SetFgCol }}; -// void SetFgCol( const wxColour& col ); -static int LUACALL wxLua_wxPGCellData_SetFgCol(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPGCellData * self = (wxPGCellData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellData); - // call SetFgCol - self->SetFgCol(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellData_SetFont[] = { &wxluatype_wxPGCellData, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxPGCellData_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellData_SetFont[1] = {{ wxLua_wxPGCellData_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCellData_SetFont }}; -// void SetFont( const wxFont& font ); -static int LUACALL wxLua_wxPGCellData_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxPGCellData * self = (wxPGCellData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellData); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCellData_SetText[] = { &wxluatype_wxPGCellData, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGCellData_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellData_SetText[1] = {{ wxLua_wxPGCellData_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCellData_SetText }}; -// void SetText( const wxString& text ); -static int LUACALL wxLua_wxPGCellData_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxPGCellData * self = (wxPGCellData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCellData); - // call SetText - self->SetText(text); - - return 0; -} - -static int LUACALL wxLua_wxPGCellData_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCellData_constructor[1] = {{ wxLua_wxPGCellData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGCellData(); -static int LUACALL wxLua_wxPGCellData_constructor(lua_State *L) -{ - // call constructor - wxPGCellData* returns = new wxPGCellData(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCellData); - - return 1; -} - - - - -// %override wxLua_wxPGCellData_delete_function -// delete is private in wxPGCellData -void wxLua_wxPGCellData_delete_function(void** p) -{ -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGCellData_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetBgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellData_SetBgCol, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellData_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetFgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellData_SetFgCol, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellData_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCellData_SetText, 1, NULL }, - { "wxPGCellData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGCellData_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGCellData_methodCount = sizeof(wxPGCellData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGCell' -int wxluatype_wxPGCell = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetBgCol[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetBgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetBgCol[1] = {{ wxLua_wxPGCell_GetBgCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetBgCol }}; -// const wxColour& GetBgCol() const; -static int LUACALL wxLua_wxPGCell_GetBgCol(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetBgCol - const wxColour* returns = (const wxColour*)&self->GetBgCol(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetBitmap[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetBitmap[1] = {{ wxLua_wxPGCell_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetBitmap }}; -// const wxBitmap& GetBitmap() const; -static int LUACALL wxLua_wxPGCell_GetBitmap(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetBitmap - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetData1[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetData1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetData1[1] = {{ wxLua_wxPGCell_GetData1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetData1 }}; -// const wxPGCellData* GetData() const; -static int LUACALL wxLua_wxPGCell_GetData1(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetData - const wxPGCellData* returns = (const wxPGCellData*)self->GetData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCellData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetData[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetData(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetData[1] = {{ wxLua_wxPGCell_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetData }}; -// wxPGCellData* GetData(); -static int LUACALL wxLua_wxPGCell_GetData(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetData - wxPGCellData* returns = (wxPGCellData*)self->GetData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCellData); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetFgCol[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetFgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetFgCol[1] = {{ wxLua_wxPGCell_GetFgCol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetFgCol }}; -// const wxColour& GetFgCol() const; -static int LUACALL wxLua_wxPGCell_GetFgCol(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetFgCol - const wxColour* returns = (const wxColour*)&self->GetFgCol(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetFont[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetFont[1] = {{ wxLua_wxPGCell_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetFont }}; -// const wxFont& GetFont() const; -static int LUACALL wxLua_wxPGCell_GetFont(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetFont - const wxFont* returns = (const wxFont*)&self->GetFont(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_GetText[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetText[1] = {{ wxLua_wxPGCell_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetText }}; -// const wxString& GetText() const; -static int LUACALL wxLua_wxPGCell_GetText(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_HasText[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_HasText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_HasText[1] = {{ wxLua_wxPGCell_HasText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_HasText }}; -// bool HasText() const; -static int LUACALL wxLua_wxPGCell_HasText(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call HasText - bool returns = (self->HasText()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_MergeFrom[] = { &wxluatype_wxPGCell, &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_MergeFrom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_MergeFrom[1] = {{ wxLua_wxPGCell_MergeFrom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_MergeFrom }}; -// void MergeFrom( const wxPGCell& srcCell ); -static int LUACALL wxLua_wxPGCell_MergeFrom(lua_State *L) -{ - // const wxPGCell srcCell - const wxPGCell * srcCell = (const wxPGCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGCell); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call MergeFrom - self->MergeFrom(*srcCell); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_SetBgCol[] = { &wxluatype_wxPGCell, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPGCell_SetBgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_SetBgCol[1] = {{ wxLua_wxPGCell_SetBgCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_SetBgCol }}; -// void SetBgCol( const wxColour& col ); -static int LUACALL wxLua_wxPGCell_SetBgCol(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call SetBgCol - self->SetBgCol(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_SetBitmap[] = { &wxluatype_wxPGCell, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxPGCell_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_SetBitmap[1] = {{ wxLua_wxPGCell_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_SetBitmap }}; -// void SetBitmap( const wxBitmap& bitmap ); -static int LUACALL wxLua_wxPGCell_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_SetEmptyData[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_SetEmptyData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_SetEmptyData[1] = {{ wxLua_wxPGCell_SetEmptyData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_SetEmptyData }}; -// void SetEmptyData(); -static int LUACALL wxLua_wxPGCell_SetEmptyData(lua_State *L) -{ - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call SetEmptyData - self->SetEmptyData(); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_SetFgCol[] = { &wxluatype_wxPGCell, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPGCell_SetFgCol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_SetFgCol[1] = {{ wxLua_wxPGCell_SetFgCol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_SetFgCol }}; -// void SetFgCol( const wxColour& col ); -static int LUACALL wxLua_wxPGCell_SetFgCol(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call SetFgCol - self->SetFgCol(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_SetFont[] = { &wxluatype_wxPGCell, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxPGCell_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_SetFont[1] = {{ wxLua_wxPGCell_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_SetFont }}; -// void SetFont( const wxFont& font ); -static int LUACALL wxLua_wxPGCell_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_SetText[] = { &wxluatype_wxPGCell, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGCell_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_SetText[1] = {{ wxLua_wxPGCell_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_SetText }}; -// void SetText( const wxString& text ); -static int LUACALL wxLua_wxPGCell_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call SetText - self->SetText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_delete[] = { &wxluatype_wxPGCell, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_op_set[] = { &wxluatype_wxPGCell, &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_op_set[1] = {{ wxLua_wxPGCell_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGCell_op_set }}; -// wxPGCell& operator=( const wxPGCell& other ); -static int LUACALL wxLua_wxPGCell_op_set(lua_State *L) -{ - // const wxPGCell other - const wxPGCell * other = (const wxPGCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGCell); - // get this - wxPGCell * self = (wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call op_set - (*self)=(*other); - wxPGCell* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_constructor2[] = { &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxPGCell_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_constructor2[1] = {{ wxLua_wxPGCell_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxPGCell_constructor2 }}; -// const wxColour& bgCol = wxNullColour ); -static int LUACALL wxLua_wxPGCell_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour bgCol = wxNullColour - const wxColour * bgCol = (argCount >= 4 ? (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour) : &wxNullColour); - // const wxColour fgCol = wxNullColour - const wxColour * fgCol = (argCount >= 3 ? (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour) : &wxNullColour); - // const wxBitmap bitmap = wxNullBitmap - const wxBitmap * bitmap = (argCount >= 2 ? (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap) : &wxNullBitmap); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 1); - // call constructor - wxPGCell* returns = new wxPGCell(text, *bitmap, *fgCol, *bgCol); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGCell); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGCell_constructor1[] = { &wxluatype_wxPGCell, NULL }; -static int LUACALL wxLua_wxPGCell_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_constructor1[1] = {{ wxLua_wxPGCell_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_constructor1 }}; -// wxPGCell(const wxPGCell& other); -static int LUACALL wxLua_wxPGCell_constructor1(lua_State *L) -{ - // const wxPGCell other - const wxPGCell * other = (const wxPGCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGCell); - // call constructor - wxPGCell* returns = new wxPGCell(*other); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGCell); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - -static int LUACALL wxLua_wxPGCell_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_constructor[1] = {{ wxLua_wxPGCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGCell(); -static int LUACALL wxLua_wxPGCell_constructor(lua_State *L) -{ - // call constructor - wxPGCell* returns = new wxPGCell(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGCell); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGCell); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_GetData_overload[] = -{ - { wxLua_wxPGCell_GetData1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetData1 }, - { wxLua_wxPGCell_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_GetData }, -}; -static int s_wxluafunc_wxLua_wxPGCell_GetData_overload_count = sizeof(s_wxluafunc_wxLua_wxPGCell_GetData_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGCell_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGCell_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxPGCell_constructor2 }, -#endif // ((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGCell_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGCell_constructor1 }, - { wxLua_wxPGCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPGCell_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPGCell_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPGCell_delete_function(void** p) -{ - wxPGCell* o = (wxPGCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGCell_methods[] = { -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetBgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_GetBgCol, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_GetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_GetData_overload, s_wxluafunc_wxLua_wxPGCell_GetData_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetFgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_GetFgCol, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_GetText, 1, NULL }, - { "HasText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_HasText, 1, NULL }, - { "MergeFrom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_MergeFrom, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetBgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_SetBgCol, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetEmptyData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_SetEmptyData, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetFgCol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_SetFgCol, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_SetText, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGCell_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGCell_op_set, 1, NULL }, - -#if (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPGCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGCell_constructor_overload, s_wxluafunc_wxLua_wxPGCell_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGCell_methodCount = sizeof(wxPGCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGAttributeStorage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGAttributeStorage' -int wxluatype_wxPGAttributeStorage = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGAttributeStorage_FindValue[] = { &wxluatype_wxPGAttributeStorage, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGAttributeStorage_FindValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGAttributeStorage_FindValue[1] = {{ wxLua_wxPGAttributeStorage_FindValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGAttributeStorage_FindValue }}; -// wxVariant FindValue( const wxString& name ) const; -static int LUACALL wxLua_wxPGAttributeStorage_FindValue(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGAttributeStorage * self = (wxPGAttributeStorage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGAttributeStorage); - // call FindValue - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->FindValue(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGAttributeStorage_GetCount[] = { &wxluatype_wxPGAttributeStorage, NULL }; -static int LUACALL wxLua_wxPGAttributeStorage_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGAttributeStorage_GetCount[1] = {{ wxLua_wxPGAttributeStorage_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGAttributeStorage_GetCount }}; -// unsigned int GetCount() const; -static int LUACALL wxLua_wxPGAttributeStorage_GetCount(lua_State *L) -{ - // get this - wxPGAttributeStorage * self = (wxPGAttributeStorage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGAttributeStorage); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGAttributeStorage_Set[] = { &wxluatype_wxPGAttributeStorage, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxPGAttributeStorage_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGAttributeStorage_Set[1] = {{ wxLua_wxPGAttributeStorage_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGAttributeStorage_Set }}; -// void Set( const wxString& name, const wxVariant& value ); -static int LUACALL wxLua_wxPGAttributeStorage_Set(lua_State *L) -{ - // const wxVariant value - const wxVariant * value = (const wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxPGAttributeStorage * self = (wxPGAttributeStorage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGAttributeStorage); - // call Set - self->Set(name, *value); - - return 0; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static int LUACALL wxLua_wxPGAttributeStorage_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGAttributeStorage_constructor[1] = {{ wxLua_wxPGAttributeStorage_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGAttributeStorage(); -static int LUACALL wxLua_wxPGAttributeStorage_constructor(lua_State *L) -{ - // call constructor - wxPGAttributeStorage* returns = new wxPGAttributeStorage(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGAttributeStorage); - - return 1; -} - - - - -void wxLua_wxPGAttributeStorage_delete_function(void** p) -{ - wxPGAttributeStorage* o = (wxPGAttributeStorage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGAttributeStorage_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "FindValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGAttributeStorage_FindValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGAttributeStorage_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGAttributeStorage_Set, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "wxPGAttributeStorage", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGAttributeStorage_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGAttributeStorage_methodCount = sizeof(wxPGAttributeStorage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGChoiceEntry -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGChoiceEntry' -int wxluatype_wxPGChoiceEntry = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEntry_GetValue[] = { &wxluatype_wxPGChoiceEntry, NULL }; -static int LUACALL wxLua_wxPGChoiceEntry_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_GetValue[1] = {{ wxLua_wxPGChoiceEntry_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceEntry_GetValue }}; -// int GetValue() const; -static int LUACALL wxLua_wxPGChoiceEntry_GetValue(lua_State *L) -{ - // get this - wxPGChoiceEntry * self = (wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEntry); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEntry_SetValue[] = { &wxluatype_wxPGChoiceEntry, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoiceEntry_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_SetValue[1] = {{ wxLua_wxPGChoiceEntry_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoiceEntry_SetValue }}; -// void SetValue( int value ); -static int LUACALL wxLua_wxPGChoiceEntry_SetValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGChoiceEntry * self = (wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEntry); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEntry_op_set[] = { &wxluatype_wxPGChoiceEntry, &wxluatype_wxPGChoiceEntry, NULL }; -static int LUACALL wxLua_wxPGChoiceEntry_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_op_set[1] = {{ wxLua_wxPGChoiceEntry_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoiceEntry_op_set }}; -// wxPGChoiceEntry& operator=( const wxPGChoiceEntry& other ); -static int LUACALL wxLua_wxPGChoiceEntry_op_set(lua_State *L) -{ - // const wxPGChoiceEntry other - const wxPGChoiceEntry * other = (const wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoiceEntry); - // get this - wxPGChoiceEntry * self = (wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEntry); - // call op_set - (*self)=(*other); - wxPGChoiceEntry* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEntry_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoiceEntry_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_constructor2[1] = {{ wxLua_wxPGChoiceEntry_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPGChoiceEntry_constructor2 }}; -// int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGChoiceEntry_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxPG_INVALID_VALUE); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxPGChoiceEntry* returns = new wxPGChoiceEntry(label, value); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoiceEntry_constructor1[] = { &wxluatype_wxPGChoiceEntry, NULL }; -static int LUACALL wxLua_wxPGChoiceEntry_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_constructor1[1] = {{ wxLua_wxPGChoiceEntry_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceEntry_constructor1 }}; -// wxPGChoiceEntry(const wxPGChoiceEntry& other); -static int LUACALL wxLua_wxPGChoiceEntry_constructor1(lua_State *L) -{ - // const wxPGChoiceEntry other - const wxPGChoiceEntry * other = (const wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoiceEntry); - // call constructor - wxPGChoiceEntry* returns = new wxPGChoiceEntry(*other); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static int LUACALL wxLua_wxPGChoiceEntry_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_constructor[1] = {{ wxLua_wxPGChoiceEntry_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGChoiceEntry(); -static int LUACALL wxLua_wxPGChoiceEntry_constructor(lua_State *L) -{ - // call constructor - wxPGChoiceEntry* returns = new wxPGChoiceEntry(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoiceEntry_constructor_overload[] = -{ - { wxLua_wxPGChoiceEntry_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPGChoiceEntry_constructor2 }, - { wxLua_wxPGChoiceEntry_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGChoiceEntry_constructor1 }, - { wxLua_wxPGChoiceEntry_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPGChoiceEntry_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoiceEntry_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPGChoiceEntry_delete_function(void** p) -{ - wxPGChoiceEntry* o = (wxPGChoiceEntry*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGChoiceEntry_methods[] = { - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEntry_GetValue, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEntry_SetValue, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoiceEntry_op_set, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPGChoiceEntry", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGChoiceEntry_constructor_overload, s_wxluafunc_wxLua_wxPGChoiceEntry_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPGChoiceEntry_methodCount = sizeof(wxPGChoiceEntry_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGChoicesData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGChoicesData' -int wxluatype_wxPGChoicesData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoicesData_Clear[] = { &wxluatype_wxPGChoicesData, NULL }; -static int LUACALL wxLua_wxPGChoicesData_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_Clear[1] = {{ wxLua_wxPGChoicesData_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoicesData_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxPGChoicesData_Clear(lua_State *L) -{ - // get this - wxPGChoicesData * self = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoicesData_CopyDataFrom[] = { &wxluatype_wxPGChoicesData, &wxluatype_wxPGChoicesData, NULL }; -static int LUACALL wxLua_wxPGChoicesData_CopyDataFrom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_CopyDataFrom[1] = {{ wxLua_wxPGChoicesData_CopyDataFrom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoicesData_CopyDataFrom }}; -// void CopyDataFrom( wxPGChoicesData* data ); -static int LUACALL wxLua_wxPGChoicesData_CopyDataFrom(lua_State *L) -{ - // wxPGChoicesData data - wxPGChoicesData * data = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoicesData); - // get this - wxPGChoicesData * self = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - // call CopyDataFrom - self->CopyDataFrom(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoicesData_GetCount[] = { &wxluatype_wxPGChoicesData, NULL }; -static int LUACALL wxLua_wxPGChoicesData_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_GetCount[1] = {{ wxLua_wxPGChoicesData_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoicesData_GetCount }}; -// unsigned int GetCount() const; -static int LUACALL wxLua_wxPGChoicesData_GetCount(lua_State *L) -{ - // get this - wxPGChoicesData * self = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoicesData_Insert[] = { &wxluatype_wxPGChoicesData, &wxluatype_TNUMBER, &wxluatype_wxPGChoiceEntry, NULL }; -static int LUACALL wxLua_wxPGChoicesData_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_Insert[1] = {{ wxLua_wxPGChoicesData_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoicesData_Insert }}; -// wxPGChoiceEntry& Insert( int index, const wxPGChoiceEntry& item ); -static int LUACALL wxLua_wxPGChoicesData_Insert(lua_State *L) -{ - // const wxPGChoiceEntry item - const wxPGChoiceEntry * item = (const wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPGChoiceEntry); - // int index - int index = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGChoicesData * self = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - // call Insert - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Insert(index, *item); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoicesData_Item1[] = { &wxluatype_wxPGChoicesData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoicesData_Item1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_Item1[1] = {{ wxLua_wxPGChoicesData_Item1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoicesData_Item1 }}; -// wxPGChoiceEntry& Item( unsigned int i ); -static int LUACALL wxLua_wxPGChoicesData_Item1(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoicesData * self = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - // call Item - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Item(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoicesData_Item[] = { &wxluatype_wxPGChoicesData, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoicesData_Item(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_Item[1] = {{ wxLua_wxPGChoicesData_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoicesData_Item }}; -// const wxPGChoiceEntry& Item( unsigned int i ) const; -static int LUACALL wxLua_wxPGChoicesData_Item(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoicesData * self = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - // call Item - const wxPGChoiceEntry* returns = (const wxPGChoiceEntry*)&self->Item(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static int LUACALL wxLua_wxPGChoicesData_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_constructor[1] = {{ wxLua_wxPGChoicesData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGChoicesData(); -static int LUACALL wxLua_wxPGChoicesData_constructor(lua_State *L) -{ - // call constructor - wxPGChoicesData* returns = new wxPGChoicesData(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoicesData); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoicesData_Item_overload[] = -{ - { wxLua_wxPGChoicesData_Item1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoicesData_Item1 }, - { wxLua_wxPGChoicesData_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoicesData_Item }, -}; -static int s_wxluafunc_wxLua_wxPGChoicesData_Item_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoicesData_Item_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -// %override wxLua_wxPGChoicesData_delete_function -// delete is private in wxPGChoicesData -void wxLua_wxPGChoicesData_delete_function(void** p) -{ -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGChoicesData_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoicesData_Clear, 1, NULL }, - { "CopyDataFrom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoicesData_CopyDataFrom, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoicesData_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoicesData_Insert, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoicesData_Item_overload, s_wxluafunc_wxLua_wxPGChoicesData_Item_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "wxPGChoicesData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGChoicesData_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGChoicesData_methodCount = sizeof(wxPGChoicesData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGChoices -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGChoices' -int wxluatype_wxPGChoices = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Add3[] = { &wxluatype_wxPGChoices, &wxluatype_wxPGChoiceEntry, NULL }; -static int LUACALL wxLua_wxPGChoices_Add3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Add3[1] = {{ wxLua_wxPGChoices_Add3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Add3 }}; -// wxPGChoiceEntry& Add( const wxPGChoiceEntry& entry ); -static int LUACALL wxLua_wxPGChoices_Add3(lua_State *L) -{ - // const wxPGChoiceEntry entry - const wxPGChoiceEntry * entry = (const wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoiceEntry); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Add - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Add(*entry); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Add2[] = { &wxluatype_wxPGChoices, &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoices_Add2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Add2[1] = {{ wxLua_wxPGChoices_Add2, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGChoices_Add2 }}; -// int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGChoices_Add2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_INVALID_VALUE); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Add - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Add(label, *bitmap, value); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Add1[] = { &wxluatype_wxPGChoices, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoices_Add1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Add1[1] = {{ wxLua_wxPGChoices_Add1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGChoices_Add1 }}; -// wxPGChoiceEntry& Add( const wxString& label, int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGChoices_Add1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_INVALID_VALUE); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Add - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Add(label, value); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Add[] = { &wxluatype_wxPGChoices, &wxluatype_wxArrayString, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxPGChoices_Add(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Add[1] = {{ wxLua_wxPGChoices_Add, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoices_Add }}; -// void Add( const wxArrayString& arr, const wxArrayInt& arrint ); -static int LUACALL wxLua_wxPGChoices_Add(lua_State *L) -{ - // const wxArrayInt arrint - wxLuaSmartwxArrayInt arrint = wxlua_getwxArrayInt(L, 3); - // const wxArrayString arr - wxLuaSmartwxArrayString arr = wxlua_getwxArrayString(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Add - self->Add(arr, arrint); - - return 0; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_AddAsSorted[] = { &wxluatype_wxPGChoices, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoices_AddAsSorted(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_AddAsSorted[1] = {{ wxLua_wxPGChoices_AddAsSorted, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGChoices_AddAsSorted }}; -// wxPGChoiceEntry& AddAsSorted( const wxString& label, int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGChoices_AddAsSorted(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxPG_INVALID_VALUE); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call AddAsSorted - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->AddAsSorted(label, value); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_AllocExclusive[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_AllocExclusive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_AllocExclusive[1] = {{ wxLua_wxPGChoices_AllocExclusive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_AllocExclusive }}; -// void AllocExclusive(); -static int LUACALL wxLua_wxPGChoices_AllocExclusive(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call AllocExclusive - self->AllocExclusive(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Assign[] = { &wxluatype_wxPGChoices, &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_Assign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Assign[1] = {{ wxLua_wxPGChoices_Assign, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Assign }}; -// void Assign( const wxPGChoices& a ); -static int LUACALL wxLua_wxPGChoices_Assign(lua_State *L) -{ - // const wxPGChoices a - const wxPGChoices * a = (const wxPGChoices *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoices); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Assign - self->Assign(*a); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_AssignData[] = { &wxluatype_wxPGChoices, &wxluatype_wxPGChoicesData, NULL }; -static int LUACALL wxLua_wxPGChoices_AssignData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_AssignData[1] = {{ wxLua_wxPGChoices_AssignData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_AssignData }}; -// void AssignData( wxPGChoicesData* data ); -static int LUACALL wxLua_wxPGChoices_AssignData(lua_State *L) -{ - // wxPGChoicesData data - wxPGChoicesData * data = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoicesData); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call AssignData - self->AssignData(data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Clear[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Clear[1] = {{ wxLua_wxPGChoices_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxPGChoices_Clear(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Copy[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Copy[1] = {{ wxLua_wxPGChoices_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_Copy }}; -// wxPGChoices Copy() const; -static int LUACALL wxLua_wxPGChoices_Copy(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Copy - // allocate a new object using the copy constructor - wxPGChoices* returns = new wxPGChoices(self->Copy()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoices); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoices); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_EnsureData[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_EnsureData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_EnsureData[1] = {{ wxLua_wxPGChoices_EnsureData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_EnsureData }}; -// void EnsureData(); -static int LUACALL wxLua_wxPGChoices_EnsureData(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call EnsureData - self->EnsureData(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_ExtractData[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_ExtractData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_ExtractData[1] = {{ wxLua_wxPGChoices_ExtractData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_ExtractData }}; -// wxPGChoicesData* ExtractData(); -static int LUACALL wxLua_wxPGChoices_ExtractData(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call ExtractData - wxPGChoicesData* returns = (wxPGChoicesData*)self->ExtractData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoicesData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetCount[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetCount[1] = {{ wxLua_wxPGChoices_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_GetCount }}; -// unsigned int GetCount() const; -static int LUACALL wxLua_wxPGChoices_GetCount(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetCount - unsigned int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetData[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetData[1] = {{ wxLua_wxPGChoices_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_GetData }}; -// wxPGChoicesData* GetData(); -static int LUACALL wxLua_wxPGChoices_GetData(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetData - wxPGChoicesData* returns = (wxPGChoicesData*)self->GetData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoicesData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetDataPtr[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_GetDataPtr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetDataPtr[1] = {{ wxLua_wxPGChoices_GetDataPtr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_GetDataPtr }}; -// wxPGChoicesData* GetDataPtr() const; -static int LUACALL wxLua_wxPGChoices_GetDataPtr(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetDataPtr - wxPGChoicesData* returns = (wxPGChoicesData*)self->GetDataPtr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoicesData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetId[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_GetId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetId[1] = {{ wxLua_wxPGChoices_GetId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_GetId }}; -// void* GetId() const; -static int LUACALL wxLua_wxPGChoices_GetId(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetId - void* returns = (void*)self->GetId(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetIndicesForStrings[] = { &wxluatype_wxPGChoices, &wxluatype_wxArrayString, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPGChoices_GetIndicesForStrings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetIndicesForStrings[1] = {{ wxLua_wxPGChoices_GetIndicesForStrings, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGChoices_GetIndicesForStrings }}; -// wxArrayString* unmatched = NULL ) const; -static int LUACALL wxLua_wxPGChoices_GetIndicesForStrings(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayString unmatched = NULL - wxArrayString * unmatched = (argCount >= 3 ? (wxArrayString *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayString) : NULL); - // const wxArrayString strings - wxLuaSmartwxArrayString strings = wxlua_getwxArrayString(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetIndicesForStrings - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetIndicesForStrings(strings, unmatched)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetLabel[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetLabel[1] = {{ wxLua_wxPGChoices_GetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_GetLabel }}; -// const wxString& GetLabel( unsigned int ind ) const; -static int LUACALL wxLua_wxPGChoices_GetLabel(lua_State *L) -{ - // unsigned int ind - unsigned int ind = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetLabel - wxString returns = (self->GetLabel(ind)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetLabels[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_GetLabels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetLabels[1] = {{ wxLua_wxPGChoices_GetLabels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_GetLabels }}; -// wxArrayString GetLabels() const; -static int LUACALL wxLua_wxPGChoices_GetLabels(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetLabels - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetLabels()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetValue[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetValue[1] = {{ wxLua_wxPGChoices_GetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_GetValue }}; -// int GetValue( unsigned int ind ) const; -static int LUACALL wxLua_wxPGChoices_GetValue(lua_State *L) -{ - // unsigned int ind - unsigned int ind = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetValue - int returns = (self->GetValue(ind)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_GetValuesForStrings[] = { &wxluatype_wxPGChoices, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxPGChoices_GetValuesForStrings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_GetValuesForStrings[1] = {{ wxLua_wxPGChoices_GetValuesForStrings, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_GetValuesForStrings }}; -// wxArrayInt GetValuesForStrings( const wxArrayString& strings ) const; -static int LUACALL wxLua_wxPGChoices_GetValuesForStrings(lua_State *L) -{ - // const wxArrayString strings - wxLuaSmartwxArrayString strings = wxlua_getwxArrayString(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call GetValuesForStrings - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetValuesForStrings(strings)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Index1[] = { &wxluatype_wxPGChoices, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoices_Index1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Index1[1] = {{ wxLua_wxPGChoices_Index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Index1 }}; -// int Index( int val ) const; -static int LUACALL wxLua_wxPGChoices_Index1(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Index - int returns = (self->Index(val)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Index[] = { &wxluatype_wxPGChoices, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGChoices_Index(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Index[1] = {{ wxLua_wxPGChoices_Index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Index }}; -// int Index( const wxString& label ) const; -static int LUACALL wxLua_wxPGChoices_Index(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Index - int returns = (self->Index(label)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Insert1[] = { &wxluatype_wxPGChoices, &wxluatype_wxPGChoiceEntry, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoices_Insert1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Insert1[1] = {{ wxLua_wxPGChoices_Insert1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoices_Insert1 }}; -// wxPGChoiceEntry& Insert( const wxPGChoiceEntry& entry, int index ); -static int LUACALL wxLua_wxPGChoices_Insert1(lua_State *L) -{ - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxPGChoiceEntry entry - const wxPGChoiceEntry * entry = (const wxPGChoiceEntry *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoiceEntry); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Insert - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Insert(*entry, index); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Insert[] = { &wxluatype_wxPGChoices, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGChoices_Insert(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Insert[1] = {{ wxLua_wxPGChoices_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGChoices_Insert }}; -// wxPGChoiceEntry& Insert( const wxString& label, int index, int value = wxPG_INVALID_VALUE ); -static int LUACALL wxLua_wxPGChoices_Insert(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value = wxPG_INVALID_VALUE - int value = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxPG_INVALID_VALUE); - // int index - int index = (int)wxlua_getnumbertype(L, 3); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Insert - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Insert(label, index, value); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_IsOk[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_IsOk[1] = {{ wxLua_wxPGChoices_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxPGChoices_IsOk(lua_State *L) -{ - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Item1[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_Item1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Item1[1] = {{ wxLua_wxPGChoices_Item1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Item1 }}; -// wxPGChoiceEntry& Item( unsigned int i ); -static int LUACALL wxLua_wxPGChoices_Item1(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Item - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&self->Item(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Item[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_Item(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Item[1] = {{ wxLua_wxPGChoices_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Item }}; -// const wxPGChoiceEntry& Item( unsigned int i ) const; -static int LUACALL wxLua_wxPGChoices_Item(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Item - const wxPGChoiceEntry* returns = (const wxPGChoiceEntry*)&self->Item(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_RemoveAt[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_RemoveAt[1] = {{ wxLua_wxPGChoices_RemoveAt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGChoices_RemoveAt }}; -// void RemoveAt(size_t nIndex, size_t count = 1); -static int LUACALL wxLua_wxPGChoices_RemoveAt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // size_t count = 1 - size_t count = (argCount >= 3 ? (size_t)wxlua_getuintegertype(L, 3) : 1); - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call RemoveAt - self->RemoveAt(nIndex, count); - - return 0; -} - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_Set[] = { &wxluatype_wxPGChoices, &wxluatype_wxArrayString, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxPGChoices_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Set[1] = {{ wxLua_wxPGChoices_Set, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGChoices_Set }}; -// void Set( const wxArrayString& labels, const wxArrayInt& values = wxLuaSmartwxArrayInt() ); -static int LUACALL wxLua_wxPGChoices_Set(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxArrayInt values = wxLuaSmartwxArrayInt() - wxLuaSmartwxArrayInt values = (argCount >= 3 ? wxlua_getwxArrayInt(L, 3) : wxLuaSmartwxArrayInt()); - // const wxArrayString labels - wxLuaSmartwxArrayString labels = wxlua_getwxArrayString(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call Set - self->Set(labels, values); - - return 0; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_delete[] = { &wxluatype_wxPGChoices, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_op_index1[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_op_index1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_op_index1[1] = {{ wxLua_wxPGChoices_op_index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_op_index1 }}; -// const wxPGChoiceEntry& operator[](unsigned int i) const; -static int LUACALL wxLua_wxPGChoices_op_index1(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call op_index - const wxPGChoiceEntry* returns = (const wxPGChoiceEntry*)&((*self)[(i)]); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_op_index[] = { &wxluatype_wxPGChoices, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxPGChoices_op_index(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_op_index[1] = {{ wxLua_wxPGChoices_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_op_index }}; -// wxPGChoiceEntry& operator[](unsigned int i); -static int LUACALL wxLua_wxPGChoices_op_index(lua_State *L) -{ - // unsigned int i - unsigned int i = (unsigned int)wxlua_getuintegertype(L, 2); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call op_index - wxPGChoiceEntry* returns = (wxPGChoiceEntry*)&((*self)[(i)]); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoiceEntry); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_op_set[] = { &wxluatype_wxPGChoices, &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_op_set[1] = {{ wxLua_wxPGChoices_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_op_set }}; -// void operator= (const wxPGChoices& a); -static int LUACALL wxLua_wxPGChoices_op_set(lua_State *L) -{ - // const wxPGChoices a - const wxPGChoices * a = (const wxPGChoices *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPGChoices); - // get this - wxPGChoices * self = (wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call op_set - (*self)=(*a); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_constructor3[] = { &wxluatype_wxPGChoicesData, NULL }; -static int LUACALL wxLua_wxPGChoices_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_constructor3[1] = {{ wxLua_wxPGChoices_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_constructor3 }}; -// wxPGChoices( %ungc wxPGChoicesData* data ); -static int LUACALL wxLua_wxPGChoices_constructor3(lua_State *L) -{ - // wxPGChoicesData data - wxPGChoicesData * data = (wxPGChoicesData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoicesData); - if (wxluaO_isgcobject(L, data)) wxluaO_undeletegcobject(L, data); - // call constructor - wxPGChoices* returns = new wxPGChoices(data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoices); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoices); - - return 1; -} - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_constructor2[] = { &wxluatype_wxArrayString, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxPGChoices_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_constructor2[1] = {{ wxLua_wxPGChoices_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPGChoices_constructor2 }}; -// wxPGChoices( const wxArrayString& labels, const wxArrayInt& values = wxLuaSmartwxArrayInt() ); -static int LUACALL wxLua_wxPGChoices_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxArrayInt values = wxLuaSmartwxArrayInt() - wxLuaSmartwxArrayInt values = (argCount >= 2 ? wxlua_getwxArrayInt(L, 2) : wxLuaSmartwxArrayInt()); - // const wxArrayString labels - wxLuaSmartwxArrayString labels = wxlua_getwxArrayString(L, 1); - // call constructor - wxPGChoices* returns = new wxPGChoices(labels, values); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoices); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoices); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGChoices_constructor1[] = { &wxluatype_wxPGChoices, NULL }; -static int LUACALL wxLua_wxPGChoices_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_constructor1[1] = {{ wxLua_wxPGChoices_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_constructor1 }}; -// wxPGChoices( const wxPGChoices& a ); -static int LUACALL wxLua_wxPGChoices_constructor1(lua_State *L) -{ - // const wxPGChoices a - const wxPGChoices * a = (const wxPGChoices *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGChoices); - // call constructor - wxPGChoices* returns = new wxPGChoices(*a); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoices); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoices); - - return 1; -} - -static int LUACALL wxLua_wxPGChoices_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_constructor[1] = {{ wxLua_wxPGChoices_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPGChoices(); -static int LUACALL wxLua_wxPGChoices_constructor(lua_State *L) -{ - // call constructor - wxPGChoices* returns = new wxPGChoices(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGChoices); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGChoices); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Add_overload[] = -{ - { wxLua_wxPGChoices_Add3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Add3 }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGChoices_Add2, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGChoices_Add2 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGChoices_Add1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxPGChoices_Add1 }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGChoices_Add, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoices_Add }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -}; -static int s_wxluafunc_wxLua_wxPGChoices_Add_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoices_Add_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Index_overload[] = -{ - { wxLua_wxPGChoices_Index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Index1 }, - { wxLua_wxPGChoices_Index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Index }, -}; -static int s_wxluafunc_wxLua_wxPGChoices_Index_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoices_Index_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Insert_overload[] = -{ - { wxLua_wxPGChoices_Insert1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPGChoices_Insert1 }, - { wxLua_wxPGChoices_Insert, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxPGChoices_Insert }, -}; -static int s_wxluafunc_wxLua_wxPGChoices_Insert_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoices_Insert_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_Item_overload[] = -{ - { wxLua_wxPGChoices_Item1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Item1 }, - { wxLua_wxPGChoices_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_Item }, -}; -static int s_wxluafunc_wxLua_wxPGChoices_Item_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoices_Item_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_op_index_overload[] = -{ - { wxLua_wxPGChoices_op_index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_op_index1 }, - { wxLua_wxPGChoices_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxPGChoices_op_index }, -}; -static int s_wxluafunc_wxLua_wxPGChoices_op_index_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoices_op_index_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGChoices_constructor_overload[] = -{ - { wxLua_wxPGChoices_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_constructor3 }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGChoices_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPGChoices_constructor2 }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxLua_wxPGChoices_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGChoices_constructor1 }, - { wxLua_wxPGChoices_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPGChoices_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPGChoices_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - -void wxLua_wxPGChoices_delete_function(void** p) -{ - wxPGChoices* o = (wxPGChoices*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGChoices_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Add_overload, s_wxluafunc_wxLua_wxPGChoices_Add_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID))||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { "AddAsSorted", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_AddAsSorted, 1, NULL }, - { "AllocExclusive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_AllocExclusive, 1, NULL }, - { "Assign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Assign, 1, NULL }, - { "AssignData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_AssignData, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Clear, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Copy, 1, NULL }, - { "EnsureData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_EnsureData, 1, NULL }, - { "ExtractData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_ExtractData, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetCount, 1, NULL }, - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetData, 1, NULL }, - { "GetDataPtr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetDataPtr, 1, NULL }, - { "GetId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetId, 1, NULL }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetIndicesForStrings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetIndicesForStrings, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetLabel, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetLabels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetLabels, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetValue, 1, NULL }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetValuesForStrings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_GetValuesForStrings, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Index_overload, s_wxluafunc_wxLua_wxPGChoices_Index_overload_count, 0 }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Insert_overload, s_wxluafunc_wxLua_wxPGChoices_Insert_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_IsOk, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Item_overload, s_wxluafunc_wxLua_wxPGChoices_Item_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_RemoveAt, 1, NULL }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_Set, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGChoices_delete, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_op_index_overload, s_wxluafunc_wxLua_wxPGChoices_op_index_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGChoices_op_set, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - { "wxPGChoices", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGChoices_constructor_overload, s_wxluafunc_wxLua_wxPGChoices_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)||(((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxArrayString)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID)) - - { 0, 0, 0, 0 }, -}; - -int wxPGChoices_methodCount = sizeof(wxPGChoices_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPGRootProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPGRootProperty' -int wxluatype_wxPGRootProperty = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGRootProperty_StringToValue[] = { &wxluatype_wxPGRootProperty, &wxluatype_wxVariant, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPGRootProperty_StringToValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGRootProperty_StringToValue[1] = {{ wxLua_wxPGRootProperty_StringToValue, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxPGRootProperty_StringToValue }}; -// virtual bool StringToValue( wxVariant&, const wxString&, int ) const; -static int LUACALL wxLua_wxPGRootProperty_StringToValue(lua_State *L) -{ - // int arg3 - int arg3 = (int)wxlua_getnumbertype(L, 4); - // const wxString arg2 - const wxString arg2 = wxlua_getwxStringtype(L, 3); - // wxVariant arg1 - wxVariant * arg1 = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPGRootProperty * self = (wxPGRootProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPGRootProperty); - // call StringToValue - bool returns = (self->StringToValue(*arg1, arg2, arg3)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGRootProperty_delete[] = { &wxluatype_wxPGRootProperty, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGRootProperty_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPGRootProperty_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPGRootProperty_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPGRootProperty_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPGRootProperty_constructor[1] = {{ wxLua_wxPGRootProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxPGRootProperty_constructor }}; -// wxPGRootProperty( const wxString& name /* = wxS("") */ ); -static int LUACALL wxLua_wxPGRootProperty_constructor(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxPGRootProperty* returns = new wxPGRootProperty(name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPGRootProperty); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGRootProperty); - - return 1; -} - - - - -void wxLua_wxPGRootProperty_delete_function(void** p) -{ - wxPGRootProperty* o = (wxPGRootProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPGRootProperty_methods[] = { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "StringToValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPGRootProperty_StringToValue, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPGRootProperty_delete, 1, NULL }, - { "wxPGRootProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPGRootProperty_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxPGRootProperty_methodCount = sizeof(wxPGRootProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// --------------------------------------------------------------------------- -// Bind class wxPropertyCategory -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxPropertyCategory' -int wxluatype_wxPropertyCategory = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyCategory_GetTextExtent[] = { &wxluatype_wxPropertyCategory, &wxluatype_wxWindow, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxPropertyCategory_GetTextExtent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_GetTextExtent[1] = {{ wxLua_wxPropertyCategory_GetTextExtent, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyCategory_GetTextExtent }}; -// int GetTextExtent( const wxWindow* wnd, const wxFont& font ) const; -static int LUACALL wxLua_wxPropertyCategory_GetTextExtent(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont); - // const wxWindow wnd - const wxWindow * wnd = (const wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxPropertyCategory * self = (wxPropertyCategory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyCategory); - // call GetTextExtent - int returns = (self->GetTextExtent(wnd, *font)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyCategory_GetValueAsString[] = { &wxluatype_wxPropertyCategory, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyCategory_GetValueAsString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_GetValueAsString[1] = {{ wxLua_wxPropertyCategory_GetValueAsString, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxPropertyCategory_GetValueAsString }}; -// virtual wxString GetValueAsString( int argFlags = 0 ) const; -static int LUACALL wxLua_wxPropertyCategory_GetValueAsString(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int argFlags = 0 - int argFlags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxPropertyCategory * self = (wxPropertyCategory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyCategory); - // call GetValueAsString - wxString returns = (self->GetValueAsString(argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyCategory_ValueToString[] = { &wxluatype_wxPropertyCategory, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxPropertyCategory_ValueToString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_ValueToString[1] = {{ wxLua_wxPropertyCategory_ValueToString, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxPropertyCategory_ValueToString }}; -// virtual wxString ValueToString( wxVariant& value, int argFlags ) const; -static int LUACALL wxLua_wxPropertyCategory_ValueToString(lua_State *L) -{ - // int argFlags - int argFlags = (int)wxlua_getnumbertype(L, 3); - // wxVariant value - wxVariant * value = (wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxPropertyCategory * self = (wxPropertyCategory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxPropertyCategory); - // call ValueToString - wxString returns = (self->ValueToString(*value, argFlags)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyCategory_delete[] = { &wxluatype_wxPropertyCategory, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxPropertyCategory_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxPropertyCategory_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxPropertyCategory_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_constructor1[1] = {{ wxLua_wxPropertyCategory_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPropertyCategory_constructor1 }}; -// const wxString& name = wxPG_LABEL ); -static int LUACALL wxLua_wxPropertyCategory_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPG_LABEL - const wxString name = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxPG_LABEL)); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 1); - // call constructor - wxPropertyCategory* returns = new wxPropertyCategory(label, name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyCategory); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyCategory); - - return 1; -} - -static int LUACALL wxLua_wxPropertyCategory_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_constructor[1] = {{ wxLua_wxPropertyCategory_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxPropertyCategory(); -static int LUACALL wxLua_wxPropertyCategory_constructor(lua_State *L) -{ - // call constructor - wxPropertyCategory* returns = new wxPropertyCategory(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPropertyCategory); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPropertyCategory); - - return 1; -} - - - - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxPropertyCategory_constructor_overload[] = -{ - { wxLua_wxPropertyCategory_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxPropertyCategory_constructor1 }, - { wxLua_wxPropertyCategory_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxPropertyCategory_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxPropertyCategory_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -void wxLua_wxPropertyCategory_delete_function(void** p) -{ - wxPropertyCategory* o = (wxPropertyCategory*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxPropertyCategory_methods[] = { -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "GetTextExtent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyCategory_GetTextExtent, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { "GetValueAsString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyCategory_GetValueAsString, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - { "ValueToString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxPropertyCategory_ValueToString, 1, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_VARIANT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxPropertyCategory_delete, 1, NULL }, - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPropertyCategory", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxPropertyCategory_constructor_overload, s_wxluafunc_wxLua_wxPropertyCategory_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - { 0, 0, 0, 0 }, -}; - -int wxPropertyCategory_methodCount = sizeof(wxPropertyCategory_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxpropgrid_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxpropgrid() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxpropgrid(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxEVT_PG_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_PG_CHANGED), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_PG_CHANGING), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_COL_BEGIN_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_PG_COL_BEGIN_DRAG), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_COL_DRAGGING", WXLUA_GET_wxEventType_ptr(wxEVT_PG_COL_DRAGGING), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_COL_END_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_PG_COL_END_DRAG), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_DOUBLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_PG_DOUBLE_CLICK), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_HIGHLIGHTED", WXLUA_GET_wxEventType_ptr(wxEVT_PG_HIGHLIGHTED), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_ITEM_COLLAPSED", WXLUA_GET_wxEventType_ptr(wxEVT_PG_ITEM_COLLAPSED), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_ITEM_EXPANDED", WXLUA_GET_wxEventType_ptr(wxEVT_PG_ITEM_EXPANDED), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_LABEL_EDIT_BEGIN", WXLUA_GET_wxEventType_ptr(wxEVT_PG_LABEL_EDIT_BEGIN), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_LABEL_EDIT_ENDING", WXLUA_GET_wxEventType_ptr(wxEVT_PG_LABEL_EDIT_ENDING), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_PAGE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_PG_PAGE_CHANGED), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_PG_RIGHT_CLICK), &wxluatype_wxPropertyGridEvent }, - { "wxEVT_PG_SELECTED", WXLUA_GET_wxEventType_ptr(wxEVT_PG_SELECTED), &wxluatype_wxPropertyGridEvent }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxpropgrid() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxpropgrid(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxAEDIALOG_STYLE", wxAEDIALOG_STYLE }, - { "wxPGMAN_DEFAULT_STYLE", wxPGMAN_DEFAULT_STYLE }, - { "wxPG_ACTION_CANCEL_EDIT", wxPG_ACTION_CANCEL_EDIT }, - { "wxPG_ACTION_COLLAPSE_PROPERTY", wxPG_ACTION_COLLAPSE_PROPERTY }, - { "wxPG_ACTION_EDIT", wxPG_ACTION_EDIT }, - { "wxPG_ACTION_EXPAND_PROPERTY", wxPG_ACTION_EXPAND_PROPERTY }, - { "wxPG_ACTION_INVALID", wxPG_ACTION_INVALID }, - { "wxPG_ACTION_MAX", wxPG_ACTION_MAX }, - { "wxPG_ACTION_NEXT_PROPERTY", wxPG_ACTION_NEXT_PROPERTY }, - { "wxPG_ACTION_PRESS_BUTTON", wxPG_ACTION_PRESS_BUTTON }, - { "wxPG_ACTION_PREV_PROPERTY", wxPG_ACTION_PREV_PROPERTY }, - { "wxPG_ALPHABETIC_MODE", wxPG_ALPHABETIC_MODE }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_COMPATIBILITY_1_4)) - { "wxPG_ATTR_INLINE_HELP", wxPG_ATTR_INLINE_HELP }, -#endif // (!wxCHECK_VERSION(3,0,0)) && ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_COMPATIBILITY_1_4)) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_AUTO_SORT", wxPG_AUTO_SORT }, - { "wxPG_BASE_DEC", wxPG_BASE_DEC }, - { "wxPG_BASE_HEX", wxPG_BASE_HEX }, - { "wxPG_BASE_HEXL", wxPG_BASE_HEXL }, - { "wxPG_BASE_OCT", wxPG_BASE_OCT }, - { "wxPG_BOLD_MODIFIED", wxPG_BOLD_MODIFIED }, - { "wxPG_CAPRECTXMARGIN", wxPG_CAPRECTXMARGIN }, - { "wxPG_CAPRECTYMARGIN", wxPG_CAPRECTYMARGIN }, - { "wxPG_COLOUR_CUSTOM", wxPG_COLOUR_CUSTOM }, - { "wxPG_COLOUR_UNSPECIFIED", wxPG_COLOUR_UNSPECIFIED }, - { "wxPG_COLOUR_WEB_BASE", wxPG_COLOUR_WEB_BASE }, - { "wxPG_COMPOSITE_FRAGMENT", wxPG_COMPOSITE_FRAGMENT }, - { "wxPG_CUSTOM_IMAGE_SPACINGY", wxPG_CUSTOM_IMAGE_SPACINGY }, - { "wxPG_DEFAULT_STYLE", wxPG_DEFAULT_STYLE }, - { "wxPG_DESCRIPTION", wxPG_DESCRIPTION }, - { "wxPG_DONT_RECURSE", wxPG_DONT_RECURSE }, - { "wxPG_DONT_RECURSE", wxPG_DONT_RECURSE }, - { "wxPG_EDITABLE_VALUE", wxPG_EDITABLE_VALUE }, - { "wxPG_EX_ALWAYS_ALLOW_FOCUS", wxPG_EX_ALWAYS_ALLOW_FOCUS }, - { "wxPG_EX_AUTO_UNSPECIFIED_VALUES", wxPG_EX_AUTO_UNSPECIFIED_VALUES }, - { "wxPG_EX_ENABLE_TLP_TRACKING", wxPG_EX_ENABLE_TLP_TRACKING }, - { "wxPG_EX_HELP_AS_TOOLTIPS", wxPG_EX_HELP_AS_TOOLTIPS }, - { "wxPG_EX_HIDE_PAGE_BUTTONS", wxPG_EX_HIDE_PAGE_BUTTONS }, - { "wxPG_EX_INIT_NOCAT", wxPG_EX_INIT_NOCAT }, - { "wxPG_EX_MODE_BUTTONS", wxPG_EX_MODE_BUTTONS }, - { "wxPG_EX_MULTIPLE_SELECTION", wxPG_EX_MULTIPLE_SELECTION }, - { "wxPG_EX_NATIVE_DOUBLE_BUFFERING", wxPG_EX_NATIVE_DOUBLE_BUFFERING }, - { "wxPG_EX_NO_FLAT_TOOLBAR", wxPG_EX_NO_FLAT_TOOLBAR }, - { "wxPG_EX_NO_TOOLBAR_DIVIDER", wxPG_EX_NO_TOOLBAR_DIVIDER }, - { "wxPG_EX_TOOLBAR_SEPARATOR", wxPG_EX_TOOLBAR_SEPARATOR }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_EX_WINDOW_PGMAN_STYLE_MASK", wxPG_EX_WINDOW_PGMAN_STYLE_MASK }, - { "wxPG_EX_WINDOW_PG_STYLE_MASK", wxPG_EX_WINDOW_PG_STYLE_MASK }, - { "wxPG_EX_WINDOW_STYLE_MASK", wxPG_EX_WINDOW_STYLE_MASK }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_EX_WRITEONLY_BUILTIN_ATTRIBUTES", wxPG_EX_WRITEONLY_BUILTIN_ATTRIBUTES }, - { "wxPG_FORCE", wxPG_FORCE }, - { "wxPG_FORCE", wxPG_FORCE }, - { "wxPG_FULL_VALUE", wxPG_FULL_VALUE }, - { "wxPG_HIDE_CATEGORIES", wxPG_HIDE_CATEGORIES }, - { "wxPG_HIDE_MARGIN", wxPG_HIDE_MARGIN }, - { "wxPG_INC_ATTRIBUTES", wxPG_INC_ATTRIBUTES }, - { "wxPG_INC_ATTRIBUTES", wxPG_INC_ATTRIBUTES }, - { "wxPG_INVALID_VALUE", wxPG_INVALID_VALUE }, - { "wxPG_ITERATE_ALL", wxPG_ITERATE_ALL }, - { "wxPG_ITERATE_ALL_PARENTS", wxPG_ITERATE_ALL_PARENTS }, - { "wxPG_ITERATE_ALL_PARENTS_RECURSIVELY", wxPG_ITERATE_ALL_PARENTS_RECURSIVELY }, - { "wxPG_ITERATE_CATEGORIES", wxPG_ITERATE_CATEGORIES }, - { "wxPG_ITERATE_DEFAULT", wxPG_ITERATE_DEFAULT }, - { "wxPG_ITERATE_FIXED_CHILDREN", wxPG_ITERATE_FIXED_CHILDREN }, - { "wxPG_ITERATE_HIDDEN", wxPG_ITERATE_HIDDEN }, - { "wxPG_ITERATE_NORMAL", wxPG_ITERATE_NORMAL }, - { "wxPG_ITERATE_PROPERTIES", wxPG_ITERATE_PROPERTIES }, - { "wxPG_ITERATE_VISIBLE", wxPG_ITERATE_VISIBLE }, - { "wxPG_ITERATOR_FLAGS_ALL", wxPG_ITERATOR_FLAGS_ALL }, - { "wxPG_ITERATOR_MASK_OP_ITEM", wxPG_ITERATOR_MASK_OP_ITEM }, - { "wxPG_ITERATOR_MASK_OP_PARENT", wxPG_ITERATOR_MASK_OP_PARENT }, - { "wxPG_KEEP_STRUCTURE", wxPG_KEEP_STRUCTURE }, - { "wxPG_KEEP_STRUCTURE", wxPG_KEEP_STRUCTURE }, - { "wxPG_LIMITED_EDITING", wxPG_LIMITED_EDITING }, - { "wxPG_NO_INTERNAL_BORDER", wxPG_NO_INTERNAL_BORDER }, - { "wxPG_PREFIX_0x", wxPG_PREFIX_0x }, - { "wxPG_PREFIX_DOLLAR_SIGN", wxPG_PREFIX_DOLLAR_SIGN }, - { "wxPG_PREFIX_NONE", wxPG_PREFIX_NONE }, - { "wxPG_PROGRAMMATIC_VALUE", wxPG_PROGRAMMATIC_VALUE }, - { "wxPG_PROPERTY_SPECIFIC", wxPG_PROPERTY_SPECIFIC }, - { "wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE", wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE }, - { "wxPG_PROPERTY_VALIDATION_SATURATE", wxPG_PROPERTY_VALIDATION_SATURATE }, - { "wxPG_PROPERTY_VALIDATION_WRAP", wxPG_PROPERTY_VALIDATION_WRAP }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_PROP_ACTIVE_BTN", wxPG_PROP_ACTIVE_BTN }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_PROP_AGGREGATE", wxPG_PROP_AGGREGATE }, - { "wxPG_PROP_AUTO_UNSPECIFIED", wxPG_PROP_AUTO_UNSPECIFIED }, - { "wxPG_PROP_BEING_DELETED", wxPG_PROP_BEING_DELETED }, - { "wxPG_PROP_CATEGORY", wxPG_PROP_CATEGORY }, - { "wxPG_PROP_CHILDREN_ARE_COPIES", wxPG_PROP_CHILDREN_ARE_COPIES }, - { "wxPG_PROP_CLASS_SPECIFIC_1", wxPG_PROP_CLASS_SPECIFIC_1 }, - { "wxPG_PROP_CLASS_SPECIFIC_2", wxPG_PROP_CLASS_SPECIFIC_2 }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_PROP_CLASS_SPECIFIC_3", wxPG_PROP_CLASS_SPECIFIC_3 }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_PROP_COLLAPSED", wxPG_PROP_COLLAPSED }, - { "wxPG_PROP_COMPOSED_VALUE", wxPG_PROP_COMPOSED_VALUE }, - { "wxPG_PROP_CUSTOMIMAGE", wxPG_PROP_CUSTOMIMAGE }, - { "wxPG_PROP_DISABLED", wxPG_PROP_DISABLED }, - { "wxPG_PROP_HIDDEN", wxPG_PROP_HIDDEN }, - { "wxPG_PROP_INVALID_VALUE", wxPG_PROP_INVALID_VALUE }, - { "wxPG_PROP_MAX", wxPG_PROP_MAX }, - { "wxPG_PROP_MISC_PARENT", wxPG_PROP_MISC_PARENT }, - { "wxPG_PROP_MODIFIED", wxPG_PROP_MODIFIED }, - { "wxPG_PROP_NOEDITOR", wxPG_PROP_NOEDITOR }, - { "wxPG_PROP_PARENTAL_FLAGS", wxPG_PROP_PARENTAL_FLAGS }, - { "wxPG_PROP_PASSWORD", wxPG_PROP_PASSWORD }, - { "wxPG_PROP_PROPERTY", wxPG_PROP_PROPERTY }, - { "wxPG_PROP_READONLY", wxPG_PROP_READONLY }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_PROP_SHOW_FULL_FILENAME", wxPG_PROP_SHOW_FULL_FILENAME }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_PROP_STATIC_CHOICES", wxPG_PROP_STATIC_CHOICES }, - { "wxPG_PROP_TRANSLATE_CUSTOM", wxPG_PROP_TRANSLATE_CUSTOM }, - { "wxPG_PROP_USES_COMMON_VALUE", wxPG_PROP_USES_COMMON_VALUE }, - { "wxPG_PROP_USE_CHECKBOX", wxPG_PROP_USE_CHECKBOX }, - { "wxPG_PROP_USE_DCC", wxPG_PROP_USE_DCC }, - { "wxPG_PROP_WAS_MODIFIED", wxPG_PROP_WAS_MODIFIED }, - { "wxPG_RECURSE", wxPG_RECURSE }, - { "wxPG_RECURSE", wxPG_RECURSE }, - { "wxPG_RECURSE_STARTS", wxPG_RECURSE_STARTS }, - { "wxPG_RECURSE_STARTS", wxPG_RECURSE_STARTS }, - { "wxPG_REPORT_ERROR", wxPG_REPORT_ERROR }, - { "wxPG_SETVAL_AGGREGATED", wxPG_SETVAL_AGGREGATED }, - { "wxPG_SETVAL_BY_USER", wxPG_SETVAL_BY_USER }, - { "wxPG_SETVAL_FROM_PARENT", wxPG_SETVAL_FROM_PARENT }, - { "wxPG_SETVAL_REFRESH_EDITOR", wxPG_SETVAL_REFRESH_EDITOR }, - { "wxPG_SORT_TOP_LEVEL_ONLY", wxPG_SORT_TOP_LEVEL_ONLY }, - { "wxPG_SORT_TOP_LEVEL_ONLY", wxPG_SORT_TOP_LEVEL_ONLY }, - { "wxPG_SPLITTER_AUTO_CENTER", wxPG_SPLITTER_AUTO_CENTER }, - { "wxPG_STATIC_LAYOUT", wxPG_STATIC_LAYOUT }, - { "wxPG_STATIC_SPLITTER", wxPG_STATIC_SPLITTER }, - { "wxPG_STRING_STORED_FLAGS", wxPG_STRING_STORED_FLAGS }, - { "wxPG_TOOLBAR", wxPG_TOOLBAR }, - { "wxPG_TOOLTIPS", wxPG_TOOLTIPS }, - { "wxPG_UNEDITABLE_COMPOSITE_FRAGMENT", wxPG_UNEDITABLE_COMPOSITE_FRAGMENT }, - { "wxPG_VALUE_IS_CURRENT", wxPG_VALUE_IS_CURRENT }, - { "wxPG_VFB_BEEP", wxPG_VFB_BEEP }, - { "wxPG_VFB_DEFAULT", wxPG_VFB_DEFAULT }, - { "wxPG_VFB_MARK_CELL", wxPG_VFB_MARK_CELL }, - { "wxPG_VFB_SHOW_MESSAGE", wxPG_VFB_SHOW_MESSAGE }, - { "wxPG_VFB_SHOW_MESSAGEBOX", wxPG_VFB_SHOW_MESSAGEBOX }, - { "wxPG_VFB_SHOW_MESSAGE_ON_STATUSBAR", wxPG_VFB_SHOW_MESSAGE_ON_STATUSBAR }, - { "wxPG_VFB_STAY_IN_PROPERTY", wxPG_VFB_STAY_IN_PROPERTY }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_WINDOW_STYLE_MASK", wxPG_WINDOW_STYLE_MASK }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxpropgrid() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxpropgrid(size_t &count) -{ - static wxLuaBindString stringList[] = - { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_ARRAY_DELIMITER", NULL, wxPG_ARRAY_DELIMITER }, - { "wxPG_ATTR_AUTOCOMPLETE", NULL, wxPG_ATTR_AUTOCOMPLETE }, - { "wxPG_ATTR_DEFAULT_VALUE", NULL, wxPG_ATTR_DEFAULT_VALUE }, - { "wxPG_ATTR_DEFAULT_VALUE", NULL, wxPG_ATTR_DEFAULT_VALUE }, - { "wxPG_ATTR_HINT", NULL, wxPG_ATTR_HINT }, - { "wxPG_ATTR_HINT", NULL, wxPG_ATTR_HINT }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_COMPATIBILITY_1_4) - { "wxPG_ATTR_INLINE_HELP", NULL, wxPG_ATTR_INLINE_HELP }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_COMPATIBILITY_1_4) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_ATTR_MAX", NULL, wxPG_ATTR_MAX }, - { "wxPG_ATTR_MAX", NULL, wxPG_ATTR_MAX }, - { "wxPG_ATTR_MIN", NULL, wxPG_ATTR_MIN }, - { "wxPG_ATTR_MIN", NULL, wxPG_ATTR_MIN }, - { "wxPG_ATTR_MULTICHOICE_USERSTRINGMODE", NULL, wxPG_ATTR_MULTICHOICE_USERSTRINGMODE }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxCHECK_VERSION(3,2,0)) - { "wxPG_ATTR_SPINCTRL_MOTION", NULL, wxPG_ATTR_SPINCTRL_MOTION }, -#endif // ((wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton)) && (wxCHECK_VERSION(3,2,0)) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - { "wxPG_ATTR_SPINCTRL_STEP", NULL, wxPG_ATTR_SPINCTRL_STEP }, - { "wxPG_ATTR_SPINCTRL_WRAP", NULL, wxPG_ATTR_SPINCTRL_WRAP }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_ATTR_UNITS", NULL, wxPG_ATTR_UNITS }, - { "wxPG_ATTR_UNITS", NULL, wxPG_ATTR_UNITS }, - { "wxPG_BOOL_USE_CHECKBOX", NULL, wxPG_BOOL_USE_CHECKBOX }, - { "wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING", NULL, wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING }, - { "wxPG_COLOUR_ALLOW_CUSTOM", NULL, wxPG_COLOUR_ALLOW_CUSTOM }, - { "wxPG_COLOUR_HAS_ALPHA", NULL, wxPG_COLOUR_HAS_ALPHA }, - { "wxPG_DATE_FORMAT", NULL, wxPG_DATE_FORMAT }, - { "wxPG_DATE_PICKER_STYLE", NULL, wxPG_DATE_PICKER_STYLE }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_DIALOG_TITLE", NULL, wxPG_DIALOG_TITLE }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (!wxCHECK_VERSION(3,1,3) && (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_DIR_DIALOG_MESSAGE", NULL, wxPG_DIR_DIALOG_MESSAGE }, -#endif // (!wxCHECK_VERSION(3,1,3) && (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_FILE_DIALOG_STYLE", NULL, wxPG_FILE_DIALOG_STYLE }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (!wxCHECK_VERSION(3,1,3) && (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { "wxPG_FILE_DIALOG_TITLE", NULL, wxPG_FILE_DIALOG_TITLE }, -#endif // (!wxCHECK_VERSION(3,1,3) && (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPG_FILE_INITIAL_PATH", NULL, wxPG_FILE_INITIAL_PATH }, - { "wxPG_FILE_SHOW_FULL_PATH", NULL, wxPG_FILE_SHOW_FULL_PATH }, - { "wxPG_FILE_SHOW_RELATIVE_PATH", NULL, wxPG_FILE_SHOW_RELATIVE_PATH }, - { "wxPG_FILE_WILDCARD", NULL, wxPG_FILE_WILDCARD }, - { "wxPG_FLOAT_PRECISION", NULL, wxPG_FLOAT_PRECISION }, - { "wxPG_LABEL", wxPG_LABEL, NULL }, - { "wxPG_STRING_PASSWORD", NULL, wxPG_STRING_PASSWORD }, - { "wxPG_UINT_BASE", NULL, wxPG_UINT_BASE }, - { "wxPG_UINT_PREFIX", NULL, wxPG_UINT_PREFIX }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxpropgrid() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxpropgrid(size_t &count) -{ - static wxLuaBindObject objectList[] = - { -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - { "wxPGEditor_CheckBox", &wxluatype_wxPGCheckBoxEditor, &wxPGEditor_CheckBox, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPGEditor_Choice", &wxluatype_wxPGChoiceEditor, &wxPGEditor_Choice, NULL }, - { "wxPGEditor_ChoiceAndButton", &wxluatype_wxPGChoiceAndButtonEditor, &wxPGEditor_ChoiceAndButton, NULL }, - { "wxPGEditor_ComboBox", &wxluatype_wxPGComboBoxEditor, &wxPGEditor_ComboBox, NULL }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_DATEPICKCTRL && wxLUA_USE_wxDatePickerCtrl) - { "wxPGEditor_DatePickerCtrl", &wxluatype_wxPGEditor, &wxPGEditor_DatePickerCtrl, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_DATEPICKCTRL && wxLUA_USE_wxDatePickerCtrl) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - { "wxPGEditor_SpinCtrl", &wxluatype_wxPGSpinCtrlEditor, &wxPGEditor_SpinCtrl, NULL }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxPGEditor_TextCtrl", &wxluatype_wxPGTextCtrlAndButtonEditor, &wxPGEditor_TextCtrl, NULL }, - { "wxPGEditor_TextCtrl", &wxluatype_wxPGTextCtrlEditor, &wxPGEditor_TextCtrl, NULL }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxpropgrid() is called to register global functions -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID -// %override wxLua_function_wxNullProperty -// wxPGProperty *wxNullProperty() const; -static int LUACALL wxLua_function_wxNullProperty(lua_State *L) -{ - wxPGProperty* returns = wxNullProperty; - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPGProperty); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxNullProperty[1] = {{ wxLua_function_wxNullProperty, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// const wxString& wxPGGetDefaultImageWildcard(); -static int LUACALL wxLua_function_wxPGGetDefaultImageWildcard(lua_State *L) -{ - // call wxPGGetDefaultImageWildcard - wxString returns = (wxPGGetDefaultImageWildcard()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxPGGetDefaultImageWildcard[1] = {{ wxLua_function_wxPGGetDefaultImageWildcard, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxpropgrid() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxpropgrid(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { "wxNullProperty", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxNullProperty, 1, NULL }, - { "wxPGGetDefaultImageWildcard", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxPGGetDefaultImageWildcard, 1, NULL }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxpropgrid() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxArrayStringProperty = "wxArrayStringProperty"; -static const char* wxluaclassname_wxBoolProperty = "wxBoolProperty"; -static const char* wxluaclassname_wxColourProperty = "wxColourProperty"; -static const char* wxluaclassname_wxColourPropertyValue = "wxColourPropertyValue"; -static const char* wxluaclassname_wxCommandEvent = "wxCommandEvent"; -static const char* wxluaclassname_wxCursorProperty = "wxCursorProperty"; -static const char* wxluaclassname_wxDateProperty = "wxDateProperty"; -static const char* wxluaclassname_wxDialog = "wxDialog"; -static const char* wxluaclassname_wxDirProperty = "wxDirProperty"; -static const char* wxluaclassname_wxEditEnumProperty = "wxEditEnumProperty"; -static const char* wxluaclassname_wxEditorDialogProperty = "wxEditorDialogProperty"; -static const char* wxluaclassname_wxEnumProperty = "wxEnumProperty"; -static const char* wxluaclassname_wxEvtHandler = "wxEvtHandler"; -static const char* wxluaclassname_wxFileProperty = "wxFileProperty"; -static const char* wxluaclassname_wxFlagsProperty = "wxFlagsProperty"; -static const char* wxluaclassname_wxFloatProperty = "wxFloatProperty"; -static const char* wxluaclassname_wxFontProperty = "wxFontProperty"; -static const char* wxluaclassname_wxImageFileProperty = "wxImageFileProperty"; -static const char* wxluaclassname_wxIntProperty = "wxIntProperty"; -static const char* wxluaclassname_wxLongStringProperty = "wxLongStringProperty"; -static const char* wxluaclassname_wxMultiChoiceProperty = "wxMultiChoiceProperty"; -static const char* wxluaclassname_wxNumericProperty = "wxNumericProperty"; -static const char* wxluaclassname_wxNumericPropertyValidator = "wxNumericPropertyValidator"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxObjectRefData = "wxObjectRefData"; -static const char* wxluaclassname_wxPGArrayEditorDialog = "wxPGArrayEditorDialog"; -static const char* wxluaclassname_wxPGArrayStringEditorDialog = "wxPGArrayStringEditorDialog"; -static const char* wxluaclassname_wxPGAttributeStorage = "wxPGAttributeStorage"; -static const char* wxluaclassname_wxPGCell = "wxPGCell"; -static const char* wxluaclassname_wxPGCellData = "wxPGCellData"; -static const char* wxluaclassname_wxPGCellRenderer = "wxPGCellRenderer"; -static const char* wxluaclassname_wxPGCheckBoxEditor = "wxPGCheckBoxEditor"; -static const char* wxluaclassname_wxPGChoiceAndButtonEditor = "wxPGChoiceAndButtonEditor"; -static const char* wxluaclassname_wxPGChoiceEditor = "wxPGChoiceEditor"; -static const char* wxluaclassname_wxPGChoiceEntry = "wxPGChoiceEntry"; -static const char* wxluaclassname_wxPGChoices = "wxPGChoices"; -static const char* wxluaclassname_wxPGChoicesData = "wxPGChoicesData"; -static const char* wxluaclassname_wxPGComboBoxEditor = "wxPGComboBoxEditor"; -static const char* wxluaclassname_wxPGDefaultRenderer = "wxPGDefaultRenderer"; -static const char* wxluaclassname_wxPGEditor = "wxPGEditor"; -static const char* wxluaclassname_wxPGEditorDialogAdapter = "wxPGEditorDialogAdapter"; -static const char* wxluaclassname_wxPGMultiButton = "wxPGMultiButton"; -static const char* wxluaclassname_wxPGPaintData = "wxPGPaintData"; -static const char* wxluaclassname_wxPGPropArgCls = "wxPGPropArgCls"; -static const char* wxluaclassname_wxPGProperty = "wxPGProperty"; -static const char* wxluaclassname_wxPGRootProperty = "wxPGRootProperty"; -static const char* wxluaclassname_wxPGSpinCtrlEditor = "wxPGSpinCtrlEditor"; -static const char* wxluaclassname_wxPGTextCtrlAndButtonEditor = "wxPGTextCtrlAndButtonEditor"; -static const char* wxluaclassname_wxPGTextCtrlEditor = "wxPGTextCtrlEditor"; -static const char* wxluaclassname_wxPGVIterator = "wxPGVIterator"; -static const char* wxluaclassname_wxPGVIteratorBase = "wxPGVIteratorBase"; -static const char* wxluaclassname_wxPGValidationInfo = "wxPGValidationInfo"; -static const char* wxluaclassname_wxPGWindowList = "wxPGWindowList"; -static const char* wxluaclassname_wxPanel = "wxPanel"; -static const char* wxluaclassname_wxPropertyCategory = "wxPropertyCategory"; -static const char* wxluaclassname_wxPropertyGrid = "wxPropertyGrid"; -static const char* wxluaclassname_wxPropertyGridConstIterator = "wxPropertyGridConstIterator"; -static const char* wxluaclassname_wxPropertyGridEvent = "wxPropertyGridEvent"; -static const char* wxluaclassname_wxPropertyGridHitTestResult = "wxPropertyGridHitTestResult"; -static const char* wxluaclassname_wxPropertyGridInterface = "wxPropertyGridInterface"; -static const char* wxluaclassname_wxPropertyGridIteratorBase = "wxPropertyGridIteratorBase"; -static const char* wxluaclassname_wxPropertyGridManager = "wxPropertyGridManager"; -static const char* wxluaclassname_wxPropertyGridPage = "wxPropertyGridPage"; -static const char* wxluaclassname_wxPropertyGridPageState = "wxPropertyGridPageState"; -static const char* wxluaclassname_wxScrolled_wxControl_ = "wxScrolled"; -static const char* wxluaclassname_wxStringProperty = "wxStringProperty"; -static const char* wxluaclassname_wxSystemColourProperty = "wxSystemColourProperty"; -static const char* wxluaclassname_wxTextValidator = "wxTextValidator"; -static const char* wxluaclassname_wxUIntProperty = "wxUIntProperty"; -static const char* wxluaclassname_wxWindow = "wxWindow"; - -static const char* wxluabaseclassnames_wxArrayStringProperty[] = { wxluaclassname_wxEditorDialogProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxArrayStringProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxBoolProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxBoolProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxColourProperty[] = { wxluaclassname_wxSystemColourProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColourProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxColourPropertyValue[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxColourPropertyValue[] = { NULL }; -static const char* wxluabaseclassnames_wxCursorProperty[] = { wxluaclassname_wxEnumProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxCursorProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxDateProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDateProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxDirProperty[] = { wxluaclassname_wxEditorDialogProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxDirProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxEditEnumProperty[] = { wxluaclassname_wxEnumProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEditEnumProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxEditorDialogProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEditorDialogProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxEnumProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxEnumProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxFileProperty[] = { wxluaclassname_wxEditorDialogProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFileProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxFlagsProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFlagsProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxFloatProperty[] = { wxluaclassname_wxNumericProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFloatProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxFontProperty[] = { wxluaclassname_wxEditorDialogProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxFontProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxImageFileProperty[] = { wxluaclassname_wxFileProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxImageFileProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxIntProperty[] = { wxluaclassname_wxNumericProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxIntProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxLongStringProperty[] = { wxluaclassname_wxEditorDialogProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLongStringProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxMultiChoiceProperty[] = { wxluaclassname_wxEditorDialogProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxMultiChoiceProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxNumericProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNumericProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxNumericPropertyValidator[] = { wxluaclassname_wxTextValidator, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxNumericPropertyValidator[] = { NULL }; -static const char* wxluabaseclassnames_wxPGArrayEditorDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGArrayEditorDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxPGArrayStringEditorDialog[] = { wxluaclassname_wxPGArrayEditorDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGArrayStringEditorDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxPGCell[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGCell[] = { NULL }; -static const char* wxluabaseclassnames_wxPGCellData[] = { wxluaclassname_wxObjectRefData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGCellData[] = { NULL }; -static const char* wxluabaseclassnames_wxPGCellRenderer[] = { wxluaclassname_wxObjectRefData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGCellRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxPGCheckBoxEditor[] = { wxluaclassname_wxPGEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGCheckBoxEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGChoiceAndButtonEditor[] = { wxluaclassname_wxPGChoiceEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGChoiceAndButtonEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGChoiceEditor[] = { wxluaclassname_wxPGEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGChoiceEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGChoiceEntry[] = { wxluaclassname_wxPGCell, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGChoiceEntry[] = { NULL }; -static const char* wxluabaseclassnames_wxPGChoicesData[] = { wxluaclassname_wxObjectRefData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGChoicesData[] = { NULL }; -static const char* wxluabaseclassnames_wxPGComboBoxEditor[] = { wxluaclassname_wxPGChoiceEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGComboBoxEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGDefaultRenderer[] = { wxluaclassname_wxPGCellRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGDefaultRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxPGEditor[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGEditorDialogAdapter[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGEditorDialogAdapter[] = { NULL }; -static const char* wxluabaseclassnames_wxPGMultiButton[] = { wxluaclassname_wxWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGMultiButton[] = { NULL }; -static const char* wxluabaseclassnames_wxPGProperty[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxPGRootProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGRootProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxPGSpinCtrlEditor[] = { wxluaclassname_wxPGTextCtrlEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGSpinCtrlEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGTextCtrlAndButtonEditor[] = { wxluaclassname_wxPGTextCtrlEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGTextCtrlAndButtonEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGTextCtrlEditor[] = { wxluaclassname_wxPGEditor, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGTextCtrlEditor[] = { NULL }; -static const char* wxluabaseclassnames_wxPGVIteratorBase[] = { wxluaclassname_wxObjectRefData, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPGVIteratorBase[] = { NULL }; -static const char* wxluabaseclassnames_wxPropertyCategory[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPropertyCategory[] = { NULL }; -static const char* wxluabaseclassnames_wxPropertyGrid[] = { wxluaclassname_wxScrolled_wxControl_, wxluaclassname_wxPropertyGridInterface, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPropertyGrid[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxPropertyGridConstIterator[] = { wxluaclassname_wxPropertyGridIteratorBase, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPropertyGridConstIterator[] = { NULL }; -static const char* wxluabaseclassnames_wxPropertyGridEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPropertyGridEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxPropertyGridManager[] = { wxluaclassname_wxPanel, wxluaclassname_wxPropertyGridInterface, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPropertyGridManager[] = { NULL, NULL }; -static const char* wxluabaseclassnames_wxPropertyGridPage[] = { wxluaclassname_wxEvtHandler, wxluaclassname_wxPropertyGridInterface, wxluaclassname_wxPropertyGridPageState, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxPropertyGridPage[] = { NULL, NULL, NULL }; -static const char* wxluabaseclassnames_wxStringProperty[] = { wxluaclassname_wxPGProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStringProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxSystemColourProperty[] = { wxluaclassname_wxEnumProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSystemColourProperty[] = { NULL }; -static const char* wxluabaseclassnames_wxUIntProperty[] = { wxluaclassname_wxNumericProperty, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxUIntProperty[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - extern wxLuaBindMethod wxArrayStringProperty_methods[]; - extern int wxArrayStringProperty_methodCount; - extern wxLuaBindNumber wxArrayStringProperty_enums[]; - extern int wxArrayStringProperty_enumCount; - extern void wxLua_wxArrayStringProperty_delete_function(void** p); - extern wxLuaBindMethod wxDirProperty_methods[]; - extern int wxDirProperty_methodCount; - extern void wxLua_wxDirProperty_delete_function(void** p); - extern wxLuaBindMethod wxEditorDialogProperty_methods[]; - extern int wxEditorDialogProperty_methodCount; - extern void wxLua_wxEditorDialogProperty_delete_function(void** p); - extern wxLuaBindMethod wxFileProperty_methods[]; - extern int wxFileProperty_methodCount; - extern void wxLua_wxFileProperty_delete_function(void** p); - extern wxLuaBindMethod wxFloatProperty_methods[]; - extern int wxFloatProperty_methodCount; - extern void wxLua_wxFloatProperty_delete_function(void** p); - extern wxLuaBindMethod wxFontProperty_methods[]; - extern int wxFontProperty_methodCount; - extern void wxLua_wxFontProperty_delete_function(void** p); - extern wxLuaBindMethod wxIntProperty_methods[]; - extern int wxIntProperty_methodCount; - extern void wxLua_wxIntProperty_delete_function(void** p); - extern wxLuaBindMethod wxLongStringProperty_methods[]; - extern int wxLongStringProperty_methodCount; - extern void wxLua_wxLongStringProperty_delete_function(void** p); - extern wxLuaBindMethod wxMultiChoiceProperty_methods[]; - extern int wxMultiChoiceProperty_methodCount; - extern void wxLua_wxMultiChoiceProperty_delete_function(void** p); - extern wxLuaBindMethod wxNumericProperty_methods[]; - extern int wxNumericProperty_methodCount; - extern void wxLua_wxNumericProperty_delete_function(void** p); - extern wxLuaBindMethod wxUIntProperty_methods[]; - extern int wxUIntProperty_methodCount; - extern void wxLua_wxUIntProperty_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - extern wxLuaBindMethod wxPGCheckBoxEditor_methods[]; - extern int wxPGCheckBoxEditor_methodCount; - extern void wxLua_wxPGCheckBoxEditor_delete_function(void** p); -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - extern wxLuaBindMethod wxPGSpinCtrlEditor_methods[]; - extern int wxPGSpinCtrlEditor_methodCount; - extern void wxLua_wxPGSpinCtrlEditor_delete_function(void** p); -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - extern wxLuaBindMethod wxBoolProperty_methods[]; - extern int wxBoolProperty_methodCount; - extern void wxLua_wxBoolProperty_delete_function(void** p); - extern wxLuaBindMethod wxColourProperty_methods[]; - extern int wxColourProperty_methodCount; - extern void wxLua_wxColourProperty_delete_function(void** p); - extern wxLuaBindMethod wxColourPropertyValue_methods[]; - extern int wxColourPropertyValue_methodCount; - extern void wxLua_wxColourPropertyValue_delete_function(void** p); - extern wxLuaBindMethod wxCursorProperty_methods[]; - extern int wxCursorProperty_methodCount; - extern void wxLua_wxCursorProperty_delete_function(void** p); - extern wxLuaBindMethod wxDateProperty_methods[]; - extern int wxDateProperty_methodCount; - extern void wxLua_wxDateProperty_delete_function(void** p); - extern wxLuaBindMethod wxEditEnumProperty_methods[]; - extern int wxEditEnumProperty_methodCount; - extern void wxLua_wxEditEnumProperty_delete_function(void** p); - extern wxLuaBindMethod wxEnumProperty_methods[]; - extern int wxEnumProperty_methodCount; - extern void wxLua_wxEnumProperty_delete_function(void** p); - extern wxLuaBindMethod wxFlagsProperty_methods[]; - extern int wxFlagsProperty_methodCount; - extern void wxLua_wxFlagsProperty_delete_function(void** p); - extern wxLuaBindMethod wxImageFileProperty_methods[]; - extern int wxImageFileProperty_methodCount; - extern void wxLua_wxImageFileProperty_delete_function(void** p); - extern wxLuaBindMethod wxNumericPropertyValidator_methods[]; - extern int wxNumericPropertyValidator_methodCount; - extern wxLuaBindNumber wxNumericPropertyValidator_enums[]; - extern int wxNumericPropertyValidator_enumCount; - extern void wxLua_wxNumericPropertyValidator_delete_function(void** p); - extern wxLuaBindMethod wxPGArrayEditorDialog_methods[]; - extern int wxPGArrayEditorDialog_methodCount; - extern void wxLua_wxPGArrayEditorDialog_delete_function(void** p); - extern wxLuaBindMethod wxPGArrayStringEditorDialog_methods[]; - extern int wxPGArrayStringEditorDialog_methodCount; - extern void wxLua_wxPGArrayStringEditorDialog_delete_function(void** p); - extern wxLuaBindMethod wxPGAttributeStorage_methods[]; - extern int wxPGAttributeStorage_methodCount; - extern void wxLua_wxPGAttributeStorage_delete_function(void** p); - extern wxLuaBindMethod wxPGCell_methods[]; - extern int wxPGCell_methodCount; - extern void wxLua_wxPGCell_delete_function(void** p); - extern wxLuaBindMethod wxPGCellData_methods[]; - extern int wxPGCellData_methodCount; - extern void wxLua_wxPGCellData_delete_function(void** p); - extern wxLuaBindMethod wxPGCellRenderer_methods[]; - extern int wxPGCellRenderer_methodCount; - extern wxLuaBindNumber wxPGCellRenderer_enums[]; - extern int wxPGCellRenderer_enumCount; - extern void wxLua_wxPGCellRenderer_delete_function(void** p); - extern wxLuaBindMethod wxPGChoiceAndButtonEditor_methods[]; - extern int wxPGChoiceAndButtonEditor_methodCount; - extern void wxLua_wxPGChoiceAndButtonEditor_delete_function(void** p); - extern wxLuaBindMethod wxPGChoiceEditor_methods[]; - extern int wxPGChoiceEditor_methodCount; - extern void wxLua_wxPGChoiceEditor_delete_function(void** p); - extern wxLuaBindMethod wxPGChoiceEntry_methods[]; - extern int wxPGChoiceEntry_methodCount; - extern void wxLua_wxPGChoiceEntry_delete_function(void** p); - extern wxLuaBindMethod wxPGChoices_methods[]; - extern int wxPGChoices_methodCount; - extern void wxLua_wxPGChoices_delete_function(void** p); - extern wxLuaBindMethod wxPGChoicesData_methods[]; - extern int wxPGChoicesData_methodCount; - extern void wxLua_wxPGChoicesData_delete_function(void** p); - extern wxLuaBindMethod wxPGComboBoxEditor_methods[]; - extern int wxPGComboBoxEditor_methodCount; - extern void wxLua_wxPGComboBoxEditor_delete_function(void** p); - extern wxLuaBindMethod wxPGDefaultRenderer_methods[]; - extern int wxPGDefaultRenderer_methodCount; - extern void wxLua_wxPGDefaultRenderer_delete_function(void** p); - extern wxLuaBindMethod wxPGEditor_methods[]; - extern int wxPGEditor_methodCount; - extern void wxLua_wxPGEditor_delete_function(void** p); - extern wxLuaBindMethod wxPGEditorDialogAdapter_methods[]; - extern int wxPGEditorDialogAdapter_methodCount; - extern void wxLua_wxPGEditorDialogAdapter_delete_function(void** p); - extern wxLuaBindMethod wxPGMultiButton_methods[]; - extern int wxPGMultiButton_methodCount; - extern void wxLua_wxPGMultiButton_delete_function(void** p); - extern wxLuaBindMethod wxPGPaintData_methods[]; - extern int wxPGPaintData_methodCount; - extern void wxLua_wxPGPaintData_delete_function(void** p); - extern wxLuaBindMethod wxPGPropArgCls_methods[]; - extern int wxPGPropArgCls_methodCount; - extern void wxLua_wxPGPropArgCls_delete_function(void** p); - extern wxLuaBindMethod wxPGProperty_methods[]; - extern int wxPGProperty_methodCount; - extern void wxLua_wxPGProperty_delete_function(void** p); - extern wxLuaBindMethod wxPGRootProperty_methods[]; - extern int wxPGRootProperty_methodCount; - extern void wxLua_wxPGRootProperty_delete_function(void** p); - extern wxLuaBindMethod wxPGTextCtrlAndButtonEditor_methods[]; - extern int wxPGTextCtrlAndButtonEditor_methodCount; - extern void wxLua_wxPGTextCtrlAndButtonEditor_delete_function(void** p); - extern wxLuaBindMethod wxPGTextCtrlEditor_methods[]; - extern int wxPGTextCtrlEditor_methodCount; - extern void wxLua_wxPGTextCtrlEditor_delete_function(void** p); - extern wxLuaBindMethod wxPGVIterator_methods[]; - extern int wxPGVIterator_methodCount; - extern void wxLua_wxPGVIterator_delete_function(void** p); - extern wxLuaBindMethod wxPGVIteratorBase_methods[]; - extern int wxPGVIteratorBase_methodCount; - extern void wxLua_wxPGVIteratorBase_delete_function(void** p); - extern wxLuaBindMethod wxPGValidationInfo_methods[]; - extern int wxPGValidationInfo_methodCount; - extern void wxLua_wxPGValidationInfo_delete_function(void** p); - extern wxLuaBindMethod wxPGWindowList_methods[]; - extern int wxPGWindowList_methodCount; - extern void wxLua_wxPGWindowList_delete_function(void** p); - extern wxLuaBindMethod wxPropertyCategory_methods[]; - extern int wxPropertyCategory_methodCount; - extern void wxLua_wxPropertyCategory_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGrid_methods[]; - extern int wxPropertyGrid_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxPropertyGrid[] = { &wxluatype_wxPropertyGridInterface, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxPropertyGrid[] = { wxIntPtr(((wxIntPtr)(wxPropertyGridInterface*)(wxPropertyGrid*)&wxluatype_TNONE) - ((wxIntPtr)(wxPropertyGrid*)&wxluatype_TNONE)) }; - extern void wxLua_wxPropertyGrid_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridConstIterator_methods[]; - extern int wxPropertyGridConstIterator_methodCount; - extern void wxLua_wxPropertyGridConstIterator_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridEvent_methods[]; - extern int wxPropertyGridEvent_methodCount; - extern void wxLua_wxPropertyGridEvent_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridHitTestResult_methods[]; - extern int wxPropertyGridHitTestResult_methodCount; - extern void wxLua_wxPropertyGridHitTestResult_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridInterface_methods[]; - extern int wxPropertyGridInterface_methodCount; - extern wxLuaBindNumber wxPropertyGridInterface_enums[]; - extern int wxPropertyGridInterface_enumCount; - extern void wxLua_wxPropertyGridInterface_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridIteratorBase_methods[]; - extern int wxPropertyGridIteratorBase_methodCount; - extern void wxLua_wxPropertyGridIteratorBase_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridManager_methods[]; - extern int wxPropertyGridManager_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxPropertyGridManager[] = { &wxluatype_wxPropertyGridInterface, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxPropertyGridManager[] = { wxIntPtr(((wxIntPtr)(wxPropertyGridInterface*)(wxPropertyGridManager*)&wxluatype_TNONE) - ((wxIntPtr)(wxPropertyGridManager*)&wxluatype_TNONE)) }; - extern void wxLua_wxPropertyGridManager_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridPage_methods[]; - extern int wxPropertyGridPage_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxPropertyGridPage[] = { &wxluatype_wxPropertyGridInterface, &wxluatype_wxPropertyGridPageState, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxPropertyGridPage[] = { wxIntPtr(((wxIntPtr)(wxPropertyGridInterface*)(wxPropertyGridPage*)&wxluatype_TNONE) - ((wxIntPtr)(wxPropertyGridPage*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxPropertyGridPageState*)(wxPropertyGridPage*)&wxluatype_TNONE) - ((wxIntPtr)(wxPropertyGridPage*)&wxluatype_TNONE)) }; - extern void wxLua_wxPropertyGridPage_delete_function(void** p); - extern wxLuaBindMethod wxPropertyGridPageState_methods[]; - extern int wxPropertyGridPageState_methodCount; - extern void wxLua_wxPropertyGridPageState_delete_function(void** p); - extern wxLuaBindMethod wxStringProperty_methods[]; - extern int wxStringProperty_methodCount; - extern void wxLua_wxStringProperty_delete_function(void** p); - extern wxLuaBindMethod wxSystemColourProperty_methods[]; - extern int wxSystemColourProperty_methodCount; - extern void wxLua_wxSystemColourProperty_delete_function(void** p); -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - - - - -wxLuaBindClass* wxLuaGetClassList_wxpropgrid(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxArrayStringProperty, wxArrayStringProperty_methods, wxArrayStringProperty_methodCount, CLASSINFO(wxArrayStringProperty), &wxluatype_wxArrayStringProperty, wxluabaseclassnames_wxArrayStringProperty, wxluabaseclassbinds_wxArrayStringProperty, NULL, NULL, wxArrayStringProperty_enums, wxArrayStringProperty_enumCount, &wxLua_wxArrayStringProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxBoolProperty, wxBoolProperty_methods, wxBoolProperty_methodCount, CLASSINFO(wxBoolProperty), &wxluatype_wxBoolProperty, wxluabaseclassnames_wxBoolProperty, wxluabaseclassbinds_wxBoolProperty, NULL, NULL, NULL, 0, &wxLua_wxBoolProperty_delete_function, }, - { wxluaclassname_wxColourProperty, wxColourProperty_methods, wxColourProperty_methodCount, CLASSINFO(wxColourProperty), &wxluatype_wxColourProperty, wxluabaseclassnames_wxColourProperty, wxluabaseclassbinds_wxColourProperty, NULL, NULL, NULL, 0, &wxLua_wxColourProperty_delete_function, }, - { wxluaclassname_wxColourPropertyValue, wxColourPropertyValue_methods, wxColourPropertyValue_methodCount, CLASSINFO(wxColourPropertyValue), &wxluatype_wxColourPropertyValue, wxluabaseclassnames_wxColourPropertyValue, wxluabaseclassbinds_wxColourPropertyValue, NULL, NULL, NULL, 0, &wxLua_wxColourPropertyValue_delete_function, }, - { wxluaclassname_wxCursorProperty, wxCursorProperty_methods, wxCursorProperty_methodCount, CLASSINFO(wxCursorProperty), &wxluatype_wxCursorProperty, wxluabaseclassnames_wxCursorProperty, wxluabaseclassbinds_wxCursorProperty, NULL, NULL, NULL, 0, &wxLua_wxCursorProperty_delete_function, }, - { wxluaclassname_wxDateProperty, wxDateProperty_methods, wxDateProperty_methodCount, CLASSINFO(wxDateProperty), &wxluatype_wxDateProperty, wxluabaseclassnames_wxDateProperty, wxluabaseclassbinds_wxDateProperty, NULL, NULL, NULL, 0, &wxLua_wxDateProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxDirProperty, wxDirProperty_methods, wxDirProperty_methodCount, CLASSINFO(wxDirProperty), &wxluatype_wxDirProperty, wxluabaseclassnames_wxDirProperty, wxluabaseclassbinds_wxDirProperty, NULL, NULL, NULL, 0, &wxLua_wxDirProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxEditEnumProperty, wxEditEnumProperty_methods, wxEditEnumProperty_methodCount, CLASSINFO(wxEditEnumProperty), &wxluatype_wxEditEnumProperty, wxluabaseclassnames_wxEditEnumProperty, wxluabaseclassbinds_wxEditEnumProperty, NULL, NULL, NULL, 0, &wxLua_wxEditEnumProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxEditorDialogProperty, wxEditorDialogProperty_methods, wxEditorDialogProperty_methodCount, CLASSINFO(wxEditorDialogProperty), &wxluatype_wxEditorDialogProperty, wxluabaseclassnames_wxEditorDialogProperty, wxluabaseclassbinds_wxEditorDialogProperty, NULL, NULL, NULL, 0, &wxLua_wxEditorDialogProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxEnumProperty, wxEnumProperty_methods, wxEnumProperty_methodCount, CLASSINFO(wxEnumProperty), &wxluatype_wxEnumProperty, wxluabaseclassnames_wxEnumProperty, wxluabaseclassbinds_wxEnumProperty, NULL, NULL, NULL, 0, &wxLua_wxEnumProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxFileProperty, wxFileProperty_methods, wxFileProperty_methodCount, CLASSINFO(wxFileProperty), &wxluatype_wxFileProperty, wxluabaseclassnames_wxFileProperty, wxluabaseclassbinds_wxFileProperty, NULL, NULL, NULL, 0, &wxLua_wxFileProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxFlagsProperty, wxFlagsProperty_methods, wxFlagsProperty_methodCount, CLASSINFO(wxFlagsProperty), &wxluatype_wxFlagsProperty, wxluabaseclassnames_wxFlagsProperty, wxluabaseclassbinds_wxFlagsProperty, NULL, NULL, NULL, 0, &wxLua_wxFlagsProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxFloatProperty, wxFloatProperty_methods, wxFloatProperty_methodCount, CLASSINFO(wxFloatProperty), &wxluatype_wxFloatProperty, wxluabaseclassnames_wxFloatProperty, wxluabaseclassbinds_wxFloatProperty, NULL, NULL, NULL, 0, &wxLua_wxFloatProperty_delete_function, }, - { wxluaclassname_wxFontProperty, wxFontProperty_methods, wxFontProperty_methodCount, CLASSINFO(wxFontProperty), &wxluatype_wxFontProperty, wxluabaseclassnames_wxFontProperty, wxluabaseclassbinds_wxFontProperty, NULL, NULL, NULL, 0, &wxLua_wxFontProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxImageFileProperty, wxImageFileProperty_methods, wxImageFileProperty_methodCount, CLASSINFO(wxImageFileProperty), &wxluatype_wxImageFileProperty, wxluabaseclassnames_wxImageFileProperty, wxluabaseclassbinds_wxImageFileProperty, NULL, NULL, NULL, 0, &wxLua_wxImageFileProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxIntProperty, wxIntProperty_methods, wxIntProperty_methodCount, CLASSINFO(wxIntProperty), &wxluatype_wxIntProperty, wxluabaseclassnames_wxIntProperty, wxluabaseclassbinds_wxIntProperty, NULL, NULL, NULL, 0, &wxLua_wxIntProperty_delete_function, }, - { wxluaclassname_wxLongStringProperty, wxLongStringProperty_methods, wxLongStringProperty_methodCount, CLASSINFO(wxLongStringProperty), &wxluatype_wxLongStringProperty, wxluabaseclassnames_wxLongStringProperty, wxluabaseclassbinds_wxLongStringProperty, NULL, NULL, NULL, 0, &wxLua_wxLongStringProperty_delete_function, }, - { wxluaclassname_wxMultiChoiceProperty, wxMultiChoiceProperty_methods, wxMultiChoiceProperty_methodCount, CLASSINFO(wxMultiChoiceProperty), &wxluatype_wxMultiChoiceProperty, wxluabaseclassnames_wxMultiChoiceProperty, wxluabaseclassbinds_wxMultiChoiceProperty, NULL, NULL, NULL, 0, &wxLua_wxMultiChoiceProperty_delete_function, }, - { wxluaclassname_wxNumericProperty, wxNumericProperty_methods, wxNumericProperty_methodCount, CLASSINFO(wxNumericProperty), &wxluatype_wxNumericProperty, wxluabaseclassnames_wxNumericProperty, wxluabaseclassbinds_wxNumericProperty, NULL, NULL, NULL, 0, &wxLua_wxNumericProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxNumericPropertyValidator, wxNumericPropertyValidator_methods, wxNumericPropertyValidator_methodCount, CLASSINFO(wxNumericPropertyValidator), &wxluatype_wxNumericPropertyValidator, wxluabaseclassnames_wxNumericPropertyValidator, wxluabaseclassbinds_wxNumericPropertyValidator, NULL, NULL, wxNumericPropertyValidator_enums, wxNumericPropertyValidator_enumCount, &wxLua_wxNumericPropertyValidator_delete_function, }, - { wxluaclassname_wxPGArrayEditorDialog, wxPGArrayEditorDialog_methods, wxPGArrayEditorDialog_methodCount, CLASSINFO(wxPGArrayEditorDialog), &wxluatype_wxPGArrayEditorDialog, wxluabaseclassnames_wxPGArrayEditorDialog, wxluabaseclassbinds_wxPGArrayEditorDialog, NULL, NULL, NULL, 0, &wxLua_wxPGArrayEditorDialog_delete_function, }, - { wxluaclassname_wxPGArrayStringEditorDialog, wxPGArrayStringEditorDialog_methods, wxPGArrayStringEditorDialog_methodCount, CLASSINFO(wxPGArrayStringEditorDialog), &wxluatype_wxPGArrayStringEditorDialog, wxluabaseclassnames_wxPGArrayStringEditorDialog, wxluabaseclassbinds_wxPGArrayStringEditorDialog, NULL, NULL, NULL, 0, &wxLua_wxPGArrayStringEditorDialog_delete_function, }, - { wxluaclassname_wxPGAttributeStorage, wxPGAttributeStorage_methods, wxPGAttributeStorage_methodCount, NULL, &wxluatype_wxPGAttributeStorage, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGAttributeStorage_delete_function, }, - { wxluaclassname_wxPGCell, wxPGCell_methods, wxPGCell_methodCount, CLASSINFO(wxPGCell), &wxluatype_wxPGCell, wxluabaseclassnames_wxPGCell, wxluabaseclassbinds_wxPGCell, NULL, NULL, NULL, 0, &wxLua_wxPGCell_delete_function, }, - { wxluaclassname_wxPGCellData, wxPGCellData_methods, wxPGCellData_methodCount, NULL, &wxluatype_wxPGCellData, wxluabaseclassnames_wxPGCellData, wxluabaseclassbinds_wxPGCellData, NULL, NULL, NULL, 0, &wxLua_wxPGCellData_delete_function, }, - { wxluaclassname_wxPGCellRenderer, wxPGCellRenderer_methods, wxPGCellRenderer_methodCount, NULL, &wxluatype_wxPGCellRenderer, wxluabaseclassnames_wxPGCellRenderer, wxluabaseclassbinds_wxPGCellRenderer, NULL, NULL, wxPGCellRenderer_enums, wxPGCellRenderer_enumCount, &wxLua_wxPGCellRenderer_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - { wxluaclassname_wxPGCheckBoxEditor, wxPGCheckBoxEditor_methods, wxPGCheckBoxEditor_methodCount, CLASSINFO(wxPGCheckBoxEditor), &wxluatype_wxPGCheckBoxEditor, wxluabaseclassnames_wxPGCheckBoxEditor, wxluabaseclassbinds_wxPGCheckBoxEditor, NULL, NULL, NULL, 0, &wxLua_wxPGCheckBoxEditor_delete_function, }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxPG_INCLUDE_CHECKBOX) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxPGChoiceAndButtonEditor, wxPGChoiceAndButtonEditor_methods, wxPGChoiceAndButtonEditor_methodCount, CLASSINFO(wxPGChoiceAndButtonEditor), &wxluatype_wxPGChoiceAndButtonEditor, wxluabaseclassnames_wxPGChoiceAndButtonEditor, wxluabaseclassbinds_wxPGChoiceAndButtonEditor, NULL, NULL, NULL, 0, &wxLua_wxPGChoiceAndButtonEditor_delete_function, }, - { wxluaclassname_wxPGChoiceEditor, wxPGChoiceEditor_methods, wxPGChoiceEditor_methodCount, CLASSINFO(wxPGChoiceEditor), &wxluatype_wxPGChoiceEditor, wxluabaseclassnames_wxPGChoiceEditor, wxluabaseclassbinds_wxPGChoiceEditor, NULL, NULL, NULL, 0, &wxLua_wxPGChoiceEditor_delete_function, }, - { wxluaclassname_wxPGChoiceEntry, wxPGChoiceEntry_methods, wxPGChoiceEntry_methodCount, CLASSINFO(wxPGChoiceEntry), &wxluatype_wxPGChoiceEntry, wxluabaseclassnames_wxPGChoiceEntry, wxluabaseclassbinds_wxPGChoiceEntry, NULL, NULL, NULL, 0, &wxLua_wxPGChoiceEntry_delete_function, }, - { wxluaclassname_wxPGChoices, wxPGChoices_methods, wxPGChoices_methodCount, NULL, &wxluatype_wxPGChoices, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGChoices_delete_function, }, - { wxluaclassname_wxPGChoicesData, wxPGChoicesData_methods, wxPGChoicesData_methodCount, NULL, &wxluatype_wxPGChoicesData, wxluabaseclassnames_wxPGChoicesData, wxluabaseclassbinds_wxPGChoicesData, NULL, NULL, NULL, 0, &wxLua_wxPGChoicesData_delete_function, }, - { wxluaclassname_wxPGComboBoxEditor, wxPGComboBoxEditor_methods, wxPGComboBoxEditor_methodCount, CLASSINFO(wxPGComboBoxEditor), &wxluatype_wxPGComboBoxEditor, wxluabaseclassnames_wxPGComboBoxEditor, wxluabaseclassbinds_wxPGComboBoxEditor, NULL, NULL, NULL, 0, &wxLua_wxPGComboBoxEditor_delete_function, }, - { wxluaclassname_wxPGDefaultRenderer, wxPGDefaultRenderer_methods, wxPGDefaultRenderer_methodCount, NULL, &wxluatype_wxPGDefaultRenderer, wxluabaseclassnames_wxPGDefaultRenderer, wxluabaseclassbinds_wxPGDefaultRenderer, NULL, NULL, NULL, 0, &wxLua_wxPGDefaultRenderer_delete_function, }, - { wxluaclassname_wxPGEditor, wxPGEditor_methods, wxPGEditor_methodCount, CLASSINFO(wxPGEditor), &wxluatype_wxPGEditor, wxluabaseclassnames_wxPGEditor, wxluabaseclassbinds_wxPGEditor, NULL, NULL, NULL, 0, &wxLua_wxPGEditor_delete_function, }, - { wxluaclassname_wxPGEditorDialogAdapter, wxPGEditorDialogAdapter_methods, wxPGEditorDialogAdapter_methodCount, CLASSINFO(wxPGEditorDialogAdapter), &wxluatype_wxPGEditorDialogAdapter, wxluabaseclassnames_wxPGEditorDialogAdapter, wxluabaseclassbinds_wxPGEditorDialogAdapter, NULL, NULL, NULL, 0, &wxLua_wxPGEditorDialogAdapter_delete_function, }, - { wxluaclassname_wxPGMultiButton, wxPGMultiButton_methods, wxPGMultiButton_methodCount, CLASSINFO(wxPGMultiButton), &wxluatype_wxPGMultiButton, wxluabaseclassnames_wxPGMultiButton, wxluabaseclassbinds_wxPGMultiButton, NULL, NULL, NULL, 0, &wxLua_wxPGMultiButton_delete_function, }, - { wxluaclassname_wxPGPaintData, wxPGPaintData_methods, wxPGPaintData_methodCount, NULL, &wxluatype_wxPGPaintData, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGPaintData_delete_function, }, - { wxluaclassname_wxPGPropArgCls, wxPGPropArgCls_methods, wxPGPropArgCls_methodCount, NULL, &wxluatype_wxPGPropArgCls, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGPropArgCls_delete_function, }, - { wxluaclassname_wxPGProperty, wxPGProperty_methods, wxPGProperty_methodCount, CLASSINFO(wxPGProperty), &wxluatype_wxPGProperty, wxluabaseclassnames_wxPGProperty, wxluabaseclassbinds_wxPGProperty, NULL, NULL, NULL, 0, &wxLua_wxPGProperty_delete_function, }, - { wxluaclassname_wxPGRootProperty, wxPGRootProperty_methods, wxPGRootProperty_methodCount, CLASSINFO(wxPGRootProperty), &wxluatype_wxPGRootProperty, wxluabaseclassnames_wxPGRootProperty, wxluabaseclassbinds_wxPGRootProperty, NULL, NULL, NULL, 0, &wxLua_wxPGRootProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - { wxluaclassname_wxPGSpinCtrlEditor, wxPGSpinCtrlEditor_methods, wxPGSpinCtrlEditor_methodCount, CLASSINFO(wxPGSpinCtrlEditor), &wxluatype_wxPGSpinCtrlEditor, wxluabaseclassnames_wxPGSpinCtrlEditor, wxluabaseclassbinds_wxPGSpinCtrlEditor, NULL, NULL, NULL, 0, &wxLua_wxPGSpinCtrlEditor_delete_function, }, -#endif // (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) && (wxUSE_SPINBTN && wxLUA_USE_wxSpinButton) - -#if wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - { wxluaclassname_wxPGTextCtrlAndButtonEditor, wxPGTextCtrlAndButtonEditor_methods, wxPGTextCtrlAndButtonEditor_methodCount, CLASSINFO(wxPGTextCtrlAndButtonEditor), &wxluatype_wxPGTextCtrlAndButtonEditor, wxluabaseclassnames_wxPGTextCtrlAndButtonEditor, wxluabaseclassbinds_wxPGTextCtrlAndButtonEditor, NULL, NULL, NULL, 0, &wxLua_wxPGTextCtrlAndButtonEditor_delete_function, }, - { wxluaclassname_wxPGTextCtrlEditor, wxPGTextCtrlEditor_methods, wxPGTextCtrlEditor_methodCount, CLASSINFO(wxPGTextCtrlEditor), &wxluatype_wxPGTextCtrlEditor, wxluabaseclassnames_wxPGTextCtrlEditor, wxluabaseclassbinds_wxPGTextCtrlEditor, NULL, NULL, NULL, 0, &wxLua_wxPGTextCtrlEditor_delete_function, }, - { wxluaclassname_wxPGVIterator, wxPGVIterator_methods, wxPGVIterator_methodCount, NULL, &wxluatype_wxPGVIterator, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGVIterator_delete_function, }, - { wxluaclassname_wxPGVIteratorBase, wxPGVIteratorBase_methods, wxPGVIteratorBase_methodCount, NULL, &wxluatype_wxPGVIteratorBase, wxluabaseclassnames_wxPGVIteratorBase, wxluabaseclassbinds_wxPGVIteratorBase, NULL, NULL, NULL, 0, &wxLua_wxPGVIteratorBase_delete_function, }, - { wxluaclassname_wxPGValidationInfo, wxPGValidationInfo_methods, wxPGValidationInfo_methodCount, NULL, &wxluatype_wxPGValidationInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGValidationInfo_delete_function, }, - { wxluaclassname_wxPGWindowList, wxPGWindowList_methods, wxPGWindowList_methodCount, NULL, &wxluatype_wxPGWindowList, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPGWindowList_delete_function, }, - { wxluaclassname_wxPropertyCategory, wxPropertyCategory_methods, wxPropertyCategory_methodCount, CLASSINFO(wxPropertyCategory), &wxluatype_wxPropertyCategory, wxluabaseclassnames_wxPropertyCategory, wxluabaseclassbinds_wxPropertyCategory, NULL, NULL, NULL, 0, &wxLua_wxPropertyCategory_delete_function, }, - { wxluaclassname_wxPropertyGrid, wxPropertyGrid_methods, wxPropertyGrid_methodCount, NULL, &wxluatype_wxPropertyGrid, wxluabaseclassnames_wxPropertyGrid, wxluabaseclassbinds_wxPropertyGrid, wxluabaseclass_wxluatypes_wxPropertyGrid, wxluabaseclass_vtable_offsets_wxPropertyGrid, NULL, 0, &wxLua_wxPropertyGrid_delete_function, }, - { wxluaclassname_wxPropertyGridConstIterator, wxPropertyGridConstIterator_methods, wxPropertyGridConstIterator_methodCount, NULL, &wxluatype_wxPropertyGridConstIterator, wxluabaseclassnames_wxPropertyGridConstIterator, wxluabaseclassbinds_wxPropertyGridConstIterator, NULL, NULL, NULL, 0, &wxLua_wxPropertyGridConstIterator_delete_function, }, - { wxluaclassname_wxPropertyGridEvent, wxPropertyGridEvent_methods, wxPropertyGridEvent_methodCount, CLASSINFO(wxPropertyGridEvent), &wxluatype_wxPropertyGridEvent, wxluabaseclassnames_wxPropertyGridEvent, wxluabaseclassbinds_wxPropertyGridEvent, NULL, NULL, NULL, 0, &wxLua_wxPropertyGridEvent_delete_function, }, - { wxluaclassname_wxPropertyGridHitTestResult, wxPropertyGridHitTestResult_methods, wxPropertyGridHitTestResult_methodCount, NULL, &wxluatype_wxPropertyGridHitTestResult, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPropertyGridHitTestResult_delete_function, }, - { wxluaclassname_wxPropertyGridInterface, wxPropertyGridInterface_methods, wxPropertyGridInterface_methodCount, NULL, &wxluatype_wxPropertyGridInterface, NULL, NULL, NULL, NULL, wxPropertyGridInterface_enums, wxPropertyGridInterface_enumCount, &wxLua_wxPropertyGridInterface_delete_function, }, - { wxluaclassname_wxPropertyGridIteratorBase, wxPropertyGridIteratorBase_methods, wxPropertyGridIteratorBase_methodCount, NULL, &wxluatype_wxPropertyGridIteratorBase, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPropertyGridIteratorBase_delete_function, }, - { wxluaclassname_wxPropertyGridManager, wxPropertyGridManager_methods, wxPropertyGridManager_methodCount, CLASSINFO(wxPropertyGridManager), &wxluatype_wxPropertyGridManager, wxluabaseclassnames_wxPropertyGridManager, wxluabaseclassbinds_wxPropertyGridManager, wxluabaseclass_wxluatypes_wxPropertyGridManager, wxluabaseclass_vtable_offsets_wxPropertyGridManager, NULL, 0, &wxLua_wxPropertyGridManager_delete_function, }, - { wxluaclassname_wxPropertyGridPage, wxPropertyGridPage_methods, wxPropertyGridPage_methodCount, CLASSINFO(wxPropertyGridPage), &wxluatype_wxPropertyGridPage, wxluabaseclassnames_wxPropertyGridPage, wxluabaseclassbinds_wxPropertyGridPage, wxluabaseclass_wxluatypes_wxPropertyGridPage, wxluabaseclass_vtable_offsets_wxPropertyGridPage, NULL, 0, &wxLua_wxPropertyGridPage_delete_function, }, - { wxluaclassname_wxPropertyGridPageState, wxPropertyGridPageState_methods, wxPropertyGridPageState_methodCount, NULL, &wxluatype_wxPropertyGridPageState, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxPropertyGridPageState_delete_function, }, - { wxluaclassname_wxStringProperty, wxStringProperty_methods, wxStringProperty_methodCount, CLASSINFO(wxStringProperty), &wxluatype_wxStringProperty, wxluabaseclassnames_wxStringProperty, wxluabaseclassbinds_wxStringProperty, NULL, NULL, NULL, 0, &wxLua_wxStringProperty_delete_function, }, - { wxluaclassname_wxSystemColourProperty, wxSystemColourProperty_methods, wxSystemColourProperty_methodCount, CLASSINFO(wxSystemColourProperty), &wxluatype_wxSystemColourProperty, wxluabaseclassnames_wxSystemColourProperty, wxluabaseclassbinds_wxSystemColourProperty, NULL, NULL, NULL, 0, &wxLua_wxSystemColourProperty_delete_function, }, -#endif // wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID - -#if (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - { wxluaclassname_wxUIntProperty, wxUIntProperty_methods, wxUIntProperty_methodCount, CLASSINFO(wxUIntProperty), &wxluatype_wxUIntProperty, wxluabaseclassnames_wxUIntProperty, wxluabaseclassbinds_wxUIntProperty, NULL, NULL, NULL, 0, &wxLua_wxUIntProperty_delete_function, }, -#endif // (wxCHECK_VERSION(3,2,0)) && (wxLUA_USE_wxPropertyGrid && wxCHECK_VERSION(2,9,0) && wxUSE_PROPGRID) - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxpropgrid() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxpropgrid, wxLuaBinding) - -wxLuaBinding_wxpropgrid::wxLuaBinding_wxpropgrid() : wxLuaBinding() -{ - m_bindingName = wxT("wxpropgrid"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxpropgrid(m_classCount); - m_numberArray = wxLuaGetDefineList_wxpropgrid(m_numberCount); - m_stringArray = wxLuaGetStringList_wxpropgrid(m_stringCount); - m_eventArray = wxLuaGetEventList_wxpropgrid(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxpropgrid(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxpropgrid(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxpropgrid_init() -{ - static wxLuaBinding_wxpropgrid m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxrichtext_bind.cpp b/wxLua/modules/wxbind/src/wxrichtext_bind.cpp deleted file mode 100644 index 7caf396a..00000000 --- a/wxLua/modules/wxbind/src/wxrichtext_bind.cpp +++ /dev/null @@ -1,48489 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxrichtext_richtext.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxrichtext_bind.h" -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - static wxRichTextRange wxRICHTEXT_ALL_S = wxRICHTEXT_ALL; - static wxRichTextRange wxRICHTEXT_NONE_S = wxRICHTEXT_NONE; - static wxRichTextRange wxRICHTEXT_NO_SELECTION_S = wxRICHTEXT_NO_SELECTION; -#undef wxRICHTEXT_ALL -#undef wxRICHTEXT_NONE -#undef wxRICHTEXT_NO_SELECTION -#define wxRICHTEXT_ALL wxRICHTEXT_ALL_S -#define wxRICHTEXT_NONE wxRICHTEXT_NONE_S -#define wxRICHTEXT_NO_SELECTION wxRICHTEXT_NO_SELECTION_S - static wxRect wxNULLRECT = wxRect(); - static wxPoint wxNULLPOINT = wxPoint(0, 0); - static wxRichTextAttr wxDEFAULT_RICHTEXTATTR = wxRichTextAttr(); -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextAttrDimension -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttrDimension' -int wxluatype_wxTextAttrDimension = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_Apply[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_Apply[1] = {{ wxLua_wxTextAttrDimension_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrDimension_Apply }}; -// bool Apply(const wxTextAttrDimension& dim, const wxTextAttrDimension* compareWith = NULL); -static int LUACALL wxLua_wxTextAttrDimension_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextAttrDimension compareWith = NULL - const wxTextAttrDimension * compareWith = (argCount >= 3 ? (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimension) : NULL); - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call Apply - bool returns = (self->Apply(*dim, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_CollectCommonAttributes[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_CollectCommonAttributes[1] = {{ wxLua_wxTextAttrDimension_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextAttrDimension_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxTextAttrDimension& attr, wxTextAttrDimension& clashingAttr, wxTextAttrDimension& absentAttr); -static int LUACALL wxLua_wxTextAttrDimension_CollectCommonAttributes(lua_State *L) -{ - // wxTextAttrDimension absentAttr - wxTextAttrDimension * absentAttr = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttrDimension); - // wxTextAttrDimension clashingAttr - wxTextAttrDimension * clashingAttr = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimension); - // const wxTextAttrDimension attr - const wxTextAttrDimension * attr = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_EqPartial[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_EqPartial[1] = {{ wxLua_wxTextAttrDimension_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrDimension_EqPartial }}; -// bool EqPartial(const wxTextAttrDimension& dim, bool weakTest = true) const; -static int LUACALL wxLua_wxTextAttrDimension_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call EqPartial - bool returns = (self->EqPartial(*dim, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_GetFlags[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_GetFlags[1] = {{ wxLua_wxTextAttrDimension_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_GetFlags }}; -// wxTextAttrDimensionFlags GetFlags() const; -static int LUACALL wxLua_wxTextAttrDimension_GetFlags(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call GetFlags - wxTextAttrDimensionFlags returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_GetPosition[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_GetPosition[1] = {{ wxLua_wxTextAttrDimension_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_GetPosition }}; -// wxTextBoxAttrPosition GetPosition() const; -static int LUACALL wxLua_wxTextAttrDimension_GetPosition(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call GetPosition - wxTextBoxAttrPosition returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_GetUnits[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_GetUnits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_GetUnits[1] = {{ wxLua_wxTextAttrDimension_GetUnits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_GetUnits }}; -// wxTextAttrUnits GetUnits() const; -static int LUACALL wxLua_wxTextAttrDimension_GetUnits(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call GetUnits - wxTextAttrUnits returns = (self->GetUnits()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_GetValue[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_GetValue[1] = {{ wxLua_wxTextAttrDimension_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_GetValue }}; -// int GetValue() const; -static int LUACALL wxLua_wxTextAttrDimension_GetValue(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call GetValue - int returns = (self->GetValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_GetValueMM[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_GetValueMM(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_GetValueMM[1] = {{ wxLua_wxTextAttrDimension_GetValueMM, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_GetValueMM }}; -// float GetValueMM() const; -static int LUACALL wxLua_wxTextAttrDimension_GetValueMM(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call GetValueMM - float returns = (self->GetValueMM()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_Get_m_flags[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_Get_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_Get_m_flags[1] = {{ wxLua_wxTextAttrDimension_Get_m_flags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_Get_m_flags }}; -// wxTextAttrDimensionFlags m_flags; -static int LUACALL wxLua_wxTextAttrDimension_Get_m_flags(lua_State *L) -{ - // get this - wxTextAttrDimension *self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_flags) == (double)(self->m_flags)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_flags); -} else -#endif -{ - lua_pushnumber(L, self->m_flags); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_Get_m_value[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_Get_m_value(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_Get_m_value[1] = {{ wxLua_wxTextAttrDimension_Get_m_value, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_Get_m_value }}; -// int m_value; -static int LUACALL wxLua_wxTextAttrDimension_Get_m_value(lua_State *L) -{ - // get this - wxTextAttrDimension *self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_value) == (double)(self->m_value)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_value); -} else -#endif -{ - lua_pushnumber(L, self->m_value); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_IsValid[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_IsValid[1] = {{ wxLua_wxTextAttrDimension_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxTextAttrDimension_IsValid(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_Reset[] = { &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_Reset[1] = {{ wxLua_wxTextAttrDimension_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxTextAttrDimension_Reset(lua_State *L) -{ - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetFlags[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetFlags[1] = {{ wxLua_wxTextAttrDimension_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetFlags }}; -// void SetFlags(wxTextAttrDimensionFlags flags); -static int LUACALL wxLua_wxTextAttrDimension_SetFlags(lua_State *L) -{ - // wxTextAttrDimensionFlags flags - wxTextAttrDimensionFlags flags = (wxTextAttrDimensionFlags)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetPosition[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetPosition[1] = {{ wxLua_wxTextAttrDimension_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetPosition }}; -// void SetPosition(wxTextBoxAttrPosition pos); -static int LUACALL wxLua_wxTextAttrDimension_SetPosition(lua_State *L) -{ - // wxTextBoxAttrPosition pos - wxTextBoxAttrPosition pos = (wxTextBoxAttrPosition)wxlua_getenumtype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetUnits[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetUnits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetUnits[1] = {{ wxLua_wxTextAttrDimension_SetUnits, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetUnits }}; -// void SetUnits(wxTextAttrUnits units); -static int LUACALL wxLua_wxTextAttrDimension_SetUnits(lua_State *L) -{ - // wxTextAttrUnits units - wxTextAttrUnits units = (wxTextAttrUnits)wxlua_getenumtype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetUnits - self->SetUnits(units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValid[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValid[1] = {{ wxLua_wxTextAttrDimension_SetValid, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValid }}; -// void SetValid(bool b); -static int LUACALL wxLua_wxTextAttrDimension_SetValid(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetValid - self->SetValid(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue3[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetValue3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValue3[1] = {{ wxLua_wxTextAttrDimension_SetValue3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue3 }}; -// void SetValue(const wxTextAttrDimension& dim); -static int LUACALL wxLua_wxTextAttrDimension_SetValue3(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetValue - self->SetValue(*dim); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue2[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetValue2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValue2[1] = {{ wxLua_wxTextAttrDimension_SetValue2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue2 }}; -// void SetValue(int value, wxTextAttrUnits units); -static int LUACALL wxLua_wxTextAttrDimension_SetValue2(lua_State *L) -{ - // wxTextAttrUnits units - wxTextAttrUnits units = (wxTextAttrUnits)wxlua_getenumtype(L, 3); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetValue - self->SetValue(value, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue1[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetValue1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValue1[1] = {{ wxLua_wxTextAttrDimension_SetValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue1 }}; -// void SetValue(int value, wxTextAttrDimensionFlags flags); -static int LUACALL wxLua_wxTextAttrDimension_SetValue1(lua_State *L) -{ - // wxTextAttrDimensionFlags flags - wxTextAttrDimensionFlags flags = (wxTextAttrDimensionFlags)wxlua_getnumbertype(L, 3); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetValue - self->SetValue(value, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetValue(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValue[1] = {{ wxLua_wxTextAttrDimension_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue }}; -// void SetValue(int value); -static int LUACALL wxLua_wxTextAttrDimension_SetValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValueMM[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_SetValueMM(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValueMM[1] = {{ wxLua_wxTextAttrDimension_SetValueMM, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValueMM }}; -// void SetValueMM(float value); -static int LUACALL wxLua_wxTextAttrDimension_SetValueMM(lua_State *L) -{ - // float value - float value = (float)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetValueMM - self->SetValueMM(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_Set_m_flags[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_Set_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_Set_m_flags[1] = {{ wxLua_wxTextAttrDimension_Set_m_flags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_Set_m_flags }}; -// wxTextAttrDimensionFlags m_flags; -static int LUACALL wxLua_wxTextAttrDimension_Set_m_flags(lua_State *L) -{ - // get the number value - wxTextAttrDimensionFlags val = (wxTextAttrDimensionFlags)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension *self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - self->m_flags = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_Set_m_value[] = { &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_Set_m_value(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_Set_m_value[1] = {{ wxLua_wxTextAttrDimension_Set_m_value, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_Set_m_value }}; -// int m_value; -static int LUACALL wxLua_wxTextAttrDimension_Set_m_value(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimension *self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - self->m_value = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_delete[] = { &wxluatype_wxTextAttrDimension, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimension_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_op_eq[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_op_eq[1] = {{ wxLua_wxTextAttrDimension_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_op_eq }}; -// bool operator==(const wxTextAttrDimension& dim) const; -static int LUACALL wxLua_wxTextAttrDimension_op_eq(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimension * self = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call op_eq - bool returns = ((*self)==(*dim)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimension_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrDimension_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_constructor1[1] = {{ wxLua_wxTextAttrDimension_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_constructor1 }}; -// wxTextAttrDimension(int value, wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM); -static int LUACALL wxLua_wxTextAttrDimension_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM - wxTextAttrUnits units = (argCount >= 2 ? (wxTextAttrUnits)wxlua_getenumtype(L, 2) : wxTEXT_ATTR_UNITS_TENTHS_MM); - // int value - int value = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxTextAttrDimension* returns = new wxTextAttrDimension(value, units); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrDimension); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static int LUACALL wxLua_wxTextAttrDimension_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_constructor[1] = {{ wxLua_wxTextAttrDimension_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextAttrDimension(); -static int LUACALL wxLua_wxTextAttrDimension_constructor(lua_State *L) -{ - // call constructor - wxTextAttrDimension* returns = new wxTextAttrDimension(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrDimension); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_SetValue_overload[] = -{ - { wxLua_wxTextAttrDimension_SetValue3, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue3 }, - { wxLua_wxTextAttrDimension_SetValue2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue2 }, - { wxLua_wxTextAttrDimension_SetValue1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue1 }, - { wxLua_wxTextAttrDimension_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_SetValue }, -}; -static int s_wxluafunc_wxLua_wxTextAttrDimension_SetValue_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimension_SetValue_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimension_constructor_overload[] = -{ - { wxLua_wxTextAttrDimension_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxTextAttrDimension_constructor1 }, - { wxLua_wxTextAttrDimension_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTextAttrDimension_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimension_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxTextAttrDimension_delete_function(void** p) -{ - wxTextAttrDimension* o = (wxTextAttrDimension*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttrDimension_methods[] = { - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_CollectCommonAttributes, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_EqPartial, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_GetFlags, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_GetPosition, 1, NULL }, - { "GetUnits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_GetUnits, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_GetValue, 1, NULL }, - { "GetValueMM", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_GetValueMM, 1, NULL }, - // %member { "Get_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_Get_m_flags, 1, NULL }, - // %member { "Get_m_value", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_Get_m_value, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_IsValid, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_Reset, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_SetFlags, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_SetPosition, 1, NULL }, - { "SetUnits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_SetUnits, 1, NULL }, - { "SetValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_SetValid, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_SetValue_overload, s_wxluafunc_wxLua_wxTextAttrDimension_SetValue_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetValueMM", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_SetValueMM, 1, NULL }, - // %member { "Set_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_Set_m_flags, 1, NULL }, - // %member { "Set_m_value", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_Set_m_value, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttrDimension_delete, 1, NULL }, - { "m_flags", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimension_Set_m_flags, 1, NULL }, - { "m_flags", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimension_Get_m_flags, 1, NULL }, - { "m_value", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimension_Set_m_value, 1, NULL }, - { "m_value", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimension_Get_m_value, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimension_op_eq, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxTextAttrDimension", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttrDimension_constructor_overload, s_wxluafunc_wxLua_wxTextAttrDimension_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxTextAttrDimension_methodCount = sizeof(wxTextAttrDimension_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextAttrDimensions -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttrDimensions' -int wxluatype_wxTextAttrDimensions = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Apply[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Apply[1] = {{ wxLua_wxTextAttrDimensions_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Apply }}; -// bool Apply(const wxTextAttrDimensions& dims, const wxTextAttrDimensions* compareWith = NULL); -static int LUACALL wxLua_wxTextAttrDimensions_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextAttrDimensions compareWith = NULL - const wxTextAttrDimensions * compareWith = (argCount >= 3 ? (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimensions) : NULL); - // const wxTextAttrDimensions dims - const wxTextAttrDimensions * dims = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call Apply - bool returns = (self->Apply(*dims, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_CollectCommonAttributes[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_CollectCommonAttributes[1] = {{ wxLua_wxTextAttrDimensions_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextAttrDimensions_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxTextAttrDimensions& attr, wxTextAttrDimensions& clashingAttr, wxTextAttrDimensions& absentAttr); -static int LUACALL wxLua_wxTextAttrDimensions_CollectCommonAttributes(lua_State *L) -{ - // wxTextAttrDimensions absentAttr - wxTextAttrDimensions * absentAttr = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttrDimensions); - // wxTextAttrDimensions clashingAttr - wxTextAttrDimensions * clashingAttr = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimensions); - // const wxTextAttrDimensions attr - const wxTextAttrDimensions * attr = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_EqPartial[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_EqPartial[1] = {{ wxLua_wxTextAttrDimensions_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensions_EqPartial }}; -// bool EqPartial(const wxTextAttrDimensions& dims, bool weakTest = true) const; -static int LUACALL wxLua_wxTextAttrDimensions_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextAttrDimensions dims - const wxTextAttrDimensions * dims = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call EqPartial - bool returns = (self->EqPartial(*dims, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetBottom1[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetBottom1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom1[1] = {{ wxLua_wxTextAttrDimensions_GetBottom1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetBottom1 }}; -// wxTextAttrDimension& GetBottom(); -static int LUACALL wxLua_wxTextAttrDimensions_GetBottom1(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetBottom - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetBottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetBottom[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetBottom(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom[1] = {{ wxLua_wxTextAttrDimensions_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetBottom }}; -// const wxTextAttrDimension& GetBottom() const; -static int LUACALL wxLua_wxTextAttrDimensions_GetBottom(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetBottom - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetBottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetLeft1[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetLeft1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft1[1] = {{ wxLua_wxTextAttrDimensions_GetLeft1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetLeft1 }}; -// wxTextAttrDimension& GetLeft(); -static int LUACALL wxLua_wxTextAttrDimensions_GetLeft1(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetLeft - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetLeft(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetLeft[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetLeft(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft[1] = {{ wxLua_wxTextAttrDimensions_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetLeft }}; -// const wxTextAttrDimension& GetLeft() const; -static int LUACALL wxLua_wxTextAttrDimensions_GetLeft(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetLeft - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetLeft(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetRight1[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetRight1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight1[1] = {{ wxLua_wxTextAttrDimensions_GetRight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetRight1 }}; -// wxTextAttrDimension& GetRight(); -static int LUACALL wxLua_wxTextAttrDimensions_GetRight1(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetRight - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetRight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetRight[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetRight(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight[1] = {{ wxLua_wxTextAttrDimensions_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetRight }}; -// const wxTextAttrDimension& GetRight() const; -static int LUACALL wxLua_wxTextAttrDimensions_GetRight(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetRight - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetRight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetTop1[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetTop1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop1[1] = {{ wxLua_wxTextAttrDimensions_GetTop1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetTop1 }}; -// wxTextAttrDimension& GetTop(); -static int LUACALL wxLua_wxTextAttrDimensions_GetTop1(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetTop - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetTop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetTop[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_GetTop(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop[1] = {{ wxLua_wxTextAttrDimensions_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetTop }}; -// const wxTextAttrDimension& GetTop() const; -static int LUACALL wxLua_wxTextAttrDimensions_GetTop(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call GetTop - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetTop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_bottom[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_bottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_bottom[1] = {{ wxLua_wxTextAttrDimensions_Get_m_bottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_bottom }}; -// wxTextAttrDimension m_bottom; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_bottom(lua_State *L) -{ - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_bottom, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_left[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_left(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_left[1] = {{ wxLua_wxTextAttrDimensions_Get_m_left, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_left }}; -// wxTextAttrDimension m_left; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_left(lua_State *L) -{ - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_left, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_right[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_right(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_right[1] = {{ wxLua_wxTextAttrDimensions_Get_m_right, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_right }}; -// wxTextAttrDimension m_right; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_right(lua_State *L) -{ - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_right, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_top[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_top(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_top[1] = {{ wxLua_wxTextAttrDimensions_Get_m_top, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Get_m_top }}; -// wxTextAttrDimension m_top; -static int LUACALL wxLua_wxTextAttrDimensions_Get_m_top(lua_State *L) -{ - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_top, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_IsValid[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_IsValid[1] = {{ wxLua_wxTextAttrDimensions_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxTextAttrDimensions_IsValid(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_RemoveStyle[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_RemoveStyle[1] = {{ wxLua_wxTextAttrDimensions_RemoveStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensions_RemoveStyle }}; -// bool RemoveStyle(const wxTextAttrDimensions& attr); -static int LUACALL wxLua_wxTextAttrDimensions_RemoveStyle(lua_State *L) -{ - // const wxTextAttrDimensions attr - const wxTextAttrDimensions * attr = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call RemoveStyle - bool returns = (self->RemoveStyle(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Reset[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Reset[1] = {{ wxLua_wxTextAttrDimensions_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxTextAttrDimensions_Reset(lua_State *L) -{ - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_bottom[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_bottom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_bottom[1] = {{ wxLua_wxTextAttrDimensions_Set_m_bottom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_bottom }}; -// wxTextAttrDimension m_bottom; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_bottom(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - self->m_bottom = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_left[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_left(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_left[1] = {{ wxLua_wxTextAttrDimensions_Set_m_left, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_left }}; -// wxTextAttrDimension m_left; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_left(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - self->m_left = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_right[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_right(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_right[1] = {{ wxLua_wxTextAttrDimensions_Set_m_right, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_right }}; -// wxTextAttrDimension m_right; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_right(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - self->m_right = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_top[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_top(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_top[1] = {{ wxLua_wxTextAttrDimensions_Set_m_top, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensions_Set_m_top }}; -// wxTextAttrDimension m_top; -static int LUACALL wxLua_wxTextAttrDimensions_Set_m_top(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimensions *self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - self->m_top = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_delete[] = { &wxluatype_wxTextAttrDimensions, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensions_op_eq[] = { &wxluatype_wxTextAttrDimensions, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextAttrDimensions_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_op_eq[1] = {{ wxLua_wxTextAttrDimensions_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensions_op_eq }}; -// bool operator==(const wxTextAttrDimensions& dims) const; -static int LUACALL wxLua_wxTextAttrDimensions_op_eq(lua_State *L) -{ - // const wxTextAttrDimensions dims - const wxTextAttrDimensions * dims = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextAttrDimensions * self = (wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensions); - // call op_eq - bool returns = ((*self)==(*dims)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxTextAttrDimensions_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_constructor[1] = {{ wxLua_wxTextAttrDimensions_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextAttrDimensions(); -static int LUACALL wxLua_wxTextAttrDimensions_constructor(lua_State *L) -{ - // call constructor - wxTextAttrDimensions* returns = new wxTextAttrDimensions(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrDimensions); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom_overload[] = -{ - { wxLua_wxTextAttrDimensions_GetBottom1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetBottom1 }, - { wxLua_wxTextAttrDimensions_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetBottom }, -}; -static int s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft_overload[] = -{ - { wxLua_wxTextAttrDimensions_GetLeft1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetLeft1 }, - { wxLua_wxTextAttrDimensions_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetLeft }, -}; -static int s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight_overload[] = -{ - { wxLua_wxTextAttrDimensions_GetRight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetRight1 }, - { wxLua_wxTextAttrDimensions_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetRight }, -}; -static int s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop_overload[] = -{ - { wxLua_wxTextAttrDimensions_GetTop1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetTop1 }, - { wxLua_wxTextAttrDimensions_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensions_GetTop }, -}; -static int s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxTextAttrDimensions_delete_function(void** p) -{ - wxTextAttrDimensions* o = (wxTextAttrDimensions*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttrDimensions_methods[] = { - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_CollectCommonAttributes, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_EqPartial, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom_overload, s_wxluafunc_wxLua_wxTextAttrDimensions_GetBottom_overload_count, 0 }, - { "GetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft_overload, s_wxluafunc_wxLua_wxTextAttrDimensions_GetLeft_overload_count, 0 }, - { "GetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight_overload, s_wxluafunc_wxLua_wxTextAttrDimensions_GetRight_overload_count, 0 }, - { "GetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop_overload, s_wxluafunc_wxLua_wxTextAttrDimensions_GetTop_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_bottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_bottom, 1, NULL }, - // %member { "Get_m_left", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_left, 1, NULL }, - // %member { "Get_m_right", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_right, 1, NULL }, - // %member { "Get_m_top", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_top, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_IsValid, 1, NULL }, - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_RemoveStyle, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Reset, 1, NULL }, - // %member { "Set_m_bottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_bottom, 1, NULL }, - // %member { "Set_m_left", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_left, 1, NULL }, - // %member { "Set_m_right", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_right, 1, NULL }, - // %member { "Set_m_top", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_top, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttrDimensions_delete, 1, NULL }, - { "m_bottom", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_bottom, 1, NULL }, - { "m_bottom", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_bottom, 1, NULL }, - { "m_left", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_left, 1, NULL }, - { "m_left", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_left, 1, NULL }, - { "m_right", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_right, 1, NULL }, - { "m_right", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_right, 1, NULL }, - { "m_top", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Set_m_top, 1, NULL }, - { "m_top", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensions_Get_m_top, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensions_op_eq, 1, NULL }, - { "wxTextAttrDimensions", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttrDimensions_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextAttrDimensions_methodCount = sizeof(wxTextAttrDimensions_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextAttrSize -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttrSize' -int wxluatype_wxTextAttrSize = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_Apply[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_Apply[1] = {{ wxLua_wxTextAttrSize_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_Apply }}; -// bool Apply(const wxTextAttrSize& dims, const wxTextAttrSize* compareWith = NULL); -static int LUACALL wxLua_wxTextAttrSize_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextAttrSize compareWith = NULL - const wxTextAttrSize * compareWith = (argCount >= 3 ? (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrSize) : NULL); - // const wxTextAttrSize dims - const wxTextAttrSize * dims = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call Apply - bool returns = (self->Apply(*dims, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_CollectCommonAttributes[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_CollectCommonAttributes[1] = {{ wxLua_wxTextAttrSize_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextAttrSize_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxTextAttrSize& attr, wxTextAttrSize& clashingAttr, wxTextAttrSize& absentAttr); -static int LUACALL wxLua_wxTextAttrSize_CollectCommonAttributes(lua_State *L) -{ - // wxTextAttrSize absentAttr - wxTextAttrSize * absentAttr = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttrSize); - // wxTextAttrSize clashingAttr - wxTextAttrSize * clashingAttr = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrSize); - // const wxTextAttrSize attr - const wxTextAttrSize * attr = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_EqPartial[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttrSize_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_EqPartial[1] = {{ wxLua_wxTextAttrSize_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_EqPartial }}; -// bool EqPartial(const wxTextAttrSize& size, bool weakTest = true) const; -static int LUACALL wxLua_wxTextAttrSize_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextAttrSize size - const wxTextAttrSize * size = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call EqPartial - bool returns = (self->EqPartial(*size, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_GetHeight1[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_GetHeight1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_GetHeight1[1] = {{ wxLua_wxTextAttrSize_GetHeight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetHeight1 }}; -// const wxTextAttrDimension& GetHeight() const; -static int LUACALL wxLua_wxTextAttrSize_GetHeight1(lua_State *L) -{ - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call GetHeight - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetHeight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_GetHeight[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_GetHeight(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_GetHeight[1] = {{ wxLua_wxTextAttrSize_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetHeight }}; -// wxTextAttrDimension& GetHeight(); -static int LUACALL wxLua_wxTextAttrSize_GetHeight(lua_State *L) -{ - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call GetHeight - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetHeight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_GetWidth1[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_GetWidth1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_GetWidth1[1] = {{ wxLua_wxTextAttrSize_GetWidth1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetWidth1 }}; -// const wxTextAttrDimension& GetWidth() const; -static int LUACALL wxLua_wxTextAttrSize_GetWidth1(lua_State *L) -{ - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call GetWidth - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetWidth(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_GetWidth[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_GetWidth(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_GetWidth[1] = {{ wxLua_wxTextAttrSize_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetWidth }}; -// wxTextAttrDimension& GetWidth(); -static int LUACALL wxLua_wxTextAttrSize_GetWidth(lua_State *L) -{ - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call GetWidth - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetWidth(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_Get_m_height[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_Get_m_height(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_Get_m_height[1] = {{ wxLua_wxTextAttrSize_Get_m_height, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_Get_m_height }}; -// wxTextAttrDimension m_height; -static int LUACALL wxLua_wxTextAttrSize_Get_m_height(lua_State *L) -{ - // get this - wxTextAttrSize *self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_height, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_Get_m_width[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_Get_m_width(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_Get_m_width[1] = {{ wxLua_wxTextAttrSize_Get_m_width, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_Get_m_width }}; -// wxTextAttrDimension m_width; -static int LUACALL wxLua_wxTextAttrSize_Get_m_width(lua_State *L) -{ - // get this - wxTextAttrSize *self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_width, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_IsValid[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_IsValid[1] = {{ wxLua_wxTextAttrSize_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxTextAttrSize_IsValid(lua_State *L) -{ - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_RemoveStyle[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_RemoveStyle[1] = {{ wxLua_wxTextAttrSize_RemoveStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_RemoveStyle }}; -// bool RemoveStyle(const wxTextAttrSize& attr); -static int LUACALL wxLua_wxTextAttrSize_RemoveStyle(lua_State *L) -{ - // const wxTextAttrSize attr - const wxTextAttrSize * attr = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call RemoveStyle - bool returns = (self->RemoveStyle(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_Reset[] = { &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_Reset[1] = {{ wxLua_wxTextAttrSize_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxTextAttrSize_Reset(lua_State *L) -{ - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight2[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrSize_SetHeight2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetHeight2[1] = {{ wxLua_wxTextAttrSize_SetHeight2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight2 }}; -// void SetHeight(const wxTextAttrDimension& dim); -static int LUACALL wxLua_wxTextAttrSize_SetHeight2(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call SetHeight - self->SetHeight(*dim); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight1[] = { &wxluatype_wxTextAttrSize, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrSize_SetHeight1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetHeight1[1] = {{ wxLua_wxTextAttrSize_SetHeight1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight1 }}; -// void SetHeight(int value, wxTextAttrUnits units); -static int LUACALL wxLua_wxTextAttrSize_SetHeight1(lua_State *L) -{ - // wxTextAttrUnits units - wxTextAttrUnits units = (wxTextAttrUnits)wxlua_getenumtype(L, 3); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call SetHeight - self->SetHeight(value, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight[] = { &wxluatype_wxTextAttrSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrSize_SetHeight(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetHeight[1] = {{ wxLua_wxTextAttrSize_SetHeight, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight }}; -// void SetHeight(int value, wxTextAttrDimensionFlags flags); -static int LUACALL wxLua_wxTextAttrSize_SetHeight(lua_State *L) -{ - // wxTextAttrDimensionFlags flags - wxTextAttrDimensionFlags flags = (wxTextAttrDimensionFlags)wxlua_getnumbertype(L, 3); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call SetHeight - self->SetHeight(value, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth2[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrSize_SetWidth2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetWidth2[1] = {{ wxLua_wxTextAttrSize_SetWidth2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth2 }}; -// void SetWidth(const wxTextAttrDimension& dim); -static int LUACALL wxLua_wxTextAttrSize_SetWidth2(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call SetWidth - self->SetWidth(*dim); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth1[] = { &wxluatype_wxTextAttrSize, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrSize_SetWidth1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetWidth1[1] = {{ wxLua_wxTextAttrSize_SetWidth1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth1 }}; -// void SetWidth(int value, wxTextAttrUnits units); -static int LUACALL wxLua_wxTextAttrSize_SetWidth1(lua_State *L) -{ - // wxTextAttrUnits units - wxTextAttrUnits units = (wxTextAttrUnits)wxlua_getenumtype(L, 3); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call SetWidth - self->SetWidth(value, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth[] = { &wxluatype_wxTextAttrSize, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrSize_SetWidth(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetWidth[1] = {{ wxLua_wxTextAttrSize_SetWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth }}; -// void SetWidth(int value, wxTextAttrDimensionFlags flags); -static int LUACALL wxLua_wxTextAttrSize_SetWidth(lua_State *L) -{ - // wxTextAttrDimensionFlags flags - wxTextAttrDimensionFlags flags = (wxTextAttrDimensionFlags)wxlua_getnumbertype(L, 3); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call SetWidth - self->SetWidth(value, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_Set_m_height[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrSize_Set_m_height(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_Set_m_height[1] = {{ wxLua_wxTextAttrSize_Set_m_height, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_Set_m_height }}; -// wxTextAttrDimension m_height; -static int LUACALL wxLua_wxTextAttrSize_Set_m_height(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrSize *self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - self->m_height = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_Set_m_width[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrSize_Set_m_width(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_Set_m_width[1] = {{ wxLua_wxTextAttrSize_Set_m_width, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_Set_m_width }}; -// wxTextAttrDimension m_width; -static int LUACALL wxLua_wxTextAttrSize_Set_m_width(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrSize *self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - self->m_width = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_delete[] = { &wxluatype_wxTextAttrSize, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrSize_op_eq[] = { &wxluatype_wxTextAttrSize, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextAttrSize_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_op_eq[1] = {{ wxLua_wxTextAttrSize_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_op_eq }}; -// bool operator==(const wxTextAttrSize& size) const; -static int LUACALL wxLua_wxTextAttrSize_op_eq(lua_State *L) -{ - // const wxTextAttrSize size - const wxTextAttrSize * size = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextAttrSize * self = (wxTextAttrSize *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrSize); - // call op_eq - bool returns = ((*self)==(*size)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxTextAttrSize_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_constructor[1] = {{ wxLua_wxTextAttrSize_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextAttrSize(); -static int LUACALL wxLua_wxTextAttrSize_constructor(lua_State *L) -{ - // call constructor - wxTextAttrSize* returns = new wxTextAttrSize(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrSize); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_GetHeight_overload[] = -{ - { wxLua_wxTextAttrSize_GetHeight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetHeight1 }, - { wxLua_wxTextAttrSize_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetHeight }, -}; -static int s_wxluafunc_wxLua_wxTextAttrSize_GetHeight_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrSize_GetHeight_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_GetWidth_overload[] = -{ - { wxLua_wxTextAttrSize_GetWidth1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetWidth1 }, - { wxLua_wxTextAttrSize_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrSize_GetWidth }, -}; -static int s_wxluafunc_wxLua_wxTextAttrSize_GetWidth_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrSize_GetWidth_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetHeight_overload[] = -{ - { wxLua_wxTextAttrSize_SetHeight2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight2 }, - { wxLua_wxTextAttrSize_SetHeight1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight1 }, - { wxLua_wxTextAttrSize_SetHeight, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetHeight }, -}; -static int s_wxluafunc_wxLua_wxTextAttrSize_SetHeight_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrSize_SetHeight_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrSize_SetWidth_overload[] = -{ - { wxLua_wxTextAttrSize_SetWidth2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth2 }, - { wxLua_wxTextAttrSize_SetWidth1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth1 }, - { wxLua_wxTextAttrSize_SetWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxTextAttrSize_SetWidth }, -}; -static int s_wxluafunc_wxLua_wxTextAttrSize_SetWidth_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrSize_SetWidth_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxTextAttrSize_delete_function(void** p) -{ - wxTextAttrSize* o = (wxTextAttrSize*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttrSize_methods[] = { - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_CollectCommonAttributes, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_EqPartial, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_GetHeight_overload, s_wxluafunc_wxLua_wxTextAttrSize_GetHeight_overload_count, 0 }, - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_GetWidth_overload, s_wxluafunc_wxLua_wxTextAttrSize_GetWidth_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_height", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_Get_m_height, 1, NULL }, - // %member { "Get_m_width", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_Get_m_width, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_IsValid, 1, NULL }, - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_RemoveStyle, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_Reset, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_SetHeight_overload, s_wxluafunc_wxLua_wxTextAttrSize_SetHeight_overload_count, 0 }, - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_SetWidth_overload, s_wxluafunc_wxLua_wxTextAttrSize_SetWidth_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Set_m_height", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_Set_m_height, 1, NULL }, - // %member { "Set_m_width", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_Set_m_width, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttrSize_delete, 1, NULL }, - { "m_height", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrSize_Set_m_height, 1, NULL }, - { "m_height", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrSize_Get_m_height, 1, NULL }, - { "m_width", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrSize_Set_m_width, 1, NULL }, - { "m_width", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrSize_Get_m_width, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrSize_op_eq, 1, NULL }, - { "wxTextAttrSize", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttrSize_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextAttrSize_methodCount = sizeof(wxTextAttrSize_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextAttrDimensionConverter -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttrDimensionConverter' -int wxluatype_wxTextAttrDimensionConverter = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM[1] = {{ wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM }}; -// int ConvertPixelsToTenthsMM(int pixels) const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM(lua_State *L) -{ - // int pixels - int pixels = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call ConvertPixelsToTenthsMM - int returns = (self->ConvertPixelsToTenthsMM(pixels)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels[1] = {{ wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels }}; -// int ConvertTenthsMMToPixels(int units) const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels(lua_State *L) -{ - // int units - int units = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call ConvertTenthsMMToPixels - int returns = (self->ConvertTenthsMMToPixels(units)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetPPI[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetPPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetPPI[1] = {{ wxLua_wxTextAttrDimensionConverter_GetPPI, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetPPI }}; -// int GetPPI() const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetPPI(lua_State *L) -{ - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call GetPPI - int returns = (self->GetPPI()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetParentSize[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetParentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetParentSize[1] = {{ wxLua_wxTextAttrDimensionConverter_GetParentSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetParentSize }}; -// const wxSize& GetParentSize() const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetParentSize(lua_State *L) -{ - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call GetParentSize - const wxSize* returns = (const wxSize*)&self->GetParentSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetPixels[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_wxTextAttrDimension, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetPixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetPixels[1] = {{ wxLua_wxTextAttrDimensionConverter_GetPixels, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetPixels }}; -// int GetPixels(const wxTextAttrDimension& dim, int direction = wxHORIZONTAL) const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetPixels(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = wxHORIZONTAL - int direction = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxHORIZONTAL); - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call GetPixels - int returns = (self->GetPixels(*dim, direction)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetScale[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetScale[1] = {{ wxLua_wxTextAttrDimensionConverter_GetScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetScale }}; -// double GetScale() const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetScale(lua_State *L) -{ - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call GetScale - double returns = (self->GetScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetTenthsMM[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetTenthsMM(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetTenthsMM[1] = {{ wxLua_wxTextAttrDimensionConverter_GetTenthsMM, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_GetTenthsMM }}; -// int GetTenthsMM(const wxTextAttrDimension& dim) const; -static int LUACALL wxLua_wxTextAttrDimensionConverter_GetTenthsMM(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call GetTenthsMM - int returns = (self->GetTenthsMM(*dim)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Get_m_parentSize[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Get_m_parentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_parentSize[1] = {{ wxLua_wxTextAttrDimensionConverter_Get_m_parentSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Get_m_parentSize }}; -// wxSize m_parentSize; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Get_m_parentSize(lua_State *L) -{ - // get this - wxTextAttrDimensionConverter *self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_parentSize, wxluatype_wxSize); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Get_m_ppi[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Get_m_ppi(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_ppi[1] = {{ wxLua_wxTextAttrDimensionConverter_Get_m_ppi, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Get_m_ppi }}; -// int m_ppi; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Get_m_ppi(lua_State *L) -{ - // get this - wxTextAttrDimensionConverter *self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_ppi) == (double)(self->m_ppi)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_ppi); -} else -#endif -{ - lua_pushnumber(L, self->m_ppi); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Get_m_scale[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Get_m_scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_scale[1] = {{ wxLua_wxTextAttrDimensionConverter_Get_m_scale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Get_m_scale }}; -// double m_scale; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Get_m_scale(lua_State *L) -{ - // get this - wxTextAttrDimensionConverter *self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // push the result floating point number - lua_pushnumber(L, self->m_scale); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_SetPPI[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_SetPPI(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_SetPPI[1] = {{ wxLua_wxTextAttrDimensionConverter_SetPPI, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_SetPPI }}; -// void SetPPI(int ppi); -static int LUACALL wxLua_wxTextAttrDimensionConverter_SetPPI(lua_State *L) -{ - // int ppi - int ppi = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call SetPPI - self->SetPPI(ppi); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_SetParentSize[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_SetParentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_SetParentSize[1] = {{ wxLua_wxTextAttrDimensionConverter_SetParentSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_SetParentSize }}; -// void SetParentSize(const wxSize& parentSize); -static int LUACALL wxLua_wxTextAttrDimensionConverter_SetParentSize(lua_State *L) -{ - // const wxSize parentSize - const wxSize * parentSize = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call SetParentSize - self->SetParentSize(*parentSize); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_SetScale[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_SetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_SetScale[1] = {{ wxLua_wxTextAttrDimensionConverter_SetScale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_SetScale }}; -// void SetScale(double scale); -static int LUACALL wxLua_wxTextAttrDimensionConverter_SetScale(lua_State *L) -{ - // double scale - double scale = (double)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimensionConverter * self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - // call SetScale - self->SetScale(scale); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Set_m_parentSize[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Set_m_parentSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_parentSize[1] = {{ wxLua_wxTextAttrDimensionConverter_Set_m_parentSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Set_m_parentSize }}; -// wxSize m_parentSize; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Set_m_parentSize(lua_State *L) -{ - // get the data type value - wxSize* val = (wxSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxTextAttrDimensionConverter *self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - self->m_parentSize = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Set_m_ppi[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Set_m_ppi(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_ppi[1] = {{ wxLua_wxTextAttrDimensionConverter_Set_m_ppi, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Set_m_ppi }}; -// int m_ppi; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Set_m_ppi(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimensionConverter *self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - self->m_ppi = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Set_m_scale[] = { &wxluatype_wxTextAttrDimensionConverter, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Set_m_scale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_scale[1] = {{ wxLua_wxTextAttrDimensionConverter_Set_m_scale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_Set_m_scale }}; -// double m_scale; -static int LUACALL wxLua_wxTextAttrDimensionConverter_Set_m_scale(lua_State *L) -{ - // get the number value - double val = (double)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrDimensionConverter *self = (wxTextAttrDimensionConverter *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimensionConverter); - self->m_scale = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_delete[] = { &wxluatype_wxTextAttrDimensionConverter, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_delete }}; - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor1[1] = {{ wxLua_wxTextAttrDimensionConverter_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_constructor1 }}; -// wxTextAttrDimensionConverter(int ppi, double scale = 1.0, const wxSize& parentSize = wxDefaultSize); -static int LUACALL wxLua_wxTextAttrDimensionConverter_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // double scale = 1.0 - double scale = (argCount >= 2 ? (double)wxlua_getnumbertype(L, 2) : 1.0); - // int ppi - int ppi = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxTextAttrDimensionConverter* returns = new wxTextAttrDimensionConverter(ppi, scale, *parentSize); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrDimensionConverter); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensionConverter); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_constructor[] = { &wxluatype_wxDC, &wxluatype_TNUMBER, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxTextAttrDimensionConverter_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor[1] = {{ wxLua_wxTextAttrDimensionConverter_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_constructor }}; -// wxTextAttrDimensionConverter(wxDC& dc, double scale = 1.0, const wxSize& parentSize = wxDefaultSize); -static int LUACALL wxLua_wxTextAttrDimensionConverter_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 3 ? (const wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize) : &wxDefaultSize); - // double scale = 1.0 - double scale = (argCount >= 2 ? (double)wxlua_getnumbertype(L, 2) : 1.0); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call constructor - wxTextAttrDimensionConverter* returns = new wxTextAttrDimensionConverter(*dc, scale, *parentSize); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrDimensionConverter); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensionConverter); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxTextAttrDimensionConverter_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxTextAttrDimensionConverter_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxTextAttrDimensionConverter_constructor }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxTextAttrDimensionConverter_delete_function(void** p) -{ - wxTextAttrDimensionConverter* o = (wxTextAttrDimensionConverter*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttrDimensionConverter_methods[] = { - { "ConvertPixelsToTenthsMM", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_ConvertPixelsToTenthsMM, 1, NULL }, - { "ConvertTenthsMMToPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_ConvertTenthsMMToPixels, 1, NULL }, - { "GetPPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetPPI, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetParentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetParentSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetPixels, 1, NULL }, - { "GetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetScale, 1, NULL }, - { "GetTenthsMM", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_GetTenthsMM, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_parentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_parentSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_ppi", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_ppi, 1, NULL }, - // %member { "Get_m_scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_scale, 1, NULL }, - { "SetPPI", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_SetPPI, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetParentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_SetParentSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_SetScale, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_parentSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_parentSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Set_m_ppi", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_ppi, 1, NULL }, - // %member { "Set_m_scale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_scale, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_delete, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_parentSize", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_parentSize, 1, NULL }, - { "m_parentSize", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_parentSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "m_ppi", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_ppi, 1, NULL }, - { "m_ppi", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_ppi, 1, NULL }, - { "m_scale", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Set_m_scale, 1, NULL }, - { "m_scale", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_Get_m_scale, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "wxTextAttrDimensionConverter", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor_overload, s_wxluafunc_wxLua_wxTextAttrDimensionConverter_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxTextAttrDimensionConverter_methodCount = sizeof(wxTextAttrDimensionConverter_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextAttrBorder -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttrBorder' -int wxluatype_wxTextAttrBorder = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_AddFlag[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_AddFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_AddFlag[1] = {{ wxLua_wxTextAttrBorder_AddFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_AddFlag }}; -// void AddFlag(int flag); -static int LUACALL wxLua_wxTextAttrBorder_AddFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call AddFlag - self->AddFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Apply[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Apply[1] = {{ wxLua_wxTextAttrBorder_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorder_Apply }}; -// bool Apply(const wxTextAttrBorder& border, const wxTextAttrBorder* compareWith = NULL); -static int LUACALL wxLua_wxTextAttrBorder_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextAttrBorder compareWith = NULL - const wxTextAttrBorder * compareWith = (argCount >= 3 ? (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorder) : NULL); - // const wxTextAttrBorder border - const wxTextAttrBorder * border = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorder); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call Apply - bool returns = (self->Apply(*border, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_CollectCommonAttributes[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_CollectCommonAttributes[1] = {{ wxLua_wxTextAttrBorder_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextAttrBorder_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxTextAttrBorder& attr, wxTextAttrBorder& clashingAttr, wxTextAttrBorder& absentAttr); -static int LUACALL wxLua_wxTextAttrBorder_CollectCommonAttributes(lua_State *L) -{ - // wxTextAttrBorder absentAttr - wxTextAttrBorder * absentAttr = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttrBorder); - // wxTextAttrBorder clashingAttr - wxTextAttrBorder * clashingAttr = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorder); - // const wxTextAttrBorder attr - const wxTextAttrBorder * attr = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorder); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_EqPartial[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_EqPartial[1] = {{ wxLua_wxTextAttrBorder_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorder_EqPartial }}; -// bool EqPartial(const wxTextAttrBorder& border, bool weakTest = true) const; -static int LUACALL wxLua_wxTextAttrBorder_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextAttrBorder border - const wxTextAttrBorder * border = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorder); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call EqPartial - bool returns = (self->EqPartial(*border, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_GetColour[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_GetColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetColour[1] = {{ wxLua_wxTextAttrBorder_GetColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetColour }}; -// wxColour GetColour() const; -static int LUACALL wxLua_wxTextAttrBorder_GetColour(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call GetColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_GetColourLong[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_GetColourLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetColourLong[1] = {{ wxLua_wxTextAttrBorder_GetColourLong, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetColourLong }}; -// unsigned long GetColourLong() const; -static int LUACALL wxLua_wxTextAttrBorder_GetColourLong(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call GetColourLong - unsigned long returns = (self->GetColourLong()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_GetFlags[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetFlags[1] = {{ wxLua_wxTextAttrBorder_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxTextAttrBorder_GetFlags(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_GetStyle[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetStyle[1] = {{ wxLua_wxTextAttrBorder_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetStyle }}; -// int GetStyle() const; -static int LUACALL wxLua_wxTextAttrBorder_GetStyle(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call GetStyle - int returns = (self->GetStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_GetWidth1[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_GetWidth1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth1[1] = {{ wxLua_wxTextAttrBorder_GetWidth1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetWidth1 }}; -// const wxTextAttrDimension& GetWidth() const; -static int LUACALL wxLua_wxTextAttrBorder_GetWidth1(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call GetWidth - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetWidth(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_GetWidth[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_GetWidth(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth[1] = {{ wxLua_wxTextAttrBorder_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetWidth }}; -// wxTextAttrDimension& GetWidth(); -static int LUACALL wxLua_wxTextAttrBorder_GetWidth(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call GetWidth - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetWidth(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_borderColour[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_borderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderColour[1] = {{ wxLua_wxTextAttrBorder_Get_m_borderColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_borderColour }}; -// unsigned long m_borderColour; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_borderColour(lua_State *L) -{ - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_borderColour) == (double)(self->m_borderColour)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_borderColour); -} else -#endif -{ - lua_pushnumber(L, self->m_borderColour); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_borderStyle[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_borderStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderStyle[1] = {{ wxLua_wxTextAttrBorder_Get_m_borderStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_borderStyle }}; -// int m_borderStyle; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_borderStyle(lua_State *L) -{ - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_borderStyle) == (double)(self->m_borderStyle)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_borderStyle); -} else -#endif -{ - lua_pushnumber(L, self->m_borderStyle); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_borderWidth[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_borderWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderWidth[1] = {{ wxLua_wxTextAttrBorder_Get_m_borderWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_borderWidth }}; -// wxTextAttrDimension m_borderWidth; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_borderWidth(lua_State *L) -{ - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_borderWidth, wxluatype_wxTextAttrDimension); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_flags[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_flags[1] = {{ wxLua_wxTextAttrBorder_Get_m_flags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_Get_m_flags }}; -// int m_flags; -static int LUACALL wxLua_wxTextAttrBorder_Get_m_flags(lua_State *L) -{ - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_flags) == (double)(self->m_flags)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_flags); -} else -#endif -{ - lua_pushnumber(L, self->m_flags); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_HasColour[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_HasColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_HasColour[1] = {{ wxLua_wxTextAttrBorder_HasColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_HasColour }}; -// bool HasColour() const; -static int LUACALL wxLua_wxTextAttrBorder_HasColour(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call HasColour - bool returns = (self->HasColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_HasStyle[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_HasStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_HasStyle[1] = {{ wxLua_wxTextAttrBorder_HasStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_HasStyle }}; -// bool HasStyle() const; -static int LUACALL wxLua_wxTextAttrBorder_HasStyle(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call HasStyle - bool returns = (self->HasStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_HasWidth[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_HasWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_HasWidth[1] = {{ wxLua_wxTextAttrBorder_HasWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_HasWidth }}; -// bool HasWidth() const; -static int LUACALL wxLua_wxTextAttrBorder_HasWidth(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call HasWidth - bool returns = (self->HasWidth()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_IsDefault[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_IsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_IsDefault[1] = {{ wxLua_wxTextAttrBorder_IsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_IsDefault }}; -// bool IsDefault() const; -static int LUACALL wxLua_wxTextAttrBorder_IsDefault(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call IsDefault - bool returns = (self->IsDefault()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_IsValid[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_IsValid[1] = {{ wxLua_wxTextAttrBorder_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxTextAttrBorder_IsValid(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_MakeValid[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_MakeValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_MakeValid[1] = {{ wxLua_wxTextAttrBorder_MakeValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_MakeValid }}; -// void MakeValid(); -static int LUACALL wxLua_wxTextAttrBorder_MakeValid(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call MakeValid - self->MakeValid(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_RemoveFlag[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_RemoveFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_RemoveFlag[1] = {{ wxLua_wxTextAttrBorder_RemoveFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_RemoveFlag }}; -// void RemoveFlag(int flag); -static int LUACALL wxLua_wxTextAttrBorder_RemoveFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call RemoveFlag - self->RemoveFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_RemoveStyle[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_RemoveStyle[1] = {{ wxLua_wxTextAttrBorder_RemoveStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_RemoveStyle }}; -// bool RemoveStyle(const wxTextAttrBorder& attr); -static int LUACALL wxLua_wxTextAttrBorder_RemoveStyle(lua_State *L) -{ - // const wxTextAttrBorder attr - const wxTextAttrBorder * attr = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorder); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call RemoveStyle - bool returns = (self->RemoveStyle(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Reset[] = { &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Reset[1] = {{ wxLua_wxTextAttrBorder_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxTextAttrBorder_Reset(lua_State *L) -{ - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call Reset - self->Reset(); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_SetColour1[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_SetColour1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetColour1[1] = {{ wxLua_wxTextAttrBorder_SetColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetColour1 }}; -// void SetColour(const wxColour& colour); -static int LUACALL wxLua_wxTextAttrBorder_SetColour1(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_SetColour[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_SetColour(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetColour[1] = {{ wxLua_wxTextAttrBorder_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetColour }}; -// void SetColour(unsigned long colour); -static int LUACALL wxLua_wxTextAttrBorder_SetColour(lua_State *L) -{ - // unsigned long colour - unsigned long colour = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call SetColour - self->SetColour(colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_SetFlags[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetFlags[1] = {{ wxLua_wxTextAttrBorder_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxTextAttrBorder_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_SetStyle[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetStyle[1] = {{ wxLua_wxTextAttrBorder_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetStyle }}; -// void SetStyle(int style); -static int LUACALL wxLua_wxTextAttrBorder_SetStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_SetWidth1[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_SetWidth1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth1[1] = {{ wxLua_wxTextAttrBorder_SetWidth1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetWidth1 }}; -// void SetWidth(int value, wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM); -static int LUACALL wxLua_wxTextAttrBorder_SetWidth1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM - wxTextAttrUnits units = (argCount >= 3 ? (wxTextAttrUnits)wxlua_getenumtype(L, 3) : wxTEXT_ATTR_UNITS_TENTHS_MM); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call SetWidth - self->SetWidth(value, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_SetWidth[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_SetWidth(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth[1] = {{ wxLua_wxTextAttrBorder_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetWidth }}; -// void SetWidth(const wxTextAttrDimension& width); -static int LUACALL wxLua_wxTextAttrBorder_SetWidth(lua_State *L) -{ - // const wxTextAttrDimension width - const wxTextAttrDimension * width = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call SetWidth - self->SetWidth(*width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_borderColour[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_borderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderColour[1] = {{ wxLua_wxTextAttrBorder_Set_m_borderColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_borderColour }}; -// unsigned long m_borderColour; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_borderColour(lua_State *L) -{ - // get the number value - long val = (long)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - self->m_borderColour = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_borderStyle[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_borderStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderStyle[1] = {{ wxLua_wxTextAttrBorder_Set_m_borderStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_borderStyle }}; -// int m_borderStyle; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_borderStyle(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - self->m_borderStyle = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_borderWidth[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_borderWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderWidth[1] = {{ wxLua_wxTextAttrBorder_Set_m_borderWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_borderWidth }}; -// wxTextAttrDimension m_borderWidth; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_borderWidth(lua_State *L) -{ - // get the data type value - wxTextAttrDimension* val = (wxTextAttrDimension*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - self->m_borderWidth = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_flags[] = { &wxluatype_wxTextAttrBorder, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_flags[1] = {{ wxLua_wxTextAttrBorder_Set_m_flags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_Set_m_flags }}; -// int m_flags; -static int LUACALL wxLua_wxTextAttrBorder_Set_m_flags(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorder *self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - self->m_flags = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_delete[] = { &wxluatype_wxTextAttrBorder, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorder_op_eq[] = { &wxluatype_wxTextAttrBorder, &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxTextAttrBorder_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_op_eq[1] = {{ wxLua_wxTextAttrBorder_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_op_eq }}; -// bool operator==(const wxTextAttrBorder& border) const; -static int LUACALL wxLua_wxTextAttrBorder_op_eq(lua_State *L) -{ - // const wxTextAttrBorder border - const wxTextAttrBorder * border = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorder); - // get this - wxTextAttrBorder * self = (wxTextAttrBorder *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorder); - // call op_eq - bool returns = ((*self)==(*border)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxTextAttrBorder_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_constructor[1] = {{ wxLua_wxTextAttrBorder_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextAttrBorder(); -static int LUACALL wxLua_wxTextAttrBorder_constructor(lua_State *L) -{ - // call constructor - wxTextAttrBorder* returns = new wxTextAttrBorder(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrBorder); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth_overload[] = -{ - { wxLua_wxTextAttrBorder_GetWidth1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetWidth1 }, - { wxLua_wxTextAttrBorder_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorder_GetWidth }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetColour_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxTextAttrBorder_SetColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetColour1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxTextAttrBorder_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetColour }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorder_SetColour_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorder_SetColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth_overload[] = -{ - { wxLua_wxTextAttrBorder_SetWidth1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetWidth1 }, - { wxLua_wxTextAttrBorder_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorder_SetWidth }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxTextAttrBorder_delete_function(void** p) -{ - wxTextAttrBorder* o = (wxTextAttrBorder*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttrBorder_methods[] = { - { "AddFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_AddFlag, 1, NULL }, - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_CollectCommonAttributes, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_EqPartial, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_GetColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetColourLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_GetColourLong, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_GetFlags, 1, NULL }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_GetStyle, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth_overload, s_wxluafunc_wxLua_wxTextAttrBorder_GetWidth_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_borderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderColour, 1, NULL }, - // %member { "Get_m_borderStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderStyle, 1, NULL }, - // %member { "Get_m_borderWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderWidth, 1, NULL }, - // %member { "Get_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_flags, 1, NULL }, - { "HasColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_HasColour, 1, NULL }, - { "HasStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_HasStyle, 1, NULL }, - { "HasWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_HasWidth, 1, NULL }, - { "IsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_IsDefault, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_IsValid, 1, NULL }, - { "MakeValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_MakeValid, 1, NULL }, - { "RemoveFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_RemoveFlag, 1, NULL }, - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_RemoveStyle, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Reset, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_SetColour_overload, s_wxluafunc_wxLua_wxTextAttrBorder_SetColour_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_SetFlags, 1, NULL }, - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_SetStyle, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth_overload, s_wxluafunc_wxLua_wxTextAttrBorder_SetWidth_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Set_m_borderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderColour, 1, NULL }, - // %member { "Set_m_borderStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderStyle, 1, NULL }, - // %member { "Set_m_borderWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderWidth, 1, NULL }, - // %member { "Set_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_flags, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttrBorder_delete, 1, NULL }, - { "m_borderColour", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderColour, 1, NULL }, - { "m_borderColour", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderColour, 1, NULL }, - { "m_borderStyle", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderStyle, 1, NULL }, - { "m_borderStyle", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderStyle, 1, NULL }, - { "m_borderWidth", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_borderWidth, 1, NULL }, - { "m_borderWidth", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_borderWidth, 1, NULL }, - { "m_flags", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Set_m_flags, 1, NULL }, - { "m_flags", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextAttrBorder_Get_m_flags, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorder_op_eq, 1, NULL }, - { "wxTextAttrBorder", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttrBorder_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextAttrBorder_methodCount = sizeof(wxTextAttrBorder_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextAttrBorders -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextAttrBorders' -int wxluatype_wxTextAttrBorders = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_Apply[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_Apply[1] = {{ wxLua_wxTextAttrBorders_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorders_Apply }}; -// bool Apply(const wxTextAttrBorders& borders, const wxTextAttrBorders* compareWith = NULL); -static int LUACALL wxLua_wxTextAttrBorders_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextAttrBorders compareWith = NULL - const wxTextAttrBorders * compareWith = (argCount >= 3 ? (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorders) : NULL); - // const wxTextAttrBorders borders - const wxTextAttrBorders * borders = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call Apply - bool returns = (self->Apply(*borders, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_CollectCommonAttributes[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_CollectCommonAttributes[1] = {{ wxLua_wxTextAttrBorders_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextAttrBorders_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxTextAttrBorders& attr, wxTextAttrBorders& clashingAttr, wxTextAttrBorders& absentAttr); -static int LUACALL wxLua_wxTextAttrBorders_CollectCommonAttributes(lua_State *L) -{ - // wxTextAttrBorders absentAttr - wxTextAttrBorders * absentAttr = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttrBorders); - // wxTextAttrBorders clashingAttr - wxTextAttrBorders * clashingAttr = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorders); - // const wxTextAttrBorders attr - const wxTextAttrBorders * attr = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_EqPartial[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_EqPartial[1] = {{ wxLua_wxTextAttrBorders_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorders_EqPartial }}; -// bool EqPartial(const wxTextAttrBorders& borders, bool weakTest = true) const; -static int LUACALL wxLua_wxTextAttrBorders_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextAttrBorders borders - const wxTextAttrBorders * borders = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call EqPartial - bool returns = (self->EqPartial(*borders, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetBottom1[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetBottom1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom1[1] = {{ wxLua_wxTextAttrBorders_GetBottom1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetBottom1 }}; -// wxTextAttrBorder& GetBottom(); -static int LUACALL wxLua_wxTextAttrBorders_GetBottom1(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetBottom - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetBottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetBottom[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetBottom(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom[1] = {{ wxLua_wxTextAttrBorders_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetBottom }}; -// const wxTextAttrBorder& GetBottom() const; -static int LUACALL wxLua_wxTextAttrBorders_GetBottom(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetBottom - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetBottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetLeft1[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetLeft1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft1[1] = {{ wxLua_wxTextAttrBorders_GetLeft1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetLeft1 }}; -// wxTextAttrBorder& GetLeft(); -static int LUACALL wxLua_wxTextAttrBorders_GetLeft1(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetLeft - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetLeft(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetLeft[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetLeft(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft[1] = {{ wxLua_wxTextAttrBorders_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetLeft }}; -// const wxTextAttrBorder& GetLeft() const; -static int LUACALL wxLua_wxTextAttrBorders_GetLeft(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetLeft - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetLeft(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetRight1[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetRight1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetRight1[1] = {{ wxLua_wxTextAttrBorders_GetRight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetRight1 }}; -// wxTextAttrBorder& GetRight(); -static int LUACALL wxLua_wxTextAttrBorders_GetRight1(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetRight - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetRight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetRight[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetRight(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetRight[1] = {{ wxLua_wxTextAttrBorders_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetRight }}; -// const wxTextAttrBorder& GetRight() const; -static int LUACALL wxLua_wxTextAttrBorders_GetRight(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetRight - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetRight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetTop1[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetTop1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetTop1[1] = {{ wxLua_wxTextAttrBorders_GetTop1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetTop1 }}; -// wxTextAttrBorder& GetTop(); -static int LUACALL wxLua_wxTextAttrBorders_GetTop1(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetTop - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetTop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_GetTop[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_GetTop(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetTop[1] = {{ wxLua_wxTextAttrBorders_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetTop }}; -// const wxTextAttrBorder& GetTop() const; -static int LUACALL wxLua_wxTextAttrBorders_GetTop(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call GetTop - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetTop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_IsDefault[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_IsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_IsDefault[1] = {{ wxLua_wxTextAttrBorders_IsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_IsDefault }}; -// bool IsDefault() const; -static int LUACALL wxLua_wxTextAttrBorders_IsDefault(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call IsDefault - bool returns = (self->IsDefault()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_IsValid[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_IsValid[1] = {{ wxLua_wxTextAttrBorders_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxTextAttrBorders_IsValid(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_RemoveStyle[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_RemoveStyle[1] = {{ wxLua_wxTextAttrBorders_RemoveStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_RemoveStyle }}; -// bool RemoveStyle(const wxTextAttrBorders& attr); -static int LUACALL wxLua_wxTextAttrBorders_RemoveStyle(lua_State *L) -{ - // const wxTextAttrBorders attr - const wxTextAttrBorders * attr = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call RemoveStyle - bool returns = (self->RemoveStyle(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_Reset[] = { &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_Reset[1] = {{ wxLua_wxTextAttrBorders_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxTextAttrBorders_Reset(lua_State *L) -{ - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call Reset - self->Reset(); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_SetColour1[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_SetColour1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetColour1[1] = {{ wxLua_wxTextAttrBorders_SetColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetColour1 }}; -// void SetColour(const wxColour& colour); -static int LUACALL wxLua_wxTextAttrBorders_SetColour1(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call SetColour - self->SetColour(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_SetColour[] = { &wxluatype_wxTextAttrBorders, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_SetColour(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetColour[1] = {{ wxLua_wxTextAttrBorders_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetColour }}; -// void SetColour(unsigned long colour); -static int LUACALL wxLua_wxTextAttrBorders_SetColour(lua_State *L) -{ - // unsigned long colour - unsigned long colour = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call SetColour - self->SetColour(colour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_SetStyle[] = { &wxluatype_wxTextAttrBorders, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetStyle[1] = {{ wxLua_wxTextAttrBorders_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetStyle }}; -// void SetStyle(int style); -static int LUACALL wxLua_wxTextAttrBorders_SetStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call SetStyle - self->SetStyle(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_SetWidth1[] = { &wxluatype_wxTextAttrBorders, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_SetWidth1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth1[1] = {{ wxLua_wxTextAttrBorders_SetWidth1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetWidth1 }}; -// void SetWidth(int value, wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM); -static int LUACALL wxLua_wxTextAttrBorders_SetWidth1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxTextAttrUnits units = wxTEXT_ATTR_UNITS_TENTHS_MM - wxTextAttrUnits units = (argCount >= 3 ? (wxTextAttrUnits)wxlua_getenumtype(L, 3) : wxTEXT_ATTR_UNITS_TENTHS_MM); - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call SetWidth - self->SetWidth(value, units); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_SetWidth[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_SetWidth(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth[1] = {{ wxLua_wxTextAttrBorders_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetWidth }}; -// void SetWidth(const wxTextAttrDimension& width); -static int LUACALL wxLua_wxTextAttrBorders_SetWidth(lua_State *L) -{ - // const wxTextAttrDimension width - const wxTextAttrDimension * width = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimension); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call SetWidth - self->SetWidth(*width); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_delete[] = { &wxluatype_wxTextAttrBorders, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextAttrBorders_op_eq[] = { &wxluatype_wxTextAttrBorders, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextAttrBorders_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_op_eq[1] = {{ wxLua_wxTextAttrBorders_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_op_eq }}; -// bool operator==(const wxTextAttrBorders& borders) const; -static int LUACALL wxLua_wxTextAttrBorders_op_eq(lua_State *L) -{ - // const wxTextAttrBorders borders - const wxTextAttrBorders * borders = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextAttrBorders * self = (wxTextAttrBorders *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrBorders); - // call op_eq - bool returns = ((*self)==(*borders)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxTextAttrBorders_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_constructor[1] = {{ wxLua_wxTextAttrBorders_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextAttrBorders(); -static int LUACALL wxLua_wxTextAttrBorders_constructor(lua_State *L) -{ - // call constructor - wxTextAttrBorders* returns = new wxTextAttrBorders(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrBorders); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorders); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom_overload[] = -{ - { wxLua_wxTextAttrBorders_GetBottom1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetBottom1 }, - { wxLua_wxTextAttrBorders_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetBottom }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft_overload[] = -{ - { wxLua_wxTextAttrBorders_GetLeft1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetLeft1 }, - { wxLua_wxTextAttrBorders_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetLeft }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetRight_overload[] = -{ - { wxLua_wxTextAttrBorders_GetRight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetRight1 }, - { wxLua_wxTextAttrBorders_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetRight }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorders_GetRight_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorders_GetRight_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_GetTop_overload[] = -{ - { wxLua_wxTextAttrBorders_GetTop1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetTop1 }, - { wxLua_wxTextAttrBorders_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextAttrBorders_GetTop }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorders_GetTop_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorders_GetTop_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetColour_overload[] = -{ - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxTextAttrBorders_SetColour1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetColour1 }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxTextAttrBorders_SetColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetColour }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorders_SetColour_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorders_SetColour_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth_overload[] = -{ - { wxLua_wxTextAttrBorders_SetWidth1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetWidth1 }, - { wxLua_wxTextAttrBorders_SetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextAttrBorders_SetWidth }, -}; -static int s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth_overload_count = sizeof(s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxTextAttrBorders_delete_function(void** p) -{ - wxTextAttrBorders* o = (wxTextAttrBorders*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextAttrBorders_methods[] = { - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_CollectCommonAttributes, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_EqPartial, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom_overload, s_wxluafunc_wxLua_wxTextAttrBorders_GetBottom_overload_count, 0 }, - { "GetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft_overload, s_wxluafunc_wxLua_wxTextAttrBorders_GetLeft_overload_count, 0 }, - { "GetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_GetRight_overload, s_wxluafunc_wxLua_wxTextAttrBorders_GetRight_overload_count, 0 }, - { "GetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_GetTop_overload, s_wxluafunc_wxLua_wxTextAttrBorders_GetTop_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "IsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_IsDefault, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_IsValid, 1, NULL }, - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_RemoveStyle, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_Reset, 1, NULL }, - -#if ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_SetColour_overload, s_wxluafunc_wxLua_wxTextAttrBorders_SetColour_overload_count, 0 }, -#endif // ((wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_SetStyle, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth_overload, s_wxluafunc_wxLua_wxTextAttrBorders_SetWidth_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextAttrBorders_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextAttrBorders_op_eq, 1, NULL }, - { "wxTextAttrBorders", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextAttrBorders_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxTextAttrBorders_methodCount = sizeof(wxTextAttrBorders_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxTextBoxAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxTextBoxAttr' -int wxluatype_wxTextBoxAttr = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_AddFlag[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_AddFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_AddFlag[1] = {{ wxLua_wxTextBoxAttr_AddFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_AddFlag }}; -// void AddFlag(wxTextBoxAttrFlags flag); -static int LUACALL wxLua_wxTextBoxAttr_AddFlag(lua_State *L) -{ - // wxTextBoxAttrFlags flag - wxTextBoxAttrFlags flag = (wxTextBoxAttrFlags)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call AddFlag - self->AddFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Apply[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Apply[1] = {{ wxLua_wxTextBoxAttr_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextBoxAttr_Apply }}; -// bool Apply(const wxTextBoxAttr& style, const wxTextBoxAttr* compareWith = NULL); -static int LUACALL wxLua_wxTextBoxAttr_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxTextBoxAttr compareWith = NULL - const wxTextBoxAttr * compareWith = (argCount >= 3 ? (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextBoxAttr) : NULL); - // const wxTextBoxAttr style - const wxTextBoxAttr * style = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call Apply - bool returns = (self->Apply(*style, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_CollectCommonAttributes[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_CollectCommonAttributes[1] = {{ wxLua_wxTextBoxAttr_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxTextBoxAttr_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxTextBoxAttr& attr, wxTextBoxAttr& clashingAttr, wxTextBoxAttr& absentAttr); -static int LUACALL wxLua_wxTextBoxAttr_CollectCommonAttributes(lua_State *L) -{ - // wxTextBoxAttr absentAttr - wxTextBoxAttr * absentAttr = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextBoxAttr); - // wxTextBoxAttr clashingAttr - wxTextBoxAttr * clashingAttr = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextBoxAttr); - // const wxTextBoxAttr attr - const wxTextBoxAttr * attr = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_EqPartial[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_EqPartial[1] = {{ wxLua_wxTextBoxAttr_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxTextBoxAttr_EqPartial }}; -// bool EqPartial(const wxTextBoxAttr& attr, bool weakTest = true) const; -static int LUACALL wxLua_wxTextBoxAttr_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxTextBoxAttr attr - const wxTextBoxAttr * attr = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call EqPartial - bool returns = (self->EqPartial(*attr, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBorder1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBorder1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder1[1] = {{ wxLua_wxTextBoxAttr_GetBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBorder1 }}; -// const wxTextAttrBorders& GetBorder() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBorder1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBorder - const wxTextAttrBorders* returns = (const wxTextAttrBorders*)&self->GetBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorders); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBorder[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBorder(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder[1] = {{ wxLua_wxTextBoxAttr_GetBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBorder }}; -// wxTextAttrBorders& GetBorder(); -static int LUACALL wxLua_wxTextBoxAttr_GetBorder(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBorder - wxTextAttrBorders* returns = (wxTextAttrBorders*)&self->GetBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorders); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottom1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottom1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom1[1] = {{ wxLua_wxTextBoxAttr_GetBottom1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottom1 }}; -// const wxTextAttrDimension& GetBottom() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBottom1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottom - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetBottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottom[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottom(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom[1] = {{ wxLua_wxTextBoxAttr_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottom }}; -// wxTextAttrDimension& GetBottom(); -static int LUACALL wxLua_wxTextBoxAttr_GetBottom(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottom - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetBottom(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomBorder1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomBorder1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder1[1] = {{ wxLua_wxTextBoxAttr_GetBottomBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomBorder1 }}; -// const wxTextAttrBorder& GetBottomBorder() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomBorder1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomBorder - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetBottomBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomBorder[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomBorder(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder[1] = {{ wxLua_wxTextBoxAttr_GetBottomBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomBorder }}; -// wxTextAttrBorder& GetBottomBorder(); -static int LUACALL wxLua_wxTextBoxAttr_GetBottomBorder(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomBorder - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetBottomBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomMargin1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomMargin1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin1[1] = {{ wxLua_wxTextBoxAttr_GetBottomMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomMargin1 }}; -// const wxTextAttrDimension& GetBottomMargin() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomMargin1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomMargin - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetBottomMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomMargin[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomMargin(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin[1] = {{ wxLua_wxTextBoxAttr_GetBottomMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomMargin }}; -// wxTextAttrDimension& GetBottomMargin(); -static int LUACALL wxLua_wxTextBoxAttr_GetBottomMargin(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomMargin - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetBottomMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomOutline1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomOutline1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline1[1] = {{ wxLua_wxTextBoxAttr_GetBottomOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomOutline1 }}; -// const wxTextAttrBorder& GetBottomOutline() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomOutline1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomOutline - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetBottomOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomOutline[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomOutline(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline[1] = {{ wxLua_wxTextBoxAttr_GetBottomOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomOutline }}; -// wxTextAttrBorder& GetBottomOutline(); -static int LUACALL wxLua_wxTextBoxAttr_GetBottomOutline(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomOutline - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetBottomOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomPadding1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomPadding1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding1[1] = {{ wxLua_wxTextBoxAttr_GetBottomPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomPadding1 }}; -// const wxTextAttrDimension& GetBottomPadding() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomPadding1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomPadding - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetBottomPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomPadding[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBottomPadding(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding[1] = {{ wxLua_wxTextBoxAttr_GetBottomPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomPadding }}; -// wxTextAttrDimension& GetBottomPadding(); -static int LUACALL wxLua_wxTextBoxAttr_GetBottomPadding(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBottomPadding - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetBottomPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBoxStyleName[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetBoxStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBoxStyleName[1] = {{ wxLua_wxTextBoxAttr_GetBoxStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBoxStyleName }}; -// const wxString& GetBoxStyleName() const; -static int LUACALL wxLua_wxTextBoxAttr_GetBoxStyleName(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetBoxStyleName - wxString returns = (self->GetBoxStyleName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetClearMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetClearMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetClearMode[1] = {{ wxLua_wxTextBoxAttr_GetClearMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetClearMode }}; -// wxTextBoxAttrClearStyle GetClearMode() const; -static int LUACALL wxLua_wxTextBoxAttr_GetClearMode(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetClearMode - wxTextBoxAttrClearStyle returns = (self->GetClearMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetCollapseBorders[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetCollapseBorders(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetCollapseBorders[1] = {{ wxLua_wxTextBoxAttr_GetCollapseBorders, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetCollapseBorders }}; -// wxTextBoxAttrCollapseMode GetCollapseBorders() const; -static int LUACALL wxLua_wxTextBoxAttr_GetCollapseBorders(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetCollapseBorders - wxTextBoxAttrCollapseMode returns = (self->GetCollapseBorders()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetFlags[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetFlags[1] = {{ wxLua_wxTextBoxAttr_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxTextBoxAttr_GetFlags(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetFloatMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetFloatMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetFloatMode[1] = {{ wxLua_wxTextBoxAttr_GetFloatMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetFloatMode }}; -// wxTextBoxAttrFloatStyle GetFloatMode() const; -static int LUACALL wxLua_wxTextBoxAttr_GetFloatMode(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetFloatMode - wxTextBoxAttrFloatStyle returns = (self->GetFloatMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetHeight1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetHeight1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight1[1] = {{ wxLua_wxTextBoxAttr_GetHeight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetHeight1 }}; -// const wxTextAttrDimension& GetHeight() const; -static int LUACALL wxLua_wxTextBoxAttr_GetHeight1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetHeight - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetHeight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetHeight[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetHeight(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight[1] = {{ wxLua_wxTextBoxAttr_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetHeight }}; -// wxTextAttrDimension& GetHeight(); -static int LUACALL wxLua_wxTextBoxAttr_GetHeight(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetHeight - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetHeight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeft1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeft1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft1[1] = {{ wxLua_wxTextBoxAttr_GetLeft1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeft1 }}; -// const wxTextAttrDimension& GetLeft() const; -static int LUACALL wxLua_wxTextBoxAttr_GetLeft1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeft - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetLeft(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeft[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeft(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft[1] = {{ wxLua_wxTextBoxAttr_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeft }}; -// wxTextAttrDimension& GetLeft(); -static int LUACALL wxLua_wxTextBoxAttr_GetLeft(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeft - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetLeft(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftBorder1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftBorder1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder1[1] = {{ wxLua_wxTextBoxAttr_GetLeftBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftBorder1 }}; -// const wxTextAttrBorder& GetLeftBorder() const; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftBorder1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftBorder - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetLeftBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftBorder[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftBorder(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder[1] = {{ wxLua_wxTextBoxAttr_GetLeftBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftBorder }}; -// wxTextAttrBorder& GetLeftBorder(); -static int LUACALL wxLua_wxTextBoxAttr_GetLeftBorder(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftBorder - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetLeftBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftMargin1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftMargin1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin1[1] = {{ wxLua_wxTextBoxAttr_GetLeftMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftMargin1 }}; -// const wxTextAttrDimension& GetLeftMargin() const; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftMargin1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftMargin - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetLeftMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftMargin[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftMargin(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin[1] = {{ wxLua_wxTextBoxAttr_GetLeftMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftMargin }}; -// wxTextAttrDimension& GetLeftMargin(); -static int LUACALL wxLua_wxTextBoxAttr_GetLeftMargin(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftMargin - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetLeftMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftOutline1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftOutline1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline1[1] = {{ wxLua_wxTextBoxAttr_GetLeftOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftOutline1 }}; -// const wxTextAttrBorder& GetLeftOutline() const; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftOutline1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftOutline - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetLeftOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftOutline[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftOutline(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline[1] = {{ wxLua_wxTextBoxAttr_GetLeftOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftOutline }}; -// wxTextAttrBorder& GetLeftOutline(); -static int LUACALL wxLua_wxTextBoxAttr_GetLeftOutline(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftOutline - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetLeftOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftPadding1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftPadding1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding1[1] = {{ wxLua_wxTextBoxAttr_GetLeftPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftPadding1 }}; -// const wxTextAttrDimension& GetLeftPadding() const; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftPadding1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftPadding - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetLeftPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftPadding[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetLeftPadding(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding[1] = {{ wxLua_wxTextBoxAttr_GetLeftPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftPadding }}; -// wxTextAttrDimension& GetLeftPadding(); -static int LUACALL wxLua_wxTextBoxAttr_GetLeftPadding(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetLeftPadding - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetLeftPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMargins1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetMargins1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins1[1] = {{ wxLua_wxTextBoxAttr_GetMargins1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMargins1 }}; -// const wxTextAttrDimensions& GetMargins() const; -static int LUACALL wxLua_wxTextBoxAttr_GetMargins1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetMargins - const wxTextAttrDimensions* returns = (const wxTextAttrDimensions*)&self->GetMargins(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMargins[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetMargins(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins[1] = {{ wxLua_wxTextBoxAttr_GetMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMargins }}; -// wxTextAttrDimensions& GetMargins(); -static int LUACALL wxLua_wxTextBoxAttr_GetMargins(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetMargins - wxTextAttrDimensions* returns = (wxTextAttrDimensions*)&self->GetMargins(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMaxSize1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetMaxSize1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize1[1] = {{ wxLua_wxTextBoxAttr_GetMaxSize1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMaxSize1 }}; -// const wxTextAttrSize& GetMaxSize() const; -static int LUACALL wxLua_wxTextBoxAttr_GetMaxSize1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetMaxSize - const wxTextAttrSize* returns = (const wxTextAttrSize*)&self->GetMaxSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMaxSize[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetMaxSize(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize[1] = {{ wxLua_wxTextBoxAttr_GetMaxSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMaxSize }}; -// wxTextAttrSize& GetMaxSize(); -static int LUACALL wxLua_wxTextBoxAttr_GetMaxSize(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetMaxSize - wxTextAttrSize* returns = (wxTextAttrSize*)&self->GetMaxSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMinSize1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetMinSize1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize1[1] = {{ wxLua_wxTextBoxAttr_GetMinSize1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMinSize1 }}; -// const wxTextAttrSize& GetMinSize() const; -static int LUACALL wxLua_wxTextBoxAttr_GetMinSize1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetMinSize - const wxTextAttrSize* returns = (const wxTextAttrSize*)&self->GetMinSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMinSize[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetMinSize(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize[1] = {{ wxLua_wxTextBoxAttr_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMinSize }}; -// wxTextAttrSize& GetMinSize(); -static int LUACALL wxLua_wxTextBoxAttr_GetMinSize(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetMinSize - wxTextAttrSize* returns = (wxTextAttrSize*)&self->GetMinSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetOutline1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetOutline1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline1[1] = {{ wxLua_wxTextBoxAttr_GetOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetOutline1 }}; -// const wxTextAttrBorders& GetOutline() const; -static int LUACALL wxLua_wxTextBoxAttr_GetOutline1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetOutline - const wxTextAttrBorders* returns = (const wxTextAttrBorders*)&self->GetOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorders); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetOutline[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetOutline(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline[1] = {{ wxLua_wxTextBoxAttr_GetOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetOutline }}; -// wxTextAttrBorders& GetOutline(); -static int LUACALL wxLua_wxTextBoxAttr_GetOutline(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetOutline - wxTextAttrBorders* returns = (wxTextAttrBorders*)&self->GetOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorders); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPadding1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetPadding1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding1[1] = {{ wxLua_wxTextBoxAttr_GetPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPadding1 }}; -// const wxTextAttrDimensions& GetPadding() const; -static int LUACALL wxLua_wxTextBoxAttr_GetPadding1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetPadding - const wxTextAttrDimensions* returns = (const wxTextAttrDimensions*)&self->GetPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPadding[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetPadding(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding[1] = {{ wxLua_wxTextBoxAttr_GetPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPadding }}; -// wxTextAttrDimensions& GetPadding(); -static int LUACALL wxLua_wxTextBoxAttr_GetPadding(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetPadding - wxTextAttrDimensions* returns = (wxTextAttrDimensions*)&self->GetPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPosition1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetPosition1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition1[1] = {{ wxLua_wxTextBoxAttr_GetPosition1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPosition1 }}; -// const wxTextAttrDimensions& GetPosition() const; -static int LUACALL wxLua_wxTextBoxAttr_GetPosition1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetPosition - const wxTextAttrDimensions* returns = (const wxTextAttrDimensions*)&self->GetPosition(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPosition[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetPosition(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition[1] = {{ wxLua_wxTextBoxAttr_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPosition }}; -// wxTextAttrDimensions& GetPosition(); -static int LUACALL wxLua_wxTextBoxAttr_GetPosition(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetPosition - wxTextAttrDimensions* returns = (wxTextAttrDimensions*)&self->GetPosition(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimensions); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRight1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRight1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRight1[1] = {{ wxLua_wxTextBoxAttr_GetRight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRight1 }}; -// const wxTextAttrDimension& GetRight() const; -static int LUACALL wxLua_wxTextBoxAttr_GetRight1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRight - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetRight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRight[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRight(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRight[1] = {{ wxLua_wxTextBoxAttr_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRight }}; -// wxTextAttrDimension& GetRight(); -static int LUACALL wxLua_wxTextBoxAttr_GetRight(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRight - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetRight(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightBorder1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightBorder1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder1[1] = {{ wxLua_wxTextBoxAttr_GetRightBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightBorder1 }}; -// const wxTextAttrBorder& GetRightBorder() const; -static int LUACALL wxLua_wxTextBoxAttr_GetRightBorder1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightBorder - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetRightBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightBorder[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightBorder(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder[1] = {{ wxLua_wxTextBoxAttr_GetRightBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightBorder }}; -// wxTextAttrBorder& GetRightBorder(); -static int LUACALL wxLua_wxTextBoxAttr_GetRightBorder(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightBorder - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetRightBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightMargin1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightMargin1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin1[1] = {{ wxLua_wxTextBoxAttr_GetRightMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightMargin1 }}; -// const wxTextAttrDimension& GetRightMargin() const; -static int LUACALL wxLua_wxTextBoxAttr_GetRightMargin1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightMargin - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetRightMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightMargin[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightMargin(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin[1] = {{ wxLua_wxTextBoxAttr_GetRightMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightMargin }}; -// wxTextAttrDimension& GetRightMargin(); -static int LUACALL wxLua_wxTextBoxAttr_GetRightMargin(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightMargin - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetRightMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightOutline1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightOutline1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline1[1] = {{ wxLua_wxTextBoxAttr_GetRightOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightOutline1 }}; -// const wxTextAttrBorder& GetRightOutline() const; -static int LUACALL wxLua_wxTextBoxAttr_GetRightOutline1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightOutline - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetRightOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightOutline[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightOutline(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline[1] = {{ wxLua_wxTextBoxAttr_GetRightOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightOutline }}; -// wxTextAttrBorder& GetRightOutline(); -static int LUACALL wxLua_wxTextBoxAttr_GetRightOutline(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightOutline - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetRightOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightPadding1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightPadding1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding1[1] = {{ wxLua_wxTextBoxAttr_GetRightPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightPadding1 }}; -// const wxTextAttrDimension& GetRightPadding() const; -static int LUACALL wxLua_wxTextBoxAttr_GetRightPadding1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightPadding - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetRightPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightPadding[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetRightPadding(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding[1] = {{ wxLua_wxTextBoxAttr_GetRightPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightPadding }}; -// wxTextAttrDimension& GetRightPadding(); -static int LUACALL wxLua_wxTextBoxAttr_GetRightPadding(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetRightPadding - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetRightPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetSize1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetSize1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetSize1[1] = {{ wxLua_wxTextBoxAttr_GetSize1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetSize1 }}; -// const wxTextAttrSize& GetSize() const; -static int LUACALL wxLua_wxTextBoxAttr_GetSize1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetSize - const wxTextAttrSize* returns = (const wxTextAttrSize*)&self->GetSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetSize[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetSize(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetSize[1] = {{ wxLua_wxTextBoxAttr_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetSize }}; -// wxTextAttrSize& GetSize(); -static int LUACALL wxLua_wxTextBoxAttr_GetSize(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetSize - wxTextAttrSize* returns = (wxTextAttrSize*)&self->GetSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTop1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTop1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTop1[1] = {{ wxLua_wxTextBoxAttr_GetTop1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTop1 }}; -// const wxTextAttrDimension& GetTop() const; -static int LUACALL wxLua_wxTextBoxAttr_GetTop1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTop - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetTop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTop[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTop(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTop[1] = {{ wxLua_wxTextBoxAttr_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTop }}; -// wxTextAttrDimension& GetTop(); -static int LUACALL wxLua_wxTextBoxAttr_GetTop(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTop - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetTop(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopBorder1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopBorder1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder1[1] = {{ wxLua_wxTextBoxAttr_GetTopBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopBorder1 }}; -// const wxTextAttrBorder& GetTopBorder() const; -static int LUACALL wxLua_wxTextBoxAttr_GetTopBorder1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopBorder - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetTopBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopBorder[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopBorder(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder[1] = {{ wxLua_wxTextBoxAttr_GetTopBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopBorder }}; -// wxTextAttrBorder& GetTopBorder(); -static int LUACALL wxLua_wxTextBoxAttr_GetTopBorder(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopBorder - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetTopBorder(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopMargin1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopMargin1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin1[1] = {{ wxLua_wxTextBoxAttr_GetTopMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopMargin1 }}; -// const wxTextAttrDimension& GetTopMargin() const; -static int LUACALL wxLua_wxTextBoxAttr_GetTopMargin1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopMargin - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetTopMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopMargin[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopMargin(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin[1] = {{ wxLua_wxTextBoxAttr_GetTopMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopMargin }}; -// wxTextAttrDimension& GetTopMargin(); -static int LUACALL wxLua_wxTextBoxAttr_GetTopMargin(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopMargin - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetTopMargin(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopOutline1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopOutline1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline1[1] = {{ wxLua_wxTextBoxAttr_GetTopOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopOutline1 }}; -// const wxTextAttrBorder& GetTopOutline() const; -static int LUACALL wxLua_wxTextBoxAttr_GetTopOutline1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopOutline - const wxTextAttrBorder* returns = (const wxTextAttrBorder*)&self->GetTopOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopOutline[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopOutline(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline[1] = {{ wxLua_wxTextBoxAttr_GetTopOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopOutline }}; -// wxTextAttrBorder& GetTopOutline(); -static int LUACALL wxLua_wxTextBoxAttr_GetTopOutline(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopOutline - wxTextAttrBorder* returns = (wxTextAttrBorder*)&self->GetTopOutline(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrBorder); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopPadding1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopPadding1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding1[1] = {{ wxLua_wxTextBoxAttr_GetTopPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopPadding1 }}; -// const wxTextAttrDimension& GetTopPadding() const; -static int LUACALL wxLua_wxTextBoxAttr_GetTopPadding1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopPadding - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetTopPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopPadding[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetTopPadding(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding[1] = {{ wxLua_wxTextBoxAttr_GetTopPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopPadding }}; -// wxTextAttrDimension& GetTopPadding(); -static int LUACALL wxLua_wxTextBoxAttr_GetTopPadding(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetTopPadding - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetTopPadding(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetVerticalAlignment[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetVerticalAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetVerticalAlignment[1] = {{ wxLua_wxTextBoxAttr_GetVerticalAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetVerticalAlignment }}; -// wxTextBoxAttrVerticalAlignment GetVerticalAlignment() const; -static int LUACALL wxLua_wxTextBoxAttr_GetVerticalAlignment(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetVerticalAlignment - wxTextBoxAttrVerticalAlignment returns = (self->GetVerticalAlignment()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetWidth1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetWidth1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth1[1] = {{ wxLua_wxTextBoxAttr_GetWidth1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetWidth1 }}; -// const wxTextAttrDimension& GetWidth() const; -static int LUACALL wxLua_wxTextBoxAttr_GetWidth1(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetWidth - const wxTextAttrDimension* returns = (const wxTextAttrDimension*)&self->GetWidth(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_GetWidth[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_GetWidth(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth[1] = {{ wxLua_wxTextBoxAttr_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetWidth }}; -// wxTextAttrDimension& GetWidth(); -static int LUACALL wxLua_wxTextBoxAttr_GetWidth(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call GetWidth - wxTextAttrDimension* returns = (wxTextAttrDimension*)&self->GetWidth(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_border[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_border(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_border[1] = {{ wxLua_wxTextBoxAttr_Get_m_border, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_border }}; -// wxTextAttrBorders m_border; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_border(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_border, wxluatype_wxTextAttrBorders); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_boxStyleName[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_boxStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_boxStyleName[1] = {{ wxLua_wxTextBoxAttr_Get_m_boxStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_boxStyleName }}; -// wxString m_boxStyleName; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_boxStyleName(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result string - wxlua_pushwxString(L, self->m_boxStyleName); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_clearMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_clearMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_clearMode[1] = {{ wxLua_wxTextBoxAttr_Get_m_clearMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_clearMode }}; -// wxTextBoxAttrClearStyle m_clearMode; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_clearMode(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_clearMode) == (double)(self->m_clearMode)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_clearMode); -} else -#endif -{ - lua_pushnumber(L, self->m_clearMode); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_collapseMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_collapseMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_collapseMode[1] = {{ wxLua_wxTextBoxAttr_Get_m_collapseMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_collapseMode }}; -// wxTextBoxAttrCollapseMode m_collapseMode; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_collapseMode(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_collapseMode) == (double)(self->m_collapseMode)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_collapseMode); -} else -#endif -{ - lua_pushnumber(L, self->m_collapseMode); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_flags[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_flags[1] = {{ wxLua_wxTextBoxAttr_Get_m_flags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_flags }}; -// int m_flags; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_flags(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_flags) == (double)(self->m_flags)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_flags); -} else -#endif -{ - lua_pushnumber(L, self->m_flags); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_floatMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_floatMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_floatMode[1] = {{ wxLua_wxTextBoxAttr_Get_m_floatMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_floatMode }}; -// wxTextBoxAttrFloatStyle m_floatMode; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_floatMode(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_floatMode) == (double)(self->m_floatMode)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_floatMode); -} else -#endif -{ - lua_pushnumber(L, self->m_floatMode); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_margins[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_margins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_margins[1] = {{ wxLua_wxTextBoxAttr_Get_m_margins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_margins }}; -// wxTextAttrDimensions m_margins; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_margins(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_margins, wxluatype_wxTextAttrDimensions); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_maxSize[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_maxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_maxSize[1] = {{ wxLua_wxTextBoxAttr_Get_m_maxSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_maxSize }}; -// wxTextAttrSize m_maxSize; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_maxSize(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_maxSize, wxluatype_wxTextAttrSize); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_minSize[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_minSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_minSize[1] = {{ wxLua_wxTextBoxAttr_Get_m_minSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_minSize }}; -// wxTextAttrSize m_minSize; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_minSize(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_minSize, wxluatype_wxTextAttrSize); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_outline[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_outline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_outline[1] = {{ wxLua_wxTextBoxAttr_Get_m_outline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_outline }}; -// wxTextAttrBorders m_outline; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_outline(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_outline, wxluatype_wxTextAttrBorders); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_padding[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_padding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_padding[1] = {{ wxLua_wxTextBoxAttr_Get_m_padding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_padding }}; -// wxTextAttrDimensions m_padding; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_padding(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_padding, wxluatype_wxTextAttrDimensions); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_position[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_position(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_position[1] = {{ wxLua_wxTextBoxAttr_Get_m_position, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_position }}; -// wxTextAttrDimensions m_position; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_position(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_position, wxluatype_wxTextAttrDimensions); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_size[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_size[1] = {{ wxLua_wxTextBoxAttr_Get_m_size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_size }}; -// wxTextAttrSize m_size; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_size(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_size, wxluatype_wxTextAttrSize); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_verticalAlignment[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_verticalAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_verticalAlignment[1] = {{ wxLua_wxTextBoxAttr_Get_m_verticalAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Get_m_verticalAlignment }}; -// wxTextBoxAttrVerticalAlignment m_verticalAlignment; -static int LUACALL wxLua_wxTextBoxAttr_Get_m_verticalAlignment(lua_State *L) -{ - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_verticalAlignment) == (double)(self->m_verticalAlignment)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_verticalAlignment); -} else -#endif -{ - lua_pushnumber(L, self->m_verticalAlignment); -} - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_HasBoxStyleName[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_HasBoxStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_HasBoxStyleName[1] = {{ wxLua_wxTextBoxAttr_HasBoxStyleName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_HasBoxStyleName }}; -// bool HasBoxStyleName() const; -static int LUACALL wxLua_wxTextBoxAttr_HasBoxStyleName(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call HasBoxStyleName - bool returns = (self->HasBoxStyleName()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_HasClearMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_HasClearMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_HasClearMode[1] = {{ wxLua_wxTextBoxAttr_HasClearMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_HasClearMode }}; -// bool HasClearMode() const; -static int LUACALL wxLua_wxTextBoxAttr_HasClearMode(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call HasClearMode - bool returns = (self->HasClearMode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_HasCollapseBorders[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_HasCollapseBorders(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_HasCollapseBorders[1] = {{ wxLua_wxTextBoxAttr_HasCollapseBorders, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_HasCollapseBorders }}; -// bool HasCollapseBorders() const; -static int LUACALL wxLua_wxTextBoxAttr_HasCollapseBorders(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call HasCollapseBorders - bool returns = (self->HasCollapseBorders()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_HasFlag[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_HasFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_HasFlag[1] = {{ wxLua_wxTextBoxAttr_HasFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_HasFlag }}; -// bool HasFlag(wxTextBoxAttrFlags flag) const; -static int LUACALL wxLua_wxTextBoxAttr_HasFlag(lua_State *L) -{ - // wxTextBoxAttrFlags flag - wxTextBoxAttrFlags flag = (wxTextBoxAttrFlags)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call HasFlag - bool returns = (self->HasFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_HasFloatMode[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_HasFloatMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_HasFloatMode[1] = {{ wxLua_wxTextBoxAttr_HasFloatMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_HasFloatMode }}; -// bool HasFloatMode() const; -static int LUACALL wxLua_wxTextBoxAttr_HasFloatMode(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call HasFloatMode - bool returns = (self->HasFloatMode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_HasVerticalAlignment[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_HasVerticalAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_HasVerticalAlignment[1] = {{ wxLua_wxTextBoxAttr_HasVerticalAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_HasVerticalAlignment }}; -// bool HasVerticalAlignment() const; -static int LUACALL wxLua_wxTextBoxAttr_HasVerticalAlignment(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call HasVerticalAlignment - bool returns = (self->HasVerticalAlignment()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Init[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Init[1] = {{ wxLua_wxTextBoxAttr_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Init }}; -// void Init(); -static int LUACALL wxLua_wxTextBoxAttr_Init(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_IsDefault[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_IsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_IsDefault[1] = {{ wxLua_wxTextBoxAttr_IsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_IsDefault }}; -// bool IsDefault() const; -static int LUACALL wxLua_wxTextBoxAttr_IsDefault(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call IsDefault - bool returns = (self->IsDefault()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_IsFloating[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_IsFloating(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_IsFloating[1] = {{ wxLua_wxTextBoxAttr_IsFloating, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_IsFloating }}; -// bool IsFloating() const; -static int LUACALL wxLua_wxTextBoxAttr_IsFloating(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call IsFloating - bool returns = (self->IsFloating()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_RemoveFlag[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_RemoveFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_RemoveFlag[1] = {{ wxLua_wxTextBoxAttr_RemoveFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_RemoveFlag }}; -// void RemoveFlag(wxTextBoxAttrFlags flag); -static int LUACALL wxLua_wxTextBoxAttr_RemoveFlag(lua_State *L) -{ - // wxTextBoxAttrFlags flag - wxTextBoxAttrFlags flag = (wxTextBoxAttrFlags)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call RemoveFlag - self->RemoveFlag(flag); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_RemoveStyle[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_RemoveStyle[1] = {{ wxLua_wxTextBoxAttr_RemoveStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_RemoveStyle }}; -// bool RemoveStyle(const wxTextBoxAttr& attr); -static int LUACALL wxLua_wxTextBoxAttr_RemoveStyle(lua_State *L) -{ - // const wxTextBoxAttr attr - const wxTextBoxAttr * attr = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call RemoveStyle - bool returns = (self->RemoveStyle(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Reset[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Reset[1] = {{ wxLua_wxTextBoxAttr_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxTextBoxAttr_Reset(lua_State *L) -{ - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetBoxStyleName[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetBoxStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetBoxStyleName[1] = {{ wxLua_wxTextBoxAttr_SetBoxStyleName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetBoxStyleName }}; -// void SetBoxStyleName(const wxString& name); -static int LUACALL wxLua_wxTextBoxAttr_SetBoxStyleName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetBoxStyleName - self->SetBoxStyleName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetClearMode[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetClearMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetClearMode[1] = {{ wxLua_wxTextBoxAttr_SetClearMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetClearMode }}; -// void SetClearMode(wxTextBoxAttrClearStyle mode); -static int LUACALL wxLua_wxTextBoxAttr_SetClearMode(lua_State *L) -{ - // wxTextBoxAttrClearStyle mode - wxTextBoxAttrClearStyle mode = (wxTextBoxAttrClearStyle)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetClearMode - self->SetClearMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetCollapseBorders[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetCollapseBorders(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetCollapseBorders[1] = {{ wxLua_wxTextBoxAttr_SetCollapseBorders, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetCollapseBorders }}; -// void SetCollapseBorders(wxTextBoxAttrCollapseMode collapse); -static int LUACALL wxLua_wxTextBoxAttr_SetCollapseBorders(lua_State *L) -{ - // wxTextBoxAttrCollapseMode collapse - wxTextBoxAttrCollapseMode collapse = (wxTextBoxAttrCollapseMode)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetCollapseBorders - self->SetCollapseBorders(collapse); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetFlags[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetFlags[1] = {{ wxLua_wxTextBoxAttr_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxTextBoxAttr_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetFloatMode[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetFloatMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetFloatMode[1] = {{ wxLua_wxTextBoxAttr_SetFloatMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetFloatMode }}; -// void SetFloatMode(wxTextBoxAttrFloatStyle mode); -static int LUACALL wxLua_wxTextBoxAttr_SetFloatMode(lua_State *L) -{ - // wxTextBoxAttrFloatStyle mode - wxTextBoxAttrFloatStyle mode = (wxTextBoxAttrFloatStyle)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetFloatMode - self->SetFloatMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetMaxSize[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetMaxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetMaxSize[1] = {{ wxLua_wxTextBoxAttr_SetMaxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetMaxSize }}; -// void SetMaxSize(const wxTextAttrSize& sz); -static int LUACALL wxLua_wxTextBoxAttr_SetMaxSize(lua_State *L) -{ - // const wxTextAttrSize sz - const wxTextAttrSize * sz = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetMaxSize - self->SetMaxSize(*sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetMinSize[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetMinSize[1] = {{ wxLua_wxTextBoxAttr_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetMinSize }}; -// void SetMinSize(const wxTextAttrSize& sz); -static int LUACALL wxLua_wxTextBoxAttr_SetMinSize(lua_State *L) -{ - // const wxTextAttrSize sz - const wxTextAttrSize * sz = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetMinSize - self->SetMinSize(*sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetSize[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetSize[1] = {{ wxLua_wxTextBoxAttr_SetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetSize }}; -// void SetSize(const wxTextAttrSize& sz); -static int LUACALL wxLua_wxTextBoxAttr_SetSize(lua_State *L) -{ - // const wxTextAttrSize sz - const wxTextAttrSize * sz = (const wxTextAttrSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetSize - self->SetSize(*sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_SetVerticalAlignment[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_SetVerticalAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_SetVerticalAlignment[1] = {{ wxLua_wxTextBoxAttr_SetVerticalAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_SetVerticalAlignment }}; -// void SetVerticalAlignment(wxTextBoxAttrVerticalAlignment verticalAlignment); -static int LUACALL wxLua_wxTextBoxAttr_SetVerticalAlignment(lua_State *L) -{ - // wxTextBoxAttrVerticalAlignment verticalAlignment - wxTextBoxAttrVerticalAlignment verticalAlignment = (wxTextBoxAttrVerticalAlignment)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call SetVerticalAlignment - self->SetVerticalAlignment(verticalAlignment); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_border[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_border(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_border[1] = {{ wxLua_wxTextBoxAttr_Set_m_border, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_border }}; -// wxTextAttrBorders m_border; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_border(lua_State *L) -{ - // get the data type value - wxTextAttrBorders* val = (wxTextAttrBorders*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_border = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_boxStyleName[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_boxStyleName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_boxStyleName[1] = {{ wxLua_wxTextBoxAttr_Set_m_boxStyleName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_boxStyleName }}; -// wxString m_boxStyleName; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_boxStyleName(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_boxStyleName = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_clearMode[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_clearMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_clearMode[1] = {{ wxLua_wxTextBoxAttr_Set_m_clearMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_clearMode }}; -// wxTextBoxAttrClearStyle m_clearMode; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_clearMode(lua_State *L) -{ - // get the enum value - wxTextBoxAttrClearStyle val = (wxTextBoxAttrClearStyle)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_clearMode = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_collapseMode[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_collapseMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_collapseMode[1] = {{ wxLua_wxTextBoxAttr_Set_m_collapseMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_collapseMode }}; -// wxTextBoxAttrCollapseMode m_collapseMode; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_collapseMode(lua_State *L) -{ - // get the enum value - wxTextBoxAttrCollapseMode val = (wxTextBoxAttrCollapseMode)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_collapseMode = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_flags[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_flags[1] = {{ wxLua_wxTextBoxAttr_Set_m_flags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_flags }}; -// int m_flags; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_flags(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_flags = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_floatMode[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_floatMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_floatMode[1] = {{ wxLua_wxTextBoxAttr_Set_m_floatMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_floatMode }}; -// wxTextBoxAttrFloatStyle m_floatMode; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_floatMode(lua_State *L) -{ - // get the enum value - wxTextBoxAttrFloatStyle val = (wxTextBoxAttrFloatStyle)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_floatMode = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_margins[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_margins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_margins[1] = {{ wxLua_wxTextBoxAttr_Set_m_margins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_margins }}; -// wxTextAttrDimensions m_margins; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_margins(lua_State *L) -{ - // get the data type value - wxTextAttrDimensions* val = (wxTextAttrDimensions*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_margins = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_maxSize[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_maxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_maxSize[1] = {{ wxLua_wxTextBoxAttr_Set_m_maxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_maxSize }}; -// wxTextAttrSize m_maxSize; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_maxSize(lua_State *L) -{ - // get the data type value - wxTextAttrSize* val = (wxTextAttrSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_maxSize = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_minSize[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_minSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_minSize[1] = {{ wxLua_wxTextBoxAttr_Set_m_minSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_minSize }}; -// wxTextAttrSize m_minSize; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_minSize(lua_State *L) -{ - // get the data type value - wxTextAttrSize* val = (wxTextAttrSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_minSize = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_outline[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_outline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_outline[1] = {{ wxLua_wxTextBoxAttr_Set_m_outline, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_outline }}; -// wxTextAttrBorders m_outline; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_outline(lua_State *L) -{ - // get the data type value - wxTextAttrBorders* val = (wxTextAttrBorders*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrBorders); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_outline = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_padding[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_padding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_padding[1] = {{ wxLua_wxTextBoxAttr_Set_m_padding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_padding }}; -// wxTextAttrDimensions m_padding; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_padding(lua_State *L) -{ - // get the data type value - wxTextAttrDimensions* val = (wxTextAttrDimensions*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_padding = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_position[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_position(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_position[1] = {{ wxLua_wxTextBoxAttr_Set_m_position, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_position }}; -// wxTextAttrDimensions m_position; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_position(lua_State *L) -{ - // get the data type value - wxTextAttrDimensions* val = (wxTextAttrDimensions*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrDimensions); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_position = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_size[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextAttrSize, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_size[1] = {{ wxLua_wxTextBoxAttr_Set_m_size, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_size }}; -// wxTextAttrSize m_size; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_size(lua_State *L) -{ - // get the data type value - wxTextAttrSize* val = (wxTextAttrSize*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttrSize); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_size = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_verticalAlignment[] = { &wxluatype_wxTextBoxAttr, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_verticalAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_verticalAlignment[1] = {{ wxLua_wxTextBoxAttr_Set_m_verticalAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_Set_m_verticalAlignment }}; -// wxTextBoxAttrVerticalAlignment m_verticalAlignment; -static int LUACALL wxLua_wxTextBoxAttr_Set_m_verticalAlignment(lua_State *L) -{ - // get the enum value - wxTextBoxAttrVerticalAlignment val = (wxTextBoxAttrVerticalAlignment)wxlua_getenumtype(L, 2); - // get this - wxTextBoxAttr *self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - self->m_verticalAlignment = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_delete[] = { &wxluatype_wxTextBoxAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_op_eq[] = { &wxluatype_wxTextBoxAttr, &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_op_eq[1] = {{ wxLua_wxTextBoxAttr_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxTextBoxAttr_op_eq }}; -// bool operator== (const wxTextBoxAttr& attr) const; -static int LUACALL wxLua_wxTextBoxAttr_op_eq(lua_State *L) -{ - // const wxTextBoxAttr attr - const wxTextBoxAttr * attr = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxTextBoxAttr * self = (wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call op_eq - bool returns = ((*self)==(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxTextBoxAttr_constructor1[] = { &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxTextBoxAttr_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_constructor1[1] = {{ wxLua_wxTextBoxAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_constructor1 }}; -// wxTextBoxAttr(const wxTextBoxAttr& attr); -static int LUACALL wxLua_wxTextBoxAttr_constructor1(lua_State *L) -{ - // const wxTextBoxAttr attr - const wxTextBoxAttr * attr = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextBoxAttr); - // call constructor - wxTextBoxAttr* returns = new wxTextBoxAttr(*attr); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextBoxAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextBoxAttr); - - return 1; -} - -static int LUACALL wxLua_wxTextBoxAttr_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_constructor[1] = {{ wxLua_wxTextBoxAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxTextBoxAttr(); -static int LUACALL wxLua_wxTextBoxAttr_constructor(lua_State *L) -{ - // call constructor - wxTextBoxAttr* returns = new wxTextBoxAttr(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextBoxAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextBoxAttr); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder_overload[] = -{ - { wxLua_wxTextBoxAttr_GetBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBorder1 }, - { wxLua_wxTextBoxAttr_GetBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBorder }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom_overload[] = -{ - { wxLua_wxTextBoxAttr_GetBottom1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottom1 }, - { wxLua_wxTextBoxAttr_GetBottom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottom }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder_overload[] = -{ - { wxLua_wxTextBoxAttr_GetBottomBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomBorder1 }, - { wxLua_wxTextBoxAttr_GetBottomBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomBorder }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin_overload[] = -{ - { wxLua_wxTextBoxAttr_GetBottomMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomMargin1 }, - { wxLua_wxTextBoxAttr_GetBottomMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomMargin }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline_overload[] = -{ - { wxLua_wxTextBoxAttr_GetBottomOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomOutline1 }, - { wxLua_wxTextBoxAttr_GetBottomOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomOutline }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding_overload[] = -{ - { wxLua_wxTextBoxAttr_GetBottomPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomPadding1 }, - { wxLua_wxTextBoxAttr_GetBottomPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetBottomPadding }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight_overload[] = -{ - { wxLua_wxTextBoxAttr_GetHeight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetHeight1 }, - { wxLua_wxTextBoxAttr_GetHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetHeight }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft_overload[] = -{ - { wxLua_wxTextBoxAttr_GetLeft1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeft1 }, - { wxLua_wxTextBoxAttr_GetLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeft }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder_overload[] = -{ - { wxLua_wxTextBoxAttr_GetLeftBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftBorder1 }, - { wxLua_wxTextBoxAttr_GetLeftBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftBorder }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin_overload[] = -{ - { wxLua_wxTextBoxAttr_GetLeftMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftMargin1 }, - { wxLua_wxTextBoxAttr_GetLeftMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftMargin }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline_overload[] = -{ - { wxLua_wxTextBoxAttr_GetLeftOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftOutline1 }, - { wxLua_wxTextBoxAttr_GetLeftOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftOutline }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding_overload[] = -{ - { wxLua_wxTextBoxAttr_GetLeftPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftPadding1 }, - { wxLua_wxTextBoxAttr_GetLeftPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetLeftPadding }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins_overload[] = -{ - { wxLua_wxTextBoxAttr_GetMargins1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMargins1 }, - { wxLua_wxTextBoxAttr_GetMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMargins }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize_overload[] = -{ - { wxLua_wxTextBoxAttr_GetMaxSize1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMaxSize1 }, - { wxLua_wxTextBoxAttr_GetMaxSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMaxSize }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize_overload[] = -{ - { wxLua_wxTextBoxAttr_GetMinSize1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMinSize1 }, - { wxLua_wxTextBoxAttr_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetMinSize }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline_overload[] = -{ - { wxLua_wxTextBoxAttr_GetOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetOutline1 }, - { wxLua_wxTextBoxAttr_GetOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetOutline }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding_overload[] = -{ - { wxLua_wxTextBoxAttr_GetPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPadding1 }, - { wxLua_wxTextBoxAttr_GetPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPadding }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition_overload[] = -{ - { wxLua_wxTextBoxAttr_GetPosition1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPosition1 }, - { wxLua_wxTextBoxAttr_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetPosition }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRight_overload[] = -{ - { wxLua_wxTextBoxAttr_GetRight1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRight1 }, - { wxLua_wxTextBoxAttr_GetRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRight }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetRight_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetRight_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder_overload[] = -{ - { wxLua_wxTextBoxAttr_GetRightBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightBorder1 }, - { wxLua_wxTextBoxAttr_GetRightBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightBorder }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin_overload[] = -{ - { wxLua_wxTextBoxAttr_GetRightMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightMargin1 }, - { wxLua_wxTextBoxAttr_GetRightMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightMargin }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline_overload[] = -{ - { wxLua_wxTextBoxAttr_GetRightOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightOutline1 }, - { wxLua_wxTextBoxAttr_GetRightOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightOutline }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding_overload[] = -{ - { wxLua_wxTextBoxAttr_GetRightPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightPadding1 }, - { wxLua_wxTextBoxAttr_GetRightPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetRightPadding }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetSize_overload[] = -{ - { wxLua_wxTextBoxAttr_GetSize1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetSize1 }, - { wxLua_wxTextBoxAttr_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetSize }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetSize_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTop_overload[] = -{ - { wxLua_wxTextBoxAttr_GetTop1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTop1 }, - { wxLua_wxTextBoxAttr_GetTop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTop }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetTop_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetTop_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder_overload[] = -{ - { wxLua_wxTextBoxAttr_GetTopBorder1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopBorder1 }, - { wxLua_wxTextBoxAttr_GetTopBorder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopBorder }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin_overload[] = -{ - { wxLua_wxTextBoxAttr_GetTopMargin1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopMargin1 }, - { wxLua_wxTextBoxAttr_GetTopMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopMargin }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline_overload[] = -{ - { wxLua_wxTextBoxAttr_GetTopOutline1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopOutline1 }, - { wxLua_wxTextBoxAttr_GetTopOutline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopOutline }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding_overload[] = -{ - { wxLua_wxTextBoxAttr_GetTopPadding1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopPadding1 }, - { wxLua_wxTextBoxAttr_GetTopPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetTopPadding }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth_overload[] = -{ - { wxLua_wxTextBoxAttr_GetWidth1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetWidth1 }, - { wxLua_wxTextBoxAttr_GetWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_GetWidth }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextBoxAttr_constructor_overload[] = -{ - { wxLua_wxTextBoxAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxTextBoxAttr_constructor1 }, - { wxLua_wxTextBoxAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxTextBoxAttr_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxTextBoxAttr_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxTextBoxAttr_delete_function(void** p) -{ - wxTextBoxAttr* o = (wxTextBoxAttr*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxTextBoxAttr_methods[] = { - { "AddFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_AddFlag, 1, NULL }, - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_CollectCommonAttributes, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_EqPartial, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetBorder_overload_count, 0 }, - { "GetBottom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottom_overload_count, 0 }, - { "GetBottomBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomBorder_overload_count, 0 }, - { "GetBottomMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomMargin_overload_count, 0 }, - { "GetBottomOutline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomOutline_overload_count, 0 }, - { "GetBottomPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetBottomPadding_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetBoxStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetBoxStyleName, 1, NULL }, - { "GetClearMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetClearMode, 1, NULL }, - { "GetCollapseBorders", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetCollapseBorders, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetFlags, 1, NULL }, - { "GetFloatMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetFloatMode, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetHeight_overload_count, 0 }, - { "GetLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeft_overload_count, 0 }, - { "GetLeftBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftBorder_overload_count, 0 }, - { "GetLeftMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftMargin_overload_count, 0 }, - { "GetLeftOutline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftOutline_overload_count, 0 }, - { "GetLeftPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetLeftPadding_overload_count, 0 }, - { "GetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetMargins_overload_count, 0 }, - { "GetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetMaxSize_overload_count, 0 }, - { "GetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetMinSize_overload_count, 0 }, - { "GetOutline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetOutline_overload_count, 0 }, - { "GetPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetPadding_overload_count, 0 }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetPosition_overload_count, 0 }, - { "GetRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetRight_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetRight_overload_count, 0 }, - { "GetRightBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightBorder_overload_count, 0 }, - { "GetRightMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightMargin_overload_count, 0 }, - { "GetRightOutline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightOutline_overload_count, 0 }, - { "GetRightPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetRightPadding_overload_count, 0 }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetSize_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetSize_overload_count, 0 }, - { "GetTop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetTop_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetTop_overload_count, 0 }, - { "GetTopBorder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopBorder_overload_count, 0 }, - { "GetTopMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopMargin_overload_count, 0 }, - { "GetTopOutline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopOutline_overload_count, 0 }, - { "GetTopPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetTopPadding_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetVerticalAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetVerticalAlignment, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth_overload, s_wxluafunc_wxLua_wxTextBoxAttr_GetWidth_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_border", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_border, 1, NULL }, - // %member { "Get_m_boxStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_boxStyleName, 1, NULL }, - // %member { "Get_m_clearMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_clearMode, 1, NULL }, - // %member { "Get_m_collapseMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_collapseMode, 1, NULL }, - // %member { "Get_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_flags, 1, NULL }, - // %member { "Get_m_floatMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_floatMode, 1, NULL }, - // %member { "Get_m_margins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_margins, 1, NULL }, - // %member { "Get_m_maxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_maxSize, 1, NULL }, - // %member { "Get_m_minSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_minSize, 1, NULL }, - // %member { "Get_m_outline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_outline, 1, NULL }, - // %member { "Get_m_padding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_padding, 1, NULL }, - // %member { "Get_m_position", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_position, 1, NULL }, - // %member { "Get_m_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_size, 1, NULL }, - // %member { "Get_m_verticalAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_verticalAlignment, 1, NULL }, - { "HasBoxStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_HasBoxStyleName, 1, NULL }, - { "HasClearMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_HasClearMode, 1, NULL }, - { "HasCollapseBorders", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_HasCollapseBorders, 1, NULL }, - { "HasFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_HasFlag, 1, NULL }, - { "HasFloatMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_HasFloatMode, 1, NULL }, - { "HasVerticalAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_HasVerticalAlignment, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Init, 1, NULL }, - { "IsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_IsDefault, 1, NULL }, - { "IsFloating", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_IsFloating, 1, NULL }, - { "RemoveFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_RemoveFlag, 1, NULL }, - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_RemoveStyle, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Reset, 1, NULL }, - { "SetBoxStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetBoxStyleName, 1, NULL }, - { "SetClearMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetClearMode, 1, NULL }, - { "SetCollapseBorders", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetCollapseBorders, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetFlags, 1, NULL }, - { "SetFloatMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetFloatMode, 1, NULL }, - { "SetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetMaxSize, 1, NULL }, - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetMinSize, 1, NULL }, - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetSize, 1, NULL }, - { "SetVerticalAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_SetVerticalAlignment, 1, NULL }, - // %member { "Set_m_border", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_border, 1, NULL }, - // %member { "Set_m_boxStyleName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_boxStyleName, 1, NULL }, - // %member { "Set_m_clearMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_clearMode, 1, NULL }, - // %member { "Set_m_collapseMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_collapseMode, 1, NULL }, - // %member { "Set_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_flags, 1, NULL }, - // %member { "Set_m_floatMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_floatMode, 1, NULL }, - // %member { "Set_m_margins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_margins, 1, NULL }, - // %member { "Set_m_maxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_maxSize, 1, NULL }, - // %member { "Set_m_minSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_minSize, 1, NULL }, - // %member { "Set_m_outline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_outline, 1, NULL }, - // %member { "Set_m_padding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_padding, 1, NULL }, - // %member { "Set_m_position", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_position, 1, NULL }, - // %member { "Set_m_size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_size, 1, NULL }, - // %member { "Set_m_verticalAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_verticalAlignment, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxTextBoxAttr_delete, 1, NULL }, - { "m_border", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_border, 1, NULL }, - { "m_border", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_border, 1, NULL }, - { "m_boxStyleName", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_boxStyleName, 1, NULL }, - { "m_boxStyleName", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_boxStyleName, 1, NULL }, - { "m_clearMode", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_clearMode, 1, NULL }, - { "m_clearMode", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_clearMode, 1, NULL }, - { "m_collapseMode", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_collapseMode, 1, NULL }, - { "m_collapseMode", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_collapseMode, 1, NULL }, - { "m_flags", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_flags, 1, NULL }, - { "m_flags", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_flags, 1, NULL }, - { "m_floatMode", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_floatMode, 1, NULL }, - { "m_floatMode", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_floatMode, 1, NULL }, - { "m_margins", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_margins, 1, NULL }, - { "m_margins", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_margins, 1, NULL }, - { "m_maxSize", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_maxSize, 1, NULL }, - { "m_maxSize", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_maxSize, 1, NULL }, - { "m_minSize", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_minSize, 1, NULL }, - { "m_minSize", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_minSize, 1, NULL }, - { "m_outline", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_outline, 1, NULL }, - { "m_outline", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_outline, 1, NULL }, - { "m_padding", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_padding, 1, NULL }, - { "m_padding", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_padding, 1, NULL }, - { "m_position", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_position, 1, NULL }, - { "m_position", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_position, 1, NULL }, - { "m_size", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_size, 1, NULL }, - { "m_size", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_size, 1, NULL }, - { "m_verticalAlignment", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Set_m_verticalAlignment, 1, NULL }, - { "m_verticalAlignment", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxTextBoxAttr_Get_m_verticalAlignment, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextBoxAttr_op_eq, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxTextBoxAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxTextBoxAttr_constructor_overload, s_wxluafunc_wxLua_wxTextBoxAttr_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxTextBoxAttr_methodCount = sizeof(wxTextBoxAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextAttr -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextAttr' -int wxluatype_wxRichTextAttr = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_Apply[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_Apply(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_Apply[1] = {{ wxLua_wxRichTextAttr_Apply, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextAttr_Apply }}; -// bool Apply(const wxRichTextAttr& style, const wxRichTextAttr* compareWith = NULL); -static int LUACALL wxLua_wxRichTextAttr_Apply(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr compareWith = NULL - const wxRichTextAttr * compareWith = (argCount >= 3 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call Apply - bool returns = (self->Apply(*style, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_CollectCommonAttributes[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_CollectCommonAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_CollectCommonAttributes[1] = {{ wxLua_wxRichTextAttr_CollectCommonAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextAttr_CollectCommonAttributes }}; -// void CollectCommonAttributes(const wxRichTextAttr& attr, wxRichTextAttr& clashingAttr, wxRichTextAttr& absentAttr); -static int LUACALL wxLua_wxRichTextAttr_CollectCommonAttributes(lua_State *L) -{ - // wxRichTextAttr absentAttr - wxRichTextAttr * absentAttr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxRichTextAttr clashingAttr - wxRichTextAttr * clashingAttr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call CollectCommonAttributes - self->CollectCommonAttributes(*attr, *clashingAttr, *absentAttr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_Copy[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_Copy[1] = {{ wxLua_wxRichTextAttr_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_Copy }}; -// void Copy(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_Copy(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call Copy - self->Copy(*attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_EqPartial[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextAttr_EqPartial(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_EqPartial[1] = {{ wxLua_wxRichTextAttr_EqPartial, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextAttr_EqPartial }}; -// bool EqPartial(const wxRichTextAttr& attr, bool weakTest = true) const; -static int LUACALL wxLua_wxRichTextAttr_EqPartial(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool weakTest = true - bool weakTest = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call EqPartial - bool returns = (self->EqPartial(*attr, weakTest)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_GetTextBoxAttr1[] = { &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_GetTextBoxAttr1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr1[1] = {{ wxLua_wxRichTextAttr_GetTextBoxAttr1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_GetTextBoxAttr1 }}; -// const wxTextBoxAttr& GetTextBoxAttr() const; -static int LUACALL wxLua_wxRichTextAttr_GetTextBoxAttr1(lua_State *L) -{ - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call GetTextBoxAttr - const wxTextBoxAttr* returns = (const wxTextBoxAttr*)&self->GetTextBoxAttr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextBoxAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_GetTextBoxAttr[] = { &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_GetTextBoxAttr(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr[1] = {{ wxLua_wxRichTextAttr_GetTextBoxAttr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_GetTextBoxAttr }}; -// wxTextBoxAttr& GetTextBoxAttr(); -static int LUACALL wxLua_wxRichTextAttr_GetTextBoxAttr(lua_State *L) -{ - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call GetTextBoxAttr - wxTextBoxAttr* returns = (wxTextBoxAttr*)&self->GetTextBoxAttr(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextBoxAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_Get_m_textBoxAttr[] = { &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_Get_m_textBoxAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_Get_m_textBoxAttr[1] = {{ wxLua_wxRichTextAttr_Get_m_textBoxAttr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_Get_m_textBoxAttr }}; -// wxTextBoxAttr m_textBoxAttr; -static int LUACALL wxLua_wxRichTextAttr_Get_m_textBoxAttr(lua_State *L) -{ - // get this - wxRichTextAttr *self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_textBoxAttr, wxluatype_wxTextBoxAttr); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_IsDefault[] = { &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_IsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_IsDefault[1] = {{ wxLua_wxRichTextAttr_IsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_IsDefault }}; -// bool IsDefault() const; -static int LUACALL wxLua_wxRichTextAttr_IsDefault(lua_State *L) -{ - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call IsDefault - bool returns = (self->IsDefault()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_RemoveStyle[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_RemoveStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_RemoveStyle[1] = {{ wxLua_wxRichTextAttr_RemoveStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_RemoveStyle }}; -// bool RemoveStyle(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_RemoveStyle(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call RemoveStyle - bool returns = (self->RemoveStyle(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_SetTextBoxAttr[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_SetTextBoxAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_SetTextBoxAttr[1] = {{ wxLua_wxRichTextAttr_SetTextBoxAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_SetTextBoxAttr }}; -// void SetTextBoxAttr(const wxTextBoxAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_SetTextBoxAttr(lua_State *L) -{ - // const wxTextBoxAttr attr - const wxTextBoxAttr * attr = (const wxTextBoxAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call SetTextBoxAttr - self->SetTextBoxAttr(*attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_Set_m_textBoxAttr[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxTextBoxAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_Set_m_textBoxAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_Set_m_textBoxAttr[1] = {{ wxLua_wxRichTextAttr_Set_m_textBoxAttr, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_Set_m_textBoxAttr }}; -// wxTextBoxAttr m_textBoxAttr; -static int LUACALL wxLua_wxRichTextAttr_Set_m_textBoxAttr(lua_State *L) -{ - // get the data type value - wxTextBoxAttr* val = (wxTextBoxAttr*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextBoxAttr); - // get this - wxRichTextAttr *self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - self->m_textBoxAttr = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_delete[] = { &wxluatype_wxRichTextAttr, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_op_eq[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_op_eq[1] = {{ wxLua_wxRichTextAttr_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_op_eq }}; -// bool operator==(const wxRichTextAttr& attr) const; -static int LUACALL wxLua_wxRichTextAttr_op_eq(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call op_eq - bool returns = ((*self)==(*attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_op_set1[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_op_set1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_op_set1[1] = {{ wxLua_wxRichTextAttr_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_op_set1 }}; -// void operator=(const wxTextAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_op_set1(lua_State *L) -{ - // const wxTextAttr attr - const wxTextAttr * attr = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call op_set - (*self)=(*attr); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_op_set[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_op_set(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_op_set[1] = {{ wxLua_wxRichTextAttr_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_op_set }}; -// void operator=(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_op_set(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttr * self = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call op_set - (*self)=(*attr); - - return 0; -} - -static int LUACALL wxLua_wxRichTextAttr_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_constructor2[1] = {{ wxLua_wxRichTextAttr_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextAttr(); -static int LUACALL wxLua_wxRichTextAttr_constructor2(lua_State *L) -{ - // call constructor - wxRichTextAttr* returns = new wxRichTextAttr(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_constructor1[] = { &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_constructor1[1] = {{ wxLua_wxRichTextAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_constructor1 }}; -// wxRichTextAttr(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_constructor1(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call constructor - wxRichTextAttr* returns = new wxRichTextAttr(*attr); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttr_constructor[] = { &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttr_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_constructor[1] = {{ wxLua_wxRichTextAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_constructor }}; -// wxRichTextAttr(const wxTextAttr& attr); -static int LUACALL wxLua_wxRichTextAttr_constructor(lua_State *L) -{ - // const wxTextAttr attr - const wxTextAttr * attr = (const wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call constructor - wxRichTextAttr* returns = new wxRichTextAttr(*attr); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr_overload[] = -{ - { wxLua_wxRichTextAttr_GetTextBoxAttr1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_GetTextBoxAttr1 }, - { wxLua_wxRichTextAttr_GetTextBoxAttr, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_GetTextBoxAttr }, -}; -static int s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_op_set_overload[] = -{ - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextAttr_op_set1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_op_set1 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextAttr_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttr_op_set }, -}; -static int s_wxluafunc_wxLua_wxRichTextAttr_op_set_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAttr_op_set_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttr_constructor_overload[] = -{ - { wxLua_wxRichTextAttr_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxRichTextAttr_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_constructor1 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextAttr_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttr_constructor }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -}; -static int s_wxluafunc_wxLua_wxRichTextAttr_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAttr_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - -void wxLua_wxRichTextAttr_delete_function(void** p) -{ - wxRichTextAttr* o = (wxRichTextAttr*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextAttr_methods[] = { - { "Apply", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_Apply, 1, NULL }, - { "CollectCommonAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_CollectCommonAttributes, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_Copy, 1, NULL }, - { "EqPartial", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_EqPartial, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetTextBoxAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr_overload, s_wxluafunc_wxLua_wxRichTextAttr_GetTextBoxAttr_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_textBoxAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_Get_m_textBoxAttr, 1, NULL }, - { "IsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_IsDefault, 1, NULL }, - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_RemoveStyle, 1, NULL }, - { "SetTextBoxAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_SetTextBoxAttr, 1, NULL }, - // %member { "Set_m_textBoxAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_Set_m_textBoxAttr, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextAttr_delete, 1, NULL }, - { "m_textBoxAttr", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextAttr_Set_m_textBoxAttr, 1, NULL }, - { "m_textBoxAttr", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextAttr_Get_m_textBoxAttr, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_op_eq, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttr_op_set_overload, s_wxluafunc_wxLua_wxRichTextAttr_op_set_overload_count, 0 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - { "wxRichTextAttr", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextAttr_constructor_overload, s_wxluafunc_wxLua_wxRichTextAttr_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextAttr_methodCount = sizeof(wxRichTextAttr_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextAttrArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextAttrArray' -int wxluatype_wxRichTextAttrArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_Add[] = { &wxluatype_wxRichTextAttrArray, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_Add[1] = {{ wxLua_wxRichTextAttrArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttrArray_Add }}; -// void Add(const wxRichTextAttr& item); -static int LUACALL wxLua_wxRichTextAttrArray_Add(lua_State *L) -{ - // const wxRichTextAttr item - const wxRichTextAttr * item = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call Add - self->Add(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_Clear[] = { &wxluatype_wxRichTextAttrArray, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_Clear[1] = {{ wxLua_wxRichTextAttrArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttrArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextAttrArray_Clear(lua_State *L) -{ - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_GetCount[] = { &wxluatype_wxRichTextAttrArray, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_GetCount[1] = {{ wxLua_wxRichTextAttrArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttrArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextAttrArray_GetCount(lua_State *L) -{ - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_Insert[] = { &wxluatype_wxRichTextAttrArray, &wxluatype_wxRichTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_Insert[1] = {{ wxLua_wxRichTextAttrArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextAttrArray_Insert }}; -// void Insert(const wxRichTextAttr& item, int nIndex); -static int LUACALL wxLua_wxRichTextAttrArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxRichTextAttr item - const wxRichTextAttr * item = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call Insert - self->Insert(*item, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_IsEmpty[] = { &wxluatype_wxRichTextAttrArray, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_IsEmpty[1] = {{ wxLua_wxRichTextAttrArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttrArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxRichTextAttrArray_IsEmpty(lua_State *L) -{ - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_Item[] = { &wxluatype_wxRichTextAttrArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_Item[1] = {{ wxLua_wxRichTextAttrArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttrArray_Item }}; -// wxRichTextAttr Item(size_t nIndex) const; -static int LUACALL wxLua_wxRichTextAttrArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call Item - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_RemoveAt[] = { &wxluatype_wxRichTextAttrArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_RemoveAt[1] = {{ wxLua_wxRichTextAttrArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAttrArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxRichTextAttrArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextAttrArray * self = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_delete[] = { &wxluatype_wxRichTextAttrArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttrArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAttrArray_constructor1[] = { &wxluatype_wxRichTextAttrArray, NULL }; -static int LUACALL wxLua_wxRichTextAttrArray_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_constructor1[1] = {{ wxLua_wxRichTextAttrArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttrArray_constructor1 }}; -// wxRichTextAttrArray(const wxRichTextAttrArray& array); -static int LUACALL wxLua_wxRichTextAttrArray_constructor1(lua_State *L) -{ - // const wxRichTextAttrArray array - const wxRichTextAttrArray * array = (const wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttrArray); - // call constructor - wxRichTextAttrArray* returns = new wxRichTextAttrArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttrArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttrArray); - - return 1; -} - -static int LUACALL wxLua_wxRichTextAttrArray_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_constructor[1] = {{ wxLua_wxRichTextAttrArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextAttrArray(); -static int LUACALL wxLua_wxRichTextAttrArray_constructor(lua_State *L) -{ - // call constructor - wxRichTextAttrArray* returns = new wxRichTextAttrArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttrArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttrArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAttrArray_constructor_overload[] = -{ - { wxLua_wxRichTextAttrArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAttrArray_constructor1 }, - { wxLua_wxRichTextAttrArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextAttrArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAttrArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextAttrArray_delete_function(void** p) -{ - wxRichTextAttrArray* o = (wxRichTextAttrArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextAttrArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAttrArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextAttrArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextAttrArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextAttrArray_constructor_overload, s_wxluafunc_wxLua_wxRichTextAttrArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextAttrArray_methodCount = sizeof(wxRichTextAttrArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextVariantArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextVariantArray' -int wxluatype_wxRichTextVariantArray = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_Add[] = { &wxluatype_wxRichTextVariantArray, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_Add[1] = {{ wxLua_wxRichTextVariantArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextVariantArray_Add }}; -// void Add(const wxVariant& item); -static int LUACALL wxLua_wxRichTextVariantArray_Add(lua_State *L) -{ - // const wxVariant item - const wxVariant * item = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call Add - self->Add(*item); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_Clear[] = { &wxluatype_wxRichTextVariantArray, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_Clear[1] = {{ wxLua_wxRichTextVariantArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextVariantArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextVariantArray_Clear(lua_State *L) -{ - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_GetCount[] = { &wxluatype_wxRichTextVariantArray, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_GetCount[1] = {{ wxLua_wxRichTextVariantArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextVariantArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextVariantArray_GetCount(lua_State *L) -{ - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_Insert[] = { &wxluatype_wxRichTextVariantArray, &wxluatype_wxVariant, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_Insert[1] = {{ wxLua_wxRichTextVariantArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextVariantArray_Insert }}; -// void Insert(const wxVariant& item, int nIndex); -static int LUACALL wxLua_wxRichTextVariantArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxVariant item - const wxVariant * item = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call Insert - self->Insert(*item, nIndex); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_IsEmpty[] = { &wxluatype_wxRichTextVariantArray, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_IsEmpty[1] = {{ wxLua_wxRichTextVariantArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextVariantArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxRichTextVariantArray_IsEmpty(lua_State *L) -{ - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_Item[] = { &wxluatype_wxRichTextVariantArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_Item[1] = {{ wxLua_wxRichTextVariantArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextVariantArray_Item }}; -// wxVariant Item(size_t nIndex) const; -static int LUACALL wxLua_wxRichTextVariantArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call Item - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_RemoveAt[] = { &wxluatype_wxRichTextVariantArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_RemoveAt[1] = {{ wxLua_wxRichTextVariantArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextVariantArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxRichTextVariantArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextVariantArray * self = (wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_delete[] = { &wxluatype_wxRichTextVariantArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextVariantArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextVariantArray_constructor1[] = { &wxluatype_wxRichTextVariantArray, NULL }; -static int LUACALL wxLua_wxRichTextVariantArray_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_constructor1[1] = {{ wxLua_wxRichTextVariantArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextVariantArray_constructor1 }}; -// wxRichTextVariantArray(const wxRichTextVariantArray& array); -static int LUACALL wxLua_wxRichTextVariantArray_constructor1(lua_State *L) -{ - // const wxRichTextVariantArray array - const wxRichTextVariantArray * array = (const wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextVariantArray); - // call constructor - wxRichTextVariantArray* returns = new wxRichTextVariantArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextVariantArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextVariantArray); - - return 1; -} - -static int LUACALL wxLua_wxRichTextVariantArray_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_constructor[1] = {{ wxLua_wxRichTextVariantArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextVariantArray(); -static int LUACALL wxLua_wxRichTextVariantArray_constructor(lua_State *L) -{ - // call constructor - wxRichTextVariantArray* returns = new wxRichTextVariantArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextVariantArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextVariantArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextVariantArray_constructor_overload[] = -{ - { wxLua_wxRichTextVariantArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextVariantArray_constructor1 }, - { wxLua_wxRichTextVariantArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextVariantArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextVariantArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextVariantArray_delete_function(void** p) -{ - wxRichTextVariantArray* o = (wxRichTextVariantArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextVariantArray_methods[] = { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_Add, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_Insert, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_IsEmpty, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_Item, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextVariantArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextVariantArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextVariantArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextVariantArray_constructor_overload, s_wxluafunc_wxLua_wxRichTextVariantArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextVariantArray_methodCount = sizeof(wxRichTextVariantArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextRectArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextRectArray' -int wxluatype_wxRichTextRectArray = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_Add[] = { &wxluatype_wxRichTextRectArray, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_Add[1] = {{ wxLua_wxRichTextRectArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRectArray_Add }}; -// void Add(const wxRect& item); -static int LUACALL wxLua_wxRichTextRectArray_Add(lua_State *L) -{ - // const wxRect item - const wxRect * item = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call Add - self->Add(*item); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_Clear[] = { &wxluatype_wxRichTextRectArray, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_Clear[1] = {{ wxLua_wxRichTextRectArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRectArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextRectArray_Clear(lua_State *L) -{ - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_GetCount[] = { &wxluatype_wxRichTextRectArray, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_GetCount[1] = {{ wxLua_wxRichTextRectArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRectArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextRectArray_GetCount(lua_State *L) -{ - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_Insert[] = { &wxluatype_wxRichTextRectArray, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_Insert[1] = {{ wxLua_wxRichTextRectArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextRectArray_Insert }}; -// void Insert(const wxRect& item, int nIndex); -static int LUACALL wxLua_wxRichTextRectArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxRect item - const wxRect * item = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call Insert - self->Insert(*item, nIndex); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_IsEmpty[] = { &wxluatype_wxRichTextRectArray, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_IsEmpty[1] = {{ wxLua_wxRichTextRectArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRectArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxRichTextRectArray_IsEmpty(lua_State *L) -{ - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_Item[] = { &wxluatype_wxRichTextRectArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_Item[1] = {{ wxLua_wxRichTextRectArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRectArray_Item }}; -// wxRect Item(size_t nIndex) const; -static int LUACALL wxLua_wxRichTextRectArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call Item - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_RemoveAt[] = { &wxluatype_wxRichTextRectArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_RemoveAt[1] = {{ wxLua_wxRichTextRectArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRectArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxRichTextRectArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextRectArray * self = (wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_delete[] = { &wxluatype_wxRichTextRectArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRectArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRectArray_constructor1[] = { &wxluatype_wxRichTextRectArray, NULL }; -static int LUACALL wxLua_wxRichTextRectArray_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_constructor1[1] = {{ wxLua_wxRichTextRectArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRectArray_constructor1 }}; -// wxRichTextRectArray(const wxRichTextRectArray& array); -static int LUACALL wxLua_wxRichTextRectArray_constructor1(lua_State *L) -{ - // const wxRichTextRectArray array - const wxRichTextRectArray * array = (const wxRichTextRectArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRectArray); - // call constructor - wxRichTextRectArray* returns = new wxRichTextRectArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRectArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRectArray); - - return 1; -} - -static int LUACALL wxLua_wxRichTextRectArray_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_constructor[1] = {{ wxLua_wxRichTextRectArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextRectArray(); -static int LUACALL wxLua_wxRichTextRectArray_constructor(lua_State *L) -{ - // call constructor - wxRichTextRectArray* returns = new wxRichTextRectArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRectArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRectArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRectArray_constructor_overload[] = -{ - { wxLua_wxRichTextRectArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRectArray_constructor1 }, - { wxLua_wxRichTextRectArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextRectArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextRectArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextRectArray_delete_function(void** p) -{ - wxRichTextRectArray* o = (wxRichTextRectArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextRectArray_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_Add, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_Insert, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_IsEmpty, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_Item, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRectArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextRectArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextRectArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextRectArray_constructor_overload, s_wxluafunc_wxLua_wxRichTextRectArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextRectArray_methodCount = sizeof(wxRichTextRectArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextProperties -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextProperties' -int wxluatype_wxRichTextProperties = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_Clear[] = { &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_Clear[1] = {{ wxLua_wxRichTextProperties_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextProperties_Clear(lua_State *L) -{ - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_Copy[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_Copy[1] = {{ wxLua_wxRichTextProperties_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_Copy }}; -// void Copy(const wxRichTextProperties& props); -static int LUACALL wxLua_wxRichTextProperties_Copy(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call Copy - self->Copy(*props); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_Find[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_Find(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_Find[1] = {{ wxLua_wxRichTextProperties_Find, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_Find }}; -// int Find(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_Find(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call Find - int returns = (self->Find(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_FindOrCreateProperty[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_FindOrCreateProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_FindOrCreateProperty[1] = {{ wxLua_wxRichTextProperties_FindOrCreateProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_FindOrCreateProperty }}; -// wxVariant* FindOrCreateProperty(const wxString& name); -static int LUACALL wxLua_wxRichTextProperties_FindOrCreateProperty(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call FindOrCreateProperty - wxVariant* returns = (wxVariant*)self->FindOrCreateProperty(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetCount[] = { &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetCount[1] = {{ wxLua_wxRichTextProperties_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_GetCount }}; -// size_t GetCount() const; -static int LUACALL wxLua_wxRichTextProperties_GetCount(lua_State *L) -{ - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetCount - size_t returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetProperties[] = { &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetProperties[1] = {{ wxLua_wxRichTextProperties_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_GetProperties }}; -// wxRichTextVariantArray& GetProperties(); -static int LUACALL wxLua_wxRichTextProperties_GetProperties(lua_State *L) -{ - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetProperties - wxRichTextVariantArray* returns = (wxRichTextVariantArray*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextVariantArray); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetProperty[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetProperty[1] = {{ wxLua_wxRichTextProperties_GetProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_GetProperty }}; -// const wxVariant& GetProperty(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_GetProperty(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetProperty - const wxVariant* returns = (const wxVariant*)&self->GetProperty(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyBool[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyBool(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyBool[1] = {{ wxLua_wxRichTextProperties_GetPropertyBool, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyBool }}; -// bool GetPropertyBool(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyBool(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetPropertyBool - bool returns = (self->GetPropertyBool(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyDouble[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyDouble(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyDouble[1] = {{ wxLua_wxRichTextProperties_GetPropertyDouble, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyDouble }}; -// double GetPropertyDouble(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyDouble(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetPropertyDouble - double returns = (self->GetPropertyDouble(name)); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyLong[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyLong[1] = {{ wxLua_wxRichTextProperties_GetPropertyLong, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyLong }}; -// long GetPropertyLong(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyLong(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetPropertyLong - long returns = (self->GetPropertyLong(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyNames[] = { &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyNames[1] = {{ wxLua_wxRichTextProperties_GetPropertyNames, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyNames }}; -// wxArrayString GetPropertyNames() const; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyNames(lua_State *L) -{ - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetPropertyNames - // allocate a new object using the copy constructor - wxArrayString* returns = new wxArrayString(self->GetPropertyNames()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayString); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyString[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyString[1] = {{ wxLua_wxRichTextProperties_GetPropertyString, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_GetPropertyString }}; -// wxString GetPropertyString(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_GetPropertyString(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call GetPropertyString - wxString returns = (self->GetPropertyString(name)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_HasProperty[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_HasProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_HasProperty[1] = {{ wxLua_wxRichTextProperties_HasProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_HasProperty }}; -// bool HasProperty(const wxString& name) const; -static int LUACALL wxLua_wxRichTextProperties_HasProperty(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call HasProperty - bool returns = (self->HasProperty(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_MergeProperties[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_MergeProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_MergeProperties[1] = {{ wxLua_wxRichTextProperties_MergeProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_MergeProperties }}; -// void MergeProperties(const wxRichTextProperties& properties); -static int LUACALL wxLua_wxRichTextProperties_MergeProperties(lua_State *L) -{ - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call MergeProperties - self->MergeProperties(*properties); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_Remove[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_Remove[1] = {{ wxLua_wxRichTextProperties_Remove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_Remove }}; -// bool Remove(const wxString& name); -static int LUACALL wxLua_wxRichTextProperties_Remove(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call Remove - bool returns = (self->Remove(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_RemoveProperties[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_RemoveProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_RemoveProperties[1] = {{ wxLua_wxRichTextProperties_RemoveProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_RemoveProperties }}; -// void RemoveProperties(const wxRichTextProperties& properties); -static int LUACALL wxLua_wxRichTextProperties_RemoveProperties(lua_State *L) -{ - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call RemoveProperties - self->RemoveProperties(*properties); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperties[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextVariantArray, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperties[1] = {{ wxLua_wxRichTextProperties_SetProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperties }}; -// void SetProperties(const wxRichTextVariantArray& props); -static int LUACALL wxLua_wxRichTextProperties_SetProperties(lua_State *L) -{ - // const wxRichTextVariantArray props - const wxRichTextVariantArray * props = (const wxRichTextVariantArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextVariantArray); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperties - self->SetProperties(*props); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty5[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperty5(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty5[1] = {{ wxLua_wxRichTextProperties_SetProperty5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty5 }}; -// void SetProperty(const wxString& name, bool value); -static int LUACALL wxLua_wxRichTextProperties_SetProperty5(lua_State *L) -{ - // bool value - bool value = wxlua_getbooleantype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperty - self->SetProperty(name, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty4[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperty4(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty4[1] = {{ wxLua_wxRichTextProperties_SetProperty4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty4 }}; -// void SetProperty(const wxString& name, double value); -static int LUACALL wxLua_wxRichTextProperties_SetProperty4(lua_State *L) -{ - // double value - double value = (double)wxlua_getnumbertype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperty - self->SetProperty(name, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty3[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperty3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty3[1] = {{ wxLua_wxRichTextProperties_SetProperty3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty3 }}; -// void SetProperty(const wxString& name, long value); -static int LUACALL wxLua_wxRichTextProperties_SetProperty3(lua_State *L) -{ - // long value - long value = (long)wxlua_getnumbertype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperty - self->SetProperty(name, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty2[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperty2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty2[1] = {{ wxLua_wxRichTextProperties_SetProperty2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty2 }}; -// void SetProperty(const wxString& name, const wxString& value); -static int LUACALL wxLua_wxRichTextProperties_SetProperty2(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperty - self->SetProperty(name, value); - - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty1[] = { &wxluatype_wxRichTextProperties, &wxluatype_TSTRING, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperty1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty1[1] = {{ wxLua_wxRichTextProperties_SetProperty1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty1 }}; -// void SetProperty(const wxString& name, const wxVariant& variant); -static int LUACALL wxLua_wxRichTextProperties_SetProperty1(lua_State *L) -{ - // const wxVariant variant - const wxVariant * variant = (const wxVariant *)wxluaT_getuserdatatype(L, 3, wxluatype_wxVariant); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperty - self->SetProperty(name, *variant); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxRichTextProperties_SetProperty(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty[1] = {{ wxLua_wxRichTextProperties_SetProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty }}; -// void SetProperty(const wxVariant& variant); -static int LUACALL wxLua_wxRichTextProperties_SetProperty(lua_State *L) -{ - // const wxVariant variant - const wxVariant * variant = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call SetProperty - self->SetProperty(*variant); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_delete[] = { &wxluatype_wxRichTextProperties, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_op_eq[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_op_eq[1] = {{ wxLua_wxRichTextProperties_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_op_eq }}; -// bool operator==(const wxRichTextProperties& props) const; -static int LUACALL wxLua_wxRichTextProperties_op_eq(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call op_eq - bool returns = ((*self)==(*props)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_op_index1[] = { &wxluatype_wxRichTextProperties, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextProperties_op_index1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_op_index1[1] = {{ wxLua_wxRichTextProperties_op_index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_op_index1 }}; -// wxVariant& operator[](size_t idx); -static int LUACALL wxLua_wxRichTextProperties_op_index1(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call op_index - wxVariant* returns = (wxVariant*)&((*self)[(idx)]); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_op_index[] = { &wxluatype_wxRichTextProperties, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextProperties_op_index(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_op_index[1] = {{ wxLua_wxRichTextProperties_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_op_index }}; -// const wxVariant& operator[](size_t idx) const; -static int LUACALL wxLua_wxRichTextProperties_op_index(lua_State *L) -{ - // size_t idx - size_t idx = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call op_index - const wxVariant* returns = (const wxVariant*)&((*self)[(idx)]); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_op_set[] = { &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_op_set[1] = {{ wxLua_wxRichTextProperties_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_op_set }}; -// void operator=(const wxRichTextProperties& props); -static int LUACALL wxLua_wxRichTextProperties_op_set(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextProperties * self = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call op_set - (*self)=(*props); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextProperties_constructor1[] = { &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextProperties_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_constructor1[1] = {{ wxLua_wxRichTextProperties_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_constructor1 }}; -// wxRichTextProperties(const wxRichTextProperties& props); -static int LUACALL wxLua_wxRichTextProperties_constructor1(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextProperties); - // call constructor - wxRichTextProperties* returns = new wxRichTextProperties(*props); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextProperties); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static int LUACALL wxLua_wxRichTextProperties_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_constructor[1] = {{ wxLua_wxRichTextProperties_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextProperties(); -static int LUACALL wxLua_wxRichTextProperties_constructor(lua_State *L) -{ - // call constructor - wxRichTextProperties* returns = new wxRichTextProperties(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextProperties); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_SetProperty_overload[] = -{ - { wxLua_wxRichTextProperties_SetProperty5, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty5 }, - { wxLua_wxRichTextProperties_SetProperty4, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty4 }, - { wxLua_wxRichTextProperties_SetProperty3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty3 }, - { wxLua_wxRichTextProperties_SetProperty2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty2 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { wxLua_wxRichTextProperties_SetProperty1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty1 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { wxLua_wxRichTextProperties_SetProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_SetProperty }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxRichTextProperties_SetProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextProperties_SetProperty_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_op_index_overload[] = -{ - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { wxLua_wxRichTextProperties_op_index1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_op_index1 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { wxLua_wxRichTextProperties_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextProperties_op_index }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) -}; -static int s_wxluafunc_wxLua_wxRichTextProperties_op_index_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextProperties_op_index_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextProperties_constructor_overload[] = -{ - { wxLua_wxRichTextProperties_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextProperties_constructor1 }, - { wxLua_wxRichTextProperties_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextProperties_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextProperties_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextProperties_delete_function(void** p) -{ - wxRichTextProperties* o = (wxRichTextProperties*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextProperties_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_Clear, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_Copy, 1, NULL }, - { "Find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_Find, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { "FindOrCreateProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_FindOrCreateProperty, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetCount, 1, NULL }, - { "GetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetProperties, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetProperty, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT) - - { "GetPropertyBool", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyBool, 1, NULL }, - { "GetPropertyDouble", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyDouble, 1, NULL }, - { "GetPropertyLong", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyLong, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPropertyNames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyNames, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetPropertyString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_GetPropertyString, 1, NULL }, - { "HasProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_HasProperty, 1, NULL }, - { "MergeProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_MergeProperties, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_Remove, 1, NULL }, - { "RemoveProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_RemoveProperties, 1, NULL }, - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_SetProperties, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) - { "SetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_SetProperty_overload, s_wxluafunc_wxLua_wxRichTextProperties_SetProperty_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextProperties_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_op_eq, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_op_index_overload, s_wxluafunc_wxLua_wxRichTextProperties_op_index_overload_count, 0 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_VARIANT)) - - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextProperties_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextProperties", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextProperties_constructor_overload, s_wxluafunc_wxLua_wxRichTextProperties_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextProperties_methodCount = sizeof(wxRichTextProperties_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextFontTable -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFontTable' -int wxluatype_wxRichTextFontTable = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_Clear[] = { &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_Clear[1] = {{ wxLua_wxRichTextFontTable_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFontTable_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextFontTable_Clear(lua_State *L) -{ - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call Clear - self->Clear(); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_FindFont[] = { &wxluatype_wxRichTextFontTable, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_FindFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_FindFont[1] = {{ wxLua_wxRichTextFontTable_FindFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFontTable_FindFont }}; -// wxFont FindFont(const wxRichTextAttr& fontSpec); -static int LUACALL wxLua_wxRichTextFontTable_FindFont(lua_State *L) -{ - // const wxRichTextAttr fontSpec - const wxRichTextAttr * fontSpec = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call FindFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->FindFont(*fontSpec)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_IsOk[] = { &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_IsOk[1] = {{ wxLua_wxRichTextFontTable_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFontTable_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxRichTextFontTable_IsOk(lua_State *L) -{ - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_SetFontScale[] = { &wxluatype_wxRichTextFontTable, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_SetFontScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_SetFontScale[1] = {{ wxLua_wxRichTextFontTable_SetFontScale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFontTable_SetFontScale }}; -// void SetFontScale(double fontScale); -static int LUACALL wxLua_wxRichTextFontTable_SetFontScale(lua_State *L) -{ - // double fontScale - double fontScale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call SetFontScale - self->SetFontScale(fontScale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_delete[] = { &wxluatype_wxRichTextFontTable, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFontTable_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_op_eq[] = { &wxluatype_wxRichTextFontTable, &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_op_eq[1] = {{ wxLua_wxRichTextFontTable_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFontTable_op_eq }}; -// bool operator == (const wxRichTextFontTable& table) const; -static int LUACALL wxLua_wxRichTextFontTable_op_eq(lua_State *L) -{ - // const wxRichTextFontTable table - const wxRichTextFontTable * table = (const wxRichTextFontTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFontTable); - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call op_eq - bool returns = ((*self)==(*table)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_op_ne[] = { &wxluatype_wxRichTextFontTable, &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_op_ne[1] = {{ wxLua_wxRichTextFontTable_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFontTable_op_ne }}; -// bool operator != (const wxRichTextFontTable& table) const; -static int LUACALL wxLua_wxRichTextFontTable_op_ne(lua_State *L) -{ - // const wxRichTextFontTable table - const wxRichTextFontTable * table = (const wxRichTextFontTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFontTable); - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call op_ne - bool returns = ((*self)!=(*table)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_op_set[] = { &wxluatype_wxRichTextFontTable, &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_op_set[1] = {{ wxLua_wxRichTextFontTable_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFontTable_op_set }}; -// void operator= (const wxRichTextFontTable& table); -static int LUACALL wxLua_wxRichTextFontTable_op_set(lua_State *L) -{ - // const wxRichTextFontTable table - const wxRichTextFontTable * table = (const wxRichTextFontTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFontTable); - // get this - wxRichTextFontTable * self = (wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call op_set - (*self)=(*table); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFontTable_constructor1[] = { &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextFontTable_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_constructor1[1] = {{ wxLua_wxRichTextFontTable_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFontTable_constructor1 }}; -// wxRichTextFontTable(const wxRichTextFontTable& table); -static int LUACALL wxLua_wxRichTextFontTable_constructor1(lua_State *L) -{ - // const wxRichTextFontTable table - const wxRichTextFontTable * table = (const wxRichTextFontTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFontTable); - // call constructor - wxRichTextFontTable* returns = new wxRichTextFontTable(*table); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFontTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFontTable); - - return 1; -} - -static int LUACALL wxLua_wxRichTextFontTable_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_constructor[1] = {{ wxLua_wxRichTextFontTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextFontTable(); -static int LUACALL wxLua_wxRichTextFontTable_constructor(lua_State *L) -{ - // call constructor - wxRichTextFontTable* returns = new wxRichTextFontTable(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFontTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFontTable); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFontTable_constructor_overload[] = -{ - { wxLua_wxRichTextFontTable_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFontTable_constructor1 }, - { wxLua_wxRichTextFontTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextFontTable_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFontTable_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextFontTable_delete_function(void** p) -{ - wxRichTextFontTable* o = (wxRichTextFontTable*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFontTable_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_Clear, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_FindFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_IsOk, 1, NULL }, - { "SetFontScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_SetFontScale, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFontTable_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_op_ne, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFontTable_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextFontTable", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextFontTable_constructor_overload, s_wxluafunc_wxLua_wxRichTextFontTable_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFontTable_methodCount = sizeof(wxRichTextFontTable_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextRangeArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextRangeArray' -int wxluatype_wxRichTextRangeArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_Add[] = { &wxluatype_wxRichTextRangeArray, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_Add[1] = {{ wxLua_wxRichTextRangeArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRangeArray_Add }}; -// void Add(const wxRichTextRange& item); -static int LUACALL wxLua_wxRichTextRangeArray_Add(lua_State *L) -{ - // const wxRichTextRange item - const wxRichTextRange * item = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call Add - self->Add(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_Clear[] = { &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_Clear[1] = {{ wxLua_wxRichTextRangeArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRangeArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextRangeArray_Clear(lua_State *L) -{ - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_GetCount[] = { &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_GetCount[1] = {{ wxLua_wxRichTextRangeArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRangeArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextRangeArray_GetCount(lua_State *L) -{ - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_Insert[] = { &wxluatype_wxRichTextRangeArray, &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_Insert[1] = {{ wxLua_wxRichTextRangeArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextRangeArray_Insert }}; -// void Insert(const wxRichTextRange& item, int nIndex); -static int LUACALL wxLua_wxRichTextRangeArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxRichTextRange item - const wxRichTextRange * item = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call Insert - self->Insert(*item, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_IsEmpty[] = { &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_IsEmpty[1] = {{ wxLua_wxRichTextRangeArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRangeArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxRichTextRangeArray_IsEmpty(lua_State *L) -{ - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_Item[] = { &wxluatype_wxRichTextRangeArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_Item[1] = {{ wxLua_wxRichTextRangeArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRangeArray_Item }}; -// wxRichTextRange Item(size_t nIndex) const; -static int LUACALL wxLua_wxRichTextRangeArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call Item - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_RemoveAt[] = { &wxluatype_wxRichTextRangeArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_RemoveAt[1] = {{ wxLua_wxRichTextRangeArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRangeArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxRichTextRangeArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextRangeArray * self = (wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_delete[] = { &wxluatype_wxRichTextRangeArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRangeArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRangeArray_constructor1[] = { &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextRangeArray_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_constructor1[1] = {{ wxLua_wxRichTextRangeArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRangeArray_constructor1 }}; -// wxRichTextRangeArray(const wxRichTextRangeArray& array); -static int LUACALL wxLua_wxRichTextRangeArray_constructor1(lua_State *L) -{ - // const wxRichTextRangeArray array - const wxRichTextRangeArray * array = (const wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRangeArray); - // call constructor - wxRichTextRangeArray* returns = new wxRichTextRangeArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRangeArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRangeArray); - - return 1; -} - -static int LUACALL wxLua_wxRichTextRangeArray_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_constructor[1] = {{ wxLua_wxRichTextRangeArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextRangeArray(); -static int LUACALL wxLua_wxRichTextRangeArray_constructor(lua_State *L) -{ - // call constructor - wxRichTextRangeArray* returns = new wxRichTextRangeArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRangeArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRangeArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRangeArray_constructor_overload[] = -{ - { wxLua_wxRichTextRangeArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRangeArray_constructor1 }, - { wxLua_wxRichTextRangeArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextRangeArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextRangeArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextRangeArray_delete_function(void** p) -{ - wxRichTextRangeArray* o = (wxRichTextRangeArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextRangeArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRangeArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextRangeArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextRangeArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextRangeArray_constructor_overload, s_wxluafunc_wxLua_wxRichTextRangeArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextRangeArray_methodCount = sizeof(wxRichTextRangeArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextRange -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextRange' -int wxluatype_wxRichTextRange = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_Contains[] = { &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRange_Contains(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_Contains[1] = {{ wxLua_wxRichTextRange_Contains, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_Contains }}; -// bool Contains(long pos) const; -static int LUACALL wxLua_wxRichTextRange_Contains(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call Contains - bool returns = (self->Contains(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_FromInternal[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_FromInternal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_FromInternal[1] = {{ wxLua_wxRichTextRange_FromInternal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_FromInternal }}; -// wxRichTextRange FromInternal() const; -static int LUACALL wxLua_wxRichTextRange_FromInternal(lua_State *L) -{ - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call FromInternal - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->FromInternal()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_GetEnd[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_GetEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_GetEnd[1] = {{ wxLua_wxRichTextRange_GetEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_GetEnd }}; -// long GetEnd() const; -static int LUACALL wxLua_wxRichTextRange_GetEnd(lua_State *L) -{ - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call GetEnd - long returns = (self->GetEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_GetLength[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_GetLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_GetLength[1] = {{ wxLua_wxRichTextRange_GetLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_GetLength }}; -// long GetLength() const; -static int LUACALL wxLua_wxRichTextRange_GetLength(lua_State *L) -{ - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call GetLength - long returns = (self->GetLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_GetStart[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_GetStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_GetStart[1] = {{ wxLua_wxRichTextRange_GetStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_GetStart }}; -// long GetStart() const; -static int LUACALL wxLua_wxRichTextRange_GetStart(lua_State *L) -{ - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call GetStart - long returns = (self->GetStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_IsOutside[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_IsOutside(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_IsOutside[1] = {{ wxLua_wxRichTextRange_IsOutside, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_IsOutside }}; -// bool IsOutside(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextRange_IsOutside(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call IsOutside - bool returns = (self->IsOutside(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_IsWithin[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_IsWithin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_IsWithin[1] = {{ wxLua_wxRichTextRange_IsWithin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_IsWithin }}; -// bool IsWithin(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextRange_IsWithin(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call IsWithin - bool returns = (self->IsWithin(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_LimitTo[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_LimitTo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_LimitTo[1] = {{ wxLua_wxRichTextRange_LimitTo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_LimitTo }}; -// bool LimitTo(const wxRichTextRange& range) ; -static int LUACALL wxLua_wxRichTextRange_LimitTo(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call LimitTo - bool returns = (self->LimitTo(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_SetEnd[] = { &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRange_SetEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_SetEnd[1] = {{ wxLua_wxRichTextRange_SetEnd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_SetEnd }}; -// void SetEnd(long end); -static int LUACALL wxLua_wxRichTextRange_SetEnd(lua_State *L) -{ - // long end - long end = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call SetEnd - self->SetEnd(end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_SetRange[] = { &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRange_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_SetRange[1] = {{ wxLua_wxRichTextRange_SetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextRange_SetRange }}; -// void SetRange(long start, long end); -static int LUACALL wxLua_wxRichTextRange_SetRange(lua_State *L) -{ - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call SetRange - self->SetRange(start, end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_SetStart[] = { &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRange_SetStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_SetStart[1] = {{ wxLua_wxRichTextRange_SetStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_SetStart }}; -// void SetStart(long start); -static int LUACALL wxLua_wxRichTextRange_SetStart(lua_State *L) -{ - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call SetStart - self->SetStart(start); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_Swap[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_Swap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_Swap[1] = {{ wxLua_wxRichTextRange_Swap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_Swap }}; -// void Swap(); -static int LUACALL wxLua_wxRichTextRange_Swap(lua_State *L) -{ - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call Swap - self->Swap(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_ToInternal[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_ToInternal(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_ToInternal[1] = {{ wxLua_wxRichTextRange_ToInternal, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_ToInternal }}; -// wxRichTextRange ToInternal() const; -static int LUACALL wxLua_wxRichTextRange_ToInternal(lua_State *L) -{ - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call ToInternal - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->ToInternal()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_delete[] = { &wxluatype_wxRichTextRange, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_op_add[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_op_add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_op_add[1] = {{ wxLua_wxRichTextRange_op_add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_op_add }}; -// wxRichTextRange operator +(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextRange_op_add(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call op_add - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange((*self)+(*range)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_op_eq[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_op_eq[1] = {{ wxLua_wxRichTextRange_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_op_eq }}; -// bool operator ==(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextRange_op_eq(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call op_eq - bool returns = ((*self)==(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_op_ne[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_op_ne(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_op_ne[1] = {{ wxLua_wxRichTextRange_op_ne, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_op_ne }}; -// bool operator !=(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextRange_op_ne(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call op_ne - bool returns = ((*self)!=(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_op_set[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_op_set[1] = {{ wxLua_wxRichTextRange_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_op_set }}; -// void operator =(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextRange_op_set(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call op_set - (*self)=(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_op_sub[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_op_sub(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_op_sub[1] = {{ wxLua_wxRichTextRange_op_sub, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_op_sub }}; -// wxRichTextRange operator -(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextRange_op_sub(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextRange * self = (wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call op_sub - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange((*self)-(*range)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_constructor2[] = { &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextRange_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_constructor2[1] = {{ wxLua_wxRichTextRange_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_constructor2 }}; -// wxRichTextRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextRange_constructor2(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call constructor - wxRichTextRange* returns = new wxRichTextRange(*range); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRange_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextRange_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_constructor1[1] = {{ wxLua_wxRichTextRange_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_constructor1 }}; -// wxRichTextRange(long start, long end); -static int LUACALL wxLua_wxRichTextRange_constructor1(lua_State *L) -{ - // long end - long end = (long)wxlua_getnumbertype(L, 2); - // long start - long start = (long)wxlua_getnumbertype(L, 1); - // call constructor - wxRichTextRange* returns = new wxRichTextRange(start, end); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static int LUACALL wxLua_wxRichTextRange_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_constructor[1] = {{ wxLua_wxRichTextRange_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextRange(); -static int LUACALL wxLua_wxRichTextRange_constructor(lua_State *L) -{ - // call constructor - wxRichTextRange* returns = new wxRichTextRange(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRange_constructor_overload[] = -{ - { wxLua_wxRichTextRange_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRange_constructor2 }, - { wxLua_wxRichTextRange_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRange_constructor1 }, - { wxLua_wxRichTextRange_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextRange_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextRange_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextRange_delete_function(void** p) -{ - wxRichTextRange* o = (wxRichTextRange*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextRange_methods[] = { - { "Contains", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_Contains, 1, NULL }, - { "FromInternal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_FromInternal, 1, NULL }, - { "GetEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_GetEnd, 1, NULL }, - { "GetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_GetLength, 1, NULL }, - { "GetStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_GetStart, 1, NULL }, - { "IsOutside", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_IsOutside, 1, NULL }, - { "IsWithin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_IsWithin, 1, NULL }, - { "LimitTo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_LimitTo, 1, NULL }, - { "SetEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_SetEnd, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_SetRange, 1, NULL }, - { "SetStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_SetStart, 1, NULL }, - { "Swap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_Swap, 1, NULL }, - { "ToInternal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_ToInternal, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextRange_delete, 1, NULL }, - { "op_add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_op_add, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_op_eq, 1, NULL }, - { "op_ne", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_op_ne, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_op_set, 1, NULL }, - { "op_sub", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRange_op_sub, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextRange", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextRange_constructor_overload, s_wxluafunc_wxLua_wxRichTextRange_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextRange_methodCount = sizeof(wxRichTextRange_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextSelection -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextSelection' -int wxluatype_wxRichTextSelection = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Add[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Add[1] = {{ wxLua_wxRichTextSelection_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_Add }}; -// void Add(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextSelection_Add(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call Add - self->Add(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Copy[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Copy[1] = {{ wxLua_wxRichTextSelection_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_Copy }}; -// void Copy(const wxRichTextSelection& sel); -static int LUACALL wxLua_wxRichTextSelection_Copy(lua_State *L) -{ - // const wxRichTextSelection sel - const wxRichTextSelection * sel = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextSelection); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call Copy - self->Copy(*sel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_GetContainer[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_GetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetContainer[1] = {{ wxLua_wxRichTextSelection_GetContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_GetContainer }}; -// wxRichTextParagraphLayoutBox* GetContainer() const; -static int LUACALL wxLua_wxRichTextSelection_GetContainer(lua_State *L) -{ - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call GetContainer - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_GetCount[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetCount[1] = {{ wxLua_wxRichTextSelection_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_GetCount }}; -// size_t GetCount() const; -static int LUACALL wxLua_wxRichTextSelection_GetCount(lua_State *L) -{ - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call GetCount - size_t returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_GetRange1[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_GetRange1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetRange1[1] = {{ wxLua_wxRichTextSelection_GetRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_GetRange1 }}; -// wxRichTextRange GetRange() const; -static int LUACALL wxLua_wxRichTextSelection_GetRange1(lua_State *L) -{ - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call GetRange - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetRange()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_GetRange[] = { &wxluatype_wxRichTextSelection, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextSelection_GetRange(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetRange[1] = {{ wxLua_wxRichTextSelection_GetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_GetRange }}; -// wxRichTextRange GetRange(size_t i) const; -static int LUACALL wxLua_wxRichTextSelection_GetRange(lua_State *L) -{ - // size_t i - size_t i = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call GetRange - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetRange(i)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_GetRanges[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_GetRanges(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetRanges[1] = {{ wxLua_wxRichTextSelection_GetRanges, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_GetRanges }}; -// wxRichTextRangeArray& GetRanges(); -static int LUACALL wxLua_wxRichTextSelection_GetRanges(lua_State *L) -{ - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call GetRanges - wxRichTextRangeArray* returns = (wxRichTextRangeArray*)&self->GetRanges(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRangeArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_GetSelectionForObject[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextSelection_GetSelectionForObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetSelectionForObject[1] = {{ wxLua_wxRichTextSelection_GetSelectionForObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_GetSelectionForObject }}; -// wxRichTextRangeArray GetSelectionForObject(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextSelection_GetSelectionForObject(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call GetSelectionForObject - // allocate a new object using the copy constructor - wxRichTextRangeArray* returns = new wxRichTextRangeArray(self->GetSelectionForObject(obj)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRangeArray); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRangeArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Get_m_container[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Get_m_container(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Get_m_container[1] = {{ wxLua_wxRichTextSelection_Get_m_container, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_Get_m_container }}; -// wxRichTextParagraphLayoutBox* m_container; -static int LUACALL wxLua_wxRichTextSelection_Get_m_container(lua_State *L) -{ - // get this - wxRichTextSelection *self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_container, wxluatype_wxRichTextParagraphLayoutBox); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Get_m_ranges[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Get_m_ranges(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Get_m_ranges[1] = {{ wxLua_wxRichTextSelection_Get_m_ranges, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_Get_m_ranges }}; -// wxRichTextRangeArray m_ranges; -static int LUACALL wxLua_wxRichTextSelection_Get_m_ranges(lua_State *L) -{ - // get this - wxRichTextSelection *self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_ranges, wxluatype_wxRichTextRangeArray); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_IsValid[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_IsValid[1] = {{ wxLua_wxRichTextSelection_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxRichTextSelection_IsValid(lua_State *L) -{ - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Reset[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Reset[1] = {{ wxLua_wxRichTextSelection_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_Reset }}; -// void Reset(); -static int LUACALL wxLua_wxRichTextSelection_Reset(lua_State *L) -{ - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Set1[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextRangeArray, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Set1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Set1[1] = {{ wxLua_wxRichTextSelection_Set1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextSelection_Set1 }}; -// void Set(const wxRichTextRangeArray& ranges, wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextSelection_Set1(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // const wxRichTextRangeArray ranges - const wxRichTextRangeArray * ranges = (const wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRangeArray); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call Set - self->Set(*ranges, container); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Set[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Set(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Set[1] = {{ wxLua_wxRichTextSelection_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextSelection_Set }}; -// void Set(const wxRichTextRange& range, wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextSelection_Set(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call Set - self->Set(*range, container); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_SetContainer[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextSelection_SetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_SetContainer[1] = {{ wxLua_wxRichTextSelection_SetContainer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_SetContainer }}; -// void SetContainer(wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextSelection_SetContainer(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call SetContainer - self->SetContainer(container); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_SetRange[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextSelection_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_SetRange[1] = {{ wxLua_wxRichTextSelection_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_SetRange }}; -// void SetRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextSelection_SetRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call SetRange - self->SetRange(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_SetRanges[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextSelection_SetRanges(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_SetRanges[1] = {{ wxLua_wxRichTextSelection_SetRanges, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_SetRanges }}; -// void SetRanges(const wxRichTextRangeArray& ranges); -static int LUACALL wxLua_wxRichTextSelection_SetRanges(lua_State *L) -{ - // const wxRichTextRangeArray ranges - const wxRichTextRangeArray * ranges = (const wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRangeArray); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call SetRanges - self->SetRanges(*ranges); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Set_m_container[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Set_m_container(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Set_m_container[1] = {{ wxLua_wxRichTextSelection_Set_m_container, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_Set_m_container }}; -// wxRichTextParagraphLayoutBox* m_container; -static int LUACALL wxLua_wxRichTextSelection_Set_m_container(lua_State *L) -{ - // get the data type value - wxRichTextParagraphLayoutBox* val = (wxRichTextParagraphLayoutBox*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextSelection *self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - self->m_container = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_Set_m_ranges[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextSelection_Set_m_ranges(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Set_m_ranges[1] = {{ wxLua_wxRichTextSelection_Set_m_ranges, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_Set_m_ranges }}; -// wxRichTextRangeArray m_ranges; -static int LUACALL wxLua_wxRichTextSelection_Set_m_ranges(lua_State *L) -{ - // get the data type value - wxRichTextRangeArray* val = (wxRichTextRangeArray*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRangeArray); - // get this - wxRichTextSelection *self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - self->m_ranges = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection3[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextSelection_WithinSelection3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection3[1] = {{ wxLua_wxRichTextSelection_WithinSelection3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection3 }}; -// static bool WithinSelection(const wxRichTextRange& range, const wxRichTextRangeArray& ranges); -static int LUACALL wxLua_wxRichTextSelection_WithinSelection3(lua_State *L) -{ - // const wxRichTextRangeArray ranges - const wxRichTextRangeArray * ranges = (const wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRangeArray); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call WithinSelection - bool returns = (wxRichTextSelection::WithinSelection(*range, *ranges)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection2[] = { &wxluatype_TNUMBER, &wxluatype_wxRichTextRangeArray, NULL }; -static int LUACALL wxLua_wxRichTextSelection_WithinSelection2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection2[1] = {{ wxLua_wxRichTextSelection_WithinSelection2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection2 }}; -// static bool WithinSelection(long pos, const wxRichTextRangeArray& ranges); -static int LUACALL wxLua_wxRichTextSelection_WithinSelection2(lua_State *L) -{ - // const wxRichTextRangeArray ranges - const wxRichTextRangeArray * ranges = (const wxRichTextRangeArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRangeArray); - // long pos - long pos = (long)wxlua_getnumbertype(L, 1); - // call WithinSelection - bool returns = (wxRichTextSelection::WithinSelection(pos, *ranges)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection1[] = { &wxluatype_wxRichTextSelection, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextSelection_WithinSelection1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection1[1] = {{ wxLua_wxRichTextSelection_WithinSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection1 }}; -// bool WithinSelection(long pos) const; -static int LUACALL wxLua_wxRichTextSelection_WithinSelection1(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call WithinSelection - bool returns = (self->WithinSelection(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection[] = { &wxluatype_wxRichTextSelection, &wxluatype_TNUMBER, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextSelection_WithinSelection(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection[1] = {{ wxLua_wxRichTextSelection_WithinSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection }}; -// bool WithinSelection(long pos, wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextSelection_WithinSelection(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call WithinSelection - bool returns = (self->WithinSelection(pos, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_delete[] = { &wxluatype_wxRichTextSelection, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_op_eq[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_op_eq[1] = {{ wxLua_wxRichTextSelection_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_op_eq }}; -// bool operator==(const wxRichTextSelection& sel) const; -static int LUACALL wxLua_wxRichTextSelection_op_eq(lua_State *L) -{ - // const wxRichTextSelection sel - const wxRichTextSelection * sel = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextSelection); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call op_eq - bool returns = ((*self)==(*sel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_op_index[] = { &wxluatype_wxRichTextSelection, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextSelection_op_index(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_op_index[1] = {{ wxLua_wxRichTextSelection_op_index, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_op_index }}; -// wxRichTextRange operator[](size_t i) const; -static int LUACALL wxLua_wxRichTextSelection_op_index(lua_State *L) -{ - // size_t i - size_t i = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call op_index - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange((*self)[(i)]); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_op_set[] = { &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_op_set[1] = {{ wxLua_wxRichTextSelection_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_op_set }}; -// void operator=(const wxRichTextSelection& sel); -static int LUACALL wxLua_wxRichTextSelection_op_set(lua_State *L) -{ - // const wxRichTextSelection sel - const wxRichTextSelection * sel = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextSelection); - // get this - wxRichTextSelection * self = (wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call op_set - (*self)=(*sel); - - return 0; -} - -static int LUACALL wxLua_wxRichTextSelection_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_constructor2[1] = {{ wxLua_wxRichTextSelection_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextSelection(); -static int LUACALL wxLua_wxRichTextSelection_constructor2(lua_State *L) -{ - // call constructor - wxRichTextSelection* returns = new wxRichTextSelection(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextSelection); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_constructor1[] = { &wxluatype_wxRichTextRange, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextSelection_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_constructor1[1] = {{ wxLua_wxRichTextSelection_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_constructor1 }}; -// wxRichTextSelection(const wxRichTextRange& range, wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextSelection_constructor1(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRange); - // call constructor - wxRichTextSelection* returns = new wxRichTextSelection(*range, container); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextSelection); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextSelection_constructor[] = { &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextSelection_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_constructor[1] = {{ wxLua_wxRichTextSelection_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_constructor }}; -// wxRichTextSelection(const wxRichTextSelection& sel); -static int LUACALL wxLua_wxRichTextSelection_constructor(lua_State *L) -{ - // const wxRichTextSelection sel - const wxRichTextSelection * sel = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextSelection); - // call constructor - wxRichTextSelection* returns = new wxRichTextSelection(*sel); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextSelection); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_GetRange_overload[] = -{ - { wxLua_wxRichTextSelection_GetRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_GetRange1 }, - { wxLua_wxRichTextSelection_GetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_GetRange }, -}; -static int s_wxluafunc_wxLua_wxRichTextSelection_GetRange_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextSelection_GetRange_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_Set_overload[] = -{ - { wxLua_wxRichTextSelection_Set1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextSelection_Set1 }, - { wxLua_wxRichTextSelection_Set, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextSelection_Set }, -}; -static int s_wxluafunc_wxLua_wxRichTextSelection_Set_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextSelection_Set_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection_overload[] = -{ - { wxLua_wxRichTextSelection_WithinSelection3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection3 }, - { wxLua_wxRichTextSelection_WithinSelection2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection2 }, - { wxLua_wxRichTextSelection_WithinSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection1 }, - { wxLua_wxRichTextSelection_WithinSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextSelection_WithinSelection }, -}; -static int s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextSelection_constructor_overload[] = -{ - { wxLua_wxRichTextSelection_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxRichTextSelection_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextSelection_constructor1 }, - { wxLua_wxRichTextSelection_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextSelection_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextSelection_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextSelection_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextSelection_delete_function(void** p) -{ - wxRichTextSelection* o = (wxRichTextSelection*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextSelection_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Add, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Copy, 1, NULL }, - { "GetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_GetContainer, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_GetCount, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_GetRange_overload, s_wxluafunc_wxLua_wxRichTextSelection_GetRange_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRanges", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_GetRanges, 1, NULL }, - { "GetSelectionForObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_GetSelectionForObject, 1, NULL }, - // %member { "Get_m_container", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Get_m_container, 1, NULL }, - // %member { "Get_m_ranges", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Get_m_ranges, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_IsValid, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Reset, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Set_overload, s_wxluafunc_wxLua_wxRichTextSelection_Set_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_SetContainer, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_SetRange, 1, NULL }, - { "SetRanges", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_SetRanges, 1, NULL }, - // %member { "Set_m_container", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Set_m_container, 1, NULL }, - // %member { "Set_m_ranges", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_Set_m_ranges, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "WithinSelection", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection_overload, s_wxluafunc_wxLua_wxRichTextSelection_WithinSelection_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextSelection_delete, 1, NULL }, - { "m_container", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextSelection_Set_m_container, 1, NULL }, - { "m_container", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextSelection_Get_m_container, 1, NULL }, - { "m_ranges", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextSelection_Set_m_ranges, 1, NULL }, - { "m_ranges", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextSelection_Get_m_ranges, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_op_eq, 1, NULL }, - { "op_index", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_op_index, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextSelection_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextSelection", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextSelection_constructor_overload, s_wxluafunc_wxLua_wxRichTextSelection_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextSelection_methodCount = sizeof(wxRichTextSelection_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextDrawingContext -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextDrawingContext' -int wxluatype_wxRichTextDrawingContext = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes }}; -// bool ApplyVirtualAttributes(wxRichTextAttr& attr, wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call ApplyVirtualAttributes - bool returns = (self->ApplyVirtualAttributes(*attr, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_EnableVirtualAttributes[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_EnableVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_EnableVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingContext_EnableVirtualAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_EnableVirtualAttributes }}; -// void EnableVirtualAttributes(bool b); -static int LUACALL wxLua_wxRichTextDrawingContext_EnableVirtualAttributes(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call EnableVirtualAttributes - self->EnableVirtualAttributes(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualAttributes[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingContext_GetVirtualAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualAttributes }}; -// wxRichTextAttr GetVirtualAttributes(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualAttributes(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call GetVirtualAttributes - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetVirtualAttributes(obj)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled[] = { &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled[1] = {{ wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled }}; -// bool GetVirtualAttributesEnabled() const; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled(lua_State *L) -{ - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call GetVirtualAttributesEnabled - bool returns = (self->GetVirtualAttributesEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextObject, &wxluatype_wxArrayInt, &wxluatype_wxRichTextAttrArray, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes[1] = {{ wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes }}; -// int GetVirtualSubobjectAttributes(wxRichTextObject* obj, wxArrayInt& positions, wxRichTextAttrArray& attributes) const; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes(lua_State *L) -{ - // wxRichTextAttrArray attributes - wxRichTextAttrArray * attributes = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttrArray); - // wxArrayInt positions - wxArrayInt * positions = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call GetVirtualSubobjectAttributes - int returns = (self->GetVirtualSubobjectAttributes(obj, *positions, *attributes)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount[1] = {{ wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount }}; -// int GetVirtualSubobjectAttributesCount(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call GetVirtualSubobjectAttributesCount - int returns = (self->GetVirtualSubobjectAttributesCount(obj)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualText[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextPlainText, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualText[1] = {{ wxLua_wxRichTextDrawingContext_GetVirtualText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_GetVirtualText }}; -// bool GetVirtualText(const wxRichTextPlainText* obj, wxString& text) const; -static int LUACALL wxLua_wxRichTextDrawingContext_GetVirtualText(lua_State *L) -{ - // wxString text - wxString text = wxlua_getwxStringtype(L, 3); - // const wxRichTextPlainText obj - const wxRichTextPlainText * obj = (const wxRichTextPlainText *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextPlainText); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call GetVirtualText - bool returns = (self->GetVirtualText(obj, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Get_m_buffer[] = { &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_Get_m_buffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_Get_m_buffer[1] = {{ wxLua_wxRichTextDrawingContext_Get_m_buffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Get_m_buffer }}; -// wxRichTextBuffer* m_buffer; -static int LUACALL wxLua_wxRichTextDrawingContext_Get_m_buffer(lua_State *L) -{ - // get this - wxRichTextDrawingContext *self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_buffer, wxluatype_wxRichTextBuffer); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes[] = { &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes }}; -// bool m_enableVirtualAttributes; -static int LUACALL wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes(lua_State *L) -{ - // get this - wxRichTextDrawingContext *self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // push the result flag - lua_pushboolean(L, self->m_enableVirtualAttributes); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_HasVirtualAttributes[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_HasVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_HasVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingContext_HasVirtualAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_HasVirtualAttributes }}; -// bool HasVirtualAttributes(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingContext_HasVirtualAttributes(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call HasVirtualAttributes - bool returns = (self->HasVirtualAttributes(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_HasVirtualText[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_HasVirtualText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_HasVirtualText[1] = {{ wxLua_wxRichTextDrawingContext_HasVirtualText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_HasVirtualText }}; -// bool HasVirtualText(const wxRichTextPlainText* obj) const; -static int LUACALL wxLua_wxRichTextDrawingContext_HasVirtualText(lua_State *L) -{ - // const wxRichTextPlainText obj - const wxRichTextPlainText * obj = (const wxRichTextPlainText *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextPlainText); - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call HasVirtualText - bool returns = (self->HasVirtualText(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Init[] = { &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_Init[1] = {{ wxLua_wxRichTextDrawingContext_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextDrawingContext_Init(lua_State *L) -{ - // get this - wxRichTextDrawingContext * self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Set_m_buffer[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_Set_m_buffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_Set_m_buffer[1] = {{ wxLua_wxRichTextDrawingContext_Set_m_buffer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Set_m_buffer }}; -// wxRichTextBuffer* m_buffer; -static int LUACALL wxLua_wxRichTextDrawingContext_Set_m_buffer(lua_State *L) -{ - // get the data type value - wxRichTextBuffer* val = (wxRichTextBuffer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextDrawingContext *self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - self->m_buffer = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes[] = { &wxluatype_wxRichTextDrawingContext, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes }}; -// bool m_enableVirtualAttributes; -static int LUACALL wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxRichTextDrawingContext *self = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingContext); - self->m_enableVirtualAttributes = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_delete[] = { &wxluatype_wxRichTextDrawingContext, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingContext_constructor[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextDrawingContext_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingContext_constructor[1] = {{ wxLua_wxRichTextDrawingContext_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingContext_constructor }}; -// wxRichTextDrawingContext(wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextDrawingContext_constructor(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call constructor - wxRichTextDrawingContext* returns = new wxRichTextDrawingContext(buffer); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextDrawingContext); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextDrawingContext); - - return 1; -} - - - - -void wxLua_wxRichTextDrawingContext_delete_function(void** p) -{ - wxRichTextDrawingContext* o = (wxRichTextDrawingContext*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextDrawingContext_methods[] = { - { "ApplyVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_ApplyVirtualAttributes, 1, NULL }, - { "EnableVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_EnableVirtualAttributes, 1, NULL }, - { "GetVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualAttributes, 1, NULL }, - { "GetVirtualAttributesEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualAttributesEnabled, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetVirtualSubobjectAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributes, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetVirtualSubobjectAttributesCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualSubobjectAttributesCount, 1, NULL }, - { "GetVirtualText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_GetVirtualText, 1, NULL }, - // %member { "Get_m_buffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_Get_m_buffer, 1, NULL }, - // %member { "Get_m_enableVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes, 1, NULL }, - { "HasVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_HasVirtualAttributes, 1, NULL }, - { "HasVirtualText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_HasVirtualText, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_Init, 1, NULL }, - // %member { "Set_m_buffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_Set_m_buffer, 1, NULL }, - // %member { "Set_m_enableVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextDrawingContext_delete, 1, NULL }, - { "m_buffer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextDrawingContext_Set_m_buffer, 1, NULL }, - { "m_buffer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextDrawingContext_Get_m_buffer, 1, NULL }, - { "m_enableVirtualAttributes", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextDrawingContext_Set_m_enableVirtualAttributes, 1, NULL }, - { "m_enableVirtualAttributes", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextDrawingContext_Get_m_enableVirtualAttributes, 1, NULL }, - { "wxRichTextDrawingContext", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextDrawingContext_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextDrawingContext_methodCount = sizeof(wxRichTextDrawingContext_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextObject' -int wxluatype_wxRichTextObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_AcceptsFocus[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_AcceptsFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_AcceptsFocus[1] = {{ wxLua_wxRichTextObject_AcceptsFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_AcceptsFocus }}; -// virtual bool AcceptsFocus() const; -static int LUACALL wxLua_wxRichTextObject_AcceptsFocus(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call AcceptsFocus - bool returns = (self->AcceptsFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_AdjustAttributes[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextObject_AdjustAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_AdjustAttributes[1] = {{ wxLua_wxRichTextObject_AdjustAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_AdjustAttributes }}; -// virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextObject_AdjustAttributes(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call AdjustAttributes - bool returns = (self->AdjustAttributes(*attr, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_AdjustAvailableSpace[] = { &wxluatype_wxDC, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextObject_AdjustAvailableSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_AdjustAvailableSpace[1] = {{ wxLua_wxRichTextObject_AdjustAvailableSpace, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 6, 6, s_wxluatypeArray_wxLua_wxRichTextObject_AdjustAvailableSpace }}; -// const wxRect& availableParentSpace, const wxRect& availableContainerSpace); -static int LUACALL wxLua_wxRichTextObject_AdjustAvailableSpace(lua_State *L) -{ - // const wxRect availableContainerSpace - const wxRect * availableContainerSpace = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRect availableParentSpace - const wxRect * availableParentSpace = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr childAttr - const wxRichTextAttr * childAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // const wxRichTextAttr parentAttr - const wxRichTextAttr * parentAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call AdjustAvailableSpace - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(wxRichTextObject::AdjustAvailableSpace(*dc, buffer, *parentAttr, *childAttr, *availableParentSpace, *availableContainerSpace)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_CalculateRange[] = { &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextObject_CalculateRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_CalculateRange[1] = {{ wxLua_wxRichTextObject_CalculateRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_CalculateRange }}; -// virtual void CalculateRange(long start, long& end); -static int LUACALL wxLua_wxRichTextObject_CalculateRange(lua_State *L) -{ - // long end - long * end = (long *)wxlua_touserdata(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call CalculateRange - self->CalculateRange(start, *end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_CanEditProperties[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_CanEditProperties[1] = {{ wxLua_wxRichTextObject_CanEditProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_CanEditProperties }}; -// virtual bool CanEditProperties() const; -static int LUACALL wxLua_wxRichTextObject_CanEditProperties(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call CanEditProperties - bool returns = (self->CanEditProperties()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_CanMerge[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextObject_CanMerge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_CanMerge[1] = {{ wxLua_wxRichTextObject_CanMerge, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_CanMerge }}; -// virtual bool CanMerge(wxRichTextObject* object, wxRichTextDrawingContext& context) const; -static int LUACALL wxLua_wxRichTextObject_CanMerge(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextObject object - wxRichTextObject * object = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call CanMerge - bool returns = (self->CanMerge(object, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_CanSplit[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextObject_CanSplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_CanSplit[1] = {{ wxLua_wxRichTextObject_CanSplit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_CanSplit }}; -// virtual bool CanSplit(wxRichTextDrawingContext& context) const; -static int LUACALL wxLua_wxRichTextObject_CanSplit(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextDrawingContext); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call CanSplit - bool returns = (self->CanSplit(*context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Clone[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Clone[1] = {{ wxLua_wxRichTextObject_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextObject_Clone(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1[1] = {{ wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1 }}; -// static int ConvertPixelsToTenthsMM(int ppi, int pixels, double scale = 1.0); -static int LUACALL wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double scale = 1.0 - double scale = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 1.0); - // int pixels - int pixels = (int)wxlua_getnumbertype(L, 2); - // int ppi - int ppi = (int)wxlua_getnumbertype(L, 1); - // call ConvertPixelsToTenthsMM - int returns = (wxRichTextObject::ConvertPixelsToTenthsMM(ppi, pixels, scale)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_ConvertPixelsToTenthsMM(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM[1] = {{ wxLua_wxRichTextObject_ConvertPixelsToTenthsMM, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM }}; -// int ConvertPixelsToTenthsMM(wxDC& dc, int pixels) const; -static int LUACALL wxLua_wxRichTextObject_ConvertPixelsToTenthsMM(lua_State *L) -{ - // int pixels - int pixels = (int)wxlua_getnumbertype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call ConvertPixelsToTenthsMM - int returns = (self->ConvertPixelsToTenthsMM(*dc, pixels)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ConvertTenthsMMToPixels1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_ConvertTenthsMMToPixels1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels1[1] = {{ wxLua_wxRichTextObject_ConvertTenthsMMToPixels1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertTenthsMMToPixels1 }}; -// static int ConvertTenthsMMToPixels(int ppi, int units, double scale = 1.0); -static int LUACALL wxLua_wxRichTextObject_ConvertTenthsMMToPixels1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // double scale = 1.0 - double scale = (argCount >= 3 ? (double)wxlua_getnumbertype(L, 3) : 1.0); - // int units - int units = (int)wxlua_getnumbertype(L, 2); - // int ppi - int ppi = (int)wxlua_getnumbertype(L, 1); - // call ConvertTenthsMMToPixels - int returns = (wxRichTextObject::ConvertTenthsMMToPixels(ppi, units, scale)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ConvertTenthsMMToPixels[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_ConvertTenthsMMToPixels(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels[1] = {{ wxLua_wxRichTextObject_ConvertTenthsMMToPixels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertTenthsMMToPixels }}; -// int ConvertTenthsMMToPixels(wxDC& dc, int units) const; -static int LUACALL wxLua_wxRichTextObject_ConvertTenthsMMToPixels(lua_State *L) -{ - // int units - int units = (int)wxlua_getnumbertype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call ConvertTenthsMMToPixels - int returns = (self->ConvertTenthsMMToPixels(*dc, units)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Copy[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Copy[1] = {{ wxLua_wxRichTextObject_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_Copy }}; -// void Copy(const wxRichTextObject& obj); -static int LUACALL wxLua_wxRichTextObject_Copy(lua_State *L) -{ - // const wxRichTextObject obj - const wxRichTextObject * obj = (const wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Copy - self->Copy(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_DeleteRange[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextObject_DeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_DeleteRange[1] = {{ wxLua_wxRichTextObject_DeleteRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_DeleteRange }}; -// virtual bool DeleteRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextObject_DeleteRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call DeleteRange - bool returns = (self->DeleteRange(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Dereference[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_Dereference(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Dereference[1] = {{ wxLua_wxRichTextObject_Dereference, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_Dereference }}; -// void Dereference(); -static int LUACALL wxLua_wxRichTextObject_Dereference(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Dereference - self->Dereference(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_DoSplit[] = { &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_DoSplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_DoSplit[1] = {{ wxLua_wxRichTextObject_DoSplit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_DoSplit }}; -// virtual wxRichTextObject* DoSplit(long pos); -static int LUACALL wxLua_wxRichTextObject_DoSplit(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call DoSplit - wxRichTextObject* returns = (wxRichTextObject*)self->DoSplit(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Draw[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Draw[1] = {{ wxLua_wxRichTextObject_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextObject_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextObject_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_DrawBorder1[] = { &wxluatype_wxDC, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, &wxluatype_wxTextAttrBorders, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_DrawBorder1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_DrawBorder1[1] = {{ wxLua_wxRichTextObject_DrawBorder1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 5, 6, s_wxluatypeArray_wxLua_wxRichTextObject_DrawBorder1 }}; -// %wxchkver_3_1_0 static bool DrawBorder(wxDC& dc, wxRichTextBuffer* buffer, const wxRichTextAttr& attr, const wxTextAttrBorders& borders, const wxRect& rect, int flags = 0); -static int LUACALL wxLua_wxRichTextObject_DrawBorder1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxTextAttrBorders borders - const wxTextAttrBorders * borders = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttrBorders); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawBorder - bool returns = (wxRichTextObject::DrawBorder(*dc, buffer, *attr, *borders, *rect, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_DrawBorder[] = { &wxluatype_wxDC, &wxluatype_wxRichTextBuffer, &wxluatype_wxTextAttrBorders, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_DrawBorder(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_DrawBorder[1] = {{ wxLua_wxRichTextObject_DrawBorder, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 5, s_wxluatypeArray_wxLua_wxRichTextObject_DrawBorder }}; -// !%wxchkver_3_1_0 static bool DrawBorder(wxDC& dc, wxRichTextBuffer* buffer, const wxTextAttrBorders& attr, const wxRect& rect, int flags = 0); -static int LUACALL wxLua_wxRichTextObject_DrawBorder(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // const wxTextAttrBorders attr - const wxTextAttrBorders * attr = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorders); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawBorder - bool returns = (wxRichTextObject::DrawBorder(*dc, buffer, *attr, *rect, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_DrawBoxAttributes[] = { &wxluatype_wxDC, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_DrawBoxAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_DrawBoxAttributes[1] = {{ wxLua_wxRichTextObject_DrawBoxAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 6, s_wxluatypeArray_wxLua_wxRichTextObject_DrawBoxAttributes }}; -// static bool DrawBoxAttributes(wxDC& dc, wxRichTextBuffer* buffer, const wxRichTextAttr& attr, const wxRect& boxRect, int flags = 0, wxRichTextObject* obj = NULL); -static int LUACALL wxLua_wxRichTextObject_DrawBoxAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject obj = NULL - wxRichTextObject * obj = (argCount >= 6 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject) : NULL); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxRect boxRect - const wxRect * boxRect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call DrawBoxAttributes - bool returns = (wxRichTextObject::DrawBoxAttributes(*dc, buffer, *attr, *boxRect, flags, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Dump[] = { &wxluatype_wxRichTextObject, &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxRichTextObject_Dump(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Dump[1] = {{ wxLua_wxRichTextObject_Dump, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_Dump }}; -// virtual void Dump(wxTextOutputStream& stream); -static int LUACALL wxLua_wxRichTextObject_Dump(lua_State *L) -{ - // wxTextOutputStream stream - wxTextOutputStream * stream = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextOutputStream); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Dump - self->Dump(*stream); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_EditProperties[] = { &wxluatype_wxRichTextObject, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextObject_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_EditProperties[1] = {{ wxLua_wxRichTextObject_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_EditProperties }}; -// virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextObject_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call EditProperties - bool returns = (self->EditProperties(parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ExportXML1[] = { &wxluatype_wxRichTextObject, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextObject_ExportXML1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ExportXML1[1] = {{ wxLua_wxRichTextObject_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ExportXML1 }}; -// virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextObject_ExportXML1(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextXMLHandler); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call ExportXML - bool returns = (self->ExportXML(parent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ExportXML[] = { &wxluatype_wxRichTextObject, &wxluatype_wxOutputStream, &wxluatype_TNUMBER, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextObject_ExportXML(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ExportXML[1] = {{ wxLua_wxRichTextObject_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextObject_ExportXML }}; -// virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextObject_ExportXML(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // int indent - int indent = (int)wxlua_getnumbertype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call ExportXML - bool returns = (self->ExportXML(*stream, indent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_FindPosition[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextObject_FindPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_FindPosition[1] = {{ wxLua_wxRichTextObject_FindPosition, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextObject_FindPosition }}; -// virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart); -static int LUACALL wxLua_wxRichTextObject_FindPosition(lua_State *L) -{ - // bool forceLineStart - bool forceLineStart = wxlua_getbooleantype(L, 7); - // int height - int * height = (int *)wxlua_touserdata(L, 6); - // wxPoint pt - wxPoint * pt = (wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // long index - long index = (long)wxlua_getnumbertype(L, 4); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call FindPosition - bool returns = (self->FindPosition(*dc, *context, index, *pt, height, forceLineStart)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetAbsolutePosition[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetAbsolutePosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetAbsolutePosition[1] = {{ wxLua_wxRichTextObject_GetAbsolutePosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetAbsolutePosition }}; -// virtual wxPoint GetAbsolutePosition() const; -static int LUACALL wxLua_wxRichTextObject_GetAbsolutePosition(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetAbsolutePosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetAbsolutePosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetAttributes1[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetAttributes1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetAttributes1[1] = {{ wxLua_wxRichTextObject_GetAttributes1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetAttributes1 }}; -// wxRichTextAttr& GetAttributes(); -static int LUACALL wxLua_wxRichTextObject_GetAttributes1(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetAttributes - wxRichTextAttr* returns = (wxRichTextAttr*)&self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetAttributes[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetAttributes(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetAttributes[1] = {{ wxLua_wxRichTextObject_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetAttributes }}; -// const wxRichTextAttr& GetAttributes() const; -static int LUACALL wxLua_wxRichTextObject_GetAttributes(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetAttributes - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetAvailableContentArea[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetAvailableContentArea(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetAvailableContentArea[1] = {{ wxLua_wxRichTextObject_GetAvailableContentArea, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextObject_GetAvailableContentArea }}; -// virtual wxRect GetAvailableContentArea(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& outerRect) const; -static int LUACALL wxLua_wxRichTextObject_GetAvailableContentArea(lua_State *L) -{ - // const wxRect outerRect - const wxRect * outerRect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetAvailableContentArea - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetAvailableContentArea(*dc, *context, *outerRect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetBestSize[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetBestSize[1] = {{ wxLua_wxRichTextObject_GetBestSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetBestSize }}; -// virtual wxSize GetBestSize() const; -static int LUACALL wxLua_wxRichTextObject_GetBestSize(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetBestSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetBestSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetBottomMargin[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetBottomMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetBottomMargin[1] = {{ wxLua_wxRichTextObject_GetBottomMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetBottomMargin }}; -// virtual int GetBottomMargin() const; -static int LUACALL wxLua_wxRichTextObject_GetBottomMargin(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetBottomMargin - int returns = (self->GetBottomMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetBoxRects[] = { &wxluatype_wxDC, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetBoxRects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetBoxRects[1] = {{ wxLua_wxRichTextObject_GetBoxRects, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 8, 8, s_wxluatypeArray_wxLua_wxRichTextObject_GetBoxRects }}; -// static bool GetBoxRects(wxDC& dc, wxRichTextBuffer* buffer, const wxRichTextAttr& attr, wxRect& marginRect, wxRect& borderRect, wxRect& contentRect, wxRect& paddingRect, wxRect& outlineRect); -static int LUACALL wxLua_wxRichTextObject_GetBoxRects(lua_State *L) -{ - // wxRect outlineRect - wxRect * outlineRect = (wxRect *)wxluaT_getuserdatatype(L, 8, wxluatype_wxRect); - // wxRect paddingRect - wxRect * paddingRect = (wxRect *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRect); - // wxRect contentRect - wxRect * contentRect = (wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // wxRect borderRect - wxRect * borderRect = (wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // wxRect marginRect - wxRect * marginRect = (wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetBoxRects - bool returns = (wxRichTextObject::GetBoxRects(*dc, buffer, *attr, *marginRect, *borderRect, *contentRect, *paddingRect, *outlineRect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetBuffer[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetBuffer[1] = {{ wxLua_wxRichTextObject_GetBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetBuffer }}; -// wxRichTextBuffer* GetBuffer() const; -static int LUACALL wxLua_wxRichTextObject_GetBuffer(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetBuffer - wxRichTextBuffer* returns = (wxRichTextBuffer*)self->GetBuffer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetCachedSize[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetCachedSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetCachedSize[1] = {{ wxLua_wxRichTextObject_GetCachedSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetCachedSize }}; -// virtual wxSize GetCachedSize() const; -static int LUACALL wxLua_wxRichTextObject_GetCachedSize(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetCachedSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetCachedSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetContainer[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetContainer[1] = {{ wxLua_wxRichTextObject_GetContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetContainer }}; -// virtual wxRichTextParagraphLayoutBox* GetContainer() const; -static int LUACALL wxLua_wxRichTextObject_GetContainer(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetContainer - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetDescent[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetDescent[1] = {{ wxLua_wxRichTextObject_GetDescent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetDescent }}; -// int GetDescent() const; -static int LUACALL wxLua_wxRichTextObject_GetDescent(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetDescent - int returns = (self->GetDescent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetFloatDirection[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetFloatDirection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetFloatDirection[1] = {{ wxLua_wxRichTextObject_GetFloatDirection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetFloatDirection }}; -// virtual int GetFloatDirection() const; -static int LUACALL wxLua_wxRichTextObject_GetFloatDirection(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetFloatDirection - int returns = (self->GetFloatDirection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetLeftMargin[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetLeftMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetLeftMargin[1] = {{ wxLua_wxRichTextObject_GetLeftMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetLeftMargin }}; -// virtual int GetLeftMargin() const; -static int LUACALL wxLua_wxRichTextObject_GetLeftMargin(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetLeftMargin - int returns = (self->GetLeftMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetMaxSize[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetMaxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetMaxSize[1] = {{ wxLua_wxRichTextObject_GetMaxSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetMaxSize }}; -// virtual wxSize GetMaxSize() const; -static int LUACALL wxLua_wxRichTextObject_GetMaxSize(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetMaxSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMaxSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetMinSize[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetMinSize[1] = {{ wxLua_wxRichTextObject_GetMinSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetMinSize }}; -// virtual wxSize GetMinSize() const; -static int LUACALL wxLua_wxRichTextObject_GetMinSize(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetMinSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetMinSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetName[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetName[1] = {{ wxLua_wxRichTextObject_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxRichTextObject_GetName(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetNaturalSize[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetNaturalSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetNaturalSize[1] = {{ wxLua_wxRichTextObject_GetNaturalSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetNaturalSize }}; -// virtual wxTextAttrSize GetNaturalSize() const; -static int LUACALL wxLua_wxRichTextObject_GetNaturalSize(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetNaturalSize - // allocate a new object using the copy constructor - wxTextAttrSize* returns = new wxTextAttrSize(self->GetNaturalSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRange1[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetOwnRange1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange1[1] = {{ wxLua_wxRichTextObject_GetOwnRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRange1 }}; -// wxRichTextRange& GetOwnRange(); -static int LUACALL wxLua_wxRichTextObject_GetOwnRange1(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetOwnRange - wxRichTextRange* returns = (wxRichTextRange*)&self->GetOwnRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRange[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetOwnRange(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange[1] = {{ wxLua_wxRichTextObject_GetOwnRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRange }}; -// const wxRichTextRange& GetOwnRange() const; -static int LUACALL wxLua_wxRichTextObject_GetOwnRange(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetOwnRange - const wxRichTextRange* returns = (const wxRichTextRange*)&self->GetOwnRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRangeIfTopLevel[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetOwnRangeIfTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetOwnRangeIfTopLevel[1] = {{ wxLua_wxRichTextObject_GetOwnRangeIfTopLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRangeIfTopLevel }}; -// wxRichTextRange GetOwnRangeIfTopLevel() const; -static int LUACALL wxLua_wxRichTextObject_GetOwnRangeIfTopLevel(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetOwnRangeIfTopLevel - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetOwnRangeIfTopLevel()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetParent[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetParent[1] = {{ wxLua_wxRichTextObject_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetParent }}; -// virtual wxRichTextObject* GetParent() const; -static int LUACALL wxLua_wxRichTextObject_GetParent(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetParent - wxRichTextObject* returns = (wxRichTextObject*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetParentContainer[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetParentContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetParentContainer[1] = {{ wxLua_wxRichTextObject_GetParentContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetParentContainer }}; -// virtual wxRichTextParagraphLayoutBox* GetParentContainer() const; -static int LUACALL wxLua_wxRichTextObject_GetParentContainer(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetParentContainer - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetParentContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetPosition[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetPosition[1] = {{ wxLua_wxRichTextObject_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetPosition }}; -// virtual wxPoint GetPosition() const; -static int LUACALL wxLua_wxRichTextObject_GetPosition(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetProperties1[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetProperties1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetProperties1[1] = {{ wxLua_wxRichTextObject_GetProperties1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetProperties1 }}; -// const wxRichTextProperties& GetProperties() const; -static int LUACALL wxLua_wxRichTextObject_GetProperties1(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetProperties - const wxRichTextProperties* returns = (const wxRichTextProperties*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetProperties[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetProperties(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetProperties[1] = {{ wxLua_wxRichTextObject_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetProperties }}; -// wxRichTextProperties& GetProperties(); -static int LUACALL wxLua_wxRichTextObject_GetProperties(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetProperties - wxRichTextProperties* returns = (wxRichTextProperties*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextObject_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel() const; -static int LUACALL wxLua_wxRichTextObject_GetPropertiesMenuLabel(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetRange1[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetRange1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetRange1[1] = {{ wxLua_wxRichTextObject_GetRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetRange1 }}; -// wxRichTextRange& GetRange(); -static int LUACALL wxLua_wxRichTextObject_GetRange1(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetRange - wxRichTextRange* returns = (wxRichTextRange*)&self->GetRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetRange[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetRange(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetRange[1] = {{ wxLua_wxRichTextObject_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetRange }}; -// const wxRichTextRange& GetRange() const; -static int LUACALL wxLua_wxRichTextObject_GetRange(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetRange - const wxRichTextRange* returns = (const wxRichTextRange*)&self->GetRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetRangeSize[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetRangeSize[1] = {{ wxLua_wxRichTextObject_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextObject_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextObject_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetRect[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetRect[1] = {{ wxLua_wxRichTextObject_GetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetRect }}; -// virtual wxRect GetRect() const; -static int LUACALL wxLua_wxRichTextObject_GetRect(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetRightMargin[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetRightMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetRightMargin[1] = {{ wxLua_wxRichTextObject_GetRightMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetRightMargin }}; -// virtual int GetRightMargin() const; -static int LUACALL wxLua_wxRichTextObject_GetRightMargin(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetRightMargin - int returns = (self->GetRightMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetSelection[] = { &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetSelection[1] = {{ wxLua_wxRichTextObject_GetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_GetSelection }}; -// virtual wxRichTextSelection GetSelection(long start, long end) const; -static int LUACALL wxLua_wxRichTextObject_GetSelection(lua_State *L) -{ - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetSelection - // allocate a new object using the copy constructor - wxRichTextSelection* returns = new wxRichTextSelection(self->GetSelection(start, end)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextSelection); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetTextForRange[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetTextForRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetTextForRange[1] = {{ wxLua_wxRichTextObject_GetTextForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_GetTextForRange }}; -// virtual wxString GetTextForRange(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextObject_GetTextForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetTextForRange - wxString returns = (self->GetTextForRange(*range)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetTopMargin[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetTopMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetTopMargin[1] = {{ wxLua_wxRichTextObject_GetTopMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetTopMargin }}; -// virtual int GetTopMargin() const; -static int LUACALL wxLua_wxRichTextObject_GetTopMargin(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetTopMargin - int returns = (self->GetTopMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetTotalMargin[] = { &wxluatype_wxDC, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetTotalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetTotalMargin[1] = {{ wxLua_wxRichTextObject_GetTotalMargin, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 7, 7, s_wxluatypeArray_wxLua_wxRichTextObject_GetTotalMargin }}; -// int& topMargin, int& bottomMargin); -static int LUACALL wxLua_wxRichTextObject_GetTotalMargin(lua_State *L) -{ - // int bottomMargin - int * bottomMargin = (int *)wxlua_touserdata(L, 7); - // int topMargin - int * topMargin = (int *)wxlua_touserdata(L, 6); - // int rightMargin - int * rightMargin = (int *)wxlua_touserdata(L, 5); - // int leftMargin - int * leftMargin = (int *)wxlua_touserdata(L, 4); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDC); - // call GetTotalMargin - bool returns = (wxRichTextObject::GetTotalMargin(*dc, buffer, *attr, *leftMargin, *rightMargin, *topMargin, *bottomMargin)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_GetXMLNodeName[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetXMLNodeName[1] = {{ wxLua_wxRichTextObject_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextObject_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_HandlesChildSelections[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_HandlesChildSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_HandlesChildSelections[1] = {{ wxLua_wxRichTextObject_HandlesChildSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_HandlesChildSelections }}; -// virtual bool HandlesChildSelections() const; -static int LUACALL wxLua_wxRichTextObject_HandlesChildSelections(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call HandlesChildSelections - bool returns = (self->HandlesChildSelections()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_HitTest[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_HitTest[1] = {{ wxLua_wxRichTextObject_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextObject_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextObject_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_ImportFromXML[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextBuffer, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextObject_ImportFromXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ImportFromXML[1] = {{ wxLua_wxRichTextObject_ImportFromXML, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextObject_ImportFromXML }}; -// virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse); -static int LUACALL wxLua_wxRichTextObject_ImportFromXML(lua_State *L) -{ - // bool recurse - bool * recurse = (bool *)wxlua_touserdata(L, 5); - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call ImportFromXML - bool returns = (self->ImportFromXML(buffer, node, handler, recurse)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Invalidate[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextObject_Invalidate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Invalidate[1] = {{ wxLua_wxRichTextObject_Invalidate, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextObject_Invalidate }}; -// virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL); -static int LUACALL wxLua_wxRichTextObject_Invalidate(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextRange invalidRange = wxRICHTEXT_ALL - const wxRichTextRange * invalidRange = (argCount >= 2 ? (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange) : &wxRICHTEXT_ALL); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Invalidate - self->Invalidate(*invalidRange); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsAtomic[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsAtomic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsAtomic[1] = {{ wxLua_wxRichTextObject_IsAtomic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsAtomic }}; -// virtual bool IsAtomic() const; -static int LUACALL wxLua_wxRichTextObject_IsAtomic(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsAtomic - bool returns = (self->IsAtomic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsComposite[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsComposite(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsComposite[1] = {{ wxLua_wxRichTextObject_IsComposite, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsComposite }}; -// virtual bool IsComposite() const; -static int LUACALL wxLua_wxRichTextObject_IsComposite(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsComposite - bool returns = (self->IsComposite()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsEmpty[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsEmpty[1] = {{ wxLua_wxRichTextObject_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsEmpty }}; -// virtual bool IsEmpty() const; -static int LUACALL wxLua_wxRichTextObject_IsEmpty(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsFloatable[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsFloatable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsFloatable[1] = {{ wxLua_wxRichTextObject_IsFloatable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsFloatable }}; -// virtual bool IsFloatable() const; -static int LUACALL wxLua_wxRichTextObject_IsFloatable(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsFloatable - bool returns = (self->IsFloatable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsFloating[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsFloating(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsFloating[1] = {{ wxLua_wxRichTextObject_IsFloating, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsFloating }}; -// virtual bool IsFloating() const; -static int LUACALL wxLua_wxRichTextObject_IsFloating(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsFloating - bool returns = (self->IsFloating()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsShown[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsShown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsShown[1] = {{ wxLua_wxRichTextObject_IsShown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsShown }}; -// bool IsShown() const; -static int LUACALL wxLua_wxRichTextObject_IsShown(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsShown - bool returns = (self->IsShown()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_IsTopLevel[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_IsTopLevel[1] = {{ wxLua_wxRichTextObject_IsTopLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_IsTopLevel }}; -// virtual bool IsTopLevel() const; -static int LUACALL wxLua_wxRichTextObject_IsTopLevel(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call IsTopLevel - bool returns = (self->IsTopLevel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Layout[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Layout[1] = {{ wxLua_wxRichTextObject_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextObject_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextObject_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_LayoutToBestSize[] = { &wxluatype_wxRichTextObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_LayoutToBestSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_LayoutToBestSize[1] = {{ wxLua_wxRichTextObject_LayoutToBestSize, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxRichTextObject_LayoutToBestSize }}; -// const wxRect& availableParentSpace, const wxRect& availableContainerSpace, int style); -static int LUACALL wxLua_wxRichTextObject_LayoutToBestSize(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 9); - // const wxRect availableContainerSpace - const wxRect * availableContainerSpace = (const wxRect *)wxluaT_getuserdatatype(L, 8, wxluatype_wxRect); - // const wxRect availableParentSpace - const wxRect * availableParentSpace = (const wxRect *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextAttr); - // const wxRichTextAttr parentAttr - const wxRichTextAttr * parentAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextAttr); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextBuffer); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call LayoutToBestSize - bool returns = (self->LayoutToBestSize(*dc, *context, buffer, *parentAttr, *attr, *availableParentSpace, *availableContainerSpace, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Merge[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextObject_Merge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Merge[1] = {{ wxLua_wxRichTextObject_Merge, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_Merge }}; -// virtual bool Merge(wxRichTextObject* object, wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextObject_Merge(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextObject object - wxRichTextObject * object = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Merge - bool returns = (self->Merge(object, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Move[] = { &wxluatype_wxRichTextObject, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextObject_Move(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Move[1] = {{ wxLua_wxRichTextObject_Move, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_Move }}; -// virtual void Move(const wxPoint& pt); -static int LUACALL wxLua_wxRichTextObject_Move(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Move - self->Move(*pt); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Reference[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_Reference(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Reference[1] = {{ wxLua_wxRichTextObject_Reference, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_Reference }}; -// void Reference(); -static int LUACALL wxLua_wxRichTextObject_Reference(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Reference - self->Reference(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetAttributes[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetAttributes[1] = {{ wxLua_wxRichTextObject_SetAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetAttributes }}; -// void SetAttributes(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextObject_SetAttributes(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetAttributes - self->SetAttributes(*attr); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetCachedSize[] = { &wxluatype_wxRichTextObject, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetCachedSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetCachedSize[1] = {{ wxLua_wxRichTextObject_SetCachedSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetCachedSize }}; -// virtual void SetCachedSize(const wxSize& sz); -static int LUACALL wxLua_wxRichTextObject_SetCachedSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetCachedSize - self->SetCachedSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetDescent[] = { &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetDescent[1] = {{ wxLua_wxRichTextObject_SetDescent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetDescent }}; -// void SetDescent(int descent); -static int LUACALL wxLua_wxRichTextObject_SetDescent(lua_State *L) -{ - // int descent - int descent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetDescent - self->SetDescent(descent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetMargins1[] = { &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetMargins1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetMargins1[1] = {{ wxLua_wxRichTextObject_SetMargins1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextObject_SetMargins1 }}; -// virtual void SetMargins(int leftMargin, int rightMargin, int topMargin, int bottomMargin); -static int LUACALL wxLua_wxRichTextObject_SetMargins1(lua_State *L) -{ - // int bottomMargin - int bottomMargin = (int)wxlua_getnumbertype(L, 5); - // int topMargin - int topMargin = (int)wxlua_getnumbertype(L, 4); - // int rightMargin - int rightMargin = (int)wxlua_getnumbertype(L, 3); - // int leftMargin - int leftMargin = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetMargins - self->SetMargins(leftMargin, rightMargin, topMargin, bottomMargin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetMargins[] = { &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetMargins(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetMargins[1] = {{ wxLua_wxRichTextObject_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetMargins }}; -// virtual void SetMargins(int margin); -static int LUACALL wxLua_wxRichTextObject_SetMargins(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetMargins - self->SetMargins(margin); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetMaxSize[] = { &wxluatype_wxRichTextObject, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetMaxSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetMaxSize[1] = {{ wxLua_wxRichTextObject_SetMaxSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetMaxSize }}; -// virtual void SetMaxSize(const wxSize& sz); -static int LUACALL wxLua_wxRichTextObject_SetMaxSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetMaxSize - self->SetMaxSize(*sz); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetMinSize[] = { &wxluatype_wxRichTextObject, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetMinSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetMinSize[1] = {{ wxLua_wxRichTextObject_SetMinSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetMinSize }}; -// virtual void SetMinSize(const wxSize& sz); -static int LUACALL wxLua_wxRichTextObject_SetMinSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetMinSize - self->SetMinSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetName[] = { &wxluatype_wxRichTextObject, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetName[1] = {{ wxLua_wxRichTextObject_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxRichTextObject_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetOwnRange[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetOwnRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetOwnRange[1] = {{ wxLua_wxRichTextObject_SetOwnRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetOwnRange }}; -// void SetOwnRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextObject_SetOwnRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetOwnRange - self->SetOwnRange(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetParent[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetParent[1] = {{ wxLua_wxRichTextObject_SetParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetParent }}; -// virtual void SetParent(wxRichTextObject* parent); -static int LUACALL wxLua_wxRichTextObject_SetParent(lua_State *L) -{ - // wxRichTextObject parent - wxRichTextObject * parent = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetParent - self->SetParent(parent); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetPosition[] = { &wxluatype_wxRichTextObject, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetPosition[1] = {{ wxLua_wxRichTextObject_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetPosition }}; -// virtual void SetPosition(const wxPoint& pos); -static int LUACALL wxLua_wxRichTextObject_SetPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetPosition - self->SetPosition(*pos); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetProperties[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetProperties[1] = {{ wxLua_wxRichTextObject_SetProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetProperties }}; -// void SetProperties(const wxRichTextProperties& props); -static int LUACALL wxLua_wxRichTextObject_SetProperties(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetProperties - self->SetProperties(*props); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_SetRange[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextObject_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetRange[1] = {{ wxLua_wxRichTextObject_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetRange }}; -// void SetRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextObject_SetRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call SetRange - self->SetRange(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Show[] = { &wxluatype_wxRichTextObject, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextObject_Show(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Show[1] = {{ wxLua_wxRichTextObject_Show, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_Show }}; -// virtual void Show(bool show); -static int LUACALL wxLua_wxRichTextObject_Show(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Show - self->Show(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_Split[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextObject_Split(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_Split[1] = {{ wxLua_wxRichTextObject_Split, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_Split }}; -// virtual wxRichTextObject* Split(wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextObject_Split(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextDrawingContext); - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call Split - wxRichTextObject* returns = (wxRichTextObject*)self->Split(*context); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_UsesParagraphAttributes[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObject_UsesParagraphAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_UsesParagraphAttributes[1] = {{ wxLua_wxRichTextObject_UsesParagraphAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_UsesParagraphAttributes }}; -// virtual bool UsesParagraphAttributes() const; -static int LUACALL wxLua_wxRichTextObject_UsesParagraphAttributes(lua_State *L) -{ - // get this - wxRichTextObject * self = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call UsesParagraphAttributes - bool returns = (self->UsesParagraphAttributes()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObject_delete[] = { &wxluatype_wxRichTextObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_delete }}; - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM_overload[] = -{ - { wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM1 }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObject_ConvertPixelsToTenthsMM, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels_overload[] = -{ - { wxLua_wxRichTextObject_ConvertTenthsMMToPixels1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertTenthsMMToPixels1 }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObject_ConvertTenthsMMToPixels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ConvertTenthsMMToPixels }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_DrawBorder_overload[] = -{ - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObject_DrawBorder1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 5, 6, s_wxluatypeArray_wxLua_wxRichTextObject_DrawBorder1 }, -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObject_DrawBorder, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 5, s_wxluatypeArray_wxLua_wxRichTextObject_DrawBorder }, -#endif // ((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextObject_DrawBorder_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_DrawBorder_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_ExportXML_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextObject_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObject_ExportXML1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - { wxLua_wxRichTextObject_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextObject_ExportXML }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextObject_ExportXML_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_ExportXML_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetAttributes_overload[] = -{ - { wxLua_wxRichTextObject_GetAttributes1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetAttributes1 }, - { wxLua_wxRichTextObject_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetAttributes }, -}; -static int s_wxluafunc_wxLua_wxRichTextObject_GetAttributes_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_GetAttributes_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange_overload[] = -{ - { wxLua_wxRichTextObject_GetOwnRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRange1 }, - { wxLua_wxRichTextObject_GetOwnRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetOwnRange }, -}; -static int s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetProperties_overload[] = -{ - { wxLua_wxRichTextObject_GetProperties1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetProperties1 }, - { wxLua_wxRichTextObject_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetProperties }, -}; -static int s_wxluafunc_wxLua_wxRichTextObject_GetProperties_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_GetProperties_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_GetRange_overload[] = -{ - { wxLua_wxRichTextObject_GetRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetRange1 }, - { wxLua_wxRichTextObject_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObject_GetRange }, -}; -static int s_wxluafunc_wxLua_wxRichTextObject_GetRange_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_GetRange_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObject_SetMargins_overload[] = -{ - { wxLua_wxRichTextObject_SetMargins1, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextObject_SetMargins1 }, - { wxLua_wxRichTextObject_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObject_SetMargins }, -}; -static int s_wxluafunc_wxLua_wxRichTextObject_SetMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObject_SetMargins_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextObject_delete_function(void** p) -{ - wxRichTextObject* o = (wxRichTextObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextObject_methods[] = { - { "AcceptsFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_AcceptsFocus, 1, NULL }, - { "AdjustAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_AdjustAttributes, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "AdjustAvailableSpace", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_AdjustAvailableSpace, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "CalculateRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_CalculateRange, 1, NULL }, - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_CanEditProperties, 1, NULL }, - { "CanMerge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_CanMerge, 1, NULL }, - { "CanSplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_CanSplit, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Clone, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "ConvertPixelsToTenthsMM", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM_overload, s_wxluafunc_wxLua_wxRichTextObject_ConvertPixelsToTenthsMM_overload_count, 0 }, - { "ConvertTenthsMMToPixels", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels_overload, s_wxluafunc_wxLua_wxRichTextObject_ConvertTenthsMMToPixels_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Copy, 1, NULL }, - { "DeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_DeleteRange, 1, NULL }, - { "Dereference", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Dereference, 1, NULL }, - { "DoSplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_DoSplit, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "DrawBorder", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_DrawBorder_overload, s_wxluafunc_wxLua_wxRichTextObject_DrawBorder_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "DrawBoxAttributes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_DrawBoxAttributes, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { "Dump", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Dump, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_EditProperties, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - { "ExportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_ExportXML_overload, s_wxluafunc_wxLua_wxRichTextObject_ExportXML_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_FindPosition, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetAbsolutePosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetAbsolutePosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetAttributes_overload, s_wxluafunc_wxLua_wxRichTextObject_GetAttributes_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetAvailableContentArea", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetAvailableContentArea, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetBestSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetBottomMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetBottomMargin, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBoxRects", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_GetBoxRects, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetBuffer, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetCachedSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetCachedSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetContainer, 1, NULL }, - { "GetDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetDescent, 1, NULL }, - { "GetFloatDirection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetFloatDirection, 1, NULL }, - { "GetLeftMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetLeftMargin, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetMaxSize, 1, NULL }, - { "GetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetMinSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetName, 1, NULL }, - { "GetNaturalSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetNaturalSize, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetOwnRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange_overload, s_wxluafunc_wxLua_wxRichTextObject_GetOwnRange_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetOwnRangeIfTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetOwnRangeIfTopLevel, 1, NULL }, - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetParent, 1, NULL }, - { "GetParentContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetParentContainer, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetProperties_overload, s_wxluafunc_wxLua_wxRichTextObject_GetProperties_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetPropertiesMenuLabel, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetRange_overload, s_wxluafunc_wxLua_wxRichTextObject_GetRange_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRightMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetRightMargin, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetSelection, 1, NULL }, - { "GetTextForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetTextForRange, 1, NULL }, - { "GetTopMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetTopMargin, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetTotalMargin", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObject_GetTotalMargin, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_GetXMLNodeName, 1, NULL }, - { "HandlesChildSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_HandlesChildSelections, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportFromXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_ImportFromXML, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "Invalidate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Invalidate, 1, NULL }, - { "IsAtomic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsAtomic, 1, NULL }, - { "IsComposite", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsComposite, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsEmpty, 1, NULL }, - { "IsFloatable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsFloatable, 1, NULL }, - { "IsFloating", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsFloating, 1, NULL }, - { "IsShown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsShown, 1, NULL }, - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_IsTopLevel, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Layout, 1, NULL }, - { "LayoutToBestSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_LayoutToBestSize, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Merge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Merge, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Move", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Move, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Reference", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Reference, 1, NULL }, - { "SetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetAttributes, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetCachedSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetCachedSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetDescent, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetMargins_overload, s_wxluafunc_wxLua_wxRichTextObject_SetMargins_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetMaxSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetMaxSize, 1, NULL }, - { "SetMinSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetMinSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetName, 1, NULL }, - { "SetOwnRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetOwnRange, 1, NULL }, - { "SetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetParent, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetProperties, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_SetRange, 1, NULL }, - { "Show", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Show, 1, NULL }, - { "Split", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_Split, 1, NULL }, - { "UsesParagraphAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObject_UsesParagraphAttributes, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextObject_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextObject_methodCount = sizeof(wxRichTextObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextObjectList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextObjectList' -int wxluatype_wxRichTextObjectList = WXLUA_TUNKNOWN; - - - -void wxLua_wxRichTextObjectList_delete_function(void** p) -{ - wxRichTextObjectList* o = (wxRichTextObjectList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextObjectList_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxRichTextObjectList_methodCount = sizeof(wxRichTextObjectList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextCompositeObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextCompositeObject' -int wxluatype_wxRichTextCompositeObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_AppendChild[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_AppendChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_AppendChild[1] = {{ wxLua_wxRichTextCompositeObject_AppendChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_AppendChild }}; -// size_t AppendChild(wxRichTextObject* child) ; -static int LUACALL wxLua_wxRichTextCompositeObject_AppendChild(lua_State *L) -{ - // wxRichTextObject child - wxRichTextObject * child = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call AppendChild - size_t returns = (self->AppendChild(child)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_CalculateRange[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_CalculateRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_CalculateRange[1] = {{ wxLua_wxRichTextCompositeObject_CalculateRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_CalculateRange }}; -// virtual void CalculateRange(long start, long& end); -static int LUACALL wxLua_wxRichTextCompositeObject_CalculateRange(lua_State *L) -{ - // long end - long * end = (long *)wxlua_touserdata(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call CalculateRange - self->CalculateRange(start, *end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Copy[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_Copy[1] = {{ wxLua_wxRichTextCompositeObject_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Copy }}; -// void Copy(const wxRichTextCompositeObject& obj); -static int LUACALL wxLua_wxRichTextCompositeObject_Copy(lua_State *L) -{ - // const wxRichTextCompositeObject obj - const wxRichTextCompositeObject * obj = (const wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCompositeObject); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call Copy - self->Copy(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Defragment[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_Defragment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_Defragment[1] = {{ wxLua_wxRichTextCompositeObject_Defragment, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Defragment }}; -// bool Defragment(wxRichTextDrawingContext& context, const wxRichTextRange& range = wxRICHTEXT_ALL); -static int LUACALL wxLua_wxRichTextCompositeObject_Defragment(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextRange range = wxRICHTEXT_ALL - const wxRichTextRange * range = (argCount >= 3 ? (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange) : &wxRICHTEXT_ALL); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextDrawingContext); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call Defragment - bool returns = (self->Defragment(*context, *range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_DeleteChildren[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_DeleteChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_DeleteChildren[1] = {{ wxLua_wxRichTextCompositeObject_DeleteChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_DeleteChildren }}; -// bool DeleteChildren() ; -static int LUACALL wxLua_wxRichTextCompositeObject_DeleteChildren(lua_State *L) -{ - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call DeleteChildren - bool returns = (self->DeleteChildren()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_DeleteRange[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_DeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_DeleteRange[1] = {{ wxLua_wxRichTextCompositeObject_DeleteRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_DeleteRange }}; -// virtual bool DeleteRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextCompositeObject_DeleteRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call DeleteRange - bool returns = (self->DeleteRange(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Dump[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_Dump(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_Dump[1] = {{ wxLua_wxRichTextCompositeObject_Dump, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Dump }}; -// virtual void Dump(wxTextOutputStream& stream); -static int LUACALL wxLua_wxRichTextCompositeObject_Dump(lua_State *L) -{ - // wxTextOutputStream stream - wxTextOutputStream * stream = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextOutputStream); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call Dump - self->Dump(*stream); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_FindPosition[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_FindPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_FindPosition[1] = {{ wxLua_wxRichTextCompositeObject_FindPosition, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_FindPosition }}; -// virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart); -static int LUACALL wxLua_wxRichTextCompositeObject_FindPosition(lua_State *L) -{ - // bool forceLineStart - bool forceLineStart = wxlua_getbooleantype(L, 7); - // int height - int * height = (int *)wxlua_touserdata(L, 6); - // wxPoint pt - wxPoint * pt = (wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // long index - long index = (long)wxlua_getnumbertype(L, 4); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call FindPosition - bool returns = (self->FindPosition(*dc, *context, index, *pt, height, forceLineStart)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChild[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChild[1] = {{ wxLua_wxRichTextCompositeObject_GetChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChild }}; -// wxRichTextObject* GetChild(size_t n) const ; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChild(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call GetChild - wxRichTextObject* returns = (wxRichTextObject*)self->GetChild(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChildAtPosition[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChildAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChildAtPosition[1] = {{ wxLua_wxRichTextCompositeObject_GetChildAtPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChildAtPosition }}; -// virtual wxRichTextObject* GetChildAtPosition(long pos) const; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChildAtPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call GetChildAtPosition - wxRichTextObject* returns = (wxRichTextObject*)self->GetChildAtPosition(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChildCount[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChildCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChildCount[1] = {{ wxLua_wxRichTextCompositeObject_GetChildCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChildCount }}; -// size_t GetChildCount() const ; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChildCount(lua_State *L) -{ - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call GetChildCount - size_t returns = (self->GetChildCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChildren[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_GetChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChildren[1] = {{ wxLua_wxRichTextCompositeObject_GetChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetChildren }}; -// wxRichTextObjectList& GetChildren(); -static int LUACALL wxLua_wxRichTextCompositeObject_GetChildren(lua_State *L) -{ - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call GetChildren - wxRichTextObjectList* returns = (wxRichTextObjectList*)&self->GetChildren(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectList); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetRangeSize[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_GetRangeSize[1] = {{ wxLua_wxRichTextCompositeObject_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextCompositeObject_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetTextForRange[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_GetTextForRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_GetTextForRange[1] = {{ wxLua_wxRichTextCompositeObject_GetTextForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_GetTextForRange }}; -// virtual wxString GetTextForRange(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextCompositeObject_GetTextForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call GetTextForRange - wxString returns = (self->GetTextForRange(*range)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_HitTest[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_HitTest[1] = {{ wxLua_wxRichTextCompositeObject_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextCompositeObject_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_InsertChild[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_InsertChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_InsertChild[1] = {{ wxLua_wxRichTextCompositeObject_InsertChild, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_InsertChild }}; -// bool InsertChild(wxRichTextObject* child, wxRichTextObject* inFrontOf) ; -static int LUACALL wxLua_wxRichTextCompositeObject_InsertChild(lua_State *L) -{ - // wxRichTextObject inFrontOf - wxRichTextObject * inFrontOf = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextObject child - wxRichTextObject * child = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call InsertChild - bool returns = (self->InsertChild(child, inFrontOf)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Invalidate[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_Invalidate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_Invalidate[1] = {{ wxLua_wxRichTextCompositeObject_Invalidate, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Invalidate }}; -// virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL); -static int LUACALL wxLua_wxRichTextCompositeObject_Invalidate(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextRange invalidRange = wxRICHTEXT_ALL - const wxRichTextRange * invalidRange = (argCount >= 2 ? (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange) : &wxRICHTEXT_ALL); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call Invalidate - self->Invalidate(*invalidRange); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_IsAtomic[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_IsAtomic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_IsAtomic[1] = {{ wxLua_wxRichTextCompositeObject_IsAtomic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_IsAtomic }}; -// virtual bool IsAtomic() const; -static int LUACALL wxLua_wxRichTextCompositeObject_IsAtomic(lua_State *L) -{ - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call IsAtomic - bool returns = (self->IsAtomic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_IsComposite[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_IsComposite(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_IsComposite[1] = {{ wxLua_wxRichTextCompositeObject_IsComposite, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_IsComposite }}; -// virtual bool IsComposite() const; -static int LUACALL wxLua_wxRichTextCompositeObject_IsComposite(lua_State *L) -{ - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call IsComposite - bool returns = (self->IsComposite()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_IsEmpty[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_IsEmpty[1] = {{ wxLua_wxRichTextCompositeObject_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_IsEmpty }}; -// virtual bool IsEmpty() const; -static int LUACALL wxLua_wxRichTextCompositeObject_IsEmpty(lua_State *L) -{ - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Move[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_Move(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_Move[1] = {{ wxLua_wxRichTextCompositeObject_Move, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_Move }}; -// virtual void Move(const wxPoint& pt); -static int LUACALL wxLua_wxRichTextCompositeObject_Move(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call Move - self->Move(*pt); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_RemoveChild[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextObject, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_RemoveChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_RemoveChild[1] = {{ wxLua_wxRichTextCompositeObject_RemoveChild, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_RemoveChild }}; -// bool RemoveChild(wxRichTextObject* child, bool deleteChild = false) ; -static int LUACALL wxLua_wxRichTextCompositeObject_RemoveChild(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteChild = false - bool deleteChild = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextObject child - wxRichTextObject * child = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call RemoveChild - bool returns = (self->RemoveChild(child, deleteChild)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_delete[] = { &wxluatype_wxRichTextCompositeObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCompositeObject_op_set[] = { &wxluatype_wxRichTextCompositeObject, &wxluatype_wxRichTextCompositeObject, NULL }; -static int LUACALL wxLua_wxRichTextCompositeObject_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCompositeObject_op_set[1] = {{ wxLua_wxRichTextCompositeObject_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCompositeObject_op_set }}; -// void operator= (const wxRichTextCompositeObject& obj); -static int LUACALL wxLua_wxRichTextCompositeObject_op_set(lua_State *L) -{ - // const wxRichTextCompositeObject obj - const wxRichTextCompositeObject * obj = (const wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCompositeObject); - // get this - wxRichTextCompositeObject * self = (wxRichTextCompositeObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCompositeObject); - // call op_set - (*self)=(*obj); - - return 0; -} - - - - -void wxLua_wxRichTextCompositeObject_delete_function(void** p) -{ - wxRichTextCompositeObject* o = (wxRichTextCompositeObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextCompositeObject_methods[] = { - { "AppendChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_AppendChild, 1, NULL }, - { "CalculateRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_CalculateRange, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_Copy, 1, NULL }, - { "Defragment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_Defragment, 1, NULL }, - { "DeleteChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_DeleteChildren, 1, NULL }, - { "DeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_DeleteRange, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { "Dump", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_Dump, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_FindPosition, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChild, 1, NULL }, - { "GetChildAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChildAtPosition, 1, NULL }, - { "GetChildCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChildCount, 1, NULL }, - { "GetChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_GetChildren, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetTextForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_GetTextForRange, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "InsertChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_InsertChild, 1, NULL }, - { "Invalidate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_Invalidate, 1, NULL }, - { "IsAtomic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_IsAtomic, 1, NULL }, - { "IsComposite", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_IsComposite, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_IsEmpty, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Move", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_Move, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "RemoveChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_RemoveChild, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextCompositeObject_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCompositeObject_op_set, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextCompositeObject_methodCount = sizeof(wxRichTextCompositeObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextParagraphLayoutBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextParagraphLayoutBox' -int wxluatype_wxRichTextParagraphLayoutBox = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus[1] = {{ wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus }}; -// virtual bool AcceptsFocus() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call AcceptsFocus - bool returns = (self->AcceptsFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AddImage[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxImage, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AddImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AddImage[1] = {{ wxLua_wxRichTextParagraphLayoutBox_AddImage, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AddImage }}; -// virtual wxRichTextRange AddImage(const wxImage& image, wxRichTextAttr* paraStyle = NULL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AddImage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr paraStyle = NULL - wxRichTextAttr * paraStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call AddImage - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->AddImage(*image, paraStyle)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AddParagraph[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TSTRING, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AddParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AddParagraph[1] = {{ wxLua_wxRichTextParagraphLayoutBox_AddParagraph, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AddParagraph }}; -// virtual wxRichTextRange AddParagraph(const wxString& text, wxRichTextAttr* paraStyle = NULL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AddParagraph(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr paraStyle = NULL - wxRichTextAttr * paraStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call AddParagraph - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->AddParagraph(text, paraStyle)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AddParagraphs[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TSTRING, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AddParagraphs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AddParagraphs[1] = {{ wxLua_wxRichTextParagraphLayoutBox_AddParagraphs, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_AddParagraphs }}; -// virtual wxRichTextRange AddParagraphs(const wxString& text, wxRichTextAttr* paraStyle = NULL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_AddParagraphs(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr paraStyle = NULL - wxRichTextAttr * paraStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call AddParagraphs - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->AddParagraphs(text, paraStyle)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet[1] = {{ wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet }}; -// virtual bool ApplyStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call ApplyStyleSheet - bool returns = (self->ApplyStyleSheet(styleSheet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Clear[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Clear[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Clear(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ClearListStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ClearListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ClearListStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_ClearListStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ClearListStyle }}; -// virtual bool ClearListStyle(const wxRichTextRange& range, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ClearListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call ClearListStyle - bool returns = (self->ClearListStyle(*range, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Clone[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Clone[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Clone(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_CollectStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_CollectStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_CollectStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_CollectStyle, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_CollectStyle }}; -// bool CollectStyle(wxRichTextAttr& currentStyle, const wxRichTextAttr& style, wxRichTextAttr& clashingAttr, wxRichTextAttr& absentAttr); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_CollectStyle(lua_State *L) -{ - // wxRichTextAttr absentAttr - wxRichTextAttr * absentAttr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextAttr); - // wxRichTextAttr clashingAttr - wxRichTextAttr * clashingAttr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextAttr currentStyle - wxRichTextAttr * currentStyle = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call CollectStyle - bool returns = (self->CollectStyle(*currentStyle, *style, *clashingAttr, *absentAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Copy[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Copy[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Copy }}; -// void Copy(const wxRichTextParagraphLayoutBox& obj); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Copy(lua_State *L) -{ - // const wxRichTextParagraphLayoutBox obj - const wxRichTextParagraphLayoutBox * obj = (const wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Copy - self->Copy(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_CopyFragment[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_CopyFragment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_CopyFragment[1] = {{ wxLua_wxRichTextParagraphLayoutBox_CopyFragment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_CopyFragment }}; -// virtual bool CopyFragment(const wxRichTextRange& range, wxRichTextParagraphLayoutBox& fragment); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_CopyFragment(lua_State *L) -{ - // wxRichTextParagraphLayoutBox fragment - wxRichTextParagraphLayoutBox * fragment = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call CopyFragment - bool returns = (self->CopyFragment(*range, *fragment)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DeleteRange[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DeleteRange[1] = {{ wxLua_wxRichTextParagraphLayoutBox_DeleteRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DeleteRange }}; -// virtual bool DeleteRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DeleteRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call DeleteRange - bool returns = (self->DeleteRange(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo }}; -// bool DeleteRangeWithUndo(const wxRichTextRange& range, wxRichTextCtrl* ctrl, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextBuffer); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextCtrl); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call DeleteRangeWithUndo - bool returns = (self->DeleteRangeWithUndo(*range, ctrl, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DoGetStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DoGetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DoGetStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_DoGetStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DoGetStyle }}; -// virtual bool DoGetStyle(long position, wxRichTextAttr& style, bool combineStyles = true); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DoGetStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool combineStyles = true - bool combineStyles = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // wxRichTextAttr style - wxRichTextAttr * style = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call DoGetStyle - bool returns = (self->DoGetStyle(position, *style, combineStyles)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DoInvalidate[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DoInvalidate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DoInvalidate[1] = {{ wxLua_wxRichTextParagraphLayoutBox_DoInvalidate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DoInvalidate }}; -// virtual void DoInvalidate(const wxRichTextRange& invalidRange); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DoInvalidate(lua_State *L) -{ - // const wxRichTextRange invalidRange - const wxRichTextRange * invalidRange = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call DoInvalidate - self->DoInvalidate(*invalidRange); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DoNumberList[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DoNumberList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DoNumberList[1] = {{ wxLua_wxRichTextParagraphLayoutBox_DoNumberList, WXLUAMETHOD_METHOD, 5, 8, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DoNumberList }}; -// virtual bool DoNumberList(const wxRichTextRange& range, const wxRichTextRange& promotionRange, int promoteBy, wxRichTextListStyleDefinition* def, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DoNumberList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def - wxRichTextListStyleDefinition * def = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextListStyleDefinition); - // int promoteBy - int promoteBy = (int)wxlua_getnumbertype(L, 4); - // const wxRichTextRange promotionRange - const wxRichTextRange * promotionRange = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call DoNumberList - bool returns = (self->DoNumberList(*range, *promotionRange, promoteBy, def, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Draw[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Draw[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DrawFloats[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DrawFloats(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DrawFloats[1] = {{ wxLua_wxRichTextParagraphLayoutBox_DrawFloats, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_DrawFloats }}; -// void DrawFloats(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_DrawFloats(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call DrawFloats - self->DrawFloats(*dc, *context, *range, *selection, *rect, descent, style); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ExportXML1[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ExportXML1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML1[1] = {{ wxLua_wxRichTextParagraphLayoutBox_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ExportXML1 }}; -// virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ExportXML1(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextXMLHandler); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call ExportXML - bool returns = (self->ExportXML(parent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ExportXML[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxOutputStream, &wxluatype_TNUMBER, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ExportXML(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML[1] = {{ wxLua_wxRichTextParagraphLayoutBox_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ExportXML }}; -// virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ExportXML(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // int indent - int indent = (int)wxlua_getnumbertype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call ExportXML - bool returns = (self->ExportXML(*stream, indent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber[1] = {{ wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber }}; -// virtual bool FindNextParagraphNumber(wxRichTextParagraph* previousParagraph, wxRichTextAttr& attr) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber(lua_State *L) -{ - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextParagraph previousParagraph - wxRichTextParagraph * previousParagraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call FindNextParagraphNumber - bool returns = (self->FindNextParagraphNumber(previousParagraph, *attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle }}; -// virtual const wxRichTextAttr& GetBasicStyle() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetBasicStyle - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetBasicStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle }}; -// virtual const wxRichTextAttr& GetDefaultStyle() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetDefaultStyle - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetDefaultStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount }}; -// int GetFloatingObjectCount() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetFloatingObjectCount - int returns = (self->GetFloatingObjectCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObjectList, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects }}; -// %override wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects -// C++: bool GetFloatingObjects(wxRichTextObjectList& objects) const; -// Lua: %override [bool, wxRichTextObjectList]GetFloatingObjects(); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // allocate a new object - wxRichTextObjectList *objects = new wxRichTextObjectList(); - // call GetFloatingObjects - bool returns = (self->GetFloatingObjects(*objects)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, objects, wxluatype_wxRichTextObjectList); - // push the result datatype - wxluaT_pushuserdatatype(L, objects, wxluatype_wxRichTextObjectList); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange }}; -// wxRichTextRange GetInvalidRange(bool wholeParagraphs = false) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool wholeParagraphs = false - bool wholeParagraphs = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetInvalidRange - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetInvalidRange(wholeParagraphs)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition }}; -// virtual wxRichTextObject* GetLeafObjectAtPosition(long position) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetLeafObjectAtPosition - wxRichTextObject* returns = (wxRichTextObject*)self->GetLeafObjectAtPosition(position); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition }}; -// virtual wxRichTextLine* GetLineAtPosition(long pos, bool caretPosition = false) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool caretPosition = false - bool caretPosition = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetLineAtPosition - wxRichTextLine* returns = (wxRichTextLine*)self->GetLineAtPosition(pos, caretPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition }}; -// virtual wxRichTextLine* GetLineAtYPosition(int y) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetLineAtYPosition - wxRichTextLine* returns = (wxRichTextLine*)self->GetLineAtYPosition(y); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineCount[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineCount[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetLineCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineCount }}; -// virtual int GetLineCount() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineCount(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetLineCount - int returns = (self->GetLineCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber }}; -// virtual wxRichTextLine* GetLineForVisibleLineNumber(long lineNumber) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber(lua_State *L) -{ - // long lineNumber - long lineNumber = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetLineForVisibleLineNumber - wxRichTextLine* returns = (wxRichTextLine*)self->GetLineForVisibleLineNumber(lineNumber); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition }}; -// virtual wxSize GetLineSizeAtPosition(long pos, bool caretPosition = false) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool caretPosition = false - bool caretPosition = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetLineSizeAtPosition - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetLineSizeAtPosition(pos, caretPosition)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine }}; -// virtual wxRichTextParagraph* GetParagraphAtLine(long paragraphNumber) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine(lua_State *L) -{ - // long paragraphNumber - long paragraphNumber = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetParagraphAtLine - wxRichTextParagraph* returns = (wxRichTextParagraph*)self->GetParagraphAtLine(paragraphNumber); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition }}; -// virtual wxRichTextParagraph* GetParagraphAtPosition(long pos, bool caretPosition = false) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool caretPosition = false - bool caretPosition = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetParagraphAtPosition - wxRichTextParagraph* returns = (wxRichTextParagraph*)self->GetParagraphAtPosition(pos, caretPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount }}; -// virtual int GetParagraphCount() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetParagraphCount - int returns = (self->GetParagraphCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine }}; -// virtual wxRichTextParagraph* GetParagraphForLine(wxRichTextLine* line) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine(lua_State *L) -{ - // wxRichTextLine line - wxRichTextLine * line = (wxRichTextLine *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextLine); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetParagraphForLine - wxRichTextParagraph* returns = (wxRichTextParagraph*)self->GetParagraphForLine(line); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength }}; -// virtual int GetParagraphLength(long paragraphNumber) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength(lua_State *L) -{ - // long paragraphNumber - long paragraphNumber = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetParagraphLength - int returns = (self->GetParagraphLength(paragraphNumber)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphText[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphText[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetParagraphText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetParagraphText }}; -// virtual wxString GetParagraphText(long paragraphNumber) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetParagraphText(lua_State *L) -{ - // long paragraphNumber - long paragraphNumber = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetParagraphText - wxString returns = (self->GetParagraphText(paragraphNumber)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph }}; -// bool GetPartialParagraph() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetPartialParagraph - bool returns = (self->GetPartialParagraph()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetRangeSize[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetRangeSize[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl }}; -// wxRichTextCtrl* GetRichTextCtrl() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetRichTextCtrl - wxRichTextCtrl* returns = (wxRichTextCtrl*)self->GetRichTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyle }}; -// %override wxLua_wxRichTextParagraphLayoutBox_GetStyle -// C++: bool GetStyle(long position, wxRichTextAttr& style); -// Lua: %override [bool, wxRichTextAttr] GetStyle(long position) -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyle(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetStyle - bool returns = (self->GetStyle(position, *stylep)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph }}; -// wxRichTextAttr GetStyleForNewParagraph(wxRichTextBuffer* buffer, long pos, bool caretPosition = false, bool lookUpNewParaStyle=false) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool lookUpNewParaStyle = false - bool lookUpNewParaStyle = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // bool caretPosition = false - bool caretPosition = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetStyleForNewParagraph - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetStyleForNewParagraph(buffer, pos, caretPosition, lookUpNewParaStyle)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange }}; -// %override wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange -// C++: bool GetStyleForRange(const wxRichTextRange& range, wxRichTextAttr& style); -// Lua: %override [bool, wxRichTextAttr] GetStyleForRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetStyleForRange - bool returns = (self->GetStyleForRange(*range, *stylep)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet }}; -// virtual wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetText[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetText[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetText }}; -// virtual wxString GetText() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetText(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetTextForRange[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetTextForRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetTextForRange[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetTextForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetTextForRange }}; -// virtual wxString GetTextForRange(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetTextForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetTextForRange - wxString returns = (self->GetTextForRange(*range)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle }}; -// %override wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle -// C++: bool GetUncombinedStyle(long position, wxRichTextAttr& style); -// Lua: %override [bool, wxRichTextAttr] GetUncombinedStyle(long position); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetUncombinedStyle - bool returns = (self->GetUncombinedStyle(position, *stylep)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber }}; -// virtual long GetVisibleLineNumber(long pos, bool caretPosition = false, bool startOfLine = false) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool startOfLine = false - bool startOfLine = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // bool caretPosition = false - bool caretPosition = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetVisibleLineNumber - long returns = (self->GetVisibleLineNumber(pos, caretPosition, startOfLine)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName[1] = {{ wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes[1] = {{ wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes }}; -// virtual bool HasCharacterAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call HasCharacterAttributes - bool returns = (self->HasCharacterAttributes(*range, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes[1] = {{ wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes }}; -// virtual bool HasParagraphAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call HasParagraphAttributes - bool returns = (self->HasParagraphAttributes(*range, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_HitTest[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_HitTest[1] = {{ wxLua_wxRichTextParagraphLayoutBox_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ImportFromXML[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ImportFromXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ImportFromXML[1] = {{ wxLua_wxRichTextParagraphLayoutBox_ImportFromXML, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ImportFromXML }}; -// virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_ImportFromXML(lua_State *L) -{ - // bool recurse - bool * recurse = (bool *)wxlua_touserdata(L, 5); - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call ImportFromXML - bool returns = (self->ImportFromXML(buffer, node, handler, recurse)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Init[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Init[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Init(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo }}; -// const wxRichTextAttr& textAttr); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo(lua_State *L) -{ - // const wxRichTextAttr textAttr - const wxRichTextAttr * textAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 8, wxluatype_wxRichTextAttr); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextCtrl); - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextProperties); - // const wxString fieldType - const wxString fieldType = wxlua_getwxStringtype(L, 4); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertFieldWithUndo - wxRichTextField* returns = (wxRichTextField*)self->InsertFieldWithUndo(buffer, pos, fieldType, *properties, ctrl, flags, *textAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextField); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertFragment[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertFragment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertFragment[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertFragment, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertFragment }}; -// virtual bool InsertFragment(long position, wxRichTextParagraphLayoutBox& fragment); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertFragment(lua_State *L) -{ - // wxRichTextParagraphLayoutBox fragment - wxRichTextParagraphLayoutBox * fragment = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertFragment - bool returns = (self->InsertFragment(position, *fragment)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextImageBlock, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo }}; -// wxRichTextCtrl* ctrl, int flags, const wxRichTextAttr& textAttr); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo(lua_State *L) -{ - // const wxRichTextAttr textAttr - const wxRichTextAttr * textAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextAttr); - // int flags - int flags = (int)wxlua_getnumbertype(L, 6); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextCtrl); - // const wxRichTextImageBlock imageBlock - const wxRichTextImageBlock * imageBlock = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextImageBlock); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertImageWithUndo - bool returns = (self->InsertImageWithUndo(buffer, pos, *imageBlock, ctrl, flags, *textAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo }}; -// bool InsertNewlineWithUndo(wxRichTextBuffer* buffer, long pos, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextCtrl); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertNewlineWithUndo - bool returns = (self->InsertNewlineWithUndo(buffer, pos, ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo }}; -// wxRichTextObject* InsertObjectWithUndo(wxRichTextBuffer* buffer, long pos, wxRichTextObject *object, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextCtrl); - // wxRichTextObject object - wxRichTextObject * object = (wxRichTextObject *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextObject); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertObjectWithUndo - wxRichTextObject* returns = (wxRichTextObject*)self->InsertObjectWithUndo(buffer, pos, object, ctrl, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo }}; -// bool InsertParagraphsWithUndo(wxRichTextBuffer* buffer, long pos, const wxRichTextParagraphLayoutBox& paragraphs, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextCtrl); - // const wxRichTextParagraphLayoutBox paragraphs - const wxRichTextParagraphLayoutBox * paragraphs = (const wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextParagraphLayoutBox); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertParagraphsWithUndo - bool returns = (self->InsertParagraphsWithUndo(buffer, pos, *paragraphs, ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo }}; -// bool InsertTextWithUndo(wxRichTextBuffer* buffer, long pos, const wxString& text, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextCtrl); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InsertTextWithUndo - bool returns = (self->InsertTextWithUndo(buffer, pos, text, ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Invalidate[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Invalidate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Invalidate[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Invalidate, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Invalidate }}; -// virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Invalidate(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextRange invalidRange = wxRICHTEXT_ALL - const wxRichTextRange * invalidRange = (argCount >= 2 ? (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange) : &wxRICHTEXT_ALL); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Invalidate - self->Invalidate(*invalidRange); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy[1] = {{ wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy }}; -// virtual void InvalidateHierarchy(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextRange invalidRange = wxRICHTEXT_ALL - const wxRichTextRange * invalidRange = (argCount >= 2 ? (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange) : &wxRICHTEXT_ALL); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call InvalidateHierarchy - self->InvalidateHierarchy(*invalidRange); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_IsDirty[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_IsDirty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_IsDirty[1] = {{ wxLua_wxRichTextParagraphLayoutBox_IsDirty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_IsDirty }}; -// bool IsDirty() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_IsDirty(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call IsDirty - bool returns = (self->IsDirty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_IsTopLevel[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_IsTopLevel[1] = {{ wxLua_wxRichTextParagraphLayoutBox_IsTopLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_IsTopLevel }}; -// virtual bool IsTopLevel() const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_IsTopLevel(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call IsTopLevel - bool returns = (self->IsTopLevel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Layout[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Layout[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph[1] = {{ wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph }}; -// void MoveAnchoredObjectToParagraph(wxRichTextParagraph* from, wxRichTextParagraph* to, wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextObject); - // wxRichTextParagraph to - wxRichTextParagraph * to = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraph); - // wxRichTextParagraph from - wxRichTextParagraph * from = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call MoveAnchoredObjectToParagraph - self->MoveAnchoredObjectToParagraph(from, to, obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_NumberList1[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_NumberList1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList1[1] = {{ wxLua_wxRichTextParagraphLayoutBox_NumberList1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_NumberList1 }}; -// virtual bool NumberList(const wxRichTextRange& range, const wxString& defName, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_NumberList1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxString defName - const wxString defName = wxlua_getwxStringtype(L, 3); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call NumberList - bool returns = (self->NumberList(*range, defName, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_NumberList[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_NumberList(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList[1] = {{ wxLua_wxRichTextParagraphLayoutBox_NumberList, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_NumberList }}; -// virtual bool NumberList(const wxRichTextRange& range, wxRichTextListStyleDefinition* def = NULL, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_NumberList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def = NULL - wxRichTextListStyleDefinition * def = (argCount >= 3 ? (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextListStyleDefinition) : NULL); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call NumberList - bool returns = (self->NumberList(*range, def, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PositionToXY[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PositionToXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PositionToXY[1] = {{ wxLua_wxRichTextParagraphLayoutBox_PositionToXY, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PositionToXY }}; -// virtual bool PositionToXY(long pos, long* x, long* y) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PositionToXY(lua_State *L) -{ - // long y - long * y = (long *)wxlua_touserdata(L, 4); - // long x - long * x = (long *)wxlua_touserdata(L, 3); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call PositionToXY - bool returns = (self->PositionToXY(pos, x, y)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PrepareContent[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PrepareContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PrepareContent[1] = {{ wxLua_wxRichTextParagraphLayoutBox_PrepareContent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PrepareContent }}; -// virtual void PrepareContent(wxRichTextParagraphLayoutBox& container); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PrepareContent(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call PrepareContent - self->PrepareContent(*container); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PromoteList1[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_wxRichTextRange, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PromoteList1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList1[1] = {{ wxLua_wxRichTextParagraphLayoutBox_PromoteList1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PromoteList1 }}; -// virtual bool PromoteList(int promoteBy, const wxRichTextRange& range, const wxString& defName, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PromoteList1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxString defName - const wxString defName = wxlua_getwxStringtype(L, 4); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // int promoteBy - int promoteBy = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call PromoteList - bool returns = (self->PromoteList(promoteBy, *range, defName, flags, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PromoteList[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PromoteList(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList[1] = {{ wxLua_wxRichTextParagraphLayoutBox_PromoteList, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PromoteList }}; -// virtual bool PromoteList(int promoteBy, const wxRichTextRange& range, wxRichTextListStyleDefinition* def = NULL, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_PromoteList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def = NULL - wxRichTextListStyleDefinition * def = (argCount >= 4 ? (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextListStyleDefinition) : NULL); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // int promoteBy - int promoteBy = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call PromoteList - bool returns = (self->PromoteList(promoteBy, *range, def, flags, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Reset[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Reset[1] = {{ wxLua_wxRichTextParagraphLayoutBox_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_Reset }}; -// virtual void Reset(); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_Reset(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call Reset - self->Reset(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle }}; -// virtual void SetBasicStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetBasicStyle - self->SetBasicStyle(*style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle }}; -// virtual bool SetDefaultStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetDefaultStyle - bool returns = (self->SetDefaultStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetListStyle1[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetListStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle1[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetListStyle1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetListStyle1 }}; -// virtual bool SetListStyle(const wxRichTextRange& range, const wxString& defName, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetListStyle1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxString defName - const wxString defName = wxlua_getwxStringtype(L, 3); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetListStyle - bool returns = (self->SetListStyle(*range, defName, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetListStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetListStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetListStyle, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetListStyle }}; -// virtual bool SetListStyle(const wxRichTextRange& range, wxRichTextListStyleDefinition* def, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def - wxRichTextListStyleDefinition * def = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextListStyleDefinition); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetListStyle - bool returns = (self->SetListStyle(*range, def, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo }}; -// virtual bool SetObjectPropertiesWithUndo(wxRichTextObject& obj, const wxRichTextProperties& properties, wxRichTextObject* objToSet = NULL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject objToSet = NULL - wxRichTextObject * objToSet = (argCount >= 4 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextObject) : NULL); - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextProperties); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetObjectPropertiesWithUndo - bool returns = (self->SetObjectPropertiesWithUndo(*obj, *properties, objToSet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph }}; -// void SetPartialParagraph(bool partialPara); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph(lua_State *L) -{ - // bool partialPara - bool partialPara = wxlua_getbooleantype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetPartialParagraph - self->SetPartialParagraph(partialPara); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetProperties[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextProperties, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetProperties[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetProperties, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetProperties }}; -// virtual bool SetProperties(const wxRichTextRange& range, const wxRichTextProperties& properties, int flags = wxRICHTEXT_SETPROPERTIES_WITH_UNDO); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetProperties(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETPROPERTIES_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETPROPERTIES_WITH_UNDO); - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextProperties); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetProperties - bool returns = (self->SetProperties(*range, *properties, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl }}; -// void SetRichTextCtrl(wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetRichTextCtrl - self->SetRichTextCtrl(ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetStyle1[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle1[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetStyle1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetStyle1 }}; -// virtual void SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetStyle1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextAttr textAttr - const wxRichTextAttr * textAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetStyle - self->SetStyle(obj, *textAttr, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetStyle[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle[1] = {{ wxLua_wxRichTextParagraphLayoutBox_SetStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetStyle }}; -// virtual bool SetStyle(const wxRichTextRange& range, const wxRichTextAttr& style, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_SetStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call SetStyle - bool returns = (self->SetStyle(*range, *style, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRect, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects[1] = {{ wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects }}; -// virtual bool UpdateFloatingObjects(const wxRect& availableRect, wxRichTextObject* untilObj = NULL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject untilObj = NULL - wxRichTextObject * untilObj = (argCount >= 3 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject) : NULL); - // const wxRect availableRect - const wxRect * availableRect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call UpdateFloatingObjects - bool returns = (self->UpdateFloatingObjects(*availableRect, untilObj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_UpdateRanges[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_UpdateRanges(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_UpdateRanges[1] = {{ wxLua_wxRichTextParagraphLayoutBox_UpdateRanges, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_UpdateRanges }}; -// virtual void UpdateRanges(); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_UpdateRanges(lua_State *L) -{ - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call UpdateRanges - self->UpdateRanges(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_XYToPosition[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_XYToPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_XYToPosition[1] = {{ wxLua_wxRichTextParagraphLayoutBox_XYToPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_XYToPosition }}; -// virtual long XYToPosition(long x, long y) const; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_XYToPosition(lua_State *L) -{ - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call XYToPosition - long returns = (self->XYToPosition(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_delete[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_op_set[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_op_set[1] = {{ wxLua_wxRichTextParagraphLayoutBox_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_op_set }}; -// void operator= (const wxRichTextParagraphLayoutBox& obj); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_op_set(lua_State *L) -{ - // const wxRichTextParagraphLayoutBox obj - const wxRichTextParagraphLayoutBox * obj = (const wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextParagraphLayoutBox * self = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call op_set - (*self)=(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_constructor1[] = { &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor1[1] = {{ wxLua_wxRichTextParagraphLayoutBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_constructor1 }}; -// wxRichTextParagraphLayoutBox(const wxRichTextParagraphLayoutBox& obj); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_constructor1(lua_State *L) -{ - // const wxRichTextParagraphLayoutBox obj - const wxRichTextParagraphLayoutBox * obj = (const wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call constructor - wxRichTextParagraphLayoutBox* returns = new wxRichTextParagraphLayoutBox(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_constructor[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor[1] = {{ wxLua_wxRichTextParagraphLayoutBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_constructor }}; -// wxRichTextParagraphLayoutBox(wxRichTextObject* parent = NULL); -static int LUACALL wxLua_wxRichTextParagraphLayoutBox_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 1 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject) : NULL); - // call constructor - wxRichTextParagraphLayoutBox* returns = new wxRichTextParagraphLayoutBox(parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextParagraphLayoutBox_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ExportXML1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - { wxLua_wxRichTextParagraphLayoutBox_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_ExportXML }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList_overload[] = -{ - { wxLua_wxRichTextParagraphLayoutBox_NumberList1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_NumberList1 }, - { wxLua_wxRichTextParagraphLayoutBox_NumberList, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_NumberList }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList_overload[] = -{ - { wxLua_wxRichTextParagraphLayoutBox_PromoteList1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PromoteList1 }, - { wxLua_wxRichTextParagraphLayoutBox_PromoteList, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_PromoteList }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle_overload[] = -{ - { wxLua_wxRichTextParagraphLayoutBox_SetListStyle1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetListStyle1 }, - { wxLua_wxRichTextParagraphLayoutBox_SetListStyle, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetListStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle_overload[] = -{ - { wxLua_wxRichTextParagraphLayoutBox_SetStyle1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetStyle1 }, - { wxLua_wxRichTextParagraphLayoutBox_SetStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_SetStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor_overload[] = -{ - { wxLua_wxRichTextParagraphLayoutBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_constructor1 }, - { wxLua_wxRichTextParagraphLayoutBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphLayoutBox_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextParagraphLayoutBox_delete_function(void** p) -{ - wxRichTextParagraphLayoutBox* o = (wxRichTextParagraphLayoutBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextParagraphLayoutBox_methods[] = { - { "AcceptsFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AcceptsFocus, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "AddImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AddImage, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "AddParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AddParagraph, 1, NULL }, - { "AddParagraphs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_AddParagraphs, 1, NULL }, - { "ApplyStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ApplyStyleSheet, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Clear, 1, NULL }, - { "ClearListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ClearListStyle, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Clone, 1, NULL }, - { "CollectStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_CollectStyle, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Copy, 1, NULL }, - { "CopyFragment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_CopyFragment, 1, NULL }, - { "DeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DeleteRange, 1, NULL }, - { "DeleteRangeWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DeleteRangeWithUndo, 1, NULL }, - { "DoGetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DoGetStyle, 1, NULL }, - { "DoInvalidate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DoInvalidate, 1, NULL }, - { "DoNumberList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DoNumberList, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Draw, 1, NULL }, - { "DrawFloats", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_DrawFloats, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - { "ExportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML_overload, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ExportXML_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - - { "FindNextParagraphNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_FindNextParagraphNumber, 1, NULL }, - { "GetBasicStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetBasicStyle, 1, NULL }, - { "GetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetDefaultStyle, 1, NULL }, - { "GetFloatingObjectCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjectCount, 1, NULL }, - { "GetFloatingObjects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetFloatingObjects, 1, NULL }, - { "GetInvalidRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetInvalidRange, 1, NULL }, - { "GetLeafObjectAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLeafObjectAtPosition, 1, NULL }, - { "GetLineAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineAtPosition, 1, NULL }, - { "GetLineAtYPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineAtYPosition, 1, NULL }, - { "GetLineCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineCount, 1, NULL }, - { "GetLineForVisibleLineNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineForVisibleLineNumber, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetLineSizeAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetLineSizeAtPosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetParagraphAtLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtLine, 1, NULL }, - { "GetParagraphAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphAtPosition, 1, NULL }, - { "GetParagraphCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphCount, 1, NULL }, - { "GetParagraphForLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphForLine, 1, NULL }, - { "GetParagraphLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphLength, 1, NULL }, - { "GetParagraphText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetParagraphText, 1, NULL }, - { "GetPartialParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetPartialParagraph, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetRichTextCtrl, 1, NULL }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyle, 1, NULL }, - { "GetStyleForNewParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyleForNewParagraph, 1, NULL }, - { "GetStyleForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyleForRange, 1, NULL }, - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetStyleSheet, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetText, 1, NULL }, - { "GetTextForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetTextForRange, 1, NULL }, - { "GetUncombinedStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetUncombinedStyle, 1, NULL }, - { "GetVisibleLineNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetVisibleLineNumber, 1, NULL }, - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_GetXMLNodeName, 1, NULL }, - { "HasCharacterAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_HasCharacterAttributes, 1, NULL }, - { "HasParagraphAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_HasParagraphAttributes, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportFromXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_ImportFromXML, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Init, 1, NULL }, - { "InsertFieldWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertFieldWithUndo, 1, NULL }, - { "InsertFragment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertFragment, 1, NULL }, - { "InsertImageWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertImageWithUndo, 1, NULL }, - { "InsertNewlineWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertNewlineWithUndo, 1, NULL }, - { "InsertObjectWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertObjectWithUndo, 1, NULL }, - { "InsertParagraphsWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertParagraphsWithUndo, 1, NULL }, - { "InsertTextWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InsertTextWithUndo, 1, NULL }, - { "Invalidate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Invalidate, 1, NULL }, - { "InvalidateHierarchy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_InvalidateHierarchy, 1, NULL }, - { "IsDirty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_IsDirty, 1, NULL }, - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_IsTopLevel, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "MoveAnchoredObjectToParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_MoveAnchoredObjectToParagraph, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "NumberList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList_overload, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_NumberList_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "PositionToXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PositionToXY, 1, NULL }, - { "PrepareContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PrepareContent, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "PromoteList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList_overload, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_PromoteList_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_Reset, 1, NULL }, - { "SetBasicStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetBasicStyle, 1, NULL }, - { "SetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetDefaultStyle, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle_overload, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetListStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetObjectPropertiesWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetObjectPropertiesWithUndo, 1, NULL }, - { "SetPartialParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetPartialParagraph, 1, NULL }, - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetProperties, 1, NULL }, - { "SetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetRichTextCtrl, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle_overload, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_SetStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "UpdateFloatingObjects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_UpdateFloatingObjects, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "UpdateRanges", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_UpdateRanges, 1, NULL }, - { "XYToPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_XYToPosition, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextParagraphLayoutBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor_overload, s_wxluafunc_wxLua_wxRichTextParagraphLayoutBox_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextParagraphLayoutBox_methodCount = sizeof(wxRichTextParagraphLayoutBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextBox' -int wxluatype_wxRichTextBox = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_CanEditProperties[] = { &wxluatype_wxRichTextBox, NULL }; -static int LUACALL wxLua_wxRichTextBox_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_CanEditProperties[1] = {{ wxLua_wxRichTextBox_CanEditProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_CanEditProperties }}; -// virtual bool CanEditProperties() const; -static int LUACALL wxLua_wxRichTextBox_CanEditProperties(lua_State *L) -{ - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call CanEditProperties - bool returns = (self->CanEditProperties()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_Clone[] = { &wxluatype_wxRichTextBox, NULL }; -static int LUACALL wxLua_wxRichTextBox_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_Clone[1] = {{ wxLua_wxRichTextBox_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextBox_Clone(lua_State *L) -{ - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_Copy[] = { &wxluatype_wxRichTextBox, &wxluatype_wxRichTextBox, NULL }; -static int LUACALL wxLua_wxRichTextBox_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_Copy[1] = {{ wxLua_wxRichTextBox_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBox_Copy }}; -// void Copy(const wxRichTextBox& obj); -static int LUACALL wxLua_wxRichTextBox_Copy(lua_State *L) -{ - // const wxRichTextBox obj - const wxRichTextBox * obj = (const wxRichTextBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBox); - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call Copy - self->Copy(*obj); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_Draw[] = { &wxluatype_wxRichTextBox, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBox_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_Draw[1] = {{ wxLua_wxRichTextBox_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextBox_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextBox_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_EditProperties[] = { &wxluatype_wxRichTextBox, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBox_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_EditProperties[1] = {{ wxLua_wxRichTextBox_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBox_EditProperties }}; -// virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextBox_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call EditProperties - bool returns = (self->EditProperties(parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextBox, NULL }; -static int LUACALL wxLua_wxRichTextBox_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextBox_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel() const; -static int LUACALL wxLua_wxRichTextBox_GetPropertiesMenuLabel(lua_State *L) -{ - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_GetXMLNodeName[] = { &wxluatype_wxRichTextBox, NULL }; -static int LUACALL wxLua_wxRichTextBox_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_GetXMLNodeName[1] = {{ wxLua_wxRichTextBox_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextBox_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextBox * self = (wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_delete[] = { &wxluatype_wxRichTextBox, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_constructor1[] = { &wxluatype_wxRichTextBox, NULL }; -static int LUACALL wxLua_wxRichTextBox_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_constructor1[1] = {{ wxLua_wxRichTextBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_constructor1 }}; -// wxRichTextBox(const wxRichTextBox& obj); -static int LUACALL wxLua_wxRichTextBox_constructor1(lua_State *L) -{ - // const wxRichTextBox obj - const wxRichTextBox * obj = (const wxRichTextBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBox); - // call constructor - wxRichTextBox* returns = new wxRichTextBox(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBox); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBox_constructor[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextBox_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_constructor[1] = {{ wxLua_wxRichTextBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextBox_constructor }}; -// wxRichTextBox(wxRichTextObject* parent = NULL); -static int LUACALL wxLua_wxRichTextBox_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 1 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject) : NULL); - // call constructor - wxRichTextBox* returns = new wxRichTextBox(parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBox); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBox); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBox_constructor_overload[] = -{ - { wxLua_wxRichTextBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBox_constructor1 }, - { wxLua_wxRichTextBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextBox_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextBox_delete_function(void** p) -{ - wxRichTextBox* o = (wxRichTextBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextBox_methods[] = { - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_CanEditProperties, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_EditProperties, 1, NULL }, - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_GetPropertiesMenuLabel, 1, NULL }, - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBox_GetXMLNodeName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextBox_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextBox_constructor_overload, s_wxluafunc_wxLua_wxRichTextBox_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextBox_methodCount = sizeof(wxRichTextBox_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextField -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextField' -int wxluatype_wxRichTextField = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_AcceptsFocus[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_AcceptsFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_AcceptsFocus[1] = {{ wxLua_wxRichTextField_AcceptsFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_AcceptsFocus }}; -// virtual bool AcceptsFocus() const; -static int LUACALL wxLua_wxRichTextField_AcceptsFocus(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call AcceptsFocus - bool returns = (self->AcceptsFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_CalculateRange[] = { &wxluatype_wxRichTextField, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextField_CalculateRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_CalculateRange[1] = {{ wxLua_wxRichTextField_CalculateRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextField_CalculateRange }}; -// virtual void CalculateRange(long start, long& end); -static int LUACALL wxLua_wxRichTextField_CalculateRange(lua_State *L) -{ - // long end - long * end = (long *)wxlua_touserdata(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call CalculateRange - self->CalculateRange(start, *end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_CanEditProperties[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_CanEditProperties[1] = {{ wxLua_wxRichTextField_CanEditProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_CanEditProperties }}; -// virtual bool CanEditProperties() const; -static int LUACALL wxLua_wxRichTextField_CanEditProperties(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call CanEditProperties - bool returns = (self->CanEditProperties()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_Clone[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_Clone[1] = {{ wxLua_wxRichTextField_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextField_Clone(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_Copy[] = { &wxluatype_wxRichTextField, &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_Copy[1] = {{ wxLua_wxRichTextField_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextField_Copy }}; -// void Copy(const wxRichTextField& obj); -static int LUACALL wxLua_wxRichTextField_Copy(lua_State *L) -{ - // const wxRichTextField obj - const wxRichTextField * obj = (const wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call Copy - self->Copy(*obj); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_Draw[] = { &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextField_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_Draw[1] = {{ wxLua_wxRichTextField_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextField_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextField_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_EditProperties[] = { &wxluatype_wxRichTextField, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextField_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_EditProperties[1] = {{ wxLua_wxRichTextField_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextField_EditProperties }}; -// virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextField_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call EditProperties - bool returns = (self->EditProperties(parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_GetFieldType[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_GetFieldType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_GetFieldType[1] = {{ wxLua_wxRichTextField_GetFieldType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_GetFieldType }}; -// wxString GetFieldType() const; -static int LUACALL wxLua_wxRichTextField_GetFieldType(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call GetFieldType - wxString returns = (self->GetFieldType()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextField_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel() const; -static int LUACALL wxLua_wxRichTextField_GetPropertiesMenuLabel(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_GetRangeSize[] = { &wxluatype_wxRichTextField, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextField_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_GetRangeSize[1] = {{ wxLua_wxRichTextField_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextField_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextField_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_GetXMLNodeName[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_GetXMLNodeName[1] = {{ wxLua_wxRichTextField_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextField_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_IsAtomic[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_IsAtomic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_IsAtomic[1] = {{ wxLua_wxRichTextField_IsAtomic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_IsAtomic }}; -// virtual bool IsAtomic() const; -static int LUACALL wxLua_wxRichTextField_IsAtomic(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call IsAtomic - bool returns = (self->IsAtomic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_IsEmpty[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_IsEmpty[1] = {{ wxLua_wxRichTextField_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_IsEmpty }}; -// virtual bool IsEmpty() const; -static int LUACALL wxLua_wxRichTextField_IsEmpty(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_IsTopLevel[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_IsTopLevel[1] = {{ wxLua_wxRichTextField_IsTopLevel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_IsTopLevel }}; -// virtual bool IsTopLevel() const; -static int LUACALL wxLua_wxRichTextField_IsTopLevel(lua_State *L) -{ - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call IsTopLevel - bool returns = (self->IsTopLevel()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_Layout[] = { &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextField_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_Layout[1] = {{ wxLua_wxRichTextField_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextField_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextField_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_SetFieldType[] = { &wxluatype_wxRichTextField, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextField_SetFieldType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_SetFieldType[1] = {{ wxLua_wxRichTextField_SetFieldType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextField_SetFieldType }}; -// void SetFieldType(const wxString& fieldType); -static int LUACALL wxLua_wxRichTextField_SetFieldType(lua_State *L) -{ - // const wxString fieldType - const wxString fieldType = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call SetFieldType - self->SetFieldType(fieldType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_UpdateField[] = { &wxluatype_wxRichTextField, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextField_UpdateField(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_UpdateField[1] = {{ wxLua_wxRichTextField_UpdateField, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextField_UpdateField }}; -// virtual bool UpdateField(wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextField_UpdateField(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextField * self = (wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call UpdateField - bool returns = (self->UpdateField(buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_delete[] = { &wxluatype_wxRichTextField, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_constructor1[] = { &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextField_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_constructor1[1] = {{ wxLua_wxRichTextField_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_constructor1 }}; -// wxRichTextField(const wxRichTextField& obj); -static int LUACALL wxLua_wxRichTextField_constructor1(lua_State *L) -{ - // const wxRichTextField obj - const wxRichTextField * obj = (const wxRichTextField *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextField); - // call constructor - wxRichTextField* returns = new wxRichTextField(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextField); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextField); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextField_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextField_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_constructor[1] = {{ wxLua_wxRichTextField_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRichTextField_constructor }}; -// wxRichTextField(const wxString& fieldType = wxEmptyString, wxRichTextObject* parent = NULL); -static int LUACALL wxLua_wxRichTextField_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 2 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject) : NULL); - // const wxString fieldType = wxEmptyString - const wxString fieldType = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxRichTextField* returns = new wxRichTextField(fieldType, parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextField); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextField); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextField_constructor_overload[] = -{ - { wxLua_wxRichTextField_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextField_constructor1 }, - { wxLua_wxRichTextField_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRichTextField_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextField_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextField_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextField_delete_function(void** p) -{ - wxRichTextField* o = (wxRichTextField*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextField_methods[] = { - { "AcceptsFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_AcceptsFocus, 1, NULL }, - { "CalculateRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_CalculateRange, 1, NULL }, - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_CanEditProperties, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_EditProperties, 1, NULL }, - { "GetFieldType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_GetFieldType, 1, NULL }, - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_GetPropertiesMenuLabel, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_GetXMLNodeName, 1, NULL }, - { "IsAtomic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_IsAtomic, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_IsEmpty, 1, NULL }, - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_IsTopLevel, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetFieldType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_SetFieldType, 1, NULL }, - { "UpdateField", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextField_UpdateField, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextField_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextField", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextField_constructor_overload, s_wxluafunc_wxLua_wxRichTextField_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextField_methodCount = sizeof(wxRichTextField_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextFieldType -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFieldType' -int wxluatype_wxRichTextFieldType = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_CanEditProperties[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_CanEditProperties[1] = {{ wxLua_wxRichTextFieldType_CanEditProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldType_CanEditProperties }}; -// virtual bool CanEditProperties(wxRichTextField* obj) const; -static int LUACALL wxLua_wxRichTextFieldType_CanEditProperties(lua_State *L) -{ - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call CanEditProperties - bool returns = (self->CanEditProperties(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_Copy[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextFieldType, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_Copy[1] = {{ wxLua_wxRichTextFieldType_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldType_Copy }}; -// void Copy(const wxRichTextFieldType& fieldType); -static int LUACALL wxLua_wxRichTextFieldType_Copy(lua_State *L) -{ - // const wxRichTextFieldType fieldType - const wxRichTextFieldType * fieldType = (const wxRichTextFieldType *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFieldType); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call Copy - self->Copy(*fieldType); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_Draw[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_Draw[1] = {{ wxLua_wxRichTextFieldType_Draw, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxRichTextFieldType_Draw }}; -// virtual bool Draw(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextFieldType_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 9); - // int descent - int descent = (int)wxlua_getnumbertype(L, 8); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call Draw - bool returns = (self->Draw(obj, *dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_EditProperties[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_EditProperties[1] = {{ wxLua_wxRichTextFieldType_EditProperties, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextFieldType_EditProperties }}; -// virtual bool EditProperties(wxRichTextField* obj, wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextFieldType_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call EditProperties - bool returns = (self->EditProperties(obj, parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_GetName[] = { &wxluatype_wxRichTextFieldType, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_GetName[1] = {{ wxLua_wxRichTextFieldType_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldType_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxRichTextFieldType_GetName(lua_State *L) -{ - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextFieldType_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldType_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel(wxRichTextField* obj) const; -static int LUACALL wxLua_wxRichTextFieldType_GetPropertiesMenuLabel(lua_State *L) -{ - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel(obj)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_GetRangeSize[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_GetRangeSize[1] = {{ wxLua_wxRichTextFieldType_GetRangeSize, WXLUAMETHOD_METHOD, 8, 11, s_wxluatypeArray_wxLua_wxRichTextFieldType_GetRangeSize }}; -// virtual bool GetRangeSize(wxRichTextField* obj, const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextFieldType_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 11 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 11, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 10 ? (const wxSize *)wxluaT_getuserdatatype(L, 10, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 9 ? (const wxPoint *)wxluaT_getuserdatatype(L, 9, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 8); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 6, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 5); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call GetRangeSize - bool returns = (self->GetRangeSize(obj, *range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_IsTopLevel[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_IsTopLevel[1] = {{ wxLua_wxRichTextFieldType_IsTopLevel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldType_IsTopLevel }}; -// virtual bool IsTopLevel(wxRichTextField* obj) const; -static int LUACALL wxLua_wxRichTextFieldType_IsTopLevel(lua_State *L) -{ - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call IsTopLevel - bool returns = (self->IsTopLevel(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_Layout[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_Layout[1] = {{ wxLua_wxRichTextFieldType_Layout, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextFieldType_Layout }}; -// virtual bool Layout(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextFieldType_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 7); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call Layout - bool returns = (self->Layout(obj, *dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_SetName[] = { &wxluatype_wxRichTextFieldType, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_SetName[1] = {{ wxLua_wxRichTextFieldType_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldType_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxRichTextFieldType_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_UpdateField[] = { &wxluatype_wxRichTextFieldType, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextFieldType_UpdateField(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_UpdateField[1] = {{ wxLua_wxRichTextFieldType_UpdateField, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFieldType_UpdateField }}; -// virtual bool UpdateField(wxRichTextBuffer* buffer, wxRichTextField* obj); -static int LUACALL wxLua_wxRichTextFieldType_UpdateField(lua_State *L) -{ - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextField); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextFieldType * self = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call UpdateField - bool returns = (self->UpdateField(buffer, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldType_delete[] = { &wxluatype_wxRichTextFieldType, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldType_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldType_delete }}; - - - - -void wxLua_wxRichTextFieldType_delete_function(void** p) -{ - wxRichTextFieldType* o = (wxRichTextFieldType*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFieldType_methods[] = { - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_CanEditProperties, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_EditProperties, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_GetName, 1, NULL }, - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_GetPropertiesMenuLabel, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_IsTopLevel, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_SetName, 1, NULL }, - { "UpdateField", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldType_UpdateField, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFieldType_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFieldType_methodCount = sizeof(wxRichTextFieldType_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextFieldTypeHashMap::iterator -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFieldTypeHashMap::iterator' -int wxluatype_wxRichTextFieldTypeHashMap_iterator = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first[1] = {{ wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first }}; -// %override wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first -// For implementation of HashMap related methods, see wxImageHistogram in wxcore_override.hpp.i -// wxString first; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap::iterator *self = (wxRichTextFieldTypeHashMap::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // push the result string - wxlua_pushwxString(L, (*self)->first); // *** need to cast self to object from pointer - // return the number of values - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second[1] = {{ wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second }}; -// %override wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second -// wxRichTextFieldType *second; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap::iterator *self = (wxRichTextFieldTypeHashMap::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, (*self)->second, wxluatype_wxRichTextFieldType); // *** need to cast self to object from pointer - // return the number of values - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first[1] = {{ wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first }}; -// %override wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first -// wxString first; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first(lua_State *L) -{ - wxlua_argerrormsg(L, wxT("You cannot set the first element of a wxHashMap. do not use wxRichTextFieldTypeHashMap::iterator::SetFirst().")); - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, &wxluatype_wxRichTextFieldType, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second[1] = {{ wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second }}; -// %override wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second -// wxRichTextFieldType *second; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second(lua_State *L) -{ - // get the data type value - wxRichTextFieldType* val = (wxRichTextFieldType*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFieldType); - // get this - wxRichTextFieldTypeHashMap::iterator *self = (wxRichTextFieldTypeHashMap::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap_iterator); - (*self)->second = val; // *** need to cast self to object from pointer - // return the number of values - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_delete[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, &wxluatype_wxRichTextFieldTypeHashMap_iterator, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq[1] = {{ wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq }}; -// bool operator==(const wxRichTextFieldTypeHashMap::iterator& other) const; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq(lua_State *L) -{ - // const wxRichTextFieldTypeHashMap::iterator other - const wxRichTextFieldTypeHashMap::iterator * other = (const wxRichTextFieldTypeHashMap::iterator *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // get this - wxRichTextFieldTypeHashMap::iterator * self = (wxRichTextFieldTypeHashMap::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // call op_eq - bool returns = ((*self)==(*other)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc[] = { &wxluatype_wxRichTextFieldTypeHashMap_iterator, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc[1] = {{ wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc }}; -// void operator++(); // it's best if we don't return the iterator -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap::iterator * self = (wxRichTextFieldTypeHashMap::iterator *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // call op_inc - (*self)++; - - return 0; -} - - - - -void wxLua_wxRichTextFieldTypeHashMap_iterator_delete_function(void** p) -{ - wxRichTextFieldTypeHashMap::iterator* o = (wxRichTextFieldTypeHashMap::iterator*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFieldTypeHashMap_iterator_methods[] = { - // %member { "Get_first", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first, 1, NULL }, - // %member { "Get_second", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second, 1, NULL }, - // %member { "Set_first", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first, 1, NULL }, - // %member { "Set_second", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_delete, 1, NULL }, - { "first", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_first, 1, NULL }, - { "first", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_first, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_op_eq, 1, NULL }, - { "op_inc", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_op_inc, 1, NULL }, - { "second", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Set_second, 1, NULL }, - { "second", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_iterator_Get_second, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFieldTypeHashMap_iterator_methodCount = sizeof(wxRichTextFieldTypeHashMap_iterator_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextFieldTypeHashMap -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFieldTypeHashMap' -int wxluatype_wxRichTextFieldTypeHashMap = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Begin[] = { &wxluatype_wxRichTextFieldTypeHashMap, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Begin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Begin[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Begin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Begin }}; -// %rename Begin wxRichTextFieldTypeHashMap::iterator begin() const; // not const iterator -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Begin(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call begin - // allocate a new object using the copy constructor - wxRichTextFieldTypeHashMap::iterator* returns = new wxRichTextFieldTypeHashMap::iterator(self->begin()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeHashMap_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Clear[] = { &wxluatype_wxRichTextFieldTypeHashMap, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Clear[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Clear }}; -// %rename Clear void clear(); -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Clear(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call clear - self->clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Count[] = { &wxluatype_wxRichTextFieldTypeHashMap, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Count(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Count[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Count, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Count }}; -// %rename Count size_t count(wxString &key) const; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Count(lua_State *L) -{ - // wxString key - wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call count - size_t returns = (self->count(key)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Empty[] = { &wxluatype_wxRichTextFieldTypeHashMap, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Empty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Empty[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Empty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Empty }}; -// %rename Empty bool empty() const; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Empty(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call empty - bool returns = (self->empty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_End[] = { &wxluatype_wxRichTextFieldTypeHashMap, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_End(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_End[1] = {{ wxLua_wxRichTextFieldTypeHashMap_End, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_End }}; -// %rename End wxRichTextFieldTypeHashMap::iterator end() const; // not const iterator -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_End(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call end - // allocate a new object using the copy constructor - wxRichTextFieldTypeHashMap::iterator* returns = new wxRichTextFieldTypeHashMap::iterator(self->end()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeHashMap_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Erase[] = { &wxluatype_wxRichTextFieldTypeHashMap, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Erase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Erase[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Erase, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Erase }}; -// %rename Erase size_t erase(wxString &key); -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Erase(lua_State *L) -{ - // wxString key - wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call erase - size_t returns = (self->erase(key)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Find[] = { &wxluatype_wxRichTextFieldTypeHashMap, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Find(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Find[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Find, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Find }}; -// %rename Find wxRichTextFieldTypeHashMap::iterator find(wxString &key); -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Find(lua_State *L) -{ - // wxString key - wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call find - // allocate a new object using the copy constructor - wxRichTextFieldTypeHashMap::iterator* returns = new wxRichTextFieldTypeHashMap::iterator(self->find(key)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeHashMap_iterator); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeHashMap_iterator); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Size[] = { &wxluatype_wxRichTextFieldTypeHashMap, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Size(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Size[1] = {{ wxLua_wxRichTextFieldTypeHashMap_Size, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_Size }}; -// %rename Size size_t size() const; -static int LUACALL wxLua_wxRichTextFieldTypeHashMap_Size(lua_State *L) -{ - // get this - wxRichTextFieldTypeHashMap * self = (wxRichTextFieldTypeHashMap *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeHashMap); - // call size - size_t returns = (self->size()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_delete[] = { &wxluatype_wxRichTextFieldTypeHashMap, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeHashMap_delete }}; - - - - -void wxLua_wxRichTextFieldTypeHashMap_delete_function(void** p) -{ - wxRichTextFieldTypeHashMap* o = (wxRichTextFieldTypeHashMap*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFieldTypeHashMap_methods[] = { - { "Begin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Begin, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Clear, 1, NULL }, - { "Count", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Count, 1, NULL }, - { "Empty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Empty, 1, NULL }, - { "End", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_End, 1, NULL }, - { "Erase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Erase, 1, NULL }, - { "Find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Find, 1, NULL }, - { "Size", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_Size, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFieldTypeHashMap_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFieldTypeHashMap_methodCount = sizeof(wxRichTextFieldTypeHashMap_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextFieldTypeStandard -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFieldTypeStandard' -int wxluatype_wxRichTextFieldTypeStandard = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Copy[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Copy[1] = {{ wxLua_wxRichTextFieldTypeStandard_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Copy }}; -// void Copy(const wxRichTextFieldTypeStandard& field); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Copy(lua_State *L) -{ - // const wxRichTextFieldTypeStandard field - const wxRichTextFieldTypeStandard * field = (const wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFieldTypeStandard); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call Copy - self->Copy(*field); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Draw[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Draw[1] = {{ wxLua_wxRichTextFieldTypeStandard_Draw, WXLUAMETHOD_METHOD, 9, 9, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Draw }}; -// virtual bool Draw(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 9); - // int descent - int descent = (int)wxlua_getnumbertype(L, 8); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call Draw - bool returns = (self->Draw(obj, *dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour }}; -// const wxColour& GetBackgroundColour() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetBackgroundColour - const wxColour* returns = (const wxColour*)&self->GetBackgroundColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetBitmap[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetBitmap[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetBitmap }}; -// const wxBitmap& GetBitmap() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetBitmap(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetBitmap - const wxBitmap* returns = (const wxBitmap*)&self->GetBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetBorderColour[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetBorderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetBorderColour[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetBorderColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetBorderColour }}; -// const wxColour& GetBorderColour() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetBorderColour(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetBorderColour - const wxColour* returns = (const wxColour*)&self->GetBorderColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle }}; -// int GetDisplayStyle() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetDisplayStyle - int returns = (self->GetDisplayStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetFont[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetFont[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetFont }}; -// const wxFont& GetFont() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetFont(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetFont - const wxFont* returns = (const wxFont*)&self->GetFont(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin }}; -// int GetHorizontalMargin() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetHorizontalMargin - int returns = (self->GetHorizontalMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding }}; -// int GetHorizontalPadding() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetHorizontalPadding - int returns = (self->GetHorizontalPadding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetLabel[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetLabel[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetLabel }}; -// const wxString& GetLabel() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetLabel(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetLabel - wxString returns = (self->GetLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetRangeSize[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextField, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetRangeSize[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetRangeSize, WXLUAMETHOD_METHOD, 8, 11, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetRangeSize }}; -// virtual bool GetRangeSize(wxRichTextField* obj, const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 11 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 11, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 10 ? (const wxSize *)wxluaT_getuserdatatype(L, 10, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 9 ? (const wxPoint *)wxluaT_getuserdatatype(L, 9, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 8); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 6, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 5); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetRangeSize - bool returns = (self->GetRangeSize(obj, *range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetSize[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetSize[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetSize, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetSize }}; -// wxSize GetSize(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, int style) const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetSize(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 5); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize(obj, *dc, *context, style)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetTextColour[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetTextColour[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetTextColour }}; -// const wxColour& GetTextColour() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetTextColour(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetTextColour - const wxColour* returns = (const wxColour*)&self->GetTextColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin }}; -// int GetVerticalMargin() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetVerticalMargin - int returns = (self->GetVerticalMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding[1] = {{ wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding }}; -// int GetVerticalPadding() const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call GetVerticalPadding - int returns = (self->GetVerticalPadding()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Init[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Init[1] = {{ wxLua_wxRichTextFieldTypeStandard_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Init(lua_State *L) -{ - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_IsTopLevel[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextField, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_IsTopLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_IsTopLevel[1] = {{ wxLua_wxRichTextFieldTypeStandard_IsTopLevel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_IsTopLevel }}; -// virtual bool IsTopLevel(wxRichTextField* obj) const; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_IsTopLevel(lua_State *L) -{ - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call IsTopLevel - bool returns = (self->IsTopLevel(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Layout[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextField, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Layout[1] = {{ wxLua_wxRichTextFieldTypeStandard_Layout, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_Layout }}; -// virtual bool Layout(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 7); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextField obj - wxRichTextField * obj = (wxRichTextField *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextField); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call Layout - bool returns = (self->Layout(obj, *dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour }}; -// void SetBackgroundColour(const wxColour& colour); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetBackgroundColour - self->SetBackgroundColour(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetBitmap[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetBitmap[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetBitmap }}; -// void SetBitmap(const wxBitmap& bitmap); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetBitmap(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetBitmap - self->SetBitmap(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetBorderColour[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetBorderColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetBorderColour[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetBorderColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetBorderColour }}; -// void SetBorderColour(const wxColour& colour); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetBorderColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetBorderColour - self->SetBorderColour(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle }}; -// void SetDisplayStyle(int displayStyle); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle(lua_State *L) -{ - // int displayStyle - int displayStyle = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetDisplayStyle - self->SetDisplayStyle(displayStyle); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetFont[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetFont[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin }}; -// void SetHorizontalMargin(int margin); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetHorizontalMargin - self->SetHorizontalMargin(margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding }}; -// void SetHorizontalPadding(int padding); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding(lua_State *L) -{ - // int padding - int padding = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetHorizontalPadding - self->SetHorizontalPadding(padding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetLabel[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetLabel[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetLabel }}; -// void SetLabel(const wxString& label); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetLabel(lua_State *L) -{ - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetLabel - self->SetLabel(label); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetTextColour[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetTextColour[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetTextColour }}; -// void SetTextColour(const wxColour& colour); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetTextColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetTextColour - self->SetTextColour(*colour); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin }}; -// void SetVerticalMargin(int margin); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetVerticalMargin - self->SetVerticalMargin(margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding[1] = {{ wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding }}; -// void SetVerticalPadding(int padding); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding(lua_State *L) -{ - // int padding - int padding = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call SetVerticalPadding - self->SetVerticalPadding(padding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_delete[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_op_set[] = { &wxluatype_wxRichTextFieldTypeStandard, &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_op_set[1] = {{ wxLua_wxRichTextFieldTypeStandard_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_op_set }}; -// void operator=(const wxRichTextFieldTypeStandard& field); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_op_set(lua_State *L) -{ - // const wxRichTextFieldTypeStandard field - const wxRichTextFieldTypeStandard * field = (const wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFieldTypeStandard); - // get this - wxRichTextFieldTypeStandard * self = (wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call op_set - (*self)=(*field); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor3[] = { &wxluatype_wxRichTextFieldTypeStandard, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor3[1] = {{ wxLua_wxRichTextFieldTypeStandard_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor3 }}; -// wxRichTextFieldTypeStandard(const wxRichTextFieldTypeStandard& field); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor3(lua_State *L) -{ - // const wxRichTextFieldTypeStandard field - const wxRichTextFieldTypeStandard * field = (const wxRichTextFieldTypeStandard *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldTypeStandard); - // call constructor - wxRichTextFieldTypeStandard* returns = new wxRichTextFieldTypeStandard(*field); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeStandard); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeStandard); - - return 1; -} - -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor2[1] = {{ wxLua_wxRichTextFieldTypeStandard_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextFieldTypeStandard(); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor2(lua_State *L) -{ - // call constructor - wxRichTextFieldTypeStandard* returns = new wxRichTextFieldTypeStandard(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeStandard); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeStandard); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor1[] = { &wxluatype_TSTRING, &wxluatype_wxBitmap, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor1[1] = {{ wxLua_wxRichTextFieldTypeStandard_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor1 }}; -// wxRichTextFieldTypeStandard(const wxString& name, const wxBitmap& bitmap, int displayStyle = wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_NO_BORDER); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int displayStyle = wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_NO_BORDER - int displayStyle = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_NO_BORDER); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextFieldTypeStandard* returns = new wxRichTextFieldTypeStandard(name, *bitmap, displayStyle); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeStandard); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeStandard); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor[1] = {{ wxLua_wxRichTextFieldTypeStandard_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor }}; -// wxRichTextFieldTypeStandard(const wxString& name, const wxString& label, int displayStyle = wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_RECTANGLE); -static int LUACALL wxLua_wxRichTextFieldTypeStandard_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int displayStyle = wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_RECTANGLE - int displayStyle = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_RECTANGLE); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextFieldTypeStandard* returns = new wxRichTextFieldTypeStandard(name, label, displayStyle); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFieldTypeStandard); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeStandard); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor_overload[] = -{ - { wxLua_wxRichTextFieldTypeStandard_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor3 }, - { wxLua_wxRichTextFieldTypeStandard_constructor2, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFieldTypeStandard_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFieldTypeStandard_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFieldTypeStandard_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxRichTextFieldTypeStandard_delete_function(void** p) -{ - wxRichTextFieldTypeStandard* o = (wxRichTextFieldTypeStandard*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFieldTypeStandard_methods[] = { - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBorderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetBorderColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetDisplayStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetDisplayStyle, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetHorizontalMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetHorizontalMargin, 1, NULL }, - { "GetHorizontalPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetHorizontalPadding, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetLabel, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetSize, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetVerticalMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetVerticalMargin, 1, NULL }, - { "GetVerticalPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_GetVerticalPadding, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Init, 1, NULL }, - { "IsTopLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_IsTopLevel, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetBackgroundColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetBackgroundColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetBorderColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetBorderColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetDisplayStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetDisplayStyle, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetHorizontalMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetHorizontalMargin, 1, NULL }, - { "SetHorizontalPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetHorizontalPadding, 1, NULL }, - { "SetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetLabel, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetVerticalMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetVerticalMargin, 1, NULL }, - { "SetVerticalPadding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_SetVerticalPadding, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "wxRichTextFieldTypeStandard", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor_overload, s_wxluafunc_wxLua_wxRichTextFieldTypeStandard_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFieldTypeStandard_methodCount = sizeof(wxRichTextFieldTypeStandard_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxRichTextFieldTypeStandard_enums[] = { -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRICHTEXT_FIELD_STYLE_COMPOSITE", wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_COMPOSITE }, - { "wxRICHTEXT_FIELD_STYLE_END_TAG", wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_END_TAG }, - { "wxRICHTEXT_FIELD_STYLE_NO_BORDER", wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_NO_BORDER }, - { "wxRICHTEXT_FIELD_STYLE_RECTANGLE", wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_RECTANGLE }, - { "wxRICHTEXT_FIELD_STYLE_START_TAG", wxRichTextFieldTypeStandard::wxRICHTEXT_FIELD_STYLE_START_TAG }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - { NULL, 0, }, -}; -int wxRichTextFieldTypeStandard_enumCount = sizeof(wxRichTextFieldTypeStandard_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextLine -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextLine' -int wxluatype_wxRichTextLine = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_Clone[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_Clone[1] = {{ wxLua_wxRichTextLine_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_Clone }}; -// virtual wxRichTextLine* Clone() const; -static int LUACALL wxLua_wxRichTextLine_Clone(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call Clone - wxRichTextLine* returns = (wxRichTextLine*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_Copy[] = { &wxluatype_wxRichTextLine, &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_Copy[1] = {{ wxLua_wxRichTextLine_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_Copy }}; -// void Copy(const wxRichTextLine& obj); -static int LUACALL wxLua_wxRichTextLine_Copy(lua_State *L) -{ - // const wxRichTextLine obj - const wxRichTextLine * obj = (const wxRichTextLine *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextLine); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call Copy - self->Copy(*obj); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetAbsolutePosition[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetAbsolutePosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetAbsolutePosition[1] = {{ wxLua_wxRichTextLine_GetAbsolutePosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetAbsolutePosition }}; -// virtual wxPoint GetAbsolutePosition() const; -static int LUACALL wxLua_wxRichTextLine_GetAbsolutePosition(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetAbsolutePosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetAbsolutePosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetAbsoluteRange[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetAbsoluteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetAbsoluteRange[1] = {{ wxLua_wxRichTextLine_GetAbsoluteRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetAbsoluteRange }}; -// wxRichTextRange GetAbsoluteRange() const; -static int LUACALL wxLua_wxRichTextLine_GetAbsoluteRange(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetAbsoluteRange - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetAbsoluteRange()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetDescent[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetDescent[1] = {{ wxLua_wxRichTextLine_GetDescent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetDescent }}; -// int GetDescent() const; -static int LUACALL wxLua_wxRichTextLine_GetDescent(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetDescent - int returns = (self->GetDescent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetObjectSizes1[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetObjectSizes1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes1[1] = {{ wxLua_wxRichTextLine_GetObjectSizes1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetObjectSizes1 }}; -// const wxArrayInt& GetObjectSizes() const; -static int LUACALL wxLua_wxRichTextLine_GetObjectSizes1(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetObjectSizes - const wxArrayInt* returns = (const wxArrayInt*)&self->GetObjectSizes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetObjectSizes[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetObjectSizes(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes[1] = {{ wxLua_wxRichTextLine_GetObjectSizes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetObjectSizes }}; -// wxArrayInt& GetObjectSizes(); -static int LUACALL wxLua_wxRichTextLine_GetObjectSizes(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetObjectSizes - wxArrayInt* returns = (wxArrayInt*)&self->GetObjectSizes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetParent[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetParent[1] = {{ wxLua_wxRichTextLine_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetParent }}; -// wxRichTextParagraph* GetParent(); -static int LUACALL wxLua_wxRichTextLine_GetParent(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetParent - wxRichTextParagraph* returns = (wxRichTextParagraph*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetPosition[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetPosition[1] = {{ wxLua_wxRichTextLine_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetPosition }}; -// virtual wxPoint GetPosition() const; -static int LUACALL wxLua_wxRichTextLine_GetPosition(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPosition()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetRange1[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetRange1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetRange1[1] = {{ wxLua_wxRichTextLine_GetRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetRange1 }}; -// wxRichTextRange& GetRange(); -static int LUACALL wxLua_wxRichTextLine_GetRange1(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetRange - wxRichTextRange* returns = (wxRichTextRange*)&self->GetRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetRange[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetRange(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetRange[1] = {{ wxLua_wxRichTextLine_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetRange }}; -// const wxRichTextRange& GetRange() const; -static int LUACALL wxLua_wxRichTextLine_GetRange(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetRange - const wxRichTextRange* returns = (const wxRichTextRange*)&self->GetRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetRect[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetRect[1] = {{ wxLua_wxRichTextLine_GetRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetRect }}; -// virtual wxRect GetRect() const; -static int LUACALL wxLua_wxRichTextLine_GetRect(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetRect()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_GetSize[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_GetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetSize[1] = {{ wxLua_wxRichTextLine_GetSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetSize }}; -// virtual wxSize GetSize() const; -static int LUACALL wxLua_wxRichTextLine_GetSize(lua_State *L) -{ - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call GetSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_Init[] = { &wxluatype_wxRichTextLine, &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextLine_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_Init[1] = {{ wxLua_wxRichTextLine_Init, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_Init }}; -// void Init(wxRichTextParagraph* parent); -static int LUACALL wxLua_wxRichTextLine_Init(lua_State *L) -{ - // wxRichTextParagraph parent - wxRichTextParagraph * parent = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call Init - self->Init(parent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_SetDescent[] = { &wxluatype_wxRichTextLine, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextLine_SetDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_SetDescent[1] = {{ wxLua_wxRichTextLine_SetDescent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_SetDescent }}; -// void SetDescent(int descent); -static int LUACALL wxLua_wxRichTextLine_SetDescent(lua_State *L) -{ - // int descent - int descent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call SetDescent - self->SetDescent(descent); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_SetPosition[] = { &wxluatype_wxRichTextLine, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextLine_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_SetPosition[1] = {{ wxLua_wxRichTextLine_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_SetPosition }}; -// virtual void SetPosition(const wxPoint& pos); -static int LUACALL wxLua_wxRichTextLine_SetPosition(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call SetPosition - self->SetPosition(*pos); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_SetRange1[] = { &wxluatype_wxRichTextLine, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextLine_SetRange1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_SetRange1[1] = {{ wxLua_wxRichTextLine_SetRange1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextLine_SetRange1 }}; -// void SetRange(long from, long to); -static int LUACALL wxLua_wxRichTextLine_SetRange1(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call SetRange - self->SetRange(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_SetRange[] = { &wxluatype_wxRichTextLine, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextLine_SetRange(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_SetRange[1] = {{ wxLua_wxRichTextLine_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_SetRange }}; -// void SetRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextLine_SetRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call SetRange - self->SetRange(*range); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_SetSize[] = { &wxluatype_wxRichTextLine, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextLine_SetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_SetSize[1] = {{ wxLua_wxRichTextLine_SetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_SetSize }}; -// virtual void SetSize(const wxSize& sz); -static int LUACALL wxLua_wxRichTextLine_SetSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextLine * self = (wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call SetSize - self->SetSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_delete[] = { &wxluatype_wxRichTextLine, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_constructor1[] = { &wxluatype_wxRichTextLine, NULL }; -static int LUACALL wxLua_wxRichTextLine_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_constructor1[1] = {{ wxLua_wxRichTextLine_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_constructor1 }}; -// wxRichTextLine(const wxRichTextLine& obj); -static int LUACALL wxLua_wxRichTextLine_constructor1(lua_State *L) -{ - // const wxRichTextLine obj - const wxRichTextLine * obj = (const wxRichTextLine *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextLine); - // call constructor - wxRichTextLine* returns = new wxRichTextLine(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextLine); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextLine_constructor[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextLine_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_constructor[1] = {{ wxLua_wxRichTextLine_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_constructor }}; -// wxRichTextLine(wxRichTextParagraph* parent); -static int LUACALL wxLua_wxRichTextLine_constructor(lua_State *L) -{ - // wxRichTextParagraph parent - wxRichTextParagraph * parent = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call constructor - wxRichTextLine* returns = new wxRichTextLine(parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextLine); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxRichTextLine_GetObjectSizes1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetObjectSizes1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxRichTextLine_GetObjectSizes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetObjectSizes }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt) -}; -static int s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_GetRange_overload[] = -{ - { wxLua_wxRichTextLine_GetRange1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetRange1 }, - { wxLua_wxRichTextLine_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_GetRange }, -}; -static int s_wxluafunc_wxLua_wxRichTextLine_GetRange_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextLine_GetRange_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_SetRange_overload[] = -{ - { wxLua_wxRichTextLine_SetRange1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextLine_SetRange1 }, - { wxLua_wxRichTextLine_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextLine_SetRange }, -}; -static int s_wxluafunc_wxLua_wxRichTextLine_SetRange_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextLine_SetRange_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextLine_constructor_overload[] = -{ - { wxLua_wxRichTextLine_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_constructor1 }, - { wxLua_wxRichTextLine_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextLine_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextLine_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextLine_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextLine_delete_function(void** p) -{ - wxRichTextLine* o = (wxRichTextLine*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextLine_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_Copy, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetAbsolutePosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetAbsolutePosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetAbsoluteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetAbsoluteRange, 1, NULL }, - { "GetDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetDescent, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt)) - { "GetObjectSizes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes_overload, s_wxluafunc_wxLua_wxRichTextLine_GetObjectSizes_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING)) && (wxLUA_USE_wxArrayInt)) - - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetParent, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetRange_overload, s_wxluafunc_wxLua_wxRichTextLine_GetRange_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetRect, 1, NULL }, - { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_GetSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_Init, 1, NULL }, - { "SetDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_SetDescent, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_SetPosition, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_SetRange_overload, s_wxluafunc_wxLua_wxRichTextLine_SetRange_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextLine_SetSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextLine_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextLine", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextLine_constructor_overload, s_wxluafunc_wxLua_wxRichTextLine_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextLine_methodCount = sizeof(wxRichTextLine_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) -// --------------------------------------------------------------------------- -// Bind class wxRichTextLineList -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextLineList' -int wxluatype_wxRichTextLineList = WXLUA_TUNKNOWN; - - - -void wxLua_wxRichTextLineList_delete_function(void** p) -{ - wxRichTextLineList* o = (wxRichTextLineList*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextLineList_methods[] = { - { 0, 0, 0, 0 }, -}; - -int wxRichTextLineList_methodCount = sizeof(wxRichTextLineList_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextParagraph -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextParagraph' -int wxluatype_wxRichTextParagraph = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_AllocateLine[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_AllocateLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_AllocateLine[1] = {{ wxLua_wxRichTextParagraph_AllocateLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_AllocateLine }}; -// wxRichTextLine* AllocateLine(int pos); -static int LUACALL wxLua_wxRichTextParagraph_AllocateLine(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call AllocateLine - wxRichTextLine* returns = (wxRichTextLine*)self->AllocateLine(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_ApplyParagraphStyle[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextLine, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_ApplyParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_ApplyParagraphStyle[1] = {{ wxLua_wxRichTextParagraph_ApplyParagraphStyle, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextParagraph_ApplyParagraphStyle }}; -// virtual void ApplyParagraphStyle(wxRichTextLine* line, const wxRichTextAttr& attr, const wxRect& rect, wxDC& dc); -static int LUACALL wxLua_wxRichTextParagraph_ApplyParagraphStyle(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextLine line - wxRichTextLine * line = (wxRichTextLine *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextLine); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call ApplyParagraphStyle - self->ApplyParagraphStyle(line, *attr, *rect, *dc); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_CalculateRange[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_CalculateRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_CalculateRange[1] = {{ wxLua_wxRichTextParagraph_CalculateRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraph_CalculateRange }}; -// virtual void CalculateRange(long start, long& end); -static int LUACALL wxLua_wxRichTextParagraph_CalculateRange(lua_State *L) -{ - // long end - long * end = (long *)wxlua_touserdata(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call CalculateRange - self->CalculateRange(start, *end); - - return 0; -} - -static int LUACALL wxLua_wxRichTextParagraph_ClearDefaultTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_ClearDefaultTabs[1] = {{ wxLua_wxRichTextParagraph_ClearDefaultTabs, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void ClearDefaultTabs(); -static int LUACALL wxLua_wxRichTextParagraph_ClearDefaultTabs(lua_State *L) -{ - // call ClearDefaultTabs - wxRichTextParagraph::ClearDefaultTabs(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_ClearLines[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_ClearLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_ClearLines[1] = {{ wxLua_wxRichTextParagraph_ClearLines, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_ClearLines }}; -// void ClearLines(); -static int LUACALL wxLua_wxRichTextParagraph_ClearLines(lua_State *L) -{ - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call ClearLines - self->ClearLines(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_ClearUnusedLines[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_ClearUnusedLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_ClearUnusedLines[1] = {{ wxLua_wxRichTextParagraph_ClearUnusedLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_ClearUnusedLines }}; -// bool ClearUnusedLines(int lineCount); -static int LUACALL wxLua_wxRichTextParagraph_ClearUnusedLines(lua_State *L) -{ - // int lineCount - int lineCount = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call ClearUnusedLines - bool returns = (self->ClearUnusedLines(lineCount)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_Clone[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_Clone[1] = {{ wxLua_wxRichTextParagraph_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextParagraph_Clone(lua_State *L) -{ - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_Copy[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_Copy[1] = {{ wxLua_wxRichTextParagraph_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_Copy }}; -// void Copy(const wxRichTextParagraph& obj); -static int LUACALL wxLua_wxRichTextParagraph_Copy(lua_State *L) -{ - // const wxRichTextParagraph obj - const wxRichTextParagraph * obj = (const wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call Copy - self->Copy(*obj); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_Draw[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_Draw[1] = {{ wxLua_wxRichTextParagraph_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextParagraph_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextParagraph_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_FindObjectAtPosition[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_FindObjectAtPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_FindObjectAtPosition[1] = {{ wxLua_wxRichTextParagraph_FindObjectAtPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_FindObjectAtPosition }}; -// wxRichTextObject* FindObjectAtPosition(long position); -static int LUACALL wxLua_wxRichTextParagraph_FindObjectAtPosition(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call FindObjectAtPosition - wxRichTextObject* returns = (wxRichTextObject*)self->FindObjectAtPosition(position); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_FindPosition[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_FindPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_FindPosition[1] = {{ wxLua_wxRichTextParagraph_FindPosition, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextParagraph_FindPosition }}; -// virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart); -static int LUACALL wxLua_wxRichTextParagraph_FindPosition(lua_State *L) -{ - // bool forceLineStart - bool forceLineStart = wxlua_getbooleantype(L, 7); - // int height - int * height = (int *)wxlua_touserdata(L, 6); - // wxPoint pt - wxPoint * pt = (wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // long index - long index = (long)wxlua_getnumbertype(L, 4); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call FindPosition - bool returns = (self->FindPosition(*dc, *context, index, *pt, height, forceLineStart)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_FindWrapPosition[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextRange, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_FindWrapPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_FindWrapPosition[1] = {{ wxLua_wxRichTextParagraph_FindWrapPosition, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextParagraph_FindWrapPosition }}; -// bool FindWrapPosition(const wxRichTextRange& range, wxDC& dc, wxRichTextDrawingContext& context, int availableSpace, long& wrapPosition, wxArrayInt* partialExtents); -static int LUACALL wxLua_wxRichTextParagraph_FindWrapPosition(lua_State *L) -{ - // wxArrayInt partialExtents - wxArrayInt * partialExtents = (wxArrayInt *)wxluaT_getuserdatatype(L, 7, wxluatype_wxArrayInt); - // long wrapPosition - long * wrapPosition = (long *)wxlua_touserdata(L, 6); - // int availableSpace - int availableSpace = (int)wxlua_getnumbertype(L, 5); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call FindWrapPosition - bool returns = (self->FindWrapPosition(*range, *dc, *context, availableSpace, *wrapPosition, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetBulletText[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetBulletText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetBulletText[1] = {{ wxLua_wxRichTextParagraph_GetBulletText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetBulletText }}; -// wxString GetBulletText(); -static int LUACALL wxLua_wxRichTextParagraph_GetBulletText(lua_State *L) -{ - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetBulletText - wxString returns = (self->GetBulletText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetCombinedAttributes1[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetCombinedAttributes1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes1[1] = {{ wxLua_wxRichTextParagraph_GetCombinedAttributes1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetCombinedAttributes1 }}; -// wxRichTextAttr GetCombinedAttributes(bool includingBoxAttr = false) const; -static int LUACALL wxLua_wxRichTextParagraph_GetCombinedAttributes1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool includingBoxAttr = false - bool includingBoxAttr = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetCombinedAttributes - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetCombinedAttributes(includingBoxAttr)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetCombinedAttributes[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetCombinedAttributes(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes[1] = {{ wxLua_wxRichTextParagraph_GetCombinedAttributes, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetCombinedAttributes }}; -// wxRichTextAttr GetCombinedAttributes(const wxRichTextAttr& contentStyle, bool includingBoxAttr = false) const; -static int LUACALL wxLua_wxRichTextParagraph_GetCombinedAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool includingBoxAttr = false - bool includingBoxAttr = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // const wxRichTextAttr contentStyle - const wxRichTextAttr * contentStyle = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetCombinedAttributes - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetCombinedAttributes(*contentStyle, includingBoxAttr)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetContiguousPlainText[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TSTRING, &wxluatype_wxRichTextRange, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetContiguousPlainText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetContiguousPlainText[1] = {{ wxLua_wxRichTextParagraph_GetContiguousPlainText, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetContiguousPlainText }}; -// bool GetContiguousPlainText(wxString& text, const wxRichTextRange& range, bool fromStart = true); -static int LUACALL wxLua_wxRichTextParagraph_GetContiguousPlainText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool fromStart = true - bool fromStart = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // wxString text - wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetContiguousPlainText - bool returns = (self->GetContiguousPlainText(text, *range, fromStart)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static int LUACALL wxLua_wxRichTextParagraph_GetDefaultTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetDefaultTabs[1] = {{ wxLua_wxRichTextParagraph_GetDefaultTabs, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static const wxArrayInt& GetDefaultTabs(); -static int LUACALL wxLua_wxRichTextParagraph_GetDefaultTabs(lua_State *L) -{ - // call GetDefaultTabs - const wxArrayInt* returns = (const wxArrayInt*)&wxRichTextParagraph::GetDefaultTabs(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetFirstLineBreakPosition[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetFirstLineBreakPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetFirstLineBreakPosition[1] = {{ wxLua_wxRichTextParagraph_GetFirstLineBreakPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetFirstLineBreakPosition }}; -// long GetFirstLineBreakPosition(long pos); -static int LUACALL wxLua_wxRichTextParagraph_GetFirstLineBreakPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetFirstLineBreakPosition - long returns = (self->GetFirstLineBreakPosition(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetLines[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetLines[1] = {{ wxLua_wxRichTextParagraph_GetLines, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetLines }}; -// wxRichTextLineList& GetLines(); -static int LUACALL wxLua_wxRichTextParagraph_GetLines(lua_State *L) -{ - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetLines - wxRichTextLineList* returns = (wxRichTextLineList*)&self->GetLines(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLineList); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetRangeSize[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetRangeSize[1] = {{ wxLua_wxRichTextParagraph_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextParagraph_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_GetXMLNodeName[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetXMLNodeName[1] = {{ wxLua_wxRichTextParagraph_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextParagraph_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_HitTest[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_HitTest[1] = {{ wxLua_wxRichTextParagraph_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextParagraph_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextParagraph_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextParagraph_InitDefaultTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_InitDefaultTabs[1] = {{ wxLua_wxRichTextParagraph_InitDefaultTabs, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void InitDefaultTabs(); -static int LUACALL wxLua_wxRichTextParagraph_InitDefaultTabs(lua_State *L) -{ - // call InitDefaultTabs - wxRichTextParagraph::InitDefaultTabs(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_InsertText[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_InsertText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_InsertText[1] = {{ wxLua_wxRichTextParagraph_InsertText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraph_InsertText }}; -// virtual bool InsertText(long pos, const wxString& text); -static int LUACALL wxLua_wxRichTextParagraph_InsertText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call InsertText - bool returns = (self->InsertText(pos, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_Layout[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_Layout[1] = {{ wxLua_wxRichTextParagraph_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextParagraph_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextParagraph_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_MoveFromList[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_MoveFromList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_MoveFromList[1] = {{ wxLua_wxRichTextParagraph_MoveFromList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_MoveFromList }}; -// virtual void MoveFromList(wxList& list); -static int LUACALL wxLua_wxRichTextParagraph_MoveFromList(lua_State *L) -{ - // wxList list - wxList * list = (wxList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxList); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call MoveFromList - self->MoveFromList(*list); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_MoveToList[] = { &wxluatype_wxRichTextParagraph, &wxluatype_wxRichTextObject, &wxluatype_wxList, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_MoveToList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_MoveToList[1] = {{ wxLua_wxRichTextParagraph_MoveToList, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextParagraph_MoveToList }}; -// virtual void MoveToList(wxRichTextObject* obj, wxList& list); -static int LUACALL wxLua_wxRichTextParagraph_MoveToList(lua_State *L) -{ - // wxList list - wxList * list = (wxList *)wxluaT_getuserdatatype(L, 3, wxluatype_wxList); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call MoveToList - self->MoveToList(obj, *list); - - return 0; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_SplitAt[] = { &wxluatype_wxRichTextParagraph, &wxluatype_TNUMBER, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_SplitAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_SplitAt[1] = {{ wxLua_wxRichTextParagraph_SplitAt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraph_SplitAt }}; -// virtual wxRichTextObject* SplitAt(long pos, wxRichTextObject** previousObject = NULL); -static int LUACALL wxLua_wxRichTextParagraph_SplitAt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject previousObject = NULL - wxRichTextObject ** previousObject = (argCount >= 3 ? (wxRichTextObject **)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject) : NULL); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextParagraph * self = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call SplitAt - wxRichTextObject* returns = (wxRichTextObject*)self->SplitAt(pos, previousObject); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_delete[] = { &wxluatype_wxRichTextParagraph, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor2[] = { &wxluatype_wxRichTextParagraph, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_constructor2[1] = {{ wxLua_wxRichTextParagraph_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor2 }}; -// wxRichTextParagraph(const wxRichTextParagraph& obj); -static int LUACALL wxLua_wxRichTextParagraph_constructor2(lua_State *L) -{ - // const wxRichTextParagraph obj - const wxRichTextParagraph * obj = (const wxRichTextParagraph *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraph); - // call constructor - wxRichTextParagraph* returns = new wxRichTextParagraph(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraph); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor1[] = { &wxluatype_TSTRING, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_constructor1[1] = {{ wxLua_wxRichTextParagraph_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor1 }}; -// wxRichTextParagraph(const wxString& text, wxRichTextObject* parent = NULL, wxRichTextAttr* paraStyle = NULL, wxRichTextAttr* charStyle = NULL); -static int LUACALL wxLua_wxRichTextParagraph_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr charStyle = NULL - wxRichTextAttr * charStyle = (argCount >= 4 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : NULL); - // wxRichTextAttr paraStyle = NULL - wxRichTextAttr * paraStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 2 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject) : NULL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextParagraph* returns = new wxRichTextParagraph(text, parent, paraStyle, charStyle); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraph); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor[] = { &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextParagraph_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_constructor[1] = {{ wxLua_wxRichTextParagraph_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor }}; -// wxRichTextParagraph(wxRichTextObject* parent = NULL, wxRichTextAttr* style = NULL); -static int LUACALL wxLua_wxRichTextParagraph_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr style = NULL - wxRichTextAttr * style = (argCount >= 2 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr) : NULL); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 1 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject) : NULL); - // call constructor - wxRichTextParagraph* returns = new wxRichTextParagraph(parent, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraph); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraph); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes_overload[] = -{ - { wxLua_wxRichTextParagraph_GetCombinedAttributes1, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetCombinedAttributes1 }, - { wxLua_wxRichTextParagraph_GetCombinedAttributes, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextParagraph_GetCombinedAttributes }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraph_constructor_overload[] = -{ - { wxLua_wxRichTextParagraph_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor2 }, - { wxLua_wxRichTextParagraph_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 4, s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor1 }, - { wxLua_wxRichTextParagraph_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRichTextParagraph_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraph_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraph_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextParagraph_delete_function(void** p) -{ - wxRichTextParagraph* o = (wxRichTextParagraph*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextParagraph_methods[] = { - { "AllocateLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_AllocateLine, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "ApplyParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_ApplyParagraphStyle, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "CalculateRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_CalculateRange, 1, NULL }, - { "ClearDefaultTabs", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextParagraph_ClearDefaultTabs, 1, NULL }, - { "ClearLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_ClearLines, 1, NULL }, - { "ClearUnusedLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_ClearUnusedLines, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "FindObjectAtPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_FindObjectAtPosition, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_FindPosition, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindWrapPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_FindWrapPosition, 1, NULL }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetBulletText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetBulletText, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetCombinedAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes_overload, s_wxluafunc_wxLua_wxRichTextParagraph_GetCombinedAttributes_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetContiguousPlainText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetContiguousPlainText, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetDefaultTabs", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextParagraph_GetDefaultTabs, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFirstLineBreakPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetFirstLineBreakPosition, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - { "GetLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetLines, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_GetXMLNodeName, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "InitDefaultTabs", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextParagraph_InitDefaultTabs, 1, NULL }, - { "InsertText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_InsertText, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "MoveFromList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_MoveFromList, 1, NULL }, - { "MoveToList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_MoveToList, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SplitAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraph_SplitAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextParagraph_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextParagraph", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextParagraph_constructor_overload, s_wxluafunc_wxLua_wxRichTextParagraph_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextParagraph_methodCount = sizeof(wxRichTextParagraph_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextPlainText -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextPlainText' -int wxluatype_wxRichTextPlainText = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_AdjustAttributes[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_AdjustAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_AdjustAttributes[1] = {{ wxLua_wxRichTextPlainText_AdjustAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_AdjustAttributes }}; -// virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextPlainText_AdjustAttributes(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call AdjustAttributes - bool returns = (self->AdjustAttributes(*attr, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_CalculateRange[] = { &wxluatype_wxRichTextPlainText, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_CalculateRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_CalculateRange[1] = {{ wxLua_wxRichTextPlainText_CalculateRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_CalculateRange }}; -// virtual void CalculateRange(long start, long& end); -static int LUACALL wxLua_wxRichTextPlainText_CalculateRange(lua_State *L) -{ - // long end - long * end = (long *)wxlua_touserdata(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call CalculateRange - self->CalculateRange(start, *end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_CanMerge[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_CanMerge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_CanMerge[1] = {{ wxLua_wxRichTextPlainText_CanMerge, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_CanMerge }}; -// virtual bool CanMerge(wxRichTextObject* object, wxRichTextDrawingContext& context) const; -static int LUACALL wxLua_wxRichTextPlainText_CanMerge(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextObject object - wxRichTextObject * object = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call CanMerge - bool returns = (self->CanMerge(object, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_CanSplit[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_CanSplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_CanSplit[1] = {{ wxLua_wxRichTextPlainText_CanSplit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_CanSplit }}; -// virtual bool CanSplit(wxRichTextDrawingContext& context) const; -static int LUACALL wxLua_wxRichTextPlainText_CanSplit(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextDrawingContext); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call CanSplit - bool returns = (self->CanSplit(*context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Clone[] = { &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Clone[1] = {{ wxLua_wxRichTextPlainText_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextPlainText_Clone(lua_State *L) -{ - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Copy[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Copy[1] = {{ wxLua_wxRichTextPlainText_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_Copy }}; -// void Copy(const wxRichTextPlainText& obj); -static int LUACALL wxLua_wxRichTextPlainText_Copy(lua_State *L) -{ - // const wxRichTextPlainText obj - const wxRichTextPlainText * obj = (const wxRichTextPlainText *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextPlainText); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Copy - self->Copy(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_DeleteRange[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_DeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_DeleteRange[1] = {{ wxLua_wxRichTextPlainText_DeleteRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_DeleteRange }}; -// virtual bool DeleteRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextPlainText_DeleteRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call DeleteRange - bool returns = (self->DeleteRange(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_DoSplit[] = { &wxluatype_wxRichTextPlainText, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_DoSplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_DoSplit[1] = {{ wxLua_wxRichTextPlainText_DoSplit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_DoSplit }}; -// virtual wxRichTextObject* DoSplit(long pos); -static int LUACALL wxLua_wxRichTextPlainText_DoSplit(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call DoSplit - wxRichTextObject* returns = (wxRichTextObject*)self->DoSplit(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Draw[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Draw[1] = {{ wxLua_wxRichTextPlainText_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextPlainText_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextPlainText_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Dump[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Dump(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Dump[1] = {{ wxLua_wxRichTextPlainText_Dump, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_Dump }}; -// virtual void Dump(wxTextOutputStream& stream); -static int LUACALL wxLua_wxRichTextPlainText_Dump(lua_State *L) -{ - // wxTextOutputStream stream - wxTextOutputStream * stream = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextOutputStream); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Dump - self->Dump(*stream); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_ExportXML1[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_ExportXML1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML1[1] = {{ wxLua_wxRichTextPlainText_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_ExportXML1 }}; -// virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextPlainText_ExportXML1(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextXMLHandler); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call ExportXML - bool returns = (self->ExportXML(parent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_ExportXML[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxOutputStream, &wxluatype_TNUMBER, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_ExportXML(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML[1] = {{ wxLua_wxRichTextPlainText_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextPlainText_ExportXML }}; -// virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextPlainText_ExportXML(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // int indent - int indent = (int)wxlua_getnumbertype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call ExportXML - bool returns = (self->ExportXML(*stream, indent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_GetFirstLineBreakPosition[] = { &wxluatype_wxRichTextPlainText, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_GetFirstLineBreakPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_GetFirstLineBreakPosition[1] = {{ wxLua_wxRichTextPlainText_GetFirstLineBreakPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_GetFirstLineBreakPosition }}; -// long GetFirstLineBreakPosition(long pos); -static int LUACALL wxLua_wxRichTextPlainText_GetFirstLineBreakPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call GetFirstLineBreakPosition - long returns = (self->GetFirstLineBreakPosition(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_GetRangeSize[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_GetRangeSize[1] = {{ wxLua_wxRichTextPlainText_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextPlainText_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextPlainText_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_GetText[] = { &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_GetText[1] = {{ wxLua_wxRichTextPlainText_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_GetText }}; -// const wxString& GetText() const; -static int LUACALL wxLua_wxRichTextPlainText_GetText(lua_State *L) -{ - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_GetTextForRange[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_GetTextForRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_GetTextForRange[1] = {{ wxLua_wxRichTextPlainText_GetTextForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_GetTextForRange }}; -// virtual wxString GetTextForRange(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextPlainText_GetTextForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call GetTextForRange - wxString returns = (self->GetTextForRange(*range)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_GetXMLNodeName[] = { &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_GetXMLNodeName[1] = {{ wxLua_wxRichTextPlainText_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextPlainText_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_ImportFromXML[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextBuffer, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_ImportFromXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_ImportFromXML[1] = {{ wxLua_wxRichTextPlainText_ImportFromXML, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextPlainText_ImportFromXML }}; -// virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse); -static int LUACALL wxLua_wxRichTextPlainText_ImportFromXML(lua_State *L) -{ - // bool recurse - bool * recurse = (bool *)wxlua_touserdata(L, 5); - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call ImportFromXML - bool returns = (self->ImportFromXML(buffer, node, handler, recurse)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_IsEmpty[] = { &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_IsEmpty[1] = {{ wxLua_wxRichTextPlainText_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_IsEmpty }}; -// virtual bool IsEmpty() const; -static int LUACALL wxLua_wxRichTextPlainText_IsEmpty(lua_State *L) -{ - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Layout[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Layout[1] = {{ wxLua_wxRichTextPlainText_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextPlainText_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextPlainText_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Merge[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Merge(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Merge[1] = {{ wxLua_wxRichTextPlainText_Merge, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_Merge }}; -// virtual bool Merge(wxRichTextObject* object, wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextPlainText_Merge(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextObject object - wxRichTextObject * object = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Merge - bool returns = (self->Merge(object, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_SetText[] = { &wxluatype_wxRichTextPlainText, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_SetText[1] = {{ wxLua_wxRichTextPlainText_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_SetText }}; -// void SetText(const wxString& text); -static int LUACALL wxLua_wxRichTextPlainText_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call SetText - self->SetText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_Split[] = { &wxluatype_wxRichTextPlainText, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_Split(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_Split[1] = {{ wxLua_wxRichTextPlainText_Split, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPlainText_Split }}; -// virtual wxRichTextObject* Split(wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextPlainText_Split(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextDrawingContext); - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call Split - wxRichTextObject* returns = (wxRichTextObject*)self->Split(*context); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_UsesParagraphAttributes[] = { &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_UsesParagraphAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_UsesParagraphAttributes[1] = {{ wxLua_wxRichTextPlainText_UsesParagraphAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_UsesParagraphAttributes }}; -// virtual bool UsesParagraphAttributes() const; -static int LUACALL wxLua_wxRichTextPlainText_UsesParagraphAttributes(lua_State *L) -{ - // get this - wxRichTextPlainText * self = (wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call UsesParagraphAttributes - bool returns = (self->UsesParagraphAttributes()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_delete[] = { &wxluatype_wxRichTextPlainText, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_constructor1[] = { &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_constructor1[1] = {{ wxLua_wxRichTextPlainText_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_constructor1 }}; -// wxRichTextPlainText(const wxRichTextPlainText& obj); -static int LUACALL wxLua_wxRichTextPlainText_constructor1(lua_State *L) -{ - // const wxRichTextPlainText obj - const wxRichTextPlainText * obj = (const wxRichTextPlainText *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainText); - // call constructor - wxRichTextPlainText* returns = new wxRichTextPlainText(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextPlainText); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextPlainText); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainText_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextPlainText_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_constructor[1] = {{ wxLua_wxRichTextPlainText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_constructor }}; -// wxRichTextPlainText(const wxString& text = wxEmptyString, wxRichTextObject* parent = NULL, wxRichTextAttr* style = NULL); -static int LUACALL wxLua_wxRichTextPlainText_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr style = NULL - wxRichTextAttr * style = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 2 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject) : NULL); - // const wxString text = wxEmptyString - const wxString text = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxRichTextPlainText* returns = new wxRichTextPlainText(text, parent, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextPlainText); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextPlainText); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextPlainText_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_ExportXML1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - { wxLua_wxRichTextPlainText_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextPlainText_ExportXML }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainText_constructor_overload[] = -{ - { wxLua_wxRichTextPlainText_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainText_constructor1 }, - { wxLua_wxRichTextPlainText_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxRichTextPlainText_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextPlainText_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextPlainText_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextPlainText_delete_function(void** p) -{ - wxRichTextPlainText* o = (wxRichTextPlainText*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextPlainText_methods[] = { - { "AdjustAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_AdjustAttributes, 1, NULL }, - { "CalculateRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_CalculateRange, 1, NULL }, - { "CanMerge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_CanMerge, 1, NULL }, - { "CanSplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_CanSplit, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Copy, 1, NULL }, - { "DeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_DeleteRange, 1, NULL }, - { "DoSplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_DoSplit, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { "Dump", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Dump, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - { "ExportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML_overload, s_wxluafunc_wxLua_wxRichTextPlainText_ExportXML_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - - { "GetFirstLineBreakPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_GetFirstLineBreakPosition, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_GetText, 1, NULL }, - { "GetTextForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_GetTextForRange, 1, NULL }, - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_GetXMLNodeName, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportFromXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_ImportFromXML, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_IsEmpty, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Merge", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Merge, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_SetText, 1, NULL }, - { "Split", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_Split, 1, NULL }, - { "UsesParagraphAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainText_UsesParagraphAttributes, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextPlainText_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextPlainText", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextPlainText_constructor_overload, s_wxluafunc_wxLua_wxRichTextPlainText_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextPlainText_methodCount = sizeof(wxRichTextPlainText_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextImageBlock -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextImageBlock' -int wxluatype_wxRichTextImageBlock = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_Clear[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_Clear[1] = {{ wxLua_wxRichTextImageBlock_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextImageBlock_Clear(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_Copy[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_Copy[1] = {{ wxLua_wxRichTextImageBlock_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_Copy }}; -// void Copy(const wxRichTextImageBlock& block); -static int LUACALL wxLua_wxRichTextImageBlock_Copy(lua_State *L) -{ - // const wxRichTextImageBlock block - const wxRichTextImageBlock * block = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextImageBlock); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call Copy - self->Copy(*block); - - return 0; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_DoMakeImageBlock[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_DoMakeImageBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_DoMakeImageBlock[1] = {{ wxLua_wxRichTextImageBlock_DoMakeImageBlock, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImageBlock_DoMakeImageBlock }}; -// virtual bool DoMakeImageBlock(const wxImage& image, wxBitmapType imageType); -static int LUACALL wxLua_wxRichTextImageBlock_DoMakeImageBlock(lua_State *L) -{ - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call DoMakeImageBlock - bool returns = (self->DoMakeImageBlock(*image, imageType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetData[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_GetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_GetData[1] = {{ wxLua_wxRichTextImageBlock_GetData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetData }}; -// unsigned char* GetData() const; -static int LUACALL wxLua_wxRichTextImageBlock_GetData(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call GetData - unsigned char* returns = (unsigned char*)self->GetData(); - // push the result string - lua_pushstring(L, (const char *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetDataSize[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_GetDataSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_GetDataSize[1] = {{ wxLua_wxRichTextImageBlock_GetDataSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetDataSize }}; -// size_t GetDataSize() const; -static int LUACALL wxLua_wxRichTextImageBlock_GetDataSize(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call GetDataSize - size_t returns = (self->GetDataSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetExtension[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_GetExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_GetExtension[1] = {{ wxLua_wxRichTextImageBlock_GetExtension, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetExtension }}; -// wxString GetExtension() const; -static int LUACALL wxLua_wxRichTextImageBlock_GetExtension(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call GetExtension - wxString returns = (self->GetExtension()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetImageType[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_GetImageType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_GetImageType[1] = {{ wxLua_wxRichTextImageBlock_GetImageType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_GetImageType }}; -// wxBitmapType GetImageType() const; -static int LUACALL wxLua_wxRichTextImageBlock_GetImageType(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call GetImageType - wxBitmapType returns = (self->GetImageType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_Init[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_Init[1] = {{ wxLua_wxRichTextImageBlock_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextImageBlock_Init(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_IsOk[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_IsOk[1] = {{ wxLua_wxRichTextImageBlock_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxRichTextImageBlock_IsOk(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_Load[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_Load(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_Load[1] = {{ wxLua_wxRichTextImageBlock_Load, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_Load }}; -// bool Load(wxImage& image); -static int LUACALL wxLua_wxRichTextImageBlock_Load(lua_State *L) -{ - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call Load - bool returns = (self->Load(*image)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlock1[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_MakeImageBlock1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock1[1] = {{ wxLua_wxRichTextImageBlock_MakeImageBlock1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlock1 }}; -// virtual bool MakeImageBlock(wxImage& image, wxBitmapType imageType, int quality = 80); -static int LUACALL wxLua_wxRichTextImageBlock_MakeImageBlock1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int quality = 80 - int quality = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 80); - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 3); - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call MakeImageBlock - bool returns = (self->MakeImageBlock(*image, imageType, quality)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlock[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxImage, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_MakeImageBlock(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock[1] = {{ wxLua_wxRichTextImageBlock_MakeImageBlock, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlock }}; -// wxImage& image, bool convertToJPEG = true); -static int LUACALL wxLua_wxRichTextImageBlock_MakeImageBlock(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool convertToJPEG = true - bool convertToJPEG = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : true); - // wxImage image - wxImage * image = (wxImage *)wxluaT_getuserdatatype(L, 4, wxluatype_wxImage); - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call MakeImageBlock - bool returns = (self->MakeImageBlock(filename, imageType, *image, convertToJPEG)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxImage, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality[1] = {{ wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality }}; -// virtual bool MakeImageBlockDefaultQuality(const wxImage& image, wxBitmapType imageType); -static int LUACALL wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality(lua_State *L) -{ - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 3); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call MakeImageBlockDefaultQuality - bool returns = (self->MakeImageBlockDefaultQuality(*image, imageType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_Ok[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_Ok(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_Ok[1] = {{ wxLua_wxRichTextImageBlock_Ok, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_Ok }}; -// bool Ok() const; -static int LUACALL wxLua_wxRichTextImageBlock_Ok(lua_State *L) -{ - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call Ok - bool returns = (self->Ok()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadBlock1[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_ReadBlock1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock1[1] = {{ wxLua_wxRichTextImageBlock_ReadBlock1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadBlock1 }}; -// static unsigned char* ReadBlock(const wxString& filename, size_t size); -static int LUACALL wxLua_wxRichTextImageBlock_ReadBlock1(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 2); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call ReadBlock - unsigned char* returns = (unsigned char*)wxRichTextImageBlock::ReadBlock(filename, size); - // push the result string - lua_pushstring(L, (const char *)returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadBlock[] = { &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_ReadBlock(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock[1] = {{ wxLua_wxRichTextImageBlock_ReadBlock, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadBlock }}; -// static unsigned char* ReadBlock(wxInputStream& stream, size_t size); -static int LUACALL wxLua_wxRichTextImageBlock_ReadBlock(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 2); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxInputStream); - // call ReadBlock - unsigned char* returns = (unsigned char*)wxRichTextImageBlock::ReadBlock(*stream, size); - // push the result string - lua_pushstring(L, (const char *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadHex[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxInputStream, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_ReadHex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_ReadHex[1] = {{ wxLua_wxRichTextImageBlock_ReadHex, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadHex }}; -// bool ReadHex(wxInputStream& stream, int length, wxBitmapType imageType); -static int LUACALL wxLua_wxRichTextImageBlock_ReadHex(lua_State *L) -{ - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 4); - // int length - int length = (int)wxlua_getnumbertype(L, 3); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call ReadHex - bool returns = (self->ReadHex(*stream, length, imageType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_SetData[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_SetData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_SetData[1] = {{ wxLua_wxRichTextImageBlock_SetData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_SetData }}; -// void SetData(unsigned char* image); -static int LUACALL wxLua_wxRichTextImageBlock_SetData(lua_State *L) -{ - // unsigned char image - unsigned char * image = (unsigned char *)wxlua_getstringtype(L, 2); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call SetData - self->SetData(image); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_SetDataSize[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_SetDataSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_SetDataSize[1] = {{ wxLua_wxRichTextImageBlock_SetDataSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_SetDataSize }}; -// void SetDataSize(size_t size); -static int LUACALL wxLua_wxRichTextImageBlock_SetDataSize(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call SetDataSize - self->SetDataSize(size); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_SetImageType[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_SetImageType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_SetImageType[1] = {{ wxLua_wxRichTextImageBlock_SetImageType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_SetImageType }}; -// void SetImageType(wxBitmapType imageType); -static int LUACALL wxLua_wxRichTextImageBlock_SetImageType(lua_State *L) -{ - // wxBitmapType imageType - wxBitmapType imageType = (wxBitmapType)wxlua_getenumtype(L, 2); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call SetImageType - self->SetImageType(imageType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_Write[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_Write(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_Write[1] = {{ wxLua_wxRichTextImageBlock_Write, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_Write }}; -// bool Write(const wxString& filename); -static int LUACALL wxLua_wxRichTextImageBlock_Write(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call Write - bool returns = (self->Write(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteBlock1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_WriteBlock1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock1[1] = {{ wxLua_wxRichTextImageBlock_WriteBlock1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteBlock1 }}; -// static bool WriteBlock(const wxString& filename, unsigned char* block, size_t size); -static int LUACALL wxLua_wxRichTextImageBlock_WriteBlock1(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 3); - // unsigned char block - unsigned char * block = (unsigned char *)wxlua_getstringtype(L, 2); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call WriteBlock - bool returns = (wxRichTextImageBlock::WriteBlock(filename, block, size)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteBlock[] = { &wxluatype_wxOutputStream, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_WriteBlock(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock[1] = {{ wxLua_wxRichTextImageBlock_WriteBlock, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteBlock }}; -// static bool WriteBlock(wxOutputStream& stream, unsigned char* block, size_t size); -static int LUACALL wxLua_wxRichTextImageBlock_WriteBlock(lua_State *L) -{ - // size_t size - size_t size = (size_t)wxlua_getuintegertype(L, 3); - // unsigned char block - unsigned char * block = (unsigned char *)wxlua_getstringtype(L, 2); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call WriteBlock - bool returns = (wxRichTextImageBlock::WriteBlock(*stream, block, size)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteHex[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_WriteHex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_WriteHex[1] = {{ wxLua_wxRichTextImageBlock_WriteHex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteHex }}; -// bool WriteHex(wxOutputStream& stream); -static int LUACALL wxLua_wxRichTextImageBlock_WriteHex(lua_State *L) -{ - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call WriteHex - bool returns = (self->WriteHex(*stream)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_delete[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_op_set[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_op_set[1] = {{ wxLua_wxRichTextImageBlock_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_op_set }}; -// void operator=(const wxRichTextImageBlock& block); -static int LUACALL wxLua_wxRichTextImageBlock_op_set(lua_State *L) -{ - // const wxRichTextImageBlock block - const wxRichTextImageBlock * block = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextImageBlock); - // get this - wxRichTextImageBlock * self = (wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call op_set - (*self)=(*block); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImageBlock_constructor1[] = { &wxluatype_wxRichTextImageBlock, NULL }; -static int LUACALL wxLua_wxRichTextImageBlock_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_constructor1[1] = {{ wxLua_wxRichTextImageBlock_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_constructor1 }}; -// wxRichTextImageBlock(const wxRichTextImageBlock& block); -static int LUACALL wxLua_wxRichTextImageBlock_constructor1(lua_State *L) -{ - // const wxRichTextImageBlock block - const wxRichTextImageBlock * block = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call constructor - wxRichTextImageBlock* returns = new wxRichTextImageBlock(*block); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextImageBlock); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImageBlock); - - return 1; -} - -static int LUACALL wxLua_wxRichTextImageBlock_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_constructor[1] = {{ wxLua_wxRichTextImageBlock_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextImageBlock(); -static int LUACALL wxLua_wxRichTextImageBlock_constructor(lua_State *L) -{ - // call constructor - wxRichTextImageBlock* returns = new wxRichTextImageBlock(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextImageBlock); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImageBlock); - - return 1; -} - - - - -#if ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock_overload[] = -{ - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextImageBlock_MakeImageBlock1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlock1 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextImageBlock_MakeImageBlock, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextImageBlock_MakeImageBlock }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock_overload[] = -{ - { wxLua_wxRichTextImageBlock_ReadBlock1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadBlock1 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { wxLua_wxRichTextImageBlock_ReadBlock, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImageBlock_ReadBlock }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock_overload[] = -{ - { wxLua_wxRichTextImageBlock_WriteBlock1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteBlock1 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { wxLua_wxRichTextImageBlock_WriteBlock, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImageBlock_WriteBlock }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImageBlock_constructor_overload[] = -{ - { wxLua_wxRichTextImageBlock_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImageBlock_constructor1 }, - { wxLua_wxRichTextImageBlock_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextImageBlock_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImageBlock_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextImageBlock_delete_function(void** p) -{ - wxRichTextImageBlock* o = (wxRichTextImageBlock*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextImageBlock_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_Clear, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_Copy, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "DoMakeImageBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_DoMakeImageBlock, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_GetData, 1, NULL }, - { "GetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_GetDataSize, 1, NULL }, - { "GetExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_GetExtension, 1, NULL }, - { "GetImageType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_GetImageType, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_Init, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_IsOk, 1, NULL }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_Load, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "MakeImageBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock_overload, s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlock_overload_count, 0 }, -#endif // ((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "MakeImageBlockDefaultQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_MakeImageBlockDefaultQuality, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Ok", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_Ok, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) - { "ReadBlock", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock_overload, s_wxluafunc_wxLua_wxRichTextImageBlock_ReadBlock_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { "ReadHex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_ReadHex, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_SetData, 1, NULL }, - { "SetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_SetDataSize, 1, NULL }, - { "SetImageType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_SetImageType, 1, NULL }, - { "Write", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_Write, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) - { "WriteBlock", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock_overload, s_wxluafunc_wxLua_wxRichTextImageBlock_WriteBlock_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { "WriteHex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_WriteHex, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextImageBlock_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImageBlock_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextImageBlock", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextImageBlock_constructor_overload, s_wxluafunc_wxLua_wxRichTextImageBlock_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextImageBlock_methodCount = sizeof(wxRichTextImageBlock_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextImage -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextImage' -int wxluatype_wxRichTextImage = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_CanEditProperties[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_CanEditProperties[1] = {{ wxLua_wxRichTextImage_CanEditProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_CanEditProperties }}; -// virtual bool CanEditProperties() const; -static int LUACALL wxLua_wxRichTextImage_CanEditProperties(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call CanEditProperties - bool returns = (self->CanEditProperties()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_Clone[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_Clone[1] = {{ wxLua_wxRichTextImage_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextImage_Clone(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_Copy[] = { &wxluatype_wxRichTextImage, &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_Copy[1] = {{ wxLua_wxRichTextImage_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImage_Copy }}; -// void Copy(const wxRichTextImage& obj); -static int LUACALL wxLua_wxRichTextImage_Copy(lua_State *L) -{ - // const wxRichTextImage obj - const wxRichTextImage * obj = (const wxRichTextImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextImage); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call Copy - self->Copy(*obj); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_Draw[] = { &wxluatype_wxRichTextImage, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextImage_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_Draw[1] = {{ wxLua_wxRichTextImage_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextImage_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextImage_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_EditProperties[] = { &wxluatype_wxRichTextImage, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextImage_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_EditProperties[1] = {{ wxLua_wxRichTextImage_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImage_EditProperties }}; -// virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextImage_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call EditProperties - bool returns = (self->EditProperties(parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_ExportXML1[] = { &wxluatype_wxRichTextImage, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextImage_ExportXML1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_ExportXML1[1] = {{ wxLua_wxRichTextImage_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImage_ExportXML1 }}; -// virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextImage_ExportXML1(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextXMLHandler); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call ExportXML - bool returns = (self->ExportXML(parent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_ExportXML[] = { &wxluatype_wxRichTextImage, &wxluatype_wxOutputStream, &wxluatype_TNUMBER, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextImage_ExportXML(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_ExportXML[1] = {{ wxLua_wxRichTextImage_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextImage_ExportXML }}; -// virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextImage_ExportXML(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // int indent - int indent = (int)wxlua_getnumbertype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call ExportXML - bool returns = (self->ExportXML(*stream, indent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetImageBlock[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetImageBlock(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetImageBlock[1] = {{ wxLua_wxRichTextImage_GetImageBlock, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_GetImageBlock }}; -// wxRichTextImageBlock& GetImageBlock(); -static int LUACALL wxLua_wxRichTextImage_GetImageBlock(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetImageBlock - wxRichTextImageBlock* returns = (wxRichTextImageBlock*)&self->GetImageBlock(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImageBlock); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetImageCache[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetImageCache(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetImageCache[1] = {{ wxLua_wxRichTextImage_GetImageCache, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_GetImageCache }}; -// const wxBitmap& GetImageCache() const; -static int LUACALL wxLua_wxRichTextImage_GetImageCache(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetImageCache - const wxBitmap* returns = (const wxBitmap*)&self->GetImageCache(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetNaturalSize[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetNaturalSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetNaturalSize[1] = {{ wxLua_wxRichTextImage_GetNaturalSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_GetNaturalSize }}; -// virtual wxTextAttrSize GetNaturalSize() const; -static int LUACALL wxLua_wxRichTextImage_GetNaturalSize(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetNaturalSize - // allocate a new object using the copy constructor - wxTextAttrSize* returns = new wxTextAttrSize(self->GetNaturalSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrSize); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetOriginalImageSize[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetOriginalImageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetOriginalImageSize[1] = {{ wxLua_wxRichTextImage_GetOriginalImageSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_GetOriginalImageSize }}; -// wxSize GetOriginalImageSize() const; -static int LUACALL wxLua_wxRichTextImage_GetOriginalImageSize(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetOriginalImageSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetOriginalImageSize()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextImage_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel() const; -static int LUACALL wxLua_wxRichTextImage_GetPropertiesMenuLabel(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetRangeSize[] = { &wxluatype_wxRichTextImage, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetRangeSize[1] = {{ wxLua_wxRichTextImage_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextImage_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextImage_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_GetXMLNodeName[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_GetXMLNodeName[1] = {{ wxLua_wxRichTextImage_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextImage_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_ImportFromXML[] = { &wxluatype_wxRichTextImage, &wxluatype_wxRichTextBuffer, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextImage_ImportFromXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_ImportFromXML[1] = {{ wxLua_wxRichTextImage_ImportFromXML, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextImage_ImportFromXML }}; -// virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse); -static int LUACALL wxLua_wxRichTextImage_ImportFromXML(lua_State *L) -{ - // bool recurse - bool * recurse = (bool *)wxlua_touserdata(L, 5); - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call ImportFromXML - bool returns = (self->ImportFromXML(buffer, node, handler, recurse)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_Init[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_Init[1] = {{ wxLua_wxRichTextImage_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextImage_Init(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_IsEmpty[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_IsEmpty[1] = {{ wxLua_wxRichTextImage_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_IsEmpty }}; -// virtual bool IsEmpty() const; -static int LUACALL wxLua_wxRichTextImage_IsEmpty(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_IsFloatable[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_IsFloatable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_IsFloatable[1] = {{ wxLua_wxRichTextImage_IsFloatable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_IsFloatable }}; -// virtual bool IsFloatable() const; -static int LUACALL wxLua_wxRichTextImage_IsFloatable(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call IsFloatable - bool returns = (self->IsFloatable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_Layout[] = { &wxluatype_wxRichTextImage, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextImage_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_Layout[1] = {{ wxLua_wxRichTextImage_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextImage_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextImage_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_LoadImageCache1[] = { &wxluatype_wxRichTextImage, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxSize, &wxluatype_TBOOLEAN, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextImage_LoadImageCache1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache1[1] = {{ wxLua_wxRichTextImage_LoadImageCache1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxRichTextImage_LoadImageCache1 }}; -// %wxchkver_3_1_0 virtual bool LoadImageCache(wxDC& dc, wxRichTextDrawingContext& context, wxSize& retImageSize, bool resetCache = false, const wxSize& parentSize = wxDefaultSize); -static int LUACALL wxLua_wxRichTextImage_LoadImageCache1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // bool resetCache = false - bool resetCache = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // wxSize retImageSize - wxSize * retImageSize = (wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call LoadImageCache - bool returns = (self->LoadImageCache(*dc, *context, *retImageSize, resetCache, *parentSize)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_LoadImageCache[] = { &wxluatype_wxRichTextImage, &wxluatype_wxDC, &wxluatype_TBOOLEAN, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextImage_LoadImageCache(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache[1] = {{ wxLua_wxRichTextImage_LoadImageCache, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextImage_LoadImageCache }}; -// !%wxchkver_3_1_0 virtual bool LoadImageCache(wxDC& dc, bool resetCache = false, const wxSize& parentSize = wxDefaultSize); -static int LUACALL wxLua_wxRichTextImage_LoadImageCache(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // bool resetCache = false - bool resetCache = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call LoadImageCache - bool returns = (self->LoadImageCache(*dc, resetCache, *parentSize)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_ResetImageCache[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_ResetImageCache(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_ResetImageCache[1] = {{ wxLua_wxRichTextImage_ResetImageCache, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_ResetImageCache }}; -// void ResetImageCache(); -static int LUACALL wxLua_wxRichTextImage_ResetImageCache(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call ResetImageCache - self->ResetImageCache(); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_SetImageCache[] = { &wxluatype_wxRichTextImage, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxRichTextImage_SetImageCache(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_SetImageCache[1] = {{ wxLua_wxRichTextImage_SetImageCache, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImage_SetImageCache }}; -// void SetImageCache(const wxBitmap& bitmap); -static int LUACALL wxLua_wxRichTextImage_SetImageCache(lua_State *L) -{ - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call SetImageCache - self->SetImageCache(*bitmap); - - return 0; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_SetOriginalImageSize[] = { &wxluatype_wxRichTextImage, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextImage_SetOriginalImageSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_SetOriginalImageSize[1] = {{ wxLua_wxRichTextImage_SetOriginalImageSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextImage_SetOriginalImageSize }}; -// void SetOriginalImageSize(const wxSize& sz); -static int LUACALL wxLua_wxRichTextImage_SetOriginalImageSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call SetOriginalImageSize - self->SetOriginalImageSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_UsesParagraphAttributes[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_UsesParagraphAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_UsesParagraphAttributes[1] = {{ wxLua_wxRichTextImage_UsesParagraphAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_UsesParagraphAttributes }}; -// virtual bool UsesParagraphAttributes() const; -static int LUACALL wxLua_wxRichTextImage_UsesParagraphAttributes(lua_State *L) -{ - // get this - wxRichTextImage * self = (wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call UsesParagraphAttributes - bool returns = (self->UsesParagraphAttributes()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_delete[] = { &wxluatype_wxRichTextImage, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_constructor3[] = { &wxluatype_wxRichTextImage, NULL }; -static int LUACALL wxLua_wxRichTextImage_constructor3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_constructor3[1] = {{ wxLua_wxRichTextImage_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_constructor3 }}; -// wxRichTextImage(const wxRichTextImage& obj); -static int LUACALL wxLua_wxRichTextImage_constructor3(lua_State *L) -{ - // const wxRichTextImage obj - const wxRichTextImage * obj = (const wxRichTextImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImage); - // call constructor - wxRichTextImage* returns = new wxRichTextImage(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImage); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_constructor2[] = { &wxluatype_wxRichTextImageBlock, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextImage_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_constructor2[1] = {{ wxLua_wxRichTextImage_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxRichTextImage_constructor2 }}; -// wxRichTextImage(const wxRichTextImageBlock& imageBlock, wxRichTextObject* parent = NULL, wxRichTextAttr* charStyle = NULL); -static int LUACALL wxLua_wxRichTextImage_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr charStyle = NULL - wxRichTextAttr * charStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 2 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject) : NULL); - // const wxRichTextImageBlock imageBlock - const wxRichTextImageBlock * imageBlock = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextImageBlock); - // call constructor - wxRichTextImage* returns = new wxRichTextImage(*imageBlock, parent, charStyle); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImage); - - return 1; -} - - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_constructor1[] = { &wxluatype_wxImage, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextImage_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_constructor1[1] = {{ wxLua_wxRichTextImage_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxRichTextImage_constructor1 }}; -// wxRichTextImage(const wxImage& image, wxRichTextObject* parent = NULL, wxRichTextAttr* charStyle = NULL); -static int LUACALL wxLua_wxRichTextImage_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr charStyle = NULL - wxRichTextAttr * charStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 2 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject) : NULL); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 1, wxluatype_wxImage); - // call constructor - wxRichTextImage* returns = new wxRichTextImage(*image, parent, charStyle); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImage); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextImage_constructor[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextImage_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_constructor[1] = {{ wxLua_wxRichTextImage_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextImage_constructor }}; -// wxRichTextImage(wxRichTextObject* parent = NULL); -static int LUACALL wxLua_wxRichTextImage_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 1 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject) : NULL); - // call constructor - wxRichTextImage* returns = new wxRichTextImage(parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextImage); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextImage); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_ExportXML_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextImage_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextImage_ExportXML1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - { wxLua_wxRichTextImage_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextImage_ExportXML }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextImage_ExportXML_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImage_ExportXML_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache_overload[] = -{ - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextImage_LoadImageCache1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxRichTextImage_LoadImageCache1 }, -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextImage_LoadImageCache, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextImage_LoadImageCache }, -#endif // (((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextImage_constructor_overload[] = -{ - { wxLua_wxRichTextImage_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextImage_constructor3 }, - { wxLua_wxRichTextImage_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxRichTextImage_constructor2 }, - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextImage_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxRichTextImage_constructor1 }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextImage_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextImage_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextImage_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextImage_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxRichTextImage_delete_function(void** p) -{ - wxRichTextImage* o = (wxRichTextImage*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextImage_methods[] = { - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_CanEditProperties, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_EditProperties, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - { "ExportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_ExportXML_overload, s_wxluafunc_wxLua_wxRichTextImage_ExportXML_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - - { "GetImageBlock", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetImageBlock, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetImageCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetImageCache, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetNaturalSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetNaturalSize, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetOriginalImageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetOriginalImageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetPropertiesMenuLabel, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_GetXMLNodeName, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportFromXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_ImportFromXML, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_Init, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_IsEmpty, 1, NULL }, - { "IsFloatable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_IsFloatable, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) - { "LoadImageCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache_overload, s_wxluafunc_wxLua_wxRichTextImage_LoadImageCache_overload_count, 0 }, -#endif // (((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) - - { "ResetImageCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_ResetImageCache, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetImageCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_SetImageCache, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetOriginalImageSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_SetOriginalImageSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "UsesParagraphAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextImage_UsesParagraphAttributes, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextImage_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "wxRichTextImage", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextImage_constructor_overload, s_wxluafunc_wxLua_wxRichTextImage_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextImage_methodCount = sizeof(wxRichTextImage_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextBuffer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextBuffer' -int wxluatype_wxRichTextBuffer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_AddDrawingHandler[] = { &wxluatype_wxRichTextDrawingHandler, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_AddDrawingHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_AddDrawingHandler[1] = {{ wxLua_wxRichTextBuffer_AddDrawingHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_AddDrawingHandler }}; -// static void AddDrawingHandler(wxRichTextDrawingHandler *handler); -static int LUACALL wxLua_wxRichTextBuffer_AddDrawingHandler(lua_State *L) -{ - // wxRichTextDrawingHandler handler - wxRichTextDrawingHandler * handler = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call AddDrawingHandler - wxRichTextBuffer::AddDrawingHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_AddEventHandler[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxEvtHandler, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_AddEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_AddEventHandler[1] = {{ wxLua_wxRichTextBuffer_AddEventHandler, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_AddEventHandler }}; -// bool AddEventHandler(wxEvtHandler* handler); -static int LUACALL wxLua_wxRichTextBuffer_AddEventHandler(lua_State *L) -{ - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call AddEventHandler - bool returns = (self->AddEventHandler(handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_AddFieldType[] = { &wxluatype_wxRichTextFieldType, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_AddFieldType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_AddFieldType[1] = {{ wxLua_wxRichTextBuffer_AddFieldType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_AddFieldType }}; -// static void AddFieldType(wxRichTextFieldType *fieldType); -static int LUACALL wxLua_wxRichTextBuffer_AddFieldType(lua_State *L) -{ - // wxRichTextFieldType fieldType - wxRichTextFieldType * fieldType = (wxRichTextFieldType *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFieldType); - // call AddFieldType - wxRichTextBuffer::AddFieldType(fieldType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_AddHandler[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_AddHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_AddHandler[1] = {{ wxLua_wxRichTextBuffer_AddHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_AddHandler }}; -// static void AddHandler(wxRichTextFileHandler *handler); -static int LUACALL wxLua_wxRichTextBuffer_AddHandler(lua_State *L) -{ - // wxRichTextFileHandler handler - wxRichTextFileHandler * handler = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call AddHandler - wxRichTextBuffer::AddHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_AddParagraph[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_AddParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_AddParagraph[1] = {{ wxLua_wxRichTextBuffer_AddParagraph, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_AddParagraph }}; -// virtual wxRichTextRange AddParagraph(const wxString& text, wxRichTextAttr* paraStyle = NULL); -static int LUACALL wxLua_wxRichTextBuffer_AddParagraph(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr paraStyle = NULL - wxRichTextAttr * paraStyle = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call AddParagraph - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->AddParagraph(text, paraStyle)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BatchingUndo[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BatchingUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BatchingUndo[1] = {{ wxLua_wxRichTextBuffer_BatchingUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_BatchingUndo }}; -// virtual bool BatchingUndo() const; -static int LUACALL wxLua_wxRichTextBuffer_BatchingUndo(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BatchingUndo - bool returns = (self->BatchingUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginAlignment[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginAlignment[1] = {{ wxLua_wxRichTextBuffer_BeginAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginAlignment }}; -// bool BeginAlignment(wxTextAttrAlignment alignment); -static int LUACALL wxLua_wxRichTextBuffer_BeginAlignment(lua_State *L) -{ - // wxTextAttrAlignment alignment - wxTextAttrAlignment alignment = (wxTextAttrAlignment)wxlua_getenumtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginAlignment - bool returns = (self->BeginAlignment(alignment)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginBatchUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginBatchUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginBatchUndo[1] = {{ wxLua_wxRichTextBuffer_BeginBatchUndo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginBatchUndo }}; -// virtual bool BeginBatchUndo(const wxString& cmdName); -static int LUACALL wxLua_wxRichTextBuffer_BeginBatchUndo(lua_State *L) -{ - // const wxString cmdName - const wxString cmdName = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginBatchUndo - bool returns = (self->BeginBatchUndo(cmdName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginBold[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginBold[1] = {{ wxLua_wxRichTextBuffer_BeginBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginBold }}; -// bool BeginBold(); -static int LUACALL wxLua_wxRichTextBuffer_BeginBold(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginBold - bool returns = (self->BeginBold()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginCharacterStyle[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginCharacterStyle[1] = {{ wxLua_wxRichTextBuffer_BeginCharacterStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginCharacterStyle }}; -// bool BeginCharacterStyle(const wxString& characterStyle); -static int LUACALL wxLua_wxRichTextBuffer_BeginCharacterStyle(lua_State *L) -{ - // const wxString characterStyle - const wxString characterStyle = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginCharacterStyle - bool returns = (self->BeginCharacterStyle(characterStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginFont[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginFont[1] = {{ wxLua_wxRichTextBuffer_BeginFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginFont }}; -// bool BeginFont(const wxFont& font); -static int LUACALL wxLua_wxRichTextBuffer_BeginFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginFont - bool returns = (self->BeginFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginFontSize[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginFontSize[1] = {{ wxLua_wxRichTextBuffer_BeginFontSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginFontSize }}; -// bool BeginFontSize(int pointSize); -static int LUACALL wxLua_wxRichTextBuffer_BeginFontSize(lua_State *L) -{ - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginFontSize - bool returns = (self->BeginFontSize(pointSize)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginItalic[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginItalic[1] = {{ wxLua_wxRichTextBuffer_BeginItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginItalic }}; -// bool BeginItalic(); -static int LUACALL wxLua_wxRichTextBuffer_BeginItalic(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginItalic - bool returns = (self->BeginItalic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginLeftIndent[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginLeftIndent[1] = {{ wxLua_wxRichTextBuffer_BeginLeftIndent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginLeftIndent }}; -// bool BeginLeftIndent(int leftIndent, int leftSubIndent = 0); -static int LUACALL wxLua_wxRichTextBuffer_BeginLeftIndent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int leftSubIndent = 0 - int leftSubIndent = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginLeftIndent - bool returns = (self->BeginLeftIndent(leftIndent, leftSubIndent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginLineSpacing[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginLineSpacing[1] = {{ wxLua_wxRichTextBuffer_BeginLineSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginLineSpacing }}; -// bool BeginLineSpacing(int lineSpacing); -static int LUACALL wxLua_wxRichTextBuffer_BeginLineSpacing(lua_State *L) -{ - // int lineSpacing - int lineSpacing = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginLineSpacing - bool returns = (self->BeginLineSpacing(lineSpacing)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginListStyle[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginListStyle[1] = {{ wxLua_wxRichTextBuffer_BeginListStyle, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginListStyle }}; -// bool BeginListStyle(const wxString& listStyle, int level = 1, int number = 1); -static int LUACALL wxLua_wxRichTextBuffer_BeginListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int number = 1 - int number = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int level = 1 - int level = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString listStyle - const wxString listStyle = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginListStyle - bool returns = (self->BeginListStyle(listStyle, level, number)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginNumberedBullet[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginNumberedBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginNumberedBullet[1] = {{ wxLua_wxRichTextBuffer_BeginNumberedBullet, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginNumberedBullet }}; -// bool BeginNumberedBullet(int bulletNumber, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD); -static int LUACALL wxLua_wxRichTextBuffer_BeginNumberedBullet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_ARABIC | wxTEXT_ATTR_BULLET_STYLE_PERIOD - int bulletStyle = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTEXT_ATTR_BULLET_STYLE_ARABIC | wxTEXT_ATTR_BULLET_STYLE_PERIOD); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // int bulletNumber - int bulletNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginNumberedBullet - bool returns = (self->BeginNumberedBullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginParagraphSpacing[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginParagraphSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginParagraphSpacing[1] = {{ wxLua_wxRichTextBuffer_BeginParagraphSpacing, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginParagraphSpacing }}; -// bool BeginParagraphSpacing(int before, int after); -static int LUACALL wxLua_wxRichTextBuffer_BeginParagraphSpacing(lua_State *L) -{ - // int after - int after = (int)wxlua_getnumbertype(L, 3); - // int before - int before = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginParagraphSpacing - bool returns = (self->BeginParagraphSpacing(before, after)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginParagraphStyle[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginParagraphStyle[1] = {{ wxLua_wxRichTextBuffer_BeginParagraphStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginParagraphStyle }}; -// bool BeginParagraphStyle(const wxString& paragraphStyle); -static int LUACALL wxLua_wxRichTextBuffer_BeginParagraphStyle(lua_State *L) -{ - // const wxString paragraphStyle - const wxString paragraphStyle = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginParagraphStyle - bool returns = (self->BeginParagraphStyle(paragraphStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginRightIndent[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginRightIndent[1] = {{ wxLua_wxRichTextBuffer_BeginRightIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginRightIndent }}; -// bool BeginRightIndent(int rightIndent); -static int LUACALL wxLua_wxRichTextBuffer_BeginRightIndent(lua_State *L) -{ - // int rightIndent - int rightIndent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginRightIndent - bool returns = (self->BeginRightIndent(rightIndent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginStandardBullet[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginStandardBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginStandardBullet[1] = {{ wxLua_wxRichTextBuffer_BeginStandardBullet, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginStandardBullet }}; -// bool BeginStandardBullet(const wxString& bulletName, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_STANDARD); -static int LUACALL wxLua_wxRichTextBuffer_BeginStandardBullet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_STANDARD - int bulletStyle = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTEXT_ATTR_BULLET_STYLE_STANDARD); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // const wxString bulletName - const wxString bulletName = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginStandardBullet - bool returns = (self->BeginStandardBullet(bulletName, leftIndent, leftSubIndent, bulletStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginStyle[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginStyle[1] = {{ wxLua_wxRichTextBuffer_BeginStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginStyle }}; -// virtual bool BeginStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextBuffer_BeginStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginStyle - bool returns = (self->BeginStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginSuppressUndo[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginSuppressUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginSuppressUndo[1] = {{ wxLua_wxRichTextBuffer_BeginSuppressUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginSuppressUndo }}; -// virtual bool BeginSuppressUndo(); -static int LUACALL wxLua_wxRichTextBuffer_BeginSuppressUndo(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginSuppressUndo - bool returns = (self->BeginSuppressUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginSymbolBullet[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginSymbolBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginSymbolBullet[1] = {{ wxLua_wxRichTextBuffer_BeginSymbolBullet, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginSymbolBullet }}; -// bool BeginSymbolBullet(const wxString& symbol, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL); -static int LUACALL wxLua_wxRichTextBuffer_BeginSymbolBullet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL - int bulletStyle = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTEXT_ATTR_BULLET_STYLE_SYMBOL); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // const wxString symbol - const wxString symbol = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginSymbolBullet - bool returns = (self->BeginSymbolBullet(symbol, leftIndent, leftSubIndent, bulletStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginTextColour[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginTextColour[1] = {{ wxLua_wxRichTextBuffer_BeginTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginTextColour }}; -// bool BeginTextColour(const wxColour& colour); -static int LUACALL wxLua_wxRichTextBuffer_BeginTextColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginTextColour - bool returns = (self->BeginTextColour(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginURL[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginURL[1] = {{ wxLua_wxRichTextBuffer_BeginURL, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginURL }}; -// bool BeginURL(const wxString& url, const wxString& characterStyle = wxEmptyString); -static int LUACALL wxLua_wxRichTextBuffer_BeginURL(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString characterStyle = wxEmptyString - const wxString characterStyle = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginURL - bool returns = (self->BeginURL(url, characterStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginUnderline[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_BeginUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_BeginUnderline[1] = {{ wxLua_wxRichTextBuffer_BeginUnderline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_BeginUnderline }}; -// bool BeginUnderline(); -static int LUACALL wxLua_wxRichTextBuffer_BeginUnderline(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call BeginUnderline - bool returns = (self->BeginUnderline()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_CanPasteFromClipboard[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_CanPasteFromClipboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_CanPasteFromClipboard[1] = {{ wxLua_wxRichTextBuffer_CanPasteFromClipboard, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_CanPasteFromClipboard }}; -// virtual bool CanPasteFromClipboard() const; -static int LUACALL wxLua_wxRichTextBuffer_CanPasteFromClipboard(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call CanPasteFromClipboard - bool returns = (self->CanPasteFromClipboard()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxRichTextBuffer_CleanUpDrawingHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_CleanUpDrawingHandlers[1] = {{ wxLua_wxRichTextBuffer_CleanUpDrawingHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void CleanUpDrawingHandlers(); -static int LUACALL wxLua_wxRichTextBuffer_CleanUpDrawingHandlers(lua_State *L) -{ - // call CleanUpDrawingHandlers - wxRichTextBuffer::CleanUpDrawingHandlers(); - - return 0; -} - -static int LUACALL wxLua_wxRichTextBuffer_CleanUpFieldTypes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_CleanUpFieldTypes[1] = {{ wxLua_wxRichTextBuffer_CleanUpFieldTypes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void CleanUpFieldTypes(); -static int LUACALL wxLua_wxRichTextBuffer_CleanUpFieldTypes(lua_State *L) -{ - // call CleanUpFieldTypes - wxRichTextBuffer::CleanUpFieldTypes(); - - return 0; -} - -static int LUACALL wxLua_wxRichTextBuffer_CleanUpHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_CleanUpHandlers[1] = {{ wxLua_wxRichTextBuffer_CleanUpHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void CleanUpHandlers(); -static int LUACALL wxLua_wxRichTextBuffer_CleanUpHandlers(lua_State *L) -{ - // call CleanUpHandlers - wxRichTextBuffer::CleanUpHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_ClearEventHandlers[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_ClearEventHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_ClearEventHandlers[1] = {{ wxLua_wxRichTextBuffer_ClearEventHandlers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_ClearEventHandlers }}; -// void ClearEventHandlers(); -static int LUACALL wxLua_wxRichTextBuffer_ClearEventHandlers(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call ClearEventHandlers - self->ClearEventHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_ClearStyleStack[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_ClearStyleStack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_ClearStyleStack[1] = {{ wxLua_wxRichTextBuffer_ClearStyleStack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_ClearStyleStack }}; -// virtual void ClearStyleStack(); -static int LUACALL wxLua_wxRichTextBuffer_ClearStyleStack(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call ClearStyleStack - self->ClearStyleStack(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_Clone[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Clone[1] = {{ wxLua_wxRichTextBuffer_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextBuffer_Clone(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_Copy[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Copy[1] = {{ wxLua_wxRichTextBuffer_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_Copy }}; -// void Copy(const wxRichTextBuffer& obj); -static int LUACALL wxLua_wxRichTextBuffer_Copy(lua_State *L) -{ - // const wxRichTextBuffer obj - const wxRichTextBuffer * obj = (const wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call Copy - self->Copy(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_CopyToClipboard[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_CopyToClipboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_CopyToClipboard[1] = {{ wxLua_wxRichTextBuffer_CopyToClipboard, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_CopyToClipboard }}; -// virtual bool CopyToClipboard(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextBuffer_CopyToClipboard(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call CopyToClipboard - bool returns = (self->CopyToClipboard(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_DeleteRangeWithUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_DeleteRangeWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_DeleteRangeWithUndo[1] = {{ wxLua_wxRichTextBuffer_DeleteRangeWithUndo, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_DeleteRangeWithUndo }}; -// bool DeleteRangeWithUndo(const wxRichTextRange& range, wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextBuffer_DeleteRangeWithUndo(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextCtrl); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call DeleteRangeWithUndo - bool returns = (self->DeleteRangeWithUndo(*range, ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_Dump1[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxTextOutputStream, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_Dump1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Dump1[1] = {{ wxLua_wxRichTextBuffer_Dump1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_Dump1 }}; -// virtual void Dump(wxTextOutputStream& stream); -static int LUACALL wxLua_wxRichTextBuffer_Dump1(lua_State *L) -{ - // wxTextOutputStream stream - wxTextOutputStream * stream = (wxTextOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextOutputStream); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call Dump - self->Dump(*stream); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_Dump[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_Dump(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Dump[1] = {{ wxLua_wxRichTextBuffer_Dump, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_Dump }}; -// virtual void Dump(); -static int LUACALL wxLua_wxRichTextBuffer_Dump(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call Dump - self->Dump(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndAlignment[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndAlignment[1] = {{ wxLua_wxRichTextBuffer_EndAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndAlignment }}; -// bool EndAlignment(); -static int LUACALL wxLua_wxRichTextBuffer_EndAlignment(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndAlignment - bool returns = (self->EndAlignment()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndAllStyles[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndAllStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndAllStyles[1] = {{ wxLua_wxRichTextBuffer_EndAllStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndAllStyles }}; -// virtual bool EndAllStyles(); -static int LUACALL wxLua_wxRichTextBuffer_EndAllStyles(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndAllStyles - bool returns = (self->EndAllStyles()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndBatchUndo[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndBatchUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndBatchUndo[1] = {{ wxLua_wxRichTextBuffer_EndBatchUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndBatchUndo }}; -// virtual bool EndBatchUndo(); -static int LUACALL wxLua_wxRichTextBuffer_EndBatchUndo(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndBatchUndo - bool returns = (self->EndBatchUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndBold[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndBold[1] = {{ wxLua_wxRichTextBuffer_EndBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndBold }}; -// bool EndBold(); -static int LUACALL wxLua_wxRichTextBuffer_EndBold(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndBold - bool returns = (self->EndBold()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndCharacterStyle[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndCharacterStyle[1] = {{ wxLua_wxRichTextBuffer_EndCharacterStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndCharacterStyle }}; -// bool EndCharacterStyle(); -static int LUACALL wxLua_wxRichTextBuffer_EndCharacterStyle(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndCharacterStyle - bool returns = (self->EndCharacterStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndFont[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndFont[1] = {{ wxLua_wxRichTextBuffer_EndFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndFont }}; -// bool EndFont(); -static int LUACALL wxLua_wxRichTextBuffer_EndFont(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndFont - bool returns = (self->EndFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndFontSize[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndFontSize[1] = {{ wxLua_wxRichTextBuffer_EndFontSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndFontSize }}; -// bool EndFontSize(); -static int LUACALL wxLua_wxRichTextBuffer_EndFontSize(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndFontSize - bool returns = (self->EndFontSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndItalic[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndItalic[1] = {{ wxLua_wxRichTextBuffer_EndItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndItalic }}; -// bool EndItalic(); -static int LUACALL wxLua_wxRichTextBuffer_EndItalic(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndItalic - bool returns = (self->EndItalic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndLeftIndent[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndLeftIndent[1] = {{ wxLua_wxRichTextBuffer_EndLeftIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndLeftIndent }}; -// bool EndLeftIndent(); -static int LUACALL wxLua_wxRichTextBuffer_EndLeftIndent(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndLeftIndent - bool returns = (self->EndLeftIndent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndLineSpacing[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndLineSpacing[1] = {{ wxLua_wxRichTextBuffer_EndLineSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndLineSpacing }}; -// bool EndLineSpacing(); -static int LUACALL wxLua_wxRichTextBuffer_EndLineSpacing(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndLineSpacing - bool returns = (self->EndLineSpacing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndListStyle[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndListStyle[1] = {{ wxLua_wxRichTextBuffer_EndListStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndListStyle }}; -// bool EndListStyle(); -static int LUACALL wxLua_wxRichTextBuffer_EndListStyle(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndListStyle - bool returns = (self->EndListStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndNumberedBullet[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndNumberedBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndNumberedBullet[1] = {{ wxLua_wxRichTextBuffer_EndNumberedBullet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndNumberedBullet }}; -// bool EndNumberedBullet(); -static int LUACALL wxLua_wxRichTextBuffer_EndNumberedBullet(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndNumberedBullet - bool returns = (self->EndNumberedBullet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndParagraphSpacing[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndParagraphSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndParagraphSpacing[1] = {{ wxLua_wxRichTextBuffer_EndParagraphSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndParagraphSpacing }}; -// bool EndParagraphSpacing(); -static int LUACALL wxLua_wxRichTextBuffer_EndParagraphSpacing(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndParagraphSpacing - bool returns = (self->EndParagraphSpacing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndParagraphStyle[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndParagraphStyle[1] = {{ wxLua_wxRichTextBuffer_EndParagraphStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndParagraphStyle }}; -// bool EndParagraphStyle(); -static int LUACALL wxLua_wxRichTextBuffer_EndParagraphStyle(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndParagraphStyle - bool returns = (self->EndParagraphStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndRightIndent[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndRightIndent[1] = {{ wxLua_wxRichTextBuffer_EndRightIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndRightIndent }}; -// bool EndRightIndent(); -static int LUACALL wxLua_wxRichTextBuffer_EndRightIndent(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndRightIndent - bool returns = (self->EndRightIndent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndStandardBullet[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndStandardBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndStandardBullet[1] = {{ wxLua_wxRichTextBuffer_EndStandardBullet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndStandardBullet }}; -// bool EndStandardBullet(); -static int LUACALL wxLua_wxRichTextBuffer_EndStandardBullet(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndStandardBullet - bool returns = (self->EndStandardBullet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndStyle[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndStyle[1] = {{ wxLua_wxRichTextBuffer_EndStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndStyle }}; -// virtual bool EndStyle(); -static int LUACALL wxLua_wxRichTextBuffer_EndStyle(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndStyle - bool returns = (self->EndStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndSuppressUndo[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndSuppressUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndSuppressUndo[1] = {{ wxLua_wxRichTextBuffer_EndSuppressUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndSuppressUndo }}; -// virtual bool EndSuppressUndo(); -static int LUACALL wxLua_wxRichTextBuffer_EndSuppressUndo(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndSuppressUndo - bool returns = (self->EndSuppressUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndSymbolBullet[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndSymbolBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndSymbolBullet[1] = {{ wxLua_wxRichTextBuffer_EndSymbolBullet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndSymbolBullet }}; -// bool EndSymbolBullet(); -static int LUACALL wxLua_wxRichTextBuffer_EndSymbolBullet(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndSymbolBullet - bool returns = (self->EndSymbolBullet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndTextColour[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndTextColour[1] = {{ wxLua_wxRichTextBuffer_EndTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndTextColour }}; -// bool EndTextColour(); -static int LUACALL wxLua_wxRichTextBuffer_EndTextColour(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndTextColour - bool returns = (self->EndTextColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndURL[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndURL[1] = {{ wxLua_wxRichTextBuffer_EndURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndURL }}; -// bool EndURL(); -static int LUACALL wxLua_wxRichTextBuffer_EndURL(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndURL - bool returns = (self->EndURL()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_EndUnderline[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_EndUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_EndUnderline[1] = {{ wxLua_wxRichTextBuffer_EndUnderline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_EndUnderline }}; -// bool EndUnderline(); -static int LUACALL wxLua_wxRichTextBuffer_EndUnderline(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call EndUnderline - bool returns = (self->EndUnderline()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_FindDrawingHandler[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_FindDrawingHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindDrawingHandler[1] = {{ wxLua_wxRichTextBuffer_FindDrawingHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindDrawingHandler }}; -// static wxRichTextDrawingHandler *FindDrawingHandler(const wxString& name); -static int LUACALL wxLua_wxRichTextBuffer_FindDrawingHandler(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindDrawingHandler - wxRichTextDrawingHandler* returns = (wxRichTextDrawingHandler*)wxRichTextBuffer::FindDrawingHandler(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextDrawingHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_FindFieldType[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_FindFieldType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindFieldType[1] = {{ wxLua_wxRichTextBuffer_FindFieldType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindFieldType }}; -// static wxRichTextFieldType *FindFieldType(const wxString& name); -static int LUACALL wxLua_wxRichTextBuffer_FindFieldType(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindFieldType - wxRichTextFieldType* returns = (wxRichTextFieldType*)wxRichTextBuffer::FindFieldType(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldType); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler2[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_FindHandler2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler2[1] = {{ wxLua_wxRichTextBuffer_FindHandler2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler2 }}; -// static wxRichTextFileHandler *FindHandler(wxRichTextFileType imageType); -static int LUACALL wxLua_wxRichTextBuffer_FindHandler2(lua_State *L) -{ - // wxRichTextFileType imageType - wxRichTextFileType imageType = (wxRichTextFileType)wxlua_getenumtype(L, 1); - // call FindHandler - wxRichTextFileHandler* returns = (wxRichTextFileHandler*)wxRichTextBuffer::FindHandler(imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFileHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler1[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_FindHandler1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler1[1] = {{ wxLua_wxRichTextBuffer_FindHandler1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler1 }}; -// static wxRichTextFileHandler *FindHandler(const wxString& extension, wxRichTextFileType imageType); -static int LUACALL wxLua_wxRichTextBuffer_FindHandler1(lua_State *L) -{ - // wxRichTextFileType imageType - wxRichTextFileType imageType = (wxRichTextFileType)wxlua_getenumtype(L, 2); - // const wxString extension - const wxString extension = wxlua_getwxStringtype(L, 1); - // call FindHandler - wxRichTextFileHandler* returns = (wxRichTextFileHandler*)wxRichTextBuffer::FindHandler(extension, imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFileHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_FindHandler(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler[1] = {{ wxLua_wxRichTextBuffer_FindHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler }}; -// static wxRichTextFileHandler *FindHandler(const wxString& name); -static int LUACALL wxLua_wxRichTextBuffer_FindHandler(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call FindHandler - wxRichTextFileHandler* returns = (wxRichTextFileHandler*)wxRichTextBuffer::FindHandler(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFileHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandlerFilenameOrType[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_FindHandlerFilenameOrType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindHandlerFilenameOrType[1] = {{ wxLua_wxRichTextBuffer_FindHandlerFilenameOrType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandlerFilenameOrType }}; -// wxRichTextFileType imageType); -static int LUACALL wxLua_wxRichTextBuffer_FindHandlerFilenameOrType(lua_State *L) -{ - // wxRichTextFileType imageType - wxRichTextFileType imageType = (wxRichTextFileType)wxlua_getenumtype(L, 2); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call FindHandlerFilenameOrType - wxRichTextFileHandler* returns = (wxRichTextFileHandler*)wxRichTextBuffer::FindHandlerFilenameOrType(filename, imageType); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFileHandler); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetBatchedCommand[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetBatchedCommand(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetBatchedCommand[1] = {{ wxLua_wxRichTextBuffer_GetBatchedCommand, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetBatchedCommand }}; -// virtual wxRichTextCommand* GetBatchedCommand() const; -static int LUACALL wxLua_wxRichTextBuffer_GetBatchedCommand(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetBatchedCommand - wxRichTextCommand* returns = (wxRichTextCommand*)self->GetBatchedCommand(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCommand); - - return 1; -} - -static int LUACALL wxLua_wxRichTextBuffer_GetBulletProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetBulletProportion[1] = {{ wxLua_wxRichTextBuffer_GetBulletProportion, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static float GetBulletProportion(); -static int LUACALL wxLua_wxRichTextBuffer_GetBulletProportion(lua_State *L) -{ - // call GetBulletProportion - float returns = (wxRichTextBuffer::GetBulletProportion()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxRichTextBuffer_GetBulletRightMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetBulletRightMargin[1] = {{ wxLua_wxRichTextBuffer_GetBulletRightMargin, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static int GetBulletRightMargin(); -static int LUACALL wxLua_wxRichTextBuffer_GetBulletRightMargin(lua_State *L) -{ - // call GetBulletRightMargin - int returns = (wxRichTextBuffer::GetBulletRightMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetCommandProcessor[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetCommandProcessor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetCommandProcessor[1] = {{ wxLua_wxRichTextBuffer_GetCommandProcessor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetCommandProcessor }}; -// wxCommandProcessor* GetCommandProcessor() const; -static int LUACALL wxLua_wxRichTextBuffer_GetCommandProcessor(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetCommandProcessor - wxCommandProcessor* returns = (wxCommandProcessor*)self->GetCommandProcessor(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommandProcessor); - - return 1; -} - -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetDimensionScale[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetDimensionScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetDimensionScale[1] = {{ wxLua_wxRichTextBuffer_GetDimensionScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetDimensionScale }}; -// double GetDimensionScale() const; -static int LUACALL wxLua_wxRichTextBuffer_GetDimensionScale(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetDimensionScale - double returns = (self->GetDimensionScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static int LUACALL wxLua_wxRichTextBuffer_GetDrawingHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetDrawingHandlers[1] = {{ wxLua_wxRichTextBuffer_GetDrawingHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxList& GetDrawingHandlers(); -static int LUACALL wxLua_wxRichTextBuffer_GetDrawingHandlers(lua_State *L) -{ - // call GetDrawingHandlers - wxList* returns = (wxList*)&wxRichTextBuffer::GetDrawingHandlers(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetExtWildcard[] = { &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetExtWildcard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetExtWildcard[1] = {{ wxLua_wxRichTextBuffer_GetExtWildcard, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetExtWildcard }}; -// static wxString GetExtWildcard(bool combine = false, bool save = false, wxArrayInt* types = NULL); -static int LUACALL wxLua_wxRichTextBuffer_GetExtWildcard(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt types = NULL - wxArrayInt * types = (argCount >= 3 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt) : NULL); - // bool save = false - bool save = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // bool combine = false - bool combine = (argCount >= 1 ? wxlua_getbooleantype(L, 1) : false); - // call GetExtWildcard - wxString returns = (wxRichTextBuffer::GetExtWildcard(combine, save, types)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextBuffer_GetFieldTypes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetFieldTypes[1] = {{ wxLua_wxRichTextBuffer_GetFieldTypes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxRichTextFieldTypeHashMap& GetFieldTypes(); -static int LUACALL wxLua_wxRichTextBuffer_GetFieldTypes(lua_State *L) -{ - // call GetFieldTypes - wxRichTextFieldTypeHashMap* returns = (wxRichTextFieldTypeHashMap*)&wxRichTextBuffer::GetFieldTypes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFieldTypeHashMap); - - return 1; -} - -static int LUACALL wxLua_wxRichTextBuffer_GetFloatingLayoutMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetFloatingLayoutMode[1] = {{ wxLua_wxRichTextBuffer_GetFloatingLayoutMode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool GetFloatingLayoutMode(); -static int LUACALL wxLua_wxRichTextBuffer_GetFloatingLayoutMode(lua_State *L) -{ - // call GetFloatingLayoutMode - bool returns = (wxRichTextBuffer::GetFloatingLayoutMode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontScale[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetFontScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetFontScale[1] = {{ wxLua_wxRichTextBuffer_GetFontScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontScale }}; -// double GetFontScale() const; -static int LUACALL wxLua_wxRichTextBuffer_GetFontScale(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetFontScale - double returns = (self->GetFontScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontTable1[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetFontTable1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable1[1] = {{ wxLua_wxRichTextBuffer_GetFontTable1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontTable1 }}; -// const wxRichTextFontTable& GetFontTable() const; -static int LUACALL wxLua_wxRichTextBuffer_GetFontTable1(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetFontTable - const wxRichTextFontTable* returns = (const wxRichTextFontTable*)&self->GetFontTable(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFontTable); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontTable[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetFontTable(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable[1] = {{ wxLua_wxRichTextBuffer_GetFontTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontTable }}; -// wxRichTextFontTable& GetFontTable(); -static int LUACALL wxLua_wxRichTextBuffer_GetFontTable(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetFontTable - wxRichTextFontTable* returns = (wxRichTextFontTable*)&self->GetFontTable(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFontTable); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetHandlerFlags[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetHandlerFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetHandlerFlags[1] = {{ wxLua_wxRichTextBuffer_GetHandlerFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetHandlerFlags }}; -// int GetHandlerFlags() const; -static int LUACALL wxLua_wxRichTextBuffer_GetHandlerFlags(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetHandlerFlags - int returns = (self->GetHandlerFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static int LUACALL wxLua_wxRichTextBuffer_GetHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetHandlers[1] = {{ wxLua_wxRichTextBuffer_GetHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxList& GetHandlers(); -static int LUACALL wxLua_wxRichTextBuffer_GetHandlers(lua_State *L) -{ - // call GetHandlers - wxList* returns = (wxList*)&wxRichTextBuffer::GetHandlers(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextBuffer_GetRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetRenderer[1] = {{ wxLua_wxRichTextBuffer_GetRenderer, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxRichTextRenderer* GetRenderer(); -static int LUACALL wxLua_wxRichTextBuffer_GetRenderer(lua_State *L) -{ - // call GetRenderer - wxRichTextRenderer* returns = (wxRichTextRenderer*)wxRichTextBuffer::GetRenderer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRenderer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetScale[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetScale[1] = {{ wxLua_wxRichTextBuffer_GetScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetScale }}; -// double GetScale() const; -static int LUACALL wxLua_wxRichTextBuffer_GetScale(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetScale - double returns = (self->GetScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetStyleSheet[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetStyleSheet[1] = {{ wxLua_wxRichTextBuffer_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetStyleSheet }}; -// virtual wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextBuffer_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_GetStyleStackSize[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_GetStyleStackSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetStyleStackSize[1] = {{ wxLua_wxRichTextBuffer_GetStyleStackSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetStyleStackSize }}; -// virtual size_t GetStyleStackSize() const; -static int LUACALL wxLua_wxRichTextBuffer_GetStyleStackSize(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call GetStyleStackSize - size_t returns = (self->GetStyleStackSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_HitTest[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_HitTest[1] = {{ wxLua_wxRichTextBuffer_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextBuffer_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextBuffer_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_Init[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Init[1] = {{ wxLua_wxRichTextBuffer_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextBuffer_Init(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call Init - self->Init(); - - return 0; -} - -static int LUACALL wxLua_wxRichTextBuffer_InitStandardHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InitStandardHandlers[1] = {{ wxLua_wxRichTextBuffer_InitStandardHandlers, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void InitStandardHandlers(); -static int LUACALL wxLua_wxRichTextBuffer_InitStandardHandlers(lua_State *L) -{ - // call InitStandardHandlers - wxRichTextBuffer::InitStandardHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertDrawingHandler[] = { &wxluatype_wxRichTextDrawingHandler, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertDrawingHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertDrawingHandler[1] = {{ wxLua_wxRichTextBuffer_InsertDrawingHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertDrawingHandler }}; -// static void InsertDrawingHandler(wxRichTextDrawingHandler *handler); -static int LUACALL wxLua_wxRichTextBuffer_InsertDrawingHandler(lua_State *L) -{ - // wxRichTextDrawingHandler handler - wxRichTextDrawingHandler * handler = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call InsertDrawingHandler - wxRichTextBuffer::InsertDrawingHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertHandler[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertHandler[1] = {{ wxLua_wxRichTextBuffer_InsertHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertHandler }}; -// static void InsertHandler(wxRichTextFileHandler *handler); -static int LUACALL wxLua_wxRichTextBuffer_InsertHandler(lua_State *L) -{ - // wxRichTextFileHandler handler - wxRichTextFileHandler * handler = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call InsertHandler - wxRichTextBuffer::InsertHandler(handler); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertImageWithUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextImageBlock, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertImageWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertImageWithUndo[1] = {{ wxLua_wxRichTextBuffer_InsertImageWithUndo, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertImageWithUndo }}; -// bool InsertImageWithUndo(long pos, const wxRichTextImageBlock& imageBlock, wxRichTextCtrl* ctrl, int flags, const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextBuffer_InsertImageWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 6 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // int flags - int flags = (int)wxlua_getnumbertype(L, 5); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextCtrl); - // const wxRichTextImageBlock imageBlock - const wxRichTextImageBlock * imageBlock = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextImageBlock); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call InsertImageWithUndo - bool returns = (self->InsertImageWithUndo(pos, *imageBlock, ctrl, flags, *textAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertNewlineWithUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertNewlineWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertNewlineWithUndo[1] = {{ wxLua_wxRichTextBuffer_InsertNewlineWithUndo, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertNewlineWithUndo }}; -// bool InsertNewlineWithUndo(long pos, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextBuffer_InsertNewlineWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextCtrl); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call InsertNewlineWithUndo - bool returns = (self->InsertNewlineWithUndo(pos, ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertObjectWithUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertObjectWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertObjectWithUndo[1] = {{ wxLua_wxRichTextBuffer_InsertObjectWithUndo, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertObjectWithUndo }}; -// wxRichTextObject* InsertObjectWithUndo(long pos, wxRichTextObject *object, wxRichTextCtrl* ctrl, int flags); -static int LUACALL wxLua_wxRichTextBuffer_InsertObjectWithUndo(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 5); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextCtrl); - // wxRichTextObject object - wxRichTextObject * object = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call InsertObjectWithUndo - wxRichTextObject* returns = (wxRichTextObject*)self->InsertObjectWithUndo(pos, object, ctrl, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertParagraphsWithUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertParagraphsWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertParagraphsWithUndo[1] = {{ wxLua_wxRichTextBuffer_InsertParagraphsWithUndo, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertParagraphsWithUndo }}; -// bool InsertParagraphsWithUndo(long pos, const wxRichTextParagraphLayoutBox& paragraphs, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextBuffer_InsertParagraphsWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextCtrl); - // const wxRichTextParagraphLayoutBox paragraphs - const wxRichTextParagraphLayoutBox * paragraphs = (const wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call InsertParagraphsWithUndo - bool returns = (self->InsertParagraphsWithUndo(pos, *paragraphs, ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertTextWithUndo[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_InsertTextWithUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_InsertTextWithUndo[1] = {{ wxLua_wxRichTextBuffer_InsertTextWithUndo, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextBuffer_InsertTextWithUndo }}; -// bool InsertTextWithUndo(long pos, const wxString& text, wxRichTextCtrl* ctrl, int flags = 0); -static int LUACALL wxLua_wxRichTextBuffer_InsertTextWithUndo(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextCtrl); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call InsertTextWithUndo - bool returns = (self->InsertTextWithUndo(pos, text, ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_IsModified[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_IsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_IsModified[1] = {{ wxLua_wxRichTextBuffer_IsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_IsModified }}; -// bool IsModified() const; -static int LUACALL wxLua_wxRichTextBuffer_IsModified(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call IsModified - bool returns = (self->IsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_LoadFile1[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxInputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_LoadFile1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile1[1] = {{ wxLua_wxRichTextBuffer_LoadFile1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_LoadFile1 }}; -// virtual bool LoadFile(wxInputStream& stream, wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); -static int LUACALL wxLua_wxRichTextBuffer_LoadFile1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextFileType type = wxRICHTEXT_TYPE_ANY - wxRichTextFileType type = (argCount >= 3 ? (wxRichTextFileType)wxlua_getenumtype(L, 3) : wxRICHTEXT_TYPE_ANY); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call LoadFile - bool returns = (self->LoadFile(*stream, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_LoadFile[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_LoadFile(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile[1] = {{ wxLua_wxRichTextBuffer_LoadFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_LoadFile }}; -// virtual bool LoadFile(const wxString& filename, wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); -static int LUACALL wxLua_wxRichTextBuffer_LoadFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextFileType type = wxRICHTEXT_TYPE_ANY - wxRichTextFileType type = (argCount >= 3 ? (wxRichTextFileType)wxlua_getenumtype(L, 3) : wxRICHTEXT_TYPE_ANY); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call LoadFile - bool returns = (self->LoadFile(filename, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_Modify[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_Modify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Modify[1] = {{ wxLua_wxRichTextBuffer_Modify, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_Modify }}; -// void Modify(bool modify = true); -static int LUACALL wxLua_wxRichTextBuffer_Modify(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool modify = true - bool modify = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call Modify - self->Modify(modify); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_PasteFromClipboard[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_PasteFromClipboard(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_PasteFromClipboard[1] = {{ wxLua_wxRichTextBuffer_PasteFromClipboard, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_PasteFromClipboard }}; -// virtual bool PasteFromClipboard(long position); -static int LUACALL wxLua_wxRichTextBuffer_PasteFromClipboard(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call PasteFromClipboard - bool returns = (self->PasteFromClipboard(position)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_PopStyleSheet[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_PopStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_PopStyleSheet[1] = {{ wxLua_wxRichTextBuffer_PopStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_PopStyleSheet }}; -// wxRichTextStyleSheet* PopStyleSheet(); -static int LUACALL wxLua_wxRichTextBuffer_PopStyleSheet(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call PopStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->PopStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_PushStyleSheet[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_PushStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_PushStyleSheet[1] = {{ wxLua_wxRichTextBuffer_PushStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_PushStyleSheet }}; -// bool PushStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextBuffer_PushStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call PushStyleSheet - bool returns = (self->PushStyleSheet(styleSheet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveDrawingHandler[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_RemoveDrawingHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_RemoveDrawingHandler[1] = {{ wxLua_wxRichTextBuffer_RemoveDrawingHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveDrawingHandler }}; -// static bool RemoveDrawingHandler(const wxString& name); -static int LUACALL wxLua_wxRichTextBuffer_RemoveDrawingHandler(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call RemoveDrawingHandler - bool returns = (wxRichTextBuffer::RemoveDrawingHandler(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveEventHandler[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxEvtHandler, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_RemoveEventHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_RemoveEventHandler[1] = {{ wxLua_wxRichTextBuffer_RemoveEventHandler, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveEventHandler }}; -// bool RemoveEventHandler(wxEvtHandler* handler, bool deleteHandler = false); -static int LUACALL wxLua_wxRichTextBuffer_RemoveEventHandler(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteHandler = false - bool deleteHandler = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxEvtHandler handler - wxEvtHandler * handler = (wxEvtHandler *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvtHandler); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call RemoveEventHandler - bool returns = (self->RemoveEventHandler(handler, deleteHandler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveFieldType[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_RemoveFieldType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_RemoveFieldType[1] = {{ wxLua_wxRichTextBuffer_RemoveFieldType, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveFieldType }}; -// static bool RemoveFieldType(const wxString& name); -static int LUACALL wxLua_wxRichTextBuffer_RemoveFieldType(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call RemoveFieldType - bool returns = (wxRichTextBuffer::RemoveFieldType(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveHandler[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_RemoveHandler(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_RemoveHandler[1] = {{ wxLua_wxRichTextBuffer_RemoveHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_RemoveHandler }}; -// static bool RemoveHandler(const wxString& name); -static int LUACALL wxLua_wxRichTextBuffer_RemoveHandler(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call RemoveHandler - bool returns = (wxRichTextBuffer::RemoveHandler(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_ResetAndClearCommands[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_ResetAndClearCommands(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_ResetAndClearCommands[1] = {{ wxLua_wxRichTextBuffer_ResetAndClearCommands, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_ResetAndClearCommands }}; -// virtual void ResetAndClearCommands(); -static int LUACALL wxLua_wxRichTextBuffer_ResetAndClearCommands(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call ResetAndClearCommands - self->ResetAndClearCommands(); - - return 0; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SaveFile1[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxOutputStream, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SaveFile1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile1[1] = {{ wxLua_wxRichTextBuffer_SaveFile1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_SaveFile1 }}; -// virtual bool SaveFile(wxOutputStream& stream, wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); -static int LUACALL wxLua_wxRichTextBuffer_SaveFile1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextFileType type = wxRICHTEXT_TYPE_ANY - wxRichTextFileType type = (argCount >= 3 ? (wxRichTextFileType)wxlua_getenumtype(L, 3) : wxRICHTEXT_TYPE_ANY); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SaveFile - bool returns = (self->SaveFile(*stream, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SaveFile[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SaveFile(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile[1] = {{ wxLua_wxRichTextBuffer_SaveFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_SaveFile }}; -// virtual bool SaveFile(const wxString& filename, wxRichTextFileType type = wxRICHTEXT_TYPE_ANY); -static int LUACALL wxLua_wxRichTextBuffer_SaveFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextFileType type = wxRICHTEXT_TYPE_ANY - wxRichTextFileType type = (argCount >= 3 ? (wxRichTextFileType)wxlua_getenumtype(L, 3) : wxRICHTEXT_TYPE_ANY); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SaveFile - bool returns = (self->SaveFile(filename, type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SendEvent[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SendEvent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SendEvent[1] = {{ wxLua_wxRichTextBuffer_SendEvent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_SendEvent }}; -// bool SendEvent(wxEvent& event, bool sendToAll = true); -static int LUACALL wxLua_wxRichTextBuffer_SendEvent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool sendToAll = true - bool sendToAll = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxEvent event - wxEvent * event = (wxEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEvent); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SendEvent - bool returns = (self->SendEvent(*event, sendToAll)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetBulletProportion[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetBulletProportion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetBulletProportion[1] = {{ wxLua_wxRichTextBuffer_SetBulletProportion, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetBulletProportion }}; -// static void SetBulletProportion(float prop); -static int LUACALL wxLua_wxRichTextBuffer_SetBulletProportion(lua_State *L) -{ - // float prop - float prop = (float)wxlua_getnumbertype(L, 1); - // call SetBulletProportion - wxRichTextBuffer::SetBulletProportion(prop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetBulletRightMargin[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetBulletRightMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetBulletRightMargin[1] = {{ wxLua_wxRichTextBuffer_SetBulletRightMargin, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetBulletRightMargin }}; -// static void SetBulletRightMargin(int margin); -static int LUACALL wxLua_wxRichTextBuffer_SetBulletRightMargin(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 1); - // call SetBulletRightMargin - wxRichTextBuffer::SetBulletRightMargin(margin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetDimensionScale[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetDimensionScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetDimensionScale[1] = {{ wxLua_wxRichTextBuffer_SetDimensionScale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetDimensionScale }}; -// void SetDimensionScale(double dimScale); -static int LUACALL wxLua_wxRichTextBuffer_SetDimensionScale(lua_State *L) -{ - // double dimScale - double dimScale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetDimensionScale - self->SetDimensionScale(dimScale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetFloatingLayoutMode[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetFloatingLayoutMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetFloatingLayoutMode[1] = {{ wxLua_wxRichTextBuffer_SetFloatingLayoutMode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetFloatingLayoutMode }}; -// static void SetFloatingLayoutMode(bool mode); -static int LUACALL wxLua_wxRichTextBuffer_SetFloatingLayoutMode(lua_State *L) -{ - // bool mode - bool mode = wxlua_getbooleantype(L, 1); - // call SetFloatingLayoutMode - wxRichTextBuffer::SetFloatingLayoutMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetFontScale[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetFontScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetFontScale[1] = {{ wxLua_wxRichTextBuffer_SetFontScale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetFontScale }}; -// void SetFontScale(double fontScale); -static int LUACALL wxLua_wxRichTextBuffer_SetFontScale(lua_State *L) -{ - // double fontScale - double fontScale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetFontScale - self->SetFontScale(fontScale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetFontTable[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextFontTable, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetFontTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetFontTable[1] = {{ wxLua_wxRichTextBuffer_SetFontTable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetFontTable }}; -// void SetFontTable(const wxRichTextFontTable& table); -static int LUACALL wxLua_wxRichTextBuffer_SetFontTable(lua_State *L) -{ - // const wxRichTextFontTable table - const wxRichTextFontTable * table = (const wxRichTextFontTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFontTable); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetFontTable - self->SetFontTable(*table); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetHandlerFlags[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetHandlerFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetHandlerFlags[1] = {{ wxLua_wxRichTextBuffer_SetHandlerFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetHandlerFlags }}; -// void SetHandlerFlags(int flags); -static int LUACALL wxLua_wxRichTextBuffer_SetHandlerFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetHandlerFlags - self->SetHandlerFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetRenderer[] = { &wxluatype_wxRichTextRenderer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetRenderer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetRenderer[1] = {{ wxLua_wxRichTextBuffer_SetRenderer, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetRenderer }}; -// static void SetRenderer(wxRichTextRenderer* renderer); -static int LUACALL wxLua_wxRichTextBuffer_SetRenderer(lua_State *L) -{ - // wxRichTextRenderer renderer - wxRichTextRenderer * renderer = (wxRichTextRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRenderer); - // call SetRenderer - wxRichTextBuffer::SetRenderer(renderer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetScale[] = { &wxluatype_wxRichTextBuffer, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetScale[1] = {{ wxLua_wxRichTextBuffer_SetScale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetScale }}; -// void SetScale(double scale); -static int LUACALL wxLua_wxRichTextBuffer_SetScale(lua_State *L) -{ - // double scale - double scale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetScale - self->SetScale(scale); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetStyleSheet[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetStyleSheet[1] = {{ wxLua_wxRichTextBuffer_SetStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetStyleSheet }}; -// void SetStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextBuffer_SetStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetStyleSheet - self->SetStyleSheet(styleSheet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SetStyleSheetAndNotify[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SetStyleSheetAndNotify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SetStyleSheetAndNotify[1] = {{ wxLua_wxRichTextBuffer_SetStyleSheetAndNotify, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SetStyleSheetAndNotify }}; -// bool SetStyleSheetAndNotify(wxRichTextStyleSheet* sheet); -static int LUACALL wxLua_wxRichTextBuffer_SetStyleSheetAndNotify(lua_State *L) -{ - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SetStyleSheetAndNotify - bool returns = (self->SetStyleSheetAndNotify(sheet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SubmitAction[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SubmitAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SubmitAction[1] = {{ wxLua_wxRichTextBuffer_SubmitAction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_SubmitAction }}; -// virtual bool SubmitAction(wxRichTextAction* action); -static int LUACALL wxLua_wxRichTextBuffer_SubmitAction(lua_State *L) -{ - // wxRichTextAction action - wxRichTextAction * action = (wxRichTextAction *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAction); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SubmitAction - bool returns = (self->SubmitAction(action)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_SuppressingUndo[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_SuppressingUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SuppressingUndo[1] = {{ wxLua_wxRichTextBuffer_SuppressingUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_SuppressingUndo }}; -// virtual bool SuppressingUndo() const; -static int LUACALL wxLua_wxRichTextBuffer_SuppressingUndo(lua_State *L) -{ - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call SuppressingUndo - bool returns = (self->SuppressingUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_delete[] = { &wxluatype_wxRichTextBuffer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_op_set[] = { &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_op_set[1] = {{ wxLua_wxRichTextBuffer_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_op_set }}; -// void operator= (const wxRichTextBuffer& obj); -static int LUACALL wxLua_wxRichTextBuffer_op_set(lua_State *L) -{ - // const wxRichTextBuffer obj - const wxRichTextBuffer * obj = (const wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextBuffer * self = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call op_set - (*self)=(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBuffer_constructor1[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBuffer_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_constructor1[1] = {{ wxLua_wxRichTextBuffer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_constructor1 }}; -// wxRichTextBuffer(const wxRichTextBuffer& obj); -static int LUACALL wxLua_wxRichTextBuffer_constructor1(lua_State *L) -{ - // const wxRichTextBuffer obj - const wxRichTextBuffer * obj = (const wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer); - // call constructor - wxRichTextBuffer* returns = new wxRichTextBuffer(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBuffer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - -static int LUACALL wxLua_wxRichTextBuffer_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_constructor[1] = {{ wxLua_wxRichTextBuffer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextBuffer(); -static int LUACALL wxLua_wxRichTextBuffer_constructor(lua_State *L) -{ - // call constructor - wxRichTextBuffer* returns = new wxRichTextBuffer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBuffer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - - - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_Dump_overload[] = -{ - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { wxLua_wxRichTextBuffer_Dump1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_Dump1 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) - { wxLua_wxRichTextBuffer_Dump, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_Dump }, -}; -static int s_wxluafunc_wxLua_wxRichTextBuffer_Dump_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBuffer_Dump_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler_overload[] = -{ - { wxLua_wxRichTextBuffer_FindHandler2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler2 }, - { wxLua_wxRichTextBuffer_FindHandler1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler1 }, - { wxLua_wxRichTextBuffer_FindHandler, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_FindHandler }, -}; -static int s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable_overload[] = -{ - { wxLua_wxRichTextBuffer_GetFontTable1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontTable1 }, - { wxLua_wxRichTextBuffer_GetFontTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_GetFontTable }, -}; -static int s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextBuffer_LoadFile1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_LoadFile1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextBuffer_LoadFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_LoadFile }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextBuffer_SaveFile1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_SaveFile1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextBuffer_SaveFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextBuffer_SaveFile }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBuffer_constructor_overload[] = -{ - { wxLua_wxRichTextBuffer_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBuffer_constructor1 }, - { wxLua_wxRichTextBuffer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextBuffer_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBuffer_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextBuffer_delete_function(void** p) -{ - wxRichTextBuffer* o = (wxRichTextBuffer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextBuffer_methods[] = { - { "AddDrawingHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_AddDrawingHandler, 1, NULL }, - { "AddEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_AddEventHandler, 1, NULL }, - { "AddFieldType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_AddFieldType, 1, NULL }, - { "AddHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_AddHandler, 1, NULL }, - { "AddParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_AddParagraph, 1, NULL }, - { "BatchingUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BatchingUndo, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "BeginAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginAlignment, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "BeginBatchUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginBatchUndo, 1, NULL }, - { "BeginBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginBold, 1, NULL }, - { "BeginCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginCharacterStyle, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "BeginFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "BeginFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginFontSize, 1, NULL }, - { "BeginItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginItalic, 1, NULL }, - { "BeginLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginLeftIndent, 1, NULL }, - { "BeginLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginLineSpacing, 1, NULL }, - { "BeginListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginListStyle, 1, NULL }, - { "BeginNumberedBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginNumberedBullet, 1, NULL }, - { "BeginParagraphSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginParagraphSpacing, 1, NULL }, - { "BeginParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginParagraphStyle, 1, NULL }, - { "BeginRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginRightIndent, 1, NULL }, - { "BeginStandardBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginStandardBullet, 1, NULL }, - { "BeginStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginStyle, 1, NULL }, - { "BeginSuppressUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginSuppressUndo, 1, NULL }, - { "BeginSymbolBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginSymbolBullet, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "BeginTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "BeginURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginURL, 1, NULL }, - { "BeginUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_BeginUnderline, 1, NULL }, - { "CanPasteFromClipboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_CanPasteFromClipboard, 1, NULL }, - { "CleanUpDrawingHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_CleanUpDrawingHandlers, 1, NULL }, - { "CleanUpFieldTypes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_CleanUpFieldTypes, 1, NULL }, - { "CleanUpHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_CleanUpHandlers, 1, NULL }, - { "ClearEventHandlers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_ClearEventHandlers, 1, NULL }, - { "ClearStyleStack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_ClearStyleStack, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_Copy, 1, NULL }, - { "CopyToClipboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_CopyToClipboard, 1, NULL }, - { "DeleteRangeWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_DeleteRangeWithUndo, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Dump", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_Dump_overload, s_wxluafunc_wxLua_wxRichTextBuffer_Dump_overload_count, 0 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EndAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndAlignment, 1, NULL }, - { "EndAllStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndAllStyles, 1, NULL }, - { "EndBatchUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndBatchUndo, 1, NULL }, - { "EndBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndBold, 1, NULL }, - { "EndCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndCharacterStyle, 1, NULL }, - { "EndFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndFont, 1, NULL }, - { "EndFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndFontSize, 1, NULL }, - { "EndItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndItalic, 1, NULL }, - { "EndLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndLeftIndent, 1, NULL }, - { "EndLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndLineSpacing, 1, NULL }, - { "EndListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndListStyle, 1, NULL }, - { "EndNumberedBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndNumberedBullet, 1, NULL }, - { "EndParagraphSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndParagraphSpacing, 1, NULL }, - { "EndParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndParagraphStyle, 1, NULL }, - { "EndRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndRightIndent, 1, NULL }, - { "EndStandardBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndStandardBullet, 1, NULL }, - { "EndStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndStyle, 1, NULL }, - { "EndSuppressUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndSuppressUndo, 1, NULL }, - { "EndSymbolBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndSymbolBullet, 1, NULL }, - { "EndTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndTextColour, 1, NULL }, - { "EndURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndURL, 1, NULL }, - { "EndUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_EndUnderline, 1, NULL }, - { "FindDrawingHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_FindDrawingHandler, 1, NULL }, - { "FindFieldType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_FindFieldType, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler_overload, s_wxluafunc_wxLua_wxRichTextBuffer_FindHandler_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "FindHandlerFilenameOrType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_FindHandlerFilenameOrType, 1, NULL }, - { "GetBatchedCommand", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetBatchedCommand, 1, NULL }, - { "GetBulletProportion", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetBulletProportion, 1, NULL }, - { "GetBulletRightMargin", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetBulletRightMargin, 1, NULL }, - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetCommandProcessor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetCommandProcessor, 1, NULL }, -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetDimensionScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetDimensionScale, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetDrawingHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetDrawingHandlers, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetExtWildcard", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetExtWildcard, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFieldTypes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetFieldTypes, 1, NULL }, - { "GetFloatingLayoutMode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetFloatingLayoutMode, 1, NULL }, - { "GetFontScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetFontScale, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetFontTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable_overload, s_wxluafunc_wxLua_wxRichTextBuffer_GetFontTable_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetHandlerFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetHandlerFlags, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetHandlers, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRenderer", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_GetRenderer, 1, NULL }, - { "GetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetScale, 1, NULL }, - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetStyleSheet, 1, NULL }, - { "GetStyleStackSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_GetStyleStackSize, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_Init, 1, NULL }, - { "InitStandardHandlers", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_InitStandardHandlers, 1, NULL }, - { "InsertDrawingHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_InsertDrawingHandler, 1, NULL }, - { "InsertHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_InsertHandler, 1, NULL }, - { "InsertImageWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_InsertImageWithUndo, 1, NULL }, - { "InsertNewlineWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_InsertNewlineWithUndo, 1, NULL }, - { "InsertObjectWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_InsertObjectWithUndo, 1, NULL }, - { "InsertParagraphsWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_InsertParagraphsWithUndo, 1, NULL }, - { "InsertTextWithUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_InsertTextWithUndo, 1, NULL }, - { "IsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_IsModified, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile_overload, s_wxluafunc_wxLua_wxRichTextBuffer_LoadFile_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "Modify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_Modify, 1, NULL }, - { "PasteFromClipboard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_PasteFromClipboard, 1, NULL }, - { "PopStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_PopStyleSheet, 1, NULL }, - { "PushStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_PushStyleSheet, 1, NULL }, - { "RemoveDrawingHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_RemoveDrawingHandler, 1, NULL }, - { "RemoveEventHandler", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_RemoveEventHandler, 1, NULL }, - { "RemoveFieldType", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_RemoveFieldType, 1, NULL }, - { "RemoveHandler", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_RemoveHandler, 1, NULL }, - { "ResetAndClearCommands", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_ResetAndClearCommands, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile_overload, s_wxluafunc_wxLua_wxRichTextBuffer_SaveFile_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "SendEvent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SendEvent, 1, NULL }, - { "SetBulletProportion", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_SetBulletProportion, 1, NULL }, - { "SetBulletRightMargin", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_SetBulletRightMargin, 1, NULL }, - { "SetDimensionScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetDimensionScale, 1, NULL }, - { "SetFloatingLayoutMode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_SetFloatingLayoutMode, 1, NULL }, - { "SetFontScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetFontScale, 1, NULL }, - { "SetFontTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetFontTable, 1, NULL }, - { "SetHandlerFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetHandlerFlags, 1, NULL }, - { "SetRenderer", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBuffer_SetRenderer, 1, NULL }, - { "SetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetScale, 1, NULL }, - { "SetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetStyleSheet, 1, NULL }, - { "SetStyleSheetAndNotify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SetStyleSheetAndNotify, 1, NULL }, - { "SubmitAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SubmitAction, 1, NULL }, - { "SuppressingUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_SuppressingUndo, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextBuffer_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBuffer_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextBuffer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextBuffer_constructor_overload, s_wxluafunc_wxLua_wxRichTextBuffer_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextBuffer_methodCount = sizeof(wxRichTextBuffer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextCell -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextCell' -int wxluatype_wxRichTextCell = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_AdjustAttributes[] = { &wxluatype_wxRichTextCell, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextCell_AdjustAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_AdjustAttributes[1] = {{ wxLua_wxRichTextCell_AdjustAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCell_AdjustAttributes }}; -// virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextCell_AdjustAttributes(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call AdjustAttributes - bool returns = (self->AdjustAttributes(*attr, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_CanEditProperties[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_CanEditProperties[1] = {{ wxLua_wxRichTextCell_CanEditProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_CanEditProperties }}; -// virtual bool CanEditProperties() const; -static int LUACALL wxLua_wxRichTextCell_CanEditProperties(lua_State *L) -{ - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call CanEditProperties - bool returns = (self->CanEditProperties()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_Clone[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_Clone[1] = {{ wxLua_wxRichTextCell_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextCell_Clone(lua_State *L) -{ - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_Copy[] = { &wxluatype_wxRichTextCell, &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_Copy[1] = {{ wxLua_wxRichTextCell_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCell_Copy }}; -// void Copy(const wxRichTextCell& obj); -static int LUACALL wxLua_wxRichTextCell_Copy(lua_State *L) -{ - // const wxRichTextCell obj - const wxRichTextCell * obj = (const wxRichTextCell *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCell); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call Copy - self->Copy(*obj); - - return 0; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_Draw[] = { &wxluatype_wxRichTextCell, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCell_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_Draw[1] = {{ wxLua_wxRichTextCell_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextCell_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextCell_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_EditProperties[] = { &wxluatype_wxRichTextCell, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextCell_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_EditProperties[1] = {{ wxLua_wxRichTextCell_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCell_EditProperties }}; -// virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextCell_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call EditProperties - bool returns = (self->EditProperties(parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_GetColSpan[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_GetColSpan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_GetColSpan[1] = {{ wxLua_wxRichTextCell_GetColSpan, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_GetColSpan }}; -// int GetColSpan() const; -static int LUACALL wxLua_wxRichTextCell_GetColSpan(lua_State *L) -{ - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call GetColSpan - int returns = (self->GetColSpan()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextCell_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel() const; -static int LUACALL wxLua_wxRichTextCell_GetPropertiesMenuLabel(lua_State *L) -{ - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_GetRowSpan[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_GetRowSpan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_GetRowSpan[1] = {{ wxLua_wxRichTextCell_GetRowSpan, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_GetRowSpan }}; -// int GetRowSpan() const; -static int LUACALL wxLua_wxRichTextCell_GetRowSpan(lua_State *L) -{ - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call GetRowSpan - int returns = (self->GetRowSpan()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_GetXMLNodeName[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_GetXMLNodeName[1] = {{ wxLua_wxRichTextCell_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextCell_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_HitTest[] = { &wxluatype_wxRichTextCell, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCell_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_HitTest[1] = {{ wxLua_wxRichTextCell_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextCell_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextCell_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_SetColSpan[] = { &wxluatype_wxRichTextCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCell_SetColSpan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_SetColSpan[1] = {{ wxLua_wxRichTextCell_SetColSpan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCell_SetColSpan }}; -// void SetColSpan(long span); -static int LUACALL wxLua_wxRichTextCell_SetColSpan(lua_State *L) -{ - // long span - long span = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call SetColSpan - self->SetColSpan(span); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_SetRowSpan[] = { &wxluatype_wxRichTextCell, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCell_SetRowSpan(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_SetRowSpan[1] = {{ wxLua_wxRichTextCell_SetRowSpan, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCell_SetRowSpan }}; -// void SetRowSpan(long span); -static int LUACALL wxLua_wxRichTextCell_SetRowSpan(lua_State *L) -{ - // long span - long span = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCell * self = (wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call SetRowSpan - self->SetRowSpan(span); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_delete[] = { &wxluatype_wxRichTextCell, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_constructor1[] = { &wxluatype_wxRichTextCell, NULL }; -static int LUACALL wxLua_wxRichTextCell_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_constructor1[1] = {{ wxLua_wxRichTextCell_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_constructor1 }}; -// wxRichTextCell(const wxRichTextCell& obj); -static int LUACALL wxLua_wxRichTextCell_constructor1(lua_State *L) -{ - // const wxRichTextCell obj - const wxRichTextCell * obj = (const wxRichTextCell *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCell); - // call constructor - wxRichTextCell* returns = new wxRichTextCell(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextCell); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCell_constructor[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextCell_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_constructor[1] = {{ wxLua_wxRichTextCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextCell_constructor }}; -// wxRichTextCell(wxRichTextObject* parent = NULL); -static int LUACALL wxLua_wxRichTextCell_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 1 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject) : NULL); - // call constructor - wxRichTextCell* returns = new wxRichTextCell(parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextCell); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCell); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCell_constructor_overload[] = -{ - { wxLua_wxRichTextCell_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCell_constructor1 }, - { wxLua_wxRichTextCell_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextCell_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextCell_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCell_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextCell_delete_function(void** p) -{ - wxRichTextCell* o = (wxRichTextCell*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextCell_methods[] = { - { "AdjustAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_AdjustAttributes, 1, NULL }, - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_CanEditProperties, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_EditProperties, 1, NULL }, - { "GetColSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_GetColSpan, 1, NULL }, - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_GetPropertiesMenuLabel, 1, NULL }, - { "GetRowSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_GetRowSpan, 1, NULL }, - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_GetXMLNodeName, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetColSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_SetColSpan, 1, NULL }, - { "SetRowSpan", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCell_SetRowSpan, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextCell_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextCell", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextCell_constructor_overload, s_wxluafunc_wxLua_wxRichTextCell_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextCell_methodCount = sizeof(wxRichTextCell_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextObjectPtrArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextObjectPtrArray' -int wxluatype_wxRichTextObjectPtrArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Add[] = { &wxluatype_wxRichTextObjectPtrArray, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Add[1] = {{ wxLua_wxRichTextObjectPtrArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Add }}; -// void Add(wxRichTextObject* item); -static int LUACALL wxLua_wxRichTextObjectPtrArray_Add(lua_State *L) -{ - // wxRichTextObject item - wxRichTextObject * item = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call Add - self->Add(item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Clear[] = { &wxluatype_wxRichTextObjectPtrArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Clear[1] = {{ wxLua_wxRichTextObjectPtrArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextObjectPtrArray_Clear(lua_State *L) -{ - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_GetCount[] = { &wxluatype_wxRichTextObjectPtrArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_GetCount[1] = {{ wxLua_wxRichTextObjectPtrArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextObjectPtrArray_GetCount(lua_State *L) -{ - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Insert[] = { &wxluatype_wxRichTextObjectPtrArray, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Insert[1] = {{ wxLua_wxRichTextObjectPtrArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Insert }}; -// void Insert(wxRichTextObject* item, int nIndex); -static int LUACALL wxLua_wxRichTextObjectPtrArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // wxRichTextObject item - wxRichTextObject * item = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call Insert - self->Insert(item, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_IsEmpty[] = { &wxluatype_wxRichTextObjectPtrArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_IsEmpty[1] = {{ wxLua_wxRichTextObjectPtrArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxRichTextObjectPtrArray_IsEmpty(lua_State *L) -{ - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Item[] = { &wxluatype_wxRichTextObjectPtrArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Item[1] = {{ wxLua_wxRichTextObjectPtrArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_Item }}; -// wxRichTextObject* Item(size_t nIndex) const; -static int LUACALL wxLua_wxRichTextObjectPtrArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call Item - wxRichTextObject* returns = (wxRichTextObject*)self->Item(nIndex); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_RemoveAt[] = { &wxluatype_wxRichTextObjectPtrArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_RemoveAt[1] = {{ wxLua_wxRichTextObjectPtrArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxRichTextObjectPtrArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextObjectPtrArray * self = (wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_delete[] = { &wxluatype_wxRichTextObjectPtrArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_constructor1[] = { &wxluatype_wxRichTextObjectPtrArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArray_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor1[1] = {{ wxLua_wxRichTextObjectPtrArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_constructor1 }}; -// wxRichTextObjectPtrArray(const wxRichTextObjectPtrArray& array); -static int LUACALL wxLua_wxRichTextObjectPtrArray_constructor1(lua_State *L) -{ - // const wxRichTextObjectPtrArray array - const wxRichTextObjectPtrArray * array = (const wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArray); - // call constructor - wxRichTextObjectPtrArray* returns = new wxRichTextObjectPtrArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPtrArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArray); - - return 1; -} - -static int LUACALL wxLua_wxRichTextObjectPtrArray_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor[1] = {{ wxLua_wxRichTextObjectPtrArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextObjectPtrArray(); -static int LUACALL wxLua_wxRichTextObjectPtrArray_constructor(lua_State *L) -{ - // call constructor - wxRichTextObjectPtrArray* returns = new wxRichTextObjectPtrArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPtrArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor_overload[] = -{ - { wxLua_wxRichTextObjectPtrArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArray_constructor1 }, - { wxLua_wxRichTextObjectPtrArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextObjectPtrArray_delete_function(void** p) -{ - wxRichTextObjectPtrArray* o = (wxRichTextObjectPtrArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextObjectPtrArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextObjectPtrArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor_overload, s_wxluafunc_wxLua_wxRichTextObjectPtrArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextObjectPtrArray_methodCount = sizeof(wxRichTextObjectPtrArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextObjectPtrArrayArray -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextObjectPtrArrayArray' -int wxluatype_wxRichTextObjectPtrArrayArray = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Add[] = { &wxluatype_wxRichTextObjectPtrArrayArray, &wxluatype_wxRichTextObjectPtrArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Add(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Add[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_Add, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Add }}; -// void Add(const wxRichTextObjectPtrArray& item); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Add(lua_State *L) -{ - // const wxRichTextObjectPtrArray item - const wxRichTextObjectPtrArray * item = (const wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObjectPtrArray); - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call Add - self->Add(*item); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Clear[] = { &wxluatype_wxRichTextObjectPtrArrayArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Clear[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Clear(lua_State *L) -{ - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_GetCount[] = { &wxluatype_wxRichTextObjectPtrArrayArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_GetCount[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_GetCount(lua_State *L) -{ - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Insert[] = { &wxluatype_wxRichTextObjectPtrArrayArray, &wxluatype_wxRichTextObjectPtrArray, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Insert(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Insert[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_Insert, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Insert }}; -// void Insert(const wxRichTextObjectPtrArray& item, int nIndex); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Insert(lua_State *L) -{ - // int nIndex - int nIndex = (int)wxlua_getnumbertype(L, 3); - // const wxRichTextObjectPtrArray item - const wxRichTextObjectPtrArray * item = (const wxRichTextObjectPtrArray *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObjectPtrArray); - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call Insert - self->Insert(*item, nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_IsEmpty[] = { &wxluatype_wxRichTextObjectPtrArrayArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_IsEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_IsEmpty[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_IsEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_IsEmpty }}; -// bool IsEmpty(); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_IsEmpty(lua_State *L) -{ - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call IsEmpty - bool returns = (self->IsEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Item[] = { &wxluatype_wxRichTextObjectPtrArrayArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Item(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Item[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_Item, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_Item }}; -// wxRichTextObjectPtrArray Item(size_t nIndex) const; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_Item(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call Item - // allocate a new object using the copy constructor - wxRichTextObjectPtrArray* returns = new wxRichTextObjectPtrArray(self->Item(nIndex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPtrArray); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_RemoveAt[] = { &wxluatype_wxRichTextObjectPtrArrayArray, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_RemoveAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_RemoveAt[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_RemoveAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_RemoveAt }}; -// void RemoveAt(size_t nIndex); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_RemoveAt(lua_State *L) -{ - // size_t nIndex - size_t nIndex = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextObjectPtrArrayArray * self = (wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call RemoveAt - self->RemoveAt(nIndex); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_delete[] = { &wxluatype_wxRichTextObjectPtrArrayArray, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_constructor1[] = { &wxluatype_wxRichTextObjectPtrArrayArray, NULL }; -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor1[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_constructor1 }}; -// wxRichTextObjectPtrArrayArray(const wxRichTextObjectPtrArrayArray& array); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_constructor1(lua_State *L) -{ - // const wxRichTextObjectPtrArrayArray array - const wxRichTextObjectPtrArrayArray * array = (const wxRichTextObjectPtrArrayArray *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPtrArrayArray); - // call constructor - wxRichTextObjectPtrArrayArray* returns = new wxRichTextObjectPtrArrayArray(*array); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPtrArrayArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArrayArray); - - return 1; -} - -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor[1] = {{ wxLua_wxRichTextObjectPtrArrayArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextObjectPtrArrayArray(); -static int LUACALL wxLua_wxRichTextObjectPtrArrayArray_constructor(lua_State *L) -{ - // call constructor - wxRichTextObjectPtrArrayArray* returns = new wxRichTextObjectPtrArrayArray(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPtrArrayArray); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArrayArray); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor_overload[] = -{ - { wxLua_wxRichTextObjectPtrArrayArray_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPtrArrayArray_constructor1 }, - { wxLua_wxRichTextObjectPtrArrayArray_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextObjectPtrArrayArray_delete_function(void** p) -{ - wxRichTextObjectPtrArrayArray* o = (wxRichTextObjectPtrArrayArray*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextObjectPtrArrayArray_methods[] = { - { "Add", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Add, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_GetCount, 1, NULL }, - { "Insert", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Insert, 1, NULL }, - { "IsEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_IsEmpty, 1, NULL }, - { "Item", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_Item, 1, NULL }, - { "RemoveAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_RemoveAt, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextObjectPtrArrayArray", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor_overload, s_wxluafunc_wxLua_wxRichTextObjectPtrArrayArray_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextObjectPtrArrayArray_methodCount = sizeof(wxRichTextObjectPtrArrayArray_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextTable -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextTable' -int wxluatype_wxRichTextTable = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_AcceptsFocus[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_AcceptsFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_AcceptsFocus[1] = {{ wxLua_wxRichTextTable_AcceptsFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_AcceptsFocus }}; -// virtual bool AcceptsFocus() const; -static int LUACALL wxLua_wxRichTextTable_AcceptsFocus(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call AcceptsFocus - bool returns = (self->AcceptsFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_AddColumns[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextTable_AddColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_AddColumns[1] = {{ wxLua_wxRichTextTable_AddColumns, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextTable_AddColumns }}; -// virtual bool AddColumns(int startCol, int noCols, const wxRichTextAttr& attr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextTable_AddColumns(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr attr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * attr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // int noCols - int noCols = (int)wxlua_getnumbertype(L, 3); - // int startCol - int startCol = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call AddColumns - bool returns = (self->AddColumns(startCol, noCols, *attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_AddRows[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextTable_AddRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_AddRows[1] = {{ wxLua_wxRichTextTable_AddRows, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextTable_AddRows }}; -// virtual bool AddRows(int startRow, int noRows, const wxRichTextAttr& attr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextTable_AddRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr attr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * attr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // int noRows - int noRows = (int)wxlua_getnumbertype(L, 3); - // int startRow - int startRow = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call AddRows - bool returns = (self->AddRows(startRow, noRows, *attr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_AdjustAttributes[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextDrawingContext, NULL }; -static int LUACALL wxLua_wxRichTextTable_AdjustAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_AdjustAttributes[1] = {{ wxLua_wxRichTextTable_AdjustAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_AdjustAttributes }}; -// virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context); -static int LUACALL wxLua_wxRichTextTable_AdjustAttributes(lua_State *L) -{ - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call AdjustAttributes - bool returns = (self->AdjustAttributes(*attr, *context)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_CalculateRange[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextTable_CalculateRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_CalculateRange[1] = {{ wxLua_wxRichTextTable_CalculateRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_CalculateRange }}; -// virtual void CalculateRange(long start, long& end); -static int LUACALL wxLua_wxRichTextTable_CalculateRange(lua_State *L) -{ - // long end - long * end = (long *)wxlua_touserdata(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call CalculateRange - self->CalculateRange(start, *end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_CanEditProperties[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_CanEditProperties[1] = {{ wxLua_wxRichTextTable_CanEditProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_CanEditProperties }}; -// virtual bool CanEditProperties() const; -static int LUACALL wxLua_wxRichTextTable_CanEditProperties(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call CanEditProperties - bool returns = (self->CanEditProperties()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_ClearTable[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_ClearTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_ClearTable[1] = {{ wxLua_wxRichTextTable_ClearTable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_ClearTable }}; -// virtual void ClearTable(); -static int LUACALL wxLua_wxRichTextTable_ClearTable(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call ClearTable - self->ClearTable(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_Clone[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_Clone[1] = {{ wxLua_wxRichTextTable_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_Clone }}; -// virtual wxRichTextObject* Clone() const; -static int LUACALL wxLua_wxRichTextTable_Clone(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call Clone - wxRichTextObject* returns = (wxRichTextObject*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_Copy[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_Copy[1] = {{ wxLua_wxRichTextTable_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_Copy }}; -// void Copy(const wxRichTextTable& obj); -static int LUACALL wxLua_wxRichTextTable_Copy(lua_State *L) -{ - // const wxRichTextTable obj - const wxRichTextTable * obj = (const wxRichTextTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextTable); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call Copy - self->Copy(*obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_CreateTable[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_CreateTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_CreateTable[1] = {{ wxLua_wxRichTextTable_CreateTable, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_CreateTable }}; -// virtual bool CreateTable(int rows, int cols); -static int LUACALL wxLua_wxRichTextTable_CreateTable(lua_State *L) -{ - // int cols - int cols = (int)wxlua_getnumbertype(L, 3); - // int rows - int rows = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call CreateTable - bool returns = (self->CreateTable(rows, cols)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_DeleteColumns[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_DeleteColumns(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_DeleteColumns[1] = {{ wxLua_wxRichTextTable_DeleteColumns, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextTable_DeleteColumns }}; -// virtual bool DeleteColumns(int startCol, int noCols = 1); -static int LUACALL wxLua_wxRichTextTable_DeleteColumns(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int noCols = 1 - int noCols = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // int startCol - int startCol = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call DeleteColumns - bool returns = (self->DeleteColumns(startCol, noCols)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_DeleteRange[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextTable_DeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_DeleteRange[1] = {{ wxLua_wxRichTextTable_DeleteRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_DeleteRange }}; -// virtual bool DeleteRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextTable_DeleteRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call DeleteRange - bool returns = (self->DeleteRange(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_DeleteRows[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_DeleteRows(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_DeleteRows[1] = {{ wxLua_wxRichTextTable_DeleteRows, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextTable_DeleteRows }}; -// virtual bool DeleteRows(int startRow, int noRows = 1); -static int LUACALL wxLua_wxRichTextTable_DeleteRows(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int noRows = 1 - int noRows = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // int startRow - int startRow = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call DeleteRows - bool returns = (self->DeleteRows(startRow, noRows)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_Draw[] = { &wxluatype_wxRichTextTable, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextSelection, &wxluatype_wxRect, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_Draw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_Draw[1] = {{ wxLua_wxRichTextTable_Draw, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxRichTextTable_Draw }}; -// virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style); -static int LUACALL wxLua_wxRichTextTable_Draw(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 8); - // int descent - int descent = (int)wxlua_getnumbertype(L, 7); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRect); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextSelection); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextRange); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call Draw - bool returns = (self->Draw(*dc, *context, *range, *selection, *rect, descent, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_EditProperties[] = { &wxluatype_wxRichTextTable, &wxluatype_wxWindow, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextTable_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_EditProperties[1] = {{ wxLua_wxRichTextTable_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_EditProperties }}; -// virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextTable_EditProperties(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call EditProperties - bool returns = (self->EditProperties(parent, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_ExportXML1[] = { &wxluatype_wxRichTextTable, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextTable_ExportXML1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_ExportXML1[1] = {{ wxLua_wxRichTextTable_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_ExportXML1 }}; -// virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextTable_ExportXML1(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextXMLHandler); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call ExportXML - bool returns = (self->ExportXML(parent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_ExportXML[] = { &wxluatype_wxRichTextTable, &wxluatype_wxOutputStream, &wxluatype_TNUMBER, &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextTable_ExportXML(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_ExportXML[1] = {{ wxLua_wxRichTextTable_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextTable_ExportXML }}; -// virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler); -static int LUACALL wxLua_wxRichTextTable_ExportXML(lua_State *L) -{ - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // int indent - int indent = (int)wxlua_getnumbertype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call ExportXML - bool returns = (self->ExportXML(*stream, indent, handler)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_FindPosition[] = { &wxluatype_wxRichTextTable, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextTable_FindPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_FindPosition[1] = {{ wxLua_wxRichTextTable_FindPosition, WXLUAMETHOD_METHOD, 7, 7, s_wxluatypeArray_wxLua_wxRichTextTable_FindPosition }}; -// virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart); -static int LUACALL wxLua_wxRichTextTable_FindPosition(lua_State *L) -{ - // bool forceLineStart - bool forceLineStart = wxlua_getbooleantype(L, 7); - // int height - int * height = (int *)wxlua_touserdata(L, 6); - // wxPoint pt - wxPoint * pt = (wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // long index - long index = (long)wxlua_getnumbertype(L, 4); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call FindPosition - bool returns = (self->FindPosition(*dc, *context, index, *pt, height, forceLineStart)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetCell1[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetCell1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetCell1[1] = {{ wxLua_wxRichTextTable_GetCell1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_GetCell1 }}; -// virtual wxRichTextCell* GetCell(long pos) const; -static int LUACALL wxLua_wxRichTextTable_GetCell1(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetCell - wxRichTextCell* returns = (wxRichTextCell*)self->GetCell(pos); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetCell[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetCell(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetCell[1] = {{ wxLua_wxRichTextTable_GetCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_GetCell }}; -// virtual wxRichTextCell* GetCell(int row, int col) const; -static int LUACALL wxLua_wxRichTextTable_GetCell(lua_State *L) -{ - // int col - int col = (int)wxlua_getnumbertype(L, 3); - // int row - int row = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetCell - wxRichTextCell* returns = (wxRichTextCell*)self->GetCell(row, col); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetCellRowColumnPosition[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetCellRowColumnPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetCellRowColumnPosition[1] = {{ wxLua_wxRichTextTable_GetCellRowColumnPosition, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextTable_GetCellRowColumnPosition }}; -// virtual bool GetCellRowColumnPosition(long pos, int& row, int& col) const; -static int LUACALL wxLua_wxRichTextTable_GetCellRowColumnPosition(lua_State *L) -{ - // int col - int * col = (int *)wxlua_touserdata(L, 4); - // int row - int * row = (int *)wxlua_touserdata(L, 3); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetCellRowColumnPosition - bool returns = (self->GetCellRowColumnPosition(pos, *row, *col)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetCells[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetCells(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetCells[1] = {{ wxLua_wxRichTextTable_GetCells, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_GetCells }}; -// wxRichTextObjectPtrArrayArray& GetCells(); -static int LUACALL wxLua_wxRichTextTable_GetCells(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetCells - wxRichTextObjectPtrArrayArray* returns = (wxRichTextObjectPtrArrayArray*)&self->GetCells(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArrayArray); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetColumnCount[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetColumnCount[1] = {{ wxLua_wxRichTextTable_GetColumnCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_GetColumnCount }}; -// int GetColumnCount() const; -static int LUACALL wxLua_wxRichTextTable_GetColumnCount(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetColumnCount - int returns = (self->GetColumnCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetFocusedCell[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetFocusedCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetFocusedCell[1] = {{ wxLua_wxRichTextTable_GetFocusedCell, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_GetFocusedCell }}; -// virtual wxPosition GetFocusedCell() const; -static int LUACALL wxLua_wxRichTextTable_GetFocusedCell(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetFocusedCell - // allocate a new object using the copy constructor - wxPosition* returns = new wxPosition(self->GetFocusedCell()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPosition); - - return 1; -} - -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextTable_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel() const; -static int LUACALL wxLua_wxRichTextTable_GetPropertiesMenuLabel(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetRangeSize[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextRange, &wxluatype_wxSize, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetRangeSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetRangeSize[1] = {{ wxLua_wxRichTextTable_GetRangeSize, WXLUAMETHOD_METHOD, 7, 10, s_wxluatypeArray_wxLua_wxRichTextTable_GetRangeSize }}; -// virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxNULLPOINT, const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const; -static int LUACALL wxLua_wxRichTextTable_GetRangeSize(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt partialExtents = NULL - wxArrayInt * partialExtents = (argCount >= 10 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 10, wxluatype_wxArrayInt) : NULL); - // const wxSize parentSize = wxDefaultSize - const wxSize * parentSize = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint position = wxNULLPOINT - const wxPoint * position = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxNULLPOINT); - // int flags - int flags = (int)wxlua_getnumbertype(L, 7); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int descent - int * descent = (int *)wxlua_touserdata(L, 4); - // wxSize size - wxSize * size = (wxSize *)wxluaT_getuserdatatype(L, 3, wxluatype_wxSize); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetRangeSize - bool returns = (self->GetRangeSize(*range, *size, *descent, *dc, *context, flags, *position, *parentSize, partialExtents)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetRowCount[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetRowCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetRowCount[1] = {{ wxLua_wxRichTextTable_GetRowCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_GetRowCount }}; -// int GetRowCount() const; -static int LUACALL wxLua_wxRichTextTable_GetRowCount(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetRowCount - int returns = (self->GetRowCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetSelection[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetSelection[1] = {{ wxLua_wxRichTextTable_GetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_GetSelection }}; -// virtual wxRichTextSelection GetSelection(long start, long end) const; -static int LUACALL wxLua_wxRichTextTable_GetSelection(lua_State *L) -{ - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetSelection - // allocate a new object using the copy constructor - wxRichTextSelection* returns = new wxRichTextSelection(self->GetSelection(start, end)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextSelection); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetTextForRange[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetTextForRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetTextForRange[1] = {{ wxLua_wxRichTextTable_GetTextForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_GetTextForRange }}; -// virtual wxString GetTextForRange(const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextTable_GetTextForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetTextForRange - wxString returns = (self->GetTextForRange(*range)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_GetXMLNodeName[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_GetXMLNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetXMLNodeName[1] = {{ wxLua_wxRichTextTable_GetXMLNodeName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_GetXMLNodeName }}; -// virtual wxString GetXMLNodeName() const; -static int LUACALL wxLua_wxRichTextTable_GetXMLNodeName(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call GetXMLNodeName - wxString returns = (self->GetXMLNodeName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_HandlesChildSelections[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_HandlesChildSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_HandlesChildSelections[1] = {{ wxLua_wxRichTextTable_HandlesChildSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_HandlesChildSelections }}; -// virtual bool HandlesChildSelections() const; -static int LUACALL wxLua_wxRichTextTable_HandlesChildSelections(lua_State *L) -{ - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call HandlesChildSelections - bool returns = (self->HandlesChildSelections()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_HitTest[] = { &wxluatype_wxRichTextTable, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_HitTest(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_HitTest[1] = {{ wxLua_wxRichTextTable_HitTest, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxRichTextTable_HitTest }}; -// virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0); -static int LUACALL wxLua_wxRichTextTable_HitTest(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 8 ? (int)wxlua_getnumbertype(L, 8) : 0); - // wxRichTextObject contextObj - wxRichTextObject ** contextObj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 7, wxluatype_wxRichTextObject); - // wxRichTextObject obj - wxRichTextObject ** obj = (wxRichTextObject **)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextObject); - // long textPosition - long * textPosition = (long *)wxlua_touserdata(L, 5); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call HitTest - int returns = (self->HitTest(*dc, *context, *pt, *textPosition, obj, contextObj, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_ImportFromXML[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextBuffer, &wxluatype_wxXmlNode, &wxluatype_wxRichTextXMLHandler, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextTable_ImportFromXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_ImportFromXML[1] = {{ wxLua_wxRichTextTable_ImportFromXML, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextTable_ImportFromXML }}; -// virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse); -static int LUACALL wxLua_wxRichTextTable_ImportFromXML(lua_State *L) -{ - // bool recurse - bool * recurse = (bool *)wxlua_touserdata(L, 5); - // wxRichTextXMLHandler handler - wxRichTextXMLHandler * handler = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextXMLHandler); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call ImportFromXML - bool returns = (self->ImportFromXML(buffer, node, handler, recurse)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_Layout[] = { &wxluatype_wxRichTextTable, &wxluatype_wxDC, &wxluatype_wxRichTextDrawingContext, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_Layout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_Layout[1] = {{ wxLua_wxRichTextTable_Layout, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextTable_Layout }}; -// virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style); -static int LUACALL wxLua_wxRichTextTable_Layout(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 6); - // const wxRect parentRect - const wxRect * parentRect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRichTextDrawingContext context - wxRichTextDrawingContext * context = (wxRichTextDrawingContext *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextDrawingContext); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call Layout - bool returns = (self->Layout(*dc, *context, *rect, *parentRect, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_SetCellStyle[] = { &wxluatype_wxRichTextTable, &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_SetCellStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_SetCellStyle[1] = {{ wxLua_wxRichTextTable_SetCellStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextTable_SetCellStyle }}; -// virtual bool SetCellStyle(const wxRichTextSelection& selection, const wxRichTextAttr& style, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextTable_SetCellStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextSelection selection - const wxRichTextSelection * selection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextSelection); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call SetCellStyle - bool returns = (self->SetCellStyle(*selection, *style, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_SetColumnCount[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_SetColumnCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_SetColumnCount[1] = {{ wxLua_wxRichTextTable_SetColumnCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_SetColumnCount }}; -// void SetColumnCount(int count); -static int LUACALL wxLua_wxRichTextTable_SetColumnCount(lua_State *L) -{ - // int count - int count = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call SetColumnCount - self->SetColumnCount(count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_SetRowCount[] = { &wxluatype_wxRichTextTable, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTable_SetRowCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_SetRowCount[1] = {{ wxLua_wxRichTextTable_SetRowCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_SetRowCount }}; -// void SetRowCount(int count); -static int LUACALL wxLua_wxRichTextTable_SetRowCount(lua_State *L) -{ - // int count - int count = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextTable * self = (wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call SetRowCount - self->SetRowCount(count); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_delete[] = { &wxluatype_wxRichTextTable, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_constructor1[] = { &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTable_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_constructor1[1] = {{ wxLua_wxRichTextTable_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_constructor1 }}; -// wxRichTextTable(const wxRichTextTable& obj); -static int LUACALL wxLua_wxRichTextTable_constructor1(lua_State *L) -{ - // const wxRichTextTable obj - const wxRichTextTable * obj = (const wxRichTextTable *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTable); - // call constructor - wxRichTextTable* returns = new wxRichTextTable(*obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextTable); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTable_constructor[] = { &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextTable_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_constructor[1] = {{ wxLua_wxRichTextTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextTable_constructor }}; -// wxRichTextTable(wxRichTextObject* parent = NULL); -static int LUACALL wxLua_wxRichTextTable_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextObject parent = NULL - wxRichTextObject * parent = (argCount >= 1 ? (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject) : NULL); - // call constructor - wxRichTextTable* returns = new wxRichTextTable(parent); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextTable); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextTable); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_ExportXML_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextTable_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_ExportXML1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) - { wxLua_wxRichTextTable_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextTable_ExportXML }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextTable_ExportXML_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTable_ExportXML_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_GetCell_overload[] = -{ - { wxLua_wxRichTextTable_GetCell1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTable_GetCell1 }, - { wxLua_wxRichTextTable_GetCell, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextTable_GetCell }, -}; -static int s_wxluafunc_wxLua_wxRichTextTable_GetCell_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTable_GetCell_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTable_constructor_overload[] = -{ - { wxLua_wxRichTextTable_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTable_constructor1 }, - { wxLua_wxRichTextTable_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextTable_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextTable_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTable_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextTable_delete_function(void** p) -{ - wxRichTextTable* o = (wxRichTextTable*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextTable_methods[] = { - { "AcceptsFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_AcceptsFocus, 1, NULL }, - { "AddColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_AddColumns, 1, NULL }, - { "AddRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_AddRows, 1, NULL }, - { "AdjustAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_AdjustAttributes, 1, NULL }, - { "CalculateRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_CalculateRange, 1, NULL }, - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_CanEditProperties, 1, NULL }, - { "ClearTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_ClearTable, 1, NULL }, - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_Copy, 1, NULL }, - { "CreateTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_CreateTable, 1, NULL }, - { "DeleteColumns", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_DeleteColumns, 1, NULL }, - { "DeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_DeleteRange, 1, NULL }, - { "DeleteRows", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_DeleteRows, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Draw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_Draw, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_EditProperties, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - { "ExportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_ExportXML_overload, s_wxluafunc_wxLua_wxRichTextTable_ExportXML_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT)) && ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML))) && (wxUSE_STREAMS)) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_FindPosition, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetCell_overload, s_wxluafunc_wxLua_wxRichTextTable_GetCell_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetCellRowColumnPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetCellRowColumnPosition, 1, NULL }, - { "GetCells", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetCells, 1, NULL }, - { "GetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetColumnCount, 1, NULL }, - -#if (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetFocusedCell", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetFocusedCell, 1, NULL }, -#endif // (wxLUA_USE_Geometry && wxUSE_GEOMETRY) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetPropertiesMenuLabel, 1, NULL }, - -#if (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRangeSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetRangeSize, 1, NULL }, -#endif // (((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxDC)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRowCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetRowCount, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetSelection, 1, NULL }, - { "GetTextForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetTextForRange, 1, NULL }, - { "GetXMLNodeName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_GetXMLNodeName, 1, NULL }, - { "HandlesChildSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_HandlesChildSelections, 1, NULL }, - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_HitTest, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportFromXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_ImportFromXML, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Layout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_Layout, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetCellStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_SetCellStyle, 1, NULL }, - { "SetColumnCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_SetColumnCount, 1, NULL }, - { "SetRowCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTable_SetRowCount, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextTable_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextTable", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextTable_constructor_overload, s_wxluafunc_wxLua_wxRichTextTable_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextTable_methodCount = sizeof(wxRichTextTable_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextTableBlock -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextTableBlock' -int wxluatype_wxRichTextTableBlock = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColEnd1[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_ColEnd1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd1[1] = {{ wxLua_wxRichTextTableBlock_ColEnd1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColEnd1 }}; -// int ColEnd() const; -static int LUACALL wxLua_wxRichTextTableBlock_ColEnd1(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call ColEnd - int returns = (self->ColEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColEnd[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_ColEnd(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd[1] = {{ wxLua_wxRichTextTableBlock_ColEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColEnd }}; -// int& ColEnd(); -static int LUACALL wxLua_wxRichTextTableBlock_ColEnd(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call ColEnd - int returns = (self->ColEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColStart1[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_ColStart1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart1[1] = {{ wxLua_wxRichTextTableBlock_ColStart1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColStart1 }}; -// int ColStart() const; -static int LUACALL wxLua_wxRichTextTableBlock_ColStart1(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call ColStart - int returns = (self->ColStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColStart[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_ColStart(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart[1] = {{ wxLua_wxRichTextTableBlock_ColStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColStart }}; -// int& ColStart(); -static int LUACALL wxLua_wxRichTextTableBlock_ColStart(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call ColStart - int returns = (self->ColStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_ComputeBlockForSelection[] = { &wxluatype_wxRichTextTableBlock, &wxluatype_wxRichTextTable, &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_ComputeBlockForSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ComputeBlockForSelection[1] = {{ wxLua_wxRichTextTableBlock_ComputeBlockForSelection, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ComputeBlockForSelection }}; -// bool ComputeBlockForSelection(wxRichTextTable* table, wxRichTextCtrl* ctrl, bool requireCellSelection = true); -static int LUACALL wxLua_wxRichTextTableBlock_ComputeBlockForSelection(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool requireCellSelection = true - bool requireCellSelection = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextCtrl); - // wxRichTextTable table - wxRichTextTable * table = (wxRichTextTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextTable); - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call ComputeBlockForSelection - bool returns = (self->ComputeBlockForSelection(table, ctrl, requireCellSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_Copy[] = { &wxluatype_wxRichTextTableBlock, &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_Copy[1] = {{ wxLua_wxRichTextTableBlock_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTableBlock_Copy }}; -// void Copy(const wxRichTextTableBlock& block); -static int LUACALL wxLua_wxRichTextTableBlock_Copy(lua_State *L) -{ - // const wxRichTextTableBlock block - const wxRichTextTableBlock * block = (const wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextTableBlock); - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call Copy - self->Copy(*block); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_GetFocusedCell[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_GetFocusedCell(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_GetFocusedCell[1] = {{ wxLua_wxRichTextTableBlock_GetFocusedCell, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_GetFocusedCell }}; -// static wxRichTextCell* GetFocusedCell(wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextTableBlock_GetFocusedCell(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFocusedCell - wxRichTextCell* returns = (wxRichTextCell*)wxRichTextTableBlock::GetFocusedCell(ctrl); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCell); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_Init[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_Init[1] = {{ wxLua_wxRichTextTableBlock_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextTableBlock_Init(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_IsWholeTable[] = { &wxluatype_wxRichTextTableBlock, &wxluatype_wxRichTextTable, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_IsWholeTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_IsWholeTable[1] = {{ wxLua_wxRichTextTableBlock_IsWholeTable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTableBlock_IsWholeTable }}; -// bool IsWholeTable(wxRichTextTable* table) const; -static int LUACALL wxLua_wxRichTextTableBlock_IsWholeTable(lua_State *L) -{ - // wxRichTextTable table - wxRichTextTable * table = (wxRichTextTable *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextTable); - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call IsWholeTable - bool returns = (self->IsWholeTable(table)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowEnd1[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_RowEnd1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd1[1] = {{ wxLua_wxRichTextTableBlock_RowEnd1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowEnd1 }}; -// int RowEnd() const; -static int LUACALL wxLua_wxRichTextTableBlock_RowEnd1(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call RowEnd - int returns = (self->RowEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowEnd[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_RowEnd(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd[1] = {{ wxLua_wxRichTextTableBlock_RowEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowEnd }}; -// int& RowEnd(); -static int LUACALL wxLua_wxRichTextTableBlock_RowEnd(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call RowEnd - int returns = (self->RowEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowStart1[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_RowStart1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart1[1] = {{ wxLua_wxRichTextTableBlock_RowStart1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowStart1 }}; -// int RowStart() const; -static int LUACALL wxLua_wxRichTextTableBlock_RowStart1(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call RowStart - int returns = (self->RowStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowStart[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_RowStart(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart[1] = {{ wxLua_wxRichTextTableBlock_RowStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowStart }}; -// int& RowStart(); -static int LUACALL wxLua_wxRichTextTableBlock_RowStart(lua_State *L) -{ - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call RowStart - int returns = (self->RowStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_delete[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_op_eq[] = { &wxluatype_wxRichTextTableBlock, &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_op_eq[1] = {{ wxLua_wxRichTextTableBlock_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTableBlock_op_eq }}; -// bool operator==(const wxRichTextTableBlock& block); -static int LUACALL wxLua_wxRichTextTableBlock_op_eq(lua_State *L) -{ - // const wxRichTextTableBlock block - const wxRichTextTableBlock * block = (const wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextTableBlock); - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call op_eq - bool returns = ((*self)==(*block)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_op_set[] = { &wxluatype_wxRichTextTableBlock, &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_op_set[1] = {{ wxLua_wxRichTextTableBlock_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextTableBlock_op_set }}; -// void operator=(const wxRichTextTableBlock& block); -static int LUACALL wxLua_wxRichTextTableBlock_op_set(lua_State *L) -{ - // const wxRichTextTableBlock block - const wxRichTextTableBlock * block = (const wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextTableBlock); - // get this - wxRichTextTableBlock * self = (wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call op_set - (*self)=(*block); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_constructor2[] = { &wxluatype_wxRichTextTableBlock, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_constructor2[1] = {{ wxLua_wxRichTextTableBlock_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_constructor2 }}; -// wxRichTextTableBlock(const wxRichTextTableBlock& block); -static int LUACALL wxLua_wxRichTextTableBlock_constructor2(lua_State *L) -{ - // const wxRichTextTableBlock block - const wxRichTextTableBlock * block = (const wxRichTextTableBlock *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextTableBlock); - // call constructor - wxRichTextTableBlock* returns = new wxRichTextTableBlock(*block); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextTableBlock); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextTableBlock); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextTableBlock_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextTableBlock_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_constructor1[1] = {{ wxLua_wxRichTextTableBlock_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxRichTextTableBlock_constructor1 }}; -// wxRichTextTableBlock(int colStart, int colEnd, int rowStart, int rowEnd); -static int LUACALL wxLua_wxRichTextTableBlock_constructor1(lua_State *L) -{ - // int rowEnd - int rowEnd = (int)wxlua_getnumbertype(L, 4); - // int rowStart - int rowStart = (int)wxlua_getnumbertype(L, 3); - // int colEnd - int colEnd = (int)wxlua_getnumbertype(L, 2); - // int colStart - int colStart = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxRichTextTableBlock* returns = new wxRichTextTableBlock(colStart, colEnd, rowStart, rowEnd); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextTableBlock); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextTableBlock); - - return 1; -} - -static int LUACALL wxLua_wxRichTextTableBlock_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_constructor[1] = {{ wxLua_wxRichTextTableBlock_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextTableBlock(); -static int LUACALL wxLua_wxRichTextTableBlock_constructor(lua_State *L) -{ - // call constructor - wxRichTextTableBlock* returns = new wxRichTextTableBlock(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextTableBlock); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextTableBlock); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd_overload[] = -{ - { wxLua_wxRichTextTableBlock_ColEnd1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColEnd1 }, - { wxLua_wxRichTextTableBlock_ColEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColEnd }, -}; -static int s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart_overload[] = -{ - { wxLua_wxRichTextTableBlock_ColStart1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColStart1 }, - { wxLua_wxRichTextTableBlock_ColStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_ColStart }, -}; -static int s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd_overload[] = -{ - { wxLua_wxRichTextTableBlock_RowEnd1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowEnd1 }, - { wxLua_wxRichTextTableBlock_RowEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowEnd }, -}; -static int s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart_overload[] = -{ - { wxLua_wxRichTextTableBlock_RowStart1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowStart1 }, - { wxLua_wxRichTextTableBlock_RowStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_RowStart }, -}; -static int s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextTableBlock_constructor_overload[] = -{ - { wxLua_wxRichTextTableBlock_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextTableBlock_constructor2 }, - { wxLua_wxRichTextTableBlock_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxRichTextTableBlock_constructor1 }, - { wxLua_wxRichTextTableBlock_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextTableBlock_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextTableBlock_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextTableBlock_delete_function(void** p) -{ - wxRichTextTableBlock* o = (wxRichTextTableBlock*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextTableBlock_methods[] = { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "ColEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd_overload, s_wxluafunc_wxLua_wxRichTextTableBlock_ColEnd_overload_count, 0 }, - { "ColStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart_overload, s_wxluafunc_wxLua_wxRichTextTableBlock_ColStart_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "ComputeBlockForSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_ComputeBlockForSelection, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_Copy, 1, NULL }, - { "GetFocusedCell", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextTableBlock_GetFocusedCell, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_Init, 1, NULL }, - { "IsWholeTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_IsWholeTable, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "RowEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd_overload, s_wxluafunc_wxLua_wxRichTextTableBlock_RowEnd_overload_count, 0 }, - { "RowStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart_overload, s_wxluafunc_wxLua_wxRichTextTableBlock_RowStart_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextTableBlock_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextTableBlock_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextTableBlock", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextTableBlock_constructor_overload, s_wxluafunc_wxLua_wxRichTextTableBlock_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextTableBlock_methodCount = sizeof(wxRichTextTableBlock_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextObjectAddress -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextObjectAddress' -int wxluatype_wxRichTextObjectAddress = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_Copy[] = { &wxluatype_wxRichTextObjectAddress, &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_Copy[1] = {{ wxLua_wxRichTextObjectAddress_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_Copy }}; -// void Copy(const wxRichTextObjectAddress& address); -static int LUACALL wxLua_wxRichTextObjectAddress_Copy(lua_State *L) -{ - // const wxRichTextObjectAddress address - const wxRichTextObjectAddress * address = (const wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObjectAddress); - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call Copy - self->Copy(*address); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_Create[] = { &wxluatype_wxRichTextObjectAddress, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_Create[1] = {{ wxLua_wxRichTextObjectAddress_Create, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_Create }}; -// bool Create(wxRichTextParagraphLayoutBox* topLevelContainer, wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextObjectAddress_Create(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextParagraphLayoutBox topLevelContainer - wxRichTextParagraphLayoutBox * topLevelContainer = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call Create - bool returns = (self->Create(topLevelContainer, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetAddress1[] = { &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_GetAddress1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress1[1] = {{ wxLua_wxRichTextObjectAddress_GetAddress1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetAddress1 }}; -// const wxArrayInt& GetAddress() const; -static int LUACALL wxLua_wxRichTextObjectAddress_GetAddress1(lua_State *L) -{ - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call GetAddress - const wxArrayInt* returns = (const wxArrayInt*)&self->GetAddress(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetAddress[] = { &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_GetAddress(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress[1] = {{ wxLua_wxRichTextObjectAddress_GetAddress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetAddress }}; -// wxArrayInt& GetAddress(); -static int LUACALL wxLua_wxRichTextObjectAddress_GetAddress(lua_State *L) -{ - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call GetAddress - wxArrayInt* returns = (wxArrayInt*)&self->GetAddress(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetObject[] = { &wxluatype_wxRichTextObjectAddress, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_GetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_GetObject[1] = {{ wxLua_wxRichTextObjectAddress_GetObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetObject }}; -// wxRichTextObject* GetObject(wxRichTextParagraphLayoutBox* topLevelContainer) const; -static int LUACALL wxLua_wxRichTextObjectAddress_GetObject(lua_State *L) -{ - // wxRichTextParagraphLayoutBox topLevelContainer - wxRichTextParagraphLayoutBox * topLevelContainer = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call GetObject - wxRichTextObject* returns = (wxRichTextObject*)self->GetObject(topLevelContainer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_Init[] = { &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_Init[1] = {{ wxLua_wxRichTextObjectAddress_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextObjectAddress_Init(lua_State *L) -{ - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call Init - self->Init(); - - return 0; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_SetAddress[] = { &wxluatype_wxRichTextObjectAddress, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_SetAddress(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_SetAddress[1] = {{ wxLua_wxRichTextObjectAddress_SetAddress, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_SetAddress }}; -// void SetAddress(const wxArrayInt& address); -static int LUACALL wxLua_wxRichTextObjectAddress_SetAddress(lua_State *L) -{ - // const wxArrayInt address - wxLuaSmartwxArrayInt address = wxlua_getwxArrayInt(L, 2); - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call SetAddress - self->SetAddress(address); - - return 0; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_delete[] = { &wxluatype_wxRichTextObjectAddress, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_op_set[] = { &wxluatype_wxRichTextObjectAddress, &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_op_set[1] = {{ wxLua_wxRichTextObjectAddress_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_op_set }}; -// void operator=(const wxRichTextObjectAddress& address); -static int LUACALL wxLua_wxRichTextObjectAddress_op_set(lua_State *L) -{ - // const wxRichTextObjectAddress address - const wxRichTextObjectAddress * address = (const wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObjectAddress); - // get this - wxRichTextObjectAddress * self = (wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call op_set - (*self)=(*address); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_constructor2[] = { &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_constructor2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor2[1] = {{ wxLua_wxRichTextObjectAddress_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_constructor2 }}; -// wxRichTextObjectAddress(const wxRichTextObjectAddress& address); -static int LUACALL wxLua_wxRichTextObjectAddress_constructor2(lua_State *L) -{ - // const wxRichTextObjectAddress address - const wxRichTextObjectAddress * address = (const wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectAddress); - // call constructor - wxRichTextObjectAddress* returns = new wxRichTextObjectAddress(*address); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectAddress); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectAddress); - - return 1; -} - -static int LUACALL wxLua_wxRichTextObjectAddress_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor1[1] = {{ wxLua_wxRichTextObjectAddress_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextObjectAddress(); -static int LUACALL wxLua_wxRichTextObjectAddress_constructor1(lua_State *L) -{ - // call constructor - wxRichTextObjectAddress* returns = new wxRichTextObjectAddress(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectAddress); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectAddress); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectAddress_constructor[] = { &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextObjectAddress_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor[1] = {{ wxLua_wxRichTextObjectAddress_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_constructor }}; -// wxRichTextObjectAddress(wxRichTextParagraphLayoutBox* topLevelContainer, wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextObjectAddress_constructor(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // wxRichTextParagraphLayoutBox topLevelContainer - wxRichTextParagraphLayoutBox * topLevelContainer = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphLayoutBox); - // call constructor - wxRichTextObjectAddress* returns = new wxRichTextObjectAddress(topLevelContainer, obj); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectAddress); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectAddress); - - return 1; -} - - - - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress_overload[] = -{ - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObjectAddress_GetAddress1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetAddress1 }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObjectAddress_GetAddress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_GetAddress }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor_overload[] = -{ - { wxLua_wxRichTextObjectAddress_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_constructor2 }, - { wxLua_wxRichTextObjectAddress_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxRichTextObjectAddress_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectAddress_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextObjectAddress_delete_function(void** p) -{ - wxRichTextObjectAddress* o = (wxRichTextObjectAddress*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextObjectAddress_methods[] = { - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_Copy, 1, NULL }, - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_Create, 1, NULL }, - -#if ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "GetAddress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress_overload, s_wxluafunc_wxLua_wxRichTextObjectAddress_GetAddress_overload_count, 0 }, -#endif // ((wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_GetObject, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_Init, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetAddress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_SetAddress, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextObjectAddress_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectAddress_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextObjectAddress", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor_overload, s_wxluafunc_wxLua_wxRichTextObjectAddress_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextObjectAddress_methodCount = sizeof(wxRichTextObjectAddress_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextCommand -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextCommand' -int wxluatype_wxRichTextCommand = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_AddAction[] = { &wxluatype_wxRichTextCommand, &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextCommand_AddAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_AddAction[1] = {{ wxLua_wxRichTextCommand_AddAction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCommand_AddAction }}; -// void AddAction(wxRichTextAction* action); -static int LUACALL wxLua_wxRichTextCommand_AddAction(lua_State *L) -{ - // wxRichTextAction action - wxRichTextAction * action = (wxRichTextAction *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAction); - // get this - wxRichTextCommand * self = (wxRichTextCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCommand); - // call AddAction - self->AddAction(action); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_ClearActions[] = { &wxluatype_wxRichTextCommand, NULL }; -static int LUACALL wxLua_wxRichTextCommand_ClearActions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_ClearActions[1] = {{ wxLua_wxRichTextCommand_ClearActions, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_ClearActions }}; -// void ClearActions(); -static int LUACALL wxLua_wxRichTextCommand_ClearActions(lua_State *L) -{ - // get this - wxRichTextCommand * self = (wxRichTextCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCommand); - // call ClearActions - self->ClearActions(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_Do[] = { &wxluatype_wxRichTextCommand, NULL }; -static int LUACALL wxLua_wxRichTextCommand_Do(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_Do[1] = {{ wxLua_wxRichTextCommand_Do, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_Do }}; -// bool Do(); -static int LUACALL wxLua_wxRichTextCommand_Do(lua_State *L) -{ - // get this - wxRichTextCommand * self = (wxRichTextCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCommand); - // call Do - bool returns = (self->Do()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_GetActions[] = { &wxluatype_wxRichTextCommand, NULL }; -static int LUACALL wxLua_wxRichTextCommand_GetActions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_GetActions[1] = {{ wxLua_wxRichTextCommand_GetActions, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_GetActions }}; -// wxList& GetActions(); -static int LUACALL wxLua_wxRichTextCommand_GetActions(lua_State *L) -{ - // get this - wxRichTextCommand * self = (wxRichTextCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCommand); - // call GetActions - wxList* returns = (wxList*)&self->GetActions(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxList); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_Undo[] = { &wxluatype_wxRichTextCommand, NULL }; -static int LUACALL wxLua_wxRichTextCommand_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_Undo[1] = {{ wxLua_wxRichTextCommand_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_Undo }}; -// bool Undo(); -static int LUACALL wxLua_wxRichTextCommand_Undo(lua_State *L) -{ - // get this - wxRichTextCommand * self = (wxRichTextCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCommand); - // call Undo - bool returns = (self->Undo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_delete[] = { &wxluatype_wxRichTextCommand, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCommand_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_constructor1[1] = {{ wxLua_wxRichTextCommand_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_constructor1 }}; -// wxRichTextCommand(const wxString& name); -static int LUACALL wxLua_wxRichTextCommand_constructor1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextCommand* returns = new wxRichTextCommand(name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextCommand); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCommand); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCommand_constructor[] = { &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCommand_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_constructor[1] = {{ wxLua_wxRichTextCommand_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 6, s_wxluatypeArray_wxLua_wxRichTextCommand_constructor }}; -// wxRichTextParagraphLayoutBox* container, wxRichTextCtrl* ctrl, bool ignoreFirstTime = false); -static int LUACALL wxLua_wxRichTextCommand_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool ignoreFirstTime = false - bool ignoreFirstTime = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : false); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextCtrl); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextParagraphLayoutBox); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextBuffer); - // wxRichTextCommandId id - wxRichTextCommandId id = (wxRichTextCommandId)wxlua_getenumtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextCommand* returns = new wxRichTextCommand(name, id, buffer, container, ctrl, ignoreFirstTime); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextCommand); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCommand); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCommand_constructor_overload[] = -{ - { wxLua_wxRichTextCommand_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCommand_constructor1 }, - { wxLua_wxRichTextCommand_constructor, WXLUAMETHOD_CONSTRUCTOR, 5, 6, s_wxluatypeArray_wxLua_wxRichTextCommand_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextCommand_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCommand_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextCommand_delete_function(void** p) -{ - wxRichTextCommand* o = (wxRichTextCommand*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextCommand_methods[] = { - { "AddAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCommand_AddAction, 1, NULL }, - { "ClearActions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCommand_ClearActions, 1, NULL }, - { "Do", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCommand_Do, 1, NULL }, - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetActions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCommand_GetActions, 1, NULL }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCommand_Undo, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextCommand_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextCommand", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextCommand_constructor_overload, s_wxluafunc_wxLua_wxRichTextCommand_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextCommand_methodCount = sizeof(wxRichTextCommand_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextAction -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextAction' -int wxluatype_wxRichTextAction = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_ApplyParagraphs[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextAction_ApplyParagraphs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_ApplyParagraphs[1] = {{ wxLua_wxRichTextAction_ApplyParagraphs, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_ApplyParagraphs }}; -// void ApplyParagraphs(const wxRichTextParagraphLayoutBox& fragment); -static int LUACALL wxLua_wxRichTextAction_ApplyParagraphs(lua_State *L) -{ - // const wxRichTextParagraphLayoutBox fragment - const wxRichTextParagraphLayoutBox * fragment = (const wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call ApplyParagraphs - self->ApplyParagraphs(*fragment); - - return 0; -} - - -#if (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_CalculateRefreshOptimizations1[] = { &wxluatype_wxRichTextAction, &wxluatype_wxArrayInt, &wxluatype_wxArrayInt, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextAction_CalculateRefreshOptimizations1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations1[1] = {{ wxLua_wxRichTextAction_CalculateRefreshOptimizations1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextAction_CalculateRefreshOptimizations1 }}; -// %wxchkver_3_1_0 void CalculateRefreshOptimizations(wxArrayInt& optimizationLineCharPositions, wxArrayInt& optimizationLineYPositions, wxRect& oldFloatRect); -static int LUACALL wxLua_wxRichTextAction_CalculateRefreshOptimizations1(lua_State *L) -{ - // wxRect oldFloatRect - wxRect * oldFloatRect = (wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxArrayInt optimizationLineYPositions - wxArrayInt * optimizationLineYPositions = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // wxArrayInt optimizationLineCharPositions - wxArrayInt * optimizationLineCharPositions = (wxArrayInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayInt); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call CalculateRefreshOptimizations - self->CalculateRefreshOptimizations(*optimizationLineCharPositions, *optimizationLineYPositions, *oldFloatRect); - - return 0; -} - -#endif // (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_CalculateRefreshOptimizations[] = { &wxluatype_wxRichTextAction, &wxluatype_wxArrayInt, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextAction_CalculateRefreshOptimizations(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations[1] = {{ wxLua_wxRichTextAction_CalculateRefreshOptimizations, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextAction_CalculateRefreshOptimizations }}; -// !%wxchkver_3_1_0 void CalculateRefreshOptimizations(wxArrayInt& optimizationLineCharPositions, wxArrayInt& optimizationLineYPositions); -static int LUACALL wxLua_wxRichTextAction_CalculateRefreshOptimizations(lua_State *L) -{ - // wxArrayInt optimizationLineYPositions - wxArrayInt * optimizationLineYPositions = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // wxArrayInt optimizationLineCharPositions - wxArrayInt * optimizationLineCharPositions = (wxArrayInt *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayInt); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call CalculateRefreshOptimizations - self->CalculateRefreshOptimizations(*optimizationLineCharPositions, *optimizationLineYPositions); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_Do[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_Do(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_Do[1] = {{ wxLua_wxRichTextAction_Do, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_Do }}; -// bool Do(); -static int LUACALL wxLua_wxRichTextAction_Do(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call Do - bool returns = (self->Do()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetAttributes[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetAttributes[1] = {{ wxLua_wxRichTextAction_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetAttributes }}; -// wxRichTextAttr& GetAttributes(); -static int LUACALL wxLua_wxRichTextAction_GetAttributes(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetAttributes - wxRichTextAttr* returns = (wxRichTextAttr*)&self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetContainer[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetContainer[1] = {{ wxLua_wxRichTextAction_GetContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetContainer }}; -// wxRichTextParagraphLayoutBox* GetContainer() const; -static int LUACALL wxLua_wxRichTextAction_GetContainer(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetContainer - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetContainerAddress1[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetContainerAddress1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress1[1] = {{ wxLua_wxRichTextAction_GetContainerAddress1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetContainerAddress1 }}; -// const wxRichTextObjectAddress& GetContainerAddress() const; -static int LUACALL wxLua_wxRichTextAction_GetContainerAddress1(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetContainerAddress - const wxRichTextObjectAddress* returns = (const wxRichTextObjectAddress*)&self->GetContainerAddress(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectAddress); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetContainerAddress[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetContainerAddress(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress[1] = {{ wxLua_wxRichTextAction_GetContainerAddress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetContainerAddress }}; -// wxRichTextObjectAddress& GetContainerAddress(); -static int LUACALL wxLua_wxRichTextAction_GetContainerAddress(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetContainerAddress - wxRichTextObjectAddress* returns = (wxRichTextObjectAddress*)&self->GetContainerAddress(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectAddress); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetIgnoreFirstTime[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetIgnoreFirstTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetIgnoreFirstTime[1] = {{ wxLua_wxRichTextAction_GetIgnoreFirstTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetIgnoreFirstTime }}; -// bool GetIgnoreFirstTime() const; -static int LUACALL wxLua_wxRichTextAction_GetIgnoreFirstTime(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetIgnoreFirstTime - bool returns = (self->GetIgnoreFirstTime()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetName[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetName[1] = {{ wxLua_wxRichTextAction_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetName }}; -// const wxString& GetName() const; -static int LUACALL wxLua_wxRichTextAction_GetName(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetNewParagraphs[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetNewParagraphs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetNewParagraphs[1] = {{ wxLua_wxRichTextAction_GetNewParagraphs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetNewParagraphs }}; -// wxRichTextParagraphLayoutBox& GetNewParagraphs(); -static int LUACALL wxLua_wxRichTextAction_GetNewParagraphs(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetNewParagraphs - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)&self->GetNewParagraphs(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetObject[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetObject[1] = {{ wxLua_wxRichTextAction_GetObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetObject }}; -// wxRichTextObject* GetObject() const; -static int LUACALL wxLua_wxRichTextAction_GetObject(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetObject - wxRichTextObject* returns = (wxRichTextObject*)self->GetObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetOldParagraphs[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetOldParagraphs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetOldParagraphs[1] = {{ wxLua_wxRichTextAction_GetOldParagraphs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetOldParagraphs }}; -// wxRichTextParagraphLayoutBox& GetOldParagraphs(); -static int LUACALL wxLua_wxRichTextAction_GetOldParagraphs(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetOldParagraphs - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)&self->GetOldParagraphs(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetPosition[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetPosition[1] = {{ wxLua_wxRichTextAction_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetPosition }}; -// long GetPosition() const; -static int LUACALL wxLua_wxRichTextAction_GetPosition(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetPosition - long returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_GetRange[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetRange[1] = {{ wxLua_wxRichTextAction_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetRange }}; -// const wxRichTextRange& GetRange() const; -static int LUACALL wxLua_wxRichTextAction_GetRange(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call GetRange - const wxRichTextRange* returns = (const wxRichTextRange*)&self->GetRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_MakeObject[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextAction_MakeObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_MakeObject[1] = {{ wxLua_wxRichTextAction_MakeObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_MakeObject }}; -// void MakeObject(wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextAction_MakeObject(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call MakeObject - self->MakeObject(obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetContainerAddress1[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetContainerAddress1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress1[1] = {{ wxLua_wxRichTextAction_SetContainerAddress1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextAction_SetContainerAddress1 }}; -// void SetContainerAddress(wxRichTextParagraphLayoutBox* container, wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextAction_SetContainerAddress1(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetContainerAddress - self->SetContainerAddress(container, obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetContainerAddress[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextObjectAddress, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetContainerAddress(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress[1] = {{ wxLua_wxRichTextAction_SetContainerAddress, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_SetContainerAddress }}; -// void SetContainerAddress(const wxRichTextObjectAddress& address); -static int LUACALL wxLua_wxRichTextAction_SetContainerAddress(lua_State *L) -{ - // const wxRichTextObjectAddress address - const wxRichTextObjectAddress * address = (const wxRichTextObjectAddress *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObjectAddress); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetContainerAddress - self->SetContainerAddress(*address); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetIgnoreFirstTime[] = { &wxluatype_wxRichTextAction, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetIgnoreFirstTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetIgnoreFirstTime[1] = {{ wxLua_wxRichTextAction_SetIgnoreFirstTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_SetIgnoreFirstTime }}; -// void SetIgnoreFirstTime(bool b); -static int LUACALL wxLua_wxRichTextAction_SetIgnoreFirstTime(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetIgnoreFirstTime - self->SetIgnoreFirstTime(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetObject[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetObject[1] = {{ wxLua_wxRichTextAction_SetObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_SetObject }}; -// void SetObject(wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextAction_SetObject(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetObject - self->SetObject(obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetOldAndNewObjects[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetOldAndNewObjects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetOldAndNewObjects[1] = {{ wxLua_wxRichTextAction_SetOldAndNewObjects, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextAction_SetOldAndNewObjects }}; -// void SetOldAndNewObjects(wxRichTextObject* oldObj, wxRichTextObject* newObj); -static int LUACALL wxLua_wxRichTextAction_SetOldAndNewObjects(lua_State *L) -{ - // wxRichTextObject newObj - wxRichTextObject * newObj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextObject oldObj - wxRichTextObject * oldObj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetOldAndNewObjects - self->SetOldAndNewObjects(oldObj, newObj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetPosition[] = { &wxluatype_wxRichTextAction, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetPosition[1] = {{ wxLua_wxRichTextAction_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_SetPosition }}; -// void SetPosition(long pos); -static int LUACALL wxLua_wxRichTextAction_SetPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_SetRange[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextAction_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetRange[1] = {{ wxLua_wxRichTextAction_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_SetRange }}; -// void SetRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextAction_SetRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call SetRange - self->SetRange(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_StoreObject[] = { &wxluatype_wxRichTextAction, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextAction_StoreObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_StoreObject[1] = {{ wxLua_wxRichTextAction_StoreObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_StoreObject }}; -// void StoreObject(wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextAction_StoreObject(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call StoreObject - self->StoreObject(obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_Undo[] = { &wxluatype_wxRichTextAction, NULL }; -static int LUACALL wxLua_wxRichTextAction_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_Undo[1] = {{ wxLua_wxRichTextAction_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_Undo }}; -// bool Undo(); -static int LUACALL wxLua_wxRichTextAction_Undo(lua_State *L) -{ - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call Undo - bool returns = (self->Undo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_UpdateAppearance1[] = { &wxluatype_wxRichTextAction, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_wxRect, &wxluatype_wxArrayInt, &wxluatype_wxArrayInt, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextAction_UpdateAppearance1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance1[1] = {{ wxLua_wxRichTextAction_UpdateAppearance1, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxRichTextAction_UpdateAppearance1 }}; -// %wxchkver_3_1_0 void UpdateAppearance(long caretPosition, bool sendUpdateEvent = false, const wxRect& oldFloatRect = wxNULLRECT, wxArrayInt* optimizationLineCharPositions = NULL, wxArrayInt* optimizationLineYPositions = NULL, bool isDoCmd = true); -static int LUACALL wxLua_wxRichTextAction_UpdateAppearance1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isDoCmd = true - bool isDoCmd = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : true); - // wxArrayInt optimizationLineYPositions = NULL - wxArrayInt * optimizationLineYPositions = (argCount >= 6 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 6, wxluatype_wxArrayInt) : NULL); - // wxArrayInt optimizationLineCharPositions = NULL - wxArrayInt * optimizationLineCharPositions = (argCount >= 5 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 5, wxluatype_wxArrayInt) : NULL); - // const wxRect oldFloatRect = wxNULLRECT - const wxRect * oldFloatRect = (argCount >= 4 ? (const wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect) : &wxNULLRECT); - // bool sendUpdateEvent = false - bool sendUpdateEvent = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long caretPosition - long caretPosition = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call UpdateAppearance - self->UpdateAppearance(caretPosition, sendUpdateEvent, *oldFloatRect, optimizationLineCharPositions, optimizationLineYPositions, isDoCmd); - - return 0; -} - -#endif // (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_UpdateAppearance[] = { &wxluatype_wxRichTextAction, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_wxArrayInt, &wxluatype_wxArrayInt, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextAction_UpdateAppearance(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance[1] = {{ wxLua_wxRichTextAction_UpdateAppearance, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextAction_UpdateAppearance }}; -// !%wxchkver_3_1_0 void UpdateAppearance(long caretPosition, bool sendUpdateEvent = false, wxArrayInt* optimizationLineCharPositions = NULL, wxArrayInt* optimizationLineYPositions = NULL, bool isDoCmd = true); -static int LUACALL wxLua_wxRichTextAction_UpdateAppearance(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isDoCmd = true - bool isDoCmd = (argCount >= 6 ? wxlua_getbooleantype(L, 6) : true); - // wxArrayInt optimizationLineYPositions = NULL - wxArrayInt * optimizationLineYPositions = (argCount >= 5 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 5, wxluatype_wxArrayInt) : NULL); - // wxArrayInt optimizationLineCharPositions = NULL - wxArrayInt * optimizationLineCharPositions = (argCount >= 4 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 4, wxluatype_wxArrayInt) : NULL); - // bool sendUpdateEvent = false - bool sendUpdateEvent = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long caretPosition - long caretPosition = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextAction * self = (wxRichTextAction *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAction); - // call UpdateAppearance - self->UpdateAppearance(caretPosition, sendUpdateEvent, optimizationLineCharPositions, optimizationLineYPositions, isDoCmd); - - return 0; -} - -#endif // ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_delete[] = { &wxluatype_wxRichTextAction, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextAction_constructor[] = { &wxluatype_wxRichTextCommand, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextAction_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_constructor[1] = {{ wxLua_wxRichTextAction_constructor, WXLUAMETHOD_CONSTRUCTOR, 6, 7, s_wxluatypeArray_wxLua_wxRichTextAction_constructor }}; -// wxRichTextCtrl* ctrl, bool ignoreFirstTime = false); -static int LUACALL wxLua_wxRichTextAction_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool ignoreFirstTime = false - bool ignoreFirstTime = (argCount >= 7 ? wxlua_getbooleantype(L, 7) : false); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 6, wxluatype_wxRichTextCtrl); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextParagraphLayoutBox); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextBuffer); - // wxRichTextCommandId id - wxRichTextCommandId id = (wxRichTextCommandId)wxlua_getenumtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxRichTextCommand cmd - wxRichTextCommand * cmd = (wxRichTextCommand *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCommand); - // call constructor - wxRichTextAction* returns = new wxRichTextAction(cmd, name, id, buffer, container, ctrl, ignoreFirstTime); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAction); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAction); - - return 1; -} - - - - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations_overload[] = -{ - -#if (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextAction_CalculateRefreshOptimizations1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextAction_CalculateRefreshOptimizations1 }, -#endif // (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxRichTextAction_CalculateRefreshOptimizations, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextAction_CalculateRefreshOptimizations }, -#endif // ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) -}; -static int s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress_overload[] = -{ - { wxLua_wxRichTextAction_GetContainerAddress1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetContainerAddress1 }, - { wxLua_wxRichTextAction_GetContainerAddress, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextAction_GetContainerAddress }, -}; -static int s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress_overload[] = -{ - { wxLua_wxRichTextAction_SetContainerAddress1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextAction_SetContainerAddress1 }, - { wxLua_wxRichTextAction_SetContainerAddress, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextAction_SetContainerAddress }, -}; -static int s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance_overload[] = -{ - -#if (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextAction_UpdateAppearance1, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxRichTextAction_UpdateAppearance1 }, -#endif // (((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect) - -#if ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - { wxLua_wxRichTextAction_UpdateAppearance, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextAction_UpdateAppearance }, -#endif // ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) -}; -static int s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) - -void wxLua_wxRichTextAction_delete_function(void** p) -{ - wxRichTextAction* o = (wxRichTextAction*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextAction_methods[] = { - { "ApplyParagraphs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_ApplyParagraphs, 1, NULL }, - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) - { "CalculateRefreshOptimizations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations_overload, s_wxluafunc_wxLua_wxRichTextAction_CalculateRefreshOptimizations_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) - - { "Do", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_Do, 1, NULL }, - { "GetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetAttributes, 1, NULL }, - { "GetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetContainer, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetContainerAddress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress_overload, s_wxluafunc_wxLua_wxRichTextAction_GetContainerAddress_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetIgnoreFirstTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetIgnoreFirstTime, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetName, 1, NULL }, - { "GetNewParagraphs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetNewParagraphs, 1, NULL }, - { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetObject, 1, NULL }, - { "GetOldParagraphs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetOldParagraphs, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetPosition, 1, NULL }, - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_GetRange, 1, NULL }, - { "MakeObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_MakeObject, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetContainerAddress", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress_overload, s_wxluafunc_wxLua_wxRichTextAction_SetContainerAddress_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetIgnoreFirstTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_SetIgnoreFirstTime, 1, NULL }, - { "SetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_SetObject, 1, NULL }, - { "SetOldAndNewObjects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_SetOldAndNewObjects, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_SetPosition, 1, NULL }, - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_SetRange, 1, NULL }, - { "StoreObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_StoreObject, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_Undo, 1, NULL }, - -#if ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) - { "UpdateAppearance", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance_overload, s_wxluafunc_wxLua_wxRichTextAction_UpdateAppearance_overload_count, 0 }, -#endif // ((((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxPointSizeRect))||(((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextAction_delete, 1, NULL }, - { "wxRichTextAction", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextAction_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextAction_methodCount = sizeof(wxRichTextAction_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextFileHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFileHandler' -int wxluatype_wxRichTextFileHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_CanHandle[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_CanHandle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_CanHandle[1] = {{ wxLua_wxRichTextFileHandler_CanHandle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_CanHandle }}; -// virtual bool CanHandle(const wxString& filename) const; -static int LUACALL wxLua_wxRichTextFileHandler_CanHandle(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call CanHandle - bool returns = (self->CanHandle(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_CanLoad[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_CanLoad(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_CanLoad[1] = {{ wxLua_wxRichTextFileHandler_CanLoad, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_CanLoad }}; -// virtual bool CanLoad() const; -static int LUACALL wxLua_wxRichTextFileHandler_CanLoad(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call CanLoad - bool returns = (self->CanLoad()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_CanSave[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_CanSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_CanSave[1] = {{ wxLua_wxRichTextFileHandler_CanSave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_CanSave }}; -// virtual bool CanSave() const; -static int LUACALL wxLua_wxRichTextFileHandler_CanSave(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call CanSave - bool returns = (self->CanSave()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetEncoding[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_GetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_GetEncoding[1] = {{ wxLua_wxRichTextFileHandler_GetEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetEncoding }}; -// const wxString& GetEncoding() const; -static int LUACALL wxLua_wxRichTextFileHandler_GetEncoding(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call GetEncoding - wxString returns = (self->GetEncoding()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetExtension[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_GetExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_GetExtension[1] = {{ wxLua_wxRichTextFileHandler_GetExtension, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetExtension }}; -// wxString GetExtension() const; -static int LUACALL wxLua_wxRichTextFileHandler_GetExtension(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call GetExtension - wxString returns = (self->GetExtension()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetFlags[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_GetFlags[1] = {{ wxLua_wxRichTextFileHandler_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxRichTextFileHandler_GetFlags(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetName[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_GetName[1] = {{ wxLua_wxRichTextFileHandler_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxRichTextFileHandler_GetName(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetType[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_GetType[1] = {{ wxLua_wxRichTextFileHandler_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_GetType }}; -// int GetType() const; -static int LUACALL wxLua_wxRichTextFileHandler_GetType(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call GetType - int returns = (self->GetType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_IsVisible[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_IsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_IsVisible[1] = {{ wxLua_wxRichTextFileHandler_IsVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_IsVisible }}; -// virtual bool IsVisible() const; -static int LUACALL wxLua_wxRichTextFileHandler_IsVisible(lua_State *L) -{ - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call IsVisible - bool returns = (self->IsVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_LoadFile1[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_LoadFile1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile1[1] = {{ wxLua_wxRichTextFileHandler_LoadFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_LoadFile1 }}; -// virtual bool LoadFile(wxRichTextBuffer *buffer, const wxString& filename); -static int LUACALL wxLua_wxRichTextFileHandler_LoadFile1(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call LoadFile - bool returns = (self->LoadFile(buffer, filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_LoadFile[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_wxRichTextBuffer, &wxluatype_wxInputStream, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_LoadFile(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile[1] = {{ wxLua_wxRichTextFileHandler_LoadFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_LoadFile }}; -// bool LoadFile(wxRichTextBuffer *buffer, wxInputStream& stream); -static int LUACALL wxLua_wxRichTextFileHandler_LoadFile(lua_State *L) -{ - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 3, wxluatype_wxInputStream); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call LoadFile - bool returns = (self->LoadFile(buffer, *stream)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SaveFile1[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_wxRichTextBuffer, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SaveFile1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile1[1] = {{ wxLua_wxRichTextFileHandler_SaveFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SaveFile1 }}; -// virtual bool SaveFile(wxRichTextBuffer *buffer, const wxString& filename); -static int LUACALL wxLua_wxRichTextFileHandler_SaveFile1(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 3); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SaveFile - bool returns = (self->SaveFile(buffer, filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SaveFile[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_wxRichTextBuffer, &wxluatype_wxOutputStream, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SaveFile(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile[1] = {{ wxLua_wxRichTextFileHandler_SaveFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SaveFile }}; -// bool SaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream); -static int LUACALL wxLua_wxRichTextFileHandler_SaveFile(lua_State *L) -{ - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 3, wxluatype_wxOutputStream); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SaveFile - bool returns = (self->SaveFile(buffer, *stream)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetEncoding[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SetEncoding[1] = {{ wxLua_wxRichTextFileHandler_SetEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetEncoding }}; -// void SetEncoding(const wxString& encoding); -static int LUACALL wxLua_wxRichTextFileHandler_SetEncoding(lua_State *L) -{ - // const wxString encoding - const wxString encoding = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SetEncoding - self->SetEncoding(encoding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetExtension[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SetExtension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SetExtension[1] = {{ wxLua_wxRichTextFileHandler_SetExtension, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetExtension }}; -// void SetExtension(const wxString& ext); -static int LUACALL wxLua_wxRichTextFileHandler_SetExtension(lua_State *L) -{ - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SetExtension - self->SetExtension(ext); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetFlags[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SetFlags[1] = {{ wxLua_wxRichTextFileHandler_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxRichTextFileHandler_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetName[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SetName[1] = {{ wxLua_wxRichTextFileHandler_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxRichTextFileHandler_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetType[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SetType[1] = {{ wxLua_wxRichTextFileHandler_SetType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetType }}; -// void SetType(int type); -static int LUACALL wxLua_wxRichTextFileHandler_SetType(lua_State *L) -{ - // int type - int type = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SetType - self->SetType(type); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetVisible[] = { &wxluatype_wxRichTextFileHandler, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextFileHandler_SetVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SetVisible[1] = {{ wxLua_wxRichTextFileHandler_SetVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SetVisible }}; -// virtual void SetVisible(bool visible); -static int LUACALL wxLua_wxRichTextFileHandler_SetVisible(lua_State *L) -{ - // bool visible - bool visible = wxlua_getbooleantype(L, 2); - // get this - wxRichTextFileHandler * self = (wxRichTextFileHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFileHandler); - // call SetVisible - self->SetVisible(visible); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFileHandler_delete[] = { &wxluatype_wxRichTextFileHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFileHandler_delete }}; - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFileHandler_LoadFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_LoadFile1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextFileHandler_LoadFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_LoadFile }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFileHandler_SaveFile1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SaveFile1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextFileHandler_SaveFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFileHandler_SaveFile }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - -void wxLua_wxRichTextFileHandler_delete_function(void** p) -{ - wxRichTextFileHandler* o = (wxRichTextFileHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFileHandler_methods[] = { - { "CanHandle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_CanHandle, 1, NULL }, - { "CanLoad", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_CanLoad, 1, NULL }, - { "CanSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_CanSave, 1, NULL }, - { "GetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_GetEncoding, 1, NULL }, - { "GetExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_GetExtension, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_GetFlags, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_GetName, 1, NULL }, - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_GetType, 1, NULL }, - { "IsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_IsVisible, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile_overload, s_wxluafunc_wxLua_wxRichTextFileHandler_LoadFile_overload_count, 0 }, - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile_overload, s_wxluafunc_wxLua_wxRichTextFileHandler_SaveFile_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - - { "SetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SetEncoding, 1, NULL }, - { "SetExtension", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SetExtension, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SetFlags, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SetName, 1, NULL }, - { "SetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SetType, 1, NULL }, - { "SetVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFileHandler_SetVisible, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFileHandler_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFileHandler_methodCount = sizeof(wxRichTextFileHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextPlainTextHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextPlainTextHandler' -int wxluatype_wxRichTextPlainTextHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_CanLoad[] = { &wxluatype_wxRichTextPlainTextHandler, NULL }; -static int LUACALL wxLua_wxRichTextPlainTextHandler_CanLoad(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainTextHandler_CanLoad[1] = {{ wxLua_wxRichTextPlainTextHandler_CanLoad, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_CanLoad }}; -// virtual bool CanLoad() const; -static int LUACALL wxLua_wxRichTextPlainTextHandler_CanLoad(lua_State *L) -{ - // get this - wxRichTextPlainTextHandler * self = (wxRichTextPlainTextHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainTextHandler); - // call CanLoad - bool returns = (self->CanLoad()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_CanSave[] = { &wxluatype_wxRichTextPlainTextHandler, NULL }; -static int LUACALL wxLua_wxRichTextPlainTextHandler_CanSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainTextHandler_CanSave[1] = {{ wxLua_wxRichTextPlainTextHandler_CanSave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_CanSave }}; -// virtual bool CanSave() const; -static int LUACALL wxLua_wxRichTextPlainTextHandler_CanSave(lua_State *L) -{ - // get this - wxRichTextPlainTextHandler * self = (wxRichTextPlainTextHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPlainTextHandler); - // call CanSave - bool returns = (self->CanSave()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_delete[] = { &wxluatype_wxRichTextPlainTextHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainTextHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextPlainTextHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPlainTextHandler_constructor[1] = {{ wxLua_wxRichTextPlainTextHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxRichTextPlainTextHandler_constructor }}; -// wxRichTextFileType type = wxRICHTEXT_TYPE_TEXT); -static int LUACALL wxLua_wxRichTextPlainTextHandler_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextFileType type = wxRICHTEXT_TYPE_TEXT - wxRichTextFileType type = (argCount >= 3 ? (wxRichTextFileType)wxlua_getenumtype(L, 3) : wxRICHTEXT_TYPE_TEXT); - // const wxString ext = "txt" - const wxString ext = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("txt"))); - // const wxString name = "Text" - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxT("Text"))); - // call constructor - wxRichTextPlainTextHandler* returns = new wxRichTextPlainTextHandler(name, ext, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextPlainTextHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextPlainTextHandler); - - return 1; -} - - - - -void wxLua_wxRichTextPlainTextHandler_delete_function(void** p) -{ - wxRichTextPlainTextHandler* o = (wxRichTextPlainTextHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextPlainTextHandler_methods[] = { - { "CanLoad", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainTextHandler_CanLoad, 1, NULL }, - { "CanSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPlainTextHandler_CanSave, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextPlainTextHandler_delete, 1, NULL }, - { "wxRichTextPlainTextHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextPlainTextHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextPlainTextHandler_methodCount = sizeof(wxRichTextPlainTextHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextDrawingHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextDrawingHandler' -int wxluatype_wxRichTextDrawingHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetName[] = { &wxluatype_wxRichTextDrawingHandler, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetName[1] = {{ wxLua_wxRichTextDrawingHandler_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetName(lua_State *L) -{ - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualAttributes[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingHandler_GetVirtualAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualAttributes }}; -// virtual bool GetVirtualAttributes(wxRichTextAttr& attr, wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualAttributes(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call GetVirtualAttributes - bool returns = (self->GetVirtualAttributes(*attr, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_wxRichTextObject, &wxluatype_wxArrayInt, &wxluatype_wxRichTextAttrArray, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes[1] = {{ wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes }}; -// virtual int GetVirtualSubobjectAttributes(wxRichTextObject* obj, wxArrayInt& positions, wxRichTextAttrArray& attributes) const; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes(lua_State *L) -{ - // wxRichTextAttrArray attributes - wxRichTextAttrArray * attributes = (wxRichTextAttrArray *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttrArray); - // wxArrayInt positions - wxArrayInt * positions = (wxArrayInt *)wxluaT_getuserdatatype(L, 3, wxluatype_wxArrayInt); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call GetVirtualSubobjectAttributes - int returns = (self->GetVirtualSubobjectAttributes(obj, *positions, *attributes)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount[1] = {{ wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount }}; -// virtual int GetVirtualSubobjectAttributesCount(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call GetVirtualSubobjectAttributesCount - int returns = (self->GetVirtualSubobjectAttributesCount(obj)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualText[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_wxRichTextPlainText, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualText[1] = {{ wxLua_wxRichTextDrawingHandler_GetVirtualText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_GetVirtualText }}; -// virtual bool GetVirtualText(const wxRichTextPlainText* obj, wxString& text) const; -static int LUACALL wxLua_wxRichTextDrawingHandler_GetVirtualText(lua_State *L) -{ - // wxString text - wxString text = wxlua_getwxStringtype(L, 3); - // const wxRichTextPlainText obj - const wxRichTextPlainText * obj = (const wxRichTextPlainText *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextPlainText); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call GetVirtualText - bool returns = (self->GetVirtualText(obj, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_HasVirtualAttributes[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_HasVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_HasVirtualAttributes[1] = {{ wxLua_wxRichTextDrawingHandler_HasVirtualAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_HasVirtualAttributes }}; -// virtual bool HasVirtualAttributes(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextDrawingHandler_HasVirtualAttributes(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call HasVirtualAttributes - bool returns = (self->HasVirtualAttributes(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_HasVirtualText[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_wxRichTextPlainText, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_HasVirtualText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_HasVirtualText[1] = {{ wxLua_wxRichTextDrawingHandler_HasVirtualText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_HasVirtualText }}; -// virtual bool HasVirtualText(const wxRichTextPlainText* obj) const; -static int LUACALL wxLua_wxRichTextDrawingHandler_HasVirtualText(lua_State *L) -{ - // const wxRichTextPlainText obj - const wxRichTextPlainText * obj = (const wxRichTextPlainText *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextPlainText); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call HasVirtualText - bool returns = (self->HasVirtualText(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_SetName[] = { &wxluatype_wxRichTextDrawingHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextDrawingHandler_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_SetName[1] = {{ wxLua_wxRichTextDrawingHandler_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxRichTextDrawingHandler_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextDrawingHandler * self = (wxRichTextDrawingHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDrawingHandler); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_delete[] = { &wxluatype_wxRichTextDrawingHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDrawingHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDrawingHandler_delete }}; - - - - -void wxLua_wxRichTextDrawingHandler_delete_function(void** p) -{ - wxRichTextDrawingHandler* o = (wxRichTextDrawingHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextDrawingHandler_methods[] = { - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetName, 1, NULL }, - { "GetVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualAttributes, 1, NULL }, - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetVirtualSubobjectAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributes, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetVirtualSubobjectAttributesCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualSubobjectAttributesCount, 1, NULL }, - { "GetVirtualText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_GetVirtualText, 1, NULL }, - { "HasVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_HasVirtualAttributes, 1, NULL }, - { "HasVirtualText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_HasVirtualText, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDrawingHandler_SetName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextDrawingHandler_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextDrawingHandler_methodCount = sizeof(wxRichTextDrawingHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) -// --------------------------------------------------------------------------- -// Bind class wxRichTextBufferDataObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextBufferDataObject' -int wxluatype_wxRichTextBufferDataObject = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataHere1[] = { &wxluatype_wxRichTextBufferDataObject, &wxluatype_wxDataFormat, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataHere1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere1[1] = {{ wxLua_wxRichTextBufferDataObject_GetDataHere1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataHere1 }}; -// virtual bool GetDataHere(const wxDataFormat&, void *buf) const; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataHere1(lua_State *L) -{ - // void buf - void * buf = (void *)wxlua_touserdata(L, 3); - // const wxDataFormat arg1 - const wxDataFormat * arg1 = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call GetDataHere - bool returns = (self->GetDataHere(*arg1, buf)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataHere[] = { &wxluatype_wxRichTextBufferDataObject, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataHere(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere[1] = {{ wxLua_wxRichTextBufferDataObject_GetDataHere, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataHere }}; -// virtual bool GetDataHere(void *pBuf) const; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataHere(lua_State *L) -{ - // void pBuf - void * pBuf = (void *)wxlua_touserdata(L, 2); - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call GetDataHere - bool returns = (self->GetDataHere(pBuf)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataSize1[] = { &wxluatype_wxRichTextBufferDataObject, &wxluatype_wxDataFormat, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataSize1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize1[1] = {{ wxLua_wxRichTextBufferDataObject_GetDataSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataSize1 }}; -// virtual size_t GetDataSize(const wxDataFormat&) const; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataSize1(lua_State *L) -{ - // const wxDataFormat arg1 - const wxDataFormat * arg1 = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call GetDataSize - size_t returns = (self->GetDataSize(*arg1)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataSize[] = { &wxluatype_wxRichTextBufferDataObject, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataSize(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize[1] = {{ wxLua_wxRichTextBufferDataObject_GetDataSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataSize }}; -// virtual size_t GetDataSize() const; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetDataSize(lua_State *L) -{ - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call GetDataSize - size_t returns = (self->GetDataSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetPreferredFormat[] = { &wxluatype_wxRichTextBufferDataObject, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetPreferredFormat(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetPreferredFormat[1] = {{ wxLua_wxRichTextBufferDataObject_GetPreferredFormat, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetPreferredFormat }}; -// virtual wxDataFormat GetPreferredFormat(wxDataObject::Direction dir) const; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetPreferredFormat(lua_State *L) -{ - // wxDataObject::Direction dir - wxDataObject::Direction dir = (wxDataObject::Direction)wxlua_getenumtype(L, 2); - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call GetPreferredFormat - // allocate a new object using the copy constructor - wxDataFormat* returns = new wxDataFormat(self->GetPreferredFormat(dir)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDataFormat); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDataFormat); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetRichTextBuffer[] = { &wxluatype_wxRichTextBufferDataObject, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_GetRichTextBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetRichTextBuffer[1] = {{ wxLua_wxRichTextBufferDataObject_GetRichTextBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetRichTextBuffer }}; -// wxRichTextBuffer* GetRichTextBuffer(); -static int LUACALL wxLua_wxRichTextBufferDataObject_GetRichTextBuffer(lua_State *L) -{ - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call GetRichTextBuffer - wxRichTextBuffer* returns = (wxRichTextBuffer*)self->GetRichTextBuffer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextBufferDataObject_GetRichTextBufferFormatId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetRichTextBufferFormatId[1] = {{ wxLua_wxRichTextBufferDataObject_GetRichTextBufferFormatId, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static const wxChar* GetRichTextBufferFormatId(); -static int LUACALL wxLua_wxRichTextBufferDataObject_GetRichTextBufferFormatId(lua_State *L) -{ - // call GetRichTextBufferFormatId - const wxChar* returns = (const wxChar*)wxRichTextBufferDataObject::GetRichTextBufferFormatId(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_SetData1[] = { &wxluatype_wxRichTextBufferDataObject, &wxluatype_wxDataFormat, &wxluatype_TINTEGER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_SetData1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData1[1] = {{ wxLua_wxRichTextBufferDataObject_SetData1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_SetData1 }}; -// virtual bool SetData(const wxDataFormat&, size_t len, const void *buf); -static int LUACALL wxLua_wxRichTextBufferDataObject_SetData1(lua_State *L) -{ - // const void buf - const void * buf = (const void *)wxlua_touserdata(L, 4); - // size_t len - size_t len = (size_t)wxlua_getuintegertype(L, 3); - // const wxDataFormat arg1 - const wxDataFormat * arg1 = (const wxDataFormat *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDataFormat); - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call SetData - bool returns = (self->SetData(*arg1, len, buf)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_SetData[] = { &wxluatype_wxRichTextBufferDataObject, &wxluatype_TINTEGER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_SetData(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData[1] = {{ wxLua_wxRichTextBufferDataObject_SetData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_SetData }}; -// virtual bool SetData(size_t len, const void *buf); -static int LUACALL wxLua_wxRichTextBufferDataObject_SetData(lua_State *L) -{ - // const void buf - const void * buf = (const void *)wxlua_touserdata(L, 3); - // size_t len - size_t len = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextBufferDataObject * self = (wxRichTextBufferDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBufferDataObject); - // call SetData - bool returns = (self->SetData(len, buf)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_delete[] = { &wxluatype_wxRichTextBufferDataObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_delete }}; - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_constructor[] = { &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextBufferDataObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_constructor[1] = {{ wxLua_wxRichTextBufferDataObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_constructor }}; -// wxRichTextBufferDataObject(wxRichTextBuffer* richTextBuffer = NULL); -static int LUACALL wxLua_wxRichTextBufferDataObject_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextBuffer richTextBuffer = NULL - wxRichTextBuffer * richTextBuffer = (argCount >= 1 ? (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBuffer) : NULL); - // call constructor - wxRichTextBufferDataObject* returns = new wxRichTextBufferDataObject(richTextBuffer); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBufferDataObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBufferDataObject); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxLua_wxRichTextBufferDataObject_GetDataHere1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataHere1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxLua_wxRichTextBufferDataObject_GetDataHere, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataHere }, -}; -static int s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxLua_wxRichTextBufferDataObject_GetDataSize1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataSize1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxLua_wxRichTextBufferDataObject_GetDataSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_GetDataSize }, -}; -static int s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxLua_wxRichTextBufferDataObject_SetData1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_SetData1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { wxLua_wxRichTextBufferDataObject_SetData, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextBufferDataObject_SetData }, -}; -static int s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) - -void wxLua_wxRichTextBufferDataObject_delete_function(void** p) -{ - wxRichTextBufferDataObject* o = (wxRichTextBufferDataObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextBufferDataObject_methods[] = { -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) - { "GetDataHere", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere_overload, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataHere_overload_count, 0 }, - { "GetDataSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize_overload, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetDataSize_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - { "GetPreferredFormat", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetPreferredFormat, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRichTextBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetRichTextBuffer, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRichTextBufferFormatId", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextBufferDataObject_GetRichTextBufferFormatId, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) - { "SetData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData_overload, s_wxluafunc_wxLua_wxRichTextBufferDataObject_SetData_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextBufferDataObject_delete, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextBufferDataObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextBufferDataObject_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextBufferDataObject_methodCount = sizeof(wxRichTextBufferDataObject_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextRenderer' -int wxluatype_wxRichTextRenderer = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRenderer_DrawBitmapBullet[] = { &wxluatype_wxRichTextRenderer, &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextRenderer_DrawBitmapBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRenderer_DrawBitmapBullet[1] = {{ wxLua_wxRichTextRenderer_DrawBitmapBullet, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextRenderer_DrawBitmapBullet }}; -// virtual bool DrawBitmapBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect); -static int LUACALL wxLua_wxRichTextRenderer_DrawBitmapBullet(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextParagraph paragraph - wxRichTextParagraph * paragraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextRenderer * self = (wxRichTextRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRenderer); - // call DrawBitmapBullet - bool returns = (self->DrawBitmapBullet(paragraph, *dc, *attr, *rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRenderer_DrawStandardBullet[] = { &wxluatype_wxRichTextRenderer, &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextRenderer_DrawStandardBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRenderer_DrawStandardBullet[1] = {{ wxLua_wxRichTextRenderer_DrawStandardBullet, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextRenderer_DrawStandardBullet }}; -// virtual bool DrawStandardBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect); -static int LUACALL wxLua_wxRichTextRenderer_DrawStandardBullet(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextParagraph paragraph - wxRichTextParagraph * paragraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextRenderer * self = (wxRichTextRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRenderer); - // call DrawStandardBullet - bool returns = (self->DrawStandardBullet(paragraph, *dc, *attr, *rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRenderer_DrawTextBullet[] = { &wxluatype_wxRichTextRenderer, &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextRenderer_DrawTextBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRenderer_DrawTextBullet[1] = {{ wxLua_wxRichTextRenderer_DrawTextBullet, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextRenderer_DrawTextBullet }}; -// virtual bool DrawTextBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect, const wxString& text); -static int LUACALL wxLua_wxRichTextRenderer_DrawTextBullet(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 6); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextParagraph paragraph - wxRichTextParagraph * paragraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextRenderer * self = (wxRichTextRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRenderer); - // call DrawTextBullet - bool returns = (self->DrawTextBullet(paragraph, *dc, *attr, *rect, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRenderer_EnumerateStandardBulletNames[] = { &wxluatype_wxRichTextRenderer, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxRichTextRenderer_EnumerateStandardBulletNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRenderer_EnumerateStandardBulletNames[1] = {{ wxLua_wxRichTextRenderer_EnumerateStandardBulletNames, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextRenderer_EnumerateStandardBulletNames }}; -// virtual bool EnumerateStandardBulletNames(wxArrayString& bulletNames); -static int LUACALL wxLua_wxRichTextRenderer_EnumerateStandardBulletNames(lua_State *L) -{ - // wxArrayString bulletNames - wxArrayString * bulletNames = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxRichTextRenderer * self = (wxRichTextRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextRenderer); - // call EnumerateStandardBulletNames - bool returns = (self->EnumerateStandardBulletNames(*bulletNames)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextRenderer_delete[] = { &wxluatype_wxRichTextRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextRenderer_delete }}; - - - - -void wxLua_wxRichTextRenderer_delete_function(void** p) -{ - wxRichTextRenderer* o = (wxRichTextRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextRenderer_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "DrawBitmapBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRenderer_DrawBitmapBullet, 1, NULL }, - { "DrawStandardBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRenderer_DrawStandardBullet, 1, NULL }, - { "DrawTextBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRenderer_DrawTextBullet, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "EnumerateStandardBulletNames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextRenderer_EnumerateStandardBulletNames, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextRenderer_delete, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextRenderer_methodCount = sizeof(wxRichTextRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextStdRenderer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStdRenderer' -int wxluatype_wxRichTextStdRenderer = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStdRenderer_DrawBitmapBullet[] = { &wxluatype_wxRichTextStdRenderer, &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextStdRenderer_DrawBitmapBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStdRenderer_DrawBitmapBullet[1] = {{ wxLua_wxRichTextStdRenderer_DrawBitmapBullet, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextStdRenderer_DrawBitmapBullet }}; -// virtual bool DrawBitmapBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect); -static int LUACALL wxLua_wxRichTextStdRenderer_DrawBitmapBullet(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextParagraph paragraph - wxRichTextParagraph * paragraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextStdRenderer * self = (wxRichTextStdRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStdRenderer); - // call DrawBitmapBullet - bool returns = (self->DrawBitmapBullet(paragraph, *dc, *attr, *rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStdRenderer_DrawStandardBullet[] = { &wxluatype_wxRichTextStdRenderer, &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextStdRenderer_DrawStandardBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStdRenderer_DrawStandardBullet[1] = {{ wxLua_wxRichTextStdRenderer_DrawStandardBullet, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextStdRenderer_DrawStandardBullet }}; -// virtual bool DrawStandardBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect); -static int LUACALL wxLua_wxRichTextStdRenderer_DrawStandardBullet(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextParagraph paragraph - wxRichTextParagraph * paragraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextStdRenderer * self = (wxRichTextStdRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStdRenderer); - // call DrawStandardBullet - bool returns = (self->DrawStandardBullet(paragraph, *dc, *attr, *rect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStdRenderer_DrawTextBullet[] = { &wxluatype_wxRichTextStdRenderer, &wxluatype_wxRichTextParagraph, &wxluatype_wxDC, &wxluatype_wxRichTextAttr, &wxluatype_wxRect, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStdRenderer_DrawTextBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStdRenderer_DrawTextBullet[1] = {{ wxLua_wxRichTextStdRenderer_DrawTextBullet, WXLUAMETHOD_METHOD, 6, 6, s_wxluatypeArray_wxLua_wxRichTextStdRenderer_DrawTextBullet }}; -// virtual bool DrawTextBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect, const wxString& text); -static int LUACALL wxLua_wxRichTextStdRenderer_DrawTextBullet(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 6); - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 3, wxluatype_wxDC); - // wxRichTextParagraph paragraph - wxRichTextParagraph * paragraph = (wxRichTextParagraph *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraph); - // get this - wxRichTextStdRenderer * self = (wxRichTextStdRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStdRenderer); - // call DrawTextBullet - bool returns = (self->DrawTextBullet(paragraph, *dc, *attr, *rect, text)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames[] = { &wxluatype_wxRichTextStdRenderer, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames[1] = {{ wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames }}; -// virtual bool EnumerateStandardBulletNames(wxArrayString& bulletNames); -static int LUACALL wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames(lua_State *L) -{ - // wxArrayString bulletNames - wxArrayString * bulletNames = (wxArrayString *)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxRichTextStdRenderer * self = (wxRichTextStdRenderer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStdRenderer); - // call EnumerateStandardBulletNames - bool returns = (self->EnumerateStandardBulletNames(*bulletNames)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStdRenderer_delete[] = { &wxluatype_wxRichTextStdRenderer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStdRenderer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStdRenderer_delete }}; - -static int LUACALL wxLua_wxRichTextStdRenderer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStdRenderer_constructor[1] = {{ wxLua_wxRichTextStdRenderer_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextStdRenderer(); -static int LUACALL wxLua_wxRichTextStdRenderer_constructor(lua_State *L) -{ - // call constructor - wxRichTextStdRenderer* returns = new wxRichTextStdRenderer(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStdRenderer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStdRenderer); - - return 1; -} - - - - -void wxLua_wxRichTextStdRenderer_delete_function(void** p) -{ - wxRichTextStdRenderer* o = (wxRichTextStdRenderer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStdRenderer_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "DrawBitmapBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStdRenderer_DrawBitmapBullet, 1, NULL }, - { "DrawStandardBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStdRenderer_DrawStandardBullet, 1, NULL }, - { "DrawTextBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStdRenderer_DrawTextBullet, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "EnumerateStandardBulletNames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStdRenderer_EnumerateStandardBulletNames, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStdRenderer_delete, 1, NULL }, - { "wxRichTextStdRenderer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextStdRenderer_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStdRenderer_methodCount = sizeof(wxRichTextStdRenderer_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextContextMenuPropertiesInfo -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextContextMenuPropertiesInfo' -int wxluatype_wxRichTextContextMenuPropertiesInfo = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_AddItem[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_TSTRING, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_AddItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_AddItem[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_AddItem, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_AddItem }}; -// bool AddItem(const wxString& label, wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_AddItem(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // const wxString label - const wxString label = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call AddItem - bool returns = (self->AddItem(label, obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_AddItems[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_AddItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_AddItems[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_AddItems, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_AddItems }}; -// int AddItems(wxRichTextCtrl* ctrl, wxRichTextObject* container, wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_AddItems(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextObject); - // wxRichTextObject container - wxRichTextObject * container = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call AddItems - int returns = (self->AddItems(ctrl, container, obj)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_wxMenu, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems }}; -// int AddMenuItems(wxMenu* menu, int startCmd = wxID_RICHTEXT_PROPERTIES1) const; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int startCmd = wxID_RICHTEXT_PROPERTIES1 - int startCmd = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxID_RICHTEXT_PROPERTIES1); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call AddMenuItems - int returns = (self->AddMenuItems(menu, startCmd)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Clear[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Clear[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Clear(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetCount[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetCount[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_GetCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetCount }}; -// int GetCount() const; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetCount(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call GetCount - int returns = (self->GetCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel }}; -// wxString GetLabel(int n) const; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call GetLabel - wxString returns = (self->GetLabel(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1 }}; -// const wxArrayString& GetLabels() const; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call GetLabels - const wxArrayString* returns = (const wxArrayString*)&self->GetLabels(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels }}; -// wxArrayString& GetLabels(); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call GetLabels - wxArrayString* returns = (wxArrayString*)&self->GetLabels(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetObject[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetObject[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_GetObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetObject }}; -// wxRichTextObject* GetObject(int n) const; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetObject(lua_State *L) -{ - // int n - int n = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call GetObject - wxRichTextObject* returns = (wxRichTextObject*)self->GetObject(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects }}; -// wxRichTextObjectPtrArray& GetObjects(); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call GetObjects - wxRichTextObjectPtrArray* returns = (wxRichTextObjectPtrArray*)&self->GetObjects(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPtrArray); - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels }}; -// wxArrayString m_labels; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo *self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_labels, wxluatype_wxArrayString); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects }}; -// wxRichTextObjectPtrArray m_objects; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo *self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, &self->m_objects, wxluatype_wxRichTextObjectPtrArray); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Init[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Init[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Init(lua_State *L) -{ - // get this - wxRichTextContextMenuPropertiesInfo * self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - // call Init - self->Init(); - - return 0; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels }}; -// wxArrayString m_labels; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels(lua_State *L) -{ - // get the data type value - wxArrayString* val = (wxArrayString*)wxluaT_getuserdatatype(L, 2, wxluatype_wxArrayString); - // get this - wxRichTextContextMenuPropertiesInfo *self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - self->m_labels = *val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, &wxluatype_wxRichTextObjectPtrArray, NULL }; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects }}; -// wxRichTextObjectPtrArray m_objects; -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects(lua_State *L) -{ - // get the data type value - wxRichTextObjectPtrArray* val = (wxRichTextObjectPtrArray*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObjectPtrArray); - // get this - wxRichTextContextMenuPropertiesInfo *self = (wxRichTextContextMenuPropertiesInfo *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextContextMenuPropertiesInfo); - self->m_objects = *val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_delete[] = { &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_delete }}; - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_constructor[1] = {{ wxLua_wxRichTextContextMenuPropertiesInfo_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextContextMenuPropertiesInfo(); -static int LUACALL wxLua_wxRichTextContextMenuPropertiesInfo_constructor(lua_State *L) -{ - // call constructor - wxRichTextContextMenuPropertiesInfo* returns = new wxRichTextContextMenuPropertiesInfo(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextContextMenuPropertiesInfo); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextContextMenuPropertiesInfo); - - return 1; -} - - - - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels_overload[] = -{ - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels1 }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxRichTextContextMenuPropertiesInfo_delete_function(void** p) -{ - wxRichTextContextMenuPropertiesInfo* o = (wxRichTextContextMenuPropertiesInfo*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextContextMenuPropertiesInfo_methods[] = { - { "AddItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_AddItem, 1, NULL }, - { "AddItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_AddItems, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "AddMenuItems", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_AddMenuItems, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Clear, 1, NULL }, - { "GetCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetCount, 1, NULL }, - { "GetLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabel, 1, NULL }, - -#if ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "GetLabels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels_overload, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetLabels_overload_count, 0 }, -#endif // ((wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetObject, 1, NULL }, - { "GetObjects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_GetObjects, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_labels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_objects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Init, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_labels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Set_m_objects", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_delete, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_labels", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_labels, 1, NULL }, - { "m_labels", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_labels, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "m_objects", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Set_m_objects, 1, NULL }, - { "m_objects", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_Get_m_objects, 1, NULL }, - { "wxRichTextContextMenuPropertiesInfo", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextContextMenuPropertiesInfo_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextContextMenuPropertiesInfo_methodCount = sizeof(wxRichTextContextMenuPropertiesInfo_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextCtrl' -int wxluatype_wxRichTextCtrl = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_AddImage[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxImage, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_AddImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_AddImage[1] = {{ wxLua_wxRichTextCtrl_AddImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_AddImage }}; -// virtual wxRichTextRange AddImage(const wxImage& image); -static int LUACALL wxLua_wxRichTextCtrl_AddImage(lua_State *L) -{ - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call AddImage - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->AddImage(*image)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_AddParagraph[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_AddParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_AddParagraph[1] = {{ wxLua_wxRichTextCtrl_AddParagraph, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_AddParagraph }}; -// virtual wxRichTextRange AddParagraph(const wxString& text); -static int LUACALL wxLua_wxRichTextCtrl_AddParagraph(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call AddParagraph - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->AddParagraph(text)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_AppendText[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_AppendText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_AppendText[1] = {{ wxLua_wxRichTextCtrl_AppendText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_AppendText }}; -// virtual void AppendText(const wxString& text); -static int LUACALL wxLua_wxRichTextCtrl_AppendText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call AppendText - self->AppendText(text); - - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyAlignmentToSelection[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyAlignmentToSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyAlignmentToSelection[1] = {{ wxLua_wxRichTextCtrl_ApplyAlignmentToSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyAlignmentToSelection }}; -// virtual bool ApplyAlignmentToSelection(wxTextAttrAlignment alignment); -static int LUACALL wxLua_wxRichTextCtrl_ApplyAlignmentToSelection(lua_State *L) -{ - // wxTextAttrAlignment alignment - wxTextAttrAlignment alignment = (wxTextAttrAlignment)wxlua_getenumtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyAlignmentToSelection - bool returns = (self->ApplyAlignmentToSelection(alignment)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyBoldToSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyBoldToSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyBoldToSelection[1] = {{ wxLua_wxRichTextCtrl_ApplyBoldToSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyBoldToSelection }}; -// virtual bool ApplyBoldToSelection(); -static int LUACALL wxLua_wxRichTextCtrl_ApplyBoldToSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyBoldToSelection - bool returns = (self->ApplyBoldToSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyItalicToSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyItalicToSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyItalicToSelection[1] = {{ wxLua_wxRichTextCtrl_ApplyItalicToSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyItalicToSelection }}; -// virtual bool ApplyItalicToSelection(); -static int LUACALL wxLua_wxRichTextCtrl_ApplyItalicToSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyItalicToSelection - bool returns = (self->ApplyItalicToSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyStyle[1] = {{ wxLua_wxRichTextCtrl_ApplyStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyStyle }}; -// virtual bool ApplyStyle(wxRichTextStyleDefinition* def); -static int LUACALL wxLua_wxRichTextCtrl_ApplyStyle(lua_State *L) -{ - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyStyle - bool returns = (self->ApplyStyle(def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyStyleSheet[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyStyleSheet[1] = {{ wxLua_wxRichTextCtrl_ApplyStyleSheet, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyStyleSheet }}; -// bool ApplyStyleSheet(wxRichTextStyleSheet* styleSheet = NULL); -static int LUACALL wxLua_wxRichTextCtrl_ApplyStyleSheet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextStyleSheet styleSheet = NULL - wxRichTextStyleSheet * styleSheet = (argCount >= 2 ? (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet) : NULL); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyStyleSheet - bool returns = (self->ApplyStyleSheet(styleSheet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyTextEffectToSelection[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyTextEffectToSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyTextEffectToSelection[1] = {{ wxLua_wxRichTextCtrl_ApplyTextEffectToSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyTextEffectToSelection }}; -// virtual bool ApplyTextEffectToSelection(int flags); -static int LUACALL wxLua_wxRichTextCtrl_ApplyTextEffectToSelection(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyTextEffectToSelection - bool returns = (self->ApplyTextEffectToSelection(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyUnderlineToSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ApplyUnderlineToSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ApplyUnderlineToSelection[1] = {{ wxLua_wxRichTextCtrl_ApplyUnderlineToSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_ApplyUnderlineToSelection }}; -// virtual bool ApplyUnderlineToSelection(); -static int LUACALL wxLua_wxRichTextCtrl_ApplyUnderlineToSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ApplyUnderlineToSelection - bool returns = (self->ApplyUnderlineToSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BatchingUndo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BatchingUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BatchingUndo[1] = {{ wxLua_wxRichTextCtrl_BatchingUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_BatchingUndo }}; -// virtual bool BatchingUndo() const; -static int LUACALL wxLua_wxRichTextCtrl_BatchingUndo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BatchingUndo - bool returns = (self->BatchingUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginAlignment[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginAlignment[1] = {{ wxLua_wxRichTextCtrl_BeginAlignment, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginAlignment }}; -// bool BeginAlignment(wxTextAttrAlignment alignment); -static int LUACALL wxLua_wxRichTextCtrl_BeginAlignment(lua_State *L) -{ - // wxTextAttrAlignment alignment - wxTextAttrAlignment alignment = (wxTextAttrAlignment)wxlua_getenumtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginAlignment - bool returns = (self->BeginAlignment(alignment)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginBatchUndo[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginBatchUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginBatchUndo[1] = {{ wxLua_wxRichTextCtrl_BeginBatchUndo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginBatchUndo }}; -// virtual bool BeginBatchUndo(const wxString& cmdName); -static int LUACALL wxLua_wxRichTextCtrl_BeginBatchUndo(lua_State *L) -{ - // const wxString cmdName - const wxString cmdName = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginBatchUndo - bool returns = (self->BeginBatchUndo(cmdName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginBold[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginBold[1] = {{ wxLua_wxRichTextCtrl_BeginBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginBold }}; -// bool BeginBold(); -static int LUACALL wxLua_wxRichTextCtrl_BeginBold(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginBold - bool returns = (self->BeginBold()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginCharacterStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginCharacterStyle[1] = {{ wxLua_wxRichTextCtrl_BeginCharacterStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginCharacterStyle }}; -// bool BeginCharacterStyle(const wxString& characterStyle); -static int LUACALL wxLua_wxRichTextCtrl_BeginCharacterStyle(lua_State *L) -{ - // const wxString characterStyle - const wxString characterStyle = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginCharacterStyle - bool returns = (self->BeginCharacterStyle(characterStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginFont[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginFont[1] = {{ wxLua_wxRichTextCtrl_BeginFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginFont }}; -// bool BeginFont(const wxFont& font); -static int LUACALL wxLua_wxRichTextCtrl_BeginFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginFont - bool returns = (self->BeginFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginFontSize[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginFontSize[1] = {{ wxLua_wxRichTextCtrl_BeginFontSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginFontSize }}; -// bool BeginFontSize(int pointSize); -static int LUACALL wxLua_wxRichTextCtrl_BeginFontSize(lua_State *L) -{ - // int pointSize - int pointSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginFontSize - bool returns = (self->BeginFontSize(pointSize)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginItalic[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginItalic[1] = {{ wxLua_wxRichTextCtrl_BeginItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginItalic }}; -// bool BeginItalic(); -static int LUACALL wxLua_wxRichTextCtrl_BeginItalic(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginItalic - bool returns = (self->BeginItalic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginLeftIndent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginLeftIndent[1] = {{ wxLua_wxRichTextCtrl_BeginLeftIndent, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginLeftIndent }}; -// bool BeginLeftIndent(int leftIndent, int leftSubIndent = 0); -static int LUACALL wxLua_wxRichTextCtrl_BeginLeftIndent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int leftSubIndent = 0 - int leftSubIndent = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginLeftIndent - bool returns = (self->BeginLeftIndent(leftIndent, leftSubIndent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginLineSpacing[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginLineSpacing[1] = {{ wxLua_wxRichTextCtrl_BeginLineSpacing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginLineSpacing }}; -// bool BeginLineSpacing(int lineSpacing); -static int LUACALL wxLua_wxRichTextCtrl_BeginLineSpacing(lua_State *L) -{ - // int lineSpacing - int lineSpacing = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginLineSpacing - bool returns = (self->BeginLineSpacing(lineSpacing)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginListStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginListStyle[1] = {{ wxLua_wxRichTextCtrl_BeginListStyle, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginListStyle }}; -// bool BeginListStyle(const wxString& listStyle, int level = 1, int number = 1); -static int LUACALL wxLua_wxRichTextCtrl_BeginListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int number = 1 - int number = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 1); - // int level = 1 - int level = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString listStyle - const wxString listStyle = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginListStyle - bool returns = (self->BeginListStyle(listStyle, level, number)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginNumberedBullet[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginNumberedBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginNumberedBullet[1] = {{ wxLua_wxRichTextCtrl_BeginNumberedBullet, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginNumberedBullet }}; -// bool BeginNumberedBullet(int bulletNumber, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_ARABIC|wxTEXT_ATTR_BULLET_STYLE_PERIOD); -static int LUACALL wxLua_wxRichTextCtrl_BeginNumberedBullet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_ARABIC | wxTEXT_ATTR_BULLET_STYLE_PERIOD - int bulletStyle = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTEXT_ATTR_BULLET_STYLE_ARABIC | wxTEXT_ATTR_BULLET_STYLE_PERIOD); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // int bulletNumber - int bulletNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginNumberedBullet - bool returns = (self->BeginNumberedBullet(bulletNumber, leftIndent, leftSubIndent, bulletStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginParagraphSpacing[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginParagraphSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginParagraphSpacing[1] = {{ wxLua_wxRichTextCtrl_BeginParagraphSpacing, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginParagraphSpacing }}; -// bool BeginParagraphSpacing(int before, int after); -static int LUACALL wxLua_wxRichTextCtrl_BeginParagraphSpacing(lua_State *L) -{ - // int after - int after = (int)wxlua_getnumbertype(L, 3); - // int before - int before = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginParagraphSpacing - bool returns = (self->BeginParagraphSpacing(before, after)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginParagraphStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginParagraphStyle[1] = {{ wxLua_wxRichTextCtrl_BeginParagraphStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginParagraphStyle }}; -// bool BeginParagraphStyle(const wxString& paragraphStyle); -static int LUACALL wxLua_wxRichTextCtrl_BeginParagraphStyle(lua_State *L) -{ - // const wxString paragraphStyle - const wxString paragraphStyle = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginParagraphStyle - bool returns = (self->BeginParagraphStyle(paragraphStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginRightIndent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginRightIndent[1] = {{ wxLua_wxRichTextCtrl_BeginRightIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginRightIndent }}; -// bool BeginRightIndent(int rightIndent); -static int LUACALL wxLua_wxRichTextCtrl_BeginRightIndent(lua_State *L) -{ - // int rightIndent - int rightIndent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginRightIndent - bool returns = (self->BeginRightIndent(rightIndent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginStandardBullet[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginStandardBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginStandardBullet[1] = {{ wxLua_wxRichTextCtrl_BeginStandardBullet, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginStandardBullet }}; -// bool BeginStandardBullet(const wxString& bulletName, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_STANDARD); -static int LUACALL wxLua_wxRichTextCtrl_BeginStandardBullet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_STANDARD - int bulletStyle = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTEXT_ATTR_BULLET_STYLE_STANDARD); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // const wxString bulletName - const wxString bulletName = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginStandardBullet - bool returns = (self->BeginStandardBullet(bulletName, leftIndent, leftSubIndent, bulletStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginStyle[1] = {{ wxLua_wxRichTextCtrl_BeginStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginStyle }}; -// virtual bool BeginStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_BeginStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginStyle - bool returns = (self->BeginStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginSuppressUndo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginSuppressUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginSuppressUndo[1] = {{ wxLua_wxRichTextCtrl_BeginSuppressUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginSuppressUndo }}; -// virtual bool BeginSuppressUndo(); -static int LUACALL wxLua_wxRichTextCtrl_BeginSuppressUndo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginSuppressUndo - bool returns = (self->BeginSuppressUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginSymbolBullet[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginSymbolBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginSymbolBullet[1] = {{ wxLua_wxRichTextCtrl_BeginSymbolBullet, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginSymbolBullet }}; -// bool BeginSymbolBullet(const wxString& symbol, int leftIndent, int leftSubIndent, int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL); -static int LUACALL wxLua_wxRichTextCtrl_BeginSymbolBullet(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int bulletStyle = wxTEXT_ATTR_BULLET_STYLE_SYMBOL - int bulletStyle = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxTEXT_ATTR_BULLET_STYLE_SYMBOL); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // const wxString symbol - const wxString symbol = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginSymbolBullet - bool returns = (self->BeginSymbolBullet(symbol, leftIndent, leftSubIndent, bulletStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginTextColour[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginTextColour[1] = {{ wxLua_wxRichTextCtrl_BeginTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginTextColour }}; -// bool BeginTextColour(const wxColour& colour); -static int LUACALL wxLua_wxRichTextCtrl_BeginTextColour(lua_State *L) -{ - // const wxColour colour - const wxColour * colour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginTextColour - bool returns = (self->BeginTextColour(*colour)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginURL[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginURL[1] = {{ wxLua_wxRichTextCtrl_BeginURL, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginURL }}; -// bool BeginURL(const wxString& url, const wxString& characterStyle = wxEmptyString); -static int LUACALL wxLua_wxRichTextCtrl_BeginURL(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString characterStyle = wxEmptyString - const wxString characterStyle = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginURL - bool returns = (self->BeginURL(url, characterStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginUnderline[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_BeginUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_BeginUnderline[1] = {{ wxLua_wxRichTextCtrl_BeginUnderline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_BeginUnderline }}; -// bool BeginUnderline(); -static int LUACALL wxLua_wxRichTextCtrl_BeginUnderline(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call BeginUnderline - bool returns = (self->BeginUnderline()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanCopy[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanCopy[1] = {{ wxLua_wxRichTextCtrl_CanCopy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanCopy }}; -// virtual bool CanCopy() const; -static int LUACALL wxLua_wxRichTextCtrl_CanCopy(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanCopy - bool returns = (self->CanCopy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanCut[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanCut[1] = {{ wxLua_wxRichTextCtrl_CanCut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanCut }}; -// virtual bool CanCut() const; -static int LUACALL wxLua_wxRichTextCtrl_CanCut(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanCut - bool returns = (self->CanCut()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanDeleteRange[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanDeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanDeleteRange[1] = {{ wxLua_wxRichTextCtrl_CanDeleteRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanDeleteRange }}; -// virtual bool CanDeleteRange(wxRichTextParagraphLayoutBox& container, const wxRichTextRange& range) const; -static int LUACALL wxLua_wxRichTextCtrl_CanDeleteRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanDeleteRange - bool returns = (self->CanDeleteRange(*container, *range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanDeleteSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanDeleteSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanDeleteSelection[1] = {{ wxLua_wxRichTextCtrl_CanDeleteSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanDeleteSelection }}; -// virtual bool CanDeleteSelection() const; -static int LUACALL wxLua_wxRichTextCtrl_CanDeleteSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanDeleteSelection - bool returns = (self->CanDeleteSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanEditProperties[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanEditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanEditProperties[1] = {{ wxLua_wxRichTextCtrl_CanEditProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanEditProperties }}; -// virtual bool CanEditProperties(wxRichTextObject* obj) const; -static int LUACALL wxLua_wxRichTextCtrl_CanEditProperties(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanEditProperties - bool returns = (self->CanEditProperties(obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanInsertContent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanInsertContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanInsertContent[1] = {{ wxLua_wxRichTextCtrl_CanInsertContent, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanInsertContent }}; -// virtual bool CanInsertContent(wxRichTextParagraphLayoutBox& container, long pos) const; -static int LUACALL wxLua_wxRichTextCtrl_CanInsertContent(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 3); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanInsertContent - bool returns = (self->CanInsertContent(*container, pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanPaste[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanPaste[1] = {{ wxLua_wxRichTextCtrl_CanPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanPaste }}; -// virtual bool CanPaste() const; -static int LUACALL wxLua_wxRichTextCtrl_CanPaste(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanPaste - bool returns = (self->CanPaste()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanRedo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanRedo[1] = {{ wxLua_wxRichTextCtrl_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanRedo }}; -// virtual bool CanRedo() const; -static int LUACALL wxLua_wxRichTextCtrl_CanRedo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_CanUndo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_CanUndo[1] = {{ wxLua_wxRichTextCtrl_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_CanUndo }}; -// virtual bool CanUndo() const; -static int LUACALL wxLua_wxRichTextCtrl_CanUndo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Clear[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Clear[1] = {{ wxLua_wxRichTextCtrl_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Clear }}; -// virtual void Clear(); -static int LUACALL wxLua_wxRichTextCtrl_Clear(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Clear - self->Clear(); - - return 0; -} - -static int LUACALL wxLua_wxRichTextCtrl_ClearAvailableFontNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ClearAvailableFontNames[1] = {{ wxLua_wxRichTextCtrl_ClearAvailableFontNames, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void ClearAvailableFontNames(); -static int LUACALL wxLua_wxRichTextCtrl_ClearAvailableFontNames(lua_State *L) -{ - // call ClearAvailableFontNames - wxRichTextCtrl::ClearAvailableFontNames(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ClearListStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ClearListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ClearListStyle[1] = {{ wxLua_wxRichTextCtrl_ClearListStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_ClearListStyle }}; -// virtual bool ClearListStyle(const wxRichTextRange& range, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextCtrl_ClearListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ClearListStyle - bool returns = (self->ClearListStyle(*range, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Command[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Command(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Command[1] = {{ wxLua_wxRichTextCtrl_Command, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_Command }}; -// void Command(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_Command(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Command - self->Command(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Copy[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Copy[1] = {{ wxLua_wxRichTextCtrl_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Copy }}; -// virtual void Copy(); -static int LUACALL wxLua_wxRichTextCtrl_Copy(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Copy - self->Copy(); - - return 0; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Create[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Create[1] = {{ wxLua_wxRichTextCtrl_Create, WXLUAMETHOD_METHOD, 2, 9, s_wxluatypeArray_wxLua_wxRichTextCtrl_Create }}; -// long style = wxRE_MULTILINE, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr ); -static int LUACALL wxLua_wxRichTextCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxTextCtrlNameStr - const wxString name = (argCount >= 9 ? wxlua_getwxStringtype(L, 9) : wxString(wxTextCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 8 ? (const wxValidator *)wxluaT_getuserdatatype(L, 8, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxRE_MULTILINE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxRE_MULTILINE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Create - bool returns = (self->Create(parent, id, value, *pos, *size, style, *validator, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Cut[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Cut[1] = {{ wxLua_wxRichTextCtrl_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Cut }}; -// virtual void Cut(); -static int LUACALL wxLua_wxRichTextCtrl_Cut(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Cut - self->Cut(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Delete[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Delete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Delete[1] = {{ wxLua_wxRichTextCtrl_Delete, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_Delete }}; -// virtual bool Delete(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextCtrl_Delete(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Delete - bool returns = (self->Delete(*range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DeleteSelectedContent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DeleteSelectedContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DeleteSelectedContent[1] = {{ wxLua_wxRichTextCtrl_DeleteSelectedContent, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_DeleteSelectedContent }}; -// %override wxLua_wxRichTextCtrl_DeleteSelectedContent -// C++: bool DeleteSelectedContent(long* newPos= NULL); -// Lua: %override [bool, long] DeleteSelectedContent(); -static int LUACALL wxLua_wxRichTextCtrl_DeleteSelectedContent(lua_State *L) -{ - // long *newPos = NULL - long newPos; - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DeleteSelectedContent - bool returns = (self->DeleteSelectedContent(&newPos)); - // push the result flag - lua_pushboolean(L, returns); - // push the newPos number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)newPos == (double)newPos) { - // Exactly representable as lua_Integer - lua_pushinteger(L, newPos); -} else -#endif -{ - lua_pushnumber(L, newPos); -} - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DeleteSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DeleteSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DeleteSelection[1] = {{ wxLua_wxRichTextCtrl_DeleteSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_DeleteSelection }}; -// virtual void DeleteSelection(); -static int LUACALL wxLua_wxRichTextCtrl_DeleteSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DeleteSelection - self->DeleteSelection(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DiscardEdits[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DiscardEdits(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DiscardEdits[1] = {{ wxLua_wxRichTextCtrl_DiscardEdits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_DiscardEdits }}; -// virtual void DiscardEdits(); -static int LUACALL wxLua_wxRichTextCtrl_DiscardEdits(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DiscardEdits - self->DiscardEdits(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DoGetValue[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DoGetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DoGetValue[1] = {{ wxLua_wxRichTextCtrl_DoGetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_DoGetValue }}; -// virtual wxString DoGetValue() const; -static int LUACALL wxLua_wxRichTextCtrl_DoGetValue(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DoGetValue - wxString returns = (self->DoGetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DoLoadFile[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DoLoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DoLoadFile[1] = {{ wxLua_wxRichTextCtrl_DoLoadFile, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_DoLoadFile }}; -// virtual bool DoLoadFile(const wxString& file, int fileType); -static int LUACALL wxLua_wxRichTextCtrl_DoLoadFile(lua_State *L) -{ - // int fileType - int fileType = (int)wxlua_getnumbertype(L, 3); - // const wxString file - const wxString file = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DoLoadFile - bool returns = (self->DoLoadFile(file, fileType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DoSaveFile[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DoSaveFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DoSaveFile[1] = {{ wxLua_wxRichTextCtrl_DoSaveFile, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_DoSaveFile }}; -// int fileType = wxRICHTEXT_TYPE_ANY); -static int LUACALL wxLua_wxRichTextCtrl_DoSaveFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int fileType = wxRICHTEXT_TYPE_ANY - int fileType = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRICHTEXT_TYPE_ANY); - // const wxString file = wxEmptyString - const wxString file = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DoSaveFile - bool returns = (self->DoSaveFile(file, fileType)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DoWriteText[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DoWriteText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DoWriteText[1] = {{ wxLua_wxRichTextCtrl_DoWriteText, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_DoWriteText }}; -// virtual void DoWriteText(const wxString& value, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_DoWriteText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DoWriteText - self->DoWriteText(value, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag[1] = {{ wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag }}; -// virtual bool DoesSelectionHaveTextEffectFlag(int flag); -static int LUACALL wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag(lua_State *L) -{ - // int flag - int flag = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call DoesSelectionHaveTextEffectFlag - bool returns = (self->DoesSelectionHaveTextEffectFlag(flag)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EditProperties[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextObject, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EditProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EditProperties[1] = {{ wxLua_wxRichTextCtrl_EditProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_EditProperties }}; -// virtual bool EditProperties(wxRichTextObject* obj, wxWindow* parent); -static int LUACALL wxLua_wxRichTextCtrl_EditProperties(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EditProperties - bool returns = (self->EditProperties(obj, parent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EnableVerticalScrollbar[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EnableVerticalScrollbar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EnableVerticalScrollbar[1] = {{ wxLua_wxRichTextCtrl_EnableVerticalScrollbar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_EnableVerticalScrollbar }}; -// virtual void EnableVerticalScrollbar(bool enable); -static int LUACALL wxLua_wxRichTextCtrl_EnableVerticalScrollbar(lua_State *L) -{ - // bool enable - bool enable = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EnableVerticalScrollbar - self->EnableVerticalScrollbar(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EnableVirtualAttributes[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EnableVirtualAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EnableVirtualAttributes[1] = {{ wxLua_wxRichTextCtrl_EnableVirtualAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_EnableVirtualAttributes }}; -// void EnableVirtualAttributes(bool b); -static int LUACALL wxLua_wxRichTextCtrl_EnableVirtualAttributes(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EnableVirtualAttributes - self->EnableVirtualAttributes(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndAlignment[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndAlignment(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndAlignment[1] = {{ wxLua_wxRichTextCtrl_EndAlignment, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndAlignment }}; -// bool EndAlignment(); -static int LUACALL wxLua_wxRichTextCtrl_EndAlignment(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndAlignment - bool returns = (self->EndAlignment()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndAllStyles[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndAllStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndAllStyles[1] = {{ wxLua_wxRichTextCtrl_EndAllStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndAllStyles }}; -// virtual bool EndAllStyles(); -static int LUACALL wxLua_wxRichTextCtrl_EndAllStyles(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndAllStyles - bool returns = (self->EndAllStyles()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndBatchUndo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndBatchUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndBatchUndo[1] = {{ wxLua_wxRichTextCtrl_EndBatchUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndBatchUndo }}; -// virtual bool EndBatchUndo(); -static int LUACALL wxLua_wxRichTextCtrl_EndBatchUndo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndBatchUndo - bool returns = (self->EndBatchUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndBold[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndBold[1] = {{ wxLua_wxRichTextCtrl_EndBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndBold }}; -// bool EndBold(); -static int LUACALL wxLua_wxRichTextCtrl_EndBold(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndBold - bool returns = (self->EndBold()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndCharacterStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndCharacterStyle[1] = {{ wxLua_wxRichTextCtrl_EndCharacterStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndCharacterStyle }}; -// bool EndCharacterStyle(); -static int LUACALL wxLua_wxRichTextCtrl_EndCharacterStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndCharacterStyle - bool returns = (self->EndCharacterStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndFont[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndFont[1] = {{ wxLua_wxRichTextCtrl_EndFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndFont }}; -// bool EndFont(); -static int LUACALL wxLua_wxRichTextCtrl_EndFont(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndFont - bool returns = (self->EndFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndFontSize[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndFontSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndFontSize[1] = {{ wxLua_wxRichTextCtrl_EndFontSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndFontSize }}; -// bool EndFontSize(); -static int LUACALL wxLua_wxRichTextCtrl_EndFontSize(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndFontSize - bool returns = (self->EndFontSize()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndItalic[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndItalic[1] = {{ wxLua_wxRichTextCtrl_EndItalic, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndItalic }}; -// bool EndItalic(); -static int LUACALL wxLua_wxRichTextCtrl_EndItalic(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndItalic - bool returns = (self->EndItalic()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndLeftIndent[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndLeftIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndLeftIndent[1] = {{ wxLua_wxRichTextCtrl_EndLeftIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndLeftIndent }}; -// bool EndLeftIndent(); -static int LUACALL wxLua_wxRichTextCtrl_EndLeftIndent(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndLeftIndent - bool returns = (self->EndLeftIndent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndLineSpacing[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndLineSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndLineSpacing[1] = {{ wxLua_wxRichTextCtrl_EndLineSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndLineSpacing }}; -// bool EndLineSpacing(); -static int LUACALL wxLua_wxRichTextCtrl_EndLineSpacing(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndLineSpacing - bool returns = (self->EndLineSpacing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndListStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndListStyle[1] = {{ wxLua_wxRichTextCtrl_EndListStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndListStyle }}; -// bool EndListStyle(); -static int LUACALL wxLua_wxRichTextCtrl_EndListStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndListStyle - bool returns = (self->EndListStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndNumberedBullet[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndNumberedBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndNumberedBullet[1] = {{ wxLua_wxRichTextCtrl_EndNumberedBullet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndNumberedBullet }}; -// bool EndNumberedBullet(); -static int LUACALL wxLua_wxRichTextCtrl_EndNumberedBullet(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndNumberedBullet - bool returns = (self->EndNumberedBullet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndParagraphSpacing[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndParagraphSpacing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndParagraphSpacing[1] = {{ wxLua_wxRichTextCtrl_EndParagraphSpacing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndParagraphSpacing }}; -// bool EndParagraphSpacing(); -static int LUACALL wxLua_wxRichTextCtrl_EndParagraphSpacing(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndParagraphSpacing - bool returns = (self->EndParagraphSpacing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndParagraphStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndParagraphStyle[1] = {{ wxLua_wxRichTextCtrl_EndParagraphStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndParagraphStyle }}; -// bool EndParagraphStyle(); -static int LUACALL wxLua_wxRichTextCtrl_EndParagraphStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndParagraphStyle - bool returns = (self->EndParagraphStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndRightIndent[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndRightIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndRightIndent[1] = {{ wxLua_wxRichTextCtrl_EndRightIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndRightIndent }}; -// bool EndRightIndent(); -static int LUACALL wxLua_wxRichTextCtrl_EndRightIndent(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndRightIndent - bool returns = (self->EndRightIndent()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndStandardBullet[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndStandardBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndStandardBullet[1] = {{ wxLua_wxRichTextCtrl_EndStandardBullet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndStandardBullet }}; -// bool EndStandardBullet(); -static int LUACALL wxLua_wxRichTextCtrl_EndStandardBullet(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndStandardBullet - bool returns = (self->EndStandardBullet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndStyle[1] = {{ wxLua_wxRichTextCtrl_EndStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndStyle }}; -// virtual bool EndStyle(); -static int LUACALL wxLua_wxRichTextCtrl_EndStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndStyle - bool returns = (self->EndStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndSuppressUndo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndSuppressUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndSuppressUndo[1] = {{ wxLua_wxRichTextCtrl_EndSuppressUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndSuppressUndo }}; -// virtual bool EndSuppressUndo(); -static int LUACALL wxLua_wxRichTextCtrl_EndSuppressUndo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndSuppressUndo - bool returns = (self->EndSuppressUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndSymbolBullet[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndSymbolBullet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndSymbolBullet[1] = {{ wxLua_wxRichTextCtrl_EndSymbolBullet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndSymbolBullet }}; -// bool EndSymbolBullet(); -static int LUACALL wxLua_wxRichTextCtrl_EndSymbolBullet(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndSymbolBullet - bool returns = (self->EndSymbolBullet()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndTextColour[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndTextColour[1] = {{ wxLua_wxRichTextCtrl_EndTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndTextColour }}; -// bool EndTextColour(); -static int LUACALL wxLua_wxRichTextCtrl_EndTextColour(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndTextColour - bool returns = (self->EndTextColour()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndURL[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndURL[1] = {{ wxLua_wxRichTextCtrl_EndURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndURL }}; -// bool EndURL(); -static int LUACALL wxLua_wxRichTextCtrl_EndURL(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndURL - bool returns = (self->EndURL()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_EndUnderline[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_EndUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_EndUnderline[1] = {{ wxLua_wxRichTextCtrl_EndUnderline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_EndUnderline }}; -// bool EndUnderline(); -static int LUACALL wxLua_wxRichTextCtrl_EndUnderline(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call EndUnderline - bool returns = (self->EndUnderline()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ExtendSelection[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ExtendSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ExtendSelection[1] = {{ wxLua_wxRichTextCtrl_ExtendSelection, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_ExtendSelection }}; -// virtual bool ExtendSelection(long oldPosition, long newPosition, int flags); -static int LUACALL wxLua_wxRichTextCtrl_ExtendSelection(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 4); - // long newPosition - long newPosition = (long)wxlua_getnumbertype(L, 3); - // long oldPosition - long oldPosition = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ExtendSelection - bool returns = (self->ExtendSelection(oldPosition, newPosition, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition[1] = {{ wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition }}; -// bool& caretLineStart); -static int LUACALL wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition(lua_State *L) -{ - // bool caretLineStart - bool * caretLineStart = (bool *)wxlua_touserdata(L, 5); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextParagraphLayoutBox); - // int hitTestFlags - int hitTestFlags = (int)wxlua_getnumbertype(L, 3); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call FindCaretPositionForCharacterPosition - long returns = (self->FindCaretPositionForCharacterPosition(position, hitTestFlags, container, *caretLineStart)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_FindContainerAtPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_FindContainerAtPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_FindContainerAtPoint[1] = {{ wxLua_wxRichTextCtrl_FindContainerAtPoint, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_FindContainerAtPoint }}; -// wxRichTextParagraphLayoutBox* FindContainerAtPoint(const wxPoint pt, long& position, int& hit, wxRichTextObject* hitObj, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_FindContainerAtPoint(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : 0); - // wxRichTextObject hitObj - wxRichTextObject * hitObj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextObject); - // int hit - int * hit = (int *)wxlua_touserdata(L, 4); - // long position - long * position = (long *)wxlua_touserdata(L, 3); - // const wxPoint pt - const wxPoint pt = *(const wxPoint*)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call FindContainerAtPoint - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->FindContainerAtPoint(pt, *position, *hit, hitObj, flags); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_FindNextWordPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_FindNextWordPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_FindNextWordPosition[1] = {{ wxLua_wxRichTextCtrl_FindNextWordPosition, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_FindNextWordPosition }}; -// virtual long FindNextWordPosition(int direction = 1) const; -static int LUACALL wxLua_wxRichTextCtrl_FindNextWordPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int direction = 1 - int direction = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call FindNextWordPosition - long returns = (self->FindNextWordPosition(direction)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_FindRangeForList[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_FindRangeForList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_FindRangeForList[1] = {{ wxLua_wxRichTextCtrl_FindRangeForList, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_FindRangeForList }}; -// virtual wxRichTextRange FindRangeForList(long pos, bool& isNumberedList); -static int LUACALL wxLua_wxRichTextCtrl_FindRangeForList(lua_State *L) -{ - // bool isNumberedList - bool * isNumberedList = (bool *)wxlua_touserdata(L, 3); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call FindRangeForList - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->FindRangeForList(pos, *isNumberedList)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ForceDelayedLayout[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ForceDelayedLayout(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ForceDelayedLayout[1] = {{ wxLua_wxRichTextCtrl_ForceDelayedLayout, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_ForceDelayedLayout }}; -// void ForceDelayedLayout(); -static int LUACALL wxLua_wxRichTextCtrl_ForceDelayedLayout(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ForceDelayedLayout - self->ForceDelayedLayout(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetAdjustedCaretPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetAdjustedCaretPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetAdjustedCaretPosition[1] = {{ wxLua_wxRichTextCtrl_GetAdjustedCaretPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetAdjustedCaretPosition }}; -// long GetAdjustedCaretPosition(long caretPos) const; -static int LUACALL wxLua_wxRichTextCtrl_GetAdjustedCaretPosition(lua_State *L) -{ - // long caretPos - long caretPos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetAdjustedCaretPosition - long returns = (self->GetAdjustedCaretPosition(caretPos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static int LUACALL wxLua_wxRichTextCtrl_GetAvailableFontNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetAvailableFontNames[1] = {{ wxLua_wxRichTextCtrl_GetAvailableFontNames, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static const wxArrayString& GetAvailableFontNames(); -static int LUACALL wxLua_wxRichTextCtrl_GetAvailableFontNames(lua_State *L) -{ - // call GetAvailableFontNames - const wxArrayString* returns = (const wxArrayString*)&wxRichTextCtrl::GetAvailableFontNames(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBasicStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetBasicStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBasicStyle[1] = {{ wxLua_wxRichTextCtrl_GetBasicStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBasicStyle }}; -// virtual const wxRichTextAttr& GetBasicStyle() const; -static int LUACALL wxLua_wxRichTextCtrl_GetBasicStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetBasicStyle - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetBasicStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBuffer1[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetBuffer1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer1[1] = {{ wxLua_wxRichTextCtrl_GetBuffer1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBuffer1 }}; -// const wxRichTextBuffer& GetBuffer() const; -static int LUACALL wxLua_wxRichTextCtrl_GetBuffer1(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetBuffer - const wxRichTextBuffer* returns = (const wxRichTextBuffer*)&self->GetBuffer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBuffer[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetBuffer(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer[1] = {{ wxLua_wxRichTextCtrl_GetBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBuffer }}; -// wxRichTextBuffer& GetBuffer(); -static int LUACALL wxLua_wxRichTextCtrl_GetBuffer(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetBuffer - wxRichTextBuffer* returns = (wxRichTextBuffer*)&self->GetBuffer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBufferBitmap1[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetBufferBitmap1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap1[1] = {{ wxLua_wxRichTextCtrl_GetBufferBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBufferBitmap1 }}; -// wxBitmap& GetBufferBitmap(); -static int LUACALL wxLua_wxRichTextCtrl_GetBufferBitmap1(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetBufferBitmap - wxBitmap* returns = (wxBitmap*)&self->GetBufferBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBufferBitmap[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetBufferBitmap(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap[1] = {{ wxLua_wxRichTextCtrl_GetBufferBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBufferBitmap }}; -// const wxBitmap& GetBufferBitmap() const; -static int LUACALL wxLua_wxRichTextCtrl_GetBufferBitmap(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetBufferBitmap - const wxBitmap* returns = (const wxBitmap*)&self->GetBufferBitmap(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretAtLineStart[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretAtLineStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretAtLineStart[1] = {{ wxLua_wxRichTextCtrl_GetCaretAtLineStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretAtLineStart }}; -// bool GetCaretAtLineStart() const; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretAtLineStart(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetCaretAtLineStart - bool returns = (self->GetCaretAtLineStart()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretPosition[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretPosition[1] = {{ wxLua_wxRichTextCtrl_GetCaretPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretPosition }}; -// long GetCaretPosition() const; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretPosition(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetCaretPosition - long returns = (self->GetCaretPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle[1] = {{ wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle }}; -// long GetCaretPositionForDefaultStyle() const; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetCaretPositionForDefaultStyle - long returns = (self->GetCaretPositionForDefaultStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretPositionForIndex[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetCaretPositionForIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretPositionForIndex[1] = {{ wxLua_wxRichTextCtrl_GetCaretPositionForIndex, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCaretPositionForIndex }}; -// %override wxLua_wxRichTextCtrl_GetCaretPositionForIndex -// C++: bool GetCaretPositionForIndex(long position, wxRect& rect, wxRichTextParagraphLayoutBox* container = NULL); -// Lua: %override [bool, wxRect] GetCaretPositionForIndex(long position, wxRect& rect, wxRichTextParagraphLayoutBox* container = NULL); -static int LUACALL wxLua_wxRichTextCtrl_GetCaretPositionForIndex(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextParagraphLayoutBox container = NULL - wxRichTextParagraphLayoutBox * container = (argCount >= 3 ? (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox) : NULL); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRect *rectp = new wxRect(); - // call GetCaretPositionForIndex - bool returns = (self->GetCaretPositionForIndex(position, *rectp, container)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, rectp, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, rectp, wxluatype_wxRect); - - return 2; -} - - - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCommandProcessor[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetCommandProcessor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetCommandProcessor[1] = {{ wxLua_wxRichTextCtrl_GetCommandProcessor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetCommandProcessor }}; -// wxCommandProcessor* GetCommandProcessor() const; -static int LUACALL wxLua_wxRichTextCtrl_GetCommandProcessor(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetCommandProcessor - wxCommandProcessor* returns = (wxCommandProcessor*)self->GetCommandProcessor(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCommandProcessor); - - return 1; -} - -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenu[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetContextMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenu[1] = {{ wxLua_wxRichTextCtrl_GetContextMenu, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenu }}; -// wxMenu* GetContextMenu() const; -static int LUACALL wxLua_wxRichTextCtrl_GetContextMenu(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetContextMenu - wxMenu* returns = (wxMenu*)self->GetContextMenu(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1[1] = {{ wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1 }}; -// const wxRichTextContextMenuPropertiesInfo& GetContextMenuPropertiesInfo() const; -static int LUACALL wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetContextMenuPropertiesInfo - const wxRichTextContextMenuPropertiesInfo* returns = (const wxRichTextContextMenuPropertiesInfo*)&self->GetContextMenuPropertiesInfo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextContextMenuPropertiesInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo[1] = {{ wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo }}; -// wxRichTextContextMenuPropertiesInfo& GetContextMenuPropertiesInfo(); -static int LUACALL wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetContextMenuPropertiesInfo - wxRichTextContextMenuPropertiesInfo* returns = (wxRichTextContextMenuPropertiesInfo*)&self->GetContextMenuPropertiesInfo(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextContextMenuPropertiesInfo); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDefaultStyleEx[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetDefaultStyleEx(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetDefaultStyleEx[1] = {{ wxLua_wxRichTextCtrl_GetDefaultStyleEx, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDefaultStyleEx }}; -// virtual const wxRichTextAttr& GetDefaultStyleEx() const; -static int LUACALL wxLua_wxRichTextCtrl_GetDefaultStyleEx(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetDefaultStyleEx - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetDefaultStyleEx(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold[1] = {{ wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold }}; -// long GetDelayedLayoutThreshold() const; -static int LUACALL wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetDelayedLayoutThreshold - long returns = (self->GetDelayedLayoutThreshold()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDimensionScale[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetDimensionScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetDimensionScale[1] = {{ wxLua_wxRichTextCtrl_GetDimensionScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDimensionScale }}; -// double GetDimensionScale() const; -static int LUACALL wxLua_wxRichTextCtrl_GetDimensionScale(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetDimensionScale - double returns = (self->GetDimensionScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDragStartPoint[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetDragStartPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetDragStartPoint[1] = {{ wxLua_wxRichTextCtrl_GetDragStartPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDragStartPoint }}; -// wxPoint GetDragStartPoint() const; -static int LUACALL wxLua_wxRichTextCtrl_GetDragStartPoint(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetDragStartPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetDragStartPoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDragStartTime[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetDragStartTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetDragStartTime[1] = {{ wxLua_wxRichTextCtrl_GetDragStartTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDragStartTime }}; -// wxDateTime GetDragStartTime() const; -static int LUACALL wxLua_wxRichTextCtrl_GetDragStartTime(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetDragStartTime - // allocate a new object using the copy constructor - wxDateTime* returns = new wxDateTime(self->GetDragStartTime()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxDateTime); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDateTime); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDragging[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetDragging(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetDragging[1] = {{ wxLua_wxRichTextCtrl_GetDragging, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetDragging }}; -// bool GetDragging() const; -static int LUACALL wxLua_wxRichTextCtrl_GetDragging(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetDragging - bool returns = (self->GetDragging()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFilename[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFilename[1] = {{ wxLua_wxRichTextCtrl_GetFilename, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFilename }}; -// wxString GetFilename() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFilename(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFilename - wxString returns = (self->GetFilename()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFirstVisiblePoint[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFirstVisiblePoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFirstVisiblePoint[1] = {{ wxLua_wxRichTextCtrl_GetFirstVisiblePoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFirstVisiblePoint }}; -// wxPoint GetFirstVisiblePoint() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFirstVisiblePoint(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFirstVisiblePoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetFirstVisiblePoint()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFirstVisiblePosition[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFirstVisiblePosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFirstVisiblePosition[1] = {{ wxLua_wxRichTextCtrl_GetFirstVisiblePosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFirstVisiblePosition }}; -// long GetFirstVisiblePosition() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFirstVisiblePosition(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFirstVisiblePosition - long returns = (self->GetFirstVisiblePosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFocusObject[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFocusObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFocusObject[1] = {{ wxLua_wxRichTextCtrl_GetFocusObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFocusObject }}; -// wxRichTextParagraphLayoutBox* GetFocusObject() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFocusObject(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFocusObject - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetFocusObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFontScale[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFontScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFontScale[1] = {{ wxLua_wxRichTextCtrl_GetFontScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFontScale }}; -// double GetFontScale() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFontScale(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFontScale - double returns = (self->GetFontScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFullLayoutRequired[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFullLayoutRequired(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFullLayoutRequired[1] = {{ wxLua_wxRichTextCtrl_GetFullLayoutRequired, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFullLayoutRequired }}; -// bool GetFullLayoutRequired() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFullLayoutRequired(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFullLayoutRequired - bool returns = (self->GetFullLayoutRequired()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition[1] = {{ wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition }}; -// long GetFullLayoutSavedPosition() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFullLayoutSavedPosition - long returns = (self->GetFullLayoutSavedPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFullLayoutTime[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetFullLayoutTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetFullLayoutTime[1] = {{ wxLua_wxRichTextCtrl_GetFullLayoutTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetFullLayoutTime }}; -// wxLongLong GetFullLayoutTime() const; -static int LUACALL wxLua_wxRichTextCtrl_GetFullLayoutTime(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetFullLayoutTime - // allocate a new object using the copy constructor - wxLongLong* returns = new wxLongLong(self->GetFullLayoutTime()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLongLong); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLongLong); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetHandlerFlags[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetHandlerFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetHandlerFlags[1] = {{ wxLua_wxRichTextCtrl_GetHandlerFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetHandlerFlags }}; -// int GetHandlerFlags() const; -static int LUACALL wxLua_wxRichTextCtrl_GetHandlerFlags(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetHandlerFlags - int returns = (self->GetHandlerFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetInsertionPoint[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetInsertionPoint[1] = {{ wxLua_wxRichTextCtrl_GetInsertionPoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetInsertionPoint }}; -// virtual long GetInsertionPoint() const; -static int LUACALL wxLua_wxRichTextCtrl_GetInsertionPoint(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetInsertionPoint - long returns = (self->GetInsertionPoint()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetInternalSelectionRange[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetInternalSelectionRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetInternalSelectionRange[1] = {{ wxLua_wxRichTextCtrl_GetInternalSelectionRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetInternalSelectionRange }}; -// wxRichTextRange GetInternalSelectionRange() const; -static int LUACALL wxLua_wxRichTextCtrl_GetInternalSelectionRange(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetInternalSelectionRange - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetInternalSelectionRange()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLastPosition[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetLastPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetLastPosition[1] = {{ wxLua_wxRichTextCtrl_GetLastPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLastPosition }}; -// virtual wxTextPos GetLastPosition() const; -static int LUACALL wxLua_wxRichTextCtrl_GetLastPosition(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetLastPosition - wxTextPos returns = (self->GetLastPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLineLength[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetLineLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetLineLength[1] = {{ wxLua_wxRichTextCtrl_GetLineLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLineLength }}; -// virtual int GetLineLength(long lineNo) const ; -static int LUACALL wxLua_wxRichTextCtrl_GetLineLength(lua_State *L) -{ - // long lineNo - long lineNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetLineLength - int returns = (self->GetLineLength(lineNo)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLineText[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetLineText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetLineText[1] = {{ wxLua_wxRichTextCtrl_GetLineText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLineText }}; -// virtual wxString GetLineText(long lineNo) const ; -static int LUACALL wxLua_wxRichTextCtrl_GetLineText(lua_State *L) -{ - // long lineNo - long lineNo = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetLineText - wxString returns = (self->GetLineText(lineNo)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLogicalPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetLogicalPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetLogicalPoint[1] = {{ wxLua_wxRichTextCtrl_GetLogicalPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetLogicalPoint }}; -// wxPoint GetLogicalPoint(const wxPoint& ptPhysical) const; -static int LUACALL wxLua_wxRichTextCtrl_GetLogicalPoint(lua_State *L) -{ - // const wxPoint ptPhysical - const wxPoint * ptPhysical = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetLogicalPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetLogicalPoint(*ptPhysical)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetNumberOfLines[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetNumberOfLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetNumberOfLines[1] = {{ wxLua_wxRichTextCtrl_GetNumberOfLines, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetNumberOfLines }}; -// virtual int GetNumberOfLines() const ; -static int LUACALL wxLua_wxRichTextCtrl_GetNumberOfLines(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetNumberOfLines - int returns = (self->GetNumberOfLines()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetPhysicalPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetPhysicalPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetPhysicalPoint[1] = {{ wxLua_wxRichTextCtrl_GetPhysicalPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetPhysicalPoint }}; -// wxPoint GetPhysicalPoint(const wxPoint& ptLogical) const; -static int LUACALL wxLua_wxRichTextCtrl_GetPhysicalPoint(lua_State *L) -{ - // const wxPoint ptLogical - const wxPoint * ptLogical = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetPhysicalPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetPhysicalPoint(*ptLogical)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetPreDrag[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetPreDrag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetPreDrag[1] = {{ wxLua_wxRichTextCtrl_GetPreDrag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetPreDrag }}; -// bool GetPreDrag() const; -static int LUACALL wxLua_wxRichTextCtrl_GetPreDrag(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetPreDrag - bool returns = (self->GetPreDrag()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetPropertiesMenuLabel[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetPropertiesMenuLabel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetPropertiesMenuLabel[1] = {{ wxLua_wxRichTextCtrl_GetPropertiesMenuLabel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetPropertiesMenuLabel }}; -// virtual wxString GetPropertiesMenuLabel(wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextCtrl_GetPropertiesMenuLabel(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetPropertiesMenuLabel - wxString returns = (self->GetPropertiesMenuLabel(obj)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetRange[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetRange[1] = {{ wxLua_wxRichTextCtrl_GetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetRange }}; -// virtual wxString GetRange(long from, long to) const; -static int LUACALL wxLua_wxRichTextCtrl_GetRange(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetRange - wxString returns = (self->GetRange(from, to)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScale[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetScale[1] = {{ wxLua_wxRichTextCtrl_GetScale, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScale }}; -// double GetScale() const; -static int LUACALL wxLua_wxRichTextCtrl_GetScale(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetScale - double returns = (self->GetScale()); - // push the result floating point number - lua_pushnumber(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScaledPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetScaledPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetScaledPoint[1] = {{ wxLua_wxRichTextCtrl_GetScaledPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScaledPoint }}; -// wxPoint GetScaledPoint(const wxPoint& pt) const; -static int LUACALL wxLua_wxRichTextCtrl_GetScaledPoint(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetScaledPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetScaledPoint(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScaledRect[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetScaledRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetScaledRect[1] = {{ wxLua_wxRichTextCtrl_GetScaledRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScaledRect }}; -// wxRect GetScaledRect(const wxRect& rect) const; -static int LUACALL wxLua_wxRichTextCtrl_GetScaledRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetScaledRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetScaledRect(*rect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScaledSize[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetScaledSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetScaledSize[1] = {{ wxLua_wxRichTextCtrl_GetScaledSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetScaledSize }}; -// wxSize GetScaledSize(const wxSize& sz) const; -static int LUACALL wxLua_wxRichTextCtrl_GetScaledSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetScaledSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetScaledSize(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection2[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetSelection2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection2[1] = {{ wxLua_wxRichTextCtrl_GetSelection2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection2 }}; -// wxRichTextSelection& GetSelection(); -static int LUACALL wxLua_wxRichTextCtrl_GetSelection2(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetSelection - wxRichTextSelection* returns = (wxRichTextSelection*)&self->GetSelection(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection1[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetSelection1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection1[1] = {{ wxLua_wxRichTextCtrl_GetSelection1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection1 }}; -// const wxRichTextSelection& GetSelection() const; -static int LUACALL wxLua_wxRichTextCtrl_GetSelection1(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetSelection - const wxRichTextSelection* returns = (const wxRichTextSelection*)&self->GetSelection(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextSelection); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetSelection(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection[1] = {{ wxLua_wxRichTextCtrl_GetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection }}; -// virtual void GetSelection(long* from, long* to) const; -static int LUACALL wxLua_wxRichTextCtrl_GetSelection(lua_State *L) -{ - // long to - long * to = (long *)wxlua_touserdata(L, 3); - // long from - long * from = (long *)wxlua_touserdata(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetSelection - self->GetSelection(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelectionAnchor[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetSelectionAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelectionAnchor[1] = {{ wxLua_wxRichTextCtrl_GetSelectionAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelectionAnchor }}; -// long GetSelectionAnchor() const; -static int LUACALL wxLua_wxRichTextCtrl_GetSelectionAnchor(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetSelectionAnchor - long returns = (self->GetSelectionAnchor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelectionAnchorObject[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetSelectionAnchorObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelectionAnchorObject[1] = {{ wxLua_wxRichTextCtrl_GetSelectionAnchorObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelectionAnchorObject }}; -// wxRichTextObject* GetSelectionAnchorObject() const; -static int LUACALL wxLua_wxRichTextCtrl_GetSelectionAnchorObject(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetSelectionAnchorObject - wxRichTextObject* returns = (wxRichTextObject*)self->GetSelectionAnchorObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelectionRange[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetSelectionRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelectionRange[1] = {{ wxLua_wxRichTextCtrl_GetSelectionRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelectionRange }}; -// wxRichTextRange GetSelectionRange() const; -static int LUACALL wxLua_wxRichTextCtrl_GetSelectionRange(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetSelectionRange - // allocate a new object using the copy constructor - wxRichTextRange* returns = new wxRichTextRange(self->GetSelectionRange()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextRange); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStringSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetStringSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStringSelection[1] = {{ wxLua_wxRichTextCtrl_GetStringSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStringSelection }}; -// virtual wxString GetStringSelection() const; -static int LUACALL wxLua_wxRichTextCtrl_GetStringSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetStringSelection - wxString returns = (self->GetStringSelection()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyle1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle1[1] = {{ wxLua_wxRichTextCtrl_GetStyle1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyle1 }}; -// %override wxLua_wxRichTextCtrl_GetStyle1 -// C++: bool GetStyle(long position, wxRichTextAttr& style, wxRichTextParagraphLayoutBox* container); -// Lua: [bool, wxRichTextAttr] GetStyle(long position, wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextCtrl_GetStyle1(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // Call GetStyle - bool returns = self->GetStyle(position, *stylep, container); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle[1] = {{ wxLua_wxRichTextCtrl_GetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyle }}; -// %override wxLua_wxRichTextCtrl_GetStyle -// C++: bool GetStyle(long position, wxRichTextAttr& style); -// Lua: [bool, wxRichTextAttr] GetStyle(long position); -static int LUACALL wxLua_wxRichTextCtrl_GetStyle(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // Call GetStyle - bool returns = self->GetStyle(position, *stylep); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleForRange1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetStyleForRange1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange1[1] = {{ wxLua_wxRichTextCtrl_GetStyleForRange1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleForRange1 }}; -// %override wxLua_wxRichTextCtrl_GetStyleForRange1 -// C++: bool GetStyleForRange(const wxRichTextRange& range, wxRichTextAttr& style, wxRichTextParagraphLayoutBox* container); -// Lua: [bool, wxRichTextAttr] GetStyleForRange(const wxRichTextRange& range, wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextCtrl_GetStyleForRange1(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetStyleForRange - bool returns = (self->GetStyleForRange(*range, *stylep, container)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleForRange[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetStyleForRange(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange[1] = {{ wxLua_wxRichTextCtrl_GetStyleForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleForRange }}; -// %override wxLua_wxRichTextCtrl_GetStyleForRange -// C++: bool GetStyleForRange(const wxRichTextRange& range, wxRichTextAttr& style); -// Lua: [bool, wxRichTextAttr] GetStyleForRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextCtrl_GetStyleForRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetStyleForRange - bool returns = (self->GetStyleForRange(*range, *stylep)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleSheet[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleSheet[1] = {{ wxLua_wxRichTextCtrl_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleSheet }}; -// wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextCtrl_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetTextCursor[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetTextCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetTextCursor[1] = {{ wxLua_wxRichTextCtrl_GetTextCursor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetTextCursor }}; -// wxCursor GetTextCursor() const; -static int LUACALL wxLua_wxRichTextCtrl_GetTextCursor(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetTextCursor - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetTextCursor()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetURLCursor[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetURLCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetURLCursor[1] = {{ wxLua_wxRichTextCtrl_GetURLCursor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetURLCursor }}; -// wxCursor GetURLCursor() const; -static int LUACALL wxLua_wxRichTextCtrl_GetURLCursor(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetURLCursor - // allocate a new object using the copy constructor - wxCursor* returns = new wxCursor(self->GetURLCursor()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxCursor); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxCursor); - - return 1; -} - -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUncombinedStyle1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetUncombinedStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle1[1] = {{ wxLua_wxRichTextCtrl_GetUncombinedStyle1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUncombinedStyle1 }}; -// %override wxLua_wxRichTextCtrl_GetUncombinedStyle1 -// C++: bool GetUncombinedStyle(long position, wxRichTextAttr& style, wxRichTextParagraphLayoutBox* container); -// Lua: [bool, wxRichTextAttr] GetUncombinedStyle(long position, wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextCtrl_GetUncombinedStyle1(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextParagraphLayoutBox); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetUncombinedStyle - bool returns = (self->GetUncombinedStyle(position, *stylep, container)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUncombinedStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetUncombinedStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle[1] = {{ wxLua_wxRichTextCtrl_GetUncombinedStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUncombinedStyle }}; -// %override wxLua_wxRichTextCtrl_GetUncombinedStyle -// C++: bool GetUncombinedStyle(long position, wxRichTextAttr& style); -// Lua: [bool, wxRichTextAttr] GetUncombinedStyle(long position); -static int LUACALL wxLua_wxRichTextCtrl_GetUncombinedStyle(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // allocate a new object - wxRichTextAttr *stylep = new wxRichTextAttr(); - // call GetUncombinedStyle - bool returns = (self->GetUncombinedStyle(position, *stylep)); - // push the result flag - lua_pushboolean(L, returns); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, stylep, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, stylep, wxluatype_wxRichTextAttr); - - return 2; -} - - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUnscaledPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetUnscaledPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetUnscaledPoint[1] = {{ wxLua_wxRichTextCtrl_GetUnscaledPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUnscaledPoint }}; -// wxPoint GetUnscaledPoint(const wxPoint& pt) const; -static int LUACALL wxLua_wxRichTextCtrl_GetUnscaledPoint(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetUnscaledPoint - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetUnscaledPoint(*pt)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUnscaledRect[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetUnscaledRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetUnscaledRect[1] = {{ wxLua_wxRichTextCtrl_GetUnscaledRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUnscaledRect }}; -// wxRect GetUnscaledRect(const wxRect& rect) const; -static int LUACALL wxLua_wxRichTextCtrl_GetUnscaledRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetUnscaledRect - // allocate a new object using the copy constructor - wxRect* returns = new wxRect(self->GetUnscaledRect(*rect)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRect); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUnscaledSize[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetUnscaledSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetUnscaledSize[1] = {{ wxLua_wxRichTextCtrl_GetUnscaledSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUnscaledSize }}; -// wxSize GetUnscaledSize(const wxSize& sz) const; -static int LUACALL wxLua_wxRichTextCtrl_GetUnscaledSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetUnscaledSize - // allocate a new object using the copy constructor - wxSize* returns = new wxSize(self->GetUnscaledSize(*sz)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSize); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled[1] = {{ wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled }}; -// virtual bool GetVerticalScrollbarEnabled() const; -static int LUACALL wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetVerticalScrollbarEnabled - bool returns = (self->GetVerticalScrollbarEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled[1] = {{ wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled }}; -// bool GetVirtualAttributesEnabled() const; -static int LUACALL wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetVirtualAttributesEnabled - bool returns = (self->GetVirtualAttributesEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition[1] = {{ wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition }}; -// wxRichTextLine* GetVisibleLineForCaretPosition(long caretPosition) const; -static int LUACALL wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition(lua_State *L) -{ - // long caretPosition - long caretPosition = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetVisibleLineForCaretPosition - wxRichTextLine* returns = (wxRichTextLine*)self->GetVisibleLineForCaretPosition(caretPosition); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextLine); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_HasCharacterAttributes[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_HasCharacterAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HasCharacterAttributes[1] = {{ wxLua_wxRichTextCtrl_HasCharacterAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_HasCharacterAttributes }}; -// virtual bool HasCharacterAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const; -static int LUACALL wxLua_wxRichTextCtrl_HasCharacterAttributes(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call HasCharacterAttributes - bool returns = (self->HasCharacterAttributes(*range, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_HasParagraphAttributes[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_HasParagraphAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HasParagraphAttributes[1] = {{ wxLua_wxRichTextCtrl_HasParagraphAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_HasParagraphAttributes }}; -// virtual bool HasParagraphAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const; -static int LUACALL wxLua_wxRichTextCtrl_HasParagraphAttributes(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call HasParagraphAttributes - bool returns = (self->HasParagraphAttributes(*range, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_HasSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_HasSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HasSelection[1] = {{ wxLua_wxRichTextCtrl_HasSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_HasSelection }}; -// virtual bool HasSelection() const; -static int LUACALL wxLua_wxRichTextCtrl_HasSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call HasSelection - bool returns = (self->HasSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_HasUnfocusedSelection[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_HasUnfocusedSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HasUnfocusedSelection[1] = {{ wxLua_wxRichTextCtrl_HasUnfocusedSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_HasUnfocusedSelection }}; -// virtual bool HasUnfocusedSelection() const; -static int LUACALL wxLua_wxRichTextCtrl_HasUnfocusedSelection(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call HasUnfocusedSelection - bool returns = (self->HasUnfocusedSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_HitTest1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_HitTest1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HitTest1[1] = {{ wxLua_wxRichTextCtrl_HitTest1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_HitTest1 }}; -// wxTextCoord *row) const; -static int LUACALL wxLua_wxRichTextCtrl_HitTest1(lua_State *L) -{ - // wxTextCoord row - wxTextCoord * row = (wxTextCoord *)wxlua_touserdata(L, 4); - // wxTextCoord col - wxTextCoord * col = (wxTextCoord *)wxlua_touserdata(L, 3); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call HitTest - wxTextCtrlHitTestResult returns = (self->HitTest(*pt, col, row)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_HitTest[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_HitTest(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HitTest[1] = {{ wxLua_wxRichTextCtrl_HitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_HitTest }}; -// virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const; -static int LUACALL wxLua_wxRichTextCtrl_HitTest(lua_State *L) -{ - // long pos - long * pos = (long *)wxlua_touserdata(L, 3); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call HitTest - wxTextCtrlHitTestResult returns = (self->HitTest(*pt, pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Init[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Init[1] = {{ wxLua_wxRichTextCtrl_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextCtrl_Init(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Invalidate[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Invalidate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Invalidate[1] = {{ wxLua_wxRichTextCtrl_Invalidate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Invalidate }}; -// void Invalidate(); -static int LUACALL wxLua_wxRichTextCtrl_Invalidate(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Invalidate - self->Invalidate(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsDefaultStyleShowing[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsDefaultStyleShowing(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsDefaultStyleShowing[1] = {{ wxLua_wxRichTextCtrl_IsDefaultStyleShowing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsDefaultStyleShowing }}; -// bool IsDefaultStyleShowing() const; -static int LUACALL wxLua_wxRichTextCtrl_IsDefaultStyleShowing(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsDefaultStyleShowing - bool returns = (self->IsDefaultStyleShowing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsEditable[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsEditable[1] = {{ wxLua_wxRichTextCtrl_IsEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsEditable }}; -// virtual bool IsEditable() const ; -static int LUACALL wxLua_wxRichTextCtrl_IsEditable(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsEditable - bool returns = (self->IsEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsModified[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsModified(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsModified[1] = {{ wxLua_wxRichTextCtrl_IsModified, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsModified }}; -// virtual bool IsModified() const ; -static int LUACALL wxLua_wxRichTextCtrl_IsModified(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsModified - bool returns = (self->IsModified()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsMultiLine[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsMultiLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsMultiLine[1] = {{ wxLua_wxRichTextCtrl_IsMultiLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsMultiLine }}; -// bool IsMultiLine() const; -static int LUACALL wxLua_wxRichTextCtrl_IsMultiLine(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsMultiLine - bool returns = (self->IsMultiLine()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsPositionVisible[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsPositionVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsPositionVisible[1] = {{ wxLua_wxRichTextCtrl_IsPositionVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsPositionVisible }}; -// bool IsPositionVisible(long pos) const; -static int LUACALL wxLua_wxRichTextCtrl_IsPositionVisible(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsPositionVisible - bool returns = (self->IsPositionVisible(pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionAligned[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionAligned(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionAligned[1] = {{ wxLua_wxRichTextCtrl_IsSelectionAligned, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionAligned }}; -// virtual bool IsSelectionAligned(wxTextAttrAlignment alignment); -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionAligned(lua_State *L) -{ - // wxTextAttrAlignment alignment - wxTextAttrAlignment alignment = (wxTextAttrAlignment)wxlua_getenumtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsSelectionAligned - bool returns = (self->IsSelectionAligned(alignment)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionBold[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionBold[1] = {{ wxLua_wxRichTextCtrl_IsSelectionBold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionBold }}; -// virtual bool IsSelectionBold(); -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionBold(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsSelectionBold - bool returns = (self->IsSelectionBold()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionItalics[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionItalics(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionItalics[1] = {{ wxLua_wxRichTextCtrl_IsSelectionItalics, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionItalics }}; -// virtual bool IsSelectionItalics(); -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionItalics(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsSelectionItalics - bool returns = (self->IsSelectionItalics()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionUnderlined[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionUnderlined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionUnderlined[1] = {{ wxLua_wxRichTextCtrl_IsSelectionUnderlined, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSelectionUnderlined }}; -// virtual bool IsSelectionUnderlined(); -static int LUACALL wxLua_wxRichTextCtrl_IsSelectionUnderlined(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsSelectionUnderlined - bool returns = (self->IsSelectionUnderlined()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSingleLine[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_IsSingleLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_IsSingleLine[1] = {{ wxLua_wxRichTextCtrl_IsSingleLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_IsSingleLine }}; -// bool IsSingleLine() const; -static int LUACALL wxLua_wxRichTextCtrl_IsSingleLine(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call IsSingleLine - bool returns = (self->IsSingleLine()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_KeyboardNavigate[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_KeyboardNavigate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_KeyboardNavigate[1] = {{ wxLua_wxRichTextCtrl_KeyboardNavigate, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_KeyboardNavigate }}; -// virtual bool KeyboardNavigate(int keyCode, int flags); -static int LUACALL wxLua_wxRichTextCtrl_KeyboardNavigate(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // int keyCode - int keyCode = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call KeyboardNavigate - bool returns = (self->KeyboardNavigate(keyCode, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_LayoutContent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_LayoutContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_LayoutContent[1] = {{ wxLua_wxRichTextCtrl_LayoutContent, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_LayoutContent }}; -// virtual bool LayoutContent(bool onlyVisibleRect = false); -static int LUACALL wxLua_wxRichTextCtrl_LayoutContent(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool onlyVisibleRect = false - bool onlyVisibleRect = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call LayoutContent - bool returns = (self->LayoutContent(onlyVisibleRect)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_LineBreak[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_LineBreak(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_LineBreak[1] = {{ wxLua_wxRichTextCtrl_LineBreak, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_LineBreak }}; -// virtual bool LineBreak(); -static int LUACALL wxLua_wxRichTextCtrl_LineBreak(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call LineBreak - bool returns = (self->LineBreak()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MarkDirty[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MarkDirty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MarkDirty[1] = {{ wxLua_wxRichTextCtrl_MarkDirty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_MarkDirty }}; -// virtual void MarkDirty(); -static int LUACALL wxLua_wxRichTextCtrl_MarkDirty(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MarkDirty - self->MarkDirty(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveCaret[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveCaret[1] = {{ wxLua_wxRichTextCtrl_MoveCaret, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveCaret }}; -// virtual bool MoveCaret(long pos, bool showAtLineStart = false, wxRichTextParagraphLayoutBox* container = NULL); -static int LUACALL wxLua_wxRichTextCtrl_MoveCaret(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextParagraphLayoutBox container = NULL - wxRichTextParagraphLayoutBox * container = (argCount >= 4 ? (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextParagraphLayoutBox) : NULL); - // bool showAtLineStart = false - bool showAtLineStart = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveCaret - bool returns = (self->MoveCaret(pos, showAtLineStart, container)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveCaretBack[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveCaretBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveCaretBack[1] = {{ wxLua_wxRichTextCtrl_MoveCaretBack, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveCaretBack }}; -// void MoveCaretBack(long oldPosition) ; -static int LUACALL wxLua_wxRichTextCtrl_MoveCaretBack(lua_State *L) -{ - // long oldPosition - long oldPosition = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveCaretBack - self->MoveCaretBack(oldPosition); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveCaretForward[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveCaretForward(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveCaretForward[1] = {{ wxLua_wxRichTextCtrl_MoveCaretForward, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveCaretForward }}; -// void MoveCaretForward(long oldPosition) ; -static int LUACALL wxLua_wxRichTextCtrl_MoveCaretForward(lua_State *L) -{ - // long oldPosition - long oldPosition = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveCaretForward - self->MoveCaretForward(oldPosition); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveDown[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveDown[1] = {{ wxLua_wxRichTextCtrl_MoveDown, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveDown }}; -// virtual bool MoveDown(int noLines = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveDown(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noLines = 1 - int noLines = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveDown - bool returns = (self->MoveDown(noLines, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveEnd[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveEnd[1] = {{ wxLua_wxRichTextCtrl_MoveEnd, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveEnd }}; -// virtual bool MoveEnd(int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveEnd(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveEnd - bool returns = (self->MoveEnd(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveHome[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveHome(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveHome[1] = {{ wxLua_wxRichTextCtrl_MoveHome, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveHome }}; -// virtual bool MoveHome(int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveHome(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveHome - bool returns = (self->MoveHome(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveLeft[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveLeft[1] = {{ wxLua_wxRichTextCtrl_MoveLeft, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveLeft }}; -// virtual bool MoveLeft(int noPositions = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveLeft(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noPositions = 1 - int noPositions = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveLeft - bool returns = (self->MoveLeft(noPositions, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveRight[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveRight[1] = {{ wxLua_wxRichTextCtrl_MoveRight, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveRight }}; -// virtual bool MoveRight(int noPositions = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveRight(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noPositions = 1 - int noPositions = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveRight - bool returns = (self->MoveRight(noPositions, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToLineEnd[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveToLineEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveToLineEnd[1] = {{ wxLua_wxRichTextCtrl_MoveToLineEnd, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToLineEnd }}; -// virtual bool MoveToLineEnd(int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveToLineEnd(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveToLineEnd - bool returns = (self->MoveToLineEnd(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToLineStart[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveToLineStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveToLineStart[1] = {{ wxLua_wxRichTextCtrl_MoveToLineStart, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToLineStart }}; -// virtual bool MoveToLineStart(int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveToLineStart(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveToLineStart - bool returns = (self->MoveToLineStart(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToParagraphEnd[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveToParagraphEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveToParagraphEnd[1] = {{ wxLua_wxRichTextCtrl_MoveToParagraphEnd, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToParagraphEnd }}; -// virtual bool MoveToParagraphEnd(int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveToParagraphEnd(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveToParagraphEnd - bool returns = (self->MoveToParagraphEnd(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToParagraphStart[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveToParagraphStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveToParagraphStart[1] = {{ wxLua_wxRichTextCtrl_MoveToParagraphStart, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveToParagraphStart }}; -// virtual bool MoveToParagraphStart(int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveToParagraphStart(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveToParagraphStart - bool returns = (self->MoveToParagraphStart(flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveUp[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_MoveUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_MoveUp[1] = {{ wxLua_wxRichTextCtrl_MoveUp, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_MoveUp }}; -// virtual bool MoveUp(int noLines = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_MoveUp(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noLines = 1 - int noLines = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call MoveUp - bool returns = (self->MoveUp(noLines, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Newline[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Newline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Newline[1] = {{ wxLua_wxRichTextCtrl_Newline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Newline }}; -// virtual bool Newline(); -static int LUACALL wxLua_wxRichTextCtrl_Newline(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Newline - bool returns = (self->Newline()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_NumberList1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_NumberList1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_NumberList1[1] = {{ wxLua_wxRichTextCtrl_NumberList1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_NumberList1 }}; -// virtual bool NumberList(const wxRichTextRange& range, const wxString& defName, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextCtrl_NumberList1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxString defName - const wxString defName = wxlua_getwxStringtype(L, 3); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call NumberList - bool returns = (self->NumberList(*range, defName, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_NumberList[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_NumberList(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_NumberList[1] = {{ wxLua_wxRichTextCtrl_NumberList, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_NumberList }}; -// virtual bool NumberList(const wxRichTextRange& range, wxRichTextListStyleDefinition* def = NULL, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextCtrl_NumberList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def = NULL - wxRichTextListStyleDefinition * def = (argCount >= 3 ? (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextListStyleDefinition) : NULL); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call NumberList - bool returns = (self->NumberList(*range, def, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnCaptureLost[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseCaptureLostEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnCaptureLost(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnCaptureLost[1] = {{ wxLua_wxRichTextCtrl_OnCaptureLost, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnCaptureLost }}; -// void OnCaptureLost(wxMouseCaptureLostEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnCaptureLost(lua_State *L) -{ - // wxMouseCaptureLostEvent event - wxMouseCaptureLostEvent * event = (wxMouseCaptureLostEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseCaptureLostEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnCaptureLost - self->OnCaptureLost(*event); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnChar[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxKeyEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnChar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnChar[1] = {{ wxLua_wxRichTextCtrl_OnChar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnChar }}; -// void OnChar(wxKeyEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnChar(lua_State *L) -{ - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnChar - self->OnChar(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnClear[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnClear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnClear[1] = {{ wxLua_wxRichTextCtrl_OnClear, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnClear }}; -// void OnClear(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnClear(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnClear - self->OnClear(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnContextMenu[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxContextMenuEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnContextMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnContextMenu[1] = {{ wxLua_wxRichTextCtrl_OnContextMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnContextMenu }}; -// void OnContextMenu(wxContextMenuEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnContextMenu(lua_State *L) -{ - // wxContextMenuEvent event - wxContextMenuEvent * event = (wxContextMenuEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxContextMenuEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnContextMenu - self->OnContextMenu(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnCopy[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnCopy[1] = {{ wxLua_wxRichTextCtrl_OnCopy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnCopy }}; -// void OnCopy(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnCopy(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnCopy - self->OnCopy(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnCut[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnCut[1] = {{ wxLua_wxRichTextCtrl_OnCut, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnCut }}; -// void OnCut(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnCut(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnCut - self->OnCut(*event); - - return 0; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnDrop[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_wxDataObject, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnDrop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnDrop[1] = {{ wxLua_wxRichTextCtrl_OnDrop, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnDrop }}; -// void OnDrop(wxCoord x, wxCoord y, wxDragResult def, wxDataObject* DataObj); -static int LUACALL wxLua_wxRichTextCtrl_OnDrop(lua_State *L) -{ - // wxDataObject DataObj - wxDataObject * DataObj = (wxDataObject *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDataObject); - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnDrop - self->OnDrop(x, y, def, DataObj); - - return 0; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -#if (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnDropFiles[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxDropFilesEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnDropFiles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnDropFiles[1] = {{ wxLua_wxRichTextCtrl_OnDropFiles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnDropFiles }}; -// void OnDropFiles(wxDropFilesEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnDropFiles(lua_State *L) -{ - // wxDropFilesEvent event - wxDropFilesEvent * event = (wxDropFilesEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDropFilesEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnDropFiles - self->OnDropFiles(*event); - - return 0; -} - -#endif // (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnEraseBackground[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxEraseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnEraseBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnEraseBackground[1] = {{ wxLua_wxRichTextCtrl_OnEraseBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnEraseBackground }}; -// void OnEraseBackground(wxEraseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnEraseBackground(lua_State *L) -{ - // wxEraseEvent event - wxEraseEvent * event = (wxEraseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxEraseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnEraseBackground - self->OnEraseBackground(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnIdle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxIdleEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnIdle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnIdle[1] = {{ wxLua_wxRichTextCtrl_OnIdle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnIdle }}; -// void OnIdle(wxIdleEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnIdle(lua_State *L) -{ - // wxIdleEvent event - wxIdleEvent * event = (wxIdleEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIdleEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnIdle - self->OnIdle(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnKillFocus[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxFocusEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnKillFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnKillFocus[1] = {{ wxLua_wxRichTextCtrl_OnKillFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnKillFocus }}; -// void OnKillFocus(wxFocusEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnKillFocus(lua_State *L) -{ - // wxFocusEvent event - wxFocusEvent * event = (wxFocusEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFocusEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnKillFocus - self->OnKillFocus(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnLeftClick[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnLeftClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnLeftClick[1] = {{ wxLua_wxRichTextCtrl_OnLeftClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnLeftClick }}; -// void OnLeftClick(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnLeftClick(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnLeftClick - self->OnLeftClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnLeftDClick[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnLeftDClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnLeftDClick[1] = {{ wxLua_wxRichTextCtrl_OnLeftDClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnLeftDClick }}; -// void OnLeftDClick(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnLeftDClick(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnLeftDClick - self->OnLeftDClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnLeftUp[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnLeftUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnLeftUp[1] = {{ wxLua_wxRichTextCtrl_OnLeftUp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnLeftUp }}; -// void OnLeftUp(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnLeftUp(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnLeftUp - self->OnLeftUp(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnMiddleClick[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnMiddleClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnMiddleClick[1] = {{ wxLua_wxRichTextCtrl_OnMiddleClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnMiddleClick }}; -// void OnMiddleClick(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnMiddleClick(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnMiddleClick - self->OnMiddleClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnMoveMouse[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnMoveMouse(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnMoveMouse[1] = {{ wxLua_wxRichTextCtrl_OnMoveMouse, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnMoveMouse }}; -// void OnMoveMouse(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnMoveMouse(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnMoveMouse - self->OnMoveMouse(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnPaint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPaintEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnPaint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnPaint[1] = {{ wxLua_wxRichTextCtrl_OnPaint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnPaint }}; -// void OnPaint(wxPaintEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnPaint(lua_State *L) -{ - // wxPaintEvent event - wxPaintEvent * event = (wxPaintEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPaintEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnPaint - self->OnPaint(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnPaste[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnPaste[1] = {{ wxLua_wxRichTextCtrl_OnPaste, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnPaste }}; -// void OnPaste(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnPaste(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnPaste - self->OnPaste(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnProperties[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnProperties[1] = {{ wxLua_wxRichTextCtrl_OnProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnProperties }}; -// void OnProperties(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnProperties(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnProperties - self->OnProperties(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnRedo[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnRedo[1] = {{ wxLua_wxRichTextCtrl_OnRedo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnRedo }}; -// void OnRedo(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnRedo(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnRedo - self->OnRedo(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnRightClick[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnRightClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnRightClick[1] = {{ wxLua_wxRichTextCtrl_OnRightClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnRightClick }}; -// void OnRightClick(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnRightClick(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnRightClick - self->OnRightClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnScroll[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxScrollWinEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnScroll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnScroll[1] = {{ wxLua_wxRichTextCtrl_OnScroll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnScroll }}; -// void OnScroll(wxScrollWinEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnScroll(lua_State *L) -{ - // wxScrollWinEvent event - wxScrollWinEvent * event = (wxScrollWinEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxScrollWinEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnScroll - self->OnScroll(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSelectAll[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnSelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnSelectAll[1] = {{ wxLua_wxRichTextCtrl_OnSelectAll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSelectAll }}; -// void OnSelectAll(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnSelectAll(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnSelectAll - self->OnSelectAll(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSetFocus[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxFocusEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnSetFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnSetFocus[1] = {{ wxLua_wxRichTextCtrl_OnSetFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSetFocus }}; -// void OnSetFocus(wxFocusEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnSetFocus(lua_State *L) -{ - // wxFocusEvent event - wxFocusEvent * event = (wxFocusEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFocusEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnSetFocus - self->OnSetFocus(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSize[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxSizeEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnSize[1] = {{ wxLua_wxRichTextCtrl_OnSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSize }}; -// void OnSize(wxSizeEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnSize(lua_State *L) -{ - // wxSizeEvent event - wxSizeEvent * event = (wxSizeEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizeEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnSize - self->OnSize(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSysColourChanged[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxSysColourChangedEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnSysColourChanged(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnSysColourChanged[1] = {{ wxLua_wxRichTextCtrl_OnSysColourChanged, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnSysColourChanged }}; -// void OnSysColourChanged(wxSysColourChangedEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnSysColourChanged(lua_State *L) -{ - // wxSysColourChangedEvent event - wxSysColourChangedEvent * event = (wxSysColourChangedEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSysColourChangedEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnSysColourChanged - self->OnSysColourChanged(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUndo[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUndo[1] = {{ wxLua_wxRichTextCtrl_OnUndo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUndo }}; -// void OnUndo(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUndo(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUndo - self->OnUndo(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateClear[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateClear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateClear[1] = {{ wxLua_wxRichTextCtrl_OnUpdateClear, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateClear }}; -// void OnUpdateClear(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateClear(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateClear - self->OnUpdateClear(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateCopy[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateCopy[1] = {{ wxLua_wxRichTextCtrl_OnUpdateCopy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateCopy }}; -// void OnUpdateCopy(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateCopy(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateCopy - self->OnUpdateCopy(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateCut[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateCut[1] = {{ wxLua_wxRichTextCtrl_OnUpdateCut, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateCut }}; -// void OnUpdateCut(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateCut(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateCut - self->OnUpdateCut(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdatePaste[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdatePaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdatePaste[1] = {{ wxLua_wxRichTextCtrl_OnUpdatePaste, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdatePaste }}; -// void OnUpdatePaste(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdatePaste(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdatePaste - self->OnUpdatePaste(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateProperties[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateProperties[1] = {{ wxLua_wxRichTextCtrl_OnUpdateProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateProperties }}; -// void OnUpdateProperties(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateProperties(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateProperties - self->OnUpdateProperties(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateRedo[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateRedo[1] = {{ wxLua_wxRichTextCtrl_OnUpdateRedo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateRedo }}; -// void OnUpdateRedo(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateRedo(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateRedo - self->OnUpdateRedo(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateSelectAll[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateSelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateSelectAll[1] = {{ wxLua_wxRichTextCtrl_OnUpdateSelectAll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateSelectAll }}; -// void OnUpdateSelectAll(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateSelectAll(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateSelectAll - self->OnUpdateSelectAll(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateUndo[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateUndo[1] = {{ wxLua_wxRichTextCtrl_OnUpdateUndo, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_OnUpdateUndo }}; -// void OnUpdateUndo(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextCtrl_OnUpdateUndo(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call OnUpdateUndo - self->OnUpdateUndo(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PageDown[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PageDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PageDown[1] = {{ wxLua_wxRichTextCtrl_PageDown, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_PageDown }}; -// virtual bool PageDown(int noPages = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_PageDown(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noPages = 1 - int noPages = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PageDown - bool returns = (self->PageDown(noPages, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PageUp[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PageUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PageUp[1] = {{ wxLua_wxRichTextCtrl_PageUp, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_PageUp }}; -// virtual bool PageUp(int noPages = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_PageUp(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noPages = 1 - int noPages = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PageUp - bool returns = (self->PageUp(noPages, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PaintAboveContent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PaintAboveContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PaintAboveContent[1] = {{ wxLua_wxRichTextCtrl_PaintAboveContent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_PaintAboveContent }}; -// virtual void PaintAboveContent(wxDC& dc); -static int LUACALL wxLua_wxRichTextCtrl_PaintAboveContent(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PaintAboveContent - self->PaintAboveContent(*dc); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PaintBackground[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxDC, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PaintBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PaintBackground[1] = {{ wxLua_wxRichTextCtrl_PaintBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_PaintBackground }}; -// virtual void PaintBackground(wxDC& dc); -static int LUACALL wxLua_wxRichTextCtrl_PaintBackground(lua_State *L) -{ - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PaintBackground - self->PaintBackground(*dc); - - return 0; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Paste[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Paste[1] = {{ wxLua_wxRichTextCtrl_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Paste }}; -// virtual void Paste(); -static int LUACALL wxLua_wxRichTextCtrl_Paste(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Paste - self->Paste(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PopStyleSheet[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PopStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PopStyleSheet[1] = {{ wxLua_wxRichTextCtrl_PopStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_PopStyleSheet }}; -// wxRichTextStyleSheet* PopStyleSheet(); -static int LUACALL wxLua_wxRichTextCtrl_PopStyleSheet(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PopStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->PopStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PositionCaret[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PositionCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PositionCaret[1] = {{ wxLua_wxRichTextCtrl_PositionCaret, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_PositionCaret }}; -// virtual void PositionCaret(wxRichTextParagraphLayoutBox* container = NULL); -static int LUACALL wxLua_wxRichTextCtrl_PositionCaret(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextParagraphLayoutBox container = NULL - wxRichTextParagraphLayoutBox * container = (argCount >= 2 ? (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox) : NULL); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PositionCaret - self->PositionCaret(container); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PositionToXY[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PositionToXY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PositionToXY[1] = {{ wxLua_wxRichTextCtrl_PositionToXY, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_PositionToXY }}; -// virtual bool PositionToXY(long pos, long *x, long *y) const; -static int LUACALL wxLua_wxRichTextCtrl_PositionToXY(lua_State *L) -{ - // long y - long * y = (long *)wxlua_touserdata(L, 4); - // long x - long * x = (long *)wxlua_touserdata(L, 3); - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PositionToXY - bool returns = (self->PositionToXY(pos, x, y)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PrepareContent[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PrepareContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PrepareContent[1] = {{ wxLua_wxRichTextCtrl_PrepareContent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_PrepareContent }}; -// virtual void PrepareContent(wxRichTextParagraphLayoutBox& container); -static int LUACALL wxLua_wxRichTextCtrl_PrepareContent(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PrepareContent - self->PrepareContent(*container); - - return 0; -} - - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PrepareContextMenu[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMenu, &wxluatype_wxPoint, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PrepareContextMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PrepareContextMenu[1] = {{ wxLua_wxRichTextCtrl_PrepareContextMenu, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_PrepareContextMenu }}; -// virtual int PrepareContextMenu(wxMenu* menu, const wxPoint& pt, bool addPropertyCommands = true); -static int LUACALL wxLua_wxRichTextCtrl_PrepareContextMenu(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool addPropertyCommands = true - bool addPropertyCommands = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PrepareContextMenu - int returns = (self->PrepareContextMenu(menu, *pt, addPropertyCommands)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ProcessBackKey[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxKeyEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ProcessBackKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ProcessBackKey[1] = {{ wxLua_wxRichTextCtrl_ProcessBackKey, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_ProcessBackKey }}; -// virtual bool ProcessBackKey(wxKeyEvent& event, int flags); -static int LUACALL wxLua_wxRichTextCtrl_ProcessBackKey(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // wxKeyEvent event - wxKeyEvent * event = (wxKeyEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxKeyEvent); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ProcessBackKey - bool returns = (self->ProcessBackKey(*event, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ProcessMouseMovement[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ProcessMouseMovement(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ProcessMouseMovement[1] = {{ wxLua_wxRichTextCtrl_ProcessMouseMovement, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_ProcessMouseMovement }}; -// virtual bool ProcessMouseMovement(wxRichTextParagraphLayoutBox* container, wxRichTextObject* obj, long position, const wxPoint& pos); -static int LUACALL wxLua_wxRichTextCtrl_ProcessMouseMovement(lua_State *L) -{ - // const wxPoint pos - const wxPoint * pos = (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint); - // long position - long position = (long)wxlua_getnumbertype(L, 4); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ProcessMouseMovement - bool returns = (self->ProcessMouseMovement(container, obj, position, *pos)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PromoteList1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextRange, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PromoteList1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList1[1] = {{ wxLua_wxRichTextCtrl_PromoteList1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_PromoteList1 }}; -// virtual bool PromoteList(int promoteBy, const wxRichTextRange& range, const wxString& defName, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextCtrl_PromoteList1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxString defName - const wxString defName = wxlua_getwxStringtype(L, 4); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // int promoteBy - int promoteBy = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PromoteList - bool returns = (self->PromoteList(promoteBy, *range, defName, flags, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PromoteList[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PromoteList(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList[1] = {{ wxLua_wxRichTextCtrl_PromoteList, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_PromoteList }}; -// virtual bool PromoteList(int promoteBy, const wxRichTextRange& range, wxRichTextListStyleDefinition* def = NULL, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextCtrl_PromoteList(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def = NULL - wxRichTextListStyleDefinition * def = (argCount >= 4 ? (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextListStyleDefinition) : NULL); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // int promoteBy - int promoteBy = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PromoteList - bool returns = (self->PromoteList(promoteBy, *range, def, flags, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_PushStyleSheet[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_PushStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PushStyleSheet[1] = {{ wxLua_wxRichTextCtrl_PushStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_PushStyleSheet }}; -// bool PushStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextCtrl_PushStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call PushStyleSheet - bool returns = (self->PushStyleSheet(styleSheet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_RecreateBuffer[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_RecreateBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_RecreateBuffer[1] = {{ wxLua_wxRichTextCtrl_RecreateBuffer, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_RecreateBuffer }}; -// virtual bool RecreateBuffer(const wxSize& size = wxDefaultSize); -static int LUACALL wxLua_wxRichTextCtrl_RecreateBuffer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 2 ? (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize) : &wxDefaultSize); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call RecreateBuffer - bool returns = (self->RecreateBuffer(*size)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Redo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Redo[1] = {{ wxLua_wxRichTextCtrl_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Redo }}; -// virtual void Redo(); -static int LUACALL wxLua_wxRichTextCtrl_Redo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Redo - self->Redo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_RefreshForSelectionChange[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextSelection, &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_RefreshForSelectionChange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_RefreshForSelectionChange[1] = {{ wxLua_wxRichTextCtrl_RefreshForSelectionChange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_RefreshForSelectionChange }}; -// bool RefreshForSelectionChange(const wxRichTextSelection& oldSelection, const wxRichTextSelection& newSelection); -static int LUACALL wxLua_wxRichTextCtrl_RefreshForSelectionChange(lua_State *L) -{ - // const wxRichTextSelection newSelection - const wxRichTextSelection * newSelection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextSelection); - // const wxRichTextSelection oldSelection - const wxRichTextSelection * oldSelection = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextSelection); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call RefreshForSelectionChange - bool returns = (self->RefreshForSelectionChange(*oldSelection, *newSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Remove[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Remove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Remove[1] = {{ wxLua_wxRichTextCtrl_Remove, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_Remove }}; -// virtual void Remove(long from, long to); -static int LUACALL wxLua_wxRichTextCtrl_Remove(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Remove - self->Remove(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Replace[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Replace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Replace[1] = {{ wxLua_wxRichTextCtrl_Replace, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_Replace }}; -// virtual void Replace(long from, long to, const wxString& value); -static int LUACALL wxLua_wxRichTextCtrl_Replace(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 4); - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Replace - self->Replace(from, to, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ScrollIntoView[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ScrollIntoView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ScrollIntoView[1] = {{ wxLua_wxRichTextCtrl_ScrollIntoView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_ScrollIntoView }}; -// virtual bool ScrollIntoView(long position, int keyCode); -static int LUACALL wxLua_wxRichTextCtrl_ScrollIntoView(lua_State *L) -{ - // int keyCode - int keyCode = (int)wxlua_getnumbertype(L, 3); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ScrollIntoView - bool returns = (self->ScrollIntoView(position, keyCode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SelectNone[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SelectNone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SelectNone[1] = {{ wxLua_wxRichTextCtrl_SelectNone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_SelectNone }}; -// virtual void SelectNone(); -static int LUACALL wxLua_wxRichTextCtrl_SelectNone(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SelectNone - self->SelectNone(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SelectWord[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SelectWord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SelectWord[1] = {{ wxLua_wxRichTextCtrl_SelectWord, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SelectWord }}; -// virtual bool SelectWord(long position); -static int LUACALL wxLua_wxRichTextCtrl_SelectWord(lua_State *L) -{ - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SelectWord - bool returns = (self->SelectWord(position)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetAndShowDefaultStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetAndShowDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetAndShowDefaultStyle[1] = {{ wxLua_wxRichTextCtrl_SetAndShowDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetAndShowDefaultStyle }}; -// void SetAndShowDefaultStyle(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextCtrl_SetAndShowDefaultStyle(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetAndShowDefaultStyle - self->SetAndShowDefaultStyle(*attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetBasicStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetBasicStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetBasicStyle[1] = {{ wxLua_wxRichTextCtrl_SetBasicStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetBasicStyle }}; -// virtual void SetBasicStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetBasicStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetBasicStyle - self->SetBasicStyle(*style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretAtLineStart[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetCaretAtLineStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretAtLineStart[1] = {{ wxLua_wxRichTextCtrl_SetCaretAtLineStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretAtLineStart }}; -// void SetCaretAtLineStart(bool atStart); -static int LUACALL wxLua_wxRichTextCtrl_SetCaretAtLineStart(lua_State *L) -{ - // bool atStart - bool atStart = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetCaretAtLineStart - self->SetCaretAtLineStart(atStart); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetCaretPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretPosition[1] = {{ wxLua_wxRichTextCtrl_SetCaretPosition, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretPosition }}; -// void SetCaretPosition(long position, bool showAtLineStart = false) ; -static int LUACALL wxLua_wxRichTextCtrl_SetCaretPosition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool showAtLineStart = false - bool showAtLineStart = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // long position - long position = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetCaretPosition - self->SetCaretPosition(position, showAtLineStart); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretPositionAfterClick[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetCaretPositionAfterClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretPositionAfterClick[1] = {{ wxLua_wxRichTextCtrl_SetCaretPositionAfterClick, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretPositionAfterClick }}; -// bool SetCaretPositionAfterClick(wxRichTextParagraphLayoutBox* container, long position, int hitTestFlags, bool extendSelection = false); -static int LUACALL wxLua_wxRichTextCtrl_SetCaretPositionAfterClick(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool extendSelection = false - bool extendSelection = (argCount >= 5 ? wxlua_getbooleantype(L, 5) : false); - // int hitTestFlags - int hitTestFlags = (int)wxlua_getnumbertype(L, 4); - // long position - long position = (long)wxlua_getnumbertype(L, 3); - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetCaretPositionAfterClick - bool returns = (self->SetCaretPositionAfterClick(container, position, hitTestFlags, extendSelection)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle[1] = {{ wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle }}; -// void SetCaretPositionForDefaultStyle(long pos); -static int LUACALL wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetCaretPositionForDefaultStyle - self->SetCaretPositionForDefaultStyle(pos); - - return 0; -} - - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetContextMenu[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMenu, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetContextMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetContextMenu[1] = {{ wxLua_wxRichTextCtrl_SetContextMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetContextMenu }}; -// void SetContextMenu(wxMenu* menu); -static int LUACALL wxLua_wxRichTextCtrl_SetContextMenu(lua_State *L) -{ - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetContextMenu - self->SetContextMenu(menu); - - return 0; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyle1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDefaultStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle1[1] = {{ wxLua_wxRichTextCtrl_SetDefaultStyle1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyle1 }}; -// virtual bool SetDefaultStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetDefaultStyle1(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDefaultStyle - bool returns = (self->SetDefaultStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDefaultStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle[1] = {{ wxLua_wxRichTextCtrl_SetDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyle }}; -// virtual bool SetDefaultStyle(const wxTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetDefaultStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDefaultStyle - bool returns = (self->SetDefaultStyle(*style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle[1] = {{ wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle }}; -// bool SetDefaultStyleToCursorStyle(); -static int LUACALL wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDefaultStyleToCursorStyle - bool returns = (self->SetDefaultStyleToCursorStyle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold[1] = {{ wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold }}; -// void SetDelayedLayoutThreshold(long threshold); -static int LUACALL wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold(lua_State *L) -{ - // long threshold - long threshold = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDelayedLayoutThreshold - self->SetDelayedLayoutThreshold(threshold); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDimensionScale[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDimensionScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDimensionScale[1] = {{ wxLua_wxRichTextCtrl_SetDimensionScale, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDimensionScale }}; -// void SetDimensionScale(double dimScale, bool refresh = false); -static int LUACALL wxLua_wxRichTextCtrl_SetDimensionScale(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool refresh = false - bool refresh = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // double dimScale - double dimScale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDimensionScale - self->SetDimensionScale(dimScale, refresh); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDragStartPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDragStartPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDragStartPoint[1] = {{ wxLua_wxRichTextCtrl_SetDragStartPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDragStartPoint }}; -// void SetDragStartPoint(wxPoint sp); -static int LUACALL wxLua_wxRichTextCtrl_SetDragStartPoint(lua_State *L) -{ - // wxPoint sp - wxPoint sp = *(wxPoint*)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDragStartPoint - self->SetDragStartPoint(sp); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDragStartTime[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxDateTime, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDragStartTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDragStartTime[1] = {{ wxLua_wxRichTextCtrl_SetDragStartTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDragStartTime }}; -// void SetDragStartTime(wxDateTime st); -static int LUACALL wxLua_wxRichTextCtrl_SetDragStartTime(lua_State *L) -{ - // wxDateTime st - wxDateTime st = *(wxDateTime*)wxluaT_getuserdatatype(L, 2, wxluatype_wxDateTime); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDragStartTime - self->SetDragStartTime(st); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDragging[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetDragging(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDragging[1] = {{ wxLua_wxRichTextCtrl_SetDragging, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDragging }}; -// void SetDragging(bool dragging); -static int LUACALL wxLua_wxRichTextCtrl_SetDragging(lua_State *L) -{ - // bool dragging - bool dragging = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetDragging - self->SetDragging(dragging); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetEditable[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetEditable[1] = {{ wxLua_wxRichTextCtrl_SetEditable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetEditable }}; -// virtual void SetEditable(bool editable); -static int LUACALL wxLua_wxRichTextCtrl_SetEditable(lua_State *L) -{ - // bool editable - bool editable = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetEditable - self->SetEditable(editable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFilename[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFilename(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFilename[1] = {{ wxLua_wxRichTextCtrl_SetFilename, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFilename }}; -// void SetFilename(const wxString& filename); -static int LUACALL wxLua_wxRichTextCtrl_SetFilename(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFilename - self->SetFilename(filename); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFocusObject[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFocusObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFocusObject[1] = {{ wxLua_wxRichTextCtrl_SetFocusObject, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFocusObject }}; -// bool SetFocusObject(wxRichTextParagraphLayoutBox* obj, bool setCaretPosition = true); -static int LUACALL wxLua_wxRichTextCtrl_SetFocusObject(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool setCaretPosition = true - bool setCaretPosition = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // wxRichTextParagraphLayoutBox obj - wxRichTextParagraphLayoutBox * obj = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFocusObject - bool returns = (self->SetFocusObject(obj, setCaretPosition)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFont[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFont[1] = {{ wxLua_wxRichTextCtrl_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFont }}; -// virtual bool SetFont(const wxFont& font); -static int LUACALL wxLua_wxRichTextCtrl_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFont - bool returns = (self->SetFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFontScale[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFontScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFontScale[1] = {{ wxLua_wxRichTextCtrl_SetFontScale, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFontScale }}; -// void SetFontScale(double fontScale, bool refresh = false); -static int LUACALL wxLua_wxRichTextCtrl_SetFontScale(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool refresh = false - bool refresh = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // double fontScale - double fontScale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFontScale - self->SetFontScale(fontScale, refresh); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFullLayoutRequired[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFullLayoutRequired(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFullLayoutRequired[1] = {{ wxLua_wxRichTextCtrl_SetFullLayoutRequired, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFullLayoutRequired }}; -// void SetFullLayoutRequired(bool b); -static int LUACALL wxLua_wxRichTextCtrl_SetFullLayoutRequired(lua_State *L) -{ - // bool b - bool b = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFullLayoutRequired - self->SetFullLayoutRequired(b); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition[1] = {{ wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition }}; -// void SetFullLayoutSavedPosition(long p); -static int LUACALL wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition(lua_State *L) -{ - // long p - long p = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFullLayoutSavedPosition - self->SetFullLayoutSavedPosition(p); - - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFullLayoutTime[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxLongLong, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetFullLayoutTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetFullLayoutTime[1] = {{ wxLua_wxRichTextCtrl_SetFullLayoutTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetFullLayoutTime }}; -// void SetFullLayoutTime(wxLongLong t); -static int LUACALL wxLua_wxRichTextCtrl_SetFullLayoutTime(lua_State *L) -{ - // wxLongLong t - wxLongLong t = *(wxLongLong*)wxluaT_getuserdatatype(L, 2, wxluatype_wxLongLong); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetFullLayoutTime - self->SetFullLayoutTime(t); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetHandlerFlags[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetHandlerFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetHandlerFlags[1] = {{ wxLua_wxRichTextCtrl_SetHandlerFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetHandlerFlags }}; -// void SetHandlerFlags(int flags); -static int LUACALL wxLua_wxRichTextCtrl_SetHandlerFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetHandlerFlags - self->SetHandlerFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetInsertionPoint[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetInsertionPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetInsertionPoint[1] = {{ wxLua_wxRichTextCtrl_SetInsertionPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetInsertionPoint }}; -// virtual void SetInsertionPoint(long pos); -static int LUACALL wxLua_wxRichTextCtrl_SetInsertionPoint(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetInsertionPoint - self->SetInsertionPoint(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetInsertionPointEnd[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetInsertionPointEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetInsertionPointEnd[1] = {{ wxLua_wxRichTextCtrl_SetInsertionPointEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetInsertionPointEnd }}; -// virtual void SetInsertionPointEnd(); -static int LUACALL wxLua_wxRichTextCtrl_SetInsertionPointEnd(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetInsertionPointEnd - self->SetInsertionPointEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetInternalSelectionRange[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetInternalSelectionRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetInternalSelectionRange[1] = {{ wxLua_wxRichTextCtrl_SetInternalSelectionRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetInternalSelectionRange }}; -// void SetInternalSelectionRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextCtrl_SetInternalSelectionRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetInternalSelectionRange - self->SetInternalSelectionRange(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetListStyle1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetListStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle1[1] = {{ wxLua_wxRichTextCtrl_SetListStyle1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetListStyle1 }}; -// virtual bool SetListStyle(const wxRichTextRange& range, const wxString& defName, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextCtrl_SetListStyle1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxString defName - const wxString defName = wxlua_getwxStringtype(L, 3); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetListStyle - bool returns = (self->SetListStyle(*range, defName, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetListStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetListStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle[1] = {{ wxLua_wxRichTextCtrl_SetListStyle, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetListStyle }}; -// virtual bool SetListStyle(const wxRichTextRange& range, wxRichTextListStyleDefinition* def, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO, int startFrom = 1, int specifiedLevel = -1); -static int LUACALL wxLua_wxRichTextCtrl_SetListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int specifiedLevel = -1 - int specifiedLevel = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 6) : -1); - // int startFrom = 1 - int startFrom = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 1); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextListStyleDefinition def - wxRichTextListStyleDefinition * def = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextListStyleDefinition); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetListStyle - bool returns = (self->SetListStyle(*range, def, flags, startFrom, specifiedLevel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetMaxLength[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetMaxLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetMaxLength[1] = {{ wxLua_wxRichTextCtrl_SetMaxLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetMaxLength }}; -// virtual void SetMaxLength(unsigned long len); -static int LUACALL wxLua_wxRichTextCtrl_SetMaxLength(lua_State *L) -{ - // unsigned long len - unsigned long len = (unsigned long)wxlua_getuintegertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetMaxLength - self->SetMaxLength(len); - - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetPreDrag[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetPreDrag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetPreDrag[1] = {{ wxLua_wxRichTextCtrl_SetPreDrag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetPreDrag }}; -// void SetPreDrag(bool pd); -static int LUACALL wxLua_wxRichTextCtrl_SetPreDrag(lua_State *L) -{ - // bool pd - bool pd = wxlua_getbooleantype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetPreDrag - self->SetPreDrag(pd); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetProperties[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextProperties, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetProperties[1] = {{ wxLua_wxRichTextCtrl_SetProperties, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetProperties }}; -// virtual bool SetProperties(const wxRichTextRange& range, const wxRichTextProperties& properties, int flags = wxRICHTEXT_SETPROPERTIES_WITH_UNDO); -static int LUACALL wxLua_wxRichTextCtrl_SetProperties(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETPROPERTIES_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETPROPERTIES_WITH_UNDO); - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextProperties); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetProperties - bool returns = (self->SetProperties(*range, *properties, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetScale[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetScale[1] = {{ wxLua_wxRichTextCtrl_SetScale, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetScale }}; -// void SetScale(double scale, bool refresh = false); -static int LUACALL wxLua_wxRichTextCtrl_SetScale(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool refresh = false - bool refresh = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // double scale - double scale = (double)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetScale - self->SetScale(scale, refresh); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelection1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextSelection, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetSelection1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection1[1] = {{ wxLua_wxRichTextCtrl_SetSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelection1 }}; -// void SetSelection(const wxRichTextSelection& sel); -static int LUACALL wxLua_wxRichTextCtrl_SetSelection1(lua_State *L) -{ - // const wxRichTextSelection sel - const wxRichTextSelection * sel = (const wxRichTextSelection *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextSelection); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetSelection - self->SetSelection(*sel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelection[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetSelection(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection[1] = {{ wxLua_wxRichTextCtrl_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelection }}; -// virtual void SetSelection(long from, long to); -static int LUACALL wxLua_wxRichTextCtrl_SetSelection(lua_State *L) -{ - // long to - long to = (long)wxlua_getnumbertype(L, 3); - // long from - long from = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetSelection - self->SetSelection(from, to); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelectionAnchor[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetSelectionAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetSelectionAnchor[1] = {{ wxLua_wxRichTextCtrl_SetSelectionAnchor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelectionAnchor }}; -// void SetSelectionAnchor(long anchor); -static int LUACALL wxLua_wxRichTextCtrl_SetSelectionAnchor(lua_State *L) -{ - // long anchor - long anchor = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetSelectionAnchor - self->SetSelectionAnchor(anchor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelectionAnchorObject[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetSelectionAnchorObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetSelectionAnchorObject[1] = {{ wxLua_wxRichTextCtrl_SetSelectionAnchorObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelectionAnchorObject }}; -// void SetSelectionAnchorObject(wxRichTextObject* anchor); -static int LUACALL wxLua_wxRichTextCtrl_SetSelectionAnchorObject(lua_State *L) -{ - // wxRichTextObject anchor - wxRichTextObject * anchor = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetSelectionAnchorObject - self->SetSelectionAnchorObject(anchor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelectionRange[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetSelectionRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetSelectionRange[1] = {{ wxLua_wxRichTextCtrl_SetSelectionRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelectionRange }}; -// void SetSelectionRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextCtrl_SetSelectionRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetSelectionRange - self->SetSelectionRange(*range); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle4[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextObject, &wxluatype_wxRichTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyle4(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle4[1] = {{ wxLua_wxRichTextCtrl_SetStyle4, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle4 }}; -// virtual void SetStyle(wxRichTextObject *obj, const wxRichTextAttr& textAttr, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextCtrl_SetStyle4(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextAttr textAttr - const wxRichTextAttr * textAttr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyle - self->SetStyle(obj, *textAttr, flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle3[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyle3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle3[1] = {{ wxLua_wxRichTextCtrl_SetStyle3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle3 }}; -// virtual bool SetStyle(const wxRichTextRange& range, const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetStyle3(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyle - bool returns = (self->SetStyle(*range, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle2[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyle2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle2[1] = {{ wxLua_wxRichTextCtrl_SetStyle2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle2 }}; -// virtual bool SetStyle(const wxRichTextRange& range, const wxTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetStyle2(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyle - bool returns = (self->SetStyle(*range, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle1[1] = {{ wxLua_wxRichTextCtrl_SetStyle1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle1 }}; -// virtual bool SetStyle(long start, long end, const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetStyle1(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr); - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyle - bool returns = (self->SetStyle(start, end, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle[1] = {{ wxLua_wxRichTextCtrl_SetStyle, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle }}; -// virtual bool SetStyle(long start, long end, const wxTextAttr& style); -static int LUACALL wxLua_wxRichTextCtrl_SetStyle(lua_State *L) -{ - // const wxTextAttr style - const wxTextAttr * style = (const wxTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttr); - // long end - long end = (long)wxlua_getnumbertype(L, 3); - // long start - long start = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyle - bool returns = (self->SetStyle(start, end, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyleEx[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_wxRichTextAttr, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyleEx(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyleEx[1] = {{ wxLua_wxRichTextCtrl_SetStyleEx, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyleEx }}; -// virtual bool SetStyleEx(const wxRichTextRange& range, const wxRichTextAttr& style, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextCtrl_SetStyleEx(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyleEx - bool returns = (self->SetStyleEx(*range, *style, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyleSheet[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyleSheet[1] = {{ wxLua_wxRichTextCtrl_SetStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyleSheet }}; -// void SetStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextCtrl_SetStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetStyleSheet - self->SetStyleSheet(styleSheet); - - return 0; -} - - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetTextCursor[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetTextCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetTextCursor[1] = {{ wxLua_wxRichTextCtrl_SetTextCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetTextCursor }}; -// void SetTextCursor(const wxCursor& cursor ); -static int LUACALL wxLua_wxRichTextCtrl_SetTextCursor(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetTextCursor - self->SetTextCursor(*cursor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetURLCursor[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxCursor, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetURLCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetURLCursor[1] = {{ wxLua_wxRichTextCtrl_SetURLCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetURLCursor }}; -// void SetURLCursor(const wxCursor& cursor ); -static int LUACALL wxLua_wxRichTextCtrl_SetURLCursor(lua_State *L) -{ - // const wxCursor cursor - const wxCursor * cursor = (const wxCursor *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCursor); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetURLCursor - self->SetURLCursor(*cursor); - - return 0; -} - -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SetupScrollbars[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SetupScrollbars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetupScrollbars[1] = {{ wxLua_wxRichTextCtrl_SetupScrollbars, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetupScrollbars }}; -// virtual void SetupScrollbars(bool atTop = false); -static int LUACALL wxLua_wxRichTextCtrl_SetupScrollbars(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool atTop = false - bool atTop = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SetupScrollbars - self->SetupScrollbars(atTop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ShouldInheritColours[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ShouldInheritColours(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ShouldInheritColours[1] = {{ wxLua_wxRichTextCtrl_ShouldInheritColours, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_ShouldInheritColours }}; -// virtual bool ShouldInheritColours() const; -static int LUACALL wxLua_wxRichTextCtrl_ShouldInheritColours(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ShouldInheritColours - bool returns = (self->ShouldInheritColours()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ShowContextMenu[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxMenu, &wxluatype_wxPoint, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ShowContextMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ShowContextMenu[1] = {{ wxLua_wxRichTextCtrl_ShowContextMenu, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_ShowContextMenu }}; -// virtual bool ShowContextMenu(wxMenu* menu, const wxPoint& pt, bool addPropertyCommands = true); -static int LUACALL wxLua_wxRichTextCtrl_ShowContextMenu(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool addPropertyCommands = true - bool addPropertyCommands = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint); - // wxMenu menu - wxMenu * menu = (wxMenu *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMenu); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ShowContextMenu - bool returns = (self->ShowContextMenu(menu, *pt, addPropertyCommands)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_ShowPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_ShowPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_ShowPosition[1] = {{ wxLua_wxRichTextCtrl_ShowPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_ShowPosition }}; -// virtual void ShowPosition(long pos); -static int LUACALL wxLua_wxRichTextCtrl_ShowPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call ShowPosition - self->ShowPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_StoreFocusObject[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_StoreFocusObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_StoreFocusObject[1] = {{ wxLua_wxRichTextCtrl_StoreFocusObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_StoreFocusObject }}; -// void StoreFocusObject(wxRichTextParagraphLayoutBox* obj); -static int LUACALL wxLua_wxRichTextCtrl_StoreFocusObject(lua_State *L) -{ - // wxRichTextParagraphLayoutBox obj - wxRichTextParagraphLayoutBox * obj = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call StoreFocusObject - self->StoreFocusObject(obj); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_SuppressingUndo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_SuppressingUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SuppressingUndo[1] = {{ wxLua_wxRichTextCtrl_SuppressingUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_SuppressingUndo }}; -// virtual bool SuppressingUndo() const; -static int LUACALL wxLua_wxRichTextCtrl_SuppressingUndo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call SuppressingUndo - bool returns = (self->SuppressingUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_Undo[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_Undo[1] = {{ wxLua_wxRichTextCtrl_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_Undo }}; -// virtual void Undo(); -static int LUACALL wxLua_wxRichTextCtrl_Undo(lua_State *L) -{ - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call Undo - self->Undo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WordLeft[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WordLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WordLeft[1] = {{ wxLua_wxRichTextCtrl_WordLeft, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_WordLeft }}; -// virtual bool WordLeft(int noPages = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_WordLeft(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noPages = 1 - int noPages = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WordLeft - bool returns = (self->WordLeft(noPages, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WordRight[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WordRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WordRight[1] = {{ wxLua_wxRichTextCtrl_WordRight, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_WordRight }}; -// virtual bool WordRight(int noPages = 1, int flags = 0); -static int LUACALL wxLua_wxRichTextCtrl_WordRight(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int noPages = 1 - int noPages = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 1); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WordRight - bool returns = (self->WordRight(noPages, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteField[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_wxRichTextProperties, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteField(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteField[1] = {{ wxLua_wxRichTextCtrl_WriteField, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteField }}; -// const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteField(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextProperties); - // const wxString fieldType - const wxString fieldType = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteField - wxRichTextField* returns = (wxRichTextField*)self->WriteField(fieldType, *properties, *textAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextField); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage3[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextImageBlock, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteImage3(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage3[1] = {{ wxLua_wxRichTextCtrl_WriteImage3, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage3 }}; -// const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteImage3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 3 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // const wxRichTextImageBlock imageBlock - const wxRichTextImageBlock * imageBlock = (const wxRichTextImageBlock *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextImageBlock); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteImage - bool returns = (self->WriteImage(*imageBlock, *textAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage2[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteImage2(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage2[1] = {{ wxLua_wxRichTextCtrl_WriteImage2, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage2 }}; -// const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteImage2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // wxBitmapType bitmapType = wxBITMAP_TYPE_PNG - wxBitmapType bitmapType = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_PNG); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteImage - bool returns = (self->WriteImage(filename, bitmapType, *textAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage1[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxBitmap, &wxluatype_TINTEGER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteImage1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage1[1] = {{ wxLua_wxRichTextCtrl_WriteImage1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage1 }}; -// const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteImage1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // wxBitmapType bitmapType = wxBITMAP_TYPE_PNG - wxBitmapType bitmapType = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_PNG); - // const wxBitmap bitmap - const wxBitmap * bitmap = (const wxBitmap *)wxluaT_getuserdatatype(L, 2, wxluatype_wxBitmap); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteImage - bool returns = (self->WriteImage(*bitmap, bitmapType, *textAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxImage, &wxluatype_TINTEGER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteImage(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage[1] = {{ wxLua_wxRichTextCtrl_WriteImage, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage }}; -// const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteImage(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // wxBitmapType bitmapType = wxBITMAP_TYPE_PNG - wxBitmapType bitmapType = (argCount >= 3 ? (wxBitmapType)wxlua_getenumtype(L, 3) : wxBITMAP_TYPE_PNG); - // const wxImage image - const wxImage * image = (const wxImage *)wxluaT_getuserdatatype(L, 2, wxluatype_wxImage); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteImage - bool returns = (self->WriteImage(*image, bitmapType, *textAttr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteTable[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteTable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteTable[1] = {{ wxLua_wxRichTextCtrl_WriteTable, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteTable }}; -// virtual wxRichTextTable* WriteTable(int rows, int cols, const wxRichTextAttr& tableAttr = wxDEFAULT_RICHTEXTATTR, const wxRichTextAttr& cellAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteTable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr cellAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * cellAttr = (argCount >= 5 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // const wxRichTextAttr tableAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * tableAttr = (argCount >= 4 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // int cols - int cols = (int)wxlua_getnumbertype(L, 3); - // int rows - int rows = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteTable - wxRichTextTable* returns = (wxRichTextTable*)self->WriteTable(rows, cols, *tableAttr, *cellAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextTable); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteText[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteText[1] = {{ wxLua_wxRichTextCtrl_WriteText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteText }}; -// virtual void WriteText(const wxString& text); -static int LUACALL wxLua_wxRichTextCtrl_WriteText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteText - self->WriteText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteTextBox[] = { &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_WriteTextBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteTextBox[1] = {{ wxLua_wxRichTextCtrl_WriteTextBox, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteTextBox }}; -// virtual wxRichTextBox* WriteTextBox(const wxRichTextAttr& textAttr = wxDEFAULT_RICHTEXTATTR); -static int LUACALL wxLua_wxRichTextCtrl_WriteTextBox(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxRichTextAttr textAttr = wxDEFAULT_RICHTEXTATTR - const wxRichTextAttr * textAttr = (argCount >= 2 ? (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr) : &wxDEFAULT_RICHTEXTATTR); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call WriteTextBox - wxRichTextBox* returns = (wxRichTextBox*)self->WriteTextBox(*textAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_XYToPosition[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_XYToPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_XYToPosition[1] = {{ wxLua_wxRichTextCtrl_XYToPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_XYToPosition }}; -// virtual long XYToPosition(long x, long y) const; -static int LUACALL wxLua_wxRichTextCtrl_XYToPosition(lua_State *L) -{ - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextCtrl * self = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call XYToPosition - long returns = (self->XYToPosition(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_wxValidator, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCtrl_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_constructor1[1] = {{ wxLua_wxRichTextCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxRichTextCtrl_constructor1 }}; -// long style = wxRE_MULTILINE, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxTextCtrlNameStr); -static int LUACALL wxLua_wxRichTextCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxTextCtrlNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxTextCtrlNameStr)); - // const wxValidator validator = wxDefaultValidator - const wxValidator * validator = (argCount >= 7 ? (const wxValidator *)wxluaT_getuserdatatype(L, 7, wxluatype_wxValidator) : &wxDefaultValidator); - // long style = wxRE_MULTILINE - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : wxRE_MULTILINE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString value = wxEmptyString - const wxString value = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // wxWindowID id = -1 - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : -1); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxRichTextCtrl* returns = new wxRichTextCtrl(parent, id, value, *pos, *size, style, *validator, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - -static int LUACALL wxLua_wxRichTextCtrl_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_constructor[1] = {{ wxLua_wxRichTextCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextCtrl( ); -static int LUACALL wxLua_wxRichTextCtrl_constructor(lua_State *L) -{ - // call constructor - wxRichTextCtrl* returns = new wxRichTextCtrl(); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer_overload[] = -{ - { wxLua_wxRichTextCtrl_GetBuffer1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBuffer1 }, - { wxLua_wxRichTextCtrl_GetBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBuffer }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap) - { wxLua_wxRichTextCtrl_GetBufferBitmap1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBufferBitmap1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap) - { wxLua_wxRichTextCtrl_GetBufferBitmap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetBufferBitmap }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo_overload[] = -{ - { wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo1 }, - { wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection_overload[] = -{ - { wxLua_wxRichTextCtrl_GetSelection2, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection2 }, - { wxLua_wxRichTextCtrl_GetSelection1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection1 }, - { wxLua_wxRichTextCtrl_GetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetSelection }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle_overload[] = -{ - { wxLua_wxRichTextCtrl_GetStyle1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyle1 }, - { wxLua_wxRichTextCtrl_GetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange_overload[] = -{ - { wxLua_wxRichTextCtrl_GetStyleForRange1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleForRange1 }, - { wxLua_wxRichTextCtrl_GetStyleForRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetStyleForRange }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle_overload[] = -{ - { wxLua_wxRichTextCtrl_GetUncombinedStyle1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUncombinedStyle1 }, - { wxLua_wxRichTextCtrl_GetUncombinedStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_GetUncombinedStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_HitTest_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextCtrl_HitTest1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_HitTest1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextCtrl_HitTest, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_HitTest }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_HitTest_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_HitTest_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_NumberList_overload[] = -{ - { wxLua_wxRichTextCtrl_NumberList1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_NumberList1 }, - { wxLua_wxRichTextCtrl_NumberList, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_NumberList }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_NumberList_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_NumberList_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList_overload[] = -{ - { wxLua_wxRichTextCtrl_PromoteList1, WXLUAMETHOD_METHOD, 4, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_PromoteList1 }, - { wxLua_wxRichTextCtrl_PromoteList, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_PromoteList }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle_overload[] = -{ - { wxLua_wxRichTextCtrl_SetDefaultStyle1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyle1 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextCtrl_SetDefaultStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetDefaultStyle }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle_overload[] = -{ - { wxLua_wxRichTextCtrl_SetListStyle1, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetListStyle1 }, - { wxLua_wxRichTextCtrl_SetListStyle, WXLUAMETHOD_METHOD, 3, 6, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetListStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection_overload[] = -{ - { wxLua_wxRichTextCtrl_SetSelection1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelection1 }, - { wxLua_wxRichTextCtrl_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetSelection }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle_overload[] = -{ - { wxLua_wxRichTextCtrl_SetStyle4, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle4 }, - { wxLua_wxRichTextCtrl_SetStyle3, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle3 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextCtrl_SetStyle2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle2 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextCtrl_SetStyle1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle1 }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { wxLua_wxRichTextCtrl_SetStyle, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_SetStyle }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage_overload[] = -{ - { wxLua_wxRichTextCtrl_WriteImage3, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage3 }, - { wxLua_wxRichTextCtrl_WriteImage2, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage2 }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextCtrl_WriteImage1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage1 }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextCtrl_WriteImage, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextCtrl_WriteImage }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxRichTextCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 8, s_wxluatypeArray_wxLua_wxRichTextCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { wxLua_wxRichTextCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextCtrl_delete_function(void** p) -{ - wxRichTextCtrl* o = (wxRichTextCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextCtrl_methods[] = { -#if (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "AddImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_AddImage, 1, NULL }, -#endif // (wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "AddParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_AddParagraph, 1, NULL }, - { "AppendText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_AppendText, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "ApplyAlignmentToSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyAlignmentToSelection, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "ApplyBoldToSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyBoldToSelection, 1, NULL }, - { "ApplyItalicToSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyItalicToSelection, 1, NULL }, - { "ApplyStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyStyle, 1, NULL }, - { "ApplyStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyStyleSheet, 1, NULL }, - { "ApplyTextEffectToSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyTextEffectToSelection, 1, NULL }, - { "ApplyUnderlineToSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ApplyUnderlineToSelection, 1, NULL }, - { "BatchingUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BatchingUndo, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "BeginAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginAlignment, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "BeginBatchUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginBatchUndo, 1, NULL }, - { "BeginBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginBold, 1, NULL }, - { "BeginCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginCharacterStyle, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "BeginFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "BeginFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginFontSize, 1, NULL }, - { "BeginItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginItalic, 1, NULL }, - { "BeginLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginLeftIndent, 1, NULL }, - { "BeginLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginLineSpacing, 1, NULL }, - { "BeginListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginListStyle, 1, NULL }, - { "BeginNumberedBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginNumberedBullet, 1, NULL }, - { "BeginParagraphSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginParagraphSpacing, 1, NULL }, - { "BeginParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginParagraphStyle, 1, NULL }, - { "BeginRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginRightIndent, 1, NULL }, - { "BeginStandardBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginStandardBullet, 1, NULL }, - { "BeginStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginStyle, 1, NULL }, - { "BeginSuppressUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginSuppressUndo, 1, NULL }, - { "BeginSymbolBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginSymbolBullet, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "BeginTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "BeginURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginURL, 1, NULL }, - { "BeginUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_BeginUnderline, 1, NULL }, - { "CanCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanCopy, 1, NULL }, - { "CanCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanCut, 1, NULL }, - { "CanDeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanDeleteRange, 1, NULL }, - { "CanDeleteSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanDeleteSelection, 1, NULL }, - { "CanEditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanEditProperties, 1, NULL }, - { "CanInsertContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanInsertContent, 1, NULL }, - { "CanPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanPaste, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_CanUndo, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Clear, 1, NULL }, - { "ClearAvailableFontNames", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextCtrl_ClearAvailableFontNames, 1, NULL }, - { "ClearListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ClearListStyle, 1, NULL }, - { "Command", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Command, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Copy, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS) - - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Cut, 1, NULL }, - { "Delete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Delete, 1, NULL }, - { "DeleteSelectedContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DeleteSelectedContent, 1, NULL }, - { "DeleteSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DeleteSelection, 1, NULL }, - { "DiscardEdits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DiscardEdits, 1, NULL }, - { "DoGetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DoGetValue, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - { "DoLoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DoLoadFile, 1, NULL }, - { "DoSaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DoSaveFile, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - - { "DoWriteText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DoWriteText, 1, NULL }, - { "DoesSelectionHaveTextEffectFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_DoesSelectionHaveTextEffectFlag, 1, NULL }, - { "EditProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EditProperties, 1, NULL }, - { "EnableVerticalScrollbar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EnableVerticalScrollbar, 1, NULL }, - { "EnableVirtualAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EnableVirtualAttributes, 1, NULL }, - { "EndAlignment", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndAlignment, 1, NULL }, - { "EndAllStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndAllStyles, 1, NULL }, - { "EndBatchUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndBatchUndo, 1, NULL }, - { "EndBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndBold, 1, NULL }, - { "EndCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndCharacterStyle, 1, NULL }, - { "EndFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndFont, 1, NULL }, - { "EndFontSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndFontSize, 1, NULL }, - { "EndItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndItalic, 1, NULL }, - { "EndLeftIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndLeftIndent, 1, NULL }, - { "EndLineSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndLineSpacing, 1, NULL }, - { "EndListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndListStyle, 1, NULL }, - { "EndNumberedBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndNumberedBullet, 1, NULL }, - { "EndParagraphSpacing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndParagraphSpacing, 1, NULL }, - { "EndParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndParagraphStyle, 1, NULL }, - { "EndRightIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndRightIndent, 1, NULL }, - { "EndStandardBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndStandardBullet, 1, NULL }, - { "EndStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndStyle, 1, NULL }, - { "EndSuppressUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndSuppressUndo, 1, NULL }, - { "EndSymbolBullet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndSymbolBullet, 1, NULL }, - { "EndTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndTextColour, 1, NULL }, - { "EndURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndURL, 1, NULL }, - { "EndUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_EndUnderline, 1, NULL }, - { "ExtendSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ExtendSelection, 1, NULL }, - { "FindCaretPositionForCharacterPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_FindCaretPositionForCharacterPosition, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindContainerAtPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_FindContainerAtPoint, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "FindNextWordPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_FindNextWordPosition, 1, NULL }, - { "FindRangeForList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_FindRangeForList, 1, NULL }, - { "ForceDelayedLayout", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ForceDelayedLayout, 1, NULL }, - { "GetAdjustedCaretPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetAdjustedCaretPosition, 1, NULL }, - -#if (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetAvailableFontNames", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextCtrl_GetAvailableFontNames, 1, NULL }, -#endif // (wxLUA_USE_wxArrayString) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetBasicStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetBasicStyle, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetBuffer_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap)) - { "GetBufferBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetBufferBitmap_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxBitmap)) - - { "GetCaretAtLineStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretAtLineStart, 1, NULL }, - { "GetCaretPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretPosition, 1, NULL }, - { "GetCaretPositionForDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretPositionForDefaultStyle, 1, NULL }, - { "GetCaretPositionForIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetCaretPositionForIndex, 1, NULL }, - -#if (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetCommandProcessor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetCommandProcessor, 1, NULL }, -#endif // (wxLUA_USE_wxCommandProcessor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetContextMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenu, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetContextMenuPropertiesInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetContextMenuPropertiesInfo_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetDefaultStyleEx", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetDefaultStyleEx, 1, NULL }, - { "GetDelayedLayoutThreshold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetDelayedLayoutThreshold, 1, NULL }, - { "GetDimensionScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetDimensionScale, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) - { "GetDragStartPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetDragStartPoint, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "GetDragStartTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetDragStartTime, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "GetDragging", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetDragging, 1, NULL }, - { "GetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFilename, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetFirstVisiblePoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFirstVisiblePoint, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFirstVisiblePosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFirstVisiblePosition, 1, NULL }, - { "GetFocusObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFocusObject, 1, NULL }, - { "GetFontScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFontScale, 1, NULL }, - { "GetFullLayoutRequired", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFullLayoutRequired, 1, NULL }, - { "GetFullLayoutSavedPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFullLayoutSavedPosition, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) - { "GetFullLayoutTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetFullLayoutTime, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) - - { "GetHandlerFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetHandlerFlags, 1, NULL }, - { "GetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetInsertionPoint, 1, NULL }, - { "GetInternalSelectionRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetInternalSelectionRange, 1, NULL }, - { "GetLastPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetLastPosition, 1, NULL }, - { "GetLineLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetLineLength, 1, NULL }, - { "GetLineText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetLineText, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetLogicalPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetLogicalPoint, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetNumberOfLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetNumberOfLines, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPhysicalPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetPhysicalPoint, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - { "GetPreDrag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetPreDrag, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - - { "GetPropertiesMenuLabel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetPropertiesMenuLabel, 1, NULL }, - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetRange, 1, NULL }, - { "GetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetScale, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetScaledPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetScaledPoint, 1, NULL }, - { "GetScaledRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetScaledRect, 1, NULL }, - { "GetScaledSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetScaledSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetSelection_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetSelectionAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetSelectionAnchor, 1, NULL }, - { "GetSelectionAnchorObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetSelectionAnchorObject, 1, NULL }, - { "GetSelectionRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetSelectionRange, 1, NULL }, - { "GetStringSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetStringSelection, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetStyle_overload_count, 0 }, - { "GetStyleForRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleForRange_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetStyleSheet, 1, NULL }, - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetTextCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetTextCursor, 1, NULL }, - { "GetURLCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetURLCursor, 1, NULL }, -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetUncombinedStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle_overload, s_wxluafunc_wxLua_wxRichTextCtrl_GetUncombinedStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetUnscaledPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetUnscaledPoint, 1, NULL }, - { "GetUnscaledRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetUnscaledRect, 1, NULL }, - { "GetUnscaledSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetUnscaledSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetVerticalScrollbarEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetVerticalScrollbarEnabled, 1, NULL }, - { "GetVirtualAttributesEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetVirtualAttributesEnabled, 1, NULL }, - { "GetVisibleLineForCaretPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_GetVisibleLineForCaretPosition, 1, NULL }, - { "HasCharacterAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_HasCharacterAttributes, 1, NULL }, - { "HasParagraphAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_HasParagraphAttributes, 1, NULL }, - { "HasSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_HasSelection, 1, NULL }, - { "HasUnfocusedSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_HasUnfocusedSelection, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - { "HitTest", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_HitTest_overload, s_wxluafunc_wxLua_wxRichTextCtrl_HitTest_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Init, 1, NULL }, - { "Invalidate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Invalidate, 1, NULL }, - { "IsDefaultStyleShowing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsDefaultStyleShowing, 1, NULL }, - { "IsEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsEditable, 1, NULL }, - { "IsModified", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsModified, 1, NULL }, - { "IsMultiLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsMultiLine, 1, NULL }, - { "IsPositionVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsPositionVisible, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "IsSelectionAligned", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionAligned, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "IsSelectionBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionBold, 1, NULL }, - { "IsSelectionItalics", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionItalics, 1, NULL }, - { "IsSelectionUnderlined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsSelectionUnderlined, 1, NULL }, - { "IsSingleLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_IsSingleLine, 1, NULL }, - { "KeyboardNavigate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_KeyboardNavigate, 1, NULL }, - { "LayoutContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_LayoutContent, 1, NULL }, - { "LineBreak", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_LineBreak, 1, NULL }, - { "MarkDirty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MarkDirty, 1, NULL }, - { "MoveCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveCaret, 1, NULL }, - { "MoveCaretBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveCaretBack, 1, NULL }, - { "MoveCaretForward", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveCaretForward, 1, NULL }, - { "MoveDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveDown, 1, NULL }, - { "MoveEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveEnd, 1, NULL }, - { "MoveHome", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveHome, 1, NULL }, - { "MoveLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveLeft, 1, NULL }, - { "MoveRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveRight, 1, NULL }, - { "MoveToLineEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveToLineEnd, 1, NULL }, - { "MoveToLineStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveToLineStart, 1, NULL }, - { "MoveToParagraphEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveToParagraphEnd, 1, NULL }, - { "MoveToParagraphStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveToParagraphStart, 1, NULL }, - { "MoveUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_MoveUp, 1, NULL }, - { "Newline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Newline, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "NumberList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_NumberList_overload, s_wxluafunc_wxLua_wxRichTextCtrl_NumberList_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "OnCaptureLost", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnCaptureLost, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "OnChar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnChar, 1, NULL }, - { "OnClear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnClear, 1, NULL }, - { "OnContextMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnContextMenu, 1, NULL }, - { "OnCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnCopy, 1, NULL }, - { "OnCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnCut, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "OnDrop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnDrop, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -#if (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "OnDropFiles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnDropFiles, 1, NULL }, -#endif // (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "OnEraseBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnEraseBackground, 1, NULL }, - { "OnIdle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnIdle, 1, NULL }, - { "OnKillFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnKillFocus, 1, NULL }, - { "OnLeftClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnLeftClick, 1, NULL }, - { "OnLeftDClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnLeftDClick, 1, NULL }, - { "OnLeftUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnLeftUp, 1, NULL }, - { "OnMiddleClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnMiddleClick, 1, NULL }, - { "OnMoveMouse", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnMoveMouse, 1, NULL }, - { "OnPaint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnPaint, 1, NULL }, - { "OnPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnPaste, 1, NULL }, - { "OnProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnProperties, 1, NULL }, - { "OnRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnRedo, 1, NULL }, - { "OnRightClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnRightClick, 1, NULL }, - { "OnScroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnScroll, 1, NULL }, - { "OnSelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnSelectAll, 1, NULL }, - { "OnSetFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnSetFocus, 1, NULL }, - { "OnSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnSize, 1, NULL }, - { "OnSysColourChanged", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnSysColourChanged, 1, NULL }, - { "OnUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUndo, 1, NULL }, - { "OnUpdateClear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateClear, 1, NULL }, - { "OnUpdateCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateCopy, 1, NULL }, - { "OnUpdateCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateCut, 1, NULL }, - { "OnUpdatePaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdatePaste, 1, NULL }, - { "OnUpdateProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateProperties, 1, NULL }, - { "OnUpdateRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateRedo, 1, NULL }, - { "OnUpdateSelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateSelectAll, 1, NULL }, - { "OnUpdateUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_OnUpdateUndo, 1, NULL }, - { "PageDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PageDown, 1, NULL }, - { "PageUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PageUp, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "PaintAboveContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PaintAboveContent, 1, NULL }, - { "PaintBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PaintBackground, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Paste, 1, NULL }, - { "PopStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PopStyleSheet, 1, NULL }, - { "PositionCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PositionCaret, 1, NULL }, - { "PositionToXY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PositionToXY, 1, NULL }, - { "PrepareContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PrepareContent, 1, NULL }, - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "PrepareContextMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PrepareContextMenu, 1, NULL }, -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "ProcessBackKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ProcessBackKey, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "ProcessMouseMovement", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ProcessMouseMovement, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "PromoteList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList_overload, s_wxluafunc_wxLua_wxRichTextCtrl_PromoteList_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "PushStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_PushStyleSheet, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxPointSizeRect) - { "RecreateBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_RecreateBuffer, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_BUFFERED_PAINTING)) && (wxLUA_USE_wxPointSizeRect) - - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Redo, 1, NULL }, - { "RefreshForSelectionChange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_RefreshForSelectionChange, 1, NULL }, - { "Remove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Remove, 1, NULL }, - { "Replace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Replace, 1, NULL }, - { "ScrollIntoView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ScrollIntoView, 1, NULL }, - { "SelectNone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SelectNone, 1, NULL }, - { "SelectWord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SelectWord, 1, NULL }, - { "SetAndShowDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetAndShowDefaultStyle, 1, NULL }, - { "SetBasicStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetBasicStyle, 1, NULL }, - { "SetCaretAtLineStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretAtLineStart, 1, NULL }, - { "SetCaretPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretPosition, 1, NULL }, - { "SetCaretPositionAfterClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretPositionAfterClick, 1, NULL }, - { "SetCaretPositionForDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetCaretPositionForDefaultStyle, 1, NULL }, - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetContextMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetContextMenu, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - { "SetDefaultStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle_overload, s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - - { "SetDefaultStyleToCursorStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDefaultStyleToCursorStyle, 1, NULL }, - { "SetDelayedLayoutThreshold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDelayedLayoutThreshold, 1, NULL }, - { "SetDimensionScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDimensionScale, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) - { "SetDragStartPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDragStartPoint, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - { "SetDragStartTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDragStartTime, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATETIME) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDateTime && wxUSE_DATETIME) - - { "SetDragging", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetDragging, 1, NULL }, - { "SetEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetEditable, 1, NULL }, - { "SetFilename", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFilename, 1, NULL }, - { "SetFocusObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFocusObject, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetFontScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFontScale, 1, NULL }, - { "SetFullLayoutRequired", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFullLayoutRequired, 1, NULL }, - { "SetFullLayoutSavedPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFullLayoutSavedPosition, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) - { "SetFullLayoutTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetFullLayoutTime, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_LONGLONG) - - { "SetHandlerFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetHandlerFlags, 1, NULL }, - { "SetInsertionPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetInsertionPoint, 1, NULL }, - { "SetInsertionPointEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetInsertionPointEnd, 1, NULL }, - { "SetInternalSelectionRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetInternalSelectionRange, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle_overload, s_wxluafunc_wxLua_wxRichTextCtrl_SetListStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetMaxLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetMaxLength, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - { "SetPreDrag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetPreDrag, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetProperties, 1, NULL }, - { "SetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetScale, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection_overload, s_wxluafunc_wxLua_wxRichTextCtrl_SetSelection_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetSelectionAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetSelectionAnchor, 1, NULL }, - { "SetSelectionAnchorObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetSelectionAnchorObject, 1, NULL }, - { "SetSelectionRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetSelectionRange, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle_overload, s_wxluafunc_wxLua_wxRichTextCtrl_SetStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL)) - - { "SetStyleEx", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetStyleEx, 1, NULL }, - { "SetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetStyleSheet, 1, NULL }, - -#if (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetTextCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetTextCursor, 1, NULL }, - { "SetURLCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetURLCursor, 1, NULL }, -#endif // (wxLUA_USE_wxCursor) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetupScrollbars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SetupScrollbars, 1, NULL }, - { "ShouldInheritColours", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ShouldInheritColours, 1, NULL }, - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "ShowContextMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ShowContextMenu, 1, NULL }, -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "ShowPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_ShowPosition, 1, NULL }, - { "StoreFocusObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_StoreFocusObject, 1, NULL }, - { "SuppressingUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_SuppressingUndo, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_Undo, 1, NULL }, - { "WordLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WordLeft, 1, NULL }, - { "WordRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WordRight, 1, NULL }, - { "WriteField", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WriteField, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "WriteImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage_overload, s_wxluafunc_wxLua_wxRichTextCtrl_WriteImage_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxImage && wxUSE_IMAGE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "WriteTable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WriteTable, 1, NULL }, - { "WriteText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WriteText, 1, NULL }, - { "WriteTextBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_WriteTextBox, 1, NULL }, - { "XYToPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCtrl_XYToPosition, 1, NULL }, - -#if (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextCtrl_constructor_overload, s_wxluafunc_wxLua_wxRichTextCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextCtrl_methodCount = sizeof(wxRichTextCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) -// --------------------------------------------------------------------------- -// Bind class wxRichTextDropSource -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextDropSource' -int wxluatype_wxRichTextDropSource = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDropSource_delete[] = { &wxluatype_wxRichTextDropSource, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDropSource_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDropSource_delete }}; - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDropSource_constructor[] = { &wxluatype_wxDataObject, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextDropSource_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDropSource_constructor[1] = {{ wxLua_wxRichTextDropSource_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxRichTextDropSource_constructor }}; -// wxRichTextDropSource(wxDataObject& data, wxRichTextCtrl* tc); -static int LUACALL wxLua_wxRichTextDropSource_constructor(lua_State *L) -{ - // wxRichTextCtrl tc - wxRichTextCtrl * tc = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // wxDataObject data - wxDataObject * data = (wxDataObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxDataObject); - // call constructor - wxRichTextDropSource* returns = new wxRichTextDropSource(*data, tc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextDropSource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextDropSource); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - - -void wxLua_wxRichTextDropSource_delete_function(void** p) -{ - wxRichTextDropSource* o = (wxRichTextDropSource*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextDropSource_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextDropSource_delete, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextDropSource", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextDropSource_constructor, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDataObject && wxUSE_DATAOBJ)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextDropSource_methodCount = sizeof(wxRichTextDropSource_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) -// --------------------------------------------------------------------------- -// Bind class wxRichTextDropTarget -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextDropTarget' -int wxluatype_wxRichTextDropTarget = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDropTarget_OnData[] = { &wxluatype_wxRichTextDropTarget, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextDropTarget_OnData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDropTarget_OnData[1] = {{ wxLua_wxRichTextDropTarget_OnData, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextDropTarget_OnData }}; -// virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def); -static int LUACALL wxLua_wxRichTextDropTarget_OnData(lua_State *L) -{ - // wxDragResult def - wxDragResult def = (wxDragResult)wxlua_getenumtype(L, 4); - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxRichTextDropTarget * self = (wxRichTextDropTarget *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextDropTarget); - // call OnData - wxDragResult returns = (self->OnData(x, y, def)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDropTarget_delete[] = { &wxluatype_wxRichTextDropTarget, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDropTarget_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDropTarget_delete }}; - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextDropTarget_constructor[] = { &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextDropTarget_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextDropTarget_constructor[1] = {{ wxLua_wxRichTextDropTarget_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextDropTarget_constructor }}; -// wxRichTextDropTarget(wxRichTextCtrl* tc); -static int LUACALL wxLua_wxRichTextDropTarget_constructor(lua_State *L) -{ - // wxRichTextCtrl tc - wxRichTextCtrl * tc = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call constructor - wxRichTextDropTarget* returns = new wxRichTextDropTarget(tc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextDropTarget); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextDropTarget); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - - -void wxLua_wxRichTextDropTarget_delete_function(void** p) -{ - wxRichTextDropTarget* o = (wxRichTextDropTarget*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextDropTarget_methods[] = { -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - { "OnData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextDropTarget_OnData, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextDropTarget_delete, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextDropTarget", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextDropTarget_constructor, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextDropTarget_methodCount = sizeof(wxRichTextDropTarget_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) -// --------------------------------------------------------------------------- -// Bind class wxRichTextEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextEvent' -int wxluatype_wxRichTextEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_Clone[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_Clone[1] = {{ wxLua_wxRichTextEvent_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_Clone }}; -// virtual wxEvent *Clone() const; -static int LUACALL wxLua_wxRichTextEvent_Clone(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call Clone - wxEvent* returns = (wxEvent*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetCharacter[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetCharacter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetCharacter[1] = {{ wxLua_wxRichTextEvent_GetCharacter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetCharacter }}; -// wxChar GetCharacter() const; -static int LUACALL wxLua_wxRichTextEvent_GetCharacter(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetCharacter - wxChar returns = (self->GetCharacter()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetContainer[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetContainer[1] = {{ wxLua_wxRichTextEvent_GetContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetContainer }}; -// wxRichTextParagraphLayoutBox* GetContainer() const; -static int LUACALL wxLua_wxRichTextEvent_GetContainer(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetContainer - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetFlags[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetFlags[1] = {{ wxLua_wxRichTextEvent_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxRichTextEvent_GetFlags(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetNewStyleSheet[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetNewStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetNewStyleSheet[1] = {{ wxLua_wxRichTextEvent_GetNewStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetNewStyleSheet }}; -// wxRichTextStyleSheet* GetNewStyleSheet() const; -static int LUACALL wxLua_wxRichTextEvent_GetNewStyleSheet(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetNewStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetNewStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetOldContainer[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetOldContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetOldContainer[1] = {{ wxLua_wxRichTextEvent_GetOldContainer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetOldContainer }}; -// wxRichTextParagraphLayoutBox* GetOldContainer() const; -static int LUACALL wxLua_wxRichTextEvent_GetOldContainer(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetOldContainer - wxRichTextParagraphLayoutBox* returns = (wxRichTextParagraphLayoutBox*)self->GetOldContainer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphLayoutBox); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetOldStyleSheet[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetOldStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetOldStyleSheet[1] = {{ wxLua_wxRichTextEvent_GetOldStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetOldStyleSheet }}; -// wxRichTextStyleSheet* GetOldStyleSheet() const; -static int LUACALL wxLua_wxRichTextEvent_GetOldStyleSheet(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetOldStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetOldStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetPosition[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetPosition[1] = {{ wxLua_wxRichTextEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetPosition }}; -// long GetPosition() const; -static int LUACALL wxLua_wxRichTextEvent_GetPosition(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetPosition - long returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_GetRange[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_GetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_GetRange[1] = {{ wxLua_wxRichTextEvent_GetRange, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_GetRange }}; -// const wxRichTextRange& GetRange() const; -static int LUACALL wxLua_wxRichTextEvent_GetRange(lua_State *L) -{ - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call GetRange - const wxRichTextRange* returns = (const wxRichTextRange*)&self->GetRange(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextRange); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetCharacter[] = { &wxluatype_wxRichTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetCharacter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetCharacter[1] = {{ wxLua_wxRichTextEvent_SetCharacter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetCharacter }}; -// void SetCharacter(wxChar ch); -static int LUACALL wxLua_wxRichTextEvent_SetCharacter(lua_State *L) -{ - // wxChar ch - wxChar ch = (wxChar)wxlua_getnumbertype(L, 2); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetCharacter - self->SetCharacter(ch); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetContainer[] = { &wxluatype_wxRichTextEvent, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetContainer[1] = {{ wxLua_wxRichTextEvent_SetContainer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetContainer }}; -// void SetContainer(wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextEvent_SetContainer(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetContainer - self->SetContainer(container); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetFlags[] = { &wxluatype_wxRichTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetFlags[1] = {{ wxLua_wxRichTextEvent_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxRichTextEvent_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetNewStyleSheet[] = { &wxluatype_wxRichTextEvent, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetNewStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetNewStyleSheet[1] = {{ wxLua_wxRichTextEvent_SetNewStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetNewStyleSheet }}; -// void SetNewStyleSheet(wxRichTextStyleSheet* sheet); -static int LUACALL wxLua_wxRichTextEvent_SetNewStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetNewStyleSheet - self->SetNewStyleSheet(sheet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetOldContainer[] = { &wxluatype_wxRichTextEvent, &wxluatype_wxRichTextParagraphLayoutBox, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetOldContainer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetOldContainer[1] = {{ wxLua_wxRichTextEvent_SetOldContainer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetOldContainer }}; -// void SetOldContainer(wxRichTextParagraphLayoutBox* container); -static int LUACALL wxLua_wxRichTextEvent_SetOldContainer(lua_State *L) -{ - // wxRichTextParagraphLayoutBox container - wxRichTextParagraphLayoutBox * container = (wxRichTextParagraphLayoutBox *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphLayoutBox); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetOldContainer - self->SetOldContainer(container); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetOldStyleSheet[] = { &wxluatype_wxRichTextEvent, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetOldStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetOldStyleSheet[1] = {{ wxLua_wxRichTextEvent_SetOldStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetOldStyleSheet }}; -// void SetOldStyleSheet(wxRichTextStyleSheet* sheet); -static int LUACALL wxLua_wxRichTextEvent_SetOldStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetOldStyleSheet - self->SetOldStyleSheet(sheet); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetPosition[] = { &wxluatype_wxRichTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetPosition[1] = {{ wxLua_wxRichTextEvent_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetPosition }}; -// void SetPosition(long pos); -static int LUACALL wxLua_wxRichTextEvent_SetPosition(lua_State *L) -{ - // long pos - long pos = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_SetRange[] = { &wxluatype_wxRichTextEvent, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextEvent_SetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_SetRange[1] = {{ wxLua_wxRichTextEvent_SetRange, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_SetRange }}; -// void SetRange(const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextEvent_SetRange(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextRange); - // get this - wxRichTextEvent * self = (wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call SetRange - self->SetRange(*range); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_delete[] = { &wxluatype_wxRichTextEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_constructor1[] = { &wxluatype_wxRichTextEvent, NULL }; -static int LUACALL wxLua_wxRichTextEvent_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_constructor1[1] = {{ wxLua_wxRichTextEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_constructor1 }}; -// wxRichTextEvent(const wxRichTextEvent& event); -static int LUACALL wxLua_wxRichTextEvent_constructor1(lua_State *L) -{ - // const wxRichTextEvent event - const wxRichTextEvent * event = (const wxRichTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextEvent); - // call constructor - wxRichTextEvent* returns = new wxRichTextEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextEvent_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_constructor[1] = {{ wxLua_wxRichTextEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_constructor }}; -// wxRichTextEvent(wxEventType commandType = wxEVT_NULL, int winid = 0); -static int LUACALL wxLua_wxRichTextEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int winid = 0 - int winid = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxRichTextEvent* returns = new wxRichTextEvent(commandType, winid); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextEvent); - - return 1; -} - - - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextEvent_constructor_overload[] = -{ - { wxLua_wxRichTextEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextEvent_constructor1 }, - { wxLua_wxRichTextEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxRichTextEvent_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) - -void wxLua_wxRichTextEvent_delete_function(void** p) -{ - wxRichTextEvent* o = (wxRichTextEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextEvent_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_Clone, 1, NULL }, - { "GetCharacter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetCharacter, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetContainer, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetFlags, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetNewStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetNewStyleSheet, 1, NULL }, - { "GetOldContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetOldContainer, 1, NULL }, - { "GetOldStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetOldStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetPosition, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_GetRange, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetCharacter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetCharacter, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetContainer, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetFlags, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetNewStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetNewStyleSheet, 1, NULL }, - { "SetOldContainer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetOldContainer, 1, NULL }, - { "SetOldStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetOldStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetPosition, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextEvent_SetRange, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextEvent_delete, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) - { "wxRichTextEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextEvent_constructor_overload, s_wxluafunc_wxLua_wxRichTextEvent_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextEvent_methodCount = sizeof(wxRichTextEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// --------------------------------------------------------------------------- -// Bind class wxRichTextFormattingDialogFactory -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFormattingDialogFactory' -int wxluatype_wxRichTextFormattingDialogFactory = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_CreateButtons[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_CreateButtons(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_CreateButtons[1] = {{ wxLua_wxRichTextFormattingDialogFactory_CreateButtons, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_CreateButtons }}; -// virtual bool CreateButtons(wxRichTextFormattingDialog* dialog); -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_CreateButtons(lua_State *L) -{ - // wxRichTextFormattingDialog dialog - wxRichTextFormattingDialog * dialog = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFormattingDialog); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call CreateButtons - bool returns = (self->CreateButtons(dialog)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_CreatePage[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_CreatePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_CreatePage[1] = {{ wxLua_wxRichTextFormattingDialogFactory_CreatePage, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_CreatePage }}; -// virtual wxPanel* CreatePage(int page, wxString& title, wxRichTextFormattingDialog* dialog); -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_CreatePage(lua_State *L) -{ - // wxRichTextFormattingDialog dialog - wxRichTextFormattingDialog * dialog = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextFormattingDialog); - // wxString title - wxString title = wxlua_getwxStringtype(L, 3); - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call CreatePage - wxPanel* returns = (wxPanel*)self->CreatePage(page, title, dialog); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPanel); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_CreatePages[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_TNUMBER, &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_CreatePages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_CreatePages[1] = {{ wxLua_wxRichTextFormattingDialogFactory_CreatePages, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_CreatePages }}; -// virtual bool CreatePages(long pages, wxRichTextFormattingDialog* dialog); -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_CreatePages(lua_State *L) -{ - // wxRichTextFormattingDialog dialog - wxRichTextFormattingDialog * dialog = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextFormattingDialog); - // long pages - long pages = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call CreatePages - bool returns = (self->CreatePages(pages, dialog)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_GetPageId[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_GetPageId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_GetPageId[1] = {{ wxLua_wxRichTextFormattingDialogFactory_GetPageId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_GetPageId }}; -// virtual int GetPageId(int i) const; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_GetPageId(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call GetPageId - int returns = (self->GetPageId(i)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount[] = { &wxluatype_wxRichTextFormattingDialogFactory, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount[1] = {{ wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount }}; -// virtual int GetPageIdCount() const; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount(lua_State *L) -{ - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call GetPageIdCount - int returns = (self->GetPageIdCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_GetPageImage[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_GetPageImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_GetPageImage[1] = {{ wxLua_wxRichTextFormattingDialogFactory_GetPageImage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_GetPageImage }}; -// virtual int GetPageImage(int id) const; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_GetPageImage(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call GetPageImage - int returns = (self->GetPageImage(id)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle[1] = {{ wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle }}; -// virtual bool SetSheetStyle(wxRichTextFormattingDialog* dialog); -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle(lua_State *L) -{ - // wxRichTextFormattingDialog dialog - wxRichTextFormattingDialog * dialog = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextFormattingDialog); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call SetSheetStyle - bool returns = (self->SetSheetStyle(dialog)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_ShowHelp[] = { &wxluatype_wxRichTextFormattingDialogFactory, &wxluatype_TNUMBER, &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_ShowHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_ShowHelp[1] = {{ wxLua_wxRichTextFormattingDialogFactory_ShowHelp, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_ShowHelp }}; -// virtual bool ShowHelp(int page, wxRichTextFormattingDialog* dialog); -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_ShowHelp(lua_State *L) -{ - // wxRichTextFormattingDialog dialog - wxRichTextFormattingDialog * dialog = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextFormattingDialog); - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialogFactory * self = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call ShowHelp - bool returns = (self->ShowHelp(page, dialog)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_delete[] = { &wxluatype_wxRichTextFormattingDialogFactory, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialogFactory_delete }}; - -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_constructor[1] = {{ wxLua_wxRichTextFormattingDialogFactory_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextFormattingDialogFactory(); -static int LUACALL wxLua_wxRichTextFormattingDialogFactory_constructor(lua_State *L) -{ - // call constructor - wxRichTextFormattingDialogFactory* returns = new wxRichTextFormattingDialogFactory(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFormattingDialogFactory); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFormattingDialogFactory); - - return 1; -} - - - - -void wxLua_wxRichTextFormattingDialogFactory_delete_function(void** p) -{ - wxRichTextFormattingDialogFactory* o = (wxRichTextFormattingDialogFactory*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFormattingDialogFactory_methods[] = { - { "CreateButtons", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_CreateButtons, 1, NULL }, - { "CreatePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_CreatePage, 1, NULL }, - { "CreatePages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_CreatePages, 1, NULL }, - { "GetPageId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_GetPageId, 1, NULL }, - { "GetPageIdCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_GetPageIdCount, 1, NULL }, - { "GetPageImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_GetPageImage, 1, NULL }, - { "SetSheetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_SetSheetStyle, 1, NULL }, - { "ShowHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_ShowHelp, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_delete, 1, NULL }, - { "wxRichTextFormattingDialogFactory", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextFormattingDialogFactory_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFormattingDialogFactory_methodCount = sizeof(wxRichTextFormattingDialogFactory_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// --------------------------------------------------------------------------- -// Bind class wxRichTextFormattingDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextFormattingDialog' -int wxluatype_wxRichTextFormattingDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_AddPageId[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_AddPageId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_AddPageId[1] = {{ wxLua_wxRichTextFormattingDialog_AddPageId, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_AddPageId }}; -// void AddPageId(int id); -static int LUACALL wxLua_wxRichTextFormattingDialog_AddPageId(lua_State *L) -{ - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call AddPageId - self->AddPageId(id); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ApplyStyle1[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_ApplyStyle1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle1[1] = {{ wxLua_wxRichTextFormattingDialog_ApplyStyle1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ApplyStyle1 }}; -// virtual bool ApplyStyle(wxRichTextCtrl* ctrl, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO); -static int LUACALL wxLua_wxRichTextFormattingDialog_ApplyStyle1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRICHTEXT_SETSTYLE_WITH_UNDO); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call ApplyStyle - bool returns = (self->ApplyStyle(ctrl, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ApplyStyle[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_ApplyStyle(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle[1] = {{ wxLua_wxRichTextFormattingDialog_ApplyStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ApplyStyle }}; -// virtual bool ApplyStyle(wxRichTextCtrl* ctrl, const wxRichTextRange& range, int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO|wxRICHTEXT_SETSTYLE_OPTIMIZE); -static int LUACALL wxLua_wxRichTextFormattingDialog_ApplyStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxRICHTEXT_SETSTYLE_WITH_UNDO | wxRICHTEXT_SETSTYLE_OPTIMIZE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxRICHTEXT_SETSTYLE_WITH_UNDO | wxRICHTEXT_SETSTYLE_OPTIMIZE); - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call ApplyStyle - bool returns = (self->ApplyStyle(ctrl, *range, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ConvertFromString[] = { &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_ConvertFromString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_ConvertFromString[1] = {{ wxLua_wxRichTextFormattingDialog_ConvertFromString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ConvertFromString }}; -// static bool ConvertFromString(const wxString& str, int& ret, int unit); -static int LUACALL wxLua_wxRichTextFormattingDialog_ConvertFromString(lua_State *L) -{ - // int unit - int unit = (int)wxlua_getnumbertype(L, 3); - // int ret - int * ret = (int *)wxlua_touserdata(L, 2); - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call ConvertFromString - bool returns = (wxRichTextFormattingDialog::ConvertFromString(str, *ret, unit)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_Create[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_Create[1] = {{ wxLua_wxRichTextFormattingDialog_Create, WXLUAMETHOD_METHOD, 4, 8, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_Create }}; -// long style = wxDEFAULT_DIALOG_STYLE); -static int LUACALL wxLua_wxRichTextFormattingDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxDEFAULT_DIALOG_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDEFAULT_DIALOG_STYLE); - // const wxSize sz = wxDefaultSize - const wxSize * sz = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 5 ? (wxWindowID)wxlua_getnumbertype(L, 5) : wxID_ANY); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 4); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // long flags - long flags = (long)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call Create - bool returns = (self->Create(flags, parent, title, id, *pos, *sz, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxClassInfo) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_FindPage[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxClassInfo, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_FindPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_FindPage[1] = {{ wxLua_wxRichTextFormattingDialog_FindPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_FindPage }}; -// wxWindow* FindPage(wxClassInfo* info) const; -static int LUACALL wxLua_wxRichTextFormattingDialog_FindPage(lua_State *L) -{ - // wxClassInfo info - wxClassInfo * info = (wxClassInfo *)wxluaT_getuserdatatype(L, 2, wxluatype_wxClassInfo); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call FindPage - wxWindow* returns = (wxWindow*)self->FindPage(info); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxClassInfo) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetAttributes1[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetAttributes1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes1[1] = {{ wxLua_wxRichTextFormattingDialog_GetAttributes1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetAttributes1 }}; -// wxRichTextAttr& GetAttributes(); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetAttributes1(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetAttributes - wxRichTextAttr* returns = (wxRichTextAttr*)&self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetAttributes[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetAttributes(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes[1] = {{ wxLua_wxRichTextFormattingDialog_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetAttributes }}; -// const wxRichTextAttr& GetAttributes() const; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetAttributes(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetAttributes - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDialog[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDialog[1] = {{ wxLua_wxRichTextFormattingDialog_GetDialog, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDialog }}; -// static wxRichTextFormattingDialog* GetDialog(wxWindow* win); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDialog(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDialog - wxRichTextFormattingDialog* returns = (wxRichTextFormattingDialog*)wxRichTextFormattingDialog::GetDialog(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFormattingDialog); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDialogAttributes[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDialogAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDialogAttributes[1] = {{ wxLua_wxRichTextFormattingDialog_GetDialogAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDialogAttributes }}; -// static wxRichTextAttr* GetDialogAttributes(wxWindow* win); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDialogAttributes(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDialogAttributes - wxRichTextAttr* returns = (wxRichTextAttr*)wxRichTextFormattingDialog::GetDialogAttributes(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition[] = { &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition[1] = {{ wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition }}; -// static wxRichTextStyleDefinition* GetDialogStyleDefinition(wxWindow* win); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition(lua_State *L) -{ - // wxWindow win - wxWindow * win = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call GetDialogStyleDefinition - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)wxRichTextFormattingDialog::GetDialogStyleDefinition(win); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDimensionValue[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextCtrl, &wxluatype_wxComboBox, &wxluatype_wxCheckBox, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDimensionValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDimensionValue[1] = {{ wxLua_wxRichTextFormattingDialog_GetDimensionValue, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 5, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetDimensionValue }}; -// static void GetDimensionValue(wxTextAttrDimension& dim, wxTextCtrl* valueCtrl, wxComboBox* unitsCtrl, wxCheckBox* checkBox, wxArrayInt* units = NULL); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetDimensionValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt units = NULL - wxArrayInt * units = (argCount >= 5 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 5, wxluatype_wxArrayInt) : NULL); - // wxCheckBox checkBox - wxCheckBox * checkBox = (wxCheckBox *)wxluaT_getuserdatatype(L, 4, wxluatype_wxCheckBox); - // wxComboBox unitsCtrl - wxComboBox * unitsCtrl = (wxComboBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxComboBox); - // wxTextCtrl valueCtrl - wxTextCtrl * valueCtrl = (wxTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextCtrl); - // wxTextAttrDimension dim - wxTextAttrDimension * dim = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call GetDimensionValue - wxRichTextFormattingDialog::GetDimensionValue(*dim, valueCtrl, unitsCtrl, checkBox, units); - - return 0; -} - -#endif // ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static int LUACALL wxLua_wxRichTextFormattingDialog_GetFormattingDialogFactory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetFormattingDialogFactory[1] = {{ wxLua_wxRichTextFormattingDialog_GetFormattingDialogFactory, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxRichTextFormattingDialogFactory* GetFormattingDialogFactory(); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetFormattingDialogFactory(lua_State *L) -{ - // call GetFormattingDialogFactory - wxRichTextFormattingDialogFactory* returns = (wxRichTextFormattingDialogFactory*)wxRichTextFormattingDialog::GetFormattingDialogFactory(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFormattingDialogFactory); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetObject[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetObject[1] = {{ wxLua_wxRichTextFormattingDialog_GetObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetObject }}; -// wxRichTextObject* GetObject() const; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetObject(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetObject - wxRichTextObject* returns = (wxRichTextObject*)self->GetObject(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetOptions[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetOptions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetOptions[1] = {{ wxLua_wxRichTextFormattingDialog_GetOptions, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetOptions }}; -// int GetOptions() const; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetOptions(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetOptions - int returns = (self->GetOptions()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetStyle[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextCtrl, &wxluatype_wxRichTextRange, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetStyle[1] = {{ wxLua_wxRichTextFormattingDialog_GetStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetStyle }}; -// virtual bool GetStyle(wxRichTextCtrl* ctrl, const wxRichTextRange& range); -static int LUACALL wxLua_wxRichTextFormattingDialog_GetStyle(lua_State *L) -{ - // const wxRichTextRange range - const wxRichTextRange * range = (const wxRichTextRange *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextRange); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetStyle - bool returns = (self->GetStyle(ctrl, *range)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetStyleDefinition[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetStyleDefinition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetStyleDefinition[1] = {{ wxLua_wxRichTextFormattingDialog_GetStyleDefinition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetStyleDefinition }}; -// virtual wxRichTextStyleDefinition* GetStyleDefinition() const; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetStyleDefinition(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetStyleDefinition - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->GetStyleDefinition(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetStyleSheet[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetStyleSheet[1] = {{ wxLua_wxRichTextFormattingDialog_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetStyleSheet }}; -// virtual wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextFormattingDialog_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_HasOption[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_HasOption(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_HasOption[1] = {{ wxLua_wxRichTextFormattingDialog_HasOption, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_HasOption }}; -// bool HasOption(int option) const; -static int LUACALL wxLua_wxRichTextFormattingDialog_HasOption(lua_State *L) -{ - // int option - int option = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call HasOption - bool returns = (self->HasOption(option)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_Init[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_Init[1] = {{ wxLua_wxRichTextFormattingDialog_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextFormattingDialog_Init(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_OnHelp[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_OnHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_OnHelp[1] = {{ wxLua_wxRichTextFormattingDialog_OnHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_OnHelp }}; -// void OnHelp(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextFormattingDialog_OnHelp(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call OnHelp - self->OnHelp(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_OnUpdateHelp[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_OnUpdateHelp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_OnUpdateHelp[1] = {{ wxLua_wxRichTextFormattingDialog_OnUpdateHelp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_OnUpdateHelp }}; -// void OnUpdateHelp(wxUpdateUIEvent& event); -static int LUACALL wxLua_wxRichTextFormattingDialog_OnUpdateHelp(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call OnUpdateHelp - self->OnUpdateHelp(*event); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetAttributes[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetAttributes[1] = {{ wxLua_wxRichTextFormattingDialog_SetAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetAttributes }}; -// void SetAttributes(const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetAttributes(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call SetAttributes - self->SetAttributes(*attr); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetDimensionValue[] = { &wxluatype_wxTextAttrDimension, &wxluatype_wxTextCtrl, &wxluatype_wxComboBox, &wxluatype_wxCheckBox, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetDimensionValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetDimensionValue[1] = {{ wxLua_wxRichTextFormattingDialog_SetDimensionValue, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 4, 5, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetDimensionValue }}; -// static void SetDimensionValue(wxTextAttrDimension& dim, wxTextCtrl* valueCtrl, wxComboBox* unitsCtrl, wxCheckBox* checkBox, wxArrayInt* units = NULL); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetDimensionValue(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxArrayInt units = NULL - wxArrayInt * units = (argCount >= 5 ? (wxArrayInt *)wxluaT_getuserdatatype(L, 5, wxluatype_wxArrayInt) : NULL); - // wxCheckBox checkBox - wxCheckBox * checkBox = (wxCheckBox *)wxluaT_getuserdatatype(L, 4, wxluatype_wxCheckBox); - // wxComboBox unitsCtrl - wxComboBox * unitsCtrl = (wxComboBox *)wxluaT_getuserdatatype(L, 3, wxluatype_wxComboBox); - // wxTextCtrl valueCtrl - wxTextCtrl * valueCtrl = (wxTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextCtrl); - // wxTextAttrDimension dim - wxTextAttrDimension * dim = (wxTextAttrDimension *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttrDimension); - // call SetDimensionValue - wxRichTextFormattingDialog::SetDimensionValue(*dim, valueCtrl, unitsCtrl, checkBox, units); - - return 0; -} - -#endif // ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory[] = { &wxluatype_wxRichTextFormattingDialogFactory, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory[1] = {{ wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory }}; -// static void SetFormattingDialogFactory(wxRichTextFormattingDialogFactory* factory); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory(lua_State *L) -{ - // wxRichTextFormattingDialogFactory factory - wxRichTextFormattingDialogFactory * factory = (wxRichTextFormattingDialogFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialogFactory); - // call SetFormattingDialogFactory - wxRichTextFormattingDialog::SetFormattingDialogFactory(factory); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetObject[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetObject[1] = {{ wxLua_wxRichTextFormattingDialog_SetObject, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetObject }}; -// void SetObject(wxRichTextObject* obj); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetObject(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call SetObject - self->SetObject(obj); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetOptions[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetOptions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetOptions[1] = {{ wxLua_wxRichTextFormattingDialog_SetOptions, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetOptions }}; -// void SetOptions(int options); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetOptions(lua_State *L) -{ - // int options - int options = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call SetOptions - self->SetOptions(options); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetShowToolTips[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetShowToolTips[1] = {{ wxLua_wxRichTextFormattingDialog_SetShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetShowToolTips }}; -// static void SetShowToolTips(bool show); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetShowToolTips(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 1); - // call SetShowToolTips - wxRichTextFormattingDialog::SetShowToolTips(show); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetStyle[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetStyle[1] = {{ wxLua_wxRichTextFormattingDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetStyle }}; -// virtual bool SetStyle(const wxRichTextAttr& style, bool update = true); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool update = true - bool update = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call SetStyle - bool returns = (self->SetStyle(*style, update)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetStyleDefinition[] = { &wxluatype_wxRichTextFormattingDialog, &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextStyleSheet, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_SetStyleDefinition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetStyleDefinition[1] = {{ wxLua_wxRichTextFormattingDialog_SetStyleDefinition, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_SetStyleDefinition }}; -// virtual bool SetStyleDefinition(const wxRichTextStyleDefinition& styleDef, wxRichTextStyleSheet* sheet, bool update = true); -static int LUACALL wxLua_wxRichTextFormattingDialog_SetStyleDefinition(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool update = true - bool update = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleSheet); - // const wxRichTextStyleDefinition styleDef - const wxRichTextStyleDefinition * styleDef = (const wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call SetStyleDefinition - bool returns = (self->SetStyleDefinition(*styleDef, sheet, update)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextFormattingDialog_ShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_ShowToolTips[1] = {{ wxLua_wxRichTextFormattingDialog_ShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool ShowToolTips(); -static int LUACALL wxLua_wxRichTextFormattingDialog_ShowToolTips(lua_State *L) -{ - // call ShowToolTips - bool returns = (wxRichTextFormattingDialog::ShowToolTips()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_TransferDataFromWindow[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_TransferDataFromWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_TransferDataFromWindow[1] = {{ wxLua_wxRichTextFormattingDialog_TransferDataFromWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_TransferDataFromWindow }}; -// virtual bool TransferDataFromWindow(); -static int LUACALL wxLua_wxRichTextFormattingDialog_TransferDataFromWindow(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call TransferDataFromWindow - bool returns = (self->TransferDataFromWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_TransferDataToWindow[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_TransferDataToWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_TransferDataToWindow[1] = {{ wxLua_wxRichTextFormattingDialog_TransferDataToWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_TransferDataToWindow }}; -// virtual bool TransferDataToWindow(); -static int LUACALL wxLua_wxRichTextFormattingDialog_TransferDataToWindow(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call TransferDataToWindow - bool returns = (self->TransferDataToWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_UpdateDisplay[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_UpdateDisplay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_UpdateDisplay[1] = {{ wxLua_wxRichTextFormattingDialog_UpdateDisplay, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_UpdateDisplay }}; -// virtual bool UpdateDisplay(); -static int LUACALL wxLua_wxRichTextFormattingDialog_UpdateDisplay(lua_State *L) -{ - // get this - wxRichTextFormattingDialog * self = (wxRichTextFormattingDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextFormattingDialog); - // call UpdateDisplay - bool returns = (self->UpdateDisplay()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_delete[] = { &wxluatype_wxRichTextFormattingDialog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_delete }}; - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_wxWindow, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextFormattingDialog_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor1[1] = {{ wxLua_wxRichTextFormattingDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_constructor1 }}; -// long style = wxDEFAULT_DIALOG_STYLE); -static int LUACALL wxLua_wxRichTextFormattingDialog_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxDEFAULT_DIALOG_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_DIALOG_STYLE); - // const wxSize sz = wxDefaultSize - const wxSize * sz = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 4 ? (wxWindowID)wxlua_getnumbertype(L, 4) : wxID_ANY); - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // long flags - long flags = (long)wxlua_getnumbertype(L, 1); - // call constructor - wxRichTextFormattingDialog* returns = new wxRichTextFormattingDialog(flags, parent, title, id, *pos, *sz, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFormattingDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFormattingDialog); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxRichTextFormattingDialog_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor[1] = {{ wxLua_wxRichTextFormattingDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextFormattingDialog(); -static int LUACALL wxLua_wxRichTextFormattingDialog_constructor(lua_State *L) -{ - // call constructor - wxRichTextFormattingDialog* returns = new wxRichTextFormattingDialog(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextFormattingDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextFormattingDialog); - - return 1; -} - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFormattingDialog_ApplyStyle1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ApplyStyle1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFormattingDialog_ApplyStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_ApplyStyle }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFormattingDialog_GetAttributes1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetAttributes1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextFormattingDialog_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_GetAttributes }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextFormattingDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxRichTextFormattingDialog_constructor1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextFormattingDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxRichTextFormattingDialog_delete_function(void** p) -{ - wxRichTextFormattingDialog* o = (wxRichTextFormattingDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextFormattingDialog_methods[] = { - { "AddPageId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_AddPageId, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "ApplyStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle_overload, s_wxluafunc_wxLua_wxRichTextFormattingDialog_ApplyStyle_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "ConvertFromString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_ConvertFromString, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxClassInfo) - { "FindPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_FindPage, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxClassInfo) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "GetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes_overload, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetAttributes_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "GetDialog", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDialog, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetDialogAttributes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDialogAttributes, 1, NULL }, - { "GetDialogStyleDefinition", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDialogStyleDefinition, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "GetDimensionValue", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetDimensionValue, 1, NULL }, -#endif // ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "GetFormattingDialogFactory", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetFormattingDialogFactory, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetObject, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetOptions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetOptions, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetStyle, 1, NULL }, - { "GetStyleDefinition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetStyleDefinition, 1, NULL }, - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_GetStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "HasOption", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_HasOption, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_Init, 1, NULL }, - { "OnHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_OnHelp, 1, NULL }, - { "OnUpdateHelp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_OnUpdateHelp, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetAttributes, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "SetDimensionValue", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetDimensionValue, 1, NULL }, -#endif // ((((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt)) && (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "SetFormattingDialogFactory", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetFormattingDialogFactory, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetObject, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetOptions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetOptions, 1, NULL }, - { "SetShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetShowToolTips, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetStyle, 1, NULL }, - { "SetStyleDefinition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_SetStyleDefinition, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "ShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextFormattingDialog_ShowToolTips, 1, NULL }, - { "TransferDataFromWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_TransferDataFromWindow, 1, NULL }, - { "TransferDataToWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_TransferDataToWindow, 1, NULL }, - { "UpdateDisplay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextFormattingDialog_UpdateDisplay, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextFormattingDialog_delete, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "wxRichTextFormattingDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor_overload, s_wxluafunc_wxLua_wxRichTextFormattingDialog_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextFormattingDialog_methodCount = sizeof(wxRichTextFormattingDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxRichTextFormattingDialog_enums[] = { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Option_AllowPixelFontSize", wxRichTextFormattingDialog::Option_AllowPixelFontSize }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { NULL, 0, }, -}; -int wxRichTextFormattingDialog_enumCount = sizeof(wxRichTextFormattingDialog_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// --------------------------------------------------------------------------- -// Bind class wxRichTextHTMLHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextHTMLHandler' -int wxluatype_wxRichTextHTMLHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_CanHandle[] = { &wxluatype_wxRichTextHTMLHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_CanHandle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_CanHandle[1] = {{ wxLua_wxRichTextHTMLHandler_CanHandle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_CanHandle }}; -// virtual bool CanHandle(const wxString& filename) const; -static int LUACALL wxLua_wxRichTextHTMLHandler_CanHandle(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call CanHandle - bool returns = (self->CanHandle(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_CanLoad[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_CanLoad(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_CanLoad[1] = {{ wxLua_wxRichTextHTMLHandler_CanLoad, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_CanLoad }}; -// virtual bool CanLoad() const; -static int LUACALL wxLua_wxRichTextHTMLHandler_CanLoad(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call CanLoad - bool returns = (self->CanLoad()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_CanSave[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_CanSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_CanSave[1] = {{ wxLua_wxRichTextHTMLHandler_CanSave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_CanSave }}; -// virtual bool CanSave() const; -static int LUACALL wxLua_wxRichTextHTMLHandler_CanSave(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call CanSave - bool returns = (self->CanSave()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations[1] = {{ wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations }}; -// void ClearTemporaryImageLocations(); -static int LUACALL wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call ClearTemporaryImageLocations - self->ClearTemporaryImageLocations(); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1[] = { &wxluatype_TNUMBER, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1[1] = {{ wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1 }}; -// static bool DeleteTemporaryImages(int flags, const wxArrayString& imageLocations); -static int LUACALL wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1(lua_State *L) -{ - // const wxArrayString imageLocations - wxLuaSmartwxArrayString imageLocations = wxlua_getwxArrayString(L, 2); - // int flags - int flags = (int)wxlua_getnumbertype(L, 1); - // call DeleteTemporaryImages - bool returns = (wxRichTextHTMLHandler::DeleteTemporaryImages(flags, imageLocations)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages[1] = {{ wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages }}; -// bool DeleteTemporaryImages(); -static int LUACALL wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call DeleteTemporaryImages - bool returns = (self->DeleteTemporaryImages()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_GetFontSizeMapping[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_GetFontSizeMapping(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_GetFontSizeMapping[1] = {{ wxLua_wxRichTextHTMLHandler_GetFontSizeMapping, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_GetFontSizeMapping }}; -// wxArrayInt GetFontSizeMapping() const; -static int LUACALL wxLua_wxRichTextHTMLHandler_GetFontSizeMapping(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call GetFontSizeMapping - // allocate a new object using the copy constructor - wxArrayInt* returns = new wxArrayInt(self->GetFontSizeMapping()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxArrayInt); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayInt); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_GetTempDir[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_GetTempDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_GetTempDir[1] = {{ wxLua_wxRichTextHTMLHandler_GetTempDir, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_GetTempDir }}; -// const wxString& GetTempDir() const; -static int LUACALL wxLua_wxRichTextHTMLHandler_GetTempDir(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call GetTempDir - wxString returns = (self->GetTempDir()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations[1] = {{ wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations }}; -// const wxArrayString& GetTemporaryImageLocations() const; -static int LUACALL wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations(lua_State *L) -{ - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call GetTemporaryImageLocations - const wxArrayString* returns = (const wxArrayString*)&self->GetTemporaryImageLocations(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxArrayString); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetFileCounter[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_SetFileCounter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetFileCounter[1] = {{ wxLua_wxRichTextHTMLHandler_SetFileCounter, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetFileCounter }}; -// static void SetFileCounter(int counter); -static int LUACALL wxLua_wxRichTextHTMLHandler_SetFileCounter(lua_State *L) -{ - // int counter - int counter = (int)wxlua_getnumbertype(L, 1); - // call SetFileCounter - wxRichTextHTMLHandler::SetFileCounter(counter); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetFontSizeMapping[] = { &wxluatype_wxRichTextHTMLHandler, &wxluatype_wxArrayInt, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_SetFontSizeMapping(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetFontSizeMapping[1] = {{ wxLua_wxRichTextHTMLHandler_SetFontSizeMapping, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetFontSizeMapping }}; -// void SetFontSizeMapping(const wxArrayInt& fontSizeMapping); -static int LUACALL wxLua_wxRichTextHTMLHandler_SetFontSizeMapping(lua_State *L) -{ - // const wxArrayInt fontSizeMapping - wxLuaSmartwxArrayInt fontSizeMapping = wxlua_getwxArrayInt(L, 2); - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call SetFontSizeMapping - self->SetFontSizeMapping(fontSizeMapping); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetTempDir[] = { &wxluatype_wxRichTextHTMLHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_SetTempDir(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetTempDir[1] = {{ wxLua_wxRichTextHTMLHandler_SetTempDir, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetTempDir }}; -// void SetTempDir(const wxString& tempDir); -static int LUACALL wxLua_wxRichTextHTMLHandler_SetTempDir(lua_State *L) -{ - // const wxString tempDir - const wxString tempDir = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call SetTempDir - self->SetTempDir(tempDir); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations[] = { &wxluatype_wxRichTextHTMLHandler, &wxluatype_wxArrayString, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations[1] = {{ wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations }}; -// void SetTemporaryImageLocations(const wxArrayString& locations); -static int LUACALL wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations(lua_State *L) -{ - // const wxArrayString locations - wxLuaSmartwxArrayString locations = wxlua_getwxArrayString(L, 2); - // get this - wxRichTextHTMLHandler * self = (wxRichTextHTMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHTMLHandler); - // call SetTemporaryImageLocations - self->SetTemporaryImageLocations(locations); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_delete[] = { &wxluatype_wxRichTextHTMLHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextHTMLHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_constructor[1] = {{ wxLua_wxRichTextHTMLHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_constructor }}; -// wxRichTextHTMLHandler(const wxString& name, const wxString& ext, int type = wxRICHTEXT_TYPE_HTML); -static int LUACALL wxLua_wxRichTextHTMLHandler_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int type = wxRICHTEXT_TYPE_HTML - int type = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRICHTEXT_TYPE_HTML); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextHTMLHandler* returns = new wxRichTextHTMLHandler(name, ext, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextHTMLHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextHTMLHandler); - - return 1; -} - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - { wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - { wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages }, -}; -static int s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxRichTextHTMLHandler_delete_function(void** p) -{ - wxRichTextHTMLHandler* o = (wxRichTextHTMLHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextHTMLHandler_methods[] = { - { "CanHandle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_CanHandle, 1, NULL }, - { "CanLoad", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_CanLoad, 1, NULL }, - { "CanSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_CanSave, 1, NULL }, - { "ClearTemporaryImageLocations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_ClearTemporaryImageLocations, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "DeleteTemporaryImages", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages_overload, s_wxluafunc_wxLua_wxRichTextHTMLHandler_DeleteTemporaryImages_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - { "GetFontSizeMapping", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_GetFontSizeMapping, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - - { "GetTempDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_GetTempDir, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - { "GetTemporaryImageLocations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_GetTemporaryImageLocations, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - - { "SetFileCounter", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetFileCounter, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - { "SetFontSizeMapping", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetFontSizeMapping, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayInt) - - { "SetTempDir", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetTempDir, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - { "SetTemporaryImageLocations", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHTMLHandler_SetTemporaryImageLocations, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxArrayString) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextHTMLHandler_delete, 1, NULL }, - { "wxRichTextHTMLHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextHTMLHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextHTMLHandler_methodCount = sizeof(wxRichTextHTMLHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// --------------------------------------------------------------------------- -// Bind class wxRichTextObjectPropertiesDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextObjectPropertiesDialog' -int wxluatype_wxRichTextObjectPropertiesDialog = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_Create[] = { &wxluatype_wxRichTextObjectPropertiesDialog, &wxluatype_wxRichTextObject, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_Create[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_Create }}; -// bool Create( wxRichTextObject* obj, wxWindow* parent, wxWindowID id = wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG, const wxString& caption = "Object Properties", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE ); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE - long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 7 ? (const wxSize *)wxluaT_getuserdatatype(L, 7, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxluaT_getuserdatatype(L, 6, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString caption = "Object Properties" - const wxString caption = (argCount >= 5 ? wxlua_getwxStringtype(L, 5) : wxString(wxT("Object Properties"))); - // wxWindowID id = wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG - wxWindowID id = (argCount >= 4 ? (wxWindowID)wxlua_getnumbertype(L, 4) : wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextObjectPropertiesDialog * self = (wxRichTextObjectPropertiesDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPropertiesDialog); - // call Create - bool returns = (self->Create(obj, parent, id, caption, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_CreateControls[] = { &wxluatype_wxRichTextObjectPropertiesDialog, NULL }; -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_CreateControls[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_CreateControls, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_CreateControls }}; -// void CreateControls(); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_CreateControls(lua_State *L) -{ - // get this - wxRichTextObjectPropertiesDialog * self = (wxRichTextObjectPropertiesDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPropertiesDialog); - // call CreateControls - self->CreateControls(); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource[] = { &wxluatype_wxRichTextObjectPropertiesDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource }}; -// wxBitmap GetBitmapResource( const wxString& name ); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextObjectPropertiesDialog * self = (wxRichTextObjectPropertiesDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPropertiesDialog); - // call GetBitmapResource - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapResource(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxBitmap) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxIcon) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_GetIconResource[] = { &wxluatype_wxRichTextObjectPropertiesDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_GetIconResource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_GetIconResource[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_GetIconResource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_GetIconResource }}; -// wxIcon GetIconResource( const wxString& name ); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_GetIconResource(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextObjectPropertiesDialog * self = (wxRichTextObjectPropertiesDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPropertiesDialog); - // call GetIconResource - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIconResource(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxIcon) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_Init[] = { &wxluatype_wxRichTextObjectPropertiesDialog, NULL }; -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_Init[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_Init(lua_State *L) -{ - // get this - wxRichTextObjectPropertiesDialog * self = (wxRichTextObjectPropertiesDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObjectPropertiesDialog); - // call Init - self->Init(); - - return 0; -} - -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_ShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_ShowToolTips[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_ShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool ShowToolTips(); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_ShowToolTips(lua_State *L) -{ - // call ShowToolTips - bool returns = (wxRichTextObjectPropertiesDialog::ShowToolTips()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_delete[] = { &wxluatype_wxRichTextObjectPropertiesDialog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_delete }}; - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_constructor1[] = { &wxluatype_wxRichTextObject, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_constructor1(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor1[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_constructor1 }}; -// wxRichTextObjectPropertiesDialog( wxRichTextObject* obj, wxWindow* parent, wxWindowID id = wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG, const wxString& caption = "Object Properties", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE ); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString caption = "Object Properties" - const wxString caption = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxT("Object Properties"))); - // wxWindowID id = wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextObject); - // call constructor - wxRichTextObjectPropertiesDialog* returns = new wxRichTextObjectPropertiesDialog(obj, parent, id, caption, *pos, *size, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPropertiesDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPropertiesDialog); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_constructor(lua_State *L); -// // // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor[1] = {{ wxLua_wxRichTextObjectPropertiesDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextObjectPropertiesDialog(); -static int LUACALL wxLua_wxRichTextObjectPropertiesDialog_constructor(lua_State *L) -{ - // call constructor - wxRichTextObjectPropertiesDialog* returns = new wxRichTextObjectPropertiesDialog(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextObjectPropertiesDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObjectPropertiesDialog); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObjectPropertiesDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 7, s_wxluatypeArray_wxLua_wxRichTextObjectPropertiesDialog_constructor1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextObjectPropertiesDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -void wxLua_wxRichTextObjectPropertiesDialog_delete_function(void** p) -{ - wxRichTextObjectPropertiesDialog* o = (wxRichTextObjectPropertiesDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextObjectPropertiesDialog_methods[] = { -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_Create, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_CreateControls, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxBitmap) - { "GetBitmapResource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_GetBitmapResource, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxBitmap) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxIcon) - { "GetIconResource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_GetIconResource, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxIcon) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_Init, 1, NULL }, - { "ShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_ShowToolTips, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_delete, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "wxRichTextObjectPropertiesDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor_overload, s_wxluafunc_wxLua_wxRichTextObjectPropertiesDialog_constructor_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextObjectPropertiesDialog_methodCount = sizeof(wxRichTextObjectPropertiesDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxRichTextObjectPropertiesDialog_enums[] = { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "ID_RICHTEXTOBJECTPROPERTIESDIALOG", wxRichTextObjectPropertiesDialog::ID_RICHTEXTOBJECTPROPERTIESDIALOG }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { NULL, 0, }, -}; -int wxRichTextObjectPropertiesDialog_enumCount = sizeof(wxRichTextObjectPropertiesDialog_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxrichtext_print.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextHeaderFooterData -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextHeaderFooterData' -int wxluatype_wxRichTextHeaderFooterData = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_Clear[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_Clear[1] = {{ wxLua_wxRichTextHeaderFooterData_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextHeaderFooterData_Clear(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_Copy[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_Copy[1] = {{ wxLua_wxRichTextHeaderFooterData_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_Copy }}; -// void Copy(const wxRichTextHeaderFooterData& data); -static int LUACALL wxLua_wxRichTextHeaderFooterData_Copy(lua_State *L) -{ - // const wxRichTextHeaderFooterData data - const wxRichTextHeaderFooterData * data = (const wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextHeaderFooterData); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call Copy - self->Copy(*data); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetFont[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetFont[1] = {{ wxLua_wxRichTextHeaderFooterData_GetFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetFont }}; -// const wxFont& GetFont() const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetFont(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetFont - const wxFont* returns = (const wxFont*)&self->GetFont(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetFooterMargin[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetFooterMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetFooterMargin[1] = {{ wxLua_wxRichTextHeaderFooterData_GetFooterMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetFooterMargin }}; -// int GetFooterMargin() const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetFooterMargin(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetFooterMargin - int returns = (self->GetFooterMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetFooterText[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetFooterText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetFooterText[1] = {{ wxLua_wxRichTextHeaderFooterData_GetFooterText, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetFooterText }}; -// wxString GetFooterText(wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE) const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetFooterText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 3 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN - wxRichTextOddEvenPage page = (argCount >= 2 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 2) : wxRICHTEXT_PAGE_EVEN); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetFooterText - wxString returns = (self->GetFooterText(page, location)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetHeaderMargin[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetHeaderMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetHeaderMargin[1] = {{ wxLua_wxRichTextHeaderFooterData_GetHeaderMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetHeaderMargin }}; -// int GetHeaderMargin() const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetHeaderMargin(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetHeaderMargin - int returns = (self->GetHeaderMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetHeaderText[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetHeaderText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetHeaderText[1] = {{ wxLua_wxRichTextHeaderFooterData_GetHeaderText, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetHeaderText }}; -// wxString GetHeaderText(wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE) const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetHeaderText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 3 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN - wxRichTextOddEvenPage page = (argCount >= 2 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 2) : wxRICHTEXT_PAGE_EVEN); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetHeaderText - wxString returns = (self->GetHeaderText(page, location)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage[1] = {{ wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage }}; -// bool GetShowOnFirstPage() const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetShowOnFirstPage - bool returns = (self->GetShowOnFirstPage()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetText[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetText[1] = {{ wxLua_wxRichTextHeaderFooterData_GetText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetText }}; -// wxString GetText(int headerFooter, wxRichTextOddEvenPage page, wxRichTextPageLocation location) const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetText(lua_State *L) -{ - // wxRichTextPageLocation location - wxRichTextPageLocation location = (wxRichTextPageLocation)wxlua_getenumtype(L, 4); - // wxRichTextOddEvenPage page - wxRichTextOddEvenPage page = (wxRichTextOddEvenPage)wxlua_getenumtype(L, 3); - // int headerFooter - int headerFooter = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetText - wxString returns = (self->GetText(headerFooter, page, location)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetTextColour[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetTextColour[1] = {{ wxLua_wxRichTextHeaderFooterData_GetTextColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_GetTextColour }}; -// const wxColour& GetTextColour() const; -static int LUACALL wxLua_wxRichTextHeaderFooterData_GetTextColour(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call GetTextColour - const wxColour* returns = (const wxColour*)&self->GetTextColour(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_Init[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_Init[1] = {{ wxLua_wxRichTextHeaderFooterData_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextHeaderFooterData_Init(lua_State *L) -{ - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call Init - self->Init(); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetFont[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetFont[1] = {{ wxLua_wxRichTextHeaderFooterData_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetFont }}; -// void SetFont(const wxFont& font); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetFont - self->SetFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetFooterText[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetFooterText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetFooterText[1] = {{ wxLua_wxRichTextHeaderFooterData_SetFooterText, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetFooterText }}; -// void SetFooterText(const wxString& text, wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetFooterText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 4 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 4) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL - wxRichTextOddEvenPage page = (argCount >= 3 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_ALL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetFooterText - self->SetFooterText(text, page, location); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetHeaderText[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetHeaderText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetHeaderText[1] = {{ wxLua_wxRichTextHeaderFooterData_SetHeaderText, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetHeaderText }}; -// void SetHeaderText(const wxString& text, wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetHeaderText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 4 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 4) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL - wxRichTextOddEvenPage page = (argCount >= 3 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_ALL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetHeaderText - self->SetHeaderText(text, page, location); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetMargins[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetMargins[1] = {{ wxLua_wxRichTextHeaderFooterData_SetMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetMargins }}; -// void SetMargins(int headerMargin, int footerMargin); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetMargins(lua_State *L) -{ - // int footerMargin - int footerMargin = (int)wxlua_getnumbertype(L, 3); - // int headerMargin - int headerMargin = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetMargins - self->SetMargins(headerMargin, footerMargin); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage[1] = {{ wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage }}; -// void SetShowOnFirstPage(bool showOnFirstPage); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage(lua_State *L) -{ - // bool showOnFirstPage - bool showOnFirstPage = wxlua_getbooleantype(L, 2); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetShowOnFirstPage - self->SetShowOnFirstPage(showOnFirstPage); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetText[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetText[1] = {{ wxLua_wxRichTextHeaderFooterData_SetText, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetText }}; -// void SetText(const wxString& text, int headerFooter, wxRichTextOddEvenPage page, wxRichTextPageLocation location); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetText(lua_State *L) -{ - // wxRichTextPageLocation location - wxRichTextPageLocation location = (wxRichTextPageLocation)wxlua_getenumtype(L, 5); - // wxRichTextOddEvenPage page - wxRichTextOddEvenPage page = (wxRichTextOddEvenPage)wxlua_getenumtype(L, 4); - // int headerFooter - int headerFooter = (int)wxlua_getnumbertype(L, 3); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetText - self->SetText(text, headerFooter, page, location); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetTextColour[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetTextColour[1] = {{ wxLua_wxRichTextHeaderFooterData_SetTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_SetTextColour }}; -// void SetTextColour(const wxColour& col); -static int LUACALL wxLua_wxRichTextHeaderFooterData_SetTextColour(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call SetTextColour - self->SetTextColour(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_delete[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_op_set[] = { &wxluatype_wxRichTextHeaderFooterData, &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_op_set[1] = {{ wxLua_wxRichTextHeaderFooterData_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_op_set }}; -// void operator= (const wxRichTextHeaderFooterData& data); -static int LUACALL wxLua_wxRichTextHeaderFooterData_op_set(lua_State *L) -{ - // const wxRichTextHeaderFooterData data - const wxRichTextHeaderFooterData * data = (const wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextHeaderFooterData); - // get this - wxRichTextHeaderFooterData * self = (wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call op_set - (*self)=(*data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_constructor1[] = { &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextHeaderFooterData_constructor1(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor1[1] = {{ wxLua_wxRichTextHeaderFooterData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_constructor1 }}; -// wxRichTextHeaderFooterData(const wxRichTextHeaderFooterData& data); -static int LUACALL wxLua_wxRichTextHeaderFooterData_constructor1(lua_State *L) -{ - // const wxRichTextHeaderFooterData data - const wxRichTextHeaderFooterData * data = (const wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextHeaderFooterData); - // call constructor - wxRichTextHeaderFooterData* returns = new wxRichTextHeaderFooterData(*data); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextHeaderFooterData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextHeaderFooterData); - - return 1; -} - -static int LUACALL wxLua_wxRichTextHeaderFooterData_constructor(lua_State *L); -// // // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor[1] = {{ wxLua_wxRichTextHeaderFooterData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextHeaderFooterData(); -static int LUACALL wxLua_wxRichTextHeaderFooterData_constructor(lua_State *L) -{ - // call constructor - wxRichTextHeaderFooterData* returns = new wxRichTextHeaderFooterData(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextHeaderFooterData); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextHeaderFooterData); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor_overload[] = -{ - { wxLua_wxRichTextHeaderFooterData_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextHeaderFooterData_constructor1 }, - { wxLua_wxRichTextHeaderFooterData_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextHeaderFooterData_delete_function(void** p) -{ - wxRichTextHeaderFooterData* o = (wxRichTextHeaderFooterData*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextHeaderFooterData_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_Clear, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_Copy, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFooterMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetFooterMargin, 1, NULL }, - { "GetFooterText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetFooterText, 1, NULL }, - { "GetHeaderMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetHeaderMargin, 1, NULL }, - { "GetHeaderText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetHeaderText, 1, NULL }, - { "GetShowOnFirstPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetShowOnFirstPage, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_GetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_Init, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetFooterText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetFooterText, 1, NULL }, - { "SetHeaderText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetHeaderText, 1, NULL }, - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetMargins, 1, NULL }, - { "SetShowOnFirstPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetShowOnFirstPage, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetText, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_SetTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_delete, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextHeaderFooterData", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor_overload, s_wxluafunc_wxLua_wxRichTextHeaderFooterData_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextHeaderFooterData_methodCount = sizeof(wxRichTextHeaderFooterData_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextPrintout -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextPrintout' -int wxluatype_wxRichTextPrintout = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_CalculateScaling[] = { &wxluatype_wxRichTextPrintout, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_CalculateScaling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_CalculateScaling[1] = {{ wxLua_wxRichTextPrintout_CalculateScaling, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextPrintout_CalculateScaling }}; -// void CalculateScaling(wxDC* dc, wxRect& textRect, wxRect& headerRect, wxRect& footerRect); -static int LUACALL wxLua_wxRichTextPrintout_CalculateScaling(lua_State *L) -{ - // wxRect footerRect - wxRect * footerRect = (wxRect *)wxluaT_getuserdatatype(L, 5, wxluatype_wxRect); - // wxRect headerRect - wxRect * headerRect = (wxRect *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRect); - // wxRect textRect - wxRect * textRect = (wxRect *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRect); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call CalculateScaling - self->CalculateScaling(dc, *textRect, *headerRect, *footerRect); - - return 0; -} - -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_GetHeaderFooterData[] = { &wxluatype_wxRichTextPrintout, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_GetHeaderFooterData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_GetHeaderFooterData[1] = {{ wxLua_wxRichTextPrintout_GetHeaderFooterData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrintout_GetHeaderFooterData }}; -// const wxRichTextHeaderFooterData& GetHeaderFooterData() const; -static int LUACALL wxLua_wxRichTextPrintout_GetHeaderFooterData(lua_State *L) -{ - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call GetHeaderFooterData - const wxRichTextHeaderFooterData* returns = (const wxRichTextHeaderFooterData*)&self->GetHeaderFooterData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextHeaderFooterData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_GetPageInfo[] = { &wxluatype_wxRichTextPrintout, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_GetPageInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_GetPageInfo[1] = {{ wxLua_wxRichTextPrintout_GetPageInfo, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxRichTextPrintout_GetPageInfo }}; -// virtual void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo); -static int LUACALL wxLua_wxRichTextPrintout_GetPageInfo(lua_State *L) -{ - // int selPageTo - int * selPageTo = (int *)wxlua_touserdata(L, 5); - // int selPageFrom - int * selPageFrom = (int *)wxlua_touserdata(L, 4); - // int maxPage - int * maxPage = (int *)wxlua_touserdata(L, 3); - // int minPage - int * minPage = (int *)wxlua_touserdata(L, 2); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call GetPageInfo - self->GetPageInfo(minPage, maxPage, selPageFrom, selPageTo); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_GetRichTextBuffer[] = { &wxluatype_wxRichTextPrintout, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_GetRichTextBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_GetRichTextBuffer[1] = {{ wxLua_wxRichTextPrintout_GetRichTextBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrintout_GetRichTextBuffer }}; -// wxRichTextBuffer* GetRichTextBuffer() const; -static int LUACALL wxLua_wxRichTextPrintout_GetRichTextBuffer(lua_State *L) -{ - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call GetRichTextBuffer - wxRichTextBuffer* returns = (wxRichTextBuffer*)self->GetRichTextBuffer(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_HasPage[] = { &wxluatype_wxRichTextPrintout, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_HasPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_HasPage[1] = {{ wxLua_wxRichTextPrintout_HasPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrintout_HasPage }}; -// virtual bool HasPage(int page); -static int LUACALL wxLua_wxRichTextPrintout_HasPage(lua_State *L) -{ - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call HasPage - bool returns = (self->HasPage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_OnBeginDocument[] = { &wxluatype_wxRichTextPrintout, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_OnBeginDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_OnBeginDocument[1] = {{ wxLua_wxRichTextPrintout_OnBeginDocument, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextPrintout_OnBeginDocument }}; -// virtual bool OnBeginDocument(int startPage, int endPage); -static int LUACALL wxLua_wxRichTextPrintout_OnBeginDocument(lua_State *L) -{ - // int endPage - int endPage = (int)wxlua_getnumbertype(L, 3); - // int startPage - int startPage = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call OnBeginDocument - bool returns = (self->OnBeginDocument(startPage, endPage)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_OnPreparePrinting[] = { &wxluatype_wxRichTextPrintout, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_OnPreparePrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_OnPreparePrinting[1] = {{ wxLua_wxRichTextPrintout_OnPreparePrinting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrintout_OnPreparePrinting }}; -// virtual void OnPreparePrinting(); -static int LUACALL wxLua_wxRichTextPrintout_OnPreparePrinting(lua_State *L) -{ - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call OnPreparePrinting - self->OnPreparePrinting(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_OnPrintPage[] = { &wxluatype_wxRichTextPrintout, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_OnPrintPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_OnPrintPage[1] = {{ wxLua_wxRichTextPrintout_OnPrintPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrintout_OnPrintPage }}; -// virtual bool OnPrintPage(int page); -static int LUACALL wxLua_wxRichTextPrintout_OnPrintPage(lua_State *L) -{ - // int page - int page = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call OnPrintPage - bool returns = (self->OnPrintPage(page)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_SetHeaderFooterData[] = { &wxluatype_wxRichTextPrintout, &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_SetHeaderFooterData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_SetHeaderFooterData[1] = {{ wxLua_wxRichTextPrintout_SetHeaderFooterData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrintout_SetHeaderFooterData }}; -// void SetHeaderFooterData(const wxRichTextHeaderFooterData& data); -static int LUACALL wxLua_wxRichTextPrintout_SetHeaderFooterData(lua_State *L) -{ - // const wxRichTextHeaderFooterData data - const wxRichTextHeaderFooterData * data = (const wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextHeaderFooterData); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call SetHeaderFooterData - self->SetHeaderFooterData(*data); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_SetMargins[] = { &wxluatype_wxRichTextPrintout, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_SetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_SetMargins[1] = {{ wxLua_wxRichTextPrintout_SetMargins, WXLUAMETHOD_METHOD, 1, 5, s_wxluatypeArray_wxLua_wxRichTextPrintout_SetMargins }}; -// void SetMargins(int top = 254, int bottom = 254, int left = 254, int right = 254); -static int LUACALL wxLua_wxRichTextPrintout_SetMargins(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int right = 254 - int right = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 254); - // int left = 254 - int left = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : 254); - // int bottom = 254 - int bottom = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 254); - // int top = 254 - int top = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 254); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call SetMargins - self->SetMargins(top, bottom, left, right); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_SetRichTextBuffer[] = { &wxluatype_wxRichTextPrintout, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_SetRichTextBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_SetRichTextBuffer[1] = {{ wxLua_wxRichTextPrintout_SetRichTextBuffer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrintout_SetRichTextBuffer }}; -// void SetRichTextBuffer(wxRichTextBuffer* buffer); -static int LUACALL wxLua_wxRichTextPrintout_SetRichTextBuffer(lua_State *L) -{ - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextPrintout * self = (wxRichTextPrintout *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrintout); - // call SetRichTextBuffer - self->SetRichTextBuffer(buffer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_delete[] = { &wxluatype_wxRichTextPrintout, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrintout_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrintout_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextPrintout_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrintout_constructor[1] = {{ wxLua_wxRichTextPrintout_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrintout_constructor }}; -// wxRichTextPrintout(const wxString& title); -static int LUACALL wxLua_wxRichTextPrintout_constructor(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextPrintout* returns = new wxRichTextPrintout(title); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextPrintout); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextPrintout); - - return 1; -} - - - - -void wxLua_wxRichTextPrintout_delete_function(void** p) -{ - wxRichTextPrintout* o = (wxRichTextPrintout*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextPrintout_methods[] = { -#if ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "CalculateScaling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_CalculateScaling, 1, NULL }, -#endif // ((wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetHeaderFooterData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_GetHeaderFooterData, 1, NULL }, - { "GetPageInfo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_GetPageInfo, 1, NULL }, - { "GetRichTextBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_GetRichTextBuffer, 1, NULL }, - { "HasPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_HasPage, 1, NULL }, - { "OnBeginDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_OnBeginDocument, 1, NULL }, - { "OnPreparePrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_OnPreparePrinting, 1, NULL }, - { "OnPrintPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_OnPrintPage, 1, NULL }, - { "SetHeaderFooterData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_SetHeaderFooterData, 1, NULL }, - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_SetMargins, 1, NULL }, - { "SetRichTextBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrintout_SetRichTextBuffer, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextPrintout_delete, 1, NULL }, - { "wxRichTextPrintout", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextPrintout_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextPrintout_methodCount = sizeof(wxRichTextPrintout_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextPrinting -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextPrinting' -int wxluatype_wxRichTextPrinting = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetFooterText[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetFooterText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetFooterText[1] = {{ wxLua_wxRichTextPrinting_GetFooterText, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetFooterText }}; -// wxString GetFooterText(wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE) const; -static int LUACALL wxLua_wxRichTextPrinting_GetFooterText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 3 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN - wxRichTextOddEvenPage page = (argCount >= 2 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 2) : wxRICHTEXT_PAGE_EVEN); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetFooterText - wxString returns = (self->GetFooterText(page, location)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetHeaderFooterData[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetHeaderFooterData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetHeaderFooterData[1] = {{ wxLua_wxRichTextPrinting_GetHeaderFooterData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetHeaderFooterData }}; -// const wxRichTextHeaderFooterData& GetHeaderFooterData() const; -static int LUACALL wxLua_wxRichTextPrinting_GetHeaderFooterData(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetHeaderFooterData - const wxRichTextHeaderFooterData* returns = (const wxRichTextHeaderFooterData*)&self->GetHeaderFooterData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextHeaderFooterData); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetHeaderText[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetHeaderText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetHeaderText[1] = {{ wxLua_wxRichTextPrinting_GetHeaderText, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetHeaderText }}; -// wxString GetHeaderText(wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE) const; -static int LUACALL wxLua_wxRichTextPrinting_GetHeaderText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 3 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_EVEN - wxRichTextOddEvenPage page = (argCount >= 2 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 2) : wxRICHTEXT_PAGE_EVEN); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetHeaderText - wxString returns = (self->GetHeaderText(page, location)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetPageSetupData[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetPageSetupData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetPageSetupData[1] = {{ wxLua_wxRichTextPrinting_GetPageSetupData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetPageSetupData }}; -// wxPageSetupDialogData *GetPageSetupData(); -static int LUACALL wxLua_wxRichTextPrinting_GetPageSetupData(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetPageSetupData - wxPageSetupDialogData* returns = (wxPageSetupDialogData*)self->GetPageSetupData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPageSetupDialogData); - - return 1; -} - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetParentWindow[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetParentWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetParentWindow[1] = {{ wxLua_wxRichTextPrinting_GetParentWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetParentWindow }}; -// wxWindow* GetParentWindow() const; -static int LUACALL wxLua_wxRichTextPrinting_GetParentWindow(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetParentWindow - wxWindow* returns = (wxWindow*)self->GetParentWindow(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWindow); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetPreviewRect[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetPreviewRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetPreviewRect[1] = {{ wxLua_wxRichTextPrinting_GetPreviewRect, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetPreviewRect }}; -// const wxRect& GetPreviewRect() const ; -static int LUACALL wxLua_wxRichTextPrinting_GetPreviewRect(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetPreviewRect - const wxRect* returns = (const wxRect*)&self->GetPreviewRect(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRect); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetPrintData[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetPrintData[1] = {{ wxLua_wxRichTextPrinting_GetPrintData, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetPrintData }}; -// wxPrintData *GetPrintData(); -static int LUACALL wxLua_wxRichTextPrinting_GetPrintData(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetPrintData - wxPrintData* returns = (wxPrintData*)self->GetPrintData(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPrintData); - - return 1; -} - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetRichTextBufferPreview[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetRichTextBufferPreview(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetRichTextBufferPreview[1] = {{ wxLua_wxRichTextPrinting_GetRichTextBufferPreview, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetRichTextBufferPreview }}; -// wxRichTextBuffer* GetRichTextBufferPreview() const; -static int LUACALL wxLua_wxRichTextPrinting_GetRichTextBufferPreview(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetRichTextBufferPreview - wxRichTextBuffer* returns = (wxRichTextBuffer*)self->GetRichTextBufferPreview(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetRichTextBufferPrinting[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetRichTextBufferPrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetRichTextBufferPrinting[1] = {{ wxLua_wxRichTextPrinting_GetRichTextBufferPrinting, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetRichTextBufferPrinting }}; -// wxRichTextBuffer* GetRichTextBufferPrinting() const; -static int LUACALL wxLua_wxRichTextPrinting_GetRichTextBufferPrinting(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetRichTextBufferPrinting - wxRichTextBuffer* returns = (wxRichTextBuffer*)self->GetRichTextBufferPrinting(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBuffer); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_GetTitle[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_GetTitle[1] = {{ wxLua_wxRichTextPrinting_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_GetTitle }}; -// const wxString& GetTitle() const; -static int LUACALL wxLua_wxRichTextPrinting_GetTitle(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_PageSetup[] = { &wxluatype_wxRichTextPrinting, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_PageSetup(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_PageSetup[1] = {{ wxLua_wxRichTextPrinting_PageSetup, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_PageSetup }}; -// void PageSetup(); -static int LUACALL wxLua_wxRichTextPrinting_PageSetup(lua_State *L) -{ - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call PageSetup - self->PageSetup(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_PreviewBuffer[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_PreviewBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_PreviewBuffer[1] = {{ wxLua_wxRichTextPrinting_PreviewBuffer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_PreviewBuffer }}; -// bool PreviewBuffer(const wxRichTextBuffer& buffer); -static int LUACALL wxLua_wxRichTextPrinting_PreviewBuffer(lua_State *L) -{ - // const wxRichTextBuffer buffer - const wxRichTextBuffer * buffer = (const wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call PreviewBuffer - bool returns = (self->PreviewBuffer(*buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_PreviewFile[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_PreviewFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_PreviewFile[1] = {{ wxLua_wxRichTextPrinting_PreviewFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_PreviewFile }}; -// bool PreviewFile(const wxString& richTextFile); -static int LUACALL wxLua_wxRichTextPrinting_PreviewFile(lua_State *L) -{ - // const wxString richTextFile - const wxString richTextFile = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call PreviewFile - bool returns = (self->PreviewFile(richTextFile)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_PrintBuffer[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxRichTextBuffer, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_PrintBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_PrintBuffer[1] = {{ wxLua_wxRichTextPrinting_PrintBuffer, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextPrinting_PrintBuffer }}; -// bool PrintBuffer(const wxRichTextBuffer& buffer, bool showPrintDialog = true); -static int LUACALL wxLua_wxRichTextPrinting_PrintBuffer(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool showPrintDialog = true - bool showPrintDialog = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxRichTextBuffer buffer - const wxRichTextBuffer * buffer = (const wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call PrintBuffer - bool returns = (self->PrintBuffer(*buffer, showPrintDialog)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_PrintFile[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_PrintFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_PrintFile[1] = {{ wxLua_wxRichTextPrinting_PrintFile, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextPrinting_PrintFile }}; -// bool PrintFile(const wxString& richTextFile, bool showPrintDialog = true); -static int LUACALL wxLua_wxRichTextPrinting_PrintFile(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool showPrintDialog = true - bool showPrintDialog = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString richTextFile - const wxString richTextFile = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call PrintFile - bool returns = (self->PrintFile(richTextFile, showPrintDialog)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetFooterText[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetFooterText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetFooterText[1] = {{ wxLua_wxRichTextPrinting_SetFooterText, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetFooterText }}; -// void SetFooterText(const wxString& text, wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE); -static int LUACALL wxLua_wxRichTextPrinting_SetFooterText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 4 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 4) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL - wxRichTextOddEvenPage page = (argCount >= 3 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_ALL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetFooterText - self->SetFooterText(text, page, location); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderFooterData[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxRichTextHeaderFooterData, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderFooterData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderFooterData[1] = {{ wxLua_wxRichTextPrinting_SetHeaderFooterData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderFooterData }}; -// void SetHeaderFooterData(const wxRichTextHeaderFooterData& data); -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderFooterData(lua_State *L) -{ - // const wxRichTextHeaderFooterData data - const wxRichTextHeaderFooterData * data = (const wxRichTextHeaderFooterData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextHeaderFooterData); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetHeaderFooterData - self->SetHeaderFooterData(*data); - - return 0; -} - - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderFooterFont[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderFooterFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderFooterFont[1] = {{ wxLua_wxRichTextPrinting_SetHeaderFooterFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderFooterFont }}; -// void SetHeaderFooterFont(const wxFont& font); -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderFooterFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetHeaderFooterFont - self->SetHeaderFooterFont(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderFooterTextColour[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderFooterTextColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderFooterTextColour[1] = {{ wxLua_wxRichTextPrinting_SetHeaderFooterTextColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderFooterTextColour }}; -// void SetHeaderFooterTextColour(const wxColour& font); -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderFooterTextColour(lua_State *L) -{ - // const wxColour font - const wxColour * font = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetHeaderFooterTextColour - self->SetHeaderFooterTextColour(*font); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderText[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TSTRING, &wxluatype_TINTEGER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderText[1] = {{ wxLua_wxRichTextPrinting_SetHeaderText, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetHeaderText }}; -// void SetHeaderText(const wxString& text, wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL, wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE); -static int LUACALL wxLua_wxRichTextPrinting_SetHeaderText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextPageLocation location = wxRICHTEXT_PAGE_CENTRE - wxRichTextPageLocation location = (argCount >= 4 ? (wxRichTextPageLocation)wxlua_getenumtype(L, 4) : wxRICHTEXT_PAGE_CENTRE); - // wxRichTextOddEvenPage page = wxRICHTEXT_PAGE_ALL - wxRichTextOddEvenPage page = (argCount >= 3 ? (wxRichTextOddEvenPage)wxlua_getenumtype(L, 3) : wxRICHTEXT_PAGE_ALL); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetHeaderText - self->SetHeaderText(text, page, location); - - return 0; -} - - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetPageSetupData[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxPageSetupDialogData, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetPageSetupData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetPageSetupData[1] = {{ wxLua_wxRichTextPrinting_SetPageSetupData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetPageSetupData }}; -// void SetPageSetupData(const wxPageSetupDialogData& pageSetupData); -static int LUACALL wxLua_wxRichTextPrinting_SetPageSetupData(lua_State *L) -{ - // const wxPageSetupDialogData pageSetupData - const wxPageSetupDialogData * pageSetupData = (const wxPageSetupDialogData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPageSetupDialogData); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetPageSetupData - self->SetPageSetupData(*pageSetupData); - - return 0; -} - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetParentWindow[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetParentWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetParentWindow[1] = {{ wxLua_wxRichTextPrinting_SetParentWindow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetParentWindow }}; -// void SetParentWindow(wxWindow* parent); -static int LUACALL wxLua_wxRichTextPrinting_SetParentWindow(lua_State *L) -{ - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetParentWindow - self->SetParentWindow(parent); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetPreviewRect[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetPreviewRect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetPreviewRect[1] = {{ wxLua_wxRichTextPrinting_SetPreviewRect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetPreviewRect }}; -// void SetPreviewRect(const wxRect& rect); -static int LUACALL wxLua_wxRichTextPrinting_SetPreviewRect(lua_State *L) -{ - // const wxRect rect - const wxRect * rect = (const wxRect *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRect); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetPreviewRect - self->SetPreviewRect(*rect); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetPrintData[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxPrintData, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetPrintData(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetPrintData[1] = {{ wxLua_wxRichTextPrinting_SetPrintData, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetPrintData }}; -// void SetPrintData(const wxPrintData& printData); -static int LUACALL wxLua_wxRichTextPrinting_SetPrintData(lua_State *L) -{ - // const wxPrintData printData - const wxPrintData * printData = (const wxPrintData *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPrintData); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetPrintData - self->SetPrintData(*printData); - - return 0; -} - -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetRichTextBufferPreview[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetRichTextBufferPreview(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetRichTextBufferPreview[1] = {{ wxLua_wxRichTextPrinting_SetRichTextBufferPreview, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetRichTextBufferPreview }}; -// void SetRichTextBufferPreview(wxRichTextBuffer* buf); -static int LUACALL wxLua_wxRichTextPrinting_SetRichTextBufferPreview(lua_State *L) -{ - // wxRichTextBuffer buf - wxRichTextBuffer * buf = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetRichTextBufferPreview - self->SetRichTextBufferPreview(buf); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetRichTextBufferPrinting[] = { &wxluatype_wxRichTextPrinting, &wxluatype_wxRichTextBuffer, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetRichTextBufferPrinting(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetRichTextBufferPrinting[1] = {{ wxLua_wxRichTextPrinting_SetRichTextBufferPrinting, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetRichTextBufferPrinting }}; -// void SetRichTextBufferPrinting(wxRichTextBuffer* buf); -static int LUACALL wxLua_wxRichTextPrinting_SetRichTextBufferPrinting(lua_State *L) -{ - // wxRichTextBuffer buf - wxRichTextBuffer * buf = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetRichTextBufferPrinting - self->SetRichTextBufferPrinting(buf); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetShowOnFirstPage[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetShowOnFirstPage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetShowOnFirstPage[1] = {{ wxLua_wxRichTextPrinting_SetShowOnFirstPage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetShowOnFirstPage }}; -// void SetShowOnFirstPage(bool show); -static int LUACALL wxLua_wxRichTextPrinting_SetShowOnFirstPage(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetShowOnFirstPage - self->SetShowOnFirstPage(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_SetTitle[] = { &wxluatype_wxRichTextPrinting, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_SetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_SetTitle[1] = {{ wxLua_wxRichTextPrinting_SetTitle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_SetTitle }}; -// void SetTitle(const wxString& title); -static int LUACALL wxLua_wxRichTextPrinting_SetTitle(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextPrinting * self = (wxRichTextPrinting *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextPrinting); - // call SetTitle - self->SetTitle(title); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_delete[] = { &wxluatype_wxRichTextPrinting, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextPrinting_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextPrinting_constructor[] = { &wxluatype_TSTRING, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxRichTextPrinting_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextPrinting_constructor[1] = {{ wxLua_wxRichTextPrinting_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxRichTextPrinting_constructor }}; -// wxRichTextPrinting(const wxString& name, wxWindow *parentWindow = NULL); -static int LUACALL wxLua_wxRichTextPrinting_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parentWindow = NULL - wxWindow * parentWindow = (argCount >= 2 ? (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow) : NULL); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextPrinting* returns = new wxRichTextPrinting(name, parentWindow); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextPrinting); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextPrinting); - - return 1; -} - - - - -void wxLua_wxRichTextPrinting_delete_function(void** p) -{ - wxRichTextPrinting* o = (wxRichTextPrinting*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextPrinting_methods[] = { - { "GetFooterText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetFooterText, 1, NULL }, - { "GetHeaderFooterData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetHeaderFooterData, 1, NULL }, - { "GetHeaderText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetHeaderText, 1, NULL }, - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPageSetupData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetPageSetupData, 1, NULL }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetParentWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetParentWindow, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPreviewRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetPreviewRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetPrintData, 1, NULL }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRichTextBufferPreview", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetRichTextBufferPreview, 1, NULL }, - { "GetRichTextBufferPrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetRichTextBufferPrinting, 1, NULL }, - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_GetTitle, 1, NULL }, - { "PageSetup", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_PageSetup, 1, NULL }, - { "PreviewBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_PreviewBuffer, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - { "PreviewFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_PreviewFile, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - - { "PrintBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_PrintBuffer, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - { "PrintFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_PrintFile, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_FFILE && wxUSE_STREAMS) - - { "SetFooterText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetFooterText, 1, NULL }, - { "SetHeaderFooterData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderFooterData, 1, NULL }, - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetHeaderFooterFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderFooterFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetHeaderFooterTextColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderFooterTextColour, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetHeaderText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetHeaderText, 1, NULL }, - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetPageSetupData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetPageSetupData, 1, NULL }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetParentWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetParentWindow, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetPreviewRect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetPreviewRect, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetPrintData", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetPrintData, 1, NULL }, -#endif // (wxLUA_USE_wxPrint && wxUSE_PRINTING_ARCHITECTURE) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetRichTextBufferPreview", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetRichTextBufferPreview, 1, NULL }, - { "SetRichTextBufferPrinting", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetRichTextBufferPrinting, 1, NULL }, - { "SetShowOnFirstPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetShowOnFirstPage, 1, NULL }, - { "SetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextPrinting_SetTitle, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextPrinting_delete, 1, NULL }, - { "wxRichTextPrinting", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextPrinting_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextPrinting_methodCount = sizeof(wxRichTextPrinting_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxrichtext_style.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextStyleOrganiserDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStyleOrganiserDialog' -int wxluatype_wxRichTextStyleOrganiserDialog = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle }}; -// bool ApplyStyle(wxRichTextCtrl* ctrl = NULL); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextCtrl ctrl = NULL - wxRichTextCtrl * ctrl = (argCount >= 2 ? (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl) : NULL); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call ApplyStyle - bool returns = (self->ApplyStyle(ctrl)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_ClearPreview[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ClearPreview(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ClearPreview[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_ClearPreview, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_ClearPreview }}; -// void ClearPreview(); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ClearPreview(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call ClearPreview - self->ClearPreview(); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Create[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_TNUMBER, &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Create[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Create, WXLUAMETHOD_METHOD, 5, 10, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Create }}; -// bool Create( int flags, wxRichTextStyleSheet* sheet, wxRichTextCtrl* ctrl, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = "Style Organiser", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE - long style = (argCount >= 10 ? (long)wxlua_getnumbertype(L, 10) : SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString caption = "Style Organiser" - const wxString caption = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("Style Organiser"))); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 6 ? (wxWindowID)wxlua_getnumbertype(L, 6) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 5, wxluatype_wxWindow); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextCtrl); - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleSheet); - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call Create - bool returns = (self->Create(flags, sheet, ctrl, parent, id, caption, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_CreateControls[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_CreateControls[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_CreateControls, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_CreateControls }}; -// void CreateControls(); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_CreateControls(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call CreateControls - self->CreateControls(); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource }}; -// wxBitmap GetBitmapResource( const wxString& name ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetBitmapResource - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapResource(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetFlags[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetFlags[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetFlags(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetIconResource[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetIconResource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetIconResource[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetIconResource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetIconResource }}; -// wxIcon GetIconResource( const wxString& name ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetIconResource(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetIconResource - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIconResource(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering }}; -// bool GetRestartNumbering() const; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetRestartNumbering - bool returns = (self->GetRestartNumbering()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl }}; -// wxRichTextCtrl* GetRichTextCtrl() const; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetRichTextCtrl - wxRichTextCtrl* returns = (wxRichTextCtrl*)self->GetRichTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle }}; -// wxString GetSelectedStyle() const; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetSelectedStyle - wxString returns = (self->GetSelectedStyle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition }}; -// wxRichTextStyleDefinition* GetSelectedStyleDefinition() const; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetSelectedStyleDefinition - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->GetSelectedStyleDefinition(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet }}; -// wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle }}; -// wxButton* m_applyStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_applyStyle, wxluatype_wxButton); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer }}; -// wxBoxSizer* m_bottomButtonSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_bottomButtonSizer, wxluatype_wxBoxSizer); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer }}; -// wxBoxSizer* m_buttonSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_buttonSizer, wxluatype_wxBoxSizer); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent }}; -// wxBoxSizer* m_buttonSizerParent; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_buttonSizerParent, wxluatype_wxBoxSizer); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton }}; -// wxButton* m_cancelButton; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_cancelButton, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton }}; -// wxButton* m_closeButton; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_closeButton, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle }}; -// wxButton* m_deleteStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_deleteStyle, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle }}; -// wxButton* m_editStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_editStyle, wxluatype_wxButton); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer }}; -// wxBoxSizer* m_innerSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_innerSizer, wxluatype_wxBoxSizer); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox }}; -// wxButton* m_newBox; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_newBox, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter }}; -// wxButton* m_newCharacter; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_newCharacter, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList }}; -// wxButton* m_newList; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_newList, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph }}; -// wxButton* m_newParagraph; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_newParagraph, wxluatype_wxButton); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton }}; -// wxButton* m_okButton; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_okButton, wxluatype_wxButton); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl }}; -// wxRichTextCtrl* m_previewCtrl; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_previewCtrl, wxluatype_wxRichTextCtrl); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle }}; -// wxButton* m_renameStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_renameStyle, wxluatype_wxButton); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl }}; -// wxCheckBox* m_restartNumberingCtrl; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_restartNumberingCtrl, wxluatype_wxCheckBox); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer }}; -// wxStdDialogButtonSizer* m_stdButtonSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_stdButtonSizer, wxluatype_wxStdDialogButtonSizer); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox }}; -// wxRichTextStyleListCtrl* m_stylesListBox; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_stylesListBox, wxluatype_wxRichTextStyleListCtrl); - // return the number of values - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Init[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Init[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Init(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick }}; -// void OnApplyClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnApplyClick - self->OnApplyClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate }}; -// void OnApplyUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnApplyUpdate - self->OnApplyUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick }}; -// void OnDeleteClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnDeleteClick - self->OnDeleteClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate }}; -// void OnDeleteUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnDeleteUpdate - self->OnDeleteUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnEditClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnEditClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnEditClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnEditClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnEditClick }}; -// void OnEditClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnEditClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnEditClick - self->OnEditClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate }}; -// void OnEditUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnEditUpdate - self->OnEditUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick }}; -// void OnHelpClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnHelpClick - self->OnHelpClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnListSelection[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnListSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnListSelection[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnListSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnListSelection }}; -// void OnListSelection(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnListSelection(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnListSelection - self->OnListSelection(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick }}; -// void OnNewBoxClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewBoxClick - self->OnNewBoxClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate }}; -// void OnNewBoxUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewBoxUpdate - self->OnNewBoxUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick }}; -// void OnNewCharClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewCharClick - self->OnNewCharClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate }}; -// void OnNewCharUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewCharUpdate - self->OnNewCharUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick }}; -// void OnNewListClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewListClick - self->OnNewListClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate }}; -// void OnNewListUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewListUpdate - self->OnNewListUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick }}; -// void OnNewParaClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewParaClick - self->OnNewParaClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate }}; -// void OnNewParaUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnNewParaUpdate - self->OnNewParaUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick }}; -// void OnRenameClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnRenameClick - self->OnRenameClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate }}; -// void OnRenameUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call OnRenameUpdate - self->OnRenameUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetFlags[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetFlags[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering }}; -// void SetRestartNumbering(bool restartNumbering); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering(lua_State *L) -{ - // bool restartNumbering - bool restartNumbering = wxlua_getbooleantype(L, 2); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call SetRestartNumbering - self->SetRestartNumbering(restartNumbering); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl }}; -// void SetRichTextCtrl(wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call SetRichTextCtrl - self->SetRichTextCtrl(ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips }}; -// static void SetShowToolTips(bool show); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 1); - // call SetShowToolTips - wxRichTextStyleOrganiserDialog::SetShowToolTips(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet }}; -// void SetStyleSheet(wxRichTextStyleSheet* sheet); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call SetStyleSheet - self->SetStyleSheet(sheet); - - return 0; -} - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle }}; -// wxButton* m_applyStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_applyStyle = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxBoxSizer, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer }}; -// wxBoxSizer* m_bottomButtonSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer(lua_State *L) -{ - // get the data type value - wxBoxSizer* val = (wxBoxSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBoxSizer); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_bottomButtonSizer = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxBoxSizer, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer }}; -// wxBoxSizer* m_buttonSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer(lua_State *L) -{ - // get the data type value - wxBoxSizer* val = (wxBoxSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBoxSizer); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_buttonSizer = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxBoxSizer, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent }}; -// wxBoxSizer* m_buttonSizerParent; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent(lua_State *L) -{ - // get the data type value - wxBoxSizer* val = (wxBoxSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBoxSizer); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_buttonSizerParent = val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton }}; -// wxButton* m_cancelButton; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_cancelButton = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton }}; -// wxButton* m_closeButton; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_closeButton = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle }}; -// wxButton* m_deleteStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_deleteStyle = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle }}; -// wxButton* m_editStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_editStyle = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxBoxSizer, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer }}; -// wxBoxSizer* m_innerSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer(lua_State *L) -{ - // get the data type value - wxBoxSizer* val = (wxBoxSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxBoxSizer); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_innerSizer = val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox }}; -// wxButton* m_newBox; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_newBox = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter }}; -// wxButton* m_newCharacter; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_newCharacter = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList }}; -// wxButton* m_newList; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_newList = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph }}; -// wxButton* m_newParagraph; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_newParagraph = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton }}; -// wxButton* m_okButton; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_okButton = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl }}; -// wxRichTextCtrl* m_previewCtrl; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl(lua_State *L) -{ - // get the data type value - wxRichTextCtrl* val = (wxRichTextCtrl*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_previewCtrl = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxButton, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle }}; -// wxButton* m_renameStyle; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle(lua_State *L) -{ - // get the data type value - wxButton* val = (wxButton*)wxluaT_getuserdatatype(L, 2, wxluatype_wxButton); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_renameStyle = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxCheckBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl }}; -// wxCheckBox* m_restartNumberingCtrl; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl(lua_State *L) -{ - // get the data type value - wxCheckBox* val = (wxCheckBox*)wxluaT_getuserdatatype(L, 2, wxluatype_wxCheckBox); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_restartNumberingCtrl = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer }}; -// wxStdDialogButtonSizer* m_stdButtonSizer; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer(lua_State *L) -{ - // get the data type value - wxStdDialogButtonSizer* val = (wxStdDialogButtonSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxStdDialogButtonSizer); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_stdButtonSizer = val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox }}; -// wxRichTextStyleListCtrl* m_stylesListBox; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox(lua_State *L) -{ - // get the data type value - wxRichTextStyleListCtrl* val = (wxRichTextStyleListCtrl*)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleListCtrl); - // get this - wxRichTextStyleOrganiserDialog *self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - self->m_stylesListBox = val; - // return the number of values - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_ShowPreview[] = { &wxluatype_wxRichTextStyleOrganiserDialog, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ShowPreview(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ShowPreview[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_ShowPreview, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_ShowPreview }}; -// void ShowPreview(int sel = -1); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ShowPreview(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int sel = -1 - int sel = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : -1); - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call ShowPreview - self->ShowPreview(sel); - - return 0; -} - -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ShowToolTips[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_ShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool ShowToolTips(); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_ShowToolTips(lua_State *L) -{ - // call ShowToolTips - bool returns = (wxRichTextStyleOrganiserDialog::ShowToolTips()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow }}; -// virtual bool TransferDataFromWindow(); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call TransferDataFromWindow - bool returns = (self->TransferDataFromWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow }}; -// virtual bool TransferDataToWindow(); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow(lua_State *L) -{ - // get this - wxRichTextStyleOrganiserDialog * self = (wxRichTextStyleOrganiserDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleOrganiserDialog); - // call TransferDataToWindow - bool returns = (self->TransferDataToWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_delete[] = { &wxluatype_wxRichTextStyleOrganiserDialog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_delete }}; - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor1[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 9, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_constructor1 }}; -// wxRichTextStyleOrganiserDialog( int flags, wxRichTextStyleSheet* sheet, wxRichTextCtrl* ctrl, wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = "Style Organiser", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE - long style = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 8 ? (const wxSize *)wxluaT_getuserdatatype(L, 8, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString caption = "Style Organiser" - const wxString caption = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("Style Organiser"))); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 5 ? (wxWindowID)wxlua_getnumbertype(L, 5) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextCtrl); - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // int flags - int flags = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxRichTextStyleOrganiserDialog* returns = new wxRichTextStyleOrganiserDialog(flags, sheet, ctrl, parent, id, caption, *pos, *size, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleOrganiserDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleOrganiserDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor[1] = {{ wxLua_wxRichTextStyleOrganiserDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextStyleOrganiserDialog( ); -static int LUACALL wxLua_wxRichTextStyleOrganiserDialog_constructor(lua_State *L) -{ - // call constructor - wxRichTextStyleOrganiserDialog* returns = new wxRichTextStyleOrganiserDialog(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleOrganiserDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleOrganiserDialog); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleOrganiserDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 9, s_wxluatypeArray_wxLua_wxRichTextStyleOrganiserDialog_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleOrganiserDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextStyleOrganiserDialog_delete_function(void** p) -{ - wxRichTextStyleOrganiserDialog* o = (wxRichTextStyleOrganiserDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStyleOrganiserDialog_methods[] = { - { "ApplyStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ApplyStyle, 1, NULL }, - { "ClearPreview", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ClearPreview, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_CreateControls, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBitmapResource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetBitmapResource, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetFlags, 1, NULL }, - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetIconResource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetIconResource, 1, NULL }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetRestartNumbering", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetRestartNumbering, 1, NULL }, - { "GetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetRichTextCtrl, 1, NULL }, - { "GetSelectedStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyle, 1, NULL }, - { "GetSelectedStyleDefinition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetSelectedStyleDefinition, 1, NULL }, - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_GetStyleSheet, 1, NULL }, - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_applyStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_bottomButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer, 1, NULL }, - // %member { "Get_m_buttonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer, 1, NULL }, - // %member { "Get_m_buttonSizerParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_cancelButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton, 1, NULL }, - // %member { "Get_m_closeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton, 1, NULL }, - // %member { "Get_m_deleteStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle, 1, NULL }, - // %member { "Get_m_editStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_innerSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_newBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox, 1, NULL }, - // %member { "Get_m_newCharacter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter, 1, NULL }, - // %member { "Get_m_newList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList, 1, NULL }, - // %member { "Get_m_newParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph, 1, NULL }, - // %member { "Get_m_okButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_previewCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl, 1, NULL }, - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_renameStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_restartNumberingCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_stdButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_stylesListBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Init, 1, NULL }, - { "OnApplyClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnApplyClick, 1, NULL }, - { "OnApplyUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnApplyUpdate, 1, NULL }, - { "OnDeleteClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteClick, 1, NULL }, - { "OnDeleteUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnDeleteUpdate, 1, NULL }, - { "OnEditClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnEditClick, 1, NULL }, - { "OnEditUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnEditUpdate, 1, NULL }, - { "OnHelpClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnHelpClick, 1, NULL }, - { "OnListSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnListSelection, 1, NULL }, - { "OnNewBoxClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxClick, 1, NULL }, - { "OnNewBoxUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewBoxUpdate, 1, NULL }, - { "OnNewCharClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharClick, 1, NULL }, - { "OnNewCharUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewCharUpdate, 1, NULL }, - { "OnNewListClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewListClick, 1, NULL }, - { "OnNewListUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewListUpdate, 1, NULL }, - { "OnNewParaClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaClick, 1, NULL }, - { "OnNewParaUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnNewParaUpdate, 1, NULL }, - { "OnRenameClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnRenameClick, 1, NULL }, - { "OnRenameUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_OnRenameUpdate, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetFlags, 1, NULL }, - { "SetRestartNumbering", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetRestartNumbering, 1, NULL }, - { "SetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetRichTextCtrl, 1, NULL }, - { "SetShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetShowToolTips, 1, NULL }, - { "SetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_SetStyleSheet, 1, NULL }, - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_applyStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_bottomButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer, 1, NULL }, - // %member { "Set_m_buttonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer, 1, NULL }, - // %member { "Set_m_buttonSizerParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_cancelButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton, 1, NULL }, - // %member { "Set_m_closeButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton, 1, NULL }, - // %member { "Set_m_deleteStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle, 1, NULL }, - // %member { "Set_m_editStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_innerSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_newBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox, 1, NULL }, - // %member { "Set_m_newCharacter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter, 1, NULL }, - // %member { "Set_m_newList", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList, 1, NULL }, - // %member { "Set_m_newParagraph", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph, 1, NULL }, - // %member { "Set_m_okButton", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Set_m_previewCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl, 1, NULL }, - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_renameStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_restartNumberingCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_stdButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_stylesListBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "ShowPreview", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ShowPreview, 1, NULL }, - { "ShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_ShowToolTips, 1, NULL }, - { "TransferDataFromWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_TransferDataFromWindow, 1, NULL }, - { "TransferDataToWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_TransferDataToWindow, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_delete, 1, NULL }, - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_applyStyle", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_applyStyle, 1, NULL }, - { "m_applyStyle", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_applyStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_bottomButtonSizer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_bottomButtonSizer, 1, NULL }, - { "m_bottomButtonSizer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_bottomButtonSizer, 1, NULL }, - { "m_buttonSizer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizer, 1, NULL }, - { "m_buttonSizer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizer, 1, NULL }, - { "m_buttonSizerParent", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_buttonSizerParent, 1, NULL }, - { "m_buttonSizerParent", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_buttonSizerParent, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_cancelButton", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_cancelButton, 1, NULL }, - { "m_cancelButton", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_cancelButton, 1, NULL }, - { "m_closeButton", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_closeButton, 1, NULL }, - { "m_closeButton", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_closeButton, 1, NULL }, - { "m_deleteStyle", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_deleteStyle, 1, NULL }, - { "m_deleteStyle", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_deleteStyle, 1, NULL }, - { "m_editStyle", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_editStyle, 1, NULL }, - { "m_editStyle", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_editStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_innerSizer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_innerSizer, 1, NULL }, - { "m_innerSizer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_innerSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_newBox", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newBox, 1, NULL }, - { "m_newBox", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newBox, 1, NULL }, - { "m_newCharacter", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newCharacter, 1, NULL }, - { "m_newCharacter", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newCharacter, 1, NULL }, - { "m_newList", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newList, 1, NULL }, - { "m_newList", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newList, 1, NULL }, - { "m_newParagraph", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_newParagraph, 1, NULL }, - { "m_newParagraph", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_newParagraph, 1, NULL }, - { "m_okButton", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_okButton, 1, NULL }, - { "m_okButton", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_okButton, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "m_previewCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_previewCtrl, 1, NULL }, - { "m_previewCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_previewCtrl, 1, NULL }, - -#if (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_renameStyle", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_renameStyle, 1, NULL }, - { "m_renameStyle", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_renameStyle, 1, NULL }, -#endif // (wxLUA_USE_wxButton && wxUSE_BUTTON) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_restartNumberingCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_restartNumberingCtrl, 1, NULL }, - { "m_restartNumberingCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_restartNumberingCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxCheckBox && wxUSE_CHECKBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_stdButtonSizer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stdButtonSizer, 1, NULL }, - { "m_stdButtonSizer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stdButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_stylesListBox", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Set_m_stylesListBox, 1, NULL }, - { "m_stylesListBox", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_Get_m_stylesListBox, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextStyleOrganiserDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor_overload, s_wxluafunc_wxLua_wxRichTextStyleOrganiserDialog_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStyleOrganiserDialog_methodCount = sizeof(wxRichTextStyleOrganiserDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxRichTextStyleOrganiserDialog_enums[] = { -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "ID_RICHTEXTSTYLEORGANISERDIALOG", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_APPLY", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_APPLY }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_CURRENT_STYLE", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_CURRENT_STYLE }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_DELETE", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_DELETE }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_EDIT", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_EDIT }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_BOX", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_BOX }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_CHAR", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_CHAR }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_LIST", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_LIST }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_PARA", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_NEW_PARA }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_PREVIEW", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_PREVIEW }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_RENAME", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_RENAME }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_RESTART_NUMBERING", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_RESTART_NUMBERING }, - { "ID_RICHTEXTSTYLEORGANISERDIALOG_STYLES", wxRichTextStyleOrganiserDialog::ID_RICHTEXTSTYLEORGANISERDIALOG_STYLES }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - { NULL, 0, }, -}; -int wxRichTextStyleOrganiserDialog_enumCount = sizeof(wxRichTextStyleOrganiserDialog_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextStyleDefinition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStyleDefinition' -int wxluatype_wxRichTextStyleDefinition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Clone[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_Clone[1] = {{ wxLua_wxRichTextStyleDefinition_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Clone }}; -// virtual wxRichTextStyleDefinition* Clone() const; -static int LUACALL wxLua_wxRichTextStyleDefinition_Clone(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call Clone - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Copy[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_Copy[1] = {{ wxLua_wxRichTextStyleDefinition_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Copy }}; -// void Copy(const wxRichTextStyleDefinition& def); -static int LUACALL wxLua_wxRichTextStyleDefinition_Copy(lua_State *L) -{ - // const wxRichTextStyleDefinition def - const wxRichTextStyleDefinition * def = (const wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call Copy - self->Copy(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Eq[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_Eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_Eq[1] = {{ wxLua_wxRichTextStyleDefinition_Eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Eq }}; -// bool Eq(const wxRichTextStyleDefinition& def) const; -static int LUACALL wxLua_wxRichTextStyleDefinition_Eq(lua_State *L) -{ - // const wxRichTextStyleDefinition def - const wxRichTextStyleDefinition * def = (const wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call Eq - bool returns = (self->Eq(*def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetBaseStyle[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetBaseStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetBaseStyle[1] = {{ wxLua_wxRichTextStyleDefinition_GetBaseStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetBaseStyle }}; -// const wxString& GetBaseStyle() const; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetBaseStyle(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetBaseStyle - wxString returns = (self->GetBaseStyle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetDescription[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetDescription[1] = {{ wxLua_wxRichTextStyleDefinition_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetDescription }}; -// const wxString& GetDescription() const; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetDescription(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetDescription - wxString returns = (self->GetDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetName[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetName[1] = {{ wxLua_wxRichTextStyleDefinition_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetName }}; -// const wxString& GetName() const; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetName(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetProperties1[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetProperties1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties1[1] = {{ wxLua_wxRichTextStyleDefinition_GetProperties1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetProperties1 }}; -// const wxRichTextProperties& GetProperties() const; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetProperties1(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetProperties - const wxRichTextProperties* returns = (const wxRichTextProperties*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetProperties[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetProperties(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties[1] = {{ wxLua_wxRichTextStyleDefinition_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetProperties }}; -// wxRichTextProperties& GetProperties(); -static int LUACALL wxLua_wxRichTextStyleDefinition_GetProperties(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetProperties - wxRichTextProperties* returns = (wxRichTextProperties*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyle1[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetStyle1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle1[1] = {{ wxLua_wxRichTextStyleDefinition_GetStyle1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyle1 }}; -// wxRichTextAttr& GetStyle(); -static int LUACALL wxLua_wxRichTextStyleDefinition_GetStyle1(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetStyle - wxRichTextAttr* returns = (wxRichTextAttr*)&self->GetStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyle[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetStyle(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle[1] = {{ wxLua_wxRichTextStyleDefinition_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyle }}; -// const wxRichTextAttr& GetStyle() const; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetStyle(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetStyle - const wxRichTextAttr* returns = (const wxRichTextAttr*)&self->GetStyle(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase[1] = {{ wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase }}; -// virtual wxRichTextAttr GetStyleMergedWithBase(const wxRichTextStyleSheet* sheet) const; -static int LUACALL wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase(lua_State *L) -{ - // const wxRichTextStyleSheet sheet - const wxRichTextStyleSheet * sheet = (const wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call GetStyleMergedWithBase - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetStyleMergedWithBase(sheet)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Init[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_Init[1] = {{ wxLua_wxRichTextStyleDefinition_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextStyleDefinition_Init(lua_State *L) -{ - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetBaseStyle[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_SetBaseStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetBaseStyle[1] = {{ wxLua_wxRichTextStyleDefinition_SetBaseStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetBaseStyle }}; -// void SetBaseStyle(const wxString& name); -static int LUACALL wxLua_wxRichTextStyleDefinition_SetBaseStyle(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call SetBaseStyle - self->SetBaseStyle(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetDescription[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_SetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetDescription[1] = {{ wxLua_wxRichTextStyleDefinition_SetDescription, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetDescription }}; -// void SetDescription(const wxString& descr); -static int LUACALL wxLua_wxRichTextStyleDefinition_SetDescription(lua_State *L) -{ - // const wxString descr - const wxString descr = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call SetDescription - self->SetDescription(descr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetName[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetName[1] = {{ wxLua_wxRichTextStyleDefinition_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxRichTextStyleDefinition_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetProperties[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetProperties[1] = {{ wxLua_wxRichTextStyleDefinition_SetProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetProperties }}; -// void SetProperties(const wxRichTextProperties& props); -static int LUACALL wxLua_wxRichTextStyleDefinition_SetProperties(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call SetProperties - self->SetProperties(*props); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetStyle[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_SetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetStyle[1] = {{ wxLua_wxRichTextStyleDefinition_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_SetStyle }}; -// void SetStyle(const wxRichTextAttr& style); -static int LUACALL wxLua_wxRichTextStyleDefinition_SetStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call SetStyle - self->SetStyle(*style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_delete[] = { &wxluatype_wxRichTextStyleDefinition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_op_eq[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_op_eq[1] = {{ wxLua_wxRichTextStyleDefinition_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_op_eq }}; -// bool operator ==(const wxRichTextStyleDefinition& def) const; -static int LUACALL wxLua_wxRichTextStyleDefinition_op_eq(lua_State *L) -{ - // const wxRichTextStyleDefinition def - const wxRichTextStyleDefinition * def = (const wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call op_eq - bool returns = ((*self)==(*def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_op_set[] = { &wxluatype_wxRichTextStyleDefinition, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleDefinition_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_op_set[1] = {{ wxLua_wxRichTextStyleDefinition_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_op_set }}; -// void operator =(const wxRichTextStyleDefinition& def); -static int LUACALL wxLua_wxRichTextStyleDefinition_op_set(lua_State *L) -{ - // const wxRichTextStyleDefinition def - const wxRichTextStyleDefinition * def = (const wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleDefinition * self = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleDefinition); - // call op_set - (*self)=(*def); - - return 0; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties_overload[] = -{ - { wxLua_wxRichTextStyleDefinition_GetProperties1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetProperties1 }, - { wxLua_wxRichTextStyleDefinition_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetProperties }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle_overload[] = -{ - { wxLua_wxRichTextStyleDefinition_GetStyle1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyle1 }, - { wxLua_wxRichTextStyleDefinition_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleDefinition_GetStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextStyleDefinition_delete_function(void** p) -{ - wxRichTextStyleDefinition* o = (wxRichTextStyleDefinition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStyleDefinition_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_Copy, 1, NULL }, - { "Eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_Eq, 1, NULL }, - { "GetBaseStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetBaseStyle, 1, NULL }, - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetDescription, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetName, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties_overload, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetProperties_overload_count, 0 }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle_overload, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyle_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetStyleMergedWithBase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_GetStyleMergedWithBase, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_Init, 1, NULL }, - { "SetBaseStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetBaseStyle, 1, NULL }, - { "SetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetDescription, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetName, 1, NULL }, - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetProperties, 1, NULL }, - { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_SetStyle, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStyleDefinition_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleDefinition_op_set, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStyleDefinition_methodCount = sizeof(wxRichTextStyleDefinition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextCharacterStyleDefinition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextCharacterStyleDefinition' -int wxluatype_wxRichTextCharacterStyleDefinition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_Clone[] = { &wxluatype_wxRichTextCharacterStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextCharacterStyleDefinition_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_Clone[1] = {{ wxLua_wxRichTextCharacterStyleDefinition_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_Clone }}; -// virtual wxRichTextStyleDefinition* Clone() const; -static int LUACALL wxLua_wxRichTextCharacterStyleDefinition_Clone(lua_State *L) -{ - // get this - wxRichTextCharacterStyleDefinition * self = (wxRichTextCharacterStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCharacterStyleDefinition); - // call Clone - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_delete[] = { &wxluatype_wxRichTextCharacterStyleDefinition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextCharacterStyleDefinition_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor1[1] = {{ wxLua_wxRichTextCharacterStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_constructor1 }}; -// wxRichTextCharacterStyleDefinition(const wxString& name = wxEmptyString); -static int LUACALL wxLua_wxRichTextCharacterStyleDefinition_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxEmptyString - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxRichTextCharacterStyleDefinition* returns = new wxRichTextCharacterStyleDefinition(name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextCharacterStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCharacterStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_constructor[] = { &wxluatype_wxRichTextCharacterStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextCharacterStyleDefinition_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor[1] = {{ wxLua_wxRichTextCharacterStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_constructor }}; -// wxRichTextCharacterStyleDefinition(const wxRichTextCharacterStyleDefinition& def); -static int LUACALL wxLua_wxRichTextCharacterStyleDefinition_constructor(lua_State *L) -{ - // const wxRichTextCharacterStyleDefinition def - const wxRichTextCharacterStyleDefinition * def = (const wxRichTextCharacterStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCharacterStyleDefinition); - // call constructor - wxRichTextCharacterStyleDefinition* returns = new wxRichTextCharacterStyleDefinition(*def); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextCharacterStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCharacterStyleDefinition); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor_overload[] = -{ - { wxLua_wxRichTextCharacterStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_constructor1 }, - { wxLua_wxRichTextCharacterStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextCharacterStyleDefinition_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextCharacterStyleDefinition_delete_function(void** p) -{ - wxRichTextCharacterStyleDefinition* o = (wxRichTextCharacterStyleDefinition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextCharacterStyleDefinition_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_Clone, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextCharacterStyleDefinition", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor_overload, s_wxluafunc_wxLua_wxRichTextCharacterStyleDefinition_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextCharacterStyleDefinition_methodCount = sizeof(wxRichTextCharacterStyleDefinition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextParagraphStyleDefinition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextParagraphStyleDefinition' -int wxluatype_wxRichTextParagraphStyleDefinition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_Clone[] = { &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_Clone[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_Clone }}; -// virtual wxRichTextStyleDefinition* Clone() const; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_Clone(lua_State *L) -{ - // get this - wxRichTextParagraphStyleDefinition * self = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call Clone - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_Copy[] = { &wxluatype_wxRichTextParagraphStyleDefinition, &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_Copy[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_Copy }}; -// void Copy(const wxRichTextParagraphStyleDefinition& def); -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_Copy(lua_State *L) -{ - // const wxRichTextParagraphStyleDefinition def - const wxRichTextParagraphStyleDefinition * def = (const wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphStyleDefinition); - // get this - wxRichTextParagraphStyleDefinition * self = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call Copy - self->Copy(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle[] = { &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle }}; -// const wxString& GetNextStyle() const; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle(lua_State *L) -{ - // get this - wxRichTextParagraphStyleDefinition * self = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call GetNextStyle - wxString returns = (self->GetNextStyle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle[] = { &wxluatype_wxRichTextParagraphStyleDefinition, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle }}; -// void SetNextStyle(const wxString& name); -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextParagraphStyleDefinition * self = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call SetNextStyle - self->SetNextStyle(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_delete[] = { &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_op_eq[] = { &wxluatype_wxRichTextParagraphStyleDefinition, &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_op_eq[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_op_eq }}; -// bool operator ==(const wxRichTextParagraphStyleDefinition& def) const; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_op_eq(lua_State *L) -{ - // const wxRichTextParagraphStyleDefinition def - const wxRichTextParagraphStyleDefinition * def = (const wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphStyleDefinition); - // get this - wxRichTextParagraphStyleDefinition * self = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call op_eq - bool returns = ((*self)==(*def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_op_set[] = { &wxluatype_wxRichTextParagraphStyleDefinition, &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_op_set[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_op_set }}; -// void operator =(const wxRichTextParagraphStyleDefinition& def); -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_op_set(lua_State *L) -{ - // const wxRichTextParagraphStyleDefinition def - const wxRichTextParagraphStyleDefinition * def = (const wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphStyleDefinition); - // get this - wxRichTextParagraphStyleDefinition * self = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call op_set - (*self)=(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor1[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_constructor1 }}; -// wxRichTextParagraphStyleDefinition(const wxString& name = wxEmptyString); -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxEmptyString - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxRichTextParagraphStyleDefinition* returns = new wxRichTextParagraphStyleDefinition(name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraphStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_constructor[] = { &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor[1] = {{ wxLua_wxRichTextParagraphStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_constructor }}; -// wxRichTextParagraphStyleDefinition(const wxRichTextParagraphStyleDefinition& def); -static int LUACALL wxLua_wxRichTextParagraphStyleDefinition_constructor(lua_State *L) -{ - // const wxRichTextParagraphStyleDefinition def - const wxRichTextParagraphStyleDefinition * def = (const wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextParagraphStyleDefinition); - // call constructor - wxRichTextParagraphStyleDefinition* returns = new wxRichTextParagraphStyleDefinition(*def); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextParagraphStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphStyleDefinition); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor_overload[] = -{ - { wxLua_wxRichTextParagraphStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_constructor1 }, - { wxLua_wxRichTextParagraphStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextParagraphStyleDefinition_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextParagraphStyleDefinition_delete_function(void** p) -{ - wxRichTextParagraphStyleDefinition* o = (wxRichTextParagraphStyleDefinition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextParagraphStyleDefinition_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_Copy, 1, NULL }, - { "GetNextStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_GetNextStyle, 1, NULL }, - { "SetNextStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_SetNextStyle, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextParagraphStyleDefinition", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor_overload, s_wxluafunc_wxLua_wxRichTextParagraphStyleDefinition_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextParagraphStyleDefinition_methodCount = sizeof(wxRichTextParagraphStyleDefinition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextListStyleDefinition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextListStyleDefinition' -int wxluatype_wxRichTextListStyleDefinition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_Clone[] = { &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_Clone[1] = {{ wxLua_wxRichTextListStyleDefinition_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_Clone }}; -// virtual wxRichTextStyleDefinition* Clone() const; -static int LUACALL wxLua_wxRichTextListStyleDefinition_Clone(lua_State *L) -{ - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call Clone - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle[1] = {{ wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle }}; -// wxRichTextAttr CombineWithParagraphStyle(int indent, const wxRichTextAttr& paraStyle, wxRichTextStyleSheet* styleSheet = NULL); -static int LUACALL wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextStyleSheet styleSheet = NULL - wxRichTextStyleSheet * styleSheet = (argCount >= 4 ? (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 4, wxluatype_wxRichTextStyleSheet) : NULL); - // const wxRichTextAttr paraStyle - const wxRichTextAttr * paraStyle = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call CombineWithParagraphStyle - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->CombineWithParagraphStyle(indent, *paraStyle, styleSheet)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_Copy[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_Copy[1] = {{ wxLua_wxRichTextListStyleDefinition_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_Copy }}; -// void Copy(const wxRichTextListStyleDefinition& def); -static int LUACALL wxLua_wxRichTextListStyleDefinition_Copy(lua_State *L) -{ - // const wxRichTextListStyleDefinition def - const wxRichTextListStyleDefinition * def = (const wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextListStyleDefinition); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call Copy - self->Copy(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_FindLevelForIndent[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_FindLevelForIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_FindLevelForIndent[1] = {{ wxLua_wxRichTextListStyleDefinition_FindLevelForIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_FindLevelForIndent }}; -// int FindLevelForIndent(int indent) const; -static int LUACALL wxLua_wxRichTextListStyleDefinition_FindLevelForIndent(lua_State *L) -{ - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call FindLevelForIndent - int returns = (self->FindLevelForIndent(indent)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetCombinedStyle[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetCombinedStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetCombinedStyle[1] = {{ wxLua_wxRichTextListStyleDefinition_GetCombinedStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetCombinedStyle }}; -// wxRichTextAttr GetCombinedStyle(int indent, wxRichTextStyleSheet* styleSheet = NULL); -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetCombinedStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextStyleSheet styleSheet = NULL - wxRichTextStyleSheet * styleSheet = (argCount >= 3 ? (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleSheet) : NULL); - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call GetCombinedStyle - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetCombinedStyle(indent, styleSheet)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel[1] = {{ wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel }}; -// wxRichTextAttr GetCombinedStyleForLevel(int level, wxRichTextStyleSheet* styleSheet = NULL); -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextStyleSheet styleSheet = NULL - wxRichTextStyleSheet * styleSheet = (argCount >= 3 ? (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleSheet) : NULL); - // int level - int level = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call GetCombinedStyleForLevel - // allocate a new object using the copy constructor - wxRichTextAttr* returns = new wxRichTextAttr(self->GetCombinedStyleForLevel(level, styleSheet)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextAttr); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1[1] = {{ wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1 }}; -// const wxRichTextAttr* GetLevelAttributes(int i) const; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call GetLevelAttributes - const wxRichTextAttr* returns = (const wxRichTextAttr*)self->GetLevelAttributes(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetLevelAttributes(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes[1] = {{ wxLua_wxRichTextListStyleDefinition_GetLevelAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes }}; -// wxRichTextAttr* GetLevelAttributes(int i); -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetLevelAttributes(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call GetLevelAttributes - wxRichTextAttr* returns = (wxRichTextAttr*)self->GetLevelAttributes(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextAttr); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelCount[] = { &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetLevelCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelCount[1] = {{ wxLua_wxRichTextListStyleDefinition_GetLevelCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelCount }}; -// int GetLevelCount() const; -static int LUACALL wxLua_wxRichTextListStyleDefinition_GetLevelCount(lua_State *L) -{ - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call GetLevelCount - int returns = (self->GetLevelCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_IsNumbered[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_IsNumbered(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_IsNumbered[1] = {{ wxLua_wxRichTextListStyleDefinition_IsNumbered, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_IsNumbered }}; -// bool IsNumbered(int i) const; -static int LUACALL wxLua_wxRichTextListStyleDefinition_IsNumbered(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call IsNumbered - bool returns = (self->IsNumbered(i)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_SetAttributes[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_SetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_SetAttributes[1] = {{ wxLua_wxRichTextListStyleDefinition_SetAttributes, WXLUAMETHOD_METHOD, 5, 6, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_SetAttributes }}; -// void SetAttributes(int i, int leftIndent, int leftSubIndent, int bulletStyle, const wxString& bulletSymbol = wxEmptyString); -static int LUACALL wxLua_wxRichTextListStyleDefinition_SetAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString bulletSymbol = wxEmptyString - const wxString bulletSymbol = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxEmptyString)); - // int bulletStyle - int bulletStyle = (int)wxlua_getnumbertype(L, 5); - // int leftSubIndent - int leftSubIndent = (int)wxlua_getnumbertype(L, 4); - // int leftIndent - int leftIndent = (int)wxlua_getnumbertype(L, 3); - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call SetAttributes - self->SetAttributes(i, leftIndent, leftSubIndent, bulletStyle, bulletSymbol); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_SetLevelAttributes[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_TNUMBER, &wxluatype_wxRichTextAttr, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_SetLevelAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_SetLevelAttributes[1] = {{ wxLua_wxRichTextListStyleDefinition_SetLevelAttributes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_SetLevelAttributes }}; -// void SetLevelAttributes(int i, const wxRichTextAttr& attr); -static int LUACALL wxLua_wxRichTextListStyleDefinition_SetLevelAttributes(lua_State *L) -{ - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call SetLevelAttributes - self->SetLevelAttributes(i, *attr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_delete[] = { &wxluatype_wxRichTextListStyleDefinition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_op_eq[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_op_eq[1] = {{ wxLua_wxRichTextListStyleDefinition_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_op_eq }}; -// bool operator ==(const wxRichTextListStyleDefinition& def) const; -static int LUACALL wxLua_wxRichTextListStyleDefinition_op_eq(lua_State *L) -{ - // const wxRichTextListStyleDefinition def - const wxRichTextListStyleDefinition * def = (const wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextListStyleDefinition); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call op_eq - bool returns = ((*self)==(*def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_op_set[] = { &wxluatype_wxRichTextListStyleDefinition, &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_op_set[1] = {{ wxLua_wxRichTextListStyleDefinition_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_op_set }}; -// void operator =(const wxRichTextListStyleDefinition& def); -static int LUACALL wxLua_wxRichTextListStyleDefinition_op_set(lua_State *L) -{ - // const wxRichTextListStyleDefinition def - const wxRichTextListStyleDefinition * def = (const wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextListStyleDefinition); - // get this - wxRichTextListStyleDefinition * self = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call op_set - (*self)=(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor1[1] = {{ wxLua_wxRichTextListStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_constructor1 }}; -// wxRichTextListStyleDefinition(const wxString& name = wxEmptyString); -static int LUACALL wxLua_wxRichTextListStyleDefinition_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxEmptyString - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxRichTextListStyleDefinition* returns = new wxRichTextListStyleDefinition(name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextListStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextListStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_constructor[] = { &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextListStyleDefinition_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor[1] = {{ wxLua_wxRichTextListStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_constructor }}; -// wxRichTextListStyleDefinition(const wxRichTextListStyleDefinition& def); -static int LUACALL wxLua_wxRichTextListStyleDefinition_constructor(lua_State *L) -{ - // const wxRichTextListStyleDefinition def - const wxRichTextListStyleDefinition * def = (const wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextListStyleDefinition); - // call constructor - wxRichTextListStyleDefinition* returns = new wxRichTextListStyleDefinition(*def); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextListStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextListStyleDefinition); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes_overload[] = -{ - { wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes1 }, - { wxLua_wxRichTextListStyleDefinition_GetLevelAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes }, -}; -static int s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor_overload[] = -{ - { wxLua_wxRichTextListStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_constructor1 }, - { wxLua_wxRichTextListStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextListStyleDefinition_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextListStyleDefinition_delete_function(void** p) -{ - wxRichTextListStyleDefinition* o = (wxRichTextListStyleDefinition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextListStyleDefinition_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_Clone, 1, NULL }, - { "CombineWithParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_CombineWithParagraphStyle, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_Copy, 1, NULL }, - { "FindLevelForIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_FindLevelForIndent, 1, NULL }, - { "GetCombinedStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetCombinedStyle, 1, NULL }, - { "GetCombinedStyleForLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetCombinedStyleForLevel, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetLevelAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes_overload, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelAttributes_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetLevelCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_GetLevelCount, 1, NULL }, - { "IsNumbered", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_IsNumbered, 1, NULL }, - { "SetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_SetAttributes, 1, NULL }, - { "SetLevelAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_SetLevelAttributes, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextListStyleDefinition", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor_overload, s_wxluafunc_wxLua_wxRichTextListStyleDefinition_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextListStyleDefinition_methodCount = sizeof(wxRichTextListStyleDefinition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextBoxStyleDefinition -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextBoxStyleDefinition' -int wxluatype_wxRichTextBoxStyleDefinition = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_Clone[] = { &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_Clone[1] = {{ wxLua_wxRichTextBoxStyleDefinition_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_Clone }}; -// virtual wxRichTextStyleDefinition* Clone() const; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_Clone(lua_State *L) -{ - // get this - wxRichTextBoxStyleDefinition * self = (wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBoxStyleDefinition); - // call Clone - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_Copy[] = { &wxluatype_wxRichTextBoxStyleDefinition, &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_Copy[1] = {{ wxLua_wxRichTextBoxStyleDefinition_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_Copy }}; -// void Copy(const wxRichTextBoxStyleDefinition& def); -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_Copy(lua_State *L) -{ - // const wxRichTextBoxStyleDefinition def - const wxRichTextBoxStyleDefinition * def = (const wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBoxStyleDefinition); - // get this - wxRichTextBoxStyleDefinition * self = (wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBoxStyleDefinition); - // call Copy - self->Copy(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_delete[] = { &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_op_eq[] = { &wxluatype_wxRichTextBoxStyleDefinition, &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_op_eq[1] = {{ wxLua_wxRichTextBoxStyleDefinition_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_op_eq }}; -// bool operator ==(const wxRichTextBoxStyleDefinition& def) const; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_op_eq(lua_State *L) -{ - // const wxRichTextBoxStyleDefinition def - const wxRichTextBoxStyleDefinition * def = (const wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBoxStyleDefinition); - // get this - wxRichTextBoxStyleDefinition * self = (wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBoxStyleDefinition); - // call op_eq - bool returns = ((*self)==(*def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_op_set[] = { &wxluatype_wxRichTextBoxStyleDefinition, &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_op_set[1] = {{ wxLua_wxRichTextBoxStyleDefinition_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_op_set }}; -// void operator =(const wxRichTextBoxStyleDefinition& def); -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_op_set(lua_State *L) -{ - // const wxRichTextBoxStyleDefinition def - const wxRichTextBoxStyleDefinition * def = (const wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBoxStyleDefinition); - // get this - wxRichTextBoxStyleDefinition * self = (wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBoxStyleDefinition); - // call op_set - (*self)=(*def); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor1[1] = {{ wxLua_wxRichTextBoxStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_constructor1 }}; -// wxRichTextBoxStyleDefinition(const wxString& name = wxEmptyString); -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxEmptyString - const wxString name = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxRichTextBoxStyleDefinition* returns = new wxRichTextBoxStyleDefinition(name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBoxStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBoxStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_constructor[] = { &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor[1] = {{ wxLua_wxRichTextBoxStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_constructor }}; -// wxRichTextBoxStyleDefinition(const wxRichTextBoxStyleDefinition& def); -static int LUACALL wxLua_wxRichTextBoxStyleDefinition_constructor(lua_State *L) -{ - // const wxRichTextBoxStyleDefinition def - const wxRichTextBoxStyleDefinition * def = (const wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextBoxStyleDefinition); - // call constructor - wxRichTextBoxStyleDefinition* returns = new wxRichTextBoxStyleDefinition(*def); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextBoxStyleDefinition); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBoxStyleDefinition); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor_overload[] = -{ - { wxLua_wxRichTextBoxStyleDefinition_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 1, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_constructor1 }, - { wxLua_wxRichTextBoxStyleDefinition_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextBoxStyleDefinition_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextBoxStyleDefinition_delete_function(void** p) -{ - wxRichTextBoxStyleDefinition* o = (wxRichTextBoxStyleDefinition*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextBoxStyleDefinition_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_Clone, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_Copy, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextBoxStyleDefinition", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor_overload, s_wxluafunc_wxLua_wxRichTextBoxStyleDefinition_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextBoxStyleDefinition_methodCount = sizeof(wxRichTextBoxStyleDefinition_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxRichTextStyleSheet -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStyleSheet' -int wxluatype_wxRichTextStyleSheet = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddBoxStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextBoxStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AddBoxStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddBoxStyle[1] = {{ wxLua_wxRichTextStyleSheet_AddBoxStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddBoxStyle }}; -// bool AddBoxStyle(wxRichTextBoxStyleDefinition* def); -static int LUACALL wxLua_wxRichTextStyleSheet_AddBoxStyle(lua_State *L) -{ - // wxRichTextBoxStyleDefinition def - wxRichTextBoxStyleDefinition * def = (wxRichTextBoxStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBoxStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AddBoxStyle - bool returns = (self->AddBoxStyle(def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddCharacterStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextCharacterStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AddCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddCharacterStyle[1] = {{ wxLua_wxRichTextStyleSheet_AddCharacterStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddCharacterStyle }}; -// bool AddCharacterStyle(wxRichTextCharacterStyleDefinition* def); -static int LUACALL wxLua_wxRichTextStyleSheet_AddCharacterStyle(lua_State *L) -{ - // wxRichTextCharacterStyleDefinition def - wxRichTextCharacterStyleDefinition * def = (wxRichTextCharacterStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCharacterStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AddCharacterStyle - bool returns = (self->AddCharacterStyle(def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddListStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextListStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AddListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddListStyle[1] = {{ wxLua_wxRichTextStyleSheet_AddListStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddListStyle }}; -// bool AddListStyle(wxRichTextListStyleDefinition* def); -static int LUACALL wxLua_wxRichTextStyleSheet_AddListStyle(lua_State *L) -{ - // wxRichTextListStyleDefinition def - wxRichTextListStyleDefinition * def = (wxRichTextListStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextListStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AddListStyle - bool returns = (self->AddListStyle(def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddParagraphStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextParagraphStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AddParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddParagraphStyle[1] = {{ wxLua_wxRichTextStyleSheet_AddParagraphStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddParagraphStyle }}; -// bool AddParagraphStyle(wxRichTextParagraphStyleDefinition* def); -static int LUACALL wxLua_wxRichTextStyleSheet_AddParagraphStyle(lua_State *L) -{ - // wxRichTextParagraphStyleDefinition def - wxRichTextParagraphStyleDefinition * def = (wxRichTextParagraphStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextParagraphStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AddParagraphStyle - bool returns = (self->AddParagraphStyle(def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddStyle1[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxList, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AddStyle1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle1[1] = {{ wxLua_wxRichTextStyleSheet_AddStyle1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddStyle1 }}; -// bool AddStyle(wxList& list, wxRichTextStyleDefinition* def); -static int LUACALL wxLua_wxRichTextStyleSheet_AddStyle1(lua_State *L) -{ - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleDefinition); - // wxList list - wxList * list = (wxList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxList); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AddStyle - bool returns = (self->AddStyle(*list, def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AddStyle(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle[1] = {{ wxLua_wxRichTextStyleSheet_AddStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddStyle }}; -// bool AddStyle(wxRichTextStyleDefinition* def); -static int LUACALL wxLua_wxRichTextStyleSheet_AddStyle(lua_State *L) -{ - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AddStyle - bool returns = (self->AddStyle(def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AppendSheet[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_AppendSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AppendSheet[1] = {{ wxLua_wxRichTextStyleSheet_AppendSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AppendSheet }}; -// bool AppendSheet(wxRichTextStyleSheet* after); -static int LUACALL wxLua_wxRichTextStyleSheet_AppendSheet(lua_State *L) -{ - // wxRichTextStyleSheet after - wxRichTextStyleSheet * after = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call AppendSheet - bool returns = (self->AppendSheet(after)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_Copy[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_Copy[1] = {{ wxLua_wxRichTextStyleSheet_Copy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_Copy }}; -// void Copy(const wxRichTextStyleSheet& sheet); -static int LUACALL wxLua_wxRichTextStyleSheet_Copy(lua_State *L) -{ - // const wxRichTextStyleSheet sheet - const wxRichTextStyleSheet * sheet = (const wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call Copy - self->Copy(*sheet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_DeleteStyles[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_DeleteStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_DeleteStyles[1] = {{ wxLua_wxRichTextStyleSheet_DeleteStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_DeleteStyles }}; -// void DeleteStyles(); -static int LUACALL wxLua_wxRichTextStyleSheet_DeleteStyles(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call DeleteStyles - self->DeleteStyles(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindBoxStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_FindBoxStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindBoxStyle[1] = {{ wxLua_wxRichTextStyleSheet_FindBoxStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindBoxStyle }}; -// wxRichTextBoxStyleDefinition* FindBoxStyle(const wxString& name, bool recurse = true) const; -static int LUACALL wxLua_wxRichTextStyleSheet_FindBoxStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recurse = true - bool recurse = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call FindBoxStyle - wxRichTextBoxStyleDefinition* returns = (wxRichTextBoxStyleDefinition*)self->FindBoxStyle(name, recurse); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBoxStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindCharacterStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_FindCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindCharacterStyle[1] = {{ wxLua_wxRichTextStyleSheet_FindCharacterStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindCharacterStyle }}; -// wxRichTextCharacterStyleDefinition* FindCharacterStyle(const wxString& name, bool recurse = true) const; -static int LUACALL wxLua_wxRichTextStyleSheet_FindCharacterStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recurse = true - bool recurse = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call FindCharacterStyle - wxRichTextCharacterStyleDefinition* returns = (wxRichTextCharacterStyleDefinition*)self->FindCharacterStyle(name, recurse); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCharacterStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindListStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_FindListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindListStyle[1] = {{ wxLua_wxRichTextStyleSheet_FindListStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindListStyle }}; -// wxRichTextListStyleDefinition* FindListStyle(const wxString& name, bool recurse = true) const; -static int LUACALL wxLua_wxRichTextStyleSheet_FindListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recurse = true - bool recurse = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call FindListStyle - wxRichTextListStyleDefinition* returns = (wxRichTextListStyleDefinition*)self->FindListStyle(name, recurse); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextListStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindParagraphStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_FindParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindParagraphStyle[1] = {{ wxLua_wxRichTextStyleSheet_FindParagraphStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindParagraphStyle }}; -// wxRichTextParagraphStyleDefinition* FindParagraphStyle(const wxString& name, bool recurse = true) const; -static int LUACALL wxLua_wxRichTextStyleSheet_FindParagraphStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recurse = true - bool recurse = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call FindParagraphStyle - wxRichTextParagraphStyleDefinition* returns = (wxRichTextParagraphStyleDefinition*)self->FindParagraphStyle(name, recurse); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphStyleDefinition); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindStyle1[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxList, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_FindStyle1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle1[1] = {{ wxLua_wxRichTextStyleSheet_FindStyle1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindStyle1 }}; -// wxRichTextStyleDefinition* FindStyle(const wxList& list, const wxString& name, bool recurse = true) const; -static int LUACALL wxLua_wxRichTextStyleSheet_FindStyle1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recurse = true - bool recurse = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : true); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // const wxList list - const wxList * list = (const wxList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxList); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call FindStyle - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->FindStyle(*list, name, recurse); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_FindStyle(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle[1] = {{ wxLua_wxRichTextStyleSheet_FindStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindStyle }}; -// wxRichTextStyleDefinition* FindStyle(const wxString& name, bool recurse = true) const; -static int LUACALL wxLua_wxRichTextStyleSheet_FindStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool recurse = true - bool recurse = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call FindStyle - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->FindStyle(name, recurse); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetBoxStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetBoxStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetBoxStyle[1] = {{ wxLua_wxRichTextStyleSheet_GetBoxStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetBoxStyle }}; -// wxRichTextBoxStyleDefinition* GetBoxStyle(size_t n) const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetBoxStyle(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetBoxStyle - wxRichTextBoxStyleDefinition* returns = (wxRichTextBoxStyleDefinition*)self->GetBoxStyle(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextBoxStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetBoxStyleCount[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetBoxStyleCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetBoxStyleCount[1] = {{ wxLua_wxRichTextStyleSheet_GetBoxStyleCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetBoxStyleCount }}; -// size_t GetBoxStyleCount() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetBoxStyleCount(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetBoxStyleCount - size_t returns = (self->GetBoxStyleCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetCharacterStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetCharacterStyle[1] = {{ wxLua_wxRichTextStyleSheet_GetCharacterStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetCharacterStyle }}; -// wxRichTextCharacterStyleDefinition* GetCharacterStyle(size_t n) const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetCharacterStyle(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetCharacterStyle - wxRichTextCharacterStyleDefinition* returns = (wxRichTextCharacterStyleDefinition*)self->GetCharacterStyle(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCharacterStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetCharacterStyleCount[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetCharacterStyleCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetCharacterStyleCount[1] = {{ wxLua_wxRichTextStyleSheet_GetCharacterStyleCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetCharacterStyleCount }}; -// size_t GetCharacterStyleCount() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetCharacterStyleCount(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetCharacterStyleCount - size_t returns = (self->GetCharacterStyleCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetDescription[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetDescription[1] = {{ wxLua_wxRichTextStyleSheet_GetDescription, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetDescription }}; -// const wxString& GetDescription() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetDescription(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetDescription - wxString returns = (self->GetDescription()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetListStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetListStyle[1] = {{ wxLua_wxRichTextStyleSheet_GetListStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetListStyle }}; -// wxRichTextListStyleDefinition* GetListStyle(size_t n) const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetListStyle(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetListStyle - wxRichTextListStyleDefinition* returns = (wxRichTextListStyleDefinition*)self->GetListStyle(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextListStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetListStyleCount[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetListStyleCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetListStyleCount[1] = {{ wxLua_wxRichTextStyleSheet_GetListStyleCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetListStyleCount }}; -// size_t GetListStyleCount() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetListStyleCount(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetListStyleCount - size_t returns = (self->GetListStyleCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetName[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetName[1] = {{ wxLua_wxRichTextStyleSheet_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetName }}; -// const wxString& GetName() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetName(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetNextSheet[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetNextSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetNextSheet[1] = {{ wxLua_wxRichTextStyleSheet_GetNextSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetNextSheet }}; -// wxRichTextStyleSheet* GetNextSheet() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetNextSheet(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetNextSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetNextSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetParagraphStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetParagraphStyle[1] = {{ wxLua_wxRichTextStyleSheet_GetParagraphStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetParagraphStyle }}; -// wxRichTextParagraphStyleDefinition* GetParagraphStyle(size_t n) const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetParagraphStyle(lua_State *L) -{ - // size_t n - size_t n = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetParagraphStyle - wxRichTextParagraphStyleDefinition* returns = (wxRichTextParagraphStyleDefinition*)self->GetParagraphStyle(n); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextParagraphStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetParagraphStyleCount[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetParagraphStyleCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetParagraphStyleCount[1] = {{ wxLua_wxRichTextStyleSheet_GetParagraphStyleCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetParagraphStyleCount }}; -// size_t GetParagraphStyleCount() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetParagraphStyleCount(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetParagraphStyleCount - size_t returns = (self->GetParagraphStyleCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetPreviousSheet[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetPreviousSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetPreviousSheet[1] = {{ wxLua_wxRichTextStyleSheet_GetPreviousSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetPreviousSheet }}; -// wxRichTextStyleSheet* GetPreviousSheet() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetPreviousSheet(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetPreviousSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetPreviousSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetProperties1[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetProperties1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties1[1] = {{ wxLua_wxRichTextStyleSheet_GetProperties1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetProperties1 }}; -// const wxRichTextProperties& GetProperties() const; -static int LUACALL wxLua_wxRichTextStyleSheet_GetProperties1(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetProperties - const wxRichTextProperties* returns = (const wxRichTextProperties*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetProperties[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_GetProperties(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties[1] = {{ wxLua_wxRichTextStyleSheet_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetProperties }}; -// wxRichTextProperties& GetProperties(); -static int LUACALL wxLua_wxRichTextStyleSheet_GetProperties(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call GetProperties - wxRichTextProperties* returns = (wxRichTextProperties*)&self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextProperties); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_Init[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_Init[1] = {{ wxLua_wxRichTextStyleSheet_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextStyleSheet_Init(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_InsertSheet[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_InsertSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_InsertSheet[1] = {{ wxLua_wxRichTextStyleSheet_InsertSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_InsertSheet }}; -// bool InsertSheet(wxRichTextStyleSheet* before); -static int LUACALL wxLua_wxRichTextStyleSheet_InsertSheet(lua_State *L) -{ - // wxRichTextStyleSheet before - wxRichTextStyleSheet * before = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call InsertSheet - bool returns = (self->InsertSheet(before)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveBoxStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveBoxStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveBoxStyle[1] = {{ wxLua_wxRichTextStyleSheet_RemoveBoxStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveBoxStyle }}; -// bool RemoveBoxStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false); -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveBoxStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteStyle = false - bool deleteStyle = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call RemoveBoxStyle - bool returns = (self->RemoveBoxStyle(def, deleteStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveCharacterStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveCharacterStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveCharacterStyle[1] = {{ wxLua_wxRichTextStyleSheet_RemoveCharacterStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveCharacterStyle }}; -// bool RemoveCharacterStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false); -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveCharacterStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteStyle = false - bool deleteStyle = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call RemoveCharacterStyle - bool returns = (self->RemoveCharacterStyle(def, deleteStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveListStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveListStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveListStyle[1] = {{ wxLua_wxRichTextStyleSheet_RemoveListStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveListStyle }}; -// bool RemoveListStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false); -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveListStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteStyle = false - bool deleteStyle = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call RemoveListStyle - bool returns = (self->RemoveListStyle(def, deleteStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveParagraphStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveParagraphStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveParagraphStyle[1] = {{ wxLua_wxRichTextStyleSheet_RemoveParagraphStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveParagraphStyle }}; -// bool RemoveParagraphStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false); -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveParagraphStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteStyle = false - bool deleteStyle = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call RemoveParagraphStyle - bool returns = (self->RemoveParagraphStyle(def, deleteStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveStyle1[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxList, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveStyle1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle1[1] = {{ wxLua_wxRichTextStyleSheet_RemoveStyle1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveStyle1 }}; -// bool RemoveStyle(wxList& list, wxRichTextStyleDefinition* def, bool deleteStyle); -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveStyle1(lua_State *L) -{ - // bool deleteStyle - bool deleteStyle = wxlua_getbooleantype(L, 4); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleDefinition); - // wxList list - wxList * list = (wxList *)wxluaT_getuserdatatype(L, 2, wxluatype_wxList); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call RemoveStyle - bool returns = (self->RemoveStyle(*list, def, deleteStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveStyle[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveStyle(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle[1] = {{ wxLua_wxRichTextStyleSheet_RemoveStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveStyle }}; -// bool RemoveStyle(wxRichTextStyleDefinition* def, bool deleteStyle = false); -static int LUACALL wxLua_wxRichTextStyleSheet_RemoveStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool deleteStyle = false - bool deleteStyle = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call RemoveStyle - bool returns = (self->RemoveStyle(def, deleteStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetDescription[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_SetDescription(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_SetDescription[1] = {{ wxLua_wxRichTextStyleSheet_SetDescription, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetDescription }}; -// void SetDescription(const wxString& descr); -static int LUACALL wxLua_wxRichTextStyleSheet_SetDescription(lua_State *L) -{ - // const wxString descr - const wxString descr = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call SetDescription - self->SetDescription(descr); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetName[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_SetName[1] = {{ wxLua_wxRichTextStyleSheet_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxRichTextStyleSheet_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetNextSheet[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_SetNextSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_SetNextSheet[1] = {{ wxLua_wxRichTextStyleSheet_SetNextSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetNextSheet }}; -// void SetNextSheet(wxRichTextStyleSheet* sheet); -static int LUACALL wxLua_wxRichTextStyleSheet_SetNextSheet(lua_State *L) -{ - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call SetNextSheet - self->SetNextSheet(sheet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetPreviousSheet[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_SetPreviousSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_SetPreviousSheet[1] = {{ wxLua_wxRichTextStyleSheet_SetPreviousSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetPreviousSheet }}; -// void SetPreviousSheet(wxRichTextStyleSheet* sheet); -static int LUACALL wxLua_wxRichTextStyleSheet_SetPreviousSheet(lua_State *L) -{ - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call SetPreviousSheet - self->SetPreviousSheet(sheet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetProperties[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_SetProperties[1] = {{ wxLua_wxRichTextStyleSheet_SetProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_SetProperties }}; -// void SetProperties(const wxRichTextProperties& props); -static int LUACALL wxLua_wxRichTextStyleSheet_SetProperties(lua_State *L) -{ - // const wxRichTextProperties props - const wxRichTextProperties * props = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call SetProperties - self->SetProperties(*props); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_Unlink[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_Unlink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_Unlink[1] = {{ wxLua_wxRichTextStyleSheet_Unlink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_Unlink }}; -// void Unlink(); -static int LUACALL wxLua_wxRichTextStyleSheet_Unlink(lua_State *L) -{ - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call Unlink - self->Unlink(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_delete[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_op_eq[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_op_eq(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_op_eq[1] = {{ wxLua_wxRichTextStyleSheet_op_eq, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_op_eq }}; -// bool operator==(const wxRichTextStyleSheet& sheet) const; -static int LUACALL wxLua_wxRichTextStyleSheet_op_eq(lua_State *L) -{ - // const wxRichTextStyleSheet sheet - const wxRichTextStyleSheet * sheet = (const wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call op_eq - bool returns = ((*self)==(*sheet)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_op_set[] = { &wxluatype_wxRichTextStyleSheet, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_op_set[1] = {{ wxLua_wxRichTextStyleSheet_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_op_set }}; -// void operator=(const wxRichTextStyleSheet& sheet); -static int LUACALL wxLua_wxRichTextStyleSheet_op_set(lua_State *L) -{ - // const wxRichTextStyleSheet sheet - const wxRichTextStyleSheet * sheet = (const wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleSheet * self = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call op_set - (*self)=(*sheet); - - return 0; -} - -static int LUACALL wxLua_wxRichTextStyleSheet_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor1[1] = {{ wxLua_wxRichTextStyleSheet_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextStyleSheet(); -static int LUACALL wxLua_wxRichTextStyleSheet_constructor1(lua_State *L) -{ - // call constructor - wxRichTextStyleSheet* returns = new wxRichTextStyleSheet(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleSheet); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleSheet_constructor[] = { &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleSheet_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor[1] = {{ wxLua_wxRichTextStyleSheet_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_constructor }}; -// wxRichTextStyleSheet(const wxRichTextStyleSheet& sheet); -static int LUACALL wxLua_wxRichTextStyleSheet_constructor(lua_State *L) -{ - // const wxRichTextStyleSheet sheet - const wxRichTextStyleSheet * sheet = (const wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleSheet); - // call constructor - wxRichTextStyleSheet* returns = new wxRichTextStyleSheet(*sheet); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleSheet); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - - - - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle_overload[] = -{ - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleSheet_AddStyle1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddStyle1 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleSheet_AddStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_AddStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle_overload[] = -{ - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleSheet_FindStyle1, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindStyle1 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleSheet_FindStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_FindStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties_overload[] = -{ - { wxLua_wxRichTextStyleSheet_GetProperties1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetProperties1 }, - { wxLua_wxRichTextStyleSheet_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_GetProperties }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle_overload[] = -{ - -#if (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleSheet_RemoveStyle1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveStyle1 }, -#endif // (wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextStyleSheet_RemoveStyle, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_RemoveStyle }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor_overload[] = -{ - { wxLua_wxRichTextStyleSheet_constructor1, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, - { wxLua_wxRichTextStyleSheet_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleSheet_constructor }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxRichTextStyleSheet_delete_function(void** p) -{ - wxRichTextStyleSheet* o = (wxRichTextStyleSheet*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStyleSheet_methods[] = { - { "AddBoxStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_AddBoxStyle, 1, NULL }, - { "AddCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_AddCharacterStyle, 1, NULL }, - { "AddListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_AddListStyle, 1, NULL }, - { "AddParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_AddParagraphStyle, 1, NULL }, - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "AddStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle_overload, s_wxluafunc_wxLua_wxRichTextStyleSheet_AddStyle_overload_count, 0 }, -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "AppendSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_AppendSheet, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_Copy, 1, NULL }, - { "DeleteStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_DeleteStyles, 1, NULL }, - { "FindBoxStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_FindBoxStyle, 1, NULL }, - { "FindCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_FindCharacterStyle, 1, NULL }, - { "FindListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_FindListStyle, 1, NULL }, - { "FindParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_FindParagraphStyle, 1, NULL }, - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "FindStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle_overload, s_wxluafunc_wxLua_wxRichTextStyleSheet_FindStyle_overload_count, 0 }, -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetBoxStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetBoxStyle, 1, NULL }, - { "GetBoxStyleCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetBoxStyleCount, 1, NULL }, - { "GetCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetCharacterStyle, 1, NULL }, - { "GetCharacterStyleCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetCharacterStyleCount, 1, NULL }, - { "GetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetDescription, 1, NULL }, - { "GetListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetListStyle, 1, NULL }, - { "GetListStyleCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetListStyleCount, 1, NULL }, - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetName, 1, NULL }, - { "GetNextSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetNextSheet, 1, NULL }, - { "GetParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetParagraphStyle, 1, NULL }, - { "GetParagraphStyleCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetParagraphStyleCount, 1, NULL }, - { "GetPreviousSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetPreviousSheet, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties_overload, s_wxluafunc_wxLua_wxRichTextStyleSheet_GetProperties_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_Init, 1, NULL }, - { "InsertSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_InsertSheet, 1, NULL }, - { "RemoveBoxStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveBoxStyle, 1, NULL }, - { "RemoveCharacterStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveCharacterStyle, 1, NULL }, - { "RemoveListStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveListStyle, 1, NULL }, - { "RemoveParagraphStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveParagraphStyle, 1, NULL }, - -#if ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "RemoveStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle_overload, s_wxluafunc_wxLua_wxRichTextStyleSheet_RemoveStyle_overload_count, 0 }, -#endif // ((wxLUA_USE_wxList && !wxUSE_STL) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetDescription", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_SetDescription, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_SetName, 1, NULL }, - { "SetNextSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_SetNextSheet, 1, NULL }, - { "SetPreviousSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_SetPreviousSheet, 1, NULL }, - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_SetProperties, 1, NULL }, - { "Unlink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_Unlink, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStyleSheet_delete, 1, NULL }, - { "op_eq", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_op_eq, 1, NULL }, - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleSheet_op_set, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextStyleSheet", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor_overload, s_wxluafunc_wxLua_wxRichTextStyleSheet_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStyleSheet_methodCount = sizeof(wxRichTextStyleSheet_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxRichTextStyleListBox -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStyleListBox' -int wxluatype_wxRichTextStyleListBox = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_ApplyStyle[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_ApplyStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_ApplyStyle[1] = {{ wxLua_wxRichTextStyleListBox_ApplyStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_ApplyStyle }}; -// void ApplyStyle(int i); -static int LUACALL wxLua_wxRichTextStyleListBox_ApplyStyle(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call ApplyStyle - self->ApplyStyle(i); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_CanAutoSetSelection[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_CanAutoSetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_CanAutoSetSelection[1] = {{ wxLua_wxRichTextStyleListBox_CanAutoSetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_CanAutoSetSelection }}; -// virtual bool CanAutoSetSelection(); -static int LUACALL wxLua_wxRichTextStyleListBox_CanAutoSetSelection(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call CanAutoSetSelection - bool returns = (self->CanAutoSetSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxDC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxDC, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels[1] = {{ wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels }}; -// int ConvertTenthsMMToPixels(wxDC& dc, int units) const; -static int LUACALL wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels(lua_State *L) -{ - // int units - int units = (int)wxlua_getnumbertype(L, 3); - // wxDC dc - wxDC * dc = (wxDC *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDC); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call ConvertTenthsMMToPixels - int returns = (self->ConvertTenthsMMToPixels(*dc, units)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_Create[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_Create[1] = {{ wxLua_wxRichTextStyleListBox_Create, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_Create }}; -// const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxRichTextStyleListBox_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_CreateHTML[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_CreateHTML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_CreateHTML[1] = {{ wxLua_wxRichTextStyleListBox_CreateHTML, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_CreateHTML }}; -// wxString CreateHTML(wxRichTextStyleDefinition* def) const; -static int LUACALL wxLua_wxRichTextStyleListBox_CreateHTML(lua_State *L) -{ - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleDefinition); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call CreateHTML - wxString returns = (self->CreateHTML(def)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetApplyOnSelection[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetApplyOnSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetApplyOnSelection[1] = {{ wxLua_wxRichTextStyleListBox_GetApplyOnSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetApplyOnSelection }}; -// bool GetApplyOnSelection() const; -static int LUACALL wxLua_wxRichTextStyleListBox_GetApplyOnSelection(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call GetApplyOnSelection - bool returns = (self->GetApplyOnSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetIndexForStyle[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetIndexForStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetIndexForStyle[1] = {{ wxLua_wxRichTextStyleListBox_GetIndexForStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetIndexForStyle }}; -// int GetIndexForStyle(const wxString& name) const ; -static int LUACALL wxLua_wxRichTextStyleListBox_GetIndexForStyle(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call GetIndexForStyle - int returns = (self->GetIndexForStyle(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetRichTextCtrl[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleListBox_GetRichTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetRichTextCtrl }}; -// wxRichTextCtrl* GetRichTextCtrl() const; -static int LUACALL wxLua_wxRichTextStyleListBox_GetRichTextCtrl(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call GetRichTextCtrl - wxRichTextCtrl* returns = (wxRichTextCtrl*)self->GetRichTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyle[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyle[1] = {{ wxLua_wxRichTextStyleListBox_GetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyle }}; -// wxRichTextStyleDefinition* GetStyle(size_t i) const ; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyle(lua_State *L) -{ - // size_t i - size_t i = (size_t)wxlua_getuintegertype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call GetStyle - wxRichTextStyleDefinition* returns = (wxRichTextStyleDefinition*)self->GetStyle(i); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleDefinition); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyleSheet[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyleSheet[1] = {{ wxLua_wxRichTextStyleListBox_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyleSheet }}; -// wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime[] = { &wxluatype_wxRichTextCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime[1] = {{ wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime }}; -// static wxString GetStyleToShowInIdleTime(wxRichTextCtrl* ctrl, wxRichTextStyleListBox::wxRichTextStyleType styleType); -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime(lua_State *L) -{ - // wxRichTextStyleListBox::wxRichTextStyleType styleType - wxRichTextStyleListBox::wxRichTextStyleType styleType = (wxRichTextStyleListBox::wxRichTextStyleType)wxlua_getenumtype(L, 2); - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextCtrl); - // call GetStyleToShowInIdleTime - wxString returns = (wxRichTextStyleListBox::GetStyleToShowInIdleTime(ctrl, styleType)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyleType[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyleType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyleType[1] = {{ wxLua_wxRichTextStyleListBox_GetStyleType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_GetStyleType }}; -// wxRichTextStyleListBox::wxRichTextStyleType GetStyleType() const; -static int LUACALL wxLua_wxRichTextStyleListBox_GetStyleType(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call GetStyleType - wxRichTextStyleListBox::wxRichTextStyleType returns = (self->GetStyleType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_Init[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_Init[1] = {{ wxLua_wxRichTextStyleListBox_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextStyleListBox_Init(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_OnIdle[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxIdleEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_OnIdle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_OnIdle[1] = {{ wxLua_wxRichTextStyleListBox_OnIdle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_OnIdle }}; -// void OnIdle(wxIdleEvent& event); -static int LUACALL wxLua_wxRichTextStyleListBox_OnIdle(lua_State *L) -{ - // wxIdleEvent event - wxIdleEvent * event = (wxIdleEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIdleEvent); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call OnIdle - self->OnIdle(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_OnLeftDoubleClick[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_OnLeftDoubleClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_OnLeftDoubleClick[1] = {{ wxLua_wxRichTextStyleListBox_OnLeftDoubleClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_OnLeftDoubleClick }}; -// void OnLeftDoubleClick(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextStyleListBox_OnLeftDoubleClick(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call OnLeftDoubleClick - self->OnLeftDoubleClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_OnLeftDown[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxMouseEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_OnLeftDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_OnLeftDown[1] = {{ wxLua_wxRichTextStyleListBox_OnLeftDown, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_OnLeftDown }}; -// void OnLeftDown(wxMouseEvent& event); -static int LUACALL wxLua_wxRichTextStyleListBox_OnLeftDown(lua_State *L) -{ - // wxMouseEvent event - wxMouseEvent * event = (wxMouseEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMouseEvent); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call OnLeftDown - self->OnLeftDown(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetApplyOnSelection[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_SetApplyOnSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_SetApplyOnSelection[1] = {{ wxLua_wxRichTextStyleListBox_SetApplyOnSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetApplyOnSelection }}; -// void SetApplyOnSelection(bool applyOnSel); -static int LUACALL wxLua_wxRichTextStyleListBox_SetApplyOnSelection(lua_State *L) -{ - // bool applyOnSel - bool applyOnSel = wxlua_getbooleantype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call SetApplyOnSelection - self->SetApplyOnSelection(applyOnSel); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetAutoSetSelection[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_SetAutoSetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_SetAutoSetSelection[1] = {{ wxLua_wxRichTextStyleListBox_SetAutoSetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetAutoSetSelection }}; -// virtual void SetAutoSetSelection(bool autoSet); -static int LUACALL wxLua_wxRichTextStyleListBox_SetAutoSetSelection(lua_State *L) -{ - // bool autoSet - bool autoSet = wxlua_getbooleantype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call SetAutoSetSelection - self->SetAutoSetSelection(autoSet); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetRichTextCtrl[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_SetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_SetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleListBox_SetRichTextCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetRichTextCtrl }}; -// void SetRichTextCtrl(wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextStyleListBox_SetRichTextCtrl(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call SetRichTextCtrl - self->SetRichTextCtrl(ctrl); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetStyleSelection[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_SetStyleSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_SetStyleSelection[1] = {{ wxLua_wxRichTextStyleListBox_SetStyleSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetStyleSelection }}; -// int SetStyleSelection(const wxString& name); -static int LUACALL wxLua_wxRichTextStyleListBox_SetStyleSelection(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call SetStyleSelection - int returns = (self->SetStyleSelection(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetStyleSheet[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_SetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_SetStyleSheet[1] = {{ wxLua_wxRichTextStyleListBox_SetStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetStyleSheet }}; -// void SetStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextStyleListBox_SetStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call SetStyleSheet - self->SetStyleSheet(styleSheet); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetStyleType[] = { &wxluatype_wxRichTextStyleListBox, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_SetStyleType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_SetStyleType[1] = {{ wxLua_wxRichTextStyleListBox_SetStyleType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_SetStyleType }}; -// void SetStyleType(wxRichTextStyleListBox::wxRichTextStyleType styleType); -static int LUACALL wxLua_wxRichTextStyleListBox_SetStyleType(lua_State *L) -{ - // wxRichTextStyleListBox::wxRichTextStyleType styleType - wxRichTextStyleListBox::wxRichTextStyleType styleType = (wxRichTextStyleListBox::wxRichTextStyleType)wxlua_getenumtype(L, 2); - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call SetStyleType - self->SetStyleType(styleType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_UpdateStyles[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_UpdateStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_UpdateStyles[1] = {{ wxLua_wxRichTextStyleListBox_UpdateStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_UpdateStyles }}; -// void UpdateStyles(); -static int LUACALL wxLua_wxRichTextStyleListBox_UpdateStyles(lua_State *L) -{ - // get this - wxRichTextStyleListBox * self = (wxRichTextStyleListBox *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListBox); - // call UpdateStyles - self->UpdateStyles(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_delete[] = { &wxluatype_wxRichTextStyleListBox, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_delete }}; - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListBox_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListBox_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor1[1] = {{ wxLua_wxRichTextStyleListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_constructor1 }}; -// const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxRichTextStyleListBox_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxRichTextStyleListBox* returns = new wxRichTextStyleListBox(parent, id, *pos, *size, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleListBox); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleListBox); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxRichTextStyleListBox_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor[1] = {{ wxLua_wxRichTextStyleListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextStyleListBox(); -static int LUACALL wxLua_wxRichTextStyleListBox_constructor(lua_State *L) -{ - // call constructor - wxRichTextStyleListBox* returns = new wxRichTextStyleListBox(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleListBox); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleListBox); - - return 1; -} - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextStyleListBox_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxRichTextStyleListBox_constructor1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextStyleListBox_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) - -void wxLua_wxRichTextStyleListBox_delete_function(void** p) -{ - wxRichTextStyleListBox* o = (wxRichTextStyleListBox*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStyleListBox_methods[] = { - { "ApplyStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_ApplyStyle, 1, NULL }, - { "CanAutoSetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_CanAutoSetSelection, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxDC) - { "ConvertTenthsMMToPixels", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_ConvertTenthsMMToPixels, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxDC) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "CreateHTML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_CreateHTML, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetApplyOnSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetApplyOnSelection, 1, NULL }, - { "GetIndexForStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetIndexForStyle, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetRichTextCtrl, 1, NULL }, - { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyle, 1, NULL }, - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyleSheet, 1, NULL }, - { "GetStyleToShowInIdleTime", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyleToShowInIdleTime, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetStyleType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_GetStyleType, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_Init, 1, NULL }, - { "OnIdle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_OnIdle, 1, NULL }, - { "OnLeftDoubleClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_OnLeftDoubleClick, 1, NULL }, - { "OnLeftDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_OnLeftDown, 1, NULL }, - { "SetApplyOnSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_SetApplyOnSelection, 1, NULL }, - { "SetAutoSetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_SetAutoSetSelection, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_SetRichTextCtrl, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetStyleSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_SetStyleSelection, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_SetStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetStyleType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_SetStyleType, 1, NULL }, - { "UpdateStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListBox_UpdateStyles, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStyleListBox_delete, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) - { "wxRichTextStyleListBox", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor_overload, s_wxluafunc_wxLua_wxRichTextStyleListBox_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStyleListBox_methodCount = sizeof(wxRichTextStyleListBox_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxRichTextStyleListBox_enums[] = { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - { "wxRICHTEXT_STYLE_ALL", wxRichTextStyleListBox::wxRICHTEXT_STYLE_ALL }, - { "wxRICHTEXT_STYLE_BOX", wxRichTextStyleListBox::wxRICHTEXT_STYLE_BOX }, - { "wxRICHTEXT_STYLE_CHARACTER", wxRichTextStyleListBox::wxRICHTEXT_STYLE_CHARACTER }, - { "wxRICHTEXT_STYLE_LIST", wxRichTextStyleListBox::wxRICHTEXT_STYLE_LIST }, - { "wxRICHTEXT_STYLE_PARAGRAPH", wxRichTextStyleListBox::wxRICHTEXT_STYLE_PARAGRAPH }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - - { NULL, 0, }, -}; -int wxRichTextStyleListBox_enumCount = sizeof(wxRichTextStyleListBox_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxRichTextStyleListCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStyleListCtrl' -int wxluatype_wxRichTextStyleListCtrl = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_Create[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_Create[1] = {{ wxLua_wxRichTextStyleListCtrl_Create, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_Create }}; -// const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxRichTextStyleListCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl }}; -// wxRichTextCtrl* GetRichTextCtrl() const; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call GetRichTextCtrl - wxRichTextCtrl* returns = (wxRichTextCtrl*)self->GetRichTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxChoice && wxUSE_CHOICE) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleChoice[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleChoice(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleChoice[1] = {{ wxLua_wxRichTextStyleListCtrl_GetStyleChoice, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleChoice }}; -// wxChoice* GetStyleChoice() const; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleChoice(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call GetStyleChoice - wxChoice* returns = (wxChoice*)self->GetStyleChoice(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxChoice); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxChoice && wxUSE_CHOICE) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleListBox[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleListBox(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleListBox[1] = {{ wxLua_wxRichTextStyleListCtrl_GetStyleListBox, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleListBox }}; -// wxRichTextStyleListBox* GetStyleListBox() const; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleListBox(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call GetStyleListBox - wxRichTextStyleListBox* returns = (wxRichTextStyleListBox*)self->GetStyleListBox(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleListBox); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleSheet[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleSheet[1] = {{ wxLua_wxRichTextStyleListCtrl_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleSheet }}; -// wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleType[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleType[1] = {{ wxLua_wxRichTextStyleListCtrl_GetStyleType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_GetStyleType }}; -// wxRichTextStyleListBox::wxRichTextStyleType GetStyleType() const; -static int LUACALL wxLua_wxRichTextStyleListCtrl_GetStyleType(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call GetStyleType - wxRichTextStyleListBox::wxRichTextStyleType returns = (self->GetStyleType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_Init[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_Init[1] = {{ wxLua_wxRichTextStyleListCtrl_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextStyleListCtrl_Init(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_OnChooseType[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_OnChooseType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_OnChooseType[1] = {{ wxLua_wxRichTextStyleListCtrl_OnChooseType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_OnChooseType }}; -// void OnChooseType(wxCommandEvent& event); -static int LUACALL wxLua_wxRichTextStyleListCtrl_OnChooseType(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call OnChooseType - self->OnChooseType(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_OnSize[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_wxSizeEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_OnSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_OnSize[1] = {{ wxLua_wxRichTextStyleListCtrl_OnSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_OnSize }}; -// void OnSize(wxSizeEvent& event); -static int LUACALL wxLua_wxRichTextStyleListCtrl_OnSize(lua_State *L) -{ - // wxSizeEvent event - wxSizeEvent * event = (wxSizeEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizeEvent); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call OnSize - self->OnSize(*event); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl }}; -// void SetRichTextCtrl(wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call SetRichTextCtrl - self->SetRichTextCtrl(ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_SetStyleSheet[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_SetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_SetStyleSheet[1] = {{ wxLua_wxRichTextStyleListCtrl_SetStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_SetStyleSheet }}; -// void SetStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextStyleListCtrl_SetStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call SetStyleSheet - self->SetStyleSheet(styleSheet); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_SetStyleType[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_SetStyleType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_SetStyleType[1] = {{ wxLua_wxRichTextStyleListCtrl_SetStyleType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_SetStyleType }}; -// void SetStyleType(wxRichTextStyleListBox::wxRichTextStyleType styleType); -static int LUACALL wxLua_wxRichTextStyleListCtrl_SetStyleType(lua_State *L) -{ - // wxRichTextStyleListBox::wxRichTextStyleType styleType - wxRichTextStyleListBox::wxRichTextStyleType styleType = (wxRichTextStyleListBox::wxRichTextStyleType)wxlua_getenumtype(L, 2); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call SetStyleType - self->SetStyleType(styleType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_StyleIndexToType[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_StyleIndexToType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_StyleIndexToType[1] = {{ wxLua_wxRichTextStyleListCtrl_StyleIndexToType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_StyleIndexToType }}; -// wxRichTextStyleListBox::wxRichTextStyleType StyleIndexToType(int i); -static int LUACALL wxLua_wxRichTextStyleListCtrl_StyleIndexToType(lua_State *L) -{ - // int i - int i = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call StyleIndexToType - wxRichTextStyleListBox::wxRichTextStyleType returns = (self->StyleIndexToType(i)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex[] = { &wxluatype_wxRichTextStyleListCtrl, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex[1] = {{ wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex }}; -// int StyleTypeToIndex(wxRichTextStyleListBox::wxRichTextStyleType styleType); -static int LUACALL wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex(lua_State *L) -{ - // wxRichTextStyleListBox::wxRichTextStyleType styleType - wxRichTextStyleListBox::wxRichTextStyleType styleType = (wxRichTextStyleListBox::wxRichTextStyleType)wxlua_getenumtype(L, 2); - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call StyleTypeToIndex - int returns = (self->StyleTypeToIndex(styleType)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_UpdateStyles[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_UpdateStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_UpdateStyles[1] = {{ wxLua_wxRichTextStyleListCtrl_UpdateStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_UpdateStyles }}; -// void UpdateStyles(); -static int LUACALL wxLua_wxRichTextStyleListCtrl_UpdateStyles(lua_State *L) -{ - // get this - wxRichTextStyleListCtrl * self = (wxRichTextStyleListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleListCtrl); - // call UpdateStyles - self->UpdateStyles(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_delete[] = { &wxluatype_wxRichTextStyleListCtrl, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_delete }}; - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleListCtrl_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor1[1] = {{ wxLua_wxRichTextStyleListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_constructor1 }}; -// const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxRichTextStyleListCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxRichTextStyleListCtrl* returns = new wxRichTextStyleListCtrl(parent, id, *pos, *size, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleListCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleListCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxRichTextStyleListCtrl_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor[1] = {{ wxLua_wxRichTextStyleListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextStyleListCtrl(); -static int LUACALL wxLua_wxRichTextStyleListCtrl_constructor(lua_State *L) -{ - // call constructor - wxRichTextStyleListCtrl* returns = new wxRichTextStyleListCtrl(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleListCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleListCtrl); - - return 1; -} - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextStyleListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxRichTextStyleListCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextStyleListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) - -void wxLua_wxRichTextStyleListCtrl_delete_function(void** p) -{ - wxRichTextStyleListCtrl* o = (wxRichTextStyleListCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStyleListCtrl_methods[] = { -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetRichTextCtrl, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxChoice && wxUSE_CHOICE) - { "GetStyleChoice", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleChoice, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxChoice && wxUSE_CHOICE) - - { "GetStyleListBox", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleListBox, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetStyleType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_GetStyleType, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_Init, 1, NULL }, - { "OnChooseType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_OnChooseType, 1, NULL }, - { "OnSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_OnSize, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_SetRichTextCtrl, 1, NULL }, - { "SetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_SetStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetStyleType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_SetStyleType, 1, NULL }, - { "StyleIndexToType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_StyleIndexToType, 1, NULL }, - { "StyleTypeToIndex", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_StyleTypeToIndex, 1, NULL }, - { "UpdateStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_UpdateStyles, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_delete, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) - { "wxRichTextStyleListCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor_overload, s_wxluafunc_wxLua_wxRichTextStyleListCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStyleListCtrl_methodCount = sizeof(wxRichTextStyleListCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) -// --------------------------------------------------------------------------- -// Bind class wxRichTextStyleComboCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextStyleComboCtrl' -int wxluatype_wxRichTextStyleComboCtrl = WXLUA_TUNKNOWN; - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_Create[] = { &wxluatype_wxRichTextStyleComboCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_Create[1] = {{ wxLua_wxRichTextStyleComboCtrl_Create, WXLUAMETHOD_METHOD, 2, 6, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_Create }}; -// const wxSize& size = wxDefaultSize, long style = 0); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl[] = { &wxluatype_wxRichTextStyleComboCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl }}; -// wxRichTextCtrl* GetRichTextCtrl() const; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl(lua_State *L) -{ - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call GetRichTextCtrl - wxRichTextCtrl* returns = (wxRichTextCtrl*)self->GetRichTextCtrl(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextCtrl); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_GetStyleSheet[] = { &wxluatype_wxRichTextStyleComboCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_GetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_GetStyleSheet[1] = {{ wxLua_wxRichTextStyleComboCtrl_GetStyleSheet, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_GetStyleSheet }}; -// wxRichTextStyleSheet* GetStyleSheet() const; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_GetStyleSheet(lua_State *L) -{ - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call GetStyleSheet - wxRichTextStyleSheet* returns = (wxRichTextStyleSheet*)self->GetStyleSheet(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleSheet); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_Init[] = { &wxluatype_wxRichTextStyleComboCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_Init[1] = {{ wxLua_wxRichTextStyleComboCtrl_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_Init(lua_State *L) -{ - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_OnIdle[] = { &wxluatype_wxRichTextStyleComboCtrl, &wxluatype_wxIdleEvent, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_OnIdle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_OnIdle[1] = {{ wxLua_wxRichTextStyleComboCtrl_OnIdle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_OnIdle }}; -// void OnIdle(wxIdleEvent& event); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_OnIdle(lua_State *L) -{ - // wxIdleEvent event - wxIdleEvent * event = (wxIdleEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxIdleEvent); - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call OnIdle - self->OnIdle(*event); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl[] = { &wxluatype_wxRichTextStyleComboCtrl, &wxluatype_wxRichTextCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl[1] = {{ wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl }}; -// void SetRichTextCtrl(wxRichTextCtrl* ctrl); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl(lua_State *L) -{ - // wxRichTextCtrl ctrl - wxRichTextCtrl * ctrl = (wxRichTextCtrl *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextCtrl); - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call SetRichTextCtrl - self->SetRichTextCtrl(ctrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_SetStyleSheet[] = { &wxluatype_wxRichTextStyleComboCtrl, &wxluatype_wxRichTextStyleSheet, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_SetStyleSheet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_SetStyleSheet[1] = {{ wxLua_wxRichTextStyleComboCtrl_SetStyleSheet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_SetStyleSheet }}; -// void SetStyleSheet(wxRichTextStyleSheet* styleSheet); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_SetStyleSheet(lua_State *L) -{ - // wxRichTextStyleSheet styleSheet - wxRichTextStyleSheet * styleSheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call SetStyleSheet - self->SetStyleSheet(styleSheet); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_UpdateStyles[] = { &wxluatype_wxRichTextStyleComboCtrl, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_UpdateStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_UpdateStyles[1] = {{ wxLua_wxRichTextStyleComboCtrl_UpdateStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_UpdateStyles }}; -// void UpdateStyles(); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_UpdateStyles(lua_State *L) -{ - // get this - wxRichTextStyleComboCtrl * self = (wxRichTextStyleComboCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextStyleComboCtrl); - // call UpdateStyles - self->UpdateStyles(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_delete[] = { &wxluatype_wxRichTextStyleComboCtrl, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_delete }}; - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextStyleComboCtrl_constructor1(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor1[1] = {{ wxLua_wxRichTextStyleComboCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_constructor1 }}; -// const wxSize& size = wxDefaultSize, long style = wxCB_READONLY); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = wxCB_READONLY - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : wxCB_READONLY); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxRichTextStyleComboCtrl* returns = new wxRichTextStyleComboCtrl(parent, id, *pos, *size, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleComboCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleComboCtrl); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -static int LUACALL wxLua_wxRichTextStyleComboCtrl_constructor(lua_State *L); -// // // static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor[1] = {{ wxLua_wxRichTextStyleComboCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextStyleComboCtrl(); -static int LUACALL wxLua_wxRichTextStyleComboCtrl_constructor(lua_State *L) -{ - // call constructor - wxRichTextStyleComboCtrl* returns = new wxRichTextStyleComboCtrl(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextStyleComboCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextStyleComboCtrl); - - return 1; -} - - - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextStyleComboCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 5, s_wxluatypeArray_wxLua_wxRichTextStyleComboCtrl_constructor1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxRichTextStyleComboCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) - -void wxLua_wxRichTextStyleComboCtrl_delete_function(void** p) -{ - wxRichTextStyleComboCtrl* o = (wxRichTextStyleComboCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextStyleComboCtrl_methods[] = { -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_Create, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_GetRichTextCtrl, 1, NULL }, - { "GetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_GetStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_Init, 1, NULL }, - { "OnIdle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_OnIdle, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetRichTextCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_SetRichTextCtrl, 1, NULL }, - { "SetStyleSheet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_SetStyleSheet, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "UpdateStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_UpdateStyles, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_delete, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) - { "wxRichTextStyleComboCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor_overload, s_wxluafunc_wxLua_wxRichTextStyleComboCtrl_constructor_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) && (wxLUA_USE_wxPointSizeRect))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextStyleComboCtrl_methodCount = sizeof(wxRichTextStyleComboCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxrichtext_symboldlg.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxSymbolPickerDialog -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSymbolPickerDialog' -int wxluatype_wxSymbolPickerDialog = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Create[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Create[1] = {{ wxLua_wxSymbolPickerDialog_Create, WXLUAMETHOD_METHOD, 5, 10, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Create }}; -// wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = "Symbols", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = SYMBOL_WXSYMBOLPICKERDIALOG_STYLE ); -static int LUACALL wxLua_wxSymbolPickerDialog_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = SYMBOL_WXSYMBOLPICKERDIALOG_STYLE - long style = (argCount >= 10 ? (long)wxlua_getnumbertype(L, 10) : SYMBOL_WXSYMBOLPICKERDIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 9 ? (const wxSize *)wxluaT_getuserdatatype(L, 9, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 8 ? (const wxPoint *)wxluaT_getuserdatatype(L, 8, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString caption = "Symbols" - const wxString caption = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxT("Symbols"))); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 6 ? (wxWindowID)wxlua_getnumbertype(L, 6) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 5, wxluatype_wxWindow); - // const wxString normalTextFont - const wxString normalTextFont = wxlua_getwxStringtype(L, 4); - // const wxString fontName - const wxString fontName = wxlua_getwxStringtype(L, 3); - // const wxString symbol - const wxString symbol = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call Create - bool returns = (self->Create(symbol, fontName, normalTextFont, parent, id, caption, *pos, *size, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_CreateControls[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_CreateControls(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_CreateControls[1] = {{ wxLua_wxSymbolPickerDialog_CreateControls, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_CreateControls }}; -// void CreateControls(); -static int LUACALL wxLua_wxSymbolPickerDialog_CreateControls(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call CreateControls - self->CreateControls(); - - return 0; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetBitmapResource[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetBitmapResource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetBitmapResource[1] = {{ wxLua_wxSymbolPickerDialog_GetBitmapResource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetBitmapResource }}; -// wxBitmap GetBitmapResource( const wxString& name ); -static int LUACALL wxLua_wxSymbolPickerDialog_GetBitmapResource(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetBitmapResource - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->GetBitmapResource(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetFontName[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetFontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetFontName[1] = {{ wxLua_wxSymbolPickerDialog_GetFontName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetFontName }}; -// wxString GetFontName() const; -static int LUACALL wxLua_wxSymbolPickerDialog_GetFontName(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetFontName - wxString returns = (self->GetFontName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetFromUnicode[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetFromUnicode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetFromUnicode[1] = {{ wxLua_wxSymbolPickerDialog_GetFromUnicode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetFromUnicode }}; -// bool GetFromUnicode() const; -static int LUACALL wxLua_wxSymbolPickerDialog_GetFromUnicode(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetFromUnicode - bool returns = (self->GetFromUnicode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetIconResource[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetIconResource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetIconResource[1] = {{ wxLua_wxSymbolPickerDialog_GetIconResource, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetIconResource }}; -// wxIcon GetIconResource( const wxString& name ); -static int LUACALL wxLua_wxSymbolPickerDialog_GetIconResource(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetIconResource - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->GetIconResource(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetNormalTextFontName[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetNormalTextFontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetNormalTextFontName[1] = {{ wxLua_wxSymbolPickerDialog_GetNormalTextFontName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetNormalTextFontName }}; -// wxString GetNormalTextFontName() const; -static int LUACALL wxLua_wxSymbolPickerDialog_GetNormalTextFontName(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetNormalTextFontName - wxString returns = (self->GetNormalTextFontName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetSymbol[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetSymbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetSymbol[1] = {{ wxLua_wxSymbolPickerDialog_GetSymbol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetSymbol }}; -// wxString GetSymbol() const; -static int LUACALL wxLua_wxSymbolPickerDialog_GetSymbol(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetSymbol - wxString returns = (self->GetSymbol()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetSymbolChar[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_GetSymbolChar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_GetSymbolChar[1] = {{ wxLua_wxSymbolPickerDialog_GetSymbolChar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_GetSymbolChar }}; -// int GetSymbolChar() const; -static int LUACALL wxLua_wxSymbolPickerDialog_GetSymbolChar(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call GetSymbolChar - int returns = (self->GetSymbolChar()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl }}; -// wxTextCtrl* m_characterCodeCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_characterCodeCtrl, wxluatype_wxTextCtrl); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_dontUpdate[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_dontUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_dontUpdate[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_dontUpdate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_dontUpdate }}; -// bool m_dontUpdate; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_dontUpdate(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result flag - lua_pushboolean(L, self->m_dontUpdate); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fontCtrl[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fontCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fontCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_fontCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fontCtrl }}; -// wxComboBox* m_fontCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fontCtrl(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_fontCtrl, wxluatype_wxComboBox); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fontName[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fontName[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_fontName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fontName }}; -// wxString m_fontName; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fontName(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result string - wxlua_pushwxString(L, self->m_fontName); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fromUnicode[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fromUnicode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fromUnicode[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_fromUnicode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fromUnicode }}; -// bool m_fromUnicode; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fromUnicode(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result flag - lua_pushboolean(L, self->m_fromUnicode); - // return the number of values - return 1; -} - - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl }}; -// wxComboBox* m_fromUnicodeCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_fromUnicodeCtrl, wxluatype_wxComboBox); - // return the number of values - return 1; -} - -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName }}; -// wxString m_normalTextFontName; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result string - wxlua_pushwxString(L, self->m_normalTextFontName); - // return the number of values - return 1; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer }}; -// wxStdDialogButtonSizer* m_stdButtonSizer; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_stdButtonSizer, wxluatype_wxStdDialogButtonSizer); - // return the number of values - return 1; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl }}; -// wxComboBox* m_subsetCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_subsetCtrl, wxluatype_wxComboBox); - // return the number of values - return 1; -} - -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_symbol[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_symbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbol[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_symbol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_symbol }}; -// wxString m_symbol; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_symbol(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result string - wxlua_pushwxString(L, self->m_symbol); - // return the number of values - return 1; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl }}; -// wxStaticText* m_symbolStaticCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_symbolStaticCtrl, wxluatype_wxStaticText); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl }}; -// wxSymbolListCtrl* m_symbolsCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl(lua_State *L) -{ - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // push the result datatype - wxluaT_pushuserdatatype(L, self->m_symbolsCtrl, wxluatype_wxSymbolListCtrl); - // return the number of values - return 1; -} - -static int LUACALL wxLua_wxSymbolPickerDialog_Get_sm_showToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_sm_showToolTips[1] = {{ wxLua_wxSymbolPickerDialog_Get_sm_showToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, g_wxluaargtypeArray_None }}; -// static bool sm_showToolTips; -static int LUACALL wxLua_wxSymbolPickerDialog_Get_sm_showToolTips(lua_State *L) -{ - // push the result flag - lua_pushboolean(L, wxSymbolPickerDialog::sm_showToolTips); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_HasSelection[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_HasSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_HasSelection[1] = {{ wxLua_wxSymbolPickerDialog_HasSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_HasSelection }}; -// bool HasSelection() const; -static int LUACALL wxLua_wxSymbolPickerDialog_HasSelection(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call HasSelection - bool returns = (self->HasSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Init[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Init[1] = {{ wxLua_wxSymbolPickerDialog_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Init }}; -// void Init(); -static int LUACALL wxLua_wxSymbolPickerDialog_Init(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnFontCtrlSelected[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnFontCtrlSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnFontCtrlSelected[1] = {{ wxLua_wxSymbolPickerDialog_OnFontCtrlSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnFontCtrlSelected }}; -// void OnFontCtrlSelected( wxCommandEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnFontCtrlSelected(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnFontCtrlSelected - self->OnFontCtrlSelected(*event); - - return 0; -} - - -#if (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected[1] = {{ wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected }}; -// void OnFromUnicodeSelected( wxCommandEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnFromUnicodeSelected - self->OnFromUnicodeSelected(*event); - - return 0; -} - -#endif // (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnHelpClick[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnHelpClick(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnHelpClick[1] = {{ wxLua_wxSymbolPickerDialog_OnHelpClick, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnHelpClick }}; -// void OnHelpClick( wxCommandEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnHelpClick(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnHelpClick - self->OnHelpClick(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnHelpUpdate[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnHelpUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnHelpUpdate[1] = {{ wxLua_wxSymbolPickerDialog_OnHelpUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnHelpUpdate }}; -// void OnHelpUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnHelpUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnHelpUpdate - self->OnHelpUpdate(*event); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnOkUpdate[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnOkUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnOkUpdate[1] = {{ wxLua_wxSymbolPickerDialog_OnOkUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnOkUpdate }}; -// void OnOkUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnOkUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnOkUpdate - self->OnOkUpdate(*event); - - return 0; -} - - -#if (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnSubsetSelected[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnSubsetSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnSubsetSelected[1] = {{ wxLua_wxSymbolPickerDialog_OnSubsetSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnSubsetSelected }}; -// void OnSubsetSelected( wxCommandEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnSubsetSelected(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnSubsetSelected - self->OnSubsetSelected(*event); - - return 0; -} - -#endif // (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnSymbolSelected[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxCommandEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnSymbolSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnSymbolSelected[1] = {{ wxLua_wxSymbolPickerDialog_OnSymbolSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnSymbolSelected }}; -// void OnSymbolSelected( wxCommandEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnSymbolSelected(lua_State *L) -{ - // wxCommandEvent event - wxCommandEvent * event = (wxCommandEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxCommandEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnSymbolSelected - self->OnSymbolSelected(*event); - - return 0; -} - - -#if (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxUpdateUIEvent, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate[1] = {{ wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate }}; -// void OnSymbolpickerdialogSubsetUpdate( wxUpdateUIEvent& event ); -static int LUACALL wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate(lua_State *L) -{ - // wxUpdateUIEvent event - wxUpdateUIEvent * event = (wxUpdateUIEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxUpdateUIEvent); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call OnSymbolpickerdialogSubsetUpdate - self->OnSymbolpickerdialogSubsetUpdate(*event); - - return 0; -} - -#endif // (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetFontName[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_SetFontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_SetFontName[1] = {{ wxLua_wxSymbolPickerDialog_SetFontName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetFontName }}; -// void SetFontName(wxString value); -static int LUACALL wxLua_wxSymbolPickerDialog_SetFontName(lua_State *L) -{ - // wxString value - wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call SetFontName - self->SetFontName(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetFromUnicode[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_SetFromUnicode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_SetFromUnicode[1] = {{ wxLua_wxSymbolPickerDialog_SetFromUnicode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetFromUnicode }}; -// void SetFromUnicode(bool value); -static int LUACALL wxLua_wxSymbolPickerDialog_SetFromUnicode(lua_State *L) -{ - // bool value - bool value = wxlua_getbooleantype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call SetFromUnicode - self->SetFromUnicode(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetNormalTextFontName[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_SetNormalTextFontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_SetNormalTextFontName[1] = {{ wxLua_wxSymbolPickerDialog_SetNormalTextFontName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetNormalTextFontName }}; -// void SetNormalTextFontName(wxString value); -static int LUACALL wxLua_wxSymbolPickerDialog_SetNormalTextFontName(lua_State *L) -{ - // wxString value - wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call SetNormalTextFontName - self->SetNormalTextFontName(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetShowToolTips[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_SetShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_SetShowToolTips[1] = {{ wxLua_wxSymbolPickerDialog_SetShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetShowToolTips }}; -// static void SetShowToolTips(bool show); -static int LUACALL wxLua_wxSymbolPickerDialog_SetShowToolTips(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 1); - // call SetShowToolTips - wxSymbolPickerDialog::SetShowToolTips(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetSymbol[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_SetSymbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_SetSymbol[1] = {{ wxLua_wxSymbolPickerDialog_SetSymbol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetSymbol }}; -// void SetSymbol(wxString value); -static int LUACALL wxLua_wxSymbolPickerDialog_SetSymbol(lua_State *L) -{ - // wxString value - wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call SetSymbol - self->SetSymbol(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetUnicodeMode[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_SetUnicodeMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_SetUnicodeMode[1] = {{ wxLua_wxSymbolPickerDialog_SetUnicodeMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_SetUnicodeMode }}; -// void SetUnicodeMode(bool unicodeMode); -static int LUACALL wxLua_wxSymbolPickerDialog_SetUnicodeMode(lua_State *L) -{ - // bool unicodeMode - bool unicodeMode = wxlua_getbooleantype(L, 2); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call SetUnicodeMode - self->SetUnicodeMode(unicodeMode); - - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxTextCtrl, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl }}; -// wxTextCtrl* m_characterCodeCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl(lua_State *L) -{ - // get the data type value - wxTextCtrl* val = (wxTextCtrl*)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextCtrl); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_characterCodeCtrl = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_dontUpdate[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_dontUpdate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_dontUpdate[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_dontUpdate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_dontUpdate }}; -// bool m_dontUpdate; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_dontUpdate(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_dontUpdate = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fontCtrl[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fontCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fontCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_fontCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fontCtrl }}; -// wxComboBox* m_fontCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fontCtrl(lua_State *L) -{ - // get the data type value - wxComboBox* val = (wxComboBox*)wxluaT_getuserdatatype(L, 2, wxluatype_wxComboBox); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_fontCtrl = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fontName[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fontName[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_fontName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fontName }}; -// wxString m_fontName; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fontName(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_fontName = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fromUnicode[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fromUnicode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fromUnicode[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_fromUnicode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fromUnicode }}; -// bool m_fromUnicode; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fromUnicode(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_fromUnicode = val; - // return the number of values - return 0; -} - - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl }}; -// wxComboBox* m_fromUnicodeCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl(lua_State *L) -{ - // get the data type value - wxComboBox* val = (wxComboBox*)wxluaT_getuserdatatype(L, 2, wxluatype_wxComboBox); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_fromUnicodeCtrl = val; - // return the number of values - return 0; -} - -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName }}; -// wxString m_normalTextFontName; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_normalTextFontName = val; - // return the number of values - return 0; -} - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxStdDialogButtonSizer, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer }}; -// wxStdDialogButtonSizer* m_stdButtonSizer; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer(lua_State *L) -{ - // get the data type value - wxStdDialogButtonSizer* val = (wxStdDialogButtonSizer*)wxluaT_getuserdatatype(L, 2, wxluatype_wxStdDialogButtonSizer); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_stdButtonSizer = val; - // return the number of values - return 0; -} - -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxComboBox, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl }}; -// wxComboBox* m_subsetCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl(lua_State *L) -{ - // get the data type value - wxComboBox* val = (wxComboBox*)wxluaT_getuserdatatype(L, 2, wxluatype_wxComboBox); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_subsetCtrl = val; - // return the number of values - return 0; -} - -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_symbol[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_symbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbol[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_symbol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_symbol }}; -// wxString m_symbol; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_symbol(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_symbol = val; - // return the number of values - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxStaticText, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl }}; -// wxStaticText* m_symbolStaticCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl(lua_State *L) -{ - // get the data type value - wxStaticText* val = (wxStaticText*)wxluaT_getuserdatatype(L, 2, wxluatype_wxStaticText); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_symbolStaticCtrl = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl[1] = {{ wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl }}; -// wxSymbolListCtrl* m_symbolsCtrl; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl(lua_State *L) -{ - // get the data type value - wxSymbolListCtrl* val = (wxSymbolListCtrl*)wxluaT_getuserdatatype(L, 2, wxluatype_wxSymbolListCtrl); - // get this - wxSymbolPickerDialog *self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - self->m_symbolsCtrl = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_sm_showToolTips[] = { &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_sm_showToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_sm_showToolTips[1] = {{ wxLua_wxSymbolPickerDialog_Set_sm_showToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_Set_sm_showToolTips }}; -// static bool sm_showToolTips; -static int LUACALL wxLua_wxSymbolPickerDialog_Set_sm_showToolTips(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 1); - wxSymbolPickerDialog::sm_showToolTips = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_ShowAtSubset[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_ShowAtSubset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_ShowAtSubset[1] = {{ wxLua_wxSymbolPickerDialog_ShowAtSubset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_ShowAtSubset }}; -// void ShowAtSubset(); -static int LUACALL wxLua_wxSymbolPickerDialog_ShowAtSubset(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call ShowAtSubset - self->ShowAtSubset(); - - return 0; -} - -static int LUACALL wxLua_wxSymbolPickerDialog_ShowToolTips(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_ShowToolTips[1] = {{ wxLua_wxSymbolPickerDialog_ShowToolTips, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static bool ShowToolTips(); -static int LUACALL wxLua_wxSymbolPickerDialog_ShowToolTips(lua_State *L) -{ - // call ShowToolTips - bool returns = (wxSymbolPickerDialog::ShowToolTips()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_TransferDataToWindow[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_TransferDataToWindow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_TransferDataToWindow[1] = {{ wxLua_wxSymbolPickerDialog_TransferDataToWindow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_TransferDataToWindow }}; -// virtual bool TransferDataToWindow(); -static int LUACALL wxLua_wxSymbolPickerDialog_TransferDataToWindow(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call TransferDataToWindow - bool returns = (self->TransferDataToWindow()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay[] = { &wxluatype_wxSymbolPickerDialog, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay[1] = {{ wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay, WXLUAMETHOD_METHOD, 1, 3, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay }}; -// void UpdateSymbolDisplay(bool updateSymbolList = true, bool showAtSubset = true); -static int LUACALL wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool showAtSubset = true - bool showAtSubset = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : true); - // bool updateSymbolList = true - bool updateSymbolList = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call UpdateSymbolDisplay - self->UpdateSymbolDisplay(updateSymbolList, showAtSubset); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_UseNormalFont[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_UseNormalFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_UseNormalFont[1] = {{ wxLua_wxSymbolPickerDialog_UseNormalFont, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_UseNormalFont }}; -// bool UseNormalFont() const; -static int LUACALL wxLua_wxSymbolPickerDialog_UseNormalFont(lua_State *L) -{ - // get this - wxSymbolPickerDialog * self = (wxSymbolPickerDialog *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolPickerDialog); - // call UseNormalFont - bool returns = (self->UseNormalFont()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_delete[] = { &wxluatype_wxSymbolPickerDialog, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_delete }}; - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - -#if (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolPickerDialog_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolPickerDialog_constructor1(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor1[1] = {{ wxLua_wxSymbolPickerDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 9, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_constructor1 }}; -// wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& caption = "Symbols", const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = SYMBOL_WXSYMBOLPICKERDIALOG_STYLE ); -static int LUACALL wxLua_wxSymbolPickerDialog_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long style = SYMBOL_WXSYMBOLPICKERDIALOG_STYLE - long style = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : SYMBOL_WXSYMBOLPICKERDIALOG_STYLE); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 8 ? (const wxSize *)wxluaT_getuserdatatype(L, 8, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxluaT_getuserdatatype(L, 7, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString caption = "Symbols" - const wxString caption = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("Symbols"))); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 5 ? (wxWindowID)wxlua_getnumbertype(L, 5) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow); - // const wxString normalTextFont - const wxString normalTextFont = wxlua_getwxStringtype(L, 3); - // const wxString fontName - const wxString fontName = wxlua_getwxStringtype(L, 2); - // const wxString symbol - const wxString symbol = wxlua_getwxStringtype(L, 1); - // call constructor - wxSymbolPickerDialog* returns = new wxSymbolPickerDialog(symbol, fontName, normalTextFont, parent, id, caption, *pos, *size, style); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSymbolPickerDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSymbolPickerDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxSymbolPickerDialog_constructor(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor[1] = {{ wxLua_wxSymbolPickerDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSymbolPickerDialog( ); -static int LUACALL wxLua_wxSymbolPickerDialog_constructor(lua_State *L) -{ - // call constructor - wxSymbolPickerDialog* returns = new wxSymbolPickerDialog(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSymbolPickerDialog); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSymbolPickerDialog); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxSymbolPickerDialog_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 9, s_wxluatypeArray_wxLua_wxSymbolPickerDialog_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxSymbolPickerDialog_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxSymbolPickerDialog_delete_function(void** p) -{ - wxSymbolPickerDialog* o = (wxSymbolPickerDialog*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSymbolPickerDialog_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "CreateControls", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_CreateControls, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetBitmapResource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetBitmapResource, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetFontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetFontName, 1, NULL }, - { "GetFromUnicode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetFromUnicode, 1, NULL }, - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetIconResource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetIconResource, 1, NULL }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetNormalTextFontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetNormalTextFontName, 1, NULL }, - { "GetSymbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetSymbol, 1, NULL }, - { "GetSymbolChar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_GetSymbolChar, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - // %member { "Get_m_characterCodeCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - // %member { "Get_m_dontUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_dontUpdate, 1, NULL }, - -#if (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_fontCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fontCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Get_m_fontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fontName, 1, NULL }, - // %member { "Get_m_fromUnicode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fromUnicode, 1, NULL }, - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - // %member { "Get_m_fromUnicodeCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl, 1, NULL }, -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - // %member { "Get_m_normalTextFontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Get_m_stdButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - // %member { "Get_m_subsetCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl, 1, NULL }, -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - // %member { "Get_m_symbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbol, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - // %member { "Get_m_symbolStaticCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - - // %member { "Get_m_symbolsCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl, 1, NULL }, - // %member { "Get_sm_showToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_sm_showToolTips, 1, NULL }, - { "HasSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_HasSelection, 1, NULL }, - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Init, 1, NULL }, - { "OnFontCtrlSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnFontCtrlSelected, 1, NULL }, - -#if (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "OnFromUnicodeSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnFromUnicodeSelected, 1, NULL }, -#endif // (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "OnHelpClick", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnHelpClick, 1, NULL }, - { "OnHelpUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnHelpUpdate, 1, NULL }, - { "OnOkUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnOkUpdate, 1, NULL }, - -#if (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "OnSubsetSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnSubsetSelected, 1, NULL }, -#endif // (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "OnSymbolSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnSymbolSelected, 1, NULL }, - -#if (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "OnSymbolpickerdialogSubsetUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_OnSymbolpickerdialogSubsetUpdate, 1, NULL }, -#endif // (defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetFontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_SetFontName, 1, NULL }, - { "SetFromUnicode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_SetFromUnicode, 1, NULL }, - { "SetNormalTextFontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_SetNormalTextFontName, 1, NULL }, - { "SetShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolPickerDialog_SetShowToolTips, 1, NULL }, - { "SetSymbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_SetSymbol, 1, NULL }, - { "SetUnicodeMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_SetUnicodeMode, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - // %member { "Set_m_characterCodeCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - // %member { "Set_m_dontUpdate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_dontUpdate, 1, NULL }, - -#if (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_fontCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fontCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - // %member { "Set_m_fontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fontName, 1, NULL }, - // %member { "Set_m_fromUnicode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fromUnicode, 1, NULL }, - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - // %member { "Set_m_fromUnicodeCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl, 1, NULL }, -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - // %member { "Set_m_normalTextFontName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - // %member { "Set_m_stdButtonSizer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - // %member { "Set_m_subsetCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl, 1, NULL }, -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - // %member { "Set_m_symbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbol, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - // %member { "Set_m_symbolStaticCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - - // %member { "Set_m_symbolsCtrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl, 1, NULL }, - // %member { "Set_sm_showToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_sm_showToolTips, 1, NULL }, - { "ShowAtSubset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_ShowAtSubset, 1, NULL }, - { "ShowToolTips", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolPickerDialog_ShowToolTips, 1, NULL }, - { "TransferDataToWindow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_TransferDataToWindow, 1, NULL }, - { "UpdateSymbolDisplay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_UpdateSymbolDisplay, 1, NULL }, - { "UseNormalFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolPickerDialog_UseNormalFont, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSymbolPickerDialog_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "m_characterCodeCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_characterCodeCtrl, 1, NULL }, - { "m_characterCodeCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_characterCodeCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - - { "m_dontUpdate", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_dontUpdate, 1, NULL }, - { "m_dontUpdate", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_dontUpdate, 1, NULL }, - -#if (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_fontCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fontCtrl, 1, NULL }, - { "m_fontCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fontCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "m_fontName", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fontName, 1, NULL }, - { "m_fontName", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fontName, 1, NULL }, - { "m_fromUnicode", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fromUnicode, 1, NULL }, - { "m_fromUnicode", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fromUnicode, 1, NULL }, - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - { "m_fromUnicodeCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_fromUnicodeCtrl, 1, NULL }, - { "m_fromUnicodeCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_fromUnicodeCtrl, 1, NULL }, -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - { "m_normalTextFontName", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_normalTextFontName, 1, NULL }, - { "m_normalTextFontName", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_normalTextFontName, 1, NULL }, - -#if ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "m_stdButtonSizer", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_stdButtonSizer, 1, NULL }, - { "m_stdButtonSizer", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_stdButtonSizer, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxSizer) && (wxUSE_BUTTON)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - { "m_subsetCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_subsetCtrl, 1, NULL }, - { "m_subsetCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_subsetCtrl, 1, NULL }, -#endif // ((defined (__UNICODE__ )) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxComboBox && wxUSE_COMBOBOX) - - { "m_symbol", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbol, 1, NULL }, - { "m_symbol", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbol, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - { "m_symbolStaticCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbolStaticCtrl, 1, NULL }, - { "m_symbolStaticCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbolStaticCtrl, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxStaticText && wxUSE_STATTEXT) - - { "m_symbolsCtrl", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_m_symbolsCtrl, 1, NULL }, - { "m_symbolsCtrl", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_m_symbolsCtrl, 1, NULL }, - { "sm_showToolTips", WXLUAMETHOD_SETPROP|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolPickerDialog_Set_sm_showToolTips, 1, NULL }, - { "sm_showToolTips", WXLUAMETHOD_GETPROP|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolPickerDialog_Get_sm_showToolTips, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxSymbolPickerDialog", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor_overload, s_wxluafunc_wxLua_wxSymbolPickerDialog_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxSymbolPickerDialog_methodCount = sizeof(wxSymbolPickerDialog_methods)/sizeof(wxLuaBindMethod) - 1; - -wxLuaBindNumber wxSymbolPickerDialog_enums[] = { -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "ID_SYMBOLPICKERDIALOG", wxSymbolPickerDialog::ID_SYMBOLPICKERDIALOG }, - { "ID_SYMBOLPICKERDIALOG_CHARACTERCODE", wxSymbolPickerDialog::ID_SYMBOLPICKERDIALOG_CHARACTERCODE }, - { "ID_SYMBOLPICKERDIALOG_FONT", wxSymbolPickerDialog::ID_SYMBOLPICKERDIALOG_FONT }, - { "ID_SYMBOLPICKERDIALOG_FROM", wxSymbolPickerDialog::ID_SYMBOLPICKERDIALOG_FROM }, - { "ID_SYMBOLPICKERDIALOG_LISTCTRL", wxSymbolPickerDialog::ID_SYMBOLPICKERDIALOG_LISTCTRL }, - { "ID_SYMBOLPICKERDIALOG_SUBSET", wxSymbolPickerDialog::ID_SYMBOLPICKERDIALOG_SUBSET }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - { NULL, 0, }, -}; -int wxSymbolPickerDialog_enumCount = sizeof(wxSymbolPickerDialog_enums)/sizeof(wxLuaBindNumber) - 1; -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -// --------------------------------------------------------------------------- -// Bind class wxSymbolListCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxSymbolListCtrl' -int wxluatype_wxSymbolListCtrl = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_Create[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_Create[1] = {{ wxLua_wxSymbolListCtrl_Create, WXLUAMETHOD_METHOD, 2, 7, s_wxluatypeArray_wxLua_wxSymbolListCtrl_Create }}; -// const wxString& name = wxPanelNameStr); -static int LUACALL wxLua_wxSymbolListCtrl_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPanelNameStr - const wxString name = (argCount >= 7 ? wxlua_getwxStringtype(L, 7) : wxString(wxPanelNameStr)); - // long style = 0 - long style = (argCount >= 6 ? (long)wxlua_getnumbertype(L, 6) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call Create - bool returns = (self->Create(parent, id, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_EnsureVisible[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_EnsureVisible[1] = {{ wxLua_wxSymbolListCtrl_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_EnsureVisible }}; -// void EnsureVisible(int item); -static int LUACALL wxLua_wxSymbolListCtrl_EnsureVisible(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call EnsureVisible - self->EnsureVisible(item); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetCellSize[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetCellSize[1] = {{ wxLua_wxSymbolListCtrl_GetCellSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetCellSize }}; -// const wxSize& GetCellSize() const; -static int LUACALL wxLua_wxSymbolListCtrl_GetCellSize(lua_State *L) -{ - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call GetCellSize - const wxSize* returns = (const wxSize*)&self->GetCellSize(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSize); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetClassDefaultAttributes[] = { &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetClassDefaultAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetClassDefaultAttributes[1] = {{ wxLua_wxSymbolListCtrl_GetClassDefaultAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetClassDefaultAttributes }}; -// static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); -static int LUACALL wxLua_wxSymbolListCtrl_GetClassDefaultAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL - wxWindowVariant variant = (argCount >= 1 ? (wxWindowVariant)wxlua_getenumtype(L, 1) : wxWINDOW_VARIANT_NORMAL); - // call GetClassDefaultAttributes - // allocate a new object using the copy constructor - wxVisualAttributes* returns = new wxVisualAttributes(wxSymbolListCtrl::GetClassDefaultAttributes(variant)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVisualAttributes); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetDefaultAttributes[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetDefaultAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetDefaultAttributes[1] = {{ wxLua_wxSymbolListCtrl_GetDefaultAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetDefaultAttributes }}; -// virtual wxVisualAttributes GetDefaultAttributes() const; -static int LUACALL wxLua_wxSymbolListCtrl_GetDefaultAttributes(lua_State *L) -{ - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call GetDefaultAttributes - // allocate a new object using the copy constructor - wxVisualAttributes* returns = new wxVisualAttributes(self->GetDefaultAttributes()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVisualAttributes); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVisualAttributes); - - return 1; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetMargins[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetMargins[1] = {{ wxLua_wxSymbolListCtrl_GetMargins, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetMargins }}; -// wxPoint GetMargins() const; -static int LUACALL wxLua_wxSymbolListCtrl_GetMargins(lua_State *L) -{ - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call GetMargins - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->GetMargins()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetMaxSymbolValue[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetMaxSymbolValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetMaxSymbolValue[1] = {{ wxLua_wxSymbolListCtrl_GetMaxSymbolValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetMaxSymbolValue }}; -// int GetMaxSymbolValue() const; -static int LUACALL wxLua_wxSymbolListCtrl_GetMaxSymbolValue(lua_State *L) -{ - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call GetMaxSymbolValue - int returns = (self->GetMaxSymbolValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetMinSymbolValue[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetMinSymbolValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetMinSymbolValue[1] = {{ wxLua_wxSymbolListCtrl_GetMinSymbolValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetMinSymbolValue }}; -// int GetMinSymbolValue() const; -static int LUACALL wxLua_wxSymbolListCtrl_GetMinSymbolValue(lua_State *L) -{ - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call GetMinSymbolValue - int returns = (self->GetMinSymbolValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetSelectionBackground[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_GetSelectionBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_GetSelectionBackground[1] = {{ wxLua_wxSymbolListCtrl_GetSelectionBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_GetSelectionBackground }}; -// const wxColour& GetSelectionBackground() const; -static int LUACALL wxLua_wxSymbolListCtrl_GetSelectionBackground(lua_State *L) -{ - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call GetSelectionBackground - const wxColour* returns = (const wxColour*)&self->GetSelectionBackground(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_IsCurrentItem[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_IsCurrentItem(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_IsCurrentItem[1] = {{ wxLua_wxSymbolListCtrl_IsCurrentItem, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_IsCurrentItem }}; -// bool IsCurrentItem(int item) const; -static int LUACALL wxLua_wxSymbolListCtrl_IsCurrentItem(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call IsCurrentItem - bool returns = (self->IsCurrentItem(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_IsSelected[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_IsSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_IsSelected[1] = {{ wxLua_wxSymbolListCtrl_IsSelected, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_IsSelected }}; -// bool IsSelected(int item) const; -static int LUACALL wxLua_wxSymbolListCtrl_IsSelected(lua_State *L) -{ - // int item - int item = (int)wxlua_getnumbertype(L, 2); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call IsSelected - bool returns = (self->IsSelected(item)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_OnSize[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_wxSizeEvent, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_OnSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_OnSize[1] = {{ wxLua_wxSymbolListCtrl_OnSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_OnSize }}; -// void OnSize(wxSizeEvent& event); -static int LUACALL wxLua_wxSymbolListCtrl_OnSize(lua_State *L) -{ - // wxSizeEvent event - wxSizeEvent * event = (wxSizeEvent *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSizeEvent); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call OnSize - self->OnSize(*event); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetCellSize[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_wxSize, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetCellSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetCellSize[1] = {{ wxLua_wxSymbolListCtrl_SetCellSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetCellSize }}; -// void SetCellSize(const wxSize& sz); -static int LUACALL wxLua_wxSymbolListCtrl_SetCellSize(lua_State *L) -{ - // const wxSize sz - const wxSize * sz = (const wxSize *)wxluaT_getuserdatatype(L, 2, wxluatype_wxSize); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetCellSize - self->SetCellSize(*sz); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetFont[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetFont[1] = {{ wxLua_wxSymbolListCtrl_SetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetFont }}; -// virtual bool SetFont(const wxFont& font); -static int LUACALL wxLua_wxSymbolListCtrl_SetFont(lua_State *L) -{ - // const wxFont font - const wxFont * font = (const wxFont *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFont); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetFont - bool returns = (self->SetFont(*font)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetMargins1[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetMargins1(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins1[1] = {{ wxLua_wxSymbolListCtrl_SetMargins1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetMargins1 }}; -// void SetMargins(wxCoord x, wxCoord y); -static int LUACALL wxLua_wxSymbolListCtrl_SetMargins1(lua_State *L) -{ - // wxCoord y - wxCoord y = (wxCoord)wxlua_getnumbertype(L, 3); - // wxCoord x - wxCoord x = (wxCoord)wxlua_getnumbertype(L, 2); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetMargins - self->SetMargins(x, y); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetMargins[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetMargins(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins[1] = {{ wxLua_wxSymbolListCtrl_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetMargins }}; -// void SetMargins(const wxPoint& pt); -static int LUACALL wxLua_wxSymbolListCtrl_SetMargins(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetMargins - self->SetMargins(*pt); - - return 0; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetSelection[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetSelection[1] = {{ wxLua_wxSymbolListCtrl_SetSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetSelection }}; -// void SetSelection(int selection); -static int LUACALL wxLua_wxSymbolListCtrl_SetSelection(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetSelection - self->SetSelection(selection); - - return 0; -} - - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetSelectionBackground[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetSelectionBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetSelectionBackground[1] = {{ wxLua_wxSymbolListCtrl_SetSelectionBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetSelectionBackground }}; -// void SetSelectionBackground(const wxColour& col); -static int LUACALL wxLua_wxSymbolListCtrl_SetSelectionBackground(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetSelectionBackground - self->SetSelectionBackground(*col); - - return 0; -} - -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetUnicodeMode[] = { &wxluatype_wxSymbolListCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_SetUnicodeMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetUnicodeMode[1] = {{ wxLua_wxSymbolListCtrl_SetUnicodeMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetUnicodeMode }}; -// void SetUnicodeMode(bool unicodeMode); -static int LUACALL wxLua_wxSymbolListCtrl_SetUnicodeMode(lua_State *L) -{ - // bool unicodeMode - bool unicodeMode = wxlua_getbooleantype(L, 2); - // get this - wxSymbolListCtrl * self = (wxSymbolListCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxSymbolListCtrl); - // call SetUnicodeMode - self->SetUnicodeMode(unicodeMode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_delete[] = { &wxluatype_wxSymbolListCtrl, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxSymbolListCtrl_delete }}; - - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxSymbolListCtrl_constructor1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxSymbolListCtrl_constructor1(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_constructor1[1] = {{ wxLua_wxSymbolListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSymbolListCtrl_constructor1 }}; -// const wxString& name = wxPanelNameStr); -static int LUACALL wxLua_wxSymbolListCtrl_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxPanelNameStr - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxPanelNameStr)); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxSymbolListCtrl* returns = new wxSymbolListCtrl(parent, id, *pos, *size, style, name); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSymbolListCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSymbolListCtrl); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static int LUACALL wxLua_wxSymbolListCtrl_constructor(lua_State *L); -// // static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_constructor[1] = {{ wxLua_wxSymbolListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxSymbolListCtrl(); -static int LUACALL wxLua_wxSymbolListCtrl_constructor(lua_State *L) -{ - // call constructor - wxSymbolListCtrl* returns = new wxSymbolListCtrl(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxSymbolListCtrl); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxSymbolListCtrl); - - return 1; -} - - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins_overload[] = -{ - { wxLua_wxSymbolListCtrl_SetMargins1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetMargins1 }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxSymbolListCtrl_SetMargins, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxSymbolListCtrl_SetMargins }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins_overload_count = sizeof(s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxSymbolListCtrl_constructor_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxSymbolListCtrl_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 6, s_wxluatypeArray_wxLua_wxSymbolListCtrl_constructor1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxSymbolListCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxSymbolListCtrl_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxSymbolListCtrl_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -void wxLua_wxSymbolListCtrl_delete_function(void** p) -{ - wxSymbolListCtrl* o = (wxSymbolListCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxSymbolListCtrl_methods[] = { -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_EnsureVisible, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_GetCellSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetClassDefaultAttributes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxSymbolListCtrl_GetClassDefaultAttributes, 1, NULL }, - { "GetDefaultAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_GetDefaultAttributes, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_GetMargins, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "GetMaxSymbolValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_GetMaxSymbolValue, 1, NULL }, - { "GetMinSymbolValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_GetMinSymbolValue, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "GetSelectionBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_GetSelectionBackground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "IsCurrentItem", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_IsCurrentItem, 1, NULL }, - { "IsSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_IsSelected, 1, NULL }, - { "OnSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_OnSize, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetCellSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_SetCellSize, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_SetFont, 1, NULL }, -#endif // (wxLUA_USE_wxFont) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins_overload, s_wxluafunc_wxLua_wxSymbolListCtrl_SetMargins_overload_count, 0 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)||((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_SetSelection, 1, NULL }, - -#if (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SetSelectionBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_SetSelectionBackground, 1, NULL }, -#endif // (wxLUA_USE_wxColourPenBrush) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "SetUnicodeMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxSymbolListCtrl_SetUnicodeMode, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxSymbolListCtrl_delete, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxSymbolListCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxSymbolListCtrl_constructor_overload, s_wxluafunc_wxLua_wxSymbolListCtrl_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { 0, 0, 0, 0 }, -}; - -int wxSymbolListCtrl_methodCount = sizeof(wxSymbolListCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxrichtext_xml.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) -// --------------------------------------------------------------------------- -// Bind class wxRichTextXMLHelper -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextXMLHelper' -int wxluatype_wxRichTextXMLHelper = WXLUA_TUNKNOWN; - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute17[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute17(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute17[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute17, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute17 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& rootName, const wxTextAttrBorders& borders); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute17(lua_State *L) -{ - // const wxTextAttrBorders borders - const wxTextAttrBorders * borders = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorders); - // const wxString rootName - const wxString rootName = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, rootName, *borders); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute16[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute16(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute16[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute16, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute16 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& rootName, const wxTextAttrBorder& border); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute16(lua_State *L) -{ - // const wxTextAttrBorder border - const wxTextAttrBorder * border = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorder); - // const wxString rootName - const wxString rootName = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, rootName, *border); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute15[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute15(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute15[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute15, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute15 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& rootName, const wxTextAttrDimensions& dims); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute15(lua_State *L) -{ - // const wxTextAttrDimensions dims - const wxTextAttrDimensions * dims = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimensions); - // const wxString rootName - const wxString rootName = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, rootName, *dims); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute14[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute14(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute14[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute14, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute14 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& name, const wxTextAttrDimension& dim); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute14(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimension); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, name, *dim); - - return 0; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute13[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute13(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute13[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute13, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute13 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& name, const wxColour& col); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute13(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, name, *col); - - return 0; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute12[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute12(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute12[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute12, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute12 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& name, const wxString& s); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute12(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, name, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute11[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute11(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute11[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute11, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute11 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& name, const double& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute11(lua_State *L) -{ - // const double v - const double * v = (const double *)wxlua_touserdata(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, name, *v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute10[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute10(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute10[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute10, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute10 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& name, const long& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute10(lua_State *L) -{ - // const long v - const long * v = (const long *)wxlua_touserdata(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, name, *v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute9[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute9(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute9[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute9, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute9 }}; -// static void AddAttribute(wxXmlNode* node, const wxString& name, const int& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute9(lua_State *L) -{ - // const int v - const int * v = (const int *)wxlua_touserdata(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(node, name, *v); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute8[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxTextAttrBorders, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute8(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute8[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute8, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute8 }}; -// static void AddAttribute(wxString& str, const wxString& rootName, const wxTextAttrBorders& borders); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute8(lua_State *L) -{ - // const wxTextAttrBorders borders - const wxTextAttrBorders * borders = (const wxTextAttrBorders *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorders); - // const wxString rootName - const wxString rootName = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, rootName, *borders); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute7[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxTextAttrBorder, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute7(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute7[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute7, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute7 }}; -// static void AddAttribute(wxString& str, const wxString& rootName, const wxTextAttrBorder& border); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute7(lua_State *L) -{ - // const wxTextAttrBorder border - const wxTextAttrBorder * border = (const wxTextAttrBorder *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrBorder); - // const wxString rootName - const wxString rootName = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, rootName, *border); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute6[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxTextAttrDimensions, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute6(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute6[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute6, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute6 }}; -// static void AddAttribute(wxString& str, const wxString& rootName, const wxTextAttrDimensions& dims); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute6(lua_State *L) -{ - // const wxTextAttrDimensions dims - const wxTextAttrDimensions * dims = (const wxTextAttrDimensions *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimensions); - // const wxString rootName - const wxString rootName = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, rootName, *dims); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute5[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxTextAttrDimension, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute5[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute5 }}; -// static void AddAttribute(wxString& str, const wxString& name, const wxTextAttrDimension& dim); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute5(lua_State *L) -{ - // const wxTextAttrDimension dim - const wxTextAttrDimension * dim = (const wxTextAttrDimension *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttrDimension); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, name, *dim); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute4[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute4[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute4 }}; -// static void AddAttribute(wxString& str, const wxString& name, const wxColour& col); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute4(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, name, *col); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute3[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute3[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute3 }}; -// static void AddAttribute(wxString& str, const wxString& name, const wxString& s); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute3(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, name, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute2[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute2[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute2 }}; -// static void AddAttribute(wxString& str, const wxString& name, const double& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute2(lua_State *L) -{ - // const double v - const double * v = (const double *)wxlua_touserdata(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, name, *v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute1[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute1 }}; -// static void AddAttribute(wxString& str, const wxString& name, const long& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute1(lua_State *L) -{ - // const long v - const long * v = (const long *)wxlua_touserdata(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, name, *v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute[1] = {{ wxLua_wxRichTextXMLHelper_AddAttribute, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute }}; -// static void AddAttribute(wxString& str, const wxString& name, const int& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttribute(lua_State *L) -{ - // const int v - const int * v = (const int *)wxlua_touserdata(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddAttribute - wxRichTextXMLHelper::AddAttribute(str, name, *v); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttributes1[] = { &wxluatype_wxXmlNode, &wxluatype_wxRichTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttributes1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes1[1] = {{ wxLua_wxRichTextXMLHelper_AddAttributes1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttributes1 }}; -// static bool AddAttributes(wxXmlNode* node, wxRichTextAttr& attr, bool isPara = false); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttributes1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isPara = false - bool isPara = (argCount >= 3 ? wxlua_getbooleantype(L, 3) : false); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttributes - bool returns = (wxRichTextXMLHelper::AddAttributes(node, *attr, isPara)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttributes[] = { &wxluatype_wxRichTextAttr, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttributes(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes[1] = {{ wxLua_wxRichTextXMLHelper_AddAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttributes }}; -// static wxString AddAttributes(const wxRichTextAttr& attr, bool isPara = false); -static int LUACALL wxLua_wxRichTextXMLHelper_AddAttributes(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isPara = false - bool isPara = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : false); - // const wxRichTextAttr attr - const wxRichTextAttr * attr = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call AddAttributes - wxString returns = (wxRichTextXMLHelper::AddAttributes(*attr, isPara)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString4[] = { &wxluatype_TSTRING, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddString4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString4[1] = {{ wxLua_wxRichTextXMLHelper_AddString4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString4 }}; -// static void AddString(wxString& str, const wxColour& col); -static int LUACALL wxLua_wxRichTextXMLHelper_AddString4(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddString - wxRichTextXMLHelper::AddString(str, *col); - - return 0; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString3[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddString3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString3[1] = {{ wxLua_wxRichTextXMLHelper_AddString3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString3 }}; -// static void AddString(wxString& str, const wxString& s); -static int LUACALL wxLua_wxRichTextXMLHelper_AddString3(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddString - wxRichTextXMLHelper::AddString(str, s); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString2[] = { &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddString2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString2[1] = {{ wxLua_wxRichTextXMLHelper_AddString2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString2 }}; -// static void AddString(wxString& str, const double& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddString2(lua_State *L) -{ - // const double v - const double * v = (const double *)wxlua_touserdata(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddString - wxRichTextXMLHelper::AddString(str, *v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString1[] = { &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString1[1] = {{ wxLua_wxRichTextXMLHelper_AddString1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString1 }}; -// static void AddString(wxString& str, const long& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddString1(lua_State *L) -{ - // const long v - const long * v = (const long *)wxlua_touserdata(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddString - wxRichTextXMLHelper::AddString(str, *v); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString[] = { &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AddString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString[1] = {{ wxLua_wxRichTextXMLHelper_AddString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString }}; -// static void AddString(wxString& str, const int& v); -static int LUACALL wxLua_wxRichTextXMLHelper_AddString(lua_State *L) -{ - // const int v - const int * v = (const int *)wxlua_touserdata(L, 2); - // wxString str - wxString str = wxlua_getwxStringtype(L, 1); - // call AddString - wxRichTextXMLHelper::AddString(str, *v); - - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AttributeToXML[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_AttributeToXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AttributeToXML[1] = {{ wxLua_wxRichTextXMLHelper_AttributeToXML, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AttributeToXML }}; -// static wxString AttributeToXML(const wxString& str); -static int LUACALL wxLua_wxRichTextXMLHelper_AttributeToXML(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 1); - // call AttributeToXML - wxString returns = (wxRichTextXMLHelper::AttributeToXML(str)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Clear[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Clear[1] = {{ wxLua_wxRichTextXMLHelper_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxRichTextXMLHelper_Clear(lua_State *L) -{ - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ColourStringToLong[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ColourStringToLong(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ColourStringToLong[1] = {{ wxLua_wxRichTextXMLHelper_ColourStringToLong, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ColourStringToLong }}; -// static long ColourStringToLong(const wxString& colStr); -static int LUACALL wxLua_wxRichTextXMLHelper_ColourStringToLong(lua_State *L) -{ - // const wxString colStr - const wxString colStr = wxlua_getwxStringtype(L, 1); - // call ColourStringToLong - long returns = (wxRichTextXMLHelper::ColourStringToLong(colStr)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ColourToHexString[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ColourToHexString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ColourToHexString[1] = {{ wxLua_wxRichTextXMLHelper_ColourToHexString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ColourToHexString }}; -// static wxString ColourToHexString(const wxColour& col); -static int LUACALL wxLua_wxRichTextXMLHelper_ColourToHexString(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call ColourToHexString - wxString returns = (wxRichTextXMLHelper::ColourToHexString(*col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ExportStyleDefinition1[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxXmlNode, &wxluatype_wxRichTextStyleDefinition, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ExportStyleDefinition1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition1[1] = {{ wxLua_wxRichTextXMLHelper_ExportStyleDefinition1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ExportStyleDefinition1 }}; -// virtual bool ExportStyleDefinition(wxXmlNode* parent, wxRichTextStyleDefinition* def); -static int LUACALL wxLua_wxRichTextXMLHelper_ExportStyleDefinition1(lua_State *L) -{ - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleDefinition); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call ExportStyleDefinition - bool returns = (self->ExportStyleDefinition(parent, def)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ExportStyleDefinition[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxOutputStream, &wxluatype_wxRichTextStyleDefinition, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ExportStyleDefinition(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition[1] = {{ wxLua_wxRichTextXMLHelper_ExportStyleDefinition, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ExportStyleDefinition }}; -// virtual bool ExportStyleDefinition(wxOutputStream& stream, wxRichTextStyleDefinition* def, int level); -static int LUACALL wxLua_wxRichTextXMLHelper_ExportStyleDefinition(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 4); - // wxRichTextStyleDefinition def - wxRichTextStyleDefinition * def = (wxRichTextStyleDefinition *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextStyleDefinition); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call ExportStyleDefinition - bool returns = (self->ExportStyleDefinition(*stream, def, level)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_FindNode[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_FindNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_FindNode[1] = {{ wxLua_wxRichTextXMLHelper_FindNode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_FindNode }}; -// static wxXmlNode* FindNode(wxXmlNode* node, const wxString& name); -static int LUACALL wxLua_wxRichTextXMLHelper_FindNode(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call FindNode - wxXmlNode* returns = (wxXmlNode*)wxRichTextXMLHelper::FindNode(node, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetFileEncoding[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_GetFileEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_GetFileEncoding[1] = {{ wxLua_wxRichTextXMLHelper_GetFileEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetFileEncoding }}; -// const wxString& GetFileEncoding() const; -static int LUACALL wxLua_wxRichTextXMLHelper_GetFileEncoding(lua_State *L) -{ - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call GetFileEncoding - wxString returns = (self->GetFileEncoding()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetFlags[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_GetFlags[1] = {{ wxLua_wxRichTextXMLHelper_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetFlags }}; -// int GetFlags() const; -static int LUACALL wxLua_wxRichTextXMLHelper_GetFlags(lua_State *L) -{ - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetNodeContent[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_GetNodeContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_GetNodeContent[1] = {{ wxLua_wxRichTextXMLHelper_GetNodeContent, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetNodeContent }}; -// static wxString GetNodeContent(wxXmlNode *node); -static int LUACALL wxLua_wxRichTextXMLHelper_GetNodeContent(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetNodeContent - wxString returns = (wxRichTextXMLHelper::GetNodeContent(node)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetParamNode[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_GetParamNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_GetParamNode[1] = {{ wxLua_wxRichTextXMLHelper_GetParamNode, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetParamNode }}; -// static wxXmlNode *GetParamNode(wxXmlNode* node, const wxString& param); -static int LUACALL wxLua_wxRichTextXMLHelper_GetParamNode(lua_State *L) -{ - // const wxString param - const wxString param = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetParamNode - wxXmlNode* returns = (wxXmlNode*)wxRichTextXMLHelper::GetParamNode(node, param); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetParamValue[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_GetParamValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_GetParamValue[1] = {{ wxLua_wxRichTextXMLHelper_GetParamValue, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetParamValue }}; -// static wxString GetParamValue(wxXmlNode *node, const wxString& param); -static int LUACALL wxLua_wxRichTextXMLHelper_GetParamValue(lua_State *L) -{ - // const wxString param - const wxString param = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetParamValue - wxString returns = (wxRichTextXMLHelper::GetParamValue(node, param)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetText[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_GetText[1] = {{ wxLua_wxRichTextXMLHelper_GetText, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_GetText }}; -// static wxString GetText(wxXmlNode *node, const wxString& param = wxEmptyString); -static int LUACALL wxLua_wxRichTextXMLHelper_GetText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString param = wxEmptyString - const wxString param = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetText - wxString returns = (wxRichTextXMLHelper::GetText(node, param)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile[1] = {{ wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile }}; -// bool m_deleteConvFile; -static int LUACALL wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile(lua_State *L) -{ - // get this - wxRichTextXMLHelper *self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // push the result flag - lua_pushboolean(L, self->m_deleteConvFile); - // return the number of values - return 1; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Get_m_fileEncoding[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Get_m_fileEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_fileEncoding[1] = {{ wxLua_wxRichTextXMLHelper_Get_m_fileEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Get_m_fileEncoding }}; -// wxString m_fileEncoding; -static int LUACALL wxLua_wxRichTextXMLHelper_Get_m_fileEncoding(lua_State *L) -{ - // get this - wxRichTextXMLHelper *self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // push the result string - wxlua_pushwxString(L, self->m_fileEncoding); - // return the number of values - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Get_m_flags[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Get_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_flags[1] = {{ wxLua_wxRichTextXMLHelper_Get_m_flags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Get_m_flags }}; -// int m_flags; -static int LUACALL wxLua_wxRichTextXMLHelper_Get_m_flags(lua_State *L) -{ - // get this - wxRichTextXMLHelper *self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // push the result integer? number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)(self->m_flags) == (double)(self->m_flags)) { - // Exactly representable as lua_Integer - lua_pushinteger(L, self->m_flags); -} else -#endif -{ - lua_pushnumber(L, self->m_flags); -} - // return the number of values - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_HasParam[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_HasParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_HasParam[1] = {{ wxLua_wxRichTextXMLHelper_HasParam, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_HasParam }}; -// static bool HasParam(wxXmlNode* node, const wxString& param); -static int LUACALL wxLua_wxRichTextXMLHelper_HasParam(lua_State *L) -{ - // const wxString param - const wxString param = wxlua_getwxStringtype(L, 2); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call HasParam - bool returns = (wxRichTextXMLHelper::HasParam(node, param)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_HexStringToColour[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_HexStringToColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_HexStringToColour[1] = {{ wxLua_wxRichTextXMLHelper_HexStringToColour, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_HexStringToColour }}; -// static wxColour HexStringToColour(const wxString& hex); -static int LUACALL wxLua_wxRichTextXMLHelper_HexStringToColour(lua_State *L) -{ - // const wxString hex - const wxString hex = wxlua_getwxStringtype(L, 1); - // call HexStringToColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(wxRichTextXMLHelper::HexStringToColour(hex)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ImportProperties[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxRichTextProperties, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ImportProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ImportProperties[1] = {{ wxLua_wxRichTextXMLHelper_ImportProperties, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ImportProperties }}; -// virtual bool ImportProperties(wxRichTextProperties& properties, wxXmlNode* node); -static int LUACALL wxLua_wxRichTextXMLHelper_ImportProperties(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextProperties properties - wxRichTextProperties * properties = (wxRichTextProperties *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextProperties); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call ImportProperties - bool returns = (self->ImportProperties(*properties, node)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ImportStyle[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxRichTextAttr, &wxluatype_wxXmlNode, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ImportStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ImportStyle[1] = {{ wxLua_wxRichTextXMLHelper_ImportStyle, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ImportStyle }}; -// virtual bool ImportStyle(wxRichTextAttr& attr, wxXmlNode* node, bool isPara = false); -static int LUACALL wxLua_wxRichTextXMLHelper_ImportStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool isPara = false - bool isPara = (argCount >= 4 ? wxlua_getbooleantype(L, 4) : false); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextAttr attr - wxRichTextAttr * attr = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call ImportStyle - bool returns = (self->ImportStyle(*attr, node, isPara)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ImportStyleDefinition[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxRichTextStyleSheet, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ImportStyleDefinition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ImportStyleDefinition[1] = {{ wxLua_wxRichTextXMLHelper_ImportStyleDefinition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ImportStyleDefinition }}; -// virtual bool ImportStyleDefinition(wxRichTextStyleSheet* sheet, wxXmlNode* node); -static int LUACALL wxLua_wxRichTextXMLHelper_ImportStyleDefinition(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxRichTextStyleSheet sheet - wxRichTextStyleSheet * sheet = (wxRichTextStyleSheet *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextStyleSheet); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call ImportStyleDefinition - bool returns = (self->ImportStyleDefinition(sheet, node)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Init[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Init[1] = {{ wxLua_wxRichTextXMLHelper_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextXMLHelper_Init(lua_State *L) -{ - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call Init - self->Init(); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakePropertyFromString[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakePropertyFromString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakePropertyFromString[1] = {{ wxLua_wxRichTextXMLHelper_MakePropertyFromString, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakePropertyFromString }}; -// virtual wxVariant MakePropertyFromString(const wxString& name, const wxString& value, const wxString& type); -static int LUACALL wxLua_wxRichTextXMLHelper_MakePropertyFromString(lua_State *L) -{ - // const wxString type - const wxString type = wxlua_getwxStringtype(L, 4); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call MakePropertyFromString - // allocate a new object using the copy constructor - wxVariant* returns = new wxVariant(self->MakePropertyFromString(name, value, type)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVariant); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVariant); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString4[] = { &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString4[1] = {{ wxLua_wxRichTextXMLHelper_MakeString4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString4 }}; -// static wxString MakeString(const wxColour& col); -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString4(lua_State *L) -{ - // const wxColour col - const wxColour * col = (const wxColour *)wxluaT_getuserdatatype(L, 1, wxluatype_wxColour); - // call MakeString - wxString returns = (wxRichTextXMLHelper::MakeString(*col)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString3[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString3[1] = {{ wxLua_wxRichTextXMLHelper_MakeString3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString3 }}; -// static wxString MakeString(const wxString& s); -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString3(lua_State *L) -{ - // const wxString s - const wxString s = wxlua_getwxStringtype(L, 1); - // call MakeString - wxString returns = (wxRichTextXMLHelper::MakeString(s)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString2[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString2[1] = {{ wxLua_wxRichTextXMLHelper_MakeString2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString2 }}; -// static wxString MakeString(const double& v); -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString2(lua_State *L) -{ - // const double v - const double * v = (const double *)wxlua_touserdata(L, 1); - // call MakeString - wxString returns = (wxRichTextXMLHelper::MakeString(*v)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString1[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString1[1] = {{ wxLua_wxRichTextXMLHelper_MakeString1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString1 }}; -// static wxString MakeString(const long& v); -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString1(lua_State *L) -{ - // const long v - const long * v = (const long *)wxlua_touserdata(L, 1); - // call MakeString - wxString returns = (wxRichTextXMLHelper::MakeString(*v)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString[1] = {{ wxLua_wxRichTextXMLHelper_MakeString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString }}; -// static wxString MakeString(const int& v); -static int LUACALL wxLua_wxRichTextXMLHelper_MakeString(lua_State *L) -{ - // const int v - const int * v = (const int *)wxlua_touserdata(L, 1); - // call MakeString - wxString returns = (wxRichTextXMLHelper::MakeString(*v)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeStringFromProperty[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxVariant, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_MakeStringFromProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeStringFromProperty[1] = {{ wxLua_wxRichTextXMLHelper_MakeStringFromProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeStringFromProperty }}; -// virtual wxString MakeStringFromProperty(const wxVariant& var); -static int LUACALL wxLua_wxRichTextXMLHelper_MakeStringFromProperty(lua_State *L) -{ - // const wxVariant var - const wxVariant * var = (const wxVariant *)wxluaT_getuserdatatype(L, 2, wxluatype_wxVariant); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call MakeStringFromProperty - wxString returns = (self->MakeStringFromProperty(*var)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputIndentation[] = { &wxluatype_wxOutputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_OutputIndentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputIndentation[1] = {{ wxLua_wxRichTextXMLHelper_OutputIndentation, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputIndentation }}; -// static void OutputIndentation(wxOutputStream& stream, int indent); -static int LUACALL wxLua_wxRichTextXMLHelper_OutputIndentation(lua_State *L) -{ - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call OutputIndentation - wxRichTextXMLHelper::OutputIndentation(*stream, indent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputString1[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_OutputString1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString1[1] = {{ wxLua_wxRichTextXMLHelper_OutputString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputString1 }}; -// void OutputString(wxOutputStream& stream, const wxString& str); -static int LUACALL wxLua_wxRichTextXMLHelper_OutputString1(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call OutputString - self->OutputString(*stream, str); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputString[] = { &wxluatype_wxOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_OutputString(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString[1] = {{ wxLua_wxRichTextXMLHelper_OutputString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputString }}; -// %override wxLua_wxRichTextXMLHelper_OutputString -// static void OutputString(wxOutputStream& stream, const wxString& str); // , wxMBConv *convMem, wxMBConv *convFile); -static int LUACALL wxLua_wxRichTextXMLHelper_OutputString(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call OutputString - wxRichTextXMLHelper::OutputString(*stream, str, &wxConvUTF8, &wxConvUTF8); // Explicitly designate UTF-8 - - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputStringEnt1[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_OutputStringEnt1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt1[1] = {{ wxLua_wxRichTextXMLHelper_OutputStringEnt1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputStringEnt1 }}; -// void OutputStringEnt(wxOutputStream& stream, const wxString& str); -static int LUACALL wxLua_wxRichTextXMLHelper_OutputStringEnt1(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 3); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call OutputStringEnt - self->OutputStringEnt(*stream, str); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputStringEnt[] = { &wxluatype_wxOutputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_OutputStringEnt(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt[1] = {{ wxLua_wxRichTextXMLHelper_OutputStringEnt, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputStringEnt }}; -// %override wxLua_wxRichTextXMLHelper_OutputStringEnt -// static void OutputStringEnt(wxOutputStream& stream, const wxString& str); // , wxMBConv *convMem, wxMBConv *convFile); -static int LUACALL wxLua_wxRichTextXMLHelper_OutputStringEnt(lua_State *L) -{ - // const wxString str - const wxString str = wxlua_getwxStringtype(L, 2); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 1, wxluatype_wxOutputStream); - // call OutputStringEnt - wxRichTextXMLHelper::OutputStringEnt(*stream, str, &wxConvUTF8, &wxConvUTF8); // Explicitly designate UTF-8 - - return 0; -} - - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ParseDimension[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_ParseDimension(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ParseDimension[1] = {{ wxLua_wxRichTextXMLHelper_ParseDimension, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ParseDimension }}; -// static wxTextAttrDimension ParseDimension(const wxString& dimStr); -static int LUACALL wxLua_wxRichTextXMLHelper_ParseDimension(lua_State *L) -{ - // const wxString dimStr - const wxString dimStr = wxlua_getwxStringtype(L, 1); - // call ParseDimension - // allocate a new object using the copy constructor - wxTextAttrDimension* returns = new wxTextAttrDimension(wxRichTextXMLHelper::ParseDimension(dimStr)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxTextAttrDimension); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxTextAttrDimension); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_RichTextFixFaceName[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_RichTextFixFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_RichTextFixFaceName[1] = {{ wxLua_wxRichTextXMLHelper_RichTextFixFaceName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_RichTextFixFaceName }}; -// static bool RichTextFixFaceName(wxString& facename); -static int LUACALL wxLua_wxRichTextXMLHelper_RichTextFixFaceName(lua_State *L) -{ - // wxString facename - wxString facename = wxlua_getwxStringtype(L, 1); - // call RichTextFixFaceName - bool returns = (wxRichTextXMLHelper::RichTextFixFaceName(facename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_SetFileEncoding[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_SetFileEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_SetFileEncoding[1] = {{ wxLua_wxRichTextXMLHelper_SetFileEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_SetFileEncoding }}; -// void SetFileEncoding(const wxString& encoding); -static int LUACALL wxLua_wxRichTextXMLHelper_SetFileEncoding(lua_State *L) -{ - // const wxString encoding - const wxString encoding = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call SetFileEncoding - self->SetFileEncoding(encoding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_SetFlags[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_SetFlags[1] = {{ wxLua_wxRichTextXMLHelper_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxRichTextXMLHelper_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile[1] = {{ wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile }}; -// bool m_deleteConvFile; -static int LUACALL wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile(lua_State *L) -{ - // get the boolean value - bool val = wxlua_getbooleantype(L, 2); - // get this - wxRichTextXMLHelper *self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - self->m_deleteConvFile = val; - // return the number of values - return 0; -} - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Set_m_fileEncoding[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Set_m_fileEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_fileEncoding[1] = {{ wxLua_wxRichTextXMLHelper_Set_m_fileEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Set_m_fileEncoding }}; -// wxString m_fileEncoding; -static int LUACALL wxLua_wxRichTextXMLHelper_Set_m_fileEncoding(lua_State *L) -{ - // get the string value - wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextXMLHelper *self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - self->m_fileEncoding = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Set_m_flags[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_Set_m_flags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_flags[1] = {{ wxLua_wxRichTextXMLHelper_Set_m_flags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_Set_m_flags }}; -// int m_flags; -static int LUACALL wxLua_wxRichTextXMLHelper_Set_m_flags(lua_State *L) -{ - // get the number value - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxRichTextXMLHelper *self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - self->m_flags = val; - // return the number of values - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_SetupForSaving[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_SetupForSaving(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_SetupForSaving[1] = {{ wxLua_wxRichTextXMLHelper_SetupForSaving, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_SetupForSaving }}; -// void SetupForSaving(const wxString& enc); -static int LUACALL wxLua_wxRichTextXMLHelper_SetupForSaving(lua_State *L) -{ - // const wxString enc - const wxString enc = wxlua_getwxStringtype(L, 2); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call SetupForSaving - self->SetupForSaving(enc); - - return 0; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_WriteProperties1[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxXmlNode, &wxluatype_wxRichTextProperties, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_WriteProperties1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties1[1] = {{ wxLua_wxRichTextXMLHelper_WriteProperties1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_WriteProperties1 }}; -// virtual bool WriteProperties(wxXmlNode* node, const wxRichTextProperties& properties); -static int LUACALL wxLua_wxRichTextXMLHelper_WriteProperties1(lua_State *L) -{ - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextProperties); - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call WriteProperties - bool returns = (self->WriteProperties(node, *properties)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_WriteProperties[] = { &wxluatype_wxRichTextXMLHelper, &wxluatype_wxOutputStream, &wxluatype_wxRichTextProperties, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_WriteProperties(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties[1] = {{ wxLua_wxRichTextXMLHelper_WriteProperties, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_WriteProperties }}; -// virtual bool WriteProperties(wxOutputStream& stream, const wxRichTextProperties& properties, int level); -static int LUACALL wxLua_wxRichTextXMLHelper_WriteProperties(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 4); - // const wxRichTextProperties properties - const wxRichTextProperties * properties = (const wxRichTextProperties *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextProperties); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextXMLHelper * self = (wxRichTextXMLHelper *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHelper); - // call WriteProperties - bool returns = (self->WriteProperties(*stream, *properties, level)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_delete[] = { &wxluatype_wxRichTextXMLHelper, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_delete }}; - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHelper_constructor1[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHelper_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor1[1] = {{ wxLua_wxRichTextXMLHelper_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_constructor1 }}; -// wxRichTextXMLHelper(const wxString& enc); -static int LUACALL wxLua_wxRichTextXMLHelper_constructor1(lua_State *L) -{ - // const wxString enc - const wxString enc = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextXMLHelper* returns = new wxRichTextXMLHelper(enc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextXMLHelper); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextXMLHelper); - - return 1; -} - -static int LUACALL wxLua_wxRichTextXMLHelper_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor[1] = {{ wxLua_wxRichTextXMLHelper_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxRichTextXMLHelper(); -static int LUACALL wxLua_wxRichTextXMLHelper_constructor(lua_State *L) -{ - // call constructor - wxRichTextXMLHelper* returns = new wxRichTextXMLHelper(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextXMLHelper); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextXMLHelper); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute17, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute17 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute16, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute16 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute15, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute15 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute14, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute14 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute13, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute13 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute12, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute12 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute11, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute11 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute10, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute10 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute9, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute9 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextXMLHelper_AddAttribute8, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute8 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextXMLHelper_AddAttribute7, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute7 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextXMLHelper_AddAttribute6, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute6 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextXMLHelper_AddAttribute5, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute5 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxRichTextXMLHelper_AddAttribute4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute4 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute3 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute2 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute1 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttribute, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttribute }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddAttributes1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttributes1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxLua_wxRichTextXMLHelper_AddAttributes, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddAttributes }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxRichTextXMLHelper_AddString4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString4 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddString3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString3 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddString2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString2 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddString1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString1 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { wxLua_wxRichTextXMLHelper_AddString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_AddString }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_ExportStyleDefinition1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ExportStyleDefinition1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHelper_ExportStyleDefinition, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_ExportStyleDefinition }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxRichTextXMLHelper_MakeString4, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString4 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - { wxLua_wxRichTextXMLHelper_MakeString3, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString3 }, - { wxLua_wxRichTextXMLHelper_MakeString2, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString2 }, - { wxLua_wxRichTextXMLHelper_MakeString1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString1 }, - { wxLua_wxRichTextXMLHelper_MakeString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_MakeString }, -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHelper_OutputString1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputString1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHelper_OutputString, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputString }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt_overload[] = -{ - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHelper_OutputStringEnt1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputStringEnt1 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHelper_OutputStringEnt, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_OutputStringEnt }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS)) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHelper_WriteProperties1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_WriteProperties1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHelper_WriteProperties, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_WriteProperties }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor_overload[] = -{ - { wxLua_wxRichTextXMLHelper_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHelper_constructor1 }, - { wxLua_wxRichTextXMLHelper_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) - -void wxLua_wxRichTextXMLHelper_delete_function(void** p) -{ - wxRichTextXMLHelper* o = (wxRichTextXMLHelper*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextXMLHelper_methods[] = { -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) - { "AddAttribute", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttribute_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - { "AddAttributes", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_AddAttributes_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) - { "AddString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_AddString_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) - - { "AttributeToXML", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_AttributeToXML, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Clear, 1, NULL }, - { "ColourStringToLong", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_ColourStringToLong, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - { "ColourToHexString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_ColourToHexString, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - { "ExportStyleDefinition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_ExportStyleDefinition_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "FindNode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_FindNode, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "GetFileEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_GetFileEncoding, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_GetFlags, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetNodeContent", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_GetNodeContent, 1, NULL }, - { "GetParamNode", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_GetParamNode, 1, NULL }, - { "GetParamValue", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_GetParamValue, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_GetText, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - // %member { "Get_m_deleteConvFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - - // %member { "Get_m_fileEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_fileEncoding, 1, NULL }, - // %member { "Get_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_flags, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "HasParam", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_HasParam, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - { "HexStringToColour", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_HexStringToColour, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_ImportProperties, 1, NULL }, - { "ImportStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_ImportStyle, 1, NULL }, - { "ImportStyleDefinition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_ImportStyleDefinition, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Init, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) - { "MakePropertyFromString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_MakePropertyFromString, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) - { "MakeString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeString_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxColourPenBrush))||((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) - { "MakeStringFromProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_MakeStringFromProperty, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxUSE_VARIANT) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - { "OutputIndentation", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputIndentation, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS)) - { "OutputString", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputString_overload_count, 0 }, - { "OutputStringEnt", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_OutputStringEnt_overload_count, 0 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxUSE_STREAMS)) - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "ParseDimension", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_ParseDimension, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - - { "RichTextFixFaceName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHelper_RichTextFixFaceName, 1, NULL }, - { "SetFileEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_SetFileEncoding, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_SetFlags, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - // %member { "Set_m_deleteConvFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - - // %member { "Set_m_fileEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_fileEncoding, 1, NULL }, - // %member { "Set_m_flags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_flags, 1, NULL }, - { "SetupForSaving", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_SetupForSaving, 1, NULL }, - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - { "WriteProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_WriteProperties_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextXMLHelper_delete, 1, NULL }, - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - { "m_deleteConvFile", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_deleteConvFile, 1, NULL }, - { "m_deleteConvFile", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_deleteConvFile, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_XML) - - { "m_fileEncoding", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_fileEncoding, 1, NULL }, - { "m_fileEncoding", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_fileEncoding, 1, NULL }, - { "m_flags", WXLUAMETHOD_SETPROP, s_wxluafunc_wxLua_wxRichTextXMLHelper_Set_m_flags, 1, NULL }, - { "m_flags", WXLUAMETHOD_GETPROP, s_wxluafunc_wxLua_wxRichTextXMLHelper_Get_m_flags, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) - { "wxRichTextXMLHelper", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor_overload, s_wxluafunc_wxLua_wxRichTextXMLHelper_constructor_overload_count, 0 }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) - - { 0, 0, 0, 0 }, -}; - -int wxRichTextXMLHelper_methodCount = sizeof(wxRichTextXMLHelper_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) -// --------------------------------------------------------------------------- -// Bind class wxRichTextXMLHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxRichTextXMLHandler' -int wxluatype_wxRichTextXMLHandler = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_CanLoad[] = { &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_CanLoad(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_CanLoad[1] = {{ wxLua_wxRichTextXMLHandler_CanLoad, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_CanLoad }}; -// virtual bool CanLoad() const; -static int LUACALL wxLua_wxRichTextXMLHandler_CanLoad(lua_State *L) -{ - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call CanLoad - bool returns = (self->CanLoad()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_CanSave[] = { &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_CanSave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_CanSave[1] = {{ wxLua_wxRichTextXMLHandler_CanSave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_CanSave }}; -// virtual bool CanSave() const; -static int LUACALL wxLua_wxRichTextXMLHandler_CanSave(lua_State *L) -{ - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call CanSave - bool returns = (self->CanSave()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxRichTextXMLHandler_ClearNodeToClassMap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_ClearNodeToClassMap[1] = {{ wxLua_wxRichTextXMLHandler_ClearNodeToClassMap, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static void ClearNodeToClassMap(); -static int LUACALL wxLua_wxRichTextXMLHandler_ClearNodeToClassMap(lua_State *L) -{ - // call ClearNodeToClassMap - wxRichTextXMLHandler::ClearNodeToClassMap(); - - return 0; -} - - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_CreateObjectForXMLName[] = { &wxluatype_wxRichTextXMLHandler, &wxluatype_wxRichTextObject, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_CreateObjectForXMLName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_CreateObjectForXMLName[1] = {{ wxLua_wxRichTextXMLHandler_CreateObjectForXMLName, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_CreateObjectForXMLName }}; -// virtual wxRichTextObject* CreateObjectForXMLName(wxRichTextObject* parent, const wxString& name) const; -static int LUACALL wxLua_wxRichTextXMLHandler_CreateObjectForXMLName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxRichTextObject parent - wxRichTextObject * parent = (wxRichTextObject *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextObject); - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call CreateObjectForXMLName - wxRichTextObject* returns = (wxRichTextObject*)self->CreateObjectForXMLName(parent, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextObject); - - return 1; -} - -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ExportXML1[] = { &wxluatype_wxRichTextXMLHandler, &wxluatype_wxXmlNode, &wxluatype_wxRichTextObject, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_ExportXML1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML1[1] = {{ wxLua_wxRichTextXMLHandler_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ExportXML1 }}; -// bool ExportXML(wxXmlNode* parent, wxRichTextObject& obj); -static int LUACALL wxLua_wxRichTextXMLHandler_ExportXML1(lua_State *L) -{ - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call ExportXML - bool returns = (self->ExportXML(parent, *obj)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ExportXML[] = { &wxluatype_wxRichTextXMLHandler, &wxluatype_wxOutputStream, &wxluatype_wxRichTextObject, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_ExportXML(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML[1] = {{ wxLua_wxRichTextXMLHandler_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ExportXML }}; -// bool ExportXML(wxOutputStream& stream, wxRichTextObject& obj, int level); -static int LUACALL wxLua_wxRichTextXMLHandler_ExportXML(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 4); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call ExportXML - bool returns = (self->ExportXML(*stream, *obj, level)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_GetHelper[] = { &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_GetHelper(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_GetHelper[1] = {{ wxLua_wxRichTextXMLHandler_GetHelper, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_GetHelper }}; -// wxRichTextXMLHelper& GetHelper(); -static int LUACALL wxLua_wxRichTextXMLHandler_GetHelper(lua_State *L) -{ - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call GetHelper - wxRichTextXMLHelper* returns = (wxRichTextXMLHelper*)&self->GetHelper(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextXMLHelper); - - return 1; -} - - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ImportXML[] = { &wxluatype_wxRichTextXMLHandler, &wxluatype_wxRichTextBuffer, &wxluatype_wxRichTextObject, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_ImportXML(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_ImportXML[1] = {{ wxLua_wxRichTextXMLHandler_ImportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ImportXML }}; -// bool ImportXML(wxRichTextBuffer* buffer, wxRichTextObject* obj, wxXmlNode* node); -static int LUACALL wxLua_wxRichTextXMLHandler_ImportXML(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 4, wxluatype_wxXmlNode); - // wxRichTextObject obj - wxRichTextObject * obj = (wxRichTextObject *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextObject); - // wxRichTextBuffer buffer - wxRichTextBuffer * buffer = (wxRichTextBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextBuffer); - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call ImportXML - bool returns = (self->ImportXML(buffer, obj, node)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_Init[] = { &wxluatype_wxRichTextXMLHandler, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_Init(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_Init[1] = {{ wxLua_wxRichTextXMLHandler_Init, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_Init }}; -// void Init(); -static int LUACALL wxLua_wxRichTextXMLHandler_Init(lua_State *L) -{ - // get this - wxRichTextXMLHandler * self = (wxRichTextXMLHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextXMLHandler); - // call Init - self->Init(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_RegisterNodeName[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_RegisterNodeName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_RegisterNodeName[1] = {{ wxLua_wxRichTextXMLHandler_RegisterNodeName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 2, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_RegisterNodeName }}; -// static void RegisterNodeName(const wxString& nodeName, const wxString& className); -static int LUACALL wxLua_wxRichTextXMLHandler_RegisterNodeName(lua_State *L) -{ - // const wxString className - const wxString className = wxlua_getwxStringtype(L, 2); - // const wxString nodeName - const wxString nodeName = wxlua_getwxStringtype(L, 1); - // call RegisterNodeName - wxRichTextXMLHandler::RegisterNodeName(nodeName, className); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_delete[] = { &wxluatype_wxRichTextXMLHandler, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxRichTextXMLHandler_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxRichTextXMLHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_constructor[1] = {{ wxLua_wxRichTextXMLHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_constructor }}; -// wxRichTextXMLHandler(const wxString& name, const wxString& ext, int type = wxRICHTEXT_TYPE_XML); -static int LUACALL wxLua_wxRichTextXMLHandler_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int type = wxRICHTEXT_TYPE_XML - int type = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxRICHTEXT_TYPE_XML); - // const wxString ext - const wxString ext = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxRichTextXMLHandler* returns = new wxRichTextXMLHandler(name, ext, type); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxRichTextXMLHandler); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxRichTextXMLHandler); - - return 1; -} - - - - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML_overload[] = -{ - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxRichTextXMLHandler_ExportXML1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ExportXML1 }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) - { wxLua_wxRichTextXMLHandler_ExportXML, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxRichTextXMLHandler_ExportXML }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS) -}; -static int s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML_overload_count = sizeof(s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - -void wxLua_wxRichTextXMLHandler_delete_function(void** p) -{ - wxRichTextXMLHandler* o = (wxRichTextXMLHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxRichTextXMLHandler_methods[] = { - { "CanLoad", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_CanLoad, 1, NULL }, - { "CanSave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_CanSave, 1, NULL }, - { "ClearNodeToClassMap", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHandler_ClearNodeToClassMap, 1, NULL }, - -#if ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "CreateObjectForXMLName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_CreateObjectForXMLName, 1, NULL }, -#endif // ((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - { "ExportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML_overload, s_wxluafunc_wxLua_wxRichTextXMLHandler_ExportXML_overload_count, 0 }, -#endif // ((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML))||((((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_HAVE_DIRECT_OUTPUT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxUSE_STREAMS)) - - { "GetHelper", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_GetHelper, 1, NULL }, - -#if (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "ImportXML", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_ImportXML, 1, NULL }, -#endif // (((wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_STREAMS) && (wxUSE_XML)) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "Init", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxRichTextXMLHandler_Init, 1, NULL }, - { "RegisterNodeName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxRichTextXMLHandler_RegisterNodeName, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxRichTextXMLHandler_delete, 1, NULL }, - { "wxRichTextXMLHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxRichTextXMLHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxRichTextXMLHandler_methodCount = sizeof(wxRichTextXMLHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxrichtext_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxrichtext() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxrichtext(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - { "wxEVT_RICHTEXT_BUFFER_RESET", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_BUFFER_RESET), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_CHARACTER", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_CHARACTER), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_CONSUMING_CHARACTER", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_CONSUMING_CHARACTER), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_CONTENT_DELETED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_CONTENT_DELETED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_CONTENT_INSERTED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_CONTENT_INSERTED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_DELETE", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_DELETE), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_FOCUS_OBJECT_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_FOCUS_OBJECT_CHANGED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_LEFT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_LEFT_CLICK), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_LEFT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_LEFT_DCLICK), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_MIDDLE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_MIDDLE_CLICK), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_PROPERTIES_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_PROPERTIES_CHANGED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_RETURN", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_RETURN), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_RIGHT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_RIGHT_CLICK), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_SELECTION_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_SELECTION_CHANGED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_STYLESHEET_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_STYLESHEET_CHANGED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_STYLESHEET_CHANGING", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_STYLESHEET_CHANGING), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_STYLESHEET_REPLACED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_STYLESHEET_REPLACED), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_STYLESHEET_REPLACING", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_STYLESHEET_REPLACING), &wxluatype_wxRichTextEvent }, - { "wxEVT_RICHTEXT_STYLE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_RICHTEXT_STYLE_CHANGED), &wxluatype_wxRichTextEvent }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxrichtext() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxrichtext(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "SYMBOL_WXRICHTEXTOBJECTPROPERTIESDIALOG_STYLE", wxDEFAULT_DIALOG_STYLE|wxTAB_TRAVERSAL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "SYMBOL_WXRICHTEXTSTYLEORGANISERDIALOG_STYLE", wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX }, - { "SYMBOL_WXSYMBOLPICKERDIALOG_STYLE", (wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER|wxCLOSE_BOX) }, - { "wxID_RICHTEXT_PROPERTIES1", (wxID_HIGHEST+1) }, - { "wxID_RICHTEXT_PROPERTIES2", (wxID_HIGHEST+2) }, - { "wxID_RICHTEXT_PROPERTIES3", (wxID_HIGHEST+3) }, - { "wxRE_CENTER_CARET", wxRE_CENTRE_CARET }, - { "wxRE_CENTRE_CARET", 0x8000 }, - { "wxRE_MULTILINE", 0x0020 }, - { "wxRE_READONLY", 0x0010 }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - { "wxRICHTEXTSTYLELIST_HIDE_TYPE_SELECTOR", 0x1000 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRICHTEXT_ALT_DOWN", 0x04 }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRICHTEXT_BULLETINDEX_ARABIC", wxRICHTEXT_BULLETINDEX_ARABIC }, - { "wxRICHTEXT_BULLETINDEX_BITMAP", wxRICHTEXT_BULLETINDEX_BITMAP }, - { "wxRICHTEXT_BULLETINDEX_LOWER_CASE", wxRICHTEXT_BULLETINDEX_LOWER_CASE }, - { "wxRICHTEXT_BULLETINDEX_LOWER_CASE_ROMAN", wxRICHTEXT_BULLETINDEX_LOWER_CASE_ROMAN }, - { "wxRICHTEXT_BULLETINDEX_NONE", wxRICHTEXT_BULLETINDEX_NONE }, - { "wxRICHTEXT_BULLETINDEX_OUTLINE", wxRICHTEXT_BULLETINDEX_OUTLINE }, - { "wxRICHTEXT_BULLETINDEX_STANDARD", wxRICHTEXT_BULLETINDEX_STANDARD }, - { "wxRICHTEXT_BULLETINDEX_SYMBOL", wxRICHTEXT_BULLETINDEX_SYMBOL }, - { "wxRICHTEXT_BULLETINDEX_UPPER_CASE", wxRICHTEXT_BULLETINDEX_UPPER_CASE }, - { "wxRICHTEXT_BULLETINDEX_UPPER_CASE_ROMAN", wxRICHTEXT_BULLETINDEX_UPPER_CASE_ROMAN }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRICHTEXT_CACHE_SIZE", 0x04 }, - { "wxRICHTEXT_CHANGE_ATTRIBUTES", wxRICHTEXT_CHANGE_ATTRIBUTES }, - { "wxRICHTEXT_CHANGE_OBJECT", wxRICHTEXT_CHANGE_OBJECT }, - { "wxRICHTEXT_CHANGE_PROPERTIES", wxRICHTEXT_CHANGE_PROPERTIES }, - { "wxRICHTEXT_CHANGE_STYLE", wxRICHTEXT_CHANGE_STYLE }, - { "wxRICHTEXT_CTRL_DOWN", 0x02 }, - { "wxRICHTEXT_DEFAULT_CARET_WIDTH", 2 }, - { "wxRICHTEXT_DEFAULT_DELAYED_LAYOUT_THRESHOLD", 20000 }, - { "wxRICHTEXT_DEFAULT_LAYOUT_INTERVAL", 50 }, - { "wxRICHTEXT_DEFAULT_MARGIN", 3 }, - { "wxRICHTEXT_DEFAULT_SPACING", 3 }, - { "wxRICHTEXT_DELETE", wxRICHTEXT_DELETE }, - { "wxRICHTEXT_DRAW_GUIDELINES", 0x08 }, - { "wxRICHTEXT_DRAW_IGNORE_CACHE", 0x01 }, - { "wxRICHTEXT_DRAW_PRINT", 0x04 }, - { "wxRICHTEXT_DRAW_SELECTED", 0x02 }, - { "wxRICHTEXT_EX_NO_GUIDELINES", 0x00000100 }, - { "wxRICHTEXT_FIXED_HEIGHT", 0x02 }, - { "wxRICHTEXT_FIXED_WIDTH", 0x01 }, - { "wxRICHTEXT_FORMATTED", 0x01 }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRICHTEXT_FORMAT_BACKGROUND", 0x0200 }, - { "wxRICHTEXT_FORMAT_BORDERS", 0x0100 }, - { "wxRICHTEXT_FORMAT_BULLETS", 0x0008 }, - { "wxRICHTEXT_FORMAT_CHARACTER", (wxRICHTEXT_FORMAT_FONT) }, - { "wxRICHTEXT_FORMAT_FONT", 0x0002 }, - { "wxRICHTEXT_FORMAT_HELP_BUTTON", 0x1000 }, - { "wxRICHTEXT_FORMAT_INDENTS_SPACING", 0x0010 }, - { "wxRICHTEXT_FORMAT_LIST_STYLE", 0x0020 }, - { "wxRICHTEXT_FORMAT_MARGINS", 0x0040 }, - { "wxRICHTEXT_FORMAT_PARAGRAPH", (wxRICHTEXT_FORMAT_INDENTS_SPACING|wxRICHTEXT_FORMAT_BULLETS|wxRICHTEXT_FORMAT_TABS|wxRICHTEXT_FORMAT_FONT) }, - { "wxRICHTEXT_FORMAT_SIZE", 0x0080 }, - { "wxRICHTEXT_FORMAT_STYLE", (wxRICHTEXT_FORMAT_PARAGRAPH|wxRICHTEXT_FORMAT_STYLE_EDITOR) }, - { "wxRICHTEXT_FORMAT_STYLE_EDITOR", 0x0001 }, - { "wxRICHTEXT_FORMAT_TABS", 0x0004 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRICHTEXT_HANDLER_CONVERT_FACENAMES", 0x0100 }, - { "wxRICHTEXT_HANDLER_INCLUDE_STYLESHEET", 0x0001 }, - { "wxRICHTEXT_HANDLER_NO_HEADER_FOOTER", 0x0080 }, - { "wxRICHTEXT_HANDLER_SAVE_IMAGES_TO_BASE64", 0x0040 }, - { "wxRICHTEXT_HANDLER_SAVE_IMAGES_TO_FILES", 0x0020 }, - { "wxRICHTEXT_HANDLER_SAVE_IMAGES_TO_MEMORY", 0x0010 }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRICHTEXT_HANDLER_USE_CSS", 0x1000 }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRICHTEXT_HEIGHT_ONLY", 0x08 }, - { "wxRICHTEXT_HITTEST_AFTER", wxRICHTEXT_HITTEST_AFTER }, - { "wxRICHTEXT_HITTEST_BEFORE", wxRICHTEXT_HITTEST_BEFORE }, - { "wxRICHTEXT_HITTEST_HONOUR_ATOMIC", wxRICHTEXT_HITTEST_HONOUR_ATOMIC }, - { "wxRICHTEXT_HITTEST_NONE", wxRICHTEXT_HITTEST_NONE }, - { "wxRICHTEXT_HITTEST_NO_FLOATING_OBJECTS", wxRICHTEXT_HITTEST_NO_FLOATING_OBJECTS }, - { "wxRICHTEXT_HITTEST_NO_NESTED_OBJECTS", wxRICHTEXT_HITTEST_NO_NESTED_OBJECTS }, - { "wxRICHTEXT_HITTEST_ON", wxRICHTEXT_HITTEST_ON }, - { "wxRICHTEXT_HITTEST_OUTSIDE", wxRICHTEXT_HITTEST_OUTSIDE }, - { "wxRICHTEXT_INSERT", wxRICHTEXT_INSERT }, - { "wxRICHTEXT_INSERT_INTERACTIVE", 0x02 }, - { "wxRICHTEXT_INSERT_NONE", 0x00 }, - { "wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE", 0x01 }, - { "wxRICHTEXT_LAYOUT_SPECIFIED_RECT", 0x10 }, - { "wxRICHTEXT_ORGANISER_APPLY_STYLES", 0x0004 }, - { "wxRICHTEXT_ORGANISER_BROWSE", (wxRICHTEXT_ORGANISER_SHOW_ALL|wxRICHTEXT_ORGANISER_OK_CANCEL) }, - { "wxRICHTEXT_ORGANISER_BROWSE_NUMBERING", (wxRICHTEXT_ORGANISER_SHOW_LIST|wxRICHTEXT_ORGANISER_OK_CANCEL|wxRICHTEXT_ORGANISER_RENUMBER) }, - { "wxRICHTEXT_ORGANISER_CREATE_STYLES", 0x0002 }, - { "wxRICHTEXT_ORGANISER_DELETE_STYLES", 0x0001 }, - { "wxRICHTEXT_ORGANISER_EDIT_STYLES", 0x0008 }, - { "wxRICHTEXT_ORGANISER_OK_CANCEL", 0x0020 }, - { "wxRICHTEXT_ORGANISER_ORGANISE", (wxRICHTEXT_ORGANISER_SHOW_ALL|wxRICHTEXT_ORGANISER_DELETE_STYLES|wxRICHTEXT_ORGANISER_CREATE_STYLES|wxRICHTEXT_ORGANISER_APPLY_STYLES|wxRICHTEXT_ORGANISER_EDIT_STYLES|wxRICHTEXT_ORGANISER_RENAME_STYLES) }, - { "wxRICHTEXT_ORGANISER_RENAME_STYLES", 0x0010 }, - { "wxRICHTEXT_ORGANISER_RENUMBER", 0x0040 }, - { "wxRICHTEXT_ORGANISER_SHOW_ALL", 0x1000 }, - { "wxRICHTEXT_ORGANISER_SHOW_BOX", 0x0800 }, - { "wxRICHTEXT_ORGANISER_SHOW_CHARACTER", 0x0100 }, - { "wxRICHTEXT_ORGANISER_SHOW_LIST", 0x0400 }, - { "wxRICHTEXT_ORGANISER_SHOW_PARAGRAPH", 0x0200 }, - { "wxRICHTEXT_PAGE_ALL", wxRICHTEXT_PAGE_ALL }, - { "wxRICHTEXT_PAGE_CENTRE", wxRICHTEXT_PAGE_CENTRE }, - { "wxRICHTEXT_PAGE_EVEN", wxRICHTEXT_PAGE_EVEN }, - { "wxRICHTEXT_PAGE_LEFT", wxRICHTEXT_PAGE_LEFT }, - { "wxRICHTEXT_PAGE_ODD", wxRICHTEXT_PAGE_ODD }, - { "wxRICHTEXT_PAGE_RIGHT", wxRICHTEXT_PAGE_RIGHT }, - { "wxRICHTEXT_PRINT_MAX_PAGES", 99999 }, - { "wxRICHTEXT_SETPROPERTIES_CHARACTERS_ONLY", 0x04 }, - { "wxRICHTEXT_SETPROPERTIES_NONE", 0x00 }, - { "wxRICHTEXT_SETPROPERTIES_PARAGRAPHS_ONLY", 0x02 }, - { "wxRICHTEXT_SETPROPERTIES_REMOVE", 0x10 }, - { "wxRICHTEXT_SETPROPERTIES_RESET", 0x08 }, - { "wxRICHTEXT_SETPROPERTIES_WITH_UNDO", 0x01 }, - { "wxRICHTEXT_SETSTYLE_CHARACTERS_ONLY", 0x08 }, - { "wxRICHTEXT_SETSTYLE_NONE", 0x00 }, - { "wxRICHTEXT_SETSTYLE_OPTIMIZE", 0x02 }, - { "wxRICHTEXT_SETSTYLE_PARAGRAPHS_ONLY", 0x04 }, - { "wxRICHTEXT_SETSTYLE_REMOVE", 0x80 }, - { "wxRICHTEXT_SETSTYLE_RENUMBER", 0x10 }, - { "wxRICHTEXT_SETSTYLE_RESET", 0x40 }, - { "wxRICHTEXT_SETSTYLE_SPECIFY_LEVEL", 0x20 }, - { "wxRICHTEXT_SETSTYLE_WITH_UNDO", 0x01 }, - { "wxRICHTEXT_SHIFT_DOWN", 0x01 }, - { "wxRICHTEXT_TYPE_ANY", wxRICHTEXT_TYPE_ANY }, - { "wxRICHTEXT_TYPE_HTML", wxRICHTEXT_TYPE_HTML }, - { "wxRICHTEXT_TYPE_PDF", wxRICHTEXT_TYPE_PDF }, - { "wxRICHTEXT_TYPE_RTF", wxRICHTEXT_TYPE_RTF }, - { "wxRICHTEXT_TYPE_TEXT", wxRICHTEXT_TYPE_TEXT }, - { "wxRICHTEXT_TYPE_XML", wxRICHTEXT_TYPE_XML }, - { "wxRICHTEXT_UNFORMATTED", 0x02 }, - { "wxRICHTEXT_USE_OWN_CARET", wxRICHTEXT_USE_OWN_CARET }, - { "wxRICHTEXT_VARIABLE_HEIGHT", 0x08 }, - { "wxRICHTEXT_VARIABLE_WIDTH", 0x04 }, - { "wxRichTextCtrlSelectionState_CommonAncestor", wxRichTextCtrlSelectionState_CommonAncestor }, - { "wxRichTextCtrlSelectionState_Normal", wxRichTextCtrlSelectionState_Normal }, - { "wxSCRIPT_MUL_FACTOR", 1.5 }, - { "wxTEXT_ATTR_KEEP_FIRST_PARA_STYLE", 0x20000000 }, - { "wxTEXT_ATTR_UNITS_HUNDREDTHS_POINT", wxTEXT_ATTR_UNITS_HUNDREDTHS_POINT }, - { "wxTEXT_ATTR_UNITS_MASK", wxTEXT_ATTR_UNITS_MASK }, - { "wxTEXT_ATTR_UNITS_PERCENTAGE", wxTEXT_ATTR_UNITS_PERCENTAGE }, - { "wxTEXT_ATTR_UNITS_PIXELS", wxTEXT_ATTR_UNITS_PIXELS }, - { "wxTEXT_ATTR_UNITS_POINTS", wxTEXT_ATTR_UNITS_POINTS }, - { "wxTEXT_ATTR_UNITS_TENTHS_MM", wxTEXT_ATTR_UNITS_TENTHS_MM }, - { "wxTEXT_ATTR_VALUE_VALID", wxTEXT_ATTR_VALUE_VALID }, - { "wxTEXT_ATTR_VALUE_VALID_MASK", wxTEXT_ATTR_VALUE_VALID_MASK }, - { "wxTEXT_BOX_ATTR_BORDER_COLOUR", wxTEXT_BOX_ATTR_BORDER_COLOUR }, - { "wxTEXT_BOX_ATTR_BORDER_DASHED", wxTEXT_BOX_ATTR_BORDER_DASHED }, - { "wxTEXT_BOX_ATTR_BORDER_DOTTED", wxTEXT_BOX_ATTR_BORDER_DOTTED }, - { "wxTEXT_BOX_ATTR_BORDER_DOUBLE", wxTEXT_BOX_ATTR_BORDER_DOUBLE }, - { "wxTEXT_BOX_ATTR_BORDER_GROOVE", wxTEXT_BOX_ATTR_BORDER_GROOVE }, - { "wxTEXT_BOX_ATTR_BORDER_INSET", wxTEXT_BOX_ATTR_BORDER_INSET }, - { "wxTEXT_BOX_ATTR_BORDER_MEDIUM", wxTEXT_BOX_ATTR_BORDER_MEDIUM }, - { "wxTEXT_BOX_ATTR_BORDER_NONE", wxTEXT_BOX_ATTR_BORDER_NONE }, - { "wxTEXT_BOX_ATTR_BORDER_OUTSET", wxTEXT_BOX_ATTR_BORDER_OUTSET }, - { "wxTEXT_BOX_ATTR_BORDER_RIDGE", wxTEXT_BOX_ATTR_BORDER_RIDGE }, - { "wxTEXT_BOX_ATTR_BORDER_SOLID", wxTEXT_BOX_ATTR_BORDER_SOLID }, - { "wxTEXT_BOX_ATTR_BORDER_STYLE", wxTEXT_BOX_ATTR_BORDER_STYLE }, - { "wxTEXT_BOX_ATTR_BORDER_THICK", wxTEXT_BOX_ATTR_BORDER_THICK }, - { "wxTEXT_BOX_ATTR_BORDER_THIN", wxTEXT_BOX_ATTR_BORDER_THIN }, - { "wxTEXT_BOX_ATTR_BOX_STYLE_NAME", wxTEXT_BOX_ATTR_BOX_STYLE_NAME }, - { "wxTEXT_BOX_ATTR_CLEAR", wxTEXT_BOX_ATTR_CLEAR }, - { "wxTEXT_BOX_ATTR_CLEAR_BOTH", wxTEXT_BOX_ATTR_CLEAR_BOTH }, - { "wxTEXT_BOX_ATTR_CLEAR_LEFT", wxTEXT_BOX_ATTR_CLEAR_LEFT }, - { "wxTEXT_BOX_ATTR_CLEAR_NONE", wxTEXT_BOX_ATTR_CLEAR_NONE }, - { "wxTEXT_BOX_ATTR_CLEAR_RIGHT", wxTEXT_BOX_ATTR_CLEAR_RIGHT }, - { "wxTEXT_BOX_ATTR_COLLAPSE_BORDERS", wxTEXT_BOX_ATTR_COLLAPSE_BORDERS }, - { "wxTEXT_BOX_ATTR_COLLAPSE_FULL", wxTEXT_BOX_ATTR_COLLAPSE_FULL }, - { "wxTEXT_BOX_ATTR_COLLAPSE_NONE", wxTEXT_BOX_ATTR_COLLAPSE_NONE }, - { "wxTEXT_BOX_ATTR_FLOAT", wxTEXT_BOX_ATTR_FLOAT }, - { "wxTEXT_BOX_ATTR_FLOAT_LEFT", wxTEXT_BOX_ATTR_FLOAT_LEFT }, - { "wxTEXT_BOX_ATTR_FLOAT_NONE", wxTEXT_BOX_ATTR_FLOAT_NONE }, - { "wxTEXT_BOX_ATTR_FLOAT_RIGHT", wxTEXT_BOX_ATTR_FLOAT_RIGHT }, - { "wxTEXT_BOX_ATTR_POSITION_ABSOLUTE", wxTEXT_BOX_ATTR_POSITION_ABSOLUTE }, - { "wxTEXT_BOX_ATTR_POSITION_FIXED", wxTEXT_BOX_ATTR_POSITION_FIXED }, - { "wxTEXT_BOX_ATTR_POSITION_MASK", wxTEXT_BOX_ATTR_POSITION_MASK }, - { "wxTEXT_BOX_ATTR_POSITION_RELATIVE", wxTEXT_BOX_ATTR_POSITION_RELATIVE }, - { "wxTEXT_BOX_ATTR_POSITION_STATIC", wxTEXT_BOX_ATTR_POSITION_STATIC }, - { "wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT", wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT }, - { "wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_BOTTOM", wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_BOTTOM }, - { "wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_CENTRE", wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_CENTRE }, - { "wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_NONE", wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_NONE }, - { "wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_TOP", wxTEXT_BOX_ATTR_VERTICAL_ALIGNMENT_TOP }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxrichtext() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxrichtext(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxrichtext() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxrichtext(size_t &count) -{ - static wxLuaBindObject objectList[] = - { -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRICHTEXT_ALL", &wxluatype_wxRichTextRange, &wxRICHTEXT_ALL, NULL }, - { "wxRICHTEXT_NONE", &wxluatype_wxRichTextRange, &wxRICHTEXT_NONE, NULL }, - { "wxRICHTEXT_NO_SELECTION", &wxluatype_wxRichTextRange, &wxRICHTEXT_NO_SELECTION, NULL }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxrichtext() is called to register global functions -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextApplyStyle[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxRichTextApplyStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style, wxRichTextAttr* compareWith = NULL); -static int LUACALL wxLua_function_wxRichTextApplyStyle(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxRichTextAttr compareWith = NULL - wxRichTextAttr * compareWith = (argCount >= 3 ? (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr) : NULL); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // wxRichTextAttr destStyle - wxRichTextAttr * destStyle = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call wxRichTextApplyStyle - bool returns = (wxRichTextApplyStyle(*destStyle, *style, compareWith)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextApplyStyle[1] = {{ wxLua_function_wxRichTextApplyStyle, WXLUAMETHOD_CFUNCTION, 2, 3, s_wxluatypeArray_wxLua_function_wxRichTextApplyStyle }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextBitlistsEqPartial[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxRichTextBitlistsEqPartial(int valueA, int valueB, int flags); -static int LUACALL wxLua_function_wxRichTextBitlistsEqPartial(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // int valueB - int valueB = (int)wxlua_getnumbertype(L, 2); - // int valueA - int valueA = (int)wxlua_getnumbertype(L, 1); - // call wxRichTextBitlistsEqPartial - bool returns = (wxRichTextBitlistsEqPartial(valueA, valueB, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextBitlistsEqPartial[1] = {{ wxLua_function_wxRichTextBitlistsEqPartial, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxRichTextBitlistsEqPartial }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextCombineBitlists[] = { &wxluatype_TLIGHTUSERDATA, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, &wxluatype_TNUMBER, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxRichTextCombineBitlists(int& valueA, int valueB, int& flagsA, int flagsB); -static int LUACALL wxLua_function_wxRichTextCombineBitlists(lua_State *L) -{ - // int flagsB - int flagsB = (int)wxlua_getnumbertype(L, 4); - // int flagsA - int * flagsA = (int *)wxlua_touserdata(L, 3); - // int valueB - int valueB = (int)wxlua_getnumbertype(L, 2); - // int valueA - int * valueA = (int *)wxlua_touserdata(L, 1); - // call wxRichTextCombineBitlists - bool returns = (wxRichTextCombineBitlists(*valueA, valueB, *flagsA, flagsB)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextCombineBitlists[1] = {{ wxLua_function_wxRichTextCombineBitlists, WXLUAMETHOD_CFUNCTION, 4, 4, s_wxluatypeArray_wxLua_function_wxRichTextCombineBitlists }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextDecimalToRoman[] = { &wxluatype_TNUMBER, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ wxString wxRichTextDecimalToRoman(long n); -static int LUACALL wxLua_function_wxRichTextDecimalToRoman(lua_State *L) -{ - // long n - long n = (long)wxlua_getnumbertype(L, 1); - // call wxRichTextDecimalToRoman - wxString returns = (wxRichTextDecimalToRoman(n)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextDecimalToRoman[1] = {{ wxLua_function_wxRichTextDecimalToRoman, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_wxRichTextDecimalToRoman }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextHasStyle[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// /*inline*/ bool wxRichTextHasStyle(int flags, int style); -static int LUACALL wxLua_function_wxRichTextHasStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // int flags - int flags = (int)wxlua_getnumbertype(L, 1); - // call wxRichTextHasStyle - bool returns = (wxRichTextHasStyle(flags, style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextHasStyle[1] = {{ wxLua_function_wxRichTextHasStyle, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxRichTextHasStyle }}; - -// /*WXDLLIMPEXP_RICHTEXT*/ void wxRichTextModuleInit(); -static int LUACALL wxLua_function_wxRichTextModuleInit(lua_State *L) -{ - // call wxRichTextModuleInit - wxRichTextModuleInit(); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextModuleInit[1] = {{ wxLua_function_wxRichTextModuleInit, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextRemoveStyle[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxRichTextRemoveStyle(wxRichTextAttr& destStyle, const wxRichTextAttr& style); -static int LUACALL wxLua_function_wxRichTextRemoveStyle(lua_State *L) -{ - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // wxRichTextAttr destStyle - wxRichTextAttr * destStyle = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call wxRichTextRemoveStyle - bool returns = (wxRichTextRemoveStyle(*destStyle, *style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextRemoveStyle[1] = {{ wxLua_function_wxRichTextRemoveStyle, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxRichTextRemoveStyle }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextSplitParaCharStyles[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxRichTextSplitParaCharStyles(const wxRichTextAttr& style, wxRichTextAttr& parStyle, wxRichTextAttr& charStyle); -static int LUACALL wxLua_function_wxRichTextSplitParaCharStyles(lua_State *L) -{ - // wxRichTextAttr charStyle - wxRichTextAttr * charStyle = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxRichTextAttr); - // wxRichTextAttr parStyle - wxRichTextAttr * parStyle = (wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // const wxRichTextAttr style - const wxRichTextAttr * style = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call wxRichTextSplitParaCharStyles - bool returns = (wxRichTextSplitParaCharStyles(*style, *parStyle, *charStyle)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextSplitParaCharStyles[1] = {{ wxLua_function_wxRichTextSplitParaCharStyles, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxRichTextSplitParaCharStyles }}; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxRichTextTabsEq[] = { &wxluatype_wxArrayInt, &wxluatype_wxArrayInt, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxRichTextTabsEq(const wxArrayInt& tabs1, const wxArrayInt& tabs2); -static int LUACALL wxLua_function_wxRichTextTabsEq(lua_State *L) -{ - // const wxArrayInt tabs2 - wxLuaSmartwxArrayInt tabs2 = wxlua_getwxArrayInt(L, 2); - // const wxArrayInt tabs1 - wxLuaSmartwxArrayInt tabs1 = wxlua_getwxArrayInt(L, 1); - // call wxRichTextTabsEq - bool returns = (wxRichTextTabsEq(tabs1, tabs2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxRichTextTabsEq[1] = {{ wxLua_function_wxRichTextTabsEq, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxRichTextTabsEq }}; - -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxTextAttrCollectCommonAttributes[] = { &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, &wxluatype_wxTextAttr, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ void wxTextAttrCollectCommonAttributes(wxTextAttr& currentStyle, const wxTextAttr& attr, wxTextAttr& clashingAttr, wxTextAttr& absentAttr); -static int LUACALL wxLua_function_wxTextAttrCollectCommonAttributes(lua_State *L) -{ - // wxTextAttr absentAttr - wxTextAttr * absentAttr = (wxTextAttr *)wxluaT_getuserdatatype(L, 4, wxluatype_wxTextAttr); - // wxTextAttr clashingAttr - wxTextAttr * clashingAttr = (wxTextAttr *)wxluaT_getuserdatatype(L, 3, wxluatype_wxTextAttr); - // const wxTextAttr attr - const wxTextAttr * attr = (const wxTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxTextAttr); - // wxTextAttr currentStyle - wxTextAttr * currentStyle = (wxTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxTextAttr); - // call wxTextAttrCollectCommonAttributes - wxTextAttrCollectCommonAttributes(*currentStyle, *attr, *clashingAttr, *absentAttr); - - return 0; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxTextAttrCollectCommonAttributes[1] = {{ wxLua_function_wxTextAttrCollectCommonAttributes, WXLUAMETHOD_CFUNCTION, 4, 4, s_wxluatypeArray_wxLua_function_wxTextAttrCollectCommonAttributes }}; - -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxTextAttrEq1[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxTextAttrEq(const wxRichTextAttr& attr1, const wxRichTextAttr& attr2); -static int LUACALL wxLua_function_wxTextAttrEq1(lua_State *L) -{ - // const wxRichTextAttr attr2 - const wxRichTextAttr * attr2 = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // const wxRichTextAttr attr1 - const wxRichTextAttr * attr1 = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call wxTextAttrEq - bool returns = (wxTextAttrEq(*attr1, *attr2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxTextAttrEq1[1] = {{ wxLua_function_wxTextAttrEq1, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxTextAttrEq1 }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxTextAttrEq[] = { &wxluatype_wxRichTextAttr, &wxluatype_wxRichTextAttr, NULL }; -// /*WXDLLIMPEXP_RICHTEXT*/ bool wxTextAttrEq(const wxRichTextAttr& attr1, const wxRichTextAttr& attr2); -static int LUACALL wxLua_function_wxTextAttrEq(lua_State *L) -{ - // const wxRichTextAttr attr2 - const wxRichTextAttr * attr2 = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 2, wxluatype_wxRichTextAttr); - // const wxRichTextAttr attr1 - const wxRichTextAttr * attr1 = (const wxRichTextAttr *)wxluaT_getuserdatatype(L, 1, wxluatype_wxRichTextAttr); - // call wxTextAttrEq - bool returns = (wxTextAttrEq(*attr1, *attr2)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxTextAttrEq[1] = {{ wxLua_function_wxTextAttrEq, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_wxTextAttrEq }}; - -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxrichtext() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxrichtext(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxRichTextApplyStyle", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextApplyStyle, 1, NULL }, - { "wxRichTextBitlistsEqPartial", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextBitlistsEqPartial, 1, NULL }, - { "wxRichTextCombineBitlists", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextCombineBitlists, 1, NULL }, - { "wxRichTextDecimalToRoman", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextDecimalToRoman, 1, NULL }, - { "wxRichTextHasStyle", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextHasStyle, 1, NULL }, - { "wxRichTextModuleInit", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextModuleInit, 1, NULL }, - { "wxRichTextRemoveStyle", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextRemoveStyle, 1, NULL }, - { "wxRichTextSplitParaCharStyles", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextSplitParaCharStyles, 1, NULL }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { "wxRichTextTabsEq", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxRichTextTabsEq, 1, NULL }, -#endif // (wxLUA_USE_wxArrayInt) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - { "wxTextAttrCollectCommonAttributes", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxTextAttrCollectCommonAttributes, 1, NULL }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxTextCtrl && wxUSE_TEXTCTRL) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { "wxTextAttrEq", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxTextAttrEq1, 1, NULL }, - { "wxTextAttrEq", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxTextAttrEq, 1, NULL }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxrichtext() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxComboCtrl = "wxComboCtrl"; -static const char* wxluaclassname_wxCommand = "wxCommand"; -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxDataObjectSimple = "wxDataObjectSimple"; -static const char* wxluaclassname_wxDialog = "wxDialog"; -static const char* wxluaclassname_wxDropSource = "wxDropSource"; -static const char* wxluaclassname_wxDropTarget = "wxDropTarget"; -static const char* wxluaclassname_wxHtmlListBox = "wxHtmlListBox"; -static const char* wxluaclassname_wxList = "wxList"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxPrintout = "wxPrintout"; -static const char* wxluaclassname_wxRichTextAction = "wxRichTextAction"; -static const char* wxluaclassname_wxRichTextAttr = "wxRichTextAttr"; -static const char* wxluaclassname_wxRichTextAttrArray = "wxRichTextAttrArray"; -static const char* wxluaclassname_wxRichTextBox = "wxRichTextBox"; -static const char* wxluaclassname_wxRichTextBoxStyleDefinition = "wxRichTextBoxStyleDefinition"; -static const char* wxluaclassname_wxRichTextBuffer = "wxRichTextBuffer"; -static const char* wxluaclassname_wxRichTextBufferDataObject = "wxRichTextBufferDataObject"; -static const char* wxluaclassname_wxRichTextCell = "wxRichTextCell"; -static const char* wxluaclassname_wxRichTextCharacterStyleDefinition = "wxRichTextCharacterStyleDefinition"; -static const char* wxluaclassname_wxRichTextCommand = "wxRichTextCommand"; -static const char* wxluaclassname_wxRichTextCompositeObject = "wxRichTextCompositeObject"; -static const char* wxluaclassname_wxRichTextContextMenuPropertiesInfo = "wxRichTextContextMenuPropertiesInfo"; -static const char* wxluaclassname_wxRichTextCtrl = "wxRichTextCtrl"; -static const char* wxluaclassname_wxRichTextDrawingContext = "wxRichTextDrawingContext"; -static const char* wxluaclassname_wxRichTextDrawingHandler = "wxRichTextDrawingHandler"; -static const char* wxluaclassname_wxRichTextDropSource = "wxRichTextDropSource"; -static const char* wxluaclassname_wxRichTextDropTarget = "wxRichTextDropTarget"; -static const char* wxluaclassname_wxRichTextEvent = "wxRichTextEvent"; -static const char* wxluaclassname_wxRichTextField = "wxRichTextField"; -static const char* wxluaclassname_wxRichTextFieldType = "wxRichTextFieldType"; -static const char* wxluaclassname_wxRichTextFieldTypeHashMap = "wxRichTextFieldTypeHashMap"; -static const char* wxluaclassname_wxRichTextFieldTypeHashMap_iterator = "wxRichTextFieldTypeHashMap_iterator"; -static const char* wxluaclassname_wxRichTextFieldTypeStandard = "wxRichTextFieldTypeStandard"; -static const char* wxluaclassname_wxRichTextFileHandler = "wxRichTextFileHandler"; -static const char* wxluaclassname_wxRichTextFontTable = "wxRichTextFontTable"; -static const char* wxluaclassname_wxRichTextFormattingDialog = "wxRichTextFormattingDialog"; -static const char* wxluaclassname_wxRichTextFormattingDialogFactory = "wxRichTextFormattingDialogFactory"; -static const char* wxluaclassname_wxRichTextHTMLHandler = "wxRichTextHTMLHandler"; -static const char* wxluaclassname_wxRichTextHeaderFooterData = "wxRichTextHeaderFooterData"; -static const char* wxluaclassname_wxRichTextImage = "wxRichTextImage"; -static const char* wxluaclassname_wxRichTextImageBlock = "wxRichTextImageBlock"; -static const char* wxluaclassname_wxRichTextLine = "wxRichTextLine"; -static const char* wxluaclassname_wxRichTextLineList = "wxRichTextLineList"; -static const char* wxluaclassname_wxRichTextListStyleDefinition = "wxRichTextListStyleDefinition"; -static const char* wxluaclassname_wxRichTextObject = "wxRichTextObject"; -static const char* wxluaclassname_wxRichTextObjectAddress = "wxRichTextObjectAddress"; -static const char* wxluaclassname_wxRichTextObjectList = "wxRichTextObjectList"; -static const char* wxluaclassname_wxRichTextObjectPropertiesDialog = "wxRichTextObjectPropertiesDialog"; -static const char* wxluaclassname_wxRichTextObjectPtrArray = "wxRichTextObjectPtrArray"; -static const char* wxluaclassname_wxRichTextObjectPtrArrayArray = "wxRichTextObjectPtrArrayArray"; -static const char* wxluaclassname_wxRichTextParagraph = "wxRichTextParagraph"; -static const char* wxluaclassname_wxRichTextParagraphLayoutBox = "wxRichTextParagraphLayoutBox"; -static const char* wxluaclassname_wxRichTextParagraphStyleDefinition = "wxRichTextParagraphStyleDefinition"; -static const char* wxluaclassname_wxRichTextPlainText = "wxRichTextPlainText"; -static const char* wxluaclassname_wxRichTextPlainTextHandler = "wxRichTextPlainTextHandler"; -static const char* wxluaclassname_wxRichTextPrinting = "wxRichTextPrinting"; -static const char* wxluaclassname_wxRichTextPrintout = "wxRichTextPrintout"; -static const char* wxluaclassname_wxRichTextProperties = "wxRichTextProperties"; -static const char* wxluaclassname_wxRichTextRange = "wxRichTextRange"; -static const char* wxluaclassname_wxRichTextRangeArray = "wxRichTextRangeArray"; -static const char* wxluaclassname_wxRichTextRectArray = "wxRichTextRectArray"; -static const char* wxluaclassname_wxRichTextRenderer = "wxRichTextRenderer"; -static const char* wxluaclassname_wxRichTextSelection = "wxRichTextSelection"; -static const char* wxluaclassname_wxRichTextStdRenderer = "wxRichTextStdRenderer"; -static const char* wxluaclassname_wxRichTextStyleComboCtrl = "wxRichTextStyleComboCtrl"; -static const char* wxluaclassname_wxRichTextStyleDefinition = "wxRichTextStyleDefinition"; -static const char* wxluaclassname_wxRichTextStyleListBox = "wxRichTextStyleListBox"; -static const char* wxluaclassname_wxRichTextStyleListCtrl = "wxRichTextStyleListCtrl"; -static const char* wxluaclassname_wxRichTextStyleOrganiserDialog = "wxRichTextStyleOrganiserDialog"; -static const char* wxluaclassname_wxRichTextStyleSheet = "wxRichTextStyleSheet"; -static const char* wxluaclassname_wxRichTextTable = "wxRichTextTable"; -static const char* wxluaclassname_wxRichTextTableBlock = "wxRichTextTableBlock"; -static const char* wxluaclassname_wxRichTextVariantArray = "wxRichTextVariantArray"; -static const char* wxluaclassname_wxRichTextXMLHandler = "wxRichTextXMLHandler"; -static const char* wxluaclassname_wxRichTextXMLHelper = "wxRichTextXMLHelper"; -static const char* wxluaclassname_wxScrollHelper = "wxScrollHelper"; -static const char* wxluaclassname_wxSymbolListCtrl = "wxSymbolListCtrl"; -static const char* wxluaclassname_wxSymbolPickerDialog = "wxSymbolPickerDialog"; -static const char* wxluaclassname_wxTextAttr = "wxTextAttr"; -static const char* wxluaclassname_wxTextAttrBorder = "wxTextAttrBorder"; -static const char* wxluaclassname_wxTextAttrBorders = "wxTextAttrBorders"; -static const char* wxluaclassname_wxTextAttrDimension = "wxTextAttrDimension"; -static const char* wxluaclassname_wxTextAttrDimensionConverter = "wxTextAttrDimensionConverter"; -static const char* wxluaclassname_wxTextAttrDimensions = "wxTextAttrDimensions"; -static const char* wxluaclassname_wxTextAttrSize = "wxTextAttrSize"; -static const char* wxluaclassname_wxTextBoxAttr = "wxTextBoxAttr"; -static const char* wxluaclassname_wxTextCtrlIface = "wxTextCtrlIface"; -static const char* wxluaclassname_wxVScrolledWindow = "wxVScrolledWindow"; - -static const char* wxluabaseclassnames_wxRichTextAction[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextAction[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextAttr[] = { wxluaclassname_wxTextAttr, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextAttr[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextBox[] = { wxluaclassname_wxRichTextParagraphLayoutBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextBox[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextBoxStyleDefinition[] = { wxluaclassname_wxRichTextStyleDefinition, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextBoxStyleDefinition[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextBuffer[] = { wxluaclassname_wxRichTextParagraphLayoutBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextBuffer[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextBufferDataObject[] = { wxluaclassname_wxDataObjectSimple, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextBufferDataObject[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextCell[] = { wxluaclassname_wxRichTextBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextCell[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextCharacterStyleDefinition[] = { wxluaclassname_wxRichTextStyleDefinition, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextCharacterStyleDefinition[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextCommand[] = { wxluaclassname_wxCommand, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextCommand[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextCompositeObject[] = { wxluaclassname_wxRichTextObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextCompositeObject[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextCtrl[] = { wxluaclassname_wxControl, wxluaclassname_wxTextCtrlIface, wxluaclassname_wxScrollHelper, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextCtrl[] = { NULL, NULL, NULL }; -static const char* wxluabaseclassnames_wxRichTextDrawingContext[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextDrawingContext[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextDrawingHandler[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextDrawingHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextDropSource[] = { wxluaclassname_wxDropSource, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextDropSource[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextDropTarget[] = { wxluaclassname_wxDropTarget, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextDropTarget[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextField[] = { wxluaclassname_wxRichTextParagraphLayoutBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextField[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextFieldType[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextFieldType[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextFieldTypeStandard[] = { wxluaclassname_wxRichTextFieldType, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextFieldTypeStandard[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextFileHandler[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextFileHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextFontTable[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextFontTable[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextFormattingDialogFactory[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextFormattingDialogFactory[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextHTMLHandler[] = { wxluaclassname_wxRichTextFileHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextHTMLHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextHeaderFooterData[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextHeaderFooterData[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextImage[] = { wxluaclassname_wxRichTextObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextImage[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextImageBlock[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextImageBlock[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextLineList[] = { wxluaclassname_wxList, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextLineList[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextListStyleDefinition[] = { wxluaclassname_wxRichTextParagraphStyleDefinition, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextListStyleDefinition[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextObject[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextObject[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextObjectList[] = { wxluaclassname_wxList, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextObjectList[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextObjectPropertiesDialog[] = { wxluaclassname_wxRichTextFormattingDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextObjectPropertiesDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextParagraph[] = { wxluaclassname_wxRichTextCompositeObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextParagraph[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextParagraphLayoutBox[] = { wxluaclassname_wxRichTextCompositeObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextParagraphLayoutBox[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextParagraphStyleDefinition[] = { wxluaclassname_wxRichTextStyleDefinition, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextParagraphStyleDefinition[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextPlainText[] = { wxluaclassname_wxRichTextObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextPlainText[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextPlainTextHandler[] = { wxluaclassname_wxRichTextFileHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextPlainTextHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextPrinting[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextPrinting[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextPrintout[] = { wxluaclassname_wxPrintout, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextPrintout[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextProperties[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextProperties[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextRenderer[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStdRenderer[] = { wxluaclassname_wxRichTextRenderer, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStdRenderer[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStyleComboCtrl[] = { wxluaclassname_wxComboCtrl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStyleComboCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStyleDefinition[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStyleDefinition[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStyleListBox[] = { wxluaclassname_wxHtmlListBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStyleListBox[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStyleListCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStyleListCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStyleOrganiserDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStyleOrganiserDialog[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextStyleSheet[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextStyleSheet[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextTable[] = { wxluaclassname_wxRichTextBox, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextTable[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextXMLHandler[] = { wxluaclassname_wxRichTextFileHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextXMLHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxRichTextXMLHelper[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxRichTextXMLHelper[] = { NULL }; -static const char* wxluabaseclassnames_wxSymbolListCtrl[] = { wxluaclassname_wxVScrolledWindow, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSymbolListCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxSymbolPickerDialog[] = { wxluaclassname_wxDialog, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxSymbolPickerDialog[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - extern wxLuaBindMethod wxRichTextFormattingDialog_methods[]; - extern int wxRichTextFormattingDialog_methodCount; - extern wxLuaBindNumber wxRichTextFormattingDialog_enums[]; - extern int wxRichTextFormattingDialog_enumCount; - extern void wxLua_wxRichTextFormattingDialog_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFormattingDialogFactory_methods[]; - extern int wxRichTextFormattingDialogFactory_methodCount; - extern void wxLua_wxRichTextFormattingDialogFactory_delete_function(void** p); - extern wxLuaBindMethod wxRichTextHTMLHandler_methods[]; - extern int wxRichTextHTMLHandler_methodCount; - extern void wxLua_wxRichTextHTMLHandler_delete_function(void** p); - extern wxLuaBindMethod wxRichTextObjectPropertiesDialog_methods[]; - extern int wxRichTextObjectPropertiesDialog_methodCount; - extern wxLuaBindNumber wxRichTextObjectPropertiesDialog_enums[]; - extern int wxRichTextObjectPropertiesDialog_enumCount; - extern void wxLua_wxRichTextObjectPropertiesDialog_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - extern wxLuaBindMethod wxRichTextLineList_methods[]; - extern int wxRichTextLineList_methodCount; - extern void wxLua_wxRichTextLineList_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - extern wxLuaBindMethod wxRichTextStyleComboCtrl_methods[]; - extern int wxRichTextStyleComboCtrl_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxRichTextStyleComboCtrl[] = { &wxluatype_wxTextEntry, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxRichTextStyleComboCtrl[] = { wxIntPtr(((wxIntPtr)(wxTextEntry*)(wxRichTextStyleComboCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxRichTextStyleComboCtrl*)&wxluatype_TNONE)) }; - extern void wxLua_wxRichTextStyleComboCtrl_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - extern wxLuaBindMethod wxRichTextBufferDataObject_methods[]; - extern int wxRichTextBufferDataObject_methodCount; - extern void wxLua_wxRichTextBufferDataObject_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - extern wxLuaBindMethod wxRichTextDropSource_methods[]; - extern int wxRichTextDropSource_methodCount; - extern void wxLua_wxRichTextDropSource_delete_function(void** p); - extern wxLuaBindMethod wxRichTextDropTarget_methods[]; - extern int wxRichTextDropTarget_methodCount; - extern void wxLua_wxRichTextDropTarget_delete_function(void** p); - extern wxLuaBindMethod wxRichTextEvent_methods[]; - extern int wxRichTextEvent_methodCount; - extern void wxLua_wxRichTextEvent_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - extern wxLuaBindMethod wxRichTextStyleListBox_methods[]; - extern int wxRichTextStyleListBox_methodCount; - extern wxLuaBindNumber wxRichTextStyleListBox_enums[]; - extern int wxRichTextStyleListBox_enumCount; - extern void wxLua_wxRichTextStyleListBox_delete_function(void** p); - extern wxLuaBindMethod wxRichTextStyleListCtrl_methods[]; - extern int wxRichTextStyleListCtrl_methodCount; - extern void wxLua_wxRichTextStyleListCtrl_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - extern wxLuaBindMethod wxRichTextXMLHandler_methods[]; - extern int wxRichTextXMLHandler_methodCount; - extern void wxLua_wxRichTextXMLHandler_delete_function(void** p); - extern wxLuaBindMethod wxRichTextXMLHelper_methods[]; - extern int wxRichTextXMLHelper_methodCount; - extern void wxLua_wxRichTextXMLHelper_delete_function(void** p); -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - extern wxLuaBindMethod wxRichTextAction_methods[]; - extern int wxRichTextAction_methodCount; - extern void wxLua_wxRichTextAction_delete_function(void** p); - extern wxLuaBindMethod wxRichTextAttr_methods[]; - extern int wxRichTextAttr_methodCount; - extern void wxLua_wxRichTextAttr_delete_function(void** p); - extern wxLuaBindMethod wxRichTextAttrArray_methods[]; - extern int wxRichTextAttrArray_methodCount; - extern void wxLua_wxRichTextAttrArray_delete_function(void** p); - extern wxLuaBindMethod wxRichTextBox_methods[]; - extern int wxRichTextBox_methodCount; - extern void wxLua_wxRichTextBox_delete_function(void** p); - extern wxLuaBindMethod wxRichTextBoxStyleDefinition_methods[]; - extern int wxRichTextBoxStyleDefinition_methodCount; - extern void wxLua_wxRichTextBoxStyleDefinition_delete_function(void** p); - extern wxLuaBindMethod wxRichTextBuffer_methods[]; - extern int wxRichTextBuffer_methodCount; - extern void wxLua_wxRichTextBuffer_delete_function(void** p); - extern wxLuaBindMethod wxRichTextCell_methods[]; - extern int wxRichTextCell_methodCount; - extern void wxLua_wxRichTextCell_delete_function(void** p); - extern wxLuaBindMethod wxRichTextCharacterStyleDefinition_methods[]; - extern int wxRichTextCharacterStyleDefinition_methodCount; - extern void wxLua_wxRichTextCharacterStyleDefinition_delete_function(void** p); - extern wxLuaBindMethod wxRichTextCommand_methods[]; - extern int wxRichTextCommand_methodCount; - extern void wxLua_wxRichTextCommand_delete_function(void** p); - extern wxLuaBindMethod wxRichTextCompositeObject_methods[]; - extern int wxRichTextCompositeObject_methodCount; - extern void wxLua_wxRichTextCompositeObject_delete_function(void** p); - extern wxLuaBindMethod wxRichTextContextMenuPropertiesInfo_methods[]; - extern int wxRichTextContextMenuPropertiesInfo_methodCount; - extern void wxLua_wxRichTextContextMenuPropertiesInfo_delete_function(void** p); - extern wxLuaBindMethod wxRichTextCtrl_methods[]; - extern int wxRichTextCtrl_methodCount; - static wxLuaArgType wxluabaseclass_wxluatypes_wxRichTextCtrl[] = { &wxluatype_wxTextCtrlIface, &wxluatype_wxTextAreaBase, &wxluatype_wxTextEntry, &wxluatype_wxScrollHelper, NULL }; - static wxIntPtr wxluabaseclass_vtable_offsets_wxRichTextCtrl[] = { wxIntPtr(((wxIntPtr)(wxTextCtrlIface*)(wxRichTextCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxRichTextCtrl*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxTextAreaBase*)(wxRichTextCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxRichTextCtrl*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxTextEntry*)(wxRichTextCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxRichTextCtrl*)&wxluatype_TNONE)), wxIntPtr(((wxIntPtr)(wxScrollHelper*)(wxRichTextCtrl*)&wxluatype_TNONE) - ((wxIntPtr)(wxRichTextCtrl*)&wxluatype_TNONE)) }; - extern void wxLua_wxRichTextCtrl_delete_function(void** p); - extern wxLuaBindMethod wxRichTextDrawingContext_methods[]; - extern int wxRichTextDrawingContext_methodCount; - extern void wxLua_wxRichTextDrawingContext_delete_function(void** p); - extern wxLuaBindMethod wxRichTextDrawingHandler_methods[]; - extern int wxRichTextDrawingHandler_methodCount; - extern void wxLua_wxRichTextDrawingHandler_delete_function(void** p); - extern wxLuaBindMethod wxRichTextField_methods[]; - extern int wxRichTextField_methodCount; - extern void wxLua_wxRichTextField_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFieldType_methods[]; - extern int wxRichTextFieldType_methodCount; - extern void wxLua_wxRichTextFieldType_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFieldTypeHashMap_methods[]; - extern int wxRichTextFieldTypeHashMap_methodCount; - extern void wxLua_wxRichTextFieldTypeHashMap_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFieldTypeHashMap_iterator_methods[]; - extern int wxRichTextFieldTypeHashMap_iterator_methodCount; - extern void wxLua_wxRichTextFieldTypeHashMap_iterator_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFieldTypeStandard_methods[]; - extern int wxRichTextFieldTypeStandard_methodCount; - extern wxLuaBindNumber wxRichTextFieldTypeStandard_enums[]; - extern int wxRichTextFieldTypeStandard_enumCount; - extern void wxLua_wxRichTextFieldTypeStandard_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFileHandler_methods[]; - extern int wxRichTextFileHandler_methodCount; - extern void wxLua_wxRichTextFileHandler_delete_function(void** p); - extern wxLuaBindMethod wxRichTextFontTable_methods[]; - extern int wxRichTextFontTable_methodCount; - extern void wxLua_wxRichTextFontTable_delete_function(void** p); - extern wxLuaBindMethod wxRichTextHeaderFooterData_methods[]; - extern int wxRichTextHeaderFooterData_methodCount; - extern void wxLua_wxRichTextHeaderFooterData_delete_function(void** p); - extern wxLuaBindMethod wxRichTextImage_methods[]; - extern int wxRichTextImage_methodCount; - extern void wxLua_wxRichTextImage_delete_function(void** p); - extern wxLuaBindMethod wxRichTextImageBlock_methods[]; - extern int wxRichTextImageBlock_methodCount; - extern void wxLua_wxRichTextImageBlock_delete_function(void** p); - extern wxLuaBindMethod wxRichTextLine_methods[]; - extern int wxRichTextLine_methodCount; - extern void wxLua_wxRichTextLine_delete_function(void** p); - extern wxLuaBindMethod wxRichTextListStyleDefinition_methods[]; - extern int wxRichTextListStyleDefinition_methodCount; - extern void wxLua_wxRichTextListStyleDefinition_delete_function(void** p); - extern wxLuaBindMethod wxRichTextObject_methods[]; - extern int wxRichTextObject_methodCount; - extern void wxLua_wxRichTextObject_delete_function(void** p); - extern wxLuaBindMethod wxRichTextObjectAddress_methods[]; - extern int wxRichTextObjectAddress_methodCount; - extern void wxLua_wxRichTextObjectAddress_delete_function(void** p); - extern wxLuaBindMethod wxRichTextObjectList_methods[]; - extern int wxRichTextObjectList_methodCount; - extern void wxLua_wxRichTextObjectList_delete_function(void** p); - extern wxLuaBindMethod wxRichTextObjectPtrArray_methods[]; - extern int wxRichTextObjectPtrArray_methodCount; - extern void wxLua_wxRichTextObjectPtrArray_delete_function(void** p); - extern wxLuaBindMethod wxRichTextObjectPtrArrayArray_methods[]; - extern int wxRichTextObjectPtrArrayArray_methodCount; - extern void wxLua_wxRichTextObjectPtrArrayArray_delete_function(void** p); - extern wxLuaBindMethod wxRichTextParagraph_methods[]; - extern int wxRichTextParagraph_methodCount; - extern void wxLua_wxRichTextParagraph_delete_function(void** p); - extern wxLuaBindMethod wxRichTextParagraphLayoutBox_methods[]; - extern int wxRichTextParagraphLayoutBox_methodCount; - extern void wxLua_wxRichTextParagraphLayoutBox_delete_function(void** p); - extern wxLuaBindMethod wxRichTextParagraphStyleDefinition_methods[]; - extern int wxRichTextParagraphStyleDefinition_methodCount; - extern void wxLua_wxRichTextParagraphStyleDefinition_delete_function(void** p); - extern wxLuaBindMethod wxRichTextPlainText_methods[]; - extern int wxRichTextPlainText_methodCount; - extern void wxLua_wxRichTextPlainText_delete_function(void** p); - extern wxLuaBindMethod wxRichTextPlainTextHandler_methods[]; - extern int wxRichTextPlainTextHandler_methodCount; - extern void wxLua_wxRichTextPlainTextHandler_delete_function(void** p); - extern wxLuaBindMethod wxRichTextPrinting_methods[]; - extern int wxRichTextPrinting_methodCount; - extern void wxLua_wxRichTextPrinting_delete_function(void** p); - extern wxLuaBindMethod wxRichTextPrintout_methods[]; - extern int wxRichTextPrintout_methodCount; - extern void wxLua_wxRichTextPrintout_delete_function(void** p); - extern wxLuaBindMethod wxRichTextProperties_methods[]; - extern int wxRichTextProperties_methodCount; - extern void wxLua_wxRichTextProperties_delete_function(void** p); - extern wxLuaBindMethod wxRichTextRange_methods[]; - extern int wxRichTextRange_methodCount; - extern void wxLua_wxRichTextRange_delete_function(void** p); - extern wxLuaBindMethod wxRichTextRangeArray_methods[]; - extern int wxRichTextRangeArray_methodCount; - extern void wxLua_wxRichTextRangeArray_delete_function(void** p); - extern wxLuaBindMethod wxRichTextRectArray_methods[]; - extern int wxRichTextRectArray_methodCount; - extern void wxLua_wxRichTextRectArray_delete_function(void** p); - extern wxLuaBindMethod wxRichTextRenderer_methods[]; - extern int wxRichTextRenderer_methodCount; - extern void wxLua_wxRichTextRenderer_delete_function(void** p); - extern wxLuaBindMethod wxRichTextSelection_methods[]; - extern int wxRichTextSelection_methodCount; - extern void wxLua_wxRichTextSelection_delete_function(void** p); - extern wxLuaBindMethod wxRichTextStdRenderer_methods[]; - extern int wxRichTextStdRenderer_methodCount; - extern void wxLua_wxRichTextStdRenderer_delete_function(void** p); - extern wxLuaBindMethod wxRichTextStyleDefinition_methods[]; - extern int wxRichTextStyleDefinition_methodCount; - extern void wxLua_wxRichTextStyleDefinition_delete_function(void** p); - extern wxLuaBindMethod wxRichTextStyleOrganiserDialog_methods[]; - extern int wxRichTextStyleOrganiserDialog_methodCount; - extern wxLuaBindNumber wxRichTextStyleOrganiserDialog_enums[]; - extern int wxRichTextStyleOrganiserDialog_enumCount; - extern void wxLua_wxRichTextStyleOrganiserDialog_delete_function(void** p); - extern wxLuaBindMethod wxRichTextStyleSheet_methods[]; - extern int wxRichTextStyleSheet_methodCount; - extern void wxLua_wxRichTextStyleSheet_delete_function(void** p); - extern wxLuaBindMethod wxRichTextTable_methods[]; - extern int wxRichTextTable_methodCount; - extern void wxLua_wxRichTextTable_delete_function(void** p); - extern wxLuaBindMethod wxRichTextTableBlock_methods[]; - extern int wxRichTextTableBlock_methodCount; - extern void wxLua_wxRichTextTableBlock_delete_function(void** p); - extern wxLuaBindMethod wxRichTextVariantArray_methods[]; - extern int wxRichTextVariantArray_methodCount; - extern void wxLua_wxRichTextVariantArray_delete_function(void** p); - extern wxLuaBindMethod wxSymbolListCtrl_methods[]; - extern int wxSymbolListCtrl_methodCount; - extern void wxLua_wxSymbolListCtrl_delete_function(void** p); - extern wxLuaBindMethod wxSymbolPickerDialog_methods[]; - extern int wxSymbolPickerDialog_methodCount; - extern wxLuaBindNumber wxSymbolPickerDialog_enums[]; - extern int wxSymbolPickerDialog_enumCount; - extern void wxLua_wxSymbolPickerDialog_delete_function(void** p); - extern wxLuaBindMethod wxTextAttrBorder_methods[]; - extern int wxTextAttrBorder_methodCount; - extern void wxLua_wxTextAttrBorder_delete_function(void** p); - extern wxLuaBindMethod wxTextAttrBorders_methods[]; - extern int wxTextAttrBorders_methodCount; - extern void wxLua_wxTextAttrBorders_delete_function(void** p); - extern wxLuaBindMethod wxTextAttrDimension_methods[]; - extern int wxTextAttrDimension_methodCount; - extern void wxLua_wxTextAttrDimension_delete_function(void** p); - extern wxLuaBindMethod wxTextAttrDimensionConverter_methods[]; - extern int wxTextAttrDimensionConverter_methodCount; - extern void wxLua_wxTextAttrDimensionConverter_delete_function(void** p); - extern wxLuaBindMethod wxTextAttrDimensions_methods[]; - extern int wxTextAttrDimensions_methodCount; - extern void wxLua_wxTextAttrDimensions_delete_function(void** p); - extern wxLuaBindMethod wxTextAttrSize_methods[]; - extern int wxTextAttrSize_methodCount; - extern void wxLua_wxTextAttrSize_delete_function(void** p); - extern wxLuaBindMethod wxTextBoxAttr_methods[]; - extern int wxTextBoxAttr_methodCount; - extern void wxLua_wxTextBoxAttr_delete_function(void** p); -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - - -wxLuaBindClass* wxLuaGetClassList_wxrichtext(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextAction, wxRichTextAction_methods, wxRichTextAction_methodCount, CLASSINFO(wxRichTextAction), &wxluatype_wxRichTextAction, wxluabaseclassnames_wxRichTextAction, wxluabaseclassbinds_wxRichTextAction, NULL, NULL, NULL, 0, &wxLua_wxRichTextAction_delete_function, }, - { wxluaclassname_wxRichTextAttr, wxRichTextAttr_methods, wxRichTextAttr_methodCount, NULL, &wxluatype_wxRichTextAttr, wxluabaseclassnames_wxRichTextAttr, wxluabaseclassbinds_wxRichTextAttr, NULL, NULL, NULL, 0, &wxLua_wxRichTextAttr_delete_function, }, - { wxluaclassname_wxRichTextAttrArray, wxRichTextAttrArray_methods, wxRichTextAttrArray_methodCount, NULL, &wxluatype_wxRichTextAttrArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextAttrArray_delete_function, }, - { wxluaclassname_wxRichTextBox, wxRichTextBox_methods, wxRichTextBox_methodCount, CLASSINFO(wxRichTextBox), &wxluatype_wxRichTextBox, wxluabaseclassnames_wxRichTextBox, wxluabaseclassbinds_wxRichTextBox, NULL, NULL, NULL, 0, &wxLua_wxRichTextBox_delete_function, }, - { wxluaclassname_wxRichTextBoxStyleDefinition, wxRichTextBoxStyleDefinition_methods, wxRichTextBoxStyleDefinition_methodCount, CLASSINFO(wxRichTextBoxStyleDefinition), &wxluatype_wxRichTextBoxStyleDefinition, wxluabaseclassnames_wxRichTextBoxStyleDefinition, wxluabaseclassbinds_wxRichTextBoxStyleDefinition, NULL, NULL, NULL, 0, &wxLua_wxRichTextBoxStyleDefinition_delete_function, }, - { wxluaclassname_wxRichTextBuffer, wxRichTextBuffer_methods, wxRichTextBuffer_methodCount, CLASSINFO(wxRichTextBuffer), &wxluatype_wxRichTextBuffer, wxluabaseclassnames_wxRichTextBuffer, wxluabaseclassbinds_wxRichTextBuffer, NULL, NULL, NULL, 0, &wxLua_wxRichTextBuffer_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - { wxluaclassname_wxRichTextBufferDataObject, wxRichTextBufferDataObject_methods, wxRichTextBufferDataObject_methodCount, NULL, &wxluatype_wxRichTextBufferDataObject, wxluabaseclassnames_wxRichTextBufferDataObject, wxluabaseclassbinds_wxRichTextBufferDataObject, NULL, NULL, NULL, 0, &wxLua_wxRichTextBufferDataObject_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DATAOBJ) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextCell, wxRichTextCell_methods, wxRichTextCell_methodCount, CLASSINFO(wxRichTextCell), &wxluatype_wxRichTextCell, wxluabaseclassnames_wxRichTextCell, wxluabaseclassbinds_wxRichTextCell, NULL, NULL, NULL, 0, &wxLua_wxRichTextCell_delete_function, }, - { wxluaclassname_wxRichTextCharacterStyleDefinition, wxRichTextCharacterStyleDefinition_methods, wxRichTextCharacterStyleDefinition_methodCount, CLASSINFO(wxRichTextCharacterStyleDefinition), &wxluatype_wxRichTextCharacterStyleDefinition, wxluabaseclassnames_wxRichTextCharacterStyleDefinition, wxluabaseclassbinds_wxRichTextCharacterStyleDefinition, NULL, NULL, NULL, 0, &wxLua_wxRichTextCharacterStyleDefinition_delete_function, }, - { wxluaclassname_wxRichTextCommand, wxRichTextCommand_methods, wxRichTextCommand_methodCount, CLASSINFO(wxRichTextCommand), &wxluatype_wxRichTextCommand, wxluabaseclassnames_wxRichTextCommand, wxluabaseclassbinds_wxRichTextCommand, NULL, NULL, NULL, 0, &wxLua_wxRichTextCommand_delete_function, }, - { wxluaclassname_wxRichTextCompositeObject, wxRichTextCompositeObject_methods, wxRichTextCompositeObject_methodCount, CLASSINFO(wxRichTextCompositeObject), &wxluatype_wxRichTextCompositeObject, wxluabaseclassnames_wxRichTextCompositeObject, wxluabaseclassbinds_wxRichTextCompositeObject, NULL, NULL, NULL, 0, &wxLua_wxRichTextCompositeObject_delete_function, }, - { wxluaclassname_wxRichTextContextMenuPropertiesInfo, wxRichTextContextMenuPropertiesInfo_methods, wxRichTextContextMenuPropertiesInfo_methodCount, NULL, &wxluatype_wxRichTextContextMenuPropertiesInfo, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextContextMenuPropertiesInfo_delete_function, }, - { wxluaclassname_wxRichTextCtrl, wxRichTextCtrl_methods, wxRichTextCtrl_methodCount, CLASSINFO(wxRichTextCtrl), &wxluatype_wxRichTextCtrl, wxluabaseclassnames_wxRichTextCtrl, wxluabaseclassbinds_wxRichTextCtrl, wxluabaseclass_wxluatypes_wxRichTextCtrl, wxluabaseclass_vtable_offsets_wxRichTextCtrl, NULL, 0, &wxLua_wxRichTextCtrl_delete_function, }, - { wxluaclassname_wxRichTextDrawingContext, wxRichTextDrawingContext_methods, wxRichTextDrawingContext_methodCount, CLASSINFO(wxRichTextDrawingContext), &wxluatype_wxRichTextDrawingContext, wxluabaseclassnames_wxRichTextDrawingContext, wxluabaseclassbinds_wxRichTextDrawingContext, NULL, NULL, NULL, 0, &wxLua_wxRichTextDrawingContext_delete_function, }, - { wxluaclassname_wxRichTextDrawingHandler, wxRichTextDrawingHandler_methods, wxRichTextDrawingHandler_methodCount, CLASSINFO(wxRichTextDrawingHandler), &wxluatype_wxRichTextDrawingHandler, wxluabaseclassnames_wxRichTextDrawingHandler, wxluabaseclassbinds_wxRichTextDrawingHandler, NULL, NULL, NULL, 0, &wxLua_wxRichTextDrawingHandler_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - { wxluaclassname_wxRichTextDropSource, wxRichTextDropSource_methods, wxRichTextDropSource_methodCount, NULL, &wxluatype_wxRichTextDropSource, wxluabaseclassnames_wxRichTextDropSource, wxluabaseclassbinds_wxRichTextDropSource, NULL, NULL, NULL, 0, &wxLua_wxRichTextDropSource_delete_function, }, - { wxluaclassname_wxRichTextDropTarget, wxRichTextDropTarget_methods, wxRichTextDropTarget_methodCount, NULL, &wxluatype_wxRichTextDropTarget, wxluabaseclassnames_wxRichTextDropTarget, wxluabaseclassbinds_wxRichTextDropTarget, NULL, NULL, NULL, 0, &wxLua_wxRichTextDropTarget_delete_function, }, - { wxluaclassname_wxRichTextEvent, wxRichTextEvent_methods, wxRichTextEvent_methodCount, CLASSINFO(wxRichTextEvent), &wxluatype_wxRichTextEvent, wxluabaseclassnames_wxRichTextEvent, wxluabaseclassbinds_wxRichTextEvent, NULL, NULL, NULL, 0, &wxLua_wxRichTextEvent_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_DRAG_AND_DROP) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextField, wxRichTextField_methods, wxRichTextField_methodCount, CLASSINFO(wxRichTextField), &wxluatype_wxRichTextField, wxluabaseclassnames_wxRichTextField, wxluabaseclassbinds_wxRichTextField, NULL, NULL, NULL, 0, &wxLua_wxRichTextField_delete_function, }, - { wxluaclassname_wxRichTextFieldType, wxRichTextFieldType_methods, wxRichTextFieldType_methodCount, CLASSINFO(wxRichTextFieldType), &wxluatype_wxRichTextFieldType, wxluabaseclassnames_wxRichTextFieldType, wxluabaseclassbinds_wxRichTextFieldType, NULL, NULL, NULL, 0, &wxLua_wxRichTextFieldType_delete_function, }, - { wxluaclassname_wxRichTextFieldTypeHashMap, wxRichTextFieldTypeHashMap_methods, wxRichTextFieldTypeHashMap_methodCount, NULL, &wxluatype_wxRichTextFieldTypeHashMap, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextFieldTypeHashMap_delete_function, }, - { wxluaclassname_wxRichTextFieldTypeHashMap_iterator, wxRichTextFieldTypeHashMap_iterator_methods, wxRichTextFieldTypeHashMap_iterator_methodCount, NULL, &wxluatype_wxRichTextFieldTypeHashMap_iterator, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextFieldTypeHashMap_iterator_delete_function, }, - { wxluaclassname_wxRichTextFieldTypeStandard, wxRichTextFieldTypeStandard_methods, wxRichTextFieldTypeStandard_methodCount, CLASSINFO(wxRichTextFieldTypeStandard), &wxluatype_wxRichTextFieldTypeStandard, wxluabaseclassnames_wxRichTextFieldTypeStandard, wxluabaseclassbinds_wxRichTextFieldTypeStandard, NULL, NULL, wxRichTextFieldTypeStandard_enums, wxRichTextFieldTypeStandard_enumCount, &wxLua_wxRichTextFieldTypeStandard_delete_function, }, - { wxluaclassname_wxRichTextFileHandler, wxRichTextFileHandler_methods, wxRichTextFileHandler_methodCount, CLASSINFO(wxRichTextFileHandler), &wxluatype_wxRichTextFileHandler, wxluabaseclassnames_wxRichTextFileHandler, wxluabaseclassbinds_wxRichTextFileHandler, NULL, NULL, NULL, 0, &wxLua_wxRichTextFileHandler_delete_function, }, - { wxluaclassname_wxRichTextFontTable, wxRichTextFontTable_methods, wxRichTextFontTable_methodCount, CLASSINFO(wxRichTextFontTable), &wxluatype_wxRichTextFontTable, wxluabaseclassnames_wxRichTextFontTable, wxluabaseclassbinds_wxRichTextFontTable, NULL, NULL, NULL, 0, &wxLua_wxRichTextFontTable_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxluaclassname_wxRichTextFormattingDialog, wxRichTextFormattingDialog_methods, wxRichTextFormattingDialog_methodCount, NULL, &wxluatype_wxRichTextFormattingDialog, NULL, NULL, NULL, NULL, wxRichTextFormattingDialog_enums, wxRichTextFormattingDialog_enumCount, &wxLua_wxRichTextFormattingDialog_delete_function, }, - { wxluaclassname_wxRichTextFormattingDialogFactory, wxRichTextFormattingDialogFactory_methods, wxRichTextFormattingDialogFactory_methodCount, CLASSINFO(wxRichTextFormattingDialogFactory), &wxluatype_wxRichTextFormattingDialogFactory, wxluabaseclassnames_wxRichTextFormattingDialogFactory, wxluabaseclassbinds_wxRichTextFormattingDialogFactory, NULL, NULL, NULL, 0, &wxLua_wxRichTextFormattingDialogFactory_delete_function, }, - { wxluaclassname_wxRichTextHTMLHandler, wxRichTextHTMLHandler_methods, wxRichTextHTMLHandler_methodCount, CLASSINFO(wxRichTextHTMLHandler), &wxluatype_wxRichTextHTMLHandler, wxluabaseclassnames_wxRichTextHTMLHandler, wxluabaseclassbinds_wxRichTextHTMLHandler, NULL, NULL, NULL, 0, &wxLua_wxRichTextHTMLHandler_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextHeaderFooterData, wxRichTextHeaderFooterData_methods, wxRichTextHeaderFooterData_methodCount, CLASSINFO(wxRichTextHeaderFooterData), &wxluatype_wxRichTextHeaderFooterData, wxluabaseclassnames_wxRichTextHeaderFooterData, wxluabaseclassbinds_wxRichTextHeaderFooterData, NULL, NULL, NULL, 0, &wxLua_wxRichTextHeaderFooterData_delete_function, }, - { wxluaclassname_wxRichTextImage, wxRichTextImage_methods, wxRichTextImage_methodCount, CLASSINFO(wxRichTextImage), &wxluatype_wxRichTextImage, wxluabaseclassnames_wxRichTextImage, wxluabaseclassbinds_wxRichTextImage, NULL, NULL, NULL, 0, &wxLua_wxRichTextImage_delete_function, }, - { wxluaclassname_wxRichTextImageBlock, wxRichTextImageBlock_methods, wxRichTextImageBlock_methodCount, CLASSINFO(wxRichTextImageBlock), &wxluatype_wxRichTextImageBlock, wxluabaseclassnames_wxRichTextImageBlock, wxluabaseclassbinds_wxRichTextImageBlock, NULL, NULL, NULL, 0, &wxLua_wxRichTextImageBlock_delete_function, }, - { wxluaclassname_wxRichTextLine, wxRichTextLine_methods, wxRichTextLine_methodCount, NULL, &wxluatype_wxRichTextLine, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextLine_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - { wxluaclassname_wxRichTextLineList, wxRichTextLineList_methods, wxRichTextLineList_methodCount, NULL, &wxluatype_wxRichTextLineList, wxluabaseclassnames_wxRichTextLineList, wxluabaseclassbinds_wxRichTextLineList, NULL, NULL, NULL, 0, &wxLua_wxRichTextLineList_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS && wxRICHTEXT_USE_OPTIMIZED_LINE_DRAWING) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextListStyleDefinition, wxRichTextListStyleDefinition_methods, wxRichTextListStyleDefinition_methodCount, CLASSINFO(wxRichTextListStyleDefinition), &wxluatype_wxRichTextListStyleDefinition, wxluabaseclassnames_wxRichTextListStyleDefinition, wxluabaseclassbinds_wxRichTextListStyleDefinition, NULL, NULL, NULL, 0, &wxLua_wxRichTextListStyleDefinition_delete_function, }, - { wxluaclassname_wxRichTextObject, wxRichTextObject_methods, wxRichTextObject_methodCount, CLASSINFO(wxRichTextObject), &wxluatype_wxRichTextObject, wxluabaseclassnames_wxRichTextObject, wxluabaseclassbinds_wxRichTextObject, NULL, NULL, NULL, 0, &wxLua_wxRichTextObject_delete_function, }, - { wxluaclassname_wxRichTextObjectAddress, wxRichTextObjectAddress_methods, wxRichTextObjectAddress_methodCount, NULL, &wxluatype_wxRichTextObjectAddress, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextObjectAddress_delete_function, }, - { wxluaclassname_wxRichTextObjectList, wxRichTextObjectList_methods, wxRichTextObjectList_methodCount, NULL, &wxluatype_wxRichTextObjectList, wxluabaseclassnames_wxRichTextObjectList, wxluabaseclassbinds_wxRichTextObjectList, NULL, NULL, NULL, 0, &wxLua_wxRichTextObjectList_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - { wxluaclassname_wxRichTextObjectPropertiesDialog, wxRichTextObjectPropertiesDialog_methods, wxRichTextObjectPropertiesDialog_methodCount, NULL, &wxluatype_wxRichTextObjectPropertiesDialog, wxluabaseclassnames_wxRichTextObjectPropertiesDialog, wxluabaseclassbinds_wxRichTextObjectPropertiesDialog, NULL, NULL, wxRichTextObjectPropertiesDialog_enums, wxRichTextObjectPropertiesDialog_enumCount, &wxLua_wxRichTextObjectPropertiesDialog_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextObjectPtrArray, wxRichTextObjectPtrArray_methods, wxRichTextObjectPtrArray_methodCount, NULL, &wxluatype_wxRichTextObjectPtrArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextObjectPtrArray_delete_function, }, - { wxluaclassname_wxRichTextObjectPtrArrayArray, wxRichTextObjectPtrArrayArray_methods, wxRichTextObjectPtrArrayArray_methodCount, NULL, &wxluatype_wxRichTextObjectPtrArrayArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextObjectPtrArrayArray_delete_function, }, - { wxluaclassname_wxRichTextParagraph, wxRichTextParagraph_methods, wxRichTextParagraph_methodCount, CLASSINFO(wxRichTextParagraph), &wxluatype_wxRichTextParagraph, wxluabaseclassnames_wxRichTextParagraph, wxluabaseclassbinds_wxRichTextParagraph, NULL, NULL, NULL, 0, &wxLua_wxRichTextParagraph_delete_function, }, - { wxluaclassname_wxRichTextParagraphLayoutBox, wxRichTextParagraphLayoutBox_methods, wxRichTextParagraphLayoutBox_methodCount, CLASSINFO(wxRichTextParagraphLayoutBox), &wxluatype_wxRichTextParagraphLayoutBox, wxluabaseclassnames_wxRichTextParagraphLayoutBox, wxluabaseclassbinds_wxRichTextParagraphLayoutBox, NULL, NULL, NULL, 0, &wxLua_wxRichTextParagraphLayoutBox_delete_function, }, - { wxluaclassname_wxRichTextParagraphStyleDefinition, wxRichTextParagraphStyleDefinition_methods, wxRichTextParagraphStyleDefinition_methodCount, CLASSINFO(wxRichTextParagraphStyleDefinition), &wxluatype_wxRichTextParagraphStyleDefinition, wxluabaseclassnames_wxRichTextParagraphStyleDefinition, wxluabaseclassbinds_wxRichTextParagraphStyleDefinition, NULL, NULL, NULL, 0, &wxLua_wxRichTextParagraphStyleDefinition_delete_function, }, - { wxluaclassname_wxRichTextPlainText, wxRichTextPlainText_methods, wxRichTextPlainText_methodCount, CLASSINFO(wxRichTextPlainText), &wxluatype_wxRichTextPlainText, wxluabaseclassnames_wxRichTextPlainText, wxluabaseclassbinds_wxRichTextPlainText, NULL, NULL, NULL, 0, &wxLua_wxRichTextPlainText_delete_function, }, - { wxluaclassname_wxRichTextPlainTextHandler, wxRichTextPlainTextHandler_methods, wxRichTextPlainTextHandler_methodCount, CLASSINFO(wxRichTextPlainTextHandler), &wxluatype_wxRichTextPlainTextHandler, wxluabaseclassnames_wxRichTextPlainTextHandler, wxluabaseclassbinds_wxRichTextPlainTextHandler, NULL, NULL, NULL, 0, &wxLua_wxRichTextPlainTextHandler_delete_function, }, - { wxluaclassname_wxRichTextPrinting, wxRichTextPrinting_methods, wxRichTextPrinting_methodCount, CLASSINFO(wxRichTextPrinting), &wxluatype_wxRichTextPrinting, wxluabaseclassnames_wxRichTextPrinting, wxluabaseclassbinds_wxRichTextPrinting, NULL, NULL, NULL, 0, &wxLua_wxRichTextPrinting_delete_function, }, - { wxluaclassname_wxRichTextPrintout, wxRichTextPrintout_methods, wxRichTextPrintout_methodCount, CLASSINFO(wxRichTextPrintout), &wxluatype_wxRichTextPrintout, wxluabaseclassnames_wxRichTextPrintout, wxluabaseclassbinds_wxRichTextPrintout, NULL, NULL, NULL, 0, &wxLua_wxRichTextPrintout_delete_function, }, - { wxluaclassname_wxRichTextProperties, wxRichTextProperties_methods, wxRichTextProperties_methodCount, CLASSINFO(wxRichTextProperties), &wxluatype_wxRichTextProperties, wxluabaseclassnames_wxRichTextProperties, wxluabaseclassbinds_wxRichTextProperties, NULL, NULL, NULL, 0, &wxLua_wxRichTextProperties_delete_function, }, - { wxluaclassname_wxRichTextRange, wxRichTextRange_methods, wxRichTextRange_methodCount, NULL, &wxluatype_wxRichTextRange, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextRange_delete_function, }, - { wxluaclassname_wxRichTextRangeArray, wxRichTextRangeArray_methods, wxRichTextRangeArray_methodCount, NULL, &wxluatype_wxRichTextRangeArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextRangeArray_delete_function, }, - { wxluaclassname_wxRichTextRectArray, wxRichTextRectArray_methods, wxRichTextRectArray_methodCount, NULL, &wxluatype_wxRichTextRectArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextRectArray_delete_function, }, - { wxluaclassname_wxRichTextRenderer, wxRichTextRenderer_methods, wxRichTextRenderer_methodCount, CLASSINFO(wxRichTextRenderer), &wxluatype_wxRichTextRenderer, wxluabaseclassnames_wxRichTextRenderer, wxluabaseclassbinds_wxRichTextRenderer, NULL, NULL, NULL, 0, &wxLua_wxRichTextRenderer_delete_function, }, - { wxluaclassname_wxRichTextSelection, wxRichTextSelection_methods, wxRichTextSelection_methodCount, NULL, &wxluatype_wxRichTextSelection, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextSelection_delete_function, }, - { wxluaclassname_wxRichTextStdRenderer, wxRichTextStdRenderer_methods, wxRichTextStdRenderer_methodCount, CLASSINFO(wxRichTextStdRenderer), &wxluatype_wxRichTextStdRenderer, wxluabaseclassnames_wxRichTextStdRenderer, wxluabaseclassbinds_wxRichTextStdRenderer, NULL, NULL, NULL, 0, &wxLua_wxRichTextStdRenderer_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - { wxluaclassname_wxRichTextStyleComboCtrl, wxRichTextStyleComboCtrl_methods, wxRichTextStyleComboCtrl_methodCount, CLASSINFO(wxRichTextStyleComboCtrl), &wxluatype_wxRichTextStyleComboCtrl, wxluabaseclassnames_wxRichTextStyleComboCtrl, wxluabaseclassbinds_wxRichTextStyleComboCtrl, wxluabaseclass_wxluatypes_wxRichTextStyleComboCtrl, wxluabaseclass_vtable_offsets_wxRichTextStyleComboCtrl, NULL, 0, &wxLua_wxRichTextStyleComboCtrl_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_COMBOCTRL) && (wxUSE_HTML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextStyleDefinition, wxRichTextStyleDefinition_methods, wxRichTextStyleDefinition_methodCount, CLASSINFO(wxRichTextStyleDefinition), &wxluatype_wxRichTextStyleDefinition, wxluabaseclassnames_wxRichTextStyleDefinition, wxluabaseclassbinds_wxRichTextStyleDefinition, NULL, NULL, NULL, 0, &wxLua_wxRichTextStyleDefinition_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - { wxluaclassname_wxRichTextStyleListBox, wxRichTextStyleListBox_methods, wxRichTextStyleListBox_methodCount, NULL, &wxluatype_wxRichTextStyleListBox, wxluabaseclassnames_wxRichTextStyleListBox, wxluabaseclassbinds_wxRichTextStyleListBox, NULL, NULL, wxRichTextStyleListBox_enums, wxRichTextStyleListBox_enumCount, &wxLua_wxRichTextStyleListBox_delete_function, }, - { wxluaclassname_wxRichTextStyleListCtrl, wxRichTextStyleListCtrl_methods, wxRichTextStyleListCtrl_methodCount, CLASSINFO(wxRichTextStyleListCtrl), &wxluatype_wxRichTextStyleListCtrl, wxluabaseclassnames_wxRichTextStyleListCtrl, wxluabaseclassbinds_wxRichTextStyleListCtrl, NULL, NULL, NULL, 0, &wxLua_wxRichTextStyleListCtrl_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_HTML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxRichTextStyleOrganiserDialog, wxRichTextStyleOrganiserDialog_methods, wxRichTextStyleOrganiserDialog_methodCount, CLASSINFO(wxRichTextStyleOrganiserDialog), &wxluatype_wxRichTextStyleOrganiserDialog, wxluabaseclassnames_wxRichTextStyleOrganiserDialog, wxluabaseclassbinds_wxRichTextStyleOrganiserDialog, NULL, NULL, wxRichTextStyleOrganiserDialog_enums, wxRichTextStyleOrganiserDialog_enumCount, &wxLua_wxRichTextStyleOrganiserDialog_delete_function, }, - { wxluaclassname_wxRichTextStyleSheet, wxRichTextStyleSheet_methods, wxRichTextStyleSheet_methodCount, CLASSINFO(wxRichTextStyleSheet), &wxluatype_wxRichTextStyleSheet, wxluabaseclassnames_wxRichTextStyleSheet, wxluabaseclassbinds_wxRichTextStyleSheet, NULL, NULL, NULL, 0, &wxLua_wxRichTextStyleSheet_delete_function, }, - { wxluaclassname_wxRichTextTable, wxRichTextTable_methods, wxRichTextTable_methodCount, CLASSINFO(wxRichTextTable), &wxluatype_wxRichTextTable, wxluabaseclassnames_wxRichTextTable, wxluabaseclassbinds_wxRichTextTable, NULL, NULL, NULL, 0, &wxLua_wxRichTextTable_delete_function, }, - { wxluaclassname_wxRichTextTableBlock, wxRichTextTableBlock_methods, wxRichTextTableBlock_methodCount, NULL, &wxluatype_wxRichTextTableBlock, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextTableBlock_delete_function, }, - { wxluaclassname_wxRichTextVariantArray, wxRichTextVariantArray_methods, wxRichTextVariantArray_methodCount, NULL, &wxluatype_wxRichTextVariantArray, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxRichTextVariantArray_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - -#if (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - { wxluaclassname_wxRichTextXMLHandler, wxRichTextXMLHandler_methods, wxRichTextXMLHandler_methodCount, CLASSINFO(wxRichTextXMLHandler), &wxluatype_wxRichTextXMLHandler, wxluabaseclassnames_wxRichTextXMLHandler, wxluabaseclassbinds_wxRichTextXMLHandler, NULL, NULL, NULL, 0, &wxLua_wxRichTextXMLHandler_delete_function, }, - { wxluaclassname_wxRichTextXMLHelper, wxRichTextXMLHelper_methods, wxRichTextXMLHelper_methodCount, CLASSINFO(wxRichTextXMLHelper), &wxluatype_wxRichTextXMLHelper, wxluabaseclassnames_wxRichTextXMLHelper, wxluabaseclassbinds_wxRichTextXMLHelper, NULL, NULL, NULL, 0, &wxLua_wxRichTextXMLHelper_delete_function, }, -#endif // (wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT) && (wxUSE_XML) - -#if wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - { wxluaclassname_wxSymbolListCtrl, wxSymbolListCtrl_methods, wxSymbolListCtrl_methodCount, NULL, &wxluatype_wxSymbolListCtrl, wxluabaseclassnames_wxSymbolListCtrl, wxluabaseclassbinds_wxSymbolListCtrl, NULL, NULL, NULL, 0, &wxLua_wxSymbolListCtrl_delete_function, }, - { wxluaclassname_wxSymbolPickerDialog, wxSymbolPickerDialog_methods, wxSymbolPickerDialog_methodCount, CLASSINFO(wxSymbolPickerDialog), &wxluatype_wxSymbolPickerDialog, wxluabaseclassnames_wxSymbolPickerDialog, wxluabaseclassbinds_wxSymbolPickerDialog, NULL, NULL, wxSymbolPickerDialog_enums, wxSymbolPickerDialog_enumCount, &wxLua_wxSymbolPickerDialog_delete_function, }, - { wxluaclassname_wxTextAttrBorder, wxTextAttrBorder_methods, wxTextAttrBorder_methodCount, NULL, &wxluatype_wxTextAttrBorder, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttrBorder_delete_function, }, - { wxluaclassname_wxTextAttrBorders, wxTextAttrBorders_methods, wxTextAttrBorders_methodCount, NULL, &wxluatype_wxTextAttrBorders, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttrBorders_delete_function, }, - { wxluaclassname_wxTextAttrDimension, wxTextAttrDimension_methods, wxTextAttrDimension_methodCount, NULL, &wxluatype_wxTextAttrDimension, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttrDimension_delete_function, }, - { wxluaclassname_wxTextAttrDimensionConverter, wxTextAttrDimensionConverter_methods, wxTextAttrDimensionConverter_methodCount, NULL, &wxluatype_wxTextAttrDimensionConverter, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttrDimensionConverter_delete_function, }, - { wxluaclassname_wxTextAttrDimensions, wxTextAttrDimensions_methods, wxTextAttrDimensions_methodCount, NULL, &wxluatype_wxTextAttrDimensions, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttrDimensions_delete_function, }, - { wxluaclassname_wxTextAttrSize, wxTextAttrSize_methods, wxTextAttrSize_methodCount, NULL, &wxluatype_wxTextAttrSize, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextAttrSize_delete_function, }, - { wxluaclassname_wxTextBoxAttr, wxTextBoxAttr_methods, wxTextBoxAttr_methodCount, NULL, &wxluatype_wxTextBoxAttr, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxTextBoxAttr_delete_function, }, -#endif // wxLUA_USE_wxRichText && wxCHECK_VERSION(3,0,0) && wxUSE_RICHTEXT - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxrichtext() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxrichtext, wxLuaBinding) - -wxLuaBinding_wxrichtext::wxLuaBinding_wxrichtext() : wxLuaBinding() -{ - m_bindingName = wxT("wxrichtext"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxrichtext(m_classCount); - m_numberArray = wxLuaGetDefineList_wxrichtext(m_numberCount); - m_stringArray = wxLuaGetStringList_wxrichtext(m_stringCount); - m_eventArray = wxLuaGetEventList_wxrichtext(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxrichtext(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxrichtext(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxrichtext_init() -{ - static wxLuaBinding_wxrichtext m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxstc_bind.cpp b/wxLua/modules/wxbind/src/wxstc_bind.cpp deleted file mode 100644 index 0589b799..00000000 --- a/wxLua/modules/wxbind/src/wxstc_bind.cpp +++ /dev/null @@ -1,20891 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxstc_stc.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxstc_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - -// --------------------------------------------------------------------------- -// Bind class wxStyledTextCtrl -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStyledTextCtrl' -int wxluatype_wxStyledTextCtrl = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddRefDocument[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddRefDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddRefDocument[1] = {{ wxLua_wxStyledTextCtrl_AddRefDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddRefDocument }}; -// void AddRefDocument(void* docPointer); -static int LUACALL wxLua_wxStyledTextCtrl_AddRefDocument(lua_State *L) -{ - // void docPointer - void * docPointer = (void *)wxlua_touserdata(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddRefDocument - self->AddRefDocument(docPointer); - - return 0; -} - - -#if wxCHECK_VERSION(3,2,2) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddSelection1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddSelection1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection1[1] = {{ wxLua_wxStyledTextCtrl_AddSelection1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddSelection1 }}; -// %wxchkver_3_2_2 void AddSelection(int caret, int anchor); -static int LUACALL wxLua_wxStyledTextCtrl_AddSelection1(lua_State *L) -{ - // int anchor - int anchor = (int)wxlua_getnumbertype(L, 3); - // int caret - int caret = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddSelection - self->AddSelection(caret, anchor); - - return 0; -} - -#endif // wxCHECK_VERSION(3,2,2) - -#if !wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddSelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddSelection(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection[1] = {{ wxLua_wxStyledTextCtrl_AddSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddSelection }}; -// !%wxchkver_3_2_2 && %wxchkver_2_9_5 int AddSelection(int caret, int anchor); -static int LUACALL wxLua_wxStyledTextCtrl_AddSelection(lua_State *L) -{ - // int anchor - int anchor = (int)wxlua_getnumbertype(L, 3); - // int caret - int caret = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddSelection - int returns = (self->AddSelection(caret, anchor)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // !wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5) - -#if wxLUA_USE_wxMemoryBuffer -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddStyledText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxMemoryBuffer, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddStyledText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddStyledText[1] = {{ wxLua_wxStyledTextCtrl_AddStyledText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddStyledText }}; -// void AddStyledText(const wxMemoryBuffer& data); -static int LUACALL wxLua_wxStyledTextCtrl_AddStyledText(lua_State *L) -{ - // const wxMemoryBuffer data - const wxMemoryBuffer * data = (const wxMemoryBuffer *)wxluaT_getuserdatatype(L, 2, wxluatype_wxMemoryBuffer); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddStyledText - self->AddStyledText(*data); - - return 0; -} - -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddTabStop[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddTabStop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddTabStop[1] = {{ wxLua_wxStyledTextCtrl_AddTabStop, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddTabStop }}; -// %wxchkver_3_1_0 void AddTabStop(int line, int x); -static int LUACALL wxLua_wxStyledTextCtrl_AddTabStop(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddTabStop - self->AddTabStop(line, x); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddText[1] = {{ wxLua_wxStyledTextCtrl_AddText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddText }}; -// void AddText(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_AddText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddText - self->AddText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddTextRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddTextRaw[1] = {{ wxLua_wxStyledTextCtrl_AddTextRaw, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddTextRaw }}; -// void AddTextRaw(const char* text, int length=-1); -static int LUACALL wxLua_wxStyledTextCtrl_AddTextRaw(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int length = -1 - int length = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const char text - const char * text = wxlua_getstringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddTextRaw - self->AddTextRaw(text, length); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddUndoAction[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AddUndoAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddUndoAction[1] = {{ wxLua_wxStyledTextCtrl_AddUndoAction, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddUndoAction }}; -// %wxchkver_2_9_5 void AddUndoAction(int token, int flags); -static int LUACALL wxLua_wxStyledTextCtrl_AddUndoAction(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // int token - int token = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AddUndoAction - self->AddUndoAction(token, flags); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Allocate[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Allocate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Allocate[1] = {{ wxLua_wxStyledTextCtrl_Allocate, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Allocate }}; -// void Allocate(int bytes); -static int LUACALL wxLua_wxStyledTextCtrl_Allocate(lua_State *L) -{ - // int bytes - int bytes = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Allocate - self->Allocate(bytes); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AllocateExtendedStyles[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AllocateExtendedStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AllocateExtendedStyles[1] = {{ wxLua_wxStyledTextCtrl_AllocateExtendedStyles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AllocateExtendedStyles }}; -// %wxchkver_3_1_0 int AllocateExtendedStyles(int numberStyles); -static int LUACALL wxLua_wxStyledTextCtrl_AllocateExtendedStyles(lua_State *L) -{ - // int numberStyles - int numberStyles = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AllocateExtendedStyles - int returns = (self->AllocateExtendedStyles(numberStyles)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AllocateSubStyles[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AllocateSubStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AllocateSubStyles[1] = {{ wxLua_wxStyledTextCtrl_AllocateSubStyles, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AllocateSubStyles }}; -// %wxchkver_3_1_0 int AllocateSubStyles(int styleBase, int numberStyles); -static int LUACALL wxLua_wxStyledTextCtrl_AllocateSubStyles(lua_State *L) -{ - // int numberStyles - int numberStyles = (int)wxlua_getnumbertype(L, 3); - // int styleBase - int styleBase = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AllocateSubStyles - int returns = (self->AllocateSubStyles(styleBase, numberStyles)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationClearAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationClearAll[1] = {{ wxLua_wxStyledTextCtrl_AnnotationClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationClearAll }}; -// %wxchkver_2_9_5 void AnnotationClearAll(); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationClearAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationClearAll - self->AnnotationClearAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationClearLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationClearLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationClearLine[1] = {{ wxLua_wxStyledTextCtrl_AnnotationClearLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationClearLine }}; -// %wxchkver_2_9_5 void AnnotationClearLine(int line); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationClearLine(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationClearLine - self->AnnotationClearLine(line); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetLines[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetLines[1] = {{ wxLua_wxStyledTextCtrl_AnnotationGetLines, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetLines }}; -// %wxchkver_2_9_5 int AnnotationGetLines(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetLines(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationGetLines - int returns = (self->AnnotationGetLines(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetStyle[1] = {{ wxLua_wxStyledTextCtrl_AnnotationGetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetStyle }}; -// %wxchkver_2_9_5 int AnnotationGetStyle(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetStyle(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationGetStyle - int returns = (self->AnnotationGetStyle(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset[1] = {{ wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset }}; -// %wxchkver_2_9_5 int AnnotationGetStyleOffset() const; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationGetStyleOffset - int returns = (self->AnnotationGetStyleOffset()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetStyles[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetStyles[1] = {{ wxLua_wxStyledTextCtrl_AnnotationGetStyles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetStyles }}; -// %wxchkver_2_9_5 wxString AnnotationGetStyles(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetStyles(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationGetStyles - wxString returns = (self->AnnotationGetStyles(line)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetText[1] = {{ wxLua_wxStyledTextCtrl_AnnotationGetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetText }}; -// %wxchkver_2_9_5 wxString AnnotationGetText(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetText(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationGetText - wxString returns = (self->AnnotationGetText(line)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetVisible[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetVisible[1] = {{ wxLua_wxStyledTextCtrl_AnnotationGetVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationGetVisible }}; -// %wxchkver_2_9_5 int AnnotationGetVisible() const; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationGetVisible(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationGetVisible - int returns = (self->AnnotationGetVisible()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetStyle[1] = {{ wxLua_wxStyledTextCtrl_AnnotationSetStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetStyle }}; -// %wxchkver_2_9_5 void AnnotationSetStyle(int line, int style); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationSetStyle - self->AnnotationSetStyle(line, style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset[1] = {{ wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset }}; -// %wxchkver_2_9_5 void AnnotationSetStyleOffset(int style); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationSetStyleOffset - self->AnnotationSetStyleOffset(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetStyles[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetStyles[1] = {{ wxLua_wxStyledTextCtrl_AnnotationSetStyles, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetStyles }}; -// %wxchkver_2_9_5 void AnnotationSetStyles(int line, const wxString& styles); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetStyles(lua_State *L) -{ - // const wxString styles - const wxString styles = wxlua_getwxStringtype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationSetStyles - self->AnnotationSetStyles(line, styles); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetText[1] = {{ wxLua_wxStyledTextCtrl_AnnotationSetText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetText }}; -// %wxchkver_2_9_5 void AnnotationSetText(int line, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationSetText - self->AnnotationSetText(line, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetVisible[1] = {{ wxLua_wxStyledTextCtrl_AnnotationSetVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AnnotationSetVisible }}; -// %wxchkver_2_9_5 void AnnotationSetVisible(int visible); -static int LUACALL wxLua_wxStyledTextCtrl_AnnotationSetVisible(lua_State *L) -{ - // int visible - int visible = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AnnotationSetVisible - self->AnnotationSetVisible(visible); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AppendText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AppendText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AppendText[1] = {{ wxLua_wxStyledTextCtrl_AppendText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AppendText }}; -// void AppendText(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_AppendText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AppendText - self->AppendText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AppendTextRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AppendTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AppendTextRaw[1] = {{ wxLua_wxStyledTextCtrl_AppendTextRaw, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AppendTextRaw }}; -// void AppendTextRaw(const char* text, int length=-1); -static int LUACALL wxLua_wxStyledTextCtrl_AppendTextRaw(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int length = -1 - int length = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const char text - const char * text = wxlua_getstringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AppendTextRaw - self->AppendTextRaw(text, length); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompActive[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompActive[1] = {{ wxLua_wxStyledTextCtrl_AutoCompActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompActive }}; -// bool AutoCompActive(); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompActive(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompActive - bool returns = (self->AutoCompActive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompCancel[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompCancel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompCancel[1] = {{ wxLua_wxStyledTextCtrl_AutoCompCancel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompCancel }}; -// void AutoCompCancel(); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompCancel(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompCancel - self->AutoCompCancel(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompComplete[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompComplete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompComplete[1] = {{ wxLua_wxStyledTextCtrl_AutoCompComplete, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompComplete }}; -// void AutoCompComplete(); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompComplete(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompComplete - self->AutoCompComplete(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetAutoHide[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetAutoHide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetAutoHide[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetAutoHide, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetAutoHide }}; -// bool AutoCompGetAutoHide() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetAutoHide(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetAutoHide - bool returns = (self->AutoCompGetAutoHide()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart }}; -// bool AutoCompGetCancelAtStart() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetCancelAtStart - bool returns = (self->AutoCompGetCancelAtStart()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour }}; -// %wxchkver_2_9_5 int AutoCompGetCaseInsensitiveBehaviour() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetCaseInsensitiveBehaviour - int returns = (self->AutoCompGetCaseInsensitiveBehaviour()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle }}; -// bool AutoCompGetChooseSingle() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetChooseSingle - bool returns = (self->AutoCompGetChooseSingle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCurrent[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCurrent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCurrent[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetCurrent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCurrent }}; -// int AutoCompGetCurrent() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCurrent(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetCurrent - int returns = (self->AutoCompGetCurrent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCurrentText[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCurrentText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCurrentText[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetCurrentText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetCurrentText }}; -// %wxchkver_3_1_1 wxString AutoCompGetCurrentText() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetCurrentText(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetCurrentText - wxString returns = (self->AutoCompGetCurrentText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord }}; -// bool AutoCompGetDropRestOfWord() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetDropRestOfWord - bool returns = (self->AutoCompGetDropRestOfWord()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase }}; -// bool AutoCompGetIgnoreCase() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetIgnoreCase - bool returns = (self->AutoCompGetIgnoreCase()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight }}; -// int AutoCompGetMaxHeight() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetMaxHeight - int returns = (self->AutoCompGetMaxHeight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth }}; -// int AutoCompGetMaxWidth() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetMaxWidth - int returns = (self->AutoCompGetMaxWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetMulti[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetMulti(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetMulti[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetMulti, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetMulti }}; -// %wxchkver_3_1_0 int AutoCompGetMulti() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetMulti(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetMulti - int returns = (self->AutoCompGetMulti()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetOrder[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetOrder[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetOrder, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetOrder }}; -// %wxchkver_3_1_0 int AutoCompGetOrder() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetOrder(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetOrder - int returns = (self->AutoCompGetOrder()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetSeparator[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetSeparator[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetSeparator }}; -// int AutoCompGetSeparator() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetSeparator(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetSeparator - int returns = (self->AutoCompGetSeparator()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator[1] = {{ wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator }}; -// int AutoCompGetTypeSeparator() const; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompGetTypeSeparator - int returns = (self->AutoCompGetTypeSeparator()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompPosStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompPosStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompPosStart[1] = {{ wxLua_wxStyledTextCtrl_AutoCompPosStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompPosStart }}; -// int AutoCompPosStart(); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompPosStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompPosStart - int returns = (self->AutoCompPosStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSelect[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSelect(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSelect[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSelect, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSelect }}; -// void AutoCompSelect(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSelect(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSelect - self->AutoCompSelect(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetAutoHide[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetAutoHide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetAutoHide[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetAutoHide, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetAutoHide }}; -// void AutoCompSetAutoHide(bool autoHide); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetAutoHide(lua_State *L) -{ - // bool autoHide - bool autoHide = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetAutoHide - self->AutoCompSetAutoHide(autoHide); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart }}; -// void AutoCompSetCancelAtStart(bool cancel); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart(lua_State *L) -{ - // bool cancel - bool cancel = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetCancelAtStart - self->AutoCompSetCancelAtStart(cancel); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour }}; -// %wxchkver_2_9_5 void AutoCompSetCaseInsensitiveBehaviour(int behaviour); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour(lua_State *L) -{ - // int behaviour - int behaviour = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetCaseInsensitiveBehaviour - self->AutoCompSetCaseInsensitiveBehaviour(behaviour); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle }}; -// void AutoCompSetChooseSingle(bool chooseSingle); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle(lua_State *L) -{ - // bool chooseSingle - bool chooseSingle = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetChooseSingle - self->AutoCompSetChooseSingle(chooseSingle); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord }}; -// void AutoCompSetDropRestOfWord(bool dropRestOfWord); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord(lua_State *L) -{ - // bool dropRestOfWord - bool dropRestOfWord = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetDropRestOfWord - self->AutoCompSetDropRestOfWord(dropRestOfWord); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetFillUps[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetFillUps(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetFillUps[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetFillUps, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetFillUps }}; -// void AutoCompSetFillUps(const wxString& characterSet); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetFillUps(lua_State *L) -{ - // const wxString characterSet - const wxString characterSet = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetFillUps - self->AutoCompSetFillUps(characterSet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase }}; -// void AutoCompSetIgnoreCase(bool ignoreCase); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase(lua_State *L) -{ - // bool ignoreCase - bool ignoreCase = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetIgnoreCase - self->AutoCompSetIgnoreCase(ignoreCase); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight }}; -// void AutoCompSetMaxHeight(int rowCount); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight(lua_State *L) -{ - // int rowCount - int rowCount = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetMaxHeight - self->AutoCompSetMaxHeight(rowCount); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth }}; -// void AutoCompSetMaxWidth(int characterCount); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth(lua_State *L) -{ - // int characterCount - int characterCount = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetMaxWidth - self->AutoCompSetMaxWidth(characterCount); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetMulti[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetMulti(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetMulti[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetMulti, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetMulti }}; -// %wxchkver_3_1_0 void AutoCompSetMulti(int multi); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetMulti(lua_State *L) -{ - // int multi - int multi = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetMulti - self->AutoCompSetMulti(multi); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetOrder[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetOrder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetOrder[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetOrder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetOrder }}; -// %wxchkver_3_1_0 void AutoCompSetOrder(int order); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetOrder(lua_State *L) -{ - // int order - int order = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetOrder - self->AutoCompSetOrder(order); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetSeparator[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetSeparator[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetSeparator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetSeparator }}; -// void AutoCompSetSeparator(int separatorCharacter); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetSeparator(lua_State *L) -{ - // int separatorCharacter - int separatorCharacter = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetSeparator - self->AutoCompSetSeparator(separatorCharacter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator[1] = {{ wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator }}; -// void AutoCompSetTypeSeparator(int separatorCharacter); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator(lua_State *L) -{ - // int separatorCharacter - int separatorCharacter = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompSetTypeSeparator - self->AutoCompSetTypeSeparator(separatorCharacter); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompShow[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompShow[1] = {{ wxLua_wxStyledTextCtrl_AutoCompShow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompShow }}; -// void AutoCompShow(int lenEntered, const wxString& itemList); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompShow(lua_State *L) -{ - // const wxString itemList - const wxString itemList = wxlua_getwxStringtype(L, 3); - // int lenEntered - int lenEntered = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompShow - self->AutoCompShow(lenEntered, itemList); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompStops[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompStops(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompStops[1] = {{ wxLua_wxStyledTextCtrl_AutoCompStops, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AutoCompStops }}; -// void AutoCompStops(const wxString& characterSet); -static int LUACALL wxLua_wxStyledTextCtrl_AutoCompStops(lua_State *L) -{ - // const wxString characterSet - const wxString characterSet = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call AutoCompStops - self->AutoCompStops(characterSet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BackTab[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BackTab(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BackTab[1] = {{ wxLua_wxStyledTextCtrl_BackTab, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BackTab }}; -// void BackTab(); -static int LUACALL wxLua_wxStyledTextCtrl_BackTab(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BackTab - self->BackTab(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BeginUndoAction[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BeginUndoAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BeginUndoAction[1] = {{ wxLua_wxStyledTextCtrl_BeginUndoAction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BeginUndoAction }}; -// void BeginUndoAction(); -static int LUACALL wxLua_wxStyledTextCtrl_BeginUndoAction(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BeginUndoAction - self->BeginUndoAction(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceBadLight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BraceBadLight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceBadLight[1] = {{ wxLua_wxStyledTextCtrl_BraceBadLight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceBadLight }}; -// void BraceBadLight(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_BraceBadLight(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BraceBadLight - self->BraceBadLight(pos); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceBadLightIndicator[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BraceBadLightIndicator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceBadLightIndicator[1] = {{ wxLua_wxStyledTextCtrl_BraceBadLightIndicator, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceBadLightIndicator }}; -// %wxchkver_2_9_5 void BraceBadLightIndicator(bool useBraceBadLightIndicator, int indicator); -static int LUACALL wxLua_wxStyledTextCtrl_BraceBadLightIndicator(lua_State *L) -{ - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 3); - // bool useBraceBadLightIndicator - bool useBraceBadLightIndicator = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BraceBadLightIndicator - self->BraceBadLightIndicator(useBraceBadLightIndicator, indicator); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceHighlight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BraceHighlight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceHighlight[1] = {{ wxLua_wxStyledTextCtrl_BraceHighlight, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceHighlight }}; -// void BraceHighlight(int pos1, int pos2); -static int LUACALL wxLua_wxStyledTextCtrl_BraceHighlight(lua_State *L) -{ - // int pos2 - int pos2 = (int)wxlua_getnumbertype(L, 3); - // int pos1 - int pos1 = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BraceHighlight - self->BraceHighlight(pos1, pos2); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceHighlightIndicator[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BraceHighlightIndicator(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceHighlightIndicator[1] = {{ wxLua_wxStyledTextCtrl_BraceHighlightIndicator, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceHighlightIndicator }}; -// %wxchkver_2_9_5 void BraceHighlightIndicator(bool useBraceHighlightIndicator, int indicator); -static int LUACALL wxLua_wxStyledTextCtrl_BraceHighlightIndicator(lua_State *L) -{ - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 3); - // bool useBraceHighlightIndicator - bool useBraceHighlightIndicator = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BraceHighlightIndicator - self->BraceHighlightIndicator(useBraceHighlightIndicator, indicator); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if !wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceMatch1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BraceMatch1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch1[1] = {{ wxLua_wxStyledTextCtrl_BraceMatch1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceMatch1 }}; -// !%wxchkver_3_1_1 int BraceMatch(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_BraceMatch1(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BraceMatch - int returns = (self->BraceMatch(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // !wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceMatch[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_BraceMatch(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch[1] = {{ wxLua_wxStyledTextCtrl_BraceMatch, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceMatch }}; -// %wxchkver_3_1_1 int BraceMatch(int pos, int maxReStyle=0); -static int LUACALL wxLua_wxStyledTextCtrl_BraceMatch(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int maxReStyle = 0 - int maxReStyle = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call BraceMatch - int returns = (self->BraceMatch(pos, maxReStyle)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipActive[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipActive[1] = {{ wxLua_wxStyledTextCtrl_CallTipActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipActive }}; -// bool CallTipActive(); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipActive(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipActive - bool returns = (self->CallTipActive()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipCancel[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipCancel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipCancel[1] = {{ wxLua_wxStyledTextCtrl_CallTipCancel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipCancel }}; -// void CallTipCancel(); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipCancel(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipCancel - self->CallTipCancel(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipPosAtStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipPosAtStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipPosAtStart[1] = {{ wxLua_wxStyledTextCtrl_CallTipPosAtStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipPosAtStart }}; -// int CallTipPosAtStart(); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipPosAtStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipPosAtStart - int returns = (self->CallTipPosAtStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetBackground[1] = {{ wxLua_wxStyledTextCtrl_CallTipSetBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetBackground }}; -// void CallTipSetBackground(const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipSetBackground - self->CallTipSetBackground(*back); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetForeground[1] = {{ wxLua_wxStyledTextCtrl_CallTipSetForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetForeground }}; -// void CallTipSetForeground(const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipSetForeground - self->CallTipSetForeground(*fore); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight[1] = {{ wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight }}; -// void CallTipSetForegroundHighlight(const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipSetForegroundHighlight - self->CallTipSetForegroundHighlight(*fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetHighlight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetHighlight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetHighlight[1] = {{ wxLua_wxStyledTextCtrl_CallTipSetHighlight, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetHighlight }}; -// void CallTipSetHighlight(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetHighlight(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipSetHighlight - self->CallTipSetHighlight(start, end); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetPosAtStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetPosAtStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetPosAtStart[1] = {{ wxLua_wxStyledTextCtrl_CallTipSetPosAtStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetPosAtStart }}; -// %wxchkver_3_1_0 void CallTipSetPosAtStart(int posStart); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetPosAtStart(lua_State *L) -{ - // int posStart - int posStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipSetPosAtStart - self->CallTipSetPosAtStart(posStart); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetPosition[1] = {{ wxLua_wxStyledTextCtrl_CallTipSetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipSetPosition }}; -// %wxchkver_2_9_5 void CallTipSetPosition(bool above); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipSetPosition(lua_State *L) -{ - // bool above - bool above = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipSetPosition - self->CallTipSetPosition(above); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipShow[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipShow[1] = {{ wxLua_wxStyledTextCtrl_CallTipShow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipShow }}; -// void CallTipShow(int pos, const wxString& definition); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipShow(lua_State *L) -{ - // const wxString definition - const wxString definition = wxlua_getwxStringtype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipShow - self->CallTipShow(pos, definition); - - return 0; -} - - -#if wxCHECK_VERSION(2,8,12) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipUseStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CallTipUseStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipUseStyle[1] = {{ wxLua_wxStyledTextCtrl_CallTipUseStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CallTipUseStyle }}; -// %wxchkver_2_8_12 void CallTipUseStyle(int tabSize); -static int LUACALL wxLua_wxStyledTextCtrl_CallTipUseStyle(lua_State *L) -{ - // int tabSize - int tabSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CallTipUseStyle - self->CallTipUseStyle(tabSize); - - return 0; -} - -#endif // wxCHECK_VERSION(2,8,12) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CanPaste[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CanPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CanPaste[1] = {{ wxLua_wxStyledTextCtrl_CanPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CanPaste }}; -// bool CanPaste() const; -static int LUACALL wxLua_wxStyledTextCtrl_CanPaste(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CanPaste - bool returns = (self->CanPaste()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CanRedo[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CanRedo[1] = {{ wxLua_wxStyledTextCtrl_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CanRedo }}; -// bool CanRedo() const; -static int LUACALL wxLua_wxStyledTextCtrl_CanRedo(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CanUndo[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CanUndo[1] = {{ wxLua_wxStyledTextCtrl_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CanUndo }}; -// bool CanUndo() const; -static int LUACALL wxLua_wxStyledTextCtrl_CanUndo(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Cancel[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Cancel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Cancel[1] = {{ wxLua_wxStyledTextCtrl_Cancel, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Cancel }}; -// void Cancel(); -static int LUACALL wxLua_wxStyledTextCtrl_Cancel(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Cancel - self->Cancel(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ChangeInsertion[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ChangeInsertion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ChangeInsertion[1] = {{ wxLua_wxStyledTextCtrl_ChangeInsertion, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ChangeInsertion }}; -// %wxchkver_3_1_0 void ChangeInsertion(int length, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_ChangeInsertion(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int length - int length = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ChangeInsertion - self->ChangeInsertion(length, text); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ChangeLexerState[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ChangeLexerState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ChangeLexerState[1] = {{ wxLua_wxStyledTextCtrl_ChangeLexerState, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ChangeLexerState }}; -// %wxchkver_2_9_5 int ChangeLexerState(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_ChangeLexerState(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ChangeLexerState - int returns = (self->ChangeLexerState(start, end)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharLeft[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharLeft[1] = {{ wxLua_wxStyledTextCtrl_CharLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharLeft }}; -// void CharLeft(); -static int LUACALL wxLua_wxStyledTextCtrl_CharLeft(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharLeft - self->CharLeft(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharLeftExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharLeftExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharLeftExtend[1] = {{ wxLua_wxStyledTextCtrl_CharLeftExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharLeftExtend }}; -// void CharLeftExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_CharLeftExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharLeftExtend - self->CharLeftExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharLeftRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharLeftRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharLeftRectExtend[1] = {{ wxLua_wxStyledTextCtrl_CharLeftRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharLeftRectExtend }}; -// void CharLeftRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_CharLeftRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharLeftRectExtend - self->CharLeftRectExtend(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharPositionFromPoint[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharPositionFromPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharPositionFromPoint[1] = {{ wxLua_wxStyledTextCtrl_CharPositionFromPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharPositionFromPoint }}; -// %wxchkver_2_9_5 int CharPositionFromPoint(int x, int y); -static int LUACALL wxLua_wxStyledTextCtrl_CharPositionFromPoint(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharPositionFromPoint - int returns = (self->CharPositionFromPoint(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharPositionFromPointClose[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharPositionFromPointClose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharPositionFromPointClose[1] = {{ wxLua_wxStyledTextCtrl_CharPositionFromPointClose, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharPositionFromPointClose }}; -// %wxchkver_2_9_5 int CharPositionFromPointClose(int x, int y); -static int LUACALL wxLua_wxStyledTextCtrl_CharPositionFromPointClose(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharPositionFromPointClose - int returns = (self->CharPositionFromPointClose(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharRight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharRight[1] = {{ wxLua_wxStyledTextCtrl_CharRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharRight }}; -// void CharRight(); -static int LUACALL wxLua_wxStyledTextCtrl_CharRight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharRight - self->CharRight(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharRightExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharRightExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharRightExtend[1] = {{ wxLua_wxStyledTextCtrl_CharRightExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharRightExtend }}; -// void CharRightExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_CharRightExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharRightExtend - self->CharRightExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharRightRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CharRightRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CharRightRectExtend[1] = {{ wxLua_wxStyledTextCtrl_CharRightRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CharRightRectExtend }}; -// void CharRightRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_CharRightRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CharRightRectExtend - self->CharRightRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ChooseCaretX[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ChooseCaretX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ChooseCaretX[1] = {{ wxLua_wxStyledTextCtrl_ChooseCaretX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ChooseCaretX }}; -// void ChooseCaretX(); -static int LUACALL wxLua_wxStyledTextCtrl_ChooseCaretX(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ChooseCaretX - self->ChooseCaretX(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Clear[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Clear[1] = {{ wxLua_wxStyledTextCtrl_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxStyledTextCtrl_Clear(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ClearAll[1] = {{ wxLua_wxStyledTextCtrl_ClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearAll }}; -// void ClearAll(); -static int LUACALL wxLua_wxStyledTextCtrl_ClearAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ClearAll - self->ClearAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearDocumentStyle[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ClearDocumentStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ClearDocumentStyle[1] = {{ wxLua_wxStyledTextCtrl_ClearDocumentStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearDocumentStyle }}; -// void ClearDocumentStyle(); -static int LUACALL wxLua_wxStyledTextCtrl_ClearDocumentStyle(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ClearDocumentStyle - self->ClearDocumentStyle(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearRegisteredImages[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ClearRegisteredImages(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ClearRegisteredImages[1] = {{ wxLua_wxStyledTextCtrl_ClearRegisteredImages, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearRegisteredImages }}; -// void ClearRegisteredImages(); -static int LUACALL wxLua_wxStyledTextCtrl_ClearRegisteredImages(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ClearRegisteredImages - self->ClearRegisteredImages(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearRepresentation[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ClearRepresentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ClearRepresentation[1] = {{ wxLua_wxStyledTextCtrl_ClearRepresentation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearRepresentation }}; -// %wxchkver_3_1_0 void ClearRepresentation(const wxString& encodedCharacter); -static int LUACALL wxLua_wxStyledTextCtrl_ClearRepresentation(lua_State *L) -{ - // const wxString encodedCharacter - const wxString encodedCharacter = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ClearRepresentation - self->ClearRepresentation(encodedCharacter); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearSelections[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ClearSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ClearSelections[1] = {{ wxLua_wxStyledTextCtrl_ClearSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearSelections }}; -// %wxchkver_2_9_5 void ClearSelections(); -static int LUACALL wxLua_wxStyledTextCtrl_ClearSelections(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ClearSelections - self->ClearSelections(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearTabStops[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ClearTabStops(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ClearTabStops[1] = {{ wxLua_wxStyledTextCtrl_ClearTabStops, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ClearTabStops }}; -// %wxchkver_3_1_0 void ClearTabStops(int line); -static int LUACALL wxLua_wxStyledTextCtrl_ClearTabStops(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ClearTabStops - self->ClearTabStops(line); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyAssign[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyAssign(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyAssign[1] = {{ wxLua_wxStyledTextCtrl_CmdKeyAssign, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyAssign }}; -// void CmdKeyAssign(int key, int modifiers, int cmd); -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyAssign(lua_State *L) -{ - // int cmd - int cmd = (int)wxlua_getnumbertype(L, 4); - // int modifiers - int modifiers = (int)wxlua_getnumbertype(L, 3); - // int key - int key = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CmdKeyAssign - self->CmdKeyAssign(key, modifiers, cmd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyClear[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyClear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyClear[1] = {{ wxLua_wxStyledTextCtrl_CmdKeyClear, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyClear }}; -// void CmdKeyClear(int key, int modifiers); -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyClear(lua_State *L) -{ - // int modifiers - int modifiers = (int)wxlua_getnumbertype(L, 3); - // int key - int key = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CmdKeyClear - self->CmdKeyClear(key, modifiers); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyClearAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyClearAll[1] = {{ wxLua_wxStyledTextCtrl_CmdKeyClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyClearAll }}; -// void CmdKeyClearAll(); -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyClearAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CmdKeyClearAll - self->CmdKeyClearAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyExecute[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyExecute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyExecute[1] = {{ wxLua_wxStyledTextCtrl_CmdKeyExecute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CmdKeyExecute }}; -// void CmdKeyExecute(int cmd); -static int LUACALL wxLua_wxStyledTextCtrl_CmdKeyExecute(lua_State *L) -{ - // int cmd - int cmd = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CmdKeyExecute - self->CmdKeyExecute(cmd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Colourise[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Colourise(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Colourise[1] = {{ wxLua_wxStyledTextCtrl_Colourise, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Colourise }}; -// void Colourise(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_Colourise(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Colourise - self->Colourise(start, end); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ContractedFoldNext[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ContractedFoldNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ContractedFoldNext[1] = {{ wxLua_wxStyledTextCtrl_ContractedFoldNext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ContractedFoldNext }}; -// %wxchkver_2_9_5 int ContractedFoldNext(int lineStart); -static int LUACALL wxLua_wxStyledTextCtrl_ContractedFoldNext(lua_State *L) -{ - // int lineStart - int lineStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ContractedFoldNext - int returns = (self->ContractedFoldNext(lineStart)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ConvertEOLs[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ConvertEOLs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ConvertEOLs[1] = {{ wxLua_wxStyledTextCtrl_ConvertEOLs, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ConvertEOLs }}; -// void ConvertEOLs(int eolMode); -static int LUACALL wxLua_wxStyledTextCtrl_ConvertEOLs(lua_State *L) -{ - // int eolMode - int eolMode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ConvertEOLs - self->ConvertEOLs(eolMode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Copy[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Copy[1] = {{ wxLua_wxStyledTextCtrl_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Copy }}; -// void Copy(); -static int LUACALL wxLua_wxStyledTextCtrl_Copy(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Copy - self->Copy(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CopyAllowLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CopyAllowLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CopyAllowLine[1] = {{ wxLua_wxStyledTextCtrl_CopyAllowLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CopyAllowLine }}; -// %wxchkver_2_9_5 void CopyAllowLine(); -static int LUACALL wxLua_wxStyledTextCtrl_CopyAllowLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CopyAllowLine - self->CopyAllowLine(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CopyRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CopyRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CopyRange[1] = {{ wxLua_wxStyledTextCtrl_CopyRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CopyRange }}; -// void CopyRange(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_CopyRange(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CopyRange - self->CopyRange(start, end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CopyText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CopyText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CopyText[1] = {{ wxLua_wxStyledTextCtrl_CopyText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CopyText }}; -// void CopyText(int length, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_CopyText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int length - int length = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CopyText - self->CopyText(length, text); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CountCharacters[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CountCharacters(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CountCharacters[1] = {{ wxLua_wxStyledTextCtrl_CountCharacters, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CountCharacters }}; -// %wxchkver_2_9_5 int CountCharacters(int startPos, int endPos); -static int LUACALL wxLua_wxStyledTextCtrl_CountCharacters(lua_State *L) -{ - // int endPos - int endPos = (int)wxlua_getnumbertype(L, 3); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CountCharacters - int returns = (self->CountCharacters(startPos, endPos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_CreateDocument[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_CreateDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_CreateDocument[1] = {{ wxLua_wxStyledTextCtrl_CreateDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_CreateDocument }}; -// void* CreateDocument(); -static int LUACALL wxLua_wxStyledTextCtrl_CreateDocument(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call CreateDocument - void* returns = (void*)self->CreateDocument(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Cut[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Cut[1] = {{ wxLua_wxStyledTextCtrl_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Cut }}; -// void Cut(); -static int LUACALL wxLua_wxStyledTextCtrl_Cut(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Cut - self->Cut(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelLineLeft[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DelLineLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DelLineLeft[1] = {{ wxLua_wxStyledTextCtrl_DelLineLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelLineLeft }}; -// void DelLineLeft(); -static int LUACALL wxLua_wxStyledTextCtrl_DelLineLeft(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DelLineLeft - self->DelLineLeft(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelLineRight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DelLineRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DelLineRight[1] = {{ wxLua_wxStyledTextCtrl_DelLineRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelLineRight }}; -// void DelLineRight(); -static int LUACALL wxLua_wxStyledTextCtrl_DelLineRight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DelLineRight - self->DelLineRight(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelWordLeft[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DelWordLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DelWordLeft[1] = {{ wxLua_wxStyledTextCtrl_DelWordLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelWordLeft }}; -// void DelWordLeft(); -static int LUACALL wxLua_wxStyledTextCtrl_DelWordLeft(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DelWordLeft - self->DelWordLeft(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelWordRight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DelWordRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DelWordRight[1] = {{ wxLua_wxStyledTextCtrl_DelWordRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelWordRight }}; -// void DelWordRight(); -static int LUACALL wxLua_wxStyledTextCtrl_DelWordRight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DelWordRight - self->DelWordRight(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelWordRightEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DelWordRightEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DelWordRightEnd[1] = {{ wxLua_wxStyledTextCtrl_DelWordRightEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DelWordRightEnd }}; -// %wxchkver_2_9_5 void DelWordRightEnd(); -static int LUACALL wxLua_wxStyledTextCtrl_DelWordRightEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DelWordRightEnd - self->DelWordRightEnd(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DeleteBack[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DeleteBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DeleteBack[1] = {{ wxLua_wxStyledTextCtrl_DeleteBack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DeleteBack }}; -// void DeleteBack(); -static int LUACALL wxLua_wxStyledTextCtrl_DeleteBack(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DeleteBack - self->DeleteBack(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DeleteBackNotLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DeleteBackNotLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DeleteBackNotLine[1] = {{ wxLua_wxStyledTextCtrl_DeleteBackNotLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DeleteBackNotLine }}; -// void DeleteBackNotLine(); -static int LUACALL wxLua_wxStyledTextCtrl_DeleteBackNotLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DeleteBackNotLine - self->DeleteBackNotLine(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DeleteRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DeleteRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DeleteRange[1] = {{ wxLua_wxStyledTextCtrl_DeleteRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DeleteRange }}; -// %wxchkver_2_9_5 void DeleteRange(int pos, int deleteLength); -static int LUACALL wxLua_wxStyledTextCtrl_DeleteRange(lua_State *L) -{ - // int deleteLength - int deleteLength = (int)wxlua_getnumbertype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DeleteRange - self->DeleteRange(pos, deleteLength); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DescribeKeyWordSets[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DescribeKeyWordSets(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DescribeKeyWordSets[1] = {{ wxLua_wxStyledTextCtrl_DescribeKeyWordSets, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DescribeKeyWordSets }}; -// %wxchkver_2_9_5 wxString DescribeKeyWordSets() const; -static int LUACALL wxLua_wxStyledTextCtrl_DescribeKeyWordSets(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DescribeKeyWordSets - wxString returns = (self->DescribeKeyWordSets()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DescribeProperty[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DescribeProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DescribeProperty[1] = {{ wxLua_wxStyledTextCtrl_DescribeProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DescribeProperty }}; -// %wxchkver_2_9_5 wxString DescribeProperty(const wxString& name) const; -static int LUACALL wxLua_wxStyledTextCtrl_DescribeProperty(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DescribeProperty - wxString returns = (self->DescribeProperty(name)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles[1] = {{ wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles }}; -// %wxchkver_3_1_0 int DistanceToSecondaryStyles() const; -static int LUACALL wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DistanceToSecondaryStyles - int returns = (self->DistanceToSecondaryStyles()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DoDragLeave[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DoDragLeave(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DoDragLeave[1] = {{ wxLua_wxStyledTextCtrl_DoDragLeave, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DoDragLeave }}; -// %wxchkver_3_1_0 void DoDragLeave(); -static int LUACALL wxLua_wxStyledTextCtrl_DoDragLeave(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DoDragLeave - self->DoDragLeave(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DoDropText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DoDropText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DoDropText[1] = {{ wxLua_wxStyledTextCtrl_DoDropText, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DoDropText }}; -// bool DoDropText(long x, long y, const wxString& data); -static int LUACALL wxLua_wxStyledTextCtrl_DoDropText(lua_State *L) -{ - // const wxString data - const wxString data = wxlua_getwxStringtype(L, 4); - // long y - long y = (long)wxlua_getnumbertype(L, 3); - // long x - long x = (long)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DoDropText - bool returns = (self->DoDropText(x, y, data)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocLineFromVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DocLineFromVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DocLineFromVisible[1] = {{ wxLua_wxStyledTextCtrl_DocLineFromVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocLineFromVisible }}; -// int DocLineFromVisible(int lineDisplay); -static int LUACALL wxLua_wxStyledTextCtrl_DocLineFromVisible(lua_State *L) -{ - // int lineDisplay - int lineDisplay = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DocLineFromVisible - int returns = (self->DocLineFromVisible(lineDisplay)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DocumentEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentEnd[1] = {{ wxLua_wxStyledTextCtrl_DocumentEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentEnd }}; -// void DocumentEnd(); -static int LUACALL wxLua_wxStyledTextCtrl_DocumentEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DocumentEnd - self->DocumentEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentEndExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DocumentEndExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentEndExtend[1] = {{ wxLua_wxStyledTextCtrl_DocumentEndExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentEndExtend }}; -// void DocumentEndExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_DocumentEndExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DocumentEndExtend - self->DocumentEndExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DocumentStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentStart[1] = {{ wxLua_wxStyledTextCtrl_DocumentStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentStart }}; -// void DocumentStart(); -static int LUACALL wxLua_wxStyledTextCtrl_DocumentStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DocumentStart - self->DocumentStart(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentStartExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DocumentStartExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentStartExtend[1] = {{ wxLua_wxStyledTextCtrl_DocumentStartExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DocumentStartExtend }}; -// void DocumentStartExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_DocumentStartExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DocumentStartExtend - self->DocumentStartExtend(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_DropSelectionN[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_DropSelectionN(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_DropSelectionN[1] = {{ wxLua_wxStyledTextCtrl_DropSelectionN, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_DropSelectionN }}; -// %wxchkver_3_1_0 void DropSelectionN(int selection); -static int LUACALL wxLua_wxStyledTextCtrl_DropSelectionN(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call DropSelectionN - self->DropSelectionN(selection); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_EditToggleOvertype[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_EditToggleOvertype(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_EditToggleOvertype[1] = {{ wxLua_wxStyledTextCtrl_EditToggleOvertype, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_EditToggleOvertype }}; -// void EditToggleOvertype(); -static int LUACALL wxLua_wxStyledTextCtrl_EditToggleOvertype(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call EditToggleOvertype - self->EditToggleOvertype(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_EmptyUndoBuffer[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_EmptyUndoBuffer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_EmptyUndoBuffer[1] = {{ wxLua_wxStyledTextCtrl_EmptyUndoBuffer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_EmptyUndoBuffer }}; -// void EmptyUndoBuffer(); -static int LUACALL wxLua_wxStyledTextCtrl_EmptyUndoBuffer(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call EmptyUndoBuffer - self->EmptyUndoBuffer(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_EndUndoAction[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_EndUndoAction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_EndUndoAction[1] = {{ wxLua_wxStyledTextCtrl_EndUndoAction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_EndUndoAction }}; -// void EndUndoAction(); -static int LUACALL wxLua_wxStyledTextCtrl_EndUndoAction(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call EndUndoAction - self->EndUndoAction(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_EnsureCaretVisible[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_EnsureCaretVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_EnsureCaretVisible[1] = {{ wxLua_wxStyledTextCtrl_EnsureCaretVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_EnsureCaretVisible }}; -// void EnsureCaretVisible(); -static int LUACALL wxLua_wxStyledTextCtrl_EnsureCaretVisible(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call EnsureCaretVisible - self->EnsureCaretVisible(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_EnsureVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_EnsureVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_EnsureVisible[1] = {{ wxLua_wxStyledTextCtrl_EnsureVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_EnsureVisible }}; -// void EnsureVisible(int line); -static int LUACALL wxLua_wxStyledTextCtrl_EnsureVisible(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call EnsureVisible - self->EnsureVisible(line); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy[1] = {{ wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy }}; -// void EnsureVisibleEnforcePolicy(int line); -static int LUACALL wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call EnsureVisibleEnforcePolicy - self->EnsureVisibleEnforcePolicy(line); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ExpandChildren[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ExpandChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ExpandChildren[1] = {{ wxLua_wxStyledTextCtrl_ExpandChildren, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ExpandChildren }}; -// %wxchkver_3_1_0 void ExpandChildren(int line, int level); -static int LUACALL wxLua_wxStyledTextCtrl_ExpandChildren(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ExpandChildren - self->ExpandChildren(line, level); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FindColumn[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FindColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FindColumn[1] = {{ wxLua_wxStyledTextCtrl_FindColumn, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FindColumn }}; -// int FindColumn(int line, int column); -static int LUACALL wxLua_wxStyledTextCtrl_FindColumn(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FindColumn - int returns = (self->FindColumn(line, column)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FindText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FindText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FindText[1] = {{ wxLua_wxStyledTextCtrl_FindText, WXLUAMETHOD_METHOD, 4, 5, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FindText }}; -// int FindText(int minPos, int maxPos, const wxString& text, int flags=0); -static int LUACALL wxLua_wxStyledTextCtrl_FindText(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = 0 - int flags = (argCount >= 5 ? (int)wxlua_getnumbertype(L, 5) : 0); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 4); - // int maxPos - int maxPos = (int)wxlua_getnumbertype(L, 3); - // int minPos - int minPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FindText - int returns = (self->FindText(minPos, maxPos, text, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldAll[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FoldAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FoldAll[1] = {{ wxLua_wxStyledTextCtrl_FoldAll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldAll }}; -// %wxchkver_3_1_0 void FoldAll(int action); -static int LUACALL wxLua_wxStyledTextCtrl_FoldAll(lua_State *L) -{ - // int action - int action = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FoldAll - self->FoldAll(action); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldChildren[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FoldChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FoldChildren[1] = {{ wxLua_wxStyledTextCtrl_FoldChildren, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldChildren }}; -// %wxchkver_3_1_0 void FoldChildren(int line, int action); -static int LUACALL wxLua_wxStyledTextCtrl_FoldChildren(lua_State *L) -{ - // int action - int action = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FoldChildren - self->FoldChildren(line, action); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle[1] = {{ wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle }}; -// %wxchkver_3_1_1 void FoldDisplayTextSetStyle(int style); -static int LUACALL wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FoldDisplayTextSetStyle - self->FoldDisplayTextSetStyle(style); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FoldLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FoldLine[1] = {{ wxLua_wxStyledTextCtrl_FoldLine, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FoldLine }}; -// %wxchkver_3_1_0 void FoldLine(int line, int action); -static int LUACALL wxLua_wxStyledTextCtrl_FoldLine(lua_State *L) -{ - // int action - int action = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FoldLine - self->FoldLine(line, action); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FormFeed[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FormFeed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FormFeed[1] = {{ wxLua_wxStyledTextCtrl_FormFeed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FormFeed }}; -// void FormFeed(); -static int LUACALL wxLua_wxStyledTextCtrl_FormFeed(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FormFeed - self->FormFeed(); - - return 0; -} - - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FormatRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxDC, &wxluatype_wxDC, &wxluatype_wxRect, &wxluatype_wxRect, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FormatRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FormatRange[1] = {{ wxLua_wxStyledTextCtrl_FormatRange, WXLUAMETHOD_METHOD, 8, 8, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FormatRange }}; -// int FormatRange(bool doDraw, int startPos, int endPos, wxDC* draw, wxDC* target, const wxRect& renderRect, const wxRect& pageRect); -static int LUACALL wxLua_wxStyledTextCtrl_FormatRange(lua_State *L) -{ - // const wxRect pageRect - const wxRect * pageRect = (const wxRect *)wxluaT_getuserdatatype(L, 8, wxluatype_wxRect); - // const wxRect renderRect - const wxRect * renderRect = (const wxRect *)wxluaT_getuserdatatype(L, 7, wxluatype_wxRect); - // wxDC target - wxDC * target = (wxDC *)wxluaT_getuserdatatype(L, 6, wxluatype_wxDC); - // wxDC draw - wxDC * draw = (wxDC *)wxluaT_getuserdatatype(L, 5, wxluatype_wxDC); - // int endPos - int endPos = (int)wxlua_getnumbertype(L, 4); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 3); - // bool doDraw - bool doDraw = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FormatRange - int returns = (self->FormatRange(doDraw, startPos, endPos, draw, target, *renderRect, *pageRect)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_FreeSubStyles[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_FreeSubStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_FreeSubStyles[1] = {{ wxLua_wxStyledTextCtrl_FreeSubStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_FreeSubStyles }}; -// %wxchkver_3_1_0 void FreeSubStyles(); -static int LUACALL wxLua_wxStyledTextCtrl_FreeSubStyles(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call FreeSubStyles - self->FreeSubStyles(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground[1] = {{ wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground }}; -// %wxchkver_2_9_5 wxColour GetAdditionalCaretForeground() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAdditionalCaretForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetAdditionalCaretForeground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink[1] = {{ wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink }}; -// %wxchkver_2_9_5 bool GetAdditionalCaretsBlink() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAdditionalCaretsBlink - bool returns = (self->GetAdditionalCaretsBlink()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible[1] = {{ wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible }}; -// %wxchkver_2_9_5 bool GetAdditionalCaretsVisible() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAdditionalCaretsVisible - bool returns = (self->GetAdditionalCaretsVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha[1] = {{ wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha }}; -// %wxchkver_2_9_5 int GetAdditionalSelAlpha() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAdditionalSelAlpha - int returns = (self->GetAdditionalSelAlpha()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping[1] = {{ wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping }}; -// %wxchkver_2_9_5 bool GetAdditionalSelectionTyping() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAdditionalSelectionTyping - bool returns = (self->GetAdditionalSelectionTyping()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAllLinesVisible[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAllLinesVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAllLinesVisible[1] = {{ wxLua_wxStyledTextCtrl_GetAllLinesVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAllLinesVisible }}; -// %wxchkver_2_9_5 bool GetAllLinesVisible() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAllLinesVisible(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAllLinesVisible - bool returns = (self->GetAllLinesVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAnchor[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAnchor[1] = {{ wxLua_wxStyledTextCtrl_GetAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAnchor }}; -// int GetAnchor() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAnchor(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAnchor - int returns = (self->GetAnchor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAutomaticFold[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetAutomaticFold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetAutomaticFold[1] = {{ wxLua_wxStyledTextCtrl_GetAutomaticFold, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetAutomaticFold }}; -// %wxchkver_3_1_0 int GetAutomaticFold() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetAutomaticFold(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetAutomaticFold - int returns = (self->GetAutomaticFold()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents[1] = {{ wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents }}; -// bool GetBackSpaceUnIndents() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetBackSpaceUnIndents - bool returns = (self->GetBackSpaceUnIndents()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetBufferedDraw[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetBufferedDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetBufferedDraw[1] = {{ wxLua_wxStyledTextCtrl_GetBufferedDraw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetBufferedDraw }}; -// bool GetBufferedDraw() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetBufferedDraw(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetBufferedDraw - bool returns = (self->GetBufferedDraw()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretForeground[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretForeground[1] = {{ wxLua_wxStyledTextCtrl_GetCaretForeground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretForeground }}; -// wxColour GetCaretForeground() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretForeground(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCaretForeground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineBack[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineBack[1] = {{ wxLua_wxStyledTextCtrl_GetCaretLineBack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineBack }}; -// !%wxchkver_2_8 wxColour GetCaretLineBack(); -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBack(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretLineBack - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCaretLineBack()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,8,12) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha[1] = {{ wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha }}; -// %wxchkver_2_8_12 int GetCaretLineBackAlpha() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretLineBackAlpha - int returns = (self->GetCaretLineBackAlpha()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,12) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineBackground[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineBackground[1] = {{ wxLua_wxStyledTextCtrl_GetCaretLineBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineBackground }}; -// %wxchkver_2_8 wxColour GetCaretLineBackground() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBackground(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretLineBackground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetCaretLineBackground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineVisible[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineVisible[1] = {{ wxLua_wxStyledTextCtrl_GetCaretLineVisible, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineVisible }}; -// bool GetCaretLineVisible() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineVisible(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretLineVisible - bool returns = (self->GetCaretLineVisible()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways[1] = {{ wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways }}; -// %wxchkver_3_1_0 bool GetCaretLineVisibleAlways() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretLineVisibleAlways - bool returns = (self->GetCaretLineVisibleAlways()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretPeriod[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretPeriod(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretPeriod[1] = {{ wxLua_wxStyledTextCtrl_GetCaretPeriod, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretPeriod }}; -// int GetCaretPeriod() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretPeriod(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretPeriod - int returns = (self->GetCaretPeriod()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretSticky[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretSticky(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretSticky[1] = {{ wxLua_wxStyledTextCtrl_GetCaretSticky, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretSticky }}; -// %wxchkver_2_9_5 int GetCaretSticky() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretSticky(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretSticky - int returns = (self->GetCaretSticky()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretStyle[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretStyle[1] = {{ wxLua_wxStyledTextCtrl_GetCaretStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretStyle }}; -// %wxchkver_2_9_5 int GetCaretStyle() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretStyle(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretStyle - int returns = (self->GetCaretStyle()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretWidth[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretWidth[1] = {{ wxLua_wxStyledTextCtrl_GetCaretWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCaretWidth }}; -// int GetCaretWidth() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCaretWidth(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCaretWidth - int returns = (self->GetCaretWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCharAt[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCharAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCharAt[1] = {{ wxLua_wxStyledTextCtrl_GetCharAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCharAt }}; -// int GetCharAt(int pos) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCharAt(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCharAt - int returns = (self->GetCharAt(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCodePage[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCodePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCodePage[1] = {{ wxLua_wxStyledTextCtrl_GetCodePage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCodePage }}; -// int GetCodePage() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCodePage(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCodePage - int returns = (self->GetCodePage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetColumn[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetColumn[1] = {{ wxLua_wxStyledTextCtrl_GetColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetColumn }}; -// int GetColumn(int pos) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetColumn(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetColumn - int returns = (self->GetColumn(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetControlCharSymbol[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetControlCharSymbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetControlCharSymbol[1] = {{ wxLua_wxStyledTextCtrl_GetControlCharSymbol, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetControlCharSymbol }}; -// int GetControlCharSymbol() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetControlCharSymbol(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetControlCharSymbol - int returns = (self->GetControlCharSymbol()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCurLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurLine[1] = {{ wxLua_wxStyledTextCtrl_GetCurLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurLine }}; -// %override wxLua_wxStyledTextCtrl_GetCurLine -// wxString GetCurLine(int* linePos=NULL) -static int LUACALL wxLua_wxStyledTextCtrl_GetCurLine(lua_State *L) -{ - int linePos; - // get this - wxStyledTextCtrl *self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCurLine - wxString returns = self->GetCurLine(&linePos); - // push the result string - lua_pushstring(L, wx2lua(returns)); - lua_pushinteger(L, linePos); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurLineRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCurLineRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurLineRaw[1] = {{ wxLua_wxStyledTextCtrl_GetCurLineRaw, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurLineRaw }}; -// wxCharBuffer GetCurLineRaw(int* linePos=NULL); -static int LUACALL wxLua_wxStyledTextCtrl_GetCurLineRaw(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int linePos = NULL - int * linePos = (argCount >= 2 ? (int *)wxlua_touserdata(L, 2) : NULL); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCurLineRaw - wxCharBuffer returns = (self->GetCurLineRaw(linePos)); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurrentLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCurrentLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurrentLine[1] = {{ wxLua_wxStyledTextCtrl_GetCurrentLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurrentLine }}; -// int GetCurrentLine(); -static int LUACALL wxLua_wxStyledTextCtrl_GetCurrentLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCurrentLine - int returns = (self->GetCurrentLine()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurrentPos[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetCurrentPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurrentPos[1] = {{ wxLua_wxStyledTextCtrl_GetCurrentPos, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetCurrentPos }}; -// int GetCurrentPos() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetCurrentPos(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetCurrentPos - int returns = (self->GetCurrentPos()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetDirectFunction[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetDirectFunction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetDirectFunction[1] = {{ wxLua_wxStyledTextCtrl_GetDirectFunction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetDirectFunction }}; -// %wxchkver_3_1_1 void* GetDirectFunction() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetDirectFunction(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetDirectFunction - void* returns = (void*)self->GetDirectFunction(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetDirectPointer[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetDirectPointer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetDirectPointer[1] = {{ wxLua_wxStyledTextCtrl_GetDirectPointer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetDirectPointer }}; -// %wxchkver_3_1_1 void* GetDirectPointer() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetDirectPointer(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetDirectPointer - void* returns = (void*)self->GetDirectPointer(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetDocPointer[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetDocPointer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetDocPointer[1] = {{ wxLua_wxStyledTextCtrl_GetDocPointer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetDocPointer }}; -// void* GetDocPointer(); -static int LUACALL wxLua_wxStyledTextCtrl_GetDocPointer(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetDocPointer - void* returns = (void*)self->GetDocPointer(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEOLMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetEOLMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetEOLMode[1] = {{ wxLua_wxStyledTextCtrl_GetEOLMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEOLMode }}; -// int GetEOLMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetEOLMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetEOLMode - int returns = (self->GetEOLMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEdgeColour[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetEdgeColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetEdgeColour[1] = {{ wxLua_wxStyledTextCtrl_GetEdgeColour, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEdgeColour }}; -// wxColour GetEdgeColour() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetEdgeColour(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetEdgeColour - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetEdgeColour()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEdgeColumn[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetEdgeColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetEdgeColumn[1] = {{ wxLua_wxStyledTextCtrl_GetEdgeColumn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEdgeColumn }}; -// int GetEdgeColumn() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetEdgeColumn(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetEdgeColumn - int returns = (self->GetEdgeColumn()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEdgeMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetEdgeMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetEdgeMode[1] = {{ wxLua_wxStyledTextCtrl_GetEdgeMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEdgeMode }}; -// int GetEdgeMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetEdgeMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetEdgeMode - int returns = (self->GetEdgeMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEndAtLastLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetEndAtLastLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetEndAtLastLine[1] = {{ wxLua_wxStyledTextCtrl_GetEndAtLastLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEndAtLastLine }}; -// bool GetEndAtLastLine() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetEndAtLastLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetEndAtLastLine - bool returns = (self->GetEndAtLastLine()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEndStyled[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetEndStyled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetEndStyled[1] = {{ wxLua_wxStyledTextCtrl_GetEndStyled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetEndStyled }}; -// int GetEndStyled() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetEndStyled(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetEndStyled - int returns = (self->GetEndStyled()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetExtraAscent[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetExtraAscent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetExtraAscent[1] = {{ wxLua_wxStyledTextCtrl_GetExtraAscent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetExtraAscent }}; -// %wxchkver_2_9_5 int GetExtraAscent() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetExtraAscent(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetExtraAscent - int returns = (self->GetExtraAscent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetExtraDescent[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetExtraDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetExtraDescent[1] = {{ wxLua_wxStyledTextCtrl_GetExtraDescent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetExtraDescent }}; -// %wxchkver_2_9_5 int GetExtraDescent() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetExtraDescent(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetExtraDescent - int returns = (self->GetExtraDescent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFirstVisibleLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetFirstVisibleLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetFirstVisibleLine[1] = {{ wxLua_wxStyledTextCtrl_GetFirstVisibleLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFirstVisibleLine }}; -// int GetFirstVisibleLine() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetFirstVisibleLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetFirstVisibleLine - int returns = (self->GetFirstVisibleLine()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFoldExpanded[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetFoldExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetFoldExpanded[1] = {{ wxLua_wxStyledTextCtrl_GetFoldExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFoldExpanded }}; -// bool GetFoldExpanded(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetFoldExpanded(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetFoldExpanded - bool returns = (self->GetFoldExpanded(line)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFoldLevel[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetFoldLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetFoldLevel[1] = {{ wxLua_wxStyledTextCtrl_GetFoldLevel, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFoldLevel }}; -// int GetFoldLevel(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetFoldLevel(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetFoldLevel - int returns = (self->GetFoldLevel(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFoldParent[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetFoldParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetFoldParent[1] = {{ wxLua_wxStyledTextCtrl_GetFoldParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFoldParent }}; -// int GetFoldParent(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetFoldParent(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetFoldParent - int returns = (self->GetFoldParent(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFontQuality[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetFontQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetFontQuality[1] = {{ wxLua_wxStyledTextCtrl_GetFontQuality, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetFontQuality }}; -// %wxchkver_3_1_1 int GetFontQuality() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetFontQuality(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetFontQuality - int returns = (self->GetFontQuality()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetGapPosition[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetGapPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetGapPosition[1] = {{ wxLua_wxStyledTextCtrl_GetGapPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetGapPosition }}; -// %wxchkver_2_9_5 int GetGapPosition() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetGapPosition(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetGapPosition - int returns = (self->GetGapPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHighlightGuide[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetHighlightGuide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetHighlightGuide[1] = {{ wxLua_wxStyledTextCtrl_GetHighlightGuide, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHighlightGuide }}; -// int GetHighlightGuide() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetHighlightGuide(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetHighlightGuide - int returns = (self->GetHighlightGuide()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotActiveBackground[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotActiveBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotActiveBackground[1] = {{ wxLua_wxStyledTextCtrl_GetHotspotActiveBackground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotActiveBackground }}; -// %wxchkver_2_9_5 wxColour GetHotspotActiveBackground() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotActiveBackground(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetHotspotActiveBackground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHotspotActiveBackground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotActiveForeground[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotActiveForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotActiveForeground[1] = {{ wxLua_wxStyledTextCtrl_GetHotspotActiveForeground, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotActiveForeground }}; -// %wxchkver_2_9_5 wxColour GetHotspotActiveForeground() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotActiveForeground(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetHotspotActiveForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetHotspotActiveForeground()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline[1] = {{ wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline }}; -// %wxchkver_2_9_5 bool GetHotspotActiveUnderline() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetHotspotActiveUnderline - bool returns = (self->GetHotspotActiveUnderline()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotSingleLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotSingleLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotSingleLine[1] = {{ wxLua_wxStyledTextCtrl_GetHotspotSingleLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetHotspotSingleLine }}; -// %wxchkver_2_9_5 bool GetHotspotSingleLine() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetHotspotSingleLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetHotspotSingleLine - bool returns = (self->GetHotspotSingleLine()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIMEInteraction[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIMEInteraction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIMEInteraction[1] = {{ wxLua_wxStyledTextCtrl_GetIMEInteraction, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIMEInteraction }}; -// %wxchkver_3_1_0 int GetIMEInteraction() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIMEInteraction(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIMEInteraction - int returns = (self->GetIMEInteraction()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIdentifier[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIdentifier(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIdentifier[1] = {{ wxLua_wxStyledTextCtrl_GetIdentifier, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIdentifier }}; -// %wxchkver_2_9_5 int GetIdentifier() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIdentifier(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIdentifier - int returns = (self->GetIdentifier()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIdleStyling[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIdleStyling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIdleStyling[1] = {{ wxLua_wxStyledTextCtrl_GetIdleStyling, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIdleStyling }}; -// %wxchkver_3_1_1 int GetIdleStyling() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIdleStyling(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIdleStyling - int returns = (self->GetIdleStyling()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndent[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndent[1] = {{ wxLua_wxStyledTextCtrl_GetIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndent }}; -// int GetIndent() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndent(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIndent - int returns = (self->GetIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if !wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndentationGuides1[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndentationGuides1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides1[1] = {{ wxLua_wxStyledTextCtrl_GetIndentationGuides1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndentationGuides1 }}; -// !%wxchkver_2_9_5 bool GetIndentationGuides(); -static int LUACALL wxLua_wxStyledTextCtrl_GetIndentationGuides1(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIndentationGuides - bool returns = (self->GetIndentationGuides()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,3) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndentationGuides[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndentationGuides(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides[1] = {{ wxLua_wxStyledTextCtrl_GetIndentationGuides, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndentationGuides }}; -// %wxchkver_3_1_3 int GetIndentationGuides() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndentationGuides(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIndentationGuides - int returns = (self->GetIndentationGuides()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,3) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndicatorCurrent[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndicatorCurrent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndicatorCurrent[1] = {{ wxLua_wxStyledTextCtrl_GetIndicatorCurrent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndicatorCurrent }}; -// %wxchkver_2_9_5 int GetIndicatorCurrent() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndicatorCurrent(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIndicatorCurrent - int returns = (self->GetIndicatorCurrent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndicatorValue[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndicatorValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndicatorValue[1] = {{ wxLua_wxStyledTextCtrl_GetIndicatorValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndicatorValue }}; -// %wxchkver_2_9_5 int GetIndicatorValue() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetIndicatorValue(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetIndicatorValue - int returns = (self->GetIndicatorValue()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetKeysUnicode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetKeysUnicode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetKeysUnicode[1] = {{ wxLua_wxStyledTextCtrl_GetKeysUnicode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetKeysUnicode }}; -// %wxchkver_2_9_5 && !%wxchkver_3_1_0 bool GetKeysUnicode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetKeysUnicode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetKeysUnicode - bool returns = (self->GetKeysUnicode()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLastChild[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLastChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLastChild[1] = {{ wxLua_wxStyledTextCtrl_GetLastChild, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLastChild }}; -// int GetLastChild(int line, int level) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLastChild(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLastChild - int returns = (self->GetLastChild(line, level)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLastKeydownProcessed[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLastKeydownProcessed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLastKeydownProcessed[1] = {{ wxLua_wxStyledTextCtrl_GetLastKeydownProcessed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLastKeydownProcessed }}; -// bool GetLastKeydownProcessed(); -static int LUACALL wxLua_wxStyledTextCtrl_GetLastKeydownProcessed(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLastKeydownProcessed - bool returns = (self->GetLastKeydownProcessed()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLayoutCache[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLayoutCache(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLayoutCache[1] = {{ wxLua_wxStyledTextCtrl_GetLayoutCache, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLayoutCache }}; -// int GetLayoutCache() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLayoutCache(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLayoutCache - int returns = (self->GetLayoutCache()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLength[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLength[1] = {{ wxLua_wxStyledTextCtrl_GetLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLength }}; -// int GetLength() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLength(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLength - int returns = (self->GetLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLexer[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLexer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLexer[1] = {{ wxLua_wxStyledTextCtrl_GetLexer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLexer }}; -// int GetLexer() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLexer(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLexer - int returns = (self->GetLexer()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLexerLanguage[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLexerLanguage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLexerLanguage[1] = {{ wxLua_wxStyledTextCtrl_GetLexerLanguage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLexerLanguage }}; -// %wxchkver_3_1_1 wxString GetLexerLanguage() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLexerLanguage(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLexerLanguage - wxString returns = (self->GetLexerLanguage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if (wxCHECK_VERSION(2,9,2)) && (wxCHECK_VERSION(3,1,0)) -static int LUACALL wxLua_wxStyledTextCtrl_GetLibraryVersionInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLibraryVersionInfo[1] = {{ wxLua_wxStyledTextCtrl_GetLibraryVersionInfo, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_1_0 static wxVersionInfo GetLibraryVersionInfo(); -static int LUACALL wxLua_wxStyledTextCtrl_GetLibraryVersionInfo(lua_State *L) -{ - // call GetLibraryVersionInfo - // allocate a new object using the copy constructor - wxVersionInfo* returns = new wxVersionInfo(wxStyledTextCtrl::GetLibraryVersionInfo()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVersionInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVersionInfo); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,2)) && (wxCHECK_VERSION(3,1,0)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLine[1] = {{ wxLua_wxStyledTextCtrl_GetLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLine }}; -// wxString GetLine(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLine(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLine - wxString returns = (self->GetLine(line)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineCount[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineCount[1] = {{ wxLua_wxStyledTextCtrl_GetLineCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineCount }}; -// int GetLineCount() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineCount(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineCount - int returns = (self->GetLineCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndPosition[1] = {{ wxLua_wxStyledTextCtrl_GetLineEndPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndPosition }}; -// int GetLineEndPosition(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndPosition(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineEndPosition - int returns = (self->GetLineEndPosition(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndTypesActive[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndTypesActive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndTypesActive[1] = {{ wxLua_wxStyledTextCtrl_GetLineEndTypesActive, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndTypesActive }}; -// %wxchkver_3_1_0 int GetLineEndTypesActive() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndTypesActive(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineEndTypesActive - int returns = (self->GetLineEndTypesActive()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed[1] = {{ wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed }}; -// %wxchkver_3_1_0 int GetLineEndTypesAllowed() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineEndTypesAllowed - int returns = (self->GetLineEndTypesAllowed()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndTypesSupported[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndTypesSupported(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndTypesSupported[1] = {{ wxLua_wxStyledTextCtrl_GetLineEndTypesSupported, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineEndTypesSupported }}; -// %wxchkver_3_1_0 int GetLineEndTypesSupported() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineEndTypesSupported(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineEndTypesSupported - int returns = (self->GetLineEndTypesSupported()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineIndentPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineIndentPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineIndentPosition[1] = {{ wxLua_wxStyledTextCtrl_GetLineIndentPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineIndentPosition }}; -// int GetLineIndentPosition(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineIndentPosition(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineIndentPosition - int returns = (self->GetLineIndentPosition(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineIndentation[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineIndentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineIndentation[1] = {{ wxLua_wxStyledTextCtrl_GetLineIndentation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineIndentation }}; -// int GetLineIndentation(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineIndentation(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineIndentation - int returns = (self->GetLineIndentation(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineRaw[1] = {{ wxLua_wxStyledTextCtrl_GetLineRaw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineRaw }}; -// wxCharBuffer GetLineRaw(int line); -static int LUACALL wxLua_wxStyledTextCtrl_GetLineRaw(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineRaw - wxCharBuffer returns = (self->GetLineRaw(line)); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineSelEndPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineSelEndPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineSelEndPosition[1] = {{ wxLua_wxStyledTextCtrl_GetLineSelEndPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineSelEndPosition }}; -// int GetLineSelEndPosition(int line); -static int LUACALL wxLua_wxStyledTextCtrl_GetLineSelEndPosition(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineSelEndPosition - int returns = (self->GetLineSelEndPosition(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineSelStartPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineSelStartPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineSelStartPosition[1] = {{ wxLua_wxStyledTextCtrl_GetLineSelStartPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineSelStartPosition }}; -// int GetLineSelStartPosition(int line); -static int LUACALL wxLua_wxStyledTextCtrl_GetLineSelStartPosition(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineSelStartPosition - int returns = (self->GetLineSelStartPosition(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineState[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineState[1] = {{ wxLua_wxStyledTextCtrl_GetLineState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineState }}; -// int GetLineState(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineState(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineState - int returns = (self->GetLineState(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineVisible[1] = {{ wxLua_wxStyledTextCtrl_GetLineVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetLineVisible }}; -// bool GetLineVisible(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetLineVisible(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetLineVisible - bool returns = (self->GetLineVisible(line)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMainSelection[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMainSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMainSelection[1] = {{ wxLua_wxStyledTextCtrl_GetMainSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMainSelection }}; -// %wxchkver_2_9_5 int GetMainSelection() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMainSelection(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMainSelection - int returns = (self->GetMainSelection()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginBackground[1] = {{ wxLua_wxStyledTextCtrl_GetMarginBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginBackground }}; -// %wxchkver_3_1_1 wxColour GetMarginBackground(int margin) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginBackground(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginBackground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->GetMarginBackground(margin)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginCount[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginCount[1] = {{ wxLua_wxStyledTextCtrl_GetMarginCount, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginCount }}; -// %wxchkver_3_1_1 int GetMarginCount() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginCount(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginCount - int returns = (self->GetMarginCount()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginCursor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginCursor[1] = {{ wxLua_wxStyledTextCtrl_GetMarginCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginCursor }}; -// %wxchkver_2_9_5 int GetMarginCursor(int margin) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginCursor(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginCursor - int returns = (self->GetMarginCursor(margin)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginLeft[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginLeft[1] = {{ wxLua_wxStyledTextCtrl_GetMarginLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginLeft }}; -// int GetMarginLeft() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginLeft(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginLeft - int returns = (self->GetMarginLeft()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginMask[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginMask[1] = {{ wxLua_wxStyledTextCtrl_GetMarginMask, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginMask }}; -// unsigned int GetMarginMask(int margin) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginMask(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginMask - unsigned int returns = (self->GetMarginMask(margin)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginOptions[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginOptions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginOptions[1] = {{ wxLua_wxStyledTextCtrl_GetMarginOptions, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginOptions }}; -// %wxchkver_2_9_5 int GetMarginOptions() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginOptions(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginOptions - int returns = (self->GetMarginOptions()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginRight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginRight[1] = {{ wxLua_wxStyledTextCtrl_GetMarginRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginRight }}; -// int GetMarginRight() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginRight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginRight - int returns = (self->GetMarginRight()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginSensitive[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginSensitive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginSensitive[1] = {{ wxLua_wxStyledTextCtrl_GetMarginSensitive, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginSensitive }}; -// bool GetMarginSensitive(int margin) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginSensitive(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginSensitive - bool returns = (self->GetMarginSensitive(margin)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginType[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginType[1] = {{ wxLua_wxStyledTextCtrl_GetMarginType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginType }}; -// int GetMarginType(int margin) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginType(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginType - int returns = (self->GetMarginType(margin)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginWidth[1] = {{ wxLua_wxStyledTextCtrl_GetMarginWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarginWidth }}; -// int GetMarginWidth(int margin) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarginWidth(lua_State *L) -{ - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarginWidth - int returns = (self->GetMarginWidth(margin)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined[1] = {{ wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined }}; -// %wxchkver_2_9_5 int GetMarkerSymbolDefined(int markerNumber); -static int LUACALL wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined(lua_State *L) -{ - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMarkerSymbolDefined - int returns = (self->GetMarkerSymbolDefined(markerNumber)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMaxLineState[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMaxLineState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMaxLineState[1] = {{ wxLua_wxStyledTextCtrl_GetMaxLineState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMaxLineState }}; -// int GetMaxLineState() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMaxLineState(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMaxLineState - int returns = (self->GetMaxLineState()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetModEventMask[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetModEventMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetModEventMask[1] = {{ wxLua_wxStyledTextCtrl_GetModEventMask, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetModEventMask }}; -// int GetModEventMask() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetModEventMask(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetModEventMask - int returns = (self->GetModEventMask()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetModify[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetModify(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetModify[1] = {{ wxLua_wxStyledTextCtrl_GetModify, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetModify }}; -// bool GetModify() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetModify(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetModify - bool returns = (self->GetModify()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseDownCaptures[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseDownCaptures(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseDownCaptures[1] = {{ wxLua_wxStyledTextCtrl_GetMouseDownCaptures, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseDownCaptures }}; -// bool GetMouseDownCaptures() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseDownCaptures(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMouseDownCaptures - bool returns = (self->GetMouseDownCaptures()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseDwellTime[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseDwellTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseDwellTime[1] = {{ wxLua_wxStyledTextCtrl_GetMouseDwellTime, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseDwellTime }}; -// int GetMouseDwellTime() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseDwellTime(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMouseDwellTime - int returns = (self->GetMouseDwellTime()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch[1] = {{ wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch }}; -// %wxchkver_3_1_0 bool GetMouseSelectionRectangularSwitch() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMouseSelectionRectangularSwitch - bool returns = (self->GetMouseSelectionRectangularSwitch()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseWheelCaptures[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseWheelCaptures(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseWheelCaptures[1] = {{ wxLua_wxStyledTextCtrl_GetMouseWheelCaptures, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMouseWheelCaptures }}; -// %wxchkver_3_1_1 bool GetMouseWheelCaptures() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMouseWheelCaptures(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMouseWheelCaptures - bool returns = (self->GetMouseWheelCaptures()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMultiPaste[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMultiPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMultiPaste[1] = {{ wxLua_wxStyledTextCtrl_GetMultiPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMultiPaste }}; -// %wxchkver_2_9_5 int GetMultiPaste() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMultiPaste(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMultiPaste - int returns = (self->GetMultiPaste()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMultipleSelection[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetMultipleSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetMultipleSelection[1] = {{ wxLua_wxStyledTextCtrl_GetMultipleSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetMultipleSelection }}; -// %wxchkver_2_9_5 bool GetMultipleSelection() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetMultipleSelection(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetMultipleSelection - bool returns = (self->GetMultipleSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetNextTabStop[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetNextTabStop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetNextTabStop[1] = {{ wxLua_wxStyledTextCtrl_GetNextTabStop, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetNextTabStop }}; -// %wxchkver_3_1_0 int GetNextTabStop(int line, int x); -static int LUACALL wxLua_wxStyledTextCtrl_GetNextTabStop(lua_State *L) -{ - // int x - int x = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetNextTabStop - int returns = (self->GetNextTabStop(line, x)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetOvertype[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetOvertype(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetOvertype[1] = {{ wxLua_wxStyledTextCtrl_GetOvertype, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetOvertype }}; -// bool GetOvertype() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetOvertype(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetOvertype - bool returns = (self->GetOvertype()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPasteConvertEndings[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPasteConvertEndings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPasteConvertEndings[1] = {{ wxLua_wxStyledTextCtrl_GetPasteConvertEndings, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPasteConvertEndings }}; -// bool GetPasteConvertEndings() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPasteConvertEndings(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPasteConvertEndings - bool returns = (self->GetPasteConvertEndings()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPhasesDraw[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPhasesDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPhasesDraw[1] = {{ wxLua_wxStyledTextCtrl_GetPhasesDraw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPhasesDraw }}; -// %wxchkver_3_1_0 int GetPhasesDraw() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPhasesDraw(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPhasesDraw - int returns = (self->GetPhasesDraw()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPositionCacheSize[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPositionCacheSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPositionCacheSize[1] = {{ wxLua_wxStyledTextCtrl_GetPositionCacheSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPositionCacheSize }}; -// %wxchkver_2_9_5 int GetPositionCacheSize() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPositionCacheSize(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPositionCacheSize - int returns = (self->GetPositionCacheSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle[1] = {{ wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle }}; -// %wxchkver_3_1_0 int GetPrimaryStyleFromStyle(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPrimaryStyleFromStyle - int returns = (self->GetPrimaryStyleFromStyle(style)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrintColourMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrintColourMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrintColourMode[1] = {{ wxLua_wxStyledTextCtrl_GetPrintColourMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrintColourMode }}; -// int GetPrintColourMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrintColourMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPrintColourMode - int returns = (self->GetPrintColourMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrintMagnification[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrintMagnification(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrintMagnification[1] = {{ wxLua_wxStyledTextCtrl_GetPrintMagnification, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrintMagnification }}; -// int GetPrintMagnification() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrintMagnification(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPrintMagnification - int returns = (self->GetPrintMagnification()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrintWrapMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrintWrapMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrintWrapMode[1] = {{ wxLua_wxStyledTextCtrl_GetPrintWrapMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPrintWrapMode }}; -// int GetPrintWrapMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPrintWrapMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPrintWrapMode - int returns = (self->GetPrintWrapMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetProperty[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetProperty[1] = {{ wxLua_wxStyledTextCtrl_GetProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetProperty }}; -// wxString GetProperty(const wxString& key); -static int LUACALL wxLua_wxStyledTextCtrl_GetProperty(lua_State *L) -{ - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetProperty - wxString returns = (self->GetProperty(key)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyExpanded[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPropertyExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyExpanded[1] = {{ wxLua_wxStyledTextCtrl_GetPropertyExpanded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyExpanded }}; -// wxString GetPropertyExpanded(const wxString& key); -static int LUACALL wxLua_wxStyledTextCtrl_GetPropertyExpanded(lua_State *L) -{ - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPropertyExpanded - wxString returns = (self->GetPropertyExpanded(key)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if !wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyInt1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPropertyInt1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt1[1] = {{ wxLua_wxStyledTextCtrl_GetPropertyInt1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyInt1 }}; -// !%wxchkver_3_1_1 int GetPropertyInt(const wxString& key) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPropertyInt1(lua_State *L) -{ - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPropertyInt - int returns = (self->GetPropertyInt(key)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // !wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyInt[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPropertyInt(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt[1] = {{ wxLua_wxStyledTextCtrl_GetPropertyInt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyInt }}; -// %wxchkver_3_1_1 int GetPropertyInt(const wxString &key, int defaultValue=0) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPropertyInt(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int defaultValue = 0 - int defaultValue = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 0); - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPropertyInt - int returns = (self->GetPropertyInt(key, defaultValue)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPunctuationChars[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetPunctuationChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPunctuationChars[1] = {{ wxLua_wxStyledTextCtrl_GetPunctuationChars, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPunctuationChars }}; -// %wxchkver_2_9_5 wxString GetPunctuationChars() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetPunctuationChars(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetPunctuationChars - wxString returns = (self->GetPunctuationChars()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetReadOnly[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetReadOnly[1] = {{ wxLua_wxStyledTextCtrl_GetReadOnly, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetReadOnly }}; -// bool GetReadOnly() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetReadOnly(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetReadOnly - bool returns = (self->GetReadOnly()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor[1] = {{ wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor }}; -// %wxchkver_2_9_5 int GetRectangularSelectionAnchor() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetRectangularSelectionAnchor - int returns = (self->GetRectangularSelectionAnchor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace }}; -// %wxchkver_2_9_5 int GetRectangularSelectionAnchorVirtualSpace() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetRectangularSelectionAnchorVirtualSpace - int returns = (self->GetRectangularSelectionAnchorVirtualSpace()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret[1] = {{ wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret }}; -// %wxchkver_2_9_5 int GetRectangularSelectionCaret() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetRectangularSelectionCaret - int returns = (self->GetRectangularSelectionCaret()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace }}; -// %wxchkver_2_9_5 int GetRectangularSelectionCaretVirtualSpace() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetRectangularSelectionCaretVirtualSpace - int returns = (self->GetRectangularSelectionCaretVirtualSpace()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier[1] = {{ wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier }}; -// %wxchkver_2_9_5 int GetRectangularSelectionModifier() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetRectangularSelectionModifier - int returns = (self->GetRectangularSelectionModifier()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRepresentation[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetRepresentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetRepresentation[1] = {{ wxLua_wxStyledTextCtrl_GetRepresentation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetRepresentation }}; -// %wxchkver_3_1_0 wxString GetRepresentation(const wxString& encodedCharacter) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetRepresentation(lua_State *L) -{ - // const wxString encodedCharacter - const wxString encodedCharacter = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetRepresentation - wxString returns = (self->GetRepresentation(encodedCharacter)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSTCCursor[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSTCCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSTCCursor[1] = {{ wxLua_wxStyledTextCtrl_GetSTCCursor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSTCCursor }}; -// int GetSTCCursor() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSTCCursor(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSTCCursor - int returns = (self->GetSTCCursor()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSTCFocus[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSTCFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSTCFocus[1] = {{ wxLua_wxStyledTextCtrl_GetSTCFocus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSTCFocus }}; -// bool GetSTCFocus() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSTCFocus(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSTCFocus - bool returns = (self->GetSTCFocus()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetScrollWidth[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetScrollWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetScrollWidth[1] = {{ wxLua_wxStyledTextCtrl_GetScrollWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetScrollWidth }}; -// int GetScrollWidth() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetScrollWidth(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetScrollWidth - int returns = (self->GetScrollWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetScrollWidthTracking[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetScrollWidthTracking(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetScrollWidthTracking[1] = {{ wxLua_wxStyledTextCtrl_GetScrollWidthTracking, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetScrollWidthTracking }}; -// %wxchkver_2_9_5 bool GetScrollWidthTracking() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetScrollWidthTracking(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetScrollWidthTracking - bool returns = (self->GetScrollWidthTracking()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSearchFlags[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSearchFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSearchFlags[1] = {{ wxLua_wxStyledTextCtrl_GetSearchFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSearchFlags }}; -// int GetSearchFlags() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSearchFlags(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSearchFlags - int returns = (self->GetSearchFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,8,12) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelAlpha[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelAlpha[1] = {{ wxLua_wxStyledTextCtrl_GetSelAlpha, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelAlpha }}; -// %wxchkver_2_8_12 int GetSelAlpha() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelAlpha(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelAlpha - int returns = (self->GetSelAlpha()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelEOLFilled[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelEOLFilled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelEOLFilled[1] = {{ wxLua_wxStyledTextCtrl_GetSelEOLFilled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelEOLFilled }}; -// %wxchkver_2_9_5 bool GetSelEOLFilled() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelEOLFilled(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelEOLFilled - bool returns = (self->GetSelEOLFilled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectedText[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectedText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectedText[1] = {{ wxLua_wxStyledTextCtrl_GetSelectedText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectedText }}; -// wxString GetSelectedText(); -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectedText(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectedText - wxString returns = (self->GetSelectedText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectedTextRaw[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectedTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectedTextRaw[1] = {{ wxLua_wxStyledTextCtrl_GetSelectedTextRaw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectedTextRaw }}; -// wxCharBuffer GetSelectedTextRaw(); -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectedTextRaw(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectedTextRaw - wxCharBuffer returns = (self->GetSelectedTextRaw()); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelection[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelection[1] = {{ wxLua_wxStyledTextCtrl_GetSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelection }}; -// %override wxLua_wxStyledTextCtrl_GetSelection -// void GetSelection(int* startPos, int* endPos) -static int LUACALL wxLua_wxStyledTextCtrl_GetSelection(lua_State *L) -{ - int endPos; - int startPos; - // get this - wxStyledTextCtrl *self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelection - self->GetSelection(&startPos, &endPos); - // push results - lua_pushinteger(L, startPos); - lua_pushinteger(L, endPos); - // return the number of parameters - return 2; -} - - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionEmpty[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionEmpty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionEmpty[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionEmpty, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionEmpty }}; -// %wxchkver_3_1_0 bool GetSelectionEmpty() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionEmpty(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionEmpty - bool returns = (self->GetSelectionEmpty()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionEnd[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionEnd }}; -// int GetSelectionEnd() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionEnd - int returns = (self->GetSelectionEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionMode[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionMode }}; -// int GetSelectionMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionMode - int returns = (self->GetSelectionMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNAnchor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNAnchor[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionNAnchor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNAnchor }}; -// %wxchkver_2_9_5 int GetSelectionNAnchor(int selection) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNAnchor(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionNAnchor - int returns = (self->GetSelectionNAnchor(selection)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace }}; -// %wxchkver_2_9_5 int GetSelectionNAnchorVirtualSpace(int selection) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionNAnchorVirtualSpace - int returns = (self->GetSelectionNAnchorVirtualSpace(selection)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNCaret[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNCaret[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionNCaret, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNCaret }}; -// %wxchkver_2_9_5 int GetSelectionNCaret(int selection) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNCaret(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionNCaret - int returns = (self->GetSelectionNCaret(selection)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace }}; -// %wxchkver_2_9_5 int GetSelectionNCaretVirtualSpace(int selection) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionNCaretVirtualSpace - int returns = (self->GetSelectionNCaretVirtualSpace(selection)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNEnd[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNEnd[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionNEnd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNEnd }}; -// %wxchkver_2_9_5 int GetSelectionNEnd(int selection) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNEnd(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionNEnd - int returns = (self->GetSelectionNEnd(selection)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNStart[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionNStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionNStart }}; -// %wxchkver_2_9_5 int GetSelectionNStart(int selection) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionNStart(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionNStart - int returns = (self->GetSelectionNStart(selection)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionStart[1] = {{ wxLua_wxStyledTextCtrl_GetSelectionStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelectionStart }}; -// int GetSelectionStart() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelectionStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelectionStart - int returns = (self->GetSelectionStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelections[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelections(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelections[1] = {{ wxLua_wxStyledTextCtrl_GetSelections, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSelections }}; -// %wxchkver_2_9_5 int GetSelections() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSelections(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSelections - int returns = (self->GetSelections()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStatus[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStatus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStatus[1] = {{ wxLua_wxStyledTextCtrl_GetStatus, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStatus }}; -// int GetStatus() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStatus(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStatus - int returns = (self->GetStatus()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleAt[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleAt[1] = {{ wxLua_wxStyledTextCtrl_GetStyleAt, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleAt }}; -// int GetStyleAt(int pos) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleAt(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyleAt - int returns = (self->GetStyleAt(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBits1[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBits1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits1[1] = {{ wxLua_wxStyledTextCtrl_GetStyleBits1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBits1 }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 int GetStyleBits() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBits1(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyleBits - int returns = (self->GetStyleBits()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBits[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBits(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits[1] = {{ wxLua_wxStyledTextCtrl_GetStyleBits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBits }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 int GetStyleBits() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBits(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyleBits - int returns = (self->GetStyleBits()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1[1] = {{ wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1 }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 int GetStyleBitsNeeded() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyleBitsNeeded - int returns = (self->GetStyleBitsNeeded()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBitsNeeded(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded[1] = {{ wxLua_wxStyledTextCtrl_GetStyleBitsNeeded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 int GetStyleBitsNeeded() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleBitsNeeded(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyleBitsNeeded - int returns = (self->GetStyleBitsNeeded()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleFromSubStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleFromSubStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleFromSubStyle[1] = {{ wxLua_wxStyledTextCtrl_GetStyleFromSubStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleFromSubStyle }}; -// %wxchkver_3_1_0 int GetStyleFromSubStyle(int subStyle) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyleFromSubStyle(lua_State *L) -{ - // int subStyle - int subStyle = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyleFromSubStyle - int returns = (self->GetStyleFromSubStyle(subStyle)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxMemoryBuffer -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyledText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetStyledText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyledText[1] = {{ wxLua_wxStyledTextCtrl_GetStyledText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyledText }}; -// wxMemoryBuffer GetStyledText(int startPos, int endPos); -static int LUACALL wxLua_wxStyledTextCtrl_GetStyledText(lua_State *L) -{ - // int endPos - int endPos = (int)wxlua_getnumbertype(L, 3); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetStyledText - // allocate a new object using the copy constructor - wxMemoryBuffer* returns = new wxMemoryBuffer(self->GetStyledText(startPos, endPos)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxMemoryBuffer); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMemoryBuffer); - - return 1; -} - -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSubStyleBases[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSubStyleBases(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSubStyleBases[1] = {{ wxLua_wxStyledTextCtrl_GetSubStyleBases, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSubStyleBases }}; -// %wxchkver_3_1_0 wxString GetSubStyleBases() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSubStyleBases(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSubStyleBases - wxString returns = (self->GetSubStyleBases()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSubStylesLength[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSubStylesLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSubStylesLength[1] = {{ wxLua_wxStyledTextCtrl_GetSubStylesLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSubStylesLength }}; -// %wxchkver_3_1_0 int GetSubStylesLength(int styleBase) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSubStylesLength(lua_State *L) -{ - // int styleBase - int styleBase = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSubStylesLength - int returns = (self->GetSubStylesLength(styleBase)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSubStylesStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetSubStylesStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetSubStylesStart[1] = {{ wxLua_wxStyledTextCtrl_GetSubStylesStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetSubStylesStart }}; -// %wxchkver_3_1_0 int GetSubStylesStart(int styleBase) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetSubStylesStart(lua_State *L) -{ - // int styleBase - int styleBase = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetSubStylesStart - int returns = (self->GetSubStylesStart(styleBase)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTabDrawMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTabDrawMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTabDrawMode[1] = {{ wxLua_wxStyledTextCtrl_GetTabDrawMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTabDrawMode }}; -// %wxchkver_3_1_1 int GetTabDrawMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTabDrawMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTabDrawMode - int returns = (self->GetTabDrawMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTabIndents[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTabIndents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTabIndents[1] = {{ wxLua_wxStyledTextCtrl_GetTabIndents, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTabIndents }}; -// bool GetTabIndents() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTabIndents(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTabIndents - bool returns = (self->GetTabIndents()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTabWidth[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTabWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTabWidth[1] = {{ wxLua_wxStyledTextCtrl_GetTabWidth, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTabWidth }}; -// int GetTabWidth() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTabWidth(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTabWidth - int returns = (self->GetTabWidth()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTag[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTag[1] = {{ wxLua_wxStyledTextCtrl_GetTag, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTag }}; -// %wxchkver_2_9_5 wxString GetTag(int tagNumber) const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTag(lua_State *L) -{ - // int tagNumber - int tagNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTag - wxString returns = (self->GetTag(tagNumber)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetEnd[1] = {{ wxLua_wxStyledTextCtrl_GetTargetEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetEnd }}; -// int GetTargetEnd() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTargetEnd - int returns = (self->GetTargetEnd()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetStart[1] = {{ wxLua_wxStyledTextCtrl_GetTargetStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetStart }}; -// int GetTargetStart() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTargetStart - int returns = (self->GetTargetStart()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetText[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetText[1] = {{ wxLua_wxStyledTextCtrl_GetTargetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetText }}; -// %wxchkver_3_1_0 wxString GetTargetText() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetText(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTargetText - wxString returns = (self->GetTargetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetTextRaw[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetTextRaw[1] = {{ wxLua_wxStyledTextCtrl_GetTargetTextRaw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTargetTextRaw }}; -// %wxchkver_3_1_1 wxCharBuffer GetTargetTextRaw(); -static int LUACALL wxLua_wxStyledTextCtrl_GetTargetTextRaw(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTargetTextRaw - wxCharBuffer returns = (self->GetTargetTextRaw()); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTechnology[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTechnology(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTechnology[1] = {{ wxLua_wxStyledTextCtrl_GetTechnology, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTechnology }}; -// %wxchkver_2_9_5 int GetTechnology() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTechnology(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTechnology - int returns = (self->GetTechnology()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetText[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetText[1] = {{ wxLua_wxStyledTextCtrl_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetText }}; -// wxString GetText() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetText(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextLength[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTextLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextLength[1] = {{ wxLua_wxStyledTextCtrl_GetTextLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextLength }}; -// int GetTextLength() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTextLength(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTextLength - int returns = (self->GetTextLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTextRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextRange[1] = {{ wxLua_wxStyledTextCtrl_GetTextRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextRange }}; -// wxString GetTextRange(int startPos, int endPos); -static int LUACALL wxLua_wxStyledTextCtrl_GetTextRange(lua_State *L) -{ - // int endPos - int endPos = (int)wxlua_getnumbertype(L, 3); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTextRange - wxString returns = (self->GetTextRange(startPos, endPos)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextRangeRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTextRangeRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextRangeRaw[1] = {{ wxLua_wxStyledTextCtrl_GetTextRangeRaw, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextRangeRaw }}; -// wxCharBuffer GetTextRangeRaw(int startPos, int endPos); -static int LUACALL wxLua_wxStyledTextCtrl_GetTextRangeRaw(lua_State *L) -{ - // int endPos - int endPos = (int)wxlua_getnumbertype(L, 3); - // int startPos - int startPos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTextRangeRaw - wxCharBuffer returns = (self->GetTextRangeRaw(startPos, endPos)); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextRaw[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextRaw[1] = {{ wxLua_wxStyledTextCtrl_GetTextRaw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTextRaw }}; -// wxCharBuffer GetTextRaw(); -static int LUACALL wxLua_wxStyledTextCtrl_GetTextRaw(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTextRaw - wxCharBuffer returns = (self->GetTextRaw()); - // push the result string - lua_pushstring(L, returns.data()); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTwoPhaseDraw[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetTwoPhaseDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetTwoPhaseDraw[1] = {{ wxLua_wxStyledTextCtrl_GetTwoPhaseDraw, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetTwoPhaseDraw }}; -// bool GetTwoPhaseDraw() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetTwoPhaseDraw(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetTwoPhaseDraw - bool returns = (self->GetTwoPhaseDraw()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUndoCollection[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetUndoCollection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUndoCollection[1] = {{ wxLua_wxStyledTextCtrl_GetUndoCollection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUndoCollection }}; -// bool GetUndoCollection() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetUndoCollection(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetUndoCollection - bool returns = (self->GetUndoCollection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if !wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseAntiAliasing1[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseAntiAliasing1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing1[1] = {{ wxLua_wxStyledTextCtrl_GetUseAntiAliasing1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseAntiAliasing1 }}; -// !%wxchkver_3_1_0 bool GetUseAntiAliasing(); -static int LUACALL wxLua_wxStyledTextCtrl_GetUseAntiAliasing1(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetUseAntiAliasing - bool returns = (self->GetUseAntiAliasing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseAntiAliasing[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseAntiAliasing(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing[1] = {{ wxLua_wxStyledTextCtrl_GetUseAntiAliasing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseAntiAliasing }}; -// !%wxchkver_3_1_0 bool GetUseAntiAliasing(); -static int LUACALL wxLua_wxStyledTextCtrl_GetUseAntiAliasing(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetUseAntiAliasing - bool returns = (self->GetUseAntiAliasing()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // !wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar[1] = {{ wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar }}; -// bool GetUseHorizontalScrollBar() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetUseHorizontalScrollBar - bool returns = (self->GetUseHorizontalScrollBar()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseTabs[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseTabs[1] = {{ wxLua_wxStyledTextCtrl_GetUseTabs, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseTabs }}; -// bool GetUseTabs() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseTabs(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetUseTabs - bool returns = (self->GetUseTabs()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar[1] = {{ wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar }}; -// bool GetUseVerticalScrollBar() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetUseVerticalScrollBar - bool returns = (self->GetUseVerticalScrollBar()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetViewEOL[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetViewEOL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetViewEOL[1] = {{ wxLua_wxStyledTextCtrl_GetViewEOL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetViewEOL }}; -// bool GetViewEOL() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetViewEOL(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetViewEOL - bool returns = (self->GetViewEOL()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetViewWhiteSpace[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetViewWhiteSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetViewWhiteSpace[1] = {{ wxLua_wxStyledTextCtrl_GetViewWhiteSpace, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetViewWhiteSpace }}; -// int GetViewWhiteSpace() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetViewWhiteSpace(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetViewWhiteSpace - int returns = (self->GetViewWhiteSpace()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions[1] = {{ wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions }}; -// %wxchkver_2_9_5 int GetVirtualSpaceOptions() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetVirtualSpaceOptions - int returns = (self->GetVirtualSpaceOptions()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWhitespaceChars[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWhitespaceChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWhitespaceChars[1] = {{ wxLua_wxStyledTextCtrl_GetWhitespaceChars, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWhitespaceChars }}; -// %wxchkver_2_9_5 wxString GetWhitespaceChars() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWhitespaceChars(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWhitespaceChars - wxString returns = (self->GetWhitespaceChars()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWhitespaceSize[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWhitespaceSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWhitespaceSize[1] = {{ wxLua_wxStyledTextCtrl_GetWhitespaceSize, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWhitespaceSize }}; -// %wxchkver_2_9_5 int GetWhitespaceSize() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWhitespaceSize(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWhitespaceSize - int returns = (self->GetWhitespaceSize()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWordChars[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWordChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWordChars[1] = {{ wxLua_wxStyledTextCtrl_GetWordChars, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWordChars }}; -// %wxchkver_2_9_5 wxString GetWordChars() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWordChars(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWordChars - wxString returns = (self->GetWordChars()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapIndentMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapIndentMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapIndentMode[1] = {{ wxLua_wxStyledTextCtrl_GetWrapIndentMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapIndentMode }}; -// %wxchkver_2_9_5 int GetWrapIndentMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapIndentMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWrapIndentMode - int returns = (self->GetWrapIndentMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapMode[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapMode[1] = {{ wxLua_wxStyledTextCtrl_GetWrapMode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapMode }}; -// int GetWrapMode() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapMode(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWrapMode - int returns = (self->GetWrapMode()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapStartIndent[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapStartIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapStartIndent[1] = {{ wxLua_wxStyledTextCtrl_GetWrapStartIndent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapStartIndent }}; -// int GetWrapStartIndent() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapStartIndent(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWrapStartIndent - int returns = (self->GetWrapStartIndent()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapVisualFlags[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapVisualFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapVisualFlags[1] = {{ wxLua_wxStyledTextCtrl_GetWrapVisualFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapVisualFlags }}; -// int GetWrapVisualFlags() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapVisualFlags(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWrapVisualFlags - int returns = (self->GetWrapVisualFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation[1] = {{ wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation }}; -// int GetWrapVisualFlagsLocation() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetWrapVisualFlagsLocation - int returns = (self->GetWrapVisualFlagsLocation()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetXOffset[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetXOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetXOffset[1] = {{ wxLua_wxStyledTextCtrl_GetXOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetXOffset }}; -// int GetXOffset() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetXOffset(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetXOffset - int returns = (self->GetXOffset()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetZoom[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GetZoom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetZoom[1] = {{ wxLua_wxStyledTextCtrl_GetZoom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetZoom }}; -// int GetZoom() const; -static int LUACALL wxLua_wxStyledTextCtrl_GetZoom(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GetZoom - int returns = (self->GetZoom()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GotoLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GotoLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GotoLine[1] = {{ wxLua_wxStyledTextCtrl_GotoLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GotoLine }}; -// void GotoLine(int line); -static int LUACALL wxLua_wxStyledTextCtrl_GotoLine(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GotoLine - self->GotoLine(line); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_GotoPos[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_GotoPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GotoPos[1] = {{ wxLua_wxStyledTextCtrl_GotoPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GotoPos }}; -// void GotoPos(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_GotoPos(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call GotoPos - self->GotoPos(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HideLines[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HideLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HideLines[1] = {{ wxLua_wxStyledTextCtrl_HideLines, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HideLines }}; -// void HideLines(int lineStart, int lineEnd); -static int LUACALL wxLua_wxStyledTextCtrl_HideLines(lua_State *L) -{ - // int lineEnd - int lineEnd = (int)wxlua_getnumbertype(L, 3); - // int lineStart - int lineStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HideLines - self->HideLines(lineStart, lineEnd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HideSelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HideSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HideSelection[1] = {{ wxLua_wxStyledTextCtrl_HideSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HideSelection }}; -// void HideSelection(bool normal); -static int LUACALL wxLua_wxStyledTextCtrl_HideSelection(lua_State *L) -{ - // bool normal - bool normal = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HideSelection - self->HideSelection(normal); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Home[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Home(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Home[1] = {{ wxLua_wxStyledTextCtrl_Home, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Home }}; -// void Home(); -static int LUACALL wxLua_wxStyledTextCtrl_Home(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Home - self->Home(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeDisplay[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HomeDisplay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HomeDisplay[1] = {{ wxLua_wxStyledTextCtrl_HomeDisplay, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeDisplay }}; -// void HomeDisplay(); -static int LUACALL wxLua_wxStyledTextCtrl_HomeDisplay(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HomeDisplay - self->HomeDisplay(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeDisplayExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HomeDisplayExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HomeDisplayExtend[1] = {{ wxLua_wxStyledTextCtrl_HomeDisplayExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeDisplayExtend }}; -// void HomeDisplayExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_HomeDisplayExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HomeDisplayExtend - self->HomeDisplayExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HomeExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HomeExtend[1] = {{ wxLua_wxStyledTextCtrl_HomeExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeExtend }}; -// void HomeExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_HomeExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HomeExtend - self->HomeExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HomeRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HomeRectExtend[1] = {{ wxLua_wxStyledTextCtrl_HomeRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeRectExtend }}; -// void HomeRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_HomeRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HomeRectExtend - self->HomeRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeWrap[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HomeWrap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HomeWrap[1] = {{ wxLua_wxStyledTextCtrl_HomeWrap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeWrap }}; -// void HomeWrap(); -static int LUACALL wxLua_wxStyledTextCtrl_HomeWrap(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HomeWrap - self->HomeWrap(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeWrapExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_HomeWrapExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_HomeWrapExtend[1] = {{ wxLua_wxStyledTextCtrl_HomeWrapExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_HomeWrapExtend }}; -// void HomeWrapExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_HomeWrapExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call HomeWrapExtend - self->HomeWrapExtend(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorAllOnFor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorAllOnFor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorAllOnFor[1] = {{ wxLua_wxStyledTextCtrl_IndicatorAllOnFor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorAllOnFor }}; -// %wxchkver_2_9_5 int IndicatorAllOnFor(int position); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorAllOnFor(lua_State *L) -{ - // int position - int position = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorAllOnFor - int returns = (self->IndicatorAllOnFor(position)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorClearRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorClearRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorClearRange[1] = {{ wxLua_wxStyledTextCtrl_IndicatorClearRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorClearRange }}; -// %wxchkver_2_9_5 void IndicatorClearRange(int position, int clearLength); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorClearRange(lua_State *L) -{ - // int clearLength - int clearLength = (int)wxlua_getnumbertype(L, 3); - // int position - int position = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorClearRange - self->IndicatorClearRange(position, clearLength); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorEnd[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorEnd[1] = {{ wxLua_wxStyledTextCtrl_IndicatorEnd, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorEnd }}; -// %wxchkver_2_9_5 int IndicatorEnd(int indicator, int position); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorEnd(lua_State *L) -{ - // int position - int position = (int)wxlua_getnumbertype(L, 3); - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorEnd - int returns = (self->IndicatorEnd(indicator, position)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorFillRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorFillRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorFillRange[1] = {{ wxLua_wxStyledTextCtrl_IndicatorFillRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorFillRange }}; -// %wxchkver_2_9_5 void IndicatorFillRange(int position, int fillLength); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorFillRange(lua_State *L) -{ - // int fillLength - int fillLength = (int)wxlua_getnumbertype(L, 3); - // int position - int position = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorFillRange - self->IndicatorFillRange(position, fillLength); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetAlpha[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetAlpha, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetAlpha }}; -// %wxchkver_2_9_5 int IndicatorGetAlpha(int indicator) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetAlpha(lua_State *L) -{ - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetAlpha - int returns = (self->IndicatorGetAlpha(indicator)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetFlags[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetFlags[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetFlags }}; -// %wxchkver_3_1_0 int IndicatorGetFlags(int indic) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetFlags(lua_State *L) -{ - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetFlags - int returns = (self->IndicatorGetFlags(indic)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetForeground[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetForeground }}; -// wxColour IndicatorGetForeground(int indic) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetForeground(lua_State *L) -{ - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->IndicatorGetForeground(indic)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground }}; -// %wxchkver_3_1_0 wxColour IndicatorGetHoverForeground(int indic) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground(lua_State *L) -{ - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetHoverForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->IndicatorGetHoverForeground(indic)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle }}; -// %wxchkver_3_1_0 int IndicatorGetHoverStyle(int indic) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle(lua_State *L) -{ - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetHoverStyle - int returns = (self->IndicatorGetHoverStyle(indic)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha }}; -// %wxchkver_2_9_5 int IndicatorGetOutlineAlpha(int indicator) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha(lua_State *L) -{ - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetOutlineAlpha - int returns = (self->IndicatorGetOutlineAlpha(indicator)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetStyle[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetStyle }}; -// int IndicatorGetStyle(int indic) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetStyle(lua_State *L) -{ - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetStyle - int returns = (self->IndicatorGetStyle(indic)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetUnder[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetUnder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetUnder[1] = {{ wxLua_wxStyledTextCtrl_IndicatorGetUnder, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorGetUnder }}; -// %wxchkver_2_9_5 bool IndicatorGetUnder(int indic) const; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorGetUnder(lua_State *L) -{ - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorGetUnder - bool returns = (self->IndicatorGetUnder(indic)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetAlpha[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetAlpha, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetAlpha }}; -// %wxchkver_2_9_5 void IndicatorSetAlpha(int indicator, int alpha); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetAlpha(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 3); - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetAlpha - self->IndicatorSetAlpha(indicator, alpha); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetFlags[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetFlags[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetFlags, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetFlags }}; -// %wxchkver_3_1_0 void IndicatorSetFlags(int indic, int flags); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 3); - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetFlags - self->IndicatorSetFlags(indic, flags); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetForeground[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetForeground }}; -// void IndicatorSetForeground(int indic, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetForeground - self->IndicatorSetForeground(indic, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground }}; -// %wxchkver_3_1_0 void IndicatorSetHoverForeground(int indic, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetHoverForeground - self->IndicatorSetHoverForeground(indic, *fore); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle }}; -// %wxchkver_3_1_0 void IndicatorSetHoverStyle(int indic, int style); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetHoverStyle - self->IndicatorSetHoverStyle(indic, style); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha }}; -// %wxchkver_2_9_5 void IndicatorSetOutlineAlpha(int indicator, int alpha); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 3); - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetOutlineAlpha - self->IndicatorSetOutlineAlpha(indicator, alpha); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetStyle[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetStyle }}; -// void IndicatorSetStyle(int indic, int style); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetStyle - self->IndicatorSetStyle(indic, style); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetUnder[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetUnder(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetUnder[1] = {{ wxLua_wxStyledTextCtrl_IndicatorSetUnder, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorSetUnder }}; -// %wxchkver_2_9_5 void IndicatorSetUnder(int indic, bool under); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorSetUnder(lua_State *L) -{ - // bool under - bool under = wxlua_getbooleantype(L, 3); - // int indic - int indic = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorSetUnder - self->IndicatorSetUnder(indic, under); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorStart[1] = {{ wxLua_wxStyledTextCtrl_IndicatorStart, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorStart }}; -// %wxchkver_2_9_5 int IndicatorStart(int indicator, int position); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorStart(lua_State *L) -{ - // int position - int position = (int)wxlua_getnumbertype(L, 3); - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorStart - int returns = (self->IndicatorStart(indicator, position)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorValueAt[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorValueAt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorValueAt[1] = {{ wxLua_wxStyledTextCtrl_IndicatorValueAt, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IndicatorValueAt }}; -// %wxchkver_2_9_5 int IndicatorValueAt(int indicator, int position); -static int LUACALL wxLua_wxStyledTextCtrl_IndicatorValueAt(lua_State *L) -{ - // int position - int position = (int)wxlua_getnumbertype(L, 3); - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IndicatorValueAt - int returns = (self->IndicatorValueAt(indicator, position)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_InsertText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_InsertText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_InsertText[1] = {{ wxLua_wxStyledTextCtrl_InsertText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_InsertText }}; -// void InsertText(int pos, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_InsertText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call InsertText - self->InsertText(pos, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_InsertTextRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_InsertTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_InsertTextRaw[1] = {{ wxLua_wxStyledTextCtrl_InsertTextRaw, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_InsertTextRaw }}; -// void InsertTextRaw(int pos, const char* text); -static int LUACALL wxLua_wxStyledTextCtrl_InsertTextRaw(lua_State *L) -{ - // const char text - const char * text = wxlua_getstringtype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call InsertTextRaw - self->InsertTextRaw(pos, text); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_IsRangeWord[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_IsRangeWord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_IsRangeWord[1] = {{ wxLua_wxStyledTextCtrl_IsRangeWord, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_IsRangeWord }}; -// %wxchkver_3_1_1 bool IsRangeWord(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_IsRangeWord(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call IsRangeWord - bool returns = (self->IsRangeWord(start, end)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineCopy[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineCopy[1] = {{ wxLua_wxStyledTextCtrl_LineCopy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineCopy }}; -// void LineCopy(); -static int LUACALL wxLua_wxStyledTextCtrl_LineCopy(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineCopy - self->LineCopy(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineCut[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineCut[1] = {{ wxLua_wxStyledTextCtrl_LineCut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineCut }}; -// void LineCut(); -static int LUACALL wxLua_wxStyledTextCtrl_LineCut(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineCut - self->LineCut(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDelete[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineDelete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineDelete[1] = {{ wxLua_wxStyledTextCtrl_LineDelete, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDelete }}; -// void LineDelete(); -static int LUACALL wxLua_wxStyledTextCtrl_LineDelete(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineDelete - self->LineDelete(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDown[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineDown[1] = {{ wxLua_wxStyledTextCtrl_LineDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDown }}; -// void LineDown(); -static int LUACALL wxLua_wxStyledTextCtrl_LineDown(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineDown - self->LineDown(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDownExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineDownExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineDownExtend[1] = {{ wxLua_wxStyledTextCtrl_LineDownExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDownExtend }}; -// void LineDownExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineDownExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineDownExtend - self->LineDownExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDownRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineDownRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineDownRectExtend[1] = {{ wxLua_wxStyledTextCtrl_LineDownRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDownRectExtend }}; -// void LineDownRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineDownRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineDownRectExtend - self->LineDownRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDuplicate[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineDuplicate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineDuplicate[1] = {{ wxLua_wxStyledTextCtrl_LineDuplicate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineDuplicate }}; -// void LineDuplicate(); -static int LUACALL wxLua_wxStyledTextCtrl_LineDuplicate(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineDuplicate - self->LineDuplicate(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEnd[1] = {{ wxLua_wxStyledTextCtrl_LineEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEnd }}; -// void LineEnd(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEnd - self->LineEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndDisplay[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEndDisplay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndDisplay[1] = {{ wxLua_wxStyledTextCtrl_LineEndDisplay, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndDisplay }}; -// void LineEndDisplay(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEndDisplay(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEndDisplay - self->LineEndDisplay(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndDisplayExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEndDisplayExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndDisplayExtend[1] = {{ wxLua_wxStyledTextCtrl_LineEndDisplayExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndDisplayExtend }}; -// void LineEndDisplayExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEndDisplayExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEndDisplayExtend - self->LineEndDisplayExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEndExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndExtend[1] = {{ wxLua_wxStyledTextCtrl_LineEndExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndExtend }}; -// void LineEndExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEndExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEndExtend - self->LineEndExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEndRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndRectExtend[1] = {{ wxLua_wxStyledTextCtrl_LineEndRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndRectExtend }}; -// void LineEndRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEndRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEndRectExtend - self->LineEndRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndWrap[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEndWrap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndWrap[1] = {{ wxLua_wxStyledTextCtrl_LineEndWrap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndWrap }}; -// void LineEndWrap(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEndWrap(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEndWrap - self->LineEndWrap(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndWrapExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineEndWrapExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndWrapExtend[1] = {{ wxLua_wxStyledTextCtrl_LineEndWrapExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineEndWrapExtend }}; -// void LineEndWrapExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineEndWrapExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineEndWrapExtend - self->LineEndWrapExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineFromPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineFromPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineFromPosition[1] = {{ wxLua_wxStyledTextCtrl_LineFromPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineFromPosition }}; -// int LineFromPosition(int pos) const; -static int LUACALL wxLua_wxStyledTextCtrl_LineFromPosition(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineFromPosition - int returns = (self->LineFromPosition(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineLength[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineLength[1] = {{ wxLua_wxStyledTextCtrl_LineLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineLength }}; -// int LineLength(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_LineLength(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineLength - int returns = (self->LineLength(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineScroll[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineScroll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineScroll[1] = {{ wxLua_wxStyledTextCtrl_LineScroll, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineScroll }}; -// void LineScroll(int columns, int lines); -static int LUACALL wxLua_wxStyledTextCtrl_LineScroll(lua_State *L) -{ - // int lines - int lines = (int)wxlua_getnumbertype(L, 3); - // int columns - int columns = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineScroll - self->LineScroll(columns, lines); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineScrollDown[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineScrollDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineScrollDown[1] = {{ wxLua_wxStyledTextCtrl_LineScrollDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineScrollDown }}; -// void LineScrollDown(); -static int LUACALL wxLua_wxStyledTextCtrl_LineScrollDown(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineScrollDown - self->LineScrollDown(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineScrollUp[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineScrollUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineScrollUp[1] = {{ wxLua_wxStyledTextCtrl_LineScrollUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineScrollUp }}; -// void LineScrollUp(); -static int LUACALL wxLua_wxStyledTextCtrl_LineScrollUp(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineScrollUp - self->LineScrollUp(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineTranspose[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineTranspose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineTranspose[1] = {{ wxLua_wxStyledTextCtrl_LineTranspose, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineTranspose }}; -// void LineTranspose(); -static int LUACALL wxLua_wxStyledTextCtrl_LineTranspose(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineTranspose - self->LineTranspose(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineUp[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineUp[1] = {{ wxLua_wxStyledTextCtrl_LineUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineUp }}; -// void LineUp(); -static int LUACALL wxLua_wxStyledTextCtrl_LineUp(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineUp - self->LineUp(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineUpExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineUpExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineUpExtend[1] = {{ wxLua_wxStyledTextCtrl_LineUpExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineUpExtend }}; -// void LineUpExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineUpExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineUpExtend - self->LineUpExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineUpRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LineUpRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LineUpRectExtend[1] = {{ wxLua_wxStyledTextCtrl_LineUpRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LineUpRectExtend }}; -// void LineUpRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_LineUpRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LineUpRectExtend - self->LineUpRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LinesJoin[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LinesJoin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LinesJoin[1] = {{ wxLua_wxStyledTextCtrl_LinesJoin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LinesJoin }}; -// void LinesJoin(); -static int LUACALL wxLua_wxStyledTextCtrl_LinesJoin(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LinesJoin - self->LinesJoin(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LinesOnScreen[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LinesOnScreen(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LinesOnScreen[1] = {{ wxLua_wxStyledTextCtrl_LinesOnScreen, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LinesOnScreen }}; -// int LinesOnScreen() const; -static int LUACALL wxLua_wxStyledTextCtrl_LinesOnScreen(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LinesOnScreen - int returns = (self->LinesOnScreen()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LinesSplit[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LinesSplit(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LinesSplit[1] = {{ wxLua_wxStyledTextCtrl_LinesSplit, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LinesSplit }}; -// void LinesSplit(int pixelWidth); -static int LUACALL wxLua_wxStyledTextCtrl_LinesSplit(lua_State *L) -{ - // int pixelWidth - int pixelWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LinesSplit - self->LinesSplit(pixelWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LoadFile[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LoadFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LoadFile[1] = {{ wxLua_wxStyledTextCtrl_LoadFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LoadFile }}; -// bool LoadFile(const wxString& filename); -static int LUACALL wxLua_wxStyledTextCtrl_LoadFile(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LoadFile - bool returns = (self->LoadFile(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LoadLexerLibrary[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LoadLexerLibrary(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LoadLexerLibrary[1] = {{ wxLua_wxStyledTextCtrl_LoadLexerLibrary, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LoadLexerLibrary }}; -// %wxchkver_3_1_1 void LoadLexerLibrary(const wxString& path); -static int LUACALL wxLua_wxStyledTextCtrl_LoadLexerLibrary(lua_State *L) -{ - // const wxString path - const wxString path = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LoadLexerLibrary - self->LoadLexerLibrary(path); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_LowerCase[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_LowerCase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_LowerCase[1] = {{ wxLua_wxStyledTextCtrl_LowerCase, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_LowerCase }}; -// void LowerCase(); -static int LUACALL wxLua_wxStyledTextCtrl_LowerCase(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call LowerCase - self->LowerCase(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetStyle[1] = {{ wxLua_wxStyledTextCtrl_MarginGetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetStyle }}; -// %wxchkver_2_9_5 int MarginGetStyle(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetStyle(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginGetStyle - int returns = (self->MarginGetStyle(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetStyleOffset[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetStyleOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetStyleOffset[1] = {{ wxLua_wxStyledTextCtrl_MarginGetStyleOffset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetStyleOffset }}; -// %wxchkver_2_9_5 int MarginGetStyleOffset() const; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetStyleOffset(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginGetStyleOffset - int returns = (self->MarginGetStyleOffset()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetStyles[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetStyles[1] = {{ wxLua_wxStyledTextCtrl_MarginGetStyles, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetStyles }}; -// %wxchkver_2_9_5 wxString MarginGetStyles(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetStyles(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginGetStyles - wxString returns = (self->MarginGetStyles(line)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetText[1] = {{ wxLua_wxStyledTextCtrl_MarginGetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginGetText }}; -// %wxchkver_2_9_5 wxString MarginGetText(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_MarginGetText(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginGetText - wxString returns = (self->MarginGetText(line)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetStyle[1] = {{ wxLua_wxStyledTextCtrl_MarginSetStyle, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetStyle }}; -// %wxchkver_2_9_5 void MarginSetStyle(int line, int style); -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetStyle(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginSetStyle - self->MarginSetStyle(line, style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetStyleOffset[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetStyleOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetStyleOffset[1] = {{ wxLua_wxStyledTextCtrl_MarginSetStyleOffset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetStyleOffset }}; -// %wxchkver_2_9_5 void MarginSetStyleOffset(int style); -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetStyleOffset(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginSetStyleOffset - self->MarginSetStyleOffset(style); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetStyles[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetStyles[1] = {{ wxLua_wxStyledTextCtrl_MarginSetStyles, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetStyles }}; -// %wxchkver_2_9_5 void MarginSetStyles(int line, const wxString& styles); -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetStyles(lua_State *L) -{ - // const wxString styles - const wxString styles = wxlua_getwxStringtype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginSetStyles - self->MarginSetStyles(line, styles); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetText[1] = {{ wxLua_wxStyledTextCtrl_MarginSetText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginSetText }}; -// %wxchkver_2_9_5 void MarginSetText(int line, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_MarginSetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginSetText - self->MarginSetText(line, text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginTextClearAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarginTextClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarginTextClearAll[1] = {{ wxLua_wxStyledTextCtrl_MarginTextClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarginTextClearAll }}; -// %wxchkver_2_9_5 void MarginTextClearAll(); -static int LUACALL wxLua_wxStyledTextCtrl_MarginTextClearAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarginTextClearAll - self->MarginTextClearAll(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerAdd[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerAdd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerAdd[1] = {{ wxLua_wxStyledTextCtrl_MarkerAdd, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerAdd }}; -// int MarkerAdd(int line, int markerNumber); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerAdd(lua_State *L) -{ - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerAdd - int returns = (self->MarkerAdd(line, markerNumber)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerAddSet[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerAddSet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerAddSet[1] = {{ wxLua_wxStyledTextCtrl_MarkerAddSet, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerAddSet }}; -// void MarkerAddSet(int line, int set); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerAddSet(lua_State *L) -{ - // int set - int set = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerAddSet - self->MarkerAddSet(line, set); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_wxColour, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefine[1] = {{ wxLua_wxStyledTextCtrl_MarkerDefine, WXLUAMETHOD_METHOD, 3, 5, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefine }}; -// void MarkerDefine(int markerNumber, int markerSymbol, const wxColour& foreground = wxNullColour, const wxColour& background = wxNullColour); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefine(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxColour background = wxNullColour - const wxColour * background = (argCount >= 5 ? (const wxColour *)wxluaT_getuserdatatype(L, 5, wxluatype_wxColour) : &wxNullColour); - // const wxColour foreground = wxNullColour - const wxColour * foreground = (argCount >= 4 ? (const wxColour *)wxluaT_getuserdatatype(L, 4, wxluatype_wxColour) : &wxNullColour); - // int markerSymbol - int markerSymbol = (int)wxlua_getnumbertype(L, 3); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDefine - self->MarkerDefine(markerNumber, markerSymbol, *foreground, *background); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineBitmap1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefineBitmap1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap1[1] = {{ wxLua_wxStyledTextCtrl_MarkerDefineBitmap1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineBitmap1 }}; -// %wxchkver_3_1_3 void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefineBitmap1(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDefineBitmap - self->MarkerDefineBitmap(markerNumber, *bmp); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineBitmap[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefineBitmap(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap[1] = {{ wxLua_wxStyledTextCtrl_MarkerDefineBitmap, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineBitmap }}; -// !%wxchkver_3_1_3 void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefineBitmap(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDefineBitmap - self->MarkerDefineBitmap(markerNumber, *bmp); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if wxCHECK_VERSION(3,1,3) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefinePixmap[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefinePixmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefinePixmap[1] = {{ wxLua_wxStyledTextCtrl_MarkerDefinePixmap, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefinePixmap }}; -// %override wxLua_wxStyledTextCtrl_MarkerDefinePixmap -// void MarkerDefinePixmap(int markerNumber, const char* const* xpmData); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefinePixmap(lua_State *L) -{ - // const char const xpmData - const char* const* xpmData = (const char* const*)wxlua_touserdata(L, 3); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDefinePixmap - self->MarkerDefinePixmap(markerNumber, xpmData); - - return 0; -} - - -#endif // wxCHECK_VERSION(3,1,3) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage[1] = {{ wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage }}; -// %wxchkver_2_9_5 void MarkerDefineRGBAImage(int markerNumber, const unsigned char* pixels); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage(lua_State *L) -{ - // const unsigned char pixels - const unsigned char * pixels = (const unsigned char *)wxlua_getstringtype(L, 3); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDefineRGBAImage - self->MarkerDefineRGBAImage(markerNumber, pixels); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDelete[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDelete(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDelete[1] = {{ wxLua_wxStyledTextCtrl_MarkerDelete, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDelete }}; -// void MarkerDelete(int line, int markerNumber); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDelete(lua_State *L) -{ - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDelete - self->MarkerDelete(line, markerNumber); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDeleteAll[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDeleteAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDeleteAll[1] = {{ wxLua_wxStyledTextCtrl_MarkerDeleteAll, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDeleteAll }}; -// void MarkerDeleteAll(int markerNumber); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDeleteAll(lua_State *L) -{ - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDeleteAll - self->MarkerDeleteAll(markerNumber); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDeleteHandle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDeleteHandle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDeleteHandle[1] = {{ wxLua_wxStyledTextCtrl_MarkerDeleteHandle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDeleteHandle }}; -// void MarkerDeleteHandle(int handle); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerDeleteHandle(lua_State *L) -{ - // int handle - int handle = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerDeleteHandle - self->MarkerDeleteHandle(handle); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerEnableHighlight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerEnableHighlight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerEnableHighlight[1] = {{ wxLua_wxStyledTextCtrl_MarkerEnableHighlight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerEnableHighlight }}; -// %wxchkver_2_9_5 void MarkerEnableHighlight(bool enabled); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerEnableHighlight(lua_State *L) -{ - // bool enabled - bool enabled = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerEnableHighlight - self->MarkerEnableHighlight(enabled); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerGet[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerGet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerGet[1] = {{ wxLua_wxStyledTextCtrl_MarkerGet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerGet }}; -// unsigned int MarkerGet(int line); // wxLua - mask is unsigned to keep all the bits -static int LUACALL wxLua_wxStyledTextCtrl_MarkerGet(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerGet - unsigned int returns = (self->MarkerGet(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerLineFromHandle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerLineFromHandle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerLineFromHandle[1] = {{ wxLua_wxStyledTextCtrl_MarkerLineFromHandle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerLineFromHandle }}; -// int MarkerLineFromHandle(int handle); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerLineFromHandle(lua_State *L) -{ - // int handle - int handle = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerLineFromHandle - int returns = (self->MarkerLineFromHandle(handle)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerNext[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerNext[1] = {{ wxLua_wxStyledTextCtrl_MarkerNext, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerNext }}; -// int MarkerNext(int lineStart, unsigned int markerMask); // wxLua - mask is unsigned to keep all the bits -static int LUACALL wxLua_wxStyledTextCtrl_MarkerNext(lua_State *L) -{ - // unsigned int markerMask - unsigned int markerMask = (unsigned int)wxlua_getuintegertype(L, 3); - // int lineStart - int lineStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerNext - int returns = (self->MarkerNext(lineStart, markerMask)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerPrevious[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerPrevious(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerPrevious[1] = {{ wxLua_wxStyledTextCtrl_MarkerPrevious, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerPrevious }}; -// int MarkerPrevious(int lineStart, unsigned int markerMask); // wxLua - mask is unsigned to keep all the bits -static int LUACALL wxLua_wxStyledTextCtrl_MarkerPrevious(lua_State *L) -{ - // unsigned int markerMask - unsigned int markerMask = (unsigned int)wxlua_getuintegertype(L, 3); - // int lineStart - int lineStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerPrevious - int returns = (self->MarkerPrevious(lineStart, markerMask)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,8,12) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetAlpha[1] = {{ wxLua_wxStyledTextCtrl_MarkerSetAlpha, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetAlpha }}; -// %wxchkver_2_8_12 void MarkerSetAlpha(int markerNumber, int alpha); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetAlpha(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 3); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerSetAlpha - self->MarkerSetAlpha(markerNumber, alpha); - - return 0; -} - -#endif // wxCHECK_VERSION(2,8,12) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetBackground[1] = {{ wxLua_wxStyledTextCtrl_MarkerSetBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetBackground }}; -// void MarkerSetBackground(int markerNumber, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerSetBackground - self->MarkerSetBackground(markerNumber, *back); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected[1] = {{ wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected }}; -// %wxchkver_2_9_5 void MarkerSetBackgroundSelected(int markerNumber, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerSetBackgroundSelected - self->MarkerSetBackgroundSelected(markerNumber, *back); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetForeground[1] = {{ wxLua_wxStyledTextCtrl_MarkerSetForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerSetForeground }}; -// void MarkerSetForeground(int markerNumber, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_MarkerSetForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int markerNumber - int markerNumber = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MarkerSetForeground - self->MarkerSetForeground(markerNumber, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MoveCaretInsideView[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MoveCaretInsideView(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MoveCaretInsideView[1] = {{ wxLua_wxStyledTextCtrl_MoveCaretInsideView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MoveCaretInsideView }}; -// void MoveCaretInsideView(); -static int LUACALL wxLua_wxStyledTextCtrl_MoveCaretInsideView(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MoveCaretInsideView - self->MoveCaretInsideView(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MoveSelectedLinesDown[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MoveSelectedLinesDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MoveSelectedLinesDown[1] = {{ wxLua_wxStyledTextCtrl_MoveSelectedLinesDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MoveSelectedLinesDown }}; -// %wxchkver_2_9_5 void MoveSelectedLinesDown(); -static int LUACALL wxLua_wxStyledTextCtrl_MoveSelectedLinesDown(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MoveSelectedLinesDown - self->MoveSelectedLinesDown(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MoveSelectedLinesUp[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MoveSelectedLinesUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MoveSelectedLinesUp[1] = {{ wxLua_wxStyledTextCtrl_MoveSelectedLinesUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MoveSelectedLinesUp }}; -// %wxchkver_2_9_5 void MoveSelectedLinesUp(); -static int LUACALL wxLua_wxStyledTextCtrl_MoveSelectedLinesUp(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MoveSelectedLinesUp - self->MoveSelectedLinesUp(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultiEdgeAddLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MultiEdgeAddLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MultiEdgeAddLine[1] = {{ wxLua_wxStyledTextCtrl_MultiEdgeAddLine, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultiEdgeAddLine }}; -// %wxchkver_3_1_1 void MultiEdgeAddLine(int column, const wxColour& edgeColour); -static int LUACALL wxLua_wxStyledTextCtrl_MultiEdgeAddLine(lua_State *L) -{ - // const wxColour edgeColour - const wxColour * edgeColour = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MultiEdgeAddLine - self->MultiEdgeAddLine(column, *edgeColour); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultiEdgeClearAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MultiEdgeClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MultiEdgeClearAll[1] = {{ wxLua_wxStyledTextCtrl_MultiEdgeClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultiEdgeClearAll }}; -// %wxchkver_3_1_1 void MultiEdgeClearAll(); -static int LUACALL wxLua_wxStyledTextCtrl_MultiEdgeClearAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MultiEdgeClearAll - self->MultiEdgeClearAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultipleSelectAddEach[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MultipleSelectAddEach(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MultipleSelectAddEach[1] = {{ wxLua_wxStyledTextCtrl_MultipleSelectAddEach, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultipleSelectAddEach }}; -// %wxchkver_3_1_1 void MultipleSelectAddEach(); -static int LUACALL wxLua_wxStyledTextCtrl_MultipleSelectAddEach(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MultipleSelectAddEach - self->MultipleSelectAddEach(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultipleSelectAddNext[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_MultipleSelectAddNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MultipleSelectAddNext[1] = {{ wxLua_wxStyledTextCtrl_MultipleSelectAddNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MultipleSelectAddNext }}; -// %wxchkver_3_1_1 void MultipleSelectAddNext(); -static int LUACALL wxLua_wxStyledTextCtrl_MultipleSelectAddNext(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call MultipleSelectAddNext - self->MultipleSelectAddNext(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_NewLine[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_NewLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_NewLine[1] = {{ wxLua_wxStyledTextCtrl_NewLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_NewLine }}; -// void NewLine(); -static int LUACALL wxLua_wxStyledTextCtrl_NewLine(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call NewLine - self->NewLine(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageDown[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PageDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PageDown[1] = {{ wxLua_wxStyledTextCtrl_PageDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageDown }}; -// void PageDown(); -static int LUACALL wxLua_wxStyledTextCtrl_PageDown(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PageDown - self->PageDown(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageDownExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PageDownExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PageDownExtend[1] = {{ wxLua_wxStyledTextCtrl_PageDownExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageDownExtend }}; -// void PageDownExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_PageDownExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PageDownExtend - self->PageDownExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageDownRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PageDownRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PageDownRectExtend[1] = {{ wxLua_wxStyledTextCtrl_PageDownRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageDownRectExtend }}; -// void PageDownRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_PageDownRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PageDownRectExtend - self->PageDownRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageUp[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PageUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PageUp[1] = {{ wxLua_wxStyledTextCtrl_PageUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageUp }}; -// void PageUp(); -static int LUACALL wxLua_wxStyledTextCtrl_PageUp(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PageUp - self->PageUp(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageUpExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PageUpExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PageUpExtend[1] = {{ wxLua_wxStyledTextCtrl_PageUpExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageUpExtend }}; -// void PageUpExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_PageUpExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PageUpExtend - self->PageUpExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageUpRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PageUpRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PageUpRectExtend[1] = {{ wxLua_wxStyledTextCtrl_PageUpRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PageUpRectExtend }}; -// void PageUpRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_PageUpRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PageUpRectExtend - self->PageUpRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaDown[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ParaDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ParaDown[1] = {{ wxLua_wxStyledTextCtrl_ParaDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaDown }}; -// void ParaDown(); -static int LUACALL wxLua_wxStyledTextCtrl_ParaDown(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ParaDown - self->ParaDown(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaDownExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ParaDownExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ParaDownExtend[1] = {{ wxLua_wxStyledTextCtrl_ParaDownExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaDownExtend }}; -// void ParaDownExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_ParaDownExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ParaDownExtend - self->ParaDownExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaUp[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ParaUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ParaUp[1] = {{ wxLua_wxStyledTextCtrl_ParaUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaUp }}; -// void ParaUp(); -static int LUACALL wxLua_wxStyledTextCtrl_ParaUp(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ParaUp - self->ParaUp(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaUpExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ParaUpExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ParaUpExtend[1] = {{ wxLua_wxStyledTextCtrl_ParaUpExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ParaUpExtend }}; -// void ParaUpExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_ParaUpExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ParaUpExtend - self->ParaUpExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Paste[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Paste[1] = {{ wxLua_wxStyledTextCtrl_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Paste }}; -// void Paste(); -static int LUACALL wxLua_wxStyledTextCtrl_Paste(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Paste - self->Paste(); - - return 0; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PointFromPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PointFromPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PointFromPosition[1] = {{ wxLua_wxStyledTextCtrl_PointFromPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PointFromPosition }}; -// wxPoint PointFromPosition(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_PointFromPosition(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PointFromPosition - // allocate a new object using the copy constructor - wxPoint* returns = new wxPoint(self->PointFromPosition(pos)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxPoint); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPoint); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionAfter[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionAfter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionAfter[1] = {{ wxLua_wxStyledTextCtrl_PositionAfter, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionAfter }}; -// int PositionAfter(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_PositionAfter(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionAfter - int returns = (self->PositionAfter(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionBefore[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionBefore(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionBefore[1] = {{ wxLua_wxStyledTextCtrl_PositionBefore, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionBefore }}; -// int PositionBefore(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_PositionBefore(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionBefore - int returns = (self->PositionBefore(pos)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromLine[1] = {{ wxLua_wxStyledTextCtrl_PositionFromLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromLine }}; -// int PositionFromLine(int line) const; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromLine(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionFromLine - int returns = (self->PositionFromLine(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPoint1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromPoint1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint1[1] = {{ wxLua_wxStyledTextCtrl_PositionFromPoint1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPoint1 }}; -// !%wxchkver_3_1_0 int PositionFromPoint(const wxPoint& pt) const; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromPoint1(lua_State *L) -{ - // const wxPoint pt - const wxPoint * pt = (const wxPoint *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionFromPoint - int returns = (self->PositionFromPoint(*pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPoint[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxPoint, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromPoint(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint[1] = {{ wxLua_wxStyledTextCtrl_PositionFromPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPoint }}; -// %wxchkver_3_1_0 int PositionFromPoint(wxPoint pt) const; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromPoint(lua_State *L) -{ - // wxPoint pt - wxPoint pt = *(wxPoint*)wxluaT_getuserdatatype(L, 2, wxluatype_wxPoint); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionFromPoint - int returns = (self->PositionFromPoint(pt)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPointClose[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromPointClose(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPointClose[1] = {{ wxLua_wxStyledTextCtrl_PositionFromPointClose, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPointClose }}; -// int PositionFromPointClose(int x, int y); -static int LUACALL wxLua_wxStyledTextCtrl_PositionFromPointClose(lua_State *L) -{ - // int y - int y = (int)wxlua_getnumbertype(L, 3); - // int x - int x = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionFromPointClose - int returns = (self->PositionFromPointClose(x, y)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionRelative[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PositionRelative(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionRelative[1] = {{ wxLua_wxStyledTextCtrl_PositionRelative, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionRelative }}; -// %wxchkver_3_1_0 int PositionRelative(int pos, int relative); -static int LUACALL wxLua_wxStyledTextCtrl_PositionRelative(lua_State *L) -{ - // int relative - int relative = (int)wxlua_getnumbertype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PositionRelative - int returns = (self->PositionRelative(pos, relative)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PrivateLexerCall[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PrivateLexerCall(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PrivateLexerCall[1] = {{ wxLua_wxStyledTextCtrl_PrivateLexerCall, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PrivateLexerCall }}; -// %override wxLua_wxStyledTextCtrl_PrivateLexerCall -static int LUACALL wxLua_wxStyledTextCtrl_PrivateLexerCall(lua_State *L) -{ - // void pointer - // check if the parameter is a string; if not, assume it's userdata - void * pointer = (void *)lua_tostring(L, 3); - if (pointer == NULL) pointer = (void *)wxlua_touserdata(L, 3); - // int operation - int operation = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PrivateLexerCall - void* returns = (void*)self->PrivateLexerCall(operation, pointer); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PropertyNames[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PropertyNames(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PropertyNames[1] = {{ wxLua_wxStyledTextCtrl_PropertyNames, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PropertyNames }}; -// %wxchkver_2_9_5 wxString PropertyNames() const; -static int LUACALL wxLua_wxStyledTextCtrl_PropertyNames(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PropertyNames - wxString returns = (self->PropertyNames()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_PropertyType[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_PropertyType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PropertyType[1] = {{ wxLua_wxStyledTextCtrl_PropertyType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PropertyType }}; -// %wxchkver_2_9_5 int PropertyType(const wxString& name); -static int LUACALL wxLua_wxStyledTextCtrl_PropertyType(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call PropertyType - int returns = (self->PropertyType(name)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RGBAImageSetHeight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RGBAImageSetHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RGBAImageSetHeight[1] = {{ wxLua_wxStyledTextCtrl_RGBAImageSetHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RGBAImageSetHeight }}; -// %wxchkver_2_9_5 void RGBAImageSetHeight(int height); -static int LUACALL wxLua_wxStyledTextCtrl_RGBAImageSetHeight(lua_State *L) -{ - // int height - int height = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RGBAImageSetHeight - self->RGBAImageSetHeight(height); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RGBAImageSetScale[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RGBAImageSetScale(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RGBAImageSetScale[1] = {{ wxLua_wxStyledTextCtrl_RGBAImageSetScale, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RGBAImageSetScale }}; -// %wxchkver_3_1_0 void RGBAImageSetScale(int scalePercent); -static int LUACALL wxLua_wxStyledTextCtrl_RGBAImageSetScale(lua_State *L) -{ - // int scalePercent - int scalePercent = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RGBAImageSetScale - self->RGBAImageSetScale(scalePercent); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RGBAImageSetWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RGBAImageSetWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RGBAImageSetWidth[1] = {{ wxLua_wxStyledTextCtrl_RGBAImageSetWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RGBAImageSetWidth }}; -// %wxchkver_2_9_5 void RGBAImageSetWidth(int width); -static int LUACALL wxLua_wxStyledTextCtrl_RGBAImageSetWidth(lua_State *L) -{ - // int width - int width = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RGBAImageSetWidth - self->RGBAImageSetWidth(width); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Redo[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Redo[1] = {{ wxLua_wxStyledTextCtrl_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Redo }}; -// void Redo(); -static int LUACALL wxLua_wxStyledTextCtrl_Redo(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Redo - self->Redo(); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage2[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RegisterImage2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage2[1] = {{ wxLua_wxStyledTextCtrl_RegisterImage2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage2 }}; -// %wxchkver_3_1_3 void RegisterImage(int type, const wxBitmap& bmp); -static int LUACALL wxLua_wxStyledTextCtrl_RegisterImage2(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int type - int type = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RegisterImage - self->RegisterImage(type, *bmp); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxBitmap, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RegisterImage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage1[1] = {{ wxLua_wxStyledTextCtrl_RegisterImage1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage1 }}; -// !%wxchkver_3_1_3 void RegisterImage(int type, const wxBitmap& bmp); -static int LUACALL wxLua_wxStyledTextCtrl_RegisterImage1(lua_State *L) -{ - // const wxBitmap bmp - const wxBitmap * bmp = (const wxBitmap *)wxluaT_getuserdatatype(L, 3, wxluatype_wxBitmap); - // int type - int type = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RegisterImage - self->RegisterImage(type, *bmp); - - return 0; -} - -#endif // (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if wxCHECK_VERSION(3,1,3) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RegisterImage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage[1] = {{ wxLua_wxStyledTextCtrl_RegisterImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage }}; -// %override wxLua_wxStyledTextCtrl_RegisterImage -// void RegisterImage(int type, const char* const* xpmData); -static int LUACALL wxLua_wxStyledTextCtrl_RegisterImage(lua_State *L) -{ - // const char const xpmData - const char* const* xpmData = (const char* const*)wxlua_touserdata(L, 3); - // int type - int type = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RegisterImage - self->RegisterImage(type, xpmData); - - return 0; -} - - -#endif // wxCHECK_VERSION(3,1,3) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterRGBAImage[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RegisterRGBAImage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterRGBAImage[1] = {{ wxLua_wxStyledTextCtrl_RegisterRGBAImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterRGBAImage }}; -// %wxchkver_2_9_5 void RegisterRGBAImage(int type, const unsigned char* pixels); -static int LUACALL wxLua_wxStyledTextCtrl_RegisterRGBAImage(lua_State *L) -{ - // const unsigned char pixels - const unsigned char * pixels = (const unsigned char *)wxlua_getstringtype(L, 3); - // int type - int type = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RegisterRGBAImage - self->RegisterRGBAImage(type, pixels); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles[1] = {{ wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles }}; -// %wxchkver_3_1_0 void ReleaseAllExtendedStyles(); -static int LUACALL wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReleaseAllExtendedStyles - self->ReleaseAllExtendedStyles(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReleaseDocument[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReleaseDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReleaseDocument[1] = {{ wxLua_wxStyledTextCtrl_ReleaseDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReleaseDocument }}; -// void ReleaseDocument(void* docPointer); -static int LUACALL wxLua_wxStyledTextCtrl_ReleaseDocument(lua_State *L) -{ - // void docPointer - void * docPointer = (void *)wxlua_touserdata(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReleaseDocument - self->ReleaseDocument(docPointer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceSelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceSelection[1] = {{ wxLua_wxStyledTextCtrl_ReplaceSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceSelection }}; -// void ReplaceSelection(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceSelection(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReplaceSelection - self->ReplaceSelection(text); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,3) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceSelectionRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceSelectionRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceSelectionRaw[1] = {{ wxLua_wxStyledTextCtrl_ReplaceSelectionRaw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceSelectionRaw }}; -// %wxchkver_3_1_3 void ReplaceSelectionRaw(const char* text); -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceSelectionRaw(lua_State *L) -{ - // const char text - const char * text = wxlua_getstringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReplaceSelectionRaw - self->ReplaceSelectionRaw(text); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,3) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTarget[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTarget[1] = {{ wxLua_wxStyledTextCtrl_ReplaceTarget, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTarget }}; -// int ReplaceTarget(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTarget(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReplaceTarget - int returns = (self->ReplaceTarget(text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTargetRE[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTargetRE(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTargetRE[1] = {{ wxLua_wxStyledTextCtrl_ReplaceTargetRE, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTargetRE }}; -// int ReplaceTargetRE(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTargetRE(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReplaceTargetRE - int returns = (self->ReplaceTargetRE(text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(3,1,3) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTargetRERaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTargetRERaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTargetRERaw[1] = {{ wxLua_wxStyledTextCtrl_ReplaceTargetRERaw, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTargetRERaw }}; -// %wxchkver_3_1_3 int ReplaceTargetRERaw(const char* text, int length=-1); -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTargetRERaw(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int length = -1 - int length = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const char text - const char * text = wxlua_getstringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReplaceTargetRERaw - int returns = (self->ReplaceTargetRERaw(text, length)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTargetRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTargetRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTargetRaw[1] = {{ wxLua_wxStyledTextCtrl_ReplaceTargetRaw, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ReplaceTargetRaw }}; -// %wxchkver_3_1_3 int ReplaceTargetRaw(const char* text, int length=-1); -static int LUACALL wxLua_wxStyledTextCtrl_ReplaceTargetRaw(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int length = -1 - int length = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : -1); - // const char text - const char * text = wxlua_getstringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ReplaceTargetRaw - int returns = (self->ReplaceTargetRaw(text, length)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,3) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_RotateSelection[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_RotateSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RotateSelection[1] = {{ wxLua_wxStyledTextCtrl_RotateSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RotateSelection }}; -// %wxchkver_2_9_5 void RotateSelection(); -static int LUACALL wxLua_wxStyledTextCtrl_RotateSelection(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call RotateSelection - self->RotateSelection(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SaveFile[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SaveFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SaveFile[1] = {{ wxLua_wxStyledTextCtrl_SaveFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SaveFile }}; -// bool SaveFile(const wxString& filename); -static int LUACALL wxLua_wxStyledTextCtrl_SaveFile(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SaveFile - bool returns = (self->SaveFile(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ScrollRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollRange[1] = {{ wxLua_wxStyledTextCtrl_ScrollRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollRange }}; -// %wxchkver_3_1_0 void ScrollRange(int secondary, int primary); -static int LUACALL wxLua_wxStyledTextCtrl_ScrollRange(lua_State *L) -{ - // int primary - int primary = (int)wxlua_getnumbertype(L, 3); - // int secondary - int secondary = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ScrollRange - self->ScrollRange(secondary, primary); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToColumn[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToColumn[1] = {{ wxLua_wxStyledTextCtrl_ScrollToColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToColumn }}; -// void ScrollToColumn(int column); -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToColumn(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ScrollToColumn - self->ScrollToColumn(column); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToEnd[1] = {{ wxLua_wxStyledTextCtrl_ScrollToEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToEnd }}; -// %wxchkver_2_9_5 void ScrollToEnd(); -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ScrollToEnd - self->ScrollToEnd(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToLine[1] = {{ wxLua_wxStyledTextCtrl_ScrollToLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToLine }}; -// void ScrollToLine(int line); -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToLine(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ScrollToLine - self->ScrollToLine(line); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToStart[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToStart[1] = {{ wxLua_wxStyledTextCtrl_ScrollToStart, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ScrollToStart }}; -// %wxchkver_2_9_5 void ScrollToStart(); -static int LUACALL wxLua_wxStyledTextCtrl_ScrollToStart(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ScrollToStart - self->ScrollToStart(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchAnchor[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SearchAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SearchAnchor[1] = {{ wxLua_wxStyledTextCtrl_SearchAnchor, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchAnchor }}; -// void SearchAnchor(); -static int LUACALL wxLua_wxStyledTextCtrl_SearchAnchor(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SearchAnchor - self->SearchAnchor(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchInTarget[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SearchInTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SearchInTarget[1] = {{ wxLua_wxStyledTextCtrl_SearchInTarget, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchInTarget }}; -// int SearchInTarget(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_SearchInTarget(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SearchInTarget - int returns = (self->SearchInTarget(text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchNext[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SearchNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SearchNext[1] = {{ wxLua_wxStyledTextCtrl_SearchNext, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchNext }}; -// int SearchNext(int flags, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_SearchNext(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SearchNext - int returns = (self->SearchNext(flags, text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchPrev[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SearchPrev(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SearchPrev[1] = {{ wxLua_wxStyledTextCtrl_SearchPrev, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SearchPrev }}; -// int SearchPrev(int flags, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_SearchPrev(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SearchPrev - int returns = (self->SearchPrev(flags, text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SelectAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SelectAll[1] = {{ wxLua_wxStyledTextCtrl_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SelectAll }}; -// void SelectAll(); -static int LUACALL wxLua_wxStyledTextCtrl_SelectAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SelectAll - self->SelectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SelectionDuplicate[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SelectionDuplicate(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SelectionDuplicate[1] = {{ wxLua_wxStyledTextCtrl_SelectionDuplicate, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SelectionDuplicate }}; -// void SelectionDuplicate(); -static int LUACALL wxLua_wxStyledTextCtrl_SelectionDuplicate(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SelectionDuplicate - self->SelectionDuplicate(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SelectionIsRectangle[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SelectionIsRectangle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SelectionIsRectangle[1] = {{ wxLua_wxStyledTextCtrl_SelectionIsRectangle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SelectionIsRectangle }}; -// bool SelectionIsRectangle() const; -static int LUACALL wxLua_wxStyledTextCtrl_SelectionIsRectangle(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SelectionIsRectangle - bool returns = (self->SelectionIsRectangle()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SendMsg[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SendMsg(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SendMsg[1] = {{ wxLua_wxStyledTextCtrl_SendMsg, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SendMsg }}; -// long SendMsg(int msg, long wp=0, long lp=0); -static int LUACALL wxLua_wxStyledTextCtrl_SendMsg(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // long lp = 0 - long lp = (argCount >= 4 ? (long)wxlua_getnumbertype(L, 4) : 0); - // long wp = 0 - long wp = (argCount >= 3 ? (long)wxlua_getnumbertype(L, 3) : 0); - // int msg - int msg = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SendMsg - long returns = (self->SendMsg(msg, wp, lp)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground }}; -// %wxchkver_2_9_5 void SetAdditionalCaretForeground(const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalCaretForeground - self->SetAdditionalCaretForeground(*fore); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink }}; -// %wxchkver_2_9_5 void SetAdditionalCaretsBlink(bool additionalCaretsBlink); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink(lua_State *L) -{ - // bool additionalCaretsBlink - bool additionalCaretsBlink = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalCaretsBlink - self->SetAdditionalCaretsBlink(additionalCaretsBlink); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible }}; -// %wxchkver_2_9_5 void SetAdditionalCaretsVisible(bool additionalCaretsBlink); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible(lua_State *L) -{ - // bool additionalCaretsBlink - bool additionalCaretsBlink = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalCaretsVisible - self->SetAdditionalCaretsVisible(additionalCaretsBlink); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha }}; -// %wxchkver_2_9_5 void SetAdditionalSelAlpha(int alpha); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalSelAlpha - self->SetAdditionalSelAlpha(alpha); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelBackground[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalSelBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelBackground }}; -// %wxchkver_2_9_5 void SetAdditionalSelBackground(const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalSelBackground - self->SetAdditionalSelBackground(*back); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelForeground[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalSelForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelForeground }}; -// %wxchkver_2_9_5 void SetAdditionalSelForeground(const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalSelForeground - self->SetAdditionalSelForeground(*fore); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping[1] = {{ wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping }}; -// %wxchkver_2_9_5 void SetAdditionalSelectionTyping(bool additionalSelectionTyping); -static int LUACALL wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping(lua_State *L) -{ - // bool additionalSelectionTyping - bool additionalSelectionTyping = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAdditionalSelectionTyping - self->SetAdditionalSelectionTyping(additionalSelectionTyping); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAnchor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAnchor[1] = {{ wxLua_wxStyledTextCtrl_SetAnchor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAnchor }}; -// void SetAnchor(int posAnchor); -static int LUACALL wxLua_wxStyledTextCtrl_SetAnchor(lua_State *L) -{ - // int posAnchor - int posAnchor = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAnchor - self->SetAnchor(posAnchor); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAutomaticFold[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetAutomaticFold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetAutomaticFold[1] = {{ wxLua_wxStyledTextCtrl_SetAutomaticFold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetAutomaticFold }}; -// %wxchkver_3_1_0 void SetAutomaticFold(int automaticFold); -static int LUACALL wxLua_wxStyledTextCtrl_SetAutomaticFold(lua_State *L) -{ - // int automaticFold - int automaticFold = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetAutomaticFold - self->SetAutomaticFold(automaticFold); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents[1] = {{ wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents }}; -// void SetBackSpaceUnIndents(bool bsUnIndents); -static int LUACALL wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents(lua_State *L) -{ - // bool bsUnIndents - bool bsUnIndents = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetBackSpaceUnIndents - self->SetBackSpaceUnIndents(bsUnIndents); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetBufferedDraw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetBufferedDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetBufferedDraw[1] = {{ wxLua_wxStyledTextCtrl_SetBufferedDraw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetBufferedDraw }}; -// void SetBufferedDraw(bool buffered); -static int LUACALL wxLua_wxStyledTextCtrl_SetBufferedDraw(lua_State *L) -{ - // bool buffered - bool buffered = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetBufferedDraw - self->SetBufferedDraw(buffered); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretForeground[1] = {{ wxLua_wxStyledTextCtrl_SetCaretForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretForeground }}; -// void SetCaretForeground(const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretForeground - self->SetCaretForeground(*fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineBack[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineBack[1] = {{ wxLua_wxStyledTextCtrl_SetCaretLineBack, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineBack }}; -// !%wxchkver_2_8 void SetCaretLineBack(const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineBack(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretLineBack - self->SetCaretLineBack(*back); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,8,12) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha[1] = {{ wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha }}; -// %wxchkver_2_8_12 void SetCaretLineBackAlpha(int alpha); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretLineBackAlpha - self->SetCaretLineBackAlpha(alpha); - - return 0; -} - -#endif // wxCHECK_VERSION(2,8,12) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineBackground[1] = {{ wxLua_wxStyledTextCtrl_SetCaretLineBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineBackground }}; -// %wxchkver_2_8 void SetCaretLineBackground(const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretLineBackground - self->SetCaretLineBackground(*back); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineVisible[1] = {{ wxLua_wxStyledTextCtrl_SetCaretLineVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineVisible }}; -// void SetCaretLineVisible(bool show); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineVisible(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretLineVisible - self->SetCaretLineVisible(show); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways[1] = {{ wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways }}; -// %wxchkver_3_1_0 void SetCaretLineVisibleAlways(bool alwaysVisible); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways(lua_State *L) -{ - // bool alwaysVisible - bool alwaysVisible = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretLineVisibleAlways - self->SetCaretLineVisibleAlways(alwaysVisible); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretPeriod[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretPeriod(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretPeriod[1] = {{ wxLua_wxStyledTextCtrl_SetCaretPeriod, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretPeriod }}; -// void SetCaretPeriod(int periodMilliseconds); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretPeriod(lua_State *L) -{ - // int periodMilliseconds - int periodMilliseconds = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretPeriod - self->SetCaretPeriod(periodMilliseconds); - - return 0; -} - - -#if !wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretSticky1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretSticky1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky1[1] = {{ wxLua_wxStyledTextCtrl_SetCaretSticky1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretSticky1 }}; -// !%wxchkver_2_9_5 void SetCaretSticky(bool useCaretStickyBehaviour); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretSticky1(lua_State *L) -{ - // bool useCaretStickyBehaviour - bool useCaretStickyBehaviour = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretSticky - self->SetCaretSticky(useCaretStickyBehaviour); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretSticky[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretSticky(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky[1] = {{ wxLua_wxStyledTextCtrl_SetCaretSticky, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretSticky }}; -// %wxchkver_2_9_5 void SetCaretSticky(int useCaretStickyBehaviour); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretSticky(lua_State *L) -{ - // int useCaretStickyBehaviour - int useCaretStickyBehaviour = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretSticky - self->SetCaretSticky(useCaretStickyBehaviour); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretStyle[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretStyle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretStyle[1] = {{ wxLua_wxStyledTextCtrl_SetCaretStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretStyle }}; -// %wxchkver_2_9_5 void SetCaretStyle(int caretStyle); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretStyle(lua_State *L) -{ - // int caretStyle - int caretStyle = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretStyle - self->SetCaretStyle(caretStyle); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretWidth[1] = {{ wxLua_wxStyledTextCtrl_SetCaretWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretWidth }}; -// void SetCaretWidth(int pixelWidth); -static int LUACALL wxLua_wxStyledTextCtrl_SetCaretWidth(lua_State *L) -{ - // int pixelWidth - int pixelWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCaretWidth - self->SetCaretWidth(pixelWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCharsDefault[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCharsDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCharsDefault[1] = {{ wxLua_wxStyledTextCtrl_SetCharsDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCharsDefault }}; -// void SetCharsDefault(); -static int LUACALL wxLua_wxStyledTextCtrl_SetCharsDefault(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCharsDefault - self->SetCharsDefault(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCodePage[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCodePage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCodePage[1] = {{ wxLua_wxStyledTextCtrl_SetCodePage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCodePage }}; -// void SetCodePage(int codePage); -static int LUACALL wxLua_wxStyledTextCtrl_SetCodePage(lua_State *L) -{ - // int codePage - int codePage = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCodePage - self->SetCodePage(codePage); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetControlCharSymbol[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetControlCharSymbol(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetControlCharSymbol[1] = {{ wxLua_wxStyledTextCtrl_SetControlCharSymbol, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetControlCharSymbol }}; -// void SetControlCharSymbol(int symbol); -static int LUACALL wxLua_wxStyledTextCtrl_SetControlCharSymbol(lua_State *L) -{ - // int symbol - int symbol = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetControlCharSymbol - self->SetControlCharSymbol(symbol); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCurrentPos[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetCurrentPos(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCurrentPos[1] = {{ wxLua_wxStyledTextCtrl_SetCurrentPos, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCurrentPos }}; -// void SetCurrentPos(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetCurrentPos(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetCurrentPos - self->SetCurrentPos(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetDocPointer[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetDocPointer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetDocPointer[1] = {{ wxLua_wxStyledTextCtrl_SetDocPointer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetDocPointer }}; -// void SetDocPointer(void* docPointer); -static int LUACALL wxLua_wxStyledTextCtrl_SetDocPointer(lua_State *L) -{ - // void docPointer - void * docPointer = (void *)wxlua_touserdata(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetDocPointer - self->SetDocPointer(docPointer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEOLMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetEOLMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetEOLMode[1] = {{ wxLua_wxStyledTextCtrl_SetEOLMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEOLMode }}; -// void SetEOLMode(int eolMode); -static int LUACALL wxLua_wxStyledTextCtrl_SetEOLMode(lua_State *L) -{ - // int eolMode - int eolMode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetEOLMode - self->SetEOLMode(eolMode); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEdgeColour[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetEdgeColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetEdgeColour[1] = {{ wxLua_wxStyledTextCtrl_SetEdgeColour, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEdgeColour }}; -// void SetEdgeColour(const wxColour& edgeColour); -static int LUACALL wxLua_wxStyledTextCtrl_SetEdgeColour(lua_State *L) -{ - // const wxColour edgeColour - const wxColour * edgeColour = (const wxColour *)wxluaT_getuserdatatype(L, 2, wxluatype_wxColour); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetEdgeColour - self->SetEdgeColour(*edgeColour); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEdgeColumn[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetEdgeColumn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetEdgeColumn[1] = {{ wxLua_wxStyledTextCtrl_SetEdgeColumn, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEdgeColumn }}; -// void SetEdgeColumn(int column); -static int LUACALL wxLua_wxStyledTextCtrl_SetEdgeColumn(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetEdgeColumn - self->SetEdgeColumn(column); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEdgeMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetEdgeMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetEdgeMode[1] = {{ wxLua_wxStyledTextCtrl_SetEdgeMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEdgeMode }}; -// void SetEdgeMode(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetEdgeMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetEdgeMode - self->SetEdgeMode(mode); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEmptySelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetEmptySelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetEmptySelection[1] = {{ wxLua_wxStyledTextCtrl_SetEmptySelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEmptySelection }}; -// %wxchkver_2_9_5 void SetEmptySelection(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetEmptySelection(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetEmptySelection - self->SetEmptySelection(pos); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEndAtLastLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetEndAtLastLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetEndAtLastLine[1] = {{ wxLua_wxStyledTextCtrl_SetEndAtLastLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetEndAtLastLine }}; -// void SetEndAtLastLine(bool endAtLastLine); -static int LUACALL wxLua_wxStyledTextCtrl_SetEndAtLastLine(lua_State *L) -{ - // bool endAtLastLine - bool endAtLastLine = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetEndAtLastLine - self->SetEndAtLastLine(endAtLastLine); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetExtraAscent[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetExtraAscent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetExtraAscent[1] = {{ wxLua_wxStyledTextCtrl_SetExtraAscent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetExtraAscent }}; -// %wxchkver_2_9_5 void SetExtraAscent(int extraAscent); -static int LUACALL wxLua_wxStyledTextCtrl_SetExtraAscent(lua_State *L) -{ - // int extraAscent - int extraAscent = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetExtraAscent - self->SetExtraAscent(extraAscent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetExtraDescent[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetExtraDescent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetExtraDescent[1] = {{ wxLua_wxStyledTextCtrl_SetExtraDescent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetExtraDescent }}; -// %wxchkver_2_9_5 void SetExtraDescent(int extraDescent); -static int LUACALL wxLua_wxStyledTextCtrl_SetExtraDescent(lua_State *L) -{ - // int extraDescent - int extraDescent = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetExtraDescent - self->SetExtraDescent(extraDescent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFirstVisibleLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFirstVisibleLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFirstVisibleLine[1] = {{ wxLua_wxStyledTextCtrl_SetFirstVisibleLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFirstVisibleLine }}; -// %wxchkver_2_9_5 void SetFirstVisibleLine(int lineDisplay); -static int LUACALL wxLua_wxStyledTextCtrl_SetFirstVisibleLine(lua_State *L) -{ - // int lineDisplay - int lineDisplay = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFirstVisibleLine - self->SetFirstVisibleLine(lineDisplay); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldExpanded[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldExpanded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldExpanded[1] = {{ wxLua_wxStyledTextCtrl_SetFoldExpanded, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldExpanded }}; -// void SetFoldExpanded(int line, bool expanded); -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldExpanded(lua_State *L) -{ - // bool expanded - bool expanded = wxlua_getbooleantype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFoldExpanded - self->SetFoldExpanded(line, expanded); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldFlags[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldFlags[1] = {{ wxLua_wxStyledTextCtrl_SetFoldFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldFlags }}; -// void SetFoldFlags(int flags); -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFoldFlags - self->SetFoldFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldLevel[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldLevel(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldLevel[1] = {{ wxLua_wxStyledTextCtrl_SetFoldLevel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldLevel }}; -// void SetFoldLevel(int line, int level); -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldLevel(lua_State *L) -{ - // int level - int level = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFoldLevel - self->SetFoldLevel(line, level); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldMarginColour[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldMarginColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldMarginColour[1] = {{ wxLua_wxStyledTextCtrl_SetFoldMarginColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldMarginColour }}; -// void SetFoldMarginColour(bool useSetting, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldMarginColour(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFoldMarginColour - self->SetFoldMarginColour(useSetting, *back); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldMarginHiColour[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldMarginHiColour(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldMarginHiColour[1] = {{ wxLua_wxStyledTextCtrl_SetFoldMarginHiColour, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFoldMarginHiColour }}; -// void SetFoldMarginHiColour(bool useSetting, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetFoldMarginHiColour(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFoldMarginHiColour - self->SetFoldMarginHiColour(useSetting, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFontQuality[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetFontQuality(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetFontQuality[1] = {{ wxLua_wxStyledTextCtrl_SetFontQuality, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetFontQuality }}; -// %wxchkver_3_1_1 void SetFontQuality(int fontQuality); -static int LUACALL wxLua_wxStyledTextCtrl_SetFontQuality(lua_State *L) -{ - // int fontQuality - int fontQuality = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetFontQuality - self->SetFontQuality(fontQuality); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHScrollBar[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxScrollBar, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetHScrollBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetHScrollBar[1] = {{ wxLua_wxStyledTextCtrl_SetHScrollBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHScrollBar }}; -// void SetHScrollBar(wxScrollBar* bar); -static int LUACALL wxLua_wxStyledTextCtrl_SetHScrollBar(lua_State *L) -{ - // wxScrollBar bar - wxScrollBar * bar = (wxScrollBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxScrollBar); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetHScrollBar - self->SetHScrollBar(bar); - - return 0; -} - -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHighlightGuide[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetHighlightGuide(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetHighlightGuide[1] = {{ wxLua_wxStyledTextCtrl_SetHighlightGuide, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHighlightGuide }}; -// void SetHighlightGuide(int column); -static int LUACALL wxLua_wxStyledTextCtrl_SetHighlightGuide(lua_State *L) -{ - // int column - int column = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetHighlightGuide - self->SetHighlightGuide(column); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotActiveBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotActiveBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotActiveBackground[1] = {{ wxLua_wxStyledTextCtrl_SetHotspotActiveBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotActiveBackground }}; -// void SetHotspotActiveBackground(bool useSetting, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotActiveBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetHotspotActiveBackground - self->SetHotspotActiveBackground(useSetting, *back); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotActiveForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotActiveForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotActiveForeground[1] = {{ wxLua_wxStyledTextCtrl_SetHotspotActiveForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotActiveForeground }}; -// void SetHotspotActiveForeground(bool useSetting, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotActiveForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetHotspotActiveForeground - self->SetHotspotActiveForeground(useSetting, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline[1] = {{ wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline }}; -// void SetHotspotActiveUnderline(bool underline); -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline(lua_State *L) -{ - // bool underline - bool underline = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetHotspotActiveUnderline - self->SetHotspotActiveUnderline(underline); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotSingleLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotSingleLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotSingleLine[1] = {{ wxLua_wxStyledTextCtrl_SetHotspotSingleLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetHotspotSingleLine }}; -// void SetHotspotSingleLine(bool singleLine); -static int LUACALL wxLua_wxStyledTextCtrl_SetHotspotSingleLine(lua_State *L) -{ - // bool singleLine - bool singleLine = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetHotspotSingleLine - self->SetHotspotSingleLine(singleLine); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIMEInteraction[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIMEInteraction(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIMEInteraction[1] = {{ wxLua_wxStyledTextCtrl_SetIMEInteraction, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIMEInteraction }}; -// %wxchkver_3_1_0 void SetIMEInteraction(int imeInteraction); -static int LUACALL wxLua_wxStyledTextCtrl_SetIMEInteraction(lua_State *L) -{ - // int imeInteraction - int imeInteraction = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIMEInteraction - self->SetIMEInteraction(imeInteraction); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIdentifier[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIdentifier(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIdentifier[1] = {{ wxLua_wxStyledTextCtrl_SetIdentifier, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIdentifier }}; -// %wxchkver_2_9_5 void SetIdentifier(int identifier); -static int LUACALL wxLua_wxStyledTextCtrl_SetIdentifier(lua_State *L) -{ - // int identifier - int identifier = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIdentifier - self->SetIdentifier(identifier); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIdentifiers[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIdentifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIdentifiers[1] = {{ wxLua_wxStyledTextCtrl_SetIdentifiers, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIdentifiers }}; -// %wxchkver_3_1_0 void SetIdentifiers(int style, const wxString& identifiers); -static int LUACALL wxLua_wxStyledTextCtrl_SetIdentifiers(lua_State *L) -{ - // const wxString identifiers - const wxString identifiers = wxlua_getwxStringtype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIdentifiers - self->SetIdentifiers(style, identifiers); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIdleStyling[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIdleStyling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIdleStyling[1] = {{ wxLua_wxStyledTextCtrl_SetIdleStyling, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIdleStyling }}; -// %wxchkver_3_1_1 void SetIdleStyling(int idleStyling); -static int LUACALL wxLua_wxStyledTextCtrl_SetIdleStyling(lua_State *L) -{ - // int idleStyling - int idleStyling = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIdleStyling - self->SetIdleStyling(idleStyling); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndent[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndent[1] = {{ wxLua_wxStyledTextCtrl_SetIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndent }}; -// void SetIndent(int indentSize); -static int LUACALL wxLua_wxStyledTextCtrl_SetIndent(lua_State *L) -{ - // int indentSize - int indentSize = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIndent - self->SetIndent(indentSize); - - return 0; -} - - -#if !wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndentationGuides1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIndentationGuides1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides1[1] = {{ wxLua_wxStyledTextCtrl_SetIndentationGuides1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndentationGuides1 }}; -// !%wxchkver_2_9_5 void SetIndentationGuides(bool show); -static int LUACALL wxLua_wxStyledTextCtrl_SetIndentationGuides1(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIndentationGuides - self->SetIndentationGuides(show); - - return 0; -} - -#endif // !wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndentationGuides[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIndentationGuides(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides[1] = {{ wxLua_wxStyledTextCtrl_SetIndentationGuides, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndentationGuides }}; -// %wxchkver_2_9_5 void SetIndentationGuides(int indentView); -static int LUACALL wxLua_wxStyledTextCtrl_SetIndentationGuides(lua_State *L) -{ - // int indentView - int indentView = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIndentationGuides - self->SetIndentationGuides(indentView); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndicatorCurrent[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIndicatorCurrent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndicatorCurrent[1] = {{ wxLua_wxStyledTextCtrl_SetIndicatorCurrent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndicatorCurrent }}; -// %wxchkver_2_9_5 void SetIndicatorCurrent(int indicator); -static int LUACALL wxLua_wxStyledTextCtrl_SetIndicatorCurrent(lua_State *L) -{ - // int indicator - int indicator = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIndicatorCurrent - self->SetIndicatorCurrent(indicator); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndicatorValue[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetIndicatorValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndicatorValue[1] = {{ wxLua_wxStyledTextCtrl_SetIndicatorValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndicatorValue }}; -// %wxchkver_2_9_5 void SetIndicatorValue(int value); -static int LUACALL wxLua_wxStyledTextCtrl_SetIndicatorValue(lua_State *L) -{ - // int value - int value = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetIndicatorValue - self->SetIndicatorValue(value); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetKeyWords[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetKeyWords(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetKeyWords[1] = {{ wxLua_wxStyledTextCtrl_SetKeyWords, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetKeyWords }}; -// void SetKeyWords(int keywordSet, const wxString& keyWords); -static int LUACALL wxLua_wxStyledTextCtrl_SetKeyWords(lua_State *L) -{ - // const wxString keyWords - const wxString keyWords = wxlua_getwxStringtype(L, 3); - // int keywordSet - int keywordSet = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetKeyWords - self->SetKeyWords(keywordSet, keyWords); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetKeysUnicode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetKeysUnicode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetKeysUnicode[1] = {{ wxLua_wxStyledTextCtrl_SetKeysUnicode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetKeysUnicode }}; -// %wxchkver_2_9_5 && !%wxchkver_3_1_0 void SetKeysUnicode(bool keysUnicode); -static int LUACALL wxLua_wxStyledTextCtrl_SetKeysUnicode(lua_State *L) -{ - // bool keysUnicode - bool keysUnicode = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetKeysUnicode - self->SetKeysUnicode(keysUnicode); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLastKeydownProcessed[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLastKeydownProcessed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLastKeydownProcessed[1] = {{ wxLua_wxStyledTextCtrl_SetLastKeydownProcessed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLastKeydownProcessed }}; -// void SetLastKeydownProcessed(bool val); -static int LUACALL wxLua_wxStyledTextCtrl_SetLastKeydownProcessed(lua_State *L) -{ - // bool val - bool val = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLastKeydownProcessed - self->SetLastKeydownProcessed(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLayoutCache[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLayoutCache(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLayoutCache[1] = {{ wxLua_wxStyledTextCtrl_SetLayoutCache, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLayoutCache }}; -// void SetLayoutCache(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetLayoutCache(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLayoutCache - self->SetLayoutCache(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLexer[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLexer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLexer[1] = {{ wxLua_wxStyledTextCtrl_SetLexer, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLexer }}; -// void SetLexer(int lexer); -static int LUACALL wxLua_wxStyledTextCtrl_SetLexer(lua_State *L) -{ - // int lexer - int lexer = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLexer - self->SetLexer(lexer); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLexerLanguage[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLexerLanguage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLexerLanguage[1] = {{ wxLua_wxStyledTextCtrl_SetLexerLanguage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLexerLanguage }}; -// void SetLexerLanguage(const wxString& language); -static int LUACALL wxLua_wxStyledTextCtrl_SetLexerLanguage(lua_State *L) -{ - // const wxString language - const wxString language = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLexerLanguage - self->SetLexerLanguage(language); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed[1] = {{ wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed }}; -// %wxchkver_3_1_0 void SetLineEndTypesAllowed(int lineEndBitSet); -static int LUACALL wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed(lua_State *L) -{ - // int lineEndBitSet - int lineEndBitSet = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLineEndTypesAllowed - self->SetLineEndTypesAllowed(lineEndBitSet); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLineIndentation[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLineIndentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLineIndentation[1] = {{ wxLua_wxStyledTextCtrl_SetLineIndentation, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLineIndentation }}; -// void SetLineIndentation(int line, int indentSize); -static int LUACALL wxLua_wxStyledTextCtrl_SetLineIndentation(lua_State *L) -{ - // int indentSize - int indentSize = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLineIndentation - self->SetLineIndentation(line, indentSize); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLineState[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetLineState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetLineState[1] = {{ wxLua_wxStyledTextCtrl_SetLineState, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetLineState }}; -// void SetLineState(int line, int state); -static int LUACALL wxLua_wxStyledTextCtrl_SetLineState(lua_State *L) -{ - // int state - int state = (int)wxlua_getnumbertype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetLineState - self->SetLineState(line, state); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMainSelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMainSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMainSelection[1] = {{ wxLua_wxStyledTextCtrl_SetMainSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMainSelection }}; -// %wxchkver_2_9_5 void SetMainSelection(int selection); -static int LUACALL wxLua_wxStyledTextCtrl_SetMainSelection(lua_State *L) -{ - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMainSelection - self->SetMainSelection(selection); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginBackground[1] = {{ wxLua_wxStyledTextCtrl_SetMarginBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginBackground }}; -// %wxchkver_3_1_1 void SetMarginBackground(int margin, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginBackground - self->SetMarginBackground(margin, *back); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginCount[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginCount[1] = {{ wxLua_wxStyledTextCtrl_SetMarginCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginCount }}; -// %wxchkver_3_1_1 void SetMarginCount(int margins); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginCount(lua_State *L) -{ - // int margins - int margins = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginCount - self->SetMarginCount(margins); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginCursor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginCursor[1] = {{ wxLua_wxStyledTextCtrl_SetMarginCursor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginCursor }}; -// %wxchkver_2_9_5 void SetMarginCursor(int margin, int cursor); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginCursor(lua_State *L) -{ - // int cursor - int cursor = (int)wxlua_getnumbertype(L, 3); - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginCursor - self->SetMarginCursor(margin, cursor); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginLeft[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginLeft[1] = {{ wxLua_wxStyledTextCtrl_SetMarginLeft, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginLeft }}; -// void SetMarginLeft(int pixelWidth); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginLeft(lua_State *L) -{ - // int pixelWidth - int pixelWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginLeft - self->SetMarginLeft(pixelWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginMask[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginMask[1] = {{ wxLua_wxStyledTextCtrl_SetMarginMask, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginMask }}; -// void SetMarginMask(int margin, unsigned int mask); // NOTE: wxSTC has "int mask", but we need all the bits so we force uint -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginMask(lua_State *L) -{ - // unsigned int mask - unsigned int mask = (unsigned int)wxlua_getuintegertype(L, 3); - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginMask - self->SetMarginMask(margin, mask); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginOptions[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginOptions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginOptions[1] = {{ wxLua_wxStyledTextCtrl_SetMarginOptions, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginOptions }}; -// %wxchkver_2_9_5 void SetMarginOptions(int marginOptions); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginOptions(lua_State *L) -{ - // int marginOptions - int marginOptions = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginOptions - self->SetMarginOptions(marginOptions); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginRight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginRight[1] = {{ wxLua_wxStyledTextCtrl_SetMarginRight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginRight }}; -// void SetMarginRight(int pixelWidth); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginRight(lua_State *L) -{ - // int pixelWidth - int pixelWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginRight - self->SetMarginRight(pixelWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginSensitive[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginSensitive(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginSensitive[1] = {{ wxLua_wxStyledTextCtrl_SetMarginSensitive, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginSensitive }}; -// void SetMarginSensitive(int margin, bool sensitive); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginSensitive(lua_State *L) -{ - // bool sensitive - bool sensitive = wxlua_getbooleantype(L, 3); - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginSensitive - self->SetMarginSensitive(margin, sensitive); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginType[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginType[1] = {{ wxLua_wxStyledTextCtrl_SetMarginType, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginType }}; -// void SetMarginType(int margin, int marginType); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginType(lua_State *L) -{ - // int marginType - int marginType = (int)wxlua_getnumbertype(L, 3); - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginType - self->SetMarginType(margin, marginType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginWidth[1] = {{ wxLua_wxStyledTextCtrl_SetMarginWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMarginWidth }}; -// void SetMarginWidth(int margin, int pixelWidth); -static int LUACALL wxLua_wxStyledTextCtrl_SetMarginWidth(lua_State *L) -{ - // int pixelWidth - int pixelWidth = (int)wxlua_getnumbertype(L, 3); - // int margin - int margin = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMarginWidth - self->SetMarginWidth(margin, pixelWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMargins[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMargins(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMargins[1] = {{ wxLua_wxStyledTextCtrl_SetMargins, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMargins }}; -// void SetMargins(int left, int right); -static int LUACALL wxLua_wxStyledTextCtrl_SetMargins(lua_State *L) -{ - // int right - int right = (int)wxlua_getnumbertype(L, 3); - // int left - int left = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMargins - self->SetMargins(left, right); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetModEventMask[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetModEventMask(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetModEventMask[1] = {{ wxLua_wxStyledTextCtrl_SetModEventMask, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetModEventMask }}; -// void SetModEventMask(int mask); -static int LUACALL wxLua_wxStyledTextCtrl_SetModEventMask(lua_State *L) -{ - // int mask - int mask = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetModEventMask - self->SetModEventMask(mask); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseDownCaptures[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseDownCaptures(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseDownCaptures[1] = {{ wxLua_wxStyledTextCtrl_SetMouseDownCaptures, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseDownCaptures }}; -// void SetMouseDownCaptures(bool captures); -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseDownCaptures(lua_State *L) -{ - // bool captures - bool captures = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMouseDownCaptures - self->SetMouseDownCaptures(captures); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseDwellTime[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseDwellTime(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseDwellTime[1] = {{ wxLua_wxStyledTextCtrl_SetMouseDwellTime, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseDwellTime }}; -// void SetMouseDwellTime(int periodMilliseconds); -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseDwellTime(lua_State *L) -{ - // int periodMilliseconds - int periodMilliseconds = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMouseDwellTime - self->SetMouseDwellTime(periodMilliseconds); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch[1] = {{ wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch }}; -// %wxchkver_3_1_0 void SetMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch); -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch(lua_State *L) -{ - // bool mouseSelectionRectangularSwitch - bool mouseSelectionRectangularSwitch = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMouseSelectionRectangularSwitch - self->SetMouseSelectionRectangularSwitch(mouseSelectionRectangularSwitch); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseWheelCaptures[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseWheelCaptures(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseWheelCaptures[1] = {{ wxLua_wxStyledTextCtrl_SetMouseWheelCaptures, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMouseWheelCaptures }}; -// %wxchkver_3_1_1 void SetMouseWheelCaptures(bool captures); -static int LUACALL wxLua_wxStyledTextCtrl_SetMouseWheelCaptures(lua_State *L) -{ - // bool captures - bool captures = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMouseWheelCaptures - self->SetMouseWheelCaptures(captures); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMultiPaste[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMultiPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMultiPaste[1] = {{ wxLua_wxStyledTextCtrl_SetMultiPaste, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMultiPaste }}; -// %wxchkver_2_9_5 void SetMultiPaste(int multiPaste); -static int LUACALL wxLua_wxStyledTextCtrl_SetMultiPaste(lua_State *L) -{ - // int multiPaste - int multiPaste = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMultiPaste - self->SetMultiPaste(multiPaste); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMultipleSelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetMultipleSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetMultipleSelection[1] = {{ wxLua_wxStyledTextCtrl_SetMultipleSelection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetMultipleSelection }}; -// %wxchkver_2_9_5 void SetMultipleSelection(bool multipleSelection); -static int LUACALL wxLua_wxStyledTextCtrl_SetMultipleSelection(lua_State *L) -{ - // bool multipleSelection - bool multipleSelection = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetMultipleSelection - self->SetMultipleSelection(multipleSelection); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetOvertype[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetOvertype(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetOvertype[1] = {{ wxLua_wxStyledTextCtrl_SetOvertype, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetOvertype }}; -// void SetOvertype(bool overtype); -static int LUACALL wxLua_wxStyledTextCtrl_SetOvertype(lua_State *L) -{ - // bool overtype - bool overtype = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetOvertype - self->SetOvertype(overtype); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPasteConvertEndings[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPasteConvertEndings(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPasteConvertEndings[1] = {{ wxLua_wxStyledTextCtrl_SetPasteConvertEndings, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPasteConvertEndings }}; -// void SetPasteConvertEndings(bool convert); -static int LUACALL wxLua_wxStyledTextCtrl_SetPasteConvertEndings(lua_State *L) -{ - // bool convert - bool convert = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPasteConvertEndings - self->SetPasteConvertEndings(convert); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPhasesDraw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPhasesDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPhasesDraw[1] = {{ wxLua_wxStyledTextCtrl_SetPhasesDraw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPhasesDraw }}; -// %wxchkver_3_1_0 void SetPhasesDraw(int phases); -static int LUACALL wxLua_wxStyledTextCtrl_SetPhasesDraw(lua_State *L) -{ - // int phases - int phases = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPhasesDraw - self->SetPhasesDraw(phases); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPositionCacheSize[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPositionCacheSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPositionCacheSize[1] = {{ wxLua_wxStyledTextCtrl_SetPositionCacheSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPositionCacheSize }}; -// %wxchkver_2_9_5 void SetPositionCacheSize(int size); -static int LUACALL wxLua_wxStyledTextCtrl_SetPositionCacheSize(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPositionCacheSize - self->SetPositionCacheSize(size); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPrintColourMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPrintColourMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPrintColourMode[1] = {{ wxLua_wxStyledTextCtrl_SetPrintColourMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPrintColourMode }}; -// void SetPrintColourMode(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetPrintColourMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPrintColourMode - self->SetPrintColourMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPrintMagnification[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPrintMagnification(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPrintMagnification[1] = {{ wxLua_wxStyledTextCtrl_SetPrintMagnification, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPrintMagnification }}; -// void SetPrintMagnification(int magnification); -static int LUACALL wxLua_wxStyledTextCtrl_SetPrintMagnification(lua_State *L) -{ - // int magnification - int magnification = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPrintMagnification - self->SetPrintMagnification(magnification); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPrintWrapMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPrintWrapMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPrintWrapMode[1] = {{ wxLua_wxStyledTextCtrl_SetPrintWrapMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPrintWrapMode }}; -// void SetPrintWrapMode(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetPrintWrapMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPrintWrapMode - self->SetPrintWrapMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetProperty[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetProperty[1] = {{ wxLua_wxStyledTextCtrl_SetProperty, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetProperty }}; -// void SetProperty(const wxString& key, const wxString& value); -static int LUACALL wxLua_wxStyledTextCtrl_SetProperty(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString key - const wxString key = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetProperty - self->SetProperty(key, value); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPunctuationChars[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetPunctuationChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetPunctuationChars[1] = {{ wxLua_wxStyledTextCtrl_SetPunctuationChars, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetPunctuationChars }}; -// %wxchkver_2_9_5 void SetPunctuationChars(const wxString& characters); -static int LUACALL wxLua_wxStyledTextCtrl_SetPunctuationChars(lua_State *L) -{ - // const wxString characters - const wxString characters = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetPunctuationChars - self->SetPunctuationChars(characters); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetReadOnly[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetReadOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetReadOnly[1] = {{ wxLua_wxStyledTextCtrl_SetReadOnly, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetReadOnly }}; -// void SetReadOnly(bool readOnly); -static int LUACALL wxLua_wxStyledTextCtrl_SetReadOnly(lua_State *L) -{ - // bool readOnly - bool readOnly = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetReadOnly - self->SetReadOnly(readOnly); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor[1] = {{ wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor }}; -// %wxchkver_2_9_5 void SetRectangularSelectionAnchor(int posAnchor); -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor(lua_State *L) -{ - // int posAnchor - int posAnchor = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetRectangularSelectionAnchor - self->SetRectangularSelectionAnchor(posAnchor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace }}; -// %wxchkver_2_9_5 void SetRectangularSelectionAnchorVirtualSpace(int space); -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace(lua_State *L) -{ - // int space - int space = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetRectangularSelectionAnchorVirtualSpace - self->SetRectangularSelectionAnchorVirtualSpace(space); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret[1] = {{ wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret }}; -// %wxchkver_2_9_5 void SetRectangularSelectionCaret(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetRectangularSelectionCaret - self->SetRectangularSelectionCaret(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace }}; -// %wxchkver_2_9_5 void SetRectangularSelectionCaretVirtualSpace(int space); -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace(lua_State *L) -{ - // int space - int space = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetRectangularSelectionCaretVirtualSpace - self->SetRectangularSelectionCaretVirtualSpace(space); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier[1] = {{ wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier }}; -// %wxchkver_2_9_5 void SetRectangularSelectionModifier(int modifier); -static int LUACALL wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier(lua_State *L) -{ - // int modifier - int modifier = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetRectangularSelectionModifier - self->SetRectangularSelectionModifier(modifier); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRepresentation[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetRepresentation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetRepresentation[1] = {{ wxLua_wxStyledTextCtrl_SetRepresentation, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetRepresentation }}; -// %wxchkver_3_1_0 void SetRepresentation(const wxString& encodedCharacter, const wxString& representation); -static int LUACALL wxLua_wxStyledTextCtrl_SetRepresentation(lua_State *L) -{ - // const wxString representation - const wxString representation = wxlua_getwxStringtype(L, 3); - // const wxString encodedCharacter - const wxString encodedCharacter = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetRepresentation - self->SetRepresentation(encodedCharacter, representation); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSTCCursor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSTCCursor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSTCCursor[1] = {{ wxLua_wxStyledTextCtrl_SetSTCCursor, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSTCCursor }}; -// void SetSTCCursor(int cursorType); -static int LUACALL wxLua_wxStyledTextCtrl_SetSTCCursor(lua_State *L) -{ - // int cursorType - int cursorType = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSTCCursor - self->SetSTCCursor(cursorType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSTCFocus[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSTCFocus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSTCFocus[1] = {{ wxLua_wxStyledTextCtrl_SetSTCFocus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSTCFocus }}; -// void SetSTCFocus(bool focus); -static int LUACALL wxLua_wxStyledTextCtrl_SetSTCFocus(lua_State *L) -{ - // bool focus - bool focus = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSTCFocus - self->SetSTCFocus(focus); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSavePoint[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSavePoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSavePoint[1] = {{ wxLua_wxStyledTextCtrl_SetSavePoint, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSavePoint }}; -// void SetSavePoint(); -static int LUACALL wxLua_wxStyledTextCtrl_SetSavePoint(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSavePoint - self->SetSavePoint(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetScrollWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetScrollWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetScrollWidth[1] = {{ wxLua_wxStyledTextCtrl_SetScrollWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetScrollWidth }}; -// void SetScrollWidth(int pixelWidth); -static int LUACALL wxLua_wxStyledTextCtrl_SetScrollWidth(lua_State *L) -{ - // int pixelWidth - int pixelWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetScrollWidth - self->SetScrollWidth(pixelWidth); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetScrollWidthTracking[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetScrollWidthTracking(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetScrollWidthTracking[1] = {{ wxLua_wxStyledTextCtrl_SetScrollWidthTracking, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetScrollWidthTracking }}; -// %wxchkver_2_9_5 void SetScrollWidthTracking(bool tracking); -static int LUACALL wxLua_wxStyledTextCtrl_SetScrollWidthTracking(lua_State *L) -{ - // bool tracking - bool tracking = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetScrollWidthTracking - self->SetScrollWidthTracking(tracking); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSearchFlags[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSearchFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSearchFlags[1] = {{ wxLua_wxStyledTextCtrl_SetSearchFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSearchFlags }}; -// void SetSearchFlags(int flags); -static int LUACALL wxLua_wxStyledTextCtrl_SetSearchFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSearchFlags - self->SetSearchFlags(flags); - - return 0; -} - - -#if wxCHECK_VERSION(2,8,12) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelAlpha[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelAlpha(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelAlpha[1] = {{ wxLua_wxStyledTextCtrl_SetSelAlpha, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelAlpha }}; -// %wxchkver_2_8_12 void SetSelAlpha(int alpha); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelAlpha(lua_State *L) -{ - // int alpha - int alpha = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelAlpha - self->SetSelAlpha(alpha); - - return 0; -} - -#endif // wxCHECK_VERSION(2,8,12) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelBackground[1] = {{ wxLua_wxStyledTextCtrl_SetSelBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelBackground }}; -// void SetSelBackground(bool useSetting, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelBackground - self->SetSelBackground(useSetting, *back); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelEOLFilled[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelEOLFilled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelEOLFilled[1] = {{ wxLua_wxStyledTextCtrl_SetSelEOLFilled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelEOLFilled }}; -// %wxchkver_2_9_5 void SetSelEOLFilled(bool filled); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelEOLFilled(lua_State *L) -{ - // bool filled - bool filled = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelEOLFilled - self->SetSelEOLFilled(filled); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelForeground[1] = {{ wxLua_wxStyledTextCtrl_SetSelForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelForeground }}; -// void SetSelForeground(bool useSetting, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelForeground - self->SetSelForeground(useSetting, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelection[1] = {{ wxLua_wxStyledTextCtrl_SetSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelection }}; -// void SetSelection(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelection(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelection - self->SetSelection(start, end); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionEnd[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionEnd[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionEnd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionEnd }}; -// void SetSelectionEnd(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionEnd(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionEnd - self->SetSelectionEnd(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionMode[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionMode }}; -// void SetSelectionMode(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionMode - self->SetSelectionMode(mode); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNAnchor[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNAnchor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNAnchor[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionNAnchor, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNAnchor }}; -// %wxchkver_2_9_5 void SetSelectionNAnchor(int selection, int posAnchor); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNAnchor(lua_State *L) -{ - // int posAnchor - int posAnchor = (int)wxlua_getnumbertype(L, 3); - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionNAnchor - self->SetSelectionNAnchor(selection, posAnchor); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace }}; -// %wxchkver_2_9_5 void SetSelectionNAnchorVirtualSpace(int selection, int space); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace(lua_State *L) -{ - // int space - int space = (int)wxlua_getnumbertype(L, 3); - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionNAnchorVirtualSpace - self->SetSelectionNAnchorVirtualSpace(selection, space); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNCaret[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNCaret[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionNCaret, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNCaret }}; -// %wxchkver_2_9_5 void SetSelectionNCaret(int selection, int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNCaret(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionNCaret - self->SetSelectionNCaret(selection, pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace }}; -// %wxchkver_2_9_5 void SetSelectionNCaretVirtualSpace(int selection, int space); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace(lua_State *L) -{ - // int space - int space = (int)wxlua_getnumbertype(L, 3); - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionNCaretVirtualSpace - self->SetSelectionNCaretVirtualSpace(selection, space); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNEnd[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNEnd[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionNEnd, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNEnd }}; -// %wxchkver_2_9_5 void SetSelectionNEnd(int selection, int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNEnd(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionNEnd - self->SetSelectionNEnd(selection, pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNStart[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionNStart, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionNStart }}; -// %wxchkver_2_9_5 void SetSelectionNStart(int selection, int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionNStart(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 3); - // int selection - int selection = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionNStart - self->SetSelectionNStart(selection, pos); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionStart[1] = {{ wxLua_wxStyledTextCtrl_SetSelectionStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetSelectionStart }}; -// void SetSelectionStart(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetSelectionStart(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetSelectionStart - self->SetSelectionStart(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStatus[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetStatus(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetStatus[1] = {{ wxLua_wxStyledTextCtrl_SetStatus, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStatus }}; -// void SetStatus(int statusCode); -static int LUACALL wxLua_wxStyledTextCtrl_SetStatus(lua_State *L) -{ - // int statusCode - int statusCode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetStatus - self->SetStatus(statusCode); - - return 0; -} - - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBits1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetStyleBits1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits1[1] = {{ wxLua_wxStyledTextCtrl_SetStyleBits1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBits1 }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 void SetStyleBits(int bits); -static int LUACALL wxLua_wxStyledTextCtrl_SetStyleBits1(lua_State *L) -{ - // int bits - int bits = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetStyleBits - self->SetStyleBits(bits); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBits[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetStyleBits(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits[1] = {{ wxLua_wxStyledTextCtrl_SetStyleBits, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBits }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 void SetStyleBits(int bits); -static int LUACALL wxLua_wxStyledTextCtrl_SetStyleBits(lua_State *L) -{ - // int bits - int bits = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetStyleBits - self->SetStyleBits(bits); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBytes[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetStyleBytes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBytes[1] = {{ wxLua_wxStyledTextCtrl_SetStyleBytes, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBytes }}; -// %override wxLua_wxStyledTextCtrl_SetStyleBytes -// void SetStyleBytes(int length, const wxString &styleBytes) -static int LUACALL wxLua_wxStyledTextCtrl_SetStyleBytes(lua_State *L) -{ - // const wxString &styleBytes - char* styleBytes = (char*)lua_tostring(L, 3); - // int length - int length = (int)lua_tonumber(L, 2); - // get this - wxStyledTextCtrl *self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetStyleBytes - self->SetStyleBytes(length, styleBytes); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyling[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetStyling(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyling[1] = {{ wxLua_wxStyledTextCtrl_SetStyling, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyling }}; -// void SetStyling(int length, int style); -static int LUACALL wxLua_wxStyledTextCtrl_SetStyling(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 3); - // int length - int length = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetStyling - self->SetStyling(length, style); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTabDrawMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTabDrawMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTabDrawMode[1] = {{ wxLua_wxStyledTextCtrl_SetTabDrawMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTabDrawMode }}; -// %wxchkver_3_1_1 void SetTabDrawMode(int tabDrawMode); -static int LUACALL wxLua_wxStyledTextCtrl_SetTabDrawMode(lua_State *L) -{ - // int tabDrawMode - int tabDrawMode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTabDrawMode - self->SetTabDrawMode(tabDrawMode); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTabIndents[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTabIndents(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTabIndents[1] = {{ wxLua_wxStyledTextCtrl_SetTabIndents, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTabIndents }}; -// void SetTabIndents(bool tabIndents); -static int LUACALL wxLua_wxStyledTextCtrl_SetTabIndents(lua_State *L) -{ - // bool tabIndents - bool tabIndents = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTabIndents - self->SetTabIndents(tabIndents); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTabWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTabWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTabWidth[1] = {{ wxLua_wxStyledTextCtrl_SetTabWidth, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTabWidth }}; -// void SetTabWidth(int tabWidth); -static int LUACALL wxLua_wxStyledTextCtrl_SetTabWidth(lua_State *L) -{ - // int tabWidth - int tabWidth = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTabWidth - self->SetTabWidth(tabWidth); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTargetEnd[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTargetEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTargetEnd[1] = {{ wxLua_wxStyledTextCtrl_SetTargetEnd, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTargetEnd }}; -// void SetTargetEnd(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetTargetEnd(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTargetEnd - self->SetTargetEnd(pos); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTargetRange[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTargetRange(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTargetRange[1] = {{ wxLua_wxStyledTextCtrl_SetTargetRange, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTargetRange }}; -// %wxchkver_3_1_0 void SetTargetRange(int start, int end); -static int LUACALL wxLua_wxStyledTextCtrl_SetTargetRange(lua_State *L) -{ - // int end - int end = (int)wxlua_getnumbertype(L, 3); - // int start - int start = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTargetRange - self->SetTargetRange(start, end); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTargetStart[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTargetStart(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTargetStart[1] = {{ wxLua_wxStyledTextCtrl_SetTargetStart, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTargetStart }}; -// void SetTargetStart(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_SetTargetStart(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTargetStart - self->SetTargetStart(pos); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTechnology[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTechnology(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTechnology[1] = {{ wxLua_wxStyledTextCtrl_SetTechnology, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTechnology }}; -// %wxchkver_2_9_5 void SetTechnology(int technology); -static int LUACALL wxLua_wxStyledTextCtrl_SetTechnology(lua_State *L) -{ - // int technology - int technology = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTechnology - self->SetTechnology(technology); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetText[1] = {{ wxLua_wxStyledTextCtrl_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetText }}; -// void SetText(const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_SetText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetText - self->SetText(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTextRaw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTextRaw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTextRaw[1] = {{ wxLua_wxStyledTextCtrl_SetTextRaw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTextRaw }}; -// void SetTextRaw(const char* text); -static int LUACALL wxLua_wxStyledTextCtrl_SetTextRaw(lua_State *L) -{ - // const char text - const char * text = wxlua_getstringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTextRaw - self->SetTextRaw(text); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTwoPhaseDraw[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetTwoPhaseDraw(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetTwoPhaseDraw[1] = {{ wxLua_wxStyledTextCtrl_SetTwoPhaseDraw, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetTwoPhaseDraw }}; -// void SetTwoPhaseDraw(bool twoPhase); -static int LUACALL wxLua_wxStyledTextCtrl_SetTwoPhaseDraw(lua_State *L) -{ - // bool twoPhase - bool twoPhase = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetTwoPhaseDraw - self->SetTwoPhaseDraw(twoPhase); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUndoCollection[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetUndoCollection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUndoCollection[1] = {{ wxLua_wxStyledTextCtrl_SetUndoCollection, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUndoCollection }}; -// void SetUndoCollection(bool collectUndo); -static int LUACALL wxLua_wxStyledTextCtrl_SetUndoCollection(lua_State *L) -{ - // bool collectUndo - bool collectUndo = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetUndoCollection - self->SetUndoCollection(collectUndo); - - return 0; -} - - -#if !wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseAntiAliasing1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetUseAntiAliasing1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing1[1] = {{ wxLua_wxStyledTextCtrl_SetUseAntiAliasing1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseAntiAliasing1 }}; -// !%wxchkver_3_1_0 void SetUseAntiAliasing(bool useAA); -static int LUACALL wxLua_wxStyledTextCtrl_SetUseAntiAliasing1(lua_State *L) -{ - // bool useAA - bool useAA = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetUseAntiAliasing - self->SetUseAntiAliasing(useAA); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseAntiAliasing[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetUseAntiAliasing(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing[1] = {{ wxLua_wxStyledTextCtrl_SetUseAntiAliasing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseAntiAliasing }}; -// !%wxchkver_3_1_0 void SetUseAntiAliasing(bool useAA); -static int LUACALL wxLua_wxStyledTextCtrl_SetUseAntiAliasing(lua_State *L) -{ - // bool useAA - bool useAA = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetUseAntiAliasing - self->SetUseAntiAliasing(useAA); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar[1] = {{ wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar }}; -// void SetUseHorizontalScrollBar(bool show); -static int LUACALL wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetUseHorizontalScrollBar - self->SetUseHorizontalScrollBar(show); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseTabs[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetUseTabs(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseTabs[1] = {{ wxLua_wxStyledTextCtrl_SetUseTabs, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseTabs }}; -// void SetUseTabs(bool useTabs); -static int LUACALL wxLua_wxStyledTextCtrl_SetUseTabs(lua_State *L) -{ - // bool useTabs - bool useTabs = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetUseTabs - self->SetUseTabs(useTabs); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar[1] = {{ wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar }}; -// void SetUseVerticalScrollBar(bool show); -static int LUACALL wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar(lua_State *L) -{ - // bool show - bool show = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetUseVerticalScrollBar - self->SetUseVerticalScrollBar(show); - - return 0; -} - - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetVScrollBar[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_wxScrollBar, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetVScrollBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetVScrollBar[1] = {{ wxLua_wxStyledTextCtrl_SetVScrollBar, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetVScrollBar }}; -// void SetVScrollBar(wxScrollBar* bar); -static int LUACALL wxLua_wxStyledTextCtrl_SetVScrollBar(lua_State *L) -{ - // wxScrollBar bar - wxScrollBar * bar = (wxScrollBar *)wxluaT_getuserdatatype(L, 2, wxluatype_wxScrollBar); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetVScrollBar - self->SetVScrollBar(bar); - - return 0; -} - -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetViewEOL[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetViewEOL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetViewEOL[1] = {{ wxLua_wxStyledTextCtrl_SetViewEOL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetViewEOL }}; -// void SetViewEOL(bool visible); -static int LUACALL wxLua_wxStyledTextCtrl_SetViewEOL(lua_State *L) -{ - // bool visible - bool visible = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetViewEOL - self->SetViewEOL(visible); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetViewWhiteSpace[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetViewWhiteSpace(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetViewWhiteSpace[1] = {{ wxLua_wxStyledTextCtrl_SetViewWhiteSpace, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetViewWhiteSpace }}; -// void SetViewWhiteSpace(int viewWS); -static int LUACALL wxLua_wxStyledTextCtrl_SetViewWhiteSpace(lua_State *L) -{ - // int viewWS - int viewWS = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetViewWhiteSpace - self->SetViewWhiteSpace(viewWS); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions[1] = {{ wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions }}; -// %wxchkver_2_9_5 void SetVirtualSpaceOptions(int virtualSpaceOptions); -static int LUACALL wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions(lua_State *L) -{ - // int virtualSpaceOptions - int virtualSpaceOptions = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetVirtualSpaceOptions - self->SetVirtualSpaceOptions(virtualSpaceOptions); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetVisiblePolicy[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetVisiblePolicy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetVisiblePolicy[1] = {{ wxLua_wxStyledTextCtrl_SetVisiblePolicy, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetVisiblePolicy }}; -// void SetVisiblePolicy(int visiblePolicy, int visibleSlop); -static int LUACALL wxLua_wxStyledTextCtrl_SetVisiblePolicy(lua_State *L) -{ - // int visibleSlop - int visibleSlop = (int)wxlua_getnumbertype(L, 3); - // int visiblePolicy - int visiblePolicy = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetVisiblePolicy - self->SetVisiblePolicy(visiblePolicy, visibleSlop); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceBackground[1] = {{ wxLua_wxStyledTextCtrl_SetWhitespaceBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceBackground }}; -// void SetWhitespaceBackground(bool useSetting, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWhitespaceBackground - self->SetWhitespaceBackground(useSetting, *back); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceChars[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceChars[1] = {{ wxLua_wxStyledTextCtrl_SetWhitespaceChars, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceChars }}; -// void SetWhitespaceChars(const wxString& characters); -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceChars(lua_State *L) -{ - // const wxString characters - const wxString characters = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWhitespaceChars - self->SetWhitespaceChars(characters); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceForeground[1] = {{ wxLua_wxStyledTextCtrl_SetWhitespaceForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceForeground }}; -// void SetWhitespaceForeground(bool useSetting, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // bool useSetting - bool useSetting = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWhitespaceForeground - self->SetWhitespaceForeground(useSetting, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceSize[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceSize[1] = {{ wxLua_wxStyledTextCtrl_SetWhitespaceSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWhitespaceSize }}; -// %wxchkver_2_9_5 void SetWhitespaceSize(int size); -static int LUACALL wxLua_wxStyledTextCtrl_SetWhitespaceSize(lua_State *L) -{ - // int size - int size = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWhitespaceSize - self->SetWhitespaceSize(size); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWordChars[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWordChars(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWordChars[1] = {{ wxLua_wxStyledTextCtrl_SetWordChars, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWordChars }}; -// void SetWordChars(const wxString& characters); -static int LUACALL wxLua_wxStyledTextCtrl_SetWordChars(lua_State *L) -{ - // const wxString characters - const wxString characters = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWordChars - self->SetWordChars(characters); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapIndentMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapIndentMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapIndentMode[1] = {{ wxLua_wxStyledTextCtrl_SetWrapIndentMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapIndentMode }}; -// %wxchkver_2_9_5 void SetWrapIndentMode(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapIndentMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWrapIndentMode - self->SetWrapIndentMode(mode); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapMode[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapMode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapMode[1] = {{ wxLua_wxStyledTextCtrl_SetWrapMode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapMode }}; -// void SetWrapMode(int mode); -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapMode(lua_State *L) -{ - // int mode - int mode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWrapMode - self->SetWrapMode(mode); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapStartIndent[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapStartIndent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapStartIndent[1] = {{ wxLua_wxStyledTextCtrl_SetWrapStartIndent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapStartIndent }}; -// void SetWrapStartIndent(int indent); -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapStartIndent(lua_State *L) -{ - // int indent - int indent = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWrapStartIndent - self->SetWrapStartIndent(indent); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapVisualFlags[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapVisualFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapVisualFlags[1] = {{ wxLua_wxStyledTextCtrl_SetWrapVisualFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapVisualFlags }}; -// void SetWrapVisualFlags(int wrapVisualFlags); -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapVisualFlags(lua_State *L) -{ - // int wrapVisualFlags - int wrapVisualFlags = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWrapVisualFlags - self->SetWrapVisualFlags(wrapVisualFlags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation[1] = {{ wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation }}; -// void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation); -static int LUACALL wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation(lua_State *L) -{ - // int wrapVisualFlagsLocation - int wrapVisualFlagsLocation = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetWrapVisualFlagsLocation - self->SetWrapVisualFlagsLocation(wrapVisualFlagsLocation); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetXCaretPolicy[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetXCaretPolicy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetXCaretPolicy[1] = {{ wxLua_wxStyledTextCtrl_SetXCaretPolicy, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetXCaretPolicy }}; -// void SetXCaretPolicy(int caretPolicy, int caretSlop); -static int LUACALL wxLua_wxStyledTextCtrl_SetXCaretPolicy(lua_State *L) -{ - // int caretSlop - int caretSlop = (int)wxlua_getnumbertype(L, 3); - // int caretPolicy - int caretPolicy = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetXCaretPolicy - self->SetXCaretPolicy(caretPolicy, caretSlop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetXOffset[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetXOffset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetXOffset[1] = {{ wxLua_wxStyledTextCtrl_SetXOffset, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetXOffset }}; -// void SetXOffset(int newOffset); -static int LUACALL wxLua_wxStyledTextCtrl_SetXOffset(lua_State *L) -{ - // int newOffset - int newOffset = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetXOffset - self->SetXOffset(newOffset); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetYCaretPolicy[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetYCaretPolicy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetYCaretPolicy[1] = {{ wxLua_wxStyledTextCtrl_SetYCaretPolicy, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetYCaretPolicy }}; -// void SetYCaretPolicy(int caretPolicy, int caretSlop); -static int LUACALL wxLua_wxStyledTextCtrl_SetYCaretPolicy(lua_State *L) -{ - // int caretSlop - int caretSlop = (int)wxlua_getnumbertype(L, 3); - // int caretPolicy - int caretPolicy = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetYCaretPolicy - self->SetYCaretPolicy(caretPolicy, caretSlop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetZoom[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SetZoom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetZoom[1] = {{ wxLua_wxStyledTextCtrl_SetZoom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetZoom }}; -// void SetZoom(int zoom); -static int LUACALL wxLua_wxStyledTextCtrl_SetZoom(lua_State *L) -{ - // int zoom - int zoom = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SetZoom - self->SetZoom(zoom); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ShowLines[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ShowLines(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ShowLines[1] = {{ wxLua_wxStyledTextCtrl_ShowLines, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ShowLines }}; -// void ShowLines(int lineStart, int lineEnd); -static int LUACALL wxLua_wxStyledTextCtrl_ShowLines(lua_State *L) -{ - // int lineEnd - int lineEnd = (int)wxlua_getnumbertype(L, 3); - // int lineStart - int lineStart = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ShowLines - self->ShowLines(lineStart, lineEnd); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartRecord[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StartRecord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StartRecord[1] = {{ wxLua_wxStyledTextCtrl_StartRecord, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartRecord }}; -// void StartRecord(); -static int LUACALL wxLua_wxStyledTextCtrl_StartRecord(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StartRecord - self->StartRecord(); - - return 0; -} - - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartStyling1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StartStyling1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling1[1] = {{ wxLua_wxStyledTextCtrl_StartStyling1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartStyling1 }}; -// !%wxchkver_3_1_1 || %wxcompat_3_0 void StartStyling(int pos, unsigned int mask); -static int LUACALL wxLua_wxStyledTextCtrl_StartStyling1(lua_State *L) -{ - // unsigned int mask - unsigned int mask = (unsigned int)wxlua_getuintegertype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StartStyling - self->StartStyling(pos, mask); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartStyling[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StartStyling(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling[1] = {{ wxLua_wxStyledTextCtrl_StartStyling, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartStyling }}; -// %wxchkver_3_1_1 void StartStyling(int pos); -static int LUACALL wxLua_wxStyledTextCtrl_StartStyling(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StartStyling - self->StartStyling(pos); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StopRecord[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StopRecord(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StopRecord[1] = {{ wxLua_wxStyledTextCtrl_StopRecord, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StopRecord }}; -// void StopRecord(); -static int LUACALL wxLua_wxStyledTextCtrl_StopRecord(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StopRecord - self->StopRecord(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageDown[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageDown(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageDown[1] = {{ wxLua_wxStyledTextCtrl_StutteredPageDown, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageDown }}; -// void StutteredPageDown(); -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageDown(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StutteredPageDown - self->StutteredPageDown(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageDownExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageDownExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageDownExtend[1] = {{ wxLua_wxStyledTextCtrl_StutteredPageDownExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageDownExtend }}; -// void StutteredPageDownExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageDownExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StutteredPageDownExtend - self->StutteredPageDownExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageUp[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageUp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageUp[1] = {{ wxLua_wxStyledTextCtrl_StutteredPageUp, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageUp }}; -// void StutteredPageUp(); -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageUp(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StutteredPageUp - self->StutteredPageUp(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageUpExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageUpExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageUpExtend[1] = {{ wxLua_wxStyledTextCtrl_StutteredPageUpExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StutteredPageUpExtend }}; -// void StutteredPageUpExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_StutteredPageUpExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StutteredPageUpExtend - self->StutteredPageUpExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleClearAll[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleClearAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleClearAll[1] = {{ wxLua_wxStyledTextCtrl_StyleClearAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleClearAll }}; -// void StyleClearAll(); -static int LUACALL wxLua_wxStyledTextCtrl_StyleClearAll(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleClearAll - self->StyleClearAll(); - - return 0; -} - - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetBackground[1] = {{ wxLua_wxStyledTextCtrl_StyleGetBackground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetBackground }}; -// %wxchkver_2_9_5 wxColour StyleGetBackground(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetBackground(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetBackground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->StyleGetBackground(style)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetBold[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetBold[1] = {{ wxLua_wxStyledTextCtrl_StyleGetBold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetBold }}; -// %wxchkver_2_9_5 bool StyleGetBold(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetBold(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetBold - bool returns = (self->StyleGetBold(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetCase[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetCase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetCase[1] = {{ wxLua_wxStyledTextCtrl_StyleGetCase, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetCase }}; -// %wxchkver_2_9_5 int StyleGetCase(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetCase(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetCase - int returns = (self->StyleGetCase(style)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetChangeable[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetChangeable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetChangeable[1] = {{ wxLua_wxStyledTextCtrl_StyleGetChangeable, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetChangeable }}; -// %wxchkver_2_9_5 bool StyleGetChangeable(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetChangeable(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetChangeable - bool returns = (self->StyleGetChangeable(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetCharacterSet[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetCharacterSet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetCharacterSet[1] = {{ wxLua_wxStyledTextCtrl_StyleGetCharacterSet, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetCharacterSet }}; -// %wxchkver_2_9_5 int StyleGetCharacterSet(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetCharacterSet(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetCharacterSet - int returns = (self->StyleGetCharacterSet(style)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetEOLFilled[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetEOLFilled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetEOLFilled[1] = {{ wxLua_wxStyledTextCtrl_StyleGetEOLFilled, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetEOLFilled }}; -// %wxchkver_2_9_5 bool StyleGetEOLFilled(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetEOLFilled(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetEOLFilled - bool returns = (self->StyleGetEOLFilled(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetFaceName[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetFaceName[1] = {{ wxLua_wxStyledTextCtrl_StyleGetFaceName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetFaceName }}; -// %wxchkver_2_9_5 wxString StyleGetFaceName(int style); -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetFaceName(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetFaceName - wxString returns = (self->StyleGetFaceName(style)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxFont) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetFont[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetFont[1] = {{ wxLua_wxStyledTextCtrl_StyleGetFont, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetFont }}; -// %wxchkver_2_9_5 wxFont StyleGetFont(int style); -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetFont(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetFont - // allocate a new object using the copy constructor - wxFont* returns = new wxFont(self->StyleGetFont(style)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxFont); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFont); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetForeground[1] = {{ wxLua_wxStyledTextCtrl_StyleGetForeground, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetForeground }}; -// %wxchkver_2_9_5 wxColour StyleGetForeground(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetForeground(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetForeground - // allocate a new object using the copy constructor - wxColour* returns = new wxColour(self->StyleGetForeground(style)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxColour); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxColour); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetHotSpot[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetHotSpot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetHotSpot[1] = {{ wxLua_wxStyledTextCtrl_StyleGetHotSpot, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetHotSpot }}; -// %wxchkver_2_9_5 bool StyleGetHotSpot(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetHotSpot(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetHotSpot - bool returns = (self->StyleGetHotSpot(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetItalic[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetItalic[1] = {{ wxLua_wxStyledTextCtrl_StyleGetItalic, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetItalic }}; -// %wxchkver_2_9_5 bool StyleGetItalic(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetItalic(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetItalic - bool returns = (self->StyleGetItalic(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetSize[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetSize[1] = {{ wxLua_wxStyledTextCtrl_StyleGetSize, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetSize }}; -// %wxchkver_2_9_5 int StyleGetSize(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetSize(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetSize - int returns = (self->StyleGetSize(style)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetSizeFractional[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetSizeFractional(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetSizeFractional[1] = {{ wxLua_wxStyledTextCtrl_StyleGetSizeFractional, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetSizeFractional }}; -// %wxchkver_2_9_5 int StyleGetSizeFractional(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetSizeFractional(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetSizeFractional - int returns = (self->StyleGetSizeFractional(style)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetUnderline[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetUnderline[1] = {{ wxLua_wxStyledTextCtrl_StyleGetUnderline, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetUnderline }}; -// %wxchkver_2_9_5 bool StyleGetUnderline(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetUnderline(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetUnderline - bool returns = (self->StyleGetUnderline(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetVisible[1] = {{ wxLua_wxStyledTextCtrl_StyleGetVisible, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetVisible }}; -// %wxchkver_2_9_5 bool StyleGetVisible(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetVisible(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetVisible - bool returns = (self->StyleGetVisible(style)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetWeight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetWeight[1] = {{ wxLua_wxStyledTextCtrl_StyleGetWeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleGetWeight }}; -// %wxchkver_2_9_5 int StyleGetWeight(int style) const; -static int LUACALL wxLua_wxStyledTextCtrl_StyleGetWeight(lua_State *L) -{ - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleGetWeight - int returns = (self->StyleGetWeight(style)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleResetDefault[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleResetDefault(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleResetDefault[1] = {{ wxLua_wxStyledTextCtrl_StyleResetDefault, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleResetDefault }}; -// void StyleResetDefault(); -static int LUACALL wxLua_wxStyledTextCtrl_StyleResetDefault(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleResetDefault - self->StyleResetDefault(); - - return 0; -} - - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetBackground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetBackground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetBackground[1] = {{ wxLua_wxStyledTextCtrl_StyleSetBackground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetBackground }}; -// void StyleSetBackground(int style, const wxColour& back); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetBackground(lua_State *L) -{ - // const wxColour back - const wxColour * back = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetBackground - self->StyleSetBackground(style, *back); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetBold[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetBold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetBold[1] = {{ wxLua_wxStyledTextCtrl_StyleSetBold, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetBold }}; -// void StyleSetBold(int style, bool bold); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetBold(lua_State *L) -{ - // bool bold - bool bold = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetBold - self->StyleSetBold(style, bold); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetCase[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetCase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetCase[1] = {{ wxLua_wxStyledTextCtrl_StyleSetCase, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetCase }}; -// void StyleSetCase(int style, int caseForce); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetCase(lua_State *L) -{ - // int caseForce - int caseForce = (int)wxlua_getnumbertype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetCase - self->StyleSetCase(style, caseForce); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetChangeable[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetChangeable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetChangeable[1] = {{ wxLua_wxStyledTextCtrl_StyleSetChangeable, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetChangeable }}; -// void StyleSetChangeable(int style, bool changeable); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetChangeable(lua_State *L) -{ - // bool changeable - bool changeable = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetChangeable - self->StyleSetChangeable(style, changeable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetCharacterSet[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetCharacterSet(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetCharacterSet[1] = {{ wxLua_wxStyledTextCtrl_StyleSetCharacterSet, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetCharacterSet }}; -// void StyleSetCharacterSet(int style, int characterSet); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetCharacterSet(lua_State *L) -{ - // int characterSet - int characterSet = (int)wxlua_getnumbertype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetCharacterSet - self->StyleSetCharacterSet(style, characterSet); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetEOLFilled[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetEOLFilled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetEOLFilled[1] = {{ wxLua_wxStyledTextCtrl_StyleSetEOLFilled, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetEOLFilled }}; -// void StyleSetEOLFilled(int style, bool filled); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetEOLFilled(lua_State *L) -{ - // bool filled - bool filled = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetEOLFilled - self->StyleSetEOLFilled(style, filled); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFaceName[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFaceName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFaceName[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFaceName, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFaceName }}; -// void StyleSetFaceName(int style, const wxString& fontName); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFaceName(lua_State *L) -{ - // const wxString fontName - const wxString fontName = wxlua_getwxStringtype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetFaceName - self->StyleSetFaceName(style, fontName); - - return 0; -} - - -#if wxLUA_USE_wxFont -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFont[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxFont, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFont(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFont[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFont, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFont }}; -// void StyleSetFont(int styleNum, wxFont& font); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFont(lua_State *L) -{ - // wxFont font - wxFont * font = (wxFont *)wxluaT_getuserdatatype(L, 3, wxluatype_wxFont); - // int styleNum - int styleNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetFont - self->StyleSetFont(styleNum, *font); - - return 0; -} - -#endif // wxLUA_USE_wxFont - -#if wxUSE_INTL -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFontAttr[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TBOOLEAN, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontAttr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontAttr[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFontAttr, WXLUAMETHOD_METHOD, 7, 8, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFontAttr }}; -// void StyleSetFontAttr(int styleNum, int size, const wxString& faceName, bool bold, bool italic, bool underline, wxFontEncoding encoding=wxFONTENCODING_DEFAULT); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontAttr(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxFontEncoding encoding = wxFONTENCODING_DEFAULT - wxFontEncoding encoding = (argCount >= 8 ? (wxFontEncoding)wxlua_getenumtype(L, 8) : wxFONTENCODING_DEFAULT); - // bool underline - bool underline = wxlua_getbooleantype(L, 7); - // bool italic - bool italic = wxlua_getbooleantype(L, 6); - // bool bold - bool bold = wxlua_getbooleantype(L, 5); - // const wxString faceName - const wxString faceName = wxlua_getwxStringtype(L, 4); - // int size - int size = (int)wxlua_getnumbertype(L, 3); - // int styleNum - int styleNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetFontAttr - self->StyleSetFontAttr(styleNum, size, faceName, bold, italic, underline, encoding); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFontEncoding[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontEncoding[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFontEncoding, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetFontEncoding }}; -// void StyleSetFontEncoding(int style, wxFontEncoding encoding); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontEncoding(lua_State *L) -{ - // wxFontEncoding encoding - wxFontEncoding encoding = (wxFontEncoding)wxlua_getenumtype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetFontEncoding - self->StyleSetFontEncoding(style, encoding); - - return 0; -} - -#endif // wxUSE_INTL - -#if wxLUA_USE_wxColourPenBrush -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetForeground[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_wxColour, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetForeground(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetForeground[1] = {{ wxLua_wxStyledTextCtrl_StyleSetForeground, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetForeground }}; -// void StyleSetForeground(int style, const wxColour& fore); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetForeground(lua_State *L) -{ - // const wxColour fore - const wxColour * fore = (const wxColour *)wxluaT_getuserdatatype(L, 3, wxluatype_wxColour); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetForeground - self->StyleSetForeground(style, *fore); - - return 0; -} - -#endif // wxLUA_USE_wxColourPenBrush - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetHotSpot[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetHotSpot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetHotSpot[1] = {{ wxLua_wxStyledTextCtrl_StyleSetHotSpot, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetHotSpot }}; -// void StyleSetHotSpot(int style, bool hotspot); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetHotSpot(lua_State *L) -{ - // bool hotspot - bool hotspot = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetHotSpot - self->StyleSetHotSpot(style, hotspot); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetItalic[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetItalic(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetItalic[1] = {{ wxLua_wxStyledTextCtrl_StyleSetItalic, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetItalic }}; -// void StyleSetItalic(int style, bool italic); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetItalic(lua_State *L) -{ - // bool italic - bool italic = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetItalic - self->StyleSetItalic(style, italic); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetSize[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetSize(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetSize[1] = {{ wxLua_wxStyledTextCtrl_StyleSetSize, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetSize }}; -// void StyleSetSize(int style, int sizePoints); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetSize(lua_State *L) -{ - // int sizePoints - int sizePoints = (int)wxlua_getnumbertype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetSize - self->StyleSetSize(style, sizePoints); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetSizeFractional[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetSizeFractional(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetSizeFractional[1] = {{ wxLua_wxStyledTextCtrl_StyleSetSizeFractional, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetSizeFractional }}; -// %wxchkver_2_9_5 void StyleSetSizeFractional(int style, int caseForce); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetSizeFractional(lua_State *L) -{ - // int caseForce - int caseForce = (int)wxlua_getnumbertype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetSizeFractional - self->StyleSetSizeFractional(style, caseForce); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetSpec[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetSpec(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetSpec[1] = {{ wxLua_wxStyledTextCtrl_StyleSetSpec, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetSpec }}; -// void StyleSetSpec(int styleNum, const wxString& spec); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetSpec(lua_State *L) -{ - // const wxString spec - const wxString spec = wxlua_getwxStringtype(L, 3); - // int styleNum - int styleNum = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetSpec - self->StyleSetSpec(styleNum, spec); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetUnderline[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetUnderline(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetUnderline[1] = {{ wxLua_wxStyledTextCtrl_StyleSetUnderline, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetUnderline }}; -// void StyleSetUnderline(int style, bool underline); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetUnderline(lua_State *L) -{ - // bool underline - bool underline = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetUnderline - self->StyleSetUnderline(style, underline); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetVisible[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetVisible(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetVisible[1] = {{ wxLua_wxStyledTextCtrl_StyleSetVisible, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetVisible }}; -// void StyleSetVisible(int style, bool visible); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetVisible(lua_State *L) -{ - // bool visible - bool visible = wxlua_getbooleantype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetVisible - self->StyleSetVisible(style, visible); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetWeight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetWeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetWeight[1] = {{ wxLua_wxStyledTextCtrl_StyleSetWeight, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StyleSetWeight }}; -// %wxchkver_2_9_5 void StyleSetWeight(int style, int weight); -static int LUACALL wxLua_wxStyledTextCtrl_StyleSetWeight(lua_State *L) -{ - // int weight - int weight = (int)wxlua_getnumbertype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call StyleSetWeight - self->StyleSetWeight(style, weight); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_SwapMainAnchorCaret[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_SwapMainAnchorCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SwapMainAnchorCaret[1] = {{ wxLua_wxStyledTextCtrl_SwapMainAnchorCaret, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SwapMainAnchorCaret }}; -// %wxchkver_2_9_5 void SwapMainAnchorCaret(); -static int LUACALL wxLua_wxStyledTextCtrl_SwapMainAnchorCaret(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call SwapMainAnchorCaret - self->SwapMainAnchorCaret(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Tab[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Tab(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Tab[1] = {{ wxLua_wxStyledTextCtrl_Tab, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Tab }}; -// void Tab(); -static int LUACALL wxLua_wxStyledTextCtrl_Tab(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Tab - self->Tab(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_TargetFromSelection[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_TargetFromSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_TargetFromSelection[1] = {{ wxLua_wxStyledTextCtrl_TargetFromSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_TargetFromSelection }}; -// void TargetFromSelection(); -static int LUACALL wxLua_wxStyledTextCtrl_TargetFromSelection(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call TargetFromSelection - self->TargetFromSelection(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_TargetWholeDocument[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_TargetWholeDocument(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_TargetWholeDocument[1] = {{ wxLua_wxStyledTextCtrl_TargetWholeDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_TargetWholeDocument }}; -// %wxchkver_3_1_1 void TargetWholeDocument(); -static int LUACALL wxLua_wxStyledTextCtrl_TargetWholeDocument(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call TargetWholeDocument - self->TargetWholeDocument(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_TextHeight[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_TextHeight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_TextHeight[1] = {{ wxLua_wxStyledTextCtrl_TextHeight, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_TextHeight }}; -// int TextHeight(int line); -static int LUACALL wxLua_wxStyledTextCtrl_TextHeight(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call TextHeight - int returns = (self->TextHeight(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_TextWidth[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_TextWidth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_TextWidth[1] = {{ wxLua_wxStyledTextCtrl_TextWidth, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_TextWidth }}; -// int TextWidth(int style, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_TextWidth(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int style - int style = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call TextWidth - int returns = (self->TextWidth(style, text)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ToggleCaretSticky[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ToggleCaretSticky(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ToggleCaretSticky[1] = {{ wxLua_wxStyledTextCtrl_ToggleCaretSticky, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ToggleCaretSticky }}; -// void ToggleCaretSticky(); -static int LUACALL wxLua_wxStyledTextCtrl_ToggleCaretSticky(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ToggleCaretSticky - self->ToggleCaretSticky(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ToggleFold[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ToggleFold(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ToggleFold[1] = {{ wxLua_wxStyledTextCtrl_ToggleFold, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ToggleFold }}; -// void ToggleFold(int line); -static int LUACALL wxLua_wxStyledTextCtrl_ToggleFold(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ToggleFold - self->ToggleFold(line); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,1) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ToggleFoldShowText[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ToggleFoldShowText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ToggleFoldShowText[1] = {{ wxLua_wxStyledTextCtrl_ToggleFoldShowText, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ToggleFoldShowText }}; -// %wxchkver_3_1_1 void ToggleFoldShowText(int line, const wxString& text); -static int LUACALL wxLua_wxStyledTextCtrl_ToggleFoldShowText(lua_State *L) -{ - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 3); - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ToggleFoldShowText - self->ToggleFoldShowText(line, text); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,1) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_Undo[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_Undo[1] = {{ wxLua_wxStyledTextCtrl_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_Undo }}; -// void Undo(); -static int LUACALL wxLua_wxStyledTextCtrl_Undo(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call Undo - self->Undo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_UpperCase[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_UpperCase(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_UpperCase[1] = {{ wxLua_wxStyledTextCtrl_UpperCase, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_UpperCase }}; -// void UpperCase(); -static int LUACALL wxLua_wxStyledTextCtrl_UpperCase(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call UpperCase - self->UpperCase(); - - return 0; -} - - -#if !wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_UsePopUp1[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_UsePopUp1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp1[1] = {{ wxLua_wxStyledTextCtrl_UsePopUp1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_UsePopUp1 }}; -// !%wxchkver_3_0_0 void UsePopUp(bool allowPopUp); -static int LUACALL wxLua_wxStyledTextCtrl_UsePopUp1(lua_State *L) -{ - // bool allowPopUp - bool allowPopUp = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call UsePopUp - self->UsePopUp(allowPopUp); - - return 0; -} - -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_UsePopUp[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_UsePopUp(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp[1] = {{ wxLua_wxStyledTextCtrl_UsePopUp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_UsePopUp }}; -// %wxchkver_3_0_0 void UsePopUp(int popUpMode); -static int LUACALL wxLua_wxStyledTextCtrl_UsePopUp(lua_State *L) -{ - // int popUpMode - int popUpMode = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call UsePopUp - self->UsePopUp(popUpMode); - - return 0; -} - -#endif // wxCHECK_VERSION(3,0,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_UserListShow[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_UserListShow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_UserListShow[1] = {{ wxLua_wxStyledTextCtrl_UserListShow, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_UserListShow }}; -// void UserListShow(int listType, const wxString& itemList); -static int LUACALL wxLua_wxStyledTextCtrl_UserListShow(lua_State *L) -{ - // const wxString itemList - const wxString itemList = wxlua_getwxStringtype(L, 3); - // int listType - int listType = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call UserListShow - self->UserListShow(listType, itemList); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHome[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHome(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHome[1] = {{ wxLua_wxStyledTextCtrl_VCHome, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHome }}; -// void VCHome(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHome(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHome - self->VCHome(); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeDisplay[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeDisplay(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeDisplay[1] = {{ wxLua_wxStyledTextCtrl_VCHomeDisplay, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeDisplay }}; -// %wxchkver_3_1_0 void VCHomeDisplay(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeDisplay(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHomeDisplay - self->VCHomeDisplay(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeDisplayExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeDisplayExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeDisplayExtend[1] = {{ wxLua_wxStyledTextCtrl_VCHomeDisplayExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeDisplayExtend }}; -// %wxchkver_3_1_0 void VCHomeDisplayExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeDisplayExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHomeDisplayExtend - self->VCHomeDisplayExtend(); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeExtend[1] = {{ wxLua_wxStyledTextCtrl_VCHomeExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeExtend }}; -// void VCHomeExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHomeExtend - self->VCHomeExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeRectExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeRectExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeRectExtend[1] = {{ wxLua_wxStyledTextCtrl_VCHomeRectExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeRectExtend }}; -// void VCHomeRectExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeRectExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHomeRectExtend - self->VCHomeRectExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeWrap[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeWrap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeWrap[1] = {{ wxLua_wxStyledTextCtrl_VCHomeWrap, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeWrap }}; -// void VCHomeWrap(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeWrap(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHomeWrap - self->VCHomeWrap(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeWrapExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeWrapExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeWrapExtend[1] = {{ wxLua_wxStyledTextCtrl_VCHomeWrapExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VCHomeWrapExtend }}; -// void VCHomeWrapExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_VCHomeWrapExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VCHomeWrapExtend - self->VCHomeWrapExtend(); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VerticalCentreCaret[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VerticalCentreCaret(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VerticalCentreCaret[1] = {{ wxLua_wxStyledTextCtrl_VerticalCentreCaret, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VerticalCentreCaret }}; -// %wxchkver_2_9_5 void VerticalCentreCaret(); -static int LUACALL wxLua_wxStyledTextCtrl_VerticalCentreCaret(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VerticalCentreCaret - self->VerticalCentreCaret(); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_VisibleFromDocLine[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_VisibleFromDocLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_VisibleFromDocLine[1] = {{ wxLua_wxStyledTextCtrl_VisibleFromDocLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_VisibleFromDocLine }}; -// int VisibleFromDocLine(int line); -static int LUACALL wxLua_wxStyledTextCtrl_VisibleFromDocLine(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call VisibleFromDocLine - int returns = (self->VisibleFromDocLine(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordEndPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordEndPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordEndPosition[1] = {{ wxLua_wxStyledTextCtrl_WordEndPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordEndPosition }}; -// int WordEndPosition(int pos, bool onlyWordCharacters); -static int LUACALL wxLua_wxStyledTextCtrl_WordEndPosition(lua_State *L) -{ - // bool onlyWordCharacters - bool onlyWordCharacters = wxlua_getbooleantype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordEndPosition - int returns = (self->WordEndPosition(pos, onlyWordCharacters)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeft[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeft[1] = {{ wxLua_wxStyledTextCtrl_WordLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeft }}; -// void WordLeft(); -static int LUACALL wxLua_wxStyledTextCtrl_WordLeft(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordLeft - self->WordLeft(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeftEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordLeftEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeftEnd[1] = {{ wxLua_wxStyledTextCtrl_WordLeftEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeftEnd }}; -// void WordLeftEnd(); -static int LUACALL wxLua_wxStyledTextCtrl_WordLeftEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordLeftEnd - self->WordLeftEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeftEndExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordLeftEndExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeftEndExtend[1] = {{ wxLua_wxStyledTextCtrl_WordLeftEndExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeftEndExtend }}; -// void WordLeftEndExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_WordLeftEndExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordLeftEndExtend - self->WordLeftEndExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeftExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordLeftExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeftExtend[1] = {{ wxLua_wxStyledTextCtrl_WordLeftExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordLeftExtend }}; -// void WordLeftExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_WordLeftExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordLeftExtend - self->WordLeftExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartLeft[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordPartLeft(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartLeft[1] = {{ wxLua_wxStyledTextCtrl_WordPartLeft, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartLeft }}; -// void WordPartLeft(); -static int LUACALL wxLua_wxStyledTextCtrl_WordPartLeft(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordPartLeft - self->WordPartLeft(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartLeftExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordPartLeftExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartLeftExtend[1] = {{ wxLua_wxStyledTextCtrl_WordPartLeftExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartLeftExtend }}; -// void WordPartLeftExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_WordPartLeftExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordPartLeftExtend - self->WordPartLeftExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartRight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordPartRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartRight[1] = {{ wxLua_wxStyledTextCtrl_WordPartRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartRight }}; -// void WordPartRight(); -static int LUACALL wxLua_wxStyledTextCtrl_WordPartRight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordPartRight - self->WordPartRight(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartRightExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordPartRightExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartRightExtend[1] = {{ wxLua_wxStyledTextCtrl_WordPartRightExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordPartRightExtend }}; -// void WordPartRightExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_WordPartRightExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordPartRightExtend - self->WordPartRightExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRight[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordRight(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordRight[1] = {{ wxLua_wxStyledTextCtrl_WordRight, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRight }}; -// void WordRight(); -static int LUACALL wxLua_wxStyledTextCtrl_WordRight(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordRight - self->WordRight(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRightEnd[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordRightEnd(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordRightEnd[1] = {{ wxLua_wxStyledTextCtrl_WordRightEnd, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRightEnd }}; -// void WordRightEnd(); -static int LUACALL wxLua_wxStyledTextCtrl_WordRightEnd(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordRightEnd - self->WordRightEnd(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRightEndExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordRightEndExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordRightEndExtend[1] = {{ wxLua_wxStyledTextCtrl_WordRightEndExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRightEndExtend }}; -// void WordRightEndExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_WordRightEndExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordRightEndExtend - self->WordRightEndExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRightExtend[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordRightExtend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordRightExtend[1] = {{ wxLua_wxStyledTextCtrl_WordRightExtend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordRightExtend }}; -// void WordRightExtend(); -static int LUACALL wxLua_wxStyledTextCtrl_WordRightExtend(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordRightExtend - self->WordRightExtend(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordStartPosition[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WordStartPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WordStartPosition[1] = {{ wxLua_wxStyledTextCtrl_WordStartPosition, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WordStartPosition }}; -// int WordStartPosition(int pos, bool onlyWordCharacters); -static int LUACALL wxLua_wxStyledTextCtrl_WordStartPosition(lua_State *L) -{ - // bool onlyWordCharacters - bool onlyWordCharacters = wxlua_getbooleantype(L, 3); - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WordStartPosition - int returns = (self->WordStartPosition(pos, onlyWordCharacters)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_WrapCount[] = { &wxluatype_wxStyledTextCtrl, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_WrapCount(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_WrapCount[1] = {{ wxLua_wxStyledTextCtrl_WrapCount, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_WrapCount }}; -// int WrapCount(int line); -static int LUACALL wxLua_wxStyledTextCtrl_WrapCount(lua_State *L) -{ - // int line - int line = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call WrapCount - int returns = (self->WrapCount(line)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ZoomIn[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ZoomIn(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ZoomIn[1] = {{ wxLua_wxStyledTextCtrl_ZoomIn, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ZoomIn }}; -// void ZoomIn(); -static int LUACALL wxLua_wxStyledTextCtrl_ZoomIn(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ZoomIn - self->ZoomIn(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_ZoomOut[] = { &wxluatype_wxStyledTextCtrl, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_ZoomOut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_ZoomOut[1] = {{ wxLua_wxStyledTextCtrl_ZoomOut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_ZoomOut }}; -// void ZoomOut(); -static int LUACALL wxLua_wxStyledTextCtrl_ZoomOut(lua_State *L) -{ - // get this - wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); - // call ZoomOut - self->ZoomOut(); - - return 0; -} - - -#if wxLUA_USE_wxPointSizeRect -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextCtrl_constructor[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextCtrl_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_constructor[1] = {{ wxLua_wxStyledTextCtrl_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 6, s_wxluatypeArray_wxLua_wxStyledTextCtrl_constructor }}; -// wxStyledTextCtrl(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString &name = "wxStyledTextCtrl"); -static int LUACALL wxLua_wxStyledTextCtrl_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = "wxStyledTextCtrl" - const wxString name = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxT("wxStyledTextCtrl"))); - // long style = 0 - long style = (argCount >= 5 ? (long)wxlua_getnumbertype(L, 5) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 4 ? (const wxSize *)wxluaT_getuserdatatype(L, 4, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 3 ? (const wxPoint *)wxluaT_getuserdatatype(L, 3, wxluatype_wxPoint) : &wxDefaultPosition); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call constructor - wxStyledTextCtrl* returns = new wxStyledTextCtrl(parent, id, *pos, *size, style, name); - // add to tracked window list, it will check validity - wxluaW_addtrackedwindow(L, returns); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStyledTextCtrl); - - return 1; -} - -#endif // wxLUA_USE_wxPointSizeRect - - - -#if (wxCHECK_VERSION(3,2,2))||(!wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection_overload[] = -{ - -#if wxCHECK_VERSION(3,2,2) - { wxLua_wxStyledTextCtrl_AddSelection1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddSelection1 }, -#endif // wxCHECK_VERSION(3,2,2) - -#if !wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5) - { wxLua_wxStyledTextCtrl_AddSelection, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_AddSelection }, -#endif // !wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxCHECK_VERSION(3,2,2))||(!wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5)) - -#if (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,1) - { wxLua_wxStyledTextCtrl_BraceMatch1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceMatch1 }, -#endif // !wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxStyledTextCtrl_BraceMatch, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_BraceMatch }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(3,1,3)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides_overload[] = -{ - -#if !wxCHECK_VERSION(2,9,5) - { wxLua_wxStyledTextCtrl_GetIndentationGuides1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndentationGuides1 }, -#endif // !wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,3) - { wxLua_wxStyledTextCtrl_GetIndentationGuides, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetIndentationGuides }, -#endif // wxCHECK_VERSION(3,1,3) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(3,1,3)) - -#if (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,1) - { wxLua_wxStyledTextCtrl_GetPropertyInt1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyInt1 }, -#endif // !wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxStyledTextCtrl_GetPropertyInt, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetPropertyInt }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_GetStyleBits1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBits1 }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_GetStyleBits, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBits }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded1 }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_GetStyleBitsNeeded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) - -#if (!wxCHECK_VERSION(3,1,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,0) - { wxLua_wxStyledTextCtrl_GetUseAntiAliasing1, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseAntiAliasing1 }, -#endif // !wxCHECK_VERSION(3,1,0) - -#if !wxCHECK_VERSION(3,1,0) - { wxLua_wxStyledTextCtrl_GetUseAntiAliasing, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextCtrl_GetUseAntiAliasing }, -#endif // !wxCHECK_VERSION(3,1,0) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,0)) - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - { wxLua_wxStyledTextCtrl_MarkerDefineBitmap1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineBitmap1 }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - { wxLua_wxStyledTextCtrl_MarkerDefineBitmap, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_MarkerDefineBitmap }, -#endif // (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap)) - -#if ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint_overload[] = -{ - -#if (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxStyledTextCtrl_PositionFromPoint1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPoint1 }, -#endif // (!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) - { wxLua_wxStyledTextCtrl_PositionFromPoint, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_PositionFromPoint }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect)) - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,3)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage_overload[] = -{ - -#if (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - { wxLua_wxStyledTextCtrl_RegisterImage2, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage2 }, -#endif // (wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - { wxLua_wxStyledTextCtrl_RegisterImage1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage1 }, -#endif // (!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap) - -#if wxCHECK_VERSION(3,1,3) - { wxLua_wxStyledTextCtrl_RegisterImage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_RegisterImage }, -#endif // wxCHECK_VERSION(3,1,3) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,3)) - -#if (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(2,9,5)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky_overload[] = -{ - -#if !wxCHECK_VERSION(2,9,5) - { wxLua_wxStyledTextCtrl_SetCaretSticky1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretSticky1 }, -#endif // !wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) - { wxLua_wxStyledTextCtrl_SetCaretSticky, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetCaretSticky }, -#endif // wxCHECK_VERSION(2,9,5) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides_overload[] = -{ - -#if !wxCHECK_VERSION(2,9,5) - { wxLua_wxStyledTextCtrl_SetIndentationGuides1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndentationGuides1 }, -#endif // !wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) - { wxLua_wxStyledTextCtrl_SetIndentationGuides, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetIndentationGuides }, -#endif // wxCHECK_VERSION(2,9,5) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(2,9,5)) - -#if (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_SetStyleBits1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBits1 }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_SetStyleBits, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetStyleBits }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) - -#if (!wxCHECK_VERSION(3,1,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,0) - { wxLua_wxStyledTextCtrl_SetUseAntiAliasing1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseAntiAliasing1 }, -#endif // !wxCHECK_VERSION(3,1,0) - -#if !wxCHECK_VERSION(3,1,0) - { wxLua_wxStyledTextCtrl_SetUseAntiAliasing, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_SetUseAntiAliasing }, -#endif // !wxCHECK_VERSION(3,1,0) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,0)) - -#if (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0))||(wxCHECK_VERSION(3,1,1)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling_overload[] = -{ - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { wxLua_wxStyledTextCtrl_StartStyling1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartStyling1 }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - -#if wxCHECK_VERSION(3,1,1) - { wxLua_wxStyledTextCtrl_StartStyling, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_StartStyling }, -#endif // wxCHECK_VERSION(3,1,1) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0))||(wxCHECK_VERSION(3,1,1)) - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp_overload[] = -{ - -#if !wxCHECK_VERSION(3,0,0) - { wxLua_wxStyledTextCtrl_UsePopUp1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_UsePopUp1 }, -#endif // !wxCHECK_VERSION(3,0,0) - -#if wxCHECK_VERSION(3,0,0) - { wxLua_wxStyledTextCtrl_UsePopUp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextCtrl_UsePopUp }, -#endif // wxCHECK_VERSION(3,0,0) -}; -static int s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp_overload_count = sizeof(s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp_overload)/sizeof(wxLuaBindCFunc); - -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - -void wxLua_wxStyledTextCtrl_delete_function(void** p) -{ - wxStyledTextCtrl* o = (wxStyledTextCtrl*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStyledTextCtrl_methods[] = { - { "AddRefDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddRefDocument, 1, NULL }, - -#if (wxCHECK_VERSION(3,2,2))||(!wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5)) - { "AddSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_AddSelection_overload_count, 0 }, -#endif // (wxCHECK_VERSION(3,2,2))||(!wxCHECK_VERSION(3,2,2) && wxCHECK_VERSION(2,9,5)) - -#if wxLUA_USE_wxMemoryBuffer - { "AddStyledText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddStyledText, 1, NULL }, -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxCHECK_VERSION(3,1,0) - { "AddTabStop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddTabStop, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "AddText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddText, 1, NULL }, - { "AddTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddTextRaw, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "AddUndoAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AddUndoAction, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "Allocate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Allocate, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "AllocateExtendedStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AllocateExtendedStyles, 1, NULL }, - { "AllocateSubStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AllocateSubStyles, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "AnnotationClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationClearAll, 1, NULL }, - { "AnnotationClearLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationClearLine, 1, NULL }, - { "AnnotationGetLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetLines, 1, NULL }, - { "AnnotationGetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetStyle, 1, NULL }, - { "AnnotationGetStyleOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetStyleOffset, 1, NULL }, - { "AnnotationGetStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetStyles, 1, NULL }, - { "AnnotationGetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetText, 1, NULL }, - { "AnnotationGetVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationGetVisible, 1, NULL }, - { "AnnotationSetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetStyle, 1, NULL }, - { "AnnotationSetStyleOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetStyleOffset, 1, NULL }, - { "AnnotationSetStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetStyles, 1, NULL }, - { "AnnotationSetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetText, 1, NULL }, - { "AnnotationSetVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AnnotationSetVisible, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "AppendText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AppendText, 1, NULL }, - { "AppendTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AppendTextRaw, 1, NULL }, - { "AutoCompActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompActive, 1, NULL }, - { "AutoCompCancel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompCancel, 1, NULL }, - { "AutoCompComplete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompComplete, 1, NULL }, - { "AutoCompGetAutoHide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetAutoHide, 1, NULL }, - { "AutoCompGetCancelAtStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCancelAtStart, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "AutoCompGetCaseInsensitiveBehaviour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCaseInsensitiveBehaviour, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "AutoCompGetChooseSingle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetChooseSingle, 1, NULL }, - { "AutoCompGetCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCurrent, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "AutoCompGetCurrentText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetCurrentText, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "AutoCompGetDropRestOfWord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetDropRestOfWord, 1, NULL }, - { "AutoCompGetIgnoreCase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetIgnoreCase, 1, NULL }, - { "AutoCompGetMaxHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetMaxHeight, 1, NULL }, - { "AutoCompGetMaxWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetMaxWidth, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "AutoCompGetMulti", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetMulti, 1, NULL }, - { "AutoCompGetOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetOrder, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "AutoCompGetSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetSeparator, 1, NULL }, - { "AutoCompGetTypeSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompGetTypeSeparator, 1, NULL }, - { "AutoCompPosStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompPosStart, 1, NULL }, - { "AutoCompSelect", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSelect, 1, NULL }, - { "AutoCompSetAutoHide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetAutoHide, 1, NULL }, - { "AutoCompSetCancelAtStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetCancelAtStart, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "AutoCompSetCaseInsensitiveBehaviour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetCaseInsensitiveBehaviour, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "AutoCompSetChooseSingle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetChooseSingle, 1, NULL }, - { "AutoCompSetDropRestOfWord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetDropRestOfWord, 1, NULL }, - { "AutoCompSetFillUps", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetFillUps, 1, NULL }, - { "AutoCompSetIgnoreCase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetIgnoreCase, 1, NULL }, - { "AutoCompSetMaxHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetMaxHeight, 1, NULL }, - { "AutoCompSetMaxWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetMaxWidth, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "AutoCompSetMulti", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetMulti, 1, NULL }, - { "AutoCompSetOrder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetOrder, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "AutoCompSetSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetSeparator, 1, NULL }, - { "AutoCompSetTypeSeparator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompSetTypeSeparator, 1, NULL }, - { "AutoCompShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompShow, 1, NULL }, - { "AutoCompStops", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompStops, 1, NULL }, - { "BackTab", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BackTab, 1, NULL }, - { "BeginUndoAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BeginUndoAction, 1, NULL }, - { "BraceBadLight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BraceBadLight, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "BraceBadLightIndicator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BraceBadLightIndicator, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "BraceHighlight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BraceHighlight, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "BraceHighlightIndicator", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BraceHighlightIndicator, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) - { "BraceMatch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_BraceMatch_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) - - { "CallTipActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipActive, 1, NULL }, - { "CallTipCancel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipCancel, 1, NULL }, - { "CallTipPosAtStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipPosAtStart, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "CallTipSetBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetBackground, 1, NULL }, - { "CallTipSetForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetForeground, 1, NULL }, - { "CallTipSetForegroundHighlight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetForegroundHighlight, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "CallTipSetHighlight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetHighlight, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "CallTipSetPosAtStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetPosAtStart, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "CallTipSetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipSetPosition, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "CallTipShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipShow, 1, NULL }, - -#if wxCHECK_VERSION(2,8,12) - { "CallTipUseStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CallTipUseStyle, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,12) - - { "CanPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CanPaste, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CanRedo, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CanUndo, 1, NULL }, - { "Cancel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Cancel, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "ChangeInsertion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ChangeInsertion, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "ChangeLexerState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ChangeLexerState, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "CharLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharLeft, 1, NULL }, - { "CharLeftExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharLeftExtend, 1, NULL }, - { "CharLeftRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharLeftRectExtend, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "CharPositionFromPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharPositionFromPoint, 1, NULL }, - { "CharPositionFromPointClose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharPositionFromPointClose, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "CharRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharRight, 1, NULL }, - { "CharRightExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharRightExtend, 1, NULL }, - { "CharRightRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CharRightRectExtend, 1, NULL }, - { "ChooseCaretX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ChooseCaretX, 1, NULL }, - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Clear, 1, NULL }, - { "ClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ClearAll, 1, NULL }, - { "ClearDocumentStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ClearDocumentStyle, 1, NULL }, - { "ClearRegisteredImages", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ClearRegisteredImages, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "ClearRepresentation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ClearRepresentation, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "ClearSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ClearSelections, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "ClearTabStops", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ClearTabStops, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "CmdKeyAssign", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyAssign, 1, NULL }, - { "CmdKeyClear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyClear, 1, NULL }, - { "CmdKeyClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyClearAll, 1, NULL }, - { "CmdKeyExecute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CmdKeyExecute, 1, NULL }, - { "Colourise", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Colourise, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "ContractedFoldNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ContractedFoldNext, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "ConvertEOLs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ConvertEOLs, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Copy, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "CopyAllowLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CopyAllowLine, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "CopyRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CopyRange, 1, NULL }, - { "CopyText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CopyText, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "CountCharacters", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CountCharacters, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "CreateDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_CreateDocument, 1, NULL }, - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Cut, 1, NULL }, - { "DelLineLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DelLineLeft, 1, NULL }, - { "DelLineRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DelLineRight, 1, NULL }, - { "DelWordLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DelWordLeft, 1, NULL }, - { "DelWordRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DelWordRight, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "DelWordRightEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DelWordRightEnd, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "DeleteBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DeleteBack, 1, NULL }, - { "DeleteBackNotLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DeleteBackNotLine, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "DeleteRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DeleteRange, 1, NULL }, - { "DescribeKeyWordSets", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DescribeKeyWordSets, 1, NULL }, - { "DescribeProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DescribeProperty, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "DistanceToSecondaryStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DistanceToSecondaryStyles, 1, NULL }, - { "DoDragLeave", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DoDragLeave, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "DoDropText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DoDropText, 1, NULL }, - { "DocLineFromVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DocLineFromVisible, 1, NULL }, - { "DocumentEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentEnd, 1, NULL }, - { "DocumentEndExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentEndExtend, 1, NULL }, - { "DocumentStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentStart, 1, NULL }, - { "DocumentStartExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DocumentStartExtend, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "DropSelectionN", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_DropSelectionN, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "EditToggleOvertype", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_EditToggleOvertype, 1, NULL }, - { "EmptyUndoBuffer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_EmptyUndoBuffer, 1, NULL }, - { "EndUndoAction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_EndUndoAction, 1, NULL }, - { "EnsureCaretVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_EnsureCaretVisible, 1, NULL }, - { "EnsureVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_EnsureVisible, 1, NULL }, - { "EnsureVisibleEnforcePolicy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_EnsureVisibleEnforcePolicy, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "ExpandChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ExpandChildren, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "FindColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FindColumn, 1, NULL }, - { "FindText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FindText, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "FoldAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FoldAll, 1, NULL }, - { "FoldChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FoldChildren, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "FoldDisplayTextSetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FoldDisplayTextSetStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,0) - { "FoldLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FoldLine, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "FormFeed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FormFeed, 1, NULL }, - -#if (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - { "FormatRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FormatRange, 1, NULL }, -#endif // (wxLUA_USE_wxDC) && (wxLUA_USE_wxPointSizeRect) - -#if wxCHECK_VERSION(3,1,0) - { "FreeSubStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_FreeSubStyles, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "GetAdditionalCaretForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalCaretForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) - { "GetAdditionalCaretsBlink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalCaretsBlink, 1, NULL }, - { "GetAdditionalCaretsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalCaretsVisible, 1, NULL }, - { "GetAdditionalSelAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalSelAlpha, 1, NULL }, - { "GetAdditionalSelectionTyping", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAdditionalSelectionTyping, 1, NULL }, - { "GetAllLinesVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAllLinesVisible, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAnchor, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetAutomaticFold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetAutomaticFold, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetBackSpaceUnIndents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetBackSpaceUnIndents, 1, NULL }, - { "GetBufferedDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetBufferedDraw, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "GetCaretForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "GetCaretLineBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineBack, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,8,12) - { "GetCaretLineBackAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineBackAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,12) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "GetCaretLineBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineBackground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - - { "GetCaretLineVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineVisible, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetCaretLineVisibleAlways", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretLineVisibleAlways, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetCaretPeriod", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretPeriod, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetCaretSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretSticky, 1, NULL }, - { "GetCaretStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretStyle, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetCaretWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCaretWidth, 1, NULL }, - { "GetCharAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCharAt, 1, NULL }, - { "GetCodePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCodePage, 1, NULL }, - { "GetColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetColumn, 1, NULL }, - { "GetControlCharSymbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetControlCharSymbol, 1, NULL }, - { "GetCurLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurLine, 1, NULL }, - { "GetCurLineRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurLineRaw, 1, NULL }, - { "GetCurrentLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurrentLine, 1, NULL }, - { "GetCurrentPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetCurrentPos, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "GetDirectFunction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetDirectFunction, 1, NULL }, - { "GetDirectPointer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetDirectPointer, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "GetDocPointer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetDocPointer, 1, NULL }, - { "GetEOLMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetEOLMode, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "GetEdgeColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetEdgeColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "GetEdgeColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetEdgeColumn, 1, NULL }, - { "GetEdgeMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetEdgeMode, 1, NULL }, - { "GetEndAtLastLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetEndAtLastLine, 1, NULL }, - { "GetEndStyled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetEndStyled, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetExtraAscent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetExtraAscent, 1, NULL }, - { "GetExtraDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetExtraDescent, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetFirstVisibleLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetFirstVisibleLine, 1, NULL }, - { "GetFoldExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetFoldExpanded, 1, NULL }, - { "GetFoldLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetFoldLevel, 1, NULL }, - { "GetFoldParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetFoldParent, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "GetFontQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetFontQuality, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "GetGapPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetGapPosition, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetHighlightGuide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetHighlightGuide, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "GetHotspotActiveBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotActiveBackground, 1, NULL }, - { "GetHotspotActiveForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotActiveForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) - { "GetHotspotActiveUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotActiveUnderline, 1, NULL }, - { "GetHotspotSingleLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetHotspotSingleLine, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "GetIMEInteraction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIMEInteraction, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "GetIdentifier", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIdentifier, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "GetIdleStyling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIdleStyling, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "GetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndent, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(3,1,3)) - { "GetIndentationGuides", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndentationGuides_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(3,1,3)) - -#if wxCHECK_VERSION(2,9,5) - { "GetIndicatorCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndicatorCurrent, 1, NULL }, - { "GetIndicatorValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetIndicatorValue, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - { "GetKeysUnicode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetKeysUnicode, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - - { "GetLastChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLastChild, 1, NULL }, - { "GetLastKeydownProcessed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLastKeydownProcessed, 1, NULL }, - { "GetLayoutCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLayoutCache, 1, NULL }, - { "GetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLength, 1, NULL }, - { "GetLexer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLexer, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "GetLexerLanguage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLexerLanguage, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if (wxCHECK_VERSION(2,9,2)) && (wxCHECK_VERSION(3,1,0)) - { "GetLibraryVersionInfo", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLibraryVersionInfo, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,2)) && (wxCHECK_VERSION(3,1,0)) - - { "GetLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLine, 1, NULL }, - { "GetLineCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineCount, 1, NULL }, - { "GetLineEndPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndPosition, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetLineEndTypesActive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndTypesActive, 1, NULL }, - { "GetLineEndTypesAllowed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndTypesAllowed, 1, NULL }, - { "GetLineEndTypesSupported", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineEndTypesSupported, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetLineIndentPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineIndentPosition, 1, NULL }, - { "GetLineIndentation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineIndentation, 1, NULL }, - { "GetLineRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineRaw, 1, NULL }, - { "GetLineSelEndPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineSelEndPosition, 1, NULL }, - { "GetLineSelStartPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineSelStartPosition, 1, NULL }, - { "GetLineState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineState, 1, NULL }, - { "GetLineVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetLineVisible, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetMainSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMainSelection, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - { "GetMarginBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginBackground, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,1) - { "GetMarginCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginCount, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "GetMarginCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginCursor, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetMarginLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginLeft, 1, NULL }, - { "GetMarginMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginMask, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetMarginOptions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginOptions, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetMarginRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginRight, 1, NULL }, - { "GetMarginSensitive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginSensitive, 1, NULL }, - { "GetMarginType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginType, 1, NULL }, - { "GetMarginWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarginWidth, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetMarkerSymbolDefined", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMarkerSymbolDefined, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetMaxLineState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMaxLineState, 1, NULL }, - { "GetModEventMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetModEventMask, 1, NULL }, - { "GetModify", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetModify, 1, NULL }, - { "GetMouseDownCaptures", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseDownCaptures, 1, NULL }, - { "GetMouseDwellTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseDwellTime, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetMouseSelectionRectangularSwitch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseSelectionRectangularSwitch, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "GetMouseWheelCaptures", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMouseWheelCaptures, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "GetMultiPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMultiPaste, 1, NULL }, - { "GetMultipleSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetMultipleSelection, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "GetNextTabStop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetNextTabStop, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetOvertype", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetOvertype, 1, NULL }, - { "GetPasteConvertEndings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPasteConvertEndings, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetPhasesDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPhasesDraw, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "GetPositionCacheSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPositionCacheSize, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "GetPrimaryStyleFromStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrimaryStyleFromStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetPrintColourMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrintColourMode, 1, NULL }, - { "GetPrintMagnification", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrintMagnification, 1, NULL }, - { "GetPrintWrapMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPrintWrapMode, 1, NULL }, - { "GetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetProperty, 1, NULL }, - { "GetPropertyExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyExpanded, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) - { "GetPropertyInt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPropertyInt_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,1))||(wxCHECK_VERSION(3,1,1)) - -#if wxCHECK_VERSION(2,9,5) - { "GetPunctuationChars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetPunctuationChars, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetReadOnly, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetRectangularSelectionAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchor, 1, NULL }, - { "GetRectangularSelectionAnchorVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionAnchorVirtualSpace, 1, NULL }, - { "GetRectangularSelectionCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaret, 1, NULL }, - { "GetRectangularSelectionCaretVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionCaretVirtualSpace, 1, NULL }, - { "GetRectangularSelectionModifier", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetRectangularSelectionModifier, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "GetRepresentation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetRepresentation, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetSTCCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSTCCursor, 1, NULL }, - { "GetSTCFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSTCFocus, 1, NULL }, - { "GetScrollWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetScrollWidth, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetScrollWidthTracking", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetScrollWidthTracking, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetSearchFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSearchFlags, 1, NULL }, - -#if wxCHECK_VERSION(2,8,12) - { "GetSelAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(2,9,5) - { "GetSelEOLFilled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelEOLFilled, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetSelectedText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectedText, 1, NULL }, - { "GetSelectedTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectedTextRaw, 1, NULL }, - { "GetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelection, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetSelectionEmpty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionEmpty, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "GetSelectionEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionEnd, 1, NULL }, - { "GetSelectionMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionMode, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetSelectionNAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNAnchor, 1, NULL }, - { "GetSelectionNAnchorVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNAnchorVirtualSpace, 1, NULL }, - { "GetSelectionNCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNCaret, 1, NULL }, - { "GetSelectionNCaretVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNCaretVirtualSpace, 1, NULL }, - { "GetSelectionNEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNEnd, 1, NULL }, - { "GetSelectionNStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionNStart, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetSelectionStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelectionStart, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetSelections", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSelections, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetStatus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStatus, 1, NULL }, - { "GetStyleAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleAt, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) - { "GetStyleBits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBits_overload_count, 0 }, - { "GetStyleBitsNeeded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleBitsNeeded_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) - -#if wxCHECK_VERSION(3,1,0) - { "GetStyleFromSubStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyleFromSubStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxMemoryBuffer - { "GetStyledText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetStyledText, 1, NULL }, -#endif // wxLUA_USE_wxMemoryBuffer - -#if wxCHECK_VERSION(3,1,0) - { "GetSubStyleBases", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSubStyleBases, 1, NULL }, - { "GetSubStylesLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSubStylesLength, 1, NULL }, - { "GetSubStylesStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetSubStylesStart, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "GetTabDrawMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTabDrawMode, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "GetTabIndents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTabIndents, 1, NULL }, - { "GetTabWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTabWidth, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetTag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTag, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetTargetEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetEnd, 1, NULL }, - { "GetTargetStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetStart, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetTargetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetText, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "GetTargetTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTargetTextRaw, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "GetTechnology", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTechnology, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetText, 1, NULL }, - { "GetTextLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextLength, 1, NULL }, - { "GetTextRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextRange, 1, NULL }, - { "GetTextRangeRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextRangeRaw, 1, NULL }, - { "GetTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTextRaw, 1, NULL }, - { "GetTwoPhaseDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetTwoPhaseDraw, 1, NULL }, - { "GetUndoCollection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetUndoCollection, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,0)) - { "GetUseAntiAliasing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseAntiAliasing_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,0)) - - { "GetUseHorizontalScrollBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseHorizontalScrollBar, 1, NULL }, - { "GetUseTabs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseTabs, 1, NULL }, - { "GetUseVerticalScrollBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetUseVerticalScrollBar, 1, NULL }, - { "GetViewEOL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetViewEOL, 1, NULL }, - { "GetViewWhiteSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetViewWhiteSpace, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetVirtualSpaceOptions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetVirtualSpaceOptions, 1, NULL }, - { "GetWhitespaceChars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWhitespaceChars, 1, NULL }, - { "GetWhitespaceSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWhitespaceSize, 1, NULL }, - { "GetWordChars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWordChars, 1, NULL }, - { "GetWrapIndentMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapIndentMode, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetWrapMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapMode, 1, NULL }, - { "GetWrapStartIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapStartIndent, 1, NULL }, - { "GetWrapVisualFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapVisualFlags, 1, NULL }, - { "GetWrapVisualFlagsLocation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetWrapVisualFlagsLocation, 1, NULL }, - { "GetXOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetXOffset, 1, NULL }, - { "GetZoom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GetZoom, 1, NULL }, - { "GotoLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GotoLine, 1, NULL }, - { "GotoPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_GotoPos, 1, NULL }, - { "HideLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HideLines, 1, NULL }, - { "HideSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HideSelection, 1, NULL }, - { "Home", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Home, 1, NULL }, - { "HomeDisplay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HomeDisplay, 1, NULL }, - { "HomeDisplayExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HomeDisplayExtend, 1, NULL }, - { "HomeExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HomeExtend, 1, NULL }, - { "HomeRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HomeRectExtend, 1, NULL }, - { "HomeWrap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HomeWrap, 1, NULL }, - { "HomeWrapExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_HomeWrapExtend, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "IndicatorAllOnFor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorAllOnFor, 1, NULL }, - { "IndicatorClearRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorClearRange, 1, NULL }, - { "IndicatorEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorEnd, 1, NULL }, - { "IndicatorFillRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorFillRange, 1, NULL }, - { "IndicatorGetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "IndicatorGetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetFlags, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxColourPenBrush - { "IndicatorGetForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) - { "IndicatorGetHoverForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetHoverForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,0) - { "IndicatorGetHoverStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetHoverStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "IndicatorGetOutlineAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetOutlineAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "IndicatorGetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetStyle, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "IndicatorGetUnder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorGetUnder, 1, NULL }, - { "IndicatorSetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "IndicatorSetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetFlags, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxColourPenBrush - { "IndicatorSetForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) - { "IndicatorSetHoverForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetHoverForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,0) - { "IndicatorSetHoverStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetHoverStyle, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "IndicatorSetOutlineAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetOutlineAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "IndicatorSetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetStyle, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "IndicatorSetUnder", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorSetUnder, 1, NULL }, - { "IndicatorStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorStart, 1, NULL }, - { "IndicatorValueAt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IndicatorValueAt, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "InsertText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_InsertText, 1, NULL }, - { "InsertTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_InsertTextRaw, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "IsRangeWord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_IsRangeWord, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "LineCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineCopy, 1, NULL }, - { "LineCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineCut, 1, NULL }, - { "LineDelete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineDelete, 1, NULL }, - { "LineDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineDown, 1, NULL }, - { "LineDownExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineDownExtend, 1, NULL }, - { "LineDownRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineDownRectExtend, 1, NULL }, - { "LineDuplicate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineDuplicate, 1, NULL }, - { "LineEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEnd, 1, NULL }, - { "LineEndDisplay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndDisplay, 1, NULL }, - { "LineEndDisplayExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndDisplayExtend, 1, NULL }, - { "LineEndExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndExtend, 1, NULL }, - { "LineEndRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndRectExtend, 1, NULL }, - { "LineEndWrap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndWrap, 1, NULL }, - { "LineEndWrapExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineEndWrapExtend, 1, NULL }, - { "LineFromPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineFromPosition, 1, NULL }, - { "LineLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineLength, 1, NULL }, - { "LineScroll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineScroll, 1, NULL }, - { "LineScrollDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineScrollDown, 1, NULL }, - { "LineScrollUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineScrollUp, 1, NULL }, - { "LineTranspose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineTranspose, 1, NULL }, - { "LineUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineUp, 1, NULL }, - { "LineUpExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineUpExtend, 1, NULL }, - { "LineUpRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LineUpRectExtend, 1, NULL }, - { "LinesJoin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LinesJoin, 1, NULL }, - { "LinesOnScreen", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LinesOnScreen, 1, NULL }, - { "LinesSplit", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LinesSplit, 1, NULL }, - { "LoadFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LoadFile, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "LoadLexerLibrary", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LoadLexerLibrary, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "LowerCase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_LowerCase, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "MarginGetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetStyle, 1, NULL }, - { "MarginGetStyleOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetStyleOffset, 1, NULL }, - { "MarginGetStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetStyles, 1, NULL }, - { "MarginGetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginGetText, 1, NULL }, - { "MarginSetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetStyle, 1, NULL }, - { "MarginSetStyleOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetStyleOffset, 1, NULL }, - { "MarginSetStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetStyles, 1, NULL }, - { "MarginSetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginSetText, 1, NULL }, - { "MarginTextClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarginTextClearAll, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "MarkerAdd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerAdd, 1, NULL }, - { "MarkerAddSet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerAddSet, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "MarkerDefine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefine, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap)) - { "MarkerDefineBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineBitmap_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap)) - -#if wxCHECK_VERSION(3,1,3) - { "MarkerDefinePixmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefinePixmap, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,3) - -#if wxCHECK_VERSION(2,9,5) - { "MarkerDefineRGBAImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDefineRGBAImage, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "MarkerDelete", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDelete, 1, NULL }, - { "MarkerDeleteAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDeleteAll, 1, NULL }, - { "MarkerDeleteHandle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerDeleteHandle, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "MarkerEnableHighlight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerEnableHighlight, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "MarkerGet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerGet, 1, NULL }, - { "MarkerLineFromHandle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerLineFromHandle, 1, NULL }, - { "MarkerNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerNext, 1, NULL }, - { "MarkerPrevious", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerPrevious, 1, NULL }, - -#if wxCHECK_VERSION(2,8,12) - { "MarkerSetAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxLUA_USE_wxColourPenBrush - { "MarkerSetBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetBackground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "MarkerSetBackgroundSelected", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetBackgroundSelected, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxLUA_USE_wxColourPenBrush - { "MarkerSetForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MarkerSetForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "MoveCaretInsideView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MoveCaretInsideView, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "MoveSelectedLinesDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MoveSelectedLinesDown, 1, NULL }, - { "MoveSelectedLinesUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MoveSelectedLinesUp, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - { "MultiEdgeAddLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MultiEdgeAddLine, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,1) - { "MultiEdgeClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MultiEdgeClearAll, 1, NULL }, - { "MultipleSelectAddEach", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MultipleSelectAddEach, 1, NULL }, - { "MultipleSelectAddNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_MultipleSelectAddNext, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "NewLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_NewLine, 1, NULL }, - { "PageDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PageDown, 1, NULL }, - { "PageDownExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PageDownExtend, 1, NULL }, - { "PageDownRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PageDownRectExtend, 1, NULL }, - { "PageUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PageUp, 1, NULL }, - { "PageUpExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PageUpExtend, 1, NULL }, - { "PageUpRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PageUpRectExtend, 1, NULL }, - { "ParaDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ParaDown, 1, NULL }, - { "ParaDownExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ParaDownExtend, 1, NULL }, - { "ParaUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ParaUp, 1, NULL }, - { "ParaUpExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ParaUpExtend, 1, NULL }, - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Paste, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "PointFromPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PointFromPosition, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { "PositionAfter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionAfter, 1, NULL }, - { "PositionBefore", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionBefore, 1, NULL }, - { "PositionFromLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromLine, 1, NULL }, - -#if ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect)) - { "PositionFromPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPoint_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect))||((wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxPointSizeRect)) - - { "PositionFromPointClose", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionFromPointClose, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "PositionRelative", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PositionRelative, 1, NULL }, - { "PrivateLexerCall", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PrivateLexerCall, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "PropertyNames", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PropertyNames, 1, NULL }, - { "PropertyType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_PropertyType, 1, NULL }, - { "RGBAImageSetHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_RGBAImageSetHeight, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "RGBAImageSetScale", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_RGBAImageSetScale, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "RGBAImageSetWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_RGBAImageSetWidth, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Redo, 1, NULL }, - -#if ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,3)) - { "RegisterImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterImage_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||((!wxCHECK_VERSION(3,1,3)) && (wxLUA_USE_wxBitmap))||(wxCHECK_VERSION(3,1,3)) - -#if wxCHECK_VERSION(2,9,5) - { "RegisterRGBAImage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_RegisterRGBAImage, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "ReleaseAllExtendedStyles", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReleaseAllExtendedStyles, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "ReleaseDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReleaseDocument, 1, NULL }, - { "ReplaceSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceSelection, 1, NULL }, - -#if wxCHECK_VERSION(3,1,3) - { "ReplaceSelectionRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceSelectionRaw, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,3) - - { "ReplaceTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTarget, 1, NULL }, - { "ReplaceTargetRE", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTargetRE, 1, NULL }, - -#if wxCHECK_VERSION(3,1,3) - { "ReplaceTargetRERaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTargetRERaw, 1, NULL }, - { "ReplaceTargetRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ReplaceTargetRaw, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,3) - -#if wxCHECK_VERSION(2,9,5) - { "RotateSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_RotateSelection, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SaveFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SaveFile, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "ScrollRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollRange, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "ScrollToColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToColumn, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "ScrollToEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToEnd, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "ScrollToLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToLine, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "ScrollToStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ScrollToStart, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SearchAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SearchAnchor, 1, NULL }, - { "SearchInTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SearchInTarget, 1, NULL }, - { "SearchNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SearchNext, 1, NULL }, - { "SearchPrev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SearchPrev, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SelectAll, 1, NULL }, - { "SelectionDuplicate", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SelectionDuplicate, 1, NULL }, - { "SelectionIsRectangle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SelectionIsRectangle, 1, NULL }, - { "SendMsg", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SendMsg, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "SetAdditionalCaretForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalCaretForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) - { "SetAdditionalCaretsBlink", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalCaretsBlink, 1, NULL }, - { "SetAdditionalCaretsVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalCaretsVisible, 1, NULL }, - { "SetAdditionalSelAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "SetAdditionalSelBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelBackground, 1, NULL }, - { "SetAdditionalSelForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) - { "SetAdditionalSelectionTyping", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAdditionalSelectionTyping, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAnchor, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetAutomaticFold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetAutomaticFold, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "SetBackSpaceUnIndents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetBackSpaceUnIndents, 1, NULL }, - { "SetBufferedDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetBufferedDraw, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetCaretForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "SetCaretLineBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineBack, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,8,12) - { "SetCaretLineBackAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineBackAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,12) - -#if (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - { "SetCaretLineBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineBackground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxColourPenBrush) - - { "SetCaretLineVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineVisible, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetCaretLineVisibleAlways", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretLineVisibleAlways, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "SetCaretPeriod", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretPeriod, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(2,9,5)) - { "SetCaretSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretSticky_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(2,9,5)) - -#if wxCHECK_VERSION(2,9,5) - { "SetCaretStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretStyle, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetCaretWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCaretWidth, 1, NULL }, - { "SetCharsDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCharsDefault, 1, NULL }, - { "SetCodePage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCodePage, 1, NULL }, - { "SetControlCharSymbol", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetControlCharSymbol, 1, NULL }, - { "SetCurrentPos", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetCurrentPos, 1, NULL }, - { "SetDocPointer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetDocPointer, 1, NULL }, - { "SetEOLMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetEOLMode, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetEdgeColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetEdgeColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetEdgeColumn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetEdgeColumn, 1, NULL }, - { "SetEdgeMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetEdgeMode, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetEmptySelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetEmptySelection, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetEndAtLastLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetEndAtLastLine, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetExtraAscent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetExtraAscent, 1, NULL }, - { "SetExtraDescent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetExtraDescent, 1, NULL }, - { "SetFirstVisibleLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFirstVisibleLine, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetFoldExpanded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldExpanded, 1, NULL }, - { "SetFoldFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldFlags, 1, NULL }, - { "SetFoldLevel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldLevel, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetFoldMarginColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldMarginColour, 1, NULL }, - { "SetFoldMarginHiColour", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFoldMarginHiColour, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(3,1,1) - { "SetFontQuality", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetFontQuality, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - { "SetHScrollBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetHScrollBar, 1, NULL }, -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - - { "SetHighlightGuide", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetHighlightGuide, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetHotspotActiveBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotActiveBackground, 1, NULL }, - { "SetHotspotActiveForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotActiveForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetHotspotActiveUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotActiveUnderline, 1, NULL }, - { "SetHotspotSingleLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetHotspotSingleLine, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetIMEInteraction", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIMEInteraction, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "SetIdentifier", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIdentifier, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "SetIdentifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIdentifiers, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "SetIdleStyling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIdleStyling, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "SetIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndent, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(2,9,5)) - { "SetIndentationGuides", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndentationGuides_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(2,9,5))||(wxCHECK_VERSION(2,9,5)) - -#if wxCHECK_VERSION(2,9,5) - { "SetIndicatorCurrent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndicatorCurrent, 1, NULL }, - { "SetIndicatorValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetIndicatorValue, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetKeyWords", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetKeyWords, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - { "SetKeysUnicode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetKeysUnicode, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - - { "SetLastKeydownProcessed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLastKeydownProcessed, 1, NULL }, - { "SetLayoutCache", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLayoutCache, 1, NULL }, - { "SetLexer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLexer, 1, NULL }, - { "SetLexerLanguage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLexerLanguage, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetLineEndTypesAllowed", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLineEndTypesAllowed, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "SetLineIndentation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLineIndentation, 1, NULL }, - { "SetLineState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetLineState, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetMainSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMainSelection, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - { "SetMarginBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginBackground, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(3,1,1) - { "SetMarginCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginCount, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "SetMarginCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginCursor, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetMarginLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginLeft, 1, NULL }, - { "SetMarginMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginMask, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetMarginOptions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginOptions, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetMarginRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginRight, 1, NULL }, - { "SetMarginSensitive", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginSensitive, 1, NULL }, - { "SetMarginType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginType, 1, NULL }, - { "SetMarginWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMarginWidth, 1, NULL }, - { "SetMargins", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMargins, 1, NULL }, - { "SetModEventMask", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetModEventMask, 1, NULL }, - { "SetMouseDownCaptures", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseDownCaptures, 1, NULL }, - { "SetMouseDwellTime", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseDwellTime, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetMouseSelectionRectangularSwitch", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseSelectionRectangularSwitch, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "SetMouseWheelCaptures", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMouseWheelCaptures, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "SetMultiPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMultiPaste, 1, NULL }, - { "SetMultipleSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetMultipleSelection, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetOvertype", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetOvertype, 1, NULL }, - { "SetPasteConvertEndings", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPasteConvertEndings, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetPhasesDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPhasesDraw, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "SetPositionCacheSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPositionCacheSize, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetPrintColourMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPrintColourMode, 1, NULL }, - { "SetPrintMagnification", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPrintMagnification, 1, NULL }, - { "SetPrintWrapMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPrintWrapMode, 1, NULL }, - { "SetProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetProperty, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetPunctuationChars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetPunctuationChars, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetReadOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetReadOnly, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetRectangularSelectionAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchor, 1, NULL }, - { "SetRectangularSelectionAnchorVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionAnchorVirtualSpace, 1, NULL }, - { "SetRectangularSelectionCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaret, 1, NULL }, - { "SetRectangularSelectionCaretVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionCaretVirtualSpace, 1, NULL }, - { "SetRectangularSelectionModifier", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetRectangularSelectionModifier, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "SetRepresentation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetRepresentation, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "SetSTCCursor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSTCCursor, 1, NULL }, - { "SetSTCFocus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSTCFocus, 1, NULL }, - { "SetSavePoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSavePoint, 1, NULL }, - { "SetScrollWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetScrollWidth, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetScrollWidthTracking", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetScrollWidthTracking, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetSearchFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSearchFlags, 1, NULL }, - -#if wxCHECK_VERSION(2,8,12) - { "SetSelAlpha", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelAlpha, 1, NULL }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxLUA_USE_wxColourPenBrush - { "SetSelBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelBackground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(2,9,5) - { "SetSelEOLFilled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelEOLFilled, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxLUA_USE_wxColourPenBrush - { "SetSelForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelection, 1, NULL }, - { "SetSelectionEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionEnd, 1, NULL }, - { "SetSelectionMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionMode, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetSelectionNAnchor", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNAnchor, 1, NULL }, - { "SetSelectionNAnchorVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNAnchorVirtualSpace, 1, NULL }, - { "SetSelectionNCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNCaret, 1, NULL }, - { "SetSelectionNCaretVirtualSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNCaretVirtualSpace, 1, NULL }, - { "SetSelectionNEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNEnd, 1, NULL }, - { "SetSelectionNStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionNStart, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetSelectionStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetSelectionStart, 1, NULL }, - { "SetStatus", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetStatus, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) - { "SetStyleBits", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBits_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0)) - - { "SetStyleBytes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyleBytes, 1, NULL }, - { "SetStyling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetStyling, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "SetTabDrawMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTabDrawMode, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "SetTabIndents", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTabIndents, 1, NULL }, - { "SetTabWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTabWidth, 1, NULL }, - { "SetTargetEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTargetEnd, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetTargetRange", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTargetRange, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "SetTargetStart", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTargetStart, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetTechnology", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTechnology, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetText, 1, NULL }, - { "SetTextRaw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTextRaw, 1, NULL }, - { "SetTwoPhaseDraw", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetTwoPhaseDraw, 1, NULL }, - { "SetUndoCollection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetUndoCollection, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,0)) - { "SetUseAntiAliasing", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseAntiAliasing_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,0)) - - { "SetUseHorizontalScrollBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseHorizontalScrollBar, 1, NULL }, - { "SetUseTabs", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseTabs, 1, NULL }, - { "SetUseVerticalScrollBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetUseVerticalScrollBar, 1, NULL }, - -#if wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - { "SetVScrollBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetVScrollBar, 1, NULL }, -#endif // wxLUA_USE_wxScrollBar && wxUSE_SCROLLBAR - - { "SetViewEOL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetViewEOL, 1, NULL }, - { "SetViewWhiteSpace", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetViewWhiteSpace, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetVirtualSpaceOptions", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetVirtualSpaceOptions, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetVisiblePolicy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetVisiblePolicy, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetWhitespaceBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceBackground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "SetWhitespaceChars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceChars, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "SetWhitespaceForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - -#if wxCHECK_VERSION(2,9,5) - { "SetWhitespaceSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWhitespaceSize, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetWordChars", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWordChars, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetWrapIndentMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapIndentMode, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetWrapMode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapMode, 1, NULL }, - { "SetWrapStartIndent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapStartIndent, 1, NULL }, - { "SetWrapVisualFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapVisualFlags, 1, NULL }, - { "SetWrapVisualFlagsLocation", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetWrapVisualFlagsLocation, 1, NULL }, - { "SetXCaretPolicy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetXCaretPolicy, 1, NULL }, - { "SetXOffset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetXOffset, 1, NULL }, - { "SetYCaretPolicy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetYCaretPolicy, 1, NULL }, - { "SetZoom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SetZoom, 1, NULL }, - { "ShowLines", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ShowLines, 1, NULL }, - { "StartRecord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StartRecord, 1, NULL }, - -#if (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0))||(wxCHECK_VERSION(3,1,1)) - { "StartStyling", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_StartStyling_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0))||(wxCHECK_VERSION(3,1,1)) - - { "StopRecord", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StopRecord, 1, NULL }, - { "StutteredPageDown", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageDown, 1, NULL }, - { "StutteredPageDownExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageDownExtend, 1, NULL }, - { "StutteredPageUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageUp, 1, NULL }, - { "StutteredPageUpExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StutteredPageUpExtend, 1, NULL }, - { "StyleClearAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleClearAll, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "StyleGetBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetBackground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) - { "StyleGetBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetBold, 1, NULL }, - { "StyleGetCase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetCase, 1, NULL }, - { "StyleGetChangeable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetChangeable, 1, NULL }, - { "StyleGetCharacterSet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetCharacterSet, 1, NULL }, - { "StyleGetEOLFilled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetEOLFilled, 1, NULL }, - { "StyleGetFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetFaceName, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxFont) - { "StyleGetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetFont, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxFont) - -#if (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - { "StyleGetForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetForeground, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,5)) && (wxLUA_USE_wxColourPenBrush) - -#if wxCHECK_VERSION(2,9,5) - { "StyleGetHotSpot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetHotSpot, 1, NULL }, - { "StyleGetItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetItalic, 1, NULL }, - { "StyleGetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetSize, 1, NULL }, - { "StyleGetSizeFractional", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetSizeFractional, 1, NULL }, - { "StyleGetUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetUnderline, 1, NULL }, - { "StyleGetVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetVisible, 1, NULL }, - { "StyleGetWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleGetWeight, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "StyleResetDefault", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleResetDefault, 1, NULL }, - -#if wxLUA_USE_wxColourPenBrush - { "StyleSetBackground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetBackground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "StyleSetBold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetBold, 1, NULL }, - { "StyleSetCase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetCase, 1, NULL }, - { "StyleSetChangeable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetChangeable, 1, NULL }, - { "StyleSetCharacterSet", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetCharacterSet, 1, NULL }, - { "StyleSetEOLFilled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetEOLFilled, 1, NULL }, - { "StyleSetFaceName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFaceName, 1, NULL }, - -#if wxLUA_USE_wxFont - { "StyleSetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFont, 1, NULL }, -#endif // wxLUA_USE_wxFont - -#if wxUSE_INTL - { "StyleSetFontAttr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontAttr, 1, NULL }, - { "StyleSetFontEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontEncoding, 1, NULL }, -#endif // wxUSE_INTL - -#if wxLUA_USE_wxColourPenBrush - { "StyleSetForeground", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetForeground, 1, NULL }, -#endif // wxLUA_USE_wxColourPenBrush - - { "StyleSetHotSpot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetHotSpot, 1, NULL }, - { "StyleSetItalic", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetItalic, 1, NULL }, - { "StyleSetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetSize, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "StyleSetSizeFractional", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetSizeFractional, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "StyleSetSpec", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetSpec, 1, NULL }, - { "StyleSetUnderline", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetUnderline, 1, NULL }, - { "StyleSetVisible", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetVisible, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "StyleSetWeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetWeight, 1, NULL }, - { "SwapMainAnchorCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_SwapMainAnchorCaret, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "Tab", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Tab, 1, NULL }, - { "TargetFromSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_TargetFromSelection, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "TargetWholeDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_TargetWholeDocument, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "TextHeight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_TextHeight, 1, NULL }, - { "TextWidth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_TextWidth, 1, NULL }, - { "ToggleCaretSticky", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ToggleCaretSticky, 1, NULL }, - { "ToggleFold", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ToggleFold, 1, NULL }, - -#if wxCHECK_VERSION(3,1,1) - { "ToggleFoldShowText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ToggleFoldShowText, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_Undo, 1, NULL }, - { "UpperCase", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_UpperCase, 1, NULL }, - -#if (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - { "UsePopUp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp_overload, s_wxluafunc_wxLua_wxStyledTextCtrl_UsePopUp_overload_count, 0 }, -#endif // (!wxCHECK_VERSION(3,0,0))||(wxCHECK_VERSION(3,0,0)) - - { "UserListShow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_UserListShow, 1, NULL }, - { "VCHome", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHome, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "VCHomeDisplay", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeDisplay, 1, NULL }, - { "VCHomeDisplayExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeDisplayExtend, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "VCHomeExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeExtend, 1, NULL }, - { "VCHomeRectExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeRectExtend, 1, NULL }, - { "VCHomeWrap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeWrap, 1, NULL }, - { "VCHomeWrapExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VCHomeWrapExtend, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "VerticalCentreCaret", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VerticalCentreCaret, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "VisibleFromDocLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_VisibleFromDocLine, 1, NULL }, - { "WordEndPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordEndPosition, 1, NULL }, - { "WordLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeft, 1, NULL }, - { "WordLeftEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeftEnd, 1, NULL }, - { "WordLeftEndExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeftEndExtend, 1, NULL }, - { "WordLeftExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordLeftExtend, 1, NULL }, - { "WordPartLeft", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartLeft, 1, NULL }, - { "WordPartLeftExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartLeftExtend, 1, NULL }, - { "WordPartRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartRight, 1, NULL }, - { "WordPartRightExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordPartRightExtend, 1, NULL }, - { "WordRight", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordRight, 1, NULL }, - { "WordRightEnd", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordRightEnd, 1, NULL }, - { "WordRightEndExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordRightEndExtend, 1, NULL }, - { "WordRightExtend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordRightExtend, 1, NULL }, - { "WordStartPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WordStartPosition, 1, NULL }, - { "WrapCount", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_WrapCount, 1, NULL }, - { "ZoomIn", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ZoomIn, 1, NULL }, - { "ZoomOut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextCtrl_ZoomOut, 1, NULL }, - -#if wxLUA_USE_wxPointSizeRect - { "wxStyledTextCtrl", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStyledTextCtrl_constructor, 1, NULL }, -#endif // wxLUA_USE_wxPointSizeRect - - { 0, 0, 0, 0 }, -}; - -int wxStyledTextCtrl_methodCount = sizeof(wxStyledTextCtrl_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxStyledTextEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxStyledTextEvent' -int wxluatype_wxStyledTextEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetAlt[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetAlt(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetAlt[1] = {{ wxLua_wxStyledTextEvent_GetAlt, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetAlt }}; -// bool GetAlt() const; -static int LUACALL wxLua_wxStyledTextEvent_GetAlt(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetAlt - bool returns = (self->GetAlt()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded[1] = {{ wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded }}; -// %wxchkver_2_9_5 int GetAnnotationsLinesAdded() const; -static int LUACALL wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetAnnotationsLinesAdded - int returns = (self->GetAnnotationsLinesAdded()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetControl[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetControl[1] = {{ wxLua_wxStyledTextEvent_GetControl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetControl }}; -// bool GetControl() const; -static int LUACALL wxLua_wxStyledTextEvent_GetControl(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetControl - bool returns = (self->GetControl()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragAllowMove[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetDragAllowMove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetDragAllowMove[1] = {{ wxLua_wxStyledTextEvent_GetDragAllowMove, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragAllowMove }}; -// bool GetDragAllowMove(); -static int LUACALL wxLua_wxStyledTextEvent_GetDragAllowMove(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetDragAllowMove - bool returns = (self->GetDragAllowMove()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragFlags[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetDragFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetDragFlags[1] = {{ wxLua_wxStyledTextEvent_GetDragFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragFlags }}; -// %wxchkver_3_1_0 int GetDragFlags(); -static int LUACALL wxLua_wxStyledTextEvent_GetDragFlags(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetDragFlags - int returns = (self->GetDragFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragResult[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetDragResult(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetDragResult[1] = {{ wxLua_wxStyledTextEvent_GetDragResult, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragResult }}; -// wxDragResult GetDragResult(); -static int LUACALL wxLua_wxStyledTextEvent_GetDragResult(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetDragResult - wxDragResult returns = (self->GetDragResult()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragText[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetDragText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetDragText[1] = {{ wxLua_wxStyledTextEvent_GetDragText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetDragText }}; -// wxString GetDragText(); -static int LUACALL wxLua_wxStyledTextEvent_GetDragText(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetDragText - wxString returns = (self->GetDragText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetFoldLevelNow[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetFoldLevelNow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetFoldLevelNow[1] = {{ wxLua_wxStyledTextEvent_GetFoldLevelNow, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetFoldLevelNow }}; -// int GetFoldLevelNow() const; -static int LUACALL wxLua_wxStyledTextEvent_GetFoldLevelNow(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetFoldLevelNow - int returns = (self->GetFoldLevelNow()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetFoldLevelPrev[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetFoldLevelPrev(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetFoldLevelPrev[1] = {{ wxLua_wxStyledTextEvent_GetFoldLevelPrev, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetFoldLevelPrev }}; -// int GetFoldLevelPrev() const; -static int LUACALL wxLua_wxStyledTextEvent_GetFoldLevelPrev(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetFoldLevelPrev - int returns = (self->GetFoldLevelPrev()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetKey[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetKey[1] = {{ wxLua_wxStyledTextEvent_GetKey, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetKey }}; -// int GetKey() const; -static int LUACALL wxLua_wxStyledTextEvent_GetKey(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetKey - int returns = (self->GetKey()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLParam[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetLParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetLParam[1] = {{ wxLua_wxStyledTextEvent_GetLParam, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLParam }}; -// int GetLParam() const; -static int LUACALL wxLua_wxStyledTextEvent_GetLParam(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetLParam - int returns = (self->GetLParam()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLength[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetLength[1] = {{ wxLua_wxStyledTextEvent_GetLength, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLength }}; -// int GetLength() const; -static int LUACALL wxLua_wxStyledTextEvent_GetLength(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetLength - int returns = (self->GetLength()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLine[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetLine[1] = {{ wxLua_wxStyledTextEvent_GetLine, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLine }}; -// int GetLine() const; -static int LUACALL wxLua_wxStyledTextEvent_GetLine(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetLine - int returns = (self->GetLine()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLinesAdded[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetLinesAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetLinesAdded[1] = {{ wxLua_wxStyledTextEvent_GetLinesAdded, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetLinesAdded }}; -// int GetLinesAdded() const; -static int LUACALL wxLua_wxStyledTextEvent_GetLinesAdded(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetLinesAdded - int returns = (self->GetLinesAdded()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetListType[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetListType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetListType[1] = {{ wxLua_wxStyledTextEvent_GetListType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetListType }}; -// int GetListType() const; -static int LUACALL wxLua_wxStyledTextEvent_GetListType(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetListType - int returns = (self->GetListType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetMargin[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetMargin[1] = {{ wxLua_wxStyledTextEvent_GetMargin, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetMargin }}; -// int GetMargin() const; -static int LUACALL wxLua_wxStyledTextEvent_GetMargin(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetMargin - int returns = (self->GetMargin()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetMessage[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetMessage[1] = {{ wxLua_wxStyledTextEvent_GetMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetMessage }}; -// int GetMessage() const; -static int LUACALL wxLua_wxStyledTextEvent_GetMessage(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetMessage - int returns = (self->GetMessage()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetModificationType[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetModificationType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetModificationType[1] = {{ wxLua_wxStyledTextEvent_GetModificationType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetModificationType }}; -// int GetModificationType() const; -static int LUACALL wxLua_wxStyledTextEvent_GetModificationType(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetModificationType - int returns = (self->GetModificationType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetModifiers[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetModifiers[1] = {{ wxLua_wxStyledTextEvent_GetModifiers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetModifiers }}; -// int GetModifiers() const; -static int LUACALL wxLua_wxStyledTextEvent_GetModifiers(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetModifiers - int returns = (self->GetModifiers()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetPosition[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetPosition[1] = {{ wxLua_wxStyledTextEvent_GetPosition, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetPosition }}; -// int GetPosition() const; -static int LUACALL wxLua_wxStyledTextEvent_GetPosition(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetPosition - int returns = (self->GetPosition()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetShift[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetShift(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetShift[1] = {{ wxLua_wxStyledTextEvent_GetShift, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetShift }}; -// bool GetShift() const; -static int LUACALL wxLua_wxStyledTextEvent_GetShift(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetShift - bool returns = (self->GetShift()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetText[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetText[1] = {{ wxLua_wxStyledTextEvent_GetText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetText }}; -// wxString GetText() const; -static int LUACALL wxLua_wxStyledTextEvent_GetText(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetText - wxString returns = (self->GetText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetToken[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetToken(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetToken[1] = {{ wxLua_wxStyledTextEvent_GetToken, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetToken }}; -// %wxchkver_2_9_5 int GetToken() const; -static int LUACALL wxLua_wxStyledTextEvent_GetToken(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetToken - int returns = (self->GetToken()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetUpdated[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetUpdated(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetUpdated[1] = {{ wxLua_wxStyledTextEvent_GetUpdated, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetUpdated }}; -// %wxchkver_2_9_5 int GetUpdated() const; -static int LUACALL wxLua_wxStyledTextEvent_GetUpdated(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetUpdated - int returns = (self->GetUpdated()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetWParam[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetWParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetWParam[1] = {{ wxLua_wxStyledTextEvent_GetWParam, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetWParam }}; -// int GetWParam() const; -static int LUACALL wxLua_wxStyledTextEvent_GetWParam(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetWParam - int returns = (self->GetWParam()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetX[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetX[1] = {{ wxLua_wxStyledTextEvent_GetX, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetX }}; -// int GetX() const; -static int LUACALL wxLua_wxStyledTextEvent_GetX(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetX - int returns = (self->GetX()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_GetY[] = { &wxluatype_wxStyledTextEvent, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_GetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_GetY[1] = {{ wxLua_wxStyledTextEvent_GetY, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_GetY }}; -// int GetY() const; -static int LUACALL wxLua_wxStyledTextEvent_GetY(lua_State *L) -{ - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call GetY - int returns = (self->GetY()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetAnnotationLinesAdded[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetAnnotationLinesAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetAnnotationLinesAdded[1] = {{ wxLua_wxStyledTextEvent_SetAnnotationLinesAdded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetAnnotationLinesAdded }}; -// %wxchkver_2_9_5 void SetAnnotationLinesAdded(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetAnnotationLinesAdded(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetAnnotationLinesAdded - self->SetAnnotationLinesAdded(val); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragAllowMove[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetDragAllowMove(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetDragAllowMove[1] = {{ wxLua_wxStyledTextEvent_SetDragAllowMove, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragAllowMove }}; -// void SetDragAllowMove(bool val); -static int LUACALL wxLua_wxStyledTextEvent_SetDragAllowMove(lua_State *L) -{ - // bool val - bool val = wxlua_getbooleantype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetDragAllowMove - self->SetDragAllowMove(val); - - return 0; -} - - -#if wxCHECK_VERSION(3,1,0) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragFlags[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetDragFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetDragFlags[1] = {{ wxLua_wxStyledTextEvent_SetDragFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragFlags }}; -// %wxchkver_3_1_0 void SetDragFlags(int flags); -static int LUACALL wxLua_wxStyledTextEvent_SetDragFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetDragFlags - self->SetDragFlags(flags); - - return 0; -} - -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragResult[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetDragResult(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetDragResult[1] = {{ wxLua_wxStyledTextEvent_SetDragResult, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragResult }}; -// void SetDragResult(wxDragResult val); -static int LUACALL wxLua_wxStyledTextEvent_SetDragResult(lua_State *L) -{ - // wxDragResult val - wxDragResult val = (wxDragResult)wxlua_getenumtype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetDragResult - self->SetDragResult(val); - - return 0; -} - -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragText[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetDragText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetDragText[1] = {{ wxLua_wxStyledTextEvent_SetDragText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetDragText }}; -// void SetDragText(const wxString& val); -static int LUACALL wxLua_wxStyledTextEvent_SetDragText(lua_State *L) -{ - // const wxString val - const wxString val = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetDragText - self->SetDragText(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetFoldLevelNow[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetFoldLevelNow(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetFoldLevelNow[1] = {{ wxLua_wxStyledTextEvent_SetFoldLevelNow, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetFoldLevelNow }}; -// void SetFoldLevelNow(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetFoldLevelNow(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetFoldLevelNow - self->SetFoldLevelNow(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetFoldLevelPrev[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetFoldLevelPrev(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetFoldLevelPrev[1] = {{ wxLua_wxStyledTextEvent_SetFoldLevelPrev, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetFoldLevelPrev }}; -// void SetFoldLevelPrev(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetFoldLevelPrev(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetFoldLevelPrev - self->SetFoldLevelPrev(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetKey[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetKey(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetKey[1] = {{ wxLua_wxStyledTextEvent_SetKey, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetKey }}; -// void SetKey(int k); -static int LUACALL wxLua_wxStyledTextEvent_SetKey(lua_State *L) -{ - // int k - int k = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetKey - self->SetKey(k); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLParam[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetLParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetLParam[1] = {{ wxLua_wxStyledTextEvent_SetLParam, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLParam }}; -// void SetLParam(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetLParam(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetLParam - self->SetLParam(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLength[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetLength(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetLength[1] = {{ wxLua_wxStyledTextEvent_SetLength, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLength }}; -// void SetLength(int len); -static int LUACALL wxLua_wxStyledTextEvent_SetLength(lua_State *L) -{ - // int len - int len = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetLength - self->SetLength(len); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLine[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetLine(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetLine[1] = {{ wxLua_wxStyledTextEvent_SetLine, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLine }}; -// void SetLine(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetLine(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetLine - self->SetLine(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLinesAdded[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetLinesAdded(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetLinesAdded[1] = {{ wxLua_wxStyledTextEvent_SetLinesAdded, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetLinesAdded }}; -// void SetLinesAdded(int num); -static int LUACALL wxLua_wxStyledTextEvent_SetLinesAdded(lua_State *L) -{ - // int num - int num = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetLinesAdded - self->SetLinesAdded(num); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetListType[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetListType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetListType[1] = {{ wxLua_wxStyledTextEvent_SetListType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetListType }}; -// void SetListType(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetListType(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetListType - self->SetListType(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetMargin[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetMargin(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetMargin[1] = {{ wxLua_wxStyledTextEvent_SetMargin, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetMargin }}; -// void SetMargin(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetMargin(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetMargin - self->SetMargin(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetMessage[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetMessage[1] = {{ wxLua_wxStyledTextEvent_SetMessage, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetMessage }}; -// void SetMessage(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetMessage(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetMessage - self->SetMessage(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetModificationType[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetModificationType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetModificationType[1] = {{ wxLua_wxStyledTextEvent_SetModificationType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetModificationType }}; -// void SetModificationType(int t); -static int LUACALL wxLua_wxStyledTextEvent_SetModificationType(lua_State *L) -{ - // int t - int t = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetModificationType - self->SetModificationType(t); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetModifiers[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetModifiers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetModifiers[1] = {{ wxLua_wxStyledTextEvent_SetModifiers, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetModifiers }}; -// void SetModifiers(int m); -static int LUACALL wxLua_wxStyledTextEvent_SetModifiers(lua_State *L) -{ - // int m - int m = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetModifiers - self->SetModifiers(m); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetPosition[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetPosition(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetPosition[1] = {{ wxLua_wxStyledTextEvent_SetPosition, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetPosition }}; -// void SetPosition(int pos); -static int LUACALL wxLua_wxStyledTextEvent_SetPosition(lua_State *L) -{ - // int pos - int pos = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetPosition - self->SetPosition(pos); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetText[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetText[1] = {{ wxLua_wxStyledTextEvent_SetText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetText }}; -// void SetText(const wxString& t); -static int LUACALL wxLua_wxStyledTextEvent_SetText(lua_State *L) -{ - // const wxString t - const wxString t = wxlua_getwxStringtype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetText - self->SetText(t); - - return 0; -} - - -#if wxCHECK_VERSION(2,9,5) -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetToken[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetToken(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetToken[1] = {{ wxLua_wxStyledTextEvent_SetToken, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetToken }}; -// %wxchkver_2_9_5 void SetToken(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetToken(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetToken - self->SetToken(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetUpdated[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetUpdated(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetUpdated[1] = {{ wxLua_wxStyledTextEvent_SetUpdated, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetUpdated }}; -// %wxchkver_2_9_5 void SetUpdated(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetUpdated(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetUpdated - self->SetUpdated(val); - - return 0; -} - -#endif // wxCHECK_VERSION(2,9,5) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetWParam[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetWParam(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetWParam[1] = {{ wxLua_wxStyledTextEvent_SetWParam, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetWParam }}; -// void SetWParam(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetWParam(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetWParam - self->SetWParam(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetX[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetX(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetX[1] = {{ wxLua_wxStyledTextEvent_SetX, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetX }}; -// void SetX(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetX(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetX - self->SetX(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_SetY[] = { &wxluatype_wxStyledTextEvent, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_SetY(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_SetY[1] = {{ wxLua_wxStyledTextEvent_SetY, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_SetY }}; -// void SetY(int val); -static int LUACALL wxLua_wxStyledTextEvent_SetY(lua_State *L) -{ - // int val - int val = (int)wxlua_getnumbertype(L, 2); - // get this - wxStyledTextEvent * self = (wxStyledTextEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextEvent); - // call SetY - self->SetY(val); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_delete[] = { &wxluatype_wxStyledTextEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxStyledTextEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxStyledTextEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxStyledTextEvent_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_constructor[1] = {{ wxLua_wxStyledTextEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxStyledTextEvent_constructor }}; -// wxStyledTextEvent(wxEventType commandType = 0, int id = 0); -static int LUACALL wxLua_wxStyledTextEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int id = 0 - int id = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : 0); - // wxEventType commandType = 0 - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : 0); - // call constructor - wxStyledTextEvent* returns = new wxStyledTextEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxStyledTextEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxStyledTextEvent); - - return 1; -} - - - -void wxLua_wxStyledTextEvent_delete_function(void** p) -{ - wxStyledTextEvent* o = (wxStyledTextEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxStyledTextEvent_methods[] = { - { "GetAlt", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetAlt, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetAnnotationsLinesAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetAnnotationsLinesAdded, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetControl, 1, NULL }, - { "GetDragAllowMove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetDragAllowMove, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "GetDragFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetDragFlags, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "GetDragResult", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetDragResult, 1, NULL }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - { "GetDragText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetDragText, 1, NULL }, - { "GetFoldLevelNow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetFoldLevelNow, 1, NULL }, - { "GetFoldLevelPrev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetFoldLevelPrev, 1, NULL }, - { "GetKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetKey, 1, NULL }, - { "GetLParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetLParam, 1, NULL }, - { "GetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetLength, 1, NULL }, - { "GetLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetLine, 1, NULL }, - { "GetLinesAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetLinesAdded, 1, NULL }, - { "GetListType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetListType, 1, NULL }, - { "GetMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetMargin, 1, NULL }, - { "GetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetMessage, 1, NULL }, - { "GetModificationType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetModificationType, 1, NULL }, - { "GetModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetModifiers, 1, NULL }, - { "GetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetPosition, 1, NULL }, - { "GetShift", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetShift, 1, NULL }, - { "GetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetText, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "GetToken", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetToken, 1, NULL }, - { "GetUpdated", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetUpdated, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "GetWParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetWParam, 1, NULL }, - { "GetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetX, 1, NULL }, - { "GetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_GetY, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetAnnotationLinesAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetAnnotationLinesAdded, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetDragAllowMove", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetDragAllowMove, 1, NULL }, - -#if wxCHECK_VERSION(3,1,0) - { "SetDragFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetDragFlags, 1, NULL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - { "SetDragResult", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetDragResult, 1, NULL }, -#endif // wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP - - { "SetDragText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetDragText, 1, NULL }, - { "SetFoldLevelNow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetFoldLevelNow, 1, NULL }, - { "SetFoldLevelPrev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetFoldLevelPrev, 1, NULL }, - { "SetKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetKey, 1, NULL }, - { "SetLParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLParam, 1, NULL }, - { "SetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLength, 1, NULL }, - { "SetLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLine, 1, NULL }, - { "SetLinesAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLinesAdded, 1, NULL }, - { "SetListType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetListType, 1, NULL }, - { "SetMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetMargin, 1, NULL }, - { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetMessage, 1, NULL }, - { "SetModificationType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetModificationType, 1, NULL }, - { "SetModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetModifiers, 1, NULL }, - { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetPosition, 1, NULL }, - { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetText, 1, NULL }, - -#if wxCHECK_VERSION(2,9,5) - { "SetToken", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetToken, 1, NULL }, - { "SetUpdated", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetUpdated, 1, NULL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "SetWParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetWParam, 1, NULL }, - { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetX, 1, NULL }, - { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetY, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxStyledTextEvent_delete, 1, NULL }, - { "wxStyledTextEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStyledTextEvent_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxStyledTextEvent_methodCount = sizeof(wxStyledTextEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxstc_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxstc() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxstc(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxCHECK_VERSION(3,1,0) - { "wxEVT_STC_AUTOCOMP_CANCELLED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_AUTOCOMP_CANCELLED), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_AUTOCOMP_CHAR_DELETED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_AUTOCOMP_CHAR_DELETED), &wxluatype_wxStyledTextEvent }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxEVT_STC_AUTOCOMP_SELECTION", WXLUA_GET_wxEventType_ptr(wxEVT_STC_AUTOCOMP_SELECTION), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_CALLTIP_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_CALLTIP_CLICK), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_CHANGE", WXLUA_GET_wxEventType_ptr(wxEVT_STC_CHANGE), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_CHARADDED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_CHARADDED), &wxluatype_wxStyledTextEvent }, - -#if wxCHECK_VERSION(3,1,0) - { "wxEVT_STC_CLIPBOARD_COPY", WXLUA_GET_wxEventType_ptr(wxEVT_STC_CLIPBOARD_COPY), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_CLIPBOARD_PASTE", WXLUA_GET_wxEventType_ptr(wxEVT_STC_CLIPBOARD_PASTE), &wxluatype_wxStyledTextEvent }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxEVT_STC_DOUBLECLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_DOUBLECLICK), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_DO_DROP", WXLUA_GET_wxEventType_ptr(wxEVT_STC_DO_DROP), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_DRAG_OVER", WXLUA_GET_wxEventType_ptr(wxEVT_STC_DRAG_OVER), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_DWELLEND", WXLUA_GET_wxEventType_ptr(wxEVT_STC_DWELLEND), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_DWELLSTART", WXLUA_GET_wxEventType_ptr(wxEVT_STC_DWELLSTART), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_HOTSPOT_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_HOTSPOT_CLICK), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_HOTSPOT_DCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_HOTSPOT_DCLICK), &wxluatype_wxStyledTextEvent }, - -#if wxCHECK_VERSION(3,1,0) - { "wxEVT_STC_HOTSPOT_RELEASE_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_HOTSPOT_RELEASE_CLICK), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_INDICATOR_CLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_INDICATOR_CLICK), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_INDICATOR_RELEASE", WXLUA_GET_wxEventType_ptr(wxEVT_STC_INDICATOR_RELEASE), &wxluatype_wxStyledTextEvent }, -#endif // wxCHECK_VERSION(3,1,0) - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { "wxEVT_STC_KEY", WXLUA_GET_wxEventType_ptr(wxEVT_STC_KEY), &wxluatype_wxStyledTextEvent }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - - { "wxEVT_STC_MACRORECORD", WXLUA_GET_wxEventType_ptr(wxEVT_STC_MACRORECORD), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_MARGINCLICK", WXLUA_GET_wxEventType_ptr(wxEVT_STC_MARGINCLICK), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_MODIFIED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_MODIFIED), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_NEEDSHOWN", WXLUA_GET_wxEventType_ptr(wxEVT_STC_NEEDSHOWN), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_PAINTED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_PAINTED), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_ROMODIFYATTEMPT", WXLUA_GET_wxEventType_ptr(wxEVT_STC_ROMODIFYATTEMPT), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_SAVEPOINTLEFT", WXLUA_GET_wxEventType_ptr(wxEVT_STC_SAVEPOINTLEFT), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_SAVEPOINTREACHED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_SAVEPOINTREACHED), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_START_DRAG", WXLUA_GET_wxEventType_ptr(wxEVT_STC_START_DRAG), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_STYLENEEDED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_STYLENEEDED), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_UPDATEUI", WXLUA_GET_wxEventType_ptr(wxEVT_STC_UPDATEUI), &wxluatype_wxStyledTextEvent }, - -#if !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - { "wxEVT_STC_URIDROPPED", WXLUA_GET_wxEventType_ptr(wxEVT_STC_URIDROPPED), &wxluatype_wxStyledTextEvent }, -#endif // !wxCHECK_VERSION(3,1,1) || (defined(WXWIN_COMPATIBILITY_3_0) && WXWIN_COMPATIBILITY_3_0) - - { "wxEVT_STC_USERLISTSELECTION", WXLUA_GET_wxEventType_ptr(wxEVT_STC_USERLISTSELECTION), &wxluatype_wxStyledTextEvent }, - { "wxEVT_STC_ZOOM", WXLUA_GET_wxEventType_ptr(wxEVT_STC_ZOOM), &wxluatype_wxStyledTextEvent }, - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxstc() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxstc(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - { "wxSTC_4GL_BLOCK", wxSTC_4GL_BLOCK }, - { "wxSTC_4GL_BLOCK_", wxSTC_4GL_BLOCK_ }, - { "wxSTC_4GL_CHARACTER", wxSTC_4GL_CHARACTER }, - { "wxSTC_4GL_CHARACTER_", wxSTC_4GL_CHARACTER_ }, - { "wxSTC_4GL_COMMENT1", wxSTC_4GL_COMMENT1 }, - { "wxSTC_4GL_COMMENT1_", wxSTC_4GL_COMMENT1_ }, - { "wxSTC_4GL_COMMENT2", wxSTC_4GL_COMMENT2 }, - { "wxSTC_4GL_COMMENT2_", wxSTC_4GL_COMMENT2_ }, - { "wxSTC_4GL_COMMENT3", wxSTC_4GL_COMMENT3 }, - { "wxSTC_4GL_COMMENT3_", wxSTC_4GL_COMMENT3_ }, - { "wxSTC_4GL_COMMENT4", wxSTC_4GL_COMMENT4 }, - { "wxSTC_4GL_COMMENT4_", wxSTC_4GL_COMMENT4_ }, - { "wxSTC_4GL_COMMENT5", wxSTC_4GL_COMMENT5 }, - { "wxSTC_4GL_COMMENT5_", wxSTC_4GL_COMMENT5_ }, - { "wxSTC_4GL_COMMENT6", wxSTC_4GL_COMMENT6 }, - { "wxSTC_4GL_COMMENT6_", wxSTC_4GL_COMMENT6_ }, - { "wxSTC_4GL_DEFAULT", wxSTC_4GL_DEFAULT }, - { "wxSTC_4GL_DEFAULT_", wxSTC_4GL_DEFAULT_ }, - { "wxSTC_4GL_END", wxSTC_4GL_END }, - { "wxSTC_4GL_END_", wxSTC_4GL_END_ }, - { "wxSTC_4GL_IDENTIFIER", wxSTC_4GL_IDENTIFIER }, - { "wxSTC_4GL_IDENTIFIER_", wxSTC_4GL_IDENTIFIER_ }, - { "wxSTC_4GL_NUMBER", wxSTC_4GL_NUMBER }, - { "wxSTC_4GL_NUMBER_", wxSTC_4GL_NUMBER_ }, - { "wxSTC_4GL_OPERATOR", wxSTC_4GL_OPERATOR }, - { "wxSTC_4GL_OPERATOR_", wxSTC_4GL_OPERATOR_ }, - { "wxSTC_4GL_PREPROCESSOR", wxSTC_4GL_PREPROCESSOR }, - { "wxSTC_4GL_PREPROCESSOR_", wxSTC_4GL_PREPROCESSOR_ }, - { "wxSTC_4GL_STRING", wxSTC_4GL_STRING }, - { "wxSTC_4GL_STRING_", wxSTC_4GL_STRING_ }, - { "wxSTC_4GL_WORD", wxSTC_4GL_WORD }, - { "wxSTC_4GL_WORD_", wxSTC_4GL_WORD_ }, -#endif // !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_A68K_COMMENT", wxSTC_A68K_COMMENT }, - { "wxSTC_A68K_COMMENT_DOXYGEN", wxSTC_A68K_COMMENT_DOXYGEN }, - { "wxSTC_A68K_COMMENT_SPECIAL", wxSTC_A68K_COMMENT_SPECIAL }, - { "wxSTC_A68K_COMMENT_WORD", wxSTC_A68K_COMMENT_WORD }, - { "wxSTC_A68K_CPUINSTRUCTION", wxSTC_A68K_CPUINSTRUCTION }, - { "wxSTC_A68K_DEFAULT", wxSTC_A68K_DEFAULT }, - { "wxSTC_A68K_DIRECTIVE", wxSTC_A68K_DIRECTIVE }, - { "wxSTC_A68K_EXTINSTRUCTION", wxSTC_A68K_EXTINSTRUCTION }, - { "wxSTC_A68K_IDENTIFIER", wxSTC_A68K_IDENTIFIER }, - { "wxSTC_A68K_LABEL", wxSTC_A68K_LABEL }, - { "wxSTC_A68K_MACRO_ARG", wxSTC_A68K_MACRO_ARG }, - { "wxSTC_A68K_MACRO_DECLARATION", wxSTC_A68K_MACRO_DECLARATION }, - { "wxSTC_A68K_NUMBER_BIN", wxSTC_A68K_NUMBER_BIN }, - { "wxSTC_A68K_NUMBER_DEC", wxSTC_A68K_NUMBER_DEC }, - { "wxSTC_A68K_NUMBER_HEX", wxSTC_A68K_NUMBER_HEX }, - { "wxSTC_A68K_OPERATOR", wxSTC_A68K_OPERATOR }, - { "wxSTC_A68K_REGISTER", wxSTC_A68K_REGISTER }, - { "wxSTC_A68K_STRING1", wxSTC_A68K_STRING1 }, - { "wxSTC_A68K_STRING2", wxSTC_A68K_STRING2 }, - { "wxSTC_ABAQUS_ARGUMENT", wxSTC_ABAQUS_ARGUMENT }, - { "wxSTC_ABAQUS_COMMAND", wxSTC_ABAQUS_COMMAND }, - { "wxSTC_ABAQUS_COMMENT", wxSTC_ABAQUS_COMMENT }, - { "wxSTC_ABAQUS_COMMENTBLOCK", wxSTC_ABAQUS_COMMENTBLOCK }, - { "wxSTC_ABAQUS_DEFAULT", wxSTC_ABAQUS_DEFAULT }, - { "wxSTC_ABAQUS_FUNCTION", wxSTC_ABAQUS_FUNCTION }, - { "wxSTC_ABAQUS_NUMBER", wxSTC_ABAQUS_NUMBER }, - { "wxSTC_ABAQUS_OPERATOR", wxSTC_ABAQUS_OPERATOR }, - { "wxSTC_ABAQUS_PROCESSOR", wxSTC_ABAQUS_PROCESSOR }, - { "wxSTC_ABAQUS_SLASHCOMMAND", wxSTC_ABAQUS_SLASHCOMMAND }, - { "wxSTC_ABAQUS_STARCOMMAND", wxSTC_ABAQUS_STARCOMMAND }, - { "wxSTC_ABAQUS_STRING", wxSTC_ABAQUS_STRING }, - { "wxSTC_ABAQUS_WORD", wxSTC_ABAQUS_WORD }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_ABL_BLOCK", wxSTC_ABL_BLOCK }, - { "wxSTC_ABL_CHARACTER", wxSTC_ABL_CHARACTER }, - { "wxSTC_ABL_COMMENT", wxSTC_ABL_COMMENT }, - { "wxSTC_ABL_DEFAULT", wxSTC_ABL_DEFAULT }, - { "wxSTC_ABL_END", wxSTC_ABL_END }, - { "wxSTC_ABL_IDENTIFIER", wxSTC_ABL_IDENTIFIER }, - { "wxSTC_ABL_LINECOMMENT", wxSTC_ABL_LINECOMMENT }, - { "wxSTC_ABL_NUMBER", wxSTC_ABL_NUMBER }, - { "wxSTC_ABL_OPERATOR", wxSTC_ABL_OPERATOR }, - { "wxSTC_ABL_PREPROCESSOR", wxSTC_ABL_PREPROCESSOR }, - { "wxSTC_ABL_STRING", wxSTC_ABL_STRING }, - { "wxSTC_ABL_TASKMARKER", wxSTC_ABL_TASKMARKER }, - { "wxSTC_ABL_WORD", wxSTC_ABL_WORD }, - { "wxSTC_AC_COMMAND", wxSTC_AC_COMMAND }, - { "wxSTC_AC_DOUBLECLICK", wxSTC_AC_DOUBLECLICK }, - { "wxSTC_AC_FILLUP", wxSTC_AC_FILLUP }, - { "wxSTC_AC_NEWLINE", wxSTC_AC_NEWLINE }, - { "wxSTC_AC_TAB", wxSTC_AC_TAB }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_ADA_CHARACTER", wxSTC_ADA_CHARACTER }, - { "wxSTC_ADA_CHARACTEREOL", wxSTC_ADA_CHARACTEREOL }, - { "wxSTC_ADA_COMMENTLINE", wxSTC_ADA_COMMENTLINE }, - { "wxSTC_ADA_DEFAULT", wxSTC_ADA_DEFAULT }, - { "wxSTC_ADA_DELIMITER", wxSTC_ADA_DELIMITER }, - { "wxSTC_ADA_IDENTIFIER", wxSTC_ADA_IDENTIFIER }, - { "wxSTC_ADA_ILLEGAL", wxSTC_ADA_ILLEGAL }, - { "wxSTC_ADA_LABEL", wxSTC_ADA_LABEL }, - { "wxSTC_ADA_NUMBER", wxSTC_ADA_NUMBER }, - { "wxSTC_ADA_STRING", wxSTC_ADA_STRING }, - { "wxSTC_ADA_STRINGEOL", wxSTC_ADA_STRINGEOL }, - { "wxSTC_ADA_WORD", wxSTC_ADA_WORD }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_ALPHA_NOALPHA", wxSTC_ALPHA_NOALPHA }, - { "wxSTC_ALPHA_OPAQUE", wxSTC_ALPHA_OPAQUE }, - { "wxSTC_ALPHA_TRANSPARENT", wxSTC_ALPHA_TRANSPARENT }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ANNOTATION_BOXED", wxSTC_ANNOTATION_BOXED }, - { "wxSTC_ANNOTATION_HIDDEN", wxSTC_ANNOTATION_HIDDEN }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_ANNOTATION_INDENTED", wxSTC_ANNOTATION_INDENTED }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ANNOTATION_STANDARD", wxSTC_ANNOTATION_STANDARD }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_APDL_ARGUMENT", wxSTC_APDL_ARGUMENT }, - { "wxSTC_APDL_COMMAND", wxSTC_APDL_COMMAND }, - { "wxSTC_APDL_COMMENT", wxSTC_APDL_COMMENT }, - { "wxSTC_APDL_COMMENTBLOCK", wxSTC_APDL_COMMENTBLOCK }, - { "wxSTC_APDL_DEFAULT", wxSTC_APDL_DEFAULT }, - { "wxSTC_APDL_FUNCTION", wxSTC_APDL_FUNCTION }, - { "wxSTC_APDL_NUMBER", wxSTC_APDL_NUMBER }, - { "wxSTC_APDL_OPERATOR", wxSTC_APDL_OPERATOR }, - { "wxSTC_APDL_PROCESSOR", wxSTC_APDL_PROCESSOR }, - { "wxSTC_APDL_SLASHCOMMAND", wxSTC_APDL_SLASHCOMMAND }, - { "wxSTC_APDL_STARCOMMAND", wxSTC_APDL_STARCOMMAND }, - { "wxSTC_APDL_STRING", wxSTC_APDL_STRING }, - { "wxSTC_APDL_WORD", wxSTC_APDL_WORD }, - { "wxSTC_ASM_CHARACTER", wxSTC_ASM_CHARACTER }, - { "wxSTC_ASM_COMMENT", wxSTC_ASM_COMMENT }, - { "wxSTC_ASM_COMMENTBLOCK", wxSTC_ASM_COMMENTBLOCK }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ASM_COMMENTDIRECTIVE", wxSTC_ASM_COMMENTDIRECTIVE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_ASM_CPUINSTRUCTION", wxSTC_ASM_CPUINSTRUCTION }, - { "wxSTC_ASM_DEFAULT", wxSTC_ASM_DEFAULT }, - { "wxSTC_ASM_DIRECTIVE", wxSTC_ASM_DIRECTIVE }, - { "wxSTC_ASM_DIRECTIVEOPERAND", wxSTC_ASM_DIRECTIVEOPERAND }, - { "wxSTC_ASM_EXTINSTRUCTION", wxSTC_ASM_EXTINSTRUCTION }, - { "wxSTC_ASM_IDENTIFIER", wxSTC_ASM_IDENTIFIER }, - { "wxSTC_ASM_MATHINSTRUCTION", wxSTC_ASM_MATHINSTRUCTION }, - { "wxSTC_ASM_NUMBER", wxSTC_ASM_NUMBER }, - { "wxSTC_ASM_OPERATOR", wxSTC_ASM_OPERATOR }, - { "wxSTC_ASM_REGISTER", wxSTC_ASM_REGISTER }, - { "wxSTC_ASM_STRING", wxSTC_ASM_STRING }, - { "wxSTC_ASM_STRINGEOL", wxSTC_ASM_STRINGEOL }, - { "wxSTC_ASN1_ATTRIBUTE", wxSTC_ASN1_ATTRIBUTE }, - { "wxSTC_ASN1_COMMENT", wxSTC_ASN1_COMMENT }, - { "wxSTC_ASN1_DEFAULT", wxSTC_ASN1_DEFAULT }, - { "wxSTC_ASN1_DESCRIPTOR", wxSTC_ASN1_DESCRIPTOR }, - { "wxSTC_ASN1_IDENTIFIER", wxSTC_ASN1_IDENTIFIER }, - { "wxSTC_ASN1_KEYWORD", wxSTC_ASN1_KEYWORD }, - { "wxSTC_ASN1_OID", wxSTC_ASN1_OID }, - { "wxSTC_ASN1_OPERATOR", wxSTC_ASN1_OPERATOR }, - { "wxSTC_ASN1_SCALAR", wxSTC_ASN1_SCALAR }, - { "wxSTC_ASN1_STRING", wxSTC_ASN1_STRING }, - { "wxSTC_ASN1_TYPE", wxSTC_ASN1_TYPE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ASY_CHARACTER", wxSTC_ASY_CHARACTER }, - { "wxSTC_ASY_COMMENT", wxSTC_ASY_COMMENT }, - { "wxSTC_ASY_COMMENTLINE", wxSTC_ASY_COMMENTLINE }, - { "wxSTC_ASY_COMMENTLINEDOC", wxSTC_ASY_COMMENTLINEDOC }, - { "wxSTC_ASY_DEFAULT", wxSTC_ASY_DEFAULT }, - { "wxSTC_ASY_IDENTIFIER", wxSTC_ASY_IDENTIFIER }, - { "wxSTC_ASY_NUMBER", wxSTC_ASY_NUMBER }, - { "wxSTC_ASY_OPERATOR", wxSTC_ASY_OPERATOR }, - { "wxSTC_ASY_STRING", wxSTC_ASY_STRING }, - { "wxSTC_ASY_STRINGEOL", wxSTC_ASY_STRINGEOL }, - { "wxSTC_ASY_WORD", wxSTC_ASY_WORD }, - { "wxSTC_ASY_WORD2", wxSTC_ASY_WORD2 }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_AU3_COMMENT", wxSTC_AU3_COMMENT }, - { "wxSTC_AU3_COMMENTBLOCK", wxSTC_AU3_COMMENTBLOCK }, - { "wxSTC_AU3_COMOBJ", wxSTC_AU3_COMOBJ }, - { "wxSTC_AU3_DEFAULT", wxSTC_AU3_DEFAULT }, - { "wxSTC_AU3_EXPAND", wxSTC_AU3_EXPAND }, - { "wxSTC_AU3_FUNCTION", wxSTC_AU3_FUNCTION }, - { "wxSTC_AU3_KEYWORD", wxSTC_AU3_KEYWORD }, - { "wxSTC_AU3_MACRO", wxSTC_AU3_MACRO }, - { "wxSTC_AU3_NUMBER", wxSTC_AU3_NUMBER }, - { "wxSTC_AU3_OPERATOR", wxSTC_AU3_OPERATOR }, - { "wxSTC_AU3_PREPROCESSOR", wxSTC_AU3_PREPROCESSOR }, - { "wxSTC_AU3_SENT", wxSTC_AU3_SENT }, - { "wxSTC_AU3_SPECIAL", wxSTC_AU3_SPECIAL }, - { "wxSTC_AU3_STRING", wxSTC_AU3_STRING }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_AU3_UDF", wxSTC_AU3_UDF }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_AU3_VARIABLE", wxSTC_AU3_VARIABLE }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_AUTOMATICFOLD_CHANGE", wxSTC_AUTOMATICFOLD_CHANGE }, - { "wxSTC_AUTOMATICFOLD_CLICK", wxSTC_AUTOMATICFOLD_CLICK }, - { "wxSTC_AUTOMATICFOLD_SHOW", wxSTC_AUTOMATICFOLD_SHOW }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_AVE_COMMENT", wxSTC_AVE_COMMENT }, - { "wxSTC_AVE_DEFAULT", wxSTC_AVE_DEFAULT }, - { "wxSTC_AVE_ENUM", wxSTC_AVE_ENUM }, - { "wxSTC_AVE_IDENTIFIER", wxSTC_AVE_IDENTIFIER }, - { "wxSTC_AVE_NUMBER", wxSTC_AVE_NUMBER }, - { "wxSTC_AVE_OPERATOR", wxSTC_AVE_OPERATOR }, - { "wxSTC_AVE_STRING", wxSTC_AVE_STRING }, - { "wxSTC_AVE_STRINGEOL", wxSTC_AVE_STRINGEOL }, - { "wxSTC_AVE_WORD", wxSTC_AVE_WORD }, - { "wxSTC_AVE_WORD1", wxSTC_AVE_WORD1 }, - { "wxSTC_AVE_WORD2", wxSTC_AVE_WORD2 }, - { "wxSTC_AVE_WORD3", wxSTC_AVE_WORD3 }, - { "wxSTC_AVE_WORD4", wxSTC_AVE_WORD4 }, - { "wxSTC_AVE_WORD5", wxSTC_AVE_WORD5 }, - { "wxSTC_AVE_WORD6", wxSTC_AVE_WORD6 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_AVS_CLIPPROP", wxSTC_AVS_CLIPPROP }, - { "wxSTC_AVS_COMMENTBLOCK", wxSTC_AVS_COMMENTBLOCK }, - { "wxSTC_AVS_COMMENTBLOCKN", wxSTC_AVS_COMMENTBLOCKN }, - { "wxSTC_AVS_COMMENTLINE", wxSTC_AVS_COMMENTLINE }, - { "wxSTC_AVS_DEFAULT", wxSTC_AVS_DEFAULT }, - { "wxSTC_AVS_FILTER", wxSTC_AVS_FILTER }, - { "wxSTC_AVS_FUNCTION", wxSTC_AVS_FUNCTION }, - { "wxSTC_AVS_IDENTIFIER", wxSTC_AVS_IDENTIFIER }, - { "wxSTC_AVS_KEYWORD", wxSTC_AVS_KEYWORD }, - { "wxSTC_AVS_NUMBER", wxSTC_AVS_NUMBER }, - { "wxSTC_AVS_OPERATOR", wxSTC_AVS_OPERATOR }, - { "wxSTC_AVS_PLUGIN", wxSTC_AVS_PLUGIN }, - { "wxSTC_AVS_STRING", wxSTC_AVS_STRING }, - { "wxSTC_AVS_TRIPLESTRING", wxSTC_AVS_TRIPLESTRING }, - { "wxSTC_AVS_USERDFN", wxSTC_AVS_USERDFN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_BAAN_COMMENT", wxSTC_BAAN_COMMENT }, - { "wxSTC_BAAN_COMMENTDOC", wxSTC_BAAN_COMMENTDOC }, - { "wxSTC_BAAN_DEFAULT", wxSTC_BAAN_DEFAULT }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_BAAN_DEFINEDEF", wxSTC_BAAN_DEFINEDEF }, - { "wxSTC_BAAN_DOMDEF", wxSTC_BAAN_DOMDEF }, - { "wxSTC_BAAN_FUNCDEF", wxSTC_BAAN_FUNCDEF }, - { "wxSTC_BAAN_FUNCTION", wxSTC_BAAN_FUNCTION }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_BAAN_IDENTIFIER", wxSTC_BAAN_IDENTIFIER }, - { "wxSTC_BAAN_NUMBER", wxSTC_BAAN_NUMBER }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_BAAN_OBJECTDEF", wxSTC_BAAN_OBJECTDEF }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_BAAN_OPERATOR", wxSTC_BAAN_OPERATOR }, - { "wxSTC_BAAN_PREPROCESSOR", wxSTC_BAAN_PREPROCESSOR }, - { "wxSTC_BAAN_STRING", wxSTC_BAAN_STRING }, - { "wxSTC_BAAN_STRINGEOL", wxSTC_BAAN_STRINGEOL }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_BAAN_TABLEDEF", wxSTC_BAAN_TABLEDEF }, - { "wxSTC_BAAN_TABLESQL", wxSTC_BAAN_TABLESQL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_BAAN_WORD", wxSTC_BAAN_WORD }, - { "wxSTC_BAAN_WORD2", wxSTC_BAAN_WORD2 }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_BAAN_WORD3", wxSTC_BAAN_WORD3 }, - { "wxSTC_BAAN_WORD4", wxSTC_BAAN_WORD4 }, - { "wxSTC_BAAN_WORD5", wxSTC_BAAN_WORD5 }, - { "wxSTC_BAAN_WORD6", wxSTC_BAAN_WORD6 }, - { "wxSTC_BAAN_WORD7", wxSTC_BAAN_WORD7 }, - { "wxSTC_BAAN_WORD8", wxSTC_BAAN_WORD8 }, - { "wxSTC_BAAN_WORD9", wxSTC_BAAN_WORD9 }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_BAT_COMMAND", wxSTC_BAT_COMMAND }, - { "wxSTC_BAT_COMMENT", wxSTC_BAT_COMMENT }, - { "wxSTC_BAT_DEFAULT", wxSTC_BAT_DEFAULT }, - { "wxSTC_BAT_HIDE", wxSTC_BAT_HIDE }, - { "wxSTC_BAT_IDENTIFIER", wxSTC_BAT_IDENTIFIER }, - { "wxSTC_BAT_LABEL", wxSTC_BAT_LABEL }, - { "wxSTC_BAT_OPERATOR", wxSTC_BAT_OPERATOR }, - { "wxSTC_BAT_WORD", wxSTC_BAT_WORD }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_BIBTEX_COMMENT", wxSTC_BIBTEX_COMMENT }, - { "wxSTC_BIBTEX_DEFAULT", wxSTC_BIBTEX_DEFAULT }, - { "wxSTC_BIBTEX_ENTRY", wxSTC_BIBTEX_ENTRY }, - { "wxSTC_BIBTEX_KEY", wxSTC_BIBTEX_KEY }, - { "wxSTC_BIBTEX_PARAMETER", wxSTC_BIBTEX_PARAMETER }, - { "wxSTC_BIBTEX_UNKNOWN_ENTRY", wxSTC_BIBTEX_UNKNOWN_ENTRY }, - { "wxSTC_BIBTEX_VALUE", wxSTC_BIBTEX_VALUE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_B_ASM", wxSTC_B_ASM }, - { "wxSTC_B_BINNUMBER", wxSTC_B_BINNUMBER }, - { "wxSTC_B_COMMENT", wxSTC_B_COMMENT }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_B_COMMENTBLOCK", wxSTC_B_COMMENTBLOCK }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_B_CONSTANT", wxSTC_B_CONSTANT }, - { "wxSTC_B_DATE", wxSTC_B_DATE }, - { "wxSTC_B_DEFAULT", wxSTC_B_DEFAULT }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_B_DOCBLOCK", wxSTC_B_DOCBLOCK }, - { "wxSTC_B_DOCKEYWORD", wxSTC_B_DOCKEYWORD }, - { "wxSTC_B_DOCLINE", wxSTC_B_DOCLINE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_B_ERROR", wxSTC_B_ERROR }, - { "wxSTC_B_HEXNUMBER", wxSTC_B_HEXNUMBER }, - { "wxSTC_B_IDENTIFIER", wxSTC_B_IDENTIFIER }, - { "wxSTC_B_KEYWORD", wxSTC_B_KEYWORD }, - { "wxSTC_B_KEYWORD2", wxSTC_B_KEYWORD2 }, - { "wxSTC_B_KEYWORD3", wxSTC_B_KEYWORD3 }, - { "wxSTC_B_KEYWORD4", wxSTC_B_KEYWORD4 }, - { "wxSTC_B_LABEL", wxSTC_B_LABEL }, - { "wxSTC_B_NUMBER", wxSTC_B_NUMBER }, - { "wxSTC_B_OPERATOR", wxSTC_B_OPERATOR }, - { "wxSTC_B_PREPROCESSOR", wxSTC_B_PREPROCESSOR }, - { "wxSTC_B_STRING", wxSTC_B_STRING }, - { "wxSTC_B_STRINGEOL", wxSTC_B_STRINGEOL }, - { "wxSTC_CACHE_CARET", wxSTC_CACHE_CARET }, - { "wxSTC_CACHE_DOCUMENT", wxSTC_CACHE_DOCUMENT }, - { "wxSTC_CACHE_NONE", wxSTC_CACHE_NONE }, - { "wxSTC_CACHE_PAGE", wxSTC_CACHE_PAGE }, - { "wxSTC_CAML_CHAR", wxSTC_CAML_CHAR }, - { "wxSTC_CAML_COMMENT", wxSTC_CAML_COMMENT }, - { "wxSTC_CAML_COMMENT1", wxSTC_CAML_COMMENT1 }, - { "wxSTC_CAML_COMMENT2", wxSTC_CAML_COMMENT2 }, - { "wxSTC_CAML_COMMENT3", wxSTC_CAML_COMMENT3 }, - { "wxSTC_CAML_DEFAULT", wxSTC_CAML_DEFAULT }, - { "wxSTC_CAML_IDENTIFIER", wxSTC_CAML_IDENTIFIER }, - { "wxSTC_CAML_KEYWORD", wxSTC_CAML_KEYWORD }, - { "wxSTC_CAML_KEYWORD2", wxSTC_CAML_KEYWORD2 }, - { "wxSTC_CAML_KEYWORD3", wxSTC_CAML_KEYWORD3 }, - { "wxSTC_CAML_LINENUM", wxSTC_CAML_LINENUM }, - { "wxSTC_CAML_NUMBER", wxSTC_CAML_NUMBER }, - { "wxSTC_CAML_OPERATOR", wxSTC_CAML_OPERATOR }, - { "wxSTC_CAML_STRING", wxSTC_CAML_STRING }, - { "wxSTC_CAML_TAGNAME", wxSTC_CAML_TAGNAME }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CAML_WHITE", wxSTC_CAML_WHITE }, - { "wxSTC_CARETSTICKY_OFF", wxSTC_CARETSTICKY_OFF }, - { "wxSTC_CARETSTICKY_ON", wxSTC_CARETSTICKY_ON }, - { "wxSTC_CARETSTICKY_WHITESPACE", wxSTC_CARETSTICKY_WHITESPACE }, - { "wxSTC_CARETSTYLE_BLOCK", wxSTC_CARETSTYLE_BLOCK }, - { "wxSTC_CARETSTYLE_INVISIBLE", wxSTC_CARETSTYLE_INVISIBLE }, - { "wxSTC_CARETSTYLE_LINE", wxSTC_CARETSTYLE_LINE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CARET_EVEN", wxSTC_CARET_EVEN }, - { "wxSTC_CARET_JUMPS", wxSTC_CARET_JUMPS }, - { "wxSTC_CARET_SLOP", wxSTC_CARET_SLOP }, - { "wxSTC_CARET_STRICT", wxSTC_CARET_STRICT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE", wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE }, - { "wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE", wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_CASE_CAMEL", wxSTC_CASE_CAMEL }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_CASE_LOWER", wxSTC_CASE_LOWER }, - { "wxSTC_CASE_MIXED", wxSTC_CASE_MIXED }, - { "wxSTC_CASE_UPPER", wxSTC_CASE_UPPER }, - { "wxSTC_CHARSET_8859_15", wxSTC_CHARSET_8859_15 }, - { "wxSTC_CHARSET_ANSI", wxSTC_CHARSET_ANSI }, - { "wxSTC_CHARSET_ARABIC", wxSTC_CHARSET_ARABIC }, - { "wxSTC_CHARSET_BALTIC", wxSTC_CHARSET_BALTIC }, - { "wxSTC_CHARSET_CHINESEBIG5", wxSTC_CHARSET_CHINESEBIG5 }, - { "wxSTC_CHARSET_CYRILLIC", wxSTC_CHARSET_CYRILLIC }, - { "wxSTC_CHARSET_DEFAULT", wxSTC_CHARSET_DEFAULT }, - { "wxSTC_CHARSET_EASTEUROPE", wxSTC_CHARSET_EASTEUROPE }, - { "wxSTC_CHARSET_GB2312", wxSTC_CHARSET_GB2312 }, - { "wxSTC_CHARSET_GREEK", wxSTC_CHARSET_GREEK }, - { "wxSTC_CHARSET_HANGUL", wxSTC_CHARSET_HANGUL }, - { "wxSTC_CHARSET_HEBREW", wxSTC_CHARSET_HEBREW }, - { "wxSTC_CHARSET_JOHAB", wxSTC_CHARSET_JOHAB }, - { "wxSTC_CHARSET_MAC", wxSTC_CHARSET_MAC }, - { "wxSTC_CHARSET_OEM", wxSTC_CHARSET_OEM }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_CHARSET_OEM866", wxSTC_CHARSET_OEM866 }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_CHARSET_RUSSIAN", wxSTC_CHARSET_RUSSIAN }, - { "wxSTC_CHARSET_SHIFTJIS", wxSTC_CHARSET_SHIFTJIS }, - { "wxSTC_CHARSET_SYMBOL", wxSTC_CHARSET_SYMBOL }, - { "wxSTC_CHARSET_THAI", wxSTC_CHARSET_THAI }, - { "wxSTC_CHARSET_TURKISH", wxSTC_CHARSET_TURKISH }, - { "wxSTC_CHARSET_VIETNAMESE", wxSTC_CHARSET_VIETNAMESE }, - { "wxSTC_CLW_ATTRIBUTE", wxSTC_CLW_ATTRIBUTE }, - { "wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION", wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION }, - { "wxSTC_CLW_COMMENT", wxSTC_CLW_COMMENT }, - { "wxSTC_CLW_COMPILER_DIRECTIVE", wxSTC_CLW_COMPILER_DIRECTIVE }, - { "wxSTC_CLW_DEFAULT", wxSTC_CLW_DEFAULT }, - { "wxSTC_CLW_DEPRECATED", wxSTC_CLW_DEPRECATED }, - { "wxSTC_CLW_ERROR", wxSTC_CLW_ERROR }, - { "wxSTC_CLW_INTEGER_CONSTANT", wxSTC_CLW_INTEGER_CONSTANT }, - { "wxSTC_CLW_KEYWORD", wxSTC_CLW_KEYWORD }, - { "wxSTC_CLW_LABEL", wxSTC_CLW_LABEL }, - { "wxSTC_CLW_PICTURE_STRING", wxSTC_CLW_PICTURE_STRING }, - { "wxSTC_CLW_REAL_CONSTANT", wxSTC_CLW_REAL_CONSTANT }, - { "wxSTC_CLW_RUNTIME_EXPRESSIONS", wxSTC_CLW_RUNTIME_EXPRESSIONS }, - { "wxSTC_CLW_STANDARD_EQUATE", wxSTC_CLW_STANDARD_EQUATE }, - { "wxSTC_CLW_STRING", wxSTC_CLW_STRING }, - { "wxSTC_CLW_STRUCTURE_DATA_TYPE", wxSTC_CLW_STRUCTURE_DATA_TYPE }, - { "wxSTC_CLW_USER_IDENTIFIER", wxSTC_CLW_USER_IDENTIFIER }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CMAKE_COMMANDS", wxSTC_CMAKE_COMMANDS }, - { "wxSTC_CMAKE_COMMENT", wxSTC_CMAKE_COMMENT }, - { "wxSTC_CMAKE_DEFAULT", wxSTC_CMAKE_DEFAULT }, - { "wxSTC_CMAKE_FOREACHDEF", wxSTC_CMAKE_FOREACHDEF }, - { "wxSTC_CMAKE_IFDEFINEDEF", wxSTC_CMAKE_IFDEFINEDEF }, - { "wxSTC_CMAKE_MACRODEF", wxSTC_CMAKE_MACRODEF }, - { "wxSTC_CMAKE_NUMBER", wxSTC_CMAKE_NUMBER }, - { "wxSTC_CMAKE_PARAMETERS", wxSTC_CMAKE_PARAMETERS }, - { "wxSTC_CMAKE_STRINGDQ", wxSTC_CMAKE_STRINGDQ }, - { "wxSTC_CMAKE_STRINGLQ", wxSTC_CMAKE_STRINGLQ }, - { "wxSTC_CMAKE_STRINGRQ", wxSTC_CMAKE_STRINGRQ }, - { "wxSTC_CMAKE_STRINGVAR", wxSTC_CMAKE_STRINGVAR }, - { "wxSTC_CMAKE_USERDEFINED", wxSTC_CMAKE_USERDEFINED }, - { "wxSTC_CMAKE_VARIABLE", wxSTC_CMAKE_VARIABLE }, - { "wxSTC_CMAKE_WHILEDEF", wxSTC_CMAKE_WHILEDEF }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CMD_BACKTAB", wxSTC_CMD_BACKTAB }, - { "wxSTC_CMD_CANCEL", wxSTC_CMD_CANCEL }, - { "wxSTC_CMD_CHARLEFT", wxSTC_CMD_CHARLEFT }, - { "wxSTC_CMD_CHARLEFTEXTEND", wxSTC_CMD_CHARLEFTEXTEND }, - { "wxSTC_CMD_CHARLEFTRECTEXTEND", wxSTC_CMD_CHARLEFTRECTEXTEND }, - { "wxSTC_CMD_CHARRIGHT", wxSTC_CMD_CHARRIGHT }, - { "wxSTC_CMD_CHARRIGHTEXTEND", wxSTC_CMD_CHARRIGHTEXTEND }, - { "wxSTC_CMD_CHARRIGHTRECTEXTEND", wxSTC_CMD_CHARRIGHTRECTEXTEND }, - { "wxSTC_CMD_CLEAR", wxSTC_CMD_CLEAR }, - { "wxSTC_CMD_COPY", wxSTC_CMD_COPY }, - { "wxSTC_CMD_CUT", wxSTC_CMD_CUT }, - { "wxSTC_CMD_DELETEBACK", wxSTC_CMD_DELETEBACK }, - { "wxSTC_CMD_DELETEBACKNOTLINE", wxSTC_CMD_DELETEBACKNOTLINE }, - { "wxSTC_CMD_DELLINELEFT", wxSTC_CMD_DELLINELEFT }, - { "wxSTC_CMD_DELLINERIGHT", wxSTC_CMD_DELLINERIGHT }, - { "wxSTC_CMD_DELWORDLEFT", wxSTC_CMD_DELWORDLEFT }, - { "wxSTC_CMD_DELWORDRIGHT", wxSTC_CMD_DELWORDRIGHT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CMD_DELWORDRIGHTEND", wxSTC_CMD_DELWORDRIGHTEND }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CMD_DOCUMENTEND", wxSTC_CMD_DOCUMENTEND }, - { "wxSTC_CMD_DOCUMENTENDEXTEND", wxSTC_CMD_DOCUMENTENDEXTEND }, - { "wxSTC_CMD_DOCUMENTSTART", wxSTC_CMD_DOCUMENTSTART }, - { "wxSTC_CMD_DOCUMENTSTARTEXTEND", wxSTC_CMD_DOCUMENTSTARTEXTEND }, - { "wxSTC_CMD_EDITTOGGLEOVERTYPE", wxSTC_CMD_EDITTOGGLEOVERTYPE }, - { "wxSTC_CMD_FORMFEED", wxSTC_CMD_FORMFEED }, - { "wxSTC_CMD_HOME", wxSTC_CMD_HOME }, - { "wxSTC_CMD_HOMEDISPLAY", wxSTC_CMD_HOMEDISPLAY }, - { "wxSTC_CMD_HOMEDISPLAYEXTEND", wxSTC_CMD_HOMEDISPLAYEXTEND }, - { "wxSTC_CMD_HOMEEXTEND", wxSTC_CMD_HOMEEXTEND }, - { "wxSTC_CMD_HOMERECTEXTEND", wxSTC_CMD_HOMERECTEXTEND }, - { "wxSTC_CMD_HOMEWRAP", wxSTC_CMD_HOMEWRAP }, - { "wxSTC_CMD_HOMEWRAPEXTEND", wxSTC_CMD_HOMEWRAPEXTEND }, - { "wxSTC_CMD_LINECOPY", wxSTC_CMD_LINECOPY }, - { "wxSTC_CMD_LINECUT", wxSTC_CMD_LINECUT }, - { "wxSTC_CMD_LINEDELETE", wxSTC_CMD_LINEDELETE }, - { "wxSTC_CMD_LINEDOWN", wxSTC_CMD_LINEDOWN }, - { "wxSTC_CMD_LINEDOWNEXTEND", wxSTC_CMD_LINEDOWNEXTEND }, - { "wxSTC_CMD_LINEDOWNRECTEXTEND", wxSTC_CMD_LINEDOWNRECTEXTEND }, - { "wxSTC_CMD_LINEDUPLICATE", wxSTC_CMD_LINEDUPLICATE }, - { "wxSTC_CMD_LINEEND", wxSTC_CMD_LINEEND }, - { "wxSTC_CMD_LINEENDDISPLAY", wxSTC_CMD_LINEENDDISPLAY }, - { "wxSTC_CMD_LINEENDDISPLAYEXTEND", wxSTC_CMD_LINEENDDISPLAYEXTEND }, - { "wxSTC_CMD_LINEENDEXTEND", wxSTC_CMD_LINEENDEXTEND }, - { "wxSTC_CMD_LINEENDRECTEXTEND", wxSTC_CMD_LINEENDRECTEXTEND }, - { "wxSTC_CMD_LINEENDWRAP", wxSTC_CMD_LINEENDWRAP }, - { "wxSTC_CMD_LINEENDWRAPEXTEND", wxSTC_CMD_LINEENDWRAPEXTEND }, - { "wxSTC_CMD_LINESCROLLDOWN", wxSTC_CMD_LINESCROLLDOWN }, - { "wxSTC_CMD_LINESCROLLUP", wxSTC_CMD_LINESCROLLUP }, - { "wxSTC_CMD_LINETRANSPOSE", wxSTC_CMD_LINETRANSPOSE }, - { "wxSTC_CMD_LINEUP", wxSTC_CMD_LINEUP }, - { "wxSTC_CMD_LINEUPEXTEND", wxSTC_CMD_LINEUPEXTEND }, - { "wxSTC_CMD_LINEUPRECTEXTEND", wxSTC_CMD_LINEUPRECTEXTEND }, - { "wxSTC_CMD_LOWERCASE", wxSTC_CMD_LOWERCASE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CMD_MOVESELECTEDLINESDOWN", wxSTC_CMD_MOVESELECTEDLINESDOWN }, - { "wxSTC_CMD_MOVESELECTEDLINESUP", wxSTC_CMD_MOVESELECTEDLINESUP }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CMD_NEWLINE", wxSTC_CMD_NEWLINE }, - { "wxSTC_CMD_PAGEDOWN", wxSTC_CMD_PAGEDOWN }, - { "wxSTC_CMD_PAGEDOWNEXTEND", wxSTC_CMD_PAGEDOWNEXTEND }, - { "wxSTC_CMD_PAGEDOWNRECTEXTEND", wxSTC_CMD_PAGEDOWNRECTEXTEND }, - { "wxSTC_CMD_PAGEUP", wxSTC_CMD_PAGEUP }, - { "wxSTC_CMD_PAGEUPEXTEND", wxSTC_CMD_PAGEUPEXTEND }, - { "wxSTC_CMD_PAGEUPRECTEXTEND", wxSTC_CMD_PAGEUPRECTEXTEND }, - { "wxSTC_CMD_PARADOWN", wxSTC_CMD_PARADOWN }, - { "wxSTC_CMD_PARADOWNEXTEND", wxSTC_CMD_PARADOWNEXTEND }, - { "wxSTC_CMD_PARAUP", wxSTC_CMD_PARAUP }, - { "wxSTC_CMD_PARAUPEXTEND", wxSTC_CMD_PARAUPEXTEND }, - { "wxSTC_CMD_PASTE", wxSTC_CMD_PASTE }, - { "wxSTC_CMD_REDO", wxSTC_CMD_REDO }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CMD_SCROLLTOEND", wxSTC_CMD_SCROLLTOEND }, - { "wxSTC_CMD_SCROLLTOSTART", wxSTC_CMD_SCROLLTOSTART }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CMD_SELECTALL", wxSTC_CMD_SELECTALL }, - { "wxSTC_CMD_STUTTEREDPAGEDOWN", wxSTC_CMD_STUTTEREDPAGEDOWN }, - { "wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND", wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND }, - { "wxSTC_CMD_STUTTEREDPAGEUP", wxSTC_CMD_STUTTEREDPAGEUP }, - { "wxSTC_CMD_STUTTEREDPAGEUPEXTEND", wxSTC_CMD_STUTTEREDPAGEUPEXTEND }, - { "wxSTC_CMD_TAB", wxSTC_CMD_TAB }, - { "wxSTC_CMD_UNDO", wxSTC_CMD_UNDO }, - { "wxSTC_CMD_UPPERCASE", wxSTC_CMD_UPPERCASE }, - { "wxSTC_CMD_VCHOME", wxSTC_CMD_VCHOME }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_CMD_VCHOMEDISPLAY", wxSTC_CMD_VCHOMEDISPLAY }, - { "wxSTC_CMD_VCHOMEDISPLAYEXTEND", wxSTC_CMD_VCHOMEDISPLAYEXTEND }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_CMD_VCHOMEEXTEND", wxSTC_CMD_VCHOMEEXTEND }, - { "wxSTC_CMD_VCHOMERECTEXTEND", wxSTC_CMD_VCHOMERECTEXTEND }, - { "wxSTC_CMD_VCHOMEWRAP", wxSTC_CMD_VCHOMEWRAP }, - { "wxSTC_CMD_VCHOMEWRAPEXTEND", wxSTC_CMD_VCHOMEWRAPEXTEND }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CMD_VERTICALCENTRECARET", wxSTC_CMD_VERTICALCENTRECARET }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CMD_WORDLEFT", wxSTC_CMD_WORDLEFT }, - { "wxSTC_CMD_WORDLEFTEND", wxSTC_CMD_WORDLEFTEND }, - { "wxSTC_CMD_WORDLEFTENDEXTEND", wxSTC_CMD_WORDLEFTENDEXTEND }, - { "wxSTC_CMD_WORDLEFTEXTEND", wxSTC_CMD_WORDLEFTEXTEND }, - { "wxSTC_CMD_WORDPARTLEFT", wxSTC_CMD_WORDPARTLEFT }, - { "wxSTC_CMD_WORDPARTLEFTEXTEND", wxSTC_CMD_WORDPARTLEFTEXTEND }, - { "wxSTC_CMD_WORDPARTRIGHT", wxSTC_CMD_WORDPARTRIGHT }, - { "wxSTC_CMD_WORDPARTRIGHTEXTEND", wxSTC_CMD_WORDPARTRIGHTEXTEND }, - { "wxSTC_CMD_WORDRIGHT", wxSTC_CMD_WORDRIGHT }, - { "wxSTC_CMD_WORDRIGHTEND", wxSTC_CMD_WORDRIGHTEND }, - { "wxSTC_CMD_WORDRIGHTENDEXTEND", wxSTC_CMD_WORDRIGHTENDEXTEND }, - { "wxSTC_CMD_WORDRIGHTEXTEND", wxSTC_CMD_WORDRIGHTEXTEND }, - { "wxSTC_CMD_ZOOMIN", wxSTC_CMD_ZOOMIN }, - { "wxSTC_CMD_ZOOMOUT", wxSTC_CMD_ZOOMOUT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_COFFEESCRIPT_CHARACTER", wxSTC_COFFEESCRIPT_CHARACTER }, - { "wxSTC_COFFEESCRIPT_COMMENT", wxSTC_COFFEESCRIPT_COMMENT }, - { "wxSTC_COFFEESCRIPT_COMMENTBLOCK", wxSTC_COFFEESCRIPT_COMMENTBLOCK }, - { "wxSTC_COFFEESCRIPT_COMMENTDOC", wxSTC_COFFEESCRIPT_COMMENTDOC }, - { "wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD", wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD }, - { "wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR", wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR }, - { "wxSTC_COFFEESCRIPT_COMMENTLINE", wxSTC_COFFEESCRIPT_COMMENTLINE }, - { "wxSTC_COFFEESCRIPT_COMMENTLINEDOC", wxSTC_COFFEESCRIPT_COMMENTLINEDOC }, - { "wxSTC_COFFEESCRIPT_DEFAULT", wxSTC_COFFEESCRIPT_DEFAULT }, - { "wxSTC_COFFEESCRIPT_GLOBALCLASS", wxSTC_COFFEESCRIPT_GLOBALCLASS }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - { "wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING", wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING }, -#endif // wxCHECK_VERSION(2,9,5) && !wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_COFFEESCRIPT_IDENTIFIER", wxSTC_COFFEESCRIPT_IDENTIFIER }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_COFFEESCRIPT_INSTANCEPROPERTY", wxSTC_COFFEESCRIPT_INSTANCEPROPERTY }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_COFFEESCRIPT_NUMBER", wxSTC_COFFEESCRIPT_NUMBER }, - { "wxSTC_COFFEESCRIPT_OPERATOR", wxSTC_COFFEESCRIPT_OPERATOR }, - { "wxSTC_COFFEESCRIPT_PREPROCESSOR", wxSTC_COFFEESCRIPT_PREPROCESSOR }, - { "wxSTC_COFFEESCRIPT_REGEX", wxSTC_COFFEESCRIPT_REGEX }, - { "wxSTC_COFFEESCRIPT_STRING", wxSTC_COFFEESCRIPT_STRING }, - { "wxSTC_COFFEESCRIPT_STRINGEOL", wxSTC_COFFEESCRIPT_STRINGEOL }, - { "wxSTC_COFFEESCRIPT_STRINGRAW", wxSTC_COFFEESCRIPT_STRINGRAW }, - { "wxSTC_COFFEESCRIPT_TRIPLEVERBATIM", wxSTC_COFFEESCRIPT_TRIPLEVERBATIM }, - { "wxSTC_COFFEESCRIPT_UUID", wxSTC_COFFEESCRIPT_UUID }, - { "wxSTC_COFFEESCRIPT_VERBATIM", wxSTC_COFFEESCRIPT_VERBATIM }, - { "wxSTC_COFFEESCRIPT_VERBOSE_REGEX", wxSTC_COFFEESCRIPT_VERBOSE_REGEX }, - { "wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT", wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT }, - { "wxSTC_COFFEESCRIPT_WORD", wxSTC_COFFEESCRIPT_WORD }, - { "wxSTC_COFFEESCRIPT_WORD2", wxSTC_COFFEESCRIPT_WORD2 }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CONF_COMMENT", wxSTC_CONF_COMMENT }, - { "wxSTC_CONF_DEFAULT", wxSTC_CONF_DEFAULT }, - { "wxSTC_CONF_DIRECTIVE", wxSTC_CONF_DIRECTIVE }, - { "wxSTC_CONF_EXTENSION", wxSTC_CONF_EXTENSION }, - { "wxSTC_CONF_IDENTIFIER", wxSTC_CONF_IDENTIFIER }, - { "wxSTC_CONF_IP", wxSTC_CONF_IP }, - { "wxSTC_CONF_NUMBER", wxSTC_CONF_NUMBER }, - { "wxSTC_CONF_OPERATOR", wxSTC_CONF_OPERATOR }, - { "wxSTC_CONF_PARAMETER", wxSTC_CONF_PARAMETER }, - { "wxSTC_CONF_STRING", wxSTC_CONF_STRING }, - { "wxSTC_CP_UTF8", wxSTC_CP_UTF8 }, - { "wxSTC_CSOUND_ARATE_VAR", wxSTC_CSOUND_ARATE_VAR }, - { "wxSTC_CSOUND_COMMENT", wxSTC_CSOUND_COMMENT }, - { "wxSTC_CSOUND_COMMENTBLOCK", wxSTC_CSOUND_COMMENTBLOCK }, - { "wxSTC_CSOUND_DEFAULT", wxSTC_CSOUND_DEFAULT }, - { "wxSTC_CSOUND_GLOBAL_VAR", wxSTC_CSOUND_GLOBAL_VAR }, - { "wxSTC_CSOUND_HEADERSTMT", wxSTC_CSOUND_HEADERSTMT }, - { "wxSTC_CSOUND_IDENTIFIER", wxSTC_CSOUND_IDENTIFIER }, - { "wxSTC_CSOUND_INSTR", wxSTC_CSOUND_INSTR }, - { "wxSTC_CSOUND_IRATE_VAR", wxSTC_CSOUND_IRATE_VAR }, - { "wxSTC_CSOUND_KRATE_VAR", wxSTC_CSOUND_KRATE_VAR }, - { "wxSTC_CSOUND_NUMBER", wxSTC_CSOUND_NUMBER }, - { "wxSTC_CSOUND_OPCODE", wxSTC_CSOUND_OPCODE }, - { "wxSTC_CSOUND_OPERATOR", wxSTC_CSOUND_OPERATOR }, - { "wxSTC_CSOUND_PARAM", wxSTC_CSOUND_PARAM }, - { "wxSTC_CSOUND_STRINGEOL", wxSTC_CSOUND_STRINGEOL }, - { "wxSTC_CSOUND_USERKEYWORD", wxSTC_CSOUND_USERKEYWORD }, - { "wxSTC_CSS_ATTRIBUTE", wxSTC_CSS_ATTRIBUTE }, - { "wxSTC_CSS_CLASS", wxSTC_CSS_CLASS }, - { "wxSTC_CSS_COMMENT", wxSTC_CSS_COMMENT }, - { "wxSTC_CSS_DEFAULT", wxSTC_CSS_DEFAULT }, - { "wxSTC_CSS_DIRECTIVE", wxSTC_CSS_DIRECTIVE }, - { "wxSTC_CSS_DOUBLESTRING", wxSTC_CSS_DOUBLESTRING }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CSS_EXTENDED_IDENTIFIER", wxSTC_CSS_EXTENDED_IDENTIFIER }, - { "wxSTC_CSS_EXTENDED_PSEUDOCLASS", wxSTC_CSS_EXTENDED_PSEUDOCLASS }, - { "wxSTC_CSS_EXTENDED_PSEUDOELEMENT", wxSTC_CSS_EXTENDED_PSEUDOELEMENT }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CSS_ID", wxSTC_CSS_ID }, - { "wxSTC_CSS_IDENTIFIER", wxSTC_CSS_IDENTIFIER }, - { "wxSTC_CSS_IDENTIFIER2", wxSTC_CSS_IDENTIFIER2 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CSS_IDENTIFIER3", wxSTC_CSS_IDENTIFIER3 }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CSS_IMPORTANT", wxSTC_CSS_IMPORTANT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CSS_MEDIA", wxSTC_CSS_MEDIA }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CSS_OPERATOR", wxSTC_CSS_OPERATOR }, - { "wxSTC_CSS_PSEUDOCLASS", wxSTC_CSS_PSEUDOCLASS }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CSS_PSEUDOELEMENT", wxSTC_CSS_PSEUDOELEMENT }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CSS_SINGLESTRING", wxSTC_CSS_SINGLESTRING }, - { "wxSTC_CSS_TAG", wxSTC_CSS_TAG }, - { "wxSTC_CSS_UNKNOWN_IDENTIFIER", wxSTC_CSS_UNKNOWN_IDENTIFIER }, - { "wxSTC_CSS_UNKNOWN_PSEUDOCLASS", wxSTC_CSS_UNKNOWN_PSEUDOCLASS }, - { "wxSTC_CSS_VALUE", wxSTC_CSS_VALUE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CSS_VARIABLE", wxSTC_CSS_VARIABLE }, - { "wxSTC_CURSORARROW", wxSTC_CURSORARROW }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CURSORNORMAL", wxSTC_CURSORNORMAL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_CURSORREVERSEARROW", wxSTC_CURSORREVERSEARROW }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_CURSORWAIT", wxSTC_CURSORWAIT }, - { "wxSTC_C_CHARACTER", wxSTC_C_CHARACTER }, - { "wxSTC_C_COMMENT", wxSTC_C_COMMENT }, - { "wxSTC_C_COMMENTDOC", wxSTC_C_COMMENTDOC }, - { "wxSTC_C_COMMENTDOCKEYWORD", wxSTC_C_COMMENTDOCKEYWORD }, - { "wxSTC_C_COMMENTDOCKEYWORDERROR", wxSTC_C_COMMENTDOCKEYWORDERROR }, - { "wxSTC_C_COMMENTLINE", wxSTC_C_COMMENTLINE }, - { "wxSTC_C_COMMENTLINEDOC", wxSTC_C_COMMENTLINEDOC }, - { "wxSTC_C_DEFAULT", wxSTC_C_DEFAULT }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_C_ESCAPESEQUENCE", wxSTC_C_ESCAPESEQUENCE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_C_GLOBALCLASS", wxSTC_C_GLOBALCLASS }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_C_HASHQUOTEDSTRING", wxSTC_C_HASHQUOTEDSTRING }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_C_IDENTIFIER", wxSTC_C_IDENTIFIER }, - { "wxSTC_C_NUMBER", wxSTC_C_NUMBER }, - { "wxSTC_C_OPERATOR", wxSTC_C_OPERATOR }, - { "wxSTC_C_PREPROCESSOR", wxSTC_C_PREPROCESSOR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_C_PREPROCESSORCOMMENT", wxSTC_C_PREPROCESSORCOMMENT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_C_PREPROCESSORCOMMENTDOC", wxSTC_C_PREPROCESSORCOMMENTDOC }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_C_REGEX", wxSTC_C_REGEX }, - { "wxSTC_C_STRING", wxSTC_C_STRING }, - { "wxSTC_C_STRINGEOL", wxSTC_C_STRINGEOL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_C_STRINGRAW", wxSTC_C_STRINGRAW }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_C_TASKMARKER", wxSTC_C_TASKMARKER }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_C_TRIPLEVERBATIM", wxSTC_C_TRIPLEVERBATIM }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_C_USERLITERAL", wxSTC_C_USERLITERAL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_C_UUID", wxSTC_C_UUID }, - { "wxSTC_C_VERBATIM", wxSTC_C_VERBATIM }, - { "wxSTC_C_WORD", wxSTC_C_WORD }, - { "wxSTC_C_WORD2", wxSTC_C_WORD2 }, - { "wxSTC_DIFF_ADDED", wxSTC_DIFF_ADDED }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_DIFF_CHANGED", wxSTC_DIFF_CHANGED }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_DIFF_COMMAND", wxSTC_DIFF_COMMAND }, - { "wxSTC_DIFF_COMMENT", wxSTC_DIFF_COMMENT }, - { "wxSTC_DIFF_DEFAULT", wxSTC_DIFF_DEFAULT }, - { "wxSTC_DIFF_DELETED", wxSTC_DIFF_DELETED }, - { "wxSTC_DIFF_HEADER", wxSTC_DIFF_HEADER }, - { "wxSTC_DIFF_POSITION", wxSTC_DIFF_POSITION }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_DMAP_COMMENT", wxSTC_DMAP_COMMENT }, - { "wxSTC_DMAP_DEFAULT", wxSTC_DMAP_DEFAULT }, - { "wxSTC_DMAP_IDENTIFIER", wxSTC_DMAP_IDENTIFIER }, - { "wxSTC_DMAP_NUMBER", wxSTC_DMAP_NUMBER }, - { "wxSTC_DMAP_OPERATOR", wxSTC_DMAP_OPERATOR }, - { "wxSTC_DMAP_STRING1", wxSTC_DMAP_STRING1 }, - { "wxSTC_DMAP_STRING2", wxSTC_DMAP_STRING2 }, - { "wxSTC_DMAP_STRINGEOL", wxSTC_DMAP_STRINGEOL }, - { "wxSTC_DMAP_WORD", wxSTC_DMAP_WORD }, - { "wxSTC_DMAP_WORD2", wxSTC_DMAP_WORD2 }, - { "wxSTC_DMAP_WORD3", wxSTC_DMAP_WORD3 }, - { "wxSTC_DMIS_COMMENT", wxSTC_DMIS_COMMENT }, - { "wxSTC_DMIS_DEFAULT", wxSTC_DMIS_DEFAULT }, - { "wxSTC_DMIS_KEYWORD", wxSTC_DMIS_KEYWORD }, - { "wxSTC_DMIS_LABEL", wxSTC_DMIS_LABEL }, - { "wxSTC_DMIS_MAJORWORD", wxSTC_DMIS_MAJORWORD }, - { "wxSTC_DMIS_MINORWORD", wxSTC_DMIS_MINORWORD }, - { "wxSTC_DMIS_NUMBER", wxSTC_DMIS_NUMBER }, - { "wxSTC_DMIS_STRING", wxSTC_DMIS_STRING }, - { "wxSTC_DMIS_UNSUPPORTED_MAJOR", wxSTC_DMIS_UNSUPPORTED_MAJOR }, - { "wxSTC_DMIS_UNSUPPORTED_MINOR", wxSTC_DMIS_UNSUPPORTED_MINOR }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_D_CHARACTER", wxSTC_D_CHARACTER }, - { "wxSTC_D_COMMENT", wxSTC_D_COMMENT }, - { "wxSTC_D_COMMENTDOC", wxSTC_D_COMMENTDOC }, - { "wxSTC_D_COMMENTDOCKEYWORD", wxSTC_D_COMMENTDOCKEYWORD }, - { "wxSTC_D_COMMENTDOCKEYWORDERROR", wxSTC_D_COMMENTDOCKEYWORDERROR }, - { "wxSTC_D_COMMENTLINE", wxSTC_D_COMMENTLINE }, - { "wxSTC_D_COMMENTLINEDOC", wxSTC_D_COMMENTLINEDOC }, - { "wxSTC_D_COMMENTNESTED", wxSTC_D_COMMENTNESTED }, - { "wxSTC_D_DEFAULT", wxSTC_D_DEFAULT }, - { "wxSTC_D_IDENTIFIER", wxSTC_D_IDENTIFIER }, - { "wxSTC_D_NUMBER", wxSTC_D_NUMBER }, - { "wxSTC_D_OPERATOR", wxSTC_D_OPERATOR }, - { "wxSTC_D_STRING", wxSTC_D_STRING }, - { "wxSTC_D_STRINGB", wxSTC_D_STRINGB }, - { "wxSTC_D_STRINGEOL", wxSTC_D_STRINGEOL }, - { "wxSTC_D_STRINGR", wxSTC_D_STRINGR }, - { "wxSTC_D_TYPEDEF", wxSTC_D_TYPEDEF }, - { "wxSTC_D_WORD", wxSTC_D_WORD }, - { "wxSTC_D_WORD2", wxSTC_D_WORD2 }, - { "wxSTC_D_WORD3", wxSTC_D_WORD3 }, - { "wxSTC_D_WORD5", wxSTC_D_WORD5 }, - { "wxSTC_D_WORD6", wxSTC_D_WORD6 }, - { "wxSTC_D_WORD7", wxSTC_D_WORD7 }, - { "wxSTC_ECL_ADDED", wxSTC_ECL_ADDED }, - { "wxSTC_ECL_CHANGED", wxSTC_ECL_CHANGED }, - { "wxSTC_ECL_CHARACTER", wxSTC_ECL_CHARACTER }, - { "wxSTC_ECL_COMMENT", wxSTC_ECL_COMMENT }, - { "wxSTC_ECL_COMMENTDOC", wxSTC_ECL_COMMENTDOC }, - { "wxSTC_ECL_COMMENTDOCKEYWORD", wxSTC_ECL_COMMENTDOCKEYWORD }, - { "wxSTC_ECL_COMMENTDOCKEYWORDERROR", wxSTC_ECL_COMMENTDOCKEYWORDERROR }, - { "wxSTC_ECL_COMMENTLINE", wxSTC_ECL_COMMENTLINE }, - { "wxSTC_ECL_COMMENTLINEDOC", wxSTC_ECL_COMMENTLINEDOC }, - { "wxSTC_ECL_DEFAULT", wxSTC_ECL_DEFAULT }, - { "wxSTC_ECL_DELETED", wxSTC_ECL_DELETED }, - { "wxSTC_ECL_IDENTIFIER", wxSTC_ECL_IDENTIFIER }, - { "wxSTC_ECL_MOVED", wxSTC_ECL_MOVED }, - { "wxSTC_ECL_NUMBER", wxSTC_ECL_NUMBER }, - { "wxSTC_ECL_OPERATOR", wxSTC_ECL_OPERATOR }, - { "wxSTC_ECL_PREPROCESSOR", wxSTC_ECL_PREPROCESSOR }, - { "wxSTC_ECL_REGEX", wxSTC_ECL_REGEX }, - { "wxSTC_ECL_STRING", wxSTC_ECL_STRING }, - { "wxSTC_ECL_STRINGEOL", wxSTC_ECL_STRINGEOL }, - { "wxSTC_ECL_UNKNOWN", wxSTC_ECL_UNKNOWN }, - { "wxSTC_ECL_UUID", wxSTC_ECL_UUID }, - { "wxSTC_ECL_VERBATIM", wxSTC_ECL_VERBATIM }, - { "wxSTC_ECL_WORD0", wxSTC_ECL_WORD0 }, - { "wxSTC_ECL_WORD1", wxSTC_ECL_WORD1 }, - { "wxSTC_ECL_WORD2", wxSTC_ECL_WORD2 }, - { "wxSTC_ECL_WORD3", wxSTC_ECL_WORD3 }, - { "wxSTC_ECL_WORD4", wxSTC_ECL_WORD4 }, - { "wxSTC_ECL_WORD5", wxSTC_ECL_WORD5 }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_EDGE_BACKGROUND", wxSTC_EDGE_BACKGROUND }, - { "wxSTC_EDGE_LINE", wxSTC_EDGE_LINE }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_EDGE_MULTILINE", wxSTC_EDGE_MULTILINE }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_EDGE_NONE", wxSTC_EDGE_NONE }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_EDI_BADSEGMENT", wxSTC_EDI_BADSEGMENT }, - { "wxSTC_EDI_DEFAULT", wxSTC_EDI_DEFAULT }, - { "wxSTC_EDI_SEGMENTEND", wxSTC_EDI_SEGMENTEND }, - { "wxSTC_EDI_SEGMENTSTART", wxSTC_EDI_SEGMENTSTART }, - { "wxSTC_EDI_SEP_COMPOSITE", wxSTC_EDI_SEP_COMPOSITE }, - { "wxSTC_EDI_SEP_ELEMENT", wxSTC_EDI_SEP_ELEMENT }, - { "wxSTC_EDI_SEP_RELEASE", wxSTC_EDI_SEP_RELEASE }, - { "wxSTC_EDI_UNA", wxSTC_EDI_UNA }, - { "wxSTC_EDI_UNH", wxSTC_EDI_UNH }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_EFF_QUALITY_ANTIALIASED", wxSTC_EFF_QUALITY_ANTIALIASED }, - { "wxSTC_EFF_QUALITY_DEFAULT", wxSTC_EFF_QUALITY_DEFAULT }, - { "wxSTC_EFF_QUALITY_LCD_OPTIMIZED", wxSTC_EFF_QUALITY_LCD_OPTIMIZED }, - { "wxSTC_EFF_QUALITY_MASK", wxSTC_EFF_QUALITY_MASK }, - { "wxSTC_EFF_QUALITY_NON_ANTIALIASED", wxSTC_EFF_QUALITY_NON_ANTIALIASED }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_EIFFEL_CHARACTER", wxSTC_EIFFEL_CHARACTER }, - { "wxSTC_EIFFEL_COMMENTLINE", wxSTC_EIFFEL_COMMENTLINE }, - { "wxSTC_EIFFEL_DEFAULT", wxSTC_EIFFEL_DEFAULT }, - { "wxSTC_EIFFEL_IDENTIFIER", wxSTC_EIFFEL_IDENTIFIER }, - { "wxSTC_EIFFEL_NUMBER", wxSTC_EIFFEL_NUMBER }, - { "wxSTC_EIFFEL_OPERATOR", wxSTC_EIFFEL_OPERATOR }, - { "wxSTC_EIFFEL_STRING", wxSTC_EIFFEL_STRING }, - { "wxSTC_EIFFEL_STRINGEOL", wxSTC_EIFFEL_STRINGEOL }, - { "wxSTC_EIFFEL_WORD", wxSTC_EIFFEL_WORD }, - { "wxSTC_EOL_CR", wxSTC_EOL_CR }, - { "wxSTC_EOL_CRLF", wxSTC_EOL_CRLF }, - { "wxSTC_EOL_LF", wxSTC_EOL_LF }, - { "wxSTC_ERLANG_ATOM", wxSTC_ERLANG_ATOM }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ERLANG_ATOM_QUOTED", wxSTC_ERLANG_ATOM_QUOTED }, - { "wxSTC_ERLANG_BIFS", wxSTC_ERLANG_BIFS }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_ERLANG_CHARACTER", wxSTC_ERLANG_CHARACTER }, - { "wxSTC_ERLANG_COMMENT", wxSTC_ERLANG_COMMENT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ERLANG_COMMENT_DOC", wxSTC_ERLANG_COMMENT_DOC }, - { "wxSTC_ERLANG_COMMENT_DOC_MACRO", wxSTC_ERLANG_COMMENT_DOC_MACRO }, - { "wxSTC_ERLANG_COMMENT_FUNCTION", wxSTC_ERLANG_COMMENT_FUNCTION }, - { "wxSTC_ERLANG_COMMENT_MODULE", wxSTC_ERLANG_COMMENT_MODULE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_ERLANG_DEFAULT", wxSTC_ERLANG_DEFAULT }, - { "wxSTC_ERLANG_FUNCTION_NAME", wxSTC_ERLANG_FUNCTION_NAME }, - { "wxSTC_ERLANG_KEYWORD", wxSTC_ERLANG_KEYWORD }, - { "wxSTC_ERLANG_MACRO", wxSTC_ERLANG_MACRO }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ERLANG_MACRO_QUOTED", wxSTC_ERLANG_MACRO_QUOTED }, - { "wxSTC_ERLANG_MODULES", wxSTC_ERLANG_MODULES }, - { "wxSTC_ERLANG_MODULES_ATT", wxSTC_ERLANG_MODULES_ATT }, - { "wxSTC_ERLANG_NODE_NAME", wxSTC_ERLANG_NODE_NAME }, - { "wxSTC_ERLANG_NODE_NAME_QUOTED", wxSTC_ERLANG_NODE_NAME_QUOTED }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_ERLANG_NUMBER", wxSTC_ERLANG_NUMBER }, - { "wxSTC_ERLANG_OPERATOR", wxSTC_ERLANG_OPERATOR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ERLANG_PREPROC", wxSTC_ERLANG_PREPROC }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_ERLANG_RECORD", wxSTC_ERLANG_RECORD }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ERLANG_RECORD_QUOTED", wxSTC_ERLANG_RECORD_QUOTED }, -#endif // wxCHECK_VERSION(2,9,5) - -#if !wxCHECK_VERSION(2,9,2) - { "wxSTC_ERLANG_SEPARATOR", wxSTC_ERLANG_SEPARATOR }, -#endif // !wxCHECK_VERSION(2,9,2) - - { "wxSTC_ERLANG_STRING", wxSTC_ERLANG_STRING }, - { "wxSTC_ERLANG_UNKNOWN", wxSTC_ERLANG_UNKNOWN }, - { "wxSTC_ERLANG_VARIABLE", wxSTC_ERLANG_VARIABLE }, - { "wxSTC_ERR_ABSF", wxSTC_ERR_ABSF }, - { "wxSTC_ERR_BORLAND", wxSTC_ERR_BORLAND }, - { "wxSTC_ERR_CMD", wxSTC_ERR_CMD }, - { "wxSTC_ERR_CTAG", wxSTC_ERR_CTAG }, - { "wxSTC_ERR_DEFAULT", wxSTC_ERR_DEFAULT }, - { "wxSTC_ERR_DIFF_ADDITION", wxSTC_ERR_DIFF_ADDITION }, - { "wxSTC_ERR_DIFF_CHANGED", wxSTC_ERR_DIFF_CHANGED }, - { "wxSTC_ERR_DIFF_DELETION", wxSTC_ERR_DIFF_DELETION }, - { "wxSTC_ERR_DIFF_MESSAGE", wxSTC_ERR_DIFF_MESSAGE }, - { "wxSTC_ERR_ELF", wxSTC_ERR_ELF }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_ERR_ESCSEQ", wxSTC_ERR_ESCSEQ }, - { "wxSTC_ERR_ESCSEQ_UNKNOWN", wxSTC_ERR_ESCSEQ_UNKNOWN }, - { "wxSTC_ERR_ES_BLACK", wxSTC_ERR_ES_BLACK }, - { "wxSTC_ERR_ES_BLUE", wxSTC_ERR_ES_BLUE }, - { "wxSTC_ERR_ES_BRIGHT_BLUE", wxSTC_ERR_ES_BRIGHT_BLUE }, - { "wxSTC_ERR_ES_BRIGHT_CYAN", wxSTC_ERR_ES_BRIGHT_CYAN }, - { "wxSTC_ERR_ES_BRIGHT_GREEN", wxSTC_ERR_ES_BRIGHT_GREEN }, - { "wxSTC_ERR_ES_BRIGHT_MAGENTA", wxSTC_ERR_ES_BRIGHT_MAGENTA }, - { "wxSTC_ERR_ES_BRIGHT_RED", wxSTC_ERR_ES_BRIGHT_RED }, - { "wxSTC_ERR_ES_BROWN", wxSTC_ERR_ES_BROWN }, - { "wxSTC_ERR_ES_CYAN", wxSTC_ERR_ES_CYAN }, - { "wxSTC_ERR_ES_DARK_GRAY", wxSTC_ERR_ES_DARK_GRAY }, - { "wxSTC_ERR_ES_GRAY", wxSTC_ERR_ES_GRAY }, - { "wxSTC_ERR_ES_GREEN", wxSTC_ERR_ES_GREEN }, - { "wxSTC_ERR_ES_MAGENTA", wxSTC_ERR_ES_MAGENTA }, - { "wxSTC_ERR_ES_RED", wxSTC_ERR_ES_RED }, - { "wxSTC_ERR_ES_WHITE", wxSTC_ERR_ES_WHITE }, - { "wxSTC_ERR_ES_YELLOW", wxSTC_ERR_ES_YELLOW }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_ERR_GCC", wxSTC_ERR_GCC }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_ERR_GCC_INCLUDED_FROM", wxSTC_ERR_GCC_INCLUDED_FROM }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_ERR_IFC", wxSTC_ERR_IFC }, - { "wxSTC_ERR_IFORT", wxSTC_ERR_IFORT }, - { "wxSTC_ERR_JAVA_STACK", wxSTC_ERR_JAVA_STACK }, - { "wxSTC_ERR_LUA", wxSTC_ERR_LUA }, - { "wxSTC_ERR_MS", wxSTC_ERR_MS }, - { "wxSTC_ERR_NET", wxSTC_ERR_NET }, - { "wxSTC_ERR_PERL", wxSTC_ERR_PERL }, - { "wxSTC_ERR_PHP", wxSTC_ERR_PHP }, - { "wxSTC_ERR_PYTHON", wxSTC_ERR_PYTHON }, - { "wxSTC_ERR_TIDY", wxSTC_ERR_TIDY }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_ERR_VALUE", wxSTC_ERR_VALUE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_ESCRIPT_BRACE", wxSTC_ESCRIPT_BRACE }, - { "wxSTC_ESCRIPT_COMMENT", wxSTC_ESCRIPT_COMMENT }, - { "wxSTC_ESCRIPT_COMMENTDOC", wxSTC_ESCRIPT_COMMENTDOC }, - { "wxSTC_ESCRIPT_COMMENTLINE", wxSTC_ESCRIPT_COMMENTLINE }, - { "wxSTC_ESCRIPT_DEFAULT", wxSTC_ESCRIPT_DEFAULT }, - { "wxSTC_ESCRIPT_IDENTIFIER", wxSTC_ESCRIPT_IDENTIFIER }, - { "wxSTC_ESCRIPT_NUMBER", wxSTC_ESCRIPT_NUMBER }, - { "wxSTC_ESCRIPT_OPERATOR", wxSTC_ESCRIPT_OPERATOR }, - { "wxSTC_ESCRIPT_STRING", wxSTC_ESCRIPT_STRING }, - { "wxSTC_ESCRIPT_WORD", wxSTC_ESCRIPT_WORD }, - { "wxSTC_ESCRIPT_WORD2", wxSTC_ESCRIPT_WORD2 }, - { "wxSTC_ESCRIPT_WORD3", wxSTC_ESCRIPT_WORD3 }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_FIND_CXX11REGEX", wxSTC_FIND_CXX11REGEX }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_FIND_MATCHCASE", wxSTC_FIND_MATCHCASE }, - { "wxSTC_FIND_POSIX", wxSTC_FIND_POSIX }, - { "wxSTC_FIND_REGEXP", wxSTC_FIND_REGEXP }, - { "wxSTC_FIND_WHOLEWORD", wxSTC_FIND_WHOLEWORD }, - { "wxSTC_FIND_WORDSTART", wxSTC_FIND_WORDSTART }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_FOLDACTION_CONTRACT", wxSTC_FOLDACTION_CONTRACT }, - { "wxSTC_FOLDACTION_EXPAND", wxSTC_FOLDACTION_EXPAND }, - { "wxSTC_FOLDACTION_TOGGLE", wxSTC_FOLDACTION_TOGGLE }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_FOLDDISPLAYTEXT_BOXED", wxSTC_FOLDDISPLAYTEXT_BOXED }, - { "wxSTC_FOLDDISPLAYTEXT_HIDDEN", wxSTC_FOLDDISPLAYTEXT_HIDDEN }, - { "wxSTC_FOLDDISPLAYTEXT_STANDARD", wxSTC_FOLDDISPLAYTEXT_STANDARD }, -#endif // wxCHECK_VERSION(3,1,1) - -#if !wxCHECK_VERSION(2,9,2) - { "wxSTC_FOLDFLAG_BOX", wxSTC_FOLDFLAG_BOX }, -#endif // !wxCHECK_VERSION(2,9,2) - - { "wxSTC_FOLDFLAG_LEVELNUMBERS", wxSTC_FOLDFLAG_LEVELNUMBERS }, - { "wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED", wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED }, - { "wxSTC_FOLDFLAG_LINEAFTER_EXPANDED", wxSTC_FOLDFLAG_LINEAFTER_EXPANDED }, - { "wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED", wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED }, - { "wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED", wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_FOLDFLAG_LINESTATE", wxSTC_FOLDFLAG_LINESTATE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_FOLDLEVELBASE", wxSTC_FOLDLEVELBASE }, - -#if !wxCHECK_VERSION(2,9,2) - { "wxSTC_FOLDLEVELBOXFOOTERFLAG", wxSTC_FOLDLEVELBOXFOOTERFLAG }, - { "wxSTC_FOLDLEVELBOXHEADERFLAG", wxSTC_FOLDLEVELBOXHEADERFLAG }, - { "wxSTC_FOLDLEVELCONTRACTED", wxSTC_FOLDLEVELCONTRACTED }, -#endif // !wxCHECK_VERSION(2,9,2) - - { "wxSTC_FOLDLEVELHEADERFLAG", wxSTC_FOLDLEVELHEADERFLAG }, - { "wxSTC_FOLDLEVELNUMBERMASK", wxSTC_FOLDLEVELNUMBERMASK }, - -#if !wxCHECK_VERSION(2,9,2) - { "wxSTC_FOLDLEVELUNINDENT", wxSTC_FOLDLEVELUNINDENT }, -#endif // !wxCHECK_VERSION(2,9,2) - - { "wxSTC_FOLDLEVELWHITEFLAG", wxSTC_FOLDLEVELWHITEFLAG }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FONT_SIZE_MULTIPLIER", wxSTC_FONT_SIZE_MULTIPLIER }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FORTH_COMMENT", wxSTC_FORTH_COMMENT }, - { "wxSTC_FORTH_COMMENT_ML", wxSTC_FORTH_COMMENT_ML }, - { "wxSTC_FORTH_CONTROL", wxSTC_FORTH_CONTROL }, - { "wxSTC_FORTH_DEFAULT", wxSTC_FORTH_DEFAULT }, - { "wxSTC_FORTH_DEFWORD", wxSTC_FORTH_DEFWORD }, - { "wxSTC_FORTH_IDENTIFIER", wxSTC_FORTH_IDENTIFIER }, - { "wxSTC_FORTH_KEYWORD", wxSTC_FORTH_KEYWORD }, - { "wxSTC_FORTH_LOCALE", wxSTC_FORTH_LOCALE }, - { "wxSTC_FORTH_NUMBER", wxSTC_FORTH_NUMBER }, - { "wxSTC_FORTH_PREWORD1", wxSTC_FORTH_PREWORD1 }, - { "wxSTC_FORTH_PREWORD2", wxSTC_FORTH_PREWORD2 }, - { "wxSTC_FORTH_STRING", wxSTC_FORTH_STRING }, - { "wxSTC_FS_COMMENT", wxSTC_FS_COMMENT }, - { "wxSTC_FS_COMMENTDOC", wxSTC_FS_COMMENTDOC }, - { "wxSTC_FS_COMMENTDOCKEYWORD", wxSTC_FS_COMMENTDOCKEYWORD }, - { "wxSTC_FS_COMMENTDOCKEYWORDERROR", wxSTC_FS_COMMENTDOCKEYWORDERROR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_COMMENTDOC_C", wxSTC_FS_COMMENTDOC_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_COMMENTLINE", wxSTC_FS_COMMENTLINE }, - { "wxSTC_FS_COMMENTLINEDOC", wxSTC_FS_COMMENTLINEDOC }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_COMMENTLINEDOC_C", wxSTC_FS_COMMENTLINEDOC_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_CONSTANT", wxSTC_FS_CONSTANT }, - { "wxSTC_FS_DATE", wxSTC_FS_DATE }, - { "wxSTC_FS_DEFAULT", wxSTC_FS_DEFAULT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_DEFAULT_C", wxSTC_FS_DEFAULT_C }, - { "wxSTC_FS_DISABLEDCODE", wxSTC_FS_DISABLEDCODE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_IDENTIFIER", wxSTC_FS_IDENTIFIER }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_IDENTIFIER_C", wxSTC_FS_IDENTIFIER_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_KEYWORD", wxSTC_FS_KEYWORD }, - { "wxSTC_FS_KEYWORD2", wxSTC_FS_KEYWORD2 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_KEYWORD2_C", wxSTC_FS_KEYWORD2_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_KEYWORD3", wxSTC_FS_KEYWORD3 }, - { "wxSTC_FS_KEYWORD4", wxSTC_FS_KEYWORD4 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_KEYWORD_C", wxSTC_FS_KEYWORD_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_NUMBER", wxSTC_FS_NUMBER }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_NUMBER_C", wxSTC_FS_NUMBER_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_OPERATOR", wxSTC_FS_OPERATOR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_OPERATOR_C", wxSTC_FS_OPERATOR_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_PREPROCESSOR", wxSTC_FS_PREPROCESSOR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_PREPROCESSOR_C", wxSTC_FS_PREPROCESSOR_C }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_FS_STRING", wxSTC_FS_STRING }, - { "wxSTC_FS_STRINGEOL", wxSTC_FS_STRINGEOL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_FS_STRINGEOL_C", wxSTC_FS_STRINGEOL_C }, - { "wxSTC_FS_STRING_C", wxSTC_FS_STRING_C }, - { "wxSTC_FS_WORDOPERATOR", wxSTC_FS_WORDOPERATOR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_F_COMMENT", wxSTC_F_COMMENT }, - { "wxSTC_F_CONTINUATION", wxSTC_F_CONTINUATION }, - { "wxSTC_F_DEFAULT", wxSTC_F_DEFAULT }, - { "wxSTC_F_IDENTIFIER", wxSTC_F_IDENTIFIER }, - { "wxSTC_F_LABEL", wxSTC_F_LABEL }, - { "wxSTC_F_NUMBER", wxSTC_F_NUMBER }, - { "wxSTC_F_OPERATOR", wxSTC_F_OPERATOR }, - { "wxSTC_F_OPERATOR2", wxSTC_F_OPERATOR2 }, - { "wxSTC_F_PREPROCESSOR", wxSTC_F_PREPROCESSOR }, - { "wxSTC_F_STRING1", wxSTC_F_STRING1 }, - { "wxSTC_F_STRING2", wxSTC_F_STRING2 }, - { "wxSTC_F_STRINGEOL", wxSTC_F_STRINGEOL }, - { "wxSTC_F_WORD", wxSTC_F_WORD }, - { "wxSTC_F_WORD2", wxSTC_F_WORD2 }, - { "wxSTC_F_WORD3", wxSTC_F_WORD3 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_GAP_CHAR", wxSTC_GAP_CHAR }, - { "wxSTC_GAP_COMMENT", wxSTC_GAP_COMMENT }, - { "wxSTC_GAP_DEFAULT", wxSTC_GAP_DEFAULT }, - { "wxSTC_GAP_IDENTIFIER", wxSTC_GAP_IDENTIFIER }, - { "wxSTC_GAP_KEYWORD", wxSTC_GAP_KEYWORD }, - { "wxSTC_GAP_KEYWORD2", wxSTC_GAP_KEYWORD2 }, - { "wxSTC_GAP_KEYWORD3", wxSTC_GAP_KEYWORD3 }, - { "wxSTC_GAP_KEYWORD4", wxSTC_GAP_KEYWORD4 }, - { "wxSTC_GAP_NUMBER", wxSTC_GAP_NUMBER }, - { "wxSTC_GAP_OPERATOR", wxSTC_GAP_OPERATOR }, - { "wxSTC_GAP_STRING", wxSTC_GAP_STRING }, - { "wxSTC_GAP_STRINGEOL", wxSTC_GAP_STRINGEOL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_GC_ATTRIBUTE", wxSTC_GC_ATTRIBUTE }, - { "wxSTC_GC_COMMAND", wxSTC_GC_COMMAND }, - { "wxSTC_GC_COMMENTBLOCK", wxSTC_GC_COMMENTBLOCK }, - { "wxSTC_GC_COMMENTLINE", wxSTC_GC_COMMENTLINE }, - { "wxSTC_GC_CONTROL", wxSTC_GC_CONTROL }, - { "wxSTC_GC_DEFAULT", wxSTC_GC_DEFAULT }, - { "wxSTC_GC_EVENT", wxSTC_GC_EVENT }, - { "wxSTC_GC_GLOBAL", wxSTC_GC_GLOBAL }, - { "wxSTC_GC_OPERATOR", wxSTC_GC_OPERATOR }, - { "wxSTC_GC_STRING", wxSTC_GC_STRING }, - { "wxSTC_HA_CAPITAL", wxSTC_HA_CAPITAL }, - { "wxSTC_HA_CHARACTER", wxSTC_HA_CHARACTER }, - { "wxSTC_HA_CLASS", wxSTC_HA_CLASS }, - { "wxSTC_HA_COMMENTBLOCK", wxSTC_HA_COMMENTBLOCK }, - { "wxSTC_HA_COMMENTBLOCK2", wxSTC_HA_COMMENTBLOCK2 }, - { "wxSTC_HA_COMMENTBLOCK3", wxSTC_HA_COMMENTBLOCK3 }, - { "wxSTC_HA_COMMENTLINE", wxSTC_HA_COMMENTLINE }, - { "wxSTC_HA_DATA", wxSTC_HA_DATA }, - { "wxSTC_HA_DEFAULT", wxSTC_HA_DEFAULT }, - { "wxSTC_HA_IDENTIFIER", wxSTC_HA_IDENTIFIER }, - { "wxSTC_HA_IMPORT", wxSTC_HA_IMPORT }, - { "wxSTC_HA_INSTANCE", wxSTC_HA_INSTANCE }, - { "wxSTC_HA_KEYWORD", wxSTC_HA_KEYWORD }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_HA_LITERATE_CODEDELIM", wxSTC_HA_LITERATE_CODEDELIM }, - { "wxSTC_HA_LITERATE_COMMENT", wxSTC_HA_LITERATE_COMMENT }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_HA_MODULE", wxSTC_HA_MODULE }, - { "wxSTC_HA_NUMBER", wxSTC_HA_NUMBER }, - { "wxSTC_HA_OPERATOR", wxSTC_HA_OPERATOR }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_HA_PRAGMA", wxSTC_HA_PRAGMA }, - { "wxSTC_HA_PREPROCESSOR", wxSTC_HA_PREPROCESSOR }, - { "wxSTC_HA_RESERVED_OPERATOR", wxSTC_HA_RESERVED_OPERATOR }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_HA_STRING", wxSTC_HA_STRING }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_HA_STRINGEOL", wxSTC_HA_STRINGEOL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_HBA_COMMENTLINE", wxSTC_HBA_COMMENTLINE }, - { "wxSTC_HBA_DEFAULT", wxSTC_HBA_DEFAULT }, - { "wxSTC_HBA_IDENTIFIER", wxSTC_HBA_IDENTIFIER }, - { "wxSTC_HBA_NUMBER", wxSTC_HBA_NUMBER }, - { "wxSTC_HBA_START", wxSTC_HBA_START }, - { "wxSTC_HBA_STRING", wxSTC_HBA_STRING }, - { "wxSTC_HBA_STRINGEOL", wxSTC_HBA_STRINGEOL }, - { "wxSTC_HBA_WORD", wxSTC_HBA_WORD }, - { "wxSTC_HB_COMMENTLINE", wxSTC_HB_COMMENTLINE }, - { "wxSTC_HB_DEFAULT", wxSTC_HB_DEFAULT }, - { "wxSTC_HB_IDENTIFIER", wxSTC_HB_IDENTIFIER }, - { "wxSTC_HB_NUMBER", wxSTC_HB_NUMBER }, - { "wxSTC_HB_START", wxSTC_HB_START }, - { "wxSTC_HB_STRING", wxSTC_HB_STRING }, - { "wxSTC_HB_STRINGEOL", wxSTC_HB_STRINGEOL }, - { "wxSTC_HB_WORD", wxSTC_HB_WORD }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_HEX_ADDRESSFIELD_UNKNOWN", wxSTC_HEX_ADDRESSFIELD_UNKNOWN }, - { "wxSTC_HEX_BYTECOUNT", wxSTC_HEX_BYTECOUNT }, - { "wxSTC_HEX_BYTECOUNT_WRONG", wxSTC_HEX_BYTECOUNT_WRONG }, - { "wxSTC_HEX_CHECKSUM", wxSTC_HEX_CHECKSUM }, - { "wxSTC_HEX_CHECKSUM_WRONG", wxSTC_HEX_CHECKSUM_WRONG }, - { "wxSTC_HEX_DATAADDRESS", wxSTC_HEX_DATAADDRESS }, - { "wxSTC_HEX_DATA_EMPTY", wxSTC_HEX_DATA_EMPTY }, - { "wxSTC_HEX_DATA_EVEN", wxSTC_HEX_DATA_EVEN }, - { "wxSTC_HEX_DATA_ODD", wxSTC_HEX_DATA_ODD }, - { "wxSTC_HEX_DATA_UNKNOWN", wxSTC_HEX_DATA_UNKNOWN }, - { "wxSTC_HEX_DEFAULT", wxSTC_HEX_DEFAULT }, - { "wxSTC_HEX_EXTENDEDADDRESS", wxSTC_HEX_EXTENDEDADDRESS }, - { "wxSTC_HEX_GARBAGE", wxSTC_HEX_GARBAGE }, - { "wxSTC_HEX_NOADDRESS", wxSTC_HEX_NOADDRESS }, - { "wxSTC_HEX_RECCOUNT", wxSTC_HEX_RECCOUNT }, - { "wxSTC_HEX_RECSTART", wxSTC_HEX_RECSTART }, - { "wxSTC_HEX_RECTYPE", wxSTC_HEX_RECTYPE }, - { "wxSTC_HEX_RECTYPE_UNKNOWN", wxSTC_HEX_RECTYPE_UNKNOWN }, - { "wxSTC_HEX_STARTADDRESS", wxSTC_HEX_STARTADDRESS }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_HJA_COMMENT", wxSTC_HJA_COMMENT }, - { "wxSTC_HJA_COMMENTDOC", wxSTC_HJA_COMMENTDOC }, - { "wxSTC_HJA_COMMENTLINE", wxSTC_HJA_COMMENTLINE }, - { "wxSTC_HJA_DEFAULT", wxSTC_HJA_DEFAULT }, - { "wxSTC_HJA_DOUBLESTRING", wxSTC_HJA_DOUBLESTRING }, - { "wxSTC_HJA_KEYWORD", wxSTC_HJA_KEYWORD }, - { "wxSTC_HJA_NUMBER", wxSTC_HJA_NUMBER }, - { "wxSTC_HJA_REGEX", wxSTC_HJA_REGEX }, - { "wxSTC_HJA_SINGLESTRING", wxSTC_HJA_SINGLESTRING }, - { "wxSTC_HJA_START", wxSTC_HJA_START }, - { "wxSTC_HJA_STRINGEOL", wxSTC_HJA_STRINGEOL }, - { "wxSTC_HJA_SYMBOLS", wxSTC_HJA_SYMBOLS }, - { "wxSTC_HJA_WORD", wxSTC_HJA_WORD }, - { "wxSTC_HJ_COMMENT", wxSTC_HJ_COMMENT }, - { "wxSTC_HJ_COMMENTDOC", wxSTC_HJ_COMMENTDOC }, - { "wxSTC_HJ_COMMENTLINE", wxSTC_HJ_COMMENTLINE }, - { "wxSTC_HJ_DEFAULT", wxSTC_HJ_DEFAULT }, - { "wxSTC_HJ_DOUBLESTRING", wxSTC_HJ_DOUBLESTRING }, - { "wxSTC_HJ_KEYWORD", wxSTC_HJ_KEYWORD }, - { "wxSTC_HJ_NUMBER", wxSTC_HJ_NUMBER }, - { "wxSTC_HJ_REGEX", wxSTC_HJ_REGEX }, - { "wxSTC_HJ_SINGLESTRING", wxSTC_HJ_SINGLESTRING }, - { "wxSTC_HJ_START", wxSTC_HJ_START }, - { "wxSTC_HJ_STRINGEOL", wxSTC_HJ_STRINGEOL }, - { "wxSTC_HJ_SYMBOLS", wxSTC_HJ_SYMBOLS }, - { "wxSTC_HJ_WORD", wxSTC_HJ_WORD }, - { "wxSTC_HPA_CHARACTER", wxSTC_HPA_CHARACTER }, - { "wxSTC_HPA_CLASSNAME", wxSTC_HPA_CLASSNAME }, - { "wxSTC_HPA_COMMENTLINE", wxSTC_HPA_COMMENTLINE }, - { "wxSTC_HPA_DEFAULT", wxSTC_HPA_DEFAULT }, - { "wxSTC_HPA_DEFNAME", wxSTC_HPA_DEFNAME }, - { "wxSTC_HPA_IDENTIFIER", wxSTC_HPA_IDENTIFIER }, - { "wxSTC_HPA_NUMBER", wxSTC_HPA_NUMBER }, - { "wxSTC_HPA_OPERATOR", wxSTC_HPA_OPERATOR }, - { "wxSTC_HPA_START", wxSTC_HPA_START }, - { "wxSTC_HPA_STRING", wxSTC_HPA_STRING }, - { "wxSTC_HPA_TRIPLE", wxSTC_HPA_TRIPLE }, - { "wxSTC_HPA_TRIPLEDOUBLE", wxSTC_HPA_TRIPLEDOUBLE }, - { "wxSTC_HPA_WORD", wxSTC_HPA_WORD }, - { "wxSTC_HPHP_COMMENT", wxSTC_HPHP_COMMENT }, - { "wxSTC_HPHP_COMMENTLINE", wxSTC_HPHP_COMMENTLINE }, - { "wxSTC_HPHP_COMPLEX_VARIABLE", wxSTC_HPHP_COMPLEX_VARIABLE }, - { "wxSTC_HPHP_DEFAULT", wxSTC_HPHP_DEFAULT }, - { "wxSTC_HPHP_HSTRING", wxSTC_HPHP_HSTRING }, - { "wxSTC_HPHP_HSTRING_VARIABLE", wxSTC_HPHP_HSTRING_VARIABLE }, - { "wxSTC_HPHP_NUMBER", wxSTC_HPHP_NUMBER }, - { "wxSTC_HPHP_OPERATOR", wxSTC_HPHP_OPERATOR }, - { "wxSTC_HPHP_SIMPLESTRING", wxSTC_HPHP_SIMPLESTRING }, - { "wxSTC_HPHP_VARIABLE", wxSTC_HPHP_VARIABLE }, - { "wxSTC_HPHP_WORD", wxSTC_HPHP_WORD }, - { "wxSTC_HP_CHARACTER", wxSTC_HP_CHARACTER }, - { "wxSTC_HP_CLASSNAME", wxSTC_HP_CLASSNAME }, - { "wxSTC_HP_COMMENTLINE", wxSTC_HP_COMMENTLINE }, - { "wxSTC_HP_DEFAULT", wxSTC_HP_DEFAULT }, - { "wxSTC_HP_DEFNAME", wxSTC_HP_DEFNAME }, - { "wxSTC_HP_IDENTIFIER", wxSTC_HP_IDENTIFIER }, - { "wxSTC_HP_NUMBER", wxSTC_HP_NUMBER }, - { "wxSTC_HP_OPERATOR", wxSTC_HP_OPERATOR }, - { "wxSTC_HP_START", wxSTC_HP_START }, - { "wxSTC_HP_STRING", wxSTC_HP_STRING }, - { "wxSTC_HP_TRIPLE", wxSTC_HP_TRIPLE }, - { "wxSTC_HP_TRIPLEDOUBLE", wxSTC_HP_TRIPLEDOUBLE }, - { "wxSTC_HP_WORD", wxSTC_HP_WORD }, - { "wxSTC_H_ASP", wxSTC_H_ASP }, - { "wxSTC_H_ASPAT", wxSTC_H_ASPAT }, - { "wxSTC_H_ATTRIBUTE", wxSTC_H_ATTRIBUTE }, - { "wxSTC_H_ATTRIBUTEUNKNOWN", wxSTC_H_ATTRIBUTEUNKNOWN }, - { "wxSTC_H_CDATA", wxSTC_H_CDATA }, - { "wxSTC_H_COMMENT", wxSTC_H_COMMENT }, - { "wxSTC_H_DEFAULT", wxSTC_H_DEFAULT }, - { "wxSTC_H_DOUBLESTRING", wxSTC_H_DOUBLESTRING }, - { "wxSTC_H_ENTITY", wxSTC_H_ENTITY }, - { "wxSTC_H_NUMBER", wxSTC_H_NUMBER }, - { "wxSTC_H_OTHER", wxSTC_H_OTHER }, - { "wxSTC_H_QUESTION", wxSTC_H_QUESTION }, - { "wxSTC_H_SCRIPT", wxSTC_H_SCRIPT }, - { "wxSTC_H_SGML_1ST_PARAM", wxSTC_H_SGML_1ST_PARAM }, - { "wxSTC_H_SGML_1ST_PARAM_COMMENT", wxSTC_H_SGML_1ST_PARAM_COMMENT }, - { "wxSTC_H_SGML_BLOCK_DEFAULT", wxSTC_H_SGML_BLOCK_DEFAULT }, - { "wxSTC_H_SGML_COMMAND", wxSTC_H_SGML_COMMAND }, - { "wxSTC_H_SGML_COMMENT", wxSTC_H_SGML_COMMENT }, - { "wxSTC_H_SGML_DEFAULT", wxSTC_H_SGML_DEFAULT }, - { "wxSTC_H_SGML_DOUBLESTRING", wxSTC_H_SGML_DOUBLESTRING }, - { "wxSTC_H_SGML_ENTITY", wxSTC_H_SGML_ENTITY }, - { "wxSTC_H_SGML_ERROR", wxSTC_H_SGML_ERROR }, - { "wxSTC_H_SGML_SIMPLESTRING", wxSTC_H_SGML_SIMPLESTRING }, - { "wxSTC_H_SGML_SPECIAL", wxSTC_H_SGML_SPECIAL }, - { "wxSTC_H_SINGLESTRING", wxSTC_H_SINGLESTRING }, - { "wxSTC_H_TAG", wxSTC_H_TAG }, - { "wxSTC_H_TAGEND", wxSTC_H_TAGEND }, - { "wxSTC_H_TAGUNKNOWN", wxSTC_H_TAGUNKNOWN }, - { "wxSTC_H_VALUE", wxSTC_H_VALUE }, - { "wxSTC_H_XCCOMMENT", wxSTC_H_XCCOMMENT }, - { "wxSTC_H_XMLEND", wxSTC_H_XMLEND }, - { "wxSTC_H_XMLSTART", wxSTC_H_XMLSTART }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_IDLESTYLING_AFTERVISIBLE", wxSTC_IDLESTYLING_AFTERVISIBLE }, - { "wxSTC_IDLESTYLING_ALL", wxSTC_IDLESTYLING_ALL }, - { "wxSTC_IDLESTYLING_NONE", wxSTC_IDLESTYLING_NONE }, - { "wxSTC_IDLESTYLING_TOVISIBLE", wxSTC_IDLESTYLING_TOVISIBLE }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_IME_INLINE", wxSTC_IME_INLINE }, - { "wxSTC_IME_WINDOWED", wxSTC_IME_WINDOWED }, -#endif // wxCHECK_VERSION(3,1,0) - -#if !wxCHECK_VERSION(3,1,1) - { "wxSTC_INDIC0_MASK", wxSTC_INDIC0_MASK }, - { "wxSTC_INDIC1_MASK", wxSTC_INDIC1_MASK }, - { "wxSTC_INDIC2_MASK", wxSTC_INDIC2_MASK }, -#endif // !wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDICFLAG_VALUEFORE", wxSTC_INDICFLAG_VALUEFORE }, -#endif // wxCHECK_VERSION(3,1,0) - -#if !wxCHECK_VERSION(3,1,1) - { "wxSTC_INDICS_MASK", wxSTC_INDICS_MASK }, -#endif // !wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDICVALUEBIT", wxSTC_INDICVALUEBIT }, - { "wxSTC_INDICVALUEMASK", wxSTC_INDICVALUEMASK }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_INDIC_BOX", wxSTC_INDIC_BOX }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDIC_COMPOSITIONTHICK", wxSTC_INDIC_COMPOSITIONTHICK }, - { "wxSTC_INDIC_COMPOSITIONTHIN", wxSTC_INDIC_COMPOSITIONTHIN }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_INDIC_CONTAINER", wxSTC_INDIC_CONTAINER }, - { "wxSTC_INDIC_DASH", wxSTC_INDIC_DASH }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_INDIC_DIAGONAL", wxSTC_INDIC_DIAGONAL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_INDIC_DOTBOX", wxSTC_INDIC_DOTBOX }, - { "wxSTC_INDIC_DOTS", wxSTC_INDIC_DOTS }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDIC_FULLBOX", wxSTC_INDIC_FULLBOX }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_INDIC_HIDDEN", wxSTC_INDIC_HIDDEN }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDIC_IME", wxSTC_INDIC_IME }, - { "wxSTC_INDIC_IME_MAX", wxSTC_INDIC_IME_MAX }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_INDIC_MAX", wxSTC_INDIC_MAX }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_INDIC_PLAIN", wxSTC_INDIC_PLAIN }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_INDIC_POINT", wxSTC_INDIC_POINT }, - { "wxSTC_INDIC_POINTCHARACTER", wxSTC_INDIC_POINTCHARACTER }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_INDIC_ROUNDBOX", wxSTC_INDIC_ROUNDBOX }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_INDIC_SQUIGGLE", wxSTC_INDIC_SQUIGGLE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_INDIC_SQUIGGLELOW", wxSTC_INDIC_SQUIGGLELOW }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDIC_SQUIGGLEPIXMAP", wxSTC_INDIC_SQUIGGLEPIXMAP }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_INDIC_STRAIGHTBOX", wxSTC_INDIC_STRAIGHTBOX }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_INDIC_STRIKE", wxSTC_INDIC_STRIKE }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_INDIC_TEXTFORE", wxSTC_INDIC_TEXTFORE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_INDIC_TT", wxSTC_INDIC_TT }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_INNO_COMMENT", wxSTC_INNO_COMMENT }, - { "wxSTC_INNO_COMMENT_PASCAL", wxSTC_INNO_COMMENT_PASCAL }, - { "wxSTC_INNO_DEFAULT", wxSTC_INNO_DEFAULT }, - { "wxSTC_INNO_IDENTIFIER", wxSTC_INNO_IDENTIFIER }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(2,8,12) && wxCHECK_VERSION(2,9,5) - { "wxSTC_INNO_INLINE_EXPANSION", wxSTC_INNO_INLINE_EXPANSION }, -#endif // wxCHECK_VERSION(2,8,12) && wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_INNO_KEYWORD", wxSTC_INNO_KEYWORD }, - { "wxSTC_INNO_KEYWORD_PASCAL", wxSTC_INNO_KEYWORD_PASCAL }, - { "wxSTC_INNO_KEYWORD_USER", wxSTC_INNO_KEYWORD_USER }, - { "wxSTC_INNO_PARAMETER", wxSTC_INNO_PARAMETER }, - { "wxSTC_INNO_PREPROC", wxSTC_INNO_PREPROC }, - { "wxSTC_INNO_SECTION", wxSTC_INNO_SECTION }, - { "wxSTC_INNO_STRING_DOUBLE", wxSTC_INNO_STRING_DOUBLE }, - { "wxSTC_INNO_STRING_SINGLE", wxSTC_INNO_STRING_SINGLE }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_INVALID_POSITION", wxSTC_INVALID_POSITION }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_IV_LOOKBOTH", wxSTC_IV_LOOKBOTH }, - { "wxSTC_IV_LOOKFORWARD", wxSTC_IV_LOOKFORWARD }, - { "wxSTC_IV_NONE", wxSTC_IV_NONE }, - { "wxSTC_IV_REAL", wxSTC_IV_REAL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_JSON_BLOCKCOMMENT", wxSTC_JSON_BLOCKCOMMENT }, - { "wxSTC_JSON_COMPACTIRI", wxSTC_JSON_COMPACTIRI }, - { "wxSTC_JSON_DEFAULT", wxSTC_JSON_DEFAULT }, - { "wxSTC_JSON_ERROR", wxSTC_JSON_ERROR }, - { "wxSTC_JSON_ESCAPESEQUENCE", wxSTC_JSON_ESCAPESEQUENCE }, - { "wxSTC_JSON_KEYWORD", wxSTC_JSON_KEYWORD }, - { "wxSTC_JSON_LDKEYWORD", wxSTC_JSON_LDKEYWORD }, - { "wxSTC_JSON_LINECOMMENT", wxSTC_JSON_LINECOMMENT }, - { "wxSTC_JSON_NUMBER", wxSTC_JSON_NUMBER }, - { "wxSTC_JSON_OPERATOR", wxSTC_JSON_OPERATOR }, - { "wxSTC_JSON_PROPERTYNAME", wxSTC_JSON_PROPERTYNAME }, - { "wxSTC_JSON_STRING", wxSTC_JSON_STRING }, - { "wxSTC_JSON_STRINGEOL", wxSTC_JSON_STRINGEOL }, - { "wxSTC_JSON_URI", wxSTC_JSON_URI }, - { "wxSTC_KEYMOD_ALT", wxSTC_KEYMOD_ALT }, - { "wxSTC_KEYMOD_CTRL", wxSTC_KEYMOD_CTRL }, - { "wxSTC_KEYMOD_META", wxSTC_KEYMOD_META }, - { "wxSTC_KEYMOD_NORM", wxSTC_KEYMOD_NORM }, - { "wxSTC_KEYMOD_SHIFT", wxSTC_KEYMOD_SHIFT }, - { "wxSTC_KEYMOD_SUPER", wxSTC_KEYMOD_SUPER }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_KEYWORDSET_MAX", wxSTC_KEYWORDSET_MAX }, - { "wxSTC_KEY_ADD", wxSTC_KEY_ADD }, - { "wxSTC_KEY_BACK", wxSTC_KEY_BACK }, - { "wxSTC_KEY_DELETE", wxSTC_KEY_DELETE }, - { "wxSTC_KEY_DIVIDE", wxSTC_KEY_DIVIDE }, - { "wxSTC_KEY_DOWN", wxSTC_KEY_DOWN }, - { "wxSTC_KEY_END", wxSTC_KEY_END }, - { "wxSTC_KEY_ESCAPE", wxSTC_KEY_ESCAPE }, - { "wxSTC_KEY_HOME", wxSTC_KEY_HOME }, - { "wxSTC_KEY_INSERT", wxSTC_KEY_INSERT }, - { "wxSTC_KEY_LEFT", wxSTC_KEY_LEFT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_KEY_MENU", wxSTC_KEY_MENU }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_KEY_NEXT", wxSTC_KEY_NEXT }, - { "wxSTC_KEY_PRIOR", wxSTC_KEY_PRIOR }, - { "wxSTC_KEY_RETURN", wxSTC_KEY_RETURN }, - { "wxSTC_KEY_RIGHT", wxSTC_KEY_RIGHT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_KEY_RWIN", wxSTC_KEY_RWIN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_KEY_SUBTRACT", wxSTC_KEY_SUBTRACT }, - { "wxSTC_KEY_TAB", wxSTC_KEY_TAB }, - { "wxSTC_KEY_UP", wxSTC_KEY_UP }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_KEY_WIN", wxSTC_KEY_WIN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_KIX_COMMENT", wxSTC_KIX_COMMENT }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_KIX_COMMENTSTREAM", wxSTC_KIX_COMMENTSTREAM }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_KIX_DEFAULT", wxSTC_KIX_DEFAULT }, - { "wxSTC_KIX_FUNCTIONS", wxSTC_KIX_FUNCTIONS }, - { "wxSTC_KIX_IDENTIFIER", wxSTC_KIX_IDENTIFIER }, - { "wxSTC_KIX_KEYWORD", wxSTC_KIX_KEYWORD }, - { "wxSTC_KIX_MACRO", wxSTC_KIX_MACRO }, - { "wxSTC_KIX_NUMBER", wxSTC_KIX_NUMBER }, - { "wxSTC_KIX_OPERATOR", wxSTC_KIX_OPERATOR }, - { "wxSTC_KIX_STRING1", wxSTC_KIX_STRING1 }, - { "wxSTC_KIX_STRING2", wxSTC_KIX_STRING2 }, - { "wxSTC_KIX_VAR", wxSTC_KIX_VAR }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_KVIRC_COMMENT", wxSTC_KVIRC_COMMENT }, - { "wxSTC_KVIRC_COMMENTBLOCK", wxSTC_KVIRC_COMMENTBLOCK }, - { "wxSTC_KVIRC_DEFAULT", wxSTC_KVIRC_DEFAULT }, - { "wxSTC_KVIRC_FUNCTION", wxSTC_KVIRC_FUNCTION }, - { "wxSTC_KVIRC_FUNCTION_KEYWORD", wxSTC_KVIRC_FUNCTION_KEYWORD }, - { "wxSTC_KVIRC_KEYWORD", wxSTC_KVIRC_KEYWORD }, - { "wxSTC_KVIRC_NUMBER", wxSTC_KVIRC_NUMBER }, - { "wxSTC_KVIRC_OPERATOR", wxSTC_KVIRC_OPERATOR }, - { "wxSTC_KVIRC_STRING", wxSTC_KVIRC_STRING }, - { "wxSTC_KVIRC_STRING_FUNCTION", wxSTC_KVIRC_STRING_FUNCTION }, - { "wxSTC_KVIRC_STRING_VARIABLE", wxSTC_KVIRC_STRING_VARIABLE }, - { "wxSTC_KVIRC_VARIABLE", wxSTC_KVIRC_VARIABLE }, - { "wxSTC_KVIRC_WORD", wxSTC_KVIRC_WORD }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LASTSTEPINUNDOREDO", wxSTC_LASTSTEPINUNDOREDO }, - { "wxSTC_LEXER_START", wxSTC_LEXER_START }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_A68K", wxSTC_LEX_A68K }, - { "wxSTC_LEX_ABAQUS", wxSTC_LEX_ABAQUS }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_ADA", wxSTC_LEX_ADA }, - { "wxSTC_LEX_APDL", wxSTC_LEX_APDL }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_AS", wxSTC_LEX_AS }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_ASM", wxSTC_LEX_ASM }, - { "wxSTC_LEX_ASN1", wxSTC_LEX_ASN1 }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxSTC_LEX_ASP", wxSTC_LEX_ASP }, -#endif // !wxCHECK_VERSION(2,8,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_ASYMPTOTE", wxSTC_LEX_ASYMPTOTE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_AU3", wxSTC_LEX_AU3 }, - { "wxSTC_LEX_AUTOMATIC", wxSTC_LEX_AUTOMATIC }, - { "wxSTC_LEX_AVE", wxSTC_LEX_AVE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_AVS", wxSTC_LEX_AVS }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_BAAN", wxSTC_LEX_BAAN }, - { "wxSTC_LEX_BASH", wxSTC_LEX_BASH }, - { "wxSTC_LEX_BATCH", wxSTC_LEX_BATCH }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_BIBTEX", wxSTC_LEX_BIBTEX }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_BLITZBASIC", wxSTC_LEX_BLITZBASIC }, - { "wxSTC_LEX_BULLANT", wxSTC_LEX_BULLANT }, - { "wxSTC_LEX_CAML", wxSTC_LEX_CAML }, - { "wxSTC_LEX_CLW", wxSTC_LEX_CLW }, - { "wxSTC_LEX_CLWNOCASE", wxSTC_LEX_CLWNOCASE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_CMAKE", wxSTC_LEX_CMAKE }, - { "wxSTC_LEX_COBOL", wxSTC_LEX_COBOL }, - { "wxSTC_LEX_COFFEESCRIPT", wxSTC_LEX_COFFEESCRIPT }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_CONF", wxSTC_LEX_CONF }, - { "wxSTC_LEX_CONTAINER", wxSTC_LEX_CONTAINER }, - { "wxSTC_LEX_CPP", wxSTC_LEX_CPP }, - { "wxSTC_LEX_CPPNOCASE", wxSTC_LEX_CPPNOCASE }, - { "wxSTC_LEX_CSOUND", wxSTC_LEX_CSOUND }, - { "wxSTC_LEX_CSS", wxSTC_LEX_CSS }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_D", wxSTC_LEX_D }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_DIFF", wxSTC_LEX_DIFF }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_DMAP", wxSTC_LEX_DMAP }, - { "wxSTC_LEX_DMIS", wxSTC_LEX_DMIS }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_ECL", wxSTC_LEX_ECL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_LEX_EDIFACT", wxSTC_LEX_EDIFACT }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_LEX_EIFFEL", wxSTC_LEX_EIFFEL }, - { "wxSTC_LEX_EIFFELKW", wxSTC_LEX_EIFFELKW }, - { "wxSTC_LEX_ERLANG", wxSTC_LEX_ERLANG }, - { "wxSTC_LEX_ERRORLIST", wxSTC_LEX_ERRORLIST }, - { "wxSTC_LEX_ESCRIPT", wxSTC_LEX_ESCRIPT }, - { "wxSTC_LEX_F77", wxSTC_LEX_F77 }, - { "wxSTC_LEX_FLAGSHIP", wxSTC_LEX_FLAGSHIP }, - { "wxSTC_LEX_FORTH", wxSTC_LEX_FORTH }, - { "wxSTC_LEX_FORTRAN", wxSTC_LEX_FORTRAN }, - { "wxSTC_LEX_FREEBASIC", wxSTC_LEX_FREEBASIC }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_GAP", wxSTC_LEX_GAP }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_GUI4CLI", wxSTC_LEX_GUI4CLI }, - { "wxSTC_LEX_HASKELL", wxSTC_LEX_HASKELL }, - { "wxSTC_LEX_HTML", wxSTC_LEX_HTML }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_IHEX", wxSTC_LEX_IHEX }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_LEX_INNOSETUP", wxSTC_LEX_INNOSETUP }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_LEX_JSON", wxSTC_LEX_JSON }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_LEX_KIX", wxSTC_LEX_KIX }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_KVIRC", wxSTC_LEX_KVIRC }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_LATEX", wxSTC_LEX_LATEX }, - { "wxSTC_LEX_LISP", wxSTC_LEX_LISP }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_LITERATEHASKELL", wxSTC_LEX_LITERATEHASKELL }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_LOT", wxSTC_LEX_LOT }, - { "wxSTC_LEX_LOUT", wxSTC_LEX_LOUT }, - { "wxSTC_LEX_LUA", wxSTC_LEX_LUA }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_MAGIK", wxSTC_LEX_MAGIK }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_MAKEFILE", wxSTC_LEX_MAKEFILE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_MARKDOWN", wxSTC_LEX_MARKDOWN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_MATLAB", wxSTC_LEX_MATLAB }, - { "wxSTC_LEX_METAPOST", wxSTC_LEX_METAPOST }, - { "wxSTC_LEX_MMIXAL", wxSTC_LEX_MMIXAL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_MODULA", wxSTC_LEX_MODULA }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_MSSQL", wxSTC_LEX_MSSQL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_MYSQL", wxSTC_LEX_MYSQL }, - { "wxSTC_LEX_NIMROD", wxSTC_LEX_NIMROD }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_NNCRONTAB", wxSTC_LEX_NNCRONTAB }, - { "wxSTC_LEX_NSIS", wxSTC_LEX_NSIS }, - { "wxSTC_LEX_NULL", wxSTC_LEX_NULL }, - { "wxSTC_LEX_OCTAVE", wxSTC_LEX_OCTAVE }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_OPAL", wxSTC_LEX_OPAL }, - { "wxSTC_LEX_OSCRIPT", wxSTC_LEX_OSCRIPT }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_PASCAL", wxSTC_LEX_PASCAL }, - { "wxSTC_LEX_PERL", wxSTC_LEX_PERL }, - -#if !wxCHECK_VERSION(2,8,0) - { "wxSTC_LEX_PHP", wxSTC_LEX_PHP }, -#endif // !wxCHECK_VERSION(2,8,0) - - { "wxSTC_LEX_PHPSCRIPT", wxSTC_LEX_PHPSCRIPT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_PLM", wxSTC_LEX_PLM }, - { "wxSTC_LEX_PO", wxSTC_LEX_PO }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_POV", wxSTC_LEX_POV }, - { "wxSTC_LEX_POWERBASIC", wxSTC_LEX_POWERBASIC }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_POWERPRO", wxSTC_LEX_POWERPRO }, - { "wxSTC_LEX_POWERSHELL", wxSTC_LEX_POWERSHELL }, - { "wxSTC_LEX_PROGRESS", wxSTC_LEX_PROGRESS }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_PROPERTIES", wxSTC_LEX_PROPERTIES }, - { "wxSTC_LEX_PS", wxSTC_LEX_PS }, - { "wxSTC_LEX_PUREBASIC", wxSTC_LEX_PUREBASIC }, - { "wxSTC_LEX_PYTHON", wxSTC_LEX_PYTHON }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_R", wxSTC_LEX_R }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_REBOL", wxSTC_LEX_REBOL }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_REGISTRY", wxSTC_LEX_REGISTRY }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_RUBY", wxSTC_LEX_RUBY }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_RUST", wxSTC_LEX_RUST }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_SCRIPTOL", wxSTC_LEX_SCRIPTOL }, - { "wxSTC_LEX_SMALLTALK", wxSTC_LEX_SMALLTALK }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_SML", wxSTC_LEX_SML }, - { "wxSTC_LEX_SORCUS", wxSTC_LEX_SORCUS }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_SPECMAN", wxSTC_LEX_SPECMAN }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_SPICE", wxSTC_LEX_SPICE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_SQL", wxSTC_LEX_SQL }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_SREC", wxSTC_LEX_SREC }, - { "wxSTC_LEX_STTXT", wxSTC_LEX_STTXT }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_TACL", wxSTC_LEX_TACL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_TADS3", wxSTC_LEX_TADS3 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_TAL", wxSTC_LEX_TAL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_TCL", wxSTC_LEX_TCL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_TCMD", wxSTC_LEX_TCMD }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LEX_TEHEX", wxSTC_LEX_TEHEX }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LEX_TEX", wxSTC_LEX_TEX }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_TXT2TAGS", wxSTC_LEX_TXT2TAGS }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_VB", wxSTC_LEX_VB }, - { "wxSTC_LEX_VBSCRIPT", wxSTC_LEX_VBSCRIPT }, - { "wxSTC_LEX_VERILOG", wxSTC_LEX_VERILOG }, - { "wxSTC_LEX_VHDL", wxSTC_LEX_VHDL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LEX_VISUALPROLOG", wxSTC_LEX_VISUALPROLOG }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LEX_XCODE", wxSTC_LEX_XCODE }, - { "wxSTC_LEX_XML", wxSTC_LEX_XML }, - { "wxSTC_LEX_YAML", wxSTC_LEX_YAML }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_LINE_END_TYPE_DEFAULT", wxSTC_LINE_END_TYPE_DEFAULT }, - { "wxSTC_LINE_END_TYPE_UNICODE", wxSTC_LINE_END_TYPE_UNICODE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_LISP_COMMENT", wxSTC_LISP_COMMENT }, - { "wxSTC_LISP_DEFAULT", wxSTC_LISP_DEFAULT }, - { "wxSTC_LISP_IDENTIFIER", wxSTC_LISP_IDENTIFIER }, - { "wxSTC_LISP_KEYWORD", wxSTC_LISP_KEYWORD }, - { "wxSTC_LISP_KEYWORD_KW", wxSTC_LISP_KEYWORD_KW }, - { "wxSTC_LISP_MULTI_COMMENT", wxSTC_LISP_MULTI_COMMENT }, - { "wxSTC_LISP_NUMBER", wxSTC_LISP_NUMBER }, - { "wxSTC_LISP_OPERATOR", wxSTC_LISP_OPERATOR }, - { "wxSTC_LISP_SPECIAL", wxSTC_LISP_SPECIAL }, - { "wxSTC_LISP_STRING", wxSTC_LISP_STRING }, - { "wxSTC_LISP_STRINGEOL", wxSTC_LISP_STRINGEOL }, - { "wxSTC_LISP_SYMBOL", wxSTC_LISP_SYMBOL }, - { "wxSTC_LOT_ABORT", wxSTC_LOT_ABORT }, - { "wxSTC_LOT_BREAK", wxSTC_LOT_BREAK }, - { "wxSTC_LOT_DEFAULT", wxSTC_LOT_DEFAULT }, - { "wxSTC_LOT_FAIL", wxSTC_LOT_FAIL }, - { "wxSTC_LOT_HEADER", wxSTC_LOT_HEADER }, - { "wxSTC_LOT_PASS", wxSTC_LOT_PASS }, - { "wxSTC_LOT_SET", wxSTC_LOT_SET }, - { "wxSTC_LOUT_COMMENT", wxSTC_LOUT_COMMENT }, - { "wxSTC_LOUT_DEFAULT", wxSTC_LOUT_DEFAULT }, - { "wxSTC_LOUT_IDENTIFIER", wxSTC_LOUT_IDENTIFIER }, - { "wxSTC_LOUT_NUMBER", wxSTC_LOUT_NUMBER }, - { "wxSTC_LOUT_OPERATOR", wxSTC_LOUT_OPERATOR }, - { "wxSTC_LOUT_STRING", wxSTC_LOUT_STRING }, - { "wxSTC_LOUT_STRINGEOL", wxSTC_LOUT_STRINGEOL }, - { "wxSTC_LOUT_WORD", wxSTC_LOUT_WORD }, - { "wxSTC_LOUT_WORD2", wxSTC_LOUT_WORD2 }, - { "wxSTC_LOUT_WORD3", wxSTC_LOUT_WORD3 }, - { "wxSTC_LOUT_WORD4", wxSTC_LOUT_WORD4 }, - { "wxSTC_LUA_CHARACTER", wxSTC_LUA_CHARACTER }, - { "wxSTC_LUA_COMMENT", wxSTC_LUA_COMMENT }, - { "wxSTC_LUA_COMMENTDOC", wxSTC_LUA_COMMENTDOC }, - { "wxSTC_LUA_COMMENTLINE", wxSTC_LUA_COMMENTLINE }, - { "wxSTC_LUA_DEFAULT", wxSTC_LUA_DEFAULT }, - { "wxSTC_LUA_IDENTIFIER", wxSTC_LUA_IDENTIFIER }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_LUA_LABEL", wxSTC_LUA_LABEL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_LUA_LITERALSTRING", wxSTC_LUA_LITERALSTRING }, - { "wxSTC_LUA_NUMBER", wxSTC_LUA_NUMBER }, - { "wxSTC_LUA_OPERATOR", wxSTC_LUA_OPERATOR }, - { "wxSTC_LUA_PREPROCESSOR", wxSTC_LUA_PREPROCESSOR }, - { "wxSTC_LUA_STRING", wxSTC_LUA_STRING }, - { "wxSTC_LUA_STRINGEOL", wxSTC_LUA_STRINGEOL }, - { "wxSTC_LUA_WORD", wxSTC_LUA_WORD }, - { "wxSTC_LUA_WORD2", wxSTC_LUA_WORD2 }, - { "wxSTC_LUA_WORD3", wxSTC_LUA_WORD3 }, - { "wxSTC_LUA_WORD4", wxSTC_LUA_WORD4 }, - { "wxSTC_LUA_WORD5", wxSTC_LUA_WORD5 }, - { "wxSTC_LUA_WORD6", wxSTC_LUA_WORD6 }, - { "wxSTC_LUA_WORD7", wxSTC_LUA_WORD7 }, - { "wxSTC_LUA_WORD8", wxSTC_LUA_WORD8 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_L_CMDOPT", wxSTC_L_CMDOPT }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_L_COMMAND", wxSTC_L_COMMAND }, - { "wxSTC_L_COMMENT", wxSTC_L_COMMENT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_L_COMMENT2", wxSTC_L_COMMENT2 }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_L_DEFAULT", wxSTC_L_DEFAULT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_L_ERROR", wxSTC_L_ERROR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_L_MATH", wxSTC_L_MATH }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_L_MATH2", wxSTC_L_MATH2 }, - { "wxSTC_L_SHORTCMD", wxSTC_L_SHORTCMD }, - { "wxSTC_L_SPECIAL", wxSTC_L_SPECIAL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_L_TAG", wxSTC_L_TAG }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_L_TAG2", wxSTC_L_TAG2 }, - { "wxSTC_L_VERBATIM", wxSTC_L_VERBATIM }, - { "wxSTC_MAGIK_BRACE_BLOCK", wxSTC_MAGIK_BRACE_BLOCK }, - { "wxSTC_MAGIK_BRACKET_BLOCK", wxSTC_MAGIK_BRACKET_BLOCK }, - { "wxSTC_MAGIK_CHARACTER", wxSTC_MAGIK_CHARACTER }, - { "wxSTC_MAGIK_COMMENT", wxSTC_MAGIK_COMMENT }, - { "wxSTC_MAGIK_CONTAINER", wxSTC_MAGIK_CONTAINER }, - { "wxSTC_MAGIK_DEFAULT", wxSTC_MAGIK_DEFAULT }, - { "wxSTC_MAGIK_FLOW", wxSTC_MAGIK_FLOW }, - { "wxSTC_MAGIK_HYPER_COMMENT", wxSTC_MAGIK_HYPER_COMMENT }, - { "wxSTC_MAGIK_IDENTIFIER", wxSTC_MAGIK_IDENTIFIER }, - { "wxSTC_MAGIK_KEYWORD", wxSTC_MAGIK_KEYWORD }, - { "wxSTC_MAGIK_NUMBER", wxSTC_MAGIK_NUMBER }, - { "wxSTC_MAGIK_OPERATOR", wxSTC_MAGIK_OPERATOR }, - { "wxSTC_MAGIK_PRAGMA", wxSTC_MAGIK_PRAGMA }, - { "wxSTC_MAGIK_SQBRACKET_BLOCK", wxSTC_MAGIK_SQBRACKET_BLOCK }, - { "wxSTC_MAGIK_STRING", wxSTC_MAGIK_STRING }, - { "wxSTC_MAGIK_SYMBOL", wxSTC_MAGIK_SYMBOL }, - { "wxSTC_MAGIK_UNKNOWN_KEYWORD", wxSTC_MAGIK_UNKNOWN_KEYWORD }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MAKE_COMMENT", wxSTC_MAKE_COMMENT }, - { "wxSTC_MAKE_DEFAULT", wxSTC_MAKE_DEFAULT }, - { "wxSTC_MAKE_IDENTIFIER", wxSTC_MAKE_IDENTIFIER }, - { "wxSTC_MAKE_IDEOL", wxSTC_MAKE_IDEOL }, - { "wxSTC_MAKE_OPERATOR", wxSTC_MAKE_OPERATOR }, - { "wxSTC_MAKE_PREPROCESSOR", wxSTC_MAKE_PREPROCESSOR }, - { "wxSTC_MAKE_TARGET", wxSTC_MAKE_TARGET }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MARGINOPTION_NONE", wxSTC_MARGINOPTION_NONE }, - { "wxSTC_MARGINOPTION_SUBLINESELECT", wxSTC_MARGINOPTION_SUBLINESELECT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_MARGIN_BACK", wxSTC_MARGIN_BACK }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_MARGIN_COLOUR", wxSTC_MARGIN_COLOUR }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_MARGIN_FORE", wxSTC_MARGIN_FORE }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_MARGIN_NUMBER", wxSTC_MARGIN_NUMBER }, - -#if wxCHECK_VERSION(2,9,2) - { "wxSTC_MARGIN_RTEXT", wxSTC_MARGIN_RTEXT }, -#endif // wxCHECK_VERSION(2,9,2) - - { "wxSTC_MARGIN_SYMBOL", wxSTC_MARGIN_SYMBOL }, - -#if wxCHECK_VERSION(2,9,2) - { "wxSTC_MARGIN_TEXT", wxSTC_MARGIN_TEXT }, -#endif // wxCHECK_VERSION(2,9,2) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MARKDOWN_BLOCKQUOTE", wxSTC_MARKDOWN_BLOCKQUOTE }, - { "wxSTC_MARKDOWN_CODE", wxSTC_MARKDOWN_CODE }, - { "wxSTC_MARKDOWN_CODE2", wxSTC_MARKDOWN_CODE2 }, - { "wxSTC_MARKDOWN_CODEBK", wxSTC_MARKDOWN_CODEBK }, - { "wxSTC_MARKDOWN_DEFAULT", wxSTC_MARKDOWN_DEFAULT }, - { "wxSTC_MARKDOWN_EM1", wxSTC_MARKDOWN_EM1 }, - { "wxSTC_MARKDOWN_EM2", wxSTC_MARKDOWN_EM2 }, - { "wxSTC_MARKDOWN_HEADER1", wxSTC_MARKDOWN_HEADER1 }, - { "wxSTC_MARKDOWN_HEADER2", wxSTC_MARKDOWN_HEADER2 }, - { "wxSTC_MARKDOWN_HEADER3", wxSTC_MARKDOWN_HEADER3 }, - { "wxSTC_MARKDOWN_HEADER4", wxSTC_MARKDOWN_HEADER4 }, - { "wxSTC_MARKDOWN_HEADER5", wxSTC_MARKDOWN_HEADER5 }, - { "wxSTC_MARKDOWN_HEADER6", wxSTC_MARKDOWN_HEADER6 }, - { "wxSTC_MARKDOWN_HRULE", wxSTC_MARKDOWN_HRULE }, - { "wxSTC_MARKDOWN_LINE_BEGIN", wxSTC_MARKDOWN_LINE_BEGIN }, - { "wxSTC_MARKDOWN_LINK", wxSTC_MARKDOWN_LINK }, - { "wxSTC_MARKDOWN_OLIST_ITEM", wxSTC_MARKDOWN_OLIST_ITEM }, - { "wxSTC_MARKDOWN_PRECHAR", wxSTC_MARKDOWN_PRECHAR }, - { "wxSTC_MARKDOWN_STRIKEOUT", wxSTC_MARKDOWN_STRIKEOUT }, - { "wxSTC_MARKDOWN_STRONG1", wxSTC_MARKDOWN_STRONG1 }, - { "wxSTC_MARKDOWN_STRONG2", wxSTC_MARKDOWN_STRONG2 }, - { "wxSTC_MARKDOWN_ULIST_ITEM", wxSTC_MARKDOWN_ULIST_ITEM }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MARKER_MAX", wxSTC_MARKER_MAX }, - { "wxSTC_MARKNUM_FOLDER", wxSTC_MARKNUM_FOLDER }, - { "wxSTC_MARKNUM_FOLDEREND", wxSTC_MARKNUM_FOLDEREND }, - { "wxSTC_MARKNUM_FOLDERMIDTAIL", wxSTC_MARKNUM_FOLDERMIDTAIL }, - { "wxSTC_MARKNUM_FOLDEROPEN", wxSTC_MARKNUM_FOLDEROPEN }, - { "wxSTC_MARKNUM_FOLDEROPENMID", wxSTC_MARKNUM_FOLDEROPENMID }, - { "wxSTC_MARKNUM_FOLDERSUB", wxSTC_MARKNUM_FOLDERSUB }, - { "wxSTC_MARKNUM_FOLDERTAIL", wxSTC_MARKNUM_FOLDERTAIL }, - { "wxSTC_MARK_ARROW", wxSTC_MARK_ARROW }, - { "wxSTC_MARK_ARROWDOWN", wxSTC_MARK_ARROWDOWN }, - { "wxSTC_MARK_ARROWS", wxSTC_MARK_ARROWS }, - -#if wxCHECK_VERSION(2,9,2) - { "wxSTC_MARK_AVAILABLE", wxSTC_MARK_AVAILABLE }, -#endif // wxCHECK_VERSION(2,9,2) - - { "wxSTC_MARK_BACKGROUND", wxSTC_MARK_BACKGROUND }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_MARK_BOOKMARK", wxSTC_MARK_BOOKMARK }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_MARK_BOXMINUS", wxSTC_MARK_BOXMINUS }, - { "wxSTC_MARK_BOXMINUSCONNECTED", wxSTC_MARK_BOXMINUSCONNECTED }, - { "wxSTC_MARK_BOXPLUS", wxSTC_MARK_BOXPLUS }, - { "wxSTC_MARK_BOXPLUSCONNECTED", wxSTC_MARK_BOXPLUSCONNECTED }, - { "wxSTC_MARK_CHARACTER", wxSTC_MARK_CHARACTER }, - { "wxSTC_MARK_CIRCLE", wxSTC_MARK_CIRCLE }, - { "wxSTC_MARK_CIRCLEMINUS", wxSTC_MARK_CIRCLEMINUS }, - { "wxSTC_MARK_CIRCLEMINUSCONNECTED", wxSTC_MARK_CIRCLEMINUSCONNECTED }, - { "wxSTC_MARK_CIRCLEPLUS", wxSTC_MARK_CIRCLEPLUS }, - { "wxSTC_MARK_CIRCLEPLUSCONNECTED", wxSTC_MARK_CIRCLEPLUSCONNECTED }, - { "wxSTC_MARK_DOTDOTDOT", wxSTC_MARK_DOTDOTDOT }, - { "wxSTC_MARK_EMPTY", wxSTC_MARK_EMPTY }, - { "wxSTC_MARK_FULLRECT", wxSTC_MARK_FULLRECT }, - { "wxSTC_MARK_LCORNER", wxSTC_MARK_LCORNER }, - { "wxSTC_MARK_LCORNERCURVE", wxSTC_MARK_LCORNERCURVE }, - -#if wxCHECK_VERSION(2,9,2) - { "wxSTC_MARK_LEFTRECT", wxSTC_MARK_LEFTRECT }, -#endif // wxCHECK_VERSION(2,9,2) - - { "wxSTC_MARK_MINUS", wxSTC_MARK_MINUS }, - { "wxSTC_MARK_PIXMAP", wxSTC_MARK_PIXMAP }, - { "wxSTC_MARK_PLUS", wxSTC_MARK_PLUS }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MARK_RGBAIMAGE", wxSTC_MARK_RGBAIMAGE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MARK_ROUNDRECT", wxSTC_MARK_ROUNDRECT }, - { "wxSTC_MARK_SHORTARROW", wxSTC_MARK_SHORTARROW }, - { "wxSTC_MARK_SMALLRECT", wxSTC_MARK_SMALLRECT }, - { "wxSTC_MARK_TCORNER", wxSTC_MARK_TCORNER }, - { "wxSTC_MARK_TCORNERCURVE", wxSTC_MARK_TCORNERCURVE }, - -#if wxCHECK_VERSION(2,9,2) - { "wxSTC_MARK_UNDERLINE", wxSTC_MARK_UNDERLINE }, -#endif // wxCHECK_VERSION(2,9,2) - - { "wxSTC_MARK_VLINE", wxSTC_MARK_VLINE }, - { "wxSTC_MASK_FOLDERS", wxSTC_MASK_FOLDERS }, - { "wxSTC_MATLAB_COMMAND", wxSTC_MATLAB_COMMAND }, - { "wxSTC_MATLAB_COMMENT", wxSTC_MATLAB_COMMENT }, - { "wxSTC_MATLAB_DEFAULT", wxSTC_MATLAB_DEFAULT }, - { "wxSTC_MATLAB_DOUBLEQUOTESTRING", wxSTC_MATLAB_DOUBLEQUOTESTRING }, - { "wxSTC_MATLAB_IDENTIFIER", wxSTC_MATLAB_IDENTIFIER }, - { "wxSTC_MATLAB_KEYWORD", wxSTC_MATLAB_KEYWORD }, - { "wxSTC_MATLAB_NUMBER", wxSTC_MATLAB_NUMBER }, - { "wxSTC_MATLAB_OPERATOR", wxSTC_MATLAB_OPERATOR }, - { "wxSTC_MATLAB_STRING", wxSTC_MATLAB_STRING }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_MAX_MARGIN", wxSTC_MAX_MARGIN }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_METAPOST_COMMAND", wxSTC_METAPOST_COMMAND }, - { "wxSTC_METAPOST_DEFAULT", wxSTC_METAPOST_DEFAULT }, - { "wxSTC_METAPOST_EXTRA", wxSTC_METAPOST_EXTRA }, - { "wxSTC_METAPOST_GROUP", wxSTC_METAPOST_GROUP }, - { "wxSTC_METAPOST_SPECIAL", wxSTC_METAPOST_SPECIAL }, - { "wxSTC_METAPOST_SYMBOL", wxSTC_METAPOST_SYMBOL }, - { "wxSTC_METAPOST_TEXT", wxSTC_METAPOST_TEXT }, - { "wxSTC_MMIXAL_CHAR", wxSTC_MMIXAL_CHAR }, - { "wxSTC_MMIXAL_COMMENT", wxSTC_MMIXAL_COMMENT }, - { "wxSTC_MMIXAL_HEX", wxSTC_MMIXAL_HEX }, - { "wxSTC_MMIXAL_INCLUDE", wxSTC_MMIXAL_INCLUDE }, - { "wxSTC_MMIXAL_LABEL", wxSTC_MMIXAL_LABEL }, - { "wxSTC_MMIXAL_LEADWS", wxSTC_MMIXAL_LEADWS }, - { "wxSTC_MMIXAL_NUMBER", wxSTC_MMIXAL_NUMBER }, - { "wxSTC_MMIXAL_OPCODE", wxSTC_MMIXAL_OPCODE }, - { "wxSTC_MMIXAL_OPCODE_POST", wxSTC_MMIXAL_OPCODE_POST }, - { "wxSTC_MMIXAL_OPCODE_PRE", wxSTC_MMIXAL_OPCODE_PRE }, - { "wxSTC_MMIXAL_OPCODE_UNKNOWN", wxSTC_MMIXAL_OPCODE_UNKNOWN }, - { "wxSTC_MMIXAL_OPCODE_VALID", wxSTC_MMIXAL_OPCODE_VALID }, - { "wxSTC_MMIXAL_OPERANDS", wxSTC_MMIXAL_OPERANDS }, - { "wxSTC_MMIXAL_OPERATOR", wxSTC_MMIXAL_OPERATOR }, - { "wxSTC_MMIXAL_REF", wxSTC_MMIXAL_REF }, - { "wxSTC_MMIXAL_REGISTER", wxSTC_MMIXAL_REGISTER }, - { "wxSTC_MMIXAL_STRING", wxSTC_MMIXAL_STRING }, - { "wxSTC_MMIXAL_SYMBOL", wxSTC_MMIXAL_SYMBOL }, - { "wxSTC_MODEVENTMASKALL", wxSTC_MODEVENTMASKALL }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MODULA_BADSTR", wxSTC_MODULA_BADSTR }, - { "wxSTC_MODULA_BASENUM", wxSTC_MODULA_BASENUM }, - { "wxSTC_MODULA_CHAR", wxSTC_MODULA_CHAR }, - { "wxSTC_MODULA_CHARSPEC", wxSTC_MODULA_CHARSPEC }, - { "wxSTC_MODULA_COMMENT", wxSTC_MODULA_COMMENT }, - { "wxSTC_MODULA_DEFAULT", wxSTC_MODULA_DEFAULT }, - { "wxSTC_MODULA_DOXYCOMM", wxSTC_MODULA_DOXYCOMM }, - { "wxSTC_MODULA_DOXYKEY", wxSTC_MODULA_DOXYKEY }, - { "wxSTC_MODULA_FLOAT", wxSTC_MODULA_FLOAT }, - { "wxSTC_MODULA_KEYWORD", wxSTC_MODULA_KEYWORD }, - { "wxSTC_MODULA_NUMBER", wxSTC_MODULA_NUMBER }, - { "wxSTC_MODULA_OPERATOR", wxSTC_MODULA_OPERATOR }, - { "wxSTC_MODULA_PRAGMA", wxSTC_MODULA_PRAGMA }, - { "wxSTC_MODULA_PRGKEY", wxSTC_MODULA_PRGKEY }, - { "wxSTC_MODULA_PROC", wxSTC_MODULA_PROC }, - { "wxSTC_MODULA_RESERVED", wxSTC_MODULA_RESERVED }, - { "wxSTC_MODULA_STRING", wxSTC_MODULA_STRING }, - { "wxSTC_MODULA_STRSPEC", wxSTC_MODULA_STRSPEC }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MOD_BEFOREDELETE", wxSTC_MOD_BEFOREDELETE }, - { "wxSTC_MOD_BEFOREINSERT", wxSTC_MOD_BEFOREINSERT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MOD_CHANGEANNOTATION", wxSTC_MOD_CHANGEANNOTATION }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MOD_CHANGEFOLD", wxSTC_MOD_CHANGEFOLD }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MOD_CHANGEINDICATOR", wxSTC_MOD_CHANGEINDICATOR }, - { "wxSTC_MOD_CHANGELINESTATE", wxSTC_MOD_CHANGELINESTATE }, - { "wxSTC_MOD_CHANGEMARGIN", wxSTC_MOD_CHANGEMARGIN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MOD_CHANGEMARKER", wxSTC_MOD_CHANGEMARKER }, - { "wxSTC_MOD_CHANGESTYLE", wxSTC_MOD_CHANGESTYLE }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_MOD_CHANGETABSTOPS", wxSTC_MOD_CHANGETABSTOPS }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MOD_CONTAINER", wxSTC_MOD_CONTAINER }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MOD_DELETETEXT", wxSTC_MOD_DELETETEXT }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_MOD_INSERTCHECK", wxSTC_MOD_INSERTCHECK }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_MOD_INSERTTEXT", wxSTC_MOD_INSERTTEXT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MOD_LEXERSTATE", wxSTC_MOD_LEXERSTATE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MSSQL_COLUMN_NAME", wxSTC_MSSQL_COLUMN_NAME }, - { "wxSTC_MSSQL_COLUMN_NAME_2", wxSTC_MSSQL_COLUMN_NAME_2 }, - { "wxSTC_MSSQL_COMMENT", wxSTC_MSSQL_COMMENT }, - { "wxSTC_MSSQL_DATATYPE", wxSTC_MSSQL_DATATYPE }, - { "wxSTC_MSSQL_DEFAULT", wxSTC_MSSQL_DEFAULT }, - { "wxSTC_MSSQL_DEFAULT_PREF_DATATYPE", wxSTC_MSSQL_DEFAULT_PREF_DATATYPE }, - { "wxSTC_MSSQL_FUNCTION", wxSTC_MSSQL_FUNCTION }, - { "wxSTC_MSSQL_GLOBAL_VARIABLE", wxSTC_MSSQL_GLOBAL_VARIABLE }, - { "wxSTC_MSSQL_IDENTIFIER", wxSTC_MSSQL_IDENTIFIER }, - { "wxSTC_MSSQL_LINE_COMMENT", wxSTC_MSSQL_LINE_COMMENT }, - { "wxSTC_MSSQL_NUMBER", wxSTC_MSSQL_NUMBER }, - { "wxSTC_MSSQL_OPERATOR", wxSTC_MSSQL_OPERATOR }, - { "wxSTC_MSSQL_STATEMENT", wxSTC_MSSQL_STATEMENT }, - { "wxSTC_MSSQL_STORED_PROCEDURE", wxSTC_MSSQL_STORED_PROCEDURE }, - { "wxSTC_MSSQL_STRING", wxSTC_MSSQL_STRING }, - { "wxSTC_MSSQL_SYSTABLE", wxSTC_MSSQL_SYSTABLE }, - { "wxSTC_MSSQL_VARIABLE", wxSTC_MSSQL_VARIABLE }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_MULTIAUTOC_EACH", wxSTC_MULTIAUTOC_EACH }, - { "wxSTC_MULTIAUTOC_ONCE", wxSTC_MULTIAUTOC_ONCE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_MULTILINEUNDOREDO", wxSTC_MULTILINEUNDOREDO }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MULTIPASTE_EACH", wxSTC_MULTIPASTE_EACH }, - { "wxSTC_MULTIPASTE_ONCE", wxSTC_MULTIPASTE_ONCE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_MULTISTEPUNDOREDO", wxSTC_MULTISTEPUNDOREDO }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MYSQL_COMMENT", wxSTC_MYSQL_COMMENT }, - { "wxSTC_MYSQL_COMMENTLINE", wxSTC_MYSQL_COMMENTLINE }, - { "wxSTC_MYSQL_DATABASEOBJECT", wxSTC_MYSQL_DATABASEOBJECT }, - { "wxSTC_MYSQL_DEFAULT", wxSTC_MYSQL_DEFAULT }, - { "wxSTC_MYSQL_DQSTRING", wxSTC_MYSQL_DQSTRING }, - { "wxSTC_MYSQL_FUNCTION", wxSTC_MYSQL_FUNCTION }, - { "wxSTC_MYSQL_HIDDENCOMMAND", wxSTC_MYSQL_HIDDENCOMMAND }, - { "wxSTC_MYSQL_IDENTIFIER", wxSTC_MYSQL_IDENTIFIER }, - { "wxSTC_MYSQL_KEYWORD", wxSTC_MYSQL_KEYWORD }, - { "wxSTC_MYSQL_KNOWNSYSTEMVARIABLE", wxSTC_MYSQL_KNOWNSYSTEMVARIABLE }, - { "wxSTC_MYSQL_MAJORKEYWORD", wxSTC_MYSQL_MAJORKEYWORD }, - { "wxSTC_MYSQL_NUMBER", wxSTC_MYSQL_NUMBER }, - { "wxSTC_MYSQL_OPERATOR", wxSTC_MYSQL_OPERATOR }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_MYSQL_PLACEHOLDER", wxSTC_MYSQL_PLACEHOLDER }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_MYSQL_PROCEDUREKEYWORD", wxSTC_MYSQL_PROCEDUREKEYWORD }, - { "wxSTC_MYSQL_QUOTEDIDENTIFIER", wxSTC_MYSQL_QUOTEDIDENTIFIER }, - { "wxSTC_MYSQL_SQSTRING", wxSTC_MYSQL_SQSTRING }, - { "wxSTC_MYSQL_STRING", wxSTC_MYSQL_STRING }, - { "wxSTC_MYSQL_SYSTEMVARIABLE", wxSTC_MYSQL_SYSTEMVARIABLE }, - { "wxSTC_MYSQL_USER1", wxSTC_MYSQL_USER1 }, - { "wxSTC_MYSQL_USER2", wxSTC_MYSQL_USER2 }, - { "wxSTC_MYSQL_USER3", wxSTC_MYSQL_USER3 }, - { "wxSTC_MYSQL_VARIABLE", wxSTC_MYSQL_VARIABLE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_NNCRONTAB_ASTERISK", wxSTC_NNCRONTAB_ASTERISK }, - { "wxSTC_NNCRONTAB_COMMENT", wxSTC_NNCRONTAB_COMMENT }, - { "wxSTC_NNCRONTAB_DEFAULT", wxSTC_NNCRONTAB_DEFAULT }, - { "wxSTC_NNCRONTAB_ENVIRONMENT", wxSTC_NNCRONTAB_ENVIRONMENT }, - { "wxSTC_NNCRONTAB_IDENTIFIER", wxSTC_NNCRONTAB_IDENTIFIER }, - { "wxSTC_NNCRONTAB_KEYWORD", wxSTC_NNCRONTAB_KEYWORD }, - { "wxSTC_NNCRONTAB_MODIFIER", wxSTC_NNCRONTAB_MODIFIER }, - { "wxSTC_NNCRONTAB_NUMBER", wxSTC_NNCRONTAB_NUMBER }, - { "wxSTC_NNCRONTAB_SECTION", wxSTC_NNCRONTAB_SECTION }, - { "wxSTC_NNCRONTAB_STRING", wxSTC_NNCRONTAB_STRING }, - { "wxSTC_NNCRONTAB_TASK", wxSTC_NNCRONTAB_TASK }, - { "wxSTC_NSIS_COMMENT", wxSTC_NSIS_COMMENT }, - { "wxSTC_NSIS_COMMENTBOX", wxSTC_NSIS_COMMENTBOX }, - { "wxSTC_NSIS_DEFAULT", wxSTC_NSIS_DEFAULT }, - { "wxSTC_NSIS_FUNCTION", wxSTC_NSIS_FUNCTION }, - { "wxSTC_NSIS_FUNCTIONDEF", wxSTC_NSIS_FUNCTIONDEF }, - { "wxSTC_NSIS_IFDEFINEDEF", wxSTC_NSIS_IFDEFINEDEF }, - { "wxSTC_NSIS_LABEL", wxSTC_NSIS_LABEL }, - { "wxSTC_NSIS_MACRODEF", wxSTC_NSIS_MACRODEF }, - { "wxSTC_NSIS_NUMBER", wxSTC_NSIS_NUMBER }, - { "wxSTC_NSIS_PAGEEX", wxSTC_NSIS_PAGEEX }, - { "wxSTC_NSIS_SECTIONDEF", wxSTC_NSIS_SECTIONDEF }, - { "wxSTC_NSIS_SECTIONGROUP", wxSTC_NSIS_SECTIONGROUP }, - { "wxSTC_NSIS_STRINGDQ", wxSTC_NSIS_STRINGDQ }, - { "wxSTC_NSIS_STRINGLQ", wxSTC_NSIS_STRINGLQ }, - { "wxSTC_NSIS_STRINGRQ", wxSTC_NSIS_STRINGRQ }, - { "wxSTC_NSIS_STRINGVAR", wxSTC_NSIS_STRINGVAR }, - { "wxSTC_NSIS_SUBSECTIONDEF", wxSTC_NSIS_SUBSECTIONDEF }, - { "wxSTC_NSIS_USERDEFINED", wxSTC_NSIS_USERDEFINED }, - { "wxSTC_NSIS_VARIABLE", wxSTC_NSIS_VARIABLE }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_OPAL_BOOL_CONST", wxSTC_OPAL_BOOL_CONST }, - { "wxSTC_OPAL_COMMENT_BLOCK", wxSTC_OPAL_COMMENT_BLOCK }, - { "wxSTC_OPAL_COMMENT_LINE", wxSTC_OPAL_COMMENT_LINE }, - { "wxSTC_OPAL_DEFAULT", wxSTC_OPAL_DEFAULT }, - { "wxSTC_OPAL_INTEGER", wxSTC_OPAL_INTEGER }, - { "wxSTC_OPAL_KEYWORD", wxSTC_OPAL_KEYWORD }, - { "wxSTC_OPAL_PAR", wxSTC_OPAL_PAR }, - { "wxSTC_OPAL_SORT", wxSTC_OPAL_SORT }, - { "wxSTC_OPAL_SPACE", wxSTC_OPAL_SPACE }, - { "wxSTC_OPAL_STRING", wxSTC_OPAL_STRING }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_OPTIONAL_START", wxSTC_OPTIONAL_START }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_ORDER_CUSTOM", wxSTC_ORDER_CUSTOM }, - { "wxSTC_ORDER_PERFORMSORT", wxSTC_ORDER_PERFORMSORT }, - { "wxSTC_ORDER_PRESORTED", wxSTC_ORDER_PRESORTED }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_OSCRIPT_BLOCK_COMMENT", wxSTC_OSCRIPT_BLOCK_COMMENT }, - { "wxSTC_OSCRIPT_CONSTANT", wxSTC_OSCRIPT_CONSTANT }, - { "wxSTC_OSCRIPT_DEFAULT", wxSTC_OSCRIPT_DEFAULT }, - { "wxSTC_OSCRIPT_DOC_COMMENT", wxSTC_OSCRIPT_DOC_COMMENT }, - { "wxSTC_OSCRIPT_DOUBLEQUOTE_STRING", wxSTC_OSCRIPT_DOUBLEQUOTE_STRING }, - { "wxSTC_OSCRIPT_FUNCTION", wxSTC_OSCRIPT_FUNCTION }, - { "wxSTC_OSCRIPT_GLOBAL", wxSTC_OSCRIPT_GLOBAL }, - { "wxSTC_OSCRIPT_IDENTIFIER", wxSTC_OSCRIPT_IDENTIFIER }, - { "wxSTC_OSCRIPT_KEYWORD", wxSTC_OSCRIPT_KEYWORD }, - { "wxSTC_OSCRIPT_LABEL", wxSTC_OSCRIPT_LABEL }, - { "wxSTC_OSCRIPT_LINE_COMMENT", wxSTC_OSCRIPT_LINE_COMMENT }, - { "wxSTC_OSCRIPT_METHOD", wxSTC_OSCRIPT_METHOD }, - { "wxSTC_OSCRIPT_NUMBER", wxSTC_OSCRIPT_NUMBER }, - { "wxSTC_OSCRIPT_OBJECT", wxSTC_OSCRIPT_OBJECT }, - { "wxSTC_OSCRIPT_OPERATOR", wxSTC_OSCRIPT_OPERATOR }, - { "wxSTC_OSCRIPT_PREPROCESSOR", wxSTC_OSCRIPT_PREPROCESSOR }, - { "wxSTC_OSCRIPT_PROPERTY", wxSTC_OSCRIPT_PROPERTY }, - { "wxSTC_OSCRIPT_SINGLEQUOTE_STRING", wxSTC_OSCRIPT_SINGLEQUOTE_STRING }, - { "wxSTC_OSCRIPT_TYPE", wxSTC_OSCRIPT_TYPE }, - { "wxSTC_PAS_ASM", wxSTC_PAS_ASM }, - { "wxSTC_PAS_CHARACTER", wxSTC_PAS_CHARACTER }, - { "wxSTC_PAS_COMMENT", wxSTC_PAS_COMMENT }, - { "wxSTC_PAS_COMMENT2", wxSTC_PAS_COMMENT2 }, - { "wxSTC_PAS_COMMENTLINE", wxSTC_PAS_COMMENTLINE }, - { "wxSTC_PAS_DEFAULT", wxSTC_PAS_DEFAULT }, - { "wxSTC_PAS_HEXNUMBER", wxSTC_PAS_HEXNUMBER }, - { "wxSTC_PAS_IDENTIFIER", wxSTC_PAS_IDENTIFIER }, - { "wxSTC_PAS_NUMBER", wxSTC_PAS_NUMBER }, - { "wxSTC_PAS_OPERATOR", wxSTC_PAS_OPERATOR }, - { "wxSTC_PAS_PREPROCESSOR", wxSTC_PAS_PREPROCESSOR }, - { "wxSTC_PAS_PREPROCESSOR2", wxSTC_PAS_PREPROCESSOR2 }, - { "wxSTC_PAS_STRING", wxSTC_PAS_STRING }, - { "wxSTC_PAS_STRINGEOL", wxSTC_PAS_STRINGEOL }, - { "wxSTC_PAS_WORD", wxSTC_PAS_WORD }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PERFORMED_REDO", wxSTC_PERFORMED_REDO }, - { "wxSTC_PERFORMED_UNDO", wxSTC_PERFORMED_UNDO }, - { "wxSTC_PERFORMED_USER", wxSTC_PERFORMED_USER }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_PHASES_MULTIPLE", wxSTC_PHASES_MULTIPLE }, - { "wxSTC_PHASES_ONE", wxSTC_PHASES_ONE }, - { "wxSTC_PHASES_TWO", wxSTC_PHASES_TWO }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PLM_COMMENT", wxSTC_PLM_COMMENT }, - { "wxSTC_PLM_CONTROL", wxSTC_PLM_CONTROL }, - { "wxSTC_PLM_DEFAULT", wxSTC_PLM_DEFAULT }, - { "wxSTC_PLM_IDENTIFIER", wxSTC_PLM_IDENTIFIER }, - { "wxSTC_PLM_KEYWORD", wxSTC_PLM_KEYWORD }, - { "wxSTC_PLM_NUMBER", wxSTC_PLM_NUMBER }, - { "wxSTC_PLM_OPERATOR", wxSTC_PLM_OPERATOR }, - { "wxSTC_PLM_STRING", wxSTC_PLM_STRING }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_ARRAY", wxSTC_PL_ARRAY }, - { "wxSTC_PL_BACKTICKS", wxSTC_PL_BACKTICKS }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_BACKTICKS_VAR", wxSTC_PL_BACKTICKS_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_CHARACTER", wxSTC_PL_CHARACTER }, - { "wxSTC_PL_COMMENTLINE", wxSTC_PL_COMMENTLINE }, - { "wxSTC_PL_DATASECTION", wxSTC_PL_DATASECTION }, - { "wxSTC_PL_DEFAULT", wxSTC_PL_DEFAULT }, - { "wxSTC_PL_ERROR", wxSTC_PL_ERROR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_FORMAT", wxSTC_PL_FORMAT }, - { "wxSTC_PL_FORMAT_IDENT", wxSTC_PL_FORMAT_IDENT }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_HASH", wxSTC_PL_HASH }, - { "wxSTC_PL_HERE_DELIM", wxSTC_PL_HERE_DELIM }, - { "wxSTC_PL_HERE_Q", wxSTC_PL_HERE_Q }, - { "wxSTC_PL_HERE_QQ", wxSTC_PL_HERE_QQ }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_HERE_QQ_VAR", wxSTC_PL_HERE_QQ_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_HERE_QX", wxSTC_PL_HERE_QX }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_HERE_QX_VAR", wxSTC_PL_HERE_QX_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_IDENTIFIER", wxSTC_PL_IDENTIFIER }, - { "wxSTC_PL_LONGQUOTE", wxSTC_PL_LONGQUOTE }, - { "wxSTC_PL_NUMBER", wxSTC_PL_NUMBER }, - { "wxSTC_PL_OPERATOR", wxSTC_PL_OPERATOR }, - { "wxSTC_PL_POD", wxSTC_PL_POD }, - { "wxSTC_PL_POD_VERB", wxSTC_PL_POD_VERB }, - { "wxSTC_PL_PREPROCESSOR", wxSTC_PL_PREPROCESSOR }, - { "wxSTC_PL_PUNCTUATION", wxSTC_PL_PUNCTUATION }, - { "wxSTC_PL_REGEX", wxSTC_PL_REGEX }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_REGEX_VAR", wxSTC_PL_REGEX_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_REGSUBST", wxSTC_PL_REGSUBST }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_REGSUBST_VAR", wxSTC_PL_REGSUBST_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_SCALAR", wxSTC_PL_SCALAR }, - { "wxSTC_PL_STRING", wxSTC_PL_STRING }, - { "wxSTC_PL_STRING_Q", wxSTC_PL_STRING_Q }, - { "wxSTC_PL_STRING_QQ", wxSTC_PL_STRING_QQ }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_STRING_QQ_VAR", wxSTC_PL_STRING_QQ_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_STRING_QR", wxSTC_PL_STRING_QR }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_STRING_QR_VAR", wxSTC_PL_STRING_QR_VAR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_STRING_QW", wxSTC_PL_STRING_QW }, - { "wxSTC_PL_STRING_QX", wxSTC_PL_STRING_QX }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_STRING_QX_VAR", wxSTC_PL_STRING_QX_VAR }, - { "wxSTC_PL_STRING_VAR", wxSTC_PL_STRING_VAR }, - { "wxSTC_PL_SUB_PROTOTYPE", wxSTC_PL_SUB_PROTOTYPE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_PL_SYMBOLTABLE", wxSTC_PL_SYMBOLTABLE }, - { "wxSTC_PL_VARIABLE_INDEXER", wxSTC_PL_VARIABLE_INDEXER }, - { "wxSTC_PL_WORD", wxSTC_PL_WORD }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PL_XLAT", wxSTC_PL_XLAT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_POPUP_ALL", wxSTC_POPUP_ALL }, - { "wxSTC_POPUP_NEVER", wxSTC_POPUP_NEVER }, - { "wxSTC_POPUP_TEXT", wxSTC_POPUP_TEXT }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_POV_BADDIRECTIVE", wxSTC_POV_BADDIRECTIVE }, - { "wxSTC_POV_COMMENT", wxSTC_POV_COMMENT }, - { "wxSTC_POV_COMMENTLINE", wxSTC_POV_COMMENTLINE }, - { "wxSTC_POV_DEFAULT", wxSTC_POV_DEFAULT }, - { "wxSTC_POV_DIRECTIVE", wxSTC_POV_DIRECTIVE }, - { "wxSTC_POV_IDENTIFIER", wxSTC_POV_IDENTIFIER }, - { "wxSTC_POV_NUMBER", wxSTC_POV_NUMBER }, - { "wxSTC_POV_OPERATOR", wxSTC_POV_OPERATOR }, - { "wxSTC_POV_STRING", wxSTC_POV_STRING }, - { "wxSTC_POV_STRINGEOL", wxSTC_POV_STRINGEOL }, - { "wxSTC_POV_WORD2", wxSTC_POV_WORD2 }, - { "wxSTC_POV_WORD3", wxSTC_POV_WORD3 }, - { "wxSTC_POV_WORD4", wxSTC_POV_WORD4 }, - { "wxSTC_POV_WORD5", wxSTC_POV_WORD5 }, - { "wxSTC_POV_WORD6", wxSTC_POV_WORD6 }, - { "wxSTC_POV_WORD7", wxSTC_POV_WORD7 }, - { "wxSTC_POV_WORD8", wxSTC_POV_WORD8 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_POWERPRO_ALTQUOTE", wxSTC_POWERPRO_ALTQUOTE }, - { "wxSTC_POWERPRO_COMMENTBLOCK", wxSTC_POWERPRO_COMMENTBLOCK }, - { "wxSTC_POWERPRO_COMMENTLINE", wxSTC_POWERPRO_COMMENTLINE }, - { "wxSTC_POWERPRO_DEFAULT", wxSTC_POWERPRO_DEFAULT }, - { "wxSTC_POWERPRO_DOUBLEQUOTEDSTRING", wxSTC_POWERPRO_DOUBLEQUOTEDSTRING }, - { "wxSTC_POWERPRO_FUNCTION", wxSTC_POWERPRO_FUNCTION }, - { "wxSTC_POWERPRO_IDENTIFIER", wxSTC_POWERPRO_IDENTIFIER }, - { "wxSTC_POWERPRO_LINECONTINUE", wxSTC_POWERPRO_LINECONTINUE }, - { "wxSTC_POWERPRO_NUMBER", wxSTC_POWERPRO_NUMBER }, - { "wxSTC_POWERPRO_OPERATOR", wxSTC_POWERPRO_OPERATOR }, - { "wxSTC_POWERPRO_SINGLEQUOTEDSTRING", wxSTC_POWERPRO_SINGLEQUOTEDSTRING }, - { "wxSTC_POWERPRO_STRINGEOL", wxSTC_POWERPRO_STRINGEOL }, - { "wxSTC_POWERPRO_VERBATIM", wxSTC_POWERPRO_VERBATIM }, - { "wxSTC_POWERPRO_WORD", wxSTC_POWERPRO_WORD }, - { "wxSTC_POWERPRO_WORD2", wxSTC_POWERPRO_WORD2 }, - { "wxSTC_POWERPRO_WORD3", wxSTC_POWERPRO_WORD3 }, - { "wxSTC_POWERPRO_WORD4", wxSTC_POWERPRO_WORD4 }, - { "wxSTC_POWERSHELL_ALIAS", wxSTC_POWERSHELL_ALIAS }, - { "wxSTC_POWERSHELL_CHARACTER", wxSTC_POWERSHELL_CHARACTER }, - { "wxSTC_POWERSHELL_CMDLET", wxSTC_POWERSHELL_CMDLET }, - { "wxSTC_POWERSHELL_COMMENT", wxSTC_POWERSHELL_COMMENT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_POWERSHELL_COMMENTDOCKEYWORD", wxSTC_POWERSHELL_COMMENTDOCKEYWORD }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_POWERSHELL_COMMENTSTREAM", wxSTC_POWERSHELL_COMMENTSTREAM }, - { "wxSTC_POWERSHELL_DEFAULT", wxSTC_POWERSHELL_DEFAULT }, - { "wxSTC_POWERSHELL_FUNCTION", wxSTC_POWERSHELL_FUNCTION }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_POWERSHELL_HERE_CHARACTER", wxSTC_POWERSHELL_HERE_CHARACTER }, - { "wxSTC_POWERSHELL_HERE_STRING", wxSTC_POWERSHELL_HERE_STRING }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_POWERSHELL_IDENTIFIER", wxSTC_POWERSHELL_IDENTIFIER }, - { "wxSTC_POWERSHELL_KEYWORD", wxSTC_POWERSHELL_KEYWORD }, - { "wxSTC_POWERSHELL_NUMBER", wxSTC_POWERSHELL_NUMBER }, - { "wxSTC_POWERSHELL_OPERATOR", wxSTC_POWERSHELL_OPERATOR }, - { "wxSTC_POWERSHELL_STRING", wxSTC_POWERSHELL_STRING }, - { "wxSTC_POWERSHELL_USER1", wxSTC_POWERSHELL_USER1 }, - { "wxSTC_POWERSHELL_VARIABLE", wxSTC_POWERSHELL_VARIABLE }, - { "wxSTC_PO_COMMENT", wxSTC_PO_COMMENT }, - { "wxSTC_PO_DEFAULT", wxSTC_PO_DEFAULT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_PO_ERROR", wxSTC_PO_ERROR }, - { "wxSTC_PO_FLAGS", wxSTC_PO_FLAGS }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PO_FUZZY", wxSTC_PO_FUZZY }, - { "wxSTC_PO_MSGCTXT", wxSTC_PO_MSGCTXT }, - { "wxSTC_PO_MSGCTXT_TEXT", wxSTC_PO_MSGCTXT_TEXT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_PO_MSGCTXT_TEXT_EOL", wxSTC_PO_MSGCTXT_TEXT_EOL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PO_MSGID", wxSTC_PO_MSGID }, - { "wxSTC_PO_MSGID_TEXT", wxSTC_PO_MSGID_TEXT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_PO_MSGID_TEXT_EOL", wxSTC_PO_MSGID_TEXT_EOL }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_PO_MSGSTR", wxSTC_PO_MSGSTR }, - { "wxSTC_PO_MSGSTR_TEXT", wxSTC_PO_MSGSTR_TEXT }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_PO_MSGSTR_TEXT_EOL", wxSTC_PO_MSGSTR_TEXT_EOL }, - { "wxSTC_PO_PROGRAMMER_COMMENT", wxSTC_PO_PROGRAMMER_COMMENT }, - { "wxSTC_PO_REFERENCE", wxSTC_PO_REFERENCE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_PRINT_BLACKONWHITE", wxSTC_PRINT_BLACKONWHITE }, - { "wxSTC_PRINT_COLOURONWHITE", wxSTC_PRINT_COLOURONWHITE }, - { "wxSTC_PRINT_COLOURONWHITEDEFAULTBG", wxSTC_PRINT_COLOURONWHITEDEFAULTBG }, - { "wxSTC_PRINT_INVERTLIGHT", wxSTC_PRINT_INVERTLIGHT }, - { "wxSTC_PRINT_NORMAL", wxSTC_PRINT_NORMAL }, - { "wxSTC_PROPS_ASSIGNMENT", wxSTC_PROPS_ASSIGNMENT }, - { "wxSTC_PROPS_COMMENT", wxSTC_PROPS_COMMENT }, - { "wxSTC_PROPS_DEFAULT", wxSTC_PROPS_DEFAULT }, - { "wxSTC_PROPS_DEFVAL", wxSTC_PROPS_DEFVAL }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_PROPS_KEY", wxSTC_PROPS_KEY }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_PROPS_SECTION", wxSTC_PROPS_SECTION }, - { "wxSTC_PS_BADSTRINGCHAR", wxSTC_PS_BADSTRINGCHAR }, - { "wxSTC_PS_BASE85STRING", wxSTC_PS_BASE85STRING }, - { "wxSTC_PS_COMMENT", wxSTC_PS_COMMENT }, - { "wxSTC_PS_DEFAULT", wxSTC_PS_DEFAULT }, - { "wxSTC_PS_DSC_COMMENT", wxSTC_PS_DSC_COMMENT }, - { "wxSTC_PS_DSC_VALUE", wxSTC_PS_DSC_VALUE }, - { "wxSTC_PS_HEXSTRING", wxSTC_PS_HEXSTRING }, - { "wxSTC_PS_IMMEVAL", wxSTC_PS_IMMEVAL }, - { "wxSTC_PS_KEYWORD", wxSTC_PS_KEYWORD }, - { "wxSTC_PS_LITERAL", wxSTC_PS_LITERAL }, - { "wxSTC_PS_NAME", wxSTC_PS_NAME }, - { "wxSTC_PS_NUMBER", wxSTC_PS_NUMBER }, - { "wxSTC_PS_PAREN_ARRAY", wxSTC_PS_PAREN_ARRAY }, - { "wxSTC_PS_PAREN_DICT", wxSTC_PS_PAREN_DICT }, - { "wxSTC_PS_PAREN_PROC", wxSTC_PS_PAREN_PROC }, - { "wxSTC_PS_TEXT", wxSTC_PS_TEXT }, - { "wxSTC_P_CHARACTER", wxSTC_P_CHARACTER }, - { "wxSTC_P_CLASSNAME", wxSTC_P_CLASSNAME }, - { "wxSTC_P_COMMENTBLOCK", wxSTC_P_COMMENTBLOCK }, - { "wxSTC_P_COMMENTLINE", wxSTC_P_COMMENTLINE }, - { "wxSTC_P_DECORATOR", wxSTC_P_DECORATOR }, - { "wxSTC_P_DEFAULT", wxSTC_P_DEFAULT }, - { "wxSTC_P_DEFNAME", wxSTC_P_DEFNAME }, - { "wxSTC_P_IDENTIFIER", wxSTC_P_IDENTIFIER }, - { "wxSTC_P_NUMBER", wxSTC_P_NUMBER }, - { "wxSTC_P_OPERATOR", wxSTC_P_OPERATOR }, - { "wxSTC_P_STRING", wxSTC_P_STRING }, - { "wxSTC_P_STRINGEOL", wxSTC_P_STRINGEOL }, - { "wxSTC_P_TRIPLE", wxSTC_P_TRIPLE }, - { "wxSTC_P_TRIPLEDOUBLE", wxSTC_P_TRIPLEDOUBLE }, - { "wxSTC_P_WORD", wxSTC_P_WORD }, - { "wxSTC_P_WORD2", wxSTC_P_WORD2 }, - { "wxSTC_RB_BACKTICKS", wxSTC_RB_BACKTICKS }, - { "wxSTC_RB_CHARACTER", wxSTC_RB_CHARACTER }, - { "wxSTC_RB_CLASSNAME", wxSTC_RB_CLASSNAME }, - { "wxSTC_RB_CLASS_VAR", wxSTC_RB_CLASS_VAR }, - { "wxSTC_RB_COMMENTLINE", wxSTC_RB_COMMENTLINE }, - { "wxSTC_RB_DATASECTION", wxSTC_RB_DATASECTION }, - { "wxSTC_RB_DEFAULT", wxSTC_RB_DEFAULT }, - { "wxSTC_RB_DEFNAME", wxSTC_RB_DEFNAME }, - { "wxSTC_RB_ERROR", wxSTC_RB_ERROR }, - { "wxSTC_RB_GLOBAL", wxSTC_RB_GLOBAL }, - { "wxSTC_RB_HERE_DELIM", wxSTC_RB_HERE_DELIM }, - { "wxSTC_RB_HERE_Q", wxSTC_RB_HERE_Q }, - { "wxSTC_RB_HERE_QQ", wxSTC_RB_HERE_QQ }, - { "wxSTC_RB_HERE_QX", wxSTC_RB_HERE_QX }, - { "wxSTC_RB_IDENTIFIER", wxSTC_RB_IDENTIFIER }, - { "wxSTC_RB_INSTANCE_VAR", wxSTC_RB_INSTANCE_VAR }, - { "wxSTC_RB_MODULE_NAME", wxSTC_RB_MODULE_NAME }, - { "wxSTC_RB_NUMBER", wxSTC_RB_NUMBER }, - { "wxSTC_RB_OPERATOR", wxSTC_RB_OPERATOR }, - { "wxSTC_RB_POD", wxSTC_RB_POD }, - { "wxSTC_RB_REGEX", wxSTC_RB_REGEX }, - { "wxSTC_RB_STDERR", wxSTC_RB_STDERR }, - { "wxSTC_RB_STDIN", wxSTC_RB_STDIN }, - { "wxSTC_RB_STDOUT", wxSTC_RB_STDOUT }, - { "wxSTC_RB_STRING", wxSTC_RB_STRING }, - { "wxSTC_RB_STRING_Q", wxSTC_RB_STRING_Q }, - { "wxSTC_RB_STRING_QQ", wxSTC_RB_STRING_QQ }, - { "wxSTC_RB_STRING_QR", wxSTC_RB_STRING_QR }, - { "wxSTC_RB_STRING_QW", wxSTC_RB_STRING_QW }, - { "wxSTC_RB_STRING_QX", wxSTC_RB_STRING_QX }, - { "wxSTC_RB_SYMBOL", wxSTC_RB_SYMBOL }, - { "wxSTC_RB_UPPER_BOUND", wxSTC_RB_UPPER_BOUND }, - { "wxSTC_RB_WORD", wxSTC_RB_WORD }, - { "wxSTC_RB_WORD_DEMOTED", wxSTC_RB_WORD_DEMOTED }, - { "wxSTC_REBOL_BINARY", wxSTC_REBOL_BINARY }, - { "wxSTC_REBOL_BRACEDSTRING", wxSTC_REBOL_BRACEDSTRING }, - { "wxSTC_REBOL_CHARACTER", wxSTC_REBOL_CHARACTER }, - { "wxSTC_REBOL_COMMENTBLOCK", wxSTC_REBOL_COMMENTBLOCK }, - { "wxSTC_REBOL_COMMENTLINE", wxSTC_REBOL_COMMENTLINE }, - { "wxSTC_REBOL_DATE", wxSTC_REBOL_DATE }, - { "wxSTC_REBOL_DEFAULT", wxSTC_REBOL_DEFAULT }, - { "wxSTC_REBOL_EMAIL", wxSTC_REBOL_EMAIL }, - { "wxSTC_REBOL_FILE", wxSTC_REBOL_FILE }, - { "wxSTC_REBOL_IDENTIFIER", wxSTC_REBOL_IDENTIFIER }, - { "wxSTC_REBOL_ISSUE", wxSTC_REBOL_ISSUE }, - { "wxSTC_REBOL_MONEY", wxSTC_REBOL_MONEY }, - { "wxSTC_REBOL_NUMBER", wxSTC_REBOL_NUMBER }, - { "wxSTC_REBOL_OPERATOR", wxSTC_REBOL_OPERATOR }, - { "wxSTC_REBOL_PAIR", wxSTC_REBOL_PAIR }, - { "wxSTC_REBOL_PREFACE", wxSTC_REBOL_PREFACE }, - { "wxSTC_REBOL_QUOTEDSTRING", wxSTC_REBOL_QUOTEDSTRING }, - { "wxSTC_REBOL_TAG", wxSTC_REBOL_TAG }, - { "wxSTC_REBOL_TIME", wxSTC_REBOL_TIME }, - { "wxSTC_REBOL_TUPLE", wxSTC_REBOL_TUPLE }, - { "wxSTC_REBOL_URL", wxSTC_REBOL_URL }, - { "wxSTC_REBOL_WORD", wxSTC_REBOL_WORD }, - { "wxSTC_REBOL_WORD2", wxSTC_REBOL_WORD2 }, - { "wxSTC_REBOL_WORD3", wxSTC_REBOL_WORD3 }, - { "wxSTC_REBOL_WORD4", wxSTC_REBOL_WORD4 }, - { "wxSTC_REBOL_WORD5", wxSTC_REBOL_WORD5 }, - { "wxSTC_REBOL_WORD6", wxSTC_REBOL_WORD6 }, - { "wxSTC_REBOL_WORD7", wxSTC_REBOL_WORD7 }, - { "wxSTC_REBOL_WORD8", wxSTC_REBOL_WORD8 }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_REG_ADDEDKEY", wxSTC_REG_ADDEDKEY }, - { "wxSTC_REG_COMMENT", wxSTC_REG_COMMENT }, - { "wxSTC_REG_DEFAULT", wxSTC_REG_DEFAULT }, - { "wxSTC_REG_DELETEDKEY", wxSTC_REG_DELETEDKEY }, - { "wxSTC_REG_ESCAPED", wxSTC_REG_ESCAPED }, - { "wxSTC_REG_HEXDIGIT", wxSTC_REG_HEXDIGIT }, - { "wxSTC_REG_KEYPATH_GUID", wxSTC_REG_KEYPATH_GUID }, - { "wxSTC_REG_OPERATOR", wxSTC_REG_OPERATOR }, - { "wxSTC_REG_PARAMETER", wxSTC_REG_PARAMETER }, - { "wxSTC_REG_STRING", wxSTC_REG_STRING }, - { "wxSTC_REG_STRING_GUID", wxSTC_REG_STRING_GUID }, - { "wxSTC_REG_VALUENAME", wxSTC_REG_VALUENAME }, - { "wxSTC_REG_VALUETYPE", wxSTC_REG_VALUETYPE }, - { "wxSTC_RUST_BYTECHARACTER", wxSTC_RUST_BYTECHARACTER }, - { "wxSTC_RUST_BYTESTRING", wxSTC_RUST_BYTESTRING }, - { "wxSTC_RUST_BYTESTRINGR", wxSTC_RUST_BYTESTRINGR }, - { "wxSTC_RUST_CHARACTER", wxSTC_RUST_CHARACTER }, - { "wxSTC_RUST_COMMENTBLOCK", wxSTC_RUST_COMMENTBLOCK }, - { "wxSTC_RUST_COMMENTBLOCKDOC", wxSTC_RUST_COMMENTBLOCKDOC }, - { "wxSTC_RUST_COMMENTLINE", wxSTC_RUST_COMMENTLINE }, - { "wxSTC_RUST_COMMENTLINEDOC", wxSTC_RUST_COMMENTLINEDOC }, - { "wxSTC_RUST_DEFAULT", wxSTC_RUST_DEFAULT }, - { "wxSTC_RUST_IDENTIFIER", wxSTC_RUST_IDENTIFIER }, - { "wxSTC_RUST_LEXERROR", wxSTC_RUST_LEXERROR }, - { "wxSTC_RUST_LIFETIME", wxSTC_RUST_LIFETIME }, - { "wxSTC_RUST_MACRO", wxSTC_RUST_MACRO }, - { "wxSTC_RUST_NUMBER", wxSTC_RUST_NUMBER }, - { "wxSTC_RUST_OPERATOR", wxSTC_RUST_OPERATOR }, - { "wxSTC_RUST_STRING", wxSTC_RUST_STRING }, - { "wxSTC_RUST_STRINGR", wxSTC_RUST_STRINGR }, - { "wxSTC_RUST_WORD", wxSTC_RUST_WORD }, - { "wxSTC_RUST_WORD2", wxSTC_RUST_WORD2 }, - { "wxSTC_RUST_WORD3", wxSTC_RUST_WORD3 }, - { "wxSTC_RUST_WORD4", wxSTC_RUST_WORD4 }, - { "wxSTC_RUST_WORD5", wxSTC_RUST_WORD5 }, - { "wxSTC_RUST_WORD6", wxSTC_RUST_WORD6 }, - { "wxSTC_RUST_WORD7", wxSTC_RUST_WORD7 }, -#endif // wxCHECK_VERSION(3,1,0) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_R_BASEKWORD", wxSTC_R_BASEKWORD }, - { "wxSTC_R_COMMENT", wxSTC_R_COMMENT }, - { "wxSTC_R_DEFAULT", wxSTC_R_DEFAULT }, - { "wxSTC_R_IDENTIFIER", wxSTC_R_IDENTIFIER }, - { "wxSTC_R_INFIX", wxSTC_R_INFIX }, - { "wxSTC_R_INFIXEOL", wxSTC_R_INFIXEOL }, - { "wxSTC_R_KWORD", wxSTC_R_KWORD }, - { "wxSTC_R_NUMBER", wxSTC_R_NUMBER }, - { "wxSTC_R_OPERATOR", wxSTC_R_OPERATOR }, - { "wxSTC_R_OTHERKWORD", wxSTC_R_OTHERKWORD }, - { "wxSTC_R_STRING", wxSTC_R_STRING }, - { "wxSTC_R_STRING2", wxSTC_R_STRING2 }, -#endif // wxCHECK_VERSION(2,9,5) - -#if !wxCHECK_VERSION(3,1,1) - { "wxSTC_SCMOD_ALT", wxSTC_SCMOD_ALT }, - { "wxSTC_SCMOD_CTRL", wxSTC_SCMOD_CTRL }, -#endif // !wxCHECK_VERSION(3,1,1) - -#if !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - { "wxSTC_SCMOD_META", wxSTC_SCMOD_META }, -#endif // !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - -#if !wxCHECK_VERSION(3,1,1) - { "wxSTC_SCMOD_NORM", wxSTC_SCMOD_NORM }, - { "wxSTC_SCMOD_SHIFT", wxSTC_SCMOD_SHIFT }, -#endif // !wxCHECK_VERSION(3,1,1) - -#if !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - { "wxSTC_SCMOD_SUPER", wxSTC_SCMOD_SUPER }, -#endif // !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - - { "wxSTC_SCRIPTOL_CHARACTER", wxSTC_SCRIPTOL_CHARACTER }, - { "wxSTC_SCRIPTOL_CLASSNAME", wxSTC_SCRIPTOL_CLASSNAME }, - { "wxSTC_SCRIPTOL_COMMENTBLOCK", wxSTC_SCRIPTOL_COMMENTBLOCK }, - { "wxSTC_SCRIPTOL_COMMENTLINE", wxSTC_SCRIPTOL_COMMENTLINE }, - { "wxSTC_SCRIPTOL_CSTYLE", wxSTC_SCRIPTOL_CSTYLE }, - { "wxSTC_SCRIPTOL_DEFAULT", wxSTC_SCRIPTOL_DEFAULT }, - { "wxSTC_SCRIPTOL_IDENTIFIER", wxSTC_SCRIPTOL_IDENTIFIER }, - { "wxSTC_SCRIPTOL_KEYWORD", wxSTC_SCRIPTOL_KEYWORD }, - { "wxSTC_SCRIPTOL_NUMBER", wxSTC_SCRIPTOL_NUMBER }, - { "wxSTC_SCRIPTOL_OPERATOR", wxSTC_SCRIPTOL_OPERATOR }, - { "wxSTC_SCRIPTOL_PERSISTENT", wxSTC_SCRIPTOL_PERSISTENT }, - { "wxSTC_SCRIPTOL_PREPROCESSOR", wxSTC_SCRIPTOL_PREPROCESSOR }, - { "wxSTC_SCRIPTOL_STRING", wxSTC_SCRIPTOL_STRING }, - { "wxSTC_SCRIPTOL_STRINGEOL", wxSTC_SCRIPTOL_STRINGEOL }, - { "wxSTC_SCRIPTOL_TRIPLE", wxSTC_SCRIPTOL_TRIPLE }, - { "wxSTC_SCRIPTOL_WHITE", wxSTC_SCRIPTOL_WHITE }, - -#if !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - { "wxSTC_SCVS_NONE", wxSTC_SCVS_NONE }, - { "wxSTC_SCVS_RECTANGULARSELECTION", wxSTC_SCVS_RECTANGULARSELECTION }, - { "wxSTC_SCVS_USERACCESSIBLE", wxSTC_SCVS_USERACCESSIBLE }, -#endif // !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(2,9,5) - - { "wxSTC_SEL_LINES", wxSTC_SEL_LINES }, - { "wxSTC_SEL_RECTANGLE", wxSTC_SEL_RECTANGLE }, - { "wxSTC_SEL_STREAM", wxSTC_SEL_STREAM }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_SEL_THIN", wxSTC_SEL_THIN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_SH_BACKTICKS", wxSTC_SH_BACKTICKS }, - { "wxSTC_SH_CHARACTER", wxSTC_SH_CHARACTER }, - { "wxSTC_SH_COMMENTLINE", wxSTC_SH_COMMENTLINE }, - { "wxSTC_SH_DEFAULT", wxSTC_SH_DEFAULT }, - { "wxSTC_SH_ERROR", wxSTC_SH_ERROR }, - { "wxSTC_SH_HERE_DELIM", wxSTC_SH_HERE_DELIM }, - { "wxSTC_SH_HERE_Q", wxSTC_SH_HERE_Q }, - { "wxSTC_SH_IDENTIFIER", wxSTC_SH_IDENTIFIER }, - { "wxSTC_SH_NUMBER", wxSTC_SH_NUMBER }, - { "wxSTC_SH_OPERATOR", wxSTC_SH_OPERATOR }, - { "wxSTC_SH_PARAM", wxSTC_SH_PARAM }, - { "wxSTC_SH_SCALAR", wxSTC_SH_SCALAR }, - { "wxSTC_SH_STRING", wxSTC_SH_STRING }, - { "wxSTC_SH_WORD", wxSTC_SH_WORD }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_SML_CHAR", wxSTC_SML_CHAR }, - { "wxSTC_SML_COMMENT", wxSTC_SML_COMMENT }, - { "wxSTC_SML_COMMENT1", wxSTC_SML_COMMENT1 }, - { "wxSTC_SML_COMMENT2", wxSTC_SML_COMMENT2 }, - { "wxSTC_SML_COMMENT3", wxSTC_SML_COMMENT3 }, - { "wxSTC_SML_DEFAULT", wxSTC_SML_DEFAULT }, - { "wxSTC_SML_IDENTIFIER", wxSTC_SML_IDENTIFIER }, - { "wxSTC_SML_KEYWORD", wxSTC_SML_KEYWORD }, - { "wxSTC_SML_KEYWORD2", wxSTC_SML_KEYWORD2 }, - { "wxSTC_SML_KEYWORD3", wxSTC_SML_KEYWORD3 }, - { "wxSTC_SML_LINENUM", wxSTC_SML_LINENUM }, - { "wxSTC_SML_NUMBER", wxSTC_SML_NUMBER }, - { "wxSTC_SML_OPERATOR", wxSTC_SML_OPERATOR }, - { "wxSTC_SML_STRING", wxSTC_SML_STRING }, - { "wxSTC_SML_TAGNAME", wxSTC_SML_TAGNAME }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_SN_CODE", wxSTC_SN_CODE }, - { "wxSTC_SN_COMMENTLINE", wxSTC_SN_COMMENTLINE }, - { "wxSTC_SN_COMMENTLINEBANG", wxSTC_SN_COMMENTLINEBANG }, - { "wxSTC_SN_DEFAULT", wxSTC_SN_DEFAULT }, - { "wxSTC_SN_IDENTIFIER", wxSTC_SN_IDENTIFIER }, - { "wxSTC_SN_NUMBER", wxSTC_SN_NUMBER }, - { "wxSTC_SN_OPERATOR", wxSTC_SN_OPERATOR }, - { "wxSTC_SN_PREPROCESSOR", wxSTC_SN_PREPROCESSOR }, - { "wxSTC_SN_REGEXTAG", wxSTC_SN_REGEXTAG }, - { "wxSTC_SN_SIGNAL", wxSTC_SN_SIGNAL }, - { "wxSTC_SN_STRING", wxSTC_SN_STRING }, - { "wxSTC_SN_STRINGEOL", wxSTC_SN_STRINGEOL }, - { "wxSTC_SN_USER", wxSTC_SN_USER }, - { "wxSTC_SN_WORD", wxSTC_SN_WORD }, - { "wxSTC_SN_WORD2", wxSTC_SN_WORD2 }, - { "wxSTC_SN_WORD3", wxSTC_SN_WORD3 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_SORCUS_COMMAND", wxSTC_SORCUS_COMMAND }, - { "wxSTC_SORCUS_COMMENTLINE", wxSTC_SORCUS_COMMENTLINE }, - { "wxSTC_SORCUS_CONSTANT", wxSTC_SORCUS_CONSTANT }, - { "wxSTC_SORCUS_DEFAULT", wxSTC_SORCUS_DEFAULT }, - { "wxSTC_SORCUS_IDENTIFIER", wxSTC_SORCUS_IDENTIFIER }, - { "wxSTC_SORCUS_NUMBER", wxSTC_SORCUS_NUMBER }, - { "wxSTC_SORCUS_OPERATOR", wxSTC_SORCUS_OPERATOR }, - { "wxSTC_SORCUS_PARAMETER", wxSTC_SORCUS_PARAMETER }, - { "wxSTC_SORCUS_STRING", wxSTC_SORCUS_STRING }, - { "wxSTC_SORCUS_STRINGEOL", wxSTC_SORCUS_STRINGEOL }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_SPICE_COMMENTLINE", wxSTC_SPICE_COMMENTLINE }, - { "wxSTC_SPICE_DEFAULT", wxSTC_SPICE_DEFAULT }, - { "wxSTC_SPICE_DELIMITER", wxSTC_SPICE_DELIMITER }, - { "wxSTC_SPICE_IDENTIFIER", wxSTC_SPICE_IDENTIFIER }, - { "wxSTC_SPICE_KEYWORD", wxSTC_SPICE_KEYWORD }, - { "wxSTC_SPICE_KEYWORD2", wxSTC_SPICE_KEYWORD2 }, - { "wxSTC_SPICE_KEYWORD3", wxSTC_SPICE_KEYWORD3 }, - { "wxSTC_SPICE_NUMBER", wxSTC_SPICE_NUMBER }, - { "wxSTC_SPICE_VALUE", wxSTC_SPICE_VALUE }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_SQL_CHARACTER", wxSTC_SQL_CHARACTER }, - { "wxSTC_SQL_COMMENT", wxSTC_SQL_COMMENT }, - { "wxSTC_SQL_COMMENTDOC", wxSTC_SQL_COMMENTDOC }, - { "wxSTC_SQL_COMMENTDOCKEYWORD", wxSTC_SQL_COMMENTDOCKEYWORD }, - { "wxSTC_SQL_COMMENTDOCKEYWORDERROR", wxSTC_SQL_COMMENTDOCKEYWORDERROR }, - { "wxSTC_SQL_COMMENTLINE", wxSTC_SQL_COMMENTLINE }, - { "wxSTC_SQL_COMMENTLINEDOC", wxSTC_SQL_COMMENTLINEDOC }, - { "wxSTC_SQL_DEFAULT", wxSTC_SQL_DEFAULT }, - { "wxSTC_SQL_IDENTIFIER", wxSTC_SQL_IDENTIFIER }, - { "wxSTC_SQL_NUMBER", wxSTC_SQL_NUMBER }, - { "wxSTC_SQL_OPERATOR", wxSTC_SQL_OPERATOR }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_SQL_QOPERATOR", wxSTC_SQL_QOPERATOR }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_SQL_QUOTEDIDENTIFIER", wxSTC_SQL_QUOTEDIDENTIFIER }, - { "wxSTC_SQL_SQLPLUS", wxSTC_SQL_SQLPLUS }, - { "wxSTC_SQL_SQLPLUS_COMMENT", wxSTC_SQL_SQLPLUS_COMMENT }, - { "wxSTC_SQL_SQLPLUS_PROMPT", wxSTC_SQL_SQLPLUS_PROMPT }, - { "wxSTC_SQL_STRING", wxSTC_SQL_STRING }, - { "wxSTC_SQL_USER1", wxSTC_SQL_USER1 }, - { "wxSTC_SQL_USER2", wxSTC_SQL_USER2 }, - { "wxSTC_SQL_USER3", wxSTC_SQL_USER3 }, - { "wxSTC_SQL_USER4", wxSTC_SQL_USER4 }, - { "wxSTC_SQL_WORD", wxSTC_SQL_WORD }, - { "wxSTC_SQL_WORD2", wxSTC_SQL_WORD2 }, - { "wxSTC_START", wxSTC_START }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_STARTACTION", wxSTC_STARTACTION }, - { "wxSTC_STATUS_BADALLOC", wxSTC_STATUS_BADALLOC }, - { "wxSTC_STATUS_FAILURE", wxSTC_STATUS_FAILURE }, - { "wxSTC_STATUS_OK", wxSTC_STATUS_OK }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_STATUS_WARN_REGEX", wxSTC_STATUS_WARN_REGEX }, - { "wxSTC_STATUS_WARN_START", wxSTC_STATUS_WARN_START }, - { "wxSTC_STTXT_CHARACTER", wxSTC_STTXT_CHARACTER }, - { "wxSTC_STTXT_COMMENT", wxSTC_STTXT_COMMENT }, - { "wxSTC_STTXT_COMMENTLINE", wxSTC_STTXT_COMMENTLINE }, - { "wxSTC_STTXT_DATETIME", wxSTC_STTXT_DATETIME }, - { "wxSTC_STTXT_DEFAULT", wxSTC_STTXT_DEFAULT }, - { "wxSTC_STTXT_FB", wxSTC_STTXT_FB }, - { "wxSTC_STTXT_FUNCTION", wxSTC_STTXT_FUNCTION }, - { "wxSTC_STTXT_HEXNUMBER", wxSTC_STTXT_HEXNUMBER }, - { "wxSTC_STTXT_IDENTIFIER", wxSTC_STTXT_IDENTIFIER }, - { "wxSTC_STTXT_KEYWORD", wxSTC_STTXT_KEYWORD }, - { "wxSTC_STTXT_NUMBER", wxSTC_STTXT_NUMBER }, - { "wxSTC_STTXT_OPERATOR", wxSTC_STTXT_OPERATOR }, - { "wxSTC_STTXT_PRAGMA", wxSTC_STTXT_PRAGMA }, - { "wxSTC_STTXT_PRAGMAS", wxSTC_STTXT_PRAGMAS }, - { "wxSTC_STTXT_STRING1", wxSTC_STTXT_STRING1 }, - { "wxSTC_STTXT_STRING2", wxSTC_STTXT_STRING2 }, - { "wxSTC_STTXT_STRINGEOL", wxSTC_STTXT_STRINGEOL }, - { "wxSTC_STTXT_TYPE", wxSTC_STTXT_TYPE }, - { "wxSTC_STTXT_VARS", wxSTC_STTXT_VARS }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_STYLE_BRACEBAD", wxSTC_STYLE_BRACEBAD }, - { "wxSTC_STYLE_BRACELIGHT", wxSTC_STYLE_BRACELIGHT }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_STYLE_CALLTIP", wxSTC_STYLE_CALLTIP }, -#endif // wxCHECK_VERSION(2,8,12) - - { "wxSTC_STYLE_CONTROLCHAR", wxSTC_STYLE_CONTROLCHAR }, - { "wxSTC_STYLE_DEFAULT", wxSTC_STYLE_DEFAULT }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_STYLE_FOLDDISPLAYTEXT", wxSTC_STYLE_FOLDDISPLAYTEXT }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_STYLE_INDENTGUIDE", wxSTC_STYLE_INDENTGUIDE }, - { "wxSTC_STYLE_LASTPREDEFINED", wxSTC_STYLE_LASTPREDEFINED }, - { "wxSTC_STYLE_LINENUMBER", wxSTC_STYLE_LINENUMBER }, - { "wxSTC_STYLE_MAX", wxSTC_STYLE_MAX }, - { "wxSTC_ST_ASSIGN", wxSTC_ST_ASSIGN }, - { "wxSTC_ST_BINARY", wxSTC_ST_BINARY }, - { "wxSTC_ST_BOOL", wxSTC_ST_BOOL }, - { "wxSTC_ST_CHARACTER", wxSTC_ST_CHARACTER }, - { "wxSTC_ST_COMMENT", wxSTC_ST_COMMENT }, - { "wxSTC_ST_DEFAULT", wxSTC_ST_DEFAULT }, - { "wxSTC_ST_GLOBAL", wxSTC_ST_GLOBAL }, - { "wxSTC_ST_KWSEND", wxSTC_ST_KWSEND }, - { "wxSTC_ST_NIL", wxSTC_ST_NIL }, - { "wxSTC_ST_NUMBER", wxSTC_ST_NUMBER }, - { "wxSTC_ST_RETURN", wxSTC_ST_RETURN }, - { "wxSTC_ST_SELF", wxSTC_ST_SELF }, - { "wxSTC_ST_SPECIAL", wxSTC_ST_SPECIAL }, - { "wxSTC_ST_SPEC_SEL", wxSTC_ST_SPEC_SEL }, - { "wxSTC_ST_STRING", wxSTC_ST_STRING }, - { "wxSTC_ST_SUPER", wxSTC_ST_SUPER }, - { "wxSTC_ST_SYMBOL", wxSTC_ST_SYMBOL }, - { "wxSTC_T3_BLOCK_COMMENT", wxSTC_T3_BLOCK_COMMENT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_T3_BRACE", wxSTC_T3_BRACE }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_T3_DEFAULT", wxSTC_T3_DEFAULT }, - { "wxSTC_T3_D_STRING", wxSTC_T3_D_STRING }, - { "wxSTC_T3_HTML_DEFAULT", wxSTC_T3_HTML_DEFAULT }, - { "wxSTC_T3_HTML_STRING", wxSTC_T3_HTML_STRING }, - { "wxSTC_T3_HTML_TAG", wxSTC_T3_HTML_TAG }, - { "wxSTC_T3_IDENTIFIER", wxSTC_T3_IDENTIFIER }, - { "wxSTC_T3_KEYWORD", wxSTC_T3_KEYWORD }, - { "wxSTC_T3_LIB_DIRECTIVE", wxSTC_T3_LIB_DIRECTIVE }, - { "wxSTC_T3_LINE_COMMENT", wxSTC_T3_LINE_COMMENT }, - { "wxSTC_T3_MSG_PARAM", wxSTC_T3_MSG_PARAM }, - { "wxSTC_T3_NUMBER", wxSTC_T3_NUMBER }, - { "wxSTC_T3_OPERATOR", wxSTC_T3_OPERATOR }, - { "wxSTC_T3_PREPROCESSOR", wxSTC_T3_PREPROCESSOR }, - { "wxSTC_T3_S_STRING", wxSTC_T3_S_STRING }, - { "wxSTC_T3_USER1", wxSTC_T3_USER1 }, - { "wxSTC_T3_USER2", wxSTC_T3_USER2 }, - { "wxSTC_T3_USER3", wxSTC_T3_USER3 }, - { "wxSTC_T3_X_DEFAULT", wxSTC_T3_X_DEFAULT }, - { "wxSTC_T3_X_STRING", wxSTC_T3_X_STRING }, - -#if wxCHECK_VERSION(2,8,12) - { "wxSTC_TCL_BLOCK_COMMENT", wxSTC_TCL_BLOCK_COMMENT }, - { "wxSTC_TCL_COMMENT", wxSTC_TCL_COMMENT }, - { "wxSTC_TCL_COMMENTLINE", wxSTC_TCL_COMMENTLINE }, - { "wxSTC_TCL_COMMENT_BOX", wxSTC_TCL_COMMENT_BOX }, - { "wxSTC_TCL_DEFAULT", wxSTC_TCL_DEFAULT }, - { "wxSTC_TCL_EXPAND", wxSTC_TCL_EXPAND }, - { "wxSTC_TCL_IDENTIFIER", wxSTC_TCL_IDENTIFIER }, - { "wxSTC_TCL_IN_QUOTE", wxSTC_TCL_IN_QUOTE }, - { "wxSTC_TCL_MODIFIER", wxSTC_TCL_MODIFIER }, - { "wxSTC_TCL_NUMBER", wxSTC_TCL_NUMBER }, - { "wxSTC_TCL_OPERATOR", wxSTC_TCL_OPERATOR }, - { "wxSTC_TCL_SUBSTITUTION", wxSTC_TCL_SUBSTITUTION }, - { "wxSTC_TCL_SUB_BRACE", wxSTC_TCL_SUB_BRACE }, - { "wxSTC_TCL_WORD", wxSTC_TCL_WORD }, - { "wxSTC_TCL_WORD2", wxSTC_TCL_WORD2 }, - { "wxSTC_TCL_WORD3", wxSTC_TCL_WORD3 }, - { "wxSTC_TCL_WORD4", wxSTC_TCL_WORD4 }, - { "wxSTC_TCL_WORD5", wxSTC_TCL_WORD5 }, - { "wxSTC_TCL_WORD6", wxSTC_TCL_WORD6 }, - { "wxSTC_TCL_WORD7", wxSTC_TCL_WORD7 }, - { "wxSTC_TCL_WORD8", wxSTC_TCL_WORD8 }, - { "wxSTC_TCL_WORD_IN_QUOTE", wxSTC_TCL_WORD_IN_QUOTE }, -#endif // wxCHECK_VERSION(2,8,12) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_TCMD_CLABEL", wxSTC_TCMD_CLABEL }, - { "wxSTC_TCMD_COMMAND", wxSTC_TCMD_COMMAND }, - { "wxSTC_TCMD_COMMENT", wxSTC_TCMD_COMMENT }, - { "wxSTC_TCMD_DEFAULT", wxSTC_TCMD_DEFAULT }, - { "wxSTC_TCMD_ENVIRONMENT", wxSTC_TCMD_ENVIRONMENT }, - { "wxSTC_TCMD_EXPANSION", wxSTC_TCMD_EXPANSION }, - { "wxSTC_TCMD_HIDE", wxSTC_TCMD_HIDE }, - { "wxSTC_TCMD_IDENTIFIER", wxSTC_TCMD_IDENTIFIER }, - { "wxSTC_TCMD_LABEL", wxSTC_TCMD_LABEL }, - { "wxSTC_TCMD_OPERATOR", wxSTC_TCMD_OPERATOR }, - { "wxSTC_TCMD_WORD", wxSTC_TCMD_WORD }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_TD_LONGARROW", wxSTC_TD_LONGARROW }, - { "wxSTC_TD_STRIKEOUT", wxSTC_TD_STRIKEOUT }, -#endif // wxCHECK_VERSION(3,1,1) - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_TECHNOLOGY_DEFAULT", wxSTC_TECHNOLOGY_DEFAULT }, - { "wxSTC_TECHNOLOGY_DIRECTWRITE", wxSTC_TECHNOLOGY_DIRECTWRITE }, -#endif // wxCHECK_VERSION(2,9,5) - -#if !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(3,1,0) - { "wxSTC_TECHNOLOGY_DIRECTWRITEDC", wxSTC_TECHNOLOGY_DIRECTWRITEDC }, - { "wxSTC_TECHNOLOGY_DIRECTWRITERETAIN", wxSTC_TECHNOLOGY_DIRECTWRITERETAIN }, -#endif // !wxCHECK_VERSION(3,1,1) && wxCHECK_VERSION(3,1,0) - - { "wxSTC_TEX_COMMAND", wxSTC_TEX_COMMAND }, - { "wxSTC_TEX_DEFAULT", wxSTC_TEX_DEFAULT }, - { "wxSTC_TEX_GROUP", wxSTC_TEX_GROUP }, - { "wxSTC_TEX_SPECIAL", wxSTC_TEX_SPECIAL }, - { "wxSTC_TEX_SYMBOL", wxSTC_TEX_SYMBOL }, - { "wxSTC_TEX_TEXT", wxSTC_TEX_TEXT }, - { "wxSTC_TIME_FOREVER", wxSTC_TIME_FOREVER }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_TXT2TAGS_BLOCKQUOTE", wxSTC_TXT2TAGS_BLOCKQUOTE }, - { "wxSTC_TXT2TAGS_CODE", wxSTC_TXT2TAGS_CODE }, - { "wxSTC_TXT2TAGS_CODE2", wxSTC_TXT2TAGS_CODE2 }, - { "wxSTC_TXT2TAGS_CODEBK", wxSTC_TXT2TAGS_CODEBK }, - { "wxSTC_TXT2TAGS_COMMENT", wxSTC_TXT2TAGS_COMMENT }, - { "wxSTC_TXT2TAGS_DEFAULT", wxSTC_TXT2TAGS_DEFAULT }, - { "wxSTC_TXT2TAGS_EM1", wxSTC_TXT2TAGS_EM1 }, - { "wxSTC_TXT2TAGS_EM2", wxSTC_TXT2TAGS_EM2 }, - { "wxSTC_TXT2TAGS_HEADER1", wxSTC_TXT2TAGS_HEADER1 }, - { "wxSTC_TXT2TAGS_HEADER2", wxSTC_TXT2TAGS_HEADER2 }, - { "wxSTC_TXT2TAGS_HEADER3", wxSTC_TXT2TAGS_HEADER3 }, - { "wxSTC_TXT2TAGS_HEADER4", wxSTC_TXT2TAGS_HEADER4 }, - { "wxSTC_TXT2TAGS_HEADER5", wxSTC_TXT2TAGS_HEADER5 }, - { "wxSTC_TXT2TAGS_HEADER6", wxSTC_TXT2TAGS_HEADER6 }, - { "wxSTC_TXT2TAGS_HRULE", wxSTC_TXT2TAGS_HRULE }, - { "wxSTC_TXT2TAGS_LINE_BEGIN", wxSTC_TXT2TAGS_LINE_BEGIN }, - { "wxSTC_TXT2TAGS_LINK", wxSTC_TXT2TAGS_LINK }, - { "wxSTC_TXT2TAGS_OLIST_ITEM", wxSTC_TXT2TAGS_OLIST_ITEM }, - { "wxSTC_TXT2TAGS_OPTION", wxSTC_TXT2TAGS_OPTION }, - { "wxSTC_TXT2TAGS_POSTPROC", wxSTC_TXT2TAGS_POSTPROC }, - { "wxSTC_TXT2TAGS_PRECHAR", wxSTC_TXT2TAGS_PRECHAR }, - { "wxSTC_TXT2TAGS_PREPROC", wxSTC_TXT2TAGS_PREPROC }, - { "wxSTC_TXT2TAGS_STRIKEOUT", wxSTC_TXT2TAGS_STRIKEOUT }, - { "wxSTC_TXT2TAGS_STRONG1", wxSTC_TXT2TAGS_STRONG1 }, - { "wxSTC_TXT2TAGS_STRONG2", wxSTC_TXT2TAGS_STRONG2 }, - { "wxSTC_TXT2TAGS_ULIST_ITEM", wxSTC_TXT2TAGS_ULIST_ITEM }, - { "wxSTC_TYPE_BOOLEAN", wxSTC_TYPE_BOOLEAN }, - { "wxSTC_TYPE_INTEGER", wxSTC_TYPE_INTEGER }, - { "wxSTC_TYPE_STRING", wxSTC_TYPE_STRING }, - { "wxSTC_UNDO_MAY_COALESCE", wxSTC_UNDO_MAY_COALESCE }, - { "wxSTC_UPDATE_CONTENT", wxSTC_UPDATE_CONTENT }, - { "wxSTC_UPDATE_H_SCROLL", wxSTC_UPDATE_H_SCROLL }, - { "wxSTC_UPDATE_SELECTION", wxSTC_UPDATE_SELECTION }, - { "wxSTC_UPDATE_V_SCROLL", wxSTC_UPDATE_V_SCROLL }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_VHDL_ATTRIBUTE", wxSTC_VHDL_ATTRIBUTE }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_VHDL_BLOCK_COMMENT", wxSTC_VHDL_BLOCK_COMMENT }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_VHDL_COMMENT", wxSTC_VHDL_COMMENT }, - { "wxSTC_VHDL_COMMENTLINEBANG", wxSTC_VHDL_COMMENTLINEBANG }, - { "wxSTC_VHDL_DEFAULT", wxSTC_VHDL_DEFAULT }, - { "wxSTC_VHDL_IDENTIFIER", wxSTC_VHDL_IDENTIFIER }, - { "wxSTC_VHDL_KEYWORD", wxSTC_VHDL_KEYWORD }, - { "wxSTC_VHDL_NUMBER", wxSTC_VHDL_NUMBER }, - { "wxSTC_VHDL_OPERATOR", wxSTC_VHDL_OPERATOR }, - { "wxSTC_VHDL_STDFUNCTION", wxSTC_VHDL_STDFUNCTION }, - { "wxSTC_VHDL_STDOPERATOR", wxSTC_VHDL_STDOPERATOR }, - { "wxSTC_VHDL_STDPACKAGE", wxSTC_VHDL_STDPACKAGE }, - { "wxSTC_VHDL_STDTYPE", wxSTC_VHDL_STDTYPE }, - { "wxSTC_VHDL_STRING", wxSTC_VHDL_STRING }, - { "wxSTC_VHDL_STRINGEOL", wxSTC_VHDL_STRINGEOL }, - { "wxSTC_VHDL_USERWORD", wxSTC_VHDL_USERWORD }, - { "wxSTC_VISIBLE_SLOP", wxSTC_VISIBLE_SLOP }, - { "wxSTC_VISIBLE_STRICT", wxSTC_VISIBLE_STRICT }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_VISUALPROLOG_ANONYMOUS", wxSTC_VISUALPROLOG_ANONYMOUS }, - { "wxSTC_VISUALPROLOG_CHARACTER", wxSTC_VISUALPROLOG_CHARACTER }, - { "wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR", wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR }, - { "wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY", wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY }, - { "wxSTC_VISUALPROLOG_COMMENT_BLOCK", wxSTC_VISUALPROLOG_COMMENT_BLOCK }, - { "wxSTC_VISUALPROLOG_COMMENT_KEY", wxSTC_VISUALPROLOG_COMMENT_KEY }, - { "wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR", wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR }, - { "wxSTC_VISUALPROLOG_COMMENT_LINE", wxSTC_VISUALPROLOG_COMMENT_LINE }, - { "wxSTC_VISUALPROLOG_DEFAULT", wxSTC_VISUALPROLOG_DEFAULT }, - { "wxSTC_VISUALPROLOG_IDENTIFIER", wxSTC_VISUALPROLOG_IDENTIFIER }, - { "wxSTC_VISUALPROLOG_KEY_DIRECTIVE", wxSTC_VISUALPROLOG_KEY_DIRECTIVE }, - { "wxSTC_VISUALPROLOG_KEY_MAJOR", wxSTC_VISUALPROLOG_KEY_MAJOR }, - { "wxSTC_VISUALPROLOG_KEY_MINOR", wxSTC_VISUALPROLOG_KEY_MINOR }, - { "wxSTC_VISUALPROLOG_NUMBER", wxSTC_VISUALPROLOG_NUMBER }, - { "wxSTC_VISUALPROLOG_OPERATOR", wxSTC_VISUALPROLOG_OPERATOR }, - { "wxSTC_VISUALPROLOG_STRING", wxSTC_VISUALPROLOG_STRING }, - { "wxSTC_VISUALPROLOG_STRING_EOL_OPEN", wxSTC_VISUALPROLOG_STRING_EOL_OPEN }, - { "wxSTC_VISUALPROLOG_STRING_ESCAPE", wxSTC_VISUALPROLOG_STRING_ESCAPE }, - { "wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR", wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR }, - { "wxSTC_VISUALPROLOG_STRING_VERBATIM", wxSTC_VISUALPROLOG_STRING_VERBATIM }, - { "wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL", wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL }, - { "wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL", wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL }, - { "wxSTC_VISUALPROLOG_VARIABLE", wxSTC_VISUALPROLOG_VARIABLE }, -#endif // wxCHECK_VERSION(2,9,5) - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_VS_NONE", wxSTC_VS_NONE }, - { "wxSTC_VS_NOWRAPLINESTART", wxSTC_VS_NOWRAPLINESTART }, - { "wxSTC_VS_RECTANGULARSELECTION", wxSTC_VS_RECTANGULARSELECTION }, - { "wxSTC_VS_USERACCESSIBLE", wxSTC_VS_USERACCESSIBLE }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_V_COMMENT", wxSTC_V_COMMENT }, - { "wxSTC_V_COMMENTLINE", wxSTC_V_COMMENTLINE }, - { "wxSTC_V_COMMENTLINEBANG", wxSTC_V_COMMENTLINEBANG }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_V_COMMENT_WORD", wxSTC_V_COMMENT_WORD }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_V_DEFAULT", wxSTC_V_DEFAULT }, - { "wxSTC_V_IDENTIFIER", wxSTC_V_IDENTIFIER }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_V_INOUT", wxSTC_V_INOUT }, - { "wxSTC_V_INPUT", wxSTC_V_INPUT }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_V_NUMBER", wxSTC_V_NUMBER }, - { "wxSTC_V_OPERATOR", wxSTC_V_OPERATOR }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_V_OUTPUT", wxSTC_V_OUTPUT }, - { "wxSTC_V_PORT_CONNECT", wxSTC_V_PORT_CONNECT }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_V_PREPROCESSOR", wxSTC_V_PREPROCESSOR }, - { "wxSTC_V_STRING", wxSTC_V_STRING }, - { "wxSTC_V_STRINGEOL", wxSTC_V_STRINGEOL }, - { "wxSTC_V_USER", wxSTC_V_USER }, - { "wxSTC_V_WORD", wxSTC_V_WORD }, - { "wxSTC_V_WORD2", wxSTC_V_WORD2 }, - { "wxSTC_V_WORD3", wxSTC_V_WORD3 }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_WEIGHT_BOLD", wxSTC_WEIGHT_BOLD }, - { "wxSTC_WEIGHT_NORMAL", wxSTC_WEIGHT_NORMAL }, - { "wxSTC_WEIGHT_SEMIBOLD", wxSTC_WEIGHT_SEMIBOLD }, - { "wxSTC_WRAPINDENT_FIXED", wxSTC_WRAPINDENT_FIXED }, - { "wxSTC_WRAPINDENT_INDENT", wxSTC_WRAPINDENT_INDENT }, - { "wxSTC_WRAPINDENT_SAME", wxSTC_WRAPINDENT_SAME }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_WRAPVISUALFLAGLOC_DEFAULT", wxSTC_WRAPVISUALFLAGLOC_DEFAULT }, - { "wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT", wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT }, - { "wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT", wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT }, - { "wxSTC_WRAPVISUALFLAG_END", wxSTC_WRAPVISUALFLAG_END }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_WRAPVISUALFLAG_MARGIN", wxSTC_WRAPVISUALFLAG_MARGIN }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_WRAPVISUALFLAG_NONE", wxSTC_WRAPVISUALFLAG_NONE }, - { "wxSTC_WRAPVISUALFLAG_START", wxSTC_WRAPVISUALFLAG_START }, - { "wxSTC_WRAP_CHAR", wxSTC_WRAP_CHAR }, - { "wxSTC_WRAP_NONE", wxSTC_WRAP_NONE }, - -#if wxCHECK_VERSION(3,1,0) - { "wxSTC_WRAP_WHITESPACE", wxSTC_WRAP_WHITESPACE }, -#endif // wxCHECK_VERSION(3,1,0) - - { "wxSTC_WRAP_WORD", wxSTC_WRAP_WORD }, - { "wxSTC_WS_INVISIBLE", wxSTC_WS_INVISIBLE }, - { "wxSTC_WS_VISIBLEAFTERINDENT", wxSTC_WS_VISIBLEAFTERINDENT }, - { "wxSTC_WS_VISIBLEALWAYS", wxSTC_WS_VISIBLEALWAYS }, - -#if wxCHECK_VERSION(3,1,1) - { "wxSTC_WS_VISIBLEONLYININDENT", wxSTC_WS_VISIBLEONLYININDENT }, -#endif // wxCHECK_VERSION(3,1,1) - - { "wxSTC_YAML_COMMENT", wxSTC_YAML_COMMENT }, - { "wxSTC_YAML_DEFAULT", wxSTC_YAML_DEFAULT }, - { "wxSTC_YAML_DOCUMENT", wxSTC_YAML_DOCUMENT }, - { "wxSTC_YAML_ERROR", wxSTC_YAML_ERROR }, - { "wxSTC_YAML_IDENTIFIER", wxSTC_YAML_IDENTIFIER }, - { "wxSTC_YAML_KEYWORD", wxSTC_YAML_KEYWORD }, - { "wxSTC_YAML_NUMBER", wxSTC_YAML_NUMBER }, - -#if wxCHECK_VERSION(2,9,5) - { "wxSTC_YAML_OPERATOR", wxSTC_YAML_OPERATOR }, -#endif // wxCHECK_VERSION(2,9,5) - - { "wxSTC_YAML_REFERENCE", wxSTC_YAML_REFERENCE }, - { "wxSTC_YAML_TEXT", wxSTC_YAML_TEXT }, - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxstc() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxstc(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxstc() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxstc(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxstc() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxstc() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxstc(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxstc() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxCommandEvent = "wxCommandEvent"; -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxStyledTextCtrl = "wxStyledTextCtrl"; -static const char* wxluaclassname_wxStyledTextEvent = "wxStyledTextEvent"; - -static const char* wxluabaseclassnames_wxStyledTextCtrl[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStyledTextCtrl[] = { NULL }; -static const char* wxluabaseclassnames_wxStyledTextEvent[] = { wxluaclassname_wxCommandEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxStyledTextEvent[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern wxLuaBindMethod wxStyledTextCtrl_methods[]; -extern int wxStyledTextCtrl_methodCount; -extern void wxLua_wxStyledTextCtrl_delete_function(void** p); -extern wxLuaBindMethod wxStyledTextEvent_methods[]; -extern int wxStyledTextEvent_methodCount; -extern void wxLua_wxStyledTextEvent_delete_function(void** p); - - - - -wxLuaBindClass* wxLuaGetClassList_wxstc(size_t &count) -{ - static wxLuaBindClass classList[] = - { - { wxluaclassname_wxStyledTextCtrl, wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, CLASSINFO(wxStyledTextCtrl), &wxluatype_wxStyledTextCtrl, wxluabaseclassnames_wxStyledTextCtrl, wxluabaseclassbinds_wxStyledTextCtrl, NULL, NULL, NULL, 0, &wxLua_wxStyledTextCtrl_delete_function, }, - { wxluaclassname_wxStyledTextEvent, wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, CLASSINFO(wxStyledTextEvent), &wxluatype_wxStyledTextEvent, wxluabaseclassnames_wxStyledTextEvent, wxluabaseclassbinds_wxStyledTextEvent, NULL, NULL, NULL, 0, &wxLua_wxStyledTextEvent_delete_function, }, - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxstc() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxstc, wxLuaBinding) - -wxLuaBinding_wxstc::wxLuaBinding_wxstc() : wxLuaBinding() -{ - m_bindingName = wxT("wxstc"); - m_nameSpace = wxT("wxstc"); - m_classArray = wxLuaGetClassList_wxstc(m_classCount); - m_numberArray = wxLuaGetDefineList_wxstc(m_numberCount); - m_stringArray = wxLuaGetStringList_wxstc(m_stringCount); - m_eventArray = wxLuaGetEventList_wxstc(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxstc(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxstc(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxstc_init() -{ - static wxLuaBinding_wxstc m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxwebview_bind.cpp b/wxLua/modules/wxbind/src/wxwebview_bind.cpp deleted file mode 100644 index bc7548cb..00000000 --- a/wxLua/modules/wxbind/src/wxwebview_bind.cpp +++ /dev/null @@ -1,1736 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxwebview_webview.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxwebview_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebViewHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebViewHandler' -int wxluatype_wxWebViewHandler = WXLUA_TUNKNOWN; - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewHandler_GetFile[] = { &wxluatype_wxWebViewHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewHandler_GetFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewHandler_GetFile[1] = {{ wxLua_wxWebViewHandler_GetFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebViewHandler_GetFile }}; -// virtual wxFSFile* GetFile(const wxString &uri); // = 0; -static int LUACALL wxLua_wxWebViewHandler_GetFile(lua_State *L) -{ - // const wxString uri - const wxString uri = wxlua_getwxStringtype(L, 2); - // get this - wxWebViewHandler * self = (wxWebViewHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewHandler); - // call GetFile - wxFSFile* returns = (wxFSFile*)self->GetFile(uri); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewHandler_GetName[] = { &wxluatype_wxWebViewHandler, NULL }; -static int LUACALL wxLua_wxWebViewHandler_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewHandler_GetName[1] = {{ wxLua_wxWebViewHandler_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewHandler_GetName }}; -// virtual wxString GetName() const; -static int LUACALL wxLua_wxWebViewHandler_GetName(lua_State *L) -{ - // get this - wxWebViewHandler * self = (wxWebViewHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewHandler); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - - - -void wxLua_wxWebViewHandler_delete_function(void** p) -{ - wxWebViewHandler* o = (wxWebViewHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebViewHandler_methods[] = { -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - { "GetFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewHandler_GetFile, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewHandler_GetName, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWebViewHandler_methodCount = sizeof(wxWebViewHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebViewFactory -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebViewFactory' -int wxluatype_wxWebViewFactory = WXLUA_TUNKNOWN; - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewFactory_Create1[] = { &wxluatype_wxWebViewFactory, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewFactory_Create1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewFactory_Create1[1] = {{ wxLua_wxWebViewFactory_Create1, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxWebViewFactory_Create1 }}; -// virtual wxWebView* Create(wxWindow* parent, wxWindowID id, const wxString& url = wxWebViewDefaultURLStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxWebViewNameStr); // = 0; -static int LUACALL wxLua_wxWebViewFactory_Create1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxWebViewNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxWebViewNameStr)); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString url = wxWebViewDefaultURLStr - const wxString url = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxWebViewDefaultURLStr)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWebViewFactory * self = (wxWebViewFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewFactory); - // call Create - wxWebView* returns = (wxWebView*)self->Create(parent, id, url, *pos, *size, style, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebView); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewFactory_Create[] = { &wxluatype_wxWebViewFactory, NULL }; -static int LUACALL wxLua_wxWebViewFactory_Create(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewFactory_Create[1] = {{ wxLua_wxWebViewFactory_Create, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewFactory_Create }}; -// virtual wxWebView* Create(); // = 0; -static int LUACALL wxLua_wxWebViewFactory_Create(lua_State *L) -{ - // get this - wxWebViewFactory * self = (wxWebViewFactory *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewFactory); - // call Create - wxWebView* returns = (wxWebView*)self->Create(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebView); - - return 1; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewFactory_Create_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - { wxLua_wxWebViewFactory_Create1, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxWebViewFactory_Create1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - { wxLua_wxWebViewFactory_Create, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewFactory_Create }, -}; -static int s_wxluafunc_wxLua_wxWebViewFactory_Create_overload_count = sizeof(s_wxluafunc_wxLua_wxWebViewFactory_Create_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - -void wxLua_wxWebViewFactory_delete_function(void** p) -{ - wxWebViewFactory* o = (wxWebViewFactory*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebViewFactory_methods[] = { -#if ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewFactory_Create_overload, s_wxluafunc_wxLua_wxWebViewFactory_Create_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - - { 0, 0, 0, 0 }, -}; - -int wxWebViewFactory_methodCount = sizeof(wxWebViewFactory_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebView -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebView' -int wxluatype_wxWebView = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanCopy[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanCopy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanCopy[1] = {{ wxLua_wxWebView_CanCopy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanCopy }}; -// virtual bool CanCopy() const; // = 0; -static int LUACALL wxLua_wxWebView_CanCopy(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanCopy - bool returns = (self->CanCopy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanCut[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanCut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanCut[1] = {{ wxLua_wxWebView_CanCut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanCut }}; -// virtual bool CanCut() const; // = 0; -static int LUACALL wxLua_wxWebView_CanCut(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanCut - bool returns = (self->CanCut()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanGoBack[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanGoBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanGoBack[1] = {{ wxLua_wxWebView_CanGoBack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanGoBack }}; -// virtual bool CanGoBack() const; // = 0; -static int LUACALL wxLua_wxWebView_CanGoBack(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanGoBack - bool returns = (self->CanGoBack()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanGoForward[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanGoForward(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanGoForward[1] = {{ wxLua_wxWebView_CanGoForward, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanGoForward }}; -// virtual bool CanGoForward() const; // = 0; -static int LUACALL wxLua_wxWebView_CanGoForward(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanGoForward - bool returns = (self->CanGoForward()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanPaste[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanPaste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanPaste[1] = {{ wxLua_wxWebView_CanPaste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanPaste }}; -// virtual bool CanPaste() const; // = 0; -static int LUACALL wxLua_wxWebView_CanPaste(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanPaste - bool returns = (self->CanPaste()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanRedo[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanRedo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanRedo[1] = {{ wxLua_wxWebView_CanRedo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanRedo }}; -// virtual bool CanRedo() const; // = 0; -static int LUACALL wxLua_wxWebView_CanRedo(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanRedo - bool returns = (self->CanRedo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanSetZoomType[] = { &wxluatype_wxWebView, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWebView_CanSetZoomType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanSetZoomType[1] = {{ wxLua_wxWebView_CanSetZoomType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebView_CanSetZoomType }}; -// virtual bool CanSetZoomType(wxWebViewZoomType type) const; // = 0; -static int LUACALL wxLua_wxWebView_CanSetZoomType(lua_State *L) -{ - // wxWebViewZoomType type - wxWebViewZoomType type = (wxWebViewZoomType)wxlua_getenumtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanSetZoomType - bool returns = (self->CanSetZoomType(type)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_CanUndo[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_CanUndo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_CanUndo[1] = {{ wxLua_wxWebView_CanUndo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_CanUndo }}; -// virtual bool CanUndo() const; // = 0; -static int LUACALL wxLua_wxWebView_CanUndo(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call CanUndo - bool returns = (self->CanUndo()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_ClearHistory[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_ClearHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_ClearHistory[1] = {{ wxLua_wxWebView_ClearHistory, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_ClearHistory }}; -// virtual void ClearHistory(); // = 0; -static int LUACALL wxLua_wxWebView_ClearHistory(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call ClearHistory - self->ClearHistory(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_ClearSelection[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_ClearSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_ClearSelection[1] = {{ wxLua_wxWebView_ClearSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_ClearSelection }}; -// virtual void ClearSelection(); // = 0; -static int LUACALL wxLua_wxWebView_ClearSelection(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call ClearSelection - self->ClearSelection(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Copy[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Copy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Copy[1] = {{ wxLua_wxWebView_Copy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Copy }}; -// virtual void Copy(); // = 0; -static int LUACALL wxLua_wxWebView_Copy(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Copy - self->Copy(); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Create[] = { &wxluatype_wxWebView, &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_Create(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Create[1] = {{ wxLua_wxWebView_Create, WXLUAMETHOD_METHOD, 3, 8, s_wxluatypeArray_wxLua_wxWebView_Create }}; -// virtual bool Create(wxWindow* parent, wxWindowID id, const wxString& url = wxWebViewDefaultURLStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, const wxString& name = wxWebViewNameStr); // = 0; -static int LUACALL wxLua_wxWebView_Create(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxWebViewNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxWebViewNameStr)); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 6 ? (const wxSize *)wxluaT_getuserdatatype(L, 6, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxluaT_getuserdatatype(L, 5, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString url = wxWebViewDefaultURLStr - const wxString url = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxWebViewDefaultURLStr)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Create - bool returns = (self->Create(parent, id, url, *pos, *size, style, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Cut[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Cut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Cut[1] = {{ wxLua_wxWebView_Cut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Cut }}; -// virtual void Cut(); // = 0; -static int LUACALL wxLua_wxWebView_Cut(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Cut - self->Cut(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_DeleteSelection[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_DeleteSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_DeleteSelection[1] = {{ wxLua_wxWebView_DeleteSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_DeleteSelection }}; -// virtual void DeleteSelection(); // = 0; -static int LUACALL wxLua_wxWebView_DeleteSelection(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call DeleteSelection - self->DeleteSelection(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_EnableContextMenu[] = { &wxluatype_wxWebView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWebView_EnableContextMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_EnableContextMenu[1] = {{ wxLua_wxWebView_EnableContextMenu, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWebView_EnableContextMenu }}; -// virtual void EnableContextMenu(bool enable = true); -static int LUACALL wxLua_wxWebView_EnableContextMenu(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call EnableContextMenu - self->EnableContextMenu(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_EnableHistory[] = { &wxluatype_wxWebView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWebView_EnableHistory(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_EnableHistory[1] = {{ wxLua_wxWebView_EnableHistory, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWebView_EnableHistory }}; -// virtual void EnableHistory(bool enable = true); // = 0; -static int LUACALL wxLua_wxWebView_EnableHistory(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call EnableHistory - self->EnableHistory(enable); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Find[] = { &wxluatype_wxWebView, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxWebView_Find(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Find[1] = {{ wxLua_wxWebView_Find, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxWebView_Find }}; -// virtual long Find(const wxString& text, int flags = wxWEBVIEW_FIND_DEFAULT); // = 0; -static int LUACALL wxLua_wxWebView_Find(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxWEBVIEW_FIND_DEFAULT - int flags = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : wxWEBVIEW_FIND_DEFAULT); - // const wxString text - const wxString text = wxlua_getwxStringtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Find - long returns = (self->Find(text, flags)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetCurrentTitle[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetCurrentTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetCurrentTitle[1] = {{ wxLua_wxWebView_GetCurrentTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetCurrentTitle }}; -// virtual wxString GetCurrentTitle() const; // = 0; -static int LUACALL wxLua_wxWebView_GetCurrentTitle(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetCurrentTitle - wxString returns = (self->GetCurrentTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetCurrentURL[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetCurrentURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetCurrentURL[1] = {{ wxLua_wxWebView_GetCurrentURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetCurrentURL }}; -// virtual wxString GetCurrentURL() const; // = 0; -static int LUACALL wxLua_wxWebView_GetCurrentURL(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetCurrentURL - wxString returns = (self->GetCurrentURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetNativeBackend[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetNativeBackend(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetNativeBackend[1] = {{ wxLua_wxWebView_GetNativeBackend, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetNativeBackend }}; -// virtual void* GetNativeBackend() const; // = 0; -static int LUACALL wxLua_wxWebView_GetNativeBackend(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetNativeBackend - void* returns = (void*)self->GetNativeBackend(); - // push the result pointer - lua_pushlightuserdata(L, (void *)returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetPageSource[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetPageSource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetPageSource[1] = {{ wxLua_wxWebView_GetPageSource, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetPageSource }}; -// virtual wxString GetPageSource() const; // = 0; -static int LUACALL wxLua_wxWebView_GetPageSource(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetPageSource - wxString returns = (self->GetPageSource()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetPageText[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetPageText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetPageText[1] = {{ wxLua_wxWebView_GetPageText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetPageText }}; -// virtual wxString GetPageText() const; // = 0; -static int LUACALL wxLua_wxWebView_GetPageText(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetPageText - wxString returns = (self->GetPageText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetSelectedSource[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetSelectedSource(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetSelectedSource[1] = {{ wxLua_wxWebView_GetSelectedSource, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetSelectedSource }}; -// virtual wxString GetSelectedSource() const; // = 0; -static int LUACALL wxLua_wxWebView_GetSelectedSource(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetSelectedSource - wxString returns = (self->GetSelectedSource()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetSelectedText[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetSelectedText(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetSelectedText[1] = {{ wxLua_wxWebView_GetSelectedText, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetSelectedText }}; -// virtual wxString GetSelectedText() const; // = 0; -static int LUACALL wxLua_wxWebView_GetSelectedText(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetSelectedText - wxString returns = (self->GetSelectedText()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetZoom[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetZoom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetZoom[1] = {{ wxLua_wxWebView_GetZoom, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetZoom }}; -// virtual wxWebViewZoom GetZoom() const; // = 0; -static int LUACALL wxLua_wxWebView_GetZoom(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetZoom - wxWebViewZoom returns = (self->GetZoom()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GetZoomType[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GetZoomType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GetZoomType[1] = {{ wxLua_wxWebView_GetZoomType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GetZoomType }}; -// virtual wxWebViewZoomType GetZoomType() const; // = 0; -static int LUACALL wxLua_wxWebView_GetZoomType(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GetZoomType - wxWebViewZoomType returns = (self->GetZoomType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GoBack[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GoBack(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GoBack[1] = {{ wxLua_wxWebView_GoBack, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GoBack }}; -// virtual void GoBack(); // = 0; -static int LUACALL wxLua_wxWebView_GoBack(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GoBack - self->GoBack(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_GoForward[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_GoForward(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_GoForward[1] = {{ wxLua_wxWebView_GoForward, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_GoForward }}; -// virtual void GoForward(); // = 0; -static int LUACALL wxLua_wxWebView_GoForward(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call GoForward - self->GoForward(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_HasSelection[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_HasSelection(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_HasSelection[1] = {{ wxLua_wxWebView_HasSelection, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_HasSelection }}; -// virtual bool HasSelection() const; // = 0; -static int LUACALL wxLua_wxWebView_HasSelection(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call HasSelection - bool returns = (self->HasSelection()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_IsBusy[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_IsBusy(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_IsBusy[1] = {{ wxLua_wxWebView_IsBusy, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_IsBusy }}; -// virtual bool IsBusy() const; // = 0; -static int LUACALL wxLua_wxWebView_IsBusy(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call IsBusy - bool returns = (self->IsBusy()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_IsContextMenuEnabled[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_IsContextMenuEnabled(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_IsContextMenuEnabled[1] = {{ wxLua_wxWebView_IsContextMenuEnabled, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_IsContextMenuEnabled }}; -// virtual bool IsContextMenuEnabled() const; // { return m_showMenu; } -static int LUACALL wxLua_wxWebView_IsContextMenuEnabled(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call IsContextMenuEnabled - bool returns = (self->IsContextMenuEnabled()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_IsEditable[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_IsEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_IsEditable[1] = {{ wxLua_wxWebView_IsEditable, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_IsEditable }}; -// virtual bool IsEditable() const; // = 0; -static int LUACALL wxLua_wxWebView_IsEditable(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call IsEditable - bool returns = (self->IsEditable()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_LoadURL[] = { &wxluatype_wxWebView, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_LoadURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_LoadURL[1] = {{ wxLua_wxWebView_LoadURL, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebView_LoadURL }}; -// virtual void LoadURL(const wxString& url); // = 0; -static int LUACALL wxLua_wxWebView_LoadURL(lua_State *L) -{ - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call LoadURL - self->LoadURL(url); - - return 0; -} - - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_New1[] = { &wxluatype_wxWindow, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_wxPoint, &wxluatype_wxSize, &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_New1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_New1[1] = {{ wxLua_wxWebView_New1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 8, s_wxluatypeArray_wxLua_wxWebView_New1 }}; -// static wxWebView* New(wxWindow* parent, wxWindowID id, const wxString& url = wxWebViewDefaultURLStr, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxString& backend = wxWebViewBackendDefault, long style = 0, const wxString& name = wxWebViewNameStr); -static int LUACALL wxLua_wxWebView_New1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString name = wxWebViewNameStr - const wxString name = (argCount >= 8 ? wxlua_getwxStringtype(L, 8) : wxString(wxWebViewNameStr)); - // long style = 0 - long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : 0); - // const wxString backend = wxWebViewBackendDefault - const wxString backend = (argCount >= 6 ? wxlua_getwxStringtype(L, 6) : wxString(wxWebViewBackendDefault)); - // const wxSize size = wxDefaultSize - const wxSize * size = (argCount >= 5 ? (const wxSize *)wxluaT_getuserdatatype(L, 5, wxluatype_wxSize) : &wxDefaultSize); - // const wxPoint pos = wxDefaultPosition - const wxPoint * pos = (argCount >= 4 ? (const wxPoint *)wxluaT_getuserdatatype(L, 4, wxluatype_wxPoint) : &wxDefaultPosition); - // const wxString url = wxWebViewDefaultURLStr - const wxString url = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxWebViewDefaultURLStr)); - // wxWindowID id - wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 2); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWindow); - // call New - wxWebView* returns = (wxWebView*)wxWebView::New(parent, id, url, *pos, *size, backend, style, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebView); - - return 1; -} - -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_New[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_New(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_New[1] = {{ wxLua_wxWebView_New, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxWebView_New }}; -// static wxWebView* New(const wxString& backend = wxWebViewBackendDefault); -static int LUACALL wxLua_wxWebView_New(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString backend = wxWebViewBackendDefault - const wxString backend = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxWebViewBackendDefault)); - // call New - wxWebView* returns = (wxWebView*)wxWebView::New(backend); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebView); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Paste[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Paste(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Paste[1] = {{ wxLua_wxWebView_Paste, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Paste }}; -// virtual void Paste(); // = 0; -static int LUACALL wxLua_wxWebView_Paste(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Paste - self->Paste(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Print[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Print(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Print[1] = {{ wxLua_wxWebView_Print, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Print }}; -// virtual void Print(); // = 0; -static int LUACALL wxLua_wxWebView_Print(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Print - self->Print(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Redo[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Redo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Redo[1] = {{ wxLua_wxWebView_Redo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Redo }}; -// virtual void Redo(); // = 0; -static int LUACALL wxLua_wxWebView_Redo(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Redo - self->Redo(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Reload[] = { &wxluatype_wxWebView, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWebView_Reload(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Reload[1] = {{ wxLua_wxWebView_Reload, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWebView_Reload }}; -// virtual void Reload(wxWebViewReloadFlags flags = wxWEBVIEW_RELOAD_DEFAULT); // = 0; -static int LUACALL wxLua_wxWebView_Reload(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWebViewReloadFlags flags = wxWEBVIEW_RELOAD_DEFAULT - wxWebViewReloadFlags flags = (argCount >= 2 ? (wxWebViewReloadFlags)wxlua_getenumtype(L, 2) : wxWEBVIEW_RELOAD_DEFAULT); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Reload - self->Reload(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_RunScript[] = { &wxluatype_wxWebView, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_RunScript(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_RunScript[1] = {{ wxLua_wxWebView_RunScript, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebView_RunScript }}; -// virtual void RunScript(const wxString& javascript); // = 0; -static int LUACALL wxLua_wxWebView_RunScript(lua_State *L) -{ - // const wxString javascript - const wxString javascript = wxlua_getwxStringtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call RunScript - self->RunScript(javascript); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_SelectAll[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_SelectAll(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SelectAll[1] = {{ wxLua_wxWebView_SelectAll, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_SelectAll }}; -// virtual void SelectAll(); // = 0; -static int LUACALL wxLua_wxWebView_SelectAll(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call SelectAll - self->SelectAll(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_SetEditable[] = { &wxluatype_wxWebView, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxWebView_SetEditable(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SetEditable[1] = {{ wxLua_wxWebView_SetEditable, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxWebView_SetEditable }}; -// virtual void SetEditable(bool enable = true); // = 0; -static int LUACALL wxLua_wxWebView_SetEditable(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // bool enable = true - bool enable = (argCount >= 2 ? wxlua_getbooleantype(L, 2) : true); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call SetEditable - self->SetEditable(enable); - - return 0; -} - - -#if (wxUSE_STREAMS) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_SetPage1[] = { &wxluatype_wxWebView, &wxluatype_wxInputStream, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_SetPage1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SetPage1[1] = {{ wxLua_wxWebView_SetPage1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWebView_SetPage1 }}; -// void SetPage(wxInputStream& html, wxString baseUrl); -static int LUACALL wxLua_wxWebView_SetPage1(lua_State *L) -{ - // wxString baseUrl - wxString baseUrl = wxlua_getwxStringtype(L, 3); - // wxInputStream html - wxInputStream * html = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call SetPage - self->SetPage(*html, baseUrl); - - return 0; -} - -#endif // (wxUSE_STREAMS) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_SetPage[] = { &wxluatype_wxWebView, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebView_SetPage(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SetPage[1] = {{ wxLua_wxWebView_SetPage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWebView_SetPage }}; -// void SetPage(const wxString& html, const wxString& baseUrl); -static int LUACALL wxLua_wxWebView_SetPage(lua_State *L) -{ - // const wxString baseUrl - const wxString baseUrl = wxlua_getwxStringtype(L, 3); - // const wxString html - const wxString html = wxlua_getwxStringtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call SetPage - self->SetPage(html, baseUrl); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_SetZoom[] = { &wxluatype_wxWebView, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWebView_SetZoom(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SetZoom[1] = {{ wxLua_wxWebView_SetZoom, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebView_SetZoom }}; -// virtual void SetZoom(wxWebViewZoom zoom); // = 0; -static int LUACALL wxLua_wxWebView_SetZoom(lua_State *L) -{ - // wxWebViewZoom zoom - wxWebViewZoom zoom = (wxWebViewZoom)wxlua_getenumtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call SetZoom - self->SetZoom(zoom); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_SetZoomType[] = { &wxluatype_wxWebView, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxWebView_SetZoomType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SetZoomType[1] = {{ wxLua_wxWebView_SetZoomType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebView_SetZoomType }}; -// virtual void SetZoomType(wxWebViewZoomType zoomType); // = 0; -static int LUACALL wxLua_wxWebView_SetZoomType(lua_State *L) -{ - // wxWebViewZoomType zoomType - wxWebViewZoomType zoomType = (wxWebViewZoomType)wxlua_getenumtype(L, 2); - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call SetZoomType - self->SetZoomType(zoomType); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Stop[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Stop(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Stop[1] = {{ wxLua_wxWebView_Stop, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Stop }}; -// virtual void Stop(); // = 0; -static int LUACALL wxLua_wxWebView_Stop(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Stop - self->Stop(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebView_Undo[] = { &wxluatype_wxWebView, NULL }; -static int LUACALL wxLua_wxWebView_Undo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_Undo[1] = {{ wxLua_wxWebView_Undo, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebView_Undo }}; -// virtual void Undo(); // = 0; -static int LUACALL wxLua_wxWebView_Undo(lua_State *L) -{ - // get this - wxWebView * self = (wxWebView *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebView); - // call Undo - self->Undo(); - - return 0; -} - - - - -#if ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_New_overload[] = -{ - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - { wxLua_wxWebView_New1, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 8, s_wxluatypeArray_wxLua_wxWebView_New1 }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - { wxLua_wxWebView_New, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 1, s_wxluatypeArray_wxLua_wxWebView_New }, -}; -static int s_wxluafunc_wxLua_wxWebView_New_overload_count = sizeof(s_wxluafunc_wxLua_wxWebView_New_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - -#if ((wxUSE_STREAMS) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebView_SetPage_overload[] = -{ - -#if (wxUSE_STREAMS) && (wxUSE_WEBVIEW) - { wxLua_wxWebView_SetPage1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWebView_SetPage1 }, -#endif // (wxUSE_STREAMS) && (wxUSE_WEBVIEW) - { wxLua_wxWebView_SetPage, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxWebView_SetPage }, -}; -static int s_wxluafunc_wxLua_wxWebView_SetPage_overload_count = sizeof(s_wxluafunc_wxLua_wxWebView_SetPage_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxUSE_STREAMS) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - -void wxLua_wxWebView_delete_function(void** p) -{ - wxWebView* o = (wxWebView*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebView_methods[] = { - { "CanCopy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanCopy, 1, NULL }, - { "CanCut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanCut, 1, NULL }, - { "CanGoBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanGoBack, 1, NULL }, - { "CanGoForward", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanGoForward, 1, NULL }, - { "CanPaste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanPaste, 1, NULL }, - { "CanRedo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanRedo, 1, NULL }, - { "CanSetZoomType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanSetZoomType, 1, NULL }, - { "CanUndo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_CanUndo, 1, NULL }, - { "ClearHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_ClearHistory, 1, NULL }, - { "ClearSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_ClearSelection, 1, NULL }, - { "Copy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Copy, 1, NULL }, - -#if (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Create, 1, NULL }, -#endif // (wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW) - - { "Cut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Cut, 1, NULL }, - { "DeleteSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_DeleteSelection, 1, NULL }, - { "EnableContextMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_EnableContextMenu, 1, NULL }, - { "EnableHistory", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_EnableHistory, 1, NULL }, - { "Find", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Find, 1, NULL }, - { "GetCurrentTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetCurrentTitle, 1, NULL }, - { "GetCurrentURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetCurrentURL, 1, NULL }, - { "GetNativeBackend", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetNativeBackend, 1, NULL }, - { "GetPageSource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetPageSource, 1, NULL }, - { "GetPageText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetPageText, 1, NULL }, - { "GetSelectedSource", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetSelectedSource, 1, NULL }, - { "GetSelectedText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetSelectedText, 1, NULL }, - { "GetZoom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetZoom, 1, NULL }, - { "GetZoomType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GetZoomType, 1, NULL }, - { "GoBack", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GoBack, 1, NULL }, - { "GoForward", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_GoForward, 1, NULL }, - { "HasSelection", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_HasSelection, 1, NULL }, - { "IsBusy", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_IsBusy, 1, NULL }, - { "IsContextMenuEnabled", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_IsContextMenuEnabled, 1, NULL }, - { "IsEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_IsEditable, 1, NULL }, - { "LoadURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_LoadURL, 1, NULL }, - -#if ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - { "New", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxWebView_New_overload, s_wxluafunc_wxLua_wxWebView_New_overload_count, 0 }, -#endif // ((wxLUA_USE_wxPointSizeRect) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - - { "Paste", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Paste, 1, NULL }, - { "Print", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Print, 1, NULL }, - { "Redo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Redo, 1, NULL }, - { "Reload", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Reload, 1, NULL }, - { "RunScript", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_RunScript, 1, NULL }, - { "SelectAll", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_SelectAll, 1, NULL }, - { "SetEditable", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_SetEditable, 1, NULL }, - -#if ((wxUSE_STREAMS) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - { "SetPage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_SetPage_overload, s_wxluafunc_wxLua_wxWebView_SetPage_overload_count, 0 }, -#endif // ((wxUSE_STREAMS) && (wxUSE_WEBVIEW))||(wxUSE_WEBVIEW) - - { "SetZoom", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_SetZoom, 1, NULL }, - { "SetZoomType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_SetZoomType, 1, NULL }, - { "Stop", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Stop, 1, NULL }, - { "Undo", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebView_Undo, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWebView_methodCount = sizeof(wxWebView_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebViewEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebViewEvent' -int wxluatype_wxWebViewEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewEvent_Clone[] = { &wxluatype_wxWebViewEvent, NULL }; -static int LUACALL wxLua_wxWebViewEvent_Clone(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewEvent_Clone[1] = {{ wxLua_wxWebViewEvent_Clone, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewEvent_Clone }}; -// virtual wxEvent* Clone() const; // { return new wxWebViewEvent(*this); } -static int LUACALL wxLua_wxWebViewEvent_Clone(lua_State *L) -{ - // get this - wxWebViewEvent * self = (wxWebViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewEvent); - // call Clone - wxEvent* returns = (wxEvent*)self->Clone(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewEvent_GetTarget[] = { &wxluatype_wxWebViewEvent, NULL }; -static int LUACALL wxLua_wxWebViewEvent_GetTarget(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewEvent_GetTarget[1] = {{ wxLua_wxWebViewEvent_GetTarget, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewEvent_GetTarget }}; -// const wxString& GetTarget() const; // { return m_target; } -static int LUACALL wxLua_wxWebViewEvent_GetTarget(lua_State *L) -{ - // get this - wxWebViewEvent * self = (wxWebViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewEvent); - // call GetTarget - wxString returns = (self->GetTarget()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewEvent_GetURL[] = { &wxluatype_wxWebViewEvent, NULL }; -static int LUACALL wxLua_wxWebViewEvent_GetURL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewEvent_GetURL[1] = {{ wxLua_wxWebViewEvent_GetURL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewEvent_GetURL }}; -// const wxString& GetURL() const; // { return m_url; } -static int LUACALL wxLua_wxWebViewEvent_GetURL(lua_State *L) -{ - // get this - wxWebViewEvent * self = (wxWebViewEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewEvent); - // call GetURL - wxString returns = (self->GetURL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewEvent_constructor1[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewEvent_constructor1[1] = {{ wxLua_wxWebViewEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxWebViewEvent_constructor1 }}; -// wxWebViewEvent(wxEventType type, int id, const wxString& url, const wxString& target); -static int LUACALL wxLua_wxWebViewEvent_constructor1(lua_State *L) -{ - // const wxString target - const wxString target = wxlua_getwxStringtype(L, 4); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 3); - // int id - int id = (int)wxlua_getnumbertype(L, 2); - // wxEventType type - wxEventType type = (wxEventType)wxlua_getnumbertype(L, 1); - // call constructor - wxWebViewEvent* returns = new wxWebViewEvent(type, id, url, target); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebViewEvent); - - return 1; -} - -static int LUACALL wxLua_wxWebViewEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewEvent_constructor[1] = {{ wxLua_wxWebViewEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxWebViewEvent(); // {} -static int LUACALL wxLua_wxWebViewEvent_constructor(lua_State *L) -{ - // call constructor - wxWebViewEvent* returns = new wxWebViewEvent(); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebViewEvent); - - return 1; -} - - - - -#if (wxUSE_WEBVIEW) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewEvent_constructor_overload[] = -{ - { wxLua_wxWebViewEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 4, s_wxluatypeArray_wxLua_wxWebViewEvent_constructor1 }, - { wxLua_wxWebViewEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxWebViewEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxWebViewEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxUSE_WEBVIEW) - -void wxLua_wxWebViewEvent_delete_function(void** p) -{ - wxWebViewEvent* o = (wxWebViewEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebViewEvent_methods[] = { - { "Clone", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewEvent_Clone, 1, NULL }, - { "GetTarget", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewEvent_GetTarget, 1, NULL }, - { "GetURL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewEvent_GetURL, 1, NULL }, - -#if (wxUSE_WEBVIEW) - { "wxWebViewEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWebViewEvent_constructor_overload, s_wxluafunc_wxLua_wxWebViewEvent_constructor_overload_count, 0 }, -#endif // (wxUSE_WEBVIEW) - - { 0, 0, 0, 0 }, -}; - -int wxWebViewEvent_methodCount = sizeof(wxWebViewEvent_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebViewHistoryItem -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebViewHistoryItem' -int wxluatype_wxWebViewHistoryItem = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewHistoryItem_GetTitle[] = { &wxluatype_wxWebViewHistoryItem, NULL }; -static int LUACALL wxLua_wxWebViewHistoryItem_GetTitle(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewHistoryItem_GetTitle[1] = {{ wxLua_wxWebViewHistoryItem_GetTitle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewHistoryItem_GetTitle }}; -// wxString GetTitle(); -static int LUACALL wxLua_wxWebViewHistoryItem_GetTitle(lua_State *L) -{ - // get this - wxWebViewHistoryItem * self = (wxWebViewHistoryItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewHistoryItem); - // call GetTitle - wxString returns = (self->GetTitle()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewHistoryItem_GetUrl[] = { &wxluatype_wxWebViewHistoryItem, NULL }; -static int LUACALL wxLua_wxWebViewHistoryItem_GetUrl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewHistoryItem_GetUrl[1] = {{ wxLua_wxWebViewHistoryItem_GetUrl, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxWebViewHistoryItem_GetUrl }}; -// wxString GetUrl(); -static int LUACALL wxLua_wxWebViewHistoryItem_GetUrl(lua_State *L) -{ - // get this - wxWebViewHistoryItem * self = (wxWebViewHistoryItem *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewHistoryItem); - // call GetUrl - wxString returns = (self->GetUrl()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewHistoryItem_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewHistoryItem_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewHistoryItem_constructor[1] = {{ wxLua_wxWebViewHistoryItem_constructor, WXLUAMETHOD_CONSTRUCTOR, 2, 2, s_wxluatypeArray_wxLua_wxWebViewHistoryItem_constructor }}; -// wxWebViewHistoryItem(const wxString& url, const wxString& title); -static int LUACALL wxLua_wxWebViewHistoryItem_constructor(lua_State *L) -{ - // const wxString title - const wxString title = wxlua_getwxStringtype(L, 2); - // const wxString url - const wxString url = wxlua_getwxStringtype(L, 1); - // call constructor - wxWebViewHistoryItem* returns = new wxWebViewHistoryItem(url, title); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebViewHistoryItem); - - return 1; -} - - - - -void wxLua_wxWebViewHistoryItem_delete_function(void** p) -{ - wxWebViewHistoryItem* o = (wxWebViewHistoryItem*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebViewHistoryItem_methods[] = { - { "GetTitle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewHistoryItem_GetTitle, 1, NULL }, - { "GetUrl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewHistoryItem_GetUrl, 1, NULL }, - { "wxWebViewHistoryItem", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWebViewHistoryItem_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWebViewHistoryItem_methodCount = sizeof(wxWebViewHistoryItem_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebViewFSHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebViewFSHandler' -int wxluatype_wxWebViewFSHandler = WXLUA_TUNKNOWN; - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewFSHandler_GetFile[] = { &wxluatype_wxWebViewFSHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewFSHandler_GetFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewFSHandler_GetFile[1] = {{ wxLua_wxWebViewFSHandler_GetFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebViewFSHandler_GetFile }}; -// virtual wxFSFile* GetFile(const wxString &uri); -static int LUACALL wxLua_wxWebViewFSHandler_GetFile(lua_State *L) -{ - // const wxString uri - const wxString uri = wxlua_getwxStringtype(L, 2); - // get this - wxWebViewFSHandler * self = (wxWebViewFSHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewFSHandler); - // call GetFile - wxFSFile* returns = (wxFSFile*)self->GetFile(uri); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewFSHandler_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewFSHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewFSHandler_constructor[1] = {{ wxLua_wxWebViewFSHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxWebViewFSHandler_constructor }}; -// wxWebViewFSHandler(const wxString& scheme); -static int LUACALL wxLua_wxWebViewFSHandler_constructor(lua_State *L) -{ - // const wxString scheme - const wxString scheme = wxlua_getwxStringtype(L, 1); - // call constructor - wxWebViewFSHandler* returns = new wxWebViewFSHandler(scheme); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebViewFSHandler); - - return 1; -} - - - - -void wxLua_wxWebViewFSHandler_delete_function(void** p) -{ - wxWebViewFSHandler* o = (wxWebViewFSHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebViewFSHandler_methods[] = { -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - { "GetFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewFSHandler_GetFile, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - - { "wxWebViewFSHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWebViewFSHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWebViewFSHandler_methodCount = sizeof(wxWebViewFSHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - -#if wxUSE_WEBVIEW -// --------------------------------------------------------------------------- -// Bind class wxWebViewArchiveHandler -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxWebViewArchiveHandler' -int wxluatype_wxWebViewArchiveHandler = WXLUA_TUNKNOWN; - -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewArchiveHandler_GetFile[] = { &wxluatype_wxWebViewArchiveHandler, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewArchiveHandler_GetFile(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewArchiveHandler_GetFile[1] = {{ wxLua_wxWebViewArchiveHandler_GetFile, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxWebViewArchiveHandler_GetFile }}; -// virtual wxFSFile* GetFile(const wxString &uri); -static int LUACALL wxLua_wxWebViewArchiveHandler_GetFile(lua_State *L) -{ - // const wxString uri - const wxString uri = wxlua_getwxStringtype(L, 2); - // get this - wxWebViewArchiveHandler * self = (wxWebViewArchiveHandler *)wxluaT_getuserdatatype(L, 1, wxluatype_wxWebViewArchiveHandler); - // call GetFile - wxFSFile* returns = (wxFSFile*)self->GetFile(uri); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxFSFile); - - return 1; -} - -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxWebViewArchiveHandler_constructor[] = { &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxWebViewArchiveHandler_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxWebViewArchiveHandler_constructor[1] = {{ wxLua_wxWebViewArchiveHandler_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxWebViewArchiveHandler_constructor }}; -// wxWebViewArchiveHandler(const wxString& scheme); -static int LUACALL wxLua_wxWebViewArchiveHandler_constructor(lua_State *L) -{ - // const wxString scheme - const wxString scheme = wxlua_getwxStringtype(L, 1); - // call constructor - wxWebViewArchiveHandler* returns = new wxWebViewArchiveHandler(scheme); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxWebViewArchiveHandler); - - return 1; -} - - - - -void wxLua_wxWebViewArchiveHandler_delete_function(void** p) -{ - wxWebViewArchiveHandler* o = (wxWebViewArchiveHandler*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxWebViewArchiveHandler_methods[] = { -#if ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - { "GetFile", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxWebViewArchiveHandler_GetFile, 1, NULL }, -#endif // ((wxUSE_FILESYSTEM) && (wxUSE_STREAMS)) && (wxUSE_WEBVIEW) - - { "wxWebViewArchiveHandler", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxWebViewArchiveHandler_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxWebViewArchiveHandler_methodCount = sizeof(wxWebViewArchiveHandler_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxUSE_WEBVIEW - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxwebview_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxwebview() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxwebview(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { -#if wxUSE_WEBVIEW - { "wxEVT_WEBVIEW_ERROR", WXLUA_GET_wxEventType_ptr(wxEVT_WEBVIEW_ERROR), &wxluatype_wxWebViewEvent }, - { "wxEVT_WEBVIEW_LOADED", WXLUA_GET_wxEventType_ptr(wxEVT_WEBVIEW_LOADED), &wxluatype_wxWebViewEvent }, - { "wxEVT_WEBVIEW_NAVIGATED", WXLUA_GET_wxEventType_ptr(wxEVT_WEBVIEW_NAVIGATED), &wxluatype_wxWebViewEvent }, - { "wxEVT_WEBVIEW_NAVIGATING", WXLUA_GET_wxEventType_ptr(wxEVT_WEBVIEW_NAVIGATING), &wxluatype_wxWebViewEvent }, - { "wxEVT_WEBVIEW_NEWWINDOW", WXLUA_GET_wxEventType_ptr(wxEVT_WEBVIEW_NEWWINDOW), &wxluatype_wxWebViewEvent }, - { "wxEVT_WEBVIEW_TITLE_CHANGED", WXLUA_GET_wxEventType_ptr(wxEVT_WEBVIEW_TITLE_CHANGED), &wxluatype_wxWebViewEvent }, -#endif // wxUSE_WEBVIEW - - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxwebview() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxwebview(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxUSE_WEBVIEW - { "wxWEBVIEW_FIND_BACKWARDS", wxWEBVIEW_FIND_BACKWARDS }, - { "wxWEBVIEW_FIND_DEFAULT", wxWEBVIEW_FIND_DEFAULT }, - { "wxWEBVIEW_FIND_ENTIRE_WORD", wxWEBVIEW_FIND_ENTIRE_WORD }, - { "wxWEBVIEW_FIND_HIGHLIGHT_RESULT", wxWEBVIEW_FIND_HIGHLIGHT_RESULT }, - { "wxWEBVIEW_FIND_MATCH_CASE", wxWEBVIEW_FIND_MATCH_CASE }, - { "wxWEBVIEW_FIND_WRAP", wxWEBVIEW_FIND_WRAP }, - { "wxWEBVIEW_NAV_ERR_AUTH", wxWEBVIEW_NAV_ERR_AUTH }, - { "wxWEBVIEW_NAV_ERR_CERTIFICATE", wxWEBVIEW_NAV_ERR_CERTIFICATE }, - { "wxWEBVIEW_NAV_ERR_CONNECTION", wxWEBVIEW_NAV_ERR_CONNECTION }, - { "wxWEBVIEW_NAV_ERR_NOT_FOUND", wxWEBVIEW_NAV_ERR_NOT_FOUND }, - { "wxWEBVIEW_NAV_ERR_OTHER", wxWEBVIEW_NAV_ERR_OTHER }, - { "wxWEBVIEW_NAV_ERR_REQUEST", wxWEBVIEW_NAV_ERR_REQUEST }, - { "wxWEBVIEW_NAV_ERR_SECURITY", wxWEBVIEW_NAV_ERR_SECURITY }, - { "wxWEBVIEW_NAV_ERR_USER_CANCELLED", wxWEBVIEW_NAV_ERR_USER_CANCELLED }, - { "wxWEBVIEW_RELOAD_DEFAULT", wxWEBVIEW_RELOAD_DEFAULT }, - { "wxWEBVIEW_RELOAD_NO_CACHE", wxWEBVIEW_RELOAD_NO_CACHE }, - { "wxWEBVIEW_ZOOM_LARGE", wxWEBVIEW_ZOOM_LARGE }, - { "wxWEBVIEW_ZOOM_LARGEST", wxWEBVIEW_ZOOM_LARGEST }, - { "wxWEBVIEW_ZOOM_MEDIUM", wxWEBVIEW_ZOOM_MEDIUM }, - { "wxWEBVIEW_ZOOM_SMALL", wxWEBVIEW_ZOOM_SMALL }, - { "wxWEBVIEW_ZOOM_TINY", wxWEBVIEW_ZOOM_TINY }, - { "wxWEBVIEW_ZOOM_TYPE_LAYOUT", wxWEBVIEW_ZOOM_TYPE_LAYOUT }, - { "wxWEBVIEW_ZOOM_TYPE_TEXT", wxWEBVIEW_ZOOM_TYPE_TEXT }, -#endif // wxUSE_WEBVIEW - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxwebview() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxwebview(size_t &count) -{ - static wxLuaBindString stringList[] = - { -#if wxUSE_WEBVIEW - { "wxWebViewBackendDefault", wxWebViewBackendDefault, NULL }, - { "wxWebViewBackendIE", wxWebViewBackendIE, NULL }, - { "wxWebViewBackendWebKit", wxWebViewBackendWebKit, NULL }, - { "wxWebViewDefaultURLStr", wxWebViewDefaultURLStr, NULL }, - { "wxWebViewNameStr", wxWebViewNameStr, NULL }, -#endif // wxUSE_WEBVIEW - - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxwebview() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxwebview(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxwebview() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxwebview() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxwebview(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxwebview() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxControl = "wxControl"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxWebView = "wxWebView"; -static const char* wxluaclassname_wxWebViewArchiveHandler = "wxWebViewArchiveHandler"; -static const char* wxluaclassname_wxWebViewEvent = "wxWebViewEvent"; -static const char* wxluaclassname_wxWebViewFSHandler = "wxWebViewFSHandler"; -static const char* wxluaclassname_wxWebViewFactory = "wxWebViewFactory"; -static const char* wxluaclassname_wxWebViewHandler = "wxWebViewHandler"; -static const char* wxluaclassname_wxWebViewHistoryItem = "wxWebViewHistoryItem"; - -static const char* wxluabaseclassnames_wxWebView[] = { wxluaclassname_wxControl, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWebView[] = { NULL }; -static const char* wxluabaseclassnames_wxWebViewArchiveHandler[] = { wxluaclassname_wxWebViewHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWebViewArchiveHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxWebViewEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWebViewEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxWebViewFSHandler[] = { wxluaclassname_wxWebViewHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWebViewFSHandler[] = { NULL }; -static const char* wxluabaseclassnames_wxWebViewFactory[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxWebViewFactory[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if wxUSE_WEBVIEW - extern wxLuaBindMethod wxWebView_methods[]; - extern int wxWebView_methodCount; - extern void wxLua_wxWebView_delete_function(void** p); - extern wxLuaBindMethod wxWebViewArchiveHandler_methods[]; - extern int wxWebViewArchiveHandler_methodCount; - extern void wxLua_wxWebViewArchiveHandler_delete_function(void** p); - extern wxLuaBindMethod wxWebViewEvent_methods[]; - extern int wxWebViewEvent_methodCount; - extern void wxLua_wxWebViewEvent_delete_function(void** p); - extern wxLuaBindMethod wxWebViewFSHandler_methods[]; - extern int wxWebViewFSHandler_methodCount; - extern void wxLua_wxWebViewFSHandler_delete_function(void** p); - extern wxLuaBindMethod wxWebViewFactory_methods[]; - extern int wxWebViewFactory_methodCount; - extern void wxLua_wxWebViewFactory_delete_function(void** p); - extern wxLuaBindMethod wxWebViewHandler_methods[]; - extern int wxWebViewHandler_methodCount; - extern void wxLua_wxWebViewHandler_delete_function(void** p); - extern wxLuaBindMethod wxWebViewHistoryItem_methods[]; - extern int wxWebViewHistoryItem_methodCount; - extern void wxLua_wxWebViewHistoryItem_delete_function(void** p); -#endif // wxUSE_WEBVIEW - - - - -wxLuaBindClass* wxLuaGetClassList_wxwebview(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxUSE_WEBVIEW - { wxluaclassname_wxWebView, wxWebView_methods, wxWebView_methodCount, CLASSINFO(wxWebView), &wxluatype_wxWebView, wxluabaseclassnames_wxWebView, wxluabaseclassbinds_wxWebView, NULL, NULL, NULL, 0, &wxLua_wxWebView_delete_function, }, - { wxluaclassname_wxWebViewArchiveHandler, wxWebViewArchiveHandler_methods, wxWebViewArchiveHandler_methodCount, NULL, &wxluatype_wxWebViewArchiveHandler, wxluabaseclassnames_wxWebViewArchiveHandler, wxluabaseclassbinds_wxWebViewArchiveHandler, NULL, NULL, NULL, 0, &wxLua_wxWebViewArchiveHandler_delete_function, }, - { wxluaclassname_wxWebViewEvent, wxWebViewEvent_methods, wxWebViewEvent_methodCount, CLASSINFO(wxWebViewEvent), &wxluatype_wxWebViewEvent, wxluabaseclassnames_wxWebViewEvent, wxluabaseclassbinds_wxWebViewEvent, NULL, NULL, NULL, 0, &wxLua_wxWebViewEvent_delete_function, }, - { wxluaclassname_wxWebViewFSHandler, wxWebViewFSHandler_methods, wxWebViewFSHandler_methodCount, NULL, &wxluatype_wxWebViewFSHandler, wxluabaseclassnames_wxWebViewFSHandler, wxluabaseclassbinds_wxWebViewFSHandler, NULL, NULL, NULL, 0, &wxLua_wxWebViewFSHandler_delete_function, }, - { wxluaclassname_wxWebViewFactory, wxWebViewFactory_methods, wxWebViewFactory_methodCount, CLASSINFO(wxWebViewFactory), &wxluatype_wxWebViewFactory, wxluabaseclassnames_wxWebViewFactory, wxluabaseclassbinds_wxWebViewFactory, NULL, NULL, NULL, 0, &wxLua_wxWebViewFactory_delete_function, }, - { wxluaclassname_wxWebViewHandler, wxWebViewHandler_methods, wxWebViewHandler_methodCount, NULL, &wxluatype_wxWebViewHandler, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxWebViewHandler_delete_function, }, - { wxluaclassname_wxWebViewHistoryItem, wxWebViewHistoryItem_methods, wxWebViewHistoryItem_methodCount, NULL, &wxluatype_wxWebViewHistoryItem, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxWebViewHistoryItem_delete_function, }, -#endif // wxUSE_WEBVIEW - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxwebview() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxwebview, wxLuaBinding) - -wxLuaBinding_wxwebview::wxLuaBinding_wxwebview() : wxLuaBinding() -{ - m_bindingName = wxT("wxwebview"); - m_nameSpace = wxT("wxwebview"); - m_classArray = wxLuaGetClassList_wxwebview(m_classCount); - m_numberArray = wxLuaGetDefineList_wxwebview(m_numberCount); - m_stringArray = wxLuaGetStringList_wxwebview(m_stringCount); - m_eventArray = wxLuaGetEventList_wxwebview(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxwebview(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxwebview(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxwebview_init() -{ - static wxLuaBinding_wxwebview m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxxml_bind.cpp b/wxLua/modules/wxbind/src/wxxml_bind.cpp deleted file mode 100644 index 99ee850a..00000000 --- a/wxLua/modules/wxbind/src/wxxml_bind.cpp +++ /dev/null @@ -1,2729 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxxml_xml.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxxml_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxXML && wxUSE_XML -// --------------------------------------------------------------------------- -// Bind class wxXmlNode -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXmlNode' -int wxluatype_wxXmlNode = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_AddAttribute1[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlNode_AddAttribute1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddAttribute1[1] = {{ wxLua_wxXmlNode_AddAttribute1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_AddAttribute1 }}; -// %wxchkver_2_9_0 void AddAttribute(wxXmlAttribute* attr); -static int LUACALL wxLua_wxXmlNode_AddAttribute1(lua_State *L) -{ - // wxXmlAttribute attr - wxXmlAttribute * attr = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlAttribute); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - self->AddAttribute(attr); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_AddAttribute[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_AddAttribute(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddAttribute[1] = {{ wxLua_wxXmlNode_AddAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_AddAttribute }}; -// %wxchkver_2_9_0 void AddAttribute(const wxString& name, const wxString& value); -static int LUACALL wxLua_wxXmlNode_AddAttribute(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddAttribute - self->AddAttribute(name, value); - - return 0; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_AddChild[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_AddChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddChild[1] = {{ wxLua_wxXmlNode_AddChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_AddChild }}; -// void AddChild(%ungc wxXmlNode *child); -static int LUACALL wxLua_wxXmlNode_AddChild(lua_State *L) -{ - // wxXmlNode child - wxXmlNode * child = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - if (wxluaO_isgcobject(L, child)) wxluaO_undeletegcobject(L, child); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddChild - self->AddChild(child); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_AddProperty1[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_AddProperty1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddProperty1[1] = {{ wxLua_wxXmlNode_AddProperty1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_AddProperty1 }}; -// !%wxchkver_2_9 void AddProperty(const wxString& name, const wxString& value); -static int LUACALL wxLua_wxXmlNode_AddProperty1(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 3); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddProperty - self->AddProperty(name, value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_AddProperty[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlNode_AddProperty(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddProperty[1] = {{ wxLua_wxXmlNode_AddProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_AddProperty }}; -// !%wxchkver_2_9 void AddProperty(%ungc wxXmlProperty *prop); -static int LUACALL wxLua_wxXmlNode_AddProperty(lua_State *L) -{ - // wxXmlProperty prop - wxXmlProperty * prop = (wxXmlProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlProperty); - if (wxluaO_isgcobject(L, prop)) wxluaO_undeletegcobject(L, prop); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call AddProperty - self->AddProperty(prop); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_DeleteAttribute[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_DeleteAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_DeleteAttribute[1] = {{ wxLua_wxXmlNode_DeleteAttribute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_DeleteAttribute }}; -// %wxchkver_2_9_0 bool DeleteAttribute(const wxString& name); -static int LUACALL wxLua_wxXmlNode_DeleteAttribute(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call DeleteAttribute - bool returns = (self->DeleteAttribute(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_DeleteProperty[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_DeleteProperty(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_DeleteProperty[1] = {{ wxLua_wxXmlNode_DeleteProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_DeleteProperty }}; -// !%wxchkver_2_9 bool DeleteProperty(const wxString& name); -static int LUACALL wxLua_wxXmlNode_DeleteProperty(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call DeleteProperty - bool returns = (self->DeleteProperty(name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetAttribute1[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_GetAttribute1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetAttribute1[1] = {{ wxLua_wxXmlNode_GetAttribute1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlNode_GetAttribute1 }}; -// %wxchkver_2_9_0 wxString GetAttribute(const wxString& attrName, const wxString& defaultVal = wxEmptyString) const; -static int LUACALL wxLua_wxXmlNode_GetAttribute1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString defaultVal = wxEmptyString - const wxString defaultVal = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetAttribute - wxString returns = (self->GetAttribute(attrName, defaultVal)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetAttribute[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TLIGHTUSERDATA, NULL }; -static int LUACALL wxLua_wxXmlNode_GetAttribute(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetAttribute[1] = {{ wxLua_wxXmlNode_GetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_GetAttribute }}; -// %wxchkver_2_9_0 bool GetAttribute(const wxString& attrName, wxString* value) const; -static int LUACALL wxLua_wxXmlNode_GetAttribute(lua_State *L) -{ - // wxString value - wxString * value = (wxString *)wxlua_touserdata(L, 3); - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetAttribute - bool returns = (self->GetAttribute(attrName, value)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetAttributes[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetAttributes[1] = {{ wxLua_wxXmlNode_GetAttributes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetAttributes }}; -// %wxchkver_2_9_0 wxXmlAttribute* GetAttributes() const; -static int LUACALL wxLua_wxXmlNode_GetAttributes(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetAttributes - wxXmlAttribute* returns = (wxXmlAttribute*)self->GetAttributes(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlAttribute); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetChildren[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetChildren[1] = {{ wxLua_wxXmlNode_GetChildren, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetChildren }}; -// wxXmlNode *GetChildren() const; -static int LUACALL wxLua_wxXmlNode_GetChildren(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetChildren - wxXmlNode* returns = (wxXmlNode*)self->GetChildren(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetContent[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetContent[1] = {{ wxLua_wxXmlNode_GetContent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetContent }}; -// wxString GetContent() const; -static int LUACALL wxLua_wxXmlNode_GetContent(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetContent - wxString returns = (self->GetContent()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetDepth[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetDepth(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetDepth[1] = {{ wxLua_wxXmlNode_GetDepth, WXLUAMETHOD_METHOD, 1, 2, s_wxluatypeArray_wxLua_wxXmlNode_GetDepth }}; -// %wxchkver_2_9_0 int GetDepth(wxXmlNode* grandparent = NULL) const; -static int LUACALL wxLua_wxXmlNode_GetDepth(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxXmlNode grandparent = NULL - wxXmlNode * grandparent = (argCount >= 2 ? (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode) : NULL); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetDepth - int returns = (self->GetDepth(grandparent)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetLineNumber[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetLineNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetLineNumber[1] = {{ wxLua_wxXmlNode_GetLineNumber, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetLineNumber }}; -// %wxchkver_2_9_0 int GetLineNumber() const; -static int LUACALL wxLua_wxXmlNode_GetLineNumber(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetLineNumber - int returns = (self->GetLineNumber()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetName[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetName[1] = {{ wxLua_wxXmlNode_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxXmlNode_GetName(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetNext[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetNext[1] = {{ wxLua_wxXmlNode_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetNext }}; -// wxXmlNode *GetNext() const; -static int LUACALL wxLua_wxXmlNode_GetNext(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetNext - wxXmlNode* returns = (wxXmlNode*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetNoConversion[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetNoConversion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetNoConversion[1] = {{ wxLua_wxXmlNode_GetNoConversion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetNoConversion }}; -// %wxchkver_3_0_0 bool GetNoConversion() const; -static int LUACALL wxLua_wxXmlNode_GetNoConversion(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetNoConversion - bool returns = (self->GetNoConversion()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetNodeContent[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetNodeContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetNodeContent[1] = {{ wxLua_wxXmlNode_GetNodeContent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetNodeContent }}; -// %wxchkver_2_9_0 wxString GetNodeContent() const; -static int LUACALL wxLua_wxXmlNode_GetNodeContent(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetNodeContent - wxString returns = (self->GetNodeContent()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetParent[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetParent[1] = {{ wxLua_wxXmlNode_GetParent, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetParent }}; -// wxXmlNode *GetParent() const; -static int LUACALL wxLua_wxXmlNode_GetParent(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetParent - wxXmlNode* returns = (wxXmlNode*)self->GetParent(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetPropVal1[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_GetPropVal1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetPropVal1[1] = {{ wxLua_wxXmlNode_GetPropVal1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_GetPropVal1 }}; -// !%wxchkver_2_9 wxString GetPropVal(const wxString& propName, const wxString& defaultVal) const; -static int LUACALL wxLua_wxXmlNode_GetPropVal1(lua_State *L) -{ - // const wxString defaultVal - const wxString defaultVal = wxlua_getwxStringtype(L, 3); - // const wxString propName - const wxString propName = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetPropVal - wxString returns = (self->GetPropVal(propName, defaultVal)); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#define wxLua_wxXmlNode_GetPropVal wxLua_wxXmlNode_GetPropValPtr -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetPropVal[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_GetPropVal(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetPropVal[1] = {{ wxLua_wxXmlNode_GetPropVal, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_GetPropVal }}; -// %override wxLua_wxXmlNode_GetPropValPtr -// %rename GetPropValPtr bool GetPropVal(const wxString& propName, wxString *value) const; -static int LUACALL wxLua_wxXmlNode_GetPropValPtr(lua_State *L) -{ - // wxString *value - wxString value; - // const wxString& propName - wxString propName = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode *self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetPropVal - bool returns = self->GetPropVal(propName, &value); - // push the result number - lua_pushboolean(L, returns); - // push the result string - wxlua_pushwxString(L, value); - // return the number of parameters - return 2; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetProperties[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetProperties[1] = {{ wxLua_wxXmlNode_GetProperties, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetProperties }}; -// !%wxchkver_2_9 wxXmlProperty *GetProperties() const; -static int LUACALL wxLua_wxXmlNode_GetProperties(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetProperties - wxXmlProperty* returns = (wxXmlProperty*)self->GetProperties(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlProperty); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_GetType[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_GetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetType[1] = {{ wxLua_wxXmlNode_GetType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_GetType }}; -// wxXmlNodeType GetType() const; -static int LUACALL wxLua_wxXmlNode_GetType(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call GetType - wxXmlNodeType returns = (self->GetType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_HasAttribute[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_HasAttribute(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_HasAttribute[1] = {{ wxLua_wxXmlNode_HasAttribute, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_HasAttribute }}; -// %wxchkver_2_9_0 bool HasAttribute(const wxString& attrName) const; -static int LUACALL wxLua_wxXmlNode_HasAttribute(lua_State *L) -{ - // const wxString attrName - const wxString attrName = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call HasAttribute - bool returns = (self->HasAttribute(attrName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_HasProp[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_HasProp(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_HasProp[1] = {{ wxLua_wxXmlNode_HasProp, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_HasProp }}; -// !%wxchkver_2_9 bool HasProp(const wxString& propName) const; -static int LUACALL wxLua_wxXmlNode_HasProp(lua_State *L) -{ - // const wxString propName - const wxString propName = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call HasProp - bool returns = (self->HasProp(propName)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_InsertChild[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_InsertChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_InsertChild[1] = {{ wxLua_wxXmlNode_InsertChild, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_InsertChild }}; -// void InsertChild(%ungc wxXmlNode *child, wxXmlNode *before_node); -static int LUACALL wxLua_wxXmlNode_InsertChild(lua_State *L) -{ - // wxXmlNode before_node - wxXmlNode * before_node = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxXmlNode child - wxXmlNode * child = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - if (wxluaO_isgcobject(L, child)) wxluaO_undeletegcobject(L, child); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call InsertChild - self->InsertChild(child, before_node); - - return 0; -} - - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_InsertChildAfter[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_InsertChildAfter(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_InsertChildAfter[1] = {{ wxLua_wxXmlNode_InsertChildAfter, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_InsertChildAfter }}; -// %wxchkver_2_9_0 bool InsertChildAfter(%ungc wxXmlNode* child, wxXmlNode* precedingNode); -static int LUACALL wxLua_wxXmlNode_InsertChildAfter(lua_State *L) -{ - // wxXmlNode precedingNode - wxXmlNode * precedingNode = (wxXmlNode *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlNode); - // wxXmlNode child - wxXmlNode * child = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - if (wxluaO_isgcobject(L, child)) wxluaO_undeletegcobject(L, child); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call InsertChildAfter - bool returns = (self->InsertChildAfter(child, precedingNode)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_IsWhitespaceOnly[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_IsWhitespaceOnly(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_IsWhitespaceOnly[1] = {{ wxLua_wxXmlNode_IsWhitespaceOnly, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_IsWhitespaceOnly }}; -// %wxchkver_2_9_0 bool IsWhitespaceOnly() const; -static int LUACALL wxLua_wxXmlNode_IsWhitespaceOnly(lua_State *L) -{ - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call IsWhitespaceOnly - bool returns = (self->IsWhitespaceOnly()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_RemoveChild[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_RemoveChild(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_RemoveChild[1] = {{ wxLua_wxXmlNode_RemoveChild, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_RemoveChild }}; -// %override wxLua_wxXmlNode_RemoveChild -// bool RemoveChild(%gc wxXmlNode *child) -static int LUACALL wxLua_wxXmlNode_RemoveChild(lua_State *L) -{ - // wxXmlNode child - wxXmlNode * child = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call RemoveChild - bool returns = (self->RemoveChild(child)); - - if (returns && !wxluaO_isgcobject(L, child)) - wxluaO_addgcobject(L, child, wxluatype_wxXmlNode); - - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetAttributes[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlNode_SetAttributes(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetAttributes[1] = {{ wxLua_wxXmlNode_SetAttributes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetAttributes }}; -// %wxchkver_2_9_0 void SetAttributes(wxXmlAttribute* attr); -static int LUACALL wxLua_wxXmlNode_SetAttributes(lua_State *L) -{ - // wxXmlAttribute attr - wxXmlAttribute * attr = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlAttribute); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetAttributes - self->SetAttributes(attr); - - return 0; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetChildren[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_SetChildren(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetChildren[1] = {{ wxLua_wxXmlNode_SetChildren, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetChildren }}; -// void SetChildren(%ungc wxXmlNode *child); -static int LUACALL wxLua_wxXmlNode_SetChildren(lua_State *L) -{ - // wxXmlNode child - wxXmlNode * child = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - if (wxluaO_isgcobject(L, child)) wxluaO_undeletegcobject(L, child); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetChildren - self->SetChildren(child); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetContent[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_SetContent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetContent[1] = {{ wxLua_wxXmlNode_SetContent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetContent }}; -// void SetContent(const wxString& con); -static int LUACALL wxLua_wxXmlNode_SetContent(lua_State *L) -{ - // const wxString con - const wxString con = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetContent - self->SetContent(con); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetName[] = { &wxluatype_wxXmlNode, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetName[1] = {{ wxLua_wxXmlNode_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxXmlNode_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetNext[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_SetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetNext[1] = {{ wxLua_wxXmlNode_SetNext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetNext }}; -// void SetNext(wxXmlNode *next); -static int LUACALL wxLua_wxXmlNode_SetNext(lua_State *L) -{ - // wxXmlNode next - wxXmlNode * next = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetNext - self->SetNext(next); - - return 0; -} - - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetNoConversion[] = { &wxluatype_wxXmlNode, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxXmlNode_SetNoConversion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetNoConversion[1] = {{ wxLua_wxXmlNode_SetNoConversion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetNoConversion }}; -// %wxchkver_3_0_0 void SetNoConversion(bool noconversion); -static int LUACALL wxLua_wxXmlNode_SetNoConversion(lua_State *L) -{ - // bool noconversion - bool noconversion = wxlua_getbooleantype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetNoConversion - self->SetNoConversion(noconversion); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetParent[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_SetParent(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetParent[1] = {{ wxLua_wxXmlNode_SetParent, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetParent }}; -// void SetParent(wxXmlNode *parent); -static int LUACALL wxLua_wxXmlNode_SetParent(lua_State *L) -{ - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetParent - self->SetParent(parent); - - return 0; -} - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetProperties[] = { &wxluatype_wxXmlNode, &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlNode_SetProperties(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetProperties[1] = {{ wxLua_wxXmlNode_SetProperties, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetProperties }}; -// !%wxchkver_2_9 void SetProperties(%ungc wxXmlProperty *prop); -static int LUACALL wxLua_wxXmlNode_SetProperties(lua_State *L) -{ - // wxXmlProperty prop - wxXmlProperty * prop = (wxXmlProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlProperty); - if (wxluaO_isgcobject(L, prop)) wxluaO_undeletegcobject(L, prop); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetProperties - self->SetProperties(prop); - - return 0; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_SetType[] = { &wxluatype_wxXmlNode, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxXmlNode_SetType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_SetType[1] = {{ wxLua_wxXmlNode_SetType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_SetType }}; -// void SetType(wxXmlNodeType type); -static int LUACALL wxLua_wxXmlNode_SetType(lua_State *L) -{ - // wxXmlNodeType type - wxXmlNodeType type = (wxXmlNodeType)wxlua_getenumtype(L, 2); - // get this - wxXmlNode * self = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call SetType - self->SetType(type); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_delete[] = { &wxluatype_wxXmlNode, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_delete }}; - - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_constructor5[] = { &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlNode_constructor5(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor5[1] = {{ wxLua_wxXmlNode_constructor5, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxXmlNode_constructor5 }}; -// !%wxchkver_2_9_0 wxXmlNode(wxXmlNodeType type, const wxString& name, const wxString& content = ""); -static int LUACALL wxLua_wxXmlNode_constructor5(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString content = "" - const wxString content = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNodeType type - wxXmlNodeType type = (wxXmlNodeType)wxlua_getenumtype(L, 1); - // call constructor - wxXmlNode* returns = new wxXmlNode(type, name, content); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -static int LUACALL wxLua_wxXmlNode_constructor4(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor4[1] = {{ wxLua_wxXmlNode_constructor4, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxXmlNode_constructor4 -// wxXmlNode(wxXmlNode *parent, wxXmlNodeType type, const wxString& name, const wxString& content, wxXmlProperty *props, wxXmlNode *next) -static int LUACALL wxLua_wxXmlNode_constructor4(lua_State *L) -{ - // wxXmlNode next - wxXmlNode * next = (wxXmlNode *)wxluaT_getuserdatatype(L, 6, wxluatype_wxXmlNode); - // wxXmlProperty props - wxXmlProperty * props = (wxXmlProperty *)wxluaT_getuserdatatype(L, 5, wxluatype_wxXmlProperty); - // const wxString content - const wxString content = wxlua_getwxStringtype(L, 4); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxXmlNodeType type - wxXmlNodeType type = (wxXmlNodeType)wxlua_getenumtype(L, 2); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call constructor - wxXmlNode *returns = new wxXmlNode(parent, type, name, content, props, next); - // add to tracked memory list - if (parent == NULL) - wxluaO_addgcobject(L, returns, wxluatype_wxXmlNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_constructor3[] = { &wxluatype_wxXmlNode, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxXmlProperty, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor3[1] = {{ wxLua_wxXmlNode_constructor3, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxXmlNode_constructor3 }}; -// !%wxchkver_2_9 wxXmlNode(wxXmlNode *parent, wxXmlNodeType type, const wxString& name, const wxString& content, wxXmlProperty *props, wxXmlNode *next); -static int LUACALL wxLua_wxXmlNode_constructor3(lua_State *L) -{ - // wxXmlNode next - wxXmlNode * next = (wxXmlNode *)wxluaT_getuserdatatype(L, 6, wxluatype_wxXmlNode); - // wxXmlProperty props - wxXmlProperty * props = (wxXmlProperty *)wxluaT_getuserdatatype(L, 5, wxluatype_wxXmlProperty); - // const wxString content - const wxString content = wxlua_getwxStringtype(L, 4); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxXmlNodeType type - wxXmlNodeType type = (wxXmlNodeType)wxlua_getenumtype(L, 2); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call constructor - wxXmlNode* returns = new wxXmlNode(parent, type, name, content, props, next); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_constructor2[] = { &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlNode_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor2[1] = {{ wxLua_wxXmlNode_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_constructor2 }}; -// %wxchkver_2_9_0 wxXmlNode(const wxXmlNode& node); -static int LUACALL wxLua_wxXmlNode_constructor2(lua_State *L) -{ - // const wxXmlNode node - const wxXmlNode * node = (const wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call constructor - wxXmlNode* returns = new wxXmlNode(*node); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_constructor1[] = { &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlNode_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor1[1] = {{ wxLua_wxXmlNode_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxXmlNode_constructor1 }}; -// %wxchkver_2_9_0 wxXmlNode(wxXmlNodeType type, const wxString& name, const wxString& content = wxEmptyString, int lineNo = -1); -static int LUACALL wxLua_wxXmlNode_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int lineNo = -1 - int lineNo = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : -1); - // const wxString content = wxEmptyString - const wxString content = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // wxXmlNodeType type - wxXmlNodeType type = (wxXmlNodeType)wxlua_getenumtype(L, 1); - // call constructor - wxXmlNode* returns = new wxXmlNode(type, name, content, lineNo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlNode_constructor[] = { &wxluatype_wxXmlNode, &wxluatype_TINTEGER, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxXmlAttribute, &wxluatype_wxXmlNode, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlNode_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor[1] = {{ wxLua_wxXmlNode_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxXmlNode_constructor }}; -// %wxchkver_2_9_0 wxXmlNode(wxXmlNode* parent, wxXmlNodeType type, const wxString& name, const wxString& content = wxEmptyString, wxXmlAttribute* attrs = NULL, wxXmlNode* next = NULL, int lineNo = -1); -static int LUACALL wxLua_wxXmlNode_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int lineNo = -1 - int lineNo = (argCount >= 7 ? (int)wxlua_getnumbertype(L, 7) : -1); - // wxXmlNode next = NULL - wxXmlNode * next = (argCount >= 6 ? (wxXmlNode *)wxluaT_getuserdatatype(L, 6, wxluatype_wxXmlNode) : NULL); - // wxXmlAttribute attrs = NULL - wxXmlAttribute * attrs = (argCount >= 5 ? (wxXmlAttribute *)wxluaT_getuserdatatype(L, 5, wxluatype_wxXmlAttribute) : NULL); - // const wxString content = wxEmptyString - const wxString content = (argCount >= 4 ? wxlua_getwxStringtype(L, 4) : wxString(wxEmptyString)); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxXmlNodeType type - wxXmlNodeType type = (wxXmlNodeType)wxlua_getenumtype(L, 2); - // wxXmlNode parent - wxXmlNode * parent = (wxXmlNode *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlNode); - // call constructor - wxXmlNode* returns = new wxXmlNode(parent, type, name, content, attrs, next, lineNo); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlNode); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - - - -#if (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddAttribute_overload[] = -{ - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_AddAttribute1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_AddAttribute1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_AddAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_AddAttribute }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlNode_AddAttribute_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlNode_AddAttribute_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_AddProperty_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_AddProperty1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_AddProperty1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_AddProperty, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_AddProperty }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlNode_AddProperty_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlNode_AddProperty_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetAttribute_overload[] = -{ - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_GetAttribute1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlNode_GetAttribute1 }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_GetAttribute, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_GetAttribute }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlNode_GetAttribute_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlNode_GetAttribute_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_GetPropVal_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_GetPropVal1, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlNode_GetPropVal1 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_GetPropVal, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlNode_GetPropVal }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlNode_GetPropVal_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlNode_GetPropVal_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlNode_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_constructor5, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxXmlNode_constructor5 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_constructor4, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_constructor3, WXLUAMETHOD_CONSTRUCTOR, 6, 6, s_wxluatypeArray_wxLua_wxXmlNode_constructor3 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxXmlNode_constructor2 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 4, s_wxluatypeArray_wxLua_wxXmlNode_constructor1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlNode_constructor, WXLUAMETHOD_CONSTRUCTOR, 3, 7, s_wxluatypeArray_wxLua_wxXmlNode_constructor }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlNode_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlNode_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -void wxLua_wxXmlNode_delete_function(void** p) -{ - wxXmlNode* o = (wxXmlNode*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXmlNode_methods[] = { -#if (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "AddAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_AddAttribute_overload, s_wxluafunc_wxLua_wxXmlNode_AddAttribute_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - - { "AddChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_AddChild, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "AddProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_AddProperty_overload, s_wxluafunc_wxLua_wxXmlNode_AddProperty_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "DeleteAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_DeleteAttribute, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "DeleteProperty", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_DeleteProperty, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "GetAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetAttribute_overload, s_wxluafunc_wxLua_wxXmlNode_GetAttribute_overload_count, 0 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetAttributes, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "GetChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetChildren, 1, NULL }, - { "GetContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetContent, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetDepth", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetDepth, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetLineNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetLineNumber, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetName, 1, NULL }, - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetNext, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetNoConversion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetNoConversion, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetNodeContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetNodeContent, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "GetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetParent, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "GetPropVal", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetPropVal_overload, s_wxluafunc_wxLua_wxXmlNode_GetPropVal_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetProperties, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "GetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_GetType, 1, NULL }, - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "HasAttribute", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_HasAttribute, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "HasProp", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_HasProp, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "InsertChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_InsertChild, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "InsertChildAfter", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_InsertChildAfter, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "IsWhitespaceOnly", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_IsWhitespaceOnly, 1, NULL }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "RemoveChild", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_RemoveChild, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetAttributes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetAttributes, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "SetChildren", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetChildren, 1, NULL }, - { "SetContent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetContent, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetName, 1, NULL }, - { "SetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetNext, 1, NULL }, - -#if (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetNoConversion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetNoConversion, 1, NULL }, -#endif // (wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "SetParent", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetParent, 1, NULL }, - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetProperties", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetProperties, 1, NULL }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "SetType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlNode_SetType, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxXmlNode_delete, 1, NULL }, - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "wxXmlNode", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXmlNode_constructor_overload, s_wxluafunc_wxLua_wxXmlNode_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML)) - - { 0, 0, 0, 0 }, -}; - -int wxXmlNode_methodCount = sizeof(wxXmlNode_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxXML && wxUSE_XML - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -// --------------------------------------------------------------------------- -// Bind class wxXmlProperty -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXmlProperty' -int wxluatype_wxXmlProperty = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_GetName[] = { &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlProperty_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_GetName[1] = {{ wxLua_wxXmlProperty_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlProperty_GetName }}; -// wxString GetName(); -static int LUACALL wxLua_wxXmlProperty_GetName(lua_State *L) -{ - // get this - wxXmlProperty * self = (wxXmlProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlProperty); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_GetNext[] = { &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlProperty_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_GetNext[1] = {{ wxLua_wxXmlProperty_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlProperty_GetNext }}; -// wxXmlProperty *GetNext(); -static int LUACALL wxLua_wxXmlProperty_GetNext(lua_State *L) -{ - // get this - wxXmlProperty * self = (wxXmlProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlProperty); - // call GetNext - wxXmlProperty* returns = (wxXmlProperty*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlProperty); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_GetValue[] = { &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlProperty_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_GetValue[1] = {{ wxLua_wxXmlProperty_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlProperty_GetValue }}; -// wxString GetValue(); -static int LUACALL wxLua_wxXmlProperty_GetValue(lua_State *L) -{ - // get this - wxXmlProperty * self = (wxXmlProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlProperty); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_SetName[] = { &wxluatype_wxXmlProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlProperty_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_SetName[1] = {{ wxLua_wxXmlProperty_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlProperty_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxXmlProperty_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlProperty * self = (wxXmlProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlProperty); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_SetNext[] = { &wxluatype_wxXmlProperty, &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlProperty_SetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_SetNext[1] = {{ wxLua_wxXmlProperty_SetNext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlProperty_SetNext }}; -// void SetNext(wxXmlProperty *next); -static int LUACALL wxLua_wxXmlProperty_SetNext(lua_State *L) -{ - // wxXmlProperty next - wxXmlProperty * next = (wxXmlProperty *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlProperty); - // get this - wxXmlProperty * self = (wxXmlProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlProperty); - // call SetNext - self->SetNext(next); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_SetValue[] = { &wxluatype_wxXmlProperty, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlProperty_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_SetValue[1] = {{ wxLua_wxXmlProperty_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlProperty_SetValue }}; -// void SetValue(const wxString& value); -static int LUACALL wxLua_wxXmlProperty_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxXmlProperty * self = (wxXmlProperty *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlProperty); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_delete[] = { &wxluatype_wxXmlProperty, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxXmlProperty_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlProperty_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxXmlProperty, NULL }; -static int LUACALL wxLua_wxXmlProperty_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_constructor1[1] = {{ wxLua_wxXmlProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxXmlProperty_constructor1 }}; -// wxXmlProperty(const wxString& name, const wxString& value, wxXmlProperty *next); -static int LUACALL wxLua_wxXmlProperty_constructor1(lua_State *L) -{ - // wxXmlProperty next - wxXmlProperty * next = (wxXmlProperty *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlProperty); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxXmlProperty* returns = new wxXmlProperty(name, value, next); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlProperty); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlProperty); - - return 1; -} - -static int LUACALL wxLua_wxXmlProperty_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_constructor[1] = {{ wxLua_wxXmlProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxXmlProperty(); -static int LUACALL wxLua_wxXmlProperty_constructor(lua_State *L) -{ - // call constructor - wxXmlProperty* returns = new wxXmlProperty(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlProperty); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlProperty); - - return 1; -} - - - - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlProperty_constructor_overload[] = -{ - { wxLua_wxXmlProperty_constructor1, WXLUAMETHOD_CONSTRUCTOR, 3, 3, s_wxluatypeArray_wxLua_wxXmlProperty_constructor1 }, - { wxLua_wxXmlProperty_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxXmlProperty_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlProperty_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -void wxLua_wxXmlProperty_delete_function(void** p) -{ - wxXmlProperty* o = (wxXmlProperty*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXmlProperty_methods[] = { - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlProperty_GetName, 1, NULL }, - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlProperty_GetNext, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlProperty_GetValue, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlProperty_SetName, 1, NULL }, - { "SetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlProperty_SetNext, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlProperty_SetValue, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxXmlProperty_delete, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "wxXmlProperty", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXmlProperty_constructor_overload, s_wxluafunc_wxLua_wxXmlProperty_constructor_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - - { 0, 0, 0, 0 }, -}; - -int wxXmlProperty_methodCount = sizeof(wxXmlProperty_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - -#if wxLUA_USE_wxXML && wxUSE_XML -// --------------------------------------------------------------------------- -// Bind class wxXmlAttribute -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXmlAttribute' -int wxluatype_wxXmlAttribute = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_GetName[] = { &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlAttribute_GetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_GetName[1] = {{ wxLua_wxXmlAttribute_GetName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlAttribute_GetName }}; -// wxString GetName() const; -static int LUACALL wxLua_wxXmlAttribute_GetName(lua_State *L) -{ - // get this - wxXmlAttribute * self = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlAttribute); - // call GetName - wxString returns = (self->GetName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_GetNext[] = { &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlAttribute_GetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_GetNext[1] = {{ wxLua_wxXmlAttribute_GetNext, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlAttribute_GetNext }}; -// wxXmlAttribute* GetNext() const; -static int LUACALL wxLua_wxXmlAttribute_GetNext(lua_State *L) -{ - // get this - wxXmlAttribute * self = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlAttribute); - // call GetNext - wxXmlAttribute* returns = (wxXmlAttribute*)self->GetNext(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlAttribute); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_GetValue[] = { &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlAttribute_GetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_GetValue[1] = {{ wxLua_wxXmlAttribute_GetValue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlAttribute_GetValue }}; -// wxString GetValue() const; -static int LUACALL wxLua_wxXmlAttribute_GetValue(lua_State *L) -{ - // get this - wxXmlAttribute * self = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlAttribute); - // call GetValue - wxString returns = (self->GetValue()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_SetName[] = { &wxluatype_wxXmlAttribute, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlAttribute_SetName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_SetName[1] = {{ wxLua_wxXmlAttribute_SetName, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlAttribute_SetName }}; -// void SetName(const wxString& name); -static int LUACALL wxLua_wxXmlAttribute_SetName(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlAttribute * self = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlAttribute); - // call SetName - self->SetName(name); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_SetNext[] = { &wxluatype_wxXmlAttribute, &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlAttribute_SetNext(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_SetNext[1] = {{ wxLua_wxXmlAttribute_SetNext, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlAttribute_SetNext }}; -// void SetNext(wxXmlAttribute* next); -static int LUACALL wxLua_wxXmlAttribute_SetNext(lua_State *L) -{ - // wxXmlAttribute next - wxXmlAttribute * next = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlAttribute); - // get this - wxXmlAttribute * self = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlAttribute); - // call SetNext - self->SetNext(next); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_SetValue[] = { &wxluatype_wxXmlAttribute, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlAttribute_SetValue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_SetValue[1] = {{ wxLua_wxXmlAttribute_SetValue, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlAttribute_SetValue }}; -// void SetValue(const wxString& value); -static int LUACALL wxLua_wxXmlAttribute_SetValue(lua_State *L) -{ - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // get this - wxXmlAttribute * self = (wxXmlAttribute *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlAttribute); - // call SetValue - self->SetValue(value); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_delete[] = { &wxluatype_wxXmlAttribute, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxXmlAttribute_delete }}; - - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlAttribute_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_wxXmlAttribute, NULL }; -static int LUACALL wxLua_wxXmlAttribute_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_constructor1[1] = {{ wxLua_wxXmlAttribute_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxXmlAttribute_constructor1 }}; -// %wxchkver_2_9_0 wxXmlAttribute(const wxString& name, const wxString& value, wxXmlAttribute* next = NULL); -static int LUACALL wxLua_wxXmlAttribute_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxXmlAttribute next = NULL - wxXmlAttribute * next = (argCount >= 3 ? (wxXmlAttribute *)wxluaT_getuserdatatype(L, 3, wxluatype_wxXmlAttribute) : NULL); - // const wxString value - const wxString value = wxlua_getwxStringtype(L, 2); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 1); - // call constructor - wxXmlAttribute* returns = new wxXmlAttribute(name, value, next); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlAttribute); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlAttribute); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static int LUACALL wxLua_wxXmlAttribute_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_constructor[1] = {{ wxLua_wxXmlAttribute_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxXmlAttribute(); -static int LUACALL wxLua_wxXmlAttribute_constructor(lua_State *L) -{ - // call constructor - wxXmlAttribute* returns = new wxXmlAttribute(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlAttribute); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlAttribute); - - return 1; -} - - - - -#if (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlAttribute_constructor_overload[] = -{ - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlAttribute_constructor1, WXLUAMETHOD_CONSTRUCTOR, 2, 3, s_wxluatypeArray_wxLua_wxXmlAttribute_constructor1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlAttribute_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxXmlAttribute_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlAttribute_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) - -void wxLua_wxXmlAttribute_delete_function(void** p) -{ - wxXmlAttribute* o = (wxXmlAttribute*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXmlAttribute_methods[] = { - { "GetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlAttribute_GetName, 1, NULL }, - { "GetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlAttribute_GetNext, 1, NULL }, - { "GetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlAttribute_GetValue, 1, NULL }, - { "SetName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlAttribute_SetName, 1, NULL }, - { "SetNext", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlAttribute_SetNext, 1, NULL }, - { "SetValue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlAttribute_SetValue, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxXmlAttribute_delete, 1, NULL }, - -#if (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) - { "wxXmlAttribute", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXmlAttribute_constructor_overload, s_wxluafunc_wxLua_wxXmlAttribute_constructor_overload_count, 0 }, -#endif // (((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) - - { 0, 0, 0, 0 }, -}; - -int wxXmlAttribute_methodCount = sizeof(wxXmlAttribute_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxXML && wxUSE_XML - - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -// --------------------------------------------------------------------------- -// Bind class wxXmlDoctype -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXmlDoctype' -int wxluatype_wxXmlDoctype = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_Clear[] = { &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDoctype_Clear(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_Clear[1] = {{ wxLua_wxXmlDoctype_Clear, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDoctype_Clear }}; -// void Clear(); -static int LUACALL wxLua_wxXmlDoctype_Clear(lua_State *L) -{ - // get this - wxXmlDoctype * self = (wxXmlDoctype *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDoctype); - // call Clear - self->Clear(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_GetFullString[] = { &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDoctype_GetFullString(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_GetFullString[1] = {{ wxLua_wxXmlDoctype_GetFullString, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDoctype_GetFullString }}; -// wxString GetFullString() const; -static int LUACALL wxLua_wxXmlDoctype_GetFullString(lua_State *L) -{ - // get this - wxXmlDoctype * self = (wxXmlDoctype *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDoctype); - // call GetFullString - wxString returns = (self->GetFullString()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_GetPublicId[] = { &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDoctype_GetPublicId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_GetPublicId[1] = {{ wxLua_wxXmlDoctype_GetPublicId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDoctype_GetPublicId }}; -// const wxString& GetPublicId() const; -static int LUACALL wxLua_wxXmlDoctype_GetPublicId(lua_State *L) -{ - // get this - wxXmlDoctype * self = (wxXmlDoctype *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDoctype); - // call GetPublicId - wxString returns = (self->GetPublicId()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_GetRootName[] = { &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDoctype_GetRootName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_GetRootName[1] = {{ wxLua_wxXmlDoctype_GetRootName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDoctype_GetRootName }}; -// const wxString& GetRootName() const; -static int LUACALL wxLua_wxXmlDoctype_GetRootName(lua_State *L) -{ - // get this - wxXmlDoctype * self = (wxXmlDoctype *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDoctype); - // call GetRootName - wxString returns = (self->GetRootName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_GetSystemId[] = { &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDoctype_GetSystemId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_GetSystemId[1] = {{ wxLua_wxXmlDoctype_GetSystemId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDoctype_GetSystemId }}; -// const wxString& GetSystemId() const; -static int LUACALL wxLua_wxXmlDoctype_GetSystemId(lua_State *L) -{ - // get this - wxXmlDoctype * self = (wxXmlDoctype *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDoctype); - // call GetSystemId - wxString returns = (self->GetSystemId()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_IsValid[] = { &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDoctype_IsValid(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_IsValid[1] = {{ wxLua_wxXmlDoctype_IsValid, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDoctype_IsValid }}; -// bool IsValid() const; -static int LUACALL wxLua_wxXmlDoctype_IsValid(lua_State *L) -{ - // get this - wxXmlDoctype * self = (wxXmlDoctype *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDoctype); - // call IsValid - bool returns = (self->IsValid()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDoctype_constructor[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDoctype_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDoctype_constructor[1] = {{ wxLua_wxXmlDoctype_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 3, s_wxluatypeArray_wxLua_wxXmlDoctype_constructor }}; -// const wxString& publicId = ""); -static int LUACALL wxLua_wxXmlDoctype_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString publicId = "" - const wxString publicId = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // const wxString systemId = "" - const wxString systemId = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // const wxString rootName = "" - const wxString rootName = (argCount >= 1 ? wxlua_getwxStringtype(L, 1) : wxString(wxEmptyString)); - // call constructor - wxXmlDoctype* returns = new wxXmlDoctype(rootName, systemId, publicId); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDoctype); - - return 1; -} - - - - -void wxLua_wxXmlDoctype_delete_function(void** p) -{ - wxXmlDoctype* o = (wxXmlDoctype*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXmlDoctype_methods[] = { - { "Clear", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDoctype_Clear, 1, NULL }, - { "GetFullString", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDoctype_GetFullString, 1, NULL }, - { "GetPublicId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDoctype_GetPublicId, 1, NULL }, - { "GetRootName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDoctype_GetRootName, 1, NULL }, - { "GetSystemId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDoctype_GetSystemId, 1, NULL }, - { "IsValid", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDoctype_IsValid, 1, NULL }, - { "wxXmlDoctype", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXmlDoctype_constructor, 1, NULL }, - - { 0, 0, 0, 0 }, -}; - -int wxXmlDoctype_methodCount = sizeof(wxXmlDoctype_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - -#if wxLUA_USE_wxXML && wxUSE_XML -// --------------------------------------------------------------------------- -// Bind class wxXmlDocument -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXmlDocument' -int wxluatype_wxXmlDocument = WXLUA_TUNKNOWN; - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_AppendToProlog[] = { &wxluatype_wxXmlDocument, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlDocument_AppendToProlog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_AppendToProlog[1] = {{ wxLua_wxXmlDocument_AppendToProlog, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_AppendToProlog }}; -// %wxchkver_3_0_0 void AppendToProlog(wxXmlNode* node); -static int LUACALL wxLua_wxXmlDocument_AppendToProlog(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call AppendToProlog - self->AppendToProlog(node); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_DetachDocumentNode[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_DetachDocumentNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_DetachDocumentNode[1] = {{ wxLua_wxXmlDocument_DetachDocumentNode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_DetachDocumentNode }}; -// %wxchkver_3_0_0 wxXmlNode* DetachDocumentNode(); -static int LUACALL wxLua_wxXmlDocument_DetachDocumentNode(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call DetachDocumentNode - wxXmlNode* returns = (wxXmlNode*)self->DetachDocumentNode(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_DetachRoot[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_DetachRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_DetachRoot[1] = {{ wxLua_wxXmlDocument_DetachRoot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_DetachRoot }}; -// %wxchkver_2_9_0 wxXmlNode* DetachRoot(); -static int LUACALL wxLua_wxXmlDocument_DetachRoot(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call DetachRoot - wxXmlNode* returns = (wxXmlNode*)self->DetachRoot(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetDoctype[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetDoctype(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetDoctype[1] = {{ wxLua_wxXmlDocument_GetDoctype, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetDoctype }}; -// %wxchkver_3_1_0 const wxXmlDoctype& GetDoctype() const; -static int LUACALL wxLua_wxXmlDocument_GetDoctype(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetDoctype - const wxXmlDoctype* returns = (const wxXmlDoctype*)&self->GetDoctype(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDoctype); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetDocumentNode[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetDocumentNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetDocumentNode[1] = {{ wxLua_wxXmlDocument_GetDocumentNode, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetDocumentNode }}; -// %wxchkver_3_0_0 wxXmlNode* GetDocumentNode() const; -static int LUACALL wxLua_wxXmlDocument_GetDocumentNode(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetDocumentNode - wxXmlNode* returns = (wxXmlNode*)self->GetDocumentNode(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetEOL[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetEOL(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetEOL[1] = {{ wxLua_wxXmlDocument_GetEOL, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetEOL }}; -// %wxchkver_3_1_1 wxString GetEOL() const; -static int LUACALL wxLua_wxXmlDocument_GetEOL(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetEOL - wxString returns = (self->GetEOL()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetEncoding[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetEncoding[1] = {{ wxLua_wxXmlDocument_GetEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetEncoding }}; -// !wxUSE_UNICODE && %wxchkver_2_9_0 wxString GetEncoding() const; -static int LUACALL wxLua_wxXmlDocument_GetEncoding(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetEncoding - wxString returns = (self->GetEncoding()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -#endif // (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetFileEncoding[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetFileEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetFileEncoding[1] = {{ wxLua_wxXmlDocument_GetFileEncoding, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetFileEncoding }}; -// wxString GetFileEncoding() const; -static int LUACALL wxLua_wxXmlDocument_GetFileEncoding(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetFileEncoding - wxString returns = (self->GetFileEncoding()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetFileType[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetFileType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetFileType[1] = {{ wxLua_wxXmlDocument_GetFileType, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetFileType }}; -// %wxchkver_3_1_1 wxTextFileType GetFileType() const; -static int LUACALL wxLua_wxXmlDocument_GetFileType(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetFileType - wxTextFileType returns = (self->GetFileType()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxCHECK_VERSION(2,9,2)) -static int LUACALL wxLua_wxXmlDocument_GetLibraryVersionInfo(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetLibraryVersionInfo[1] = {{ wxLua_wxXmlDocument_GetLibraryVersionInfo, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// %wxchkver_3_0_0 static wxVersionInfo GetLibraryVersionInfo(); -static int LUACALL wxLua_wxXmlDocument_GetLibraryVersionInfo(lua_State *L) -{ - // call GetLibraryVersionInfo - // allocate a new object using the copy constructor - wxVersionInfo* returns = new wxVersionInfo(wxXmlDocument::GetLibraryVersionInfo()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxVersionInfo); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxVersionInfo); - - return 1; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxCHECK_VERSION(2,9,2)) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetRoot[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetRoot[1] = {{ wxLua_wxXmlDocument_GetRoot, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetRoot }}; -// wxXmlNode *GetRoot() const; -static int LUACALL wxLua_wxXmlDocument_GetRoot(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetRoot - wxXmlNode* returns = (wxXmlNode*)self->GetRoot(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlNode); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_GetVersion[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_GetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_GetVersion[1] = {{ wxLua_wxXmlDocument_GetVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_GetVersion }}; -// wxString GetVersion() const; -static int LUACALL wxLua_wxXmlDocument_GetVersion(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call GetVersion - wxString returns = (self->GetVersion()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_IsOk[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_IsOk(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_IsOk[1] = {{ wxLua_wxXmlDocument_IsOk, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_IsOk }}; -// bool IsOk() const; -static int LUACALL wxLua_wxXmlDocument_IsOk(lua_State *L) -{ - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call IsOk - bool returns = (self->IsOk()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_Load2[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_Load2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Load2[1] = {{ wxLua_wxXmlDocument_Load2, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlDocument_Load2 }}; -// !%wxchkver_2_9_0 bool Load(const wxString& filename, const wxString& encoding = "UTF-8"); -static int LUACALL wxLua_wxXmlDocument_Load2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString encoding = "UTF-8" - const wxString encoding = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("UTF-8"))); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call Load - bool returns = (self->Load(filename, encoding)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_Load1[] = { &wxluatype_wxXmlDocument, &wxluatype_wxInputStream, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlDocument_Load1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Load1[1] = {{ wxLua_wxXmlDocument_Load1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxXmlDocument_Load1 }}; -// %wxchkver_2_9_0 bool Load(wxInputStream& stream, const wxString& encoding = "UTF-8", int flags = wxXMLDOC_NONE); -static int LUACALL wxLua_wxXmlDocument_Load1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxXMLDOC_NONE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxXMLDOC_NONE); - // const wxString encoding = "UTF-8" - const wxString encoding = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("UTF-8"))); - // wxInputStream stream - wxInputStream * stream = (wxInputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxInputStream); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call Load - bool returns = (self->Load(*stream, encoding, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_Load[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlDocument_Load(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Load[1] = {{ wxLua_wxXmlDocument_Load, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxXmlDocument_Load }}; -// %wxchkver_2_9_0 bool Load(const wxString& filename, const wxString& encoding = "UTF-8", int flags = wxXMLDOC_NONE); -static int LUACALL wxLua_wxXmlDocument_Load(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int flags = wxXMLDOC_NONE - int flags = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 4) : wxXMLDOC_NONE); - // const wxString encoding = "UTF-8" - const wxString encoding = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxT("UTF-8"))); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call Load - bool returns = (self->Load(filename, encoding, flags)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_Save2[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_Save2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Save2[1] = {{ wxLua_wxXmlDocument_Save2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_Save2 }}; -// !%wxchkver_2_9_0 bool Save(const wxString& filename) const; -static int LUACALL wxLua_wxXmlDocument_Save2(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call Save - bool returns = (self->Save(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_Save1[] = { &wxluatype_wxXmlDocument, &wxluatype_wxOutputStream, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlDocument_Save1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Save1[1] = {{ wxLua_wxXmlDocument_Save1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlDocument_Save1 }}; -// %wxchkver_2_9_0 bool Save(wxOutputStream& stream, int indentstep = 1) const; -static int LUACALL wxLua_wxXmlDocument_Save1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int indentstep = 1 - int indentstep = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // wxOutputStream stream - wxOutputStream * stream = (wxOutputStream *)wxluaT_getuserdatatype(L, 2, wxluatype_wxOutputStream); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call Save - bool returns = (self->Save(*stream, indentstep)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_Save[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlDocument_Save(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Save[1] = {{ wxLua_wxXmlDocument_Save, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlDocument_Save }}; -// %wxchkver_2_9_0 bool Save(const wxString& filename, int indentstep = 1) const; -static int LUACALL wxLua_wxXmlDocument_Save(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int indentstep = 1 - int indentstep = (argCount >= 3 ? (int)wxlua_getnumbertype(L, 3) : 1); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call Save - bool returns = (self->Save(filename, indentstep)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetDoctype[] = { &wxluatype_wxXmlDocument, &wxluatype_wxXmlDoctype, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetDoctype(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetDoctype[1] = {{ wxLua_wxXmlDocument_SetDoctype, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetDoctype }}; -// %wxchkver_3_1_0 void SetDoctype(const wxXmlDoctype& doctype); -static int LUACALL wxLua_wxXmlDocument_SetDoctype(lua_State *L) -{ - // const wxXmlDoctype doctype - const wxXmlDoctype * doctype = (const wxXmlDoctype *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlDoctype); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetDoctype - self->SetDoctype(*doctype); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetDocumentNode[] = { &wxluatype_wxXmlDocument, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetDocumentNode(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetDocumentNode[1] = {{ wxLua_wxXmlDocument_SetDocumentNode, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetDocumentNode }}; -// %wxchkver_3_0_0 void SetDocumentNode(wxXmlNode* node); -static int LUACALL wxLua_wxXmlDocument_SetDocumentNode(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetDocumentNode - self->SetDocumentNode(node); - - return 0; -} - -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetEncoding[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetEncoding[1] = {{ wxLua_wxXmlDocument_SetEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetEncoding }}; -// !wxUSE_UNICODE && %wxchkver_2_9_0 void SetEncoding(const wxString& enc); -static int LUACALL wxLua_wxXmlDocument_SetEncoding(lua_State *L) -{ - // const wxString enc - const wxString enc = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetEncoding - self->SetEncoding(enc); - - return 0; -} - -#endif // (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetFileEncoding[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetFileEncoding(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetFileEncoding[1] = {{ wxLua_wxXmlDocument_SetFileEncoding, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetFileEncoding }}; -// void SetFileEncoding(const wxString& encoding); -static int LUACALL wxLua_wxXmlDocument_SetFileEncoding(lua_State *L) -{ - // const wxString encoding - const wxString encoding = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetFileEncoding - self->SetFileEncoding(encoding); - - return 0; -} - - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetFileType[] = { &wxluatype_wxXmlDocument, &wxluatype_TINTEGER, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetFileType(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetFileType[1] = {{ wxLua_wxXmlDocument_SetFileType, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetFileType }}; -// %wxchkver_3_1_1 void SetFileType(wxTextFileType fileType); -static int LUACALL wxLua_wxXmlDocument_SetFileType(lua_State *L) -{ - // wxTextFileType fileType - wxTextFileType fileType = (wxTextFileType)wxlua_getenumtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetFileType - self->SetFileType(fileType); - - return 0; -} - -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetRoot[] = { &wxluatype_wxXmlDocument, &wxluatype_wxXmlNode, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetRoot(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetRoot[1] = {{ wxLua_wxXmlDocument_SetRoot, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetRoot }}; -// void SetRoot(%ungc wxXmlNode *node); -static int LUACALL wxLua_wxXmlDocument_SetRoot(lua_State *L) -{ - // wxXmlNode node - wxXmlNode * node = (wxXmlNode *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlNode); - if (wxluaO_isgcobject(L, node)) wxluaO_undeletegcobject(L, node); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetRoot - self->SetRoot(node); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_SetVersion[] = { &wxluatype_wxXmlDocument, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_SetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_SetVersion[1] = {{ wxLua_wxXmlDocument_SetVersion, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_SetVersion }}; -// void SetVersion(const wxString& version); -static int LUACALL wxLua_wxXmlDocument_SetVersion(lua_State *L) -{ - // const wxString version - const wxString version = wxlua_getwxStringtype(L, 2); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call SetVersion - self->SetVersion(version); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_delete[] = { &wxluatype_wxXmlDocument, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_delete }}; - - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_op_set[] = { &wxluatype_wxXmlDocument, &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_op_set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_op_set[1] = {{ wxLua_wxXmlDocument_op_set, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_op_set }}; -// %wxchkver_2_9_0 wxXmlDocument& operator=(const wxXmlDocument& doc); -static int LUACALL wxLua_wxXmlDocument_op_set(lua_State *L) -{ - // const wxXmlDocument doc - const wxXmlDocument * doc = (const wxXmlDocument *)wxluaT_getuserdatatype(L, 2, wxluatype_wxXmlDocument); - // get this - wxXmlDocument * self = (wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call op_set - (*self)=(*doc); - wxXmlDocument* returns = self; - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDocument); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_constructor3[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_constructor3(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_constructor3[1] = {{ wxLua_wxXmlDocument_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxXmlDocument_constructor3 }}; -// !%wxchkver_2_9_0 wxXmlDocument(const wxString& filename, const wxString& encoding = "UTF-8"); -static int LUACALL wxLua_wxXmlDocument_constructor3(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString encoding = "UTF-8" - const wxString encoding = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("UTF-8"))); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call constructor - wxXmlDocument* returns = new wxXmlDocument(filename, encoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlDocument); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDocument); - - return 1; -} - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_constructor2[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlDocument_constructor2(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_constructor2[1] = {{ wxLua_wxXmlDocument_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxXmlDocument_constructor2 }}; -// %wxchkver_2_9_0 wxXmlDocument(const wxString& filename, const wxString& encoding = "UTF-8"); -static int LUACALL wxLua_wxXmlDocument_constructor2(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString encoding = "UTF-8" - const wxString encoding = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxT("UTF-8"))); - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 1); - // call constructor - wxXmlDocument* returns = new wxXmlDocument(filename, encoding); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlDocument); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDocument); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlDocument_constructor1[] = { &wxluatype_wxXmlDocument, NULL }; -static int LUACALL wxLua_wxXmlDocument_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_constructor1[1] = {{ wxLua_wxXmlDocument_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_constructor1 }}; -// %wxchkver_2_9_0 wxXmlDocument(const wxXmlDocument& doc); -static int LUACALL wxLua_wxXmlDocument_constructor1(lua_State *L) -{ - // const wxXmlDocument doc - const wxXmlDocument * doc = (const wxXmlDocument *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlDocument); - // call constructor - wxXmlDocument* returns = new wxXmlDocument(*doc); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlDocument); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDocument); - - return 1; -} - -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -static int LUACALL wxLua_wxXmlDocument_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_constructor[1] = {{ wxLua_wxXmlDocument_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// wxXmlDocument(); -static int LUACALL wxLua_wxXmlDocument_constructor(lua_State *L) -{ - // call constructor - wxXmlDocument* returns = new wxXmlDocument(); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlDocument); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlDocument); - - return 1; -} - - - - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Load_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_Load2, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlDocument_Load2 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) - { wxLua_wxXmlDocument_Load1, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxXmlDocument_Load1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_Load, WXLUAMETHOD_METHOD, 2, 4, s_wxluatypeArray_wxLua_wxXmlDocument_Load }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlDocument_Load_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlDocument_Load_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_Save_overload[] = -{ - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_Save2, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlDocument_Save2 }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) - { wxLua_wxXmlDocument_Save1, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlDocument_Save1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS) - -#if (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_Save, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxXmlDocument_Save }, -#endif // (wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) -}; -static int s_wxluafunc_wxLua_wxXmlDocument_Save_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlDocument_Save_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlDocument_constructor_overload[] = -{ - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_constructor3, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxXmlDocument_constructor3 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_constructor2, WXLUAMETHOD_CONSTRUCTOR, 1, 2, s_wxluatypeArray_wxLua_wxXmlDocument_constructor2 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxXmlDocument_constructor1 }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxLua_wxXmlDocument_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }, -}; -static int s_wxluafunc_wxLua_wxXmlDocument_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlDocument_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) - -void wxLua_wxXmlDocument_delete_function(void** p) -{ - wxXmlDocument* o = (wxXmlDocument*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXmlDocument_methods[] = { -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "AppendToProlog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_AppendToProlog, 1, NULL }, - { "DetachDocumentNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_DetachDocumentNode, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "DetachRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_DetachRoot, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetDoctype", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetDoctype, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetDocumentNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetDocumentNode, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetEOL", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetEOL, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetEncoding, 1, NULL }, -#endif // (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "GetFileEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetFileEncoding, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "GetFileType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetFileType, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxCHECK_VERSION(2,9,2)) - { "GetLibraryVersionInfo", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxXmlDocument_GetLibraryVersionInfo, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxCHECK_VERSION(2,9,2)) - - { "GetRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetRoot, 1, NULL }, - { "GetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_GetVersion, 1, NULL }, - { "IsOk", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_IsOk, 1, NULL }, - -#if ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_Load_overload, s_wxluafunc_wxLua_wxXmlDocument_Load_overload_count, 0 }, - { "Save", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_Save_overload, s_wxluafunc_wxLua_wxXmlDocument_Save_overload_count, 0 }, -#endif // ((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxUSE_STREAMS))||((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetDoctype", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetDoctype, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetDocumentNode", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetDocumentNode, 1, NULL }, -#endif // ((wxCHECK_VERSION(3,0,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetEncoding, 1, NULL }, -#endif // (!wxUSE_UNICODE && wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "SetFileEncoding", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetFileEncoding, 1, NULL }, - -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "SetFileType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetFileType, 1, NULL }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - - { "SetRoot", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetRoot, 1, NULL }, - { "SetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_SetVersion, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxXmlDocument_delete, 1, NULL }, - -#if ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "op_set", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlDocument_op_set, 1, NULL }, -#endif // ((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) - { "wxXmlDocument", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXmlDocument_constructor_overload, s_wxluafunc_wxLua_wxXmlDocument_constructor_overload_count, 0 }, -#endif // (((!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(((wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML)) && (wxLUA_USE_wxXML && wxUSE_XML))||(wxLUA_USE_wxXML && wxUSE_XML) - - { 0, 0, 0, 0 }, -}; - -int wxXmlDocument_methodCount = sizeof(wxXmlDocument_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxXML && wxUSE_XML - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxxml_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxxml() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxxml(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxxml() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxxml(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - { "wxTextFileType_Dos", wxTextFileType_Dos }, - { "wxTextFileType_Mac", wxTextFileType_Mac }, - { "wxTextFileType_None", wxTextFileType_None }, - { "wxTextFileType_Os2", wxTextFileType_Os2 }, - { "wxTextFileType_Unix", wxTextFileType_Unix }, -#endif // (wxCHECK_VERSION(3,1,1)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if wxLUA_USE_wxXML && wxUSE_XML - { "wxXML_ATTRIBUTE_NODE", wxXML_ATTRIBUTE_NODE }, - { "wxXML_CDATA_SECTION_NODE", wxXML_CDATA_SECTION_NODE }, - { "wxXML_COMMENT_NODE", wxXML_COMMENT_NODE }, - { "wxXML_DOCUMENT_FRAG_NODE", wxXML_DOCUMENT_FRAG_NODE }, - { "wxXML_DOCUMENT_NODE", wxXML_DOCUMENT_NODE }, - { "wxXML_DOCUMENT_TYPE_NODE", wxXML_DOCUMENT_TYPE_NODE }, - { "wxXML_ELEMENT_NODE", wxXML_ELEMENT_NODE }, - { "wxXML_ENTITY_NODE", wxXML_ENTITY_NODE }, - { "wxXML_ENTITY_REF_NODE", wxXML_ENTITY_REF_NODE }, - { "wxXML_HTML_DOCUMENT_NODE", wxXML_HTML_DOCUMENT_NODE }, - { "wxXML_NOTATION_NODE", wxXML_NOTATION_NODE }, - { "wxXML_PI_NODE", wxXML_PI_NODE }, - { "wxXML_TEXT_NODE", wxXML_TEXT_NODE }, -#endif // wxLUA_USE_wxXML && wxUSE_XML - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxxml() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxxml(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxxml() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxxml(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxxml() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxxml() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxxml(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxxml() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxXmlAttribute = "wxXmlAttribute"; -static const char* wxluaclassname_wxXmlDoctype = "wxXmlDoctype"; -static const char* wxluaclassname_wxXmlDocument = "wxXmlDocument"; -static const char* wxluaclassname_wxXmlNode = "wxXmlNode"; -static const char* wxluaclassname_wxXmlProperty = "wxXmlProperty"; - -static const char* wxluabaseclassnames_wxXmlDocument[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxXmlDocument[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - extern wxLuaBindMethod wxXmlProperty_methods[]; - extern int wxXmlProperty_methodCount; - extern void wxLua_wxXmlProperty_delete_function(void** p); -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - extern wxLuaBindMethod wxXmlDoctype_methods[]; - extern int wxXmlDoctype_methodCount; - extern void wxLua_wxXmlDoctype_delete_function(void** p); -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if wxLUA_USE_wxXML && wxUSE_XML - extern wxLuaBindMethod wxXmlAttribute_methods[]; - extern int wxXmlAttribute_methodCount; - extern void wxLua_wxXmlAttribute_delete_function(void** p); - extern wxLuaBindMethod wxXmlDocument_methods[]; - extern int wxXmlDocument_methodCount; - extern void wxLua_wxXmlDocument_delete_function(void** p); - extern wxLuaBindMethod wxXmlNode_methods[]; - extern int wxXmlNode_methodCount; - extern void wxLua_wxXmlNode_delete_function(void** p); -#endif // wxLUA_USE_wxXML && wxUSE_XML - - - - -wxLuaBindClass* wxLuaGetClassList_wxxml(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxLUA_USE_wxXML && wxUSE_XML - { wxluaclassname_wxXmlAttribute, wxXmlAttribute_methods, wxXmlAttribute_methodCount, NULL, &wxluatype_wxXmlAttribute, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxXmlAttribute_delete_function, }, -#endif // wxLUA_USE_wxXML && wxUSE_XML - -#if (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxluaclassname_wxXmlDoctype, wxXmlDoctype_methods, wxXmlDoctype_methodCount, NULL, &wxluatype_wxXmlDoctype, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxXmlDoctype_delete_function, }, -#endif // (wxCHECK_VERSION(3,1,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - -#if wxLUA_USE_wxXML && wxUSE_XML - { wxluaclassname_wxXmlDocument, wxXmlDocument_methods, wxXmlDocument_methodCount, CLASSINFO(wxXmlDocument), &wxluatype_wxXmlDocument, wxluabaseclassnames_wxXmlDocument, wxluabaseclassbinds_wxXmlDocument, NULL, NULL, NULL, 0, &wxLua_wxXmlDocument_delete_function, }, - { wxluaclassname_wxXmlNode, wxXmlNode_methods, wxXmlNode_methodCount, NULL, &wxluatype_wxXmlNode, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxXmlNode_delete_function, }, -#endif // wxLUA_USE_wxXML && wxUSE_XML - -#if (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - { wxluaclassname_wxXmlProperty, wxXmlProperty_methods, wxXmlProperty_methodCount, NULL, &wxluatype_wxXmlProperty, NULL, NULL, NULL, NULL, NULL, 0, &wxLua_wxXmlProperty_delete_function, }, -#endif // (!wxCHECK_VERSION(2,9,0)) && (wxLUA_USE_wxXML && wxUSE_XML) - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxxml() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxxml, wxLuaBinding) - -wxLuaBinding_wxxml::wxLuaBinding_wxxml() : wxLuaBinding() -{ - m_bindingName = wxT("wxxml"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxxml(m_classCount); - m_numberArray = wxLuaGetDefineList_wxxml(m_numberCount); - m_stringArray = wxLuaGetStringList_wxxml(m_stringCount); - m_eventArray = wxLuaGetEventList_wxxml(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxxml(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxxml(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxxml_init() -{ - static wxLuaBinding_wxxml m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxbind/src/wxxrc_bind.cpp b/wxLua/modules/wxbind/src/wxxrc_bind.cpp deleted file mode 100644 index 0e7cc467..00000000 --- a/wxLua/modules/wxbind/src/wxxrc_bind.cpp +++ /dev/null @@ -1,881 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxxrc_xrc.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxbind/include/wxxrc_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - - -#if wxLUA_USE_wxXRC && wxUSE_XRC -// --------------------------------------------------------------------------- -// Bind class wxXmlResource -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxXmlResource' -int wxluatype_wxXmlResource = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_AttachUnknownControl[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, &wxluatype_wxWindow, &wxluatype_wxWindow, NULL }; -static int LUACALL wxLua_wxXmlResource_AttachUnknownControl(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_AttachUnknownControl[1] = {{ wxLua_wxXmlResource_AttachUnknownControl, WXLUAMETHOD_METHOD, 3, 4, s_wxluatypeArray_wxLua_wxXmlResource_AttachUnknownControl }}; -// bool AttachUnknownControl(const wxString& name, wxWindow* control, wxWindow* parent = NULL); -static int LUACALL wxLua_wxXmlResource_AttachUnknownControl(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindow parent = NULL - wxWindow * parent = (argCount >= 4 ? (wxWindow *)wxluaT_getuserdatatype(L, 4, wxluatype_wxWindow) : NULL); - // wxWindow control - wxWindow * control = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call AttachUnknownControl - bool returns = (self->AttachUnknownControl(name, control, parent)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_ClearHandlers[] = { &wxluatype_wxXmlResource, NULL }; -static int LUACALL wxLua_wxXmlResource_ClearHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_ClearHandlers[1] = {{ wxLua_wxXmlResource_ClearHandlers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlResource_ClearHandlers }}; -// void ClearHandlers(); -static int LUACALL wxLua_wxXmlResource_ClearHandlers(lua_State *L) -{ - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call ClearHandlers - self->ClearHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_CompareVersion[] = { &wxluatype_wxXmlResource, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlResource_CompareVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_CompareVersion[1] = {{ wxLua_wxXmlResource_CompareVersion, WXLUAMETHOD_METHOD, 5, 5, s_wxluatypeArray_wxLua_wxXmlResource_CompareVersion }}; -// int CompareVersion(int major, int minor, int release, int revision) const; -static int LUACALL wxLua_wxXmlResource_CompareVersion(lua_State *L) -{ - // int revision - int revision = (int)wxlua_getnumbertype(L, 5); - // int release - int release = (int)wxlua_getnumbertype(L, 4); - // int minor - int minor = (int)wxlua_getnumbertype(L, 3); - // int major - int major = (int)wxlua_getnumbertype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call CompareVersion - int returns = (self->CompareVersion(major, minor, release, revision)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxXmlResource_Get(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_Get[1] = {{ wxLua_wxXmlResource_Get, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxXmlResource* Get(); -static int LUACALL wxLua_wxXmlResource_Get(lua_State *L) -{ - // call Get - wxXmlResource* returns = (wxXmlResource*)wxXmlResource::Get(); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_GetFlags[] = { &wxluatype_wxXmlResource, NULL }; -static int LUACALL wxLua_wxXmlResource_GetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_GetFlags[1] = {{ wxLua_wxXmlResource_GetFlags, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlResource_GetFlags }}; -// int GetFlags(); -static int LUACALL wxLua_wxXmlResource_GetFlags(lua_State *L) -{ - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call GetFlags - int returns = (self->GetFlags()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_GetVersion[] = { &wxluatype_wxXmlResource, NULL }; -static int LUACALL wxLua_wxXmlResource_GetVersion(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_GetVersion[1] = {{ wxLua_wxXmlResource_GetVersion, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlResource_GetVersion }}; -// long GetVersion() const; -static int LUACALL wxLua_wxXmlResource_GetVersion(lua_State *L) -{ - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call GetVersion - long returns = (self->GetVersion()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_GetXRCID[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlResource_GetXRCID(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_GetXRCID[1] = {{ wxLua_wxXmlResource_GetXRCID, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 2, s_wxluatypeArray_wxLua_wxXmlResource_GetXRCID }}; -// static int GetXRCID(const wxString &stringID, int value_if_not_found = wxID_NONE); -static int LUACALL wxLua_wxXmlResource_GetXRCID(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // int value_if_not_found = wxID_NONE - int value_if_not_found = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxID_NONE); - // const wxString stringID - const wxString stringID = wxlua_getwxStringtype(L, 1); - // call GetXRCID - int returns = (wxXmlResource::GetXRCID(stringID, value_if_not_found)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_InitAllHandlers[] = { &wxluatype_wxXmlResource, NULL }; -static int LUACALL wxLua_wxXmlResource_InitAllHandlers(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_InitAllHandlers[1] = {{ wxLua_wxXmlResource_InitAllHandlers, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxXmlResource_InitAllHandlers }}; -// void InitAllHandlers(); -static int LUACALL wxLua_wxXmlResource_InitAllHandlers(lua_State *L) -{ - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call InitAllHandlers - self->InitAllHandlers(); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_Load[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_Load(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_Load[1] = {{ wxLua_wxXmlResource_Load, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_Load }}; -// bool Load(const wxString& filemask); -static int LUACALL wxLua_wxXmlResource_Load(lua_State *L) -{ - // const wxString filemask - const wxString filemask = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call Load - bool returns = (self->Load(filemask)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxXRC && wxUSE_XRC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadBitmap[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadBitmap(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadBitmap[1] = {{ wxLua_wxXmlResource_LoadBitmap, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_LoadBitmap }}; -// wxBitmap LoadBitmap(const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadBitmap(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadBitmap - // allocate a new object using the copy constructor - wxBitmap* returns = new wxBitmap(self->LoadBitmap(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxBitmap); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxBitmap); - - return 1; -} - -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadDialog1[] = { &wxluatype_wxXmlResource, &wxluatype_wxDialog, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadDialog1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadDialog1[1] = {{ wxLua_wxXmlResource_LoadDialog1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxXmlResource_LoadDialog1 }}; -// bool LoadDialog(wxDialog* dlg, wxWindow *parent, const wxString &name); -static int LUACALL wxLua_wxXmlResource_LoadDialog1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxDialog dlg - wxDialog * dlg = (wxDialog *)wxluaT_getuserdatatype(L, 2, wxluatype_wxDialog); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadDialog - bool returns = (self->LoadDialog(dlg, parent, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadDialog[] = { &wxluatype_wxXmlResource, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadDialog(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadDialog[1] = {{ wxLua_wxXmlResource_LoadDialog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadDialog }}; -// wxDialog* LoadDialog(wxWindow* parent, const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadDialog(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadDialog - wxDialog* returns = (wxDialog*)self->LoadDialog(parent, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxDialog); - - return 1; -} - -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxXRC && wxUSE_XRC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadFrame[] = { &wxluatype_wxXmlResource, &wxluatype_wxFrame, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadFrame(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadFrame[1] = {{ wxLua_wxXmlResource_LoadFrame, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxXmlResource_LoadFrame }}; -// bool LoadFrame(wxFrame* frame, wxWindow* parent, const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadFrame(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxFrame frame - wxFrame * frame = (wxFrame *)wxluaT_getuserdatatype(L, 2, wxluatype_wxFrame); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadFrame - bool returns = (self->LoadFrame(frame, parent, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxXRC && wxUSE_XRC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadIcon[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadIcon(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadIcon[1] = {{ wxLua_wxXmlResource_LoadIcon, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_LoadIcon }}; -// wxIcon LoadIcon(const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadIcon(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadIcon - // allocate a new object using the copy constructor - wxIcon* returns = new wxIcon(self->LoadIcon(name)); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxIcon); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxIcon); - - return 1; -} - -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadMenu[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadMenu(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadMenu[1] = {{ wxLua_wxXmlResource_LoadMenu, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_LoadMenu }}; -// wxMenu* LoadMenu(const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadMenu(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadMenu - wxMenu* returns = (wxMenu*)self->LoadMenu(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenu); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadMenuBar1[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadMenuBar1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar1[1] = {{ wxLua_wxXmlResource_LoadMenuBar1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_LoadMenuBar1 }}; -// wxMenuBar* LoadMenuBar(const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadMenuBar1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadMenuBar - wxMenuBar* returns = (wxMenuBar*)self->LoadMenuBar(name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadMenuBar[] = { &wxluatype_wxXmlResource, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadMenuBar(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar[1] = {{ wxLua_wxXmlResource_LoadMenuBar, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadMenuBar }}; -// wxMenuBar* LoadMenuBar(wxWindow* parent, const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadMenuBar(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadMenuBar - wxMenuBar* returns = (wxMenuBar*)self->LoadMenuBar(parent, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxMenuBar); - - return 1; -} - -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadPanel1[] = { &wxluatype_wxXmlResource, &wxluatype_wxPanel, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadPanel1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadPanel1[1] = {{ wxLua_wxXmlResource_LoadPanel1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxXmlResource_LoadPanel1 }}; -// bool LoadPanel(wxPanel *panel, wxWindow *parent, const wxString &name); -static int LUACALL wxLua_wxXmlResource_LoadPanel1(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 4); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 3, wxluatype_wxWindow); - // wxPanel panel - wxPanel * panel = (wxPanel *)wxluaT_getuserdatatype(L, 2, wxluatype_wxPanel); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadPanel - bool returns = (self->LoadPanel(panel, parent, name)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadPanel[] = { &wxluatype_wxXmlResource, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadPanel(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadPanel[1] = {{ wxLua_wxXmlResource_LoadPanel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadPanel }}; -// wxPanel* LoadPanel(wxWindow* parent, const wxString &name); -static int LUACALL wxLua_wxXmlResource_LoadPanel(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadPanel - wxPanel* returns = (wxPanel*)self->LoadPanel(parent, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxPanel); - - return 1; -} - - -#if (wxLUA_USE_wxToolbar) && (wxLUA_USE_wxXRC && wxUSE_XRC) -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_LoadToolBar[] = { &wxluatype_wxXmlResource, &wxluatype_wxWindow, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_LoadToolBar(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadToolBar[1] = {{ wxLua_wxXmlResource_LoadToolBar, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadToolBar }}; -// wxToolBar* LoadToolBar(wxWindow *parent, const wxString& name); -static int LUACALL wxLua_wxXmlResource_LoadToolBar(lua_State *L) -{ - // const wxString name - const wxString name = wxlua_getwxStringtype(L, 3); - // wxWindow parent - wxWindow * parent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call LoadToolBar - wxToolBar* returns = (wxToolBar*)self->LoadToolBar(parent, name); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxToolBar); - - return 1; -} - -#endif // (wxLUA_USE_wxToolbar) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_Set[] = { &wxluatype_wxXmlResource, NULL }; -static int LUACALL wxLua_wxXmlResource_Set(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_Set[1] = {{ wxLua_wxXmlResource_Set, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 1, 1, s_wxluatypeArray_wxLua_wxXmlResource_Set }}; -// static %gc wxXmlResource* Set(%ungc wxXmlResource *res); -static int LUACALL wxLua_wxXmlResource_Set(lua_State *L) -{ - // wxXmlResource res - wxXmlResource * res = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - if (wxluaO_isgcobject(L, res)) wxluaO_undeletegcobject(L, res); - // call Set - wxXmlResource* returns = (wxXmlResource*)wxXmlResource::Set(res); - if (!wxluaO_isgcobject(L, returns)) wxluaO_addgcobject(L, returns, wxluatype_wxXmlResource); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_SetDomain[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_SetDomain(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_SetDomain[1] = {{ wxLua_wxXmlResource_SetDomain, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_SetDomain }}; -// void SetDomain(const wxString& domain); -static int LUACALL wxLua_wxXmlResource_SetDomain(lua_State *L) -{ - // const wxString domain - const wxString domain = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call SetDomain - self->SetDomain(domain); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_SetFlags[] = { &wxluatype_wxXmlResource, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxXmlResource_SetFlags(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_SetFlags[1] = {{ wxLua_wxXmlResource_SetFlags, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_SetFlags }}; -// void SetFlags(int flags); -static int LUACALL wxLua_wxXmlResource_SetFlags(lua_State *L) -{ - // int flags - int flags = (int)wxlua_getnumbertype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call SetFlags - self->SetFlags(flags); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_Unload[] = { &wxluatype_wxXmlResource, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_Unload(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_Unload[1] = {{ wxLua_wxXmlResource_Unload, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_Unload }}; -// bool Unload(const wxString& filename); -static int LUACALL wxLua_wxXmlResource_Unload(lua_State *L) -{ - // const wxString filename - const wxString filename = wxlua_getwxStringtype(L, 2); - // get this - wxXmlResource * self = (wxXmlResource *)wxluaT_getuserdatatype(L, 1, wxluatype_wxXmlResource); - // call Unload - bool returns = (self->Unload(filename)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_delete[] = { &wxluatype_wxXmlResource, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxXmlResource_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_constructor1[] = { &wxluatype_TSTRING, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_constructor1[1] = {{ wxLua_wxXmlResource_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxXmlResource_constructor1 }}; -// wxXmlResource(const wxString& filemask, int flags = wxXRC_USE_LOCALE, const wxString& domain = ""); -static int LUACALL wxLua_wxXmlResource_constructor1(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = "" - const wxString domain = (argCount >= 3 ? wxlua_getwxStringtype(L, 3) : wxString(wxEmptyString)); - // int flags = wxXRC_USE_LOCALE - int flags = (argCount >= 2 ? (int)wxlua_getnumbertype(L, 2) : wxXRC_USE_LOCALE); - // const wxString filemask - const wxString filemask = wxlua_getwxStringtype(L, 1); - // call constructor - wxXmlResource* returns = new wxXmlResource(filemask, flags, domain); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlResource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxXmlResource_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxXmlResource_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_constructor[1] = {{ wxLua_wxXmlResource_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxXmlResource_constructor }}; -// wxXmlResource(int flags = wxXRC_USE_LOCALE, const wxString& domain = ""); -static int LUACALL wxLua_wxXmlResource_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // const wxString domain = "" - const wxString domain = (argCount >= 2 ? wxlua_getwxStringtype(L, 2) : wxString(wxEmptyString)); - // int flags = wxXRC_USE_LOCALE - int flags = (argCount >= 1 ? (int)wxlua_getnumbertype(L, 1) : wxXRC_USE_LOCALE); - // call constructor - wxXmlResource* returns = new wxXmlResource(flags, domain); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxXmlResource); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxXmlResource); - - return 1; -} - - - - -#if ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadDialog_overload[] = -{ - -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { wxLua_wxXmlResource_LoadDialog1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxXmlResource_LoadDialog1 }, -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { wxLua_wxXmlResource_LoadDialog, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadDialog }, -#endif // (wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC) -}; -static int s_wxluafunc_wxLua_wxXmlResource_LoadDialog_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlResource_LoadDialog_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC)) - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC)) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar_overload[] = -{ - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { wxLua_wxXmlResource_LoadMenuBar1, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxXmlResource_LoadMenuBar1 }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { wxLua_wxXmlResource_LoadMenuBar, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadMenuBar }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) -}; -static int s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar_overload)/sizeof(wxLuaBindCFunc); - -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC)) - -#if (wxLUA_USE_wxXRC && wxUSE_XRC) -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_LoadPanel_overload[] = -{ - { wxLua_wxXmlResource_LoadPanel1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatypeArray_wxLua_wxXmlResource_LoadPanel1 }, - { wxLua_wxXmlResource_LoadPanel, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxXmlResource_LoadPanel }, -}; -static int s_wxluafunc_wxLua_wxXmlResource_LoadPanel_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlResource_LoadPanel_overload)/sizeof(wxLuaBindCFunc); - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxXmlResource_constructor_overload[] = -{ - { wxLua_wxXmlResource_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 3, s_wxluatypeArray_wxLua_wxXmlResource_constructor1 }, - { wxLua_wxXmlResource_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxXmlResource_constructor }, -}; -static int s_wxluafunc_wxLua_wxXmlResource_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxXmlResource_constructor_overload)/sizeof(wxLuaBindCFunc); - -#endif // (wxLUA_USE_wxXRC && wxUSE_XRC) - -void wxLua_wxXmlResource_delete_function(void** p) -{ - wxXmlResource* o = (wxXmlResource*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxXmlResource_methods[] = { - { "AttachUnknownControl", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_AttachUnknownControl, 1, NULL }, - { "ClearHandlers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_ClearHandlers, 1, NULL }, - { "CompareVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_CompareVersion, 1, NULL }, - { "Get", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxXmlResource_Get, 1, NULL }, - { "GetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_GetFlags, 1, NULL }, - { "GetVersion", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_GetVersion, 1, NULL }, - { "GetXRCID", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxXmlResource_GetXRCID, 1, NULL }, - { "InitAllHandlers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_InitAllHandlers, 1, NULL }, - { "Load", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_Load, 1, NULL }, - -#if (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { "LoadBitmap", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadBitmap, 1, NULL }, -#endif // (wxLUA_USE_wxBitmap) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC)) - { "LoadDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadDialog_overload, s_wxluafunc_wxLua_wxXmlResource_LoadDialog_overload_count, 0 }, -#endif // ((wxLUA_USE_wxDialog) && (wxLUA_USE_wxXRC && wxUSE_XRC)) - -#if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { "LoadFrame", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadFrame, 1, NULL }, -#endif // (wxLUA_USE_wxFrame) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxIcon) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { "LoadIcon", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadIcon, 1, NULL }, -#endif // (wxLUA_USE_wxIcon) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { "LoadMenu", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadMenu, 1, NULL }, -#endif // (wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC)) - { "LoadMenuBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar_overload, s_wxluafunc_wxLua_wxXmlResource_LoadMenuBar_overload_count, 0 }, -#endif // ((wxLUA_USE_wxMenu && wxUSE_MENUS) && (wxLUA_USE_wxXRC && wxUSE_XRC)) - -#if (wxLUA_USE_wxXRC && wxUSE_XRC) - { "LoadPanel", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadPanel_overload, s_wxluafunc_wxLua_wxXmlResource_LoadPanel_overload_count, 0 }, -#endif // (wxLUA_USE_wxXRC && wxUSE_XRC) - -#if (wxLUA_USE_wxToolbar) && (wxLUA_USE_wxXRC && wxUSE_XRC) - { "LoadToolBar", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_LoadToolBar, 1, NULL }, -#endif // (wxLUA_USE_wxToolbar) && (wxLUA_USE_wxXRC && wxUSE_XRC) - - { "Set", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxXmlResource_Set, 1, NULL }, - { "SetDomain", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_SetDomain, 1, NULL }, - { "SetFlags", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_SetFlags, 1, NULL }, - { "Unload", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxXmlResource_Unload, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxXmlResource_delete, 1, NULL }, - -#if (wxLUA_USE_wxXRC && wxUSE_XRC) - { "wxXmlResource", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxXmlResource_constructor_overload, s_wxluafunc_wxLua_wxXmlResource_constructor_overload_count, 0 }, -#endif // (wxLUA_USE_wxXRC && wxUSE_XRC) - - { 0, 0, 0, 0 }, -}; - -int wxXmlResource_methodCount = sizeof(wxXmlResource_methods)/sizeof(wxLuaBindMethod) - 1; - -#endif // wxLUA_USE_wxXRC && wxUSE_XRC - - - -// --------------------------------------------------------------------------- -// ../modules/wxbind/src/wxxrc_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxxrc() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxxrc(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxxrc() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxxrc(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { -#if wxLUA_USE_wxXRC && wxUSE_XRC - { "wxXRC_NO_RELOADING", wxXRC_NO_RELOADING }, - { "wxXRC_NO_SUBCLASSING", wxXRC_NO_SUBCLASSING }, - { "wxXRC_USE_LOCALE", wxXRC_USE_LOCALE }, -#endif // wxLUA_USE_wxXRC && wxUSE_XRC - - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxxrc() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxxrc(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxxrc() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxxrc(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxxrc() is called to register global functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxxrc() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxxrc(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxxrc() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxObject = "wxObject"; -static const char* wxluaclassname_wxXmlResource = "wxXmlResource"; - -static const char* wxluabaseclassnames_wxXmlResource[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxXmlResource[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -#if wxLUA_USE_wxXRC && wxUSE_XRC - extern wxLuaBindMethod wxXmlResource_methods[]; - extern int wxXmlResource_methodCount; - extern void wxLua_wxXmlResource_delete_function(void** p); -#endif // wxLUA_USE_wxXRC && wxUSE_XRC - - - - -wxLuaBindClass* wxLuaGetClassList_wxxrc(size_t &count) -{ - static wxLuaBindClass classList[] = - { -#if wxLUA_USE_wxXRC && wxUSE_XRC - { wxluaclassname_wxXmlResource, wxXmlResource_methods, wxXmlResource_methodCount, CLASSINFO(wxXmlResource), &wxluatype_wxXmlResource, wxluabaseclassnames_wxXmlResource, wxluabaseclassbinds_wxXmlResource, NULL, NULL, NULL, 0, &wxLua_wxXmlResource_delete_function, }, -#endif // wxLUA_USE_wxXRC && wxUSE_XRC - - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxxrc() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxxrc, wxLuaBinding) - -wxLuaBinding_wxxrc::wxLuaBinding_wxxrc() : wxLuaBinding() -{ - m_bindingName = wxT("wxxrc"); - m_nameSpace = wxT("wx"); - m_classArray = wxLuaGetClassList_wxxrc(m_classCount); - m_numberArray = wxLuaGetDefineList_wxxrc(m_numberCount); - m_stringArray = wxLuaGetStringList_wxxrc(m_stringCount); - m_eventArray = wxLuaGetEventList_wxxrc(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxxrc(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxxrc(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxxrc_init() -{ - static wxLuaBinding_wxxrc m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxlua/CMakeLists.txt b/wxLua/modules/wxlua/CMakeLists.txt index fd44491b..735b5e6c 100644 --- a/wxLua/modules/wxlua/CMakeLists.txt +++ b/wxLua/modules/wxlua/CMakeLists.txt @@ -1,3 +1,4 @@ project( wxLua_Modules_wxLua ) +wxLua_Binding_TARGETS() wxLua_Modules_wxLua_TARGETS() diff --git a/wxLua/modules/wxlua/Makefile b/wxLua/modules/wxlua/Makefile deleted file mode 100644 index 09d0f5f5..00000000 --- a/wxLua/modules/wxlua/Makefile +++ /dev/null @@ -1,63 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLua library using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUA_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = \ - wxldefs.h \ - wxlua.h \ - wxlbind.h \ - wxlcallb.h \ - wxlconsole.h \ - wxllua.h \ - wxlobject.h \ - wxlstate.h \ - wxlversion.h - -SOURCES = \ - bit.cpp \ - lbitlib.cpp \ - wxlbind.cpp \ - wxlcallb.cpp \ - wxlconsole.cpp \ - wxllua.cpp \ - wxlobject.cpp \ - wxlstate.cpp \ - wxlua_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxlua/debug/Makefile b/wxLua/modules/wxlua/debug/Makefile deleted file mode 100644 index eae4d142..00000000 --- a/wxLua/modules/wxlua/debug/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLua library using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUADEBUG_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = \ - wxldebug.h \ - wxlstack.h - -SOURCES = \ - wxldebug.cpp \ - wxlstack.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxlua/debug/wxldebug.cpp b/wxLua/modules/wxlua/debug/wxldebug.cpp index a3e332af..a9f81e38 100644 --- a/wxLua/modules/wxlua/debug/wxldebug.cpp +++ b/wxLua/modules/wxlua/debug/wxldebug.cpp @@ -7,18 +7,18 @@ // Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include #endif -#include "wxlua/debug/wxldebug.h" -#include "wxlua/wxlcallb.h" +#include "wxldebug.h" +#include wxLuaDebugData wxNullLuaDebugData(false); diff --git a/wxLua/modules/wxlua/debug/wxldebug.h b/wxLua/modules/wxlua/debug/wxldebug.h index 378f6cb9..40a944e6 100644 --- a/wxLua/modules/wxlua/debug/wxldebug.h +++ b/wxLua/modules/wxlua/debug/wxldebug.h @@ -12,8 +12,8 @@ #include #include // for wxTreeItemData -#include "wxlua/debug/wxluadebugdefs.h" -#include "wxlua/wxlstate.h" +#include "../debug/wxluadebugdefs.h" +#include class WXDLLIMPEXP_WXLUADEBUG wxLuaDebugData; diff --git a/wxLua/modules/wxlua/debug/wxlstack.cpp b/wxLua/modules/wxlua/debug/wxlstack.cpp index d09806e4..a9c58fca 100644 --- a/wxLua/modules/wxlua/debug/wxlstack.cpp +++ b/wxLua/modules/wxlua/debug/wxlstack.cpp @@ -24,13 +24,13 @@ #include #include -#include "wxlua/debug/wxlstack.h" -#include "wxlua/wxlua.h" -#include "wxlua/wxlcallb.h" -#include "wxlua/debug/wxldebug.h" +#include "wxlstack.h" +#include +#include +#include "wxldebug.h" #if defined(__WXGTK__) || defined(__WXMAC__) || defined(__WXMOTIF__) - #include "art/wxlua.xpm" + #include "../../../art/wxlua.xpm" #endif // Define our own flag to help track down where we've hacked thing to work diff --git a/wxLua/modules/wxlua/debug/wxlstack.h b/wxLua/modules/wxlua/debug/wxlstack.h index 51a6f18e..c2faaadb 100644 --- a/wxLua/modules/wxlua/debug/wxlstack.h +++ b/wxLua/modules/wxlua/debug/wxlstack.h @@ -19,8 +19,8 @@ class WXDLLIMPEXP_FWD_CORE wxListEvent; class WXDLLIMPEXP_FWD_CORE wxSplitterWindow; class WXDLLIMPEXP_FWD_CORE wxProgressDialog; -#include "wxlua/debug/wxluadebugdefs.h" -#include "wxlua/debug/wxldebug.h" +#include "../debug/wxluadebugdefs.h" +#include "../debug/wxldebug.h" class WXDLLIMPEXP_FWD_WXLUADEBUG wxLuaDebugData; diff --git a/wxLua/modules/wxlua/debugger/CMakeLists.txt b/wxLua/modules/wxlua/debugger/CMakeLists.txt index 7362f2fd..ca1bf55c 100644 --- a/wxLua/modules/wxlua/debugger/CMakeLists.txt +++ b/wxLua/modules/wxlua/debugger/CMakeLists.txt @@ -1,3 +1,4 @@ project( wxLua_Modules_wxLua_Debugger ) +wxLua_Binding_TARGETS() wxLua_Modules_wxLua_Debugger_TARGETS() diff --git a/wxLua/modules/wxlua/debugger/Makefile b/wxLua/modules/wxlua/debugger/Makefile deleted file mode 100644 index 61d0d442..00000000 --- a/wxLua/modules/wxlua/debugger/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -# File: Makefile -# Author: John Labenski, J Winwood -# Created: 2002 -# Updated: -# Copyright: (c) 2002 Lomtick Software. All rights reserved. -# -# Makefile for wxLua library using gmake - -# ---------------------------------------------------------------------------- -# Set path to root of wxLua -WXLUA_DIR = ../../.. - -# ---------------------------------------------------------------------------- -# Include wxLua settings using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config.in - -# ---------------------------------------------------------------------------- - -WXLUA_TARGET_LIBNAME = lib$(WXLUADEBUGGER_LIB) - -# ---------------------------------------------------------------------------- - -HEADERS = \ - wxldserv.h \ - wxldtarg.h \ - wxlsock.h \ - wxluadebuggerdefs.h - -SOURCES = \ - wxldserv.cpp \ - wxldtarg.cpp \ - wxlsock.cpp \ - wxluadebugger_bind.cpp - -OBJECTS=$(SOURCES:.cpp=.o) -DEPFILES=$(OBJECTS:.o=.d) - -# ---------------------------------------------------------------------------- - -.cpp.o: - $(CXX) -c $(CXXFLAGS) $(APPEXTRADEFS) -o $@ $< - -all: $(WXLUA_TARGET_LIB_STATIC) $(WXLUA_TARGET_LIB_SHARED) - -clean: cleanlib - -# ---------------------------------------------------------------------------- -# Include wxLua targets using wx-config for wxWidgets parameters - -include $(WXLUA_DIR)/build/Makefile_wx-config_targets.in - --include $(DEPFILES) diff --git a/wxLua/modules/wxlua/debugger/wxldserv.cpp b/wxLua/modules/wxlua/debugger/wxldserv.cpp index dd14b9de..b45a876a 100644 --- a/wxLua/modules/wxlua/debugger/wxldserv.cpp +++ b/wxLua/modules/wxlua/debugger/wxldserv.cpp @@ -7,19 +7,19 @@ // Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include #endif -#include "wx/thread.h" -#include "wxlua/debugger/wxldserv.h" -#include "wxlua/debug/wxlstack.h" +#include +#include "wxldserv.h" +#include "../debug/wxlstack.h" #if !wxCHECK_VERSION(2, 6, 0) #define wxMilliSleep wxUsleep diff --git a/wxLua/modules/wxlua/debugger/wxldserv.h b/wxLua/modules/wxlua/debugger/wxldserv.h index efeb69f8..08a4cb91 100644 --- a/wxLua/modules/wxlua/debugger/wxldserv.h +++ b/wxLua/modules/wxlua/debugger/wxldserv.h @@ -11,10 +11,10 @@ #include #include -#include "wxlua/debugger/wxluadebuggerdefs.h" -#include "wxlua/debugger/wxlsock.h" -#include "wxlua/debug/wxldebug.h" -#include "wxlua/debug/wxlstack.h" +#include "wxluadebuggerdefs.h" +#include "wxlsock.h" +#include "../debug/wxldebug.h" +#include "../debug/wxlstack.h" class WXDLLIMPEXP_WXLUADEBUGGER wxLuaDebuggerBase; class WXDLLIMPEXP_WXLUADEBUGGER wxLuaDebuggerEvent; diff --git a/wxLua/modules/wxlua/debugger/wxldtarg.cpp b/wxLua/modules/wxlua/debugger/wxldtarg.cpp index 379c1ec4..212b6d71 100644 --- a/wxLua/modules/wxlua/debugger/wxldtarg.cpp +++ b/wxLua/modules/wxlua/debugger/wxldtarg.cpp @@ -6,18 +6,18 @@ // Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include #endif -#include "wxlua/debugger/wxldtarg.h" -#include "wxlua/debugger/wxldserv.h" +#include "wxldtarg.h" +#include "wxldserv.h" #if !wxCHECK_VERSION(2, 6, 0) #define wxMilliSleep wxUsleep diff --git a/wxLua/modules/wxlua/debugger/wxldtarg.h b/wxLua/modules/wxlua/debugger/wxldtarg.h index 5a8151ec..46b71ab6 100644 --- a/wxLua/modules/wxlua/debugger/wxldtarg.h +++ b/wxLua/modules/wxlua/debugger/wxldtarg.h @@ -10,10 +10,10 @@ #define LUA_DEBUG_TARGET_H #include -#include "wxlua/debugger/wxluadebuggerdefs.h" -#include "wxlua/wxlua.h" -#include "wxlua/debug/wxldebug.h" -#include "wxlua/debugger/wxlsock.h" +#include "wxluadebuggerdefs.h" +#include +#include "../debug/wxldebug.h" +#include "wxlsock.h" // ---------------------------------------------------------------------------- // wxLuaDebugTarget - a C++ socket target that the wxLuaDebuggerServer run in Lua diff --git a/wxLua/modules/wxlua/debugger/wxlsock.cpp b/wxLua/modules/wxlua/debugger/wxlsock.cpp index f44cb591..973730c1 100644 --- a/wxLua/modules/wxlua/debugger/wxlsock.cpp +++ b/wxLua/modules/wxlua/debugger/wxlsock.cpp @@ -7,20 +7,20 @@ // Licence: wxWidgets licence ///////////////////////////////////////////////////////////////////////////// -#include "wx/wxprec.h" +#include #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP - #include "wx/wx.h" + #include #endif -#include "wxlua/debugger/wxlsock.h" -#include "wxlua/debugger/wxldserv.h" -#include "wxlua/wxlstate.h" -#include "wxlua/debug/wxldebug.h" +#include "wxlsock.h" +#include "wxldserv.h" +#include +#include "../debug/wxldebug.h" #ifdef _MSC_VER #pragma warning(push, 4) diff --git a/wxLua/modules/wxlua/debugger/wxlsock.h b/wxLua/modules/wxlua/debugger/wxlsock.h index 0ac21bf2..d16d4462 100644 --- a/wxLua/modules/wxlua/debugger/wxlsock.h +++ b/wxLua/modules/wxlua/debugger/wxlsock.h @@ -10,7 +10,7 @@ #ifndef WX_LUA_SOCKET_H_ #define WX_LUA_SOCKET_H_ -#include "wxlua/debugger/wxluadebuggerdefs.h" +#include "wxluadebuggerdefs.h" class WXDLLIMPEXP_FWD_WXLUADEBUG wxLuaDebugData; diff --git a/wxLua/modules/wxlua/debugger/wxluadebugger_bind.cpp b/wxLua/modules/wxlua/debugger/wxluadebugger_bind.cpp deleted file mode 100644 index 562639a7..00000000 --- a/wxLua/modules/wxlua/debugger/wxluadebugger_bind.cpp +++ /dev/null @@ -1,729 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxlua/debugger/wxluadebugger.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxlua/debugger/wxluadebugger_bind.h" - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - -// --------------------------------------------------------------------------- -// Bind class wxLuaDebuggerServer -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaDebuggerServer' -int wxluatype_wxLuaDebuggerServer = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_AddBreakPoint[] = { &wxluatype_wxLuaDebuggerServer, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_AddBreakPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_AddBreakPoint[1] = {{ wxLua_wxLuaDebuggerServer_AddBreakPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_AddBreakPoint }}; -// bool AddBreakPoint(const wxString &fileName, int lineNumber ); -static int LUACALL wxLua_wxLuaDebuggerServer_AddBreakPoint(lua_State *L) -{ - // int lineNumber - int lineNumber = (int)wxlua_getnumbertype(L, 3); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call AddBreakPoint - bool returns = (self->AddBreakPoint(fileName, lineNumber)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Break[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_Break(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_Break[1] = {{ wxLua_wxLuaDebuggerServer_Break, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Break }}; -// bool Break( ); -static int LUACALL wxLua_wxLuaDebuggerServer_Break(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call Break - bool returns = (self->Break()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_ClearAllBreakPoints[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_ClearAllBreakPoints(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_ClearAllBreakPoints[1] = {{ wxLua_wxLuaDebuggerServer_ClearAllBreakPoints, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_ClearAllBreakPoints }}; -// bool ClearAllBreakPoints( ); -static int LUACALL wxLua_wxLuaDebuggerServer_ClearAllBreakPoints(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call ClearAllBreakPoints - bool returns = (self->ClearAllBreakPoints()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Continue[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_Continue(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_Continue[1] = {{ wxLua_wxLuaDebuggerServer_Continue, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Continue }}; -// bool Continue( ); -static int LUACALL wxLua_wxLuaDebuggerServer_Continue(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call Continue - bool returns = (self->Continue()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_DisplayStackDialog[] = { &wxluatype_wxLuaDebuggerServer, &wxluatype_wxWindow, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_DisplayStackDialog(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_DisplayStackDialog[1] = {{ wxLua_wxLuaDebuggerServer_DisplayStackDialog, WXLUAMETHOD_METHOD, 2, 3, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_DisplayStackDialog }}; -// void DisplayStackDialog(wxWindow *pParent, wxWindowID id = wxID_ANY ); -static int LUACALL wxLua_wxLuaDebuggerServer_DisplayStackDialog(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 3 ? (wxWindowID)wxlua_getnumbertype(L, 3) : wxID_ANY); - // wxWindow pParent - wxWindow * pParent = (wxWindow *)wxluaT_getuserdatatype(L, 2, wxluatype_wxWindow); - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call DisplayStackDialog - self->DisplayStackDialog(pParent, id); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_EvaluateExpr[] = { &wxluatype_wxLuaDebuggerServer, &wxluatype_TNUMBER, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_EvaluateExpr(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_EvaluateExpr[1] = {{ wxLua_wxLuaDebuggerServer_EvaluateExpr, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_EvaluateExpr }}; -// bool EvaluateExpr(int exprRef, const wxString &expr ); -static int LUACALL wxLua_wxLuaDebuggerServer_EvaluateExpr(lua_State *L) -{ - // const wxString expr - const wxString expr = wxlua_getwxStringtype(L, 3); - // int exprRef - int exprRef = (int)wxlua_getnumbertype(L, 2); - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call EvaluateExpr - bool returns = (self->EvaluateExpr(exprRef, expr)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId[1] = {{ wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId }}; -// long GetDebuggeeProcessId() const; -static int LUACALL wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call GetDebuggeeProcessId - long returns = (self->GetDebuggeeProcessId()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static int LUACALL wxLua_wxLuaDebuggerServer_GetNetworkName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_GetNetworkName[1] = {{ wxLua_wxLuaDebuggerServer_GetNetworkName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetNetworkName( ); -static int LUACALL wxLua_wxLuaDebuggerServer_GetNetworkName(lua_State *L) -{ - // call GetNetworkName - wxString returns = (wxLuaDebuggerServer::GetNetworkName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static int LUACALL wxLua_wxLuaDebuggerServer_GetProgramName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_GetProgramName[1] = {{ wxLua_wxLuaDebuggerServer_GetProgramName, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 0, 0, g_wxluaargtypeArray_None }}; -// static wxString GetProgramName( ); -static int LUACALL wxLua_wxLuaDebuggerServer_GetProgramName(lua_State *L) -{ - // call GetProgramName - wxString returns = (wxLuaDebuggerServer::GetProgramName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_KillDebuggee[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_KillDebuggee(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_KillDebuggee[1] = {{ wxLua_wxLuaDebuggerServer_KillDebuggee, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_KillDebuggee }}; -// bool KillDebuggee( ); -static int LUACALL wxLua_wxLuaDebuggerServer_KillDebuggee(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call KillDebuggee - bool returns = (self->KillDebuggee()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_RemoveBreakPoint[] = { &wxluatype_wxLuaDebuggerServer, &wxluatype_TSTRING, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_RemoveBreakPoint(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_RemoveBreakPoint[1] = {{ wxLua_wxLuaDebuggerServer_RemoveBreakPoint, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_RemoveBreakPoint }}; -// bool RemoveBreakPoint(const wxString &fileName, int lineNumber ); -static int LUACALL wxLua_wxLuaDebuggerServer_RemoveBreakPoint(lua_State *L) -{ - // int lineNumber - int lineNumber = (int)wxlua_getnumbertype(L, 3); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call RemoveBreakPoint - bool returns = (self->RemoveBreakPoint(fileName, lineNumber)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Reset[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_Reset(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_Reset[1] = {{ wxLua_wxLuaDebuggerServer_Reset, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Reset }}; -// bool Reset( ); -static int LUACALL wxLua_wxLuaDebuggerServer_Reset(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call Reset - bool returns = (self->Reset()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Run[] = { &wxluatype_wxLuaDebuggerServer, &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_Run(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_Run[1] = {{ wxLua_wxLuaDebuggerServer_Run, WXLUAMETHOD_METHOD, 3, 3, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Run }}; -// bool Run(const wxString &fileName, const wxString &buffer ); -static int LUACALL wxLua_wxLuaDebuggerServer_Run(lua_State *L) -{ - // const wxString buffer - const wxString buffer = wxlua_getwxStringtype(L, 3); - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call Run - bool returns = (self->Run(fileName, buffer)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StartClient[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_StartClient(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_StartClient[1] = {{ wxLua_wxLuaDebuggerServer_StartClient, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StartClient }}; -// long StartClient( ); -static int LUACALL wxLua_wxLuaDebuggerServer_StartClient(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call StartClient - long returns = (self->StartClient()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StartServer[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_StartServer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_StartServer[1] = {{ wxLua_wxLuaDebuggerServer_StartServer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StartServer }}; -// bool StartServer( ); -static int LUACALL wxLua_wxLuaDebuggerServer_StartServer(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call StartServer - bool returns = (self->StartServer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Step[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_Step(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_Step[1] = {{ wxLua_wxLuaDebuggerServer_Step, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_Step }}; -// bool Step( ); -static int LUACALL wxLua_wxLuaDebuggerServer_Step(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call Step - bool returns = (self->Step()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StepOut[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_StepOut(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_StepOut[1] = {{ wxLua_wxLuaDebuggerServer_StepOut, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StepOut }}; -// bool StepOut( ); -static int LUACALL wxLua_wxLuaDebuggerServer_StepOut(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call StepOut - bool returns = (self->StepOut()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StepOver[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_StepOver(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_StepOver[1] = {{ wxLua_wxLuaDebuggerServer_StepOver, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StepOver }}; -// bool StepOver( ); -static int LUACALL wxLua_wxLuaDebuggerServer_StepOver(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call StepOver - bool returns = (self->StepOver()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StopServer[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_StopServer(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_StopServer[1] = {{ wxLua_wxLuaDebuggerServer_StopServer, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_StopServer }}; -// bool StopServer( ); -static int LUACALL wxLua_wxLuaDebuggerServer_StopServer(lua_State *L) -{ - // get this - wxLuaDebuggerServer * self = (wxLuaDebuggerServer *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerServer); - // call StopServer - bool returns = (self->StopServer()); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_delete[] = { &wxluatype_wxLuaDebuggerServer, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerServer_constructor[] = { &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaDebuggerServer_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerServer_constructor[1] = {{ wxLua_wxLuaDebuggerServer_constructor, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerServer_constructor }}; -// wxLuaDebuggerServer(int portNumber ); -static int LUACALL wxLua_wxLuaDebuggerServer_constructor(lua_State *L) -{ - // int portNumber - int portNumber = (int)wxlua_getnumbertype(L, 1); - // call constructor - wxLuaDebuggerServer* returns = new wxLuaDebuggerServer(portNumber); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaDebuggerServer); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaDebuggerServer); - - return 1; -} - - - -void wxLua_wxLuaDebuggerServer_delete_function(void** p) -{ - wxLuaDebuggerServer* o = (wxLuaDebuggerServer*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaDebuggerServer_methods[] = { - { "AddBreakPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_AddBreakPoint, 1, NULL }, - { "Break", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_Break, 1, NULL }, - { "ClearAllBreakPoints", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_ClearAllBreakPoints, 1, NULL }, - { "Continue", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_Continue, 1, NULL }, - { "DisplayStackDialog", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_DisplayStackDialog, 1, NULL }, - { "EvaluateExpr", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_EvaluateExpr, 1, NULL }, - { "GetDebuggeeProcessId", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_GetDebuggeeProcessId, 1, NULL }, - { "GetNetworkName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaDebuggerServer_GetNetworkName, 1, NULL }, - { "GetProgramName", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxLuaDebuggerServer_GetProgramName, 1, NULL }, - { "KillDebuggee", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_KillDebuggee, 1, NULL }, - { "RemoveBreakPoint", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_RemoveBreakPoint, 1, NULL }, - { "Reset", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_Reset, 1, NULL }, - { "Run", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_Run, 1, NULL }, - { "StartClient", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_StartClient, 1, NULL }, - { "StartServer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_StartServer, 1, NULL }, - { "Step", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_Step, 1, NULL }, - { "StepOut", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_StepOut, 1, NULL }, - { "StepOver", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_StepOver, 1, NULL }, - { "StopServer", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerServer_StopServer, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaDebuggerServer_delete, 1, NULL }, - { "wxLuaDebuggerServer", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaDebuggerServer_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxLuaDebuggerServer_methodCount = sizeof(wxLuaDebuggerServer_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxLuaDebuggerEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaDebuggerEvent' -int wxluatype_wxLuaDebuggerEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetFileName[] = { &wxluatype_wxLuaDebuggerEvent, NULL }; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetFileName(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetFileName[1] = {{ wxLua_wxLuaDebuggerEvent_GetFileName, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetFileName }}; -// wxString GetFileName() const; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetFileName(lua_State *L) -{ - // get this - wxLuaDebuggerEvent * self = (wxLuaDebuggerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerEvent); - // call GetFileName - wxString returns = (self->GetFileName()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetLineNumber[] = { &wxluatype_wxLuaDebuggerEvent, NULL }; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetLineNumber(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetLineNumber[1] = {{ wxLua_wxLuaDebuggerEvent_GetLineNumber, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetLineNumber }}; -// int GetLineNumber() const; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetLineNumber(lua_State *L) -{ - // get this - wxLuaDebuggerEvent * self = (wxLuaDebuggerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerEvent); - // call GetLineNumber - int returns = (self->GetLineNumber()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetMessage[] = { &wxluatype_wxLuaDebuggerEvent, NULL }; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetMessage(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetMessage[1] = {{ wxLua_wxLuaDebuggerEvent_GetMessage, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetMessage }}; -// wxString GetMessage() const; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetMessage(lua_State *L) -{ - // get this - wxLuaDebuggerEvent * self = (wxLuaDebuggerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerEvent); - // call GetMessage - wxString returns = (self->GetMessage()); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetReference[] = { &wxluatype_wxLuaDebuggerEvent, NULL }; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetReference(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetReference[1] = {{ wxLua_wxLuaDebuggerEvent_GetReference, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_GetReference }}; -// int GetReference() const; -static int LUACALL wxLua_wxLuaDebuggerEvent_GetReference(lua_State *L) -{ - // get this - wxLuaDebuggerEvent * self = (wxLuaDebuggerEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaDebuggerEvent); - // call GetReference - int returns = (self->GetReference()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_delete[] = { &wxluatype_wxLuaDebuggerEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaDebuggerEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaDebuggerEvent_delete }}; - - - -void wxLua_wxLuaDebuggerEvent_delete_function(void** p) -{ - wxLuaDebuggerEvent* o = (wxLuaDebuggerEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaDebuggerEvent_methods[] = { - { "GetFileName", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetFileName, 1, NULL }, - { "GetLineNumber", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetLineNumber, 1, NULL }, - { "GetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetMessage, 1, NULL }, - { "GetReference", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaDebuggerEvent_GetReference, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaDebuggerEvent_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxLuaDebuggerEvent_methodCount = sizeof(wxLuaDebuggerEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - - - -// --------------------------------------------------------------------------- -// ../modules/wxlua/debugger/wxluadebugger_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxluadebugger() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxluadebugger(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - { "wxEVT_WXLUA_DEBUGGER_BREAK", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_BREAK), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_DEBUGGEE_CONNECTED", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_DEBUGGEE_CONNECTED), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_DEBUGGEE_DISCONNECTED", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_DEBUGGEE_DISCONNECTED), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_ERROR", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_ERROR), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_EVALUATE_EXPR", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_EVALUATE_EXPR), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_EXIT", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_EXIT), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_PRINT", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_PRINT), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_STACK_ENTRY_ENUM", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_STACK_ENTRY_ENUM), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_STACK_ENUM", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_STACK_ENUM), &wxluatype_wxLuaDebuggerEvent }, - { "wxEVT_WXLUA_DEBUGGER_TABLE_ENUM", WXLUA_GET_wxEventType_ptr(wxEVT_WXLUA_DEBUGGER_TABLE_ENUM), &wxluatype_wxLuaDebuggerEvent }, - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxluadebugger() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxluadebugger(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxluadebugger() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxluadebugger(size_t &count) -{ - static wxLuaBindString stringList[] = - { - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxluadebugger() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxluadebugger(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxluadebugger() is called to register global functions -// --------------------------------------------------------------------------- - -// %override wxLua_function_LuaStackDialog -// %function void LuaStackDialog() -static int LUACALL wxLua_function_LuaStackDialog(lua_State *L) -{ - // call StackDialog - - wxLuaStackDialog stackDialog(wxLuaState(L), NULL); - stackDialog.ShowModal(); - - return 0; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_LuaStackDialog[1] = {{ wxLua_function_LuaStackDialog, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxluadebugger() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxluadebugger(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - { "LuaStackDialog", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_LuaStackDialog, 1, NULL }, - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxluadebugger() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxEvent = "wxEvent"; -static const char* wxluaclassname_wxEvtHandler = "wxEvtHandler"; -static const char* wxluaclassname_wxLuaDebuggerEvent = "wxLuaDebuggerEvent"; -static const char* wxluaclassname_wxLuaDebuggerServer = "wxLuaDebuggerServer"; - -static const char* wxluabaseclassnames_wxLuaDebuggerEvent[] = { wxluaclassname_wxEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaDebuggerEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaDebuggerServer[] = { wxluaclassname_wxEvtHandler, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaDebuggerServer[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern wxLuaBindMethod wxLuaDebuggerEvent_methods[]; -extern int wxLuaDebuggerEvent_methodCount; -extern void wxLua_wxLuaDebuggerEvent_delete_function(void** p); -extern wxLuaBindMethod wxLuaDebuggerServer_methods[]; -extern int wxLuaDebuggerServer_methodCount; -extern void wxLua_wxLuaDebuggerServer_delete_function(void** p); - - - - -wxLuaBindClass* wxLuaGetClassList_wxluadebugger(size_t &count) -{ - static wxLuaBindClass classList[] = - { - { wxluaclassname_wxLuaDebuggerEvent, wxLuaDebuggerEvent_methods, wxLuaDebuggerEvent_methodCount, CLASSINFO(wxLuaDebuggerEvent), &wxluatype_wxLuaDebuggerEvent, wxluabaseclassnames_wxLuaDebuggerEvent, wxluabaseclassbinds_wxLuaDebuggerEvent, NULL, NULL, NULL, 0, &wxLua_wxLuaDebuggerEvent_delete_function, }, - { wxluaclassname_wxLuaDebuggerServer, wxLuaDebuggerServer_methods, wxLuaDebuggerServer_methodCount, CLASSINFO(wxLuaDebuggerServer), &wxluatype_wxLuaDebuggerServer, wxluabaseclassnames_wxLuaDebuggerServer, wxluabaseclassbinds_wxLuaDebuggerServer, NULL, NULL, NULL, 0, &wxLua_wxLuaDebuggerServer_delete_function, }, - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxluadebugger() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxluadebugger, wxLuaBinding) - -wxLuaBinding_wxluadebugger::wxLuaBinding_wxluadebugger() : wxLuaBinding() -{ - m_bindingName = wxT("wxluadebugger"); - m_nameSpace = wxT("wxlua"); - m_classArray = wxLuaGetClassList_wxluadebugger(m_classCount); - m_numberArray = wxLuaGetDefineList_wxluadebugger(m_numberCount); - m_stringArray = wxLuaGetStringList_wxluadebugger(m_stringCount); - m_eventArray = wxLuaGetEventList_wxluadebugger(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxluadebugger(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxluadebugger(m_functionCount); - InitBinding(); -} - - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxluadebugger_init() -{ - static wxLuaBinding_wxluadebugger m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxlua/debugger/wxluadebugger_bind.h b/wxLua/modules/wxlua/debugger/wxluadebugger_bind.h deleted file mode 100644 index 164ba148..00000000 --- a/wxLua/modules/wxlua/debugger/wxluadebugger_bind.h +++ /dev/null @@ -1,62 +0,0 @@ -// --------------------------------------------------------------------------- -// wxluadebugger.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxluadebugger_H__ -#define __HOOK_WXLUA_wxluadebugger_H__ - -#include "wx/defs.h" -#include "wxlua/debugger/wxluadebuggerdefs.h" -#include "wxbind/include/wxcore_bind.h" - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_WXLUADEBUGGER wxLuaBinding_wxluadebugger : public wxLuaBinding -{ -public: - wxLuaBinding_wxluadebugger(); - - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxluadebugger) -}; - - -// initialize wxLuaBinding_wxluadebugger for all wxLuaStates -extern WXDLLIMPEXP_WXLUADEBUGGER wxLuaBinding* wxLuaBinding_wxluadebugger_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#include "wx/defs.h" -#include "wx/object.h" -#include "wxlua/debugger/wxldserv.h" -#include "wxlua/wxlbind.h" -#include "wxlua/wxlstate.h" - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern WXDLLIMPEXP_DATA_WXLUADEBUGGER(int) wxluatype_wxLuaDebuggerEvent; -extern WXDLLIMPEXP_DATA_WXLUADEBUGGER(int) wxluatype_wxLuaDebuggerServer; - - - -#endif // __HOOK_WXLUA_wxluadebugger_H__ - diff --git a/wxLua/modules/wxlua/debugger/wxluadebuggerdefs.h b/wxLua/modules/wxlua/debugger/wxluadebuggerdefs.h index 64dbe5ed..7e29a4a2 100644 --- a/wxLua/modules/wxlua/debugger/wxluadebuggerdefs.h +++ b/wxLua/modules/wxlua/debugger/wxluadebuggerdefs.h @@ -11,10 +11,10 @@ #ifndef __WX_WXLUADEBUGGERDEFS_H__ #define __WX_WXLUADEBUGGERDEFS_H__ -#include "wx/defs.h" +#include -#include "wxlua/wxldefs.h" -#include "wxlua/debug/wxluadebugdefs.h" +#include +#include "../debug/wxluadebugdefs.h" // ---------------------------------------------------------------------------- // WXDLLIMPEXP macros diff --git a/wxLua/modules/wxlua/wxlconsole.cpp b/wxLua/modules/wxlua/wxlconsole.cpp index c345518b..99cb011c 100644 --- a/wxLua/modules/wxlua/wxlconsole.cpp +++ b/wxLua/modules/wxlua/wxlconsole.cpp @@ -26,7 +26,7 @@ #endif #if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__) - #include "art/wxlua.xpm" + #include "../../art/wxlua.xpm" #endif #include @@ -36,8 +36,8 @@ #include #include -#include "wxlua/wxlua.h" -#include "wxlconsole.h" +#include +#include // ---------------------------------------------------------------------------- // wxLuaConsole diff --git a/wxLua/modules/wxlua/wxllua.cpp b/wxLua/modules/wxlua/wxllua.cpp index 058b2c9c..1f9a8e57 100644 --- a/wxLua/modules/wxlua/wxllua.cpp +++ b/wxLua/modules/wxlua/wxllua.cpp @@ -19,10 +19,10 @@ #include #endif -#include "wxlua/wxllua.h" -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" -#include "wxlua/wxlcallb.h" +#include +#include +#include +#include //#include "wxluadebug/include/wxldebug.h" // for debugging only diff --git a/wxLua/modules/wxlua/wxlobject.cpp b/wxLua/modules/wxlua/wxlobject.cpp index 1778dce0..cc002882 100644 --- a/wxLua/modules/wxlua/wxlobject.cpp +++ b/wxLua/modules/wxlua/wxlobject.cpp @@ -17,8 +17,8 @@ #include #endif -#include "wxlua/wxlobject.h" -#include "wxlua/wxlstate.h" +#include +#include //----------------------------------------------------------------------------- // wxLuaObject diff --git a/wxLua/modules/wxlua/wxlstate.cpp b/wxLua/modules/wxlua/wxlstate.cpp index 8518a9e9..568c6559 100644 --- a/wxLua/modules/wxlua/wxlstate.cpp +++ b/wxLua/modules/wxlua/wxlstate.cpp @@ -19,8 +19,8 @@ #include #endif -#include "wxlua/wxlstate.h" -#include "wxlua/wxlcallb.h" +#include +#include #include //#include "wxluadebug/include/wxldebug.h" // for debugging only diff --git a/wxLua/modules/wxlua/wxlua_bind.cpp b/wxLua/modules/wxlua/wxlua_bind.cpp deleted file mode 100644 index a613439b..00000000 --- a/wxLua/modules/wxlua/wxlua_bind.cpp +++ /dev/null @@ -1,1602 +0,0 @@ -// --------------------------------------------------------------------------- -// ../modules/wxlua/wxlua.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlua_bind.h" -#ifdef Above - #undef Above -#endif -#ifdef Below - #undef Below -#endif - -#ifdef __GNUC__ - #pragma GCC diagnostic ignored "-Wunused-variable" -#endif // __GNUC__ - -#if LUA_VERSION_NUM < 503 -#define lua_pushinteger lua_pushnumber -#endif - -// --------------------------------------------------------------------------- -// Bind class wxLuaState -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaState' -int wxluatype_wxLuaState = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaState_delete[] = { &wxluatype_wxLuaState, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaState_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaState_delete }}; - - - -void wxLua_wxLuaState_delete_function(void** p) -{ - wxLuaState* o = (wxLuaState*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaState_methods[] = { - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaState_delete, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxLuaState_methodCount = sizeof(wxLuaState_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxLuaObject -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaObject' -int wxluatype_wxLuaObject = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_GetAllocationFlag[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxLuaObject_GetAllocationFlag(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_GetAllocationFlag[1] = {{ wxLua_wxLuaObject_GetAllocationFlag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_GetAllocationFlag }}; -// int GetAllocationFlag() const; -static int LUACALL wxLua_wxLuaObject_GetAllocationFlag(lua_State *L) -{ - // get this - wxLuaObject * self = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call GetAllocationFlag - int returns = (self->GetAllocationFlag()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_GetObject[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxLuaObject_GetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_GetObject[1] = {{ wxLua_wxLuaObject_GetObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_GetObject }}; -// %override wxLua_wxLuaObject_GetObject -// void *GetObject() const -static int LUACALL wxLua_wxLuaObject_GetObject(lua_State *L) -{ - // get this - wxLuaObject *self = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call GetObject that push the item onto the stack, or nil - if (self->GetObject(L)) - return 1; - - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_SetObject[] = { &wxluatype_wxLuaObject, NULL }; -static int LUACALL wxLua_wxLuaObject_SetObject(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_SetObject[1] = {{ wxLua_wxLuaObject_SetObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_SetObject }}; -// %override wxLua_wxLuaObject_SetObject -// void SetObject(void *object) -static int LUACALL wxLua_wxLuaObject_SetObject(lua_State *L) -{ - // get this - wxLuaObject *self = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); - // call SetObject - self->SetObject(L, 2); - // return the number of parameters - return 0; -} - - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_delete[] = { &wxluatype_wxLuaObject, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_delete }}; - -static int LUACALL wxLua_wxLuaObject_constructor(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_constructor[1] = {{ wxLua_wxLuaObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; -// %override wxLua_wxLuaObject_constructor -// wxLuaObject(void *object) -static int LUACALL wxLua_wxLuaObject_constructor(lua_State *L) -{ - wxLuaObject *returns; - // call constructor - returns = new wxLuaObject(L, 1); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaObject); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaObject); - // return the number of parameters - return 1; -} - - - - -void wxLua_wxLuaObject_delete_function(void** p) -{ - wxLuaObject* o = (wxLuaObject*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaObject_methods[] = { - { "GetAllocationFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaObject_GetAllocationFlag, 1, NULL }, - { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaObject_GetObject, 1, NULL }, - { "SetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaObject_SetObject, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaObject_delete, 1, NULL }, - { "wxLuaObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaObject_constructor, 1, NULL }, - { 0, 0, 0, 0 }, -}; - -int wxLuaObject_methodCount = sizeof(wxLuaObject_methods)/sizeof(wxLuaBindMethod) - 1; - - -// --------------------------------------------------------------------------- -// Bind class wxLuaEvent -// --------------------------------------------------------------------------- - -// Lua MetaTable Tag for Class 'wxLuaEvent' -int wxluatype_wxLuaEvent = WXLUA_TUNKNOWN; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_DebugHookBreak[] = { &wxluatype_wxLuaEvent, &wxluatype_TBOOLEAN, NULL }; -static int LUACALL wxLua_wxLuaEvent_DebugHookBreak(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_DebugHookBreak[1] = {{ wxLua_wxLuaEvent_DebugHookBreak, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLuaEvent_DebugHookBreak }}; -// void DebugHookBreak(bool stop); -static int LUACALL wxLua_wxLuaEvent_DebugHookBreak(lua_State *L) -{ - // bool stop - bool stop = wxlua_getbooleantype(L, 2); - // get this - wxLuaEvent * self = (wxLuaEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaEvent); - // call DebugHookBreak - self->DebugHookBreak(stop); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_GetLineNum[] = { &wxluatype_wxLuaEvent, NULL }; -static int LUACALL wxLua_wxLuaEvent_GetLineNum(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_GetLineNum[1] = {{ wxLua_wxLuaEvent_GetLineNum, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaEvent_GetLineNum }}; -// int GetLineNum() const; -static int LUACALL wxLua_wxLuaEvent_GetLineNum(lua_State *L) -{ - // get this - wxLuaEvent * self = (wxLuaEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaEvent); - // call GetLineNum - int returns = (self->GetLineNum()); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_GetwxLuaState[] = { &wxluatype_wxLuaEvent, NULL }; -static int LUACALL wxLua_wxLuaEvent_GetwxLuaState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_GetwxLuaState[1] = {{ wxLua_wxLuaEvent_GetwxLuaState, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaEvent_GetwxLuaState }}; -// wxLuaState GetwxLuaState() const; -static int LUACALL wxLua_wxLuaEvent_GetwxLuaState(lua_State *L) -{ - // get this - wxLuaEvent * self = (wxLuaEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaEvent); - // call GetwxLuaState - // allocate a new object using the copy constructor - wxLuaState* returns = new wxLuaState(self->GetwxLuaState()); - // add the new object to the tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaState); - // push the result datatype - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaState); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_SetwxLuaState[] = { &wxluatype_wxLuaEvent, &wxluatype_wxLuaState, NULL }; -static int LUACALL wxLua_wxLuaEvent_SetwxLuaState(lua_State *L); -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_SetwxLuaState[1] = {{ wxLua_wxLuaEvent_SetwxLuaState, WXLUAMETHOD_METHOD, 2, 2, s_wxluatypeArray_wxLua_wxLuaEvent_SetwxLuaState }}; -// void SetwxLuaState(const wxLuaState& wxlState); -static int LUACALL wxLua_wxLuaEvent_SetwxLuaState(lua_State *L) -{ - // const wxLuaState wxlState - const wxLuaState * wxlState = (const wxLuaState *)wxluaT_getuserdatatype(L, 2, wxluatype_wxLuaState); - // get this - wxLuaEvent * self = (wxLuaEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaEvent); - // call SetwxLuaState - self->SetwxLuaState(*wxlState); - - return 0; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_delete[] = { &wxluatype_wxLuaEvent, NULL }; -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaEvent_delete }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_constructor[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -static int LUACALL wxLua_wxLuaEvent_constructor(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_constructor[1] = {{ wxLua_wxLuaEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxLuaEvent_constructor }}; -// wxLuaEvent(wxEventType commandType = wxEVT_NULL, wxWindowID id = wxID_ANY); // , const wxLuaState& wxlState = wxNullLuaState); -static int LUACALL wxLua_wxLuaEvent_constructor(lua_State *L) -{ - // get number of arguments - int argCount = lua_gettop(L); - // wxWindowID id = wxID_ANY - wxWindowID id = (argCount >= 2 ? (wxWindowID)wxlua_getnumbertype(L, 2) : wxID_ANY); - // wxEventType commandType = wxEVT_NULL - wxEventType commandType = (argCount >= 1 ? (wxEventType)wxlua_getnumbertype(L, 1) : wxEVT_NULL); - // call constructor - wxLuaEvent* returns = new wxLuaEvent(commandType, id); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaEvent); - - return 1; -} - -static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaEvent_constructor1[] = { &wxluatype_wxLuaEvent, NULL }; -static int LUACALL wxLua_wxLuaEvent_constructor1(lua_State *L); -// static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_constructor1[1] = {{ wxLua_wxLuaEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaEvent_constructor1 }}; -// wxLuaEvent(const wxLuaEvent& event); -static int LUACALL wxLua_wxLuaEvent_constructor1(lua_State *L) -{ - // const wxLuaEvent event - const wxLuaEvent * event = (const wxLuaEvent *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaEvent); - // call constructor - wxLuaEvent* returns = new wxLuaEvent(*event); - // add to tracked memory list - wxluaO_addgcobject(L, returns, wxluatype_wxLuaEvent); - // push the constructed class pointer - wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaEvent); - - return 1; -} - - - -// function overload table -static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaEvent_constructor_overload[] = -{ - { wxLua_wxLuaEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatypeArray_wxLua_wxLuaEvent_constructor }, - { wxLua_wxLuaEvent_constructor1, WXLUAMETHOD_CONSTRUCTOR, 1, 1, s_wxluatypeArray_wxLua_wxLuaEvent_constructor1 }, -}; -static int s_wxluafunc_wxLua_wxLuaEvent_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxLuaEvent_constructor_overload)/sizeof(wxLuaBindCFunc); - - -void wxLua_wxLuaEvent_delete_function(void** p) -{ - wxLuaEvent* o = (wxLuaEvent*)(*p); - delete o; -} - -// Map Lua Class Methods to C Binding Functions -wxLuaBindMethod wxLuaEvent_methods[] = { - { "DebugHookBreak", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaEvent_DebugHookBreak, 1, NULL }, - { "GetLineNum", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaEvent_GetLineNum, 1, NULL }, - { "GetwxLuaState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaEvent_GetwxLuaState, 1, NULL }, - { "SetwxLuaState", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaEvent_SetwxLuaState, 1, NULL }, - { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaEvent_delete, 1, NULL }, - - { "wxLuaEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaEvent_constructor_overload, s_wxluafunc_wxLua_wxLuaEvent_constructor_overload_count, 0 }, - - { 0, 0, 0, 0 }, -}; - -int wxLuaEvent_methodCount = sizeof(wxLuaEvent_methods)/sizeof(wxLuaBindMethod) - 1; - - - - -// --------------------------------------------------------------------------- -// ../modules/wxlua/wxlua_bind.cpp was generated by genwxbind.lua -// -// Any changes made to this file will be lost when the file is regenerated. -// --------------------------------------------------------------------------- - - -// --------------------------------------------------------------------------- -// wxLuaGetEventList_wxlua() is called to register events -// --------------------------------------------------------------------------- - -wxLuaBindEvent* wxLuaGetEventList_wxlua(size_t &count) -{ - static wxLuaBindEvent eventList[] = - { - { "wxEVT_LUA_CREATION", WXLUA_GET_wxEventType_ptr(wxEVT_LUA_CREATION), &wxluatype_wxLuaEvent }, - { "wxEVT_LUA_DEBUG_HOOK", WXLUA_GET_wxEventType_ptr(wxEVT_LUA_DEBUG_HOOK), &wxluatype_wxLuaEvent }, - { "wxEVT_LUA_ERROR", WXLUA_GET_wxEventType_ptr(wxEVT_LUA_ERROR), &wxluatype_wxLuaEvent }, - { "wxEVT_LUA_PRINT", WXLUA_GET_wxEventType_ptr(wxEVT_LUA_PRINT), &wxluatype_wxLuaEvent }, - - { 0, 0, 0 }, - }; - count = sizeof(eventList)/sizeof(wxLuaBindEvent) - 1; - return eventList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetDefineList_wxlua() is called to register #define and enum -// --------------------------------------------------------------------------- - -wxLuaBindNumber* wxLuaGetDefineList_wxlua(size_t &count) -{ - static wxLuaBindNumber numberList[] = - { - { "LUA_TBOOLEAN", LUA_TBOOLEAN }, - { "LUA_TFUNCTION", LUA_TFUNCTION }, - { "LUA_TLIGHTUSERDATA", LUA_TLIGHTUSERDATA }, - { "LUA_TNIL", LUA_TNIL }, - { "LUA_TNONE", LUA_TNONE }, - { "LUA_TNUMBER", LUA_TNUMBER }, - { "LUA_TSTRING", LUA_TSTRING }, - { "LUA_TTABLE", LUA_TTABLE }, - { "LUA_TTHREAD", LUA_TTHREAD }, - { "LUA_TUSERDATA", LUA_TUSERDATA }, - { "WXLUAMETHOD_CFUNCTION", WXLUAMETHOD_CFUNCTION }, - { "WXLUAMETHOD_CONSTRUCTOR", WXLUAMETHOD_CONSTRUCTOR }, - { "WXLUAMETHOD_DELETE", WXLUAMETHOD_DELETE }, - { "WXLUAMETHOD_GETPROP", WXLUAMETHOD_GETPROP }, - { "WXLUAMETHOD_METHOD", WXLUAMETHOD_METHOD }, - { "WXLUAMETHOD_SETPROP", WXLUAMETHOD_SETPROP }, - { "WXLUAMETHOD_STATIC", WXLUAMETHOD_STATIC }, - { "WXLUA_TBOOLEAN", WXLUA_TBOOLEAN }, - { "WXLUA_TCFUNCTION", WXLUA_TCFUNCTION }, - { "WXLUA_TFUNCTION", WXLUA_TFUNCTION }, - { "WXLUA_TINTEGER", WXLUA_TINTEGER }, - { "WXLUA_TLIGHTUSERDATA", WXLUA_TLIGHTUSERDATA }, - { "WXLUA_TNIL", WXLUA_TNIL }, - { "WXLUA_TNONE", WXLUA_TNONE }, - { "WXLUA_TNUMBER", WXLUA_TNUMBER }, - { "WXLUA_TSTRING", WXLUA_TSTRING }, - { "WXLUA_TTABLE", WXLUA_TTABLE }, - { "WXLUA_TTHREAD", WXLUA_TTHREAD }, - { "WXLUA_TUSERDATA", WXLUA_TUSERDATA }, - { "WXLUA_T_MAX", WXLUA_T_MAX }, - { "wxLUAOBJECT_ARRAYINT", wxLUAOBJECT_ARRAYINT }, - { "wxLUAOBJECT_BOOL", wxLUAOBJECT_BOOL }, - { "wxLUAOBJECT_INT", wxLUAOBJECT_INT }, - { "wxLUAOBJECT_NONE", wxLUAOBJECT_NONE }, - { "wxLUAOBJECT_STRING", wxLUAOBJECT_STRING }, - { "wxLUA_MAJOR_VERSION", wxLUA_MAJOR_VERSION }, - { "wxLUA_MINOR_VERSION", wxLUA_MINOR_VERSION }, - { "wxLUA_RELEASE_NUMBER", wxLUA_RELEASE_NUMBER }, - { "wxLUA_SUBRELEASE_NUMBER", wxLUA_SUBRELEASE_NUMBER }, - - { 0, 0 }, - }; - count = sizeof(numberList)/sizeof(wxLuaBindNumber) - 1; - return numberList; -} - -// --------------------------------------------------------------------------- - -// wxLuaGetStringList_wxlua() is called to register #define_string -// --------------------------------------------------------------------------- - -wxLuaBindString* wxLuaGetStringList_wxlua(size_t &count) -{ - static wxLuaBindString stringList[] = - { - { "wxLUA_VERSION_STRING", NULL, wxLUA_VERSION_STRING }, - - { 0, 0 }, - }; - count = sizeof(stringList)/sizeof(wxLuaBindString) - 1; - return stringList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetObjectList_wxlua() is called to register object and pointer bindings -// --------------------------------------------------------------------------- - -wxLuaBindObject* wxLuaGetObjectList_wxlua(size_t &count) -{ - static wxLuaBindObject objectList[] = - { - - { 0, 0, 0, 0 }, - }; - count = sizeof(objectList)/sizeof(wxLuaBindObject) - 1; - return objectList; -} - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxlua() is called to register global functions -// --------------------------------------------------------------------------- - -static wxLuaArgType s_wxluatypeArray_wxLua_function_CompileLuaScript[] = { &wxluatype_TSTRING, &wxluatype_TSTRING, NULL }; -// %override wxLua_function_CompileLuaScript -// %function int CompileLuaScript(const wxString& luaScript, const wxString& fileName) -static int LUACALL wxLua_function_CompileLuaScript(lua_State *L) -{ - int returns; - // const wxString fileName - const wxString fileName = wxlua_getwxStringtype(L, 2); - // const wxString luaScript - const wxString luaScript = wxlua_getwxStringtype(L, 1); - wxString errMsg; - int line_num = -1; - wxLuaState wxlState2(true); // create a brand new empty lua state to compile in - returns = wxlState2.CompileString(luaScript, fileName, &errMsg, &line_num); - // push the result number - lua_pushnumber(L, returns); - wxlua_pushwxString(L, errMsg); - lua_pushnumber(L, line_num); - return 3; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_CompileLuaScript[1] = {{ wxLua_function_CompileLuaScript, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_CompileLuaScript }}; - -// %override wxLua_function_GetBindings - -int LUACALL wxluabind_wxLuaBinding__index(lua_State* L); - -// %function LuaTable GetBindings() -static int LUACALL wxLua_function_GetBindings(lua_State *L) -{ - lua_newtable(L); // the table that we return - - int idx = 1; - - wxLuaBindingArray& wxlbArray = wxLuaBinding::GetBindingArray(); - size_t n, count = wxlbArray.GetCount(); - - for (n = 0; n < count; n++, idx++) - { - // Push function to access the binding info - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlbArray[n]; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlbArray[n]); // push tag to recognize table call - lua_pushcclosure(L, wxluabind_wxLuaBinding__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - - //lua_pushstring(L, "__metatable"); - //lua_pushstring(L, "Metatable is not accessible"); - //lua_rawset(L, -3); - - lua_setmetatable(L, -2); - - lua_rawseti(L, -2, idx); - } - - return 1; -} - -//----------------------------------------------------------------------------- -// wxluabind_wxLuaBindCFunc__index -//----------------------------------------------------------------------------- -int LUACALL wxluabind_wxLuaBindClass__index(lua_State* L); - -int LUACALL wxluabind_wxLuaBindCFunc__index(lua_State* L) -{ - static const char* fields[] = { "lua_cfunc", - "method_type", - "minargs", - "maxargs", - "argtypes", - "class", - "class_name" }; - static const size_t fields_count = sizeof(fields)/sizeof(fields[0]); - - void **ptr = (void **)lua_touserdata(L, 1); - wxLuaBindCFunc* wxlCFunc= (wxLuaBindCFunc*)*ptr; - wxLuaBinding *wxlBinding = (wxLuaBinding *)lua_touserdata(L, lua_upvalueindex(1)); - - int idx_type = lua_type(L, 2); - - if (idx_type == LUA_TSTRING) - { - const char* idx_str = lua_tostring(L, 2); - - if (strcmp(idx_str, "fields") == 0) - { - lua_newtable(L); - for (size_t i = 0; i < fields_count; ++i) - { - lua_pushstring(L, fields[i]); - lua_rawseti(L, -2, i + 1); - } - return 1; - } - else if (strcmp(idx_str, "lua_cfunc") == 0) - { - lua_pushcfunction(L, wxlCFunc->lua_cfunc); - return 1; - } - else if (strcmp(idx_str, "method_type") == 0) - { - lua_pushnumber(L, wxlCFunc->method_type); - return 1; - } - else if (strcmp(idx_str, "minargs") == 0) - { - lua_pushnumber(L, wxlCFunc->minargs); - return 1; - } - else if (strcmp(idx_str, "maxargs") == 0) - { - lua_pushnumber(L, wxlCFunc->maxargs); - return 1; - } - else if (strcmp(idx_str, "argtypes") == 0) - { - size_t idx, count = wxlCFunc->maxargs; - lua_createtable(L, count, 0); - - // check for terminating null in argtypes - for (idx = 0; (idx < count) && wxlCFunc->argtypes[idx]; ++idx) - { - lua_pushnumber(L, *wxlCFunc->argtypes[idx]); - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "class") == 0) - { - const wxLuaBindClass* c = wxlBinding->GetBindClass(wxlCFunc); - if (c != NULL) - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = c; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindClass__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - return 1; - } - } - else if (strcmp(idx_str, "class_name") == 0) - { - const wxLuaBindClass* c = wxlBinding->GetBindClass(wxlCFunc); - if (c != NULL) - { - lua_pushstring(L, c->name); - return 1; - } - } - } - - return 0; -} - -//----------------------------------------------------------------------------- -// wxluabind_wxLuaBindMethod__index -//----------------------------------------------------------------------------- - -int LUACALL wxluabind_wxLuaBindMethod__index(lua_State* L) -{ - static const char* fields[] = { "name", - "method_type", - "wxluacfuncs", - "wxluacfuncs_n", - "basemethod", - "class", - "class_name" }; - static const size_t fields_count = sizeof(fields)/sizeof(fields[0]); - - void **ptr = (void **)lua_touserdata(L, 1); - wxLuaBindMethod* wxlMethod = (wxLuaBindMethod*)*ptr; - wxLuaBinding *wxlBinding = (wxLuaBinding *)lua_touserdata(L, lua_upvalueindex(1)); - - int idx_type = lua_type(L, 2); - - if (idx_type == LUA_TSTRING) - { - const char* idx_str = lua_tostring(L, 2); - - if (strcmp(idx_str, "fields") == 0) - { - lua_newtable(L); - for (size_t i = 0; i < fields_count; ++i) - { - lua_pushstring(L, fields[i]); - lua_rawseti(L, -2, i + 1); - } - return 1; - } - else if (strcmp(idx_str, "name") == 0) - { - lua_pushstring(L, wxlMethod->name); - return 1; - } - else if (strcmp(idx_str, "method_type") == 0) - { - lua_pushnumber(L, wxlMethod->method_type); - return 1; - } - else if (strcmp(idx_str, "wxluacfuncs") == 0) - { - wxLuaBindCFunc* wxlCFunc = wxlMethod->wxluacfuncs; - size_t idx, count = wxlMethod->wxluacfuncs_n; - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlCFunc) - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlCFunc; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindCFunc__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "wxluacfuncs_n") == 0) - { - lua_pushnumber(L, wxlMethod->wxluacfuncs_n); - return 1; - } - else if (strcmp(idx_str, "basemethod") == 0) - { - if (wxlMethod->basemethod) - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlMethod->basemethod; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindMethod__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - return 1; - } - - return 0; - } - else if (strcmp(idx_str, "class") == 0) - { - const wxLuaBindClass* c = wxlBinding->GetBindClass(wxlMethod); - if (c != NULL) - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = c; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindClass__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - return 1; - } - } - else if (strcmp(idx_str, "class_name") == 0) - { - const wxLuaBindClass* c = wxlBinding->GetBindClass(wxlMethod); - if (c != NULL) - { - lua_pushstring(L, c->name); - return 1; - } - } - } - - return 0; -} - -//----------------------------------------------------------------------------- -// wxluabind_wxLuaBindClass__index -//----------------------------------------------------------------------------- - -int LUACALL wxluabind_wxLuaBindClass__index(lua_State* L) -{ - static const char* fields[] = { "name", - "wxluamethods", - "wxluamethods_n", - "classInfo", - "wxluatype", - "baseclassNames", - "baseBindClasses", - "baseclass_wxluatypes", - "baseclass_vtable_offsets", - "enums", - "enums_n" }; - static const size_t fields_count = sizeof(fields)/sizeof(fields[0]); - - void **ptr = (void **)lua_touserdata(L, 1); - wxLuaBindClass* wxlClass = (wxLuaBindClass*)*ptr; - wxLuaBinding *wxlBinding = (wxLuaBinding *)lua_touserdata(L, lua_upvalueindex(1)); - - int idx_type = lua_type(L, 2); - - if (idx_type == LUA_TSTRING) - { - const char* idx_str = lua_tostring(L, 2); - - if (strcmp(idx_str, "fields") == 0) - { - lua_newtable(L); - for (size_t i = 0; i < fields_count; ++i) - { - lua_pushstring(L, fields[i]); - lua_rawseti(L, -2, i + 1); - } - return 1; - } - else if (strcmp(idx_str, "name") == 0) - { - lua_pushstring(L, wxlClass->name); - return 1; - } - else if (strcmp(idx_str, "wxluamethods") == 0) - { - size_t idx, count = wxlClass->wxluamethods_n; - lua_createtable(L, count, 0); - if (wxlClass->wxluamethods_n > 0) - { - wxLuaBindMethod* wxlMethod = wxlClass->wxluamethods; - - for (idx = 0; idx < count; ++idx, ++wxlMethod) - { - // Create table { wxLuaBindClass userdata } - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlMethod; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindMethod__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - lua_rawseti(L, -2, idx + 1); - } - - lua_pushstring(L, "wxLuaBindClass"); // so we know where this came from - lua_pushvalue(L, 1); - lua_rawset(L, -3); - } - - return 1; - } - else if (strcmp(idx_str, "wxluamethods_n") == 0) - { - lua_pushnumber(L, wxlClass->wxluamethods_n); - return 1; - } - else if (strcmp(idx_str, "classInfo") == 0) - { - if (wxlClass->classInfo) - { - const wxLuaBindClass* classInfoClass = wxluaT_getclass(L, "wxClassInfo"); - if (classInfoClass) - { - wxluaT_pushuserdatatype(L, wxlClass->classInfo, *classInfoClass->wxluatype); - return 1; - } - } - - return 0; - } - else if (strcmp(idx_str, "wxluatype") == 0) - { - lua_pushnumber(L, *wxlClass->wxluatype); - return 1; - } - else if (strcmp(idx_str, "baseclassNames") == 0) - { - lua_newtable(L); - if (wxlClass->baseclassNames) - { - for (size_t i = 0; wxlClass->baseclassNames[i]; ++i) - { - lua_pushstring(L, wxlClass->baseclassNames[i]); - lua_rawseti(L, -2, i + 1); - } - } - - return 1; - } - else if (strcmp(idx_str, "baseBindClasses") == 0) - { - lua_newtable(L); - if (wxlClass->baseBindClasses) - { - for (size_t i = 0; wxlClass->baseclassNames[i]; ++i) // use names to check for terminating NULL - { - if (wxlClass->baseBindClasses[i] == NULL) // may be NULL if not loaded - { - lua_pushnil(L); - } - else - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlClass->baseBindClasses[i]; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindClass__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - } - - lua_rawseti(L, -2, i + 1); - } - } - - return 1; - } - else if (strcmp(idx_str, "baseclass_wxluatypes") == 0) - { - lua_newtable(L); - if (wxlClass->baseclass_wxluatypes) - { - size_t i = 0; - while (wxlClass->baseclass_wxluatypes[i]) - { - lua_pushnumber(L, *wxlClass->baseclass_wxluatypes[i]); - lua_rawseti(L, -2, i + 1); - ++i; - } - } - - return 1; - } - else if (strcmp(idx_str, "baseclass_vtable_offsets") == 0) - { - lua_newtable(L); - if (wxlClass->baseclass_wxluatypes) // check this for NULL not baseclass_vtable_offsets - { - size_t i = 0; - while (wxlClass->baseclass_wxluatypes[i]) // see above - { - lua_pushnumber(L, wxlClass->baseclass_vtable_offsets[i]); - lua_rawseti(L, -2, i + 1); - ++i; - } - } - - return 1; - } - else if (strcmp(idx_str, "enums") == 0) - { - size_t idx, count = wxlClass->enums_n; - lua_createtable(L, count, 0); - if (wxlClass->enums_n > 0) - { - wxLuaBindNumber* wxlNumber = wxlClass->enums; - - for (idx = 0; idx < count; ++idx, ++wxlNumber) - { - // Create table { name, value } - lua_createtable(L, 0, 2); - lua_pushstring(L, "name"); - lua_pushstring(L, wxlNumber->name); - lua_rawset(L, -3); - lua_pushstring(L, "value"); - lua_pushnumber(L, wxlNumber->value); - lua_rawset(L, -3); - - lua_rawseti(L, -2, idx + 1); - } - - //lua_pushstring(L, "wxLuaBindClass"); // so we know where this came from - //lua_pushvalue(L, 1); - //lua_rawset(L, -3); - } - - return 1; - } - else if (strcmp(idx_str, "enums_n") == 0) - { - lua_pushnumber(L, wxlClass->enums_n); - return 1; - } - } - - return 0; -} - -//----------------------------------------------------------------------------- -// wxluabind_wxLuaBinding__index -//----------------------------------------------------------------------------- - -int LUACALL wxluabind_wxLuaBinding__index(lua_State* L) -{ - static const char* fields[] = { "GetBindingName", - "GetLuaNamespace", - "GetClassCount", - "GetFunctionCount", - "GetNumberCount", - "GetStringCount", - "GetEventCount", - "GetObjectCount", - "GetClassArray", - "GetFunctionArray", - "GetNumberArray", - "GetStringArray", - "GetEventArray", - "GetObjectArray" }; - static const size_t fields_count = sizeof(fields)/sizeof(fields[0]); - - void **ptr = (void **)lua_touserdata(L, 1); - wxLuaBinding* wxlBinding = (wxLuaBinding*)*ptr; - - int idx_type = lua_type(L, 2); - - if (idx_type == LUA_TSTRING) - { - const char* idx_str = lua_tostring(L, 2); - - if (strcmp(idx_str, "fields") == 0) - { - lua_newtable(L); - for (size_t i = 0; i < fields_count; ++i) - { - lua_pushstring(L, fields[i]); - lua_rawseti(L, -2, i + 1); - } - return 1; - } - else if (strcmp(idx_str, "GetBindingName") == 0) - { - lua_pushstring(L, wx2lua(wxlBinding->GetBindingName())); - return 1; - } - else if (strcmp(idx_str, "GetLuaNamespace") == 0) - { - lua_pushstring(L, wx2lua(wxlBinding->GetLuaNamespace())); - return 1; - } - else if (strcmp(idx_str, "GetClassCount") == 0) - { - lua_pushnumber(L, wxlBinding->GetClassCount()); - return 1; - } - else if (strcmp(idx_str, "GetFunctionCount") == 0) - { - lua_pushnumber(L, wxlBinding->GetFunctionCount()); - return 1; - } - else if (strcmp(idx_str, "GetNumberCount") == 0) - { - lua_pushnumber(L, wxlBinding->GetNumberCount()); - return 1; - } - else if (strcmp(idx_str, "GetStringCount") == 0) - { - lua_pushnumber(L, wxlBinding->GetStringCount()); - return 1; - } - else if (strcmp(idx_str, "GetEventCount") == 0) - { - lua_pushnumber(L, wxlBinding->GetEventCount()); - return 1; - } - else if (strcmp(idx_str, "GetObjectCount") == 0) - { - lua_pushnumber(L, wxlBinding->GetObjectCount()); - return 1; - } - else if (strcmp(idx_str, "GetClassArray") == 0) - { - wxLuaBindClass* wxlClass = wxlBinding->GetClassArray(); - size_t idx, count = wxlBinding->GetClassCount(); - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlClass) - { - // Create table { wxLuaBindClass userdata } - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlClass; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindClass__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "GetFunctionArray") == 0) - { - wxLuaBindMethod* wxlMethod = wxlBinding->GetFunctionArray(); - size_t idx, count = wxlBinding->GetFunctionCount(); - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlMethod) - { - // Create table { wxLuaBindClass userdata } - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlMethod; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindMethod__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "GetNumberArray") == 0) - { - wxLuaBindNumber* wxlNumber = wxlBinding->GetNumberArray(); - size_t idx, count = wxlBinding->GetNumberCount(); - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlNumber) - { - // Create table { name, value } - lua_createtable(L, 0, 2); - lua_pushstring(L, "name"); - lua_pushstring(L, wxlNumber->name); - lua_rawset(L, -3); - lua_pushstring(L, "value"); - lua_pushnumber(L, wxlNumber->value); - lua_rawset(L, -3); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "GetStringArray") == 0) - { - wxLuaBindString* wxlString = wxlBinding->GetStringArray(); - size_t idx, count = wxlBinding->GetStringCount(); - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlString) - { - // Create table { name, value } - lua_createtable(L, 0, 2); - lua_pushstring(L, "name"); - lua_pushstring(L, wxlString->name); - lua_rawset(L, -3); - lua_pushstring(L, "value"); - if (wxlString->wxchar_string != NULL) - lua_pushstring(L, wx2lua(wxlString->wxchar_string)); - else - lua_pushstring(L, wxlString->c_string); - lua_rawset(L, -3); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "GetEventArray") == 0) - { - wxLuaBindEvent* wxlEvent = wxlBinding->GetEventArray(); - size_t idx, count = wxlBinding->GetEventCount(); - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlEvent) - { - // Create table { name, eventType, wxluatype } - lua_createtable(L, 0, 3); - lua_pushstring(L, "name"); - lua_pushstring(L, wxlEvent->name); - lua_rawset(L, -3); - lua_pushstring(L, "eventType"); - lua_pushnumber(L, *wxlEvent->eventType); - lua_rawset(L, -3); - lua_pushstring(L, "wxluatype"); - lua_pushnumber(L, *wxlEvent->wxluatype); - lua_rawset(L, -3); - - lua_pushstring(L, "wxLuaBindClass"); - const wxLuaBindClass* wxlClass = wxlBinding->GetBindClass(*wxlEvent->wxluatype); - if (wxlClass == NULL) - { - lua_pushnil(L); - } - else - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlClass; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindClass__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - } - lua_rawset(L, -3); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - else if (strcmp(idx_str, "GetObjectArray") == 0) - { - wxLuaBindObject* wxlObject = wxlBinding->GetObjectArray(); - size_t idx, count = wxlBinding->GetObjectCount(); - lua_createtable(L, count, 0); - - for (idx = 0; idx < count; ++idx, ++wxlObject) - { - // Create table { name, object, wxluatype } - lua_createtable(L, 0, 3); - lua_pushstring(L, "name"); - lua_pushstring(L, wxlObject->name); - lua_rawset(L, -3); - - lua_pushstring(L, "object"); - if (wxlObject->objPtr != 0) - wxluaT_pushuserdatatype(L, wxlObject->objPtr, *wxlObject->wxluatype, false); - else - wxluaT_pushuserdatatype(L, *wxlObject->pObjPtr, *wxlObject->wxluatype, false); - lua_rawset(L, -3); - - lua_pushstring(L, "wxluatype"); - lua_pushnumber(L, *wxlObject->wxluatype); - lua_rawset(L, -3); - - lua_pushstring(L, "wxLuaBindClass"); - const wxLuaBindClass* wxlClass = wxlBinding->GetBindClass(*wxlObject->wxluatype); - if (wxlClass == NULL) - { - lua_pushnil(L); - } - else - { - const void **ptr = (const void **)lua_newuserdata(L, sizeof(void *)); - *ptr = wxlClass; - lua_newtable(L); - lua_pushstring(L, "__index"); - lua_pushlightuserdata(L, wxlBinding); - lua_pushcclosure(L, wxluabind_wxLuaBindClass__index, 1); // push func with tag as upvalue - lua_rawset(L, -3); - lua_setmetatable(L, -2); - } - lua_rawset(L, -3); - - lua_rawseti(L, -2, idx + 1); - } - - return 1; - } - } - - return 0; -} - - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetBindings[1] = {{ wxLua_function_GetBindings, WXLUAMETHOD_CFUNCTION, 0, 0, g_wxluaargtypeArray_None }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_GetGCUserdataInfo[] = { &wxluatype_TBOOLEAN, NULL }; -// %override wxLua_function_GetGCUserdataInfo -// %function LuaTable GetGCUserdataInfo(bool as_string = false) -static int LUACALL wxLua_function_GetGCUserdataInfo(lua_State *L) -{ - bool as_string = (0 != lua_toboolean(L, 1)); // ok if nil - if (as_string) - wxlua_pushwxString(L, wxlua_concatwxArrayString(wxluaO_getgcobjectinfo(L))); - else - wxlua_pushwxArrayStringtable(L, wxluaO_getgcobjectinfo(L)); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetGCUserdataInfo[1] = {{ wxLua_function_GetGCUserdataInfo, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_GetGCUserdataInfo }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_GetTrackedEventCallbackInfo[] = { &wxluatype_TBOOLEAN, NULL }; -// %override wxLua_function_GetTrackedEventCallbackInfo -// %function LuaTable GetTrackedEventCallbackInfo(bool as_string = false) -static int LUACALL wxLua_function_GetTrackedEventCallbackInfo(lua_State *L) -{ - wxLuaState wxlState(L); - bool as_string = (0 != lua_toboolean(L, 1)); // ok if nil - if (as_string) - wxlua_pushwxString(L, wxlua_concatwxArrayString(wxlState.GetTrackedEventCallbackInfo())); - else - wxlua_pushwxArrayStringtable(L, wxlState.GetTrackedEventCallbackInfo()); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetTrackedEventCallbackInfo[1] = {{ wxLua_function_GetTrackedEventCallbackInfo, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_GetTrackedEventCallbackInfo }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_GetTrackedObjectInfo[] = { &wxluatype_TBOOLEAN, NULL }; -// %override wxLua_function_GetTrackedObjectInfo -// %function LuaTable GetTrackedObjectInfo(bool as_string = false) -static int LUACALL wxLua_function_GetTrackedObjectInfo(lua_State *L) -{ - bool as_string = (0 != lua_toboolean(L, 1)); // ok if nil - if (as_string) - wxlua_pushwxString(L, wxlua_concatwxArrayString(wxluaO_gettrackedweakobjectinfo(L))); - else - wxlua_pushwxArrayStringtable(L, wxluaO_gettrackedweakobjectinfo(L)); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetTrackedObjectInfo[1] = {{ wxLua_function_GetTrackedObjectInfo, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_GetTrackedObjectInfo }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_GetTrackedWinDestroyCallbackInfo[] = { &wxluatype_TBOOLEAN, NULL }; -// %override wxLua_function_GetTrackedWinDestroyCallbackInfo -// %function LuaTable GetTrackedWinDestroyCallbackInfo(bool as_string = false) -static int LUACALL wxLua_function_GetTrackedWinDestroyCallbackInfo(lua_State *L) -{ - wxLuaState wxlState(L); - bool as_string = (0 != lua_toboolean(L, 1)); // ok if nil - if (as_string) - wxlua_pushwxString(L, wxlua_concatwxArrayString(wxlState.GetTrackedWinDestroyCallbackInfo())); - else - wxlua_pushwxArrayStringtable(L, wxlState.GetTrackedWinDestroyCallbackInfo()); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetTrackedWinDestroyCallbackInfo[1] = {{ wxLua_function_GetTrackedWinDestroyCallbackInfo, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_GetTrackedWinDestroyCallbackInfo }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_GetTrackedWindowInfo[] = { &wxluatype_TBOOLEAN, NULL }; -// %override wxLua_function_GetTrackedWindowInfo -// %function LuaTable GetTrackedWindowInfo(bool as_string = false) -static int LUACALL wxLua_function_GetTrackedWindowInfo(lua_State *L) -{ - bool as_string = (0 != lua_toboolean(L, 1)); // ok if nil - if (as_string) - wxlua_pushwxString(L, wxlua_concatwxArrayString(wxluaW_gettrackedwindowinfo(L))); - else - wxlua_pushwxArrayStringtable(L, wxluaW_gettrackedwindowinfo(L)); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_GetTrackedWindowInfo[1] = {{ wxLua_function_GetTrackedWindowInfo, WXLUAMETHOD_CFUNCTION, 0, 1, s_wxluatypeArray_wxLua_function_GetTrackedWindowInfo }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_isgcobject[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -// %override wxLua_function_isgcobject -// %function bool isgcobject(void* object) -static int LUACALL wxLua_function_isgcobject(lua_State *L) -{ - bool ret = false; - if (wxlua_iswxuserdatatype(wxluaT_type(L, 1))) - { - void* obj_ptr = wxlua_touserdata(L, 1, false); - ret = wxluaO_isgcobject(L, obj_ptr); - } - - lua_pushboolean(L, ret); - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_isgcobject[1] = {{ wxLua_function_isgcobject, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_isgcobject }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_isrefed[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -// %override wxLua_function_isrefed -// %function bool isrefed(void* object) -static int LUACALL wxLua_function_isrefed(lua_State *L) -{ - bool ret = wxluaR_isrefed(L, 1, &wxlua_lreg_refs_key) != LUA_NOREF; - - lua_pushboolean(L, ret); - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_isrefed[1] = {{ wxLua_function_isrefed, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_isrefed }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_istrackedobject[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -// %override wxLua_function_istrackedobject -// %function bool istrackedobject(void* object) -static int LUACALL wxLua_function_istrackedobject(lua_State *L) -{ - bool ret = false; - int wxl_type = wxluaT_type(L, 1); - - if (wxlua_iswxuserdatatype(wxl_type)) - { - void* obj_ptr = wxlua_touserdata(L, 1, false); - ret = wxluaO_istrackedweakobject(L, obj_ptr, wxl_type, false); - } - - lua_pushboolean(L, ret); - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_istrackedobject[1] = {{ wxLua_function_istrackedobject, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_istrackedobject }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_iswxluatype[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// %rename iswxluatype int wxlua_iswxluatype(int luatype, int wxluaarg_tag ); -static int LUACALL wxLua_function_iswxluatype(lua_State *L) -{ - // int wxluaarg_tag - int wxluaarg_tag = (int)wxlua_getnumbertype(L, 2); - // int luatype - int luatype = (int)wxlua_getnumbertype(L, 1); - // call wxlua_iswxluatype - int returns = (wxlua_iswxluatype(luatype, wxluaarg_tag)); - // push the result number -#if LUA_VERSION_NUM >= 503 -if ((double)(lua_Integer)returns == (double)returns) { - // Exactly representable as lua_Integer - lua_pushinteger(L, returns); -} else -#endif -{ - lua_pushnumber(L, returns); -} - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_iswxluatype[1] = {{ wxLua_function_iswxluatype, WXLUAMETHOD_CFUNCTION, 2, 2, s_wxluatypeArray_wxLua_function_iswxluatype }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_type[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -// %override wxLua_function_type -// %function int type(int wxluaarg_tag) -static int LUACALL wxLua_function_type(lua_State *L) -{ - int ltype = lua_type(L, 1); - const char* ltypename = lua_typename(L, ltype); - - int wxl_type = wxluaT_type(L, 1); - wxString wxltypeName = wxluaT_typename(L, wxl_type); - - // push the results - lua_pushstring(L, wx2lua(wxltypeName)); - lua_pushnumber(L, wxl_type); - - lua_pushstring(L, ltypename); - lua_pushnumber(L, ltype); - - return 4; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_type[1] = {{ wxLua_function_type, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_type }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_typename[] = { &wxluatype_TNUMBER, NULL }; -// %override wxLua_function_typename -// %function wxString typename(int wxluaarg_tag) -static int LUACALL wxLua_function_typename(lua_State *L) -{ - // int wxluaarg_tag - int wxl_type = (int)wxlua_getnumbertype(L, 1); - // call wxlua_getwxluatypename - wxString returns = wxluaT_typename(L, wxl_type); - // push the result string - wxlua_pushwxString(L, returns); - - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_typename[1] = {{ wxLua_function_typename, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_typename }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_ungcobject[] = { &wxluatype_TLIGHTUSERDATA, NULL }; -// %override wxLua_function_ungcobject -// %function bool ungcobject(void* object) -static int LUACALL wxLua_function_ungcobject(lua_State *L) -{ - bool ret = false; - - int l_type = lua_type(L, 1); - - if (!wxlua_iswxluatype(l_type, WXLUA_TUSERDATA)) - wxlua_argerror(L, 1, wxT("a 'userdata'")); - - void* o = wxlua_touserdata(L, 1, false); - - if (wxluaO_isgcobject(L, o)) - { - ret = wxluaO_undeletegcobject(L, o); - } - - lua_pushboolean(L, ret); - return 1; -} - -static wxLuaBindCFunc s_wxluafunc_wxLua_function_ungcobject[1] = {{ wxLua_function_ungcobject, WXLUAMETHOD_CFUNCTION, 1, 1, s_wxluatypeArray_wxLua_function_ungcobject }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLUA_CHECK_VERSION[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// bool wxLUA_CHECK_VERSION(int major, int minor, int release); // actually a define -static int LUACALL wxLua_function_wxLUA_CHECK_VERSION(lua_State *L) -{ - // int release - int release = (int)wxlua_getnumbertype(L, 3); - // int minor - int minor = (int)wxlua_getnumbertype(L, 2); - // int major - int major = (int)wxlua_getnumbertype(L, 1); - // call wxLUA_CHECK_VERSION - bool returns = (wxLUA_CHECK_VERSION(major, minor, release)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLUA_CHECK_VERSION[1] = {{ wxLua_function_wxLUA_CHECK_VERSION, WXLUAMETHOD_CFUNCTION, 3, 3, s_wxluatypeArray_wxLua_function_wxLUA_CHECK_VERSION }}; - -static wxLuaArgType s_wxluatypeArray_wxLua_function_wxLUA_CHECK_VERSION_FULL[] = { &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, &wxluatype_TNUMBER, NULL }; -// bool wxLUA_CHECK_VERSION_FULL(int major, int minor, int release, int subrel); // actually a define -static int LUACALL wxLua_function_wxLUA_CHECK_VERSION_FULL(lua_State *L) -{ - // int subrel - int subrel = (int)wxlua_getnumbertype(L, 4); - // int release - int release = (int)wxlua_getnumbertype(L, 3); - // int minor - int minor = (int)wxlua_getnumbertype(L, 2); - // int major - int major = (int)wxlua_getnumbertype(L, 1); - // call wxLUA_CHECK_VERSION_FULL - bool returns = (wxLUA_CHECK_VERSION_FULL(major, minor, release, subrel)); - // push the result flag - lua_pushboolean(L, returns); - - return 1; -} -static wxLuaBindCFunc s_wxluafunc_wxLua_function_wxLUA_CHECK_VERSION_FULL[1] = {{ wxLua_function_wxLUA_CHECK_VERSION_FULL, WXLUAMETHOD_CFUNCTION, 4, 4, s_wxluatypeArray_wxLua_function_wxLUA_CHECK_VERSION_FULL }}; - -// --------------------------------------------------------------------------- -// wxLuaGetFunctionList_wxlua() is called to register global functions -// --------------------------------------------------------------------------- - -wxLuaBindMethod* wxLuaGetFunctionList_wxlua(size_t &count) -{ - static wxLuaBindMethod functionList[] = - { - { "CompileLuaScript", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_CompileLuaScript, 1, NULL }, - { "GetBindings", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetBindings, 1, NULL }, - { "GetGCUserdataInfo", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetGCUserdataInfo, 1, NULL }, - { "GetTrackedEventCallbackInfo", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetTrackedEventCallbackInfo, 1, NULL }, - { "GetTrackedObjectInfo", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetTrackedObjectInfo, 1, NULL }, - { "GetTrackedWinDestroyCallbackInfo", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetTrackedWinDestroyCallbackInfo, 1, NULL }, - { "GetTrackedWindowInfo", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_GetTrackedWindowInfo, 1, NULL }, - { "isgcobject", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_isgcobject, 1, NULL }, - { "isrefed", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_isrefed, 1, NULL }, - { "istrackedobject", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_istrackedobject, 1, NULL }, - { "iswxluatype", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_iswxluatype, 1, NULL }, - { "type", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_type, 1, NULL }, - { "typename", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_typename, 1, NULL }, - { "ungcobject", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_ungcobject, 1, NULL }, - { "wxLUA_CHECK_VERSION", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLUA_CHECK_VERSION, 1, NULL }, - { "wxLUA_CHECK_VERSION_FULL", WXLUAMETHOD_CFUNCTION, s_wxluafunc_wxLua_function_wxLUA_CHECK_VERSION_FULL, 1, NULL }, - - { 0, 0, 0, 0 }, - }; - count = sizeof(functionList)/sizeof(wxLuaBindMethod) - 1; - return functionList; -} - - - -// --------------------------------------------------------------------------- -// wxLuaGetClassList_wxlua() is called to register classes -// --------------------------------------------------------------------------- - -static const char* wxluaclassname_wxLuaEvent = "wxLuaEvent"; -static const char* wxluaclassname_wxLuaObject = "wxLuaObject"; -static const char* wxluaclassname_wxLuaState = "wxLuaState"; -static const char* wxluaclassname_wxNotifyEvent = "wxNotifyEvent"; -static const char* wxluaclassname_wxObject = "wxObject"; - -static const char* wxluabaseclassnames_wxLuaEvent[] = { wxluaclassname_wxNotifyEvent, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaEvent[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaObject[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaObject[] = { NULL }; -static const char* wxluabaseclassnames_wxLuaState[] = { wxluaclassname_wxObject, NULL }; -static wxLuaBindClass* wxluabaseclassbinds_wxLuaState[] = { NULL }; -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern wxLuaBindMethod wxLuaEvent_methods[]; -extern int wxLuaEvent_methodCount; -extern void wxLua_wxLuaEvent_delete_function(void** p); -extern wxLuaBindMethod wxLuaObject_methods[]; -extern int wxLuaObject_methodCount; -extern void wxLua_wxLuaObject_delete_function(void** p); -extern wxLuaBindMethod wxLuaState_methods[]; -extern int wxLuaState_methodCount; -extern void wxLua_wxLuaState_delete_function(void** p); - - - - -wxLuaBindClass* wxLuaGetClassList_wxlua(size_t &count) -{ - static wxLuaBindClass classList[] = - { - { wxluaclassname_wxLuaEvent, wxLuaEvent_methods, wxLuaEvent_methodCount, NULL, &wxluatype_wxLuaEvent, wxluabaseclassnames_wxLuaEvent, wxluabaseclassbinds_wxLuaEvent, NULL, NULL, NULL, 0, &wxLua_wxLuaEvent_delete_function, }, - { wxluaclassname_wxLuaObject, wxLuaObject_methods, wxLuaObject_methodCount, CLASSINFO(wxLuaObject), &wxluatype_wxLuaObject, wxluabaseclassnames_wxLuaObject, wxluabaseclassbinds_wxLuaObject, NULL, NULL, NULL, 0, &wxLua_wxLuaObject_delete_function, }, - { wxluaclassname_wxLuaState, wxLuaState_methods, wxLuaState_methodCount, CLASSINFO(wxLuaState), &wxluatype_wxLuaState, wxluabaseclassnames_wxLuaState, wxluabaseclassbinds_wxLuaState, NULL, NULL, NULL, 0, &wxLua_wxLuaState_delete_function, }, - - { 0, 0, 0, 0, 0, 0, 0 }, - }; - count = sizeof(classList)/sizeof(wxLuaBindClass) - 1; - - return classList; -} - -// --------------------------------------------------------------------------- -// wxLuaBinding_wxlua() - the binding class -// --------------------------------------------------------------------------- - -IMPLEMENT_DYNAMIC_CLASS(wxLuaBinding_wxlua, wxLuaBinding) - -wxLuaBinding_wxlua::wxLuaBinding_wxlua() : wxLuaBinding() -{ - m_bindingName = wxT("wxlua"); - m_nameSpace = wxT("wxlua"); - m_classArray = wxLuaGetClassList_wxlua(m_classCount); - m_numberArray = wxLuaGetDefineList_wxlua(m_numberCount); - m_stringArray = wxLuaGetStringList_wxlua(m_stringCount); - m_eventArray = wxLuaGetEventList_wxlua(m_eventCount); - m_objectArray = wxLuaGetObjectList_wxlua(m_objectCount); - m_functionArray = wxLuaGetFunctionList_wxlua(m_functionCount); - InitBinding(); -} - -bool wxLuaBinding_wxlua::RegisterBinding(const wxLuaState& wxlState) -{ - bool ret = wxLuaBinding::RegisterBinding(wxlState); - - lua_State* L = wxlState.GetLuaState(); - - lua_pushlstring(L, "NULL", 4); - wxluaT_pushuserdatatype(L, NULL, wxluatype_NULL, true, true); - lua_rawset(L, -3); // set t["NULL"] = userdata(NULL) w/ NULL tag - - return ret; -} - - -// --------------------------------------------------------------------------- - -wxLuaBinding* wxLuaBinding_wxlua_init() -{ - static wxLuaBinding_wxlua m_binding; - - if (wxLuaBinding::GetBindingArray().Index(&m_binding) == wxNOT_FOUND) - wxLuaBinding::GetBindingArray().Add(&m_binding); - - return &m_binding; -} - - diff --git a/wxLua/modules/wxlua/wxlua_bind.h b/wxLua/modules/wxlua/wxlua_bind.h deleted file mode 100644 index 9e97e4a3..00000000 --- a/wxLua/modules/wxlua/wxlua_bind.h +++ /dev/null @@ -1,57 +0,0 @@ -// --------------------------------------------------------------------------- -// wxlua.h - headers and wxLua types for wxLua binding -// -// This file was generated by genwxbind.lua -// Any changes made to this file will be lost when the file is regenerated -// --------------------------------------------------------------------------- - -#ifndef __HOOK_WXLUA_wxlua_H__ -#define __HOOK_WXLUA_wxlua_H__ - - -#include "wxlua/wxlstate.h" -#include "wxlua/wxlbind.h" - -// --------------------------------------------------------------------------- -// Check if the version of binding generator used to create this is older than -// the current version of the bindings. -// See 'bindings/genwxbind.lua' and 'modules/wxlua/wxldefs.h' -#if WXLUA_BINDING_VERSION > 44 -# error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." -#endif //WXLUA_BINDING_VERSION > 44 -// --------------------------------------------------------------------------- - -// binding class -class WXDLLIMPEXP_WXLUA wxLuaBinding_wxlua : public wxLuaBinding -{ -public: - wxLuaBinding_wxlua(); - - virtual bool RegisterBinding(const wxLuaState& wxlState); - -private: - DECLARE_DYNAMIC_CLASS(wxLuaBinding_wxlua) -}; - - -// initialize wxLuaBinding_wxlua for all wxLuaStates -extern WXDLLIMPEXP_WXLUA wxLuaBinding* wxLuaBinding_wxlua_init(); - -// --------------------------------------------------------------------------- -// Includes -// --------------------------------------------------------------------------- - -#include "wxlua/wxlstate.h" - -// --------------------------------------------------------------------------- -// Lua Tag Method Values and Tables for each Class -// --------------------------------------------------------------------------- - -extern WXDLLIMPEXP_DATA_WXLUA(int) wxluatype_wxLuaEvent; -extern WXDLLIMPEXP_DATA_WXLUA(int) wxluatype_wxLuaObject; -extern WXDLLIMPEXP_DATA_WXLUA(int) wxluatype_wxLuaState; - - - -#endif // __HOOK_WXLUA_wxlua_H__ - diff --git a/wxLua/samples/art.wx.lua b/wxLua/samples/art.wx.lua index 1fe521ba..ca0fac9d 100644 --- a/wxLua/samples/art.wx.lua +++ b/wxLua/samples/art.wx.lua @@ -9,7 +9,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- -------------------------------------------------------------------------- diff --git a/wxLua/samples/auidemo.wx.lua b/wxLua/samples/auidemo.wx.lua index c0f9bee7..6940e6ec 100644 --- a/wxLua/samples/auidemo.wx.lua +++ b/wxLua/samples/auidemo.wx.lua @@ -12,7 +12,7 @@ --]] -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") --/* XPM */ diff --git a/wxLua/samples/bindings.wx.lua b/wxLua/samples/bindings.wx.lua index 5bbec2d4..e5df45e7 100644 --- a/wxLua/samples/bindings.wx.lua +++ b/wxLua/samples/bindings.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- ---------------------------------------------------------------------------- diff --git a/wxLua/samples/calculator.wx.lua b/wxLua/samples/calculator.wx.lua index 4f1072a3..b6862695 100644 --- a/wxLua/samples/calculator.wx.lua +++ b/wxLua/samples/calculator.wx.lua @@ -10,7 +10,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- --------------------------------------------------------------------------- diff --git a/wxLua/samples/catch.lua b/wxLua/samples/catch.lua index b70fcbab..ccdc8e2e 100644 --- a/wxLua/samples/catch.lua +++ b/wxLua/samples/catch.lua @@ -11,7 +11,7 @@ -- Thanks to John Labenski for his suggestions ------------------------------------------------------------------------------ version = 1.0 -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") diff --git a/wxLua/samples/choices.wx.lua b/wxLua/samples/choices.wx.lua index 1bbd742a..d0a9c69f 100644 --- a/wxLua/samples/choices.wx.lua +++ b/wxLua/samples/choices.wx.lua @@ -8,7 +8,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/client.wx.lua b/wxLua/samples/client.wx.lua index 6654d608..d477f60d 100644 --- a/wxLua/samples/client.wx.lua +++ b/wxLua/samples/client.wx.lua @@ -9,7 +9,7 @@ Licence: wxWindows licence --]] -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") local version = '0.2' diff --git a/wxLua/samples/controls.wx.lua b/wxLua/samples/controls.wx.lua index 08ecf797..2bc78417 100644 --- a/wxLua/samples/controls.wx.lua +++ b/wxLua/samples/controls.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/coroutine.wx.lua b/wxLua/samples/coroutine.wx.lua index 7813c073..2664fd72 100644 --- a/wxLua/samples/coroutine.wx.lua +++ b/wxLua/samples/coroutine.wx.lua @@ -8,7 +8,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- Test that we can get the value from a wxLuaObject in a coroutine diff --git a/wxLua/samples/dialog.wx.lua b/wxLua/samples/dialog.wx.lua index dc5e79a0..f2b45da2 100644 --- a/wxLua/samples/dialog.wx.lua +++ b/wxLua/samples/dialog.wx.lua @@ -9,7 +9,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- IDs of the controls in the dialog diff --git a/wxLua/samples/editor.wx.lua b/wxLua/samples/editor.wx.lua index cb14cc44..56e98a63 100644 --- a/wxLua/samples/editor.wx.lua +++ b/wxLua/samples/editor.wx.lua @@ -8,7 +8,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- Equivalent to C's "cond ? a : b", all terms will be evaluated diff --git a/wxLua/samples/grid.wx.lua b/wxLua/samples/grid.wx.lua index 1182cd9d..b462a01c 100644 --- a/wxLua/samples/grid.wx.lua +++ b/wxLua/samples/grid.wx.lua @@ -8,7 +8,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") local frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "wxLua wxGrid Sample", diff --git a/wxLua/samples/gridtable.wx.lua b/wxLua/samples/gridtable.wx.lua index 768d4ded..ca476744 100644 --- a/wxLua/samples/gridtable.wx.lua +++ b/wxLua/samples/gridtable.wx.lua @@ -8,7 +8,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") diff --git a/wxLua/samples/htmlwin.wx.lua b/wxLua/samples/htmlwin.wx.lua index b7c861f8..2bcf51ca 100644 --- a/wxLua/samples/htmlwin.wx.lua +++ b/wxLua/samples/htmlwin.wx.lua @@ -8,7 +8,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil -- the main frame of the program diff --git a/wxLua/samples/luamodule.wx.lua b/wxLua/samples/luamodule.wx.lua index 6427c113..c38cf75c 100644 --- a/wxLua/samples/luamodule.wx.lua +++ b/wxLua/samples/luamodule.wx.lua @@ -15,7 +15,7 @@ -- Please also note that this sample can be executed only when -- wxLua has been compiled in shared mode (--enable-shared on Unix, -- SHARED=1 on Windows) -package.cpath = package.cpath..";;./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- simple test of Non GUI elements diff --git a/wxLua/samples/mandelbrot.wx.lua b/wxLua/samples/mandelbrot.wx.lua index c4e9a1fb..8bc8d5ac 100644 --- a/wxLua/samples/mandelbrot.wx.lua +++ b/wxLua/samples/mandelbrot.wx.lua @@ -17,7 +17,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require "wx" local width = 800 diff --git a/wxLua/samples/mdi.wx.lua b/wxLua/samples/mdi.wx.lua index 86e30461..046b9446 100644 --- a/wxLua/samples/mdi.wx.lua +++ b/wxLua/samples/mdi.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/media.wx.lua b/wxLua/samples/media.wx.lua index c05e8639..ef505548 100644 --- a/wxLua/samples/media.wx.lua +++ b/wxLua/samples/media.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil -- main wxFrame diff --git a/wxLua/samples/minimal.wx.lua b/wxLua/samples/minimal.wx.lua index 927a2629..c814f324 100644 --- a/wxLua/samples/minimal.wx.lua +++ b/wxLua/samples/minimal.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/picker.wx.lua b/wxLua/samples/picker.wx.lua index 0c35407e..42977a53 100644 --- a/wxLua/samples/picker.wx.lua +++ b/wxLua/samples/picker.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/printing.wx.lua b/wxLua/samples/printing.wx.lua index 8f0d364f..5d4bc13a 100644 --- a/wxLua/samples/printing.wx.lua +++ b/wxLua/samples/printing.wx.lua @@ -11,7 +11,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") local ID_PRINT = wx.wxID_HIGHEST + 1 diff --git a/wxLua/samples/propgrid.wx.lua b/wxLua/samples/propgrid.wx.lua index dcaeb099..bf5c38e7 100644 --- a/wxLua/samples/propgrid.wx.lua +++ b/wxLua/samples/propgrid.wx.lua @@ -11,7 +11,7 @@ --]] -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") --/* XPM */ diff --git a/wxLua/samples/propgrid_minimal.wx.lua b/wxLua/samples/propgrid_minimal.wx.lua index 006964a6..3cb8fd98 100644 --- a/wxLua/samples/propgrid_minimal.wx.lua +++ b/wxLua/samples/propgrid_minimal.wx.lua @@ -1,4 +1,4 @@ -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" local wx = require"wx" local ID_ACTION = wx.wxID_HIGHEST + 1 diff --git a/wxLua/samples/scribble.wx.lua b/wxLua/samples/scribble.wx.lua index d9a3a59f..28dceb14 100644 --- a/wxLua/samples/scribble.wx.lua +++ b/wxLua/samples/scribble.wx.lua @@ -11,7 +11,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil -- the main wxFrame diff --git a/wxLua/samples/server.wx.lua b/wxLua/samples/server.wx.lua index 029bfbd5..f26356fa 100644 --- a/wxLua/samples/server.wx.lua +++ b/wxLua/samples/server.wx.lua @@ -9,7 +9,7 @@ Licence: wxWindows licence --]] -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") local version = '0.0' diff --git a/wxLua/samples/settings.wx.lua b/wxLua/samples/settings.wx.lua index 8609feb1..86980af3 100644 --- a/wxLua/samples/settings.wx.lua +++ b/wxLua/samples/settings.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/sizer.wx.lua b/wxLua/samples/sizer.wx.lua index 17dd8d9a..963dc014 100644 --- a/wxLua/samples/sizer.wx.lua +++ b/wxLua/samples/sizer.wx.lua @@ -9,7 +9,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = wx.wxFrame(wx.NULL, wx.wxID_ANY, "wxLua sizer test frame") diff --git a/wxLua/samples/tree.wx.lua b/wxLua/samples/tree.wx.lua index 2719130a..8b796f56 100644 --- a/wxLua/samples/tree.wx.lua +++ b/wxLua/samples/tree.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- create a nice string using the wxTreeItemId and our table of "data" diff --git a/wxLua/samples/treelist.wx.lua b/wxLua/samples/treelist.wx.lua index ff6aeab7..2e8523ec 100644 --- a/wxLua/samples/treelist.wx.lua +++ b/wxLua/samples/treelist.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- create a nice string using the wxTreeItemId and our table of "data" diff --git a/wxLua/samples/unittest.wx.lua b/wxLua/samples/unittest.wx.lua index fe51772e..6dc78544 100644 --- a/wxLua/samples/unittest.wx.lua +++ b/wxLua/samples/unittest.wx.lua @@ -11,7 +11,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") tests_run = 0 diff --git a/wxLua/samples/validator.wx.lua b/wxLua/samples/validator.wx.lua index 9d5cbe2d..19ee83a7 100644 --- a/wxLua/samples/validator.wx.lua +++ b/wxLua/samples/validator.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- NOTES about validators! diff --git a/wxLua/samples/veryminimal.wx.lua b/wxLua/samples/veryminimal.wx.lua index 087b4c1a..8ce52c46 100644 --- a/wxLua/samples/veryminimal.wx.lua +++ b/wxLua/samples/veryminimal.wx.lua @@ -10,7 +10,7 @@ ----------------------------------------------------------------------------- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") frame = nil diff --git a/wxLua/samples/wxluasudoku.wx.lua b/wxLua/samples/wxluasudoku.wx.lua index e48c48a9..de7c1ca7 100644 --- a/wxLua/samples/wxluasudoku.wx.lua +++ b/wxLua/samples/wxluasudoku.wx.lua @@ -8,7 +8,7 @@ -------------------------------------------------------------------------=--- -- Load the wxLua module, does nothing if running from wxLua, wxLuaFreeze, or wxLuaEdit -package.cpath = package.cpath..";./?.dll;./?.so;../lib/?.so;../lib/vc_dll/?.dll;../lib/bcc_dll/?.dll;../lib/mingw_dll/?.dll;" +package.cpath = package.cpath..";./?.dll;./?.so;lib/lua/?.so;lib/lua/?.dll;../lib/lua/?.so;../lib/lua/?.dll;" require("wx") -- Coding notes: